File: configure.in

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (63 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download | duplicates (4)
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
AC_INIT(Makefile.in)
AC_COPYRIGHT([Copyright (c) 2005-2014 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)

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(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'

EOT
chmod +x config.nice