comparison configure.ac @ 1564:86e4995bbedf

more portable for `which hg` test
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Feb 2018 23:42:57 +0800
parents 92c93b4a3646
children ee7a546e3e6d
comparison
equal deleted inserted replaced
1563:1cbb7b3d6703 1564:86e4995bbedf
8 AC_PREREQ(2.59) 8 AC_PREREQ(2.59)
9 AC_INIT 9 AC_INIT
10 AC_CONFIG_SRCDIR(buffer.c) 10 AC_CONFIG_SRCDIR(buffer.c)
11 11
12 # Record which revision is being built 12 # Record which revision is being built
13 if which -s hg && test -d "$srcdir/.hg"; then 13 if test -s "`which hg`" && test -d "$srcdir/.hg"; then
14 hgrev=`hg id -i -R "$srcdir"` 14 hgrev=`hg id -i -R "$srcdir"`
15 AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev]) 15 AC_MSG_NOTICE([Source directory Mercurial base revision $hgrev])
16 fi 16 fi
17 17
18 # Checks for programs. 18 # Checks for programs.