fixed errors in glibc test

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-08 16:44:05 +00:00
parent c39c53e9fc
commit 2389f33bb4
2 changed files with 711 additions and 668 deletions

1335
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -588,29 +588,27 @@ if test "$USE_BEOS" = 1; then
fi
dnl check for glibc version
dnl if test "$USE_LINUX" = 1; then
dnl AC_CACHE_CHECK([for glibc version], wx_lib_glibc21,
dnl AC_TRY_COMPILE([#include <features.h>],
dnl [
dnl #if !__GLIBC_PREREQ(2, 1)
dnl #error not glibc2.1
dnl #endif
dnl ],
dnl [
dnl AC_MSG_RESULT(2.1 or later),
dnl wx_lib_glibc21=yes
dnl ],
dnl [
dnl AC_MSG_RESULT(less than 2.1),
dnl wx_lib_glibc21=no
dnl ]
dnl )
dnl )
dnl
dnl if test "$wx_lib_glibc21" = "yes"; then
dnl AC_DEFINE(wxHAVE_GLIBC2)
dnl fi
dnl fi
if test "$USE_LINUX" = 1; then
AC_CACHE_CHECK([for glibc 2.1 or later], wx_lib_glibc21,
AC_TRY_COMPILE([#include <features.h>],
[
#if !__GLIBC_PREREQ(2, 1)
#error not glibc2.1
#endif
],
[
wx_lib_glibc21=yes
],
[
wx_lib_glibc21=no
]
)
)
if test "$wx_lib_glibc21" = "yes"; then
AC_DEFINE(wxHAVE_GLIBC2)
fi
fi
dnl ---------------------------------------------------------------------------
dnl command line options for configure