[Python-checkins] r78817 - in python/trunk: configure configure.in

benjamin.peterson python-checkins at python.org
Tue Mar 9 22:43:36 CET 2010


Author: benjamin.peterson
Date: Tue Mar  9 22:43:36 2010
New Revision: 78817

Log:
handle an empty OPT variable correctly #8100

Modified:
   python/trunk/configure
   python/trunk/configure.in

Modified: python/trunk/configure
==============================================================================
--- python/trunk/configure	(original)
+++ python/trunk/configure	Tue Mar  9 22:43:36 2010
@@ -4596,7 +4596,7 @@
 # tweak OPT based on compiler and platform, only if the user didn't set
 # it on the command line
 
-if test -z "$OPT"
+if test "${OPT-unset}" == "unset"
 then
     case $GCC in
     yes)

Modified: python/trunk/configure.in
==============================================================================
--- python/trunk/configure.in	(original)
+++ python/trunk/configure.in	Tue Mar  9 22:43:36 2010
@@ -881,7 +881,7 @@
 # tweak OPT based on compiler and platform, only if the user didn't set
 # it on the command line
 AC_SUBST(OPT)
-if test -z "$OPT"
+if test "${OPT-unset}" == "unset"
 then
     case $GCC in
     yes)


More information about the Python-checkins mailing list