1# Enable extensions on systems that normally disable them. 2 3# Copyright (C) 2003 Free Software Foundation, Inc. 4# This file is free software; the Free Software Foundation 5# gives unlimited permission to copy and/or distribute it, 6# with or without modifications, as long as this notice is preserved. 7 8# gl_USE_SYSTEM_EXTENSIONS 9# ------------------------ 10# Enable extensions on systems that normally disable them, 11# typically due to standards-conformance issues. 12AC_DEFUN([gl_USE_SYSTEM_EXTENSIONS], [ 13 AC_BEFORE([$0], [AC_USE_SYSTEM_EXTENSIONS]) 14 AC_BEFORE([$0], [AC_COMPILE_IFELSE]) 15 AC_BEFORE([$0], [AC_RUN_IFELSE]) 16 17 AC_REQUIRE([AC_GNU_SOURCE]) 18 AC_REQUIRE([AC_AIX]) 19 AC_REQUIRE([AC_MINIX]) 20 21 AH_VERBATIM([__EXTENSIONS__], 22[/* Enable extensions on Solaris. */ 23#ifndef __EXTENSIONS__ 24# undef __EXTENSIONS__ 25#endif 26#ifndef _POSIX_PTHREAD_SEMANTICS 27# undef _POSIX_PTHREAD_SEMANTICS 28#endif]) 29 AC_DEFINE([__EXTENSIONS__]) 30 AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 31]) 32