]> git.llucax.com Git - software/mutt-debian.git/blob - m4/glibc21.m4
Move Mutt with NNTP support to mutt-nntp package
[software/mutt-debian.git] / m4 / glibc21.m4
1 #serial 2
2
3 # Test for the GNU C Library, version 2.1 or newer.
4 # From Bruno Haible.
5
6 AC_DEFUN([MUTT_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 )