-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
624 lines (542 loc) · 18.6 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
# $Id: configure.ac,v 1.106 2010/02/18 18:53:28 buccella Exp $
#
# configure.ac
#
# © Copyright IBM Corp. 2005, 2007
#
# THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
# ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
# CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
#
# You can obtain a current copy of the Eclipse Public License from
# http://www.opensource.org/licenses/eclipse-1.0.php
#
# Author: Viktor Mihajlovski <[email protected]>
# Contributions: Adrian Schuur <[email protected]>
# Sven Schuetz <[email protected]>
#
# Description:
#
# Configure process input for sfcb.
#
# Process this file with autoconf to produce a configure script.
AC_INIT(Small Footprint CIM Broker, 1.4.7-preview, [email protected], sblim-sfcb)
AC_CONFIG_SRCDIR([providerDrv.c])
#disable "seems to ignore the --datarootdir setting" warnings
#AC_DEFUN([AC_DATAROOTDIR_CHECKED])
AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h])
#Source files will use the local sfcCommon files if this is set.
#Reverse this to use the shared sfcCommon library.
AC_DEFINE(SFCCOMMON,1,[Local sfcCommon files used.])
AC_ARG_ENABLE(debug,
[AC_HELP_STRING([--disable-debug],
[disable debug mode for SFCB.])],
[enable_debug=$enableval],
[enable_debug="yes"]
)
AC_ARG_ENABLE(ssl,
[AC_HELP_STRING([--enable-ssl],
[include ssl support for SFCB.])])
AC_ARG_ENABLE(slp,
[AC_HELP_STRING([--enable-slp],
[include slp agent for SFCB.])])
AC_ARG_ENABLE(slp-hostname-lib,
[AC_HELP_STRING([--enable-slp-hostname-lib],
[aquire hostname for slp registration from external library.])])
AC_ARG_ENABLE(qualifierrep,
[AC_HELP_STRING([--disable-qualifierrep],
[disable qualifier repository support.])],
[enable_qualifierrep=$enableval],
[enable_qualifierrep="yes"]
)
AC_ARG_ENABLE(indications,
[AC_HELP_STRING([--disable-indications],
[disable indication support for SFCB])],
[enable_indications=$enableval],
[enable_indications="yes"]
)
AC_ARG_ENABLE(local_connect_only,
[AC_HELP_STRING([--enable-local-connect-only],
[SFCB will only support local connection. Http server will not be built.])],
[enable_local_connect_only=$enableval],
[enable_local_connect_only="no"]
)
AC_ARG_ENABLE(default-properties,
[AC_HELP_STRING([--disable-default-properties],
[disable generation of default instance properties for SFCB.])],
[enable_default_properties=$enableval],
[enable_default_properties="yes"]
)
AC_ARG_ENABLE(optimized-enumeration,
[AC_HELP_STRING([--enable-optimized-enumeration],
[Enable enumeration call optimization for polymorphic invocations.])],
)
AC_ARG_ENABLE(pam,
[AC_HELP_STRING([--enable-pam],
[Enable PAM Basic authentication support for SFCB.])])
AC_ARG_ENABLE(docs,
[AC_HELP_STRING([--enable-docs],
[Enable generation of API documentation.])])
AC_ARG_ENABLE(ipv6,
[AC_HELP_STRING([--disable-ipv6],
[Disable IPv6 support for SFCB])],
[enable_ipv6=$enableval],
[enable_ipv6="yes"]
)
AC_ARG_ENABLE(tests,
[AC_HELP_STRING([--enable-tests(=TESTS)],
[Enable listed tests. If none are listed, all are enabled.])])
AC_ARG_ENABLE(settableretry,
[AC_HELP_STRING([--enable-settableretry],
[Allow reliable indication params to be settable.])])
AC_ARG_ENABLE(uds,
[AC_HELP_STRING([--enable-uds],
[Enable UDS authentication.])])
AC_ARG_ENABLE(request-types,
[AC_HELP_STRING([--enable-request-types(=TYPES)],
[Enable support of listed request types. If none are listed, all are enabled.])])
AC_ARG_ENABLE(expired-pw-update,
[AC_HELP_STRING([--enable-expired-pw-update],
[allow a user with an expired account to invoke a password update for CIM_Account (see docs).])])
# Size checks
AC_CHECK_SIZEOF(void*)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(short)
if test "$ac_cv_sizeof_voidp" = 4
then
if test "$ac_cv_sizeof_short" = 2
then
AC_DEFINE(SFCB_HALFWORD,short,[integer od half pointer size])
else
AC_ERROR([Unsupported 32-bit platform: short size is $ac_cv_sizeof_short, expected 2.])
fi
elif test "$ac_cv_sizeof_voidp" = 8
then
if test "$ac_cv_sizeof_int" = 4
then
AC_DEFINE(SFCB_HALFWORD,int,[integer od half pointer size])
else
AC_ERROR([Unsupported 64-bit platform: int size is $ac_cv_sizeof_int, expected 4])
fi
else
AC_ERROR([Unsupported platform, invalid pointer size $ac_cv_sizeof_voidp.])
fi
# Configuration Arguments
AC_ARG_VAR([CIMSCHEMA_SOURCE],[The URL or path name of the CIM Schema ZIP File.])
AC_ARG_VAR([CIMSCHEMA_MOF],[The file name of the top level MOF (CIMSchema.mof)])
AC_ARG_VAR([CIMSCHEMA_SUBDIRS],[Set this to any value if the unpacked CIM Schema directory has subdirectories])
AC_SUBST(CIMSCHEMA_SOURCE)
AC_SUBST(CIMSCHEMA_MOF)
AC_SUBST(CIMSCHEMA_SUBDIRS)
AC_DISABLE_STATIC
if test "$SYSTEMDDIR" == "" ; then
SYSTEMDDIR=$(prefix)/share/systemd
fi
AC_SUBST(SYSTEMDDIR)
if test "$enable_debug" != "yes" ; then
CFLAGS="`echo $CFLAGS | sed -e 's/-g//'`"
CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//'`"
fi
if test "$enable_debug" == "yes"; then
SFCB_CPPFLAGS="-D SFCB_DEBUG $SFCB_CPPFLAGS"
fi
if test "$enable_default_properties" == "yes"; then
AC_DEFINE(HAVE_DEFAULT_PROPERTIES,1,[Default instance property generation enabled.])
fi
if test "$enable_slp" == "standalone"; then
# AC_DEFINE(HAVE_SLP_ALONE,,[SLP standalone support enabled.])
AC_MSG_ERROR(standalone slp agent is no longer supported.)
fi
if test "$enable_slp" == "yes"; then
AC_DEFINE(HAVE_SLP,,[SLP support enabled.])
LOAD_PROFILE_PROVIDER=
else
LOAD_PROFILE_PROVIDER='#'
fi
AC_SUBST(LOAD_PROFILE_PROVIDER)
if test "$enable_slp_hostname_lib" == "yes"; then
AC_DEFINE(SLP_HOSTNAME_LIB,,[SLP Hostname lib enabled])
fi
if test "$enable_expired_pw_update" == "yes"; then
LOAD_SFCBACCOUNT_PROVIDER=
AC_DEFINE(ALLOW_UPDATE_EXPIRED_PW,1,[Expired Account Password Update enabled])
else
LOAD_SFCBACCOUNT_PROVIDER='#'
fi
AC_SUBST(LOAD_SFCBACCOUNT_PROVIDER)
# Check and configure requested tests.
if test "$enable_tests" == "yes"; then
if test "$enable_local_connect_only" == "yes"; then
enable_tests="localtests,gcov"
else
# This means all tests should be on
enable_tests="unit,gcov,wbemcli,xml,commands,slp,providers,cimrs"
fi
fi
if test "$enable_tests" != ""; then
enable_settableretry="yes"
fi
OLDIFS="$IFS"
IFS=","
for testcase in $enable_tests;
do
case $testcase in
gcov)
test_gcov=yes;;
wbemcli)
test_wbemcli=yes;;
pywbem)
test_pywbem=yes;;
unit|unittest)
test_unit=yes;;
xml|xmltest)
test_xml=yes;;
cimrs)
test_cimrs=yes;;
commands|command|cmd|cmds)
test_cmd=yes;;
valgrind)
test_valgrind=yes;;
slp)
if test "$enable_slp" == "yes"; then
test_slp=yes
fi
;;
providers)
test_providers=yes;;
localtests)
test_local=yes;;
*)
echo "Unknown testcase $testcase";;
esac
done
IFS="$OLDIFS"
AM_CONDITIONAL(TEST_ENABLED,[test "$enable_tests"])
AM_CONDITIONAL(UNITTEST,[test "$test_unit" == "yes"])
AM_CONDITIONAL(GCOV,[test "$test_gcov" == "yes"])
AM_CONDITIONAL(WCTEST,[test "$test_wbemcli" == "yes"])
AM_CONDITIONAL(XMLTEST,[test "$test_xml" == "yes"])
AM_CONDITIONAL(CIMRSTEST,[test "$test_cimrs" == "yes"])
AM_CONDITIONAL(PYWBEMTEST,[test "$test_pywbem" == "yes"])
AM_CONDITIONAL(UDSTEST,[test "$enable_uds" == "yes"])
AM_CONDITIONAL(CMDTEST,[test "$test_cmd" == "yes"])
AM_CONDITIONAL(SLPTEST,[test "$test_slp" == "yes"])
AM_CONDITIONAL(PROVTEST,[test "$test_providers" == "yes"])
AM_CONDITIONAL(PROVTEST,[test "$test_local" == "yes"])
AM_CONDITIONAL(VALGRIND,[test "$test_valgrind"])
KILLEXEC="sfcbd"
AC_SUBST(KILLEXEC)
if [test "$enable_tests"]; then
# The order of TEST_SUBDIRS determines test
# execution order.
TEST_SUBDIRS="."
AC_CONFIG_FILES([test/finaltest/Makefile])
# Enable the various tests
if [test "$test_providers" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS TestProviders TestProviders/tests"
AC_CONFIG_FILES([test/TestProviders/Makefile])
AC_CONFIG_FILES([test/TestProviders/tests/Makefile])
fi
if [test "$test_cmd" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS commands"
AC_CONFIG_FILES([test/commands/Makefile])
fi
if [test "$test_wbemcli" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS wbemcli"
AC_CONFIG_FILES([test/wbemcli/Makefile])
fi
if [test "$test_pywbem" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS pywbem"
AC_CONFIG_FILES([test/pywbem/Makefile])
fi
if [test "$test_xml" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS xmltest"
AC_CONFIG_FILES([test/xmltest/Makefile])
fi
if [test "$test_cimrs" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS cimrstest"
AC_CONFIG_FILES([test/cimrstest/Makefile])
fi
if [test "$test_unit" == "yes"]; then
TEST_SUBDIRS="$TEST_SUBDIRS unittest"
AC_CONFIG_FILES([test/unittest/Makefile])
AC_DEFINE(UNITTEST,,[Unittest enabled])
fi
if [test "$test_slp" == "yes"];then
TEST_SUBDIRS="$TEST_SUBDIRS slptest"
AC_CONFIG_FILES([test/slptest/Makefile])
fi
if [test "$test_local" == "yes"];then
TEST_SUBDIRS="$TEST_SUBDIRS localtests"
AC_CONFIG_FILES([test/localtests/Makefile])
fi
if [test "$test_valgrind" == "yes"]; then
PROFILER="$PROFILER touch /tmp/sfcb-suppressions \&\& valgrind --leak-check=full --log-file=/tmp/sfcb-vgout --trace-children=yes --suppressions=/tmp/sfcb-suppressions"
AC_SUBST(PROFILER)
KILLEXEC="-r memcheck.*"
AC_SUBST(KILLEXEC)
fi
TEST_SUBDIRS="$TEST_SUBDIRS finaltest"
AC_SUBST(TEST_SUBDIRS)
fi
if [test "$test_gcov" == "yes"]; then
AC_CHECK_LIB(gcc,main)
AC_CHECK_LIB(gcov,main)
AC_PATH_PROG(LCOV,lcov,yes,no)
AC_PATH_PROG(GENHTML,genhtml,yes,no)
if test "$LCOV" == "no" -o "$GENHTML" == "no" ; then
AC_MSG_ERROR([lcov and genhtml are required for profiling.])
fi
SFCB_CPPFLAGS="-D SFCB_GCOV $SFCB_CPPFLAGS"
fi
# End of test configuration
# Check and configure requested handlers.
if test "$enable_request_types" == "yes"; then
enable_request_types="cimxml,cimrs"
fi
if test "$enable_request_types" == ""; then
enable_request_types="cimxml,cimrs"
fi
OLDIFS="$IFS"
IFS=","
for rt in $enable_request_types;
do
case $rt in
cimxml|CIMxml|CIMXML|cimXML)
handler_CIMXML=yes;;
cimrs|CIMrs|CIMRS|cimRS)
handler_CIMRS=yes;;
*)
handler_ERROR=yes
echo "Unknown request type $rt";;
esac
done
IFS="$OLDIFS"
if test "$handler_ERROR" == "yes"; then
AC_MSG_ERROR([Unknown request type.])
fi
if test "$handler_CIMXML" == "yes"; then
AC_DEFINE(HANDLER_CIMXML,,["CIMxml handler enabled"])
fi
if test "$handler_CIMRS" == "yes"; then
AM_CONDITIONAL(CIMRS,[test "$handler_CIMRS" == "yes"])
AC_DEFINE(HANDLER_CIMRS,,["CIMrs handler enabled"])
fi
# End of parser config
if test "$enable_uds" == "yes"; then
AC_DEFINE(HAVE_UDS,,[UDS authentication enabled])
fi
if test "$enable_settableretry" == "yes"; then
AC_DEFINE(SETTABLERETRY,,[Settable indication parameters enabled])
fi
if test "$enable_qualifierrep" == "yes"; then
LOAD_QUALIFIER_PROVIDER=
AC_DEFINE(HAVE_QUALREP,,[Qualifier repository support enabled.])
else
LOAD_QUALIFIER_PROVIDER='#'
fi
AC_SUBST(LOAD_QUALIFIER_PROVIDER)
AC_SUBST(SFCB_LIBPAM)
if test "$enable_optimized_enumeration" == "yes"; then
AC_DEFINE(HAVE_OPTIMIZED_ENUMERATION,1,[Enumeration optimization enabled.])
fi
if test "$enable_pam" == "yes"; then
AC_DEFINE(HAVE_PAM,,[PAM support enabled.])
AC_CHECK_LIB(pam,main,[SFCB_LIBPAM=-lpam],[AC_MSG_ERROR(Could not find required pam library.)])
SFCB_CONF_BASICAUTHLIB=sfcBasicPAMAuthentication
SFCB_CONF_DOBASICAUTH=true
else
SFCB_CONF_BASICAUTHLIB=sfcBasicAuthentication
SFCB_CONF_DOBASICAUTH=false
fi
AC_SUBST(SFCB_CONF_DOBASICAUTH)
AC_SUBST(SFCB_CONF_BASICAUTHLIB)
if test "$enable_ipv6" == "yes"; then
AC_DEFINE(HAVE_IPV6,,[IPv6 support enabled.])
fi
AC_CANONICAL_HOST
case $host_os in
openedition*) SFCB_CMPI_PLATFORM="-D CMPI_PLATFORM_LINUX_GENERIC_GNU"
SFCB_CMPI_OS="-D CMPI_OS_LINUX"
SFCB_CPPFLAGS=-W"c,SSCOM"
SFCB_CPPFLAGS="-D_OPEN_SOURCE=3 -D_ENHANCED_ASCII_EXT=0xFFFFFFFF $SFCB_CPPFLAGS"
SFCB_CFLAGS=-W"c,ASCII,dll,expo,langlvl(extended),float"
SFCB_LDFLAGS=-W"l,XPLINK,dll,EDIT=NO"
CXX="c++ -+"
;;
linux*) SFCB_CMPI_PLATFORM="-D CMPI_PLATFORM_LINUX_GENERIC_GNU"
SFCB_CMPI_OS="-D CMPI_OS_LINUX"
SFCB_CFLAGS="-Wall -fno-strict-aliasing -fsigned-char $SFCB_CFLAGS"
;;
hpux*) SFCB_CMPI_PLATFORM="-D CMPI_OS_HPUX"
case $host_arch in
parisc*) SFCB_CMPI_PLATFORM="-D CMPI_PLATFORM_HPUX_PARISC_ACC"
;;
esac
;;
esac
case $host_cpu in
i*86) AC_DEFINE(SFCB_IX86,1,[Intel i386 CPU])
;;
powerpc*) CFLAGS="$CFLAGS -O0"
;;
esac
AC_SUBST(SFCB_CMPI_PLATFORM)
AC_SUBST(SFCB_CMPI_OS)
AC_SUBST(SFCB_LIBZ)
AC_SUBST(SFCB_CFLAGS)
AC_SUBST(SFCB_CPPFLAGS)
AC_SUBST(SFCB_LDFLAGS)
# Checks for programs.
AC_PROG_CC
AC_PROG_LEX
case $LEX in
:) AC_MSG_ERROR([No lex program found]);;
esac
AC_CHECK_PROG(YACC,bison,[bison -y])
if test -z "${YACC}"
then
AC_MSG_WARN([GNU bison is required (only for rebuilding the sfcb parser code).])
fi
AC_PROG_LIBTOOL
AC_CHECK_PROG(HAVE_UNZIP,unzip,"yes","no",)
if test "$HAVE_UNZIP" = "no" ; then
AC_MSG_ERROR([Could not find unzip])
fi
# Checks for libraries.
AC_CHECK_LIB(pthread,main)
AC_CHECK_LIB(dl,main)
AC_CHECK_LIB(z,main,[SFCB_LIBZ=-lz],[AC_MSG_ERROR([Could not find required libz])])
# Test for the newest function here to make sure it's up to date.
AC_CHECK_LIB(sfcUtil,invalid_uint,, \
[AC_MSG_ERROR([Function invalid_uint not found. Is the required version of sfcCommon installed?])])
if test "$enable_indications" = "yes" ; then
LOAD_INDICATION_PROVIDER=
AC_DEFINE(HAVE_INDICATIONS,1,[Indication support enabled.])
AC_CHECK_LIB(curl,main)
else
LOAD_INDICATION_PROVIDER='#'
fi
AC_SUBST(LOAD_INDICATION_PROVIDER)
if test "$enable_ssl" = "yes"; then
AC_CHECK_LIB(ssl,main)
SFCB_CONF_HTTPS=true
SFCB_CONF_HTTP=false
else
SFCB_CONF_HTTPS=false
SFCB_CONF_HTTP=true
fi
#
# if enable_local_connect_only is on then ignore whatever is set by enable_ssl
#
if test "$enable_local_connect_only" = "yes" ; then
AC_DEFINE(LOCAL_CONNECT_ONLY_ENABLE,1,[Local Connect only.])
SFCB_CONF_HTTPS=false
SFCB_CONF_HTTP=false
fi
AC_SUBST(SFCB_CONF_HTTPS)
AC_SUBST(SFCB_CONF_HTTP)
if test "$enable_slp"; then
#defined in acinclude.m4
AC_CHECK_HEADERS([slp.h],[],[AC_MSG_ERROR(no. Sorry cannot find slp.h.)])
AC_CHECK_LIB(slp,SLPReg,[],[AC_MSG_ERROR(no. Sorry cannot find libslp.)])
fi
# Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([fcntl.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h zlib.h])
AC_CHECK_HEADERS([cmpi/cmpimacs.h cmpi/cmpift.h cmpi/cmpidt.h],[],[AC_MSG_ERROR([Could not find required CPMI header.])])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_BIGENDIAN
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_ERROR_AT_LINE
AC_FUNC_FORK
AC_FUNC_MKTIME
AC_TYPE_SIGNAL
AC_FUNC_STRFTIME
AC_FUNC_WAIT3
AC_CHECK_FUNCS([alarm bzero gettimeofday localtime_r memmove memset socket strcasecmp strchr strdup strncasecmp strpbrk strrchr strspn strstr tzset])
# Check for Linux System Style
if test -f /etc/redhat-release
then
INIT_STYLE=init-redhat
elif test -f /etc/SuSE-release
then
INIT_STYLE=init-suse
else
INIT_STYLE=init-none
fi
AC_SUBST(INIT_STYLE)
# Check for doxygen for generating documentation
if test "$enable_docs" = "yes"; then
AC_CHECK_PROG(DOXYGEN,doxygen,[doxygen])
if test -z "${DOXYGEN}"
then
AC_MSG_ERROR([doxygen is required to build API documentation.])
fi
fi
if test -d $srcdir/mofc; then
MOFC_DIR=mofc
export sfcb_recursed=yes
export with_sfcb=yes
export enable_namespace_kludge=yes
AC_CONFIG_SUBDIRS([mofc])
AC_SUBST(MOFC_DIR)
fi
if test -d $srcdir/cmpi-devel; then
CMPIDEV_DIR=cmpi-devel
AC_CONFIG_SUBDIRS([cmpi-devel])
AC_SUBST(CMPIDEV_DIR)
fi
AM_CONDITIONAL(INDICATIONS,[test "$enable_indications" == "yes"])
AM_CONDITIONAL(SETTABLERETRY,[test "$enable_settableretry" == "yes"])
AM_CONDITIONAL(SSL,[test "$enable_ssl" == "yes"])
AM_CONDITIONAL(SLP,[test "$enable_slp" == "yes"])
AM_CONDITIONAL(SLP_HOSTNAME_LIB,[test "$enable_slp_hostname_lib" == "yes"])
AM_CONDITIONAL(SLP_ALONE,[test "$enable_slp" == "standalone"])
AM_CONDITIONAL(QUALREP,[test "$enable_qualifierrep" == "yes"])
AM_CONDITIONAL(PAM,[test "$enable_pam" == "yes"])
AM_CONDITIONAL(DOCS,[test "$enable_docs" == "yes"])
AM_CONDITIONAL(IPV6,[test "$enable_ipv6" == "yes"])
AM_CONDITIONAL(LOCAL_CONNECT_NO_INDICATION,[test "$enable_local_connect_only" == "yes" -a "$enable_indications" == "no"])
AM_CONDITIONAL(LOCAL_CONNECT_ONLY,[test "$enable_local_connect_only" == "yes"])
AM_CONDITIONAL(ACCOUNT_PASSTHRU,[test "$enable_expired_pw_update" == "yes"])
AM_CONDITIONAL(DEFAULT_PROPERTIES,[test "$enable_default_properties" == "yes"])
AC_CONFIG_FILES([Makefile sfcb.spec sfcbrepos.sh sfcbstage.sh sfcbunstage.sh
sfcbuuid.sh sfcb.cfg.pre getSchema.sh.pre 20_indication.mof.pre
sfcb.init-redhat sfcb.init-suse sfcb.init-none default.reg sblim-sfcb.service.pre
man/genSslCert.1.pre man/sfcbmof.1.pre
man/sfcbunstage.1.pre man/sfcbuuid.1.pre man/getSchema.1.pre
man/sfcbrepos.1.pre man/wbemcat.1.pre
man/sfcbd.1.pre man/sfcbstage.1.pre man/xmltest.1.pre
sfcb-dox.conf test/Makefile])
AC_OUTPUT
echo =================================================================
echo Configuration Features:
echo -e "ssl"\\t\\t\\t\\t"${enable_ssl:-no}"
echo -e "slp"\\t\\t\\t\\t"${enable_slp:-no}"
echo -e "slp hostname lib"\\t\\t"${enable_slp_hostname_lib:-no}"
echo -e "IPv6"\\t\\t\\t\\t"${enable_ipv6:-no}"
echo -e "indications"\\t\\t\\t"${enable_indications}"
echo -e "qualifierrep"\\t\\t\\t"${enable_qualifierrep:-no}"
echo -e "Documentation"\\t\\t\\t"${enable_docs:-no}"
echo -e "PAM authentication"\\t\\t"${enable_pam:-no}"
echo -e "local connect only "\\t\\t"${enable_local_connect_only}"
echo -e "default instance properties"\\t"${enable_default_properties}"
echo -e "uds"\\t\\t\\t\\t"${enable_uds:-no}"
echo -e "tests"\\t\\t\\t\\t"${enable_tests:-no}"
echo -e "debug"\\t\\t\\t\\t"${enable_debug:-no}"
echo -e "Request types"\\t\\t\\t"${enable_request_types}"
echo -e "Allow expired account pw update"\\t"${enable_expired_pw_update:-no}"
echo -e "Settable retry parameters"\\t"${enable_settableretry:-no}"
echo =================================================================
echo
echo "sfcb configuration complete. you may now run 'make'"
echo