summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2000-04-26 12:55:29 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2000-04-26 12:55:29 +0000
commit8fe1161d9f30858ca721eaf77398fa780bc83daf (patch)
tree54970940d28d10ee92a368b3f21a2c4c7c535828
parent1b529efa42d4953ba77892eb76d730aba706817e (diff)
Fixed other occurrence of -fomit-stack-frame that should be
-fomit-frame-pointer. Now check for -fpermissive under Solaris (should eliminate complaints of compiles not working under Solaris with GCC 2.95.x :) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in26
1 files changed, 20 insertions, 6 deletions
diff --git a/configure.in b/configure.in
index 3538e645d..29ba5ead7 100644
--- a/configure.in
+++ b/configure.in
@@ -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.9 2000/04/26 07:59:53 bill Exp $"
+dnl# "$Id: configure.in,v 1.33.2.10 2000/04/26 12:55:29 mike Exp $"
dnl#
dnl# Configuration script for the Fast Light Tool Kit (FLTK).
dnl#
@@ -184,18 +184,32 @@ if test -n "$GXX"; then
CFLAGS="-fPIC $CFLAGS"
CXXFLAGS="-fPIC $CXXFLAGS"
fi
+
CFLAGS="-fno-rtti -fomit-frame-pointer $CFLAGS"
- CXXFLAGS="-fno-rtti -fomit-stack-frame $CXXFLAGS"
+ CXXFLAGS="-fno-rtti -fomit-frame-pointer $CXXFLAGS"
# See if GCC supports -fno-exceptions...
-
+ echo "Testing if GCC supports -fno-exceptions..."
OLDCFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fno-exceptions"
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 "GCC does not support exceptions...")
+
+ # See if we are running Solaris; if so, try the -fpermissive option...
+ if test $uname = SunOS; then
+ echo "Testing if GCC supports -fpermissive..."
+
+ OLDCFLAGS="$CFLAGS"
+ CFLAGS="$CFLAGS -fpermissive"
+ AC_TRY_COMPILE(,,
+ CXXFLAGS="$CXXFLAGS -fpermissive"
+ echo "Enabling -fpermissive to work around X header bugs...",
+ CFLAGS="$OLDCFLAGS"
+ echo "The -fpermissive option is not required by your GCC...")
+ fi
else
case `(uname) 2>/dev/null` in
IRIX*)
@@ -263,5 +277,5 @@ AC_CONFIG_HEADER(config.h:configh.in)
AC_OUTPUT(makeinclude)
dnl#
-dnl# End of "$Id: configure.in,v 1.33.2.9 2000/04/26 07:59:53 bill Exp $".
+dnl# End of "$Id: configure.in,v 1.33.2.10 2000/04/26 12:55:29 mike Exp $".
dnl#