From 81747c015f790fa39fbda399ef66caba6e6bee13 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Sun, 1 May 2016 08:20:24 +1000 Subject: [PATCH] break from loop if we have found a good python --- configure | 1 + configure.in | 1 + 2 files changed, 2 insertions(+) diff --git a/configure b/configure index 37b3130d32..b886de4e27 100755 --- a/configure +++ b/configure @@ -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; } diff --git a/configure.in b/configure.in index 71481810d4..2799501fc8 100644 --- a/configure.in +++ b/configure.in @@ -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