diff options
author | Dennis Schridde <devurandom@gmx.net> | 2019-10-04 16:55:47 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-10-06 12:08:10 +0200 |
commit | cb060c2fe9e03b49953f43ab605559c4542e2ae4 (patch) | |
tree | f9804bb258883f167f0a24ba7d55435da63e7931 | |
parent | ac87cfdf263d2abd97b32857534d0f749b7c4479 (diff) |
tdf#124456: Make Ant configure.ac check more robust
Change-Id: Iee16dd23c7881756663e8b6a67e4391186a6e430
See-Also: https://bugs.gentoo.org/682156
Reviewed-on: https://gerrit.libreoffice.org/80233
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 364efe36621a..ecb4c877b563 100644 --- a/configure.ac +++ b/configure.ac @@ -11902,7 +11902,7 @@ EOF ant_minminor1=`echo $ant_minver | cut -d"." -f2` AC_MSG_CHECKING([whether Ant is >= $ant_minver]) - ant_version=`"$ANT" -version | $AWK '{ print $4; }'` + ant_version=`"$ANT" -version | $AWK '$3 == "version" { print $4; }'` ant_version_major=`echo $ant_version | cut -d. -f1` ant_version_minor=`echo $ant_version | cut -d. -f2` echo "configure: ant_version $ant_version " >&5 |