]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Restore --with-suffix option. AC_EXEEXT doesn't aways do what the user wants
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 27 Jan 2001 06:54:42 +0000 (06:54 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Sat, 27 Jan 2001 06:54:42 +0000 (06:54 +0000)
and an option is more friendly then manually setting a variable.

configure.in

index 78c07d67042a48a22754aba61c534d044e278a4d..554aa936997fe2287d6e87305856eea8423b6679 100644 (file)
@@ -171,6 +171,14 @@ fi
 
 AC_PROG_CC
 AC_EXEEXT
+AC_MSG_CHECKING(for --with-suffix)
+AC_ARG_WITH(suffix, [  --with-suffix=.exe              set executable suffix],[
+       case $withval in
+       no)     EXEEXT=;;
+       yes)    EXEEXT=.exe;;
+       *)      EXEEXT=$withval;;
+       esac])
+AC_MSG_RESULT($EXEEXT)
 
 case $MACHDEP in
 bsdos*)