Blame m4/glibc21.m4

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