forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.in
87 lines (76 loc) · 1.51 KB
/
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
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
AC_INIT(Makefile.in)
AC_COPYRIGHT([Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)])
XINC=xinc
XEP=xep
FOP=fop
XSLTPROC=xsltproc
XMLLINT=xmllint
AC_ARG_WITH(xep, [ --with-xep Where to find RenderX XEP],
[
if test "x$withval" != "xno"; then
XEP="$withval"
fi
]
)
AC_PATH_PROG(XEP, $XEP)
AC_ARG_WITH(xinc, [ --with-xinc Where to find lunasil XINC],
[
if test "x$withval" != "xno"; then
XINC="$withval"
fi
]
)
AC_PATH_PROG(XINC, $XINC)
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)
ECSRC=../trunk
AC_ARG_WITH(ecsrc, [ --with-ecsrc Where to find the ecelerity source],
[
if test "x$withval" != "xno"; then
ECSRC="$withval"
fi
]
)
AC_SUBST(XINC)
AC_SUBST(XEP)
AC_SUBST(FOP)
AC_SUBST(XSLTPROC)
AC_SUBST(XMLLINT)
AC_SUBST(ECSRC)
HERE=`pwd`
AC_SUBST(HERE)
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
cat > config.nice <<EOT
#!/bin/sh
./configure \
--with-ecsrc='$ECSRC' \
--with-xsltproc='$XSLTPROC' \
--with-xmllint='$XMLLINT' \
--with-fop='$FOP' \
--with-xinc='$XINC' \
--with-xep='$XEP'
EOT
chmod +x config.nice