From 5f8de1bff4ba16a2c07389e2b50e08d70a3dac80 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 2 Jan 2025 15:09:04 -0600 Subject: [PATCH] Revert "Remove cache check" This reverts commit f2ae07a68826d44c880930c527a1a3c0efa48480. --- configure | 12 +++++++++++- configure.ac | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 31af8b060c09b6..012f5eb5c2494a 100755 --- a/configure +++ b/configure @@ -26395,6 +26395,13 @@ printf "%s\n" "#define Py_NORMALIZE_CENTURY 1" >>confdefs.h fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C99-compatible strftime specifiers are supported" >&5 +printf %s "checking whether C99-compatible strftime specifiers are supported... " >&6; } +if test ${ac_cv_strftime_c99_support+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes then : { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 @@ -26432,7 +26439,10 @@ fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi - +) +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_strftime_c99_support" >&5 +printf "%s\n" "$ac_cv_strftime_c99_support" >&6; } have_curses=no have_panel=no diff --git a/configure.ac b/configure.ac index 9b18eba4bc6b8d..4c91292907c6ad 100644 --- a/configure.ac +++ b/configure.ac @@ -6665,6 +6665,7 @@ then [Define if year with century should be normalized for strftime.]) fi +AC_CACHE_CHECK([whether C99-compatible strftime specifiers are supported], [ac_cv_strftime_c99_support], [ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include #include @@ -6685,7 +6686,7 @@ int main(void) ]])], [], [AC_MSG_ERROR([Python requires C99-compatible strftime specifiers])], -[]) +[]))]) dnl check for ncursesw/ncurses and panelw/panel dnl NOTE: old curses is not detected.