Blame m4/glibc2.m4

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