From e18547d489075d46d865ac50d0b5acd760d74709 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 13 Sep 2006 08:14:10 +0000 Subject: r18445: splitout the dlfcn related tests metze (This used to be commit 8662e1481504c50a45416ae09ec19b834164e77c) --- source4/lib/replace/dlfcn.m4 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 source4/lib/replace/dlfcn.m4 (limited to 'source4/lib/replace/dlfcn.m4') diff --git a/source4/lib/replace/dlfcn.m4 b/source4/lib/replace/dlfcn.m4 new file mode 100644 index 0000000000..0f099f4bac --- /dev/null +++ b/source4/lib/replace/dlfcn.m4 @@ -0,0 +1,18 @@ +dnl dummies provided by dlfcn.c if not available +save_LIBS="$LIBS" +LIBS="" + +AC_SEARCH_LIBS(dlopen, dl) + +AC_CHECK_HEADERS(dlfcn.h) + +libreplace_dlfcn=no +AC_CHECK_FUNCS([dlopen dlsym dlerror dlclose],[],[libreplace_dlfcn=yes]) + +if test x"${libreplace_dlfcn}" = x"yes";then + LIBREPLACEOBJ="${LIBREPLACEOBJ} dlfcn.o" +fi + +LIBDL="$LIBS" +AC_SUBST(LIBDL) +LIBS="$save_LIBS" -- cgit