respect CPPflags

This commit is contained in:
Mario Fetka 2010-09-01 07:50:36 +02:00
parent 7fb2da390e
commit c48cc5d288
2 changed files with 4 additions and 4 deletions

View File

@ -82,7 +82,7 @@ dnl ---------------------------------------------------------------------------
AC_TYPE_SIZE_T
TYPE_SOCKLEN_T
CFLAGS="-Wall -O2 -D_REENTRANT"
CFLAGS="$CFLAGS -Wall -D_REENTRANT"
dnl ==============

View File

@ -168,7 +168,7 @@ dnl [LIBS="$LIBS -lintl"])
AC_SUBST(MSGFMT)
CFLAGS="-Wall -O0 -D_REENTRANT"
CFLAGS="$CFLAGS -Wall -D_REENTRANT"
if test "x$GCC" != "xyes"; then
enable_compiler_warnings = "no";
@ -176,11 +176,11 @@ fi
if test "x$enable_compiler_warnings" != "xno"; then
if test "x$enable_compiler_warnings" = "xmin"; then
CFLAGS="$CFLAGS -g -ansi -pedantic"
CFLAGS="$CFLAGS -ansi -pedantic"
fi
if test "x$enable_compiler_warnings" = "xyes"; then
CFLAGS="$CFLAGS \
-g -ansi -pedantic -W -Wtraditional -Wshadow -Wpointer-arith \
-ansi -pedantic -W -Wtraditional -Wshadow -Wpointer-arith \
-Wcast-qual -Wcast-align -Wwrite-strings -Wconversion \
-Waggregate-return -Wstrict-prototypes -Wmissing-prototypes \
-Wmissing-declarations -Wnested-externs -Winline"