tAlso disable plugins if the user disables shared libraries via. libtool's --disable-shared option. - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 04dca1582d4100601a1d9f57ea1e2ba11157c28a
 (DIR) parent a1eced51bad3018c371211cfd65f09d9fe411abc
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Mon, 13 May 2002 15:25:08 +0000
       
       Also disable plugins if the user disables shared libraries
       via. libtool's --disable-shared option.
       
       
       Diffstat:
         M configure.in                        |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/configure.in b/configure.in
       t@@ -255,11 +255,15 @@ AC_FUNC_STRFTIME
        AC_CHECK_FUNCS(strdup strstr getopt getopt_long fork)
        
        dnl Enable plugins only if we can find the dlopen function, and
       -dnl the user does not disable them
       +dnl the user does not disable them with --disable-plugins or --disable-shared
        AC_ARG_ENABLE(plugins,
        [  --enable-plugins        use dynamically-loaded sound modules],
        [ plugins="$enableval" ],[ plugins="probe" ])
        
       +if test "$enable_shared" = "no" ; then
       +  plugins="no"
       +fi
       +
        if test "$plugins" != "no" ; then
          AC_SEARCH_LIBS(dlopen, dl)
          AC_CHECK_FUNC(dlopen, [plugins="yes"], [plugins="no"])