Remove libsupc++ stuff, since it doesn't work on OSX 10.4 or with
other (broken) GCC installs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4572 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
eefa09e632
commit
6e88ede6a4
32
configure.in
32
configure.in
@ -743,38 +743,6 @@ dnl Add warnings to compiler switches:
|
||||
dnl do this last so messing with switches does not break tests
|
||||
|
||||
if test -n "$GCC"; then
|
||||
# Starting with GCC 3.0, you must link C++ programs against either
|
||||
# libstdc++ (shared by default), or libsupc++ (always static). If
|
||||
# you care about binary portability between Linux distributions,
|
||||
# you need to either 1) build your own GCC with static C++ libraries
|
||||
# or 2) link using gcc and libsupc++. We choose the latter since
|
||||
# CUPS doesn't (currently) use any of the stdc++ library.
|
||||
#
|
||||
# Also, GCC 3.0.x still has problems compiling some code. You may
|
||||
# or may not have success with it. USE 3.0.x WITH EXTREME CAUTION!
|
||||
#
|
||||
# Previous versions of GCC do not have the reliance on the stdc++
|
||||
# or g++ libraries, so the extra supc++ library is not needed.
|
||||
|
||||
AC_MSG_CHECKING(if libsupc++ is required)
|
||||
|
||||
SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`"
|
||||
case "$SUPC" in
|
||||
libsupc++.a*)
|
||||
# Library not found, so this is and older GCC...
|
||||
AC_MSG_RESULT(no)
|
||||
;;
|
||||
*)
|
||||
# This is gcc 3.x, and it knows of libsupc++, so we need it
|
||||
LIBS="$LIBS -lsupc++"
|
||||
AC_MSG_RESULT(yes)
|
||||
;;
|
||||
esac
|
||||
|
||||
if test x$uname != xDarwin; then
|
||||
CXX="$CC"
|
||||
fi
|
||||
|
||||
# Show all standard warnings + unused variables, conversion errors,
|
||||
# and inlining problems when compiling...
|
||||
OPTIM="-Wall -Wunused -Wno-format-y2k $OPTIM"
|
||||
|
Loading…
Reference in New Issue
Block a user