diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-03 23:24:07 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-11-03 23:24:07 +0000 |
commit | 80b4895f7a843205ccfc4b48017a6329d45f3580 (patch) | |
tree | 140b878f81fd81bccd5f10f753fdbee49a907d0d | |
parent | 2c0b64899bab810bf6521162beb74950a29a4336 (diff) | |
download | coreutils-80b4895f7a843205ccfc4b48017a6329d45f3580.tar.xz |
Sync from gnulib.
-rw-r--r-- | m4/uint32_t.m4 | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/m4/uint32_t.m4 b/m4/uint32_t.m4 index cfa515034..8a3f16de2 100644 --- a/m4/uint32_t.m4 +++ b/m4/uint32_t.m4 @@ -1,4 +1,4 @@ -# uint32_t.m4 serial 2 +# uint32_t.m4 serial 3 # Copyright (C) 2004 Free Software Foundation, Inc. @@ -27,13 +27,17 @@ AC_DEFUN([gl_AC_TYPE_UINT32_T], AC_COMPILE_IFELSE( [AC_LANG_BOOL_COMPILE_TRY( [AC_INCLUDES_DEFAULT], - [[(uint32_t) -1 == 4294967295U]])], + [[($ac_type) -1 == 4294967295U]])], [gl_cv_c_uint32_t=$ac_type]) - test $gl_cv_c_uint32_t != no && break + test "$gl_cv_c_uint32_t" != no && break done]) - case $gl_cv_c_uint32_t in + case "$gl_cv_c_uint32_t" in no|uint32_t) ;; *) + AC_DEFINE(_UINT32_T, 1, + [Define for Solaris 2.5.1 so uint32_t typedef from <sys/synch.h>, + <pthread.h>, or <semaphore.h> is not used. If the typedef was + allowed, the #define below would cause a syntax error.]) AC_DEFINE_UNQUOTED(uint32_t, $gl_cv_c_uint32_t, [Define to the type of a unsigned integer type of width exactly 32 bits if such a type exists and the standard includes do not define it.]) |