-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
162 lines (128 loc) · 4.15 KB
/
configure.ac
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
AC_INIT([xmlto],[0.0.29])
AC_CONFIG_SRCDIR(xmlto.spec.in)
AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
AC_CONFIG_HEADERS(config.h)
AC_PROG_CC
AM_PROG_CC_C_O
AM_PROG_LEX
dnl
dnl tools
dnl
AC_ARG_VAR([MKTEMP], [Name of the `mktemp' program.])
AC_CHECK_PROG([MKTEMP], [mktemp],, [mktemp])
AC_ARG_VAR([FIND], [Name of the GNU `find' program.])
AC_CHECK_PROG([FIND], [find],, [find] )
AC_ARG_VAR([XMLTO_BASH_PATH], [Name and path of the GNU `bash' shell.])
AC_PATH_PROG([XMLTO_BASH_PATH], [bash], [/bin/bash])
AC_ARG_VAR([GETOPT], [Name of the `getopt' program (requires longopt support).])
AC_CHECK_PROG([GETOPT], [getopt],, [getopt])
AC_MSG_CHECKING([for long options support in $GETOPT])
opts=`$GETOPT --longoptions=help x -x`
if test x"$opts" != x" -x --"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([
You need getopt from <http://software.frodo.looijaard.name/getopt/>, or
else some other implementation that supports --longoptions.
])
fi
AC_MSG_RESULT([yes])
AC_ARG_VAR([PAPER_CONF], [Name and path of the `paperconf' (libpaper) program.])
AC_PATH_PROG([PAPER_CONF], [paperconf], [paperconf])
AC_ARG_VAR([LOCALE], [Name and path of the `locale' program.])
AC_PATH_PROG([LOCALE], [locale], [locale])
AC_ARG_VAR([XMLLINT], [Name and path of the `xmllint' program.])
AC_PATH_PROG([XMLLINT], [xmllint], [xmllint])
AC_ARG_VAR([XSLTPROC], [Name and path of the `xsltproc' program.])
AC_PATH_PROG([XSLTPROC], [xsltproc], [xsltproc])
dnl
dnl toolchains
dnl
AC_ARG_VAR([DBLATEX], [Name and path of the `dblatex' utility.])
AC_PATH_PROG([DBLATEX], [dblatex], [dblatex])
AC_ARG_VAR([FOP], [Name and path of the `fop' utility.])
AC_PATH_PROG([FOP], [fop], [fop])
AC_ARG_VAR([XMLTEX], [Name and path of the `xmltex' utility.])
AC_PATH_PROG([XMLTEX], [xmltex], [xmltex])
AC_ARG_VAR([PDFXMLTEX], [Name and path of the `pdfxmltex' utility.])
AC_PATH_PROG([PDFXMLTEX], [pdfxmltex], [pdfxmltex])
dnl
dnl default backend
dnl
AC_ARG_WITH(
[backend],
AS_HELP_STRING(
[--with-backend=@<:@passivetex|fop|dblatex@:>@],
[The default processing backend @<:@default=DEFAULT@:>@]
),
[
case "x$withval" in
xfop)
BACKEND="FOP"
;;
xdblatex)
BACKEND="DBLATEX"
;;
*)
BACKEND="DEFAULT"
;;
esac
],
[BACKEND="DEFAULT"]
)
AC_MSG_CHECKING([for default backend])
AC_MSG_RESULT([$BACKEND])
AC_SUBST([BACKEND])
dnl
dnl web browsers
dnl
AC_ARG_VAR([LYNX], [Name and path of the `lynx' browser.])
AC_PATH_PROG([LYNX], [lynx], [lynx])
AC_ARG_VAR([LINKS], [Name and path of the `elinks' browser.])
AC_PATH_PROG([LINKS], [elinks], [elinks])
AC_ARG_VAR([W3M], [Name and path of the `w3m' browser.])
AC_PATH_PROG([W3M], [w3m], [w3m])
AC_ARG_VAR([TAIL], [Name and path of a tail binary that supports -n.])
AC_PATH_PROG([TAIL], [tail], [tail])
AC_ARG_VAR([GREP], [Name and path of a GNU grep binary.])
AC_PATH_PROG([GREP], [grep], [grep])
AC_ARG_VAR([SED], [Name and path of a GNU sed binary.])
AC_PATH_PROG([SED], [sed], [sed])
AC_ARG_VAR([GCP], [Name and path of a GNU cp binary (need at least -P)])
AC_PATH_PROG([GCP], [cp], [cp])
AC_ARG_VAR([ZIP], [Name and path of a zip binary (compatible with PKZIP)])
AC_PATH_PROG([ZIP], [zip], [zip])
dnl
dnl default webrowser
dnl
AC_ARG_WITH(
[webbrowser],
AS_HELP_STRING(
[--with-webbrowser=@<:@w3m|lynx|links|any@:>@],
[The default processing backend @<:@default=w3m@:>@]
),
[
case "x$withval" in
xlinks)
WEBBROWSER="links"
;;
xlynx)
WEBBROWSER="lynx"
;;
xany)
WEBBROWSER="text-www-browser"
;;
*)
WEBBROWSER="w3m"
;;
esac
],
[WEBBROWSER="w3m"]
)
AC_MSG_CHECKING([for default web browser])
AC_MSG_RESULT([$WEBBROWSER])
AC_SUBST([WEBBROWSER])
dnl
dnl done
dnl
AC_CONFIG_FILES([Makefile xmlto xmlto.spec])
AC_OUTPUT