2015-02-26 19:01:30 +01:00
|
|
|
# glibc21.m4 serial 5
|
|
|
|
dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2014 Free Software Foundation,
|
|
|
|
dnl Inc.
|
2007-10-23 12:48:09 +02:00
|
|
|
dnl This file is free software; the Free Software Foundation
|
|
|
|
dnl gives unlimited permission to copy and/or distribute it,
|
|
|
|
dnl with or without modifications, as long as this notice is preserved.
|
2003-10-25 18:27:24 +02:00
|
|
|
|
2015-02-26 19:01:30 +01:00
|
|
|
# Test for the GNU C Library, version 2.1 or newer, or uClibc.
|
2003-10-25 18:27:24 +02:00
|
|
|
# From Bruno Haible.
|
|
|
|
|
2007-10-23 12:48:09 +02:00
|
|
|
AC_DEFUN([gl_GLIBC21],
|
2003-10-25 18:27:24 +02:00
|
|
|
[
|
2015-02-26 19:01:30 +01:00
|
|
|
AC_CACHE_CHECK([whether we are using the GNU C Library >= 2.1 or uClibc],
|
2012-12-14 16:08:23 +01:00
|
|
|
[ac_cv_gnu_library_2_1],
|
2015-02-26 19:01:30 +01:00
|
|
|
[AC_EGREP_CPP([Lucky],
|
2012-12-14 16:08:23 +01:00
|
|
|
[
|
2003-10-25 18:27:24 +02:00
|
|
|
#include <features.h>
|
|
|
|
#ifdef __GNU_LIBRARY__
|
|
|
|
#if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
|
|
|
|
Lucky GNU user
|
|
|
|
#endif
|
2015-02-26 19:01:30 +01:00
|
|
|
#endif
|
|
|
|
#ifdef __UCLIBC__
|
|
|
|
Lucky user
|
2003-10-25 18:27:24 +02:00
|
|
|
#endif
|
2012-12-14 16:08:23 +01:00
|
|
|
],
|
|
|
|
[ac_cv_gnu_library_2_1=yes],
|
|
|
|
[ac_cv_gnu_library_2_1=no])
|
2003-10-25 18:27:24 +02:00
|
|
|
]
|
|
|
|
)
|
2012-12-14 16:08:23 +01:00
|
|
|
AC_SUBST([GLIBC21])
|
2003-10-25 18:27:24 +02:00
|
|
|
GLIBC21="$ac_cv_gnu_library_2_1"
|
|
|
|
]
|
|
|
|
)
|