Lines 16-29
Link Here
|
16 |
AC_ARG_ENABLE(debug,[ --enable-debug Turn on debug versions of FreeFem++]) |
16 |
AC_ARG_ENABLE(debug,[ --enable-debug Turn on debug versions of FreeFem++]) |
17 |
AC_ARG_ENABLE(optim,[ --enable-optim Turn on compiler optimization]) |
17 |
AC_ARG_ENABLE(optim,[ --enable-optim Turn on compiler optimization]) |
18 |
|
18 |
|
19 |
# Autoconf always chooses -O2. -O2 in gcc makes some functions |
|
|
20 |
# disappear. This is not ideal for debugging. And when we optimize, we |
21 |
# do not use -O2 anyway. |
22 |
|
23 |
CFLAGS="`echo $CFLAGS | sed 's/-O2//g'`" |
24 |
FFLAGS="`echo $FFLAGS | sed 's/-O2//g'`" |
25 |
CXXFLAGS="`echo $CXXFLAGS | sed 's/-O2//g'`" |
26 |
|
27 |
if test "$enable_debug" = yes; |
19 |
if test "$enable_debug" = yes; |
28 |
then |
20 |
then |
29 |
AC_MSG_RESULT(yes) |
21 |
AC_MSG_RESULT(yes) |