summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-28 17:05:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:30:21 -0500
commit022658ae50f7eb6de5c8b17b6a4f17e9856c0d58 (patch)
treedd9217a5271dc857d01239484062778c59f82dff /source4
parent40e7f362126407361dbaa56977e6e2463038dbcc (diff)
downloadsamba-022658ae50f7eb6de5c8b17b6a4f17e9856c0d58.tar.gz
samba-022658ae50f7eb6de5c8b17b6a4f17e9856c0d58.tar.bz2
samba-022658ae50f7eb6de5c8b17b6a4f17e9856c0d58.zip
r20383: only try to find dlfcn.h if the dlopen symbol was found,
it hopefully fixes systems where dlfcn.h but no library with dlopen metze (This used to be commit 4aa31c8862020fa2615ec3cf0b65b1bb7ed10dd4)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/dlfcn.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/lib/replace/dlfcn.m4 b/source4/lib/replace/dlfcn.m4
index c9d31592e0..2d5b2c5141 100644
--- a/source4/lib/replace/dlfcn.m4
+++ b/source4/lib/replace/dlfcn.m4
@@ -4,13 +4,15 @@ LIBS=""
AC_SEARCH_LIBS(dlopen, dl)
-AC_CHECK_HEADERS(dlfcn.h)
+if test "$ac_cv_search_dlopen" != no; then
+ AC_CHECK_HEADERS(dlfcn.h)
-libreplace_cv_dlfcn=no
-AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
+ libreplace_cv_dlfcn=no
+ AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes])
-if test x"${libreplace_cv_dlfcn}" = x"yes";then
- LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
+ if test x"${libreplace_cv_dlfcn}" = x"yes";then
+ LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o"
+ fi
fi
LIBDL="$LIBS"