diff options
Diffstat (limited to 'configure.in')
| -rw-r--r-- | configure.in | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/configure.in b/configure.in index 0a39b7883..56a6bbc45 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.31.2.68 2002/05/24 14:19:19 easysw Exp $" +dnl "$Id: configure.in,v 1.33.2.31.2.69 2002/06/03 16:09:26 easysw Exp $" dnl dnl Configuration script for the Fast Light Tool Kit (FLTK). dnl @@ -559,7 +559,7 @@ if test -n "$GXX"; then # 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 - # FLTK doesn't (currently) use any of the stdc++ library. + # 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! @@ -567,15 +567,16 @@ if test -n "$GXX"; then # Previous versions of GCC do not have the reliance on the stdc++ # or g++ libraries, so the extra supc++ library is not needed. - case "`$CXX --version`" in - 3*) - AC_MSG_WARN(GCC 3.0.x is known to produce incorrect code - use with caution!) - LIBS="$LIBS -lsupc++" - ;; - 3.1*) - LIBS="$LIBS -lsupc++" - ;; - esac + AC_MSG_CHECKING(if libsupc++ is required) + + SUPC="`$CXX -print-file-name=libsupc++.a 2>/dev/null`" + if test -n "$SUPC" -a "$SUPC" != "libsupc++.a"; then + # This is gcc 3.x, and it knows of libsupc++, so we need it + LIBS="$LIBS -lsupc++" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi CXX="$CC" @@ -744,5 +745,5 @@ dnl Make sure the fltk-config script is executable... chmod +x fltk-config dnl -dnl End of "$Id: configure.in,v 1.33.2.31.2.68 2002/05/24 14:19:19 easysw Exp $". +dnl End of "$Id: configure.in,v 1.33.2.31.2.69 2002/06/03 16:09:26 easysw Exp $". dnl |
