From: Gary V. Vaughan Date: Sun, 22 Apr 2001 22:56:18 +0000 (+0000) Subject: * ltdl.m4 (AC_CHECK_HEADERS): UW7 has sys/dl.h, so we must X-Git-Tag: multi-language-merge-point~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bcb3a01e01e0951921e0ea1f364a4e681045d839;p=thirdparty%2Flibtool.git * 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 --- diff --git a/ChangeLog b/ChangeLog index 573f6947f..146ff9329 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2001-04-22 Gary V. Vaughan + * 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 + * libtool.m4 (AC_DEPLIBS_CHECK_METHOD): Use pass_all for various releases of UnixWare and OpenServer that support it. Reported by Matthew Schalit diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 010c247dd..5a9ebc41e 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -530,6 +530,10 @@ rpl_realloc (ptr, size) # include #endif +#if HAVE_SYS_DL_H +# include +#endif + #ifdef RTLD_GLOBAL # define LT_GLOBAL RTLD_GLOBAL #else diff --git a/ltdl.m4 b/ltdl.m4 index a2eb7bec0..c72fdcd70 100644 --- 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)