]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9213 Make --enable-modules imply --enable-dynamic
authorRyan Tandy <ryan@nardis.ca>
Tue, 14 Apr 2020 19:10:06 +0000 (12:10 -0700)
committerRyan Tandy <ryan@nardis.ca>
Tue, 14 Apr 2020 19:10:06 +0000 (12:10 -0700)
The default for --enable-dynamic is now "auto", meaning "yes" if
--enable-modules and "no" otherwise.

configure.in

index 5b69c7abb6875bdbe807e3c4aa1b16c781c5edfc..b9f0c6267bea8fe495d4f2319f7262007138fe8c 100644 (file)
@@ -226,7 +226,7 @@ dnl ----------------------------------------------------------------
 dnl General "enable" options
 dnl set default to traditional to enable the original debug style
 OL_ARG_ENABLE(debug,[  --enable-debug    enable debugging], yes, [no yes traditional])dnl
-OL_ARG_ENABLE(dynamic,[  --enable-dynamic        enable linking built binaries with dynamic libs], no)dnl
+OL_ARG_ENABLE(dynamic,[  --enable-dynamic        enable linking built binaries with dynamic libs], auto)dnl
 OL_ARG_ENABLE(syslog,[  --enable-syslog          enable syslog support], auto)dnl
 OL_ARG_ENABLE(proctitle,[  --enable-proctitle    enable proctitle support], yes)dnl
 dnl OL_ARG_ENABLE(referrals,[  --enable-referrals        enable LDAPv2+ Referrals (experimental)], no)dnl
@@ -755,6 +755,12 @@ dnl Check for module support
 ol_link_modules=no
 WITH_MODULES_ENABLED=no
 if test $ol_enable_modules != no ; then
+       if test $ol_enable_dynamic = no; then
+               AC_MSG_ERROR([--enable-modules requires --enable-dynamic])
+       elif test $ol_enable_dynamic = auto; then
+               ol_enable_dynamic=yes
+       fi
+
        AC_CHECK_HEADERS(ltdl.h)
 
        if test $ac_cv_header_ltdl_h = no ; then