X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configure.ac;h=3975bff3df08465ba940aea8b4daade73516f82c;hb=027eba771a7ef9d25e97f0026d6469ea34c06523;hp=b55a14651ab4c5ff9d2b60efd5fafdf258d8e4ea;hpb=ff6feef76db1f475195ae50c13afc89ed0a85487;p=pspp-builds.git diff --git a/configure.ac b/configure.ac index b55a1465..3975bff3 100644 --- a/configure.ac +++ b/configure.ac @@ -10,6 +10,9 @@ dnl Checks for programs. AC_GNU_SOURCE AC_PROG_CC +AM_CONDITIONAL(cc_is_gcc, test x"$GCC" = x"yes" ) + + dnl Internationalization macros. AM_GNU_GETTEXT AM_GNU_GETTEXT_VERSION dnl Prevents autoreconf complaint. @@ -89,15 +92,7 @@ AC_CHECK_FUNCS([gethostname strstr strtod __setfpucw isinf isnan finite \ AC_PROG_LN_S -dnl This must be after other tests so warnings don't provoke errors above. -if test "$ac_cv_c_compiler_gnu" = yes; then - CFLAGS="-g -Wall -W -Wno-uninitialized -Wwrite-strings \ --Wstrict-prototypes -Wpointer-arith -Wno-sign-compare" - if test "$CC_OPTIONS" != ""; then - CFLAGS="$CFLAGS $CC_OPTIONS" - fi -fi -AC_SUBST(CFLAGS) + AH_BOTTOM([#include ])