]> 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:50:54 +0000 (22:50 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 22 Apr 2001 22:50:54 +0000 (22:50 +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 791f87330f442498643ea880b07d075dd3cf4fb1..39d5d0c8eb7a49f3f5fe0c318c34a4e3d8aec39a 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 575ba650644a7f6014055812b92bfa346604ae7f..0cf2190401c27429720f4b519f64d964dd955c38 100644 (file)
--- a/ltdl.m4
+++ b/ltdl.m4
@@ -35,7 +35,7 @@ AC_REQUIRE([AC_C_INLINE])dnl
 AC_REQUIRE([AC_HEADER_STDC])dnl
 AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
 
-AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.h dl.h dld.h)
+AC_CHECK_HEADERS(malloc.h memory.h stdlib.h stdio.h ctype.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)