summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/rewrite.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/build/m4/rewrite.m4 b/source4/build/m4/rewrite.m4
index 8960ea707c..6a466801f8 100644
--- a/source4/build/m4/rewrite.m4
+++ b/source4/build/m4/rewrite.m4
@@ -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
############################################