2N/A# glibc21.m4 serial 4
2N/Adnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc.
2N/Adnl This file is free software; the Free Software Foundation
2N/Adnl gives unlimited permission to copy and/or distribute it,
2N/Adnl with or without modifications, as long as this notice is preserved.
2N/A
2N/A# Test for the GNU C Library, version 2.1 or newer.
2N/A# From Bruno Haible.
2N/A
2N/AAC_DEFUN([gl_GLIBC21],
2N/A [
2N/A AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer],
2N/A [ac_cv_gnu_library_2_1],
2N/A [AC_EGREP_CPP([Lucky GNU user],
2N/A [
2N/A#include <features.h>
2N/A#ifdef __GNU_LIBRARY__
2N/A #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
2N/A Lucky GNU user
2N/A #endif
2N/A#endif
2N/A ],
2N/A [ac_cv_gnu_library_2_1=yes],
2N/A [ac_cv_gnu_library_2_1=no])
2N/A ]
2N/A )
2N/A AC_SUBST([GLIBC21])
2N/A GLIBC21="$ac_cv_gnu_library_2_1"
2N/A ]
2N/A)