Line | |
---|
1 | dnl From Gordon Matzigkeit.
|
---|
2 | dnl Test for the GNU C Library.
|
---|
3 | dnl FIXME: this should migrate into libit.
|
---|
4 |
|
---|
5 | AC_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.