Do not prevent user from overriding CXXFLAGS

make CXXFLAGS=-O0 would not work without this.
This commit is contained in:
Peter Wu 2012-08-31 13:10:04 +02:00
parent 8ada0103dd
commit 8c8bf628b9
2 changed files with 5 additions and 2 deletions

View file

@ -38,10 +38,11 @@ AC_FUNC_REALLOC
AC_CHECK_FUNCS([dup2 gettimeofday memset mkdir socket strerror])
# Fix chars to unsigned
CXXFLAGS="$CXXFLAGS -funsigned-char"
AC_SUBST([global_CFLAGS], [-funsigned-char])
#allow verbose mode compiles
AC_ARG_ENABLE([verbose], AC_HELP_STRING([--enable-verbose], [Compile with verbose messages]), CXXFLAGS="-DDEBUG=4 $CXXFLAGS")
AC_ARG_ENABLE([verbose], AC_HELP_STRING([--enable-verbose], [Compile with verbose messages]),
AC_DEFINE([DEBUG], [4]))
AC_CONFIG_FILES([Makefile lib/Makefile lib/mist-1.0.pc])
AC_OUTPUT