-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
executable file
·52 lines (44 loc) · 932 Bytes
/
configure.in
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
AC_INIT(Makefile.in)
AC_COPYRIGHT([Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)])
FOP=fop
XSLTPROC=xsltproc
XMLLINT=xmllint
AC_ARG_WITH(fop, [ --with-fop Where to find Apache FOP],
[
if test "x$withval" != "xno"; then
FOP="$withval"
fi
]
)
AC_PATH_PROG(FOP, $FOP)
AC_ARG_WITH(xsltproc, [ --with-xsltproc Where to find xsltproc],
[
if test "x$withval" != "xno"; then
XSLTPROC="$withval"
fi
]
)
AC_PATH_PROG(XSLTPROC, $XSLTPROC)
AC_ARG_WITH(xmllint, [ --with-xmllint Where to find xmllint],
[
if test "x$withval" != "xno"; then
XMLLINT="$withval"
fi
]
)
AC_PATH_PROG(XMLLINT, $XMLLINT)
AC_SUBST(FOP)
AC_SUBST(XSLTPROC)
AC_SUBST(XMLLINT)
HERE=`pwd`
AC_SUBST(HERE)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
cat > config.nice <<EOT
#!/bin/sh
./configure \
--with-xsltproc='$XSLTPROC' \
--with-xmllint='$XMLLINT' \
--with-fop='$FOP'
EOT
chmod +x config.nice