summaryrefslogtreecommitdiff
path: root/source4/lib/ldb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-08-24 06:04:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:39 -0500
commit2d4ecdb3e162551d4c756365937a631c305642d3 (patch)
treedff72d0a6ee55433f3025530fb6812e72da8314f /source4/lib/ldb
parente5f7da55ef778fdd904d6ff2a54d3d5e02debc17 (diff)
downloadsamba-2d4ecdb3e162551d4c756365937a631c305642d3.tar.gz
samba-2d4ecdb3e162551d4c756365937a631c305642d3.tar.bz2
samba-2d4ecdb3e162551d4c756365937a631c305642d3.zip
r17769: only look for dlopen in -ldl if not found in libc. Needed for us4
(This used to be commit 0b254f3bde8827312c6fcb93ccd7a0c489ed5e20)
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r--source4/lib/ldb/configure.in3
1 files changed, 1 insertions, 2 deletions
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)