aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-09-09 06:56:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-09 06:56:18 +0000
commit947d8f8b536922edc7b5d57275a1e7495df2febe (patch)
tree3b510684fe893e968e074ad775e1462f3215f82a
parent8609a3469a8126eb6fb99ff65906bcc20c272d95 (diff)
parent523bd3804b7d35170d78569441470bc9f401f9ee (diff)
downloadllvm-release_33.tar.gz
Merge "python: AC_PATH_PROG -> AC_PATH_PROGS and fix search order" into release_33release_33
-rw-r--r--autoconf/configure.ac2
-rwxr-xr-xconfigure21
2 files changed, 14 insertions, 9 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 4d03df192f1..d7089380163 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -1359,7 +1359,7 @@ else
AC_MSG_WARN([specified python ($PYTHON) is not usable, searching path])
fi
- AC_PATH_PROG([PYTHON], [python python2 python26],
+ AC_PATH_PROGS([PYTHON], [python26 python2 python],
[AC_MSG_RESULT([not found])
AC_MSG_ERROR([could not find python 2.5 or higher])])
fi
diff --git a/configure b/configure
index 33ac91b8275..b6ff396caf6 100755
--- a/configure
+++ b/configure
@@ -5874,7 +5874,7 @@ esac
{ echo "$as_me:$LINENO: checking binary size reduction linker flags" >&5
echo $ECHO_N "checking binary size reduction linker flags... $ECHO_C" >&6; }
{ echo "$as_me:$LINENO: checking for compiler -Wl,--gc-sections option" >&5
-echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
+echo $ECHO_N "checking for compiler -Wl,--gc-sections option... $ECHO_C" >&6; }
if test "${llvm_cv_link_use_gc_sections+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
@@ -12480,8 +12480,10 @@ else
echo "$as_me: WARNING: specified python ($PYTHON) is not usable, searching path" >&2;}
fi
- # Extract the first word of "python python2 python26", so it can be a program name with args.
-set dummy python python2 python26; ac_word=$2
+ for ac_prog in python26 python2 python
+do
+ # Extract the first word of "$ac_prog", so it can be a program name with args.
+set dummy $ac_prog; ac_word=$2
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
if test "${ac_cv_path_PYTHON+set}" = set; then
@@ -12507,11 +12509,6 @@ done
done
IFS=$as_save_IFS
- test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
-echo "${ECHO_T}not found" >&6; }
- { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
-echo "$as_me: error: could not find python 2.5 or higher" >&2;}
- { (exit 1); exit 1; }; }"
;;
esac
fi
@@ -12525,6 +12522,14 @@ echo "${ECHO_T}no" >&6; }
fi
+ test -n "$PYTHON" && break
+done
+test -n "$PYTHON" || PYTHON="{ echo "$as_me:$LINENO: result: not found" >&5
+echo "${ECHO_T}not found" >&6; }
+ { { echo "$as_me:$LINENO: error: could not find python 2.5 or higher" >&5
+echo "$as_me: error: could not find python 2.5 or higher" >&2;}
+ { (exit 1); exit 1; }; }"
+
fi
{ echo "$as_me:$LINENO: checking for python >= 2.5" >&5