Add support for --enable-devel and similar macros.

* m4/debug.m4: Rename to ...
* m4/bdebug.m4: ... this.
* m4/debug.m4, m4/devel.m4, m4/gccoptim.m4, m4/ndebug.m4: New file.
* m4/gccwarns.m4: Fix usage of cache variable.  Fix shell
syntax.  Do not check for -Waggregate-return.  Update CFLAGS.
* configure.ac: Adjust to handle --enable-devel and similar macros
in the same way as Spot.
This commit is contained in:
Alexandre Duret-Lutz 2011-04-10 21:28:26 +02:00
parent cdede3d134
commit 35de7e9008
8 changed files with 57 additions and 31 deletions

View file

@ -4,6 +4,13 @@ AC_CONFIG_AUX_DIR([tools])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign nostdinc no-define 1.7.3])
# If the user didn't supply a CFLAGS value,
# set an empty one to prevent autoconf to stick -O2 -g here.
test -z "$CFLAGS" && CFLAGS=
test -z "$CXXFLAGS" && CXXFLAGS=
adl_ENABLE_DEVEL
AC_PROG_CC
AM_PROG_LEX
@ -13,9 +20,17 @@ AC_PROG_CXX
LT_INIT([win32-dll])
adl_ENABLE_DEBUG
ad_GCC_OPTIM
adl_NDEBUG
buddy_INTEL
buddy_DEBUG_FLAGS
if test x$enable_warnings = xyes; then
CF_GCC_WARNINGS
fi
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([