summaryrefslogtreecommitdiff
path: root/m4/lock.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-08-23 12:04:46 +0000
committerBruno Haible <bruno@clisp.org>2006-08-23 12:04:46 +0000
commit8e85589bab727fedc08be06d9c3eec5a04abce99 (patch)
tree5284ade20b0b36331dacff891e07c7716a7d9de8 /m4/lock.m4
parent0af1a00c97ad7804d9d69d1d875a775b8182f067 (diff)
downloadgnulib-8e85589bab727fedc08be06d9c3eec5a04abce99.tar.gz
Separate the "early" and the "normal" part of the macro.
Diffstat (limited to 'm4/lock.m4')
-rw-r--r--m4/lock.m413
1 files changed, 9 insertions, 4 deletions
diff --git a/m4/lock.m4 b/m4/lock.m4
index d1ea1ca83f..2e8b1ffcc6 100644
--- a/m4/lock.m4
+++ b/m4/lock.m4
@@ -1,5 +1,5 @@
-# lock.m4 serial 2 (gettext-0.15)
-dnl Copyright (C) 2005 Free Software Foundation, Inc.
+# lock.m4 serial 3 (gettext-0.15.1)
+dnl Copyright (C) 2005-2006 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.
@@ -19,12 +19,12 @@ dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread".
dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for
dnl multithread-safe programs.
-AC_DEFUN([gl_LOCK],
+AC_DEFUN([gl_LOCK_EARLY],
[
AC_REQUIRE([gl_LOCK_BODY])
])
-dnl The guts of gl_LOCK. Needs to be expanded only once.
+dnl The guts of gl_LOCK_EARLY. Needs to be expanded only once.
AC_DEFUN([gl_LOCK_BODY],
[
@@ -227,6 +227,11 @@ int x = (int)PTHREAD_MUTEX_RECURSIVE;
AC_SUBST(LTLIBTHREAD)
AC_SUBST(LIBMULTITHREAD)
AC_SUBST(LTLIBMULTITHREAD)
+])
+
+AC_DEFUN([gl_LOCK],
+[
+ AC_REQUIRE([gl_LOCK_EARLY])
gl_PREREQ_LOCK
])