+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-06-23 Bruno Haible <bruno@clisp.org>
* gettext.m4 (gt_INTL_SUBDIR_CORE): Check for argz_* functions,
-# 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,
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