break from loop if we have found a good python

This commit is contained in:
Mark Andrews 2016-05-01 08:20:24 +10:00
parent be133c6ad7
commit 81747c015f
2 changed files with 2 additions and 0 deletions

1
configure vendored
View file

@ -11865,6 +11865,7 @@ $as_echo_n "checking python module 'argparse'... " >&6; }
if ${PYTHON:-false} -c "$testargparse"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
$as_echo "found" >&6; }
break
else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
$as_echo "not found" >&6; }

View file

@ -245,6 +245,7 @@ case "$use_python" in
AC_MSG_CHECKING([python module 'argparse'])
if ${PYTHON:-false} -c "$testargparse"; then
AC_MSG_RESULT([found])
break
else
AC_MSG_RESULT([not found])
unset ac_cv_path_PYTHON