]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* NEWS: Remove AC_CACHE_CHECK_INT.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Oct 2006 06:12:40 +0000 (06:12 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 23 Oct 2006 06:12:40 +0000 (06:12 +0000)
* doc/autoconf.texi (Caching Results): Likewise.
* lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
AC_CACHE_CHECK_INT, since it's no longer public.
* lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
* tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.

ChangeLog
NEWS
doc/autoconf.texi
lib/autoconf/general.m4
lib/autoconf/types.m4
tests/base.at

index 4614d9c53c6f026fc9e948174dabf20fa3e054a6..1d94d2f9cc5e861e30d6f953aee09ccaaea0089a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2006-10-22  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * NEWS: Remove AC_CACHE_CHECK_INT.
+       * doc/autoconf.texi (Caching Results): Likewise.
+       * lib/autoconf/general.m4 (_AC_CACHE_CHECK_INT): Renamed from
+       AC_CACHE_CHECK_INT, since it's no longer public.
+       * lib/autoconf/types.m4: All uses of AC_CACHE_CHECK_INT changed.
+       * tests/base.at (AC_COMPUTE_INT): Test this, not AC_CACHE_CHECK_INT.
+
 2006-10-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * doc/autoconf.texi (Limitations of Usual Tools): Fix two typos.
diff --git a/NEWS b/NEWS
index 030542319bf9288191bd8278dd9d4742669273cd..416014727f3bff05a9d3adcf0a7dcec966bd32ef 100644 (file)
--- a/NEWS
+++ b/NEWS
   New programs should use the Gnulib counterparts of these macros.
   We have no current plans to remove them from Autoconf.
 
-** AC_CACHE_CHECK_INT
-  New macro, with the behavior of the 2.60a AC_COMPUTE_INT macro.
-  AC_COMPUTE_INT no longer caches or reports results.
+** AC_COMPUTE_INT
+  No longer caches or reports results.
 
 ** AC_CHECK_DECL now also works with aggregate objects.
 
-** AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for the NonStop platform.
+** AC_USE_SYSTEM_EXTENSIONS now defines _TANDEM_SOURCE for NonStop platforms.
 
 ** GNU M4 1.4.7 or later is now recommended.
 
index bb0fa3aa5452f1b8a6c1f5d6b939d699dad37363..fb20df0ad28f1a72e198da40a8d24685afd6f17c 100644 (file)
@@ -8500,22 +8500,6 @@ The @var{commands-to-set-it} @emph{must have no side effects} except for
 setting the variable @var{cache-id}, see below.
 @end defmac
 
-@defmac AC_CACHE_CHECK_INT (@var{message}, @var{cache-id}, @var{expression}, @dvar{includes, default-includes}, @ovar{action-if-fails})
-@acindex{CACHE_CHECK_INT}
-This is a convenience macro for invoking @code{AC_COMPUTE_INT} to store
-into @var{cache-id} the value of the integer @var{expression}.
-
-This macro also checks whether the result is cached,
-and reports the test on the standard output
-with @code{AC_MSG_CHECKING} (which prints @var{message}) and
-@code{AC_MSG_RESULT}.
-
-Execute @var{action-if-fails} if the value cannot be determined correctly.
-Commands in @var{action-if-fails} must have no side effects
-except for possibly setting the variable @var{cache-id}.
-@xref{Caching Results}, for more information.
-@end defmac
-
 It is common to find buggy macros using @code{AC_CACHE_VAL} or
 @code{AC_CACHE_CHECK}, because people are tempted to call
 @code{AC_DEFINE} in the @var{commands-to-set-it}.  Instead, the code that
index 01e0371b6f1687cf86b2ebae1f010cb3153c6e9e..bdf48f64e1395419d15bf99c70f3f9b46e6d163d 100644 (file)
@@ -1926,13 +1926,13 @@ AS_LITERAL_IF([$2],
               AC_MSG_RESULT([$ac_res])])dnl
 ])
 
-# AC_CACHE_CHECK_INT(MESSAGE, CACHE-ID, EXPRESSION,
-#                    [PROLOGUE = DEFAULT-INCLUDES], [IF-FAILS])
+# _AC_CACHE_CHECK_INT(MESSAGE, CACHE-ID, EXPRESSION,
+#                     [PROLOGUE = DEFAULT-INCLUDES], [IF-FAILS])
 # -------------------------------------------------------------
-AC_DEFUN([AC_CACHE_CHECK_INT],
+AC_DEFUN([_AC_CACHE_CHECK_INT],
 [AC_CACHE_CHECK([$1], [$2],
    [AC_COMPUTE_INT([$2], [$3], [$4], [$5])])
-])# AC_CACHE_CHECK_INT
+])# _AC_CACHE_CHECK_INT
 
 
 
index 7a1796a51e86222952fff4071a5564672e6524b1..606eafebae6c11cf765c41cf061bd15290a315c2 100644 (file)
@@ -684,7 +684,7 @@ AC_CHECK_TYPE([$1], [], [], [$3])
 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 # This bug is HP SR number 8606223364.
-AC_CACHE_CHECK_INT([size of $1], [AS_TR_SH([ac_cv_sizeof_$1])],
+_AC_CACHE_CHECK_INT([size of $1], [AS_TR_SH([ac_cv_sizeof_$1])],
   [(long int) (sizeof (ac__type_sizeof_))],
   [AC_INCLUDES_DEFAULT([$3])
    typedef $1 ac__type_sizeof_;],
@@ -707,7 +707,7 @@ AC_DEFUN([AC_CHECK_ALIGNOF],
 AC_CHECK_TYPE([$1], [], [], [$2])
 # The cast to long int works around a bug in the HP C Compiler,
 # see AC_CHECK_SIZEOF for more information.
-AC_CACHE_CHECK_INT([alignment of $1], [AS_TR_SH([ac_cv_alignof_$1])],
+_AC_CACHE_CHECK_INT([alignment of $1], [AS_TR_SH([ac_cv_alignof_$1])],
   [(long int) offsetof (ac__type_alignof_, y)],
   [AC_INCLUDES_DEFAULT([$2])
 #ifndef offsetof
index b1133f72716c4afdf231cd2128526ac8fa1ecdfd..0311a4c9ebb6ab8fa7d484dec49a09f23e1ef95f 100644 (file)
@@ -220,22 +220,21 @@ AT_CHECK_CONFIGURE([-q])
 AT_CLEANUP
 
 
-## -------------------- ##
-## AC_CACHE_CHECK_INT.  ##
-## -------------------- ##
--
-# Make sure AC_CACHE_CHECK_INT fails properly.
+## ---------------- ##
+## AC_COMPUTE_INT.  ##
+## ---------------- ##
+
+# Make sure AC_COMPUTE_INT fails properly.
 
-AT_SETUP([AC_CACHE_CHECK_INT])
+AT_SETUP([AC_COMPUTE_INT])
 
 AT_DATA([configure.ac],
 [[AC_INIT
-AC_CACHE_CHECK_INT([for division by zero],
-                  [my_cv_divide_by_zero],
-                  [1 / 0],
-                  [],
-                  [my_cv_divide_by_zero=failed])
-test "$my_cv_divide_by_zero" = failed ||
+AC_COMPUTE_INT([divide_by_zero],
+              [1 / 0],
+              [],
+              [divide_by_zero=failed])
+test "$divide_by_zero" = failed ||
   AC_MSG_ERROR([1 / 0 did not fail])
 ]])