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...
This commit is contained in:
Alexandre Duret-Lutz 2010-05-20 17:16:59 +02:00
parent c9dd3f86b4
commit be6efe94a4
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
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.

View file

@ -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