]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must
authorGary V. Vaughan <gary@gnu.org>
Sun, 22 Apr 2001 22:56:18 +0000 (22:56 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 22 Apr 2001 22:56:18 +0000 (22:56 +0000)
check for that here.
* libltdl/ltdl.c (HAVE_SYS_DL_H):  Include it if necessary for
the dlopen loader.
Reported by Matthew Schalit <mschalit@pacbell.net>

ChangeLog
libltdl/ltdl.c
ltdl.m4

index 573f6947f1559132ffb33133a67d57fa59b6db43..146ff9329d55282febaedd8966b574df85b6b22a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2001-04-22  Gary V. Vaughan  <gvv@techie.com>
 
+       * ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must
+       check for that here.
+       * libltdl/ltdl.c (HAVE_SYS_DL_H):  Include it if necessary for
+       the dlopen loader.
+       Reported by Matthew Schalit <mschalit@pacbell.net>
+
        * libtool.m4 (AC_DEPLIBS_CHECK_METHOD):  Use pass_all for
        various releases of UnixWare and OpenServer that support it.
        Reported by Matthew Schalit <mschalit@pacbell.net>
index 010c247dd5094757179b0e20ae8f2542d09ed0d9..5a9ebc41e01b20678142f9b08c5a3efd745c6411 100644 (file)
@@ -530,6 +530,10 @@ rpl_realloc (ptr, size)
 #  include <dlfcn.h>
 #endif
 
+#if HAVE_SYS_DL_H
+#  include <sys/dl.h>
+#endif
+
 #ifdef RTLD_GLOBAL
 #  define LT_GLOBAL            RTLD_GLOBAL
 #else
diff --git a/ltdl.m4 b/ltdl.m4
index a2eb7bec03f1b5a125c9b7f3e0dea44c16c96d49..c72fdcd70bce56c0f9dbbec0a22e954bc30f2ec7 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -33,7 +33,7 @@ dnl of the ltdl objects -- including compiler checks (above) and header
 dnl checks (below).
 AC_REQUIRE([AC_HEADER_STDC])dnl
 
-AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h)
+AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h sys/dl.h dld.h)
 AC_CHECK_HEADERS(string.h strings.h, break)
 AC_CHECK_FUNCS(strchr index, break)
 AC_CHECK_FUNCS(strrchr rindex, break)