gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
authorEric Blake <ebb9@byu.net>
Wed, 21 Jan 2009 16:55:55 +0000 (09:55 -0700)
committerEric Blake <ebb9@byu.net>
Wed, 21 Jan 2009 16:55:55 +0000 (09:55 -0700)
* gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
and rely solely on gl_USE_SYSTEM_EXTENSIONS.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
gnulib-tool

index af6bee5..7b7c8bd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-21  Eric Blake  <ebb9@byu.net>
+
+       gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
+       * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
+       obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
+       and rely solely on gl_USE_SYSTEM_EXTENSIONS.
+
 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
 
        Revert:
index c11ef35..c6725d3 100755 (executable)
@@ -3378,9 +3378,6 @@ s,//*$,/,'
     if test -n "$uses_subdirs"; then
       echo "  AC_REQUIRE([AM_PROG_CC_C_O])"
     fi
-    if grep AC_GNU_SOURCE "$destdir"/$m4base/*.m4 >/dev/null 2>/dev/null; then
-      echo "  AC_REQUIRE([AC_GNU_SOURCE])"
-    fi
     for module in $final_modules; do
       func_verify_module
       if test -n "$module"; then
@@ -3919,10 +3916,6 @@ func_create_testdir ()
      echo "AC_PROG_MAKE_SET"
      echo "AC_PROG_RANLIB"
      echo
-     if grep AC_GNU_SOURCE "$testdir/$m4base"/*.m4 >/dev/null 2>/dev/null; then
-       echo "AC_GNU_SOURCE"
-       echo
-     fi
      for module in $modules; do
        func_verify_module
        if test -n "$module"; then
@@ -4052,10 +4045,6 @@ func_create_testdir ()
      echo "AM_PROG_CC_C_O"
      echo
    fi
-   if grep AC_GNU_SOURCE "$testdir/$m4base"/*.m4 >/dev/null 2>/dev/null; then
-     echo "AC_GNU_SOURCE"
-     echo
-   fi
    for module in $modules; do
      func_verify_nontests_module
      if test -n "$module"; then