aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-11-08 08:10:45 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-11-08 10:09:32 +0100
commit904adbfb5e07e538516c26b8467c2238fc2718e9 (patch)
treec28c2431c8475ec6ce68c6b285168a24e0269b77
parent3bda0562b94aa56177f0e481cd29e4149f5a531d (diff)
build: do not require xsltproc when building from a release tarball
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/276
-rw-r--r--configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index f08ae501..091dba62 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,9 +49,6 @@ AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_MKDIR_P
-AC_CHECK_PROG(XSLTPROC_CHECK,xsltproc,yes)
-AS_IF([test x"$XSLTPROC_CHECK" != x"yes"], [AC_MSG_ERROR([Please install xsltproc before configuring.])])
-
dnl Initialize libtool
LT_PREREQ([2.2])
LT_INIT([disable-static])
@@ -165,6 +162,12 @@ AC_SUBST(GLIB_MKENUMS)
GDBUS_CODEGEN=`$PKG_CONFIG --variable=gdbus_codegen gio-2.0`
AC_SUBST(GDBUS_CODEGEN)
+dnl xsltproc required in git builds only
+AC_CHECK_PROG(XSLTPROC_CHECK,xsltproc,yes)
+if test "x$ax_is_release" != "xyes" -a "x$XSLTPROC_CHECK" != "xyes"; then
+ AC_MSG_ERROR([Please install xsltproc before configuring.])
+fi
+
dnl-----------------------------------------------------------------------------
dnl Testing support
dnl