Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. dnl Provide AC_USE_SYSTEM_EXTENSIONS for old autoconf machines.
  2. AC_DEFUN([ACX_USE_SYSTEM_EXTENSIONS],[
  3. ifdef([AC_USE_SYSTEM_EXTENSIONS],[
  4. AC_USE_SYSTEM_EXTENSIONS
  5. ],[
  6. AC_BEFORE([$0], [AC_COMPILE_IFELSE])
  7. AC_BEFORE([$0], [AC_RUN_IFELSE])
  8. AC_REQUIRE([AC_GNU_SOURCE])
  9. AC_REQUIRE([AC_AIX])
  10. AC_REQUIRE([AC_MINIX])
  11. AH_VERBATIM([__EXTENSIONS__],
  12. [/* Enable extensions on Solaris. */
  13. #ifndef __EXTENSIONS__
  14. # undef __EXTENSIONS__
  15. #endif
  16. #ifndef _POSIX_PTHREAD_SEMANTICS
  17. # undef _POSIX_PTHREAD_SEMANTICS
  18. #endif
  19. #ifndef _TANDEM_SOURCE
  20. # undef _TANDEM_SOURCE
  21. #endif])
  22. AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__],
  23. [ac_cv_safe_to_define___extensions__],
  24. [AC_COMPILE_IFELSE(
  25. [AC_LANG_PROGRAM([
  26. # define __EXTENSIONS__ 1
  27. AC_INCLUDES_DEFAULT])],
  28. [ac_cv_safe_to_define___extensions__=yes],
  29. [ac_cv_safe_to_define___extensions__=no])])
  30. test $ac_cv_safe_to_define___extensions__ = yes &&
  31. AC_DEFINE([__EXTENSIONS__])
  32. AC_DEFINE([_POSIX_PTHREAD_SEMANTICS])
  33. AC_DEFINE([_TANDEM_SOURCE])
  34. ])
  35. ])