-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.in
669 lines (619 loc) · 19.8 KB
/
configure.in
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
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
# This file is an input file used by the GNU "autoconf" program to
# generate the file "configure", which is run during Orca installation
# to configure the system for the local environment.
AC_INIT(orca/orca.pl.in)
AC_CONFIG_AUX_DIR(config)
AC_CANONICAL_SYSTEM
# Minimum Autoconf version required.
AC_PREREQ(2.53)
# Remember the command line arguments to configure for use when
# configure is run again. Also create the command line options for
# RRD configure.
ORCA_CONFIGURE_COMMAND_LINE=${1+"$@"}
RRD_CONFIGURE_COMMAND_LINE="$ORCA_CONFIGURE_COMMAND_LINE --cache-file=../../config.cache"
AC_SUBST(ORCA_CONFIGURE_COMMAND_LINE)
AC_SUBST(RRD_CONFIGURE_COMMAND_LINE)
# Set this to yes to have configure always build all of the required
# Perl Orca modules. This is used to test the build more than
# anything else.
# ALWAYS_BUILD_PERL_MODULES=yes
# ALWAYS_BUILD_PERL_MODULES=
# Define the directories containing packages that Orca makes use of here.
# The directory name packages where these packages are distributed with
# Orca gets added where necessary.
DATA_DUMPER_DIR=Data-Dumper-2.101
DATA_DUMPER_VER=2.101
DATE_PARSE_DIR=TimeDate-1.16
DATE_PARSE_VER=2.24
DEVEL_DPROF_DIR=DProf-19990108
DEVEL_DPROF_VER=19990108
DIGEST_MD5_DIR=Digest-MD5-2.33
DIGEST_MD5_VER=2.33
MATH_INTERVALSEARCH_DIR=Math-Interpolate-1.05
MATH_INTERVALSEARCH_VER=1.05
RRDTOOL_DIR=rrdtool-1.0.50
RRDTOOL_VER=1.000503
STORABLE_DIR=Storable-2.15
STORABLE_VER=2.15
TIME_HIRES_DIR=Time-HiRes-1.83
TIME_HIRES_VER=1.83
AC_SUBST(DATA_DUMPER_DIR)
AC_SUBST(DATE_PARSE_DIR)
AC_SUBST(DEVEL_DPROF_DIR)
AC_SUBST(DIGEST_MD5_DIR)
AC_SUBST(MATH_INTERVALSEARCH_DIR)
AC_SUBST(RRDTOOL_DIR)
AC_SUBST(STORABLE_DIR)
AC_SUBST(TIME_HIRES_DIR)
AC_SUBST(DATA_DUMPER_VER)
AC_SUBST(DATE_PARSE_VER)
AC_SUBST(DEVEL_DPROF_VER)
AC_SUBST(DIGEST_MD5_VER)
AC_SUBST(MATH_INTERVALSEARCH_VER)
AC_SUBST(RRDTOOL_VER)
AC_SUBST(STORABLE_VER)
AC_SUBST(TIME_HIRES_VER)
# Get the current working directory and the config directory.
cwd=`pwd`
config_dir="$cwd/config"
if test ! -d $config_dir; then
AC_MSG_ERROR([*** Cannot find config directory.])
fi
AC_ARG_WITH(var-dir,
[ --with-var-dir=DIR where raw measured data is stored [[localstatedir/orca]]],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-var-dir option.])
;;
*) VAR_DIR="$withval"
;;
esac
],
: ${VAR_DIR=$localstatedir/orca}
)
VAR_DIR=`(
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
eval echo "$VAR_DIR"
)`
AC_SUBST(VAR_DIR)
# Define the directories where the source orcallator and RRD data files
# will be installed.
AC_ARG_WITH(rrd-dir,
[ --with-rrd-dir=DIR where RRD data files are stored [[var-dir/rrd]]],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-rrd-dir option.])
;;
*) RRD_DIR="$withval"
;;
esac
],
: ${RRD_DIR=$VAR_DIR/rrd}
)
RRD_DIR=`(
test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix=${prefix}
eval echo "$RRD_DIR"
)`
AC_SUBST(RRD_DIR)
AC_ARG_WITH(html-dir,
[ --with-html-dir=DIR where is the output HTML root directory],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-html-dir option.])
;;
*) HTML_DIR="$withval"
;;
esac
],
AC_MSG_ERROR([*** You must use the --with-html-dir argument and supply a value.])
)
AC_SUBST(HTML_DIR)
WATCH_WEB=
NCSA_LOG=
AC_ARG_WITH(ncsa-log,
[ --with-ncsa-log=FILE location of the NCSA style web server access log],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-ncsa-log option.])
;;
*) WEB_LOG="$withval"
NCSA_LOG=yes
WATCH_WEB="-DWATCH_WEB"
;;
esac
]
)
PROXY_LOG=
AC_ARG_WITH(proxy-log,
[ --with-proxy-log=FILE location of the proxy NCSA web server access log],
[
if test "$NCSA_LOG"; then
AC_MSG_ERROR([*** You cannot use both --with-ncsa-log and --with-proxy-log.])
fi
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-proxy-log option.])
;;
*) WEB_LOG="$withval"
PROXY_LOG=yes
WATCH_WEB="-DWATCH_WEB -DWATCH_PROXY"
;;
esac
]
)
AC_ARG_WITH(squid-log,
[ --with-squid-log=FILE location of the Squid file log file],
[
if test "$NCSA_LOG"; then
AC_MSG_ERROR([*** You cannot use both --with-ncsa-log and --with-squid-log.])
fi
if test "$PROXY_LOG"; then
AC_MSG_ERROR([*** You cannot use both --with-proxy-log and --with-squid-log.])
fi
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-squid-log option.])
;;
*) WEB_LOG="$withval"
WATCH_WEB="-DWATCH_WEB -DWATCH_SQUID"
;;
esac
]
)
AC_SUBST(WATCH_WEB)
AC_SUBST(WEB_LOG)
AC_ARG_WITH(warn-email,
[ --with-warn-email=ADDR email address to send warnings to [[root@localhost]]],
[
case "$withval" in
"" | y | ye | yes | n | no)
AC_MSG_ERROR([*** You must supply an argument to the --with-warn-email option.])
;;
*) WARN_EMAIL="$withval"
;;
esac
],
: ${WARN_EMAIL=root@localhost}
)
AC_SUBST(WARN_EMAIL)
BUILD_RRD=no
AC_ARG_ENABLE(librrdtool,
AC_HELP_STRING([--enable-librrdtool],
[Build RRD and install librrdtool{.a,.so} into $libdir]),
[
if test "$enableval" = yes; then
BUILD_RRD=yes
MAKE_RRDTOOL=make_rrdtool
TEST_RRDTOOL=test_rrdtool
CLEAN_RRDTOOL=clean_rrdtool
DISTCLEAN_RRDTOOL=distclean_rrdtool
INSTALL_LIB_RRDTOOL=install_lib_rrdtool
fi
]
)
AC_SUBST(INSTALL_LIB_RRDTOOL)
BUILD_AIXALLATOR=yes
AIXALLATOR_SUBDIR=aix
AC_ARG_ENABLE(aixallator,
AC_HELP_STRING([--disable-aixallator],
[Do not enable building and installing aixallator]),
[
if test "$enableval" = no; then
BUILD_AIXALLATOR=no
AIXALLATOR_SUBDIR=
fi
]
)
AC_SUBST(BUILD_AIXALLATOR)
AC_SUBST(AIXALLATOR_SUBDIR)
BUILD_HPALLATOR=yes
HPALLATOR_SUBDIR=hp
AC_ARG_ENABLE(hpallator,
AC_HELP_STRING([--disable-hpallator],
[Do not enable building and installing hpallator]),
[
if test "$enableval" = no; then
BUILD_HPALLATOR=no
HPALLATOR_SUBDIR=
fi
]
)
AC_SUBST(BUILD_HPALLATOR)
AC_SUBST(HPALLATOR_SUBDIR)
BUILD_ORCALLATOR=yes
ORCALLATOR_SUBDIR=orcallator
AC_ARG_ENABLE(orcallator,
AC_HELP_STRING([--disable-orcallator],
[Do not enable building and installing orcallator]),
[
if test "$enableval" = no; then
BUILD_ORCALLATOR=no
ORCALLATOR_SUBDIR=
fi
]
)
AC_SUBST(BUILD_ORCALLATOR)
AC_SUBST(ORCALLATOR_SUBDIR)
BUILD_ORCA_SERVICES=yes
ORCA_SERVICES_SUBDIR=orca_services
AC_ARG_ENABLE(orca-services,
AC_HELP_STRING([--disable-orca-services],
[Do not enable building and installing Orca-Services]),
[
if test "$enableval" = no; then
BUILD_ORCA_SERVICES=no
ORCA_SERVICES_SUBDIR=
fi
]
)
AC_SUBST(BUILD_ORCA_SERVICES)
AC_SUBST(ORCA_SERVICES_SUBDIR)
BUILD_PROCALLATOR=yes
PROCALLATOR_SUBDIR=procallator
AC_ARG_ENABLE(procallator,
AC_HELP_STRING([--disable-procallator],
[Do not enable building and installing procallator]),
[
if test "$enableval" = no; then
BUILD_PROCALLATOR=no
PROCALLATOR_SUBDIR=
fi
]
)
AC_SUBST(BUILD_PROCALLATOR)
AC_SUBST(PROCALLATOR_SUBDIR)
BUILD_WINALLATOR=yes
WINALLATOR_SUBDIR=winallator
AC_ARG_ENABLE(winallator,
AC_HELP_STRING([--disable-winallator],
[Do not enable building and installing winallator]),
[
if test "$enableval" = no; then
BUILD_WINALLATOR=no
WINALLATOR_SUBDIR=
fi
]
)
AC_SUBST(BUILD_WINALLATOR)
AC_SUBST(WINALLATOR_SUBDIR)
# To get a default CFLAGS for this build, check for a C compiler. This
# is also needed to be ready to compile any Perl modules.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_ARG_PROGRAM
AC_PATH_PROG(BZIP2, bzip2)
AC_PATH_PROG(BUNZIP2, bunzip2)
AC_PATH_PROG(CHKCONFIG, chkconfig)
AC_PATH_PROG(COMPRESS, compress)
AC_PATH_PROG(CUT, cut)
AC_PATH_PROG(EXPR, expr)
AC_PATH_PROGS(TAR,gtar gnutar tar)
AC_PATH_PROG(GZIP, gzip)
AC_PATH_PROG(GUNZIP, gunzip)
AC_PATH_PROGS(AWK, mawk gawk nawk awk)
# Include the file that defines BORP_PERL_RUN.
AC_PATH_PROG(PERL, perl, NOT_FOUND)
if test "x$PERL" = xNOT_FOUND; then
AC_MSG_ERROR([*** Perl not found. Please install Perl. See INSTALL how to do this.])
else
BORP_PERL_RUN($PERL, PERL_HEAD=PerlHead1, PERL_HEAD=PerlHead2)
fi
PERL_HEAD="$cwd/config/$PERL_HEAD"
AC_SUBST(PERL_HEAD)
AC_PATH_PROG(POD2HTML, pod2html, :)
AC_PATH_PROG(POD2MAN, pod2man, :)
AC_PATH_PROG(POD2TEXT, pod2text, :)
AC_PATH_PROG(SE, se, , $PATH:/opt/RICHPse/bin)
AC_PATH_PROG(UNAME, uname)
AC_PATH_PROG(UNCOMPRESS, uncompress)
# Determine the correct flags to compress files depending upon the compress
# programs available.
COMPRESSOR=
UNCOMPRESSOR_PIPE=
if test -n "$BZIP2" -a -n "$BUNZIP2"; then
COMPRESSOR="$BZIP2 -9"
UNCOMPRESSOR_PIPE="$BUNZIP2 -c"
elif test -n "$GZIP" -a -n "$GUNZIP"; then
COMPRESSOR="$GZIP -9"
UNCOMPRESSOR_PIPE="$GUNZIP -c"
elif test -n "$COMPRESS" -a -n "$UNCOMPRESS"; then
COMPRESSOR="$COMPRESS"
UNCOMPRESSOR_PIPE="$UNCOMPRESS -c"
fi
AC_SUBST(COMPRESSOR)
AC_SUBST(UNCOMPRESSOR_PIPE)
# This command can be used to add --enable-shared to the configure
# options for RRDtool if it is not already declared.
# expr "$ORCA_CONFIGURE_COMMAND_LINE" : "--enable-shared" >/dev/null 2>&1 || ORCA_CONFIGURE_COMMAND_LINE="$ORCA_CONFIGURE_COMMAND_LINE --enable-shared"
BORP_PERL_MODULE(orca_cv_perl_module_data_dumper,
$PERL,
Data::Dumper,
$DATA_DUMPER_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_data_dumper=no
if test "$orca_cv_perl_module_data_dumper" = no; then
MAKE_DATA_DUMPER=make_data_dumper
TEST_DATA_DUMPER=test_data_dumper
INSTALL_PERL_DATA_DUMPER=install_perl_data_dumper
CLEAN_DATA_DUMPER=clean_data_dumper
DISTCLEAN_DATA_DUMPER=distclean_data_dumper
fi
AC_SUBST(MAKE_DATA_DUMPER)
AC_SUBST(TEST_DATA_DUMPER)
AC_SUBST(INSTALL_PERL_DATA_DUMPER)
AC_SUBST(CLEAN_DATA_DUMPER)
AC_SUBST(DISTCLEAN_DATA_DUMPER)
BORP_PERL_MODULE(orca_cv_perl_module_date_parse,
$PERL,
Date::Parse,
$DATE_PARSE_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_date_parse=no
if test "$orca_cv_perl_module_date_parse" = no; then
MAKE_DATE_PARSE=make_date_parse
TEST_DATE_PARSE=test_date_parse
INSTALL_PERL_DATE_PARSE=install_perl_date_parse
CLEAN_DATE_PARSE=clean_date_parse
DISTCLEAN_DATE_PARSE=distclean_date_parse
fi
AC_SUBST(MAKE_DATE_PARSE)
AC_SUBST(TEST_DATE_PARSE)
AC_SUBST(INSTALL_PERL_DATE_PARSE)
AC_SUBST(CLEAN_DATE_PARSE)
AC_SUBST(DISTCLEAN_DATE_PARSE)
BORP_PERL_MODULE(orca_cv_perl_module_devel_dprof,
$PERL,
Devel::DProf,
$DEVEL_DPROF_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_devel_dprof=no
if test "$orca_cv_perl_module_devel_dprof" = no; then
MAKE_DEVEL_DPROF=make_devel_dprof
TEST_DEVEL_DPROF=test_devel_dprof
INSTALL_PERL_DEVEL_DPROF=install_perl_devel_dprof
CLEAN_DEVEL_DPROF=clean_devel_dprof
DISTCLEAN_DEVEL_DPROF=distclean_devel_dprof
fi
AC_SUBST(MAKE_DEVEL_DPROF)
AC_SUBST(TEST_DEVEL_DPROF)
AC_SUBST(INSTALL_PERL_DEVEL_DPROF)
AC_SUBST(CLEAN_DEVEL_DPROF)
AC_SUBST(DISTCLEAN_DEVEL_DPROF)
BORP_PERL_MODULE(orca_cv_perl_module_digest_md5,
$PERL,
Digest::MD5,
$DIGEST_MD5_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_digest_md5=no
if test "$orca_cv_perl_module_digest_md5" = no; then
MAKE_DIGEST_MD5=make_digest_md5
TEST_DIGEST_MD5=test_digest_md5
INSTALL_PERL_DIGEST_MD5=install_perl_digest_md5
CLEAN_DIGEST_MD5=clean_digest_md5
DISTCLEAN_DIGEST_MD5=distclean_digest_md5
fi
AC_SUBST(MAKE_DIGEST_MD5)
AC_SUBST(TEST_DIGEST_MD5)
AC_SUBST(INSTALL_PERL_DIGEST_MD5)
AC_SUBST(CLEAN_DIGEST_MD5)
AC_SUBST(DISTCLEAN_DIGEST_MD5)
BORP_PERL_MODULE(orca_cv_perl_module_math_intervalsearch,
$PERL,
Math::IntervalSearch,
$MATH_INTERVALSEARCH_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_math_intervalsearch=no
if test "$orca_cv_perl_module_math_intervalsearch" = no; then
MAKE_MATH_INTERVALSEARCH=make_math_intervalsearch
TEST_MATH_INTERVALSEARCH=test_math_intervalsearch
INSTALL_PERL_MATH_INTERVALSEARCH=install_perl_math_intervalsearch
CLEAN_MATH_INTERVALSEARCH=clean_math_intervalsearch
DISTCLEAN_MATH_INTERVALSEARCH=distclean_math_intervalsearch
fi
AC_SUBST(MAKE_MATH_INTERVALSEARCH)
AC_SUBST(TEST_MATH_INTERVALSEARCH)
AC_SUBST(INSTALL_PERL_MATH_INTERVALSEARCH)
AC_SUBST(CLEAN_MATH_INTERVALSEARCH)
AC_SUBST(DISTCLEAN_MATH_INTERVALSEARCH)
BORP_PERL_MODULE(orca_cv_perl_module_rrds,
$PERL,
RRDs,
$RRDTOOL_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_rrds=no
if test "$orca_cv_perl_module_rrds" = no; then
BUILD_RRD=yes
fi
if test "$BUILD_RRD" = yes; then
MAKE_RRDTOOL=make_rrdtool
TEST_RRDTOOL=test_rrdtool
INSTALL_PERL_RRDTOOL=install_perl_rrdtool
CLEAN_RRDTOOL=clean_rrdtool
DISTCLEAN_RRDTOOL=distclean_rrdtool
fi
AC_SUBST(MAKE_RRDTOOL)
AC_SUBST(TEST_RRDTOOL)
AC_SUBST(INSTALL_PERL_RRDTOOL)
AC_SUBST(CLEAN_RRDTOOL)
AC_SUBST(DISTCLEAN_RRDTOOL)
BORP_PERL_MODULE(orca_cv_perl_module_storable,
$PERL,
Storable,
$STORABLE_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_storable=no
if test "$orca_cv_perl_module_storable" = no; then
MAKE_STORABLE=make_storable
TEST_STORABLE=test_storable
INSTALL_PERL_STORABLE=install_perl_storable
CLEAN_STORABLE=clean_storable
DISTCLEAN_STORABLE=distclean_storable
fi
AC_SUBST(MAKE_STORABLE)
AC_SUBST(TEST_STORABLE)
AC_SUBST(INSTALL_PERL_STORABLE)
AC_SUBST(CLEAN_STORABLE)
AC_SUBST(DISTCLEAN_STORABLE)
BORP_PERL_MODULE(orca_cv_perl_module_time_hires,
$PERL,
Time::HiRes,
$TIME_HIRES_VER)
test "$ALWAYS_BUILD_PERL_MODULES" && orca_cv_perl_module_time_hires=no
if test "$orca_cv_perl_module_time_hires" = no; then
MAKE_TIME_HIRES=make_time_hires
TEST_TIME_HIRES=test_time_hires
INSTALL_PERL_TIME_HIRES=install_perl_time_hires
CLEAN_TIME_HIRES=clean_time_hires
DISTCLEAN_TIME_HIRES=distclean_time_hires
PERL_USE_TIME_HIRES=
else
PERL_USE_TIME_HIRES="use Time::HiRes qw(time);"
fi
AC_SUBST(MAKE_TIME_HIRES)
AC_SUBST(TEST_TIME_HIRES)
AC_SUBST(INSTALL_PERL_TIME_HIRES)
AC_SUBST(CLEAN_TIME_HIRES)
AC_SUBST(DISTCLEAN_TIME_HIRES)
AC_SUBST(PERL_USE_TIME_HIRES)
# Define the INSTALL and MKDIR variables to point to the scripts in
# the config directory.
INSTALL="$config_dir/install-sh -c"
MKDIR="$config_dir/mkinstalldirs"
AC_SUBST(INSTALL)
AC_SUBST(MKDIR)
# Look for the /proc equivalent directory for use by procallator.
AC_MSG_CHECKING([for /proc style directory])
PROC_DIR=
for d in /proc; do
if test -d $d; then
PROC_DIR="$d"
break
fi
done
if test "$PROC_DIR"; then
AC_MSG_RESULT($PROC_DIR)
else
AC_MSG_RESULT(no /proc directory found)
fi
AC_SUBST(PROC_DIR)
# Determine the appropriate init.d directory on the system.
AC_MSG_CHECKING([where the boot init.d directory is])
for dir in /etc/rc.d/init.d /etc/init.d; do
if test -d "$dir"; then
INIT_D_DIR="$dir"
break
fi
done
if test "$INIT_D_DIR"; then
AC_MSG_RESULT([$INIT_D_DIR])
else
AC_MSG_RESULT([none found])
fi
AC_SUBST(INIT_D_DIR)
# Determine the directory that contains the rcX.d directories.
AC_MSG_CHECKING([which directory contains the boot rcX.d directories])
for dir in /etc/rc.d/rc3.d /etc/rc3.d; do
if test -d "$dir"; then
RCX_D_CONTAINING_DIR="`dirname $dir`"
break
fi
done
if test "$RCX_D_CONTAINING_DIR"; then
AC_MSG_RESULT([$RCX_D_CONTAINING_DIR])
else
AC_MSG_RESULT([none found])
fi
AC_SUBST(RCX_D_CONTAINING_DIR)
# Build the RRDtool library if it is needed.
if test "$BUILD_RRD" = yes; then
command="(cd packages/$RRDTOOL_DIR; ./configure $RRD_CONFIGURE_COMMAND_LINE)"
echo ""
echo "Running configure in packages/$RRDTOOL_DIR to create RRDtool and RRDs.pm."
echo ""
echo $command
echo ""
eval $command
echo ""
fi
#--------------------------------------------------------------------
# Generate the Makefiles and shell scripts with the
# variable substitutions.
#--------------------------------------------------------------------
if test "$BUILD_AIXALLATOR" = yes; then
OUTPUT_AIXALLATOR="data_gatherers/aix/Makefile
data_gatherers/aix/orca-aix-stat.pl"
fi
if test "$BUILD_HPALLATOR" = yes; then
OUTPUT_HPALLATOR="data_gatherers/hp/Makefile
data_gatherers/hp/orca-hp-stat.pl"
fi
if test "$BUILD_ORCALLATOR" = yes; then
OUTPUT_ORCALLATOR="data_gatherers/orcallator/Makefile
data_gatherers/orcallator/orcallator.cfg
data_gatherers/orcallator/orcallator_running.pl
data_gatherers/orcallator/restart_orcallator.sh
data_gatherers/orcallator/start_orcallator.sh
data_gatherers/orcallator/stop_orcallator.sh
data_gatherers/orcallator/S99orcallator.sh"
fi
if test "$BUILD_ORCA_SERVICES" = yes; then
OUTPUT_ORCA_SERVICES="data_gatherers/orca_services/Makefile
data_gatherers/orca_services/orca_services.cfg
data_gatherers/orca_services/orca_services.pl
data_gatherers/orca_services/orca_services_running.pl
data_gatherers/orca_services/restart_orca_services.sh
data_gatherers/orca_services/start_orca_services.sh
data_gatherers/orca_services/stop_orca_services.sh
data_gatherers/orca_services/S99orca_services.sh"
fi
if test "$BUILD_PROCALLATOR" = yes; then
OUTPUT_PROCALLATOR="data_gatherers/procallator/Makefile
data_gatherers/procallator/procallator.cfg
data_gatherers/procallator/procallator.pl
data_gatherers/procallator/update_orca_server.sh
data_gatherers/procallator/S99procallator.sh"
fi
if test "$BUILD_WINALLATOR" = yes; then
OUTPUT_WINALLATOR="data_gatherers/winallator/Makefile
data_gatherers/winallator/winallator.cfg"
fi
AC_OUTPUT(Makefile
config/PerlHead1
config/PerlHead2
contrib/Makefile
contrib/rotate_orca_graphs/Makefile
contrib/rotate_orca_graphs/rotate_orca_graphs.sh
data_gatherers/Makefile
$OUTPUT_HPALLATOR
$OUTPUT_AIXALLATOR
$OUTPUT_ORCALLATOR
$OUTPUT_ORCA_SERVICES
$OUTPUT_PROCALLATOR
$OUTPUT_WINALLATOR
docs/Makefile
lib/Makefile
packages/Makefile
orca/Makefile
orca/orca.pl
)
echo ""
echo "----------------------------------------------------------------"
echo "You have now successfully configured Orca."
echo ""
echo "If you find Orca useful, please make a contribution to Orca's"
echo "author. Go to"
echo ""
echo " http://www.orcaware.com/orca/#happy_blair"
echo ""
echo "and choose your preferred method of sending happiness :)"
echo "Choices include making a donation or picking an item from"
echo "my family's Amazon.com wish list."
echo ""
echo "Type 'make' to compile the software and use 'make install' to "
echo "install everything into $prefix."
echo ""
echo "Thank you and enjoy Orca,"
echo "Blair Zajac <[email protected]>"
echo "----------------------------------------------------------------"
if test -z "$WEB_LOG"; then
AC_MSG_WARN([*** Unless you use a --with-*-log option orcallator will not gather WWW log data.])
fi