-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
executable file
·186 lines (154 loc) · 5.23 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
# Copyright (c) Istituto Nazionale di Fisica Nucleare (INFN). 2006-2010.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
AC_PREREQ([2.59])
AC_INIT([storm frontend server], [1.8.4], [email protected])
AC_CONFIG_AUX_DIR([./aux])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/frontend/storm-frontend.cpp])
AM_INIT_AUTOMAKE
AC_COPYRIGHT([Copyright (c) 2004-2013 Istituto Nazionale di Fisica Nucleare
See LICENCE file for details
])
AC_SUBST([PACKAGE_PREFIX_NAME], [storm])
AC_SUBST([PACKAGE_LONG_NAME], [storm-frontend-server])
AC_SUBST([PACKAGE_SHORT_NAME], [frontend-server])
#Environment.
WORKDIR=`pwd`
AC_SUBST(WORKDIR)
GSOAP_GENERATED_CODE_DIR_NAME=gsoap-generated
AC_SUBST(GSOAP_GENERATED_CODE_DIR_NAME)
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_CHECK_LIB([pthread], [main])
AC_C_CONST
AC_TYPE_SIZE_T
# Set template config.h (required by stdsoap)
# This part should probably go in a macron in gsoap.m4 (something like AC_GSOAP_SRC)
# BEGIN:
AH_TEMPLATE(HAVE_FTIME)
AH_TEMPLATE(HAVE_GMTIME)
AH_TEMPLATE(HAVE_GMTIME_R)
AH_TEMPLATE(HAVE_GETTIMEOFDAY)
AH_TEMPLATE(HAVE_LOCALTIME_R)
AH_TEMPLATE(HAVE_MBTOWC)
AH_TEMPLATE(HAVE_STRTOF)
AH_TEMPLATE(HAVE_STRTOD)
AH_TEMPLATE(HAVE_STRTOL)
AH_TEMPLATE(HAVE_STRTOLL)
AH_TEMPLATE(HAVE_STRTOUL)
AH_TEMPLATE(HAVE_STRTOULL)
AH_TEMPLATE(HAVE_SSCANF)
AH_TEMPLATE(HAVE_WCTOMB)
AH_TEMPLATE(HAVE_TIMEGM)
# For IPv6
AH_TEMPLATE([WITH_IPV6], [For Ipv6 support])
AC_DEFINE(WITH_IPV6)
AC_CHECK_FUNC(ftime, [AC_DEFINE(HAVE_FTIME)])
AC_CHECK_FUNC(gmtime, [AC_DEFINE(HAVE_GMTIME)])
AC_CHECK_FUNC(gmtime_r, [AC_DEFINE(HAVE_GMTIME_R)])
AC_CHECK_FUNC(gettimeofday, [AC_DEFINE(HAVE_GETTIMEOFDAY)])
AC_CHECK_FUNC(localtime_r, [AC_DEFINE(HAVE_LOCALTIME_R)])
AC_CHECK_FUNC(mbtowc, [AC_DEFINE(HAVE_MBTOWC)])
AC_CHECK_FUNC(strtof, [AC_DEFINE(HAVE_STRTOF)])
AC_CHECK_FUNC(strtod, [AC_DEFINE(HAVE_STRTOD)])
AC_CHECK_FUNC(strtol, [AC_DEFINE(HAVE_STRTOL)])
AC_CHECK_FUNC(strtoll, [AC_DEFINE(HAVE_STRTOLL)])
AC_CHECK_FUNC(strtoul, [AC_DEFINE(HAVE_STRTOUL)])
AC_CHECK_FUNC(strtoull, [AC_DEFINE(HAVE_STRTOULL)])
AC_CHECK_FUNC(sscanf, [AC_DEFINE(HAVE_SSCANF)])
AC_CHECK_FUNC(wctomb, [AC_DEFINE(HAVE_WCTOMB)])
AC_CHECK_FUNC(timegm, [AC_DEFINE(HAVE_TIMEGM)])
#:END
AC_CHECK_FUNCS([memmove memset mkdir putenv rmdir strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol])
AC_MSG_CHECKING(whether to enable debug)
default="no"
DEBUG=
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
[default=$default]],, enable_debug=$default)
if test "x$enable_debug" = "xyes"; then
CXXFLAGS="-g -O0"
CFLAGS="-g -O0"
AC_MSG_RESULT(yes)
else
CXXFLAGS="-g -O2"
CFLAGS="-g -O2"
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING(whether to enable all warnings)
wall="no"
DEBUG=
AC_ARG_ENABLE(wall, [ --enable-wall=[no/yes] turn on debugging
[wall=$default]],, enable_wall=$default)
if test "x$enable_wall" = "xyes"; then
CXXFLAGS="$CXXFLAGS -Wall"
CFLAGS="$CFLAGS -Wall"
AC_MSG_RESULT(yes)
else
CXXFLAGS="$CXXFLAGS"
CFLAGS="$CFLAGS"
AC_MSG_RESULT(no)
fi
AC_STORM([])
have_curl_devel=no
have_storm_xmlrpc_c_devel=no
AC_CURL([])
AC_STORM_XMLRPC_C([])
AC_CURL_DEVEL([], have_curl_devel=yes, have_curl_devel=no)
AC_STORM_XMLRPC_C_DEVEL([], have_storm_xmlrpc_c_devel=yes, have_storm_xmlrpc_c_devel=no)
AC_MSG_RESULT(["CURL found"])
AC_MSG_RESULT(["STORM_XMLRPC_C found"])
AC_MSG_RESULT(["CURL_DEVEL found $have_curl_devel"])
AC_MSG_RESULT(["STORM_XMLRPC_C_DEVEL found $have_storm_xmlrpc_c_devel"])
have_globus=no
AC_GLOBUS([], have_globus=yes, have_globus=no)
AC_MSG_RESULT(["GLOBUS found $have_globus"])
have_mysql=no
AC_MYSQL([4.0.12], [5.1.52], have_mysql=yes, have_mysql=no)
AC_MSG_RESULT(["MYSQL found $have_mysql"])
AC_VOMS([])
AC_ARGUS([])
AC_CGSI_GSOAP([])
AC_GSOAP([])
AC_BOOST([sl$osdist])
if test "xsl$osdist" = "xsl6"; then
BOOST_SUFFIX=""
elif test "xsl$osdist" = "xsl5"; then
BOOST_SUFFIX="141"
else
BOOST_SUFFIX=""
fi
AC_MSG_RESULT(["BOOST on sl$osdist $BOOST_SUFFIX"])
AC_SUBST(BOOST_SUFFIX)
AC_LIBUUID_DEVEL([])
# Configuration items
AM_CONFIG_HEADER([src/autogen/config.h])
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([etc/Makefile])
AC_CONFIG_FILES([etc/storm-frontend-server.conf.template])
AC_CONFIG_FILES([etc/logrotate/Makefile])
AC_CONFIG_FILES([etc/logrotate/storm-frontend-server])
AC_CONFIG_FILES([etc/init.d/Makefile])
AC_CONFIG_FILES([etc/init.d/storm-frontend-server])
AC_CONFIG_FILES([etc/sysconfig/Makefile])
AC_CONFIG_FILES([wsdl/Makefile])
AC_CONFIG_FILES([src/Makefile])
AC_CONFIG_FILES([src/db/Makefile])
AC_CONFIG_FILES([src/frontend/Makefile])
AC_CONFIG_FILES([src/frontend/frontend_version.h])
AC_OUTPUT