]> git.saurik.com Git - bison.git/blame - m4/glibc21.m4
Update.
[bison.git] / m4 / glibc21.m4
CommitLineData
1e24cc5b
AD
1#serial 2
2
3# Test for the GNU C Library, version 2.1 or newer.
4# From Bruno Haible.
5
6AC_DEFUN([jm_GLIBC21],
7 [
8 AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer,
9 ac_cv_gnu_library_2_1,
10 [AC_EGREP_CPP([Lucky GNU user],
11 [
12#include <features.h>
13#ifdef __GNU_LIBRARY__
14 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15 Lucky GNU user
16 #endif
17#endif
18 ],
19 ac_cv_gnu_library_2_1=yes,
20 ac_cv_gnu_library_2_1=no)
21 ]
22 )
23 AC_SUBST(GLIBC21)
24 GLIBC21="$ac_cv_gnu_library_2_1"
25 ]
26)