1 |
dnl ************************************************************** |
dnl ************************************************************** |
2 |
dnl Process this file with autoconf to produce a configure script. |
dnl Process this file with autoconf to produce a configure script. |
3 |
dnl ************************************************************** |
dnl ************************************************************** |
4 |
|
|
5 |
AC_PREREQ(2.50) |
AC_PREREQ(2.50) |
6 |
AC_INIT(README) |
AC_INIT(README) |
7 |
|
|
8 |
AM_INIT_AUTOMAKE(adonthell-doc, 0.4) |
AM_INIT_AUTOMAKE(adonthell-doc, 0.4) |
9 |
|
|
10 |
dnl ******** |
dnl ******** |
11 |
dnl pdflatex |
dnl pdflatex |
12 |
dnl ******** |
dnl ******** |
13 |
|
|
14 |
AC_PATH_PROG(PDFLATEX, pdflatex, no) |
AC_PATH_PROG(PDFLATEX, pdflatex, no) |
15 |
if test "$PDFLATEX" = "no" ; then |
if test "$PDFLATEX" = "no" ; then |
16 |
AC_MSG_ERROR([*** 'pdflatex' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'pdflatex' is required to build the documentation!]) |
17 |
fi |
fi |
18 |
|
|
19 |
dnl ********* |
dnl ********* |
20 |
dnl makeindex |
dnl makeindex |
21 |
dnl ********* |
dnl ********* |
22 |
|
|
23 |
AC_PATH_PROG(MAKEINDEX, makeindex, no) |
AC_PATH_PROG(MAKEINDEX, makeindex, no) |
24 |
if test "$MAKEINDEX" = "no" ; then |
if test "$MAKEINDEX" = "no" ; then |
25 |
AC_MSG_ERROR([*** 'makeindex' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'makeindex' is required to build the documentation!]) |
26 |
fi |
fi |
27 |
|
|
28 |
dnl *** |
dnl *** |
29 |
dnl dot |
dnl dot |
30 |
dnl *** |
dnl *** |
31 |
|
|
32 |
AC_PATH_PROG(DOT, dot, no) |
AC_PATH_PROG(DOT, dot, no) |
33 |
if test "$DOT" = "no" ; then |
if test "$DOT" = "no" ; then |
34 |
AC_MSG_ERROR([*** 'dot' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'dot' is required to build the documentation!]) |
35 |
fi |
fi |
36 |
|
|
37 |
# AC_MSG_CHECKING(for dot - version >= 1.8.5 ) |
# AC_MSG_CHECKING(for dot - version >= 1.8.5 ) |
38 |
# |
# |
39 |
# DOT_VER=`${DOT} -V 2>&1` |
# DOT_VER=`${DOT} -V 2>&1` |
40 |
# |
# |
41 |
# changequote(<<, >>) |
# changequote(<<, >>) |
42 |
# major=`echo ${DOT_VER} | sed 's/.* \([0-9]\)*\.[0-9]*\.[0-9]* .*/\1/p; d'` |
# major=`echo ${DOT_VER} | sed 's/.* \([0-9]\)*\.[0-9]*\.[0-9]* .*/\1/p; d'` |
43 |
# minor=`echo ${DOT_VER} | sed 's/.* [0-9]*\.\([0-9]\)*\.[0-9]* .*/\1/p; d'` |
# minor=`echo ${DOT_VER} | sed 's/.* [0-9]*\.\([0-9]\)*\.[0-9]* .*/\1/p; d'` |
44 |
# micro=`echo ${DOT_VER} | sed 's/.* [0-9]*\.[0-9]*\.\([0-9]\)* .*/\1/p; d'` |
# micro=`echo ${DOT_VER} | sed 's/.* [0-9]*\.[0-9]*\.\([0-9]\)* .*/\1/p; d'` |
45 |
# changequote([, ]) |
# changequote([, ]) |
46 |
# |
# |
47 |
# AC_MSG_RESULT($major.$minor.$micro) |
# AC_MSG_RESULT($major.$minor.$micro) |
48 |
# |
# |
49 |
# if test $major -gt 1 -o \ |
# if test $major -gt 1 -o \ |
50 |
# $major -eq 1 -a $minor -gt 8 -o \ |
# $major -eq 1 -a $minor -gt 8 -o \ |
51 |
# $major -eq 1 -a $minor -eq 8 -a $micro -gt 4 ; then |
# $major -eq 1 -a $minor -eq 8 -a $micro -gt 4 ; then |
52 |
# : |
# : |
53 |
# else |
# else |
54 |
# AC_MSG_ERROR([*** 'dot' version 1.8.5 or higher is required!]) |
# AC_MSG_ERROR([*** 'dot' version 1.8.5 or higher is required!]) |
55 |
# fi |
# fi |
56 |
|
|
57 |
dnl ******** |
dnl ******** |
58 |
dnl epstopdf |
dnl epstopdf |
59 |
dnl ******** |
dnl ******** |
60 |
|
|
61 |
AC_PATH_PROG(EPS2PDF, epstopdf, no) |
AC_PATH_PROG(EPS2PDF, epstopdf, no) |
62 |
if test "$EPS2PDF" = "no" ; then |
if test "$EPS2PDF" = "no" ; then |
63 |
AC_MSG_ERROR([*** 'epstopdf' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'epstopdf' is required to build the documentation!]) |
64 |
fi |
fi |
65 |
|
|
66 |
dnl ****** |
dnl ****** |
67 |
dnl ps2eps |
dnl ps2eps |
68 |
dnl ****** |
dnl ****** |
69 |
|
|
70 |
AC_PATH_PROG(PS2EPS, ps2eps, no) |
AC_PATH_PROG(PS2EPS, ps2eps, no) |
71 |
if test "$PS2EPS" = "no" ; then |
if test "$PS2EPS" = "no" ; then |
72 |
AC_MSG_ERROR([*** 'ps2eps' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'ps2eps' is required to build the documentation!]) |
73 |
fi |
fi |
74 |
|
|
75 |
dnl **** |
dnl **** |
76 |
dnl bbox |
dnl bbox |
77 |
dnl **** |
dnl **** |
78 |
|
|
79 |
AC_PATH_PROG(BBOX, bbox, no) |
AC_PATH_PROG(BBOX, bbox, no) |
80 |
if test "BBOX" = "no" ; then |
if test "BBOX" = "no" ; then |
81 |
AC_MSG_ERROR([*** 'bbox' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'bbox' is required to build the documentation!]) |
82 |
fi |
fi |
83 |
|
|
84 |
dnl ******* |
dnl ******* |
85 |
dnl fig2dev |
dnl fig2dev |
86 |
dnl ******* |
dnl ******* |
87 |
|
|
88 |
AC_PATH_PROG(FIG2DEV, fig2dev, no) |
AC_PATH_PROG(FIG2DEV, fig2dev, no) |
89 |
if test "$FIG2DEV" = "no" ; then |
if test "$FIG2DEV" = "no" ; then |
90 |
AC_MSG_ERROR([*** 'fig2dev' is required to build the documentation!]) |
AC_MSG_ERROR([*** 'fig2dev' is required to build the documentation!]) |
91 |
fi |
fi |
92 |
|
|
93 |
AC_SUBST(PDFLATEX) |
AC_SUBST(PDFLATEX) |
94 |
AC_SUBST(EPS2PDF) |
AC_SUBST(EPS2PDF) |
95 |
AC_SUBST(FIG2DEV) |
AC_SUBST(FIG2DEV) |
96 |
AC_SUBST(PS2EPS) |
AC_SUBST(PS2EPS) |
97 |
AC_SUBST(DOT) |
AC_SUBST(DOT) |
98 |
|
|
99 |
AC_OUTPUT([ |
AC_OUTPUT([ |
100 |
Makefile |
Makefile |
101 |
architecture/Makefile |
architecture/Makefile |
102 |
dlgedit_manual/Makefile |
dlgedit_manual/Makefile |
103 |
library/Makefile |
library/Makefile |
104 |
plot_guideline/Makefile |
plot-0.4/Makefile |
105 |
scripting_guide/Makefile |
plot_guideline/Makefile |
106 |
rules/Makefile |
scripting_guide/Makefile |
107 |
]) |
rules/Makefile |
108 |
|
]) |
109 |
echo |
|
110 |
echo "Now type 'make' to build the Adonthell documentation" |
echo |
111 |
echo "Afterwards, 'make install' will copy it to '${prefix}/doc/adonthell'" |
echo "Now type 'make' to build the Adonthell documentation" |
112 |
echo |
echo "Afterwards, 'make install' will copy it to '${prefix}/doc/adonthell'" |
113 |
|
echo |