Don't set optimize flags if using custom CFLAGS. User flags would override these anyway, so this is just a cleanup.

This commit is contained in:
Brandon Wright 2011-01-29 01:05:04 -06:00
parent 78d2b51efe
commit 7c4d1566f7
1 changed files with 11 additions and 4 deletions

View File

@ -1,8 +1,15 @@
AC_INIT([snes9x-gtk], 1.53)
dnl Set CFLAGS, CXXFLAGS to something
dnl before doing AC_PROG_CC, AC_PROG_CXX to avoid default -g
CFLAGS="-Os -Wall -W -pedantic -Wno-unused-parameter -pipe $CFLAGS"
CXXFLAGS="$CFLAGS"
if test -z "$CFLAGS"; then
CFLAGS="-Os -pipe"
fi
if test -z "$CXXFLAGS"; then
CXXFLAGS="$CFLAGS"
fi
EXTRA_FLAGS="-Wall -W -pedantic -Wno-unused-parameter"
CFLAGS="$CFLAGS $EXTRA_FLAGS"
CXXFLAGS="$CXXFLAGS $EXTRA_FLAGS"
AC_PROG_CC
AC_PROG_CXX