mirror of
https://github.com/fltk/fltk.git
synced 2026-06-05 08:06:35 +08:00
Add check for GCC 2.96, and add -lsupc++ to the link line if so...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1676 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+9
-2
@@ -1,7 +1,7 @@
|
|||||||
dnl -*- sh -*-
|
dnl -*- sh -*-
|
||||||
dnl the "configure" script is made from this by running GNU "autoconf"
|
dnl the "configure" script is made from this by running GNU "autoconf"
|
||||||
dnl
|
dnl
|
||||||
dnl "$Id: configure.in,v 1.33.2.31.2.19 2001/11/01 16:55:12 easysw Exp $"
|
dnl "$Id: configure.in,v 1.33.2.31.2.20 2001/11/02 20:40:29 easysw Exp $"
|
||||||
dnl
|
dnl
|
||||||
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
dnl Configuration script for the Fast Light Tool Kit (FLTK).
|
||||||
dnl
|
dnl
|
||||||
@@ -347,8 +347,15 @@ if test -n "$GXX"; then
|
|||||||
#
|
#
|
||||||
# Previous versions of GCC do not have the reliance on the stdc++
|
# Previous versions of GCC do not have the reliance on the stdc++
|
||||||
# or g++ libraries, so the extra supc++ library is not needed.
|
# or g++ libraries, so the extra supc++ library is not needed.
|
||||||
|
#
|
||||||
|
# [Apparently this "feature" is also present in the unofficial
|
||||||
|
# RedHat 2.96 release...]
|
||||||
|
|
||||||
case "`$CXX --version`" in
|
case "`$CXX --version`" in
|
||||||
|
2.96*)
|
||||||
|
AC_MSG_WARN(GCC 2.96.x is not an official GCC release - use with caution!)
|
||||||
|
LIBS="$LIBS -lsupc++"
|
||||||
|
;;
|
||||||
3*)
|
3*)
|
||||||
AC_MSG_WARN(GCC 3.0.x is known to produce incorrect code - use with caution!)
|
AC_MSG_WARN(GCC 3.0.x is known to produce incorrect code - use with caution!)
|
||||||
LIBS="$LIBS -lsupc++"
|
LIBS="$LIBS -lsupc++"
|
||||||
@@ -494,5 +501,5 @@ AC_OUTPUT(makeinclude fltk-config)
|
|||||||
chmod +x fltk-config
|
chmod +x fltk-config
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl End of "$Id: configure.in,v 1.33.2.31.2.19 2001/11/01 16:55:12 easysw Exp $".
|
dnl End of "$Id: configure.in,v 1.33.2.31.2.20 2001/11/02 20:40:29 easysw Exp $".
|
||||||
dnl
|
dnl
|
||||||
|
|||||||
Reference in New Issue
Block a user