glibc21.m4 854 B

123456789101112131415161718192021222324252627282930
  1. # glibc21.m4 serial 4
  2. dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc.
  3. dnl This file is free software; the Free Software Foundation
  4. dnl gives unlimited permission to copy and/or distribute it,
  5. dnl with or without modifications, as long as this notice is preserved.
  6. # Test for the GNU C Library, version 2.1 or newer.
  7. # From Bruno Haible.
  8. AC_DEFUN([gl_GLIBC21],
  9. [
  10. AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer],
  11. [ac_cv_gnu_library_2_1],
  12. [AC_EGREP_CPP([Lucky GNU user],
  13. [
  14. #include <features.h>
  15. #ifdef __GNU_LIBRARY__
  16. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  17. Lucky GNU user
  18. #endif
  19. #endif
  20. ],
  21. [ac_cv_gnu_library_2_1=yes],
  22. [ac_cv_gnu_library_2_1=no])
  23. ]
  24. )
  25. AC_SUBST([GLIBC21])
  26. GLIBC21="$ac_cv_gnu_library_2_1"
  27. ]
  28. )