Lines 20-61
Link Here
|
20 |
|
20 |
|
21 |
AC_PROG_LIBTOOL |
21 |
AC_PROG_LIBTOOL |
22 |
|
22 |
|
23 |
# --------------------------------------------------------------------------- |
|
|
24 |
# Build options |
25 |
# --------------------------------------------------------------------------- |
26 |
|
27 |
AC_ARG_ENABLE(optimized, |
28 |
AS_HELP_STRING([--enable-optimized], |
29 |
[Build software optimized]), |
30 |
[ |
31 |
CFLAGS=`echo $CFLAGS|sed 's/-O.//'` |
32 |
if test "x$enableval" = "xyes" ; then |
33 |
CFLAGS=`echo $CFLAGS|sed 's/-g//'` |
34 |
CFLAGS="$CFLAGS -O3" |
35 |
OPTIMIZED=1 |
36 |
else |
37 |
OPTIMIZED=0 |
38 |
fi |
39 |
], |
40 |
[ |
41 |
OPTIMIZED=0 |
42 |
] |
43 |
) |
44 |
|
45 |
AC_ARG_ENABLE(profiling, |
46 |
AS_HELP_STRING([--enable-profiling], |
47 |
[Build with debug and profiling options]), |
48 |
[ |
49 |
if test "x$enableval" = "xyes" ; then |
50 |
CFLAGS="$CFLAGS -g -pg" |
51 |
profile="true" |
52 |
fi |
53 |
], |
54 |
[ |
55 |
profile="false" |
56 |
] |
57 |
) |
58 |
|
59 |
AC_ARG_ENABLE([openssl], |
23 |
AC_ARG_ENABLE([openssl], |
60 |
AS_HELP_STRING([--enable-openssl(=<path>)], |
24 |
AS_HELP_STRING([--enable-openssl(=<path>)], |
61 |
[Link Monit with openssl. An optional path argument may |
25 |
[Link Monit with openssl. An optional path argument may |
Lines 279-294
Link Here
|
279 |
| | |
243 |
| | |
280 |
EOT |
244 |
EOT |
281 |
|
245 |
|
282 |
if test "x1" = "x$OPTIMIZED"; then |
|
|
283 |
echo "| Optimized: ENABLED |" |
284 |
else |
285 |
echo "| Optimized: DISABLED |" |
286 |
fi |
287 |
if test "xfalse" = "x$profile"; then |
288 |
echo "| Profiling: DISABLED |" |
289 |
else |
290 |
echo "| Profiling: ENABLED |" |
291 |
fi |
292 |
if test "xtrue" = "x$openssl"; then |
246 |
if test "xtrue" = "x$openssl"; then |
293 |
echo "| Openssl: ENABLED |" |
247 |
echo "| Openssl: ENABLED |" |
294 |
fi |
248 |
fi |