Ensure automatic ordering between gl_LOCK and gl_ARGP.
authorBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2006 13:01:13 +0000 (13:01 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 11 Jan 2006 13:01:13 +0000 (13:01 +0000)
ChangeLog
gnulib-tool
m4/ChangeLog
m4/lock.m4

index aa43583f55bbc33af332268fe99911de8c72f30a..1ec9704922139d1d03e30a50e4e9dea07b9cb8b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-01-08  Bruno Haible  <bruno@clisp.org>
+
+       Ensure automatic ordering between gl_LOCK and gl_ARGP.
+       * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
+       the "early" section as well.
+
 2006-01-08  Bruno Haible  <bruno@clisp.org>
 
        * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
index 72d23713382c891cf7cce3213dfac2a766994b15..0a1515239694f0537540c52a5c984ab386b25446 100755 (executable)
@@ -13,8 +13,8 @@
 # GNU General Public License for more details.
 #
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 #
 
 # This program is meant for authors or maintainers which want to import
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2006-01-11 12:59:02 $'
+cvsdatestamp='$Date: 2006-01-11 13:01:13 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 
@@ -1261,6 +1261,9 @@ func_import ()
     if grep gl_USE_SYSTEM_EXTENSIONS "$destdir"/$m4base/*.m4 > /dev/null; then
       echo "  AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])"
     fi
+    if grep gl_LOCK "$destdir"/$m4base/*.m4 > /dev/null; then
+      echo "  AC_REQUIRE([gl_LOCK])"
+    fi
     echo "])"
     echo
     echo "# This macro should be invoked from $configure_ac, in the section"
@@ -1482,6 +1485,10 @@ func_create_testdir ()
        echo "gl_USE_SYSTEM_EXTENSIONS"
        echo
      fi
+     if grep gl_LOCK "$testdir"/m4/*.m4 > /dev/null; then
+       echo "gl_LOCK"
+       echo
+     fi
      if test -z "$libtool"; then
        echo "AM_CONDITIONAL([GL_COND_LIBTOOL], [false])"
      else
@@ -1555,6 +1562,10 @@ func_create_testdir ()
      echo "gl_USE_SYSTEM_EXTENSIONS"
      echo
    fi
+   if grep gl_LOCK "$testdir"/m4/*.m4 > /dev/null; then
+     echo "gl_LOCK"
+     echo
+   fi
    if test -z "$libtool"; then
      echo "AM_CONDITIONAL([GL_COND_LIBTOOL], [false])"
    else
index aba416d1cfef203e9560c198f88b17d4bfaa8b1c..8840d604799a479bd90b0ab45170f9dd6a159641 100644 (file)
@@ -1,3 +1,9 @@
+2006-01-08  Bruno Haible  <bruno@clisp.org>
+
+       Ensure automatic ordering between gl_LOCK and gl_ARGP.
+       * lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
+       (gl_LOCK): New macro, requiring gl_LOCK_BODY.
+
 2006-01-10  Jim Meyering  <jim@meyering.net>
 
        * fpending.m4: Also include <stdio.h>, for Dragonfly.
index 0aff3fada2bf0d759915ea331a8de273c3668656..d1ea1ca83f5e8c50aa51dccdd4640a1037c02603 100644 (file)
@@ -1,4 +1,4 @@
-# lock.m4 serial 1 (gettext-0.15)
+# lock.m4 serial 2 (gettext-0.15)
 dnl Copyright (C) 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,
@@ -20,6 +20,13 @@ dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for
 dnl multithread-safe programs.
 
 AC_DEFUN([gl_LOCK],
+[
+  AC_REQUIRE([gl_LOCK_BODY])
+])
+
+dnl The guts of gl_LOCK. Needs to be expanded only once.
+
+AC_DEFUN([gl_LOCK_BODY],
 [
   dnl Ordering constraints: This macro modifies CPPFLAGS in a way that
   dnl influences the result of the autoconf tests that test for *_unlocked