Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
authorEric Blake <ebb9@byu.net>
Wed, 12 Sep 2007 15:59:57 +0000 (15:59 +0000)
committerEric Blake <ebb9@byu.net>
Wed, 12 Sep 2007 15:59:57 +0000 (15:59 +0000)
* m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
Autoconf definition.
* modules/euidaccess (Depends-on): Add extensions, for
AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
* modules/fnmatch (Depends-on): Likewise.
* modules/getaddrinfo (Depends-on): Likewise.
* modules/getdelim (Depends-on): Likewise.
* modules/getline (Depends-on): Likewise.
* modules/getsubopt (Depends-on): Likewise.
* modules/gettext (Depends-on): Likewise.
* modules/group-member (Depends-on): Likewise.
* modules/mbchar (Depends-on): Likewise.
* modules/memmem (Depends-on): Likewise.
* modules/mempcpy (Depends-on): Likewise.
* modules/memrchr (Depends-on): Likewise.
* modules/pagealign_alloc (Depends-on): Likewise.
* modules/readutmp (Depends-on): Likewise.
* modules/stpcpy (Depends-on): Likewise.
* modules/stpncpy (Depends-on): Likewise.
* modules/strchrnul (Depends-on): Likewise.
* modules/strndup (Depends-on): Likewise.
* modules/strsep (Depends-on): Likewise.
* modules/strverscmp (Depends-on): Likewise.
* modules/vasprintf (Depends-on): Likewise.
* modules/wcwidth (Depends-on): Likewise.
* m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
* m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
* m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
* m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
* m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
* m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
* m4/mbchar.m4 (gl_MBCHAR): Likewise.
* m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
* m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
* m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
* m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
* m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
* m4/readutmp.m4 (gl_READUTMP): Likewise.
* m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
* m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
* m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
* m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
* m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
* m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
* m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
* m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
* m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
* m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
* m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
so that lock.m4 can be used in gettext without extensions module.

50 files changed:
ChangeLog
m4/euidaccess.m4
m4/extensions.m4
m4/fnmatch.m4
m4/getaddrinfo.m4
m4/getdelim.m4
m4/getline.m4
m4/getsubopt.m4
m4/glob.m4
m4/group-member.m4
m4/lock.m4
m4/mbchar.m4
m4/memmem.m4
m4/mempcpy.m4
m4/memrchr.m4
m4/mmap-anon.m4
m4/pagealign_alloc.m4
m4/readutmp.m4
m4/regex.m4
m4/stpcpy.m4
m4/stpncpy.m4
m4/strchrnul.m4
m4/strndup.m4
m4/strnlen.m4
m4/strsep.m4
m4/strverscmp.m4
m4/vasprintf.m4
m4/wcwidth.m4
modules/euidaccess
modules/fnmatch
modules/getaddrinfo
modules/getdelim
modules/getline
modules/getsubopt
modules/gettext
modules/group-member
modules/mbchar
modules/memmem
modules/mempcpy
modules/memrchr
modules/pagealign_alloc
modules/readutmp
modules/stpcpy
modules/stpncpy
modules/strchrnul
modules/strndup
modules/strsep
modules/strverscmp
modules/vasprintf
modules/wcwidth

index 23ecef924b58d0e00930a4ba3d8886f9f58d9383..f662535dedd4e27a83b4f35e5f924a589e05d03a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,60 @@
+2007-09-12  Eric Blake  <ebb9@byu.net>
+
+       Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
+       * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
+       Autoconf definition.
+       * modules/euidaccess (Depends-on): Add extensions, for
+       AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
+       * modules/fnmatch (Depends-on): Likewise.
+       * modules/getaddrinfo (Depends-on): Likewise.
+       * modules/getdelim (Depends-on): Likewise.
+       * modules/getline (Depends-on): Likewise.
+       * modules/getsubopt (Depends-on): Likewise.
+       * modules/gettext (Depends-on): Likewise.
+       * modules/group-member (Depends-on): Likewise.
+       * modules/mbchar (Depends-on): Likewise.
+       * modules/memmem (Depends-on): Likewise.
+       * modules/mempcpy (Depends-on): Likewise.
+       * modules/memrchr (Depends-on): Likewise.
+       * modules/pagealign_alloc (Depends-on): Likewise.
+       * modules/readutmp (Depends-on): Likewise.
+       * modules/stpcpy (Depends-on): Likewise.
+       * modules/stpncpy (Depends-on): Likewise.
+       * modules/strchrnul (Depends-on): Likewise.
+       * modules/strndup (Depends-on): Likewise.
+       * modules/strsep (Depends-on): Likewise.
+       * modules/strverscmp (Depends-on): Likewise.
+       * modules/vasprintf (Depends-on): Likewise.
+       * modules/wcwidth (Depends-on): Likewise.
+       * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
+       obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
+       * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
+       * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
+       * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
+       * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
+       * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
+       * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
+       * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
+       * m4/mbchar.m4 (gl_MBCHAR): Likewise.
+       * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
+       * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
+       * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
+       * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
+       * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
+       * m4/readutmp.m4 (gl_READUTMP): Likewise.
+       * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
+       * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
+       * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
+       * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
+       * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
+       * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
+       * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
+       * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
+       * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
+       * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
+       * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
+       so that lock.m4 can be used in gettext without extensions module.
+
 2007-09-11  Bruno Haible  <bruno@clisp.org>
 
        * m4/isc-posix.m4: Remove file.
index 9edb4b34a59ad53b6e297426df3df83c61ca33f1..7690a14315293da5a2c65b0c443e7aa839d3404b 100644 (file)
@@ -1,5 +1,5 @@
-# euidaccess.m4 serial 7
-dnl Copyright (C) 2002-2006 Free Software Foundation, Inc.
+# euidaccess.m4 serial 8
+dnl Copyright (C) 2002-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_NONREENTRANT_EUIDACCESS],
 AC_DEFUN([gl_FUNC_EUIDACCESS],
 [
   dnl Persuade glibc <unistd.h> to declare euidaccess().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_CHECK_DECLS_ONCE([euidaccess])
   AC_REPLACE_FUNCS(euidaccess)
index 143a9e5403b9a67dd3c44076c5843fb2696e955e..bcbb3ceee2c30bd23176dcd1e55af74185b7ec1b 100644 (file)
@@ -1,14 +1,14 @@
-# serial 4  -*- Autoconf -*-
+# serial 5  -*- Autoconf -*-
 # Enable extensions on systems that normally disable them.
 
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
 # with or without modifications, as long as this notice is preserved.
 
 # This definition of AC_USE_SYSTEM_EXTENSIONS is stolen from CVS
 # Autoconf.  Perhaps we can remove this once we can assume Autoconf
-# 2.61 or later everywhere, but since CVS Autoconf mutates rapidly
+# 2.62 or later everywhere, but since CVS Autoconf mutates rapidly
 # enough in this area it's likely we'll need to redefine
 # AC_USE_SYSTEM_EXTENSIONS for quite some time.
 
 # ------------------------
 # Enable extensions on systems that normally disable them,
 # typically due to standards-conformance issues.
+# Remember that #undef in AH_VERBATIM gets replaced with #define by
+# AC_DEFINE.  The goal here is to define all known feature-enabling
+# macros, then, if reports of conflicts are made, disable macros that
+# cause problems on some platforms (such as __EXTENSIONS__).
 AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
-[
-  AC_BEFORE([$0], [AC_COMPILE_IFELSE])
-  AC_BEFORE([$0], [AC_RUN_IFELSE])
+[AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl
+AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 
-  AC_REQUIRE([AC_GNU_SOURCE])
-  AC_REQUIRE([AC_AIX])
-  AC_REQUIRE([AC_MINIX])
+  AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=])
+  if test "$MINIX" = yes; then
+    AC_DEFINE([_POSIX_SOURCE], [1],
+      [Define to 1 if you need to in order for `stat' and other
+       things to work.])
+    AC_DEFINE([_POSIX_1_SOURCE], [2],
+      [Define to 2 if the system does not provide POSIX.1 features
+       except with this defined.])
+    AC_DEFINE([_MINIX], [1],
+      [Define to 1 if on MINIX.])
+  fi
 
   AH_VERBATIM([__EXTENSIONS__],
-[/* Enable extensions on Solaris.  */
-#ifndef __EXTENSIONS__
-# undef __EXTENSIONS__
+[/* Enable extensions on AIX 3, Interix.  */
+#ifndef _ALL_SOURCE
+# undef _ALL_SOURCE
+#endif
+/* Enable GNU extensions on systems that have them.  */
+#ifndef _GNU_SOURCE
+# undef _GNU_SOURCE
 #endif
+/* Enable threading extensions on Solaris.  */
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # undef _POSIX_PTHREAD_SEMANTICS
 #endif
+/* Enable extensions on HP NonStop.  */
 #ifndef _TANDEM_SOURCE
 # undef _TANDEM_SOURCE
-#endif])
+#endif
+/* Enable general extensions on Solaris.  */
+#ifndef __EXTENSIONS__
+# undef __EXTENSIONS__
+#endif
+])
   AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
     [ac_cv_safe_to_define___extensions__],
     [AC_COMPILE_IFELSE(
@@ -46,9 +68,11 @@ AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS],
        [ac_cv_safe_to_define___extensions__=no])])
   test $ac_cv_safe_to_define___extensions__ = yes &&
     AC_DEFINE([__EXTENSIONS__])
+  AC_DEFINE([_ALL_SOURCE])
+  AC_DEFINE([_GNU_SOURCE])
   AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
   AC_DEFINE([_TANDEM_SOURCE])
-])
+])# AC_USE_SYSTEM_EXTENSIONS
 
 # gl_USE_SYSTEM_EXTENSIONS
 # ------------------------
index 34eb3d91c95ffc02cdcf3575d30fdd949717b7ee..495cbf940efecd6367d3a3f81a0eecfac0fb2697 100644 (file)
@@ -1,4 +1,4 @@
-# Check for fnmatch.
+# Check for fnmatch - serial 2.
 
 # Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
 # Foundation, Inc.
@@ -110,7 +110,7 @@ AC_DEFUN([gl_FUNC_FNMATCH_POSIX],
 AC_DEFUN([gl_FUNC_FNMATCH_GNU],
 [
   dnl Persuade glibc <fnmatch.h> to declare FNM_CASEFOLD etc.
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   FNMATCH_H=
   _AC_FUNC_FNMATCH_IF([GNU], [ac_cv_func_fnmatch_gnu],
index 4a1e09f7758d64695309b3754fc6ee7775fdf694..7be1e490ae68f96f83577a745404abce79a1b408 100644 (file)
@@ -1,4 +1,4 @@
-# getaddrinfo.m4 serial 12
+# getaddrinfo.m4 serial 13
 dnl Copyright (C) 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -81,7 +81,7 @@ AC_DEFUN([gl_PREREQ_GETADDRINFO], [
   AC_REQUIRE([gl_SOCKET_FAMILIES])
   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
   AC_REQUIRE([AC_C_INLINE])
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
   AC_CHECK_HEADERS_ONCE(netinet/in.h netdb.h)
   AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo],,,[
   /* sys/types.h is not needed according to POSIX, but the
index 7f6e3b41f70245e72ccee73a4870704f4c3f9a3f..d81be22a728de2dcc318999a8f37d91d6be4cfbc 100644 (file)
@@ -1,4 +1,4 @@
-# getdelim.m4 serial 3
+# getdelim.m4 serial 4
 
 dnl Copyright (C) 2005, 2006, 2007 Free Software dnl Foundation, Inc.
 dnl
@@ -13,7 +13,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
 
   dnl Persuade glibc <stdio.h> to declare getdelim().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REPLACE_FUNCS([getdelim])
   AC_CHECK_DECLS_ONCE([getdelim])
index 11949b71ccec89d6c41e80a2f6e4c1e245cd0a5b..afd77669ad47526bf0386687a3ec6935f043811a 100644 (file)
@@ -1,4 +1,4 @@
-# getline.m4 serial 16
+# getline.m4 serial 17
 
 dnl Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 Free
 dnl Software Foundation, Inc.
@@ -18,7 +18,7 @@ AC_DEFUN([gl_FUNC_GETLINE],
   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
 
   dnl Persuade glibc <stdio.h> to declare getline().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_CHECK_DECLS_ONCE([getline])
 
index a390a939f8b5116bab9a452e28c328b3d58cc986..2c52c754d38a1f3aaba44dc0e43dcdef7a082351 100644 (file)
@@ -1,4 +1,4 @@
-# getsubopt.m4 serial 3
+# getsubopt.m4 serial 4
 dnl Copyright (C) 2004, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_GETSUBOPT],
 [
   dnl Persuade glibc <stdlib.h> to declare getsubopt().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   AC_CHECK_FUNCS_ONCE([getsubopt])
index 061acd48185d234f1be965bd7813132b4683ac3a..1b4c97649df87406df947d6c5b25549e01b90dc2 100644 (file)
@@ -1,4 +1,4 @@
-# glob.m4 serial 8
+# glob.m4 serial 9
 dnl Copyright (C) 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -74,7 +74,7 @@ AC_DEFUN([gl_PREREQ_GLOB],
 [
   AC_REQUIRE([gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE])dnl
   AC_REQUIRE([AC_C_RESTRICT])dnl
-  AC_REQUIRE([AC_GNU_SOURCE])dnl
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])dnl
   AC_CHECK_HEADERS_ONCE([sys/cdefs.h unistd.h])dnl
   if test $ac_cv_header_sys_cdefs_h = yes; then
     HAVE_SYS_CDEFS_H=1
index 6f2f57e9740ea8e9fcc53d44d7b4bb19aaa23f75..56714912ba25a66e73d808227c2e5298aabe7ba2 100644 (file)
@@ -1,6 +1,6 @@
-#serial 10
+#serial 11
 
-# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2006 Free Software
+# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 Free Software
 # Foundation, Inc.
 
 # This file is free software; the Free Software Foundation
@@ -12,7 +12,7 @@ dnl Written by Jim Meyering
 AC_DEFUN([gl_FUNC_GROUP_MEMBER],
 [
   dnl Persuade glibc <unistd.h> to declare group_member().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   dnl Do this replacement check manually because I want the hyphen
   dnl (not the underscore) in the filename.
index 0224f2ff870a1dc6650a2ab8d327b6a5c6cc7f38..1bf3abb003457bd3f4a3c12951f62eb853c8a9ae 100644 (file)
@@ -1,5 +1,5 @@
-# lock.m4 serial 6 (gettext-0.16)
-dnl Copyright (C) 2005-2006 Free Software Foundation, Inc.
+# lock.m4 serial 7 (gettext-0.16)
+dnl Copyright (C) 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -35,7 +35,7 @@ AC_DEFUN([gl_LOCK_EARLY_BODY],
   AC_BEFORE([$0], [gl_ARGP])dnl
 
   AC_REQUIRE([AC_CANONICAL_HOST])
-  AC_REQUIRE([AC_GNU_SOURCE]) dnl needed for pthread_rwlock_t on glibc systems
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) dnl needed for pthread_rwlock_t on glibc systems
   dnl Check for multithreading.
   AC_ARG_ENABLE(threads,
 AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API])
@@ -257,6 +257,14 @@ AC_DEFUN([gl_PREREQ_LOCK], [
   AC_REQUIRE([AC_C_INLINE])
 ])
 
+# AC_USE_SYSTEM_EXTENSIONS was only added in autoconf 2.60, but lock.m4
+# wants to work with autoconf 2.54.  Add a fallback until such time as
+# a newer autoconf is standard, if one is not already provided by gnulib
+# extensions.m4.
+m4_if(m4_version_compare(m4_PACKAGE_VERSION, [2.60]), [-1],
+      [m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],
+                 [AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], [AC_GNU_SOURCE])])])
+
 dnl Survey of platforms:
 dnl
 dnl Platform          Available   Compiler    Supports   test-lock
index 02f9effe0d25c644b23382ddd98a4f71d27a4b76..e73e2b4befbd553d4602205d824f8829d0546c6f 100644 (file)
@@ -1,4 +1,4 @@
-# mbchar.m4 serial 6
+# mbchar.m4 serial 7
 dnl Copyright (C) 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,5 +9,5 @@ dnl From Bruno Haible.
 
 AC_DEFUN([gl_MBCHAR],
 [
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 ])
index e6d40068e457317a3e5bce83d1cbe3686cff3c2b..e6a3da193c7aa17d3a4bc1b3d7922217cc5b81f4 100644 (file)
@@ -1,4 +1,4 @@
-# memmem.m4 serial 4
+# memmem.m4 serial 5
 dnl Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_MEMMEM],
 [
   dnl Persuade glibc <string.h> to declare memmem().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_REPLACE_FUNCS(memmem)
index 9e854e81ee0243e66c453e3df5e6e2a0b79d0e25..13293b556990b46c18a2ebe5b2521da1a38f3311 100644 (file)
@@ -1,4 +1,4 @@
-# mempcpy.m4 serial 7
+# mempcpy.m4 serial 8
 dnl Copyright (C) 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_MEMPCPY],
 [
   dnl Persuade glibc <string.h> to declare mempcpy().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   dnl The mempcpy() declaration in lib/string_.h uses 'restrict'.
   AC_REQUIRE([AC_C_RESTRICT])
index 69674ff4183ff439fb21f6fcd821d15e25c19e3d..8070d5fece2b3368e221fbdc6deabd668d105dec 100644 (file)
@@ -1,4 +1,4 @@
-# memrchr.m4 serial 7
+# memrchr.m4 serial 8
 dnl Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_MEMRCHR],
 [
   dnl Persuade glibc <string.h> to declare memrchr().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_CHECK_DECLS_ONCE([memrchr])
index fd8a5370b37ab9e71867d34148d8c505298c1358..13fbd3c491b51031ef5cae4c1ee6948b50bd932e 100644 (file)
@@ -1,5 +1,5 @@
-# mmap-anon.m4 serial 3
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# mmap-anon.m4 serial 4
+dnl Copyright (C) 2005, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -11,7 +11,7 @@ AC_DEFUN([gl_FUNC_MMAP_ANON],
   AC_REQUIRE([AC_PROG_EGREP])
 
   dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   # Check for mmap()
   AC_FUNC_MMAP
index 6fafef2099fe54ddb5f9c82a8ae9f43412b4e281..8c53d9d8a0cc9b3f251bf74fdd7173a316c34e98 100644 (file)
@@ -1,5 +1,5 @@
-#serial 3
-dnl Copyright (C) 2005, 2006 Free Software Foundation, Inc.
+#serial 4
+dnl Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_PAGEALIGN_ALLOC],
 [
   dnl Persuade glibc <sys/mman.h> to define MAP_ANONYMOUS.
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_LIBOBJ([pagealign_alloc])
   gl_PREREQ_PAGEALIGN_ALLOC
index 2e520cd70cae0aa78022812896f629c086314b18..eb6369f4f1279330b86e1f5b6c27ad6ba7e724d5 100644 (file)
@@ -1,4 +1,4 @@
-# readutmp.m4 serial 13
+# readutmp.m4 serial 14
 dnl Copyright (C) 2002-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_READUTMP],
 [
   dnl Persuade utmpx.h to declare utmpxname
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_CHECK_HEADERS_ONCE(utmp.h utmpx.h)
   if test $ac_cv_header_utmp_h = yes || test $ac_cv_header_utmpx_h = yes; then
index bde74ea5e70499137ea8c650f5d11ae27ba7034b..7da6efedd10f771805a7cf23c0be6585c2262ac9 100644 (file)
@@ -1,4 +1,4 @@
-#serial 47
+#serial 48
 
 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 # 2006, 2007 Free Software Foundation, Inc.
@@ -215,7 +215,7 @@ AC_DEFUN([gl_REGEX],
 # Prerequisites of lib/regex.c and lib/regex_internal.c.
 AC_DEFUN([gl_PREREQ_REGEX],
 [
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
   AC_REQUIRE([AC_C_RESTRICT])
   AC_CHECK_FUNCS_ONCE([isblank iswctype mbrtowc wcrtomb wcscoll])
   AC_CHECK_DECLS([isblank], [], [], [#include <ctype.h>])
index c48aa9c3a82004c128a4c42bc48635ed6730ddef..bef09ed06047131a63e65294d8c8682d014d68c8 100644 (file)
@@ -1,4 +1,4 @@
-# stpcpy.m4 serial 4
+# stpcpy.m4 serial 5
 dnl Copyright (C) 2002, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STPCPY],
 [
   dnl Persuade glibc <string.h> to declare stpcpy().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   dnl The stpcpy() declaration in lib/string_.h uses 'restrict'.
   AC_REQUIRE([AC_C_RESTRICT])
index aad037550438d7cb45c4dd221f3fe362c12e3c0e..21771321b77f43d51843da4af009bf560e8555c2 100644 (file)
@@ -1,4 +1,4 @@
-# stpncpy.m4 serial 7
+# stpncpy.m4 serial 8
 dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STPNCPY],
 [
   dnl Persuade glibc <string.h> to declare stpncpy().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   dnl The stpncpy() declaration in lib/string_.h uses 'restrict'.
   AC_REQUIRE([AC_C_RESTRICT])
index fec2a10d96b1d954f0694c2d02cb1ef417a9c3b9..7c1273aa8c123a1e9faca67ade5767d8d74ad6b4 100644 (file)
@@ -1,4 +1,4 @@
-# strchrnul.m4 serial 5
+# strchrnul.m4 serial 6
 dnl Copyright (C) 2003, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRCHRNUL],
 [
   dnl Persuade glibc <string.h> to declare strchrnul().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_REPLACE_FUNCS(strchrnul)
index baa6c03b8c943a37163d916cde808f21518e8650..f7934ef820a21a18a09e6dfe6f202813e065d47f 100644 (file)
@@ -1,4 +1,4 @@
-# strndup.m4 serial 13
+# strndup.m4 serial 14
 dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRNDUP],
 [
   dnl Persuade glibc <string.h> to declare strndup().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_CHECK_DECLS_ONCE([strndup])
@@ -19,7 +19,7 @@ AC_DEFUN([gl_FUNC_STRNDUP],
   AC_CACHE_CHECK([for working strndup], gl_cv_func_strndup,
     [AC_RUN_IFELSE([
        AC_LANG_PROGRAM([#include <string.h>
-                       #include <stdlib.h>], [[
+                       #include <stdlib.h>], [[
 #ifndef HAVE_DECL_STRNDUP
   extern char *strndup (const char *, size_t);
 #endif
index 0e2815b90e8d248f66b2925211e5ccdaa3b63c6c..d8307eda4acc8ab1e3ea35d0897e5d4313e838c5 100644 (file)
@@ -1,4 +1,4 @@
-# strnlen.m4 serial 8
+# strnlen.m4 serial 9
 dnl Copyright (C) 2002-2003, 2005-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRNLEN],
 [
   dnl Persuade glibc <string.h> to declare strnlen().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gl_HEADER_STRING_H_DEFAULTS])
   AC_CHECK_DECLS_ONCE([strnlen])
@@ -17,7 +17,7 @@ AC_DEFUN([gl_FUNC_STRNLEN],
 
   AC_FUNC_STRNLEN
   if test $ac_cv_func_strnlen_working = no; then
-    # This is necessary because automake-1.6.1 doens't understand
+    # This is necessary because automake-1.6.1 doesn't understand
     # that the above use of AC_FUNC_STRNLEN means we may have to use
     # lib/strnlen.c.
     #AC_LIBOBJ(strnlen)
index 0abbf089ce9d934ff564fc659d776b80de4d85a0..acbd8d1c00b24ab5055b47541182df9be377e51c 100644 (file)
@@ -1,4 +1,4 @@
-# strsep.m4 serial 6
+# strsep.m4 serial 7
 dnl Copyright (C) 2002, 2003, 2004, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRSEP],
 [
   dnl Persuade glibc <string.h> to declare strsep().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   dnl The strsep() declaration in lib/string_.h uses 'restrict'.
   AC_REQUIRE([AC_C_RESTRICT])
index ab20c1809de605eaa815f9479ebaaf07ec67b93d..5f01ba9e5b63135a39bc2ac841d8dec223e7b96c 100644 (file)
@@ -1,5 +1,5 @@
-# strverscmp.m4 serial 4
-dnl Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
+# strverscmp.m4 serial 5
+dnl Copyright (C) 2002, 2005, 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
@@ -7,7 +7,7 @@ dnl with or without modifications, as long as this notice is preserved.
 AC_DEFUN([gl_FUNC_STRVERSCMP],
 [
   dnl Persuade glibc <string.h> to declare strverscmp().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REPLACE_FUNCS(strverscmp)
   if test $ac_cv_func_strverscmp = no; then
index 4f0c79a71a7064e709055dfdee9e35cd671ee1d5..074b03cf721c24f711877409377e45e46813c8aa 100644 (file)
@@ -1,4 +1,4 @@
-# vasprintf.m4 serial 5
+# vasprintf.m4 serial 6
 dnl Copyright (C) 2002-2003, 2006-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,7 +31,7 @@ AC_DEFUN([gl_REPLACE_VASPRINTF],
 AC_DEFUN([gl_PREREQ_VASPRINTF_H],
 [
   dnl Persuade glibc <stdio.h> to declare asprintf() and vasprintf().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 ])
 
 # Prerequisites of lib/vasprintf.c.
index a260998a8b07c7e11504468df07de73f662e4f5a..df7919bd73d83d3fb4f1154d67e58231894532ea 100644 (file)
@@ -1,4 +1,4 @@
-# wcwidth.m4 serial 11
+# wcwidth.m4 serial 12
 dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,7 @@ AC_DEFUN([gl_FUNC_WCWIDTH],
   AC_REQUIRE([gl_WCHAR_H_DEFAULTS])
 
   dnl Persuade glibc <wchar.h> to declare wcwidth().
-  AC_REQUIRE([AC_GNU_SOURCE])
+  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
 
   AC_REQUIRE([gt_TYPE_WCHAR_T])
   AC_REQUIRE([gt_TYPE_WINT_T])
index 66cfdd805c88f7aebd29a99610008a1fc446bc5e..d1bd3e13d431319c20ae186943b620d03dda51bb 100644 (file)
@@ -7,6 +7,7 @@ lib/euidaccess.c
 m4/euidaccess.m4
 
 Depends-on:
+extensions
 group-member
 sys_stat
 
index c8abf8936a9e882c97d11a03f2d26a8a203f5240..79ffc0a84ebf0c9c77fc30dd127a341329987a83 100644 (file)
@@ -9,6 +9,7 @@ m4/mbstate_t.m4
 m4/fnmatch.m4
 
 Depends-on:
+extensions
 alloca
 stdbool
 wchar
index 5d6a3dc895ab49d0a57f33f1cb482e43a61c5473..b9964655ead975a211e5636cf5873d793b6e5fe8 100644 (file)
@@ -8,6 +8,7 @@ lib/gai_strerror.c
 m4/getaddrinfo.m4
 
 Depends-on:
+extensions
 gettext-h
 inet_ntop
 snprintf
index 19ca193c7ffa06d3b0907cce83ad1ac6acfa861d..a9b7b2e388c43073ea5026738451f4471c711570 100644 (file)
@@ -6,6 +6,7 @@ lib/getdelim.c
 m4/getdelim.m4
 
 Depends-on:
+extensions
 stdio
 realloc-posix
 
index 82901293bd037474188e30cc915708969ec9b393..1fb9b9c22e0239246a8f988438b4878cff82da63 100644 (file)
@@ -6,6 +6,7 @@ lib/getline.c
 m4/getline.m4
 
 Depends-on:
+extensions
 getdelim
 stdio
 
index 52e5d9e87ed18c9a49bb4e8ab04f411fecbabc5d..bf72b065729e261722f4fd1861a2ddf07e3b6727 100644 (file)
@@ -6,6 +6,7 @@ lib/getsubopt.c
 m4/getsubopt.m4
 
 Depends-on:
+extensions
 strchrnul
 stdlib
 
index 4e1e682a06d479884011dab793f0189fb70f8ca6..83833e5756acad2b6892306ef660e8bb1c472336 100644 (file)
@@ -32,6 +32,7 @@ m4/xsize.m4
 build-aux/config.rpath
 
 Depends-on:
+extensions
 gettext-h
 havelib
 
index 6432a4fdc3f60fb9f08edcd21249dc1528cc309f..45c8bd5607234e32f89b5e81bf4a94f8da1d63c5 100644 (file)
@@ -7,6 +7,7 @@ lib/group-member.c
 m4/group-member.m4
 
 Depends-on:
+extensions
 xalloc
 stdbool
 
index ec3ed27f55ad45e9d363add58493119bbb964250..fcda4b77b1bd3d7e1629dd6f4ed5fe71671a8bda 100644 (file)
@@ -7,6 +7,7 @@ lib/mbchar.c
 m4/mbchar.m4
 
 Depends-on:
+extensions
 stdbool
 wchar
 wctype
index 847d5275886db6a38c7f707c48f9691b491acf2c..c51ee30939369ab1fb9f9a795faa21bc1ee7a295 100644 (file)
@@ -6,6 +6,7 @@ lib/memmem.c
 m4/memmem.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index ebb4613df8a1813559175c410c30d007d6f1e857..5fd8bdce87bad51a5b6aa58d81e93a990125e302 100644 (file)
@@ -6,6 +6,7 @@ lib/mempcpy.c
 m4/mempcpy.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index 54912ccb0b0342653ccc1c1559b47b203bd51225..3a6e982b68bc5344265096f1064c59eea2577997 100644 (file)
@@ -6,6 +6,7 @@ lib/memrchr.c
 m4/memrchr.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index 78e6d708cb74684a7318c287c51552ab49737aa3..1425b41658318b458cd4f6036751247923d784e9 100644 (file)
@@ -10,6 +10,7 @@ m4/pagealign_alloc.m4
 Depends-on:
 error
 exit
+extensions
 getpagesize
 gettext-h
 xalloc
index 8c4f84747db0f27c054f04bf4e6ab8ad483cb1a8..fd813be89c7edf69db32408bfe68bb4f656a29db 100644 (file)
@@ -7,6 +7,7 @@ lib/readutmp.c
 m4/readutmp.m4
 
 Depends-on:
+extensions
 xalloc
 free
 stdbool
index de70b1029281aaccd22201df039e830eb06d0a08..085397193e6bae59c551754ec053ae35bfc0f012 100644 (file)
@@ -6,6 +6,7 @@ lib/stpcpy.c
 m4/stpcpy.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index 6453c80943ffc0812f6bc88ae1ea70222381a983..48eedf71b155d8ab09910ae5ece18969663b3665 100644 (file)
@@ -6,6 +6,7 @@ lib/stpncpy.c
 m4/stpncpy.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index d79d63eb0229911c4812a1f6b0a38b0dc36779e9..806aebbe0ae8235b2c992c898f0fc67770d1a3dc 100644 (file)
@@ -6,6 +6,7 @@ lib/strchrnul.c
 m4/strchrnul.m4
 
 Depends-on:
+extensions
 string
 
 configure.ac:
index fad66a18d0029ee5980aa8636127733aa2702525..80f143bee56b4323a71947bd15cc541c5af9762a 100644 (file)
@@ -6,6 +6,7 @@ lib/strndup.c
 m4/strndup.m4
 
 Depends-on:
+extensions
 string
 strnlen
 
index 51ae226c7ca4788f6671ab60db39592cc2338471..10ca817a820c4d228eb6447c4b054253af286683 100644 (file)
@@ -6,6 +6,7 @@ lib/strsep.c
 m4/strsep.m4
 
 Depends-on:
+extensions
 string
 strpbrk
 
index df634803a42e99057e5bcc9d681236e9a82f5d3c..ad18c1f84a261c60c46dffda7a1ed9309813ab1d 100644 (file)
@@ -7,6 +7,7 @@ lib/strverscmp.c
 m4/strverscmp.m4
 
 Depends-on:
+extensions
 
 configure.ac:
 gl_FUNC_STRVERSCMP
index e57575e1d8e01b76a6438748d1e61326fe48c6dc..6ca71bd311f82af096ed0f281245bca3ca5ccb10 100644 (file)
@@ -7,6 +7,7 @@ lib/asprintf.c
 m4/vasprintf.m4
 
 Depends-on:
+extensions
 vasnprintf
 stdio
 
index 74743947e1ecc5f24144b46485859d47c80cf9fd..fe410f150fcd5e68c5baa7eb27268093fcaaf62f 100644 (file)
@@ -8,6 +8,7 @@ m4/wchar_t.m4
 m4/wint_t.m4
 
 Depends-on:
+extensions
 wchar
 wctype
 localcharset