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
This commit is contained in:
parent
1b529efa42
commit
8fe1161d9f
26
configure.in
26
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#
|
||||
|
Loading…
Reference in New Issue
Block a user