source: trunk/essentials/sys-apps/grep/m4/glibc.m4

Last change on this file was 2557, checked in by bird, 19 years ago

grep 2.5.1a

File size: 654 bytes
Line 
1dnl From Gordon Matzigkeit.
2dnl Test for the GNU C Library.
3dnl FIXME: this should migrate into libit.
4
5AC_DEFUN(AM_GLIBC,
6 [
7 AC_CACHE_CHECK(whether we are using the GNU C Library,
8 ac_cv_gnu_library,
9 [AC_EGREP_CPP([Thanks for using GNU],
10 [
11#include <features.h>
12#ifdef __GNU_LIBRARY__
13 Thanks for using GNU
14#endif
15 ],
16 ac_cv_gnu_library=yes,
17 ac_cv_gnu_library=no)
18 ]
19 )
20 AC_CACHE_CHECK(for version 2 of the GNU C Library,
21 ac_cv_glibc,
22 [AC_EGREP_CPP([Thanks for using GNU too],
23 [
24#include <features.h>
25#ifdef __GLIBC__
26 Thanks for using GNU too
27#endif
28 ],
29 ac_cv_glibc=yes, ac_cv_glibc=no)
30 ]
31 )
32 ]
33)
Note: See TracBrowser for help on using the repository browser.