diff options
author | Jim Meyering <jim@meyering.net> | 1998-09-27 16:39:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-09-27 16:39:53 +0000 |
commit | 3f17755a743e8632751f076522b5cb11fe2a1ad3 (patch) | |
tree | a2750960d0c2d0b62377170a43d1aea5f2a2ba6d /m4 | |
parent | fbb1fb519f996e8a878c170c3d9186b704a19b51 (diff) | |
download | coreutils-3f17755a743e8632751f076522b5cb11fe2a1ad3.tar.xz |
.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/glibc.m4 | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/m4/glibc.m4 b/m4/glibc.m4 new file mode 100644 index 000000000..22336e2f0 --- /dev/null +++ b/m4/glibc.m4 @@ -0,0 +1,23 @@ +#serial 1 + +dnl From Gordon Matzigkeit. +dnl Test for the GNU C Library. +dnl FIXME: this should migrate into libit. + +AC_DEFUN(AM_GLIBC, +[AC_CACHE_CHECK(whether we are using the GNU C Library, + ac_cv_gnu_library, +[AC_EGREP_CPP([Thanks for using GNU], +[#include <features.h> +#ifdef __GNU_LIBRARY__ +Thanks for using GNU +#endif], + ac_cv_gnu_library=yes, ac_cv_gnu_library=no)]) +AC_CACHE_CHECK(for version 2 of the GNU C Library, + ac_cv_glibc, +[AC_EGREP_CPP([Thanks for using GNU too], +[#include <features.h> +#ifdef __GLIBC__ +Thanks for using GNU too +#endif], + ac_cv_glibc=yes, ac_cv_glibc=no)])])dnl |