diff options
Diffstat (limited to 'gl/m4/extensions.m4')
-rw-r--r-- | gl/m4/extensions.m4 | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/gl/m4/extensions.m4 b/gl/m4/extensions.m4 index 5336b8d..1fb6895 100644 --- a/gl/m4/extensions.m4 +++ b/gl/m4/extensions.m4 | |||
@@ -1,10 +1,11 @@ | |||
1 | # serial 23 -*- Autoconf -*- | 1 | # extensions.m4 |
2 | # Enable extensions on systems that normally disable them. | 2 | # serial 25 -*- Autoconf -*- |
3 | dnl Copyright (C) 2003, 2006-2024 Free Software Foundation, 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. | ||
3 | 7 | ||
4 | # Copyright (C) 2003, 2006-2023 Free Software Foundation, Inc. | 8 | # Enable extensions on systems that normally disable them. |
5 | # This file is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | 9 | ||
9 | dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that | 10 | dnl Define to empty for the benefit of Autoconf 2.69 and earlier, so that |
10 | dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+. | 11 | dnl AC_USE_SYSTEM_EXTENSIONS (below) can be used unchanged from Autoconf 2.70+. |
@@ -229,4 +230,15 @@ AC_DEFUN_ONCE([gl_USE_SYSTEM_EXTENSIONS], | |||
229 | [Define to enable the declarations of ISO C 11 types and functions.]) | 230 | [Define to enable the declarations of ISO C 11 types and functions.]) |
230 | ;; | 231 | ;; |
231 | esac | 232 | esac |
233 | |||
234 | dnl On OpenSolaris derivatives, the include files contains a couple of | ||
235 | dnl declarations that are only activated with an explicit | ||
236 | dnl -D__STDC_WANT_LIB_EXT1__. | ||
237 | AH_VERBATIM([USE_ISO_C_23_ANNEX_K_EXTENSIONS], | ||
238 | [/* Define to enable the declarations of ISO C 23 Annex K types and functions. */ | ||
239 | #if !(defined __STDC_WANT_LIB_EXT1__ && __STDC_WANT_LIB_EXT1__) | ||
240 | #undef/**/__STDC_WANT_LIB_EXT1__ | ||
241 | #define __STDC_WANT_LIB_EXT1__ 1 | ||
242 | #endif | ||
243 | ]) | ||
232 | ]) | 244 | ]) |