r4363: value "none required" is set if no library is needed (autoconf does this the...
authorJelmer Vernooij <jelmer@samba.org>
Sat, 25 Dec 2004 22:18:12 +0000 (22:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:07:38 +0000 (13:07 -0500)
(This used to be commit 8cf15704101e5957e15a0401e4832faf1346f12e)

source4/build/m4/rewrite.m4

index 8960ea707c909bc552e317cc4b73d816aed66959..6a466801f801e97fbd38acd4f9d470864de79b72 100644 (file)
@@ -281,7 +281,13 @@ 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, [$ac_cv_search_dlopen])])
+AC_SEARCH_LIBS(dlopen, [dl], [
+                          tmp=$ac_cv_search_dlopen
+                          if test "$ac_cv_search_dlopen" = "none required"; then 
+                              tmp=""
+                          fi
+                          SMB_EXT_LIB(DL, [$tmp])]
+                          )
 # dlopen/dlclose/dlsym/dlerror will be checked again later and defines will be set then
 
 ############################################