gh-125698: Replace EXEEXT with EXE_SUFFIX (#125699)

This commit is contained in:
Erlend E. Aasland 2024-10-20 03:10:17 +02:00 committed by GitHub
parent 14cafe1a10
commit e924bb667a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 22 deletions

View file

@ -176,7 +176,7 @@ EXPORTSYMS= @EXPORTSYMS@
EXPORTSFROM= @EXPORTSFROM@ EXPORTSFROM= @EXPORTSFROM@
# Executable suffix (.exe on Windows and Mac OS X) # Executable suffix (.exe on Windows and Mac OS X)
EXE= @EXEEXT@ EXE= @EXE_SUFFIX@
BUILDEXE= @BUILDEXEEXT@ BUILDEXE= @BUILDEXEEXT@
# Name of the patch file to apply for app store compliance # Name of the patch file to apply for app store compliance

22
configure generated vendored
View file

@ -7296,11 +7296,11 @@ then :
withval=$with_suffix; withval=$with_suffix;
case $with_suffix in #( case $with_suffix in #(
no) : no) :
EXEEXT= ;; #( EXE_SUFFIX= ;; #(
yes) : yes) :
EXEEXT=.exe ;; #( EXE_SUFFIX=.exe ;; #(
*) : *) :
EXEEXT=$with_suffix EXE_SUFFIX=$with_suffix
;; ;;
esac esac
@ -7308,20 +7308,20 @@ else $as_nop
case $ac_sys_system/$ac_sys_emscripten_target in #( case $ac_sys_system/$ac_sys_emscripten_target in #(
Emscripten/browser*) : Emscripten/browser*) :
EXEEXT=.js ;; #( EXE_SUFFIX=.js ;; #(
Emscripten/node*) : Emscripten/node*) :
EXEEXT=.js ;; #( EXE_SUFFIX=.js ;; #(
WASI/*) : WASI/*) :
EXEEXT=.wasm ;; #( EXE_SUFFIX=.wasm ;; #(
*) : *) :
EXEEXT= EXE_SUFFIX=
;; ;;
esac esac
fi fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXE_SUFFIX" >&5
printf "%s\n" "$EXEEXT" >&6; } printf "%s\n" "$EXE_SUFFIX" >&6; }
# Test whether we're running on a non-case-sensitive system, in which # Test whether we're running on a non-case-sensitive system, in which
# case we give a warning if no ext is given # case we give a warning if no ext is given
@ -7332,7 +7332,7 @@ if test ! -d CaseSensitiveTestDir; then
mkdir CaseSensitiveTestDir mkdir CaseSensitiveTestDir
fi fi
if test -d casesensitivetestdir && test -z "$EXEEXT" if test -d casesensitivetestdir && test -z "$EXE_SUFFIX"
then then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
printf "%s\n" "yes" >&6; } printf "%s\n" "yes" >&6; }
@ -7340,7 +7340,7 @@ printf "%s\n" "yes" >&6; }
else else
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
printf "%s\n" "no" >&6; } printf "%s\n" "no" >&6; }
BUILDEXEEXT=$EXEEXT BUILDEXEEXT=$EXE_SUFFIX
fi fi
rmdir CaseSensitiveTestDir rmdir CaseSensitiveTestDir

View 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_HELP_STRING([--with-suffix=SUFFIX], [set executable suffix to SUFFIX (default is empty, yes is mapped to '.exe')])],
[ [
AS_CASE([$with_suffix], AS_CASE([$with_suffix],
[no], [EXEEXT=], [no], [EXE_SUFFIX=],
[yes], [EXEEXT=.exe], [yes], [EXE_SUFFIX=.exe],
[EXEEXT=$with_suffix] [EXE_SUFFIX=$with_suffix]
) )
], [ ], [
AS_CASE([$ac_sys_system/$ac_sys_emscripten_target], AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
[Emscripten/browser*], [EXEEXT=.js], [Emscripten/browser*], [EXE_SUFFIX=.js],
[Emscripten/node*], [EXEEXT=.js], [Emscripten/node*], [EXE_SUFFIX=.js],
[WASI/*], [EXEEXT=.wasm], [WASI/*], [EXE_SUFFIX=.wasm],
[EXEEXT=] [EXE_SUFFIX=]
) )
]) ])
AC_MSG_RESULT([$EXEEXT]) AC_MSG_RESULT([$EXE_SUFFIX])
# Test whether we're running on a non-case-sensitive system, in which # Test whether we're running on a non-case-sensitive system, in which
# case we give a warning if no ext is given # case we give a warning if no ext is given
@ -1347,13 +1347,13 @@ if test ! -d CaseSensitiveTestDir; then
mkdir CaseSensitiveTestDir mkdir CaseSensitiveTestDir
fi fi
if test -d casesensitivetestdir && test -z "$EXEEXT" if test -d casesensitivetestdir && test -z "$EXE_SUFFIX"
then then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
BUILDEXEEXT=.exe BUILDEXEEXT=.exe
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
BUILDEXEEXT=$EXEEXT BUILDEXEEXT=$EXE_SUFFIX
fi fi
rmdir CaseSensitiveTestDir rmdir CaseSensitiveTestDir