Don't require xsltproc when not building man pages
This commit is contained in:
parent
f7e0d9441a
commit
32f3861216
32
configure.ac
32
configure.ac
|
@ -53,24 +53,20 @@ fi
|
||||||
#
|
#
|
||||||
# enable creation of man pages
|
# enable creation of man pages
|
||||||
#
|
#
|
||||||
AC_ARG_ENABLE(man,[AC_HELP_STRING([--enable-man],
|
enable_man=no
|
||||||
[generate man pages [default=auto]])],enable_man=yes,enable_man=no)
|
AC_ARG_ENABLE([man],
|
||||||
AS_IF([test "$enable_man" != no], [
|
[AC_HELP_STRING([--enable-man], [generate man pages [default=auto]])],
|
||||||
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
[
|
||||||
AS_IF([test -z "$XSLTPROC"], [
|
if test "$enableval" = yes; then
|
||||||
AS_IF([test "$enable_man" = yes], [
|
enable_man=yes
|
||||||
AC_MSG_ERROR([xsltproc is required for --enable-man])
|
AC_PATH_PROG([XSLTPROC], [xsltproc])
|
||||||
])
|
AS_IF([test -z "$XSLTPROC"], [
|
||||||
enable_man=no
|
AC_MSG_ERROR([xsltproc is required for --enable-man])
|
||||||
|
enable_man="no (xsltproc not found)"
|
||||||
|
])
|
||||||
|
fi
|
||||||
])
|
])
|
||||||
])
|
AM_CONDITIONAL(ENABLE_MAN, test x$enable_man = xyes)
|
||||||
AM_CONDITIONAL(ENABLE_MAN, test x$enable_man != xno)
|
|
||||||
AC_MSG_CHECKING([whether to generate man pages])
|
|
||||||
AS_IF([ test "$enable_man" != no ], [
|
|
||||||
AC_MSG_RESULT([yes])
|
|
||||||
], [
|
|
||||||
AC_MSG_RESULT([no])
|
|
||||||
])
|
|
||||||
|
|
||||||
# src/psl-make-dafsa needs python 2.7+
|
# src/psl-make-dafsa needs python 2.7+
|
||||||
AM_PATH_PYTHON([2.7])
|
AM_PATH_PYTHON([2.7])
|
||||||
|
@ -343,5 +339,7 @@ AC_MSG_NOTICE([Summary of build options:
|
||||||
PSL File: ${PSL_FILE}
|
PSL File: ${PSL_FILE}
|
||||||
PSL Test File: ${PSL_TESTFILE}
|
PSL Test File: ${PSL_TESTFILE}
|
||||||
Sanitizers: UBSan $ubsan, ASan $asan, CFI $cfi
|
Sanitizers: UBSan $ubsan, ASan $asan, CFI $cfi
|
||||||
|
Docs: $enable_gtk_doc
|
||||||
|
Man pages: $enable_man
|
||||||
Tests: ${TESTS_INFO}
|
Tests: ${TESTS_INFO}
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue