Add vfstest manpage + fix typo in configure
[kai/samba.git] / docs / docbook / configure.in
1 AC_INIT(global.ent)
2
3 ## check for the necesary install tools
4 ## Openjade includes 'onsgmls' while
5 ## the older jade package includes 'nsgmls'
6 AC_PATH_PROG(JADE,openjade)
7
8 if test -z "$JADE"; then
9         AC_PATH_PROG(JADE,jade)
10         AC_PATH_PROG(NSGMLS, nsgmls)
11 else
12         AC_PATH_PROG(NSGMLS, onsgmls)
13 fi
14
15 AC_PATH_PROG(HTMLDOC, htmldoc)
16 AC_PATH_PROG(SGMLSPL, sgmlspl)
17 AC_PATH_PROG(PERL, perl)
18
19 dnl ----------------------------------------------------------------
20 dnl --with-sgml-share
21 SGML_SHARE="/usr/local/share/sgml"
22
23 AC_ARG_WITH(sgml-share,
24 [  --with-sgml-share=DIR   change the default location of SGML stylesheets],
25 [case "$withval" in
26         no) SGML_SHARE=""
27                 ;;
28         yes)
29                 ;;
30         /*|\\*)
31                 SGML_SHARE="$withval"
32                 ;;
33         *)
34                 SGML_SHARE="/$withval"
35                 ;;
36 esac
37 ])dnl
38
39 # The Makefile requires docbook2X in the share/sgml directory
40 if [ ! test -f $SGML_SHARE/docbook2X/docbook2man-spec.pl ]; then
41         AC_MSG_ERROR("Unable to find docbook2X. Make sure it is installed and that the sgml-share path is correct.")
42 fi
43
44 AC_SUBST(SGML_SHARE)dnl
45
46 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
47 AC_SUBST(DOC_BUILD_DATE)
48
49 AC_OUTPUT( Makefile stylesheets/ldp.dsl )