From 2d4ecdb3e162551d4c756365937a631c305642d3 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 24 Aug 2006 06:04:12 +0000 Subject: r17769: only look for dlopen in -ldl if not found in libc. Needed for us4 (This used to be commit 0b254f3bde8827312c6fcb93ccd7a0c489ed5e20) --- source4/lib/ldb/configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/lib') diff --git a/source4/lib/ldb/configure.in b/source4/lib/ldb/configure.in index 0571fb68e1..b4618a47c2 100644 --- a/source4/lib/ldb/configure.in +++ b/source4/lib/ldb/configure.in @@ -37,8 +37,7 @@ AC_PATH_PROG(GCOV,gcov) AC_PATH_PROG(SLAPD,slapd) AC_CHECK_HEADERS(stdint.h dlfcn.h) AC_CONFIG_HEADER(include/config.h) -AC_CHECK_LIB(dl, dlopen) -AC_CHECK_FUNCS(dlopen dlsym dlclose) +AC_SEARCH_LIBS(dlopen, dl, AC_DEFINE(HAVE_DLOPEN, [1], [have dlopen])) SHLIBEXT="so" # Should be set based on OS later on AC_SUBST(SHLIBEXT) -- cgit