|
|
5117e73 |
diff -rupN Python-2.7.14/configure.ac Python-2.7.14-new/configure.ac
|
|
|
5117e73 |
--- Python-2.7.14/configure.ac 2017-10-31 18:36:31.427183407 +0100
|
|
|
5117e73 |
+++ Python-2.7.14-new/configure.ac 2017-10-31 18:36:31.429183406 +0100
|
|
|
5117e73 |
@@ -773,6 +773,27 @@ SunOS*)
|
|
|
ddb6764 |
;;
|
|
|
ddb6764 |
esac
|
|
|
ddb6764 |
|
|
|
ddb6764 |
+# initialize default configuration
|
|
|
ddb6764 |
+py_config=
|
|
|
ddb6764 |
+case $host in
|
|
|
ddb6764 |
+ *-*-mingw*) py_config=mingw ;;
|
|
|
ddb6764 |
+esac
|
|
|
ddb6764 |
+if test -n "$py_config" ; then
|
|
|
ddb6764 |
+ AC_MSG_NOTICE([loading configure defaults from .../Misc/config_$py_config"])
|
|
|
ddb6764 |
+ . "$srcdir/Misc/config_$py_config"
|
|
|
ddb6764 |
+fi
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+# initialize defaults for cross-builds
|
|
|
ddb6764 |
+if test "$cross_compiling" = yes; then
|
|
|
ddb6764 |
+ py_config=$host_os
|
|
|
ddb6764 |
+ case $py_config in
|
|
|
ddb6764 |
+ mingw32*) py_config=mingw32 ;;
|
|
|
ddb6764 |
+ esac
|
|
|
ddb6764 |
+ if test -f "$srcdir/Misc/cross_$py_config" ; then
|
|
|
ddb6764 |
+ AC_MSG_NOTICE([loading cross defaults from .../Misc/cross_$py_config"])
|
|
|
ddb6764 |
+ . "$srcdir/Misc/cross_$py_config"
|
|
|
ddb6764 |
+ fi
|
|
|
ddb6764 |
+fi
|
|
|
ddb6764 |
|
|
|
ddb6764 |
AC_SUBST(LIBRARY)
|
|
|
ddb6764 |
AC_MSG_CHECKING(LIBRARY)
|
|
|
5117e73 |
diff -rupN Python-2.7.14/Misc/config_mingw Python-2.7.14-new/Misc/config_mingw
|
|
|
5117e73 |
--- Python-2.7.14/Misc/config_mingw 1970-01-01 01:00:00.000000000 +0100
|
|
|
5117e73 |
+++ Python-2.7.14-new/Misc/config_mingw 2017-10-31 18:36:31.430183406 +0100
|
|
|
ddb6764 |
@@ -0,0 +1,12 @@
|
|
|
ddb6764 |
+# configure defaults for mingw* hosts
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+# mingw functions to ignore
|
|
|
ddb6764 |
+ac_cv_func_ftruncate=ignore # implement it as _chsize
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+# mingw-w64 functions to ignore
|
|
|
ddb6764 |
+ac_cv_func_truncate=ignore
|
|
|
ddb6764 |
+ac_cv_func_alarm=ignore
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+# files to ignore
|
|
|
ddb6764 |
+ac_cv_file__dev_ptmx=ignore #NOTE: under MSYS environment device exist
|
|
|
ddb6764 |
+ac_cv_file__dev_ptc=no
|
|
|
5117e73 |
diff -rupN Python-2.7.14/Misc/cross_mingw32 Python-2.7.14-new/Misc/cross_mingw32
|
|
|
5117e73 |
--- Python-2.7.14/Misc/cross_mingw32 1970-01-01 01:00:00.000000000 +0100
|
|
|
5117e73 |
+++ Python-2.7.14-new/Misc/cross_mingw32 2017-10-31 18:36:31.430183406 +0100
|
|
|
ddb6764 |
@@ -0,0 +1,11 @@
|
|
|
ddb6764 |
+# configure defaults for mingw32 host if cross-build
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+ac_cv_little_endian_double=yes
|
|
|
ddb6764 |
+ac_cv_big_endian_double=no
|
|
|
ddb6764 |
+ac_cv_mixed_endian_double=no
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+ac_cv_tanh_preserves_zero_sign=yes
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+ac_cv_wchar_t_signed=no
|
|
|
ddb6764 |
+
|
|
|
ddb6764 |
+ac_cv_have_size_t_format=no
|