diff options
author | Yang Tse <yangsita@gmail.com> | 2008-07-30 01:17:15 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-07-30 01:17:15 +0000 |
commit | 637bfa0252bad8702baaaf03c7511e47cc722b2d (patch) | |
tree | fb173f8d6e17b654cf03781c75941e3f85b8623c | |
parent | 1c8f689ecb35129133a78a9e921d6964fa78341e (diff) |
Show autom4te and aclocal versions.
Set SED for Solaris to gsed if available.
-rwxr-xr-x | buildconf | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -81,6 +81,14 @@ fi echo "buildconf: autoconf version $ac_version (ok)" +am4te_version=`${AUTOM4TE:-autom4te} --version 2>/dev/null|head -n 1| sed -e 's/autom4te\(.*\)/\1/' -e 's/^[^0-9]*//' -e 's/[a-z]* *$//'` +if test -z "$am4te_version"; then + echo "buildconf: autom4te not found. Weird autoconf installation!" + exit 1 +else + echo "buildconf: autom4te version $am4te_version" +fi + #-------------------------------------------------------------------------- # autoheader 2.50 or newer # @@ -124,12 +132,12 @@ fi echo "buildconf: automake version $am_version (ok)" -ac=`findtool ${ACLOCAL:-aclocal}` -if test -z "$ac"; then +acloc_version=`${ACLOCAL:-aclocal} --version 2>/dev/null|head -n 1| sed -e 's/^.* \([0-9]\)/\1/' -e 's/[a-z]* *$//' -e 's/\(.*\)\(-p.*\)/\1/'` +if test -z "$acloc_version"; then echo "buildconf: aclocal not found. Weird automake installation!" exit 1 else - echo "buildconf: aclocal found" + echo "buildconf: aclocal version $acloc_version" fi #-------------------------------------------------------------------------- @@ -308,6 +316,13 @@ if test "x$tmp_host_type" = "xSunOS"; then if test -f "$path/sed"; then echo "buildconf: sed: $path/sed" fi + if test -f "$path/gsed"; then + echo "buildconf: sed: $path/gsed" + if test -z "$SED"; then + SED="$path/gsed" + export SED + fi + fi done IFS=$old_IFS echo "buildconf: SED: $SED" |