1 1.1 christos # glibc21.m4 serial 3 2 1.1 christos dnl Copyright (C) 2000-2002, 2004 Free Software Foundation, Inc. 3 1.1 christos dnl This file is free software, distributed under the terms of the GNU 4 1.1 christos dnl General Public License. As a special exception to the GNU General 5 1.1 christos dnl Public License, this file may be distributed as part of a program 6 1.1 christos dnl that contains a configuration script generated by Autoconf, under 7 1.1 christos dnl the same distribution terms as the rest of that program. 8 1.1 christos 9 1.1 christos # Test for the GNU C Library, version 2.1 or newer. 10 1.1 christos # From Bruno Haible. 11 1.1 christos 12 1.1 christos AC_DEFUN([gl_GLIBC21], 13 1.1 christos [ 14 1.1 christos AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, 15 1.1 christos ac_cv_gnu_library_2_1, 16 1.1 christos [AC_EGREP_CPP([Lucky GNU user], 17 1.1 christos [ 18 1.1 christos #include <features.h> 19 1.1 christos #ifdef __GNU_LIBRARY__ 20 1.1 christos #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 21 1.1 christos Lucky GNU user 22 1.1 christos #endif 23 1.1 christos #endif 24 1.1 christos ], 25 1.1 christos ac_cv_gnu_library_2_1=yes, 26 1.1 christos ac_cv_gnu_library_2_1=no) 27 1.1 christos ] 28 1.1 christos ) 29 1.1 christos AC_SUBST(GLIBC21) 30 1.1 christos GLIBC21="$ac_cv_gnu_library_2_1" 31 1.1 christos ] 32 1.1 christos ) 33