Bustage fix for cygwin environment with non-cygwin python, from bug 361583
authorbenjamin@smedbergs.us
Wed, 11 Apr 2007 11:17:02 -0700
changeset 472 cc864893ab2d28222ff2bf3090f40a4f788882e4
parent 471 758c67c5769920152cc4ac284594e5cdd754239d
child 473 1c0d55b6d3a583be6f630603790642bae2efb325
push idunknown
push userunknown
push dateunknown
bugs361583
milestone1.9a4pre
Bustage fix for cygwin environment with non-cygwin python, from bug 361583
configure.in
--- a/configure.in
+++ b/configure.in
@@ -1400,19 +1400,20 @@ case "$host" in
         if test "`echo ${srcdir} | grep -c ^/ 2>/dev/null`" = 0; then
             _pwd=`pwd`
             CYGWIN_WRAPPER="${_pwd}/${srcdir}/build/cygwin-wrapper"
         fi
         if test "`${PERL} -v | grep -c cygwin  2>/dev/null`" = 0; then
             AS_PERL=1
             PERL="${CYGWIN_WRAPPER} $PERL"
         fi
-        dnl add this in for non-cygwin python on cygwin builds
-        dnl bug 361583
-        dnl PYTHON="${CYGWIN_WRAPPER} $PYTHON"
+
+        if test "`${PYTHON} -c 'import sys; print sys.platform;'`" != "cygwin"; then
+            PYTHON="${CYGWIN_WRAPPER} $PYTHON"
+        fi
         ;;
     esac
     ;;
 
 *-darwin*)
     HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX -DXP_MACOSX -DNO_X11"
     HOST_NSPR_MDCPUCFG='\"md/_darwin.cfg\"'
     HOST_OPTIMIZE_FLAGS="${HOST_OPTIMIZE_FLAGS=-O3}"