Commit b655405a authored by wolfgang's avatar wolfgang

[project @ 2005-08-04 02:09:36 by wolfgang]

Check for RTLD_DEFAULT in dlfcn.h and use it if it is available.
(On Mac OS X its value is -2, and using NULL instead does not work.)

MERGE TO STABLE
parent f2ec1d28
......@@ -1176,6 +1176,24 @@ AC_EGREP_CPP(yes,
])
AC_SUBST(HaveRtldNext)
dnl ** RTLD_DEFAULT isn't available on cygwin
AC_MSG_CHECKING(for RTLD_DEFAULT from dlfcn.h)
AC_EGREP_CPP(yes,
[
#include <dlfcn.h>
#ifdef RTLD_DEFAULT
yes
#endif
], [
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_RTLDDEFAULT], [1], [Define to 1 if RTLD_DEFAULT is available.])
HaveRtldDefault=YES
], [
AC_MSG_RESULT(no)
HaveRtldDefault=NO
])
AC_SUBST(HaveRtldDefault)
dnl ** RTLD_LOCAL isn't available on cygwin or openbsd
AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h)
AC_EGREP_CPP(yes,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment