Check for availability of xsltproc at configure time

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23320 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2013-10-24 12:27:26 +00:00
parent cb556c13f4
commit e718761971
3 changed files with 10 additions and 3 deletions

View File

@@ -187,7 +187,6 @@ intl-scm/guile-strings.c:
GIT_CMD = @GIT_CMD@
SVN = svn
XSLTPROC = xsltproc
SCM_TYPE = @SCM_TYPE@
if BUILDING_FROM_SCM

View File

@@ -492,6 +492,14 @@ AS_SCRUB_INCLUDE(LIBXLT_CFLAGS)
AC_SUBST(LIBXSLT_CFLAGS)
AC_SUBST(LIBXSLT_LIBS)
# xsltproc is not included in libxslt on all distributions
# so check for it separately
AC_PATH_PROG(XSLTPROC, xsltproc, [""])
if test -z "$XSLTPROC"; then
AC_MSG_ERROR([xsltproc is required to build GnuCash])
fi
### --------------------------------------------------------------------------
### Zlib

View File

@@ -212,10 +212,10 @@ libgncmod_gnome_utils_la_LIBADD = \
BUILT_SOURCES = gnc-warnings.c gnc-warnings.h
gnc-warnings.c: gschemas/org.gnucash.warnings.gschema.xml.in make-gnc-warnings-c.xsl
xsltproc -o $@ $(srcdir)/make-gnc-warnings-c.xsl $<
$(XSLTPROC) -o $@ $(srcdir)/make-gnc-warnings-c.xsl $<
gnc-warnings.h: gschemas/org.gnucash.warnings.gschema.xml.in make-gnc-warnings-h.xsl
xsltproc -o $@ $(srcdir)/make-gnc-warnings-h.xsl $<
$(XSLTPROC) -o $@ $(srcdir)/make-gnc-warnings-h.xsl $<
if HAVE_X11_XLIB_H
libgncmod_gnome_utils_la_LIBADD += -lX11