Fixed the odd rendering problem that was reported when you have missing
[geda-gaf/peter-b.git] / docs / configure.ac
blobe3da04e4e529cc1371b31dcba85a193d689e6852
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT
4 VERSION=20041228
5 PACKAGE=geda-docs
6 echo Configuring $PACKAGE version $VERSION
8 # Init automake
9 AM_INIT_AUTOMAKE($PACKAGE, $VERSION)
11 ############################################################################
12 # Check for various doc processing programs start
13
15 # latex
16 AC_PATH_PROG(LATEX, latex, no, ${PATH})
17 if test $LATEX = "no"; then
18    echo "Cannot find latex -- documentation cannot be created"
19    echo "Install latex or install the prepared geda-docs package"
22 AC_PATH_PROG(DVIPS, dvips, no, ${PATH})
23 AC_PATH_PROG(DVI2PS, dvi2ps, no, ${PATH})
25 if test $DVIPS = "no" -a $DVI2PS = "no"; then
26    echo "Cannot find dvips or dvi2ps -- documentation cannot be created" 
27    echo "Install dvips or dvi2ps or install the prepared geda-docs package"
30 AC_PATH_PROG(LATEX2HTML, latex2html, no, ${PATH})
31 if test $LATEX2HTML = "no"; then 
32    echo "Cannot find latex2html -- documentation cannot be created" 
33    echo "Install latex2html or install the prepared geda-docs package"
36 AC_PATH_PROG(PS2PDF, ps2pdf, no, ${PATH})
37 if test $PS2PDF = "no"; then 
38    echo "Cannot find pdf2ps -- documentation cannot be created" 
39    echo "Install pdf2ps or install the prepared geda-docs package"
42
43 # Check for various doc processing programs end
44 ############################################################################
47 # Checks for libraries.
49 # Checks for header files.
51 # Checks for typedefs, structures, and compiler characteristics.
53 # Checks for library functions.
56 # Other variables
59 # Expand the prefix variable
60 # I don't like the way this is done, but it works (I hope).
61 if eval "test x$prefix = xNONE"; then
62  dprefix=$ac_default_prefix
63 else
64  dprefix=$prefix
67 gedadocdir=$dprefix/share/doc/geda-doc
68 # --with-docdir : tells where to store documentation if not default
69 AC_ARG_WITH(docdir,
70     [  --with-docdir      Where to store documentation if not default.],
71         gedadocdir=$withval)
72 expandgedadocdir=`echo $gedadocdir`
73 GEDADOCDIR=$expandgedadocdir
74 AC_SUBST(GEDADOCDIR)
76 AC_CONFIG_FILES([Makefile 
77                  attributes/Makefile 
78                  symbols/Makefile 
79                  fileformats/Makefile 
80                  hooks/Makefile 
81                  keymapping/Makefile 
82                  netattrib/Makefile 
83                  pads_backannotate/Makefile 
84                  cascade/Makefile 
85                  gschem/Makefile 
86                  gnetlist/Makefile 
87                  switcap/Makefile 
88                  spice-sdb/Makefile 
89                  tragesym_tutorial/Makefile 
90                  gsch2pcb_tutorial/Makefile 
91                  gsch2pcb_tutorial/images/Makefile 
92                  toplevel/Makefile 
93                  toplevel/gedadocs.html 
94                  templates/Makefile ])
95 AC_OUTPUT
97 expandedGEDADOCDIR=`eval "echo $GEDADOCDIR"`
99 AC_MSG_RESULT([
100 ** Configuration summary for $PACKAGE $VERSION:
102    documentation directory:          $expandedGEDADOCDIR