diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-06-02 09:10:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:05 -0500 |
commit | e893d7f021d149803aa85e347e0a8acefde210ac (patch) | |
tree | 9af37dc1bf763b66cf94b8669ff1aa8ab6c77bb2 /source3/lib/replace/dlfcn.m4 | |
parent | b25bebb960eee796d5c5b1483f20250ed286894b (diff) | |
download | samba-e893d7f021d149803aa85e347e0a8acefde210ac.tar.gz samba-e893d7f021d149803aa85e347e0a8acefde210ac.tar.bz2 samba-e893d7f021d149803aa85e347e0a8acefde210ac.zip |
r23309: sync lib/replace with SAMBA_4_0
metze
(This used to be commit 20965d800fcac0c55853fb12cdd36b5836fc7e56)
Diffstat (limited to 'source3/lib/replace/dlfcn.m4')
-rw-r--r-- | source3/lib/replace/dlfcn.m4 | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source3/lib/replace/dlfcn.m4 b/source3/lib/replace/dlfcn.m4 index d42409ac63..a1b57d10ec 100644 --- a/source3/lib/replace/dlfcn.m4 +++ b/source3/lib/replace/dlfcn.m4 @@ -5,12 +5,17 @@ LIBS="" libreplace_cv_dlfcn=no AC_SEARCH_LIBS(dlopen, dl) -if test x"${ac_cv_search_dlopen}" = x"no"; then - libreplace_cv_dlfcn=yes -else - AC_CHECK_HEADERS(dlfcn.h) - AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes]) -fi +AC_CHECK_HEADERS(dlfcn.h) +AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_cv_dlfcn=yes]) + +AC_VERIFY_C_PROTOTYPE([void *dlopen(const char* filename, unsigned int flags)], + [ + return 0; + ],[ + AC_DEFINE(DLOPEN_TAKES_UNSIGNED_FLAGS, 1, [Whether dlopen takes unsinged int flags]) + ],[],[ + #include <dlfcn.h> + ]) if test x"${libreplace_cv_dlfcn}" = x"yes";then LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o" |