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