---- Python-2.5b2/configure.in.orig 2006-07-06 11:13:35.000000000 +0100
-+++ Python-2.5b2/configure.in 2006-07-12 16:30:30.000000000 +0100
-@@ -753,13 +753,13 @@
- if test "$Py_DEBUG" = 'true' ; then
- # Optimization messes up debuggers, so turn it off for
- # debug builds.
-- OPT="-g -Wall $STRICT_PROTO"
-+ OPT="-g $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
- else
-- OPT="-g $WRAP -O3 -Wall $STRICT_PROTO"
-+ OPT="-g $WRAP $CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
- fi
- ;;
- *)
-- OPT="-O3 -Wall $STRICT_PROTO"
-+ OPT="$CPPFLAGS $CFLAGS -Wall $STRICT_PROTO"
- ;;
- esac
+--- Python-3.6.2/configure.ac~ 2017-07-08 05:33:27.000000000 +0200
++++ Python-3.6.2/configure.ac 2017-08-07 10:28:44.498951134 +0200
+@@ -1485,25 +1485,6 @@ then
+ CFLAGS_ALIASING="-fno-strict-aliasing"
+ fi
+
+- case $ac_cv_prog_cc_g in
+- yes)
+- if test "$Py_DEBUG" = 'true' ; then
+- # Optimization messes up debuggers, so turn it off for
+- # debug builds.
+- if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then
+- OPT="-g -Og -Wall"
+- else
+- OPT="-g -O0 -Wall"
+- fi
+- else
+- OPT="-g $WRAP -O3 -Wall"
+- fi
+- ;;
+- *)
+- OPT="-O3 -Wall"
+- ;;
+- esac
+-
case $ac_sys_system in
---- Python-2.5c1.orig/Makefile.pre.in 2006-07-30 17:20:10.000000000 +0100
-+++ Python-2.5c1/Makefile.pre.in 2006-08-25 17:51:05.000000000 +0100
-@@ -852,7 +852,7 @@
- $(INSTALL_SCRIPT) $(srcdir)/install-sh $(DESTDIR)$(LIBPL)/install-sh
- # Substitution happens here, as the completely-expanded BINDIR
- # is not available in configure
-- sed -e "s,@EXENAME@,$(BINDIR)/python$(VERSION)$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
-+ sed -e "s,@EXENAME@,$(BINDIR)/python$(EXE)," < $(srcdir)/Misc/python-config.in >python-config
- $(INSTALL_SCRIPT) python-config $(DESTDIR)$(BINDIR)/python$(VERSION)-config
- rm python-config
- @if [ -s Modules/python.exp -a \
+ SCO_SV*) OPT="$OPT -m486 -DSCO5"
+ ;;
+