summaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authorRoland McGrath <mcgrathr@google.com>2025-03-27 22:19:03 +0000
committerRoland McGrath <mcgrathr@google.com>2025-03-27 22:19:03 +0000
commit184e07c769fb93ede5aa6fdfcda80dc99051cca0 (patch)
tree2d200104db4e496c5dc5ebd01229b5bee109b9c1 /libcpp
parent243e634f5bee3912685756f31d3648df73fa6938 (diff)
libcpp: Add missing configure check for setlocale.
libcpp/ * configure.ac: Check for setlocale. * configure, config.in: Regenerated.
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/config.in3
-rwxr-xr-xlibcpp/configure2
-rw-r--r--libcpp/configure.ac4
3 files changed, 6 insertions, 3 deletions
diff --git a/libcpp/config.in b/libcpp/config.in
index 253ef03a3de..8919fbe6544 100644
--- a/libcpp/config.in
+++ b/libcpp/config.in
@@ -210,6 +210,9 @@
/* Define to 1 if you have the `putc_unlocked' function. */
#undef HAVE_PUTC_UNLOCKED
+/* Define to 1 if you have the `setlocale' function. */
+#undef HAVE_SETLOCALE
+
/* Define to 1 if you can assemble SSE4 insns. */
#undef HAVE_SSE4
diff --git a/libcpp/configure b/libcpp/configure
index 32d6aaa3069..74b6e941f71 100755
--- a/libcpp/configure
+++ b/libcpp/configure
@@ -6034,7 +6034,7 @@ _ACEOF
-for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked
+for ac_func in clearerr_unlocked feof_unlocked ferror_unlocked fflush_unlocked fgetc_unlocked fgets_unlocked fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked putchar_unlocked putc_unlocked setlocale
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff --git a/libcpp/configure.ac b/libcpp/configure.ac
index b883fec776f..9a653296ea7 100644
--- a/libcpp/configure.ac
+++ b/libcpp/configure.ac
@@ -81,7 +81,7 @@ define(libcpp_UNLOCKED_FUNCS, clearerr_unlocked feof_unlocked dnl
fileno_unlocked fprintf_unlocked fputc_unlocked fputs_unlocked dnl
fread_unlocked fwrite_unlocked getchar_unlocked getc_unlocked dnl
putchar_unlocked putc_unlocked)
-AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS)
+AC_CHECK_FUNCS(libcpp_UNLOCKED_FUNCS setlocale)
AC_CHECK_DECLS([abort, asprintf, basename(char *), errno, getopt, vasprintf])
AC_CHECK_DECLS(m4_split(m4_normalize(libcpp_UNLOCKED_FUNCS)))
@@ -172,7 +172,7 @@ do
esac
done
IFS="$ac_save_IFS"
-
+
if test x$ac_checking != x ; then
AC_DEFINE(CHECKING_P, 1,
[Define to 1 if you want more run-time sanity checks.])