@@ -757,10 +757,10 @@ build_os
757757build_vendor
758758build_cpu
759759build
760- HAS_HG
761- HGBRANCH
762- HGTAG
763- HGVERSION
760+ HAS_GIT
761+ GITBRANCH
762+ GITTAG
763+ GITVERSION
764764BASECPPFLAGS
765765target_alias
766766host_alias
@@ -2839,17 +2839,17 @@ fi
28392839
28402840
28412841
2842- if test -e $srcdir /.hg/dirstate
2842+ if test -e $srcdir /.git/HEAD
28432843then
2844- # Extract the first word of "hg ", so it can be a program name with args.
2845- set dummy hg ; ac_word=$2
2844+ # Extract the first word of "git ", so it can be a program name with args.
2845+ set dummy git ; ac_word=$2
28462846{ $as_echo " $as_me :${as_lineno-$LINENO } : checking for $ac_word " >&5
28472847$as_echo_n " checking for $ac_word ... " >&6 ; }
2848- if ${ac_cv_prog_HAS_HG +: } false ; then :
2848+ if ${ac_cv_prog_HAS_GIT +: } false ; then :
28492849 $as_echo_n " (cached) " >&6
28502850else
2851- if test -n " $HAS_HG " ; then
2852- ac_cv_prog_HAS_HG =" $HAS_HG " # Let the user override the test.
2851+ if test -n " $HAS_GIT " ; then
2852+ ac_cv_prog_HAS_GIT =" $HAS_GIT " # Let the user override the test.
28532853else
28542854as_save_IFS=$IFS ; IFS=$PATH_SEPARATOR
28552855for as_dir in $PATH
@@ -2858,39 +2858,39 @@ do
28582858 test -z " $as_dir " && as_dir=.
28592859 for ac_exec_ext in ' ' $ac_executable_extensions ; do
28602860 if as_fn_executable_p " $as_dir /$ac_word$ac_exec_ext " ; then
2861- ac_cv_prog_HAS_HG =" found"
2861+ ac_cv_prog_HAS_GIT =" found"
28622862 $as_echo " $as_me :${as_lineno-$LINENO } : found $as_dir /$ac_word$ac_exec_ext " >&5
28632863 break 2
28642864 fi
28652865done
28662866 done
28672867IFS=$as_save_IFS
28682868
2869- test -z " $ac_cv_prog_HAS_HG " && ac_cv_prog_HAS_HG =" not-found"
2869+ test -z " $ac_cv_prog_HAS_GIT " && ac_cv_prog_HAS_GIT =" not-found"
28702870fi
28712871fi
2872- HAS_HG= $ac_cv_prog_HAS_HG
2873- if test -n " $HAS_HG " ; then
2874- { $as_echo " $as_me :${as_lineno-$LINENO } : result: $HAS_HG " >&5
2875- $as_echo " $HAS_HG " >&6 ; }
2872+ HAS_GIT= $ac_cv_prog_HAS_GIT
2873+ if test -n " $HAS_GIT " ; then
2874+ { $as_echo " $as_me :${as_lineno-$LINENO } : result: $HAS_GIT " >&5
2875+ $as_echo " $HAS_GIT " >&6 ; }
28762876else
28772877 { $as_echo " $as_me :${as_lineno-$LINENO } : result: no" >&5
28782878$as_echo " no" >&6 ; }
28792879fi
28802880
28812881
28822882else
2883- HAS_HG =no-repository
2883+ HAS_GIT =no-repository
28842884fi
2885- if test $HAS_HG = found
2885+ if test $HAS_GIT = found
28862886then
2887- HGVERSION= " hg id -i \$ (srcdir)"
2888- HGTAG= " hg id -t \$ (srcdir)"
2889- HGBRANCH= " hg id -b \$ (srcdir)"
2887+ GITVERSION= " git -C \$ (srcdir) rev-parse HEAD "
2888+ GITTAG= " git -C \$ (srcdir) name-rev --tags --name-only HEAD "
2889+ GITBRANCH= " git -C \$ (srcdir) name-rev --name-only HEAD "
28902890else
2891- HGVERSION =" "
2892- HGTAG =" "
2893- HGBRANCH =" "
2891+ GITVERSION =" "
2892+ GITTAG =" "
2893+ GITBRANCH =" "
28942894fi
28952895
28962896
0 commit comments