X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Flock.m4;h=d1ea1ca83f5e8c50aa51dccdd4640a1037c02603;hb=376384bdbda5e64de9784274b19ac933dca336b9;hp=a9415ddbc314a4f98009c2fceb86af830de3065d;hpb=028f9adaeaf453e96aa5590bbc1a0fe651279be6;p=gnulib.git diff --git a/m4/lock.m4 b/m4/lock.m4 index a9415ddbc..d1ea1ca83 100644 --- a/m4/lock.m4 +++ b/m4/lock.m4 @@ -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