add officeotron version check

Desktop / LibreOffice - Markus Mohrhard [googlemail.com] - 22 February 2016 11:28 UTC

This allows us to make sure that the correct officeotron version is installed on the machine.

Change-Id: I1c4532bed3e91194f51aa6f6767711295282528f Reviewed-on: https://gerrit.libreoffice.org/22417

###

diff --git a/configure.ac b/configure.ac
index f1d8e94..aabe558 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2800,6 +2800,10 @@ if test "$with_export_validation" = yes; then
if test -z "$OFFICEOTRON"; then
AC_MSG_ERROR([officeotron not found, but required by --with-export-validation])
fi
+ OFFICEOTRON_VER=`$OFFICEOTRON --version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
+ if test 0"$OFFICEOTRON_VER" -lt 704; then
+ AC_MSG_ERROR([officeotron too old])
+ fi
AC_SUBST(OFFICEOTRON)
else
AC_MSG_RESULT([no])

e72cd40 add officeotron version check
configure.ac | 4 ++++
1 file changed, 4 insertions(+)

Upstream: cgit.freedesktop.org


  • Share