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