]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Jun 2006 18:28:12 +0000 (18:28 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Mon, 19 Jun 2006 18:28:12 +0000 (18:28 +0000)
to `yes' instead of `int$1_t' if the type is found, for more
consistent configure output (where $1 is the number of bits).
(_AC_TYPE_UINT): Likewise for `uint$1_t'.
Suggested by Bruno Haible.

ChangeLog
lib/autoconf/types.m4

index 3e8b21db4198c920eb94a1b4736083d6e788195d..bcecf4089ad5b924467018b2a006ee5013e4186d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2006-06-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * lib/autoconf/types.m4 (_AC_TYPE_INT): Set `$ac_cv_c_int$1_t'
+       to `yes' instead of `int$1_t' if the type is found, for more
+       consistent configure output (where $1 is the number of bits).
+       (_AC_TYPE_UINT): Likewise for `uint$1_t'.
+       Suggested by Bruno Haible.
+
        * lib/autoconf/types.m4 (_AC_TYPE_UNSIGNED_INT): Solaris 2.5.1
        needs _UINT8_T and _UINT64_T defines as well, to avoid clashes
        with system headers.  Report by Bruno Haible.
index 3fcc37bbe1be774971b3d1d1d94ad9d9bd9af828..e91875d5a2560c41c2f994ac6e3156d3464ce7e3 100644 (file)
@@ -590,11 +590,13 @@ AC_DEFUN([_AC_TYPE_INT],
               [[($ac_type) (((($ac_type) 1 << ($1 - 2)) - 1) * 2 + 1)
                 < ($ac_type) (((($ac_type) 1 << ($1 - 2)) - 1) * 2 + 2)]])],
            [],
-           [ac_cv_c_int$1_t=$ac_type])])
+           [AS_CASE([$ac_type], [int$1_t],
+              [ac_cv_c_int$1_t=yes],
+              [ac_cv_c_int$1_t=$ac_type])])])
        test "$ac_cv_c_int$1_t" != no && break
      done])
   case $ac_cv_c_int$1_t in #(
-  no|int$1_t) ;; #(
+  no|yes) ;; #(
   *)
     AC_DEFINE_UNQUOTED([int$1_t], [$ac_cv_c_int$1_t],
       [Define to the type of a signed integer type of width exactly $1 bits
@@ -614,11 +616,13 @@ AC_DEFUN([_AC_TYPE_UNSIGNED_INT],
         [AC_LANG_BOOL_COMPILE_TRY(
            [AC_INCLUDES_DEFAULT],
            [[($ac_type) -1 >> ($1 - 1) == 1]])],
-        [ac_cv_c_uint$1_t=$ac_type])
+        [AS_CASE([$ac_type], [uint$1_t],
+           [ac_cv_c_uint$1_t=yes],
+           [ac_cv_c_uint$1_t=$ac_type])])
        test "$ac_cv_c_uint$1_t" != no && break
      done])
   case $ac_cv_c_uint$1_t in #(
-  no|uint$1_t) ;; #(
+  no|yes) ;; #(
   *)
     m4_bmatch([$1], [^\(8\|32\|64\)$],
       [AC_DEFINE([_UINT$1_T], 1,