build: make CFLAGS user setable

There is no need to force the non-default CFLAGS on users trying to set
them via enviroment variable or on configure command.
master
Janne Grunau 2014-08-07 00:52:55 +02:00
parent 62d4b81a83
commit d315d20d56
1 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,9 @@
# FIXME - add project url as the last argument
AC_INIT(gf-complete, 1.0)
# Override default CFLAGS
: ${CFLAGS="-Wall -Wpointer-arith -O3 -g"}
AC_PREREQ([2.61])
AM_INIT_AUTOMAKE([no-dependencies foreign])
@ -16,9 +19,6 @@ AC_CONFIG_MACRO_DIR([m4])
# This prevents './configure; make' from trying to run autotools.
AM_MAINTAINER_MODE([disable])
# Override default CFLAGS
CFLAGS="-Wall -Wpointer-arith -O3 -g"
dnl Compiling with per-target flags requires AM_PROG_CC_C_O.
AC_PROG_CC