From: Paul Eggert Date: Wed, 17 Jan 2024 04:20:06 +0000 (-0800) Subject: Fix ‘long long’ checks on ancient platforms X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e5fae45ae39f471cba5415c21d93e5bc407eb8c7;p=thirdparty%2Fautoconf.git Fix ‘long long’ checks on ancient platforms Problem reported by Nick Bowler in: https://lists.gnu.org/r/bug-autoconf/2024-01/msg00018.html * lib/autoconf/types.m4 (AC_TYPE_LONG_LONG_INT) (AC_TYPE_UNSIGNED_LONG_LONG_INT): Test for these when K&R or c89, not when neither K&R nor C89. This fixes a thinko that I introduced in commit cdef0d2dad57f92301cb4baf782f8c24b01d5f1d dated Wed Feb 16 01:29:40 2011 -0800. --- diff --git a/lib/autoconf/types.m4 b/lib/autoconf/types.m4 index 205b6562..d12a1dc6 100644 --- a/lib/autoconf/types.m4 +++ b/lib/autoconf/types.m4 @@ -533,7 +533,6 @@ AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ac_cv_type_long_long_int=yes case $ac_prog_cc_stdc in no | c89) ;; - *) ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int if test $ac_cv_type_long_long_int = yes; then dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. @@ -579,7 +578,6 @@ AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ac_cv_type_unsigned_long_long_int=yes case $ac_prog_cc_stdc in no | c89) ;; - *) AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [],