From 084b426b3b92cb3f4d678ee560b2330bc43833d2 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 22 Aug 1999 11:22:06 +0000 Subject: [PATCH] Better test for working long long support. Ultrix compiler supports basic long long but not all operations on them. --- aclocal.m4 | 5 ++--- configure | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 1c84eb1cd..fc6f3f052 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -326,10 +326,9 @@ fi dnl dnl check for "long long" -dnl XXX cache +dnl XXX hard to cache since it includes 2 tests dnl AC_DEFUN(SUDO_LONG_LONG, [AC_MSG_CHECKING(for long long support) -AC_TRY_COMPILE(, [long long foo; foo = 1;], AC_DEFINE(HAVE_LONG_LONG) +AC_TRY_LINK(, [long long foo = 1000; foo /= 10;], AC_DEFINE(HAVE_LONG_LONG) [AC_TRY_RUN([main() {if (sizeof(long long) == sizeof(long)) exit(0); else exit(1);}], AC_DEFINE(LONG_IS_QUAD))] AC_MSG_RESULT(yes), AC_MSG_RESULT(no))]) - diff --git a/configure b/configure index 5e80c02c1..49554bec4 100755 --- a/configure +++ b/configure @@ -5356,10 +5356,10 @@ cat > conftest.$ac_ext <&5; (eval $ac_compile) 2>&5; }; then +if { (eval echo configure:5363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then rm -rf conftest* cat >> confdefs.h <<\EOF #define HAVE_LONG_LONG 1 -- 2.40.0