fixed glibc 2.1 detection test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -9589,7 +9589,7 @@ else
|
|||||||
#include <features.h>
|
#include <features.h>
|
||||||
int main() {
|
int main() {
|
||||||
|
|
||||||
#if !__GLIBC_PREREQ(2, 1)
|
#if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
|
||||||
#error not glibc2.1
|
#error not glibc2.1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -1363,11 +1363,14 @@ dnl flush the cache because checking for libraries below might abort
|
|||||||
AC_CACHE_SAVE
|
AC_CACHE_SAVE
|
||||||
|
|
||||||
dnl check for glibc version
|
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
|
if test "$USE_LINUX" = 1; then
|
||||||
AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[
|
AC_CACHE_CHECK([for glibc 2.1 or later], wx_cv_lib_glibc21,[
|
||||||
AC_TRY_COMPILE([#include <features.h>],
|
AC_TRY_COMPILE([#include <features.h>],
|
||||||
[
|
[
|
||||||
#if !__GLIBC_PREREQ(2, 1)
|
#if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
|
||||||
#error not glibc2.1
|
#error not glibc2.1
|
||||||
#endif
|
#endif
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user