r4362: dlopen() doesn't imply -ldl
authorJelmer Vernooij <jelmer@samba.org>
Sat, 25 Dec 2004 21:49:21 +0000 (21:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:38 +0000 (13:07 -0500)
Should fix the build on several *BSD systems that have dlopen() in libc
(This used to be commit 6d2b8e71c177d1d35a8b975cd5f24089aaa2bb49)

source4/build/m4/rewrite.m4

index ddda3e8128b6cff11b8fe12bf0beeb5a793373cf..8960ea707c909bc552e317cc4b73d816aed66959 100644 (file)
@@ -281,7 +281,7 @@ AC_CHECK_TYPES(intptr_t)
 
 ############################################
 # we need dlopen/dlclose/dlsym/dlerror for PAM, the password database plugins and the plugin loading code
-AC_SEARCH_LIBS(dlopen, [dl], [SMB_EXT_LIB(DL, [-ldl])])
+AC_SEARCH_LIBS(dlopen, [dl], [SMB_EXT_LIB(DL, [$ac_cv_search_dlopen])])
 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
 
 ############################################