Commit be6efe94 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

Fix the --enable-optimizations check.

* m4/gccoptim.m4: Add missing AC_LANG_PUSH/AC_LANG_POP around the
C test.  It was using the C++ compiler instead...
parent c9dd3f86
2010-05-20 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Fix the --enable-optimizations check.
* m4/gccoptim.m4: Add missing AC_LANG_PUSH/AC_LANG_POP around the
C test. It was using the C++ compiler instead...
2010-04-16 Alexandre Duret-Lutz <adl@lrde.epita.fr>
* NEWS: Typo.
......
......@@ -11,6 +11,7 @@ AC_DEFUN([ad_GCC_OPTIM],
int main(int argc, char *argv[]) { return argv[argc-1] == 0; }
EOF
changequote([,])dnl
AC_LANG_PUSH([C])
cf_save_CFLAGS="$CFLAGS"
ac_cv_prog_gcc_opt_flags="-O3"
for cf_opt in \
......@@ -24,6 +25,7 @@ EOF
fi
done
rm -f conftest*
AC_LANG_POP([C])
CFLAGS="$cf_save_CFLAGS $ac_cv_prog_gcc_opt_flags"])
AC_CACHE_CHECK([for g++ optimization options], ac_cv_prog_gxx_opt_flags,
[changequote(,)dnl
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment