[WINEDOCS] Check for nsgmls

Francois Gouget fgouget at codeweavers.com
Fri Jul 1 03:42:41 CDT 2005


With the new po4a nsgmls is the last external dependency. Po4a will now 
correctly detect that it is missing and fail (it used to go on without 
translating anything) but it would be nice to warn the user beforehand 
during the configure check. Note that this is a warning with suggestions 
as to which package to install, not a fatal error. So the user can go on 
just like when docbook2html is missing.

I am just sending the configure.ac diff because my autoconf version is 
different which results in a big configure diff. So you will need to run 
autoconf and commit configure too.

Changelog:

  * configure.ac

    Francois Gouget <fgouget at codeweavers.com>
    Check for nsgmls and warn the user if it is missing.


-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: configure.ac
===================================================================
RCS file: /cvsroot/wine/docs/configure.ac,v
retrieving revision 1.3
diff -u -p -r1.3 configure.ac
--- configure.ac	26 May 2005 11:11:35 -0000	1.3
+++ configure.ac	1 Jul 2005 08:35:46 -0000
@@ -12,6 +12,7 @@ AC_CHECK_PROGS(DB2HTML, docbook2html db2
 AC_CHECK_PROGS(DB2PDF, docbook2pdf db2pdf, false)
 AC_CHECK_PROGS(DB2PS, docbook2ps db2ps, false)
 AC_CHECK_PROGS(DB2TXT, docbook2txt db2txt, false)
+AC_CHECK_PROGS(NSGMLS, nsgmls, false)
 
 dnl **** Generate output files ****
 
@@ -39,6 +40,17 @@ then
   echo "***  - SUSE:          docbook-utils"
 fi
 
+if test "$NSGMLS" = "false"
+then
+  echo
+  echo "*** Note: Your system appears to be missing the nsgmls parser"
+  echo "*** which is needed to build the translated documentation using po4a."
+  echo "*** To remedy this you will need one of the following packages"
+  echo "***  - Debian:        sp"
+  echo "***  - Fedora Core:   openjade"
+  echo "***  - SUSE:          opensp"
+fi
+
 echo
 echo "Configure finished.  Do '${ac_make}' to compile the documentation."
 echo


More information about the wine-patches mailing list