summaryrefslogtreecommitdiffstats
path: root/gl/m4/getdelim.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/getdelim.m4')
-rw-r--r--gl/m4/getdelim.m415
1 files changed, 10 insertions, 5 deletions
diff --git a/gl/m4/getdelim.m4 b/gl/m4/getdelim.m4
index 9aaed202..63d88306 100644
--- a/gl/m4/getdelim.m4
+++ b/gl/m4/getdelim.m4
@@ -1,10 +1,12 @@
1# getdelim.m4 serial 16 1# getdelim.m4
2# serial 19
2 3
3dnl Copyright (C) 2005-2007, 2009-2023 Free Software Foundation, Inc. 4dnl Copyright (C) 2005-2007, 2009-2025 Free Software Foundation, Inc.
4dnl 5dnl
5dnl This file is free software; the Free Software Foundation 6dnl This file is free software; the Free Software Foundation
6dnl gives unlimited permission to copy and/or distribute it, 7dnl gives unlimited permission to copy and/or distribute it,
7dnl with or without modifications, as long as this notice is preserved. 8dnl with or without modifications, as long as this notice is preserved.
9dnl This file is offered as-is, without any warranty.
8 10
9AC_PREREQ([2.59]) 11AC_PREREQ([2.59])
10 12
@@ -18,7 +20,7 @@ AC_DEFUN([gl_FUNC_GETDELIM],
18 20
19 AC_CHECK_DECLS_ONCE([getdelim]) 21 AC_CHECK_DECLS_ONCE([getdelim])
20 22
21 AC_CHECK_FUNCS_ONCE([getdelim]) 23 gl_CHECK_FUNCS_ANDROID([getdelim], [[#include <stdio.h>]])
22 if test $ac_cv_func_getdelim = yes; then 24 if test $ac_cv_func_getdelim = yes; then
23 HAVE_GETDELIM=1 25 HAVE_GETDELIM=1
24 dnl Found it in some library. Verify that it works. 26 dnl Found it in some library. Verify that it works.
@@ -82,8 +84,8 @@ AC_DEFUN([gl_FUNC_GETDELIM],
82 ], 84 ],
83 [gl_cv_func_working_getdelim="guessing yes"], 85 [gl_cv_func_working_getdelim="guessing yes"],
84 [case "$host_os" in 86 [case "$host_os" in
85 *-musl*) gl_cv_func_working_getdelim="guessing yes" ;; 87 *-musl* | midipix*) gl_cv_func_working_getdelim="guessing yes" ;;
86 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;; 88 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
87 esac 89 esac
88 ]) 90 ])
89 ]) 91 ])
@@ -96,6 +98,9 @@ AC_DEFUN([gl_FUNC_GETDELIM],
96 esac 98 esac
97 else 99 else
98 HAVE_GETDELIM=0 100 HAVE_GETDELIM=0
101 case "$gl_cv_onwards_func_getdelim" in
102 future*) REPLACE_GETDELIM=1 ;;
103 esac
99 fi 104 fi
100 105
101 if test $ac_cv_have_decl_getdelim = no; then 106 if test $ac_cv_have_decl_getdelim = no; then