glibc2.m4 830 B

12345678910111213141516171819202122232425262728293031
  1. # glibc2.m4 serial 3
  2. dnl Copyright (C) 2000-2002, 2004, 2008, 2010-2014 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.0 or newer.
  8. # From Bruno Haible.
  9. AC_DEFUN([gt_GLIBC2],
  10. [
  11. AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer],
  12. [ac_cv_gnu_library_2],
  13. [AC_EGREP_CPP([Lucky GNU user],
  14. [
  15. #include <features.h>
  16. #ifdef __GNU_LIBRARY__
  17. #if (__GLIBC__ >= 2) && !defined __UCLIBC__
  18. Lucky GNU user
  19. #endif
  20. #endif
  21. ],
  22. [ac_cv_gnu_library_2=yes],
  23. [ac_cv_gnu_library_2=no])
  24. ]
  25. )
  26. AC_SUBST([GLIBC2])
  27. GLIBC2="$ac_cv_gnu_library_2"
  28. ]
  29. )