]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/console-tools/console-tools-0.3.2/config/glibc21.m4
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / console-tools / console-tools-0.3.2 / config / 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([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 )