Fix an incorrect estimation of the sprintf result size.
[gnulib.git] / m4 / lock.m4
index a9415dd..d1ea1ca 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,
@@ -21,6 +21,13 @@ 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
   dnl declarations, on AIX 5 at least. Therefore it must come early.
@@ -264,7 +271,7 @@ dnl IRIX 6.5          posix       -lpthread       Y      0.5
 dnl
 dnl AIX 4.3,5.1       posix       -lpthread       N      AIX 4: 0.5; AIX 5: OK
 dnl
-dnl OSF/1 4.0,5.1     posix       -pthread (cc)   Y      OK
+dnl OSF/1 4.0,5.1     posix       -pthread (cc)   N      OK
 dnl                               -lpthread (gcc) Y
 dnl
 dnl Cygwin            posix       -lpthread       Y      OK