From: Bruno Haible Date: Tue, 19 Dec 2006 20:24:18 +0000 (+0000) Subject: Fix a configure warning on AIX 4. X-Git-Tag: v0.17~553 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46fb16dcbb98d2fd5cfef2472f4a3086993068a8;p=thirdparty%2Fgettext.git Fix a configure warning on AIX 4. --- diff --git a/gnulib-local/ChangeLog b/gnulib-local/ChangeLog index d26df7553..716c796f2 100644 --- a/gnulib-local/ChangeLog +++ b/gnulib-local/ChangeLog @@ -1,3 +1,8 @@ +2006-12-19 Bruno Haible + + * m4/libxml.m4 (gl_LIBXML): Check for arpa/nameser.h and resolv.h + with some prerequisite headers. Needed for AIX 4.3.2. + 2006-12-19 Bruno Haible * lib/term-ostream.oo.c (term_ostream_create): Add color information diff --git a/gnulib-local/m4/libxml.m4 b/gnulib-local/m4/libxml.m4 index 43cec43a1..a39924956 100644 --- a/gnulib-local/m4/libxml.m4 +++ b/gnulib-local/m4/libxml.m4 @@ -1,4 +1,4 @@ -# libxml.m4 serial 3 (gettext-0.16.2) +# libxml.m4 serial 4 (gettext-0.16.2) dnl Copyright (C) 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -137,11 +137,27 @@ AC_DEFUN([gl_LIBXML], LIBXML_H="$LIBXML_H libxml/xpath.h" LIBXML_H="$LIBXML_H libxml/xpathInternals.h" LIBXML_H="$LIBXML_H libxml/xpointer.h" - AC_CHECK_HEADERS([arpa/inet.h arpa/nameser.h ctype.h dlfcn.h dl.h errno.h \ + AC_CHECK_HEADERS([arpa/inet.h ctype.h dlfcn.h dl.h errno.h \ fcntl.h float.h limits.h malloc.h math.h netdb.h \ - netinet/in.h resolv.h signal.h stdlib.h string.h \ + netinet/in.h signal.h stdlib.h string.h \ strings.h sys/select.h sys/socket.h sys/stat.h \ sys/time.h sys/types.h time.h unistd.h]) + AC_CHECK_HEADERS([arpa/nameser.h] [], [], [ + #if HAVE_SYS_TYPES_H + # include + #endif + ]) + AC_CHECK_HEADERS([resolv.h], [], [], [ + #if HAVE_SYS_TYPES_H + # include + #endif + #if HAVE_NETINET_IN_H + # include + #endif + #if HAVE_ARPA_NAMESER_H + # include + #endif + ]) AC_CHECK_FUNCS([dlopen getaddrinfo localtime shlload stat _stat strftime]) dnl This relies on the va_copy replacement from the stdarg module. AC_DEFINE([VA_COPY], [va_copy],