[patch] abort configure if man was requested but not satisfied
Mike Frysinger <[email protected]> Sat, 10 Jun 2006 17:48:32 -0400
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Organization | wh0rd.org |
| Message-ID | <[email protected]> |
was trying to figure out why --enable-man wasnt working for me and it would have been helpful if configure just aborted with the reason instead of silently disabling man support on me also, the xsl stylesheets are registered as 'docbook.sourceforge.net' on my machine instead of 'docbook.sf.net' so configure and man/Makefile fail ... i dont know much about the xml catalog so i cant really say where the bug lies -mike
signature.asc
(application/pgp-signature, 827 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iQIVAwUARIs+MEFjO5/oN/WBAQJuEw//d+JNsbPEMQa10XSkmI7vdKZEG/qOydhV E3ZAub5nEfnb5FVJ6bkgxMZNT+J31xlsJRRfyVI3j0nvi/+fhXa9ygT4spMpKiCb dpVfkIs6c2q0Z+g0HfW1fOiTMxL1989pnygSHlMvgaGgW/7IRQjHUMNrfWn2ObTn yEzm/NNAFXut0VJuFWLhSjoEzSD2V4fBIlHATRgWLxdir5mu5Ha/2cRVqk+hpcnN N4e8q8T+Q5P5xUa1MulxBqLba2lcYBFoUwuqmO1PB45rhe38ct71nkvW4HGjMqlf iP5RZtBKyEcPNxuJwNflX+hn3VCQPB5XrRSH55YSm9OwBEQFUfbGHlABy+JO6qfQ 1aqEBVewpGP10sIGR4VSa+8cC/dG40dveaHgGusqkT7wpHPISc9FKBMgsgJaRrFM o4rWZy7GPf/0Bx6QrN7eLhA0Ffrj8CoWXZIhZ7zAGqkPXFokn6L819us0PINC5Qr c+KB9SEs1kzZy+EIbYR0ppY9sKPL179AB31RdT5h2Nss5Uogs7aGPUKXZQY1GgbU JmHFEiye+h91ktHjl5++db/jAeanR7Qy8JzeqxzzUbSOSoYm8rZTGxiq9a3e1Hdh bUYFSGPpoph+z8WUFbKFUHof5etRhBVpPvviG8iwYHPAE7duSeQlzBVyeJdPW+7I 1s5/w8aIHA4= =cwr4 -----END PGP SIGNATURE-----
shadow-abort-when-man-support-fails.patch
(text/x-diff, 1.1 KB)
Index: configure.in =================================================================== RCS file: /cvsroot/shadow/configure.in,v retrieving revision 1.142 diff -u -p -r1.142 configure.in --- configure.in 1 Jun 2006 21:07:27 -0000 1.142 +++ configure.in 10 Jun 2006 21:44:08 -0000 @@ -246,14 +246,14 @@ if test "$enable_man" = "yes"; then dnl AC_PATH_PROG([XSLTPROC], [xsltproc]) if test -z "$XSLTPROC"; then - enable_man=no + AC_MSG_ERROR(man support requested but no xsltproc found) fi dnl check for DocBook DTD and stylesheets in the local catalog. JH_CHECK_XML_CATALOG([-//OASIS//DTD DocBook XML V4.1.2//EN], - [DocBook XML DTD V4.1.2], [], enable_man=no) + [DocBook XML DTD V4.1.2], [], [AC_MSG_ERROR(man support requested but no docbook xml found)]) JH_CHECK_XML_CATALOG([http://docbook.sf.net/release/xsl/current/manpages/docbook.xsl], - [DocBook XSL Stylesheets >= 1.70.1], [], enable_man=no) + [DocBook XSL Stylesheets >= 1.70.1], [], [AC_MSG_ERROR(man support requested but no docbook xsl found)]) fi AM_CONDITIONAL(ENABLE_REGENERATE_MAN, test x$enable_man != xno)