diff options
Diffstat (limited to 'gl/m4/setenv.m4')
| -rw-r--r-- | gl/m4/setenv.m4 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gl/m4/setenv.m4 b/gl/m4/setenv.m4 index e7f00f39..5faf28d2 100644 --- a/gl/m4/setenv.m4 +++ b/gl/m4/setenv.m4 | |||
| @@ -1,9 +1,10 @@ | |||
| 1 | # setenv.m4 | 1 | # setenv.m4 |
| 2 | # serial 33 | 2 | # serial 36 |
| 3 | dnl Copyright (C) 2001-2004, 2006-2024 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2001-2004, 2006-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| 7 | dnl This file is offered as-is, without any warranty. | ||
| 7 | 8 | ||
| 8 | AC_DEFUN([gl_FUNC_SETENV], | 9 | AC_DEFUN([gl_FUNC_SETENV], |
| 9 | [ | 10 | [ |
| @@ -84,8 +85,6 @@ AC_DEFUN([gl_FUNC_UNSETENV], | |||
| 84 | [AC_COMPILE_IFELSE( | 85 | [AC_COMPILE_IFELSE( |
| 85 | [AC_LANG_PROGRAM( | 86 | [AC_LANG_PROGRAM( |
| 86 | [[ | 87 | [[ |
| 87 | #undef _BSD | ||
| 88 | #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */ | ||
| 89 | #include <stdlib.h> | 88 | #include <stdlib.h> |
| 90 | extern | 89 | extern |
| 91 | #ifdef __cplusplus | 90 | #ifdef __cplusplus |
| @@ -155,6 +154,7 @@ AC_DEFUN([gl_PREREQ_SETENV], | |||
| 155 | AC_REQUIRE([gl_ENVIRON]) | 154 | AC_REQUIRE([gl_ENVIRON]) |
| 156 | AC_CHECK_HEADERS_ONCE([unistd.h]) | 155 | AC_CHECK_HEADERS_ONCE([unistd.h]) |
| 157 | AC_CHECK_HEADERS([search.h]) | 156 | AC_CHECK_HEADERS([search.h]) |
| 157 | AC_CHECK_DECLS_ONCE([_putenv]) | ||
| 158 | gl_CHECK_FUNCS_ANDROID([tsearch], [[#include <search.h>]]) | 158 | gl_CHECK_FUNCS_ANDROID([tsearch], [[#include <search.h>]]) |
| 159 | ]) | 159 | ]) |
| 160 | 160 | ||
| @@ -163,4 +163,5 @@ AC_DEFUN([gl_PREREQ_UNSETENV], | |||
| 163 | [ | 163 | [ |
| 164 | AC_REQUIRE([gl_ENVIRON]) | 164 | AC_REQUIRE([gl_ENVIRON]) |
| 165 | AC_CHECK_HEADERS_ONCE([unistd.h]) | 165 | AC_CHECK_HEADERS_ONCE([unistd.h]) |
| 166 | AC_CHECK_DECLS_ONCE([_putenv]) | ||
| 166 | ]) | 167 | ]) |
