summaryrefslogtreecommitdiffstats
path: root/gl/m4/setenv.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/setenv.m4')
-rw-r--r--gl/m4/setenv.m49
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
3dnl Copyright (C) 2001-2004, 2006-2024 Free Software Foundation, Inc. 3dnl Copyright (C) 2001-2004, 2006-2026 Free Software Foundation, Inc.
4dnl This file is free software; the Free Software Foundation 4dnl This file is free software; the Free Software Foundation
5dnl gives unlimited permission to copy and/or distribute it, 5dnl gives unlimited permission to copy and/or distribute it,
6dnl with or without modifications, as long as this notice is preserved. 6dnl with or without modifications, as long as this notice is preserved.
7dnl This file is offered as-is, without any warranty.
7 8
8AC_DEFUN([gl_FUNC_SETENV], 9AC_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>
90extern 89extern
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])