diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-08 08:10:45 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-08 14:50:20 +0100 |
commit | f8ce24d4547ccb0c8a9ba71c14c2e54549942f6e (patch) | |
tree | 6ee10925c3de7a46358ab4a02fd5990359b597db | |
parent | ec425f961944c70a19f2277cabd0fcdf0ad1d4b5 (diff) | |
download | ModemManager-f8ce24d4547ccb0c8a9ba71c14c2e54549942f6e.tar.gz |
build: do not require xsltproc when building from a release tarball
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/276
(cherry picked from commit 904adbfb5e07e538516c26b8467c2238fc2718e9)
-rw-r--r-- | configure.ac | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 071d3e8ef..57c823ffb 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 |