extensions.m4 960 B

1234567891011121314151617181920212223242526272829
  1. # Enable extensions on systems that normally disable them.
  2. # Copyright (C) 2003 Free Software Foundation, Inc.
  3. # This file is free software, distributed under the terms of the GNU
  4. # General Public License. As a special exception to the GNU General
  5. # Public License, this file may be distributed as part of a program
  6. # that contains a configuration script generated by Autoconf, under
  7. # the same distribution terms as the rest of that program.
  8. # gl_USE_SYSTEM_EXTENSIONS
  9. # ------------------------
  10. # Enable extensions on systems that normally disable them,
  11. # typically due to standards-conformance issues.
  12. AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], [
  13. AC_BEFORE([$0], [AC_COMPILE_IFELSE])
  14. AC_BEFORE([$0], [AC_RUN_IFELSE])
  15. AC_REQUIRE([AC_GNU_SOURCE])
  16. AC_REQUIRE([AC_AIX])
  17. AC_REQUIRE([AC_MINIX])
  18. AH_VERBATIM([__EXTENSIONS__],
  19. [/* Enable extensions on Solaris. */
  20. #ifndef __EXTENSIONS__
  21. # undef __EXTENSIONS__
  22. #endif])
  23. AC_DEFINE([__EXTENSIONS__])
  24. ])