Fixed the -fno_exceptions test so it does not always fail.

I had a hard time figuring this out.  Autoconf will produce useless files
without producing an error message, and it does not like commas in any
of the fields.  I had to look at the generated script to get something
working.


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1092 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Bill Spitzak 2000-04-26 07:59:53 +00:00
parent 34e44c5206
commit 1b529efa42

View File

@ -1,7 +1,7 @@
dnl# -*- sh -*-
dnl# the "configure" script is made from this by running GNU "autoconf"
dnl#
dnl# "$Id: configure.in,v 1.33.2.8 2000/04/26 06:55:08 bill Exp $"
dnl# "$Id: configure.in,v 1.33.2.9 2000/04/26 07:59:53 bill Exp $"
dnl#
dnl# Configuration script for the Fast Light Tool Kit (FLTK).
dnl#
@ -185,17 +185,17 @@ if test -n "$GXX"; then
CXXFLAGS="-fPIC $CXXFLAGS"
fi
CFLAGS="-fno-rtti -fomit-frame-pointer $CFLAGS"
CXXFLAGS="-fno-rtti -fomit-frame-pointer $CXXFLAGS"
CXXFLAGS="-fno-rtti -fomit-stack-frame $CXXFLAGS"
# See if GCC supports -fno-exceptions...
OLDCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-exceptions"
AC_TRY_COMPILE(#include <stdio.h>,void func(void) { puts("Hello, World!"); },
AC_TRY_COMPILE(,,
CXXFLAGS="$CXXFLAGS -fno-exceptions"
echo Congratulations, your GCC supports exceptions; disabling them...,
echo "Congratulations your GCC supports exceptions; disabling them...",
CFLAGS="$OLDCFLAGS"
echo I see that your GCC does not support exceptions.)
echo "I see that your GCC does not support exceptions." )
else
case `(uname) 2>/dev/null` in
IRIX*)
@ -263,5 +263,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl#
dnl# End of "$Id: configure.in,v 1.33.2.8 2000/04/26 06:55:08 bill Exp $".
dnl# End of "$Id: configure.in,v 1.33.2.9 2000/04/26 07:59:53 bill Exp $".
dnl#