From d509a5b083580bf16071b60935c384d52264bc45 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 27 Sep 1998 16:39:53 +0000 Subject: [PATCH] . --- m4/glibc.m4 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 m4/glibc.m4 diff --git a/m4/glibc.m4 b/m4/glibc.m4 new file mode 100644 index 0000000000..22336e2f03 --- /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 +#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 +#ifdef __GLIBC__ +Thanks for using GNU too +#endif], + ac_cv_glibc=yes, ac_cv_glibc=no)])])dnl -- 2.30.2