56
56
[AC_HELP_STRING([--enable-slp],
57
57
[include slp agent for SFCB - EXPERIMENTAL.])])
59
AC_ARG_ENABLE(slp-hostname-lib,
60
[AC_HELP_STRING([--enable-slp-hostname-lib],
61
[aquire hostname for slp registration from external library.])])
59
63
AC_ARG_ENABLE(qualifierrep,
60
64
[AC_HELP_STRING([--disable-qualifierrep],
61
65
[disable qualifier repository support.])],
70
74
[enable_indications="yes"]
77
AC_ARG_ENABLE(local_connect_only,
78
[AC_HELP_STRING([--enable-local-connect-only],
79
[SFCB will only support local connection. Http server will not be built.])],
80
[enable_local_connect_only=$enableval],
81
[enable_local_connect_only="no"]
73
84
AC_ARG_ENABLE(default-properties,
74
85
[AC_HELP_STRING([--disable-default-properties],
75
86
[disable generation of default instance properties for SFCB.])],
150
169
AC_DEFINE(HAVE_SLP,,[SLP support enabled.])
172
if test "$enable_slp_hostname_lib" == "yes"; then
173
AC_DEFINE(SLP_HOSTNAME_LIB,,[SLP Hostname lib enabled])
177
# Check and configure requested tests.
178
if test "$enable_tests" == "yes"; then
179
# This means all tests should be on
180
enable_tests="unit,gcov,wbemcli,xml,commands"
185
for testcase in $enable_tests;
196
commands|command|cmd|cmds)
199
echo "Unknown testcase $testcase";;
204
AM_CONDITIONAL(TEST_ENABLED,[test "$enable_tests"])
205
AM_CONDITIONAL(UNITTEST,[test "$test_unit" == "yes"])
206
AM_CONDITIONAL(GCOV,[test "$test_gcov" == "yes"])
207
AM_CONDITIONAL(WCTEST,[test "$test_wbemcli" == "yes"])
208
AM_CONDITIONAL(XMLTEST,[test "$test_xml" == "yes"])
209
AM_CONDITIONAL(CMDTEST,[test "$test_cmd" == "yes"])
211
if [test "$enable_tests"]; then
212
# The order of TEST_SUBDIRS determines test
215
AC_CONFIG_FILES([test/finaltest/Makefile])
216
# Enable the various tests
217
if [test "$test_cmd" == "yes"]; then
218
TEST_SUBDIRS="$TEST_SUBDIRS commands"
219
AC_CONFIG_FILES([test/commands/Makefile])
222
if [test "$test_wbemcli" == "yes"]; then
223
TEST_SUBDIRS="$TEST_SUBDIRS wbemcli"
224
AC_CONFIG_FILES([test/wbemcli/Makefile])
227
if [test "$test_xml" == "yes"]; then
228
TEST_SUBDIRS="$TEST_SUBDIRS xmltest"
229
AC_CONFIG_FILES([test/xmltest/Makefile])
232
if [test "$test_unit" == "yes"]; then
233
TEST_SUBDIRS="$TEST_SUBDIRS unittest"
234
AC_CONFIG_FILES([test/unittest/Makefile])
235
AC_DEFINE(UNITTEST,,[Unittest enabled])
238
TEST_SUBDIRS="$TEST_SUBDIRS finaltest"
239
AC_SUBST(TEST_SUBDIRS)
242
if [test "$test_gcov" == "yes"]; then
243
AC_CHECK_LIB(gcc,main)
244
AC_CHECK_LIB(gcov,main)
245
SFCB_CPPFLAGS="-D SFCB_GCOV $SFCB_CPPFLAGS"
247
# End of test configuration
249
if test "$enable_uds" == "yes"; then
250
AC_DEFINE(HAVE_UDS,,[UDS authentication enabled])
153
254
if test "$enable_qualifierrep" == "yes"; then
255
LOAD_QUALIFIER_PROVIDER=
154
256
AC_DEFINE(HAVE_QUALREP,,[Qualifier repository support enabled.])
258
LOAD_QUALIFIER_PROVIDER='#'
260
AC_SUBST(LOAD_QUALIFIER_PROVIDER)
157
262
if test "$enable_optimized_enumeration" == "yes"; then
158
263
AC_DEFINE(HAVE_OPTIMIZED_ENUMERATION,1,[Enumeration optimization enabled.])
229
334
AC_CHECK_LIB(pthread,main)
230
335
AC_CHECK_LIB(dl,main)
231
336
AC_CHECK_LIB(z,main,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])])
232
if test "$enable_indications" == "yes"; then
337
if test "$enable_indications" = "yes" ; then
338
LOAD_INDICATION_PROVIDER=
233
339
AC_DEFINE(HAVE_INDICATIONS,1,[Indication support enabled.])
234
340
AC_CHECK_LIB(curl,main)
342
LOAD_INDICATION_PROVIDER='#'
345
AC_SUBST(LOAD_INDICATION_PROVIDER)
237
347
if test "$enable_ssl" = "yes"; then
238
348
AC_CHECK_LIB(ssl,main)
239
349
SFCB_CONF_HTTPS=true
317
433
AM_CONDITIONAL(JDBC,[test "$enable_jdbc" == "yes"])
318
434
AM_CONDITIONAL(SSL,[test "$enable_ssl" == "yes"])
319
435
AM_CONDITIONAL(SLP,[test "$enable_slp" == "yes"])
436
AM_CONDITIONAL(SLP_HOSTNAME_LIB,[test "$enable_slp_hostname_lib" == "yes"])
320
437
AM_CONDITIONAL(SLP_ALONE,[test "$enable_slp" == "standalone"])
321
438
AM_CONDITIONAL(QUALREP,[test "$enable_qualifierrep" == "yes"])
322
439
AM_CONDITIONAL(PAM,[test "$enable_pam" == "yes"])
323
440
AM_CONDITIONAL(DOCS,[test "$enable_docs" == "yes"])
324
441
AM_CONDITIONAL(IPV6,[test "$enable_ipv6" == "yes"])
442
AM_CONDITIONAL(LOCAL_CONNECT_NO_INDICATION,[test "$enable_local_connect_only" == "yes" -a "$enable_indications" == "no"])
443
AM_CONDITIONAL(LOCAL_CONNECT_ONLY,[test "$enable_local_connect_only" == "yes"])
326
445
AC_CONFIG_FILES([Makefile sfcb.spec sfcbrepos.sh sfcbstage.sh sfcbunstage.sh
327
446
sfcbuuid.sh sfcb.cfg.pre getSchema.sh.pre
328
sfcb.init-redhat sfcb.init-suse sfcb.init-none
447
sfcb.init-redhat sfcb.init-suse sfcb.init-none default.reg
329
448
man/genSslCert.1.pre man/sfcbmof.1.pre
330
449
man/sfcbunstage.1.pre man/sfcbuuid.1.pre man/getSchema.1.pre
331
450
man/sfcbrepos.1.pre man/wbemcat.1.pre
332
451
man/sfcbd.1.pre man/sfcbstage.1.pre man/xmltest.1.pre
452
sfcb-dox.conf test/Makefile])
336
echo ======================================================
337
echo sfcb configuration complete
338
echo configuration features:
339
echo -e "debug"\\t"${enable_debug:-no}"
340
echo -e "indications"\\t"${enable_indications}"
341
echo -e "ssl"\\t"${enable_ssl:-no}"
342
echo -e "jdbc"\\t"${enable_jdbc:-no}"
343
echo -e "slp"\\t"${enable_slp:-no}"
344
echo -e "qualifierrep"\\t"${enable_qualifierrep:-no}"
455
echo =================================================================
456
echo Configuration Features:
457
echo -e "ssl"\\t\\t\\t\\t"${enable_ssl:-no}"
458
echo -e "slp"\\t\\t\\t\\t"${enable_slp:-no}"
459
echo -e "slp hostname lib"\\t\\t"${enable_slp_hostname_lib:-no}"
460
echo -e "jdbc"\\t\\t\\t\\t"${enable_jdbc:-no}"
461
echo -e "IPv6"\\t\\t\\t\\t"${enable_ipv6:-no}"
462
echo -e "indications"\\t\\t\\t"${enable_indications}"
463
echo -e "qualifierrep"\\t\\t\\t"${enable_qualifierrep:-no}"
464
echo -e "Documentation"\\t\\t\\t"${enable_docs:-no}"
465
echo -e "PAM authentication"\\t\\t"${enable_pam:-no}"
466
echo -e "local connect only "\\t\\t"${enable_local_connect_only}"
345
467
echo -e "default instance properties"\\t"${enable_default_properties}"
346
echo -e "PAM authentication"\\t"${enable_pam:-no}"
347
echo -e "Documentation"\\t"${enable_docs:-no}"
348
echo -e "IPv6"\\t"${enable_ipv6:-no}"
349
echo ======================================================
468
echo -e "uds"\\t\\t\\t\\t"${enable_uds:-no}"
469
echo -e "tests"\\t\\t\\t\\t"${enable_tests:-no}"
470
echo -e "debug"\\t\\t\\t\\t"${enable_debug:-no}"
471
echo =================================================================
473
echo "sfcb configuration complete. you may now run 'make'"