1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-31 11:41:32 +01:00

* configure.ac (DLLIBS): Work properly on platforms where dlopen and

friends are in libc instead of libdl.
This commit is contained in:
David Shaw 2003-10-27 12:46:18 +00:00
parent ef0ade2d78
commit 0a20226c6d
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2003-10-27 David Shaw <dshaw@jabberwocky.com>
* configure.ac (DLLIBS): Work properly on platforms where dlopen
and friends are in libc instead of libdl.
2003-10-21 Werner Koch <wk@gnupg.org>
* configure.ac (PRINTABLE_OS_NAME): Remove special case for The

View File

@ -518,18 +518,21 @@ else
fi
if test "$try_dynload" = yes ; then
AC_CHECK_FUNC(dlopen,,AC_CHECK_LIB(dl,dlopen,found_dlopen=yes))
_dl_save_libs=$LIBS
LIBS=""
AC_SEARCH_LIBS(dlopen,dl,found_dlopen=yes)
if test x"$found_dlopen" = "xyes" ; then
AC_DEFINE(USE_DYNAMIC_LINKING,1,[define to enable the use of extensions])
AC_DEFINE(HAVE_DL_DLOPEN,1,
[Defined when the dlopen function family is available])
AC_SUBST(DLLIBS,"-ldl")
DLLIBS=$LIBS
else
AC_MSG_WARN([dlopen not found. Disabling extensions.])
fi
else
AC_MSG_CHECKING(for dynamic loading)
AC_MSG_RESULT(has been disabled)
LIBS=$_dl_save_libs
fi
AC_SUBST(DLLIBS)
dnl Checks for header files.
AC_HEADER_STDC