diff options
Diffstat (limited to 'gl/m4/setenv.m4')
-rw-r--r-- | gl/m4/setenv.m4 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gl/m4/setenv.m4 b/gl/m4/setenv.m4 index 16f9eb5..e7f00f3 100644 --- a/gl/m4/setenv.m4 +++ b/gl/m4/setenv.m4 | |||
@@ -1,5 +1,6 @@ | |||
1 | # setenv.m4 serial 30 | 1 | # setenv.m4 |
2 | dnl Copyright (C) 2001-2004, 2006-2023 Free Software Foundation, Inc. | 2 | # serial 33 |
3 | dnl Copyright (C) 2001-2004, 2006-2024 Free Software Foundation, Inc. | ||
3 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
4 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
5 | 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. |
@@ -35,12 +36,12 @@ AC_DEFUN([gl_FUNC_SETENV], | |||
35 | ]])], | 36 | ]])], |
36 | [gl_cv_func_setenv_works=yes], [gl_cv_func_setenv_works=no], | 37 | [gl_cv_func_setenv_works=yes], [gl_cv_func_setenv_works=no], |
37 | [case "$host_os" in | 38 | [case "$host_os" in |
38 | # Guess yes on glibc systems. | 39 | # Guess yes on glibc systems. |
39 | *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; | 40 | *-gnu* | gnu*) gl_cv_func_setenv_works="guessing yes" ;; |
40 | # Guess yes on musl systems. | 41 | # Guess yes on musl systems. |
41 | *-musl*) gl_cv_func_setenv_works="guessing yes" ;; | 42 | *-musl* | midipix*) gl_cv_func_setenv_works="guessing yes" ;; |
42 | # If we don't know, obey --enable-cross-guesses. | 43 | # If we don't know, obey --enable-cross-guesses. |
43 | *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; | 44 | *) gl_cv_func_setenv_works="$gl_cross_guess_normal" ;; |
44 | esac | 45 | esac |
45 | ])]) | 46 | ])]) |
46 | case "$gl_cv_func_setenv_works" in | 47 | case "$gl_cv_func_setenv_works" in |
@@ -151,11 +152,10 @@ int unsetenv (const char *name); | |||
151 | # Prerequisites of lib/setenv.c. | 152 | # Prerequisites of lib/setenv.c. |
152 | AC_DEFUN([gl_PREREQ_SETENV], | 153 | AC_DEFUN([gl_PREREQ_SETENV], |
153 | [ | 154 | [ |
154 | AC_REQUIRE([AC_FUNC_ALLOCA]) | ||
155 | AC_REQUIRE([gl_ENVIRON]) | 155 | AC_REQUIRE([gl_ENVIRON]) |
156 | AC_CHECK_HEADERS_ONCE([unistd.h]) | 156 | AC_CHECK_HEADERS_ONCE([unistd.h]) |
157 | AC_CHECK_HEADERS([search.h]) | 157 | AC_CHECK_HEADERS([search.h]) |
158 | AC_CHECK_FUNCS([tsearch]) | 158 | gl_CHECK_FUNCS_ANDROID([tsearch], [[#include <search.h>]]) |
159 | ]) | 159 | ]) |
160 | 160 | ||
161 | # Prerequisites of lib/unsetenv.c. | 161 | # Prerequisites of lib/unsetenv.c. |