version 1.1, 2012/02/21 22:57:49
|
version 1.1.1.3, 2021/03/17 13:38:46
|
Line 1
|
Line 1
|
# glibc2.m4 serial 2 | # glibc2.m4 serial 3 |
dnl Copyright (C) 2000-2002, 2004, 2008 Free Software Foundation, Inc. | dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2019 Free Software Foundation, |
| dnl Inc. |
dnl This file is free software; the Free Software Foundation |
dnl This file is free software; the Free Software Foundation |
dnl gives unlimited permission to copy and/or distribute it, |
dnl gives unlimited permission to copy and/or distribute it, |
dnl with or without modifications, as long as this notice is preserved. |
dnl with or without modifications, as long as this notice is preserved. |
Line 12 AC_DEFUN([gt_GLIBC2],
|
Line 13 AC_DEFUN([gt_GLIBC2],
|
AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], |
AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], |
[ac_cv_gnu_library_2], |
[ac_cv_gnu_library_2], |
[AC_EGREP_CPP([Lucky GNU user], |
[AC_EGREP_CPP([Lucky GNU user], |
[ | [ |
#include <features.h> |
#include <features.h> |
#ifdef __GNU_LIBRARY__ |
#ifdef __GNU_LIBRARY__ |
#if (__GLIBC__ >= 2) | #if (__GLIBC__ >= 2) && !defined __UCLIBC__ |
Lucky GNU user |
Lucky GNU user |
#endif |
#endif |
#endif |
#endif |
], | ], |
[ac_cv_gnu_library_2=yes], | [ac_cv_gnu_library_2=yes], |
[ac_cv_gnu_library_2=no]) | [ac_cv_gnu_library_2=no]) |
] |
] |
) |
) |
AC_SUBST([GLIBC2]) |
AC_SUBST([GLIBC2]) |