summaryrefslogtreecommitdiff
path: root/docs/configure.in
blob: 1fa6c915a2f0aa7d1099f08c103d92d00dbec117 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AC_INIT(entities/global.entities)

AC_PATH_PROG(XSLTPROC, xsltproc)
if test "x$XSLTPROC" = x; then
   AC_MSG_ERROR("xsltproc is required")
fi
AC_PATH_PROG(PDFLATEX, pdflatex)
if test "x$PDFLATEX" = x; then
   AC_MSG_ERROR("pdflatex is required")
fi
AC_PATH_PROG(MAKEINDEX, makeindex)
if test "x$MAKEINDEX" = x; then
	AC_MSG_ERROR("makeindex is required")
fi

PAPERSIZE=""
DUPLICATE_ULINKS=""

DOCROP="0"

AC_ARG_ENABLE(crop,
[ --enable-crop					    Whether to use a crop template],
[ test "$withval" && DOCROP="1" ])

PAPERSIZE="a4paper"

AC_ARG_WITH(papersize,
[ --with-papersize					Specify papersize (a4paper,letter) ],
[ test "$withval" && PAPERSIZE="$withval" ])

FONTSIZE="10.5"

AC_ARG_WITH(fontsize,
[ --with-fontsize	              Specify the fontsize in points (default: 10.5) ],
[ test "$withval" && FONTSIZE="$withval" ])

AC_PATH_PROG(RM, rm)
AC_PATH_PROG(WGET, wget)
AC_PATH_PROG(LATEX, latex)
AC_PATH_PROG(DVIPS, dvips)
AC_PATH_PROG(PNGTOPNM, pngtopnm)
AC_PATH_PROG(PNMTOPS, pnmtops)
AC_PATH_PROG(PERL, perl)
AC_PATH_PROG(XMLTO, xmlto)
AC_PATH_PROG(CVS2CL, cvs2cl)
AC_PATH_PROG(PLUCKERBUILD, plucker-build, [echo -e 'No plucker-build utility was found, ignoring following options:\n'])
AC_PATH_PROG(EPSTOPDF, epstopdf)

DOC_BUILD_DATE=`date '+%d-%m-%Y'`
AC_SUBST(DOC_BUILD_DATE)
AC_SUBST(PAPERSIZE)
AC_SUBST(DUPLICATE_ULINKS)
AC_SUBST(FONTSIZE)
AC_SUBST(DOCROP)

AC_OUTPUT( Makefile settings.xsl )