1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
diff -rauN libpsl-0.19.1/configure.ac libpsl-0.19.1-configure-disable-man-no-xsltproc-patch/configure.ac
--- libpsl-0.19.1/configure.ac 2017-11-09 15:37:11.000000000 +0100
+++ libpsl-0.19.1-configure-disable-man-no-xsltproc-patch/configure.ac 2018-03-06 19:58:33.473353671 +0100
@@ -53,24 +53,20 @@
#
# enable creation of man pages
#
-AC_ARG_ENABLE(man,[AC_HELP_STRING([--enable-man],
- [generate man pages [default=auto]])],enable_man=yes,enable_man=no)
-AS_IF([test "$enable_man" != no], [
- AC_PATH_PROG([XSLTPROC], [xsltproc])
- AS_IF([test -z "$XSLTPROC"], [
- AS_IF([test "$enable_man" = yes], [
- AC_MSG_ERROR([xsltproc is required for --enable-man])
- ])
- enable_man=no
+enable_man=no
+AC_ARG_ENABLE([man],
+ [AC_HELP_STRING([--enable-man], [generate man pages [default=auto]])],
+ [
+ if test "$enableval" = yes; then
+ enable_man=yes
+ AC_PATH_PROG([XSLTPROC], [xsltproc])
+ AS_IF([test -z "$XSLTPROC"], [
+ AC_MSG_ERROR([xsltproc is required for --enable-man])
+ enable_man="no (xsltproc not found)"
+ ])
+ fi
])
-])
-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])
-])
+AM_CONDITIONAL(ENABLE_MAN, test x$enable_man = xyes)
# src/psl-make-dafsa needs python 2.7+
AM_PATH_PYTHON([2.7])
|