From: Bruno Haible Date: Mon, 9 Jan 2006 13:20:01 +0000 (+0000) Subject: Support for Linux libc4 and libc5. X-Git-Tag: cvs-readonly~2676 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=2ff71f3d4399cc986c16da1fecfbd204df8ad871;p=gnulib.git Support for Linux libc4 and libc5. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 00f074a40..ab6e1a968 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2005-10-16 Bruno Haible + + * stdint_.h: On Linux libc4 and libc5, include and + don't define _STDINT_H_NEED_SIGNED_INT_TYPES. + 2006-01-04 Paul Eggert * strftime.c (tzname): Don't declare if it is already #defined. diff --git a/lib/stdint_.h b/lib/stdint_.h index 2d3eaffd2..f7d037c25 100644 --- a/lib/stdint_.h +++ b/lib/stdint_.h @@ -33,6 +33,12 @@ #if defined(__FreeBSD__) # include #endif +#if defined(__linux__) && HAVE_SYS_BITYPES_H + /* Linux libc4 >= 4.6.7 and libc5 have a that defines + int{8,16,32,64}_t and __BIT_TYPES_DEFINED__. In libc5 >= 5.2.2 it is + included by . */ +# include +#endif #if defined(__sun) && HAVE_SYS_INTTYPES_H # include /* Solaris 7 has the types except the *_fast*_t types, and @@ -48,7 +54,7 @@ UINTPTR_MAX, PTRDIFF_MIN, PTRDIFF_MAX. */ # define _STDINT_H_HAVE_SYSTEM_INTTYPES #endif -#if !(defined(UNIX_CYGWIN32) && defined(__BIT_TYPES_DEFINED__)) +#if !((defined(UNIX_CYGWIN32) || defined(__linux__)) && defined(__BIT_TYPES_DEFINED__)) # define _STDINT_H_NEED_SIGNED_INT_TYPES #endif diff --git a/m4/ChangeLog b/m4/ChangeLog index c9c0fbbe3..c42d39bac 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2005-10-16 Bruno Haible + + * stdint.m4 (gl_STDINT_H): Also test for . + 2005-12-16 Jim Meyering * fprintftime.m4: New file. diff --git a/m4/stdint.m4 b/m4/stdint.m4 index 4875752de..d4a6994c4 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -1,4 +1,4 @@ -# stdint.m4 serial 4 +# stdint.m4 serial 5 dnl Copyright (C) 2001-2002, 2004-2005 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,6 +12,8 @@ AC_DEFUN([gl_STDINT_H], AC_REQUIRE([gt_HEADER_INTTYPES_H]) dnl Check for . AC_CHECK_HEADERS([sys/inttypes.h]) +dnl Check for (used in Linux libc4 >= 4.6.7 and libc5). +AC_CHECK_HEADERS([sys/bitypes.h]) AC_MSG_CHECKING([for stdint.h]) AC_CACHE_VAL(gl_cv_header_stdint_h, [