.
[gnulib.git] / m4 / glibc.m4
1 #serial 1
2
3 dnl From Gordon Matzigkeit.
4 dnl Test for the GNU C Library.
5 dnl FIXME: this should migrate into libit.
6
7 AC_DEFUN(AM_GLIBC,
8 [AC_CACHE_CHECK(whether we are using the GNU C Library,
9   ac_cv_gnu_library,
10 [AC_EGREP_CPP([Thanks for using GNU],
11 [#include <features.h>
12 #ifdef __GNU_LIBRARY__
13 Thanks for using GNU
14 #endif],
15   ac_cv_gnu_library=yes, ac_cv_gnu_library=no)])
16 AC_CACHE_CHECK(for version 2 of the GNU C Library,
17   ac_cv_glibc,
18 [AC_EGREP_CPP([Thanks for using GNU too],
19 [#include <features.h>
20 #ifdef __GLIBC__
21 Thanks for using GNU too
22 #endif],
23   ac_cv_glibc=yes, ac_cv_glibc=no)])])dnl