Blame m4/glibc21.m4

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