diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2002-09-20 18:38:57 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2002-09-20 18:38:57 +0000 |
| commit | 105907f7dcdbad94ca007b89ca310024389afabe (patch) | |
| tree | 891361a82e951468b5bb5957b3eac611d9f6e175 /configure.in | |
| parent | 316d4e29b2a1ba5c70eb6fba3e820b971157c025 (diff) | |
| download | postgresql-105907f7dcdbad94ca007b89ca310024389afabe.tar.gz | |
Put in defense against gcc -ffast-math.
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.in b/configure.in index 15f2b72754..4241a711a4 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Header: /cvsroot/pgsql/configure.in,v 1.209 2002/09/17 04:27:41 momjian Exp $ +dnl $Header: /cvsroot/pgsql/configure.in,v 1.210 2002/09/20 18:38:57 petere Exp $ dnl dnl Developers, please strive to achieve this order: dnl @@ -253,12 +253,21 @@ if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then CFLAGS="$CFLAGS -g" fi AC_MSG_NOTICE([using CFLAGS=$CFLAGS]) + # Check if the compiler still works with the template settings AC_MSG_CHECKING([whether the C compiler still works]) AC_TRY_LINK([], [return 0;], [AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no) AC_MSG_ERROR([cannot proceed])]) + +# Defend against gcc -ffastmath +if test "$GCC" = yes; then +AC_TRY_COMPILE([], [@%:@ifdef __FAST_MATH__ +choke me +@%:@endif], [], [AC_MSG_ERROR([do not put -ffast-math in CFLAGS])]) +fi + AC_PROG_CPP AC_SUBST(GCC) |
