glibc21.m4 907 B

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