From efdc61a680a3e175efd427944bfaead31aeb7ea1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 7 Jun 2002 00:34:01 +0000 Subject: [PATCH] fixed glibc 2.1 detection test git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure | 2 +- configure.in | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5a73ea45c6..ee43a7be98 100755 --- a/configure +++ b/configure @@ -9589,7 +9589,7 @@ else #include int main() { - #if !__GLIBC_PREREQ(2, 1) + #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) #error not glibc2.1 #endif diff --git a/configure.in b/configure.in index 0c1bf77c84..40ce4d8641 100644 --- a/configure.in +++ b/configure.in @@ -1363,11 +1363,14 @@ dnl flush the cache because checking for libraries below might abort AC_CACHE_SAVE dnl check for glibc version +dnl +dnl VZ: I have no idea why had this check been there originally, but now +dnl it is only used to get the recursive mutexes under Linux if test "$USE_LINUX" = 1; then AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[ AC_TRY_COMPILE([#include ], [ - #if !__GLIBC_PREREQ(2, 1) + #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) #error not glibc2.1 #endif ], -- 2.45.2