summaryrefslogtreecommitdiff
path: root/ltdl/m4/glibc21.m4
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-01-11 10:45:00 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-01-11 10:45:00 +0000
commit24d1733e78a17d71aea6912144394ed7d3a82d50 (patch)
tree069608d934a8716d55a94c62c4bd75c1152f868c /ltdl/m4/glibc21.m4
parentd7b9fe130c2305d44fa1023283d3c2fcd389ba93 (diff)
downloadm4-24d1733e78a17d71aea6912144394ed7d3a82d50.tar.gz
remove .gitignores and add the rest of the files
Diffstat (limited to 'ltdl/m4/glibc21.m4')
-rwxr-xr-xltdl/m4/glibc21.m430
1 files changed, 30 insertions, 0 deletions
diff --git a/ltdl/m4/glibc21.m4 b/ltdl/m4/glibc21.m4
new file mode 100755
index 00000000..68ada9d4
--- /dev/null
+++ b/ltdl/m4/glibc21.m4
@@ -0,0 +1,30 @@
+# glibc21.m4 serial 4
+dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc.
+dnl This file is free software; the Free Software Foundation
+dnl gives unlimited permission to copy and/or distribute it,
+dnl with or without modifications, as long as this notice is preserved.
+
+# Test for the GNU C Library, version 2.1 or newer.
+# From Bruno Haible.
+
+AC_DEFUN([gl_GLIBC21],
+ [
+ AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer],
+ [ac_cv_gnu_library_2_1],
+ [AC_EGREP_CPP([Lucky GNU user],
+ [
+#include <features.h>
+#ifdef __GNU_LIBRARY__
+ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
+ Lucky GNU user
+ #endif
+#endif
+ ],
+ [ac_cv_gnu_library_2_1=yes],
+ [ac_cv_gnu_library_2_1=no])
+ ]
+ )
+ AC_SUBST([GLIBC21])
+ GLIBC21="$ac_cv_gnu_library_2_1"
+ ]
+)