|
|
| |
AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes) | AM_CONDITIONAL(DEBUG, test "$gambas_debug" = yes) |
| |
AC_ARG_ENABLE( |
|
optimization, |
|
[ --enable-optimization compile with optimizations (default: yes)], |
|
gambas_optimization=$enableval, |
|
gambas_optimization=yes |
|
) |
|
|
|
AM_CONDITIONAL(OPTIMIZE, test "$gambas_optimization" = yes) |
|
|
|
AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char" | AM_CFLAGS="$AM_CFLAGS -pipe -Wall -Wno-unused-value -fsigned-char" |
AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char" | AM_CXXFLAGS="$AM_CXXFLAGS -pipe -Wall -fno-exceptions -Wno-unused-value -fsigned-char" |
| |
|
|
AM_CXXFLAGS="$AM_CXXFLAGS -g" | AM_CXXFLAGS="$AM_CXXFLAGS -g" |
fi | fi |
| |
if test "x$gambas_optimization" = "xyes"; then |
|
AM_CFLAGS_OPT="$AM_CFLAGS -O3" | AM_CFLAGS_OPT="$AM_CFLAGS -O3" |
AM_CFLAGS="$AM_CFLAGS -Os" |
|
AM_CXXFLAGS="$AM_CXXFLAGS -Os -fno-omit-frame-pointer" |
|
else |
|
AM_CFLAGS_OPT="$AM_CFLAGS -O0" |
|
AM_CFLAGS="$AM_CFLAGS -O0" |
|
AM_CXXFLAGS="$AM_CXXFLAGS -O0" |
|
fi |
|
|
|
CFLAGS="" |
|
CXXFLAGS="" |
|
| |
AC_SUBST(AM_CFLAGS) | AC_SUBST(AM_CFLAGS) |
AC_SUBST(AM_CFLAGS_OPT) | AC_SUBST(AM_CFLAGS_OPT) |