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