]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Check if dlopen is in libc too.
authorTimo Sirainen <tss@iki.fi>
Wed, 28 May 2003 11:28:42 +0000 (14:28 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 May 2003 11:28:42 +0000 (14:28 +0300)
--HG--
branch : HEAD

configure.in

index bc25856abb83007bce16b76de66d0c609c4e7881..d9804d1222447e3641a0f38298f147a000810ddf 100644 (file)
@@ -909,14 +909,24 @@ if test $need_crypt = yes; then
 fi
 
 dnl * dynamic modules?
+have_modules=no
 AC_CHECK_LIB(dl, dlopen, [
+  have_modules=yes
+  MODULE_LIBS="-export-dynamic -ldl"
+], [
+  AC_CHECK_FUNC(dlopen,, [
+    have_modules=yes
+    MODULE_LIBS="-export-dynamic"
+  ])
+])
+
+if test $have_modules = yes; then
   AC_DEFINE(HAVE_MODULES,, Define if you have dynamic module support)
   userdb="$userdb (modules)"
   passdb="$passdb (modules)"
 
-  MODULE_LIBS="-export-dynamic -ldl"
   AC_SUBST(MODULE_LIBS)
-])
+fi
 
 AC_SUBST(AUTH_CFLAGS)
 AC_SUBST(AUTH_LIBS)