]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
authorChristian Weisgerber <naddy@mips.inka.de>
Thu, 1 Jul 2010 09:09:49 +0000 (11:09 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Aug 2010 20:58:33 +0000 (22:58 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/fcntl-o.m4

index f714e7dfcead101858ea2d0765185bdb4a366090..3a5c0cb8a2bd85b7595d0037dde5b4cf8092d827 100644 (file)
@@ -1,3 +1,10 @@
+2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
+
+       Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
+       * fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
+       not present (i.e. with autoconf 2.59 and when using gettextize, not
+       gnulib), require AC_GNU_SOURCE instead.
+
 2010-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        Avoid double-quotes inside backquote inside double-quote.
index d416a61c859d4731ed384031ac725c6ee1072d35..1adacc8ab7898d257a6900c435dfe653af26fb8e 100644 (file)
@@ -1,4 +1,4 @@
-# fcntl-o.m4 serial 1
+# fcntl-o.m4 serial 2
 dnl Copyright (C) 2006, 2009-2010 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,7 +12,11 @@ dnl Written by Paul Eggert.
 AC_DEFUN([gl_FCNTL_O_FLAGS],
 [
   dnl Persuade glibc <fcntl.h> to define O_NOATIME and O_NOFOLLOW.
-  AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
+  dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes
+  dnl AC_GNU_SOURCE.
+  m4_ifdef([AC_USE_SYSTEM_EXTENSIONS],
+    [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])],
+    [AC_REQUIRE([AC_GNU_SOURCE])])
   AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h],
     [AC_RUN_IFELSE(
        [AC_LANG_PROGRAM(