From: Francesco Chemolli Date: Tue, 8 Dec 2009 14:01:39 +0000 (+0100) Subject: Implemented alternate approach to -pipe flag detection X-Git-Tag: SQUID_3_2_0_1~310^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abd0ceb67d5f51d4ace98ea54581cea81c96fb24;p=thirdparty%2Fsquid.git Implemented alternate approach to -pipe flag detection --- diff --git a/configure.in b/configure.in index ee05512814..0102c0e866 100644 --- a/configure.in +++ b/configure.in @@ -341,9 +341,11 @@ if test "$squid_cv_cxx_arg_fhugeobjects" = "yes"; then SQUID_CXXFLAGS="$SQUID_CXXFLAGS -fhuge-objects" fi # see if we can use cc -pipe (Sunstudio c++ is more lenient, let's test with c) -AC_LANG_PUSH([C]) +SQUID_STATE_SAVE([squid_pipe]) +CFLAGS="$CFLAGS $squid_cv_cc_option_werror" +CXXFLAGS="$CXXFLAGS $squid_cv_cc_option_werror" SQUID_CC_CHECK_ARGUMENT([squid_cv_cc_arg_pipe],[-pipe]) -AC_LANG_POP([C]) +SQUID_STATE_ROLLBACK([squid_pipe]) if test "$squid_cv_cc_arg_pipe" ; then SQUID_CXXFLAGS="$SQUID_CXXFLAGS -pipe" SQUID_CFLAGS="$SQUID_CFLAGS -pipe"