From: Amos Jeffries Date: Sun, 22 Nov 2009 23:19:33 +0000 (+1300) Subject: Make huge-objects macro only test for GCC X-Git-Tag: SQUID_3_2_0_1~540 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4f05b281a234857d642ff9c55dabfb20d843599a;p=thirdparty%2Fsquid.git Make huge-objects macro only test for GCC --- diff --git a/acinclude.m4 b/acinclude.m4 index 95e7a8827a..72bb8956ee 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -70,6 +70,7 @@ dnl dnl Test whether -fhuge-objects is available with this c++ compiler. gcc-29.5 series compilers need this on some platform with large objects. dnl AC_DEFUN([AC_TEST_CHECKFORHUGEOBJECTS],[ + if test "$GCC" = "yes"; then AC_MSG_CHECKING([whether compiler accepts -fhuge-objects]) AC_CACHE_VAL([ac_cv_test_checkforhugeobjects],[ ac_cv_test_checkforhugeobjects=`echo "int main(int argc, char **argv) { int foo; }" > conftest.cc @@ -92,6 +93,7 @@ exit $res` else HUGE_OBJECT_FLAG="" fi + fi ]) # end of AC_DEFUN of AC_TEST_CHECKFORHUGEOBJECTS diff --git a/configure.in b/configure.in index 441737526c..f43a1a7e20 100644 --- a/configure.in +++ b/configure.in @@ -306,10 +306,8 @@ fi AC_SUBST(SQUID_CFLAGS) AC_SUBST(SQUID_CXXFLAGS) -if test "$GCC" = "yes"; then - AC_TEST_CHECKFORHUGEOBJECTS - SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG" -fi +AC_TEST_CHECKFORHUGEOBJECTS +SQUID_CXXFLAGS="$SQUID_CXXFLAGS $HUGE_OBJECT_FLAG" dnl Set LDFLAGS if test -z "$PRESET_LDFLAGS"; then