]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-125698: Restore EXEEXT in configure and Make (#125758)
authorErlend E. Aasland <erlend@python.org>
Sun, 20 Oct 2024 21:08:01 +0000 (23:08 +0200)
committerGitHub <noreply@github.com>
Sun, 20 Oct 2024 21:08:01 +0000 (23:08 +0200)
This reverts commit e924bb667.

Makefile.pre.in
configure
configure.ac

index 9c313c8029fb68d6f089c23ded4a35a1386c6880..fb6f22d57397db0e8bc8a9b70c6cfe8978300c65 100644 (file)
@@ -176,7 +176,7 @@ EXPORTSYMS= @EXPORTSYMS@
 EXPORTSFROM=   @EXPORTSFROM@
 
 # Executable suffix (.exe on Windows and Mac OS X)
-EXE=           @EXE_SUFFIX@
+EXE=           @EXEEXT@
 BUILDEXE=      @BUILDEXEEXT@
 
 # Name of the patch file to apply for app store compliance
index ab35f69f73011f13c0344b6f67875d62193e0027..b11f41d53799587c16aa53d06bcbb7c315ad21ef 100755 (executable)
--- a/configure
+++ b/configure
@@ -7296,11 +7296,11 @@ then :
   withval=$with_suffix;
        case $with_suffix in #(
   no) :
-    EXE_SUFFIX= ;; #(
+    EXEEXT= ;; #(
   yes) :
-    EXE_SUFFIX=.exe ;; #(
+    EXEEXT=.exe ;; #(
   *) :
-    EXE_SUFFIX=$with_suffix
+    EXEEXT=$with_suffix
    ;;
 esac
 
@@ -7308,20 +7308,20 @@ else $as_nop
 
   case $ac_sys_system/$ac_sys_emscripten_target in #(
   Emscripten/browser*) :
-    EXE_SUFFIX=.js ;; #(
+    EXEEXT=.js ;; #(
   Emscripten/node*) :
-    EXE_SUFFIX=.js ;; #(
+    EXEEXT=.js ;; #(
   WASI/*) :
-    EXE_SUFFIX=.wasm ;; #(
+    EXEEXT=.wasm ;; #(
   *) :
-    EXE_SUFFIX=
+    EXEEXT=
    ;;
 esac
 
 fi
 
-{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXE_SUFFIX" >&5
-printf "%s\n" "$EXE_SUFFIX" >&6; }
+{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
+printf "%s\n" "$EXEEXT" >&6; }
 
 # Test whether we're running on a non-case-sensitive system, in which
 # case we give a warning if no ext is given
@@ -7332,7 +7332,7 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir && test -z "$EXE_SUFFIX"
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 printf "%s\n" "yes" >&6; }
@@ -7340,7 +7340,7 @@ printf "%s\n" "yes" >&6; }
 else
        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
 printf "%s\n" "no" >&6; }
-       BUILDEXEEXT=$EXE_SUFFIX
+       BUILDEXEEXT=$EXEEXT
 fi
 rmdir CaseSensitiveTestDir
 
index 9e50eae6a7ece8d13c4f446be47daaf3437aec16..d5bc739c34c90f008e8915a43e771e5751727a21 100644 (file)
@@ -1325,19 +1325,19 @@ AC_ARG_WITH([suffix],
             [AS_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is empty, yes is mapped to '.exe')])],
 [
        AS_CASE([$with_suffix],
-    [no], [EXE_SUFFIX=],
-    [yes], [EXE_SUFFIX=.exe],
-    [EXE_SUFFIX=$with_suffix]
+    [no], [EXEEXT=],
+    [yes], [EXEEXT=.exe],
+    [EXEEXT=$with_suffix]
   )
 ], [
   AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
-    [Emscripten/browser*], [EXE_SUFFIX=.js],
-    [Emscripten/node*], [EXE_SUFFIX=.js],
-    [WASI/*], [EXE_SUFFIX=.wasm],
-    [EXE_SUFFIX=]
+    [Emscripten/browser*], [EXEEXT=.js],
+    [Emscripten/node*], [EXEEXT=.js],
+    [WASI/*], [EXEEXT=.wasm],
+    [EXEEXT=]
   )
 ])
-AC_MSG_RESULT([$EXE_SUFFIX])
+AC_MSG_RESULT([$EXEEXT])
 
 # Test whether we're running on a non-case-sensitive system, in which
 # case we give a warning if no ext is given
@@ -1347,13 +1347,13 @@ if test ! -d CaseSensitiveTestDir; then
 mkdir CaseSensitiveTestDir
 fi
 
-if test -d casesensitivetestdir && test -z "$EXE_SUFFIX"
+if test -d casesensitivetestdir && test -z "$EXEEXT"
 then
     AC_MSG_RESULT([yes])
     BUILDEXEEXT=.exe
 else
        AC_MSG_RESULT([no])
-       BUILDEXEEXT=$EXE_SUFFIX
+       BUILDEXEEXT=$EXEEXT
 fi
 rmdir CaseSensitiveTestDir