Fix to detection of gcc version on OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1366,8 +1366,6 @@ dnl ---------------------------------------------------------------------------
|
|||||||
dnl (OS/2-only piece)
|
dnl (OS/2-only piece)
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
*-pc-os2_emx | *-pc-os2-emx )
|
*-pc-os2_emx | *-pc-os2-emx )
|
||||||
dnl Explicitly link -lstdcpp, since we are using "gcc" not "g++"/"c++".
|
|
||||||
LIBS="$LIBS -lstdcpp"
|
|
||||||
if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
|
if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
|
||||||
dnl More complete Unix emulation for unix-like ports
|
dnl More complete Unix emulation for unix-like ports
|
||||||
dnl by linking in POSIX/2's cExt (if available).
|
dnl by linking in POSIX/2's cExt (if available).
|
||||||
@@ -1377,7 +1375,7 @@ case "${host}" in
|
|||||||
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
|
RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
|
||||||
fi
|
fi
|
||||||
AC_CACHE_CHECK([for gcc 3 or later], wx_cv_gcc3,[
|
AC_CACHE_CHECK([for gcc 3 or later], wx_cv_gcc3,[
|
||||||
AC_TRY_COMPILE([#include <features.h>],
|
AC_TRY_COMPILE([],
|
||||||
[
|
[
|
||||||
#if (__GNUC__ < 3)
|
#if (__GNUC__ < 3)
|
||||||
#error old gcc
|
#error old gcc
|
||||||
|
Reference in New Issue
Block a user