/
configure.ac
138 lines (114 loc) · 3.77 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# benign edit
AC_PREREQ(2.57)
AC_INIT(sipXconfig, 4.2.1, sipx-dev@list.sipfoundry.org)
AC_CONFIG_AUX_DIR(config)
m4_include([config/general.m4])
m4_include([config/java.m4])
m4_include([config/sipXlib.m4])
SFAC_SIPX_INSTALL_PREFIX
AM_INIT_AUTOMAKE(foreign)
SFAC_AUTOMAKE_VERSION([1.6])
CHECK_AUTOCONF
AC_CONFIG_SRCDIR([neoconf/src/org/sipfoundry/sipxconfig/common/User.java])
SFAC_INIT_FLAGS
# openssl shell script for r/w certs
AC_PATH_PROG([OPENSSL],[openssl])
AC_PATH_PROG([BASH],[bash])
AC_PATH_PROG([DATE_BINARY],[date],"/bin/date")
AC_SUBST(SIPX_DOWNLOADDIR, [${localstatedir}/sipxdata/ftpBackup])
AC_ARG_VAR(SIPFOUNDRY_ORG, [If you plan to publish manual to www.sipfoundry.org, set this to where you keep your local copy of http://scm.sipfoundry.org/rep/sipfoundry.org])
# Expand build dir into absolute path
AC_SUBST(BUILDDIR_EXPAND, [`cd $builddir && pwd`])
# turn off the doxygen support shared from other sipX projects
AM_CONDITIONAL(DOC,false)
AM_CONDITIONAL(IS_RPMBUILD, test x$enable_rpmbuild = xyes)
CHECK_XARGS_REPLACE
CHECK_JDK
CHECK_ANT
CHECK_CLOVER
CHECK_SIPX_JASPER_REPORTS_DEPS
CHECK_RUBY([1.8.2])
CHECK_RUBY_MODULE([soap/wsdlDriver])
CHECK_GEM([0.8.11])
CHECK_RAKE([0.7])
CHECK_YUM
# CHECK_RPM_DEBUG
AC_ARG_ENABLE(reports,
AC_HELP_STRING([--enable-reports], [Build optional call distribution reporting cron]),
enable_reports=yes,)
AM_CONDITIONAL(REPORTS, test x$enable_reports = xyes)
if test x$enable_reports = xyes ; then
CHECK_CRON
fi
AC_ARG_ENABLE(agent,
AC_HELP_STRING([--enable-agent], [Build optional call distribution api]),
enable_agent=yes,)
AM_CONDITIONAL(AGENT, test x$enable_agent = xyes)
if test false && x$enable_agent = xyes ; then
CHECK_RUBY_GEM([file-tail])
fi
AC_ARG_ENABLE(mrtg,
AC_HELP_STRING([--enable-mrtg], [Enable MRTG integration]),
enable_mrtg=yes,)
AM_CONDITIONAL(MRTG, test x$enable_mrtg = xyes)
AC_SUBST(MRTG_ENABLED, [])
if test x$enable_mrtg = xyes ; then
MRTG_ENABLED="mrtg-enabled=true"
else
MRTG_ENABLED="mrtg-enabled=false"
fi
AC_ARG_WITH(mrtg-binary-location,[ --with-mrtg-binary-location=PFX Location where mrtg is installed (optional)],
mrtg_binary_location="$withval/mrtg", mrtg_binary_location="/usr/bin/mrtg")
AC_SUBST(MRTG_BINARY, $mrtg_binary_location)
AC_ARG_ENABLE(ruby-bindings,
AC_HELP_STRING([--enable-ruby-bindings], [Build optional ruby bindings to web services]),
enable_ruby_binding=yes,)
AC_SUBST(RUBY_BINDINGS_ENABLED, [])
if test x$enable_ruby_binding == xyes ; then
RUBY_BINDINGS_ENABLED="ruby-bindings-enabled="
SFAC_SRCDIR_EXPAND
AC_PATH_PROG([WSDL2RUBY], wsd2lruby.rb, $abs_srcdir/web/meta/wsdl2ruby.rb)
fi
CHECK_POSTGRES
CHECK_SERVICEDIR
AC_CONFIG_FILES([
Makefile
bin/Makefile
neoconf/Makefile
gwt/Makefile
web/Makefile
meta/Makefile
agent/Makefile
report/Makefile
report/etc/Makefile
report/bin/Makefile
report/src/Makefile
mrtg/Makefile
mrtg/bin/Makefile
mrtg/etc/Makefile
plugins/Makefile
plugins/aastra/Makefile
plugins/ciscoplus/Makefile
plugins/clearone/Makefile
plugins/gtek/Makefile
plugins/gtek-aq/Makefile
plugins/hitachi/Makefile
plugins/ipdialog/Makefile
plugins/lg-nortel/Makefile
plugins/linksys/Makefile
plugins/mitel/Makefile
plugins/nortel/Makefile
plugins/nortel12x0/Makefile
plugins/counterpath/Makefile
plugins/cmcprov/Makefile
plugins/openfire/Makefile
plugins/polycom/Makefile
plugins/snom/Makefile
])
AC_OUTPUT
# autoconf variables like datadir, localstatedir, etc are not resolved
# until make time, so here we get a jump start on this mainly for ANT
# purist that don't do make and got right in ant
make build.properties