Commit 4740cf56 authored by stolz's avatar stolz
Browse files

[project @ 2002-03-28 08:39:33 by stolz]

posix/DLPrim now uses configure to check for RTLD_LOCAL.
parent db50cb71
......@@ -372,6 +372,9 @@
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if RTLD_LOCAL is available */
#undef HAVE_RTLDLOCAL
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
......
......@@ -991,6 +991,24 @@ AC_EGREP_CPP(yes,
])
AC_SUBST(HaveRtldNext)
dnl ** RTLD_LOCAL isn't available on cygwin
AC_MSG_CHECKING(for RTLD_LOCAL from dlfcn.h)
AC_EGREP_CPP(yes,
[
#include <dlfcn.h>
#ifdef RTLD_LOCAL
yes
#endif
], [
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_RTLDLOCAL)
HaveRtldLocal=YES
], [
AC_MSG_RESULT(no)
HaveRtldLocal=NO
])
AC_SUBST(HaveRtldLocal)
FPTOOLS_CHECK_LIB_NOWARN(m, atan)
dnl --------------------------------------------------
......
......@@ -373,6 +373,9 @@
/* Define if we can see RTLD_NEXT in dlfcn.h */
#undef HAVE_RTLDNEXT
/* Define if RTLD_LOCAL is available */
#undef HAVE_RTLDLOCAL
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
......
......@@ -206,6 +206,7 @@ GhcWithJavaGen=NO
HaveLibDL = @HaveLibDL@
HaveRtldNext = @HaveRtldNext@
HaveRtldLocal = @HaveRtldLocal@
# Include GHCi in the compiler. Default to NO for the time being.
......
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