,
[enable_optimize_pam="yes"])
+AC_ARG_WITH([xslt-processor],
+ AS_HELP_STRING([--with-xslt-processor=ARG],
+ [which XSLT processor to use (possible choices are: libxslt, saxon, xalan-j, xsltproc)]),
+ XSLTPROC="$withval",
+ XSLTPROC="libxslt")
+
+AC_ARG_WITH([html-xsl],
+ AS_HELP_STRING([--with-html-xsl],
+ [build HTML documentation using Norman Walsh's DocBook XSL stylesheets (default is no; specify a path to chunk.xsl or docbook.xsl)]),
+ HTML_XSL="$withval",
+ HTML_XSL=no)
enable_login="no"
ENABLE_PTHREADED_UBIK=yes
fi
+VERSFILE=AFS_component_version_number
+AC_SUBST(VERSFILE)
+
AC_SUBST(AFS_SYSNAME)
AC_SUBST(AFS_PARAM_COMMON)
AC_SUBST(ENABLE_KERNEL_MODULE)
AC_SUBST(DEST)
AC_SUBST(DARWIN_INFOFILE)
AC_SUBST(IRIX_BUILD_IP35)
+AC_SUBST(HTML_XSL)
+AC_SUBST(XSLTPROC)
OPENAFS_OSCONF
OPENAFS_KRB5CONF
else
MAN_MAKEFILE=
fi
+if test -f 'doc/xml/AdminGuide/Makefile.in' ; then
+ ADMINGUIDE_MAKEFILE="doc/xml/AdminGuide/Makefile"
+else
+ ADMINGUIDE_MAKEFILE=
+fi
+if test -f 'doc/xml/QuickStartUnix/Makefile.in' ; then
+ QSUNIX_MAKEFILE="doc/xml/QuickStartUnix/Makefile"
+else
+ QSUNIX_MAKEFILE=
+fi
+if test -f 'doc/xml/UserGuide/Makefile.in' ; then
+ USERGUIDE_MAKEFILE="doc/xml/UserGuide/Makefile"
+else
+ USERGUIDE_MAKEFILE=
+fi
AC_OUTPUT( \
Makefile \
${MAN_MAKEFILE} \
+${ADMINGUIDE_MAKEFILE} \
+${QSUNIX_MAKEFILE} \
+${USERGUIDE_MAKEFILE} \
src/afs/Makefile \
src/afsd/Makefile \
src/afsmonitor/Makefile \
src/comerr/test/Makefile \
src/config/Makefile \
src/config/Makefile.config \
+src/config/Makefile.version-CML \
src/config/Makefile.version-NOCML \
src/config/shlib-build \
src/config/shlib-install \
# HTML_XSL is possibly specific to Debian and may need to be modified on other
# systems.
+all: pdf html
+
+include @TOP_OBJDIR@/src/config/Makefile.config
+VERSFILE=version
+include @TOP_OBJDIR@/src/config/Makefile.version
+
BOOK = auagd000.xml
SRCS = $(BOOK) auagd005.xml auagd006.xml auagd007.xml auagd008.xml \
auagd009.xml auagd010.xml auagd011.xml auagd012.xml auagd013.xml \
auagd014.xml auagd015.xml auagd016.xml auagd017.xml auagd018.xml \
auagd019.xml auagd020.xml auagd021.xml auagd022.xml auagd023.xml \
auagd024.xml auagd025.xml
-HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
-
-all: pdf html
+HTML_XSL = @HTML_XSL@
+XSLTPROC = @XSLTPROC@
-html: $(SRCS)
- xsltproc --param navig.graphics 1 \
+html: $(SRCS) $(VERSFILE).xml
+ $(XSLTPROC) --param navig.graphics 1 \
--stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
pdf: $(SRCS)
# HTML_XSL is specific to Debian and will need to be modified on other
# systems until we have a better mechanism for finding the correct path.
+all: pdf html
+
+include @TOP_OBJDIR@/src/config/Makefile.config
+VERSFILE=version
+include @TOP_OBJDIR@/src/config/Makefile.version
+
BOOK = auqbg000.xml
SRCS = $(BOOK) auqbg003.xml auqbg004.xml auqbg005.xml auqbg006.xml \
auqbg007.xml auqbg008.xml appendix.xml
-HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
-
-all: pdf html
+HTML_XSL = @HTML_XSL@
+XSLTPROC = @XSLTPROC@
-html: $(SRCS)
- xsltproc --param navig.graphics 1 \
+html: $(SRCS) $(VERSFILE).xml
+ $(XSLTPROC) --param navig.graphics 1 \
--stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
pdf: $(SRCS)
# HTML_XSL is possibly specific to Debian and may need to be modified on other
# systems.
+all: pdf html
+
+include @TOP_OBJDIR@/src/config/Makefile.config
+VERSFILE=version
+include @TOP_OBJDIR@/src/config/Makefile.version
+
BOOK = auusg000.xml
SRCS = $(BOOK) auusg003.xml auusg004.xml auusg005.xml auusg006.xml \
auusg007.xml auusg008.xml auusg009.xml auusg010.xml auusg011.xml \
auusg012.xml
-HTML_XSL = /usr/share/xml/docbook/stylesheet/nwalsh/html/chunk.xsl
-
-all: pdf html
+HTML_XSL = @HTML_XSL@
+XSLTPROC = @XSLTPROC@
-html: $(SRCS)
- xsltproc --param navig.graphics 1 \
+html: $(SRCS) $(VERSFILE).xml
+ $(XSLTPROC) --param navig.graphics 1 \
--stringparam navig.graphics.path ../ $(HTML_XSL) $(BOOK)
pdf: $(SRCS)
--- /dev/null
+include Makefile.config
+include Makefile.version
.c.o:
$(CCOBJ) $(CFLAGS) -c $<
+
+# Default component version file, will be overridden later if necessary
+VERSFILE=@VERSFILE@
\ No newline at end of file
Makefile.version: ${srcdir}/Makefile.version-CML Makefile.version-NOCML
$(RM) -f Makefile.version
- if [ -r SRC/../CML/state ] ; \
+ if [ -r @TOP_SRCDIR@/CML/state ] ; \
then $(CP) ${srcdir}/Makefile.version-CML Makefile.version ; \
else $(CP) Makefile.version-NOCML Makefile.version ; \
fi
# AFS component version string file generation targets
#
AFS_component_version_number.c: Makefile.version
- $(MAKE) -f Makefile.version AFS_component_version_number.c
+ $(MAKE) -f Makefile.component AFS_component_version_number.c
#
# App build/install targets
# License. For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html
-VERSFILE=AFS_component_version_number
+PACKAGE=@PACKAGE@
+VERSION=@VERSION@
$(VERSFILE).o: $(VERSFILE).c
PACKAGE=@PACKAGE@
VERSION=@VERSION@
-VERSFILE=AFS_component_version_number
$(VERSFILE).o: $(VERSFILE).c