From f702ea24fa15cd13ab8e23a5869c4838d3d4b4be Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sat, 26 Oct 2024 17:36:03 +0200 Subject: [PATCH] [3.13] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126006) (cherry picked from commit 8b7cdc5e0c3ee9903d41a2bfc494148db32dc379) Co-authored-by: Erlend E. Aasland --- configure | 3 +++ configure.ac | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configure b/configure index a33b401d1cde..9057cebd16d6 100755 --- a/configure +++ b/configure @@ -7323,6 +7323,9 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 printf "%s\n" "$EXEEXT" >&6; } +# Make sure we keep EXEEXT and ac_exeext sync'ed. +ac_exeext=$EXEEXT + # Test whether we're running on a non-case-sensitive system, in which # case we give a warning if no ext is given diff --git a/configure.ac b/configure.ac index d1f8e8e8733e..0fc039e3d614 100644 --- a/configure.ac +++ b/configure.ac @@ -1339,6 +1339,9 @@ AC_ARG_WITH([suffix], ]) AC_MSG_RESULT([$EXEEXT]) +# Make sure we keep EXEEXT and ac_exeext sync'ed. +AS_VAR_SET([ac_exeext], [$EXEEXT]) + # Test whether we're running on a non-case-sensitive system, in which # case we give a warning if no ext is given AC_SUBST([BUILDEXEEXT])