glibc2.m4 748 B

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