]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Francesco Chemolli <kinkie@squid-cache.org>
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 23 Nov 2009 02:11:13 +0000 (15:11 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 23 Nov 2009 02:11:13 +0000 (15:11 +1300)
Make huge-objects macro only test for GCC

acinclude.m4

index 95e7a8827aad661c555dcf3a9d4e786461f68f51..72bb8956ee9eacf2fde29336830c362ab15c1697 100644 (file)
@@ -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