]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Only attempt to build the HTML version of the man page if xsltproc is installed.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 Oct 2022 20:20:32 +0000 (21:20 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 10 Oct 2022 20:20:32 +0000 (21:20 +0100)
configure.ac
man/Makefile.am

index b0f53cd9f99e3467a586111677ef3362cc123851..16d10eb9dcce8dd158a2ffe90af96fd5042fcf1a 100644 (file)
@@ -447,10 +447,17 @@ fi
 # Look for xmltoman
 AC_CHECK_PROGS([XMLTOMAN], [xmltoman])
 if test -z "$XMLTOMAN"; then
-  AC_MSG_WARN([xmltoman not found - not rebuilding man pages])
+  AC_MSG_WARN([xmltoman not found - not installing man page])
 fi
 AM_CONDITIONAL([HAVE_XMLTOMAN], [test -n "$XMLTOMAN"])
 
+# Look for xmltoman
+AC_CHECK_PROGS([XSLTPROC], [xsltproc])
+if test -z "$XSLTPROC"; then
+  AC_MSG_WARN([xsltproc not found - not creating html version of man])
+fi
+AM_CONDITIONAL([HAVE_XSLTPROC], [test -n "$XSLTPROC"])
+
 # Checks for header files.
 AC_CHECK_HEADERS([getopt_long.h])
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h mach/mach.h memory.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h])
index 062b1dd5905d2b8547836e626caed281d19a6125..c7d4dfba48b63cc5bf188f4c0ff064b6f10d55e4 100644 (file)
@@ -1,10 +1,12 @@
 man_MANS = shairport-sync.7
 
 if HAVE_XMLTOMAN
-all-local: shairport-sync.html
-
 shairport-sync.7: shairport-sync.7.xml
        xmltoman $< > $@
+endif
+
+if HAVE_XSLTPROC
+all-local: shairport-sync.html
 
 shairport-sync.html: xmltoman.xsl shairport-sync.7.xml 
        xsltproc  $^ > $@