diff options
author | Georg Brandl <georg@python.org> | 2011-03-06 09:13:00 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-03-06 09:13:00 (GMT) |
commit | 13039c87f14aeed325bcb5fadd202922a614957b (patch) | |
tree | f78ce4e5acffdb796e9c1803a7b2127100f5fd4f /configure | |
parent | 80d3610bc36e484fbe7b7ccce366a73314505a16 (diff) | |
parent | 8256242b30005b8a1b52e79149558ad36f1307d6 (diff) | |
download | cpython-13039c87f14aeed325bcb5fadd202922a614957b.zip cpython-13039c87f14aeed325bcb5fadd202922a614957b.tar.gz cpython-13039c87f14aeed325bcb5fadd202922a614957b.tar.bz2 |
Merge build identification to 3.2 branch.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 58 |
1 files changed, 57 insertions, 1 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 88430 . +# From configure.in Revision. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.68 for python 3.2. # @@ -644,6 +644,10 @@ LN INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM +HAS_HG +HGBRANCH +HGTAG +HGVERSION SVNVERSION ARFLAGS AR @@ -5166,6 +5170,58 @@ else SVNVERSION="echo Unversioned directory" fi + + + +# Extract the first word of "hg", so it can be a program name with args. +set dummy hg; ac_word=$2 +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 +$as_echo_n "checking for $ac_word... " >&6; } +if ${ac_cv_prog_HAS_HG+:} false; then : + $as_echo_n "(cached) " >&6 +else + if test -n "$HAS_HG"; then + ac_cv_prog_HAS_HG="$HAS_HG" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then + ac_cv_prog_HAS_HG="found" + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done + done +IFS=$as_save_IFS + + test -z "$ac_cv_prog_HAS_HG" && ac_cv_prog_HAS_HG="not-found" +fi +fi +HAS_HG=$ac_cv_prog_HAS_HG +if test -n "$HAS_HG"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_HG" >&5 +$as_echo "$HAS_HG" >&6; } +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } +fi + + +if test $HAS_HG = found +then + HGVERSION="hg id -i \$(srcdir)" + HGTAG="hg id -t \$(srcdir)" + HGBRANCH="hg id -b \$(srcdir)" +else + HGVERSION="" + HGTAG="" + HGBRANCH="" +fi + case $MACHDEP in bsdos*|hp*|HP*) # install -d does not work on BSDI or HP-UX |