From: DRC Date: Sat, 26 Feb 2011 21:07:50 +0000 (+0000) Subject: Enable full GCC compiler warnings by default X-Git-Tag: 1.1.0~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b4a50ceefb34a9e7400f764af36eb1b510ef12eb;p=libjpeg-turbo Enable full GCC compiler warnings by default git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.1.x@460 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/configure.ac b/configure.ac index 78a391a..a9c9977 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,7 @@ AC_DEFINE([HAVE_PROTOTYPES], 1, [Define if your compiler supports prototypes]) # Checks for programs. SAVED_CFLAGS=${CFLAGS} +SAVED_CPPFLAGS=${CPPFLAGS} AC_PROG_CPP AC_PROG_CC AC_PROG_INSTALL @@ -30,6 +31,9 @@ if test "x${GCC}" = "xyes"; then if test "x${SAVED_CFLAGS}" = "x"; then CFLAGS=-O3 fi + if test "x${SAVED_CPPFLAGS}" = "x"; then + CPPFLAGS=-Wall + fi fi AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])