summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-07-17 17:55:54 +0000
committerKen Raeburn <raeburn@mit.edu>2006-07-17 17:55:54 +0000
commit6949593ec1bf7a8a10c78c9f7928b3cba08b1b4f (patch)
treeac2ba016fe2ce0f24f14ab84e68c65a8f1a0f83a /src
parent1906a20956c85f399332e65fe1a2440a4030fc92 (diff)
downloadkrb5-6949593ec1bf7a8a10c78c9f7928b3cba08b1b4f.tar.gz
krb5-6949593ec1bf7a8a10c78c9f7928b3cba08b1b4f.tar.xz
krb5-6949593ec1bf7a8a10c78c9f7928b3cba08b1b4f.zip
(KRB5_AC_FIND_DLOPEN): Use AC_SEARCH_LIBS
ticket: 3971 target_version: 1.5.1 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18331 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/aclocal.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 5a080f8c3e..8fd2f8d344 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -157,9 +157,14 @@ fi
dnl find dlopen
AC_DEFUN([KRB5_AC_FIND_DLOPEN],[
-AC_CHECK_LIB(dl, dlopen,[DL_LIB=-ldl
+old_LIBS="$LIBS"
+DL_LIB=
+AC_SEARCH_LIBS(dlopen, dl, [
+if test "$ac_cv_search_dlopen" != "none required"; then
+ DL_LIB=$ac_cv_search_dlopen
+fi
+LIBS="$old_LIBS"
AC_DEFINE(USE_DLOPEN,1,[Define if dlopen should be used])])
-dnl AC_CHECK_LIB(ld, main, DL_LIB=-lld)
AC_SUBST(DL_LIB)
])