From 9b50e151d11f03936311b793dd1dc9aa386c6981 Mon Sep 17 00:00:00 2001 From: Jamie Lenehan Date: Wed, 20 Sep 2006 21:23:23 +0000 Subject: sudo 1.6.8p12: Fix the autoconf patch. The AC_LINK_IFELSE test that was being patched in is incorrect - this fixes the test. Closes #1422. --- packages/sudo/files/autofoo.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/sudo/files') diff --git a/packages/sudo/files/autofoo.patch b/packages/sudo/files/autofoo.patch index 516e209e23..ddfd98b452 100644 --- a/packages/sudo/files/autofoo.patch +++ b/packages/sudo/files/autofoo.patch @@ -181,13 +181,13 @@ Index: sudo-1.6.8p6/aclocal.m4 -AC_MSG_RESULT(yes), AC_MSG_RESULT(no))]) + +AC_DEFUN([SUDO_LONG_LONG], [AC_MSG_CHECKING(for long long support) -+AC_LINK_IFELSE([long long foo = 1000; foo /= 10;], -+ AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the "long long" type.]) ++AC_LINK_IFELSE([AC_LANG_PROGRAM([long long foo = 1000; foo /= 10;]),] ++ [AC_DEFINE(HAVE_LONG_LONG, 1, [Define if your compiler supports the "long long" type.]) + AC_CHECK_SIZEOF([long]) + AC_CHECK_SIZEOF([long long]) + if x"$ac_cv_sizeof_long" = x"$ac_cv_sizeof_long_long"; then + AC_DEFINE(LONG_IS_QUAD, 1, [Define if sizeof(long) == sizeof(long long).]) -+ fi ++ fi] +, AC_MSG_RESULT(yes), AC_MSG_RESULT(no))]) dnl -- cgit v1.2.3