Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
authorBruno Haible <bruno@clisp.org>
Mon, 19 Jan 2009 23:57:07 +0000 (00:57 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 19 Jan 2009 23:57:07 +0000 (00:57 +0100)
12 files changed:
ChangeLog
m4/exponentl.m4
m4/gnulib-common.m4
m4/isfinite.m4
m4/isinf.m4
m4/isnanl.m4
m4/md4.m4
m4/md5.m4
m4/printf.m4
m4/sha1.m4
m4/sha256.m4
m4/sha512.m4

index 020ab20f63f9c193844fd93671cb44a9b2c242b9..d8029d69f0c18ae5eff6f968f7d693147d4c241c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+2009-01-19  Bruno Haible  <bruno@clisp.org>
+
+       Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
+       * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
+       * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
+       gl_BIGENDIAN, not AC_C_BIGENDIAN.
+       * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
+       * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
+       * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
+       * m4/md4.m4 (gl_MD4): Likewise.
+       * m4/md5.m4 (gl_MD5): Likewise.
+       * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
+       * m4/sha1.m4 (gl_SHA1): Likewise.
+       * m4/sha256.m4 (gl_SHA256): Likewise.
+       * m4/sha512.m4 (gl_SHA512): Likewise.
+
 2009-01-19  Bruno Haible  <bruno@clisp.org>
 
        * modules/uniname/uniname-tests (Depends-on): Add progname.
index 59b77eb5b5eea404195f2a75a252362467384e60..98e35eb2f1e6a13e5369b81faf4473cb3433a69d 100644 (file)
@@ -1,11 +1,11 @@
-# exponentl.m4 serial 1
-dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
+# exponentl.m4 serial 2
+dnl Copyright (C) 2007-2009 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.
 AC_DEFUN([gl_LONG_DOUBLE_EXPONENT_LOCATION],
 [
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_CACHE_CHECK([where to find the exponent in a 'long double'],
     [gl_cv_cc_long_double_expbit0],
     [
index 5804eb9b6f24d6d972bc82ac1eab12da16184165..cfd1b99f82ed204e10cf865c4e3bb511a711c138 100644 (file)
@@ -1,4 +1,4 @@
-# gnulib-common.m4 serial 7
+# gnulib-common.m4 serial 8
 dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -99,3 +99,12 @@ AC_DEFUN([AC_C_RESTRICT],
    *)  AC_DEFINE_UNQUOTED([restrict], [$ac_cv_c_restrict]) ;;
  esac
 ])
+
+# gl_BIGENDIAN
+# is like AC_C_BIGENDIAN, except that it can be AC_REQUIREd.
+# Note that AC_REQUIRE([AC_C_BIGENDIAN]) does not work reliably because some
+# macros invoke AC_C_BIGENDIAN with arguments.
+AC_DEFUN([gl_BIGENDIAN],
+[
+  AC_C_BIGENDIAN
+])
index 4fb557b47bd2fc898fe71f62ea22b6cd38256b11..055ba8237d714227cb0da32f5c5249e3762d2e1f 100644 (file)
@@ -1,5 +1,5 @@
-# isfinite.m4 serial 3
-dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
+# isfinite.m4 serial 4
+dnl Copyright (C) 2007-2009 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.
@@ -44,7 +44,7 @@ dnl   pseudo-denormals on ia64.
 AC_DEFUN([gl_ISFINITEL_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether isfinite(long double) works], [gl_cv_func_isfinitel_works],
     [
index 1b9e45a542eb336e48f02d886b9b5aeaf37f010f..3d9423106f09058d43a44714a1cf11620c10a586 100644 (file)
@@ -1,5 +1,5 @@
-# isinf.m4 serial 1
-dnl Copyright (C) 2007-2008 Free Software Foundation, Inc.
+# isinf.m4 serial 2
+dnl Copyright (C) 2007-2009 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.
@@ -35,7 +35,7 @@ dnl Test whether isinf() correctly returns false for LDBL_MAX.
 AC_DEFUN([gl_ISINFL_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether isinf(long double) works], [gl_cv_func_isinfl_works],
     [
index af028cde123db03acd8f7c9b7e22fedd8cd0e55b..fb63ac45511d55f6f155eb5d099129182cd78a22 100644 (file)
@@ -1,4 +1,4 @@
-# isnanl.m4 serial 10
+# isnanl.m4 serial 11
 dnl Copyright (C) 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -114,7 +114,7 @@ dnl - for pseudo-zeroes, unnormalized numbers, and pseudo-denormals on ia64.
 AC_DEFUN([gl_FUNC_ISNANL_WORKS],
 [
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_CACHE_CHECK([whether isnanl works], [gl_cv_func_isnanl_works],
     [
index dda2b1b911f7a656ae24cd4fdbce74638f9bbb64..c80eeeb9273368db1a9213a4b16c894c929c1371 100644 (file)
--- a/m4/md4.m4
+++ b/m4/md4.m4
@@ -1,5 +1,5 @@
-# md4.m4 serial 3
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
+# md4.m4 serial 4
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2009 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.
@@ -9,6 +9,6 @@ AC_DEFUN([gl_MD4],
   AC_LIBOBJ([md4])
 
   dnl Prerequisites of lib/md4.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_C_INLINE])
 ])
index e4d00f3fee949a65a451b1c5fa5b30193226ea4b..57b193fdf22bd6eb11e7edb1ac9d039efecd0aa5 100644 (file)
--- a/m4/md5.m4
+++ b/m4/md5.m4
@@ -1,5 +1,5 @@
-# md5.m4 serial 10
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
+# md5.m4 serial 11
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2009 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.
@@ -9,7 +9,7 @@ AC_DEFUN([gl_MD5],
   AC_LIBOBJ([md5])
 
   dnl Prerequisites of lib/md5.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_C_INLINE])
   :
 ])
index 7c0ad900f07d1bcf00a1b0dfec29071f015599ec..a1d4dadd7bb6819e7739162482fcc0b99cfc3567 100644 (file)
@@ -1,4 +1,4 @@
-# printf.m4 serial 27
+# printf.m4 serial 28
 dnl Copyright (C) 2003, 2007-2009 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -225,7 +225,7 @@ AC_DEFUN([gl_PRINTF_INFINITE_LONG_DOUBLE],
 [
   AC_REQUIRE([gl_PRINTF_LONG_DOUBLE])
   AC_REQUIRE([AC_PROG_CC])
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   dnl The user can set or unset the variable gl_printf_safe to indicate
   dnl that he wishes a safe handling of non-IEEE-754 'long double' values.
index 12711fae262ede40db4f3d7f6c338a1f1a2972f2..b94c34d5d6e6a5166e70007e2eab8ad956835cee 100644 (file)
@@ -1,5 +1,5 @@
-# sha1.m4 serial 8
-dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
+# sha1.m4 serial 9
+dnl Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2009 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.
@@ -9,7 +9,7 @@ AC_DEFUN([gl_SHA1],
   AC_LIBOBJ([sha1])
 
   dnl Prerequisites of lib/sha1.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_C_INLINE])
   :
 ])
index d8d5d27dca0d66e719f3a5d9a85dbcfb88f6f71c..d34f9c8c698de95ef60ee48550fee8434266b7a6 100644 (file)
@@ -1,5 +1,5 @@
-# sha256.m4 serial 3
-dnl Copyright (C) 2005, 2008 Free Software Foundation, Inc.
+# sha256.m4 serial 4
+dnl Copyright (C) 2005, 2008, 2009 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.
@@ -9,6 +9,6 @@ AC_DEFUN([gl_SHA256],
   AC_LIBOBJ([sha256])
 
   dnl Prerequisites of lib/sha256.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_C_INLINE])
 ])
index 1b1e899cc2880704f4740f1e6d40704739e191b5..bf9abb7bd3cff70bb0b7edd4faba6a4d9695f1dd 100644 (file)
@@ -1,5 +1,5 @@
-# sha512.m4 serial 4
-dnl Copyright (C) 2005, 2006, 2008 Free Software Foundation, Inc.
+# sha512.m4 serial 5
+dnl Copyright (C) 2005, 2006, 2008, 2009 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.
@@ -9,6 +9,6 @@ AC_DEFUN([gl_SHA512],
   AC_LIBOBJ([sha512])
 
   dnl Prerequisites of lib/sha512.c.
-  AC_REQUIRE([AC_C_BIGENDIAN])
+  AC_REQUIRE([gl_BIGENDIAN])
   AC_REQUIRE([AC_C_INLINE])
 ])