3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.57.
6
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7
# Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25
# Support unset when possible.
26
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33
# Work around bugs in pre-3.0 UWIN ksh.
34
$as_unset ENV MAIL MAILPATH
41
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46
eval $as_var=C; export $as_var
52
# Required to use basename.
53
if expr a : '\(a\)' >/dev/null 2>&1; then
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66
# Name of the executable.
67
as_me=`$as_basename "$0" ||
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
X"$0" : 'X\(//\)$' \| \
70
X"$0" : 'X\(/\)$' \| \
71
. : '\(.\)' 2>/dev/null ||
73
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
/^X\/\(\/\/\)$/{ s//\1/; q; }
75
/^X\/\(\/\).*/{ s//\1/; q; }
79
# PATH needs CR, and LINENO needs CR and PATH.
80
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
echo "#! /bin/sh" >conf$$.sh
90
echo "exit 0" >>conf$$.sh
92
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
test "x$as_lineno_1" != "x$as_lineno_2" &&
105
test "x$as_lineno_3" = "x$as_lineno_2" || {
106
# Find who we are. Look in the path if we contain no path at all
109
*[\\/]* ) as_myself=$0 ;;
110
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
test -z "$as_dir" && as_dir=.
115
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120
# We did not find ourselves, most probably we were run as `sh COMMAND'
121
# in which case we are not to be found in the path.
122
if test "x$as_myself" = x; then
125
if test ! -f "$as_myself"; then
126
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
{ (exit 1); exit 1; }; }
129
case $CONFIG_SHELL in
131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
test -z "$as_dir" && as_dir=.
136
for as_base in sh bash ksh sh5; do
139
if ("$as_dir/$as_base" -c '
142
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
test "x$as_lineno_1" != "x$as_lineno_2" &&
144
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
CONFIG_SHELL=$as_dir/$as_base
149
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
# uniformly replaced by the line number. The first 'sed' inserts a
159
# line-number line before each line; the second 'sed' does the real
160
# work. The second script uses 'N' to pair each line-number line
161
# with the numbered line, and appends trailing '-' during
162
# substitution so that $LINENO is not a special case at line end.
163
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165
sed '=' <$as_myself |
170
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
s,^['$as_cr_digits']*\n,,
175
chmod +x $as_me.lineno ||
176
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
{ (exit 1); exit 1; }; }
179
# Don't try to exec as it changes $[0], causing all sort of problems
180
# (the dirname of $[0] is not the place where we might find the
181
# original and so on. Autoconf is especially sensible to this).
183
# Exit status is that of the last command.
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
*c*,-n*) ECHO_N= ECHO_C='
191
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195
if expr a : '\(a\)' >/dev/null 2>&1; then
201
rm -f conf$$ conf$$.exe conf$$.file
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
# We could just check for DJGPP; but this test a) works b) is more generic
205
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
if test -f conf$$.exe; then
207
# Don't use ln at all; we don't have any links
212
elif ln conf$$.file conf$$ 2>/dev/null; then
217
rm -f conf$$ conf$$.exe conf$$.file
219
if mkdir -p . 2>/dev/null; then
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="Helper.pm"
275
ac_default_prefix=/usr/local/nagios
276
# Factoring default headers for most tests.
277
ac_includes_default="\
280
# include <sys/types.h>
283
# include <sys/stat.h>
294
# if !STDC_HEADERS && HAVE_MEMORY_H
300
# include <strings.h>
303
# include <inttypes.h>
313
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS VER REL PACKAGE_RELEASE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE INSTALL CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LIBOBJS CPP EGREP NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS POW_LIB RANLIB ac_ct_RANLIB PLUGIN_TEST SCRIPT_TEST WARRANTY SUPPORT nagios_usr nagios_grp INSTALL_OPTS trusted_path PYTHON PERL SH HOSTNAME BASENAME SOCKETLIBS PGLIBS PGINCLUDE RADIUSLIBS LDAPLIBS LDAPINCLUDE MYSQLINCLUDE MYSQLLIBS check_mysql_LDFLAGS OPENSSL KRBINCLUDE SSLINCLUDE check_tcp_ssl SSLLIBS PATH_TO_PS PATH_TO_DF PATH_TO_PING PATH_TO_NSLOOKUP PATH_TO_HOST PATH_TO_UPTIME PATH_TO_RPCINFO PATH_TO_NTPDATE PATH_TO_NTPDC PATH_TO_NTPQ PATH_TO_LMSTAT PATH_TO_SMBCLIENT PATH_TO_WHO PATH_TO_SNMPGET PATH_TO_SNMPGETNEXT PATH_TO_QUAKESTAT PATH_TO_QSTAT PATH_TO_FPING PATH_TO_SSH PATH_TO_MAILQ PATH_TO_SWAP PATH_TO_DIG NEED_VA_LIST EXTRAS DEPLIBS LTLIBOBJS'
316
# Initialize some variables set by options.
318
ac_init_version=false
319
# The variables have the same names as the options, with
320
# dashes changed to underlines.
328
program_transform_name=s,x,x,
336
# Installation directory options.
337
# These are left unexpanded so users can "make install exec_prefix=/foo"
338
# and all the variables that are supposed to be based on exec_prefix
339
# by default will actually change.
340
# Use braces instead of parens because sh, perl, etc. also accept them.
341
bindir='${exec_prefix}/bin'
342
sbindir='${exec_prefix}/sbin'
343
libexecdir='${exec_prefix}/libexec'
344
datadir='${prefix}/share'
345
sysconfdir='${prefix}/etc'
346
sharedstatedir='${prefix}/com'
347
localstatedir='${prefix}/var'
348
libdir='${exec_prefix}/lib'
349
includedir='${prefix}/include'
350
oldincludedir='/usr/include'
351
infodir='${prefix}/info'
352
mandir='${prefix}/man'
357
# If the previous option needs an argument, assign it.
358
if test -n "$ac_prev"; then
359
eval "$ac_prev=\$ac_option"
364
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
# Accept the important Cygnus configure options, so we can diagnose typos.
370
-bindir | --bindir | --bindi | --bind | --bin | --bi)
372
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375
-build | --build | --buil | --bui | --bu)
376
ac_prev=build_alias ;;
377
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
378
build_alias=$ac_optarg ;;
380
-cache-file | --cache-file | --cache-fil | --cache-fi \
381
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382
ac_prev=cache_file ;;
383
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385
cache_file=$ac_optarg ;;
388
cache_file=config.cache ;;
390
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394
datadir=$ac_optarg ;;
396
-disable-* | --disable-*)
397
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398
# Reject names that are not valid shell variable names.
399
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
401
{ (exit 1); exit 1; }; }
402
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403
eval "enable_$ac_feature=no" ;;
405
-enable-* | --enable-*)
406
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407
# Reject names that are not valid shell variable names.
408
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
410
{ (exit 1); exit 1; }; }
411
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416
eval "enable_$ac_feature='$ac_optarg'" ;;
418
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420
| --exec | --exe | --ex)
421
ac_prev=exec_prefix ;;
422
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424
| --exec=* | --exe=* | --ex=*)
425
exec_prefix=$ac_optarg ;;
427
-gas | --gas | --ga | --g)
428
# Obsolete; use --with-gas.
431
-help | --help | --hel | --he | -h)
433
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434
ac_init_help=recursive ;;
435
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436
ac_init_help=short ;;
438
-host | --host | --hos | --ho)
439
ac_prev=host_alias ;;
440
-host=* | --host=* | --hos=* | --ho=*)
441
host_alias=$ac_optarg ;;
443
-includedir | --includedir | --includedi | --included | --include \
444
| --includ | --inclu | --incl | --inc)
445
ac_prev=includedir ;;
446
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447
| --includ=* | --inclu=* | --incl=* | --inc=*)
448
includedir=$ac_optarg ;;
450
-infodir | --infodir | --infodi | --infod | --info | --inf)
452
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453
infodir=$ac_optarg ;;
455
-libdir | --libdir | --libdi | --libd)
457
-libdir=* | --libdir=* | --libdi=* | --libd=*)
460
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461
| --libexe | --libex | --libe)
462
ac_prev=libexecdir ;;
463
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464
| --libexe=* | --libex=* | --libe=*)
465
libexecdir=$ac_optarg ;;
467
-localstatedir | --localstatedir | --localstatedi | --localstated \
468
| --localstate | --localstat | --localsta | --localst \
469
| --locals | --local | --loca | --loc | --lo)
470
ac_prev=localstatedir ;;
471
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
473
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474
localstatedir=$ac_optarg ;;
476
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
# Obsolete; use --without-fp.
485
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
486
| --no-cr | --no-c | -n)
489
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
490
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495
| --oldin | --oldi | --old | --ol | --o)
496
ac_prev=oldincludedir ;;
497
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500
oldincludedir=$ac_optarg ;;
502
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
507
-program-prefix | --program-prefix | --program-prefi | --program-pref \
508
| --program-pre | --program-pr | --program-p)
509
ac_prev=program_prefix ;;
510
-program-prefix=* | --program-prefix=* | --program-prefi=* \
511
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512
program_prefix=$ac_optarg ;;
514
-program-suffix | --program-suffix | --program-suffi | --program-suff \
515
| --program-suf | --program-su | --program-s)
516
ac_prev=program_suffix ;;
517
-program-suffix=* | --program-suffix=* | --program-suffi=* \
518
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519
program_suffix=$ac_optarg ;;
521
-program-transform-name | --program-transform-name \
522
| --program-transform-nam | --program-transform-na \
523
| --program-transform-n | --program-transform- \
524
| --program-transform | --program-transfor \
525
| --program-transfo | --program-transf \
526
| --program-trans | --program-tran \
527
| --progr-tra | --program-tr | --program-t)
528
ac_prev=program_transform_name ;;
529
-program-transform-name=* | --program-transform-name=* \
530
| --program-transform-nam=* | --program-transform-na=* \
531
| --program-transform-n=* | --program-transform-=* \
532
| --program-transform=* | --program-transfor=* \
533
| --program-transfo=* | --program-transf=* \
534
| --program-trans=* | --program-tran=* \
535
| --progr-tra=* | --program-tr=* | --program-t=*)
536
program_transform_name=$ac_optarg ;;
538
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
539
| -silent | --silent | --silen | --sile | --sil)
542
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546
sbindir=$ac_optarg ;;
548
-sharedstatedir | --sharedstatedir | --sharedstatedi \
549
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550
| --sharedst | --shareds | --shared | --share | --shar \
552
ac_prev=sharedstatedir ;;
553
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557
sharedstatedir=$ac_optarg ;;
559
-site | --site | --sit)
561
-site=* | --site=* | --sit=*)
564
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
569
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570
| --syscon | --sysco | --sysc | --sys | --sy)
571
ac_prev=sysconfdir ;;
572
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574
sysconfdir=$ac_optarg ;;
576
-target | --target | --targe | --targ | --tar | --ta | --t)
577
ac_prev=target_alias ;;
578
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579
target_alias=$ac_optarg ;;
581
-v | -verbose | --verbose | --verbos | --verbo | --verb)
584
-version | --version | --versio | --versi | --vers | -V)
588
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589
# Reject names that are not valid shell variable names.
590
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591
{ echo "$as_me: error: invalid package name: $ac_package" >&2
592
{ (exit 1); exit 1; }; }
593
ac_package=`echo $ac_package| sed 's/-/_/g'`
595
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598
eval "with_$ac_package='$ac_optarg'" ;;
600
-without-* | --without-*)
601
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602
# Reject names that are not valid shell variable names.
603
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604
{ echo "$as_me: error: invalid package name: $ac_package" >&2
605
{ (exit 1); exit 1; }; }
606
ac_package=`echo $ac_package | sed 's/-/_/g'`
607
eval "with_$ac_package=no" ;;
610
# Obsolete; use --with-x.
613
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614
| --x-incl | --x-inc | --x-in | --x-i)
615
ac_prev=x_includes ;;
616
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618
x_includes=$ac_optarg ;;
620
-x-libraries | --x-libraries | --x-librarie | --x-librari \
621
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622
ac_prev=x_libraries ;;
623
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625
x_libraries=$ac_optarg ;;
627
-*) { echo "$as_me: error: unrecognized option: $ac_option
628
Try \`$0 --help' for more information." >&2
629
{ (exit 1); exit 1; }; }
633
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634
# Reject names that are not valid shell variable names.
635
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637
{ (exit 1); exit 1; }; }
638
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639
eval "$ac_envvar='$ac_optarg'"
643
# FIXME: should be removed in autoconf 3.0.
644
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653
if test -n "$ac_prev"; then
654
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655
{ echo "$as_me: error: missing argument to $ac_option" >&2
656
{ (exit 1); exit 1; }; }
659
# Be sure to have absolute paths.
660
for ac_var in exec_prefix prefix
662
eval ac_val=$`echo $ac_var`
664
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666
{ (exit 1); exit 1; }; };;
670
# Be sure to have absolute paths.
671
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672
localstatedir libdir includedir oldincludedir infodir mandir
674
eval ac_val=$`echo $ac_var`
676
[\\/$]* | ?:[\\/]* ) ;;
677
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678
{ (exit 1); exit 1; }; };;
682
# There might be people who depend on the old broken behavior: `$host'
683
# used to hold the argument of --host etc.
684
# FIXME: To remove some day.
689
# FIXME: To remove some day.
690
if test "x$host_alias" != x; then
691
if test "x$build_alias" = x; then
692
cross_compiling=maybe
693
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694
If a cross compiler is detected then cross compile mode will be used." >&2
695
elif test "x$build_alias" != "x$host_alias"; then
701
test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
test "$silent" = yes && exec 6>/dev/null
706
# Find the source files, if location was not specified.
707
if test -z "$srcdir"; then
708
ac_srcdir_defaulted=yes
709
# Try the directory containing this script, then its parent.
710
ac_confdir=`(dirname "$0") 2>/dev/null ||
711
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712
X"$0" : 'X\(//\)[^/]' \| \
713
X"$0" : 'X\(//\)$' \| \
714
X"$0" : 'X\(/\)' \| \
715
. : '\(.\)' 2>/dev/null ||
717
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
719
/^X\(\/\/\)$/{ s//\1/; q; }
720
/^X\(\/\).*/{ s//\1/; q; }
723
if test ! -r $srcdir/$ac_unique_file; then
727
ac_srcdir_defaulted=no
729
if test ! -r $srcdir/$ac_unique_file; then
730
if test "$ac_srcdir_defaulted" = yes; then
731
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732
{ (exit 1); exit 1; }; }
734
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735
{ (exit 1); exit 1; }; }
738
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740
{ (exit 1); exit 1; }; }
741
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742
ac_env_build_alias_set=${build_alias+set}
743
ac_env_build_alias_value=$build_alias
744
ac_cv_env_build_alias_set=${build_alias+set}
745
ac_cv_env_build_alias_value=$build_alias
746
ac_env_host_alias_set=${host_alias+set}
747
ac_env_host_alias_value=$host_alias
748
ac_cv_env_host_alias_set=${host_alias+set}
749
ac_cv_env_host_alias_value=$host_alias
750
ac_env_target_alias_set=${target_alias+set}
751
ac_env_target_alias_value=$target_alias
752
ac_cv_env_target_alias_set=${target_alias+set}
753
ac_cv_env_target_alias_value=$target_alias
754
ac_env_CC_set=${CC+set}
756
ac_cv_env_CC_set=${CC+set}
757
ac_cv_env_CC_value=$CC
758
ac_env_CFLAGS_set=${CFLAGS+set}
759
ac_env_CFLAGS_value=$CFLAGS
760
ac_cv_env_CFLAGS_set=${CFLAGS+set}
761
ac_cv_env_CFLAGS_value=$CFLAGS
762
ac_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_env_LDFLAGS_value=$LDFLAGS
764
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765
ac_cv_env_LDFLAGS_value=$LDFLAGS
766
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_env_CPPFLAGS_value=$CPPFLAGS
768
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
ac_env_CPP_set=${CPP+set}
771
ac_env_CPP_value=$CPP
772
ac_cv_env_CPP_set=${CPP+set}
773
ac_cv_env_CPP_value=$CPP
776
# Report the --help message.
778
if test "$ac_init_help" = "long"; then
779
# Omit some internal or obsolete options to make the list less imposing.
780
# This message is too long to be a string in the A/UX 3.1 sh.
782
\`configure' configures this package to adapt to many kinds of systems.
784
Usage: $0 [OPTION]... [VAR=VALUE]...
786
To assign environment variables (e.g., CC, CFLAGS...), specify them as
787
VAR=VALUE. See below for descriptions of some of the useful variables.
789
Defaults for the options are specified in brackets.
792
-h, --help display this help and exit
793
--help=short display options specific to this package
794
--help=recursive display the short help of all the included packages
795
-V, --version display version information and exit
796
-q, --quiet, --silent do not print \`checking...' messages
797
--cache-file=FILE cache test results in FILE [disabled]
798
-C, --config-cache alias for \`--cache-file=config.cache'
799
-n, --no-create do not create output files
800
--srcdir=DIR find the sources in DIR [configure dir or \`..']
805
Installation directories:
806
--prefix=PREFIX install architecture-independent files in PREFIX
808
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811
By default, \`make install' will install all the files in
812
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814
for instance \`--prefix=\$HOME'.
816
For better control, use the options below.
818
Fine tuning of the installation directories:
819
--bindir=DIR user executables [EPREFIX/bin]
820
--sbindir=DIR system admin executables [EPREFIX/sbin]
821
--libexecdir=DIR program executables [EPREFIX/libexec]
822
--datadir=DIR read-only architecture-independent data [PREFIX/share]
823
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
826
--libdir=DIR object code libraries [EPREFIX/lib]
827
--includedir=DIR C header files [PREFIX/include]
828
--oldincludedir=DIR C header files for non-gcc [/usr/include]
829
--infodir=DIR info documentation [PREFIX/info]
830
--mandir=DIR man documentation [PREFIX/man]
836
--program-prefix=PREFIX prepend PREFIX to installed program names
837
--program-suffix=SUFFIX append SUFFIX to installed program names
838
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
if test -n "$ac_init_help"; then
847
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
848
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
849
--disable-dependency-tracking Speeds up one-time builds
850
--enable-dependency-tracking Do not reject slow dependency extractors
853
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
854
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
855
--with-cgiurl=<dir> sets URL for cgi programs
856
--with-nagios-user=<user> sets user name to run nagios
857
--with-nagios-group=<group> sets group name to run nagios
858
--with-trusted-path=/bin:/sbin:/usr/bin:/usr/sbin sets trusted path for executables called by scripts
859
--with-pgsql=<dir> sets path to pgsql installation
860
--with-mysql=<dir> sets path to mysql installation (assumes lib/mysql and include subdirs)
861
--with-openssl=<dir> sets path to openssl installation
862
--with-df-command=<syntax> sets syntax for df
863
--with-ping-command=<syntax> sets syntax for ping
865
Some influential environment variables:
866
CC C compiler command
867
CFLAGS C compiler flags
868
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869
nonstandard directory <lib dir>
870
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871
headers in a nonstandard directory <include dir>
874
Use these variables to override the choices made by `configure' or to help
875
it to find libraries and programs with nonstandard names/locations.
880
if test "$ac_init_help" = "recursive"; then
881
# If there are subdirs, report their specific --help.
883
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884
test -d $ac_dir || continue
887
if test "$ac_dir" != .; then
888
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889
# A "../" for each directory in $ac_dir_suffix.
890
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892
ac_dir_suffix= ac_top_builddir=
896
.) # No --srcdir option. We are building in place.
898
if test -z "$ac_top_builddir"; then
901
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903
[\\/]* | ?:[\\/]* ) # Absolute path.
904
ac_srcdir=$srcdir$ac_dir_suffix;
905
ac_top_srcdir=$srcdir ;;
907
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908
ac_top_srcdir=$ac_top_builddir$srcdir ;;
910
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918
# Check for guested configure; otherwise get Cygnus style configure.
919
if test -f $ac_srcdir/configure.gnu; then
921
$SHELL $ac_srcdir/configure.gnu --help=recursive
922
elif test -f $ac_srcdir/configure; then
924
$SHELL $ac_srcdir/configure --help=recursive
925
elif test -f $ac_srcdir/configure.ac ||
926
test -f $ac_srcdir/configure.in; then
930
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936
test -n "$ac_init_help" && exit 0
937
if $ac_init_version; then
940
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941
Free Software Foundation, Inc.
942
This configure script is free software; the Free Software Foundation
943
gives unlimited permission to copy, distribute and modify it.
949
This file contains any messages produced by compilers while
950
running configure, to aid debugging if configure makes a mistake.
952
It was created by $as_me, which was
953
generated by GNU Autoconf 2.57. Invocation command line was
964
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
965
uname -m = `(uname -m) 2>/dev/null || echo unknown`
966
uname -r = `(uname -r) 2>/dev/null || echo unknown`
967
uname -s = `(uname -s) 2>/dev/null || echo unknown`
968
uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
971
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
974
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
975
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
976
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
977
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
978
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
979
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987
test -z "$as_dir" && as_dir=.
1003
# Keep a trace of the command line.
1004
# Strip out --no-create and --no-recursion so they do not pile up.
1005
# Strip out --silent because we don't want to record it for future runs.
1006
# Also quote any args containing shell meta-characters.
1007
# Make two passes to allow for proper duplicate-argument suppression.
1012
ac_must_keep_next=false
1018
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1019
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020
| -silent | --silent | --silen | --sile | --sil)
1022
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1029
if test $ac_must_keep_next = true; then
1030
ac_must_keep_next=false # Got value, back to normal.
1033
*=* | --config-cache | -C | -disable-* | --disable-* \
1034
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1035
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1036
| -with-* | --with-* | -without-* | --without-* | --x)
1037
case "$ac_configure_args0 " in
1038
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041
-* ) ac_must_keep_next=true ;;
1044
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045
# Get rid of the leading space.
1051
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1052
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
# When interrupted or exit'd, cleanup temporary files, and complete
1055
# config.log. We remove comments because anyway the quotes in there
1056
# would cause problems or look ugly.
1057
# WARNING: Be sure not to use single quotes in there, as some shells,
1058
# such as our DU 5.0 friend, will then `close' the trap.
1059
trap 'exit_status=$?
1060
# Save into config.log some information that might help in debugging.
1065
## ---------------- ##
1066
## Cache variables. ##
1067
## ---------------- ##
1070
# The following way of writing the cache mishandles newlines in values,
1073
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1077
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1088
## ----------------- ##
1089
## Output variables. ##
1090
## ----------------- ##
1093
for ac_var in $ac_subst_vars
1095
eval ac_val=$`echo $ac_var`
1096
echo "$ac_var='"'"'$ac_val'"'"'"
1100
if test -n "$ac_subst_files"; then
1107
for ac_var in $ac_subst_files
1109
eval ac_val=$`echo $ac_var`
1110
echo "$ac_var='"'"'$ac_val'"'"'"
1115
if test -s confdefs.h; then
1122
sed "/^$/d" confdefs.h | sort
1125
test "$ac_signal" != 0 &&
1126
echo "$as_me: caught signal $ac_signal"
1127
echo "$as_me: exit $exit_status"
1129
rm -f core core.* *.core &&
1130
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133
for ac_signal in 1 2 13 15; do
1134
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1139
rm -rf conftest* confdefs.h
1140
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143
# Predefined preprocessor variables.
1145
cat >>confdefs.h <<_ACEOF
1146
#define PACKAGE_NAME "$PACKAGE_NAME"
1150
cat >>confdefs.h <<_ACEOF
1151
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155
cat >>confdefs.h <<_ACEOF
1156
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1160
cat >>confdefs.h <<_ACEOF
1161
#define PACKAGE_STRING "$PACKAGE_STRING"
1165
cat >>confdefs.h <<_ACEOF
1166
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170
# Let the site file select an alternate cache file if it wants to.
1171
# Prefer explicitly selected file to automatically selected ones.
1172
if test -z "$CONFIG_SITE"; then
1173
if test "x$prefix" != xNONE; then
1174
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179
for ac_site_file in $CONFIG_SITE; do
1180
if test -r "$ac_site_file"; then
1181
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1182
echo "$as_me: loading site script $ac_site_file" >&6;}
1183
sed 's/^/| /' "$ac_site_file" >&5
1188
if test -r "$cache_file"; then
1189
# Some versions of bash will fail to source /dev/null (special
1190
# files actually), so we avoid doing that.
1191
if test -f "$cache_file"; then
1192
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1193
echo "$as_me: loading cache $cache_file" >&6;}
1195
[\\/]* | ?:[\\/]* ) . $cache_file;;
1196
*) . ./$cache_file;;
1200
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1201
echo "$as_me: creating cache $cache_file" >&6;}
1205
# Check that the precious variables saved in the cache have kept the same
1207
ac_cache_corrupted=false
1208
for ac_var in `(set) 2>&1 |
1209
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1210
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1211
eval ac_new_set=\$ac_env_${ac_var}_set
1212
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1213
eval ac_new_val="\$ac_env_${ac_var}_value"
1214
case $ac_old_set,$ac_new_set in
1216
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1217
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1218
ac_cache_corrupted=: ;;
1220
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1221
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1222
ac_cache_corrupted=: ;;
1225
if test "x$ac_old_val" != "x$ac_new_val"; then
1226
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1227
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1228
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1229
echo "$as_me: former value: $ac_old_val" >&2;}
1230
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1231
echo "$as_me: current value: $ac_new_val" >&2;}
1232
ac_cache_corrupted=:
1235
# Pass precious variables to config.status.
1236
if test "$ac_new_set" = set; then
1238
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1240
*) ac_arg=$ac_var=$ac_new_val ;;
1242
case " $ac_configure_args " in
1243
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1244
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248
if $ac_cache_corrupted; then
1249
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1250
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1251
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1252
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1253
{ (exit 1); exit 1; }; }
1257
ac_cpp='$CPP $CPPFLAGS'
1258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1284
PACKAGE_VERSION="${VER}"
1286
PACKAGE_RELEASE="${REL}"
1288
am__api_version="1.6"
1290
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1291
if test -f $ac_dir/install-sh; then
1293
ac_install_sh="$ac_aux_dir/install-sh -c"
1295
elif test -f $ac_dir/install.sh; then
1297
ac_install_sh="$ac_aux_dir/install.sh -c"
1299
elif test -f $ac_dir/shtool; then
1301
ac_install_sh="$ac_aux_dir/shtool install -c"
1305
if test -z "$ac_aux_dir"; then
1306
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1307
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1308
{ (exit 1); exit 1; }; }
1310
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1311
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1312
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1314
# Find a good install program. We prefer a C program (faster),
1315
# so one script is as good as another. But avoid the broken or
1316
# incompatible versions:
1317
# SysV /etc/install, /usr/sbin/install
1318
# SunOS /usr/etc/install
1319
# IRIX /sbin/install
1321
# AmigaOS /C/install, which installs bootblocks on floppy discs
1322
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1323
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1324
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1325
# ./install, which can be erroneously created by make from ./install.sh.
1326
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1327
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1328
if test -z "$INSTALL"; then
1329
if test "${ac_cv_path_install+set}" = set; then
1330
echo $ECHO_N "(cached) $ECHO_C" >&6
1332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336
test -z "$as_dir" && as_dir=.
1337
# Account for people who put trailing slashes in PATH elements.
1339
./ | .// | /cC/* | \
1340
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1343
# OSF1 and SCO ODT 3.0 have their own names for install.
1344
# Don't use installbsd from OSF since it installs stuff as root
1346
for ac_prog in ginstall scoinst install; do
1347
for ac_exec_ext in '' $ac_executable_extensions; do
1348
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1349
if test $ac_prog = install &&
1350
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1351
# AIX install. It has an incompatible calling convention.
1353
elif test $ac_prog = install &&
1354
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1355
# program-specific install script used by HP pwplus--don't use.
1358
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1370
if test "${ac_cv_path_install+set}" = set; then
1371
INSTALL=$ac_cv_path_install
1373
# As a last resort, use the slow shell script. We don't cache a
1374
# path for INSTALL within a source directory, because that will
1375
# break other packages using the cache if that directory is
1376
# removed, or if the path is relative.
1377
INSTALL=$ac_install_sh
1380
echo "$as_me:$LINENO: result: $INSTALL" >&5
1381
echo "${ECHO_T}$INSTALL" >&6
1383
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1384
# It thinks the first close brace ends the variable substitution.
1385
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1387
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1389
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1391
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1392
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1395
echo timestamp > conftest.file
1396
# Do `set' in a subshell so we don't clobber the current shell's
1397
# arguments. Must try -L first in case configure is actually a
1398
# symlink; some systems play weird games with the mod time of symlinks
1399
# (eg FreeBSD returns the mod time of the symlink's containing
1402
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1403
if test "$*" = "X"; then
1405
set X `ls -t $srcdir/configure conftest.file`
1408
if test "$*" != "X $srcdir/configure conftest.file" \
1409
&& test "$*" != "X conftest.file $srcdir/configure"; then
1411
# If neither matched, then we have a broken ls. This can happen
1412
# if, for instance, CONFIG_SHELL is bash and it inherits a
1413
# broken ls alias from the environment. This has actually
1414
# happened. Such a system could not be considered "sane".
1415
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1416
alias in your environment" >&5
1417
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1418
alias in your environment" >&2;}
1419
{ (exit 1); exit 1; }; }
1422
test "$2" = conftest.file
1428
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1429
Check your system clock" >&5
1430
echo "$as_me: error: newly created file is older than distributed files!
1431
Check your system clock" >&2;}
1432
{ (exit 1); exit 1; }; }
1434
echo "$as_me:$LINENO: result: yes" >&5
1435
echo "${ECHO_T}yes" >&6
1436
test "$program_prefix" != NONE &&
1437
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1438
# Use a double $ so make ignores it.
1439
test "$program_suffix" != NONE &&
1440
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1441
# Double any \ or $. echo might interpret backslashes.
1442
# By default was `s,x,x', remove it if useless.
1443
cat <<\_ACEOF >conftest.sed
1444
s/[\\$]/&&/g;s/;s,x,x,$//
1446
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1450
# expand $ac_aux_dir to an absolute path
1451
am_aux_dir=`cd $ac_aux_dir && pwd`
1453
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1454
# Use eval to expand $SHELL
1455
if eval "$MISSING --run true"; then
1456
am_missing_run="$MISSING --run "
1459
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1460
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1463
for ac_prog in gawk mawk nawk awk
1465
# Extract the first word of "$ac_prog", so it can be a program name with args.
1466
set dummy $ac_prog; ac_word=$2
1467
echo "$as_me:$LINENO: checking for $ac_word" >&5
1468
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1469
if test "${ac_cv_prog_AWK+set}" = set; then
1470
echo $ECHO_N "(cached) $ECHO_C" >&6
1472
if test -n "$AWK"; then
1473
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1475
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1479
test -z "$as_dir" && as_dir=.
1480
for ac_exec_ext in '' $ac_executable_extensions; do
1481
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1482
ac_cv_prog_AWK="$ac_prog"
1483
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1492
if test -n "$AWK"; then
1493
echo "$as_me:$LINENO: result: $AWK" >&5
1494
echo "${ECHO_T}$AWK" >&6
1496
echo "$as_me:$LINENO: result: no" >&5
1497
echo "${ECHO_T}no" >&6
1500
test -n "$AWK" && break
1503
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1504
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1505
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1506
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1507
echo $ECHO_N "(cached) $ECHO_C" >&6
1509
cat >conftest.make <<\_ACEOF
1511
@echo 'ac_maketemp="$(MAKE)"'
1513
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1514
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1515
if test -n "$ac_maketemp"; then
1516
eval ac_cv_prog_make_${ac_make}_set=yes
1518
eval ac_cv_prog_make_${ac_make}_set=no
1522
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1523
echo "$as_me:$LINENO: result: yes" >&5
1524
echo "${ECHO_T}yes" >&6
1527
echo "$as_me:$LINENO: result: no" >&5
1528
echo "${ECHO_T}no" >&6
1529
SET_MAKE="MAKE=${MAKE-make}"
1532
# test to see if srcdir already configured
1533
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1534
test -f $srcdir/config.status; then
1535
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1536
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1537
{ (exit 1); exit 1; }; }
1540
# Define the identity of the package.
1541
PACKAGE=nagios-plugins
1542
VERSION=${PACKAGE_VERSION}
1545
cat >>confdefs.h <<_ACEOF
1546
#define PACKAGE "$PACKAGE"
1550
cat >>confdefs.h <<_ACEOF
1551
#define VERSION "$VERSION"
1554
# Some tools Automake needs.
1556
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1559
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1562
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1565
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1568
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1571
AMTAR=${AMTAR-"${am_missing_run}tar"}
1573
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1575
# Installed binaries are usually stripped using `strip' when the user
1576
# run `make install-strip'. However `strip' might not be the right
1577
# tool to use in cross-compilation environments, therefore Automake
1578
# will honor the `STRIP' environment variable to overrule this program.
1579
if test "$cross_compiling" != no; then
1580
if test -n "$ac_tool_prefix"; then
1581
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1582
set dummy ${ac_tool_prefix}strip; ac_word=$2
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1585
if test "${ac_cv_prog_STRIP+set}" = set; then
1586
echo $ECHO_N "(cached) $ECHO_C" >&6
1588
if test -n "$STRIP"; then
1589
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595
test -z "$as_dir" && as_dir=.
1596
for ac_exec_ext in '' $ac_executable_extensions; do
1597
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1598
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1607
STRIP=$ac_cv_prog_STRIP
1608
if test -n "$STRIP"; then
1609
echo "$as_me:$LINENO: result: $STRIP" >&5
1610
echo "${ECHO_T}$STRIP" >&6
1612
echo "$as_me:$LINENO: result: no" >&5
1613
echo "${ECHO_T}no" >&6
1617
if test -z "$ac_cv_prog_STRIP"; then
1619
# Extract the first word of "strip", so it can be a program name with args.
1620
set dummy strip; ac_word=$2
1621
echo "$as_me:$LINENO: checking for $ac_word" >&5
1622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1624
echo $ECHO_N "(cached) $ECHO_C" >&6
1626
if test -n "$ac_ct_STRIP"; then
1627
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633
test -z "$as_dir" && as_dir=.
1634
for ac_exec_ext in '' $ac_executable_extensions; do
1635
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636
ac_cv_prog_ac_ct_STRIP="strip"
1637
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1643
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1646
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1647
if test -n "$ac_ct_STRIP"; then
1648
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1649
echo "${ECHO_T}$ac_ct_STRIP" >&6
1651
echo "$as_me:$LINENO: result: no" >&5
1652
echo "${ECHO_T}no" >&6
1657
STRIP="$ac_cv_prog_STRIP"
1661
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1663
# We need awk for the "check" target. The system "awk" is bad on
1668
# Add the stamp file to the list of files AC keeps track of,
1669
# along with our hook.
1670
ac_config_headers="$ac_config_headers plugins/config.h"
1672
# Add the stamp file to the list of files AC keeps track of,
1673
# along with our hook.
1674
ac_config_headers="$ac_config_headers plugins/common.h"
1676
# Add the stamp file to the list of files AC keeps track of,
1677
# along with our hook.
1678
ac_config_headers="$ac_config_headers plugins/version.h"
1680
# Add the stamp file to the list of files AC keeps track of,
1681
# along with our hook.
1682
ac_config_headers="$ac_config_headers plugins/netutils.h"
1684
# Add the stamp file to the list of files AC keeps track of,
1685
# along with our hook.
1686
ac_config_headers="$ac_config_headers plugins/utils.h"
1688
# Add the stamp file to the list of files AC keeps track of,
1689
# along with our hook.
1690
ac_config_headers="$ac_config_headers plugins/popen.h"
1698
# Find a good install program. We prefer a C program (faster),
1699
# so one script is as good as another. But avoid the broken or
1700
# incompatible versions:
1701
# SysV /etc/install, /usr/sbin/install
1702
# SunOS /usr/etc/install
1703
# IRIX /sbin/install
1705
# AmigaOS /C/install, which installs bootblocks on floppy discs
1706
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1707
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1708
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1709
# ./install, which can be erroneously created by make from ./install.sh.
1710
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1711
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1712
if test -z "$INSTALL"; then
1713
if test "${ac_cv_path_install+set}" = set; then
1714
echo $ECHO_N "(cached) $ECHO_C" >&6
1716
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1720
test -z "$as_dir" && as_dir=.
1721
# Account for people who put trailing slashes in PATH elements.
1723
./ | .// | /cC/* | \
1724
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1727
# OSF1 and SCO ODT 3.0 have their own names for install.
1728
# Don't use installbsd from OSF since it installs stuff as root
1730
for ac_prog in ginstall scoinst install; do
1731
for ac_exec_ext in '' $ac_executable_extensions; do
1732
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1733
if test $ac_prog = install &&
1734
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1735
# AIX install. It has an incompatible calling convention.
1737
elif test $ac_prog = install &&
1738
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739
# program-specific install script used by HP pwplus--don't use.
1742
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1754
if test "${ac_cv_path_install+set}" = set; then
1755
INSTALL=$ac_cv_path_install
1757
# As a last resort, use the slow shell script. We don't cache a
1758
# path for INSTALL within a source directory, because that will
1759
# break other packages using the cache if that directory is
1760
# removed, or if the path is relative.
1761
INSTALL=$ac_install_sh
1764
echo "$as_me:$LINENO: result: $INSTALL" >&5
1765
echo "${ECHO_T}$INSTALL" >&6
1767
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1768
# It thinks the first close brace ends the variable substitution.
1769
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1778
ac_cpp='$CPP $CPPFLAGS'
1779
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1780
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1781
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1782
if test -n "$ac_tool_prefix"; then
1783
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1784
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1785
echo "$as_me:$LINENO: checking for $ac_word" >&5
1786
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787
if test "${ac_cv_prog_CC+set}" = set; then
1788
echo $ECHO_N "(cached) $ECHO_C" >&6
1790
if test -n "$CC"; then
1791
ac_cv_prog_CC="$CC" # Let the user override the test.
1793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797
test -z "$as_dir" && as_dir=.
1798
for ac_exec_ext in '' $ac_executable_extensions; do
1799
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1801
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810
if test -n "$CC"; then
1811
echo "$as_me:$LINENO: result: $CC" >&5
1812
echo "${ECHO_T}$CC" >&6
1814
echo "$as_me:$LINENO: result: no" >&5
1815
echo "${ECHO_T}no" >&6
1819
if test -z "$ac_cv_prog_CC"; then
1821
# Extract the first word of "gcc", so it can be a program name with args.
1822
set dummy gcc; ac_word=$2
1823
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1826
echo $ECHO_N "(cached) $ECHO_C" >&6
1828
if test -n "$ac_ct_CC"; then
1829
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1831
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1835
test -z "$as_dir" && as_dir=.
1836
for ac_exec_ext in '' $ac_executable_extensions; do
1837
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
ac_cv_prog_ac_ct_CC="gcc"
1839
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1848
if test -n "$ac_ct_CC"; then
1849
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1850
echo "${ECHO_T}$ac_ct_CC" >&6
1852
echo "$as_me:$LINENO: result: no" >&5
1853
echo "${ECHO_T}no" >&6
1861
if test -z "$CC"; then
1862
if test -n "$ac_tool_prefix"; then
1863
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1864
set dummy ${ac_tool_prefix}cc; ac_word=$2
1865
echo "$as_me:$LINENO: checking for $ac_word" >&5
1866
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1867
if test "${ac_cv_prog_CC+set}" = set; then
1868
echo $ECHO_N "(cached) $ECHO_C" >&6
1870
if test -n "$CC"; then
1871
ac_cv_prog_CC="$CC" # Let the user override the test.
1873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1877
test -z "$as_dir" && as_dir=.
1878
for ac_exec_ext in '' $ac_executable_extensions; do
1879
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1880
ac_cv_prog_CC="${ac_tool_prefix}cc"
1881
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890
if test -n "$CC"; then
1891
echo "$as_me:$LINENO: result: $CC" >&5
1892
echo "${ECHO_T}$CC" >&6
1894
echo "$as_me:$LINENO: result: no" >&5
1895
echo "${ECHO_T}no" >&6
1899
if test -z "$ac_cv_prog_CC"; then
1901
# Extract the first word of "cc", so it can be a program name with args.
1902
set dummy cc; ac_word=$2
1903
echo "$as_me:$LINENO: checking for $ac_word" >&5
1904
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1905
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1906
echo $ECHO_N "(cached) $ECHO_C" >&6
1908
if test -n "$ac_ct_CC"; then
1909
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915
test -z "$as_dir" && as_dir=.
1916
for ac_exec_ext in '' $ac_executable_extensions; do
1917
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1918
ac_cv_prog_ac_ct_CC="cc"
1919
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1928
if test -n "$ac_ct_CC"; then
1929
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1930
echo "${ECHO_T}$ac_ct_CC" >&6
1932
echo "$as_me:$LINENO: result: no" >&5
1933
echo "${ECHO_T}no" >&6
1942
if test -z "$CC"; then
1943
# Extract the first word of "cc", so it can be a program name with args.
1944
set dummy cc; ac_word=$2
1945
echo "$as_me:$LINENO: checking for $ac_word" >&5
1946
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947
if test "${ac_cv_prog_CC+set}" = set; then
1948
echo $ECHO_N "(cached) $ECHO_C" >&6
1950
if test -n "$CC"; then
1951
ac_cv_prog_CC="$CC" # Let the user override the test.
1954
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1958
test -z "$as_dir" && as_dir=.
1959
for ac_exec_ext in '' $ac_executable_extensions; do
1960
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1962
ac_prog_rejected=yes
1966
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972
if test $ac_prog_rejected = yes; then
1973
# We found a bogon in the path, so make sure we never use it.
1974
set dummy $ac_cv_prog_CC
1976
if test $# != 0; then
1977
# We chose a different compiler from the bogus one.
1978
# However, it has the same basename, so the bogon will be chosen
1979
# first if we set CC to just the basename; use the full file name.
1981
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1987
if test -n "$CC"; then
1988
echo "$as_me:$LINENO: result: $CC" >&5
1989
echo "${ECHO_T}$CC" >&6
1991
echo "$as_me:$LINENO: result: no" >&5
1992
echo "${ECHO_T}no" >&6
1996
if test -z "$CC"; then
1997
if test -n "$ac_tool_prefix"; then
2000
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2001
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2002
echo "$as_me:$LINENO: checking for $ac_word" >&5
2003
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2004
if test "${ac_cv_prog_CC+set}" = set; then
2005
echo $ECHO_N "(cached) $ECHO_C" >&6
2007
if test -n "$CC"; then
2008
ac_cv_prog_CC="$CC" # Let the user override the test.
2010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2014
test -z "$as_dir" && as_dir=.
2015
for ac_exec_ext in '' $ac_executable_extensions; do
2016
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2017
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2018
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027
if test -n "$CC"; then
2028
echo "$as_me:$LINENO: result: $CC" >&5
2029
echo "${ECHO_T}$CC" >&6
2031
echo "$as_me:$LINENO: result: no" >&5
2032
echo "${ECHO_T}no" >&6
2035
test -n "$CC" && break
2038
if test -z "$CC"; then
2042
# Extract the first word of "$ac_prog", so it can be a program name with args.
2043
set dummy $ac_prog; ac_word=$2
2044
echo "$as_me:$LINENO: checking for $ac_word" >&5
2045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2046
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2047
echo $ECHO_N "(cached) $ECHO_C" >&6
2049
if test -n "$ac_ct_CC"; then
2050
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056
test -z "$as_dir" && as_dir=.
2057
for ac_exec_ext in '' $ac_executable_extensions; do
2058
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2059
ac_cv_prog_ac_ct_CC="$ac_prog"
2060
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069
if test -n "$ac_ct_CC"; then
2070
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071
echo "${ECHO_T}$ac_ct_CC" >&6
2073
echo "$as_me:$LINENO: result: no" >&5
2074
echo "${ECHO_T}no" >&6
2077
test -n "$ac_ct_CC" && break
2086
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2087
See \`config.log' for more details." >&5
2088
echo "$as_me: error: no acceptable C compiler found in \$PATH
2089
See \`config.log' for more details." >&2;}
2090
{ (exit 1); exit 1; }; }
2092
# Provide some information about the compiler.
2093
echo "$as_me:$LINENO:" \
2094
"checking for C compiler version" >&5
2095
ac_compiler=`set X $ac_compile; echo $2`
2096
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2097
(eval $ac_compiler --version </dev/null >&5) 2>&5
2099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100
(exit $ac_status); }
2101
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2102
(eval $ac_compiler -v </dev/null >&5) 2>&5
2104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
(exit $ac_status); }
2106
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2107
(eval $ac_compiler -V </dev/null >&5) 2>&5
2109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110
(exit $ac_status); }
2112
cat >conftest.$ac_ext <<_ACEOF
2113
#line $LINENO "configure"
2116
cat confdefs.h >>conftest.$ac_ext
2117
cat >>conftest.$ac_ext <<_ACEOF
2118
/* end confdefs.h. */
2128
ac_clean_files_save=$ac_clean_files
2129
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2130
# Try to create an executable without -o first, disregard a.out.
2131
# It will help us diagnose broken compilers, and finding out an intuition
2133
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2134
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2135
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2136
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2137
(eval $ac_link_default) 2>&5
2139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140
(exit $ac_status); }; then
2141
# Find the output, starting from the most likely. This scheme is
2142
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2145
# Be careful to initialize this variable, since it used to be cached.
2146
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2148
# b.out is created by i960 compilers.
2149
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2151
test -f "$ac_file" || continue
2153
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2156
# This is the source file.
2159
# We found the default executable, but exeext='' is most
2163
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164
# FIXME: I believe we export ac_cv_exeext for Libtool,
2165
# but it would be cool to find out if it's true. Does anybody
2166
# maintain Libtool? --akim.
2174
echo "$as_me: failed program was:" >&5
2175
sed 's/^/| /' conftest.$ac_ext >&5
2177
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2178
See \`config.log' for more details." >&5
2179
echo "$as_me: error: C compiler cannot create executables
2180
See \`config.log' for more details." >&2;}
2181
{ (exit 77); exit 77; }; }
2184
ac_exeext=$ac_cv_exeext
2185
echo "$as_me:$LINENO: result: $ac_file" >&5
2186
echo "${ECHO_T}$ac_file" >&6
2188
# Check the compiler produces executables we can run. If not, either
2189
# the compiler is broken, or we cross compile.
2190
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2191
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2192
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2193
# If not cross compiling, check that we can run a simple program.
2194
if test "$cross_compiling" != yes; then
2195
if { ac_try='./$ac_file'
2196
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200
(exit $ac_status); }; }; then
2203
if test "$cross_compiling" = maybe; then
2206
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2207
If you meant to cross compile, use \`--host'.
2208
See \`config.log' for more details." >&5
2209
echo "$as_me: error: cannot run C compiled programs.
2210
If you meant to cross compile, use \`--host'.
2211
See \`config.log' for more details." >&2;}
2212
{ (exit 1); exit 1; }; }
2216
echo "$as_me:$LINENO: result: yes" >&5
2217
echo "${ECHO_T}yes" >&6
2219
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2220
ac_clean_files=$ac_clean_files_save
2221
# Check the compiler produces executables we can run. If not, either
2222
# the compiler is broken, or we cross compile.
2223
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2224
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2225
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2226
echo "${ECHO_T}$cross_compiling" >&6
2228
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2229
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2231
(eval $ac_link) 2>&5
2233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234
(exit $ac_status); }; then
2235
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2236
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2237
# work properly (i.e., refer to `conftest.exe'), while it won't with
2239
for ac_file in conftest.exe conftest conftest.*; do
2240
test -f "$ac_file" || continue
2242
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2243
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2250
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2251
See \`config.log' for more details." >&5
2252
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2253
See \`config.log' for more details." >&2;}
2254
{ (exit 1); exit 1; }; }
2257
rm -f conftest$ac_cv_exeext
2258
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2259
echo "${ECHO_T}$ac_cv_exeext" >&6
2261
rm -f conftest.$ac_ext
2262
EXEEXT=$ac_cv_exeext
2264
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2265
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2266
if test "${ac_cv_objext+set}" = set; then
2267
echo $ECHO_N "(cached) $ECHO_C" >&6
2269
cat >conftest.$ac_ext <<_ACEOF
2270
#line $LINENO "configure"
2273
cat confdefs.h >>conftest.$ac_ext
2274
cat >>conftest.$ac_ext <<_ACEOF
2275
/* end confdefs.h. */
2285
rm -f conftest.o conftest.obj
2286
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287
(eval $ac_compile) 2>&5
2289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290
(exit $ac_status); }; then
2291
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2293
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2294
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2299
echo "$as_me: failed program was:" >&5
2300
sed 's/^/| /' conftest.$ac_ext >&5
2302
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2303
See \`config.log' for more details." >&5
2304
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2305
See \`config.log' for more details." >&2;}
2306
{ (exit 1); exit 1; }; }
2309
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2311
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2312
echo "${ECHO_T}$ac_cv_objext" >&6
2313
OBJEXT=$ac_cv_objext
2315
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2316
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2317
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2318
echo $ECHO_N "(cached) $ECHO_C" >&6
2320
cat >conftest.$ac_ext <<_ACEOF
2321
#line $LINENO "configure"
2324
cat confdefs.h >>conftest.$ac_ext
2325
cat >>conftest.$ac_ext <<_ACEOF
2326
/* end confdefs.h. */
2339
rm -f conftest.$ac_objext
2340
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2341
(eval $ac_compile) 2>&5
2343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344
(exit $ac_status); } &&
2345
{ ac_try='test -s conftest.$ac_objext'
2346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350
(exit $ac_status); }; }; then
2353
echo "$as_me: failed program was:" >&5
2354
sed 's/^/| /' conftest.$ac_ext >&5
2358
rm -f conftest.$ac_objext conftest.$ac_ext
2359
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2362
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2363
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2364
GCC=`test $ac_compiler_gnu = yes && echo yes`
2365
ac_test_CFLAGS=${CFLAGS+set}
2366
ac_save_CFLAGS=$CFLAGS
2368
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2369
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2370
if test "${ac_cv_prog_cc_g+set}" = set; then
2371
echo $ECHO_N "(cached) $ECHO_C" >&6
2373
cat >conftest.$ac_ext <<_ACEOF
2374
#line $LINENO "configure"
2377
cat confdefs.h >>conftest.$ac_ext
2378
cat >>conftest.$ac_ext <<_ACEOF
2379
/* end confdefs.h. */
2389
rm -f conftest.$ac_objext
2390
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391
(eval $ac_compile) 2>&5
2393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394
(exit $ac_status); } &&
2395
{ ac_try='test -s conftest.$ac_objext'
2396
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400
(exit $ac_status); }; }; then
2403
echo "$as_me: failed program was:" >&5
2404
sed 's/^/| /' conftest.$ac_ext >&5
2408
rm -f conftest.$ac_objext conftest.$ac_ext
2410
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2411
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2412
if test "$ac_test_CFLAGS" = set; then
2413
CFLAGS=$ac_save_CFLAGS
2414
elif test $ac_cv_prog_cc_g = yes; then
2415
if test "$GCC" = yes; then
2421
if test "$GCC" = yes; then
2427
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2428
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2429
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2430
echo $ECHO_N "(cached) $ECHO_C" >&6
2432
ac_cv_prog_cc_stdc=no
2434
cat >conftest.$ac_ext <<_ACEOF
2435
#line $LINENO "configure"
2438
cat confdefs.h >>conftest.$ac_ext
2439
cat >>conftest.$ac_ext <<_ACEOF
2440
/* end confdefs.h. */
2443
#include <sys/types.h>
2444
#include <sys/stat.h>
2445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446
struct buf { int x; };
2447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448
static char *e (p, i)
2454
static char *f (char * (*g) (char **, int), char **p, ...)
2459
s = g (p, va_arg (v,int));
2463
int test (int i, double x);
2464
struct s1 {int (*f) (int a);};
2465
struct s2 {int (*f) (double a);};
2466
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2472
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2477
# Don't try gcc -ansi; that turns off useful extensions and
2478
# breaks some systems' header files.
2479
# AIX -qlanglvl=ansi
2480
# Ultrix and OSF/1 -std1
2481
# HP-UX 10.20 and later -Ae
2482
# HP-UX older versions -Aa -D_HPUX_SOURCE
2483
# SVR4 -Xc -D__EXTENSIONS__
2484
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2486
CC="$ac_save_CC $ac_arg"
2487
rm -f conftest.$ac_objext
2488
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489
(eval $ac_compile) 2>&5
2491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492
(exit $ac_status); } &&
2493
{ ac_try='test -s conftest.$ac_objext'
2494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
(exit $ac_status); }; }; then
2499
ac_cv_prog_cc_stdc=$ac_arg
2502
echo "$as_me: failed program was:" >&5
2503
sed 's/^/| /' conftest.$ac_ext >&5
2506
rm -f conftest.$ac_objext
2508
rm -f conftest.$ac_ext conftest.$ac_objext
2513
case "x$ac_cv_prog_cc_stdc" in
2515
echo "$as_me:$LINENO: result: none needed" >&5
2516
echo "${ECHO_T}none needed" >&6 ;;
2518
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2519
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2520
CC="$CC $ac_cv_prog_cc_stdc" ;;
2523
# Some people use a C++ compiler to compile C. Since we use `exit',
2524
# in C++ we need to declare it. In case someone uses the same compiler
2525
# for both compiling C and C++ we need to have the C++ compiler decide
2526
# the declaration of exit, since it's the most demanding environment.
2527
cat >conftest.$ac_ext <<_ACEOF
2532
rm -f conftest.$ac_objext
2533
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2534
(eval $ac_compile) 2>&5
2536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
(exit $ac_status); } &&
2538
{ ac_try='test -s conftest.$ac_objext'
2539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543
(exit $ac_status); }; }; then
2544
for ac_declaration in \
2546
'#include <stdlib.h>' \
2547
'extern "C" void std::exit (int) throw (); using std::exit;' \
2548
'extern "C" void std::exit (int); using std::exit;' \
2549
'extern "C" void exit (int) throw ();' \
2550
'extern "C" void exit (int);' \
2553
cat >conftest.$ac_ext <<_ACEOF
2554
#line $LINENO "configure"
2557
cat confdefs.h >>conftest.$ac_ext
2558
cat >>conftest.$ac_ext <<_ACEOF
2559
/* end confdefs.h. */
2570
rm -f conftest.$ac_objext
2571
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2572
(eval $ac_compile) 2>&5
2574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
(exit $ac_status); } &&
2576
{ ac_try='test -s conftest.$ac_objext'
2577
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581
(exit $ac_status); }; }; then
2584
echo "$as_me: failed program was:" >&5
2585
sed 's/^/| /' conftest.$ac_ext >&5
2589
rm -f conftest.$ac_objext conftest.$ac_ext
2590
cat >conftest.$ac_ext <<_ACEOF
2591
#line $LINENO "configure"
2594
cat confdefs.h >>conftest.$ac_ext
2595
cat >>conftest.$ac_ext <<_ACEOF
2596
/* end confdefs.h. */
2606
rm -f conftest.$ac_objext
2607
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608
(eval $ac_compile) 2>&5
2610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611
(exit $ac_status); } &&
2612
{ ac_try='test -s conftest.$ac_objext'
2613
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617
(exit $ac_status); }; }; then
2620
echo "$as_me: failed program was:" >&5
2621
sed 's/^/| /' conftest.$ac_ext >&5
2624
rm -f conftest.$ac_objext conftest.$ac_ext
2627
if test -n "$ac_declaration"; then
2628
echo '#ifdef __cplusplus' >>confdefs.h
2629
echo $ac_declaration >>confdefs.h
2630
echo '#endif' >>confdefs.h
2634
echo "$as_me: failed program was:" >&5
2635
sed 's/^/| /' conftest.$ac_ext >&5
2638
rm -f conftest.$ac_objext conftest.$ac_ext
2640
ac_cpp='$CPP $CPPFLAGS'
2641
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2642
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2643
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2644
rm -f .deps 2>/dev/null
2645
mkdir .deps 2>/dev/null
2646
if test -d .deps; then
2649
# MS-DOS does not allow filenames that begin with a dot.
2652
rmdir .deps 2>/dev/null
2655
ac_config_commands="$ac_config_commands depfiles"
2658
am_make=${MAKE-make}
2659
cat > confinc << 'END'
2663
# If we don't find an include directive, just comment out the code.
2664
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2669
# First try GNU make style include.
2670
echo "include confinc" > confmf
2671
# We grep out `Entering directory' and `Leaving directory'
2672
# messages which can occur if `w' ends up in MAKEFLAGS.
2673
# In particular we don't look at `^make:' because GNU make might
2674
# be invoked under some other name (usually "gmake"), in which
2675
# case it prints its new name instead of `make'.
2676
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2681
# Now try BSD make style include.
2682
if test "$am__include" = "#"; then
2683
echo '.include "confinc"' > confmf
2684
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2685
am__include=.include
2692
echo "$as_me:$LINENO: result: $_am_result" >&5
2693
echo "${ECHO_T}$_am_result" >&6
2694
rm -f confinc confmf
2696
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2697
if test "${enable_dependency_tracking+set}" = set; then
2698
enableval="$enable_dependency_tracking"
2701
if test "x$enable_dependency_tracking" != xno; then
2702
am_depcomp="$ac_aux_dir/depcomp"
2707
if test "x$enable_dependency_tracking" != xno; then
2718
depcc="$CC" am_compiler_list=
2720
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2721
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2722
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2723
echo $ECHO_N "(cached) $ECHO_C" >&6
2725
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2726
# We make a subdir and do the tests there. Otherwise we can end up
2727
# making bogus files that we don't know about and never remove. For
2728
# instance it was reported that on HP-UX the gcc test will end up
2729
# making a dummy file named `D' -- because `-MD' means `put the output
2732
# Copy depcomp to subdir because otherwise we won't find it if we're
2733
# using a relative directory.
2734
cp "$am_depcomp" conftest.dir
2737
am_cv_CC_dependencies_compiler_type=none
2738
if test "$am_compiler_list" = ""; then
2739
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2741
for depmode in $am_compiler_list; do
2742
# We need to recreate these files for each test, as the compiler may
2743
# overwrite some of them when testing with obscure command lines.
2744
# This happens at least with the AIX C compiler.
2745
echo '#include "conftest.h"' > conftest.c
2746
echo 'int i;' > conftest.h
2747
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2751
# after this tag, mechanisms are not by side-effect, so they'll
2752
# only be used when explicitly requested
2753
if test "x$enable_dependency_tracking" = xyes; then
2761
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2762
# mode. It turns out that the SunPro C++ compiler does not properly
2763
# handle `-M -o', and we need to detect this.
2764
if depmode=$depmode \
2765
source=conftest.c object=conftest.o \
2766
depfile=conftest.Po tmpdepfile=conftest.TPo \
2767
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2768
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2769
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2770
am_cv_CC_dependencies_compiler_type=$depmode
2778
am_cv_CC_dependencies_compiler_type=none
2782
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2783
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2784
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2787
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2789
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2790
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2791
echo $ECHO_N "(cached) $ECHO_C" >&6
2793
cat >conftest.make <<\_ACEOF
2795
@echo 'ac_maketemp="$(MAKE)"'
2797
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2798
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2799
if test -n "$ac_maketemp"; then
2800
eval ac_cv_prog_make_${ac_make}_set=yes
2802
eval ac_cv_prog_make_${ac_make}_set=no
2806
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2807
echo "$as_me:$LINENO: result: yes" >&5
2808
echo "${ECHO_T}yes" >&6
2811
echo "$as_me:$LINENO: result: no" >&5
2812
echo "${ECHO_T}no" >&6
2813
SET_MAKE="MAKE=${MAKE-make}"
2816
for ac_prog in gawk mawk nawk awk
2818
# Extract the first word of "$ac_prog", so it can be a program name with args.
2819
set dummy $ac_prog; ac_word=$2
2820
echo "$as_me:$LINENO: checking for $ac_word" >&5
2821
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2822
if test "${ac_cv_prog_AWK+set}" = set; then
2823
echo $ECHO_N "(cached) $ECHO_C" >&6
2825
if test -n "$AWK"; then
2826
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2828
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2832
test -z "$as_dir" && as_dir=.
2833
for ac_exec_ext in '' $ac_executable_extensions; do
2834
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2835
ac_cv_prog_AWK="$ac_prog"
2836
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845
if test -n "$AWK"; then
2846
echo "$as_me:$LINENO: result: $AWK" >&5
2847
echo "${ECHO_T}$AWK" >&6
2849
echo "$as_me:$LINENO: result: no" >&5
2850
echo "${ECHO_T}no" >&6
2853
test -n "$AWK" && break
2857
saved_srcdir=$srcdir
2859
test -f $srcdir/getloadavg.c \
2860
|| { { echo "$as_me:$LINENO: error: getloadavg.c is not in $srcdir" >&5
2861
echo "$as_me: error: getloadavg.c is not in $srcdir" >&2;}
2862
{ (exit 1); exit 1; }; }
2865
ac_cpp='$CPP $CPPFLAGS'
2866
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2870
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2871
# On Suns, sometimes $CPP names a directory.
2872
if test -n "$CPP" && test -d "$CPP"; then
2875
if test -z "$CPP"; then
2876
if test "${ac_cv_prog_CPP+set}" = set; then
2877
echo $ECHO_N "(cached) $ECHO_C" >&6
2879
# Double quotes because CPP needs to be expanded
2880
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2883
for ac_c_preproc_warn_flag in '' yes
2885
# Use a header file that comes with gcc, so configuring glibc
2886
# with a fresh cross-compiler works.
2887
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2888
# <limits.h> exists even on freestanding compilers.
2889
# On the NeXT, cc -E runs the code through the compiler's parser,
2890
# not just through cpp. "Syntax error" is here to catch this case.
2891
cat >conftest.$ac_ext <<_ACEOF
2892
#line $LINENO "configure"
2895
cat confdefs.h >>conftest.$ac_ext
2896
cat >>conftest.$ac_ext <<_ACEOF
2897
/* end confdefs.h. */
2899
# include <limits.h>
2901
# include <assert.h>
2905
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2906
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2908
grep -v '^ *+' conftest.er1 >conftest.err
2910
cat conftest.err >&5
2911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912
(exit $ac_status); } >/dev/null; then
2913
if test -s conftest.err; then
2914
ac_cpp_err=$ac_c_preproc_warn_flag
2921
if test -z "$ac_cpp_err"; then
2924
echo "$as_me: failed program was:" >&5
2925
sed 's/^/| /' conftest.$ac_ext >&5
2927
# Broken: fails on valid input.
2930
rm -f conftest.err conftest.$ac_ext
2932
# OK, works on sane cases. Now check whether non-existent headers
2933
# can be detected and how.
2934
cat >conftest.$ac_ext <<_ACEOF
2935
#line $LINENO "configure"
2938
cat confdefs.h >>conftest.$ac_ext
2939
cat >>conftest.$ac_ext <<_ACEOF
2940
/* end confdefs.h. */
2941
#include <ac_nonexistent.h>
2943
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2944
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2946
grep -v '^ *+' conftest.er1 >conftest.err
2948
cat conftest.err >&5
2949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950
(exit $ac_status); } >/dev/null; then
2951
if test -s conftest.err; then
2952
ac_cpp_err=$ac_c_preproc_warn_flag
2959
if test -z "$ac_cpp_err"; then
2960
# Broken: success on invalid input.
2963
echo "$as_me: failed program was:" >&5
2964
sed 's/^/| /' conftest.$ac_ext >&5
2966
# Passes both tests.
2970
rm -f conftest.err conftest.$ac_ext
2973
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2974
rm -f conftest.err conftest.$ac_ext
2975
if $ac_preproc_ok; then
2987
echo "$as_me:$LINENO: result: $CPP" >&5
2988
echo "${ECHO_T}$CPP" >&6
2990
for ac_c_preproc_warn_flag in '' yes
2992
# Use a header file that comes with gcc, so configuring glibc
2993
# with a fresh cross-compiler works.
2994
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2995
# <limits.h> exists even on freestanding compilers.
2996
# On the NeXT, cc -E runs the code through the compiler's parser,
2997
# not just through cpp. "Syntax error" is here to catch this case.
2998
cat >conftest.$ac_ext <<_ACEOF
2999
#line $LINENO "configure"
3002
cat confdefs.h >>conftest.$ac_ext
3003
cat >>conftest.$ac_ext <<_ACEOF
3004
/* end confdefs.h. */
3006
# include <limits.h>
3008
# include <assert.h>
3012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3013
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3015
grep -v '^ *+' conftest.er1 >conftest.err
3017
cat conftest.err >&5
3018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019
(exit $ac_status); } >/dev/null; then
3020
if test -s conftest.err; then
3021
ac_cpp_err=$ac_c_preproc_warn_flag
3028
if test -z "$ac_cpp_err"; then
3031
echo "$as_me: failed program was:" >&5
3032
sed 's/^/| /' conftest.$ac_ext >&5
3034
# Broken: fails on valid input.
3037
rm -f conftest.err conftest.$ac_ext
3039
# OK, works on sane cases. Now check whether non-existent headers
3040
# can be detected and how.
3041
cat >conftest.$ac_ext <<_ACEOF
3042
#line $LINENO "configure"
3045
cat confdefs.h >>conftest.$ac_ext
3046
cat >>conftest.$ac_ext <<_ACEOF
3047
/* end confdefs.h. */
3048
#include <ac_nonexistent.h>
3050
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3051
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3053
grep -v '^ *+' conftest.er1 >conftest.err
3055
cat conftest.err >&5
3056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057
(exit $ac_status); } >/dev/null; then
3058
if test -s conftest.err; then
3059
ac_cpp_err=$ac_c_preproc_warn_flag
3066
if test -z "$ac_cpp_err"; then
3067
# Broken: success on invalid input.
3070
echo "$as_me: failed program was:" >&5
3071
sed 's/^/| /' conftest.$ac_ext >&5
3073
# Passes both tests.
3077
rm -f conftest.err conftest.$ac_ext
3080
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3081
rm -f conftest.err conftest.$ac_ext
3082
if $ac_preproc_ok; then
3085
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3086
See \`config.log' for more details." >&5
3087
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3088
See \`config.log' for more details." >&2;}
3089
{ (exit 1); exit 1; }; }
3093
ac_cpp='$CPP $CPPFLAGS'
3094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
echo "$as_me:$LINENO: checking for egrep" >&5
3100
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3101
if test "${ac_cv_prog_egrep+set}" = set; then
3102
echo $ECHO_N "(cached) $ECHO_C" >&6
3104
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3105
then ac_cv_prog_egrep='grep -E'
3106
else ac_cv_prog_egrep='egrep'
3109
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3110
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3111
EGREP=$ac_cv_prog_egrep
3114
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3115
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3116
if test "${ac_cv_header_stdc+set}" = set; then
3117
echo $ECHO_N "(cached) $ECHO_C" >&6
3119
cat >conftest.$ac_ext <<_ACEOF
3120
#line $LINENO "configure"
3123
cat confdefs.h >>conftest.$ac_ext
3124
cat >>conftest.$ac_ext <<_ACEOF
3125
/* end confdefs.h. */
3139
rm -f conftest.$ac_objext
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141
(eval $ac_compile) 2>&5
3143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144
(exit $ac_status); } &&
3145
{ ac_try='test -s conftest.$ac_objext'
3146
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3149
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150
(exit $ac_status); }; }; then
3151
ac_cv_header_stdc=yes
3153
echo "$as_me: failed program was:" >&5
3154
sed 's/^/| /' conftest.$ac_ext >&5
3156
ac_cv_header_stdc=no
3158
rm -f conftest.$ac_objext conftest.$ac_ext
3160
if test $ac_cv_header_stdc = yes; then
3161
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3162
cat >conftest.$ac_ext <<_ACEOF
3163
#line $LINENO "configure"
3166
cat confdefs.h >>conftest.$ac_ext
3167
cat >>conftest.$ac_ext <<_ACEOF
3168
/* end confdefs.h. */
3172
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3173
$EGREP "memchr" >/dev/null 2>&1; then
3176
ac_cv_header_stdc=no
3182
if test $ac_cv_header_stdc = yes; then
3183
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3184
cat >conftest.$ac_ext <<_ACEOF
3185
#line $LINENO "configure"
3188
cat confdefs.h >>conftest.$ac_ext
3189
cat >>conftest.$ac_ext <<_ACEOF
3190
/* end confdefs.h. */
3194
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195
$EGREP "free" >/dev/null 2>&1; then
3198
ac_cv_header_stdc=no
3204
if test $ac_cv_header_stdc = yes; then
3205
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3206
if test "$cross_compiling" = yes; then
3209
cat >conftest.$ac_ext <<_ACEOF
3210
#line $LINENO "configure"
3213
cat confdefs.h >>conftest.$ac_ext
3214
cat >>conftest.$ac_ext <<_ACEOF
3215
/* end confdefs.h. */
3217
#if ((' ' & 0x0FF) == 0x020)
3218
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3219
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3221
# define ISLOWER(c) \
3222
(('a' <= (c) && (c) <= 'i') \
3223
|| ('j' <= (c) && (c) <= 'r') \
3224
|| ('s' <= (c) && (c) <= 'z'))
3225
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3228
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3233
for (i = 0; i < 256; i++)
3234
if (XOR (islower (i), ISLOWER (i))
3235
|| toupper (i) != TOUPPER (i))
3240
rm -f conftest$ac_exeext
3241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3242
(eval $ac_link) 2>&5
3244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3246
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250
(exit $ac_status); }; }; then
3253
echo "$as_me: program exited with status $ac_status" >&5
3254
echo "$as_me: failed program was:" >&5
3255
sed 's/^/| /' conftest.$ac_ext >&5
3258
ac_cv_header_stdc=no
3260
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3264
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3265
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3266
if test $ac_cv_header_stdc = yes; then
3268
cat >>confdefs.h <<\_ACEOF
3269
#define STDC_HEADERS 1
3274
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3284
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3285
inttypes.h stdint.h unistd.h
3287
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3288
echo "$as_me:$LINENO: checking for $ac_header" >&5
3289
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3290
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3291
echo $ECHO_N "(cached) $ECHO_C" >&6
3293
cat >conftest.$ac_ext <<_ACEOF
3294
#line $LINENO "configure"
3297
cat confdefs.h >>conftest.$ac_ext
3298
cat >>conftest.$ac_ext <<_ACEOF
3299
/* end confdefs.h. */
3300
$ac_includes_default
3302
#include <$ac_header>
3304
rm -f conftest.$ac_objext
3305
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306
(eval $ac_compile) 2>&5
3308
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309
(exit $ac_status); } &&
3310
{ ac_try='test -s conftest.$ac_objext'
3311
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315
(exit $ac_status); }; }; then
3316
eval "$as_ac_Header=yes"
3318
echo "$as_me: failed program was:" >&5
3319
sed 's/^/| /' conftest.$ac_ext >&5
3321
eval "$as_ac_Header=no"
3323
rm -f conftest.$ac_objext conftest.$ac_ext
3325
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3326
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3327
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3328
cat >>confdefs.h <<_ACEOF
3329
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3337
ac_have_func=no # yes means we've found a way to get the load average.
3339
# Make sure getloadavg.c is where it belongs, at configure-time.
3340
test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
3341
{ { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
3342
echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
3343
{ (exit 1); exit 1; }; }
3347
# Check for getloadavg, but be sure not to touch the cache variable.
3348
(echo "$as_me:$LINENO: checking for getloadavg" >&5
3349
echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
3350
if test "${ac_cv_func_getloadavg+set}" = set; then
3351
echo $ECHO_N "(cached) $ECHO_C" >&6
3353
cat >conftest.$ac_ext <<_ACEOF
3354
#line $LINENO "configure"
3357
cat confdefs.h >>conftest.$ac_ext
3358
cat >>conftest.$ac_ext <<_ACEOF
3359
/* end confdefs.h. */
3360
/* System header to define __stub macros and hopefully few prototypes,
3361
which can conflict with char getloadavg (); below.
3362
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3363
<limits.h> exists even on freestanding compilers. */
3365
# include <limits.h>
3367
# include <assert.h>
3369
/* Override any gcc2 internal prototype to avoid an error. */
3374
/* We use char because int might match the return type of a gcc2
3375
builtin and then its argument prototype would still apply. */
3377
/* The GNU C library defines this for functions which it implements
3378
to always fail with ENOSYS. Some functions are actually named
3379
something starting with __ and the normal name is an alias. */
3380
#if defined (__stub_getloadavg) || defined (__stub___getloadavg)
3383
char (*f) () = getloadavg;
3392
return f != getloadavg;
3397
rm -f conftest.$ac_objext conftest$ac_exeext
3398
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3399
(eval $ac_link) 2>&5
3401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402
(exit $ac_status); } &&
3403
{ ac_try='test -s conftest$ac_exeext'
3404
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); }; }; then
3409
ac_cv_func_getloadavg=yes
3411
echo "$as_me: failed program was:" >&5
3412
sed 's/^/| /' conftest.$ac_ext >&5
3414
ac_cv_func_getloadavg=no
3416
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3418
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
3419
echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
3420
if test $ac_cv_func_getloadavg = yes; then
3425
) && ac_have_func=yes
3427
# On HPUX9, an unprivileged user can get load averages through this function.
3429
for ac_func in pstat_getdynamic
3431
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3432
echo "$as_me:$LINENO: checking for $ac_func" >&5
3433
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3434
if eval "test \"\${$as_ac_var+set}\" = set"; then
3435
echo $ECHO_N "(cached) $ECHO_C" >&6
3437
cat >conftest.$ac_ext <<_ACEOF
3438
#line $LINENO "configure"
3441
cat confdefs.h >>conftest.$ac_ext
3442
cat >>conftest.$ac_ext <<_ACEOF
3443
/* end confdefs.h. */
3444
/* System header to define __stub macros and hopefully few prototypes,
3445
which can conflict with char $ac_func (); below.
3446
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3447
<limits.h> exists even on freestanding compilers. */
3449
# include <limits.h>
3451
# include <assert.h>
3453
/* Override any gcc2 internal prototype to avoid an error. */
3458
/* We use char because int might match the return type of a gcc2
3459
builtin and then its argument prototype would still apply. */
3461
/* The GNU C library defines this for functions which it implements
3462
to always fail with ENOSYS. Some functions are actually named
3463
something starting with __ and the normal name is an alias. */
3464
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3467
char (*f) () = $ac_func;
3476
return f != $ac_func;
3481
rm -f conftest.$ac_objext conftest$ac_exeext
3482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3483
(eval $ac_link) 2>&5
3485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486
(exit $ac_status); } &&
3487
{ ac_try='test -s conftest$ac_exeext'
3488
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492
(exit $ac_status); }; }; then
3493
eval "$as_ac_var=yes"
3495
echo "$as_me: failed program was:" >&5
3496
sed 's/^/| /' conftest.$ac_ext >&5
3498
eval "$as_ac_var=no"
3500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3502
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3503
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3504
if test `eval echo '${'$as_ac_var'}'` = yes; then
3505
cat >>confdefs.h <<_ACEOF
3506
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3513
# Solaris has libkstat which does not require root.
3515
echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
3516
echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
3517
if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
3518
echo $ECHO_N "(cached) $ECHO_C" >&6
3520
ac_check_lib_save_LIBS=$LIBS
3521
LIBS="-lkstat $LIBS"
3522
cat >conftest.$ac_ext <<_ACEOF
3523
#line $LINENO "configure"
3526
cat confdefs.h >>conftest.$ac_ext
3527
cat >>conftest.$ac_ext <<_ACEOF
3528
/* end confdefs.h. */
3530
/* Override any gcc2 internal prototype to avoid an error. */
3534
/* We use char because int might match the return type of a gcc2
3535
builtin and then its argument prototype would still apply. */
3545
rm -f conftest.$ac_objext conftest$ac_exeext
3546
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3547
(eval $ac_link) 2>&5
3549
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550
(exit $ac_status); } &&
3551
{ ac_try='test -s conftest$ac_exeext'
3552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556
(exit $ac_status); }; }; then
3557
ac_cv_lib_kstat_kstat_open=yes
3559
echo "$as_me: failed program was:" >&5
3560
sed 's/^/| /' conftest.$ac_ext >&5
3562
ac_cv_lib_kstat_kstat_open=no
3564
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3565
LIBS=$ac_check_lib_save_LIBS
3567
echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
3568
echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
3569
if test $ac_cv_lib_kstat_kstat_open = yes; then
3570
cat >>confdefs.h <<_ACEOF
3571
#define HAVE_LIBKSTAT 1
3574
LIBS="-lkstat $LIBS"
3578
test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
3580
# Some systems with -lutil have (and need) -lkvm as well, some do not.
3581
# On Solaris, -lkvm requires nlist from -lelf, so check that first
3582
# to get the right answer into the cache.
3583
# For kstat on solaris, we need libelf to force the definition of SVR4 below.
3584
if test $ac_have_func = no; then
3585
echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
3586
echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
3587
if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
3588
echo $ECHO_N "(cached) $ECHO_C" >&6
3590
ac_check_lib_save_LIBS=$LIBS
3592
cat >conftest.$ac_ext <<_ACEOF
3593
#line $LINENO "configure"
3596
cat confdefs.h >>conftest.$ac_ext
3597
cat >>conftest.$ac_ext <<_ACEOF
3598
/* end confdefs.h. */
3600
/* Override any gcc2 internal prototype to avoid an error. */
3604
/* We use char because int might match the return type of a gcc2
3605
builtin and then its argument prototype would still apply. */
3615
rm -f conftest.$ac_objext conftest$ac_exeext
3616
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3617
(eval $ac_link) 2>&5
3619
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620
(exit $ac_status); } &&
3621
{ ac_try='test -s conftest$ac_exeext'
3622
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626
(exit $ac_status); }; }; then
3627
ac_cv_lib_elf_elf_begin=yes
3629
echo "$as_me: failed program was:" >&5
3630
sed 's/^/| /' conftest.$ac_ext >&5
3632
ac_cv_lib_elf_elf_begin=no
3634
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3635
LIBS=$ac_check_lib_save_LIBS
3637
echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
3638
echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
3639
if test $ac_cv_lib_elf_elf_begin = yes; then
3644
if test $ac_have_func = no; then
3645
echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
3646
echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
3647
if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
3648
echo $ECHO_N "(cached) $ECHO_C" >&6
3650
ac_check_lib_save_LIBS=$LIBS
3652
cat >conftest.$ac_ext <<_ACEOF
3653
#line $LINENO "configure"
3656
cat confdefs.h >>conftest.$ac_ext
3657
cat >>conftest.$ac_ext <<_ACEOF
3658
/* end confdefs.h. */
3660
/* Override any gcc2 internal prototype to avoid an error. */
3664
/* We use char because int might match the return type of a gcc2
3665
builtin and then its argument prototype would still apply. */
3675
rm -f conftest.$ac_objext conftest$ac_exeext
3676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3677
(eval $ac_link) 2>&5
3679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680
(exit $ac_status); } &&
3681
{ ac_try='test -s conftest$ac_exeext'
3682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686
(exit $ac_status); }; }; then
3687
ac_cv_lib_kvm_kvm_open=yes
3689
echo "$as_me: failed program was:" >&5
3690
sed 's/^/| /' conftest.$ac_ext >&5
3692
ac_cv_lib_kvm_kvm_open=no
3694
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3695
LIBS=$ac_check_lib_save_LIBS
3697
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
3698
echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
3699
if test $ac_cv_lib_kvm_kvm_open = yes; then
3703
# Check for the 4.4BSD definition of getloadavg.
3704
echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
3705
echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
3706
if test "${ac_cv_lib_util_getloadavg+set}" = set; then
3707
echo $ECHO_N "(cached) $ECHO_C" >&6
3709
ac_check_lib_save_LIBS=$LIBS
3711
cat >conftest.$ac_ext <<_ACEOF
3712
#line $LINENO "configure"
3715
cat confdefs.h >>conftest.$ac_ext
3716
cat >>conftest.$ac_ext <<_ACEOF
3717
/* end confdefs.h. */
3719
/* Override any gcc2 internal prototype to avoid an error. */
3723
/* We use char because int might match the return type of a gcc2
3724
builtin and then its argument prototype would still apply. */
3734
rm -f conftest.$ac_objext conftest$ac_exeext
3735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3736
(eval $ac_link) 2>&5
3738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739
(exit $ac_status); } &&
3740
{ ac_try='test -s conftest$ac_exeext'
3741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745
(exit $ac_status); }; }; then
3746
ac_cv_lib_util_getloadavg=yes
3748
echo "$as_me: failed program was:" >&5
3749
sed 's/^/| /' conftest.$ac_ext >&5
3751
ac_cv_lib_util_getloadavg=no
3753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3754
LIBS=$ac_check_lib_save_LIBS
3756
echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
3757
echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
3758
if test $ac_cv_lib_util_getloadavg = yes; then
3759
LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
3764
if test $ac_have_func = no; then
3765
# There is a commonly available library for RS/6000 AIX.
3766
# Since it is not a standard part of AIX, it might be installed locally.
3767
ac_getloadavg_LIBS=$LIBS
3768
LIBS="-L/usr/local/lib $LIBS"
3769
echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
3770
echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
3771
if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
3772
echo $ECHO_N "(cached) $ECHO_C" >&6
3774
ac_check_lib_save_LIBS=$LIBS
3775
LIBS="-lgetloadavg $LIBS"
3776
cat >conftest.$ac_ext <<_ACEOF
3777
#line $LINENO "configure"
3780
cat confdefs.h >>conftest.$ac_ext
3781
cat >>conftest.$ac_ext <<_ACEOF
3782
/* end confdefs.h. */
3784
/* Override any gcc2 internal prototype to avoid an error. */
3788
/* We use char because int might match the return type of a gcc2
3789
builtin and then its argument prototype would still apply. */
3799
rm -f conftest.$ac_objext conftest$ac_exeext
3800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3801
(eval $ac_link) 2>&5
3803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804
(exit $ac_status); } &&
3805
{ ac_try='test -s conftest$ac_exeext'
3806
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
(exit $ac_status); }; }; then
3811
ac_cv_lib_getloadavg_getloadavg=yes
3813
echo "$as_me: failed program was:" >&5
3814
sed 's/^/| /' conftest.$ac_ext >&5
3816
ac_cv_lib_getloadavg_getloadavg=no
3818
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3819
LIBS=$ac_check_lib_save_LIBS
3821
echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
3822
echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
3823
if test $ac_cv_lib_getloadavg_getloadavg = yes; then
3824
LIBS="-lgetloadavg $LIBS"
3826
LIBS=$ac_getloadavg_LIBS
3831
# Make sure it is really in the library, if we think we found it,
3832
# otherwise set up the replacement function.
3834
for ac_func in getloadavg
3836
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3837
echo "$as_me:$LINENO: checking for $ac_func" >&5
3838
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3839
if eval "test \"\${$as_ac_var+set}\" = set"; then
3840
echo $ECHO_N "(cached) $ECHO_C" >&6
3842
cat >conftest.$ac_ext <<_ACEOF
3843
#line $LINENO "configure"
3846
cat confdefs.h >>conftest.$ac_ext
3847
cat >>conftest.$ac_ext <<_ACEOF
3848
/* end confdefs.h. */
3849
/* System header to define __stub macros and hopefully few prototypes,
3850
which can conflict with char $ac_func (); below.
3851
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3852
<limits.h> exists even on freestanding compilers. */
3854
# include <limits.h>
3856
# include <assert.h>
3858
/* Override any gcc2 internal prototype to avoid an error. */
3863
/* We use char because int might match the return type of a gcc2
3864
builtin and then its argument prototype would still apply. */
3866
/* The GNU C library defines this for functions which it implements
3867
to always fail with ENOSYS. Some functions are actually named
3868
something starting with __ and the normal name is an alias. */
3869
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3872
char (*f) () = $ac_func;
3881
return f != $ac_func;
3886
rm -f conftest.$ac_objext conftest$ac_exeext
3887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3888
(eval $ac_link) 2>&5
3890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
(exit $ac_status); } &&
3892
{ ac_try='test -s conftest$ac_exeext'
3893
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
(exit $ac_status); }; }; then
3898
eval "$as_ac_var=yes"
3900
echo "$as_me: failed program was:" >&5
3901
sed 's/^/| /' conftest.$ac_ext >&5
3903
eval "$as_ac_var=no"
3905
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3907
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3908
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3909
if test `eval echo '${'$as_ac_var'}'` = yes; then
3910
cat >>confdefs.h <<_ACEOF
3911
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3915
LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
3917
cat >>confdefs.h <<\_ACEOF
3918
#define C_GETLOADAVG 1
3921
# Figure out what our getloadavg.c needs.
3923
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
3924
echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
3925
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
3926
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
3927
echo $ECHO_N "(cached) $ECHO_C" >&6
3929
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
3930
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
3932
# Is the header compilable?
3933
echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
3934
echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
3935
cat >conftest.$ac_ext <<_ACEOF
3936
#line $LINENO "configure"
3939
cat confdefs.h >>conftest.$ac_ext
3940
cat >>conftest.$ac_ext <<_ACEOF
3941
/* end confdefs.h. */
3942
$ac_includes_default
3943
#include <sys/dg_sys_info.h>
3945
rm -f conftest.$ac_objext
3946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3947
(eval $ac_compile) 2>&5
3949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
(exit $ac_status); } &&
3951
{ ac_try='test -s conftest.$ac_objext'
3952
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3955
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
(exit $ac_status); }; }; then
3957
ac_header_compiler=yes
3959
echo "$as_me: failed program was:" >&5
3960
sed 's/^/| /' conftest.$ac_ext >&5
3962
ac_header_compiler=no
3964
rm -f conftest.$ac_objext conftest.$ac_ext
3965
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3966
echo "${ECHO_T}$ac_header_compiler" >&6
3968
# Is the header present?
3969
echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
3970
echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
3971
cat >conftest.$ac_ext <<_ACEOF
3972
#line $LINENO "configure"
3975
cat confdefs.h >>conftest.$ac_ext
3976
cat >>conftest.$ac_ext <<_ACEOF
3977
/* end confdefs.h. */
3978
#include <sys/dg_sys_info.h>
3980
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3981
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3983
grep -v '^ *+' conftest.er1 >conftest.err
3985
cat conftest.err >&5
3986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987
(exit $ac_status); } >/dev/null; then
3988
if test -s conftest.err; then
3989
ac_cpp_err=$ac_c_preproc_warn_flag
3996
if test -z "$ac_cpp_err"; then
3997
ac_header_preproc=yes
3999
echo "$as_me: failed program was:" >&5
4000
sed 's/^/| /' conftest.$ac_ext >&5
4002
ac_header_preproc=no
4004
rm -f conftest.err conftest.$ac_ext
4005
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4006
echo "${ECHO_T}$ac_header_preproc" >&6
4008
# So? What about this header?
4009
case $ac_header_compiler:$ac_header_preproc in
4011
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
4012
echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4013
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
4014
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
4017
## ------------------------------------ ##
4018
## Report this to bug-autoconf@gnu.org. ##
4019
## ------------------------------------ ##
4022
sed "s/^/$as_me: WARNING: /" >&2
4025
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
4026
echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
4027
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
4028
echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
4029
{ echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
4030
echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
4033
## ------------------------------------ ##
4034
## Report this to bug-autoconf@gnu.org. ##
4035
## ------------------------------------ ##
4038
sed "s/^/$as_me: WARNING: /" >&2
4041
echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
4042
echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
4043
if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
4044
echo $ECHO_N "(cached) $ECHO_C" >&6
4046
ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
4048
echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
4049
echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
4052
if test $ac_cv_header_sys_dg_sys_info_h = yes; then
4055
cat >>confdefs.h <<\_ACEOF
4060
echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
4061
echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
4062
if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
4063
echo $ECHO_N "(cached) $ECHO_C" >&6
4065
ac_check_lib_save_LIBS=$LIBS
4067
cat >conftest.$ac_ext <<_ACEOF
4068
#line $LINENO "configure"
4071
cat confdefs.h >>conftest.$ac_ext
4072
cat >>conftest.$ac_ext <<_ACEOF
4073
/* end confdefs.h. */
4075
/* Override any gcc2 internal prototype to avoid an error. */
4079
/* We use char because int might match the return type of a gcc2
4080
builtin and then its argument prototype would still apply. */
4081
char dg_sys_info ();
4090
rm -f conftest.$ac_objext conftest$ac_exeext
4091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4092
(eval $ac_link) 2>&5
4094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095
(exit $ac_status); } &&
4096
{ ac_try='test -s conftest$ac_exeext'
4097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
(exit $ac_status); }; }; then
4102
ac_cv_lib_dgc_dg_sys_info=yes
4104
echo "$as_me: failed program was:" >&5
4105
sed 's/^/| /' conftest.$ac_ext >&5
4107
ac_cv_lib_dgc_dg_sys_info=no
4109
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4110
LIBS=$ac_check_lib_save_LIBS
4112
echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
4113
echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
4114
if test $ac_cv_lib_dgc_dg_sys_info = yes; then
4115
cat >>confdefs.h <<_ACEOF
4116
#define HAVE_LIBDGC 1
4127
if test "${ac_cv_header_locale_h+set}" = set; then
4128
echo "$as_me:$LINENO: checking for locale.h" >&5
4129
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
4130
if test "${ac_cv_header_locale_h+set}" = set; then
4131
echo $ECHO_N "(cached) $ECHO_C" >&6
4133
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
4134
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
4136
# Is the header compilable?
4137
echo "$as_me:$LINENO: checking locale.h usability" >&5
4138
echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
4139
cat >conftest.$ac_ext <<_ACEOF
4140
#line $LINENO "configure"
4143
cat confdefs.h >>conftest.$ac_ext
4144
cat >>conftest.$ac_ext <<_ACEOF
4145
/* end confdefs.h. */
4146
$ac_includes_default
4149
rm -f conftest.$ac_objext
4150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4151
(eval $ac_compile) 2>&5
4153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154
(exit $ac_status); } &&
4155
{ ac_try='test -s conftest.$ac_objext'
4156
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160
(exit $ac_status); }; }; then
4161
ac_header_compiler=yes
4163
echo "$as_me: failed program was:" >&5
4164
sed 's/^/| /' conftest.$ac_ext >&5
4166
ac_header_compiler=no
4168
rm -f conftest.$ac_objext conftest.$ac_ext
4169
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170
echo "${ECHO_T}$ac_header_compiler" >&6
4172
# Is the header present?
4173
echo "$as_me:$LINENO: checking locale.h presence" >&5
4174
echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
4175
cat >conftest.$ac_ext <<_ACEOF
4176
#line $LINENO "configure"
4179
cat confdefs.h >>conftest.$ac_ext
4180
cat >>conftest.$ac_ext <<_ACEOF
4181
/* end confdefs.h. */
4184
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4185
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4187
grep -v '^ *+' conftest.er1 >conftest.err
4189
cat conftest.err >&5
4190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191
(exit $ac_status); } >/dev/null; then
4192
if test -s conftest.err; then
4193
ac_cpp_err=$ac_c_preproc_warn_flag
4200
if test -z "$ac_cpp_err"; then
4201
ac_header_preproc=yes
4203
echo "$as_me: failed program was:" >&5
4204
sed 's/^/| /' conftest.$ac_ext >&5
4206
ac_header_preproc=no
4208
rm -f conftest.err conftest.$ac_ext
4209
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4210
echo "${ECHO_T}$ac_header_preproc" >&6
4212
# So? What about this header?
4213
case $ac_header_compiler:$ac_header_preproc in
4215
{ echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
4216
echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4217
{ echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
4218
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
4221
## ------------------------------------ ##
4222
## Report this to bug-autoconf@gnu.org. ##
4223
## ------------------------------------ ##
4226
sed "s/^/$as_me: WARNING: /" >&2
4229
{ echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
4230
echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
4231
{ echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
4232
echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
4233
{ echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
4234
echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
4237
## ------------------------------------ ##
4238
## Report this to bug-autoconf@gnu.org. ##
4239
## ------------------------------------ ##
4242
sed "s/^/$as_me: WARNING: /" >&2
4245
echo "$as_me:$LINENO: checking for locale.h" >&5
4246
echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
4247
if test "${ac_cv_header_locale_h+set}" = set; then
4248
echo $ECHO_N "(cached) $ECHO_C" >&6
4250
ac_cv_header_locale_h=$ac_header_preproc
4252
echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
4253
echo "${ECHO_T}$ac_cv_header_locale_h" >&6
4259
for ac_func in setlocale
4261
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4262
echo "$as_me:$LINENO: checking for $ac_func" >&5
4263
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4264
if eval "test \"\${$as_ac_var+set}\" = set"; then
4265
echo $ECHO_N "(cached) $ECHO_C" >&6
4267
cat >conftest.$ac_ext <<_ACEOF
4268
#line $LINENO "configure"
4271
cat confdefs.h >>conftest.$ac_ext
4272
cat >>conftest.$ac_ext <<_ACEOF
4273
/* end confdefs.h. */
4274
/* System header to define __stub macros and hopefully few prototypes,
4275
which can conflict with char $ac_func (); below.
4276
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277
<limits.h> exists even on freestanding compilers. */
4279
# include <limits.h>
4281
# include <assert.h>
4283
/* Override any gcc2 internal prototype to avoid an error. */
4288
/* We use char because int might match the return type of a gcc2
4289
builtin and then its argument prototype would still apply. */
4291
/* The GNU C library defines this for functions which it implements
4292
to always fail with ENOSYS. Some functions are actually named
4293
something starting with __ and the normal name is an alias. */
4294
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4297
char (*f) () = $ac_func;
4306
return f != $ac_func;
4311
rm -f conftest.$ac_objext conftest$ac_exeext
4312
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4313
(eval $ac_link) 2>&5
4315
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316
(exit $ac_status); } &&
4317
{ ac_try='test -s conftest$ac_exeext'
4318
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322
(exit $ac_status); }; }; then
4323
eval "$as_ac_var=yes"
4325
echo "$as_me: failed program was:" >&5
4326
sed 's/^/| /' conftest.$ac_ext >&5
4328
eval "$as_ac_var=no"
4330
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4332
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4333
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4334
if test `eval echo '${'$as_ac_var'}'` = yes; then
4335
cat >>confdefs.h <<_ACEOF
4336
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4343
# We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
4344
# uses stabs), but it is still SVR4. We cannot check for <elf.h> because
4345
# Irix 4.0.5F has the header but not the library.
4346
if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
4349
cat >>confdefs.h <<\_ACEOF
4355
if test $ac_have_func = no; then
4356
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
4357
echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
4358
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
4359
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
4360
echo $ECHO_N "(cached) $ECHO_C" >&6
4362
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
4363
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
4365
# Is the header compilable?
4366
echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
4367
echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
4368
cat >conftest.$ac_ext <<_ACEOF
4369
#line $LINENO "configure"
4372
cat confdefs.h >>conftest.$ac_ext
4373
cat >>conftest.$ac_ext <<_ACEOF
4374
/* end confdefs.h. */
4375
$ac_includes_default
4376
#include <inq_stats/cpustats.h>
4378
rm -f conftest.$ac_objext
4379
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4380
(eval $ac_compile) 2>&5
4382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
(exit $ac_status); } &&
4384
{ ac_try='test -s conftest.$ac_objext'
4385
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389
(exit $ac_status); }; }; then
4390
ac_header_compiler=yes
4392
echo "$as_me: failed program was:" >&5
4393
sed 's/^/| /' conftest.$ac_ext >&5
4395
ac_header_compiler=no
4397
rm -f conftest.$ac_objext conftest.$ac_ext
4398
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4399
echo "${ECHO_T}$ac_header_compiler" >&6
4401
# Is the header present?
4402
echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
4403
echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
4404
cat >conftest.$ac_ext <<_ACEOF
4405
#line $LINENO "configure"
4408
cat confdefs.h >>conftest.$ac_ext
4409
cat >>conftest.$ac_ext <<_ACEOF
4410
/* end confdefs.h. */
4411
#include <inq_stats/cpustats.h>
4413
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4414
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4416
grep -v '^ *+' conftest.er1 >conftest.err
4418
cat conftest.err >&5
4419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420
(exit $ac_status); } >/dev/null; then
4421
if test -s conftest.err; then
4422
ac_cpp_err=$ac_c_preproc_warn_flag
4429
if test -z "$ac_cpp_err"; then
4430
ac_header_preproc=yes
4432
echo "$as_me: failed program was:" >&5
4433
sed 's/^/| /' conftest.$ac_ext >&5
4435
ac_header_preproc=no
4437
rm -f conftest.err conftest.$ac_ext
4438
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439
echo "${ECHO_T}$ac_header_preproc" >&6
4441
# So? What about this header?
4442
case $ac_header_compiler:$ac_header_preproc in
4444
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
4445
echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
4447
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
4450
## ------------------------------------ ##
4451
## Report this to bug-autoconf@gnu.org. ##
4452
## ------------------------------------ ##
4455
sed "s/^/$as_me: WARNING: /" >&2
4458
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
4459
echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
4460
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
4461
echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
4462
{ echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
4463
echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
4466
## ------------------------------------ ##
4467
## Report this to bug-autoconf@gnu.org. ##
4468
## ------------------------------------ ##
4471
sed "s/^/$as_me: WARNING: /" >&2
4474
echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
4475
echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
4476
if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
4477
echo $ECHO_N "(cached) $ECHO_C" >&6
4479
ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
4481
echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
4482
echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
4485
if test $ac_cv_header_inq_stats_cpustats_h = yes; then
4488
cat >>confdefs.h <<\_ACEOF
4493
cat >>confdefs.h <<\_ACEOF
4502
if test $ac_have_func = no; then
4503
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
4504
echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
4505
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
4506
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
4507
echo $ECHO_N "(cached) $ECHO_C" >&6
4509
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
4510
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
4512
# Is the header compilable?
4513
echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
4514
echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
4515
cat >conftest.$ac_ext <<_ACEOF
4516
#line $LINENO "configure"
4519
cat confdefs.h >>conftest.$ac_ext
4520
cat >>conftest.$ac_ext <<_ACEOF
4521
/* end confdefs.h. */
4522
$ac_includes_default
4523
#include <sys/cpustats.h>
4525
rm -f conftest.$ac_objext
4526
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4527
(eval $ac_compile) 2>&5
4529
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530
(exit $ac_status); } &&
4531
{ ac_try='test -s conftest.$ac_objext'
4532
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536
(exit $ac_status); }; }; then
4537
ac_header_compiler=yes
4539
echo "$as_me: failed program was:" >&5
4540
sed 's/^/| /' conftest.$ac_ext >&5
4542
ac_header_compiler=no
4544
rm -f conftest.$ac_objext conftest.$ac_ext
4545
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4546
echo "${ECHO_T}$ac_header_compiler" >&6
4548
# Is the header present?
4549
echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
4550
echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
4551
cat >conftest.$ac_ext <<_ACEOF
4552
#line $LINENO "configure"
4555
cat confdefs.h >>conftest.$ac_ext
4556
cat >>conftest.$ac_ext <<_ACEOF
4557
/* end confdefs.h. */
4558
#include <sys/cpustats.h>
4560
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4561
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4563
grep -v '^ *+' conftest.er1 >conftest.err
4565
cat conftest.err >&5
4566
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567
(exit $ac_status); } >/dev/null; then
4568
if test -s conftest.err; then
4569
ac_cpp_err=$ac_c_preproc_warn_flag
4576
if test -z "$ac_cpp_err"; then
4577
ac_header_preproc=yes
4579
echo "$as_me: failed program was:" >&5
4580
sed 's/^/| /' conftest.$ac_ext >&5
4582
ac_header_preproc=no
4584
rm -f conftest.err conftest.$ac_ext
4585
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4586
echo "${ECHO_T}$ac_header_preproc" >&6
4588
# So? What about this header?
4589
case $ac_header_compiler:$ac_header_preproc in
4591
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
4592
echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4593
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
4594
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
4597
## ------------------------------------ ##
4598
## Report this to bug-autoconf@gnu.org. ##
4599
## ------------------------------------ ##
4602
sed "s/^/$as_me: WARNING: /" >&2
4605
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
4606
echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
4607
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
4608
echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
4609
{ echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
4610
echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
4613
## ------------------------------------ ##
4614
## Report this to bug-autoconf@gnu.org. ##
4615
## ------------------------------------ ##
4618
sed "s/^/$as_me: WARNING: /" >&2
4621
echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
4622
echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
4623
if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
4624
echo $ECHO_N "(cached) $ECHO_C" >&6
4626
ac_cv_header_sys_cpustats_h=$ac_header_preproc
4628
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
4629
echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
4632
if test $ac_cv_header_sys_cpustats_h = yes; then
4633
ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
4642
if test $ac_have_func = no; then
4644
for ac_header in mach/mach.h
4646
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4647
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4648
echo "$as_me:$LINENO: checking for $ac_header" >&5
4649
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4650
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4651
echo $ECHO_N "(cached) $ECHO_C" >&6
4653
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4654
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4656
# Is the header compilable?
4657
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4658
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4659
cat >conftest.$ac_ext <<_ACEOF
4660
#line $LINENO "configure"
4663
cat confdefs.h >>conftest.$ac_ext
4664
cat >>conftest.$ac_ext <<_ACEOF
4665
/* end confdefs.h. */
4666
$ac_includes_default
4667
#include <$ac_header>
4669
rm -f conftest.$ac_objext
4670
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4671
(eval $ac_compile) 2>&5
4673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674
(exit $ac_status); } &&
4675
{ ac_try='test -s conftest.$ac_objext'
4676
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680
(exit $ac_status); }; }; then
4681
ac_header_compiler=yes
4683
echo "$as_me: failed program was:" >&5
4684
sed 's/^/| /' conftest.$ac_ext >&5
4686
ac_header_compiler=no
4688
rm -f conftest.$ac_objext conftest.$ac_ext
4689
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690
echo "${ECHO_T}$ac_header_compiler" >&6
4692
# Is the header present?
4693
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695
cat >conftest.$ac_ext <<_ACEOF
4696
#line $LINENO "configure"
4699
cat confdefs.h >>conftest.$ac_ext
4700
cat >>conftest.$ac_ext <<_ACEOF
4701
/* end confdefs.h. */
4702
#include <$ac_header>
4704
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4705
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4707
grep -v '^ *+' conftest.er1 >conftest.err
4709
cat conftest.err >&5
4710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711
(exit $ac_status); } >/dev/null; then
4712
if test -s conftest.err; then
4713
ac_cpp_err=$ac_c_preproc_warn_flag
4720
if test -z "$ac_cpp_err"; then
4721
ac_header_preproc=yes
4723
echo "$as_me: failed program was:" >&5
4724
sed 's/^/| /' conftest.$ac_ext >&5
4726
ac_header_preproc=no
4728
rm -f conftest.err conftest.$ac_ext
4729
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4730
echo "${ECHO_T}$ac_header_preproc" >&6
4732
# So? What about this header?
4733
case $ac_header_compiler:$ac_header_preproc in
4735
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4737
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4738
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4741
## ------------------------------------ ##
4742
## Report this to bug-autoconf@gnu.org. ##
4743
## ------------------------------------ ##
4746
sed "s/^/$as_me: WARNING: /" >&2
4749
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4750
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4751
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4752
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4753
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4754
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4757
## ------------------------------------ ##
4758
## Report this to bug-autoconf@gnu.org. ##
4759
## ------------------------------------ ##
4762
sed "s/^/$as_me: WARNING: /" >&2
4765
echo "$as_me:$LINENO: checking for $ac_header" >&5
4766
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4767
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4768
echo $ECHO_N "(cached) $ECHO_C" >&6
4770
eval "$as_ac_Header=$ac_header_preproc"
4772
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4773
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4776
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4777
cat >>confdefs.h <<_ACEOF
4778
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4788
for ac_header in nlist.h
4790
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4791
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4792
echo "$as_me:$LINENO: checking for $ac_header" >&5
4793
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4794
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4795
echo $ECHO_N "(cached) $ECHO_C" >&6
4797
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4798
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4800
# Is the header compilable?
4801
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4802
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4803
cat >conftest.$ac_ext <<_ACEOF
4804
#line $LINENO "configure"
4807
cat confdefs.h >>conftest.$ac_ext
4808
cat >>conftest.$ac_ext <<_ACEOF
4809
/* end confdefs.h. */
4810
$ac_includes_default
4811
#include <$ac_header>
4813
rm -f conftest.$ac_objext
4814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4815
(eval $ac_compile) 2>&5
4817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818
(exit $ac_status); } &&
4819
{ ac_try='test -s conftest.$ac_objext'
4820
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824
(exit $ac_status); }; }; then
4825
ac_header_compiler=yes
4827
echo "$as_me: failed program was:" >&5
4828
sed 's/^/| /' conftest.$ac_ext >&5
4830
ac_header_compiler=no
4832
rm -f conftest.$ac_objext conftest.$ac_ext
4833
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4834
echo "${ECHO_T}$ac_header_compiler" >&6
4836
# Is the header present?
4837
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4838
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4839
cat >conftest.$ac_ext <<_ACEOF
4840
#line $LINENO "configure"
4843
cat confdefs.h >>conftest.$ac_ext
4844
cat >>conftest.$ac_ext <<_ACEOF
4845
/* end confdefs.h. */
4846
#include <$ac_header>
4848
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4849
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4851
grep -v '^ *+' conftest.er1 >conftest.err
4853
cat conftest.err >&5
4854
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4855
(exit $ac_status); } >/dev/null; then
4856
if test -s conftest.err; then
4857
ac_cpp_err=$ac_c_preproc_warn_flag
4864
if test -z "$ac_cpp_err"; then
4865
ac_header_preproc=yes
4867
echo "$as_me: failed program was:" >&5
4868
sed 's/^/| /' conftest.$ac_ext >&5
4870
ac_header_preproc=no
4872
rm -f conftest.err conftest.$ac_ext
4873
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4874
echo "${ECHO_T}$ac_header_preproc" >&6
4876
# So? What about this header?
4877
case $ac_header_compiler:$ac_header_preproc in
4879
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4880
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4881
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4882
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4885
## ------------------------------------ ##
4886
## Report this to bug-autoconf@gnu.org. ##
4887
## ------------------------------------ ##
4890
sed "s/^/$as_me: WARNING: /" >&2
4893
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4894
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4895
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4896
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4897
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4898
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4901
## ------------------------------------ ##
4902
## Report this to bug-autoconf@gnu.org. ##
4903
## ------------------------------------ ##
4906
sed "s/^/$as_me: WARNING: /" >&2
4909
echo "$as_me:$LINENO: checking for $ac_header" >&5
4910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4912
echo $ECHO_N "(cached) $ECHO_C" >&6
4914
eval "$as_ac_Header=$ac_header_preproc"
4916
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4917
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4920
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4921
cat >>confdefs.h <<_ACEOF
4922
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4924
echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
4925
echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
4926
if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
4927
echo $ECHO_N "(cached) $ECHO_C" >&6
4929
cat >conftest.$ac_ext <<_ACEOF
4930
#line $LINENO "configure"
4933
cat confdefs.h >>conftest.$ac_ext
4934
cat >>conftest.$ac_ext <<_ACEOF
4935
/* end confdefs.h. */
4941
static struct nlist ac_aggr;
4942
if (ac_aggr.n_un.n_name)
4948
rm -f conftest.$ac_objext
4949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4950
(eval $ac_compile) 2>&5
4952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953
(exit $ac_status); } &&
4954
{ ac_try='test -s conftest.$ac_objext'
4955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959
(exit $ac_status); }; }; then
4960
ac_cv_member_struct_nlist_n_un_n_name=yes
4962
echo "$as_me: failed program was:" >&5
4963
sed 's/^/| /' conftest.$ac_ext >&5
4965
cat >conftest.$ac_ext <<_ACEOF
4966
#line $LINENO "configure"
4969
cat confdefs.h >>conftest.$ac_ext
4970
cat >>conftest.$ac_ext <<_ACEOF
4971
/* end confdefs.h. */
4977
static struct nlist ac_aggr;
4978
if (sizeof ac_aggr.n_un.n_name)
4984
rm -f conftest.$ac_objext
4985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4986
(eval $ac_compile) 2>&5
4988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
(exit $ac_status); } &&
4990
{ ac_try='test -s conftest.$ac_objext'
4991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995
(exit $ac_status); }; }; then
4996
ac_cv_member_struct_nlist_n_un_n_name=yes
4998
echo "$as_me: failed program was:" >&5
4999
sed 's/^/| /' conftest.$ac_ext >&5
5001
ac_cv_member_struct_nlist_n_un_n_name=no
5003
rm -f conftest.$ac_objext conftest.$ac_ext
5005
rm -f conftest.$ac_objext conftest.$ac_ext
5007
echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
5008
echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
5009
if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
5011
cat >>confdefs.h <<_ACEOF
5012
#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
5016
cat >>confdefs.h <<\_ACEOF
5017
#define NLIST_NAME_UNION 1
5031
# Some definitions of getloadavg require that the program be installed setgid.
5032
echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
5033
echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
5034
if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
5035
echo $ECHO_N "(cached) $ECHO_C" >&6
5037
cat >conftest.$ac_ext <<_ACEOF
5038
#line $LINENO "configure"
5041
cat confdefs.h >>conftest.$ac_ext
5042
cat >>conftest.$ac_ext <<_ACEOF
5043
/* end confdefs.h. */
5044
#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
5045
#ifdef LDAV_PRIVILEGED
5046
Yowza Am I SETGID yet
5049
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5050
$EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
5051
ac_cv_func_getloadavg_setgid=yes
5053
ac_cv_func_getloadavg_setgid=no
5058
echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
5059
echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
5060
if test $ac_cv_func_getloadavg_setgid = yes; then
5063
cat >>confdefs.h <<\_ACEOF
5064
#define GETLOADAVG_PRIVILEGED 1
5071
if test $ac_cv_func_getloadavg_setgid = yes; then
5072
echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
5073
echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
5074
if test "${ac_cv_group_kmem+set}" = set; then
5075
echo $ECHO_N "(cached) $ECHO_C" >&6
5077
# On Solaris, /dev/kmem is a symlink. Get info on the real file.
5078
ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
5079
# If we got an error (system does not support symlinks), try without -L.
5080
test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
5081
ac_cv_group_kmem=`echo $ac_ls_output \
5082
| sed -ne 's/[ ][ ]*/ /g;
5083
s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
5087
echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
5088
echo "${ECHO_T}$ac_cv_group_kmem" >&6
5089
KMEM_GROUP=$ac_cv_group_kmem
5091
if test "x$ac_save_LIBS" = x; then
5092
GETLOADAVG_LIBS=$LIBS
5094
GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
5099
srcdir=$saved_srcdir
5101
echo "$as_me:$LINENO: checking for working strtod" >&5
5102
echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
5103
if test "${ac_cv_func_strtod+set}" = set; then
5104
echo $ECHO_N "(cached) $ECHO_C" >&6
5106
if test "$cross_compiling" = yes; then
5107
ac_cv_func_strtod=no
5109
cat >conftest.$ac_ext <<_ACEOF
5110
#line $LINENO "configure"
5113
cat confdefs.h >>conftest.$ac_ext
5114
cat >>conftest.$ac_ext <<_ACEOF
5115
/* end confdefs.h. */
5122
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
5123
char *string = " +69";
5126
value = strtod (string, &term);
5127
if (value != 69 || term != (string + 4))
5132
/* Under Solaris 2.4, strtod returns the wrong value for the
5133
terminating character under some conditions. */
5134
char *string = "NaN";
5136
strtod (string, &term);
5137
if (term != string && *(term - 1) == 0)
5144
rm -f conftest$ac_exeext
5145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5146
(eval $ac_link) 2>&5
5148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5150
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5153
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154
(exit $ac_status); }; }; then
5155
ac_cv_func_strtod=yes
5157
echo "$as_me: program exited with status $ac_status" >&5
5158
echo "$as_me: failed program was:" >&5
5159
sed 's/^/| /' conftest.$ac_ext >&5
5162
ac_cv_func_strtod=no
5164
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167
echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
5168
echo "${ECHO_T}$ac_cv_func_strtod" >&6
5169
if test $ac_cv_func_strtod = no; then
5170
LIBOBJS="$LIBOBJS strtod.$ac_objext"
5171
echo "$as_me:$LINENO: checking for pow" >&5
5172
echo $ECHO_N "checking for pow... $ECHO_C" >&6
5173
if test "${ac_cv_func_pow+set}" = set; then
5174
echo $ECHO_N "(cached) $ECHO_C" >&6
5176
cat >conftest.$ac_ext <<_ACEOF
5177
#line $LINENO "configure"
5180
cat confdefs.h >>conftest.$ac_ext
5181
cat >>conftest.$ac_ext <<_ACEOF
5182
/* end confdefs.h. */
5183
/* System header to define __stub macros and hopefully few prototypes,
5184
which can conflict with char pow (); below.
5185
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186
<limits.h> exists even on freestanding compilers. */
5188
# include <limits.h>
5190
# include <assert.h>
5192
/* Override any gcc2 internal prototype to avoid an error. */
5197
/* We use char because int might match the return type of a gcc2
5198
builtin and then its argument prototype would still apply. */
5200
/* The GNU C library defines this for functions which it implements
5201
to always fail with ENOSYS. Some functions are actually named
5202
something starting with __ and the normal name is an alias. */
5203
#if defined (__stub_pow) || defined (__stub___pow)
5220
rm -f conftest.$ac_objext conftest$ac_exeext
5221
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5222
(eval $ac_link) 2>&5
5224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225
(exit $ac_status); } &&
5226
{ ac_try='test -s conftest$ac_exeext'
5227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
(exit $ac_status); }; }; then
5234
echo "$as_me: failed program was:" >&5
5235
sed 's/^/| /' conftest.$ac_ext >&5
5239
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5241
echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
5242
echo "${ECHO_T}$ac_cv_func_pow" >&6
5244
if test $ac_cv_func_pow = no; then
5245
echo "$as_me:$LINENO: checking for pow in -lm" >&5
5246
echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
5247
if test "${ac_cv_lib_m_pow+set}" = set; then
5248
echo $ECHO_N "(cached) $ECHO_C" >&6
5250
ac_check_lib_save_LIBS=$LIBS
5252
cat >conftest.$ac_ext <<_ACEOF
5253
#line $LINENO "configure"
5256
cat confdefs.h >>conftest.$ac_ext
5257
cat >>conftest.$ac_ext <<_ACEOF
5258
/* end confdefs.h. */
5260
/* Override any gcc2 internal prototype to avoid an error. */
5264
/* We use char because int might match the return type of a gcc2
5265
builtin and then its argument prototype would still apply. */
5275
rm -f conftest.$ac_objext conftest$ac_exeext
5276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5277
(eval $ac_link) 2>&5
5279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280
(exit $ac_status); } &&
5281
{ ac_try='test -s conftest$ac_exeext'
5282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286
(exit $ac_status); }; }; then
5289
echo "$as_me: failed program was:" >&5
5290
sed 's/^/| /' conftest.$ac_ext >&5
5294
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5295
LIBS=$ac_check_lib_save_LIBS
5297
echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
5298
echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
5299
if test $ac_cv_lib_m_pow = yes; then
5302
{ echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
5303
echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5310
if test -n "$ac_tool_prefix"; then
5311
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5312
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5313
echo "$as_me:$LINENO: checking for $ac_word" >&5
5314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315
if test "${ac_cv_prog_RANLIB+set}" = set; then
5316
echo $ECHO_N "(cached) $ECHO_C" >&6
5318
if test -n "$RANLIB"; then
5319
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325
test -z "$as_dir" && as_dir=.
5326
for ac_exec_ext in '' $ac_executable_extensions; do
5327
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5328
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5329
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337
RANLIB=$ac_cv_prog_RANLIB
5338
if test -n "$RANLIB"; then
5339
echo "$as_me:$LINENO: result: $RANLIB" >&5
5340
echo "${ECHO_T}$RANLIB" >&6
5342
echo "$as_me:$LINENO: result: no" >&5
5343
echo "${ECHO_T}no" >&6
5347
if test -z "$ac_cv_prog_RANLIB"; then
5348
ac_ct_RANLIB=$RANLIB
5349
# Extract the first word of "ranlib", so it can be a program name with args.
5350
set dummy ranlib; ac_word=$2
5351
echo "$as_me:$LINENO: checking for $ac_word" >&5
5352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5353
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5354
echo $ECHO_N "(cached) $ECHO_C" >&6
5356
if test -n "$ac_ct_RANLIB"; then
5357
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363
test -z "$as_dir" && as_dir=.
5364
for ac_exec_ext in '' $ac_executable_extensions; do
5365
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5366
ac_cv_prog_ac_ct_RANLIB="ranlib"
5367
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5373
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5376
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5377
if test -n "$ac_ct_RANLIB"; then
5378
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5379
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5381
echo "$as_me:$LINENO: result: no" >&5
5382
echo "${ECHO_T}no" >&6
5385
RANLIB=$ac_ct_RANLIB
5387
RANLIB="$ac_cv_prog_RANLIB"
5391
# Extract the first word of "aclocal", so it can be a program name with args.
5392
set dummy aclocal; ac_word=$2
5393
echo "$as_me:$LINENO: checking for $ac_word" >&5
5394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5395
if test "${ac_cv_path_ACLOCAL+set}" = set; then
5396
echo $ECHO_N "(cached) $ECHO_C" >&6
5400
ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
5403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5407
test -z "$as_dir" && as_dir=.
5408
for ac_exec_ext in '' $ac_executable_extensions; do
5409
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5410
ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
5411
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5420
ACLOCAL=$ac_cv_path_ACLOCAL
5422
if test -n "$ACLOCAL"; then
5423
echo "$as_me:$LINENO: result: $ACLOCAL" >&5
5424
echo "${ECHO_T}$ACLOCAL" >&6
5426
echo "$as_me:$LINENO: result: no" >&5
5427
echo "${ECHO_T}no" >&6
5430
# Extract the first word of "automake", so it can be a program name with args.
5431
set dummy automake; ac_word=$2
5432
echo "$as_me:$LINENO: checking for $ac_word" >&5
5433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5434
if test "${ac_cv_path_AUTOMAKE+set}" = set; then
5435
echo $ECHO_N "(cached) $ECHO_C" >&6
5439
ac_cv_path_AUTOMAKE="$AUTOMAKE" # Let the user override the test with a path.
5442
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446
test -z "$as_dir" && as_dir=.
5447
for ac_exec_ext in '' $ac_executable_extensions; do
5448
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5449
ac_cv_path_AUTOMAKE="$as_dir/$ac_word$ac_exec_ext"
5450
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5459
AUTOMAKE=$ac_cv_path_AUTOMAKE
5461
if test -n "$AUTOMAKE"; then
5462
echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
5463
echo "${ECHO_T}$AUTOMAKE" >&6
5465
echo "$as_me:$LINENO: result: no" >&5
5466
echo "${ECHO_T}no" >&6
5469
# Extract the first word of "autoconf", so it can be a program name with args.
5470
set dummy autoconf; ac_word=$2
5471
echo "$as_me:$LINENO: checking for $ac_word" >&5
5472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5473
if test "${ac_cv_path_AUTOCONF+set}" = set; then
5474
echo $ECHO_N "(cached) $ECHO_C" >&6
5478
ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path.
5481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485
test -z "$as_dir" && as_dir=.
5486
for ac_exec_ext in '' $ac_executable_extensions; do
5487
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488
ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext"
5489
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5498
AUTOCONF=$ac_cv_path_AUTOCONF
5500
if test -n "$AUTOCONF"; then
5501
echo "$as_me:$LINENO: result: $AUTOCONF" >&5
5502
echo "${ECHO_T}$AUTOCONF" >&6
5504
echo "$as_me:$LINENO: result: no" >&5
5505
echo "${ECHO_T}no" >&6
5508
# Extract the first word of "autoheader", so it can be a program name with args.
5509
set dummy autoheader; ac_word=$2
5510
echo "$as_me:$LINENO: checking for $ac_word" >&5
5511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5512
if test "${ac_cv_path_AUTOHEADER+set}" = set; then
5513
echo $ECHO_N "(cached) $ECHO_C" >&6
5517
ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path.
5520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5524
test -z "$as_dir" && as_dir=.
5525
for ac_exec_ext in '' $ac_executable_extensions; do
5526
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527
ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext"
5528
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5537
AUTOHEADER=$ac_cv_path_AUTOHEADER
5539
if test -n "$AUTOHEADER"; then
5540
echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
5541
echo "${ECHO_T}$AUTOHEADER" >&6
5543
echo "$as_me:$LINENO: result: no" >&5
5544
echo "${ECHO_T}no" >&6
5548
PLUGIN_TEST=`echo $srcdir/plugins/t/*.t|sed -e 's,\.*/plugins/,,g'`
5550
SCRIPT_TEST=`echo $srcdir/plugins-scripts/t/*.t|sed -e 's,\.*/plugins-scripts/,,g'`
5552
WARRANTY="The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistribute\ncopies of the plugins under the terms of the GNU General Public License.\nFor more information about these matters, see the file named COPYING.\n"
5555
SUPPORT="Send email to nagios-users@lists.sourceforge.net if you have questions\nregarding use of this software. To submit patches or suggest improvements,\nsend email to nagiosplug-devel@lists.sourceforge.net\n"
5559
# Check whether --with-cgiurl or --without-cgiurl was given.
5560
if test "${with_cgiurl+set}" = set; then
5561
withval="$with_cgiurl"
5564
cgiurl=/nagios/cgi-bin
5568
cat >>confdefs.h <<_ACEOF
5569
#define CGIURL "$CGIURL"
5574
# Check whether --with-nagios_user or --without-nagios_user was given.
5575
if test "${with_nagios_user+set}" = set; then
5576
withval="$with_nagios_user"
5582
# Check whether --with-nagios_group or --without-nagios_group was given.
5583
if test "${with_nagios_group+set}" = set; then
5584
withval="$with_nagios_group"
5591
INSTALL_OPTS="-o $nagios_usr -g $nagios_grp"
5595
# Check whether --with-trusted_path or --without-trusted_path was given.
5596
if test "${with_trusted_path+set}" = set; then
5597
withval="$with_trusted_path"
5598
trusted_path=$withval
5600
trusted_path=/bin:/sbin:/usr/bin:/usr/sbin
5606
LDFLAGS="$LDFLAGS -L."
5608
ac_cv_uname_m=`uname -m`
5609
ac_cv_uname_s=`uname -s`
5610
ac_cv_uname_r=`uname -r`
5611
ac_cv_uname_v=`uname -v`
5613
# Extract the first word of "python", so it can be a program name with args.
5614
set dummy python; ac_word=$2
5615
echo "$as_me:$LINENO: checking for $ac_word" >&5
5616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5617
if test "${ac_cv_path_PYTHON+set}" = set; then
5618
echo $ECHO_N "(cached) $ECHO_C" >&6
5622
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629
test -z "$as_dir" && as_dir=.
5630
for ac_exec_ext in '' $ac_executable_extensions; do
5631
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5633
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5642
PYTHON=$ac_cv_path_PYTHON
5644
if test -n "$PYTHON"; then
5645
echo "$as_me:$LINENO: result: $PYTHON" >&5
5646
echo "${ECHO_T}$PYTHON" >&6
5648
echo "$as_me:$LINENO: result: no" >&5
5649
echo "${ECHO_T}no" >&6
5652
# Extract the first word of "perl", so it can be a program name with args.
5653
set dummy perl; ac_word=$2
5654
echo "$as_me:$LINENO: checking for $ac_word" >&5
5655
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5656
if test "${ac_cv_path_PERL+set}" = set; then
5657
echo $ECHO_N "(cached) $ECHO_C" >&6
5661
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5664
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668
test -z "$as_dir" && as_dir=.
5669
for ac_exec_ext in '' $ac_executable_extensions; do
5670
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5672
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681
PERL=$ac_cv_path_PERL
5683
if test -n "$PERL"; then
5684
echo "$as_me:$LINENO: result: $PERL" >&5
5685
echo "${ECHO_T}$PERL" >&6
5687
echo "$as_me:$LINENO: result: no" >&5
5688
echo "${ECHO_T}no" >&6
5691
# Extract the first word of "sh", so it can be a program name with args.
5692
set dummy sh; ac_word=$2
5693
echo "$as_me:$LINENO: checking for $ac_word" >&5
5694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5695
if test "${ac_cv_path_SH+set}" = set; then
5696
echo $ECHO_N "(cached) $ECHO_C" >&6
5700
ac_cv_path_SH="$SH" # Let the user override the test with a path.
5703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707
test -z "$as_dir" && as_dir=.
5708
for ac_exec_ext in '' $ac_executable_extensions; do
5709
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5710
ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
5711
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722
if test -n "$SH"; then
5723
echo "$as_me:$LINENO: result: $SH" >&5
5724
echo "${ECHO_T}$SH" >&6
5726
echo "$as_me:$LINENO: result: no" >&5
5727
echo "${ECHO_T}no" >&6
5731
# Extract the first word of "hostname", so it can be a program name with args.
5732
set dummy hostname; ac_word=$2
5733
echo "$as_me:$LINENO: checking for $ac_word" >&5
5734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5735
if test "${ac_cv_path_HOSTNAME+set}" = set; then
5736
echo $ECHO_N "(cached) $ECHO_C" >&6
5740
ac_cv_path_HOSTNAME="$HOSTNAME" # Let the user override the test with a path.
5743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5747
test -z "$as_dir" && as_dir=.
5748
for ac_exec_ext in '' $ac_executable_extensions; do
5749
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750
ac_cv_path_HOSTNAME="$as_dir/$ac_word$ac_exec_ext"
5751
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5760
HOSTNAME=$ac_cv_path_HOSTNAME
5762
if test -n "$HOSTNAME"; then
5763
echo "$as_me:$LINENO: result: $HOSTNAME" >&5
5764
echo "${ECHO_T}$HOSTNAME" >&6
5766
echo "$as_me:$LINENO: result: no" >&5
5767
echo "${ECHO_T}no" >&6
5770
# Extract the first word of "basename", so it can be a program name with args.
5771
set dummy basename; ac_word=$2
5772
echo "$as_me:$LINENO: checking for $ac_word" >&5
5773
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5774
if test "${ac_cv_path_BASENAME+set}" = set; then
5775
echo $ECHO_N "(cached) $ECHO_C" >&6
5779
ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
5782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786
test -z "$as_dir" && as_dir=.
5787
for ac_exec_ext in '' $ac_executable_extensions; do
5788
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5789
ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
5790
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5799
BASENAME=$ac_cv_path_BASENAME
5801
if test -n "$BASENAME"; then
5802
echo "$as_me:$LINENO: result: $BASENAME" >&5
5803
echo "${ECHO_T}$BASENAME" >&6
5805
echo "$as_me:$LINENO: result: no" >&5
5806
echo "${ECHO_T}no" >&6
5812
echo "$as_me:$LINENO: checking for main in -ldce" >&5
5813
echo $ECHO_N "checking for main in -ldce... $ECHO_C" >&6
5814
if test "${ac_cv_lib_dce_main+set}" = set; then
5815
echo $ECHO_N "(cached) $ECHO_C" >&6
5817
ac_check_lib_save_LIBS=$LIBS
5819
cat >conftest.$ac_ext <<_ACEOF
5820
#line $LINENO "configure"
5823
cat confdefs.h >>conftest.$ac_ext
5824
cat >>conftest.$ac_ext <<_ACEOF
5825
/* end confdefs.h. */
5836
rm -f conftest.$ac_objext conftest$ac_exeext
5837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838
(eval $ac_link) 2>&5
5840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841
(exit $ac_status); } &&
5842
{ ac_try='test -s conftest$ac_exeext'
5843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847
(exit $ac_status); }; }; then
5848
ac_cv_lib_dce_main=yes
5850
echo "$as_me: failed program was:" >&5
5851
sed 's/^/| /' conftest.$ac_ext >&5
5853
ac_cv_lib_dce_main=no
5855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5856
LIBS=$ac_check_lib_save_LIBS
5858
echo "$as_me:$LINENO: result: $ac_cv_lib_dce_main" >&5
5859
echo "${ECHO_T}$ac_cv_lib_dce_main" >&6
5860
if test $ac_cv_lib_dce_main = yes; then
5861
SOCKETLIBS="$SOCKETLIBS -ldce"
5864
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
5865
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
5866
if test "${ac_cv_lib_nsl_main+set}" = set; then
5867
echo $ECHO_N "(cached) $ECHO_C" >&6
5869
ac_check_lib_save_LIBS=$LIBS
5871
cat >conftest.$ac_ext <<_ACEOF
5872
#line $LINENO "configure"
5875
cat confdefs.h >>conftest.$ac_ext
5876
cat >>conftest.$ac_ext <<_ACEOF
5877
/* end confdefs.h. */
5888
rm -f conftest.$ac_objext conftest$ac_exeext
5889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890
(eval $ac_link) 2>&5
5892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893
(exit $ac_status); } &&
5894
{ ac_try='test -s conftest$ac_exeext'
5895
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899
(exit $ac_status); }; }; then
5900
ac_cv_lib_nsl_main=yes
5902
echo "$as_me: failed program was:" >&5
5903
sed 's/^/| /' conftest.$ac_ext >&5
5905
ac_cv_lib_nsl_main=no
5907
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5908
LIBS=$ac_check_lib_save_LIBS
5910
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
5911
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
5912
if test $ac_cv_lib_nsl_main = yes; then
5913
SOCKETLIBS="$SOCKETLIBS -lnsl"
5916
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
5917
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
5918
if test "${ac_cv_lib_socket_socket+set}" = set; then
5919
echo $ECHO_N "(cached) $ECHO_C" >&6
5921
ac_check_lib_save_LIBS=$LIBS
5922
LIBS="-lsocket $LIBS"
5923
cat >conftest.$ac_ext <<_ACEOF
5924
#line $LINENO "configure"
5927
cat confdefs.h >>conftest.$ac_ext
5928
cat >>conftest.$ac_ext <<_ACEOF
5929
/* end confdefs.h. */
5931
/* Override any gcc2 internal prototype to avoid an error. */
5935
/* We use char because int might match the return type of a gcc2
5936
builtin and then its argument prototype would still apply. */
5946
rm -f conftest.$ac_objext conftest$ac_exeext
5947
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948
(eval $ac_link) 2>&5
5950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951
(exit $ac_status); } &&
5952
{ ac_try='test -s conftest$ac_exeext'
5953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957
(exit $ac_status); }; }; then
5958
ac_cv_lib_socket_socket=yes
5960
echo "$as_me: failed program was:" >&5
5961
sed 's/^/| /' conftest.$ac_ext >&5
5963
ac_cv_lib_socket_socket=no
5965
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966
LIBS=$ac_check_lib_save_LIBS
5968
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
5969
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
5970
if test $ac_cv_lib_socket_socket = yes; then
5971
SOCKETLIBS="$SOCKETLIBS -lsocket"
5974
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
5975
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
5976
if test "${ac_cv_lib_resolv_main+set}" = set; then
5977
echo $ECHO_N "(cached) $ECHO_C" >&6
5979
ac_check_lib_save_LIBS=$LIBS
5980
LIBS="-lresolv $LIBS"
5981
cat >conftest.$ac_ext <<_ACEOF
5982
#line $LINENO "configure"
5985
cat confdefs.h >>conftest.$ac_ext
5986
cat >>conftest.$ac_ext <<_ACEOF
5987
/* end confdefs.h. */
5998
rm -f conftest.$ac_objext conftest$ac_exeext
5999
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6000
(eval $ac_link) 2>&5
6002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003
(exit $ac_status); } &&
6004
{ ac_try='test -s conftest$ac_exeext'
6005
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009
(exit $ac_status); }; }; then
6010
ac_cv_lib_resolv_main=yes
6012
echo "$as_me: failed program was:" >&5
6013
sed 's/^/| /' conftest.$ac_ext >&5
6015
ac_cv_lib_resolv_main=no
6017
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6018
LIBS=$ac_check_lib_save_LIBS
6020
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
6021
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
6022
if test $ac_cv_lib_resolv_main = yes; then
6023
SOCKETLIBS="$SOCKETLIBS -lresolv"
6029
_SAVEDCPPFLAGS="$CPPFLAGS"
6031
# Check whether --with-pgsql or --without-pgsql was given.
6032
if test "${with_pgsql+set}" = set; then
6033
withval="$with_pgsql"
6037
echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
6038
echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
6039
if test "${ac_cv_lib_crypt_main+set}" = set; then
6040
echo $ECHO_N "(cached) $ECHO_C" >&6
6042
ac_check_lib_save_LIBS=$LIBS
6043
LIBS="-lcrypt $LIBS"
6044
cat >conftest.$ac_ext <<_ACEOF
6045
#line $LINENO "configure"
6048
cat confdefs.h >>conftest.$ac_ext
6049
cat >>conftest.$ac_ext <<_ACEOF
6050
/* end confdefs.h. */
6061
rm -f conftest.$ac_objext conftest$ac_exeext
6062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6063
(eval $ac_link) 2>&5
6065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066
(exit $ac_status); } &&
6067
{ ac_try='test -s conftest$ac_exeext'
6068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072
(exit $ac_status); }; }; then
6073
ac_cv_lib_crypt_main=yes
6075
echo "$as_me: failed program was:" >&5
6076
sed 's/^/| /' conftest.$ac_ext >&5
6078
ac_cv_lib_crypt_main=no
6080
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6081
LIBS=$ac_check_lib_save_LIBS
6083
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
6084
echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
6085
if test $ac_cv_lib_crypt_main = yes; then
6086
cat >>confdefs.h <<_ACEOF
6087
#define HAVE_LIBCRYPT 1
6090
LIBS="-lcrypt $LIBS"
6094
if test "$ac_cv_lib_crypt_main" = "yes"; then
6095
if test -n "$PGSQL"; then
6096
LDFLAGS="$LDFLAGS -L$PGSQL/lib"
6097
CPPFLAGS="$CPPFLAGS -I$PGSQL/include"
6100
echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
6101
echo $ECHO_N "checking for PQsetdbLogin in -lpq... $ECHO_C" >&6
6102
if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
6103
echo $ECHO_N "(cached) $ECHO_C" >&6
6105
ac_check_lib_save_LIBS=$LIBS
6106
LIBS="-lpq -lcrypt $LIBS"
6107
cat >conftest.$ac_ext <<_ACEOF
6108
#line $LINENO "configure"
6111
cat confdefs.h >>conftest.$ac_ext
6112
cat >>conftest.$ac_ext <<_ACEOF
6113
/* end confdefs.h. */
6115
/* Override any gcc2 internal prototype to avoid an error. */
6119
/* We use char because int might match the return type of a gcc2
6120
builtin and then its argument prototype would still apply. */
6121
char PQsetdbLogin ();
6130
rm -f conftest.$ac_objext conftest$ac_exeext
6131
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6132
(eval $ac_link) 2>&5
6134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135
(exit $ac_status); } &&
6136
{ ac_try='test -s conftest$ac_exeext'
6137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141
(exit $ac_status); }; }; then
6142
ac_cv_lib_pq_PQsetdbLogin=yes
6144
echo "$as_me: failed program was:" >&5
6145
sed 's/^/| /' conftest.$ac_ext >&5
6147
ac_cv_lib_pq_PQsetdbLogin=no
6149
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6150
LIBS=$ac_check_lib_save_LIBS
6152
echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
6153
echo "${ECHO_T}$ac_cv_lib_pq_PQsetdbLogin" >&6
6154
if test $ac_cv_lib_pq_PQsetdbLogin = yes; then
6155
cat >>confdefs.h <<_ACEOF
6156
#define HAVE_LIBPQ 1
6163
if test "$ac_cv_lib_pq_PQsetdbLogin" = "yes"; then
6165
for ac_header in pgsql/libpq-fe.h
6167
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6169
echo "$as_me:$LINENO: checking for $ac_header" >&5
6170
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6171
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6172
echo $ECHO_N "(cached) $ECHO_C" >&6
6174
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6175
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6177
# Is the header compilable?
6178
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6179
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6180
cat >conftest.$ac_ext <<_ACEOF
6181
#line $LINENO "configure"
6184
cat confdefs.h >>conftest.$ac_ext
6185
cat >>conftest.$ac_ext <<_ACEOF
6186
/* end confdefs.h. */
6187
$ac_includes_default
6188
#include <$ac_header>
6190
rm -f conftest.$ac_objext
6191
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6192
(eval $ac_compile) 2>&5
6194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195
(exit $ac_status); } &&
6196
{ ac_try='test -s conftest.$ac_objext'
6197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201
(exit $ac_status); }; }; then
6202
ac_header_compiler=yes
6204
echo "$as_me: failed program was:" >&5
6205
sed 's/^/| /' conftest.$ac_ext >&5
6207
ac_header_compiler=no
6209
rm -f conftest.$ac_objext conftest.$ac_ext
6210
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6211
echo "${ECHO_T}$ac_header_compiler" >&6
6213
# Is the header present?
6214
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6215
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6216
cat >conftest.$ac_ext <<_ACEOF
6217
#line $LINENO "configure"
6220
cat confdefs.h >>conftest.$ac_ext
6221
cat >>conftest.$ac_ext <<_ACEOF
6222
/* end confdefs.h. */
6223
#include <$ac_header>
6225
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6226
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6228
grep -v '^ *+' conftest.er1 >conftest.err
6230
cat conftest.err >&5
6231
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232
(exit $ac_status); } >/dev/null; then
6233
if test -s conftest.err; then
6234
ac_cpp_err=$ac_c_preproc_warn_flag
6241
if test -z "$ac_cpp_err"; then
6242
ac_header_preproc=yes
6244
echo "$as_me: failed program was:" >&5
6245
sed 's/^/| /' conftest.$ac_ext >&5
6247
ac_header_preproc=no
6249
rm -f conftest.err conftest.$ac_ext
6250
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6251
echo "${ECHO_T}$ac_header_preproc" >&6
6253
# So? What about this header?
6254
case $ac_header_compiler:$ac_header_preproc in
6256
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6257
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6258
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6259
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6262
## ------------------------------------ ##
6263
## Report this to bug-autoconf@gnu.org. ##
6264
## ------------------------------------ ##
6267
sed "s/^/$as_me: WARNING: /" >&2
6270
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6271
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6272
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6273
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6274
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6275
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6278
## ------------------------------------ ##
6279
## Report this to bug-autoconf@gnu.org. ##
6280
## ------------------------------------ ##
6283
sed "s/^/$as_me: WARNING: /" >&2
6286
echo "$as_me:$LINENO: checking for $ac_header" >&5
6287
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6288
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6289
echo $ECHO_N "(cached) $ECHO_C" >&6
6291
eval "$as_ac_Header=$ac_header_preproc"
6293
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6294
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6297
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6298
cat >>confdefs.h <<_ACEOF
6299
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6307
for ac_header in postgresql/libpq-fe.h
6309
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6310
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6311
echo "$as_me:$LINENO: checking for $ac_header" >&5
6312
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6313
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6314
echo $ECHO_N "(cached) $ECHO_C" >&6
6316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6317
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6319
# Is the header compilable?
6320
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6321
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6322
cat >conftest.$ac_ext <<_ACEOF
6323
#line $LINENO "configure"
6326
cat confdefs.h >>conftest.$ac_ext
6327
cat >>conftest.$ac_ext <<_ACEOF
6328
/* end confdefs.h. */
6329
$ac_includes_default
6330
#include <$ac_header>
6332
rm -f conftest.$ac_objext
6333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6334
(eval $ac_compile) 2>&5
6336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337
(exit $ac_status); } &&
6338
{ ac_try='test -s conftest.$ac_objext'
6339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343
(exit $ac_status); }; }; then
6344
ac_header_compiler=yes
6346
echo "$as_me: failed program was:" >&5
6347
sed 's/^/| /' conftest.$ac_ext >&5
6349
ac_header_compiler=no
6351
rm -f conftest.$ac_objext conftest.$ac_ext
6352
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6353
echo "${ECHO_T}$ac_header_compiler" >&6
6355
# Is the header present?
6356
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6357
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6358
cat >conftest.$ac_ext <<_ACEOF
6359
#line $LINENO "configure"
6362
cat confdefs.h >>conftest.$ac_ext
6363
cat >>conftest.$ac_ext <<_ACEOF
6364
/* end confdefs.h. */
6365
#include <$ac_header>
6367
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6368
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6370
grep -v '^ *+' conftest.er1 >conftest.err
6372
cat conftest.err >&5
6373
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374
(exit $ac_status); } >/dev/null; then
6375
if test -s conftest.err; then
6376
ac_cpp_err=$ac_c_preproc_warn_flag
6383
if test -z "$ac_cpp_err"; then
6384
ac_header_preproc=yes
6386
echo "$as_me: failed program was:" >&5
6387
sed 's/^/| /' conftest.$ac_ext >&5
6389
ac_header_preproc=no
6391
rm -f conftest.err conftest.$ac_ext
6392
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6393
echo "${ECHO_T}$ac_header_preproc" >&6
6395
# So? What about this header?
6396
case $ac_header_compiler:$ac_header_preproc in
6398
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6399
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6400
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6401
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6404
## ------------------------------------ ##
6405
## Report this to bug-autoconf@gnu.org. ##
6406
## ------------------------------------ ##
6409
sed "s/^/$as_me: WARNING: /" >&2
6412
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6413
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6414
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6415
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6416
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6420
## ------------------------------------ ##
6421
## Report this to bug-autoconf@gnu.org. ##
6422
## ------------------------------------ ##
6425
sed "s/^/$as_me: WARNING: /" >&2
6428
echo "$as_me:$LINENO: checking for $ac_header" >&5
6429
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6430
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6431
echo $ECHO_N "(cached) $ECHO_C" >&6
6433
eval "$as_ac_Header=$ac_header_preproc"
6435
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6436
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6439
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6440
cat >>confdefs.h <<_ACEOF
6441
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449
for ac_header in libpq-fe.h
6451
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6452
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6453
echo "$as_me:$LINENO: checking for $ac_header" >&5
6454
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6455
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6456
echo $ECHO_N "(cached) $ECHO_C" >&6
6458
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6459
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6461
# Is the header compilable?
6462
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6463
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6464
cat >conftest.$ac_ext <<_ACEOF
6465
#line $LINENO "configure"
6468
cat confdefs.h >>conftest.$ac_ext
6469
cat >>conftest.$ac_ext <<_ACEOF
6470
/* end confdefs.h. */
6471
$ac_includes_default
6472
#include <$ac_header>
6474
rm -f conftest.$ac_objext
6475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6476
(eval $ac_compile) 2>&5
6478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
(exit $ac_status); } &&
6480
{ ac_try='test -s conftest.$ac_objext'
6481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485
(exit $ac_status); }; }; then
6486
ac_header_compiler=yes
6488
echo "$as_me: failed program was:" >&5
6489
sed 's/^/| /' conftest.$ac_ext >&5
6491
ac_header_compiler=no
6493
rm -f conftest.$ac_objext conftest.$ac_ext
6494
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6495
echo "${ECHO_T}$ac_header_compiler" >&6
6497
# Is the header present?
6498
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6499
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6500
cat >conftest.$ac_ext <<_ACEOF
6501
#line $LINENO "configure"
6504
cat confdefs.h >>conftest.$ac_ext
6505
cat >>conftest.$ac_ext <<_ACEOF
6506
/* end confdefs.h. */
6507
#include <$ac_header>
6509
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6510
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6512
grep -v '^ *+' conftest.er1 >conftest.err
6514
cat conftest.err >&5
6515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516
(exit $ac_status); } >/dev/null; then
6517
if test -s conftest.err; then
6518
ac_cpp_err=$ac_c_preproc_warn_flag
6525
if test -z "$ac_cpp_err"; then
6526
ac_header_preproc=yes
6528
echo "$as_me: failed program was:" >&5
6529
sed 's/^/| /' conftest.$ac_ext >&5
6531
ac_header_preproc=no
6533
rm -f conftest.err conftest.$ac_ext
6534
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6535
echo "${ECHO_T}$ac_header_preproc" >&6
6537
# So? What about this header?
6538
case $ac_header_compiler:$ac_header_preproc in
6540
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6541
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6542
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6543
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6546
## ------------------------------------ ##
6547
## Report this to bug-autoconf@gnu.org. ##
6548
## ------------------------------------ ##
6551
sed "s/^/$as_me: WARNING: /" >&2
6554
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6555
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6556
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6557
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6558
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6559
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6562
## ------------------------------------ ##
6563
## Report this to bug-autoconf@gnu.org. ##
6564
## ------------------------------------ ##
6567
sed "s/^/$as_me: WARNING: /" >&2
6570
echo "$as_me:$LINENO: checking for $ac_header" >&5
6571
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6572
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573
echo $ECHO_N "(cached) $ECHO_C" >&6
6575
eval "$as_ac_Header=$ac_header_preproc"
6577
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6578
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6582
cat >>confdefs.h <<_ACEOF
6583
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6590
if [ -n "$PGSQL" -a "$ac_cv_header_libpq_fe_h" = "yes" ]; then
6591
PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
6592
PGINCLUDE="-I$PGSQL/include"
6593
elif test "$ac_cv_header_pgsql_libpq_fe_h" = "yes"; then
6594
PGLIBS="-lpq -lcrypt"
6595
PGINCLUDE="-I/usr/include/pgsql"
6596
elif test "$ac_cv_header_postgresql_libpq_fe_h" = "yes"; then
6597
PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
6598
PGINCLUDE="-I/usr/include/postgresql"
6599
elif test "$ac_cv_header_libpq_fe_h" = "yes"; then
6600
PGLIBS="-L$PGSQL/lib -lpq -lcrypt"
6601
PGINCLUDE="-I$PGSQL/include"
6603
if test -z "$PGINCLUDE"; then
6604
{ echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
6605
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
6606
{ echo "$as_me:$LINENO: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&5
6607
echo "$as_me: WARNING: install PostgreSQL headers to compile this plugin (see REQUIREMENTS)." >&2;}
6611
EXTRAS="$EXTRAS check_pgsql"
6614
{ echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
6615
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
6616
{ echo "$as_me:$LINENO: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&5
6617
echo "$as_me: WARNING: LIBS=\"$LIBS\" CPPFLAGS=\"$CPPFLAGS\"" >&2;}
6618
{ echo "$as_me:$LINENO: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5
6619
echo "$as_me: WARNING: install PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;}
6622
{ echo "$as_me:$LINENO: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&5
6623
echo "$as_me: WARNING: Skipping PostgreSQL plugin (check_pgsql)" >&2;}
6624
{ echo "$as_me:$LINENO: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&5
6625
echo "$as_me: WARNING: install lib crypt and PostgreSQL libs to compile this plugin (see REQUIREMENTS)." >&2;}
6628
CPPFLAGS="$_SAVEDCPPFLAGS"
6632
echo "$as_me:$LINENO: checking for rc_read_config in -lradiusclient" >&5
6633
echo $ECHO_N "checking for rc_read_config in -lradiusclient... $ECHO_C" >&6
6634
if test "${ac_cv_lib_radiusclient_rc_read_config+set}" = set; then
6635
echo $ECHO_N "(cached) $ECHO_C" >&6
6637
ac_check_lib_save_LIBS=$LIBS
6638
LIBS="-lradiusclient $LIBS"
6639
cat >conftest.$ac_ext <<_ACEOF
6640
#line $LINENO "configure"
6643
cat confdefs.h >>conftest.$ac_ext
6644
cat >>conftest.$ac_ext <<_ACEOF
6645
/* end confdefs.h. */
6647
/* Override any gcc2 internal prototype to avoid an error. */
6651
/* We use char because int might match the return type of a gcc2
6652
builtin and then its argument prototype would still apply. */
6653
char rc_read_config ();
6662
rm -f conftest.$ac_objext conftest$ac_exeext
6663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664
(eval $ac_link) 2>&5
6666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667
(exit $ac_status); } &&
6668
{ ac_try='test -s conftest$ac_exeext'
6669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673
(exit $ac_status); }; }; then
6674
ac_cv_lib_radiusclient_rc_read_config=yes
6676
echo "$as_me: failed program was:" >&5
6677
sed 's/^/| /' conftest.$ac_ext >&5
6679
ac_cv_lib_radiusclient_rc_read_config=no
6681
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6682
LIBS=$ac_check_lib_save_LIBS
6684
echo "$as_me:$LINENO: result: $ac_cv_lib_radiusclient_rc_read_config" >&5
6685
echo "${ECHO_T}$ac_cv_lib_radiusclient_rc_read_config" >&6
6686
if test $ac_cv_lib_radiusclient_rc_read_config = yes; then
6687
cat >>confdefs.h <<_ACEOF
6688
#define HAVE_LIBRADIUSCLIENT 1
6691
LIBS="-lradiusclient $LIBS"
6695
if test "$ac_cv_lib_radiusclient_rc_read_config" = "yes"; then
6696
EXTRAS="$EXTRAS check_radius"
6697
RADIUSLIBS="-lradiusclient"
6700
{ echo "$as_me:$LINENO: WARNING: Skipping radius plugin" >&5
6701
echo "$as_me: WARNING: Skipping radius plugin" >&2;}
6702
{ echo "$as_me:$LINENO: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&5
6703
echo "$as_me: WARNING: install radius libs to compile this plugin (see REQUIREMENTS)." >&2;}
6709
echo "$as_me:$LINENO: checking for main in -lldap" >&5
6710
echo $ECHO_N "checking for main in -lldap... $ECHO_C" >&6
6711
if test "${ac_cv_lib_ldap_main+set}" = set; then
6712
echo $ECHO_N "(cached) $ECHO_C" >&6
6714
ac_check_lib_save_LIBS=$LIBS
6715
LIBS="-lldap -llber $LIBS"
6716
cat >conftest.$ac_ext <<_ACEOF
6717
#line $LINENO "configure"
6720
cat confdefs.h >>conftest.$ac_ext
6721
cat >>conftest.$ac_ext <<_ACEOF
6722
/* end confdefs.h. */
6733
rm -f conftest.$ac_objext conftest$ac_exeext
6734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6735
(eval $ac_link) 2>&5
6737
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738
(exit $ac_status); } &&
6739
{ ac_try='test -s conftest$ac_exeext'
6740
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744
(exit $ac_status); }; }; then
6745
ac_cv_lib_ldap_main=yes
6747
echo "$as_me: failed program was:" >&5
6748
sed 's/^/| /' conftest.$ac_ext >&5
6750
ac_cv_lib_ldap_main=no
6752
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6753
LIBS=$ac_check_lib_save_LIBS
6755
echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_main" >&5
6756
echo "${ECHO_T}$ac_cv_lib_ldap_main" >&6
6757
if test $ac_cv_lib_ldap_main = yes; then
6758
cat >>confdefs.h <<_ACEOF
6759
#define HAVE_LIBLDAP 1
6766
if test "$ac_cv_lib_ldap_main" = "yes"; then
6767
LDAPLIBS="-lldap -llber"\
6768
LDAPINCLUDE="-I/usr/include/ldap"
6771
EXTRAS="$EXTRAS check_ldap"
6773
{ echo "$as_me:$LINENO: WARNING: Skipping LDAP plugin" >&5
6774
echo "$as_me: WARNING: Skipping LDAP plugin" >&2;}
6775
{ echo "$as_me:$LINENO: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&5
6776
echo "$as_me: WARNING: install LDAP libs to compile this plugin (see REQUIREMENTS)." >&2;}
6782
_SAVEDCPPFLAGS="$CPPFLAGS"
6784
# Check whether --with-mysql or --without-mysql was given.
6785
if test "${with_mysql+set}" = set; then
6786
withval="$with_mysql"
6789
if test -n "$MYSQL"; then
6790
MYSQLLIBDIR=$MYSQL/lib/mysql
6791
CPPFLAGS="-I$MYSQL/include"
6792
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
6793
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
6794
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
6795
echo $ECHO_N "(cached) $ECHO_C" >&6
6797
ac_check_lib_save_LIBS=$LIBS
6798
LIBS="-lmysqlclient -L$MYSQLLIBDIR -lz $LIBS"
6799
cat >conftest.$ac_ext <<_ACEOF
6800
#line $LINENO "configure"
6803
cat confdefs.h >>conftest.$ac_ext
6804
cat >>conftest.$ac_ext <<_ACEOF
6805
/* end confdefs.h. */
6807
/* Override any gcc2 internal prototype to avoid an error. */
6811
/* We use char because int might match the return type of a gcc2
6812
builtin and then its argument prototype would still apply. */
6822
rm -f conftest.$ac_objext conftest$ac_exeext
6823
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6824
(eval $ac_link) 2>&5
6826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827
(exit $ac_status); } &&
6828
{ ac_try='test -s conftest$ac_exeext'
6829
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833
(exit $ac_status); }; }; then
6834
ac_cv_lib_mysqlclient_mysql_init=yes
6836
echo "$as_me: failed program was:" >&5
6837
sed 's/^/| /' conftest.$ac_ext >&5
6839
ac_cv_lib_mysqlclient_mysql_init=no
6841
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6842
LIBS=$ac_check_lib_save_LIBS
6844
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
6845
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
6846
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
6847
MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L$MYSQLLIBDIR "
6850
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
6851
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
6852
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
6853
echo $ECHO_N "(cached) $ECHO_C" >&6
6855
ac_check_lib_save_LIBS=$LIBS
6856
LIBS="-lmysqlclient $LIBS"
6857
cat >conftest.$ac_ext <<_ACEOF
6858
#line $LINENO "configure"
6861
cat confdefs.h >>conftest.$ac_ext
6862
cat >>conftest.$ac_ext <<_ACEOF
6863
/* end confdefs.h. */
6865
/* Override any gcc2 internal prototype to avoid an error. */
6869
/* We use char because int might match the return type of a gcc2
6870
builtin and then its argument prototype would still apply. */
6871
char mysql_close ();
6880
rm -f conftest.$ac_objext conftest$ac_exeext
6881
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6882
(eval $ac_link) 2>&5
6884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885
(exit $ac_status); } &&
6886
{ ac_try='test -s conftest$ac_exeext'
6887
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6890
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891
(exit $ac_status); }; }; then
6892
ac_cv_lib_mysqlclient_mysql_close=yes
6894
echo "$as_me: failed program was:" >&5
6895
sed 's/^/| /' conftest.$ac_ext >&5
6897
ac_cv_lib_mysqlclient_mysql_close=no
6899
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6900
LIBS=$ac_check_lib_save_LIBS
6902
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
6903
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
6904
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
6905
MYSQLLIBS="-lmysqlclient"
6908
elif test -f /usr/lib/libmysqlclient.so; then
6909
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
6910
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
6911
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
6912
echo $ECHO_N "(cached) $ECHO_C" >&6
6914
ac_check_lib_save_LIBS=$LIBS
6915
LIBS="-lmysqlclient -lz $LIBS"
6916
cat >conftest.$ac_ext <<_ACEOF
6917
#line $LINENO "configure"
6920
cat confdefs.h >>conftest.$ac_ext
6921
cat >>conftest.$ac_ext <<_ACEOF
6922
/* end confdefs.h. */
6924
/* Override any gcc2 internal prototype to avoid an error. */
6928
/* We use char because int might match the return type of a gcc2
6929
builtin and then its argument prototype would still apply. */
6939
rm -f conftest.$ac_objext conftest$ac_exeext
6940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941
(eval $ac_link) 2>&5
6943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944
(exit $ac_status); } &&
6945
{ ac_try='test -s conftest$ac_exeext'
6946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950
(exit $ac_status); }; }; then
6951
ac_cv_lib_mysqlclient_mysql_init=yes
6953
echo "$as_me: failed program was:" >&5
6954
sed 's/^/| /' conftest.$ac_ext >&5
6956
ac_cv_lib_mysqlclient_mysql_init=no
6958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6959
LIBS=$ac_check_lib_save_LIBS
6961
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
6962
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
6963
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
6964
MYSQLLIBS="-lmysqlclient -lz"
6967
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
6968
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
6969
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
6970
echo $ECHO_N "(cached) $ECHO_C" >&6
6972
ac_check_lib_save_LIBS=$LIBS
6973
LIBS="-lmysqlclient $LIBS"
6974
cat >conftest.$ac_ext <<_ACEOF
6975
#line $LINENO "configure"
6978
cat confdefs.h >>conftest.$ac_ext
6979
cat >>conftest.$ac_ext <<_ACEOF
6980
/* end confdefs.h. */
6982
/* Override any gcc2 internal prototype to avoid an error. */
6986
/* We use char because int might match the return type of a gcc2
6987
builtin and then its argument prototype would still apply. */
6988
char mysql_close ();
6997
rm -f conftest.$ac_objext conftest$ac_exeext
6998
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6999
(eval $ac_link) 2>&5
7001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002
(exit $ac_status); } &&
7003
{ ac_try='test -s conftest$ac_exeext'
7004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008
(exit $ac_status); }; }; then
7009
ac_cv_lib_mysqlclient_mysql_close=yes
7011
echo "$as_me: failed program was:" >&5
7012
sed 's/^/| /' conftest.$ac_ext >&5
7014
ac_cv_lib_mysqlclient_mysql_close=no
7016
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7017
LIBS=$ac_check_lib_save_LIBS
7019
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
7020
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
7021
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
7022
MYSQLLIBS="-lmysqlclient"
7025
elif test -f /usr/lib/libmysqlclient.a; then
7026
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
7027
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
7028
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
7029
echo $ECHO_N "(cached) $ECHO_C" >&6
7031
ac_check_lib_save_LIBS=$LIBS
7032
LIBS="-lmysqlclient -lz $LIBS"
7033
cat >conftest.$ac_ext <<_ACEOF
7034
#line $LINENO "configure"
7037
cat confdefs.h >>conftest.$ac_ext
7038
cat >>conftest.$ac_ext <<_ACEOF
7039
/* end confdefs.h. */
7041
/* Override any gcc2 internal prototype to avoid an error. */
7045
/* We use char because int might match the return type of a gcc2
7046
builtin and then its argument prototype would still apply. */
7056
rm -f conftest.$ac_objext conftest$ac_exeext
7057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058
(eval $ac_link) 2>&5
7060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061
(exit $ac_status); } &&
7062
{ ac_try='test -s conftest$ac_exeext'
7063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067
(exit $ac_status); }; }; then
7068
ac_cv_lib_mysqlclient_mysql_init=yes
7070
echo "$as_me: failed program was:" >&5
7071
sed 's/^/| /' conftest.$ac_ext >&5
7073
ac_cv_lib_mysqlclient_mysql_init=no
7075
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7076
LIBS=$ac_check_lib_save_LIBS
7078
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
7079
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
7080
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
7081
MYSQLLIBS="-lmysqlclient -lz"
7084
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
7085
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
7086
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
7087
echo $ECHO_N "(cached) $ECHO_C" >&6
7089
ac_check_lib_save_LIBS=$LIBS
7090
LIBS="-lmysqlclient $LIBS"
7091
cat >conftest.$ac_ext <<_ACEOF
7092
#line $LINENO "configure"
7095
cat confdefs.h >>conftest.$ac_ext
7096
cat >>conftest.$ac_ext <<_ACEOF
7097
/* end confdefs.h. */
7099
/* Override any gcc2 internal prototype to avoid an error. */
7103
/* We use char because int might match the return type of a gcc2
7104
builtin and then its argument prototype would still apply. */
7105
char mysql_close ();
7114
rm -f conftest.$ac_objext conftest$ac_exeext
7115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116
(eval $ac_link) 2>&5
7118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119
(exit $ac_status); } &&
7120
{ ac_try='test -s conftest$ac_exeext'
7121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125
(exit $ac_status); }; }; then
7126
ac_cv_lib_mysqlclient_mysql_close=yes
7128
echo "$as_me: failed program was:" >&5
7129
sed 's/^/| /' conftest.$ac_ext >&5
7131
ac_cv_lib_mysqlclient_mysql_close=no
7133
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7134
LIBS=$ac_check_lib_save_LIBS
7136
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
7137
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
7138
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
7139
MYSQLLIBS="-lmysqlclient"
7142
elif test -f /usr/lib/mysql/libmysqlclient.so; then
7143
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
7144
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
7145
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
7146
echo $ECHO_N "(cached) $ECHO_C" >&6
7148
ac_check_lib_save_LIBS=$LIBS
7149
LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
7150
cat >conftest.$ac_ext <<_ACEOF
7151
#line $LINENO "configure"
7154
cat confdefs.h >>conftest.$ac_ext
7155
cat >>conftest.$ac_ext <<_ACEOF
7156
/* end confdefs.h. */
7158
/* Override any gcc2 internal prototype to avoid an error. */
7162
/* We use char because int might match the return type of a gcc2
7163
builtin and then its argument prototype would still apply. */
7173
rm -f conftest.$ac_objext conftest$ac_exeext
7174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175
(eval $ac_link) 2>&5
7177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178
(exit $ac_status); } &&
7179
{ ac_try='test -s conftest$ac_exeext'
7180
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184
(exit $ac_status); }; }; then
7185
ac_cv_lib_mysqlclient_mysql_init=yes
7187
echo "$as_me: failed program was:" >&5
7188
sed 's/^/| /' conftest.$ac_ext >&5
7190
ac_cv_lib_mysqlclient_mysql_init=no
7192
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7193
LIBS=$ac_check_lib_save_LIBS
7195
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
7196
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
7197
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
7198
MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
7201
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
7202
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
7203
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
7204
echo $ECHO_N "(cached) $ECHO_C" >&6
7206
ac_check_lib_save_LIBS=$LIBS
7207
LIBS="-lmysqlclient -L/usr/lib/mysql $LIBS"
7208
cat >conftest.$ac_ext <<_ACEOF
7209
#line $LINENO "configure"
7212
cat confdefs.h >>conftest.$ac_ext
7213
cat >>conftest.$ac_ext <<_ACEOF
7214
/* end confdefs.h. */
7216
/* Override any gcc2 internal prototype to avoid an error. */
7220
/* We use char because int might match the return type of a gcc2
7221
builtin and then its argument prototype would still apply. */
7222
char mysql_close ();
7231
rm -f conftest.$ac_objext conftest$ac_exeext
7232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7233
(eval $ac_link) 2>&5
7235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236
(exit $ac_status); } &&
7237
{ ac_try='test -s conftest$ac_exeext'
7238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242
(exit $ac_status); }; }; then
7243
ac_cv_lib_mysqlclient_mysql_close=yes
7245
echo "$as_me: failed program was:" >&5
7246
sed 's/^/| /' conftest.$ac_ext >&5
7248
ac_cv_lib_mysqlclient_mysql_close=no
7250
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7251
LIBS=$ac_check_lib_save_LIBS
7253
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
7254
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
7255
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
7256
MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql"
7259
elif test -f /usr/lib/mysql/libmysqlclient.a; then
7260
echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
7261
echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
7262
if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
7263
echo $ECHO_N "(cached) $ECHO_C" >&6
7265
ac_check_lib_save_LIBS=$LIBS
7266
LIBS="-lmysqlclient -L/usr/lib/mysql -lz $LIBS"
7267
cat >conftest.$ac_ext <<_ACEOF
7268
#line $LINENO "configure"
7271
cat confdefs.h >>conftest.$ac_ext
7272
cat >>conftest.$ac_ext <<_ACEOF
7273
/* end confdefs.h. */
7275
/* Override any gcc2 internal prototype to avoid an error. */
7279
/* We use char because int might match the return type of a gcc2
7280
builtin and then its argument prototype would still apply. */
7290
rm -f conftest.$ac_objext conftest$ac_exeext
7291
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7292
(eval $ac_link) 2>&5
7294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
(exit $ac_status); } &&
7296
{ ac_try='test -s conftest$ac_exeext'
7297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
(exit $ac_status); }; }; then
7302
ac_cv_lib_mysqlclient_mysql_init=yes
7304
echo "$as_me: failed program was:" >&5
7305
sed 's/^/| /' conftest.$ac_ext >&5
7307
ac_cv_lib_mysqlclient_mysql_init=no
7309
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7310
LIBS=$ac_check_lib_save_LIBS
7312
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
7313
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
7314
if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
7315
MYSQLLIBS="-lmysqlclient -lz" check_mysql_LDFLAGS="-L/usr/lib/mysql"
7318
echo "$as_me:$LINENO: checking for mysql_close in -lmysqlclient" >&5
7319
echo $ECHO_N "checking for mysql_close in -lmysqlclient... $ECHO_C" >&6
7320
if test "${ac_cv_lib_mysqlclient_mysql_close+set}" = set; then
7321
echo $ECHO_N "(cached) $ECHO_C" >&6
7323
ac_check_lib_save_LIBS=$LIBS
7324
LIBS="-lmysqlclient -L/usr/lib/mysql $LIBS"
7325
cat >conftest.$ac_ext <<_ACEOF
7326
#line $LINENO "configure"
7329
cat confdefs.h >>conftest.$ac_ext
7330
cat >>conftest.$ac_ext <<_ACEOF
7331
/* end confdefs.h. */
7333
/* Override any gcc2 internal prototype to avoid an error. */
7337
/* We use char because int might match the return type of a gcc2
7338
builtin and then its argument prototype would still apply. */
7339
char mysql_close ();
7348
rm -f conftest.$ac_objext conftest$ac_exeext
7349
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7350
(eval $ac_link) 2>&5
7352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353
(exit $ac_status); } &&
7354
{ ac_try='test -s conftest$ac_exeext'
7355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359
(exit $ac_status); }; }; then
7360
ac_cv_lib_mysqlclient_mysql_close=yes
7362
echo "$as_me: failed program was:" >&5
7363
sed 's/^/| /' conftest.$ac_ext >&5
7365
ac_cv_lib_mysqlclient_mysql_close=no
7367
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7368
LIBS=$ac_check_lib_save_LIBS
7370
echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_close" >&5
7371
echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_close" >&6
7372
if test $ac_cv_lib_mysqlclient_mysql_close = yes; then
7373
MYSQLLIBS="-lmysqlclient" check_mysql_LDFLAGS="-L/usr/lib/mysql"
7377
if test "$ac_cv_lib_mysqlclient_mysql_init" = "yes" -o "$ac_cv_lib_mysqlclient_mysql_close" = "yes"; then
7380
for ac_header in mysql/mysql.h mysql/errmsg.h
7382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7384
echo "$as_me:$LINENO: checking for $ac_header" >&5
7385
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7386
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7387
echo $ECHO_N "(cached) $ECHO_C" >&6
7389
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7390
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7392
# Is the header compilable?
7393
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7394
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7395
cat >conftest.$ac_ext <<_ACEOF
7396
#line $LINENO "configure"
7399
cat confdefs.h >>conftest.$ac_ext
7400
cat >>conftest.$ac_ext <<_ACEOF
7401
/* end confdefs.h. */
7402
$ac_includes_default
7403
#include <$ac_header>
7405
rm -f conftest.$ac_objext
7406
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7407
(eval $ac_compile) 2>&5
7409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7410
(exit $ac_status); } &&
7411
{ ac_try='test -s conftest.$ac_objext'
7412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416
(exit $ac_status); }; }; then
7417
ac_header_compiler=yes
7419
echo "$as_me: failed program was:" >&5
7420
sed 's/^/| /' conftest.$ac_ext >&5
7422
ac_header_compiler=no
7424
rm -f conftest.$ac_objext conftest.$ac_ext
7425
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7426
echo "${ECHO_T}$ac_header_compiler" >&6
7428
# Is the header present?
7429
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7430
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7431
cat >conftest.$ac_ext <<_ACEOF
7432
#line $LINENO "configure"
7435
cat confdefs.h >>conftest.$ac_ext
7436
cat >>conftest.$ac_ext <<_ACEOF
7437
/* end confdefs.h. */
7438
#include <$ac_header>
7440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7441
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7443
grep -v '^ *+' conftest.er1 >conftest.err
7445
cat conftest.err >&5
7446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447
(exit $ac_status); } >/dev/null; then
7448
if test -s conftest.err; then
7449
ac_cpp_err=$ac_c_preproc_warn_flag
7456
if test -z "$ac_cpp_err"; then
7457
ac_header_preproc=yes
7459
echo "$as_me: failed program was:" >&5
7460
sed 's/^/| /' conftest.$ac_ext >&5
7462
ac_header_preproc=no
7464
rm -f conftest.err conftest.$ac_ext
7465
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7466
echo "${ECHO_T}$ac_header_preproc" >&6
7468
# So? What about this header?
7469
case $ac_header_compiler:$ac_header_preproc in
7471
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7472
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7473
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7474
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7477
## ------------------------------------ ##
7478
## Report this to bug-autoconf@gnu.org. ##
7479
## ------------------------------------ ##
7482
sed "s/^/$as_me: WARNING: /" >&2
7485
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7490
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7493
## ------------------------------------ ##
7494
## Report this to bug-autoconf@gnu.org. ##
7495
## ------------------------------------ ##
7498
sed "s/^/$as_me: WARNING: /" >&2
7501
echo "$as_me:$LINENO: checking for $ac_header" >&5
7502
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7503
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504
echo $ECHO_N "(cached) $ECHO_C" >&6
7506
eval "$as_ac_Header=$ac_header_preproc"
7508
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7509
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7512
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513
cat >>confdefs.h <<_ACEOF
7514
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7516
MYSQLINCLUDE="-I$MYSQL/include"
7521
if test "$ac_cv_header_mysql_mysql_h" = "yes" -a "$ac_cv_header_mysql_errmsg_h" = "yes"; then
7522
EXTRAS="$EXTRAS check_mysql"
7527
{ echo "$as_me:$LINENO: WARNING: Skipping mysql plugin" >&5
7528
echo "$as_me: WARNING: Skipping mysql plugin" >&2;}
7529
{ echo "$as_me:$LINENO: WARNING: install mysql client headers to compile this plugin (see REQUIREMENTS)." >&5
7530
echo "$as_me: WARNING: install mysql client headers to compile this plugin (see REQUIREMENTS)." >&2;}
7533
{ echo "$as_me:$LINENO: WARNING: Skipping mysql plugin" >&5
7534
echo "$as_me: WARNING: Skipping mysql plugin" >&2;}
7535
{ echo "$as_me:$LINENO: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&5
7536
echo "$as_me: WARNING: install mysql client libs to compile this plugin (see REQUIREMENTS)." >&2;}
7538
CPPFLAGS="$_SAVEDCPPFLAGS"
7541
# Extract the first word of "openssl", so it can be a program name with args.
7542
set dummy openssl; ac_word=$2
7543
echo "$as_me:$LINENO: checking for $ac_word" >&5
7544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7545
if test "${ac_cv_path_OPENSSL+set}" = set; then
7546
echo $ECHO_N "(cached) $ECHO_C" >&6
7550
ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
7553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557
test -z "$as_dir" && as_dir=.
7558
for ac_exec_ext in '' $ac_executable_extensions; do
7559
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560
ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
7561
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570
OPENSSL=$ac_cv_path_OPENSSL
7572
if test -n "$OPENSSL"; then
7573
echo "$as_me:$LINENO: result: $OPENSSL" >&5
7574
echo "${ECHO_T}$OPENSSL" >&6
7576
echo "$as_me:$LINENO: result: no" >&5
7577
echo "${ECHO_T}no" >&6
7580
if test "$OPENSSL" = "/usr/bin/openssl"; then
7582
elif test "$OPENSSL" = "/usr/sbin/openssl"; then
7584
elif test "$OPENSSL" = "/opt/bin/openssl"; then
7586
elif test "$OPENSSL" = "/opt/openssl/bin/openssl"; then
7587
OPENSSL=/opt/openssl
7588
elif test "$OPENSSL" = "/usr/slocal/bin/openssl"; then
7590
elif test "$OPENSSL" = "/usr/local/bin/openssl"; then
7592
elif test "$OPENSSL" = "/usr/local/ssl/bin/openssl"; then
7593
OPENSSL=/usr/local/ssl
7596
# Check whether --with-openssl or --without-openssl was given.
7597
if test "${with_openssl+set}" = set; then
7598
withval="$with_openssl"
7603
for ac_header in krb5.h
7605
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7606
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7607
echo "$as_me:$LINENO: checking for $ac_header" >&5
7608
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7609
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7610
echo $ECHO_N "(cached) $ECHO_C" >&6
7612
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7613
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7615
# Is the header compilable?
7616
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7617
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7618
cat >conftest.$ac_ext <<_ACEOF
7619
#line $LINENO "configure"
7622
cat confdefs.h >>conftest.$ac_ext
7623
cat >>conftest.$ac_ext <<_ACEOF
7624
/* end confdefs.h. */
7625
$ac_includes_default
7626
#include <$ac_header>
7628
rm -f conftest.$ac_objext
7629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7630
(eval $ac_compile) 2>&5
7632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633
(exit $ac_status); } &&
7634
{ ac_try='test -s conftest.$ac_objext'
7635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639
(exit $ac_status); }; }; then
7640
ac_header_compiler=yes
7642
echo "$as_me: failed program was:" >&5
7643
sed 's/^/| /' conftest.$ac_ext >&5
7645
ac_header_compiler=no
7647
rm -f conftest.$ac_objext conftest.$ac_ext
7648
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7649
echo "${ECHO_T}$ac_header_compiler" >&6
7651
# Is the header present?
7652
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7653
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7654
cat >conftest.$ac_ext <<_ACEOF
7655
#line $LINENO "configure"
7658
cat confdefs.h >>conftest.$ac_ext
7659
cat >>conftest.$ac_ext <<_ACEOF
7660
/* end confdefs.h. */
7661
#include <$ac_header>
7663
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7664
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7666
grep -v '^ *+' conftest.er1 >conftest.err
7668
cat conftest.err >&5
7669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670
(exit $ac_status); } >/dev/null; then
7671
if test -s conftest.err; then
7672
ac_cpp_err=$ac_c_preproc_warn_flag
7679
if test -z "$ac_cpp_err"; then
7680
ac_header_preproc=yes
7682
echo "$as_me: failed program was:" >&5
7683
sed 's/^/| /' conftest.$ac_ext >&5
7685
ac_header_preproc=no
7687
rm -f conftest.err conftest.$ac_ext
7688
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7689
echo "${ECHO_T}$ac_header_preproc" >&6
7691
# So? What about this header?
7692
case $ac_header_compiler:$ac_header_preproc in
7694
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7695
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7696
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7697
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7700
## ------------------------------------ ##
7701
## Report this to bug-autoconf@gnu.org. ##
7702
## ------------------------------------ ##
7705
sed "s/^/$as_me: WARNING: /" >&2
7708
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7709
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7710
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7711
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7712
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7713
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7716
## ------------------------------------ ##
7717
## Report this to bug-autoconf@gnu.org. ##
7718
## ------------------------------------ ##
7721
sed "s/^/$as_me: WARNING: /" >&2
7724
echo "$as_me:$LINENO: checking for $ac_header" >&5
7725
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7726
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7727
echo $ECHO_N "(cached) $ECHO_C" >&6
7729
eval "$as_ac_Header=$ac_header_preproc"
7731
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7732
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7735
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736
cat >>confdefs.h <<_ACEOF
7737
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7746
if test "$FOUNDINCLUDE" = "no"; then
7747
_SAVEDCPPFLAGS="$CPPFLAGS"
7748
CPPFLAGS="$_SAVEDCPPFLAGS -I/usr/kerberos/include"
7749
unset ac_cv_header_krb5_h
7751
for ac_header in krb5.h
7753
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755
echo "$as_me:$LINENO: checking for $ac_header" >&5
7756
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7757
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7758
echo $ECHO_N "(cached) $ECHO_C" >&6
7760
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7761
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7763
# Is the header compilable?
7764
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7765
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7766
cat >conftest.$ac_ext <<_ACEOF
7767
#line $LINENO "configure"
7770
cat confdefs.h >>conftest.$ac_ext
7771
cat >>conftest.$ac_ext <<_ACEOF
7772
/* end confdefs.h. */
7773
$ac_includes_default
7774
#include <$ac_header>
7776
rm -f conftest.$ac_objext
7777
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7778
(eval $ac_compile) 2>&5
7780
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781
(exit $ac_status); } &&
7782
{ ac_try='test -s conftest.$ac_objext'
7783
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787
(exit $ac_status); }; }; then
7788
ac_header_compiler=yes
7790
echo "$as_me: failed program was:" >&5
7791
sed 's/^/| /' conftest.$ac_ext >&5
7793
ac_header_compiler=no
7795
rm -f conftest.$ac_objext conftest.$ac_ext
7796
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7797
echo "${ECHO_T}$ac_header_compiler" >&6
7799
# Is the header present?
7800
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7801
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7802
cat >conftest.$ac_ext <<_ACEOF
7803
#line $LINENO "configure"
7806
cat confdefs.h >>conftest.$ac_ext
7807
cat >>conftest.$ac_ext <<_ACEOF
7808
/* end confdefs.h. */
7809
#include <$ac_header>
7811
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7812
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7814
grep -v '^ *+' conftest.er1 >conftest.err
7816
cat conftest.err >&5
7817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818
(exit $ac_status); } >/dev/null; then
7819
if test -s conftest.err; then
7820
ac_cpp_err=$ac_c_preproc_warn_flag
7827
if test -z "$ac_cpp_err"; then
7828
ac_header_preproc=yes
7830
echo "$as_me: failed program was:" >&5
7831
sed 's/^/| /' conftest.$ac_ext >&5
7833
ac_header_preproc=no
7835
rm -f conftest.err conftest.$ac_ext
7836
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7837
echo "${ECHO_T}$ac_header_preproc" >&6
7839
# So? What about this header?
7840
case $ac_header_compiler:$ac_header_preproc in
7842
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7843
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7844
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7845
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7848
## ------------------------------------ ##
7849
## Report this to bug-autoconf@gnu.org. ##
7850
## ------------------------------------ ##
7853
sed "s/^/$as_me: WARNING: /" >&2
7856
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7857
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7858
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7859
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7860
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7861
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7864
## ------------------------------------ ##
7865
## Report this to bug-autoconf@gnu.org. ##
7866
## ------------------------------------ ##
7869
sed "s/^/$as_me: WARNING: /" >&2
7872
echo "$as_me:$LINENO: checking for $ac_header" >&5
7873
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7874
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7875
echo $ECHO_N "(cached) $ECHO_C" >&6
7877
eval "$as_ac_Header=$ac_header_preproc"
7879
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7880
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7883
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7884
cat >>confdefs.h <<_ACEOF
7885
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7887
KRB5INCLUDE="-I/usr/kerberos/include"
7897
if test "$FOUNDINCLUDE" = "no"; then
7898
CPPFLAGS="$_SAVEDCPPFLAGS"
7902
_SAVEDCPPFLAGS="$CPPFLAGS"
7903
CPPFLAGS="$CPPFLAGS -I$OPENSSL/include"
7910
for ac_header in openssl/ssl.h openssl/x509.h openssl/rsa.h openssl/pem.h openssl/crypto.h openssl/err.h
7912
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7913
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7914
echo "$as_me:$LINENO: checking for $ac_header" >&5
7915
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7916
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7917
echo $ECHO_N "(cached) $ECHO_C" >&6
7919
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7920
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7922
# Is the header compilable?
7923
echo "$as_me:$LINENO: checking $ac_header usability" >&5
7924
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7925
cat >conftest.$ac_ext <<_ACEOF
7926
#line $LINENO "configure"
7929
cat confdefs.h >>conftest.$ac_ext
7930
cat >>conftest.$ac_ext <<_ACEOF
7931
/* end confdefs.h. */
7932
$ac_includes_default
7933
#include <$ac_header>
7935
rm -f conftest.$ac_objext
7936
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7937
(eval $ac_compile) 2>&5
7939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940
(exit $ac_status); } &&
7941
{ ac_try='test -s conftest.$ac_objext'
7942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946
(exit $ac_status); }; }; then
7947
ac_header_compiler=yes
7949
echo "$as_me: failed program was:" >&5
7950
sed 's/^/| /' conftest.$ac_ext >&5
7952
ac_header_compiler=no
7954
rm -f conftest.$ac_objext conftest.$ac_ext
7955
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7956
echo "${ECHO_T}$ac_header_compiler" >&6
7958
# Is the header present?
7959
echo "$as_me:$LINENO: checking $ac_header presence" >&5
7960
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7961
cat >conftest.$ac_ext <<_ACEOF
7962
#line $LINENO "configure"
7965
cat confdefs.h >>conftest.$ac_ext
7966
cat >>conftest.$ac_ext <<_ACEOF
7967
/* end confdefs.h. */
7968
#include <$ac_header>
7970
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973
grep -v '^ *+' conftest.er1 >conftest.err
7975
cat conftest.err >&5
7976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977
(exit $ac_status); } >/dev/null; then
7978
if test -s conftest.err; then
7979
ac_cpp_err=$ac_c_preproc_warn_flag
7986
if test -z "$ac_cpp_err"; then
7987
ac_header_preproc=yes
7989
echo "$as_me: failed program was:" >&5
7990
sed 's/^/| /' conftest.$ac_ext >&5
7992
ac_header_preproc=no
7994
rm -f conftest.err conftest.$ac_ext
7995
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7996
echo "${ECHO_T}$ac_header_preproc" >&6
7998
# So? What about this header?
7999
case $ac_header_compiler:$ac_header_preproc in
8001
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8002
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8003
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8004
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8007
## ------------------------------------ ##
8008
## Report this to bug-autoconf@gnu.org. ##
8009
## ------------------------------------ ##
8012
sed "s/^/$as_me: WARNING: /" >&2
8015
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8016
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8017
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8018
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8019
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8020
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8023
## ------------------------------------ ##
8024
## Report this to bug-autoconf@gnu.org. ##
8025
## ------------------------------------ ##
8028
sed "s/^/$as_me: WARNING: /" >&2
8031
echo "$as_me:$LINENO: checking for $ac_header" >&5
8032
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8033
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034
echo $ECHO_N "(cached) $ECHO_C" >&6
8036
eval "$as_ac_Header=$ac_header_preproc"
8038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8042
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8043
cat >>confdefs.h <<_ACEOF
8044
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046
SSLINCLUDE="-I$OPENSSL/include"
8054
if test "$FOUNDINCLUDE" = "no"; then
8061
for ac_header in ssl.h x509.h rsa.h pem.h crypto.h err.h
8063
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8064
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8065
echo "$as_me:$LINENO: checking for $ac_header" >&5
8066
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8067
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8068
echo $ECHO_N "(cached) $ECHO_C" >&6
8070
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8071
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8073
# Is the header compilable?
8074
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8075
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8076
cat >conftest.$ac_ext <<_ACEOF
8077
#line $LINENO "configure"
8080
cat confdefs.h >>conftest.$ac_ext
8081
cat >>conftest.$ac_ext <<_ACEOF
8082
/* end confdefs.h. */
8083
$ac_includes_default
8084
#include <$ac_header>
8086
rm -f conftest.$ac_objext
8087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088
(eval $ac_compile) 2>&5
8090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091
(exit $ac_status); } &&
8092
{ ac_try='test -s conftest.$ac_objext'
8093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097
(exit $ac_status); }; }; then
8098
ac_header_compiler=yes
8100
echo "$as_me: failed program was:" >&5
8101
sed 's/^/| /' conftest.$ac_ext >&5
8103
ac_header_compiler=no
8105
rm -f conftest.$ac_objext conftest.$ac_ext
8106
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8107
echo "${ECHO_T}$ac_header_compiler" >&6
8109
# Is the header present?
8110
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8111
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8112
cat >conftest.$ac_ext <<_ACEOF
8113
#line $LINENO "configure"
8116
cat confdefs.h >>conftest.$ac_ext
8117
cat >>conftest.$ac_ext <<_ACEOF
8118
/* end confdefs.h. */
8119
#include <$ac_header>
8121
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8122
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124
grep -v '^ *+' conftest.er1 >conftest.err
8126
cat conftest.err >&5
8127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128
(exit $ac_status); } >/dev/null; then
8129
if test -s conftest.err; then
8130
ac_cpp_err=$ac_c_preproc_warn_flag
8137
if test -z "$ac_cpp_err"; then
8138
ac_header_preproc=yes
8140
echo "$as_me: failed program was:" >&5
8141
sed 's/^/| /' conftest.$ac_ext >&5
8143
ac_header_preproc=no
8145
rm -f conftest.err conftest.$ac_ext
8146
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8147
echo "${ECHO_T}$ac_header_preproc" >&6
8149
# So? What about this header?
8150
case $ac_header_compiler:$ac_header_preproc in
8152
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8153
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8154
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8155
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8158
## ------------------------------------ ##
8159
## Report this to bug-autoconf@gnu.org. ##
8160
## ------------------------------------ ##
8163
sed "s/^/$as_me: WARNING: /" >&2
8166
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8171
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8174
## ------------------------------------ ##
8175
## Report this to bug-autoconf@gnu.org. ##
8176
## ------------------------------------ ##
8179
sed "s/^/$as_me: WARNING: /" >&2
8182
echo "$as_me:$LINENO: checking for $ac_header" >&5
8183
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8185
echo $ECHO_N "(cached) $ECHO_C" >&6
8187
eval "$as_ac_Header=$ac_header_preproc"
8189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8193
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8194
cat >>confdefs.h <<_ACEOF
8195
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8197
SSLINCLUDE="-I$OPENSSL/include"
8207
if test "$FOUNDINCLUDE" = "no"; then
8208
CPPFLAGS="$_SAVEDCPPFLAGS"
8213
echo "$as_me:$LINENO: checking for CRYPTO_lock in -lcrypto" >&5
8214
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
8215
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
8216
echo $ECHO_N "(cached) $ECHO_C" >&6
8218
ac_check_lib_save_LIBS=$LIBS
8219
LIBS="-lcrypto -L$OPENSSL/lib $LIBS"
8220
cat >conftest.$ac_ext <<_ACEOF
8221
#line $LINENO "configure"
8224
cat confdefs.h >>conftest.$ac_ext
8225
cat >>conftest.$ac_ext <<_ACEOF
8226
/* end confdefs.h. */
8228
/* Override any gcc2 internal prototype to avoid an error. */
8232
/* We use char because int might match the return type of a gcc2
8233
builtin and then its argument prototype would still apply. */
8234
char CRYPTO_lock ();
8243
rm -f conftest.$ac_objext conftest$ac_exeext
8244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8245
(eval $ac_link) 2>&5
8247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248
(exit $ac_status); } &&
8249
{ ac_try='test -s conftest$ac_exeext'
8250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254
(exit $ac_status); }; }; then
8255
ac_cv_lib_crypto_CRYPTO_lock=yes
8257
echo "$as_me: failed program was:" >&5
8258
sed 's/^/| /' conftest.$ac_ext >&5
8260
ac_cv_lib_crypto_CRYPTO_lock=no
8262
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8263
LIBS=$ac_check_lib_save_LIBS
8265
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
8266
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
8267
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
8268
cat >>confdefs.h <<_ACEOF
8269
#define HAVE_LIBCRYPTO 1
8272
LIBS="-lcrypto $LIBS"
8276
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
8277
echo "$as_me:$LINENO: checking for main in -lssl" >&5
8278
echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
8279
if test "${ac_cv_lib_ssl_main+set}" = set; then
8280
echo $ECHO_N "(cached) $ECHO_C" >&6
8282
ac_check_lib_save_LIBS=$LIBS
8283
LIBS="-lssl -L$OPENSSL/lib -lcrypto $LIBS"
8284
cat >conftest.$ac_ext <<_ACEOF
8285
#line $LINENO "configure"
8288
cat confdefs.h >>conftest.$ac_ext
8289
cat >>conftest.$ac_ext <<_ACEOF
8290
/* end confdefs.h. */
8301
rm -f conftest.$ac_objext conftest$ac_exeext
8302
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8303
(eval $ac_link) 2>&5
8305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306
(exit $ac_status); } &&
8307
{ ac_try='test -s conftest$ac_exeext'
8308
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312
(exit $ac_status); }; }; then
8313
ac_cv_lib_ssl_main=yes
8315
echo "$as_me: failed program was:" >&5
8316
sed 's/^/| /' conftest.$ac_ext >&5
8318
ac_cv_lib_ssl_main=no
8320
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8321
LIBS=$ac_check_lib_save_LIBS
8323
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
8324
echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
8325
if test $ac_cv_lib_ssl_main = yes; then
8326
LDFLAGS="$LDFLAGS -L$OPENSSL/lib" SSLLIBS="-lssl -lcrypto"
8328
echo "$as_me:$LINENO: checking for main in -lssl" >&5
8329
echo $ECHO_N "checking for main in -lssl... $ECHO_C" >&6
8330
if test "${ac_cv_lib_ssl_main+set}" = set; then
8331
echo $ECHO_N "(cached) $ECHO_C" >&6
8333
ac_check_lib_save_LIBS=$LIBS
8335
cat >conftest.$ac_ext <<_ACEOF
8336
#line $LINENO "configure"
8339
cat confdefs.h >>conftest.$ac_ext
8340
cat >>conftest.$ac_ext <<_ACEOF
8341
/* end confdefs.h. */
8352
rm -f conftest.$ac_objext conftest$ac_exeext
8353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8354
(eval $ac_link) 2>&5
8356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357
(exit $ac_status); } &&
8358
{ ac_try='test -s conftest$ac_exeext'
8359
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363
(exit $ac_status); }; }; then
8364
ac_cv_lib_ssl_main=yes
8366
echo "$as_me: failed program was:" >&5
8367
sed 's/^/| /' conftest.$ac_ext >&5
8369
ac_cv_lib_ssl_main=no
8371
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8372
LIBS=$ac_check_lib_save_LIBS
8374
echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_main" >&5
8375
echo "${ECHO_T}$ac_cv_lib_ssl_main" >&6
8376
if test $ac_cv_lib_ssl_main = yes; then
8377
LDFLAGS="$LDFLAGS -L$OPENSSL/lib" SSLLIBS="-lssl -lcrypto"
8385
if test "$ac_cv_lib_crypto_CRYPTO_lock" = "yes"; then
8386
if test "$ac_cv_lib_ssl_main" = "yes"; then
8387
if test "$FOUNDINCLUDE" = "yes"; then
8388
check_tcp_ssl="check_simap check_spop"
8392
cat >>confdefs.h <<\_ACEOF
8399
CPPFLAGS="$_SAVEDCPPFLAGS"
8402
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8403
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8404
if test "${ac_cv_header_stdc+set}" = set; then
8405
echo $ECHO_N "(cached) $ECHO_C" >&6
8407
cat >conftest.$ac_ext <<_ACEOF
8408
#line $LINENO "configure"
8411
cat confdefs.h >>conftest.$ac_ext
8412
cat >>conftest.$ac_ext <<_ACEOF
8413
/* end confdefs.h. */
8427
rm -f conftest.$ac_objext
8428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429
(eval $ac_compile) 2>&5
8431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432
(exit $ac_status); } &&
8433
{ ac_try='test -s conftest.$ac_objext'
8434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438
(exit $ac_status); }; }; then
8439
ac_cv_header_stdc=yes
8441
echo "$as_me: failed program was:" >&5
8442
sed 's/^/| /' conftest.$ac_ext >&5
8444
ac_cv_header_stdc=no
8446
rm -f conftest.$ac_objext conftest.$ac_ext
8448
if test $ac_cv_header_stdc = yes; then
8449
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8450
cat >conftest.$ac_ext <<_ACEOF
8451
#line $LINENO "configure"
8454
cat confdefs.h >>conftest.$ac_ext
8455
cat >>conftest.$ac_ext <<_ACEOF
8456
/* end confdefs.h. */
8460
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8461
$EGREP "memchr" >/dev/null 2>&1; then
8464
ac_cv_header_stdc=no
8470
if test $ac_cv_header_stdc = yes; then
8471
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8472
cat >conftest.$ac_ext <<_ACEOF
8473
#line $LINENO "configure"
8476
cat confdefs.h >>conftest.$ac_ext
8477
cat >>conftest.$ac_ext <<_ACEOF
8478
/* end confdefs.h. */
8482
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8483
$EGREP "free" >/dev/null 2>&1; then
8486
ac_cv_header_stdc=no
8492
if test $ac_cv_header_stdc = yes; then
8493
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8494
if test "$cross_compiling" = yes; then
8497
cat >conftest.$ac_ext <<_ACEOF
8498
#line $LINENO "configure"
8501
cat confdefs.h >>conftest.$ac_ext
8502
cat >>conftest.$ac_ext <<_ACEOF
8503
/* end confdefs.h. */
8505
#if ((' ' & 0x0FF) == 0x020)
8506
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8507
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8509
# define ISLOWER(c) \
8510
(('a' <= (c) && (c) <= 'i') \
8511
|| ('j' <= (c) && (c) <= 'r') \
8512
|| ('s' <= (c) && (c) <= 'z'))
8513
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8516
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8521
for (i = 0; i < 256; i++)
8522
if (XOR (islower (i), ISLOWER (i))
8523
|| toupper (i) != TOUPPER (i))
8528
rm -f conftest$ac_exeext
8529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8530
(eval $ac_link) 2>&5
8532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538
(exit $ac_status); }; }; then
8541
echo "$as_me: program exited with status $ac_status" >&5
8542
echo "$as_me: failed program was:" >&5
8543
sed 's/^/| /' conftest.$ac_ext >&5
8546
ac_cv_header_stdc=no
8548
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8552
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8553
echo "${ECHO_T}$ac_cv_header_stdc" >&6
8554
if test $ac_cv_header_stdc = yes; then
8556
cat >>confdefs.h <<\_ACEOF
8557
#define STDC_HEADERS 1
8562
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8563
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8564
if test "${ac_cv_header_time+set}" = set; then
8565
echo $ECHO_N "(cached) $ECHO_C" >&6
8567
cat >conftest.$ac_ext <<_ACEOF
8568
#line $LINENO "configure"
8571
cat confdefs.h >>conftest.$ac_ext
8572
cat >>conftest.$ac_ext <<_ACEOF
8573
/* end confdefs.h. */
8574
#include <sys/types.h>
8575
#include <sys/time.h>
8581
if ((struct tm *) 0)
8587
rm -f conftest.$ac_objext
8588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8589
(eval $ac_compile) 2>&5
8591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592
(exit $ac_status); } &&
8593
{ ac_try='test -s conftest.$ac_objext'
8594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598
(exit $ac_status); }; }; then
8599
ac_cv_header_time=yes
8601
echo "$as_me: failed program was:" >&5
8602
sed 's/^/| /' conftest.$ac_ext >&5
8604
ac_cv_header_time=no
8606
rm -f conftest.$ac_objext conftest.$ac_ext
8608
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8609
echo "${ECHO_T}$ac_cv_header_time" >&6
8610
if test $ac_cv_header_time = yes; then
8612
cat >>confdefs.h <<\_ACEOF
8613
#define TIME_WITH_SYS_TIME 1
8618
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
8619
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
8620
if test "${ac_cv_header_sys_wait_h+set}" = set; then
8621
echo $ECHO_N "(cached) $ECHO_C" >&6
8623
cat >conftest.$ac_ext <<_ACEOF
8624
#line $LINENO "configure"
8627
cat confdefs.h >>conftest.$ac_ext
8628
cat >>conftest.$ac_ext <<_ACEOF
8629
/* end confdefs.h. */
8630
#include <sys/types.h>
8631
#include <sys/wait.h>
8633
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8636
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8644
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8649
rm -f conftest.$ac_objext
8650
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651
(eval $ac_compile) 2>&5
8653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654
(exit $ac_status); } &&
8655
{ ac_try='test -s conftest.$ac_objext'
8656
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660
(exit $ac_status); }; }; then
8661
ac_cv_header_sys_wait_h=yes
8663
echo "$as_me: failed program was:" >&5
8664
sed 's/^/| /' conftest.$ac_ext >&5
8666
ac_cv_header_sys_wait_h=no
8668
rm -f conftest.$ac_objext conftest.$ac_ext
8670
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
8671
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
8672
if test $ac_cv_header_sys_wait_h = yes; then
8674
cat >>confdefs.h <<\_ACEOF
8675
#define HAVE_SYS_WAIT_H 1
8692
for ac_header in signal.h strings.h string.h syslog.h unistd.h uio.h errno.h regex.h sys/types.h sys/time.h sys/socket.h sys/loadavg.h
8694
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8695
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8696
echo "$as_me:$LINENO: checking for $ac_header" >&5
8697
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8698
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8699
echo $ECHO_N "(cached) $ECHO_C" >&6
8701
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8702
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8704
# Is the header compilable?
8705
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8706
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8707
cat >conftest.$ac_ext <<_ACEOF
8708
#line $LINENO "configure"
8711
cat confdefs.h >>conftest.$ac_ext
8712
cat >>conftest.$ac_ext <<_ACEOF
8713
/* end confdefs.h. */
8714
$ac_includes_default
8715
#include <$ac_header>
8717
rm -f conftest.$ac_objext
8718
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8719
(eval $ac_compile) 2>&5
8721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722
(exit $ac_status); } &&
8723
{ ac_try='test -s conftest.$ac_objext'
8724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728
(exit $ac_status); }; }; then
8729
ac_header_compiler=yes
8731
echo "$as_me: failed program was:" >&5
8732
sed 's/^/| /' conftest.$ac_ext >&5
8734
ac_header_compiler=no
8736
rm -f conftest.$ac_objext conftest.$ac_ext
8737
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8738
echo "${ECHO_T}$ac_header_compiler" >&6
8740
# Is the header present?
8741
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8742
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8743
cat >conftest.$ac_ext <<_ACEOF
8744
#line $LINENO "configure"
8747
cat confdefs.h >>conftest.$ac_ext
8748
cat >>conftest.$ac_ext <<_ACEOF
8749
/* end confdefs.h. */
8750
#include <$ac_header>
8752
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8753
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8755
grep -v '^ *+' conftest.er1 >conftest.err
8757
cat conftest.err >&5
8758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759
(exit $ac_status); } >/dev/null; then
8760
if test -s conftest.err; then
8761
ac_cpp_err=$ac_c_preproc_warn_flag
8768
if test -z "$ac_cpp_err"; then
8769
ac_header_preproc=yes
8771
echo "$as_me: failed program was:" >&5
8772
sed 's/^/| /' conftest.$ac_ext >&5
8774
ac_header_preproc=no
8776
rm -f conftest.err conftest.$ac_ext
8777
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8778
echo "${ECHO_T}$ac_header_preproc" >&6
8780
# So? What about this header?
8781
case $ac_header_compiler:$ac_header_preproc in
8783
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8784
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8785
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8786
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8789
## ------------------------------------ ##
8790
## Report this to bug-autoconf@gnu.org. ##
8791
## ------------------------------------ ##
8794
sed "s/^/$as_me: WARNING: /" >&2
8797
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8798
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8799
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8800
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8801
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8802
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8805
## ------------------------------------ ##
8806
## Report this to bug-autoconf@gnu.org. ##
8807
## ------------------------------------ ##
8810
sed "s/^/$as_me: WARNING: /" >&2
8813
echo "$as_me:$LINENO: checking for $ac_header" >&5
8814
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8815
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8816
echo $ECHO_N "(cached) $ECHO_C" >&6
8818
eval "$as_ac_Header=$ac_header_preproc"
8820
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8824
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8825
cat >>confdefs.h <<_ACEOF
8826
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8839
for ac_header in stdarg.h sys/unistd.h unistd.h ctype.h sys/wait.h stdlib.h
8841
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8843
echo "$as_me:$LINENO: checking for $ac_header" >&5
8844
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8845
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8846
echo $ECHO_N "(cached) $ECHO_C" >&6
8848
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8849
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8851
# Is the header compilable?
8852
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8853
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8854
cat >conftest.$ac_ext <<_ACEOF
8855
#line $LINENO "configure"
8858
cat confdefs.h >>conftest.$ac_ext
8859
cat >>conftest.$ac_ext <<_ACEOF
8860
/* end confdefs.h. */
8861
$ac_includes_default
8862
#include <$ac_header>
8864
rm -f conftest.$ac_objext
8865
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8866
(eval $ac_compile) 2>&5
8868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869
(exit $ac_status); } &&
8870
{ ac_try='test -s conftest.$ac_objext'
8871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875
(exit $ac_status); }; }; then
8876
ac_header_compiler=yes
8878
echo "$as_me: failed program was:" >&5
8879
sed 's/^/| /' conftest.$ac_ext >&5
8881
ac_header_compiler=no
8883
rm -f conftest.$ac_objext conftest.$ac_ext
8884
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8885
echo "${ECHO_T}$ac_header_compiler" >&6
8887
# Is the header present?
8888
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8889
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8890
cat >conftest.$ac_ext <<_ACEOF
8891
#line $LINENO "configure"
8894
cat confdefs.h >>conftest.$ac_ext
8895
cat >>conftest.$ac_ext <<_ACEOF
8896
/* end confdefs.h. */
8897
#include <$ac_header>
8899
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8900
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8902
grep -v '^ *+' conftest.er1 >conftest.err
8904
cat conftest.err >&5
8905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906
(exit $ac_status); } >/dev/null; then
8907
if test -s conftest.err; then
8908
ac_cpp_err=$ac_c_preproc_warn_flag
8915
if test -z "$ac_cpp_err"; then
8916
ac_header_preproc=yes
8918
echo "$as_me: failed program was:" >&5
8919
sed 's/^/| /' conftest.$ac_ext >&5
8921
ac_header_preproc=no
8923
rm -f conftest.err conftest.$ac_ext
8924
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8925
echo "${ECHO_T}$ac_header_preproc" >&6
8927
# So? What about this header?
8928
case $ac_header_compiler:$ac_header_preproc in
8930
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8931
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8932
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8933
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8936
## ------------------------------------ ##
8937
## Report this to bug-autoconf@gnu.org. ##
8938
## ------------------------------------ ##
8941
sed "s/^/$as_me: WARNING: /" >&2
8944
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8945
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8946
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8947
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8948
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8949
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8952
## ------------------------------------ ##
8953
## Report this to bug-autoconf@gnu.org. ##
8954
## ------------------------------------ ##
8957
sed "s/^/$as_me: WARNING: /" >&2
8960
echo "$as_me:$LINENO: checking for $ac_header" >&5
8961
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8962
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8963
echo $ECHO_N "(cached) $ECHO_C" >&6
8965
eval "$as_ac_Header=$ac_header_preproc"
8967
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8968
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8971
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8972
cat >>confdefs.h <<_ACEOF
8973
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8981
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8982
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8983
if test "${ac_cv_c_const+set}" = set; then
8984
echo $ECHO_N "(cached) $ECHO_C" >&6
8986
cat >conftest.$ac_ext <<_ACEOF
8987
#line $LINENO "configure"
8990
cat confdefs.h >>conftest.$ac_ext
8991
cat >>conftest.$ac_ext <<_ACEOF
8992
/* end confdefs.h. */
8997
/* FIXME: Include the comments suggested by Paul. */
8999
/* Ultrix mips cc rejects this. */
9000
typedef int charset[2];
9002
/* SunOS 4.1.1 cc rejects this. */
9003
char const *const *ccp;
9005
/* NEC SVR4.0.2 mips cc rejects this. */
9006
struct point {int x, y;};
9007
static struct point const zero = {0,0};
9008
/* AIX XL C 1.02.0.0 rejects this.
9009
It does not let you subtract one const X* pointer from another in
9010
an arm of an if-expression whose if-part is not a constant
9012
const char *g = "string";
9013
ccp = &g + (g ? g-g : 0);
9014
/* HPUX 7.0 cc rejects these. */
9017
ccp = (char const *const *) p;
9018
{ /* SCO 3.2v4 cc rejects this. */
9020
char const *s = 0 ? (char *) 0 : (char const *) 0;
9024
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9026
const int *foo = &x[0];
9029
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9030
typedef const int *iptr;
9034
{ /* AIX XL C 1.02.0.0 rejects this saying
9035
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9036
struct s { int j; const int *ap[3]; };
9037
struct s *b; b->j = 5;
9039
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9048
rm -f conftest.$ac_objext
9049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050
(eval $ac_compile) 2>&5
9052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053
(exit $ac_status); } &&
9054
{ ac_try='test -s conftest.$ac_objext'
9055
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059
(exit $ac_status); }; }; then
9062
echo "$as_me: failed program was:" >&5
9063
sed 's/^/| /' conftest.$ac_ext >&5
9067
rm -f conftest.$ac_objext conftest.$ac_ext
9069
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9070
echo "${ECHO_T}$ac_cv_c_const" >&6
9071
if test $ac_cv_c_const = no; then
9073
cat >>confdefs.h <<\_ACEOF
9079
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9080
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9081
if test "${ac_cv_struct_tm+set}" = set; then
9082
echo $ECHO_N "(cached) $ECHO_C" >&6
9084
cat >conftest.$ac_ext <<_ACEOF
9085
#line $LINENO "configure"
9088
cat confdefs.h >>conftest.$ac_ext
9089
cat >>conftest.$ac_ext <<_ACEOF
9090
/* end confdefs.h. */
9091
#include <sys/types.h>
9097
struct tm *tp; tp->tm_sec;
9102
rm -f conftest.$ac_objext
9103
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104
(eval $ac_compile) 2>&5
9106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107
(exit $ac_status); } &&
9108
{ ac_try='test -s conftest.$ac_objext'
9109
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113
(exit $ac_status); }; }; then
9114
ac_cv_struct_tm=time.h
9116
echo "$as_me: failed program was:" >&5
9117
sed 's/^/| /' conftest.$ac_ext >&5
9119
ac_cv_struct_tm=sys/time.h
9121
rm -f conftest.$ac_objext conftest.$ac_ext
9123
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9124
echo "${ECHO_T}$ac_cv_struct_tm" >&6
9125
if test $ac_cv_struct_tm = sys/time.h; then
9127
cat >>confdefs.h <<\_ACEOF
9128
#define TM_IN_SYS_TIME 1
9133
echo "$as_me:$LINENO: checking for pid_t" >&5
9134
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9135
if test "${ac_cv_type_pid_t+set}" = set; then
9136
echo $ECHO_N "(cached) $ECHO_C" >&6
9138
cat >conftest.$ac_ext <<_ACEOF
9139
#line $LINENO "configure"
9142
cat confdefs.h >>conftest.$ac_ext
9143
cat >>conftest.$ac_ext <<_ACEOF
9144
/* end confdefs.h. */
9145
$ac_includes_default
9157
rm -f conftest.$ac_objext
9158
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159
(eval $ac_compile) 2>&5
9161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162
(exit $ac_status); } &&
9163
{ ac_try='test -s conftest.$ac_objext'
9164
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9167
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168
(exit $ac_status); }; }; then
9169
ac_cv_type_pid_t=yes
9171
echo "$as_me: failed program was:" >&5
9172
sed 's/^/| /' conftest.$ac_ext >&5
9176
rm -f conftest.$ac_objext conftest.$ac_ext
9178
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9179
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9180
if test $ac_cv_type_pid_t = yes; then
9184
cat >>confdefs.h <<_ACEOF
9190
echo "$as_me:$LINENO: checking for size_t" >&5
9191
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9192
if test "${ac_cv_type_size_t+set}" = set; then
9193
echo $ECHO_N "(cached) $ECHO_C" >&6
9195
cat >conftest.$ac_ext <<_ACEOF
9196
#line $LINENO "configure"
9199
cat confdefs.h >>conftest.$ac_ext
9200
cat >>conftest.$ac_ext <<_ACEOF
9201
/* end confdefs.h. */
9202
$ac_includes_default
9208
if (sizeof (size_t))
9214
rm -f conftest.$ac_objext
9215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9216
(eval $ac_compile) 2>&5
9218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
(exit $ac_status); } &&
9220
{ ac_try='test -s conftest.$ac_objext'
9221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225
(exit $ac_status); }; }; then
9226
ac_cv_type_size_t=yes
9228
echo "$as_me: failed program was:" >&5
9229
sed 's/^/| /' conftest.$ac_ext >&5
9231
ac_cv_type_size_t=no
9233
rm -f conftest.$ac_objext conftest.$ac_ext
9235
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9236
echo "${ECHO_T}$ac_cv_type_size_t" >&6
9237
if test $ac_cv_type_size_t = yes; then
9241
cat >>confdefs.h <<_ACEOF
9242
#define size_t unsigned
9247
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9248
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9249
if test "${ac_cv_type_signal+set}" = set; then
9250
echo $ECHO_N "(cached) $ECHO_C" >&6
9252
cat >conftest.$ac_ext <<_ACEOF
9253
#line $LINENO "configure"
9256
cat confdefs.h >>conftest.$ac_ext
9257
cat >>conftest.$ac_ext <<_ACEOF
9258
/* end confdefs.h. */
9259
#include <sys/types.h>
9265
extern "C" void (*signal (int, void (*)(int)))(int);
9267
void (*signal ()) ();
9278
rm -f conftest.$ac_objext
9279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9280
(eval $ac_compile) 2>&5
9282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283
(exit $ac_status); } &&
9284
{ ac_try='test -s conftest.$ac_objext'
9285
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289
(exit $ac_status); }; }; then
9290
ac_cv_type_signal=void
9292
echo "$as_me: failed program was:" >&5
9293
sed 's/^/| /' conftest.$ac_ext >&5
9295
ac_cv_type_signal=int
9297
rm -f conftest.$ac_objext conftest.$ac_ext
9299
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9300
echo "${ECHO_T}$ac_cv_type_signal" >&6
9302
cat >>confdefs.h <<_ACEOF
9303
#define RETSIGTYPE $ac_cv_type_signal
9308
echo "$as_me:$LINENO: checking for int" >&5
9309
echo $ECHO_N "checking for int... $ECHO_C" >&6
9310
if test "${ac_cv_type_int+set}" = set; then
9311
echo $ECHO_N "(cached) $ECHO_C" >&6
9313
cat >conftest.$ac_ext <<_ACEOF
9314
#line $LINENO "configure"
9317
cat confdefs.h >>conftest.$ac_ext
9318
cat >>conftest.$ac_ext <<_ACEOF
9319
/* end confdefs.h. */
9320
$ac_includes_default
9332
rm -f conftest.$ac_objext
9333
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9334
(eval $ac_compile) 2>&5
9336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337
(exit $ac_status); } &&
9338
{ ac_try='test -s conftest.$ac_objext'
9339
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343
(exit $ac_status); }; }; then
9346
echo "$as_me: failed program was:" >&5
9347
sed 's/^/| /' conftest.$ac_ext >&5
9351
rm -f conftest.$ac_objext conftest.$ac_ext
9353
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9354
echo "${ECHO_T}$ac_cv_type_int" >&6
9356
echo "$as_me:$LINENO: checking size of int" >&5
9357
echo $ECHO_N "checking size of int... $ECHO_C" >&6
9358
if test "${ac_cv_sizeof_int+set}" = set; then
9359
echo $ECHO_N "(cached) $ECHO_C" >&6
9361
if test "$ac_cv_type_int" = yes; then
9362
# The cast to unsigned long works around a bug in the HP C Compiler
9363
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9364
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9365
# This bug is HP SR number 8606223364.
9366
if test "$cross_compiling" = yes; then
9367
# Depending upon the size, compute the lo and hi bounds.
9368
cat >conftest.$ac_ext <<_ACEOF
9369
#line $LINENO "configure"
9372
cat confdefs.h >>conftest.$ac_ext
9373
cat >>conftest.$ac_ext <<_ACEOF
9374
/* end confdefs.h. */
9375
$ac_includes_default
9379
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9386
rm -f conftest.$ac_objext
9387
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9388
(eval $ac_compile) 2>&5
9390
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391
(exit $ac_status); } &&
9392
{ ac_try='test -s conftest.$ac_objext'
9393
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397
(exit $ac_status); }; }; then
9400
cat >conftest.$ac_ext <<_ACEOF
9401
#line $LINENO "configure"
9404
cat confdefs.h >>conftest.$ac_ext
9405
cat >>conftest.$ac_ext <<_ACEOF
9406
/* end confdefs.h. */
9407
$ac_includes_default
9411
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9418
rm -f conftest.$ac_objext
9419
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9420
(eval $ac_compile) 2>&5
9422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423
(exit $ac_status); } &&
9424
{ ac_try='test -s conftest.$ac_objext'
9425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429
(exit $ac_status); }; }; then
9430
ac_hi=$ac_mid; break
9432
echo "$as_me: failed program was:" >&5
9433
sed 's/^/| /' conftest.$ac_ext >&5
9435
ac_lo=`expr $ac_mid + 1`
9436
if test $ac_lo -le $ac_mid; then
9440
ac_mid=`expr 2 '*' $ac_mid + 1`
9442
rm -f conftest.$ac_objext conftest.$ac_ext
9445
echo "$as_me: failed program was:" >&5
9446
sed 's/^/| /' conftest.$ac_ext >&5
9448
cat >conftest.$ac_ext <<_ACEOF
9449
#line $LINENO "configure"
9452
cat confdefs.h >>conftest.$ac_ext
9453
cat >>conftest.$ac_ext <<_ACEOF
9454
/* end confdefs.h. */
9455
$ac_includes_default
9459
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9466
rm -f conftest.$ac_objext
9467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9468
(eval $ac_compile) 2>&5
9470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471
(exit $ac_status); } &&
9472
{ ac_try='test -s conftest.$ac_objext'
9473
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477
(exit $ac_status); }; }; then
9480
cat >conftest.$ac_ext <<_ACEOF
9481
#line $LINENO "configure"
9484
cat confdefs.h >>conftest.$ac_ext
9485
cat >>conftest.$ac_ext <<_ACEOF
9486
/* end confdefs.h. */
9487
$ac_includes_default
9491
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9498
rm -f conftest.$ac_objext
9499
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9500
(eval $ac_compile) 2>&5
9502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503
(exit $ac_status); } &&
9504
{ ac_try='test -s conftest.$ac_objext'
9505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
(exit $ac_status); }; }; then
9510
ac_lo=$ac_mid; break
9512
echo "$as_me: failed program was:" >&5
9513
sed 's/^/| /' conftest.$ac_ext >&5
9515
ac_hi=`expr '(' $ac_mid ')' - 1`
9516
if test $ac_mid -le $ac_hi; then
9520
ac_mid=`expr 2 '*' $ac_mid`
9522
rm -f conftest.$ac_objext conftest.$ac_ext
9525
echo "$as_me: failed program was:" >&5
9526
sed 's/^/| /' conftest.$ac_ext >&5
9530
rm -f conftest.$ac_objext conftest.$ac_ext
9532
rm -f conftest.$ac_objext conftest.$ac_ext
9533
# Binary search between lo and hi bounds.
9534
while test "x$ac_lo" != "x$ac_hi"; do
9535
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9536
cat >conftest.$ac_ext <<_ACEOF
9537
#line $LINENO "configure"
9540
cat confdefs.h >>conftest.$ac_ext
9541
cat >>conftest.$ac_ext <<_ACEOF
9542
/* end confdefs.h. */
9543
$ac_includes_default
9547
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9554
rm -f conftest.$ac_objext
9555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9556
(eval $ac_compile) 2>&5
9558
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559
(exit $ac_status); } &&
9560
{ ac_try='test -s conftest.$ac_objext'
9561
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565
(exit $ac_status); }; }; then
9568
echo "$as_me: failed program was:" >&5
9569
sed 's/^/| /' conftest.$ac_ext >&5
9571
ac_lo=`expr '(' $ac_mid ')' + 1`
9573
rm -f conftest.$ac_objext conftest.$ac_ext
9576
?*) ac_cv_sizeof_int=$ac_lo;;
9577
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9578
See \`config.log' for more details." >&5
9579
echo "$as_me: error: cannot compute sizeof (int), 77
9580
See \`config.log' for more details." >&2;}
9581
{ (exit 1); exit 1; }; } ;;
9584
if test "$cross_compiling" = yes; then
9585
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9586
See \`config.log' for more details." >&5
9587
echo "$as_me: error: cannot run test program while cross compiling
9588
See \`config.log' for more details." >&2;}
9589
{ (exit 1); exit 1; }; }
9591
cat >conftest.$ac_ext <<_ACEOF
9592
#line $LINENO "configure"
9595
cat confdefs.h >>conftest.$ac_ext
9596
cat >>conftest.$ac_ext <<_ACEOF
9597
/* end confdefs.h. */
9598
$ac_includes_default
9599
long longval () { return (long) (sizeof (int)); }
9600
unsigned long ulongval () { return (long) (sizeof (int)); }
9607
FILE *f = fopen ("conftest.val", "w");
9610
if (((long) (sizeof (int))) < 0)
9612
long i = longval ();
9613
if (i != ((long) (sizeof (int))))
9615
fprintf (f, "%ld\n", i);
9619
unsigned long i = ulongval ();
9620
if (i != ((long) (sizeof (int))))
9622
fprintf (f, "%lu\n", i);
9624
exit (ferror (f) || fclose (f) != 0);
9630
rm -f conftest$ac_exeext
9631
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9632
(eval $ac_link) 2>&5
9634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640
(exit $ac_status); }; }; then
9641
ac_cv_sizeof_int=`cat conftest.val`
9643
echo "$as_me: program exited with status $ac_status" >&5
9644
echo "$as_me: failed program was:" >&5
9645
sed 's/^/| /' conftest.$ac_ext >&5
9648
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9649
See \`config.log' for more details." >&5
9650
echo "$as_me: error: cannot compute sizeof (int), 77
9651
See \`config.log' for more details." >&2;}
9652
{ (exit 1); exit 1; }; }
9654
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9662
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9663
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
9664
cat >>confdefs.h <<_ACEOF
9665
#define SIZEOF_INT $ac_cv_sizeof_int
9669
echo "$as_me:$LINENO: checking for long" >&5
9670
echo $ECHO_N "checking for long... $ECHO_C" >&6
9671
if test "${ac_cv_type_long+set}" = set; then
9672
echo $ECHO_N "(cached) $ECHO_C" >&6
9674
cat >conftest.$ac_ext <<_ACEOF
9675
#line $LINENO "configure"
9678
cat confdefs.h >>conftest.$ac_ext
9679
cat >>conftest.$ac_ext <<_ACEOF
9680
/* end confdefs.h. */
9681
$ac_includes_default
9693
rm -f conftest.$ac_objext
9694
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695
(eval $ac_compile) 2>&5
9697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698
(exit $ac_status); } &&
9699
{ ac_try='test -s conftest.$ac_objext'
9700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704
(exit $ac_status); }; }; then
9707
echo "$as_me: failed program was:" >&5
9708
sed 's/^/| /' conftest.$ac_ext >&5
9712
rm -f conftest.$ac_objext conftest.$ac_ext
9714
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
9715
echo "${ECHO_T}$ac_cv_type_long" >&6
9717
echo "$as_me:$LINENO: checking size of long" >&5
9718
echo $ECHO_N "checking size of long... $ECHO_C" >&6
9719
if test "${ac_cv_sizeof_long+set}" = set; then
9720
echo $ECHO_N "(cached) $ECHO_C" >&6
9722
if test "$ac_cv_type_long" = yes; then
9723
# The cast to unsigned long works around a bug in the HP C Compiler
9724
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9725
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9726
# This bug is HP SR number 8606223364.
9727
if test "$cross_compiling" = yes; then
9728
# Depending upon the size, compute the lo and hi bounds.
9729
cat >conftest.$ac_ext <<_ACEOF
9730
#line $LINENO "configure"
9733
cat confdefs.h >>conftest.$ac_ext
9734
cat >>conftest.$ac_ext <<_ACEOF
9735
/* end confdefs.h. */
9736
$ac_includes_default
9740
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
9747
rm -f conftest.$ac_objext
9748
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9749
(eval $ac_compile) 2>&5
9751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752
(exit $ac_status); } &&
9753
{ ac_try='test -s conftest.$ac_objext'
9754
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758
(exit $ac_status); }; }; then
9761
cat >conftest.$ac_ext <<_ACEOF
9762
#line $LINENO "configure"
9765
cat confdefs.h >>conftest.$ac_ext
9766
cat >>conftest.$ac_ext <<_ACEOF
9767
/* end confdefs.h. */
9768
$ac_includes_default
9772
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9779
rm -f conftest.$ac_objext
9780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9781
(eval $ac_compile) 2>&5
9783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9784
(exit $ac_status); } &&
9785
{ ac_try='test -s conftest.$ac_objext'
9786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790
(exit $ac_status); }; }; then
9791
ac_hi=$ac_mid; break
9793
echo "$as_me: failed program was:" >&5
9794
sed 's/^/| /' conftest.$ac_ext >&5
9796
ac_lo=`expr $ac_mid + 1`
9797
if test $ac_lo -le $ac_mid; then
9801
ac_mid=`expr 2 '*' $ac_mid + 1`
9803
rm -f conftest.$ac_objext conftest.$ac_ext
9806
echo "$as_me: failed program was:" >&5
9807
sed 's/^/| /' conftest.$ac_ext >&5
9809
cat >conftest.$ac_ext <<_ACEOF
9810
#line $LINENO "configure"
9813
cat confdefs.h >>conftest.$ac_ext
9814
cat >>conftest.$ac_ext <<_ACEOF
9815
/* end confdefs.h. */
9816
$ac_includes_default
9820
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
9827
rm -f conftest.$ac_objext
9828
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829
(eval $ac_compile) 2>&5
9831
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832
(exit $ac_status); } &&
9833
{ ac_try='test -s conftest.$ac_objext'
9834
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838
(exit $ac_status); }; }; then
9841
cat >conftest.$ac_ext <<_ACEOF
9842
#line $LINENO "configure"
9845
cat confdefs.h >>conftest.$ac_ext
9846
cat >>conftest.$ac_ext <<_ACEOF
9847
/* end confdefs.h. */
9848
$ac_includes_default
9852
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
9859
rm -f conftest.$ac_objext
9860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9861
(eval $ac_compile) 2>&5
9863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864
(exit $ac_status); } &&
9865
{ ac_try='test -s conftest.$ac_objext'
9866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870
(exit $ac_status); }; }; then
9871
ac_lo=$ac_mid; break
9873
echo "$as_me: failed program was:" >&5
9874
sed 's/^/| /' conftest.$ac_ext >&5
9876
ac_hi=`expr '(' $ac_mid ')' - 1`
9877
if test $ac_mid -le $ac_hi; then
9881
ac_mid=`expr 2 '*' $ac_mid`
9883
rm -f conftest.$ac_objext conftest.$ac_ext
9886
echo "$as_me: failed program was:" >&5
9887
sed 's/^/| /' conftest.$ac_ext >&5
9891
rm -f conftest.$ac_objext conftest.$ac_ext
9893
rm -f conftest.$ac_objext conftest.$ac_ext
9894
# Binary search between lo and hi bounds.
9895
while test "x$ac_lo" != "x$ac_hi"; do
9896
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9897
cat >conftest.$ac_ext <<_ACEOF
9898
#line $LINENO "configure"
9901
cat confdefs.h >>conftest.$ac_ext
9902
cat >>conftest.$ac_ext <<_ACEOF
9903
/* end confdefs.h. */
9904
$ac_includes_default
9908
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
9915
rm -f conftest.$ac_objext
9916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9917
(eval $ac_compile) 2>&5
9919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
(exit $ac_status); } &&
9921
{ ac_try='test -s conftest.$ac_objext'
9922
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9925
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926
(exit $ac_status); }; }; then
9929
echo "$as_me: failed program was:" >&5
9930
sed 's/^/| /' conftest.$ac_ext >&5
9932
ac_lo=`expr '(' $ac_mid ')' + 1`
9934
rm -f conftest.$ac_objext conftest.$ac_ext
9937
?*) ac_cv_sizeof_long=$ac_lo;;
9938
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
9939
See \`config.log' for more details." >&5
9940
echo "$as_me: error: cannot compute sizeof (long), 77
9941
See \`config.log' for more details." >&2;}
9942
{ (exit 1); exit 1; }; } ;;
9945
if test "$cross_compiling" = yes; then
9946
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9947
See \`config.log' for more details." >&5
9948
echo "$as_me: error: cannot run test program while cross compiling
9949
See \`config.log' for more details." >&2;}
9950
{ (exit 1); exit 1; }; }
9952
cat >conftest.$ac_ext <<_ACEOF
9953
#line $LINENO "configure"
9956
cat confdefs.h >>conftest.$ac_ext
9957
cat >>conftest.$ac_ext <<_ACEOF
9958
/* end confdefs.h. */
9959
$ac_includes_default
9960
long longval () { return (long) (sizeof (long)); }
9961
unsigned long ulongval () { return (long) (sizeof (long)); }
9968
FILE *f = fopen ("conftest.val", "w");
9971
if (((long) (sizeof (long))) < 0)
9973
long i = longval ();
9974
if (i != ((long) (sizeof (long))))
9976
fprintf (f, "%ld\n", i);
9980
unsigned long i = ulongval ();
9981
if (i != ((long) (sizeof (long))))
9983
fprintf (f, "%lu\n", i);
9985
exit (ferror (f) || fclose (f) != 0);
9991
rm -f conftest$ac_exeext
9992
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993
(eval $ac_link) 2>&5
9995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9997
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001
(exit $ac_status); }; }; then
10002
ac_cv_sizeof_long=`cat conftest.val`
10004
echo "$as_me: program exited with status $ac_status" >&5
10005
echo "$as_me: failed program was:" >&5
10006
sed 's/^/| /' conftest.$ac_ext >&5
10008
( exit $ac_status )
10009
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10010
See \`config.log' for more details." >&5
10011
echo "$as_me: error: cannot compute sizeof (long), 77
10012
See \`config.log' for more details." >&2;}
10013
{ (exit 1); exit 1; }; }
10015
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10020
ac_cv_sizeof_long=0
10023
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10024
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10025
cat >>confdefs.h <<_ACEOF
10026
#define SIZEOF_LONG $ac_cv_sizeof_long
10030
echo "$as_me:$LINENO: checking for short" >&5
10031
echo $ECHO_N "checking for short... $ECHO_C" >&6
10032
if test "${ac_cv_type_short+set}" = set; then
10033
echo $ECHO_N "(cached) $ECHO_C" >&6
10035
cat >conftest.$ac_ext <<_ACEOF
10036
#line $LINENO "configure"
10039
cat confdefs.h >>conftest.$ac_ext
10040
cat >>conftest.$ac_ext <<_ACEOF
10041
/* end confdefs.h. */
10042
$ac_includes_default
10048
if (sizeof (short))
10054
rm -f conftest.$ac_objext
10055
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056
(eval $ac_compile) 2>&5
10058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059
(exit $ac_status); } &&
10060
{ ac_try='test -s conftest.$ac_objext'
10061
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062
(eval $ac_try) 2>&5
10064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065
(exit $ac_status); }; }; then
10066
ac_cv_type_short=yes
10068
echo "$as_me: failed program was:" >&5
10069
sed 's/^/| /' conftest.$ac_ext >&5
10071
ac_cv_type_short=no
10073
rm -f conftest.$ac_objext conftest.$ac_ext
10075
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
10076
echo "${ECHO_T}$ac_cv_type_short" >&6
10078
echo "$as_me:$LINENO: checking size of short" >&5
10079
echo $ECHO_N "checking size of short... $ECHO_C" >&6
10080
if test "${ac_cv_sizeof_short+set}" = set; then
10081
echo $ECHO_N "(cached) $ECHO_C" >&6
10083
if test "$ac_cv_type_short" = yes; then
10084
# The cast to unsigned long works around a bug in the HP C Compiler
10085
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10086
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10087
# This bug is HP SR number 8606223364.
10088
if test "$cross_compiling" = yes; then
10089
# Depending upon the size, compute the lo and hi bounds.
10090
cat >conftest.$ac_ext <<_ACEOF
10091
#line $LINENO "configure"
10094
cat confdefs.h >>conftest.$ac_ext
10095
cat >>conftest.$ac_ext <<_ACEOF
10096
/* end confdefs.h. */
10097
$ac_includes_default
10101
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
10108
rm -f conftest.$ac_objext
10109
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10110
(eval $ac_compile) 2>&5
10112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113
(exit $ac_status); } &&
10114
{ ac_try='test -s conftest.$ac_objext'
10115
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116
(eval $ac_try) 2>&5
10118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119
(exit $ac_status); }; }; then
10122
cat >conftest.$ac_ext <<_ACEOF
10123
#line $LINENO "configure"
10126
cat confdefs.h >>conftest.$ac_ext
10127
cat >>conftest.$ac_ext <<_ACEOF
10128
/* end confdefs.h. */
10129
$ac_includes_default
10133
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10140
rm -f conftest.$ac_objext
10141
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10142
(eval $ac_compile) 2>&5
10144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145
(exit $ac_status); } &&
10146
{ ac_try='test -s conftest.$ac_objext'
10147
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148
(eval $ac_try) 2>&5
10150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151
(exit $ac_status); }; }; then
10152
ac_hi=$ac_mid; break
10154
echo "$as_me: failed program was:" >&5
10155
sed 's/^/| /' conftest.$ac_ext >&5
10157
ac_lo=`expr $ac_mid + 1`
10158
if test $ac_lo -le $ac_mid; then
10162
ac_mid=`expr 2 '*' $ac_mid + 1`
10164
rm -f conftest.$ac_objext conftest.$ac_ext
10167
echo "$as_me: failed program was:" >&5
10168
sed 's/^/| /' conftest.$ac_ext >&5
10170
cat >conftest.$ac_ext <<_ACEOF
10171
#line $LINENO "configure"
10174
cat confdefs.h >>conftest.$ac_ext
10175
cat >>conftest.$ac_ext <<_ACEOF
10176
/* end confdefs.h. */
10177
$ac_includes_default
10181
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
10188
rm -f conftest.$ac_objext
10189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190
(eval $ac_compile) 2>&5
10192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193
(exit $ac_status); } &&
10194
{ ac_try='test -s conftest.$ac_objext'
10195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196
(eval $ac_try) 2>&5
10198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199
(exit $ac_status); }; }; then
10202
cat >conftest.$ac_ext <<_ACEOF
10203
#line $LINENO "configure"
10206
cat confdefs.h >>conftest.$ac_ext
10207
cat >>conftest.$ac_ext <<_ACEOF
10208
/* end confdefs.h. */
10209
$ac_includes_default
10213
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
10220
rm -f conftest.$ac_objext
10221
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10222
(eval $ac_compile) 2>&5
10224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225
(exit $ac_status); } &&
10226
{ ac_try='test -s conftest.$ac_objext'
10227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228
(eval $ac_try) 2>&5
10230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231
(exit $ac_status); }; }; then
10232
ac_lo=$ac_mid; break
10234
echo "$as_me: failed program was:" >&5
10235
sed 's/^/| /' conftest.$ac_ext >&5
10237
ac_hi=`expr '(' $ac_mid ')' - 1`
10238
if test $ac_mid -le $ac_hi; then
10242
ac_mid=`expr 2 '*' $ac_mid`
10244
rm -f conftest.$ac_objext conftest.$ac_ext
10247
echo "$as_me: failed program was:" >&5
10248
sed 's/^/| /' conftest.$ac_ext >&5
10252
rm -f conftest.$ac_objext conftest.$ac_ext
10254
rm -f conftest.$ac_objext conftest.$ac_ext
10255
# Binary search between lo and hi bounds.
10256
while test "x$ac_lo" != "x$ac_hi"; do
10257
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10258
cat >conftest.$ac_ext <<_ACEOF
10259
#line $LINENO "configure"
10262
cat confdefs.h >>conftest.$ac_ext
10263
cat >>conftest.$ac_ext <<_ACEOF
10264
/* end confdefs.h. */
10265
$ac_includes_default
10269
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
10276
rm -f conftest.$ac_objext
10277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10278
(eval $ac_compile) 2>&5
10280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281
(exit $ac_status); } &&
10282
{ ac_try='test -s conftest.$ac_objext'
10283
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10284
(eval $ac_try) 2>&5
10286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287
(exit $ac_status); }; }; then
10290
echo "$as_me: failed program was:" >&5
10291
sed 's/^/| /' conftest.$ac_ext >&5
10293
ac_lo=`expr '(' $ac_mid ')' + 1`
10295
rm -f conftest.$ac_objext conftest.$ac_ext
10298
?*) ac_cv_sizeof_short=$ac_lo;;
10299
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10300
See \`config.log' for more details." >&5
10301
echo "$as_me: error: cannot compute sizeof (short), 77
10302
See \`config.log' for more details." >&2;}
10303
{ (exit 1); exit 1; }; } ;;
10306
if test "$cross_compiling" = yes; then
10307
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10308
See \`config.log' for more details." >&5
10309
echo "$as_me: error: cannot run test program while cross compiling
10310
See \`config.log' for more details." >&2;}
10311
{ (exit 1); exit 1; }; }
10313
cat >conftest.$ac_ext <<_ACEOF
10314
#line $LINENO "configure"
10317
cat confdefs.h >>conftest.$ac_ext
10318
cat >>conftest.$ac_ext <<_ACEOF
10319
/* end confdefs.h. */
10320
$ac_includes_default
10321
long longval () { return (long) (sizeof (short)); }
10322
unsigned long ulongval () { return (long) (sizeof (short)); }
10324
#include <stdlib.h>
10329
FILE *f = fopen ("conftest.val", "w");
10332
if (((long) (sizeof (short))) < 0)
10334
long i = longval ();
10335
if (i != ((long) (sizeof (short))))
10337
fprintf (f, "%ld\n", i);
10341
unsigned long i = ulongval ();
10342
if (i != ((long) (sizeof (short))))
10344
fprintf (f, "%lu\n", i);
10346
exit (ferror (f) || fclose (f) != 0);
10352
rm -f conftest$ac_exeext
10353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10354
(eval $ac_link) 2>&5
10356
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10359
(eval $ac_try) 2>&5
10361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362
(exit $ac_status); }; }; then
10363
ac_cv_sizeof_short=`cat conftest.val`
10365
echo "$as_me: program exited with status $ac_status" >&5
10366
echo "$as_me: failed program was:" >&5
10367
sed 's/^/| /' conftest.$ac_ext >&5
10369
( exit $ac_status )
10370
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
10371
See \`config.log' for more details." >&5
10372
echo "$as_me: error: cannot compute sizeof (short), 77
10373
See \`config.log' for more details." >&2;}
10374
{ (exit 1); exit 1; }; }
10376
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10381
ac_cv_sizeof_short=0
10384
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
10385
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
10386
cat >>confdefs.h <<_ACEOF
10387
#define SIZEOF_SHORT $ac_cv_sizeof_short
10392
echo "$as_me:$LINENO: checking for long long" >&5
10393
echo $ECHO_N "checking for long long... $ECHO_C" >&6
10394
if test "${ac_cv_have_longlong+set}" = set; then
10395
echo $ECHO_N "(cached) $ECHO_C" >&6
10398
if test "$cross_compiling" = yes; then
10399
ac_cv_have_longlong=cross
10401
cat >conftest.$ac_ext <<_ACEOF
10402
#line $LINENO "configure"
10405
cat confdefs.h >>conftest.$ac_ext
10406
cat >>conftest.$ac_ext <<_ACEOF
10407
/* end confdefs.h. */
10409
main() { long long x = 1000000; x *= x; exit(((x/1000000) == 1000000)? 0: 1); }
10411
rm -f conftest$ac_exeext
10412
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413
(eval $ac_link) 2>&5
10415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10418
(eval $ac_try) 2>&5
10420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421
(exit $ac_status); }; }; then
10422
ac_cv_have_longlong=yes
10424
echo "$as_me: program exited with status $ac_status" >&5
10425
echo "$as_me: failed program was:" >&5
10426
sed 's/^/| /' conftest.$ac_ext >&5
10428
( exit $ac_status )
10429
ac_cv_have_longlong=no
10431
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10434
echo "$as_me:$LINENO: result: $ac_cv_have_longlong" >&5
10435
echo "${ECHO_T}$ac_cv_have_longlong" >&6
10436
if test x"$ac_cv_have_longlong" = x"yes"; then
10438
cat >>confdefs.h <<\_ACEOF
10439
#define HAVE_LONGLONG 1
10445
# Check if the compiler supports the LL prefix on long long integers.
10448
echo "$as_me:$LINENO: checking for LL suffix on long long integers" >&5
10449
echo $ECHO_N "checking for LL suffix on long long integers... $ECHO_C" >&6
10450
if test "${ac_cv_compiler_supports_ll+set}" = set; then
10451
echo $ECHO_N "(cached) $ECHO_C" >&6
10454
cat >conftest.$ac_ext <<_ACEOF
10455
#line $LINENO "configure"
10458
cat confdefs.h >>conftest.$ac_ext
10459
cat >>conftest.$ac_ext <<_ACEOF
10460
/* end confdefs.h. */
10465
long long i = 0x8000000000LL
10470
rm -f conftest.$ac_objext
10471
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472
(eval $ac_compile) 2>&5
10474
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475
(exit $ac_status); } &&
10476
{ ac_try='test -s conftest.$ac_objext'
10477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478
(eval $ac_try) 2>&5
10480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481
(exit $ac_status); }; }; then
10482
ac_cv_compiler_supports_ll=yes
10484
echo "$as_me: failed program was:" >&5
10485
sed 's/^/| /' conftest.$ac_ext >&5
10487
ac_cv_compiler_supports_ll=no
10489
rm -f conftest.$ac_objext conftest.$ac_ext
10491
echo "$as_me:$LINENO: result: $ac_cv_compiler_supports_ll" >&5
10492
echo "${ECHO_T}$ac_cv_compiler_supports_ll" >&6
10493
if test x"$ac_cv_compiler_supports_ll" = x"yes"; then
10495
cat >>confdefs.h <<\_ACEOF
10496
#define COMPILER_SUPPORTS_LL 1
10501
echo "$as_me:$LINENO: checking for __va_copy" >&5
10502
echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10503
if test "${ac_cv_HAVE_VA_COPY+set}" = set; then
10504
echo $ECHO_N "(cached) $ECHO_C" >&6
10507
cat >conftest.$ac_ext <<_ACEOF
10508
#line $LINENO "configure"
10511
cat confdefs.h >>conftest.$ac_ext
10512
cat >>conftest.$ac_ext <<_ACEOF
10513
/* end confdefs.h. */
10514
#include <stdarg.h>
10519
__va_copy(ap1,ap2);
10524
rm -f conftest.$ac_objext conftest$ac_exeext
10525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10526
(eval $ac_link) 2>&5
10528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529
(exit $ac_status); } &&
10530
{ ac_try='test -s conftest$ac_exeext'
10531
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10532
(eval $ac_try) 2>&5
10534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535
(exit $ac_status); }; }; then
10536
ac_cv_HAVE_VA_COPY=yes
10538
echo "$as_me: failed program was:" >&5
10539
sed 's/^/| /' conftest.$ac_ext >&5
10541
ac_cv_HAVE_VA_COPY=no
10543
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10545
echo "$as_me:$LINENO: result: $ac_cv_HAVE_VA_COPY" >&5
10546
echo "${ECHO_T}$ac_cv_HAVE_VA_COPY" >&6
10547
if test x"$ac_cv_HAVE_VA_COPY" = x"yes"; then
10549
cat >>confdefs.h <<\_ACEOF
10550
#define HAVE_VA_COPY 1
10555
echo "$as_me:$LINENO: checking for C99 vsnprintf" >&5
10556
echo $ECHO_N "checking for C99 vsnprintf... $ECHO_C" >&6
10557
if test "${ac_cv_HAVE_C99_VSNPRINTF+set}" = set; then
10558
echo $ECHO_N "(cached) $ECHO_C" >&6
10561
if test "$cross_compiling" = yes; then
10562
ac_cv_HAVE_C99_VSNPRINTF=cross
10564
cat >conftest.$ac_ext <<_ACEOF
10565
#line $LINENO "configure"
10568
cat confdefs.h >>conftest.$ac_ext
10569
cat >>conftest.$ac_ext <<_ACEOF
10570
/* end confdefs.h. */
10572
#include <sys/types.h>
10573
#include <stdarg.h>
10574
void foo(const char *format, ...) {
10579
va_start(ap, format);
10580
len = vsnprintf(buf, 0, format, ap);
10582
if (len != 5) exit(1);
10584
va_start(ap, format);
10585
len = vsnprintf(0, 0, format, ap);
10587
if (len != 5) exit(1);
10589
if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) exit(1);
10593
main() { foo("hello"); }
10596
rm -f conftest$ac_exeext
10597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598
(eval $ac_link) 2>&5
10600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603
(eval $ac_try) 2>&5
10605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606
(exit $ac_status); }; }; then
10607
ac_cv_HAVE_C99_VSNPRINTF=yes
10609
echo "$as_me: program exited with status $ac_status" >&5
10610
echo "$as_me: failed program was:" >&5
10611
sed 's/^/| /' conftest.$ac_ext >&5
10613
( exit $ac_status )
10614
ac_cv_HAVE_C99_VSNPRINTF=no
10616
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10619
echo "$as_me:$LINENO: result: $ac_cv_HAVE_C99_VSNPRINTF" >&5
10620
echo "${ECHO_T}$ac_cv_HAVE_C99_VSNPRINTF" >&6
10621
if test x"$ac_cv_HAVE_C99_VSNPRINTF" = x"yes"; then
10623
cat >>confdefs.h <<\_ACEOF
10624
#define HAVE_C99_VSNPRINTF 1
10629
#AC_HAVE_DECL(asprintf, [#include <stdio.h>])
10630
#AC_HAVE_DECL(vasprintf, [#include <stdio.h>])
10631
#AC_HAVE_DECL(vsnprintf, [#include <stdio.h>])
10632
#AC_HAVE_DECL(snprintf, [#include <stdio.h>])
10634
echo "$as_me:$LINENO: checking for snprintf" >&5
10635
echo $ECHO_N "checking for snprintf... $ECHO_C" >&6
10636
if test "${ac_cv_func_snprintf+set}" = set; then
10637
echo $ECHO_N "(cached) $ECHO_C" >&6
10639
cat >conftest.$ac_ext <<_ACEOF
10640
#line $LINENO "configure"
10643
cat confdefs.h >>conftest.$ac_ext
10644
cat >>conftest.$ac_ext <<_ACEOF
10645
/* end confdefs.h. */
10646
/* System header to define __stub macros and hopefully few prototypes,
10647
which can conflict with char snprintf (); below.
10648
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10649
<limits.h> exists even on freestanding compilers. */
10651
# include <limits.h>
10653
# include <assert.h>
10655
/* Override any gcc2 internal prototype to avoid an error. */
10660
/* We use char because int might match the return type of a gcc2
10661
builtin and then its argument prototype would still apply. */
10663
/* The GNU C library defines this for functions which it implements
10664
to always fail with ENOSYS. Some functions are actually named
10665
something starting with __ and the normal name is an alias. */
10666
#if defined (__stub_snprintf) || defined (__stub___snprintf)
10669
char (*f) () = snprintf;
10678
return f != snprintf;
10683
rm -f conftest.$ac_objext conftest$ac_exeext
10684
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10685
(eval $ac_link) 2>&5
10687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688
(exit $ac_status); } &&
10689
{ ac_try='test -s conftest$ac_exeext'
10690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10691
(eval $ac_try) 2>&5
10693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694
(exit $ac_status); }; }; then
10695
ac_cv_func_snprintf=yes
10697
echo "$as_me: failed program was:" >&5
10698
sed 's/^/| /' conftest.$ac_ext >&5
10700
ac_cv_func_snprintf=no
10702
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10704
echo "$as_me:$LINENO: result: $ac_cv_func_snprintf" >&5
10705
echo "${ECHO_T}$ac_cv_func_snprintf" >&6
10706
if test $ac_cv_func_snprintf = yes; then
10708
cat >>confdefs.h <<\_ACEOF
10709
#define HAVE_SNPRINTF 1
10713
LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
10716
echo "$as_me:$LINENO: checking for vsnprintf" >&5
10717
echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
10718
if test "${ac_cv_func_vsnprintf+set}" = set; then
10719
echo $ECHO_N "(cached) $ECHO_C" >&6
10721
cat >conftest.$ac_ext <<_ACEOF
10722
#line $LINENO "configure"
10725
cat confdefs.h >>conftest.$ac_ext
10726
cat >>conftest.$ac_ext <<_ACEOF
10727
/* end confdefs.h. */
10728
/* System header to define __stub macros and hopefully few prototypes,
10729
which can conflict with char vsnprintf (); below.
10730
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10731
<limits.h> exists even on freestanding compilers. */
10733
# include <limits.h>
10735
# include <assert.h>
10737
/* Override any gcc2 internal prototype to avoid an error. */
10742
/* We use char because int might match the return type of a gcc2
10743
builtin and then its argument prototype would still apply. */
10745
/* The GNU C library defines this for functions which it implements
10746
to always fail with ENOSYS. Some functions are actually named
10747
something starting with __ and the normal name is an alias. */
10748
#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
10751
char (*f) () = vsnprintf;
10760
return f != vsnprintf;
10765
rm -f conftest.$ac_objext conftest$ac_exeext
10766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767
(eval $ac_link) 2>&5
10769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770
(exit $ac_status); } &&
10771
{ ac_try='test -s conftest$ac_exeext'
10772
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10773
(eval $ac_try) 2>&5
10775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776
(exit $ac_status); }; }; then
10777
ac_cv_func_vsnprintf=yes
10779
echo "$as_me: failed program was:" >&5
10780
sed 's/^/| /' conftest.$ac_ext >&5
10782
ac_cv_func_vsnprintf=no
10784
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10786
echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
10787
echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
10788
if test $ac_cv_func_vsnprintf = yes; then
10790
cat >>confdefs.h <<\_ACEOF
10791
#define HAVE_VSNPRINTF 1
10795
LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
10798
echo "$as_me:$LINENO: checking for vasprintf" >&5
10799
echo $ECHO_N "checking for vasprintf... $ECHO_C" >&6
10800
if test "${ac_cv_func_vasprintf+set}" = set; then
10801
echo $ECHO_N "(cached) $ECHO_C" >&6
10803
cat >conftest.$ac_ext <<_ACEOF
10804
#line $LINENO "configure"
10807
cat confdefs.h >>conftest.$ac_ext
10808
cat >>conftest.$ac_ext <<_ACEOF
10809
/* end confdefs.h. */
10810
/* System header to define __stub macros and hopefully few prototypes,
10811
which can conflict with char vasprintf (); below.
10812
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10813
<limits.h> exists even on freestanding compilers. */
10815
# include <limits.h>
10817
# include <assert.h>
10819
/* Override any gcc2 internal prototype to avoid an error. */
10824
/* We use char because int might match the return type of a gcc2
10825
builtin and then its argument prototype would still apply. */
10827
/* The GNU C library defines this for functions which it implements
10828
to always fail with ENOSYS. Some functions are actually named
10829
something starting with __ and the normal name is an alias. */
10830
#if defined (__stub_vasprintf) || defined (__stub___vasprintf)
10833
char (*f) () = vasprintf;
10842
return f != vasprintf;
10847
rm -f conftest.$ac_objext conftest$ac_exeext
10848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10849
(eval $ac_link) 2>&5
10851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852
(exit $ac_status); } &&
10853
{ ac_try='test -s conftest$ac_exeext'
10854
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10855
(eval $ac_try) 2>&5
10857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858
(exit $ac_status); }; }; then
10859
ac_cv_func_vasprintf=yes
10861
echo "$as_me: failed program was:" >&5
10862
sed 's/^/| /' conftest.$ac_ext >&5
10864
ac_cv_func_vasprintf=no
10866
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10868
echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf" >&5
10869
echo "${ECHO_T}$ac_cv_func_vasprintf" >&6
10870
if test $ac_cv_func_vasprintf = yes; then
10872
cat >>confdefs.h <<\_ACEOF
10873
#define HAVE_VASPRINTF 1
10877
LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
10880
echo "$as_me:$LINENO: checking for asprintf" >&5
10881
echo $ECHO_N "checking for asprintf... $ECHO_C" >&6
10882
if test "${ac_cv_func_asprintf+set}" = set; then
10883
echo $ECHO_N "(cached) $ECHO_C" >&6
10885
cat >conftest.$ac_ext <<_ACEOF
10886
#line $LINENO "configure"
10889
cat confdefs.h >>conftest.$ac_ext
10890
cat >>conftest.$ac_ext <<_ACEOF
10891
/* end confdefs.h. */
10892
/* System header to define __stub macros and hopefully few prototypes,
10893
which can conflict with char asprintf (); below.
10894
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10895
<limits.h> exists even on freestanding compilers. */
10897
# include <limits.h>
10899
# include <assert.h>
10901
/* Override any gcc2 internal prototype to avoid an error. */
10906
/* We use char because int might match the return type of a gcc2
10907
builtin and then its argument prototype would still apply. */
10909
/* The GNU C library defines this for functions which it implements
10910
to always fail with ENOSYS. Some functions are actually named
10911
something starting with __ and the normal name is an alias. */
10912
#if defined (__stub_asprintf) || defined (__stub___asprintf)
10915
char (*f) () = asprintf;
10924
return f != asprintf;
10929
rm -f conftest.$ac_objext conftest$ac_exeext
10930
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931
(eval $ac_link) 2>&5
10933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934
(exit $ac_status); } &&
10935
{ ac_try='test -s conftest$ac_exeext'
10936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10937
(eval $ac_try) 2>&5
10939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940
(exit $ac_status); }; }; then
10941
ac_cv_func_asprintf=yes
10943
echo "$as_me: failed program was:" >&5
10944
sed 's/^/| /' conftest.$ac_ext >&5
10946
ac_cv_func_asprintf=no
10948
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10950
echo "$as_me:$LINENO: result: $ac_cv_func_asprintf" >&5
10951
echo "${ECHO_T}$ac_cv_func_asprintf" >&6
10952
if test $ac_cv_func_asprintf = yes; then
10954
cat >>confdefs.h <<\_ACEOF
10955
#define HAVE_ASPRINTF 1
10959
LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
10963
if test x"$ac_cv_HAVE_SNPRINTF" = x"no" -o x"$ac_cv_HAVE_VSNPRINTF" = x"no" -o x"$ac_cv_HAVE_VASPRINTF" = x"no" -o x"$ac_cv_HAVE_ASPRINTF" = x"no"; then
10964
LIBS="$LIBS -lsnprintf" DEPLIBS="$DEPLIBS libsnprintf.a"
10967
cat >conftest.$ac_ext <<_ACEOF
10968
#line $LINENO "configure"
10971
cat confdefs.h >>conftest.$ac_ext
10972
cat >>conftest.$ac_ext <<_ACEOF
10973
/* end confdefs.h. */
10974
#include <sys/time.h>
10978
struct timeval *tv;
10979
struct timezone *tz;
10984
rm -f conftest.$ac_objext
10985
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10986
(eval $ac_compile) 2>&5
10988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989
(exit $ac_status); } &&
10990
{ ac_try='test -s conftest.$ac_objext'
10991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10992
(eval $ac_try) 2>&5
10994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995
(exit $ac_status); }; }; then
10997
cat >>confdefs.h <<\_ACEOF
10998
#define HAVE_STRUCT_TIMEVAL 1
11001
cat >conftest.$ac_ext <<_ACEOF
11002
#line $LINENO "configure"
11005
cat confdefs.h >>conftest.$ac_ext
11006
cat >>conftest.$ac_ext <<_ACEOF
11007
/* end confdefs.h. */
11008
#include <sys/time.h>
11012
struct timeval *tv;
11013
struct timezone *tz;
11014
gettimeofday(tv, tz);
11019
rm -f conftest.$ac_objext
11020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11021
(eval $ac_compile) 2>&5
11023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024
(exit $ac_status); } &&
11025
{ ac_try='test -s conftest.$ac_objext'
11026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027
(eval $ac_try) 2>&5
11029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030
(exit $ac_status); }; }; then
11032
cat >>confdefs.h <<\_ACEOF
11033
#define HAVE_GETTIMEOFDAY 1
11037
echo "$as_me: failed program was:" >&5
11038
sed 's/^/| /' conftest.$ac_ext >&5
11041
cat >>confdefs.h <<\_ACEOF
11042
#define NEED_GETTIMEOFDAY 1
11046
rm -f conftest.$ac_objext conftest.$ac_ext
11048
echo "$as_me: failed program was:" >&5
11049
sed 's/^/| /' conftest.$ac_ext >&5
11052
rm -f conftest.$ac_objext conftest.$ac_ext
11062
for ac_func in memmove select socket strdup strstr strtod strtol strtoul
11064
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11065
echo "$as_me:$LINENO: checking for $ac_func" >&5
11066
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11067
if eval "test \"\${$as_ac_var+set}\" = set"; then
11068
echo $ECHO_N "(cached) $ECHO_C" >&6
11070
cat >conftest.$ac_ext <<_ACEOF
11071
#line $LINENO "configure"
11074
cat confdefs.h >>conftest.$ac_ext
11075
cat >>conftest.$ac_ext <<_ACEOF
11076
/* end confdefs.h. */
11077
/* System header to define __stub macros and hopefully few prototypes,
11078
which can conflict with char $ac_func (); below.
11079
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11080
<limits.h> exists even on freestanding compilers. */
11082
# include <limits.h>
11084
# include <assert.h>
11086
/* Override any gcc2 internal prototype to avoid an error. */
11091
/* We use char because int might match the return type of a gcc2
11092
builtin and then its argument prototype would still apply. */
11094
/* The GNU C library defines this for functions which it implements
11095
to always fail with ENOSYS. Some functions are actually named
11096
something starting with __ and the normal name is an alias. */
11097
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11100
char (*f) () = $ac_func;
11109
return f != $ac_func;
11114
rm -f conftest.$ac_objext conftest$ac_exeext
11115
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11116
(eval $ac_link) 2>&5
11118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119
(exit $ac_status); } &&
11120
{ ac_try='test -s conftest$ac_exeext'
11121
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11122
(eval $ac_try) 2>&5
11124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125
(exit $ac_status); }; }; then
11126
eval "$as_ac_var=yes"
11128
echo "$as_me: failed program was:" >&5
11129
sed 's/^/| /' conftest.$ac_ext >&5
11131
eval "$as_ac_var=no"
11133
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11135
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11136
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11137
if test `eval echo '${'$as_ac_var'}'` = yes; then
11138
cat >>confdefs.h <<_ACEOF
11139
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11146
echo "$as_me:$LINENO: checking for type of socket size" >&5
11147
echo $ECHO_N "checking for type of socket size... $ECHO_C" >&6
11148
cat >conftest.$ac_ext <<_ACEOF
11149
#line $LINENO "configure"
11152
cat confdefs.h >>conftest.$ac_ext
11153
cat >>conftest.$ac_ext <<_ACEOF
11154
/* end confdefs.h. */
11155
#include <stdlib.h>
11156
#include <sys/types.h>
11157
#include <sys/socket.h>
11161
int a = send(1, (const void *) buffer, (size_t *) 0, (int *) 0);
11166
rm -f conftest.$ac_objext
11167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11168
(eval $ac_compile) 2>&5
11170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171
(exit $ac_status); } &&
11172
{ ac_try='test -s conftest.$ac_objext'
11173
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174
(eval $ac_try) 2>&5
11176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177
(exit $ac_status); }; }; then
11179
cat >>confdefs.h <<\_ACEOF
11180
#define SOCKET_SIZE_TYPE size_t
11183
echo "$as_me:$LINENO: result: size_t" >&5
11184
echo "${ECHO_T}size_t" >&6
11186
echo "$as_me: failed program was:" >&5
11187
sed 's/^/| /' conftest.$ac_ext >&5
11190
cat >>confdefs.h <<\_ACEOF
11191
#define SOCKET_SIZE_TYPE int
11194
echo "$as_me:$LINENO: result: int" >&5
11195
echo "${ECHO_T}int" >&6
11197
rm -f conftest.$ac_objext conftest.$ac_ext
11199
if test -f "/proc/loadavg"
11202
cat >>confdefs.h <<\_ACEOF
11203
#define HAVE_PROC_LOADAVG 1
11207
cat >>confdefs.h <<_ACEOF
11208
#define PROC_LOADAVG "/proc/loadavg"
11213
# Extract the first word of "ps", so it can be a program name with args.
11214
set dummy ps; ac_word=$2
11215
echo "$as_me:$LINENO: checking for $ac_word" >&5
11216
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11217
if test "${ac_cv_path_PATH_TO_PS+set}" = set; then
11218
echo $ECHO_N "(cached) $ECHO_C" >&6
11220
case $PATH_TO_PS in
11222
ac_cv_path_PATH_TO_PS="$PATH_TO_PS" # Let the user override the test with a path.
11225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226
for as_dir in $PATH
11229
test -z "$as_dir" && as_dir=.
11230
for ac_exec_ext in '' $ac_executable_extensions; do
11231
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232
ac_cv_path_PATH_TO_PS="$as_dir/$ac_word$ac_exec_ext"
11233
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11242
PATH_TO_PS=$ac_cv_path_PATH_TO_PS
11244
if test -n "$PATH_TO_PS"; then
11245
echo "$as_me:$LINENO: result: $PATH_TO_PS" >&5
11246
echo "${ECHO_T}$PATH_TO_PS" >&6
11248
echo "$as_me:$LINENO: result: no" >&5
11249
echo "${ECHO_T}no" >&6
11252
if ps -axwo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *STAT +UCOMM +VSZ +RSS +USER +UID +PPID +COMMAND" > /dev/null
11255
cat >>confdefs.h <<\_ACEOF
11256
#define USE_PS_VARS 1
11260
cat >>confdefs.h <<_ACEOF
11261
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11265
cat >>confdefs.h <<_ACEOF
11266
#define PS_RAW_COMMAND "$PATH_TO_PS -axwo 'stat uid ppid args'"
11269
EXTRAS="$EXTRAS check_nagios"
11271
cat >>confdefs.h <<_ACEOF
11272
#define PS_COMMAND "$PATH_TO_PS -axwo 'stat uid ppid comm args'"
11276
cat >>confdefs.h <<_ACEOF
11277
#define PS_FORMAT "%s %d %d %s %n"
11281
cat >>confdefs.h <<_ACEOF
11282
#define VSZ_COMMAND "$PATH_TO_PS -axwo 'vsz comm'"
11286
cat >>confdefs.h <<_ACEOF
11287
#define VSZ_FORMAT "%d %s"
11291
cat >>confdefs.h <<_ACEOF
11292
#define RSS_COMMAND "$PATH_TO_PS -axwo 'rss comm'"
11296
cat >>confdefs.h <<_ACEOF
11297
#define RSS_FORMAT "%d %s"
11300
echo " ps syntax... $PATH_TO_PS -axwo 'stat uid ppid comm args'"
11301
elif ps -weo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
11304
cat >>confdefs.h <<\_ACEOF
11305
#define USE_PS_VARS 1
11309
cat >>confdefs.h <<_ACEOF
11310
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11314
cat >>confdefs.h <<_ACEOF
11315
#define PS_RAW_COMMAND "$PATH_TO_PS -weo 'stat user ppid args'"
11318
EXTRAS="$EXTRAS check_nagios"
11320
cat >>confdefs.h <<_ACEOF
11321
#define PS_COMMAND "$PATH_TO_PS -weo 'stat uid ppid comm args'"
11325
cat >>confdefs.h <<_ACEOF
11326
#define PS_FORMAT "%s %d %d %s %n"
11330
cat >>confdefs.h <<_ACEOF
11331
#define VSZ_COMMAND "$PATH_TO_PS -weo 'vsz comm'"
11335
cat >>confdefs.h <<_ACEOF
11336
#define VSZ_FORMAT "%d %s"
11340
cat >>confdefs.h <<_ACEOF
11341
#define RSS_COMMAND "$PATH_TO_PS -weo 'rss comm'"
11345
cat >>confdefs.h <<_ACEOF
11346
#define RSS_FORMAT "%d %s"
11349
echo " ps syntax... $PATH_TO_PS -weo 'stat comm vsz rss user ppid args'"
11350
elif ps waxco 'state command vsz rss uid user ppid' 2>/dev/null | egrep -i "^STAT +COMMAND +VSZ +RSS +UID +USER +PPID" >/dev/null
11353
cat >>confdefs.h <<\_ACEOF
11354
#define USE_PS_VARS 1
11357
cat >>confdefs.h <<_ACEOF
11358
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11361
cat >>confdefs.h <<_ACEOF
11362
#define PS_RAW_COMMAND "$PATH_TO_PS waxo 'state uid ppid command'"
11365
EXTRAS="$EXTRAS check_nagios"
11366
cat >>confdefs.h <<_ACEOF
11367
#define PS_COMMAND "$PATH_TO_PS waxco 'state uid ppid command command'"
11371
cat >>confdefs.h <<_ACEOF
11372
#define PS_FORMAT "%s %d %d %s %n"
11375
cat >>confdefs.h <<_ACEOF
11376
#define VSZ_COMMAND "$PATH_TO_PS waxco 'vsz command'"
11379
cat >>confdefs.h <<_ACEOF
11380
#define VSZ_FORMAT "%d %s"
11383
cat >>confdefs.h <<_ACEOF
11384
#define RSS_COMMAND "$PATH_TO_PS waxco 'rss command'"
11387
cat >>confdefs.h <<_ACEOF
11388
#define RSS_FORMAT "%d %s"
11391
echo " ps syntax... $PATH_TO_PS -Ao 'state command vsz rss'"
11392
elif ps waxno 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S +COMMAND +VSZ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
11395
cat >>confdefs.h <<\_ACEOF
11396
#define USE_PS_VARS 1
11399
cat >>confdefs.h <<_ACEOF
11400
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11403
cat >>confdefs.h <<_ACEOF
11404
#define PS_RAW_COMMAND "$PATH_TO_PS waxno 'state user ppid comm'"
11407
EXTRAS="$EXTRAS check_nagios"
11408
cat >>confdefs.h <<_ACEOF
11409
#define PS_COMMAND "$PATH_TO_PS waxno 'state uid ppid comm args'"
11413
cat >>confdefs.h <<_ACEOF
11414
#define PS_FORMAT "%s %d %d %s %n"
11417
cat >>confdefs.h <<_ACEOF
11418
#define VSZ_COMMAND "$PATH_TO_PS waxno 'vsz comm'"
11421
cat >>confdefs.h <<_ACEOF
11422
#define VSZ_FORMAT "%d %s"
11425
cat >>confdefs.h <<_ACEOF
11426
#define RSS_COMMAND "$PATH_TO_PS waxno 'rss comm'"
11429
cat >>confdefs.h <<_ACEOF
11430
#define RSS_FORMAT "%d %s"
11433
echo " ps syntax... $PATH_TO_PS -waxco 'state comm vsz rss'"
11434
elif ps -laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +CP +PRI +NI +(SZ)|(VSZ)|(SIZE) +RSS +WCHAN +STAT? +TTY? +TIME +COMMAND" >/dev/null
11437
cat >>confdefs.h <<\_ACEOF
11438
#define USE_PS_VARS 1
11441
cat >>confdefs.h <<_ACEOF
11442
#define PS_RAW_COMMAND "$PATH_TO_PS laxnwww"
11445
EXTRAS="$EXTRAS check_nagios"
11446
cat >>confdefs.h <<_ACEOF
11447
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
11450
cat >>confdefs.h <<_ACEOF
11451
#define PS_COMMAND "$PATH_TO_PS -laxnwww"
11455
cat >>confdefs.h <<_ACEOF
11456
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %*s %s %*s %*s %n%s"
11459
cat >>confdefs.h <<_ACEOF
11460
#define VSZ_COMMAND "$PATH_TO_PS laxnwww"
11463
cat >>confdefs.h <<_ACEOF
11464
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
11467
cat >>confdefs.h <<_ACEOF
11468
#define RSS_COMMAND "$PATH_TO_PS laxnwww"
11471
cat >>confdefs.h <<_ACEOF
11472
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %d"
11475
echo " ps syntax... $PATH_TO_PS laxnwww"
11476
elif ps laxnwww 2>/dev/null | egrep -i "^ *F(LAGS)? +UID +PID +PPID +PRI +NI +(VSZ)|(SIZE) +RSS +WCHAN +STAT? TTY +TIME +COMMAND" >/dev/null
11479
cat >>confdefs.h <<\_ACEOF
11480
#define USE_PS_VARS 1
11483
cat >>confdefs.h <<_ACEOF
11484
#define PS_RAW_COMMAND "$PATH_TO_PS laxnwww"
11487
EXTRAS="$EXTRAS check_nagios"
11488
cat >>confdefs.h <<_ACEOF
11489
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
11492
cat >>confdefs.h <<_ACEOF
11493
#define PS_COMMAND "$PATH_TO_PS laxnwww"
11497
cat >>confdefs.h <<_ACEOF
11498
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %s %*s %*s %n%s"
11501
cat >>confdefs.h <<_ACEOF
11502
#define VSZ_COMMAND "$PATH_TO_PS laxnwww"
11505
cat >>confdefs.h <<_ACEOF
11506
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %d"
11509
cat >>confdefs.h <<_ACEOF
11510
#define RSS_COMMAND "$PATH_TO_PS laxnwww"
11513
cat >>confdefs.h <<_ACEOF
11514
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
11517
echo " ps syntax... $PATH_TO_PS laxnwww"
11518
elif ps -axo 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
11521
cat >>confdefs.h <<\_ACEOF
11522
#define USE_PS_VARS 1
11526
cat >>confdefs.h <<_ACEOF
11527
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11531
cat >>confdefs.h <<_ACEOF
11532
#define PS_RAW_COMMAND "$PATH_TO_PS -axo 'stat user ppid args'"
11535
EXTRAS="$EXTRAS check_nagios"
11537
cat >>confdefs.h <<_ACEOF
11538
#define PS_COMMAND "$PATH_TO_PS -axo 'stat uid ppid comm args'"
11542
cat >>confdefs.h <<_ACEOF
11543
#define PS_FORMAT "%s %d %d %s %n"
11547
cat >>confdefs.h <<_ACEOF
11548
#define VSZ_COMMAND "$PATH_TO_PS -axo 'vsz comm'"
11552
cat >>confdefs.h <<_ACEOF
11553
#define VSZ_FORMAT "%d %s"
11557
cat >>confdefs.h <<_ACEOF
11558
#define RSS_COMMAND "$PATH_TO_PS -axo 'rss comm'"
11562
cat >>confdefs.h <<_ACEOF
11563
#define RSS_FORMAT "%d %s"
11566
echo " ps syntax... $PATH_TO_PS -axo 'stat comm vsz rss user ppid args'"
11567
elif ps -ao 'stat comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^ *S[TAUES]* +[UCOMDNA]+ +[VSIZE]+ +R[S]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
11570
cat >>confdefs.h <<\_ACEOF
11571
#define USE_PS_VARS 1
11575
cat >>confdefs.h <<_ACEOF
11576
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11580
cat >>confdefs.h <<_ACEOF
11581
#define PS_RAW_COMMAND "$PATH_TO_PS -ao 'stat user ppid args'"
11584
EXTRAS="$EXTRAS check_nagios"
11585
cat >>confdefs.h <<_ACEOF
11586
#define PS_COMMAND "$PATH_TO_PS -ao 'stat uid ppid comm args'"
11590
cat >>confdefs.h <<_ACEOF
11591
#define PS_FORMAT "%s%*[ +] %d %d %s %n"
11594
cat >>confdefs.h <<_ACEOF
11595
#define VSZ_COMMAND "$PATH_TO_PS -ao 'vsz comm'"
11598
cat >>confdefs.h <<_ACEOF
11599
#define VSZ_FORMAT "%d %s"
11602
cat >>confdefs.h <<_ACEOF
11603
#define RSS_COMMAND "$PATH_TO_PS -ao 'rss comm'"
11606
cat >>confdefs.h <<_ACEOF
11607
#define RSS_FORMAT "%d %s"
11610
echo " ps syntax... $PATH_TO_PS -ao 'stat comm vsz rss user ppid args'"
11611
elif ps -eo 's comm vsz rss user uid ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +[VSIZE]+ +U[SER]+ +U[ID]+ +P[PID]+ +[RGSCOMDNA]+" >/dev/null
11614
cat >>confdefs.h <<\_ACEOF
11615
#define USE_PS_VARS 1
11619
cat >>confdefs.h <<_ACEOF
11620
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11624
cat >>confdefs.h <<_ACEOF
11625
#define PS_RAW_COMMAND "$PATH_TO_PS -eo 's user ppid args'"
11628
EXTRAS="$EXTRAS check_nagios"
11629
cat >>confdefs.h <<_ACEOF
11630
#define PS_COMMAND "$PATH_TO_PS -eo 's uid ppid comm args'"
11634
cat >>confdefs.h <<_ACEOF
11635
#define PS_FORMAT "%s %d %d %s %n"
11638
cat >>confdefs.h <<_ACEOF
11639
#define VSZ_COMMAND "$PATH_TO_PS -eo 'vsz comm'"
11642
cat >>confdefs.h <<_ACEOF
11643
#define VSZ_FORMAT "%d %s"
11646
cat >>confdefs.h <<_ACEOF
11647
#define RSS_COMMAND "$PATH_TO_PS -eo 'rss comm'"
11650
cat >>confdefs.h <<_ACEOF
11651
#define RSS_FORMAT "%d %s"
11654
echo " ps syntax... $PATH_TO_PS -eo 's comm vsz rss user ppid args'"
11655
elif ps -Ao 's comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
11658
cat >>confdefs.h <<\_ACEOF
11659
#define USE_PS_VARS 1
11663
cat >>confdefs.h <<_ACEOF
11664
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11668
cat >>confdefs.h <<_ACEOF
11669
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 's user ppid args'"
11672
EXTRAS="$EXTRAS check_nagios"
11673
cat >>confdefs.h <<_ACEOF
11674
#define PS_COMMAND "$PATH_TO_PS -Ao 's uid ppid comm args'"
11678
cat >>confdefs.h <<_ACEOF
11679
#define PS_FORMAT "%s %d %d %s %n"
11682
cat >>confdefs.h <<_ACEOF
11683
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
11686
cat >>confdefs.h <<_ACEOF
11687
#define VSZ_FORMAT "%d %s"
11690
cat >>confdefs.h <<_ACEOF
11691
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
11694
cat >>confdefs.h <<_ACEOF
11695
#define RSS_FORMAT "%d %s"
11698
echo " ps syntax... $PATH_TO_PS -Ao 's comm vsz rss'"
11699
elif ps -Ao 'status comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
11702
cat >>confdefs.h <<\_ACEOF
11703
#define USE_PS_VARS 1
11706
cat >>confdefs.h <<_ACEOF
11707
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11711
cat >>confdefs.h <<_ACEOF
11712
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 'status user ppid args'"
11715
EXTRAS="$EXTRAS check_nagios"
11716
cat >>confdefs.h <<_ACEOF
11717
#define PS_COMMAND "$PATH_TO_PS -Ao 'status uid ppid comm args'"
11721
cat >>confdefs.h <<_ACEOF
11722
#define PS_FORMAT "%s %d %d %s %n"
11725
cat >>confdefs.h <<_ACEOF
11726
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
11729
cat >>confdefs.h <<_ACEOF
11730
#define VSZ_FORMAT "%d %s"
11733
cat >>confdefs.h <<_ACEOF
11734
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
11737
cat >>confdefs.h <<_ACEOF
11738
#define RSS_FORMAT "%d %s"
11741
echo " ps syntax... $PATH_TO_PS -Ao 'status comm vsz rss'"
11742
elif ps -Ao 'state comm vsz rss uid user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
11745
cat >>confdefs.h <<\_ACEOF
11746
#define USE_PS_VARS 1
11749
cat >>confdefs.h <<_ACEOF
11750
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11754
cat >>confdefs.h <<_ACEOF
11755
#define PS_RAW_COMMAND "$PATH_TO_PS -Ao 'state user ppid args'"
11758
EXTRAS="$EXTRAS check_nagios"
11759
cat >>confdefs.h <<_ACEOF
11760
#define PS_COMMAND "$PATH_TO_PS -Ao 'state uid ppid comm args'"
11764
cat >>confdefs.h <<_ACEOF
11765
#define PS_FORMAT "%s %d %d %s %n"
11768
cat >>confdefs.h <<_ACEOF
11769
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
11772
cat >>confdefs.h <<_ACEOF
11773
#define VSZ_FORMAT "%d %s"
11776
cat >>confdefs.h <<_ACEOF
11777
#define RSS_COMMAND "$PATH_TO_PS -Ao 'rss comm'"
11780
cat >>confdefs.h <<_ACEOF
11781
#define RSS_FORMAT "%d %s"
11784
echo " ps syntax... $PATH_TO_PS -Ao 'state comm vsz rss'"
11785
elif ps -ao 'state command vsz rss user ppid args' 2>/dev/null | egrep -i "^S[TAUES]* +C[OMDNA]+ +V[SIZE]+ +RSS +UID +USER +PPID +[RGSCOMDNA]+" >/dev/null
11788
cat >>confdefs.h <<\_ACEOF
11789
#define USE_PS_VARS 1
11792
cat >>confdefs.h <<_ACEOF
11793
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11796
cat >>confdefs.h <<_ACEOF
11797
#define PS_RAW_COMMAND "$PATH_TO_PS -ao 'state user ppid args'"
11800
EXTRAS="$EXTRAS check_nagios"
11801
cat >>confdefs.h <<_ACEOF
11802
#define PS_COMMAND "$PATH_TO_PS -ao 'state uid ppid command args'"
11806
cat >>confdefs.h <<_ACEOF
11807
#define PS_FORMAT "%s %d %d %s %n"
11810
cat >>confdefs.h <<_ACEOF
11811
#define VSZ_COMMAND "$PATH_TO_PS -ao 'vsz command'"
11814
cat >>confdefs.h <<_ACEOF
11815
#define VSZ_FORMAT "%d %s"
11818
cat >>confdefs.h <<_ACEOF
11819
#define RSS_COMMAND "$PATH_TO_PS -ao 'rss command'"
11822
cat >>confdefs.h <<_ACEOF
11823
#define RSS_FORMAT "%d %s"
11826
echo " ps syntax... $PATH_TO_PS -ao 'state command vsz rss'"
11827
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
11830
cat >>confdefs.h <<\_ACEOF
11831
#define USE_PS_VARS 1
11834
cat >>confdefs.h <<_ACEOF
11835
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
11838
cat >>confdefs.h <<_ACEOF
11839
#define PS_COMMAND "$PATH_TO_PS -el"
11843
cat >>confdefs.h <<_ACEOF
11844
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
11847
cat >>confdefs.h <<_ACEOF
11848
#define VSZ_COMMAND "$PATH_TO_PS -el"
11851
cat >>confdefs.h <<_ACEOF
11852
#define VSZ_FORMAT "%*s %*s %*s %*s %d"
11855
cat >>confdefs.h <<_ACEOF
11856
#define RSS_COMMAND "$PATH_TO_PS -el"
11859
cat >>confdefs.h <<_ACEOF
11860
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
11863
echo " ps syntax... $PATH_TO_PS -el"
11864
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +P +ADDR +SZ +RSS +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
11867
cat >>confdefs.h <<\_ACEOF
11868
#define USE_PS_VARS 1
11871
cat >>confdefs.h <<_ACEOF
11872
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
11875
cat >>confdefs.h <<_ACEOF
11876
#define PS_COMMAND "$PATH_TO_PS -el"
11880
cat >>confdefs.h <<_ACEOF
11881
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
11884
cat >>confdefs.h <<_ACEOF
11885
#define VSZ_COMMAND "$PATH_TO_PS -el"
11888
cat >>confdefs.h <<_ACEOF
11889
#define VSZ_FORMAT "%*s %*s %*s %*s %d"
11892
cat >>confdefs.h <<_ACEOF
11893
#define RSS_COMMAND "$PATH_TO_PS -el"
11896
cat >>confdefs.h <<_ACEOF
11897
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
11900
echo " ps syntax... $PATH_TO_PS -el"
11901
elif ps -el 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +C +PRI +NI +ADDR +SZ +WCHAN +TTY +TIME +[RGSCOMDNA]+" >/dev/null
11904
cat >>confdefs.h <<\_ACEOF
11905
#define USE_PS_VARS 1
11908
cat >>confdefs.h <<_ACEOF
11909
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
11912
cat >>confdefs.h <<_ACEOF
11913
#define PS_COMMAND "$PATH_TO_PS -el"
11917
cat >>confdefs.h <<_ACEOF
11918
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
11921
cat >>confdefs.h <<_ACEOF
11922
#define VSZ_COMMAND "$PATH_TO_PS -el"
11925
cat >>confdefs.h <<_ACEOF
11926
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
11929
cat >>confdefs.h <<_ACEOF
11930
#define RSS_COMMAND "$PATH_TO_PS -el"
11933
cat >>confdefs.h <<_ACEOF
11934
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %*s %*s %d"
11937
echo " ps syntax... $PATH_TO_PS -el"
11938
elif ps glaxen 2>/dev/null | egrep -i "^ *F +UID +PID +PPID +PRI +NI +VSZ +RSS +WCHAN +STAT +TTY +TIME +COMMAND" >/dev/null
11941
cat >>confdefs.h <<\_ACEOF
11942
#define USE_PS_VARS 1
11945
cat >>confdefs.h <<_ACEOF
11946
#define PS_VARLIST &procuid,&procppid,procstat,&pos,procprog
11949
cat >>confdefs.h <<_ACEOF
11950
#define PS_COMMAND "$PATH_TO_PS glaxen"
11954
cat >>confdefs.h <<_ACEOF
11955
#define PS_FORMAT "%*s %d %*s %d %*s %*s %*s %*s %*s %s %*s %*s %n%s"
11958
cat >>confdefs.h <<_ACEOF
11959
#define VSZ_COMMAND "$PATH_TO_PS glaxen"
11962
cat >>confdefs.h <<_ACEOF
11963
#define VSZ_FORMAT "%*s %*s %*s %*s %*s %*s %d"
11966
cat >>confdefs.h <<_ACEOF
11967
#define RSS_COMMAND "$PATH_TO_PS glaxen"
11970
cat >>confdefs.h <<_ACEOF
11971
#define RSS_FORMAT "%*s %*s %*s %*s %*s %*s %*s %d"
11974
echo " ps syntax... $PATH_TO_PS glaxen"
11975
elif ps waxo 'state vsz rss uid user ppid ucomm command' 2>/dev/null | egrep -i "^STAT +VSZ +RSS +UID +USER +PPID +UCOMM +COMMAND" >/dev/null
11978
cat >>confdefs.h <<\_ACEOF
11979
#define USE_PS_VARS 1
11982
cat >>confdefs.h <<_ACEOF
11983
#define PS_VARLIST procstat,&procuid,&procppid,procprog,&pos
11986
cat >>confdefs.h <<_ACEOF
11987
#define PS_RAW_COMMAND "$PATH_TO_PS waxo 'state uid ppid command'"
11990
EXTRAS="$EXTRAS check_nagios"
11991
cat >>confdefs.h <<_ACEOF
11992
#define PS_COMMAND "$PATH_TO_PS waxo 'state uid ppid ucomm command'"
11996
cat >>confdefs.h <<_ACEOF
11997
#define PS_FORMAT "%s %d %d %s %n"
12000
cat >>confdefs.h <<_ACEOF
12001
#define VSZ_COMMAND "$PATH_TO_PS waxco 'vsz command'"
12004
cat >>confdefs.h <<_ACEOF
12005
#define VSZ_FORMAT "%d %s"
12008
cat >>confdefs.h <<_ACEOF
12009
#define RSS_COMMAND "$PATH_TO_PS waxco 'rss command'"
12012
cat >>confdefs.h <<_ACEOF
12013
#define RSS_FORMAT "%d %s"
12016
echo " ps syntax... $PATH_TO_PS waxo 'state vsz rss command'"
12017
elif ps -Al 2>/dev/null | egrep -i "^ *F +S +UID +PID +PPID +CLS +PRI +NI +C +ADDR +SZ +WCHAN +TTY +TIME +COMD" >/dev/null
12020
cat >>confdefs.h <<\_ACEOF
12021
#define USE_PS_VARS 1
12024
cat >>confdefs.h <<_ACEOF
12025
#define PS_VARLIST procstat,&procuid,&procppid,&pos,procprog
12028
cat >>confdefs.h <<_ACEOF
12029
#define PS_COMMAND "$PATH_TO_PS -Al"
12033
cat >>confdefs.h <<_ACEOF
12034
#define PS_FORMAT "%*s %s %d %*s %d %*s %*s %*s %*s %*s %*s %*s %*s %*s %n%s"
12037
if ps -Ao 'vsz comm' 2>/dev/null | egrep -i "^ *VSZ +COMMAND" >/dev/null
12039
cat >>confdefs.h <<_ACEOF
12040
#define VSZ_COMMAND "$PATH_TO_PS -Ao 'vsz comm'"
12043
cat >>confdefs.h <<_ACEOF
12044
#define VSZ_FORMAT "%*s %d"
12048
echo " ps syntax... $PATH_TO_PS -Al"
12050
echo "** Unable to find usable ps syntax"
12054
# Check whether --with-df_command or --without-df_command was given.
12055
if test "${with_df_command+set}" = set; then
12056
withval="$with_df_command"
12057
DF_COMMAND=$withval
12059
if test -n "$DF_COMMAND"
12062
cat >>confdefs.h <<_ACEOF
12063
#define DF_COMMAND "$DF_COMMAND"
12066
elif df -Pk 2>/dev/null | egrep -i "^(/dev/|[a-zA-Z]:)[a-z0-9/\\]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/\\]*" >/dev/null
12068
# Extract the first word of "df", so it can be a program name with args.
12069
set dummy df; ac_word=$2
12070
echo "$as_me:$LINENO: checking for $ac_word" >&5
12071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12072
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
12073
echo $ECHO_N "(cached) $ECHO_C" >&6
12075
case $PATH_TO_DF in
12077
ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
12080
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081
for as_dir in $PATH
12084
test -z "$as_dir" && as_dir=.
12085
for ac_exec_ext in '' $ac_executable_extensions; do
12086
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087
ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
12088
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12097
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
12099
if test -n "$PATH_TO_DF"; then
12100
echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
12101
echo "${ECHO_T}$PATH_TO_DF" >&6
12103
echo "$as_me:$LINENO: result: no" >&5
12104
echo "${ECHO_T}no" >&6
12107
echo "$as_me:$LINENO: result: df syntax... $PATH_TO_DF -Pk" >&5
12108
echo "${ECHO_T} df syntax... $PATH_TO_DF -Pk" >&6
12110
cat >>confdefs.h <<_ACEOF
12111
#define DF_COMMAND "$PATH_TO_DF -Pk"
12114
elif df -k 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
12116
# Extract the first word of "df", so it can be a program name with args.
12117
set dummy df; ac_word=$2
12118
echo "$as_me:$LINENO: checking for $ac_word" >&5
12119
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12120
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
12121
echo $ECHO_N "(cached) $ECHO_C" >&6
12123
case $PATH_TO_DF in
12125
ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
12128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129
for as_dir in $PATH
12132
test -z "$as_dir" && as_dir=.
12133
for ac_exec_ext in '' $ac_executable_extensions; do
12134
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135
ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
12136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
12147
if test -n "$PATH_TO_DF"; then
12148
echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
12149
echo "${ECHO_T}$PATH_TO_DF" >&6
12151
echo "$as_me:$LINENO: result: no" >&5
12152
echo "${ECHO_T}no" >&6
12155
echo "$as_me:$LINENO: result: df syntax... $PATH_TO_DF -k" >&5
12156
echo "${ECHO_T} df syntax... $PATH_TO_DF -k" >&6
12158
cat >>confdefs.h <<_ACEOF
12159
#define DF_COMMAND "$PATH_TO_DF -k"
12162
elif df 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
12164
# Extract the first word of "df", so it can be a program name with args.
12165
set dummy df; ac_word=$2
12166
echo "$as_me:$LINENO: checking for $ac_word" >&5
12167
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12168
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
12169
echo $ECHO_N "(cached) $ECHO_C" >&6
12171
case $PATH_TO_DF in
12173
ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
12176
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177
for as_dir in $PATH
12180
test -z "$as_dir" && as_dir=.
12181
for ac_exec_ext in '' $ac_executable_extensions; do
12182
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12183
ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
12184
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12193
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
12195
if test -n "$PATH_TO_DF"; then
12196
echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
12197
echo "${ECHO_T}$PATH_TO_DF" >&6
12199
echo "$as_me:$LINENO: result: no" >&5
12200
echo "${ECHO_T}no" >&6
12203
echo "$as_me:$LINENO: result: df syntax... $PATH_TO_DF" >&5
12204
echo "${ECHO_T} df syntax... $PATH_TO_DF" >&6
12206
cat >>confdefs.h <<_ACEOF
12207
#define DF_COMMAND "$PATH_TO_DF"
12210
elif bdf 2>/dev/null | egrep -i "^/dev/[a-z0-9/]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" >/dev/null
12212
# Extract the first word of "bdf", so it can be a program name with args.
12213
set dummy bdf; ac_word=$2
12214
echo "$as_me:$LINENO: checking for $ac_word" >&5
12215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12216
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
12217
echo $ECHO_N "(cached) $ECHO_C" >&6
12219
case $PATH_TO_DF in
12221
ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
12224
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225
for as_dir in $PATH
12228
test -z "$as_dir" && as_dir=.
12229
for ac_exec_ext in '' $ac_executable_extensions; do
12230
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12231
ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
12232
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12241
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
12243
if test -n "$PATH_TO_DF"; then
12244
echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
12245
echo "${ECHO_T}$PATH_TO_DF" >&6
12247
echo "$as_me:$LINENO: result: no" >&5
12248
echo "${ECHO_T}no" >&6
12251
echo "$as_me:$LINENO: result: df syntax... $PATH_TO_DF" >&5
12252
echo "${ECHO_T} df syntax... $PATH_TO_DF" >&6
12254
cat >>confdefs.h <<_ACEOF
12255
#define DF_COMMAND "$PATH_TO_DF"
12258
elif df -Pk 2>/dev/null | egrep -i "^[a-z_]+#[a-z_]+ +[0-9]+ +[0-9]+ +[0-9]+ +[0-9]+% +/[a-z0-9/]*" > /dev/null
12260
# Extract the first word of "df", so it can be a program name with args.
12261
set dummy df; ac_word=$2
12262
echo "$as_me:$LINENO: checking for $ac_word" >&5
12263
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12264
if test "${ac_cv_path_PATH_TO_DF+set}" = set; then
12265
echo $ECHO_N "(cached) $ECHO_C" >&6
12267
case $PATH_TO_DF in
12269
ac_cv_path_PATH_TO_DF="$PATH_TO_DF" # Let the user override the test with a path.
12272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273
for as_dir in $PATH
12276
test -z "$as_dir" && as_dir=.
12277
for ac_exec_ext in '' $ac_executable_extensions; do
12278
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279
ac_cv_path_PATH_TO_DF="$as_dir/$ac_word$ac_exec_ext"
12280
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12289
PATH_TO_DF=$ac_cv_path_PATH_TO_DF
12291
if test -n "$PATH_TO_DF"; then
12292
echo "$as_me:$LINENO: result: $PATH_TO_DF" >&5
12293
echo "${ECHO_T}$PATH_TO_DF" >&6
12295
echo "$as_me:$LINENO: result: no" >&5
12296
echo "${ECHO_T}no" >&6
12299
echo "$as_me:$LINENO: result: df syntax... $PATH_TO_DF -Pk (Tru64)" >&5
12300
echo "${ECHO_T} df syntax... $PATH_TO_DF -Pk (Tru64)" >&6
12302
cat >>confdefs.h <<_ACEOF
12303
#define DF_COMMAND "$PATH_TO_DF -Pk"
12307
{ echo "$as_me:$LINENO: WARNING: \"unable to find usable df syntax\"" >&5
12308
echo "$as_me: WARNING: \"unable to find usable df syntax\"" >&2;}
12311
# Extract the first word of "ping", so it can be a program name with args.
12312
set dummy ping; ac_word=$2
12313
echo "$as_me:$LINENO: checking for $ac_word" >&5
12314
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12315
if test "${ac_cv_path_PATH_TO_PING+set}" = set; then
12316
echo $ECHO_N "(cached) $ECHO_C" >&6
12318
case $PATH_TO_PING in
12320
ac_cv_path_PATH_TO_PING="$PATH_TO_PING" # Let the user override the test with a path.
12323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324
for as_dir in $PATH
12327
test -z "$as_dir" && as_dir=.
12328
for ac_exec_ext in '' $ac_executable_extensions; do
12329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12330
ac_cv_path_PATH_TO_PING="$as_dir/$ac_word$ac_exec_ext"
12331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12340
PATH_TO_PING=$ac_cv_path_PATH_TO_PING
12342
if test -n "$PATH_TO_PING"; then
12343
echo "$as_me:$LINENO: result: $PATH_TO_PING" >&5
12344
echo "${ECHO_T}$PATH_TO_PING" >&6
12346
echo "$as_me:$LINENO: result: no" >&5
12347
echo "${ECHO_T}no" >&6
12352
# Check whether --with-ping_command or --without-ping_command was given.
12353
if test "${with_ping_command+set}" = set; then
12354
withval="$with_ping_command"
12355
PING_COMMAND=$withval
12357
if test -n "$PING_COMMAND"
12359
echo " ping syntax... (command-line) $PING_COMMAND"
12360
if test -n "$PING_PACKETS_FIRST"
12363
cat >>confdefs.h <<_ACEOF
12364
#define PING_PACKETS_FIRST "$PING_COMMAND"
12368
elif [ "z$ac_cv_uname_s" = "zUnixWare" ] && ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12370
PING_COMMAND="$PATH_TO_PING -n -U -c %d %s"
12372
cat >>confdefs.h <<_ACEOF
12373
#define PING_PACKETS_FIRST "$PING_COMMAND"
12376
echo " ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
12377
elif ping -n -U -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12379
PING_COMMAND="$PATH_TO_PING -n -U -c %d %s"
12381
cat >>confdefs.h <<_ACEOF
12382
#define PING_PACKETS_FIRST "$PING_COMMAND"
12385
echo " ping syntax... $PATH_TO_PING -n -U -c <count> <host>"
12386
elif ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12388
PING_COMMAND="$PATH_TO_PING -n -c %d %s"
12390
cat >>confdefs.h <<_ACEOF
12391
#define PING_PACKETS_FIRST "$PING_COMMAND"
12394
echo " ping syntax... $PATH_TO_PING -n -c <count> <host>"
12395
elif ping -n 127.0.0.1 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12397
PING_COMMAND="$PATH_TO_PING -n %s -c %d"
12398
echo " ping syntax... $PATH_TO_PING -n <host> -c <count>"
12399
elif ping 127.0.0.1 -n 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12401
PING_COMMAND="$PATH_TO_PING %s -n %d"
12402
echo " ping syntax... $PATH_TO_PING <host> -n <count>"
12403
elif ping -n -s 127.0.0.1 56 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12405
PING_COMMAND="$PATH_TO_PING -n -s %s 56 %d"
12406
echo " ping syntax... $PATH_TO_PING -n -s <host> 56 <count>"
12407
elif ping -n -h 127.0.0.1 -s 56 -c 1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12409
PING_COMMAND="$PATH_TO_PING -n -h %s -s 56 -c %d"
12410
echo " ping syntax... $PATH_TO_PING -n -h <host> -s 56 -c <count>"
12411
elif ping -n -s 56 -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12413
PING_COMMAND="$PATH_TO_PING -n -s 56 -c %d %s"
12415
cat >>confdefs.h <<_ACEOF
12416
#define PING_PACKETS_FIRST "$PING_COMMAND"
12419
echo " ping syntax... $PATH_TO_PING -n -s 56 -c <count> <host>"
12420
elif ping -n -c 1 127.0.0.1 2>/dev/null | egrep -i "^round-trip|^rtt" >/dev/null
12422
PING_COMMAND="$PATH_TO_PING -n -c %d %s"
12424
cat >>confdefs.h <<_ACEOF
12425
#define PING_PACKETS_FIRST "$PING_COMMAND"
12428
echo " ping syntax... $PATH_TO_PING -n -c <count> <host>"
12430
{ echo "$as_me:$LINENO: WARNING: \"unable to find usable ping syntax\"" >&5
12431
echo "$as_me: WARNING: \"unable to find usable ping syntax\"" >&2;}
12434
cat >>confdefs.h <<_ACEOF
12435
#define PING_COMMAND "$PING_COMMAND"
12439
# Extract the first word of "nslookup", so it can be a program name with args.
12440
set dummy nslookup; ac_word=$2
12441
echo "$as_me:$LINENO: checking for $ac_word" >&5
12442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12443
if test "${ac_cv_path_PATH_TO_NSLOOKUP+set}" = set; then
12444
echo $ECHO_N "(cached) $ECHO_C" >&6
12446
case $PATH_TO_NSLOOKUP in
12448
ac_cv_path_PATH_TO_NSLOOKUP="$PATH_TO_NSLOOKUP" # Let the user override the test with a path.
12451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12452
for as_dir in $PATH
12455
test -z "$as_dir" && as_dir=.
12456
for ac_exec_ext in '' $ac_executable_extensions; do
12457
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12458
ac_cv_path_PATH_TO_NSLOOKUP="$as_dir/$ac_word$ac_exec_ext"
12459
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12468
PATH_TO_NSLOOKUP=$ac_cv_path_PATH_TO_NSLOOKUP
12470
if test -n "$PATH_TO_NSLOOKUP"; then
12471
echo "$as_me:$LINENO: result: $PATH_TO_NSLOOKUP" >&5
12472
echo "${ECHO_T}$PATH_TO_NSLOOKUP" >&6
12474
echo "$as_me:$LINENO: result: no" >&5
12475
echo "${ECHO_T}no" >&6
12478
if test -n "$ac_cv_path_PATH_TO_NSLOOKUP"
12480
if nslookup -sil 127.0.0.1 2>&1 | grep "Invalid option: sil" >/dev/null
12482
echo "$as_me:$LINENO: result: nslookup syntax... $PATH_TO_NSLOOKUP" >&5
12483
echo "${ECHO_T} nslookup syntax... $PATH_TO_NSLOOKUP" >&6
12485
cat >>confdefs.h <<_ACEOF
12486
#define NSLOOKUP_COMMAND "$PATH_TO_NSLOOKUP"
12490
echo "$as_me:$LINENO: result: nslookup syntax... $PATH_TO_NSLOOKUP -sil" >&5
12491
echo "${ECHO_T} nslookup syntax... $PATH_TO_NSLOOKUP -sil" >&6
12493
cat >>confdefs.h <<_ACEOF
12494
#define NSLOOKUP_COMMAND "$PATH_TO_NSLOOKUP -sil"
12498
EXTRAS="$EXTRAS check_dns"
12500
{ echo "$as_me:$LINENO: WARNING: nslookup command not found" >&5
12501
echo "$as_me: WARNING: nslookup command not found" >&2;}
12504
# Extract the first word of "host", so it can be a program name with args.
12505
set dummy host; ac_word=$2
12506
echo "$as_me:$LINENO: checking for $ac_word" >&5
12507
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12508
if test "${ac_cv_path_PATH_TO_HOST+set}" = set; then
12509
echo $ECHO_N "(cached) $ECHO_C" >&6
12511
case $PATH_TO_HOST in
12513
ac_cv_path_PATH_TO_HOST="$PATH_TO_HOST" # Let the user override the test with a path.
12516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12517
for as_dir in $PATH
12520
test -z "$as_dir" && as_dir=.
12521
for ac_exec_ext in '' $ac_executable_extensions; do
12522
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12523
ac_cv_path_PATH_TO_HOST="$as_dir/$ac_word$ac_exec_ext"
12524
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12533
PATH_TO_HOST=$ac_cv_path_PATH_TO_HOST
12535
if test -n "$PATH_TO_HOST"; then
12536
echo "$as_me:$LINENO: result: $PATH_TO_HOST" >&5
12537
echo "${ECHO_T}$PATH_TO_HOST" >&6
12539
echo "$as_me:$LINENO: result: no" >&5
12540
echo "${ECHO_T}no" >&6
12543
if test -n "$ac_cv_path_PATH_TO_HOST"
12545
EXTRAS="$EXTRAS check_dns"
12548
# Extract the first word of "uptime", so it can be a program name with args.
12549
set dummy uptime; ac_word=$2
12550
echo "$as_me:$LINENO: checking for $ac_word" >&5
12551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12552
if test "${ac_cv_path_PATH_TO_UPTIME+set}" = set; then
12553
echo $ECHO_N "(cached) $ECHO_C" >&6
12555
case $PATH_TO_UPTIME in
12557
ac_cv_path_PATH_TO_UPTIME="$PATH_TO_UPTIME" # Let the user override the test with a path.
12560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561
for as_dir in $PATH
12564
test -z "$as_dir" && as_dir=.
12565
for ac_exec_ext in '' $ac_executable_extensions; do
12566
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567
ac_cv_path_PATH_TO_UPTIME="$as_dir/$ac_word$ac_exec_ext"
12568
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577
PATH_TO_UPTIME=$ac_cv_path_PATH_TO_UPTIME
12579
if test -n "$PATH_TO_UPTIME"; then
12580
echo "$as_me:$LINENO: result: $PATH_TO_UPTIME" >&5
12581
echo "${ECHO_T}$PATH_TO_UPTIME" >&6
12583
echo "$as_me:$LINENO: result: no" >&5
12584
echo "${ECHO_T}no" >&6
12588
cat >>confdefs.h <<_ACEOF
12589
#define PATH_TO_UPTIME "$PATH_TO_UPTIME"
12593
# Extract the first word of "rpcinfo", so it can be a program name with args.
12594
set dummy rpcinfo; ac_word=$2
12595
echo "$as_me:$LINENO: checking for $ac_word" >&5
12596
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12597
if test "${ac_cv_path_PATH_TO_RPCINFO+set}" = set; then
12598
echo $ECHO_N "(cached) $ECHO_C" >&6
12600
case $PATH_TO_RPCINFO in
12602
ac_cv_path_PATH_TO_RPCINFO="$PATH_TO_RPCINFO" # Let the user override the test with a path.
12605
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12606
for as_dir in $PATH
12609
test -z "$as_dir" && as_dir=.
12610
for ac_exec_ext in '' $ac_executable_extensions; do
12611
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12612
ac_cv_path_PATH_TO_RPCINFO="$as_dir/$ac_word$ac_exec_ext"
12613
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12622
PATH_TO_RPCINFO=$ac_cv_path_PATH_TO_RPCINFO
12624
if test -n "$PATH_TO_RPCINFO"; then
12625
echo "$as_me:$LINENO: result: $PATH_TO_RPCINFO" >&5
12626
echo "${ECHO_T}$PATH_TO_RPCINFO" >&6
12628
echo "$as_me:$LINENO: result: no" >&5
12629
echo "${ECHO_T}no" >&6
12633
cat >>confdefs.h <<_ACEOF
12634
#define PATH_TO_RPCINFO "$PATH_TO_RPCINFO"
12638
# Extract the first word of "ntpdate", so it can be a program name with args.
12639
set dummy ntpdate; ac_word=$2
12640
echo "$as_me:$LINENO: checking for $ac_word" >&5
12641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12642
if test "${ac_cv_path_PATH_TO_NTPDATE+set}" = set; then
12643
echo $ECHO_N "(cached) $ECHO_C" >&6
12645
case $PATH_TO_NTPDATE in
12647
ac_cv_path_PATH_TO_NTPDATE="$PATH_TO_NTPDATE" # Let the user override the test with a path.
12650
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651
for as_dir in $PATH
12654
test -z "$as_dir" && as_dir=.
12655
for ac_exec_ext in '' $ac_executable_extensions; do
12656
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12657
ac_cv_path_PATH_TO_NTPDATE="$as_dir/$ac_word$ac_exec_ext"
12658
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12667
PATH_TO_NTPDATE=$ac_cv_path_PATH_TO_NTPDATE
12669
if test -n "$PATH_TO_NTPDATE"; then
12670
echo "$as_me:$LINENO: result: $PATH_TO_NTPDATE" >&5
12671
echo "${ECHO_T}$PATH_TO_NTPDATE" >&6
12673
echo "$as_me:$LINENO: result: no" >&5
12674
echo "${ECHO_T}no" >&6
12677
for ac_prog in ntpdc xntpdc
12679
# Extract the first word of "$ac_prog", so it can be a program name with args.
12680
set dummy $ac_prog; ac_word=$2
12681
echo "$as_me:$LINENO: checking for $ac_word" >&5
12682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12683
if test "${ac_cv_path_PATH_TO_NTPDC+set}" = set; then
12684
echo $ECHO_N "(cached) $ECHO_C" >&6
12686
case $PATH_TO_NTPDC in
12688
ac_cv_path_PATH_TO_NTPDC="$PATH_TO_NTPDC" # Let the user override the test with a path.
12691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692
for as_dir in $PATH
12695
test -z "$as_dir" && as_dir=.
12696
for ac_exec_ext in '' $ac_executable_extensions; do
12697
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12698
ac_cv_path_PATH_TO_NTPDC="$as_dir/$ac_word$ac_exec_ext"
12699
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12708
PATH_TO_NTPDC=$ac_cv_path_PATH_TO_NTPDC
12710
if test -n "$PATH_TO_NTPDC"; then
12711
echo "$as_me:$LINENO: result: $PATH_TO_NTPDC" >&5
12712
echo "${ECHO_T}$PATH_TO_NTPDC" >&6
12714
echo "$as_me:$LINENO: result: no" >&5
12715
echo "${ECHO_T}no" >&6
12718
test -n "$PATH_TO_NTPDC" && break
12721
for ac_prog in ntpq
12723
# Extract the first word of "$ac_prog", so it can be a program name with args.
12724
set dummy $ac_prog; ac_word=$2
12725
echo "$as_me:$LINENO: checking for $ac_word" >&5
12726
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12727
if test "${ac_cv_path_PATH_TO_NTPQ+set}" = set; then
12728
echo $ECHO_N "(cached) $ECHO_C" >&6
12730
case $PATH_TO_NTPQ in
12732
ac_cv_path_PATH_TO_NTPQ="$PATH_TO_NTPQ" # Let the user override the test with a path.
12735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736
for as_dir in $PATH
12739
test -z "$as_dir" && as_dir=.
12740
for ac_exec_ext in '' $ac_executable_extensions; do
12741
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12742
ac_cv_path_PATH_TO_NTPQ="$as_dir/$ac_word$ac_exec_ext"
12743
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12752
PATH_TO_NTPQ=$ac_cv_path_PATH_TO_NTPQ
12754
if test -n "$PATH_TO_NTPQ"; then
12755
echo "$as_me:$LINENO: result: $PATH_TO_NTPQ" >&5
12756
echo "${ECHO_T}$PATH_TO_NTPQ" >&6
12758
echo "$as_me:$LINENO: result: no" >&5
12759
echo "${ECHO_T}no" >&6
12762
test -n "$PATH_TO_NTPQ" && break
12765
if (test -x "$PATH_TO_NTPDATE" || test -x "$PATH_TO_NTPQ")
12768
cat >>confdefs.h <<_ACEOF
12769
#define PATH_TO_NTPQ "$PATH_TO_NTPQ"
12773
cat >>confdefs.h <<_ACEOF
12774
#define PATH_TO_NTPDATE "$PATH_TO_NTPDATE"
12778
echo "** Install NTP programs (http://www.ntp.org) if you want to monitor time synchronization"
12781
# Extract the first word of "lmstat", so it can be a program name with args.
12782
set dummy lmstat; ac_word=$2
12783
echo "$as_me:$LINENO: checking for $ac_word" >&5
12784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12785
if test "${ac_cv_path_PATH_TO_LMSTAT+set}" = set; then
12786
echo $ECHO_N "(cached) $ECHO_C" >&6
12788
case $PATH_TO_LMSTAT in
12790
ac_cv_path_PATH_TO_LMSTAT="$PATH_TO_LMSTAT" # Let the user override the test with a path.
12793
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12794
for as_dir in $PATH
12797
test -z "$as_dir" && as_dir=.
12798
for ac_exec_ext in '' $ac_executable_extensions; do
12799
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12800
ac_cv_path_PATH_TO_LMSTAT="$as_dir/$ac_word$ac_exec_ext"
12801
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12810
PATH_TO_LMSTAT=$ac_cv_path_PATH_TO_LMSTAT
12812
if test -n "$PATH_TO_LMSTAT"; then
12813
echo "$as_me:$LINENO: result: $PATH_TO_LMSTAT" >&5
12814
echo "${ECHO_T}$PATH_TO_LMSTAT" >&6
12816
echo "$as_me:$LINENO: result: no" >&5
12817
echo "${ECHO_T}no" >&6
12820
if test -x "$PATH_TO_LMSTAT"
12823
cat >>confdefs.h <<_ACEOF
12824
#define PATH_TO_LMSTAT "$PATH_TO_LMSTAT"
12828
echo "** Get lmstat from Globetrotter Software to monitor flexlm licenses"
12831
# Extract the first word of "smbclient", so it can be a program name with args.
12832
set dummy smbclient; ac_word=$2
12833
echo "$as_me:$LINENO: checking for $ac_word" >&5
12834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12835
if test "${ac_cv_path_PATH_TO_SMBCLIENT+set}" = set; then
12836
echo $ECHO_N "(cached) $ECHO_C" >&6
12838
case $PATH_TO_SMBCLIENT in
12840
ac_cv_path_PATH_TO_SMBCLIENT="$PATH_TO_SMBCLIENT" # Let the user override the test with a path.
12843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12844
for as_dir in $PATH
12847
test -z "$as_dir" && as_dir=.
12848
for ac_exec_ext in '' $ac_executable_extensions; do
12849
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850
ac_cv_path_PATH_TO_SMBCLIENT="$as_dir/$ac_word$ac_exec_ext"
12851
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12860
PATH_TO_SMBCLIENT=$ac_cv_path_PATH_TO_SMBCLIENT
12862
if test -n "$PATH_TO_SMBCLIENT"; then
12863
echo "$as_me:$LINENO: result: $PATH_TO_SMBCLIENT" >&5
12864
echo "${ECHO_T}$PATH_TO_SMBCLIENT" >&6
12866
echo "$as_me:$LINENO: result: no" >&5
12867
echo "${ECHO_T}no" >&6
12870
if test -x "$PATH_TO_SMBCLIENT"
12873
cat >>confdefs.h <<_ACEOF
12874
#define PATH_TO_SMBCLIENT "$PATH_TO_SMBCLIENT"
12878
echo "** Get smbclient from Samba.org to monitor SMB shares"
12882
# Extract the first word of "who", so it can be a program name with args.
12883
set dummy who; ac_word=$2
12884
echo "$as_me:$LINENO: checking for $ac_word" >&5
12885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12886
if test "${ac_cv_path_PATH_TO_WHO+set}" = set; then
12887
echo $ECHO_N "(cached) $ECHO_C" >&6
12889
case $PATH_TO_WHO in
12891
ac_cv_path_PATH_TO_WHO="$PATH_TO_WHO" # Let the user override the test with a path.
12894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895
for as_dir in $PATH
12898
test -z "$as_dir" && as_dir=.
12899
for ac_exec_ext in '' $ac_executable_extensions; do
12900
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901
ac_cv_path_PATH_TO_WHO="$as_dir/$ac_word$ac_exec_ext"
12902
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12911
PATH_TO_WHO=$ac_cv_path_PATH_TO_WHO
12913
if test -n "$PATH_TO_WHO"; then
12914
echo "$as_me:$LINENO: result: $PATH_TO_WHO" >&5
12915
echo "${ECHO_T}$PATH_TO_WHO" >&6
12917
echo "$as_me:$LINENO: result: no" >&5
12918
echo "${ECHO_T}no" >&6
12921
if who -q 2>/dev/null | egrep -i "^# users=[0-9]+$" >/dev/null
12924
cat >>confdefs.h <<_ACEOF
12925
#define WHO_COMMAND "$PATH_TO_WHO -q"
12930
cat >>confdefs.h <<_ACEOF
12931
#define WHO_COMMAND "$PATH_TO_WHO"
12936
# Extract the first word of "snmpget", so it can be a program name with args.
12937
set dummy snmpget; ac_word=$2
12938
echo "$as_me:$LINENO: checking for $ac_word" >&5
12939
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12940
if test "${ac_cv_path_PATH_TO_SNMPGET+set}" = set; then
12941
echo $ECHO_N "(cached) $ECHO_C" >&6
12943
case $PATH_TO_SNMPGET in
12945
ac_cv_path_PATH_TO_SNMPGET="$PATH_TO_SNMPGET" # Let the user override the test with a path.
12948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949
for as_dir in $PATH
12952
test -z "$as_dir" && as_dir=.
12953
for ac_exec_ext in '' $ac_executable_extensions; do
12954
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955
ac_cv_path_PATH_TO_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
12956
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12965
PATH_TO_SNMPGET=$ac_cv_path_PATH_TO_SNMPGET
12967
if test -n "$PATH_TO_SNMPGET"; then
12968
echo "$as_me:$LINENO: result: $PATH_TO_SNMPGET" >&5
12969
echo "${ECHO_T}$PATH_TO_SNMPGET" >&6
12971
echo "$as_me:$LINENO: result: no" >&5
12972
echo "${ECHO_T}no" >&6
12975
if test -x "$PATH_TO_SNMPGET"
12978
cat >>confdefs.h <<_ACEOF
12979
#define PATH_TO_SNMPGET "$PATH_TO_SNMPGET"
12982
EXTRAS="$EXTRAS check_hpjd check_snmp"
12984
echo "** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd and check_snmp plugins"
12987
# Extract the first word of "snmpgetnext", so it can be a program name with args.
12988
set dummy snmpgetnext; ac_word=$2
12989
echo "$as_me:$LINENO: checking for $ac_word" >&5
12990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12991
if test "${ac_cv_path_PATH_TO_SNMPGETNEXT+set}" = set; then
12992
echo $ECHO_N "(cached) $ECHO_C" >&6
12994
case $PATH_TO_SNMPGETNEXT in
12996
ac_cv_path_PATH_TO_SNMPGETNEXT="$PATH_TO_SNMPGETNEXT" # Let the user override the test with a path.
12999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13000
for as_dir in $PATH
13003
test -z "$as_dir" && as_dir=.
13004
for ac_exec_ext in '' $ac_executable_extensions; do
13005
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13006
ac_cv_path_PATH_TO_SNMPGETNEXT="$as_dir/$ac_word$ac_exec_ext"
13007
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13016
PATH_TO_SNMPGETNEXT=$ac_cv_path_PATH_TO_SNMPGETNEXT
13018
if test -n "$PATH_TO_SNMPGETNEXT"; then
13019
echo "$as_me:$LINENO: result: $PATH_TO_SNMPGETNEXT" >&5
13020
echo "${ECHO_T}$PATH_TO_SNMPGETNEXT" >&6
13022
echo "$as_me:$LINENO: result: no" >&5
13023
echo "${ECHO_T}no" >&6
13026
if test -x "$PATH_TO_SNMPGETNEXT"
13029
cat >>confdefs.h <<_ACEOF
13030
#define PATH_TO_SNMPGETNEXT "$PATH_TO_SNMPGETNEXT"
13035
if ( $PERL -M"Net::SNMP 3.6" -e 'exit' 2>/dev/null )
13037
echo "Found Net::SNMP perl module"
13039
echo "** Tried $PERL - install Net::SNMP perl module if you want to"
13040
echo " use the perl snmp plugins"
13043
# Extract the first word of "quakestat", so it can be a program name with args.
13044
set dummy quakestat; ac_word=$2
13045
echo "$as_me:$LINENO: checking for $ac_word" >&5
13046
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13047
if test "${ac_cv_path_PATH_TO_QUAKESTAT+set}" = set; then
13048
echo $ECHO_N "(cached) $ECHO_C" >&6
13050
case $PATH_TO_QUAKESTAT in
13052
ac_cv_path_PATH_TO_QUAKESTAT="$PATH_TO_QUAKESTAT" # Let the user override the test with a path.
13055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13056
for as_dir in $PATH
13059
test -z "$as_dir" && as_dir=.
13060
for ac_exec_ext in '' $ac_executable_extensions; do
13061
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13062
ac_cv_path_PATH_TO_QUAKESTAT="$as_dir/$ac_word$ac_exec_ext"
13063
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072
PATH_TO_QUAKESTAT=$ac_cv_path_PATH_TO_QUAKESTAT
13074
if test -n "$PATH_TO_QUAKESTAT"; then
13075
echo "$as_me:$LINENO: result: $PATH_TO_QUAKESTAT" >&5
13076
echo "${ECHO_T}$PATH_TO_QUAKESTAT" >&6
13078
echo "$as_me:$LINENO: result: no" >&5
13079
echo "${ECHO_T}no" >&6
13082
# Extract the first word of "qstat", so it can be a program name with args.
13083
set dummy qstat; ac_word=$2
13084
echo "$as_me:$LINENO: checking for $ac_word" >&5
13085
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13086
if test "${ac_cv_path_PATH_TO_QSTAT+set}" = set; then
13087
echo $ECHO_N "(cached) $ECHO_C" >&6
13089
case $PATH_TO_QSTAT in
13091
ac_cv_path_PATH_TO_QSTAT="$PATH_TO_QSTAT" # Let the user override the test with a path.
13094
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095
for as_dir in $PATH
13098
test -z "$as_dir" && as_dir=.
13099
for ac_exec_ext in '' $ac_executable_extensions; do
13100
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13101
ac_cv_path_PATH_TO_QSTAT="$as_dir/$ac_word$ac_exec_ext"
13102
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13111
PATH_TO_QSTAT=$ac_cv_path_PATH_TO_QSTAT
13113
if test -n "$PATH_TO_QSTAT"; then
13114
echo "$as_me:$LINENO: result: $PATH_TO_QSTAT" >&5
13115
echo "${ECHO_T}$PATH_TO_QSTAT" >&6
13117
echo "$as_me:$LINENO: result: no" >&5
13118
echo "${ECHO_T}no" >&6
13121
if test -x "$PATH_TO_QUAKESTAT"
13124
cat >>confdefs.h <<_ACEOF
13125
#define PATH_TO_QSTAT "$PATH_TO_QUAKESTAT"
13128
EXTRAS="$EXTRAS check_game"
13129
elif test -x "$PATH_TO_QSTAT"
13132
cat >>confdefs.h <<_ACEOF
13133
#define PATH_TO_QSTAT "$PATH_TO_QSTAT"
13136
EXTRAS="$EXTRAS check_game"
13138
echo "** Get qstat from http://www.activesw.com/people/steve/qstat.html in order to make check_game plugin"
13141
# Extract the first word of "fping", so it can be a program name with args.
13142
set dummy fping; ac_word=$2
13143
echo "$as_me:$LINENO: checking for $ac_word" >&5
13144
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13145
if test "${ac_cv_path_PATH_TO_FPING+set}" = set; then
13146
echo $ECHO_N "(cached) $ECHO_C" >&6
13148
case $PATH_TO_FPING in
13150
ac_cv_path_PATH_TO_FPING="$PATH_TO_FPING" # Let the user override the test with a path.
13153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154
for as_dir in $PATH
13157
test -z "$as_dir" && as_dir=.
13158
for ac_exec_ext in '' $ac_executable_extensions; do
13159
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13160
ac_cv_path_PATH_TO_FPING="$as_dir/$ac_word$ac_exec_ext"
13161
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13170
PATH_TO_FPING=$ac_cv_path_PATH_TO_FPING
13172
if test -n "$PATH_TO_FPING"; then
13173
echo "$as_me:$LINENO: result: $PATH_TO_FPING" >&5
13174
echo "${ECHO_T}$PATH_TO_FPING" >&6
13176
echo "$as_me:$LINENO: result: no" >&5
13177
echo "${ECHO_T}no" >&6
13180
if test -x "$PATH_TO_FPING"
13183
cat >>confdefs.h <<_ACEOF
13184
#define PATH_TO_FPING "$PATH_TO_FPING"
13187
EXTRAS="$EXTRAS check_fping"
13189
echo "** Get fping from http://www.fping.com in order to make check_fping plugin"
13192
# Extract the first word of "ssh", so it can be a program name with args.
13193
set dummy ssh; ac_word=$2
13194
echo "$as_me:$LINENO: checking for $ac_word" >&5
13195
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13196
if test "${ac_cv_path_PATH_TO_SSH+set}" = set; then
13197
echo $ECHO_N "(cached) $ECHO_C" >&6
13199
case $PATH_TO_SSH in
13201
ac_cv_path_PATH_TO_SSH="$PATH_TO_SSH" # Let the user override the test with a path.
13204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205
for as_dir in $PATH
13208
test -z "$as_dir" && as_dir=.
13209
for ac_exec_ext in '' $ac_executable_extensions; do
13210
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13211
ac_cv_path_PATH_TO_SSH="$as_dir/$ac_word$ac_exec_ext"
13212
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221
PATH_TO_SSH=$ac_cv_path_PATH_TO_SSH
13223
if test -n "$PATH_TO_SSH"; then
13224
echo "$as_me:$LINENO: result: $PATH_TO_SSH" >&5
13225
echo "${ECHO_T}$PATH_TO_SSH" >&6
13227
echo "$as_me:$LINENO: result: no" >&5
13228
echo "${ECHO_T}no" >&6
13231
if test -x "$PATH_TO_SSH"
13234
cat >>confdefs.h <<_ACEOF
13235
#define SSH_COMMAND "$PATH_TO_SSH"
13238
EXTRAS="$EXTRAS check_by_ssh"
13240
echo "** Get ssh in order to make check_by_ssh plugin"
13244
# Extract the first word of "mailq", so it can be a program name with args.
13245
set dummy mailq; ac_word=$2
13246
echo "$as_me:$LINENO: checking for $ac_word" >&5
13247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13248
if test "${ac_cv_path_PATH_TO_MAILQ+set}" = set; then
13249
echo $ECHO_N "(cached) $ECHO_C" >&6
13251
case $PATH_TO_MAILQ in
13253
ac_cv_path_PATH_TO_MAILQ="$PATH_TO_MAILQ" # Let the user override the test with a path.
13256
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13257
for as_dir in $PATH
13260
test -z "$as_dir" && as_dir=.
13261
for ac_exec_ext in '' $ac_executable_extensions; do
13262
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13263
ac_cv_path_PATH_TO_MAILQ="$as_dir/$ac_word$ac_exec_ext"
13264
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13273
PATH_TO_MAILQ=$ac_cv_path_PATH_TO_MAILQ
13275
if test -n "$PATH_TO_MAILQ"; then
13276
echo "$as_me:$LINENO: result: $PATH_TO_MAILQ" >&5
13277
echo "${ECHO_T}$PATH_TO_MAILQ" >&6
13279
echo "$as_me:$LINENO: result: no" >&5
13280
echo "${ECHO_T}no" >&6
13283
if test -x "$PATH_TO_MAILQ"
13286
cat >>confdefs.h <<_ACEOF
13287
#define PATH_TO_MAILQ "$PATH_TO_MAILQ"
13291
echo "** Could not find mailq or eqivalent"
13296
if cat /proc/meminfo > /dev/null 2>&1
13298
echo "found /proc/meminfo"
13300
cat >>confdefs.h <<\_ACEOF
13301
#define HAVE_PROC_MEMINFO 1
13305
cat >>confdefs.h <<_ACEOF
13306
#define PROC_MEMINFO "/proc/meminfo"
13309
EXTRAS="$EXTRAS check_swap"
13310
elif swap -l 2>&1 >/dev/null
13312
echo "found swap command"
13314
cat >>confdefs.h <<\_ACEOF
13315
#define HAVE_SWAP 1
13318
# Extract the first word of "swap", so it can be a program name with args.
13319
set dummy swap; ac_word=$2
13320
echo "$as_me:$LINENO: checking for $ac_word" >&5
13321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13322
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
13323
echo $ECHO_N "(cached) $ECHO_C" >&6
13325
case $PATH_TO_SWAP in
13327
ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
13330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13331
for as_dir in $PATH
13334
test -z "$as_dir" && as_dir=.
13335
for ac_exec_ext in '' $ac_executable_extensions; do
13336
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13337
ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
13338
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13347
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
13349
if test -n "$PATH_TO_SWAP"; then
13350
echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
13351
echo "${ECHO_T}$PATH_TO_SWAP" >&6
13353
echo "$as_me:$LINENO: result: no" >&5
13354
echo "${ECHO_T}no" >&6
13358
cat >>confdefs.h <<_ACEOF
13359
#define SWAP_COMMAND "$PATH_TO_SWAP -l"
13362
if swap -l 2>/dev/null | egrep -i "^lswap +path +pri +swaplo +blocks +free +maxswap" >/dev/null
13365
cat >>confdefs.h <<_ACEOF
13366
#define SWAP_FORMAT " %*d %*s %*d,%*d %*d %*d %d %d"
13369
echo " using IRIX format"
13370
elif swap -l 2>/dev/null | egrep -i "^swapfile +dev +swaplo +blocks +free" >/dev/null
13373
cat >>confdefs.h <<_ACEOF
13374
#define SWAP_FORMAT "%*s %*[0-9,-] %*d %d %d"
13377
echo " using Solaris format"
13378
elif swap -l 2>/dev/null | egrep -i "^path +dev +swaplo +blocks +free" >/dev/null
13381
cat >>confdefs.h <<_ACEOF
13382
#define SWAP_FORMAT "%*s %*[0-9,-] %*d %d %d"
13385
echo " using Unixware format"
13387
EXTRAS="$EXTRAS check_swap"
13388
elif swapinfo -k 2>&1 | egrep -i "^Device" >/dev/null
13390
echo "found swapinfo command"
13392
cat >>confdefs.h <<\_ACEOF
13393
#define HAVE_SWAP 1
13396
# Extract the first word of "swapinfo", so it can be a program name with args.
13397
set dummy swapinfo; ac_word=$2
13398
echo "$as_me:$LINENO: checking for $ac_word" >&5
13399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13400
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
13401
echo $ECHO_N "(cached) $ECHO_C" >&6
13403
case $PATH_TO_SWAP in
13405
ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
13408
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409
for as_dir in $PATH
13412
test -z "$as_dir" && as_dir=.
13413
for ac_exec_ext in '' $ac_executable_extensions; do
13414
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415
ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
13416
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13425
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
13427
if test -n "$PATH_TO_SWAP"; then
13428
echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
13429
echo "${ECHO_T}$PATH_TO_SWAP" >&6
13431
echo "$as_me:$LINENO: result: no" >&5
13432
echo "${ECHO_T}no" >&6
13436
cat >>confdefs.h <<_ACEOF
13437
#define SWAP_COMMAND "$PATH_TO_SWAP -k"
13440
if swapinfo -k 2>/dev/null | egrep -i "^Device +1K-blocks +Used +Avail" >/dev/null
13443
cat >>confdefs.h <<_ACEOF
13444
#define SWAP_FORMAT "%*s %d %*d %d"
13447
echo " using FreeBSD format"
13449
EXTRAS="$EXTRAS check_swap"
13450
elif swapinfo -dfM 2>/dev/null | egrep -i "^TYPE +AVAIL +USED +FREE" >/dev/null
13453
cat >>confdefs.h <<\_ACEOF
13454
#define HAVE_SWAP 1
13457
# Extract the first word of "swapinfo", so it can be a program name with args.
13458
set dummy swapinfo; ac_word=$2
13459
echo "$as_me:$LINENO: checking for $ac_word" >&5
13460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13461
if test "${ac_cv_path_PATH_TO_SWAP+set}" = set; then
13462
echo $ECHO_N "(cached) $ECHO_C" >&6
13464
case $PATH_TO_SWAP in
13466
ac_cv_path_PATH_TO_SWAP="$PATH_TO_SWAP" # Let the user override the test with a path.
13469
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13470
for as_dir in $PATH
13473
test -z "$as_dir" && as_dir=.
13474
for ac_exec_ext in '' $ac_executable_extensions; do
13475
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13476
ac_cv_path_PATH_TO_SWAP="$as_dir/$ac_word$ac_exec_ext"
13477
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13486
PATH_TO_SWAP=$ac_cv_path_PATH_TO_SWAP
13488
if test -n "$PATH_TO_SWAP"; then
13489
echo "$as_me:$LINENO: result: $PATH_TO_SWAP" >&5
13490
echo "${ECHO_T}$PATH_TO_SWAP" >&6
13492
echo "$as_me:$LINENO: result: no" >&5
13493
echo "${ECHO_T}no" >&6
13497
cat >>confdefs.h <<_ACEOF
13498
#define SWAP_COMMAND "$PATH_TO_SWAP -dfM"
13502
cat >>confdefs.h <<_ACEOF
13503
#define SWAP_FORMAT "%*s %d %*d %d"
13506
echo " using HP-UX format HP-UX"
13509
# Extract the first word of "dig", so it can be a program name with args.
13510
set dummy dig; ac_word=$2
13511
echo "$as_me:$LINENO: checking for $ac_word" >&5
13512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13513
if test "${ac_cv_path_PATH_TO_DIG+set}" = set; then
13514
echo $ECHO_N "(cached) $ECHO_C" >&6
13516
case $PATH_TO_DIG in
13518
ac_cv_path_PATH_TO_DIG="$PATH_TO_DIG" # Let the user override the test with a path.
13521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13522
for as_dir in $PATH
13525
test -z "$as_dir" && as_dir=.
13526
for ac_exec_ext in '' $ac_executable_extensions; do
13527
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13528
ac_cv_path_PATH_TO_DIG="$as_dir/$ac_word$ac_exec_ext"
13529
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13538
PATH_TO_DIG=$ac_cv_path_PATH_TO_DIG
13540
if test -n "$PATH_TO_DIG"; then
13541
echo "$as_me:$LINENO: result: $PATH_TO_DIG" >&5
13542
echo "${ECHO_T}$PATH_TO_DIG" >&6
13544
echo "$as_me:$LINENO: result: no" >&5
13545
echo "${ECHO_T}no" >&6
13549
cat >>confdefs.h <<_ACEOF
13550
#define PATH_TO_DIG "$PATH_TO_DIG"
13553
if test -n "$PATH_TO_DIG"; then
13554
EXTRAS="$EXTRAS check_dig"
13557
if test -f plugins/check_nt.c ; then
13558
EXTRAS="$EXTRAS check_nt"
13559
elif test -f ../plugins/check_nt.c ; then
13560
EXTRAS="$EXTRAS check_nt"
13563
cat >conftest.$ac_ext <<_ACEOF
13564
#line $LINENO "configure"
13567
cat confdefs.h >>conftest.$ac_ext
13568
cat >>conftest.$ac_ext <<_ACEOF
13569
/* end confdefs.h. */
13572
#include <stdlib.h>
13573
#include <stdarg.h>
13575
#include <sys/types.h>
13577
#include <varargs.h>
13587
rm -f conftest.$ac_objext
13588
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13589
(eval $ac_compile) 2>&5
13591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592
(exit $ac_status); } &&
13593
{ ac_try='test -s conftest.$ac_objext'
13594
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13595
(eval $ac_try) 2>&5
13597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598
(exit $ac_status); }; }; then
13599
echo "$as_me:$LINENO: result: yes" >&5
13600
echo "${ECHO_T}yes" >&6
13602
echo "$as_me: failed program was:" >&5
13603
sed 's/^/| /' conftest.$ac_ext >&5
13605
NEED_VA_LIST=-DNEED_VA_LIST echo "$as_me:$LINENO: result: no" >&5
13606
echo "${ECHO_T}no" >&6
13608
rm -f conftest.$ac_objext conftest.$ac_ext
13614
cat >>confdefs.h <<_ACEOF
13615
#define PACKAGE_VERSION "${VERSION}"
13619
ac_config_files="$ac_config_files Makefile subst lib/Makefile plugins/Makefile plugins-scripts/Makefile plugins-scripts/subst plugins-scripts/utils.pm plugins-scripts/utils.sh command.cfg test.pl"
13620
ac_config_commands="$ac_config_commands default"
13621
cat >confcache <<\_ACEOF
13622
# This file is a shell script that caches the results of configure
13623
# tests run on this system so they can be shared between configure
13624
# scripts and configure runs, see configure's option --config-cache.
13625
# It is not useful on other systems. If it contains results you don't
13626
# want to keep, you may remove or edit it.
13628
# config.status only pays attention to the cache file if you give it
13629
# the --recheck option to rerun configure.
13631
# `ac_cv_env_foo' variables (set or unset) will be overridden when
13632
# loading this file, other *unset* `ac_cv_foo' will be assigned the
13633
# following values.
13637
# The following way of writing the cache mishandles newlines in values,
13638
# but we know of no workaround that is simple, portable, and efficient.
13639
# So, don't put newlines in cache variables' values.
13640
# Ultrix sh set writes to stderr and can't be redirected directly,
13641
# and sets the high bit in the cache file unless we assign to the vars.
13644
case `(ac_space=' '; set | grep ac_space) 2>&1` in
13646
# `set' does not quote correctly, so add quotes (double-quote
13647
# substitution turns \\\\ into \\, and sed turns \\ into \).
13650
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13653
# `set' quotes correctly as required by POSIX, so do not add quotes.
13655
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13662
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13664
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13666
if diff $cache_file confcache >/dev/null 2>&1; then :; else
13667
if test -w $cache_file; then
13668
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13669
cat confcache >$cache_file
13671
echo "not updating unwritable cache $cache_file"
13676
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13677
# Let make expand exec_prefix.
13678
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13680
# VPATH may cause trouble with some makes, so we remove $(srcdir),
13681
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13682
# trailing colons and then remove the whole line if VPATH becomes empty
13683
# (actually we leave an empty line to preserve line numbers).
13684
if test "x$srcdir" = x.; then
13685
ac_vpsub='/^[ ]*VPATH[ ]*=/{
13686
s/:*\$(srcdir):*/:/;
13687
s/:*\${srcdir}:*/:/;
13689
s/^\([^=]*=[ ]*\):*/\1/;
13695
DEFS=-DHAVE_CONFIG_H
13699
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13700
# 1. Remove the extension, and $U if already installed.
13701
ac_i=`echo "$ac_i" |
13702
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13704
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13705
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13707
LIBOBJS=$ac_libobjs
13709
LTLIBOBJS=$ac_ltlibobjs
13712
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13713
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13714
Usually this means the macro was only invoked conditionally." >&5
13715
echo "$as_me: error: conditional \"AMDEP\" was never defined.
13716
Usually this means the macro was only invoked conditionally." >&2;}
13717
{ (exit 1); exit 1; }; }
13720
: ${CONFIG_STATUS=./config.status}
13721
ac_clean_files_save=$ac_clean_files
13722
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13723
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13724
echo "$as_me: creating $CONFIG_STATUS" >&6;}
13725
cat >$CONFIG_STATUS <<_ACEOF
13727
# Generated by $as_me.
13728
# Run this file to recreate the current configuration.
13729
# Compiler output produced by configure, useful for debugging
13730
# configure, is in config.log if it exists.
13733
ac_cs_recheck=false
13735
SHELL=\${CONFIG_SHELL-$SHELL}
13738
cat >>$CONFIG_STATUS <<\_ACEOF
13739
## --------------------- ##
13740
## M4sh Initialization. ##
13741
## --------------------- ##
13743
# Be Bourne compatible
13744
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13747
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13748
# is contrary to our usage. Disable this feature.
13749
alias -g '${1+"$@"}'='"$@"'
13750
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13754
# Support unset when possible.
13755
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
13762
# Work around bugs in pre-3.0 UWIN ksh.
13763
$as_unset ENV MAIL MAILPATH
13770
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13771
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13772
LC_TELEPHONE LC_TIME
13774
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
13775
eval $as_var=C; export $as_var
13781
# Required to use basename.
13782
if expr a : '\(a\)' >/dev/null 2>&1; then
13788
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13789
as_basename=basename
13795
# Name of the executable.
13796
as_me=`$as_basename "$0" ||
13797
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13798
X"$0" : 'X\(//\)$' \| \
13799
X"$0" : 'X\(/\)$' \| \
13800
. : '\(.\)' 2>/dev/null ||
13802
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13803
/^X\/\(\/\/\)$/{ s//\1/; q; }
13804
/^X\/\(\/\).*/{ s//\1/; q; }
13808
# PATH needs CR, and LINENO needs CR and PATH.
13809
# Avoid depending upon Character Ranges.
13810
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13811
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13812
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13813
as_cr_digits='0123456789'
13814
as_cr_alnum=$as_cr_Letters$as_cr_digits
13816
# The user is always right.
13817
if test "${PATH_SEPARATOR+set}" != set; then
13818
echo "#! /bin/sh" >conf$$.sh
13819
echo "exit 0" >>conf$$.sh
13821
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13830
as_lineno_1=$LINENO
13831
as_lineno_2=$LINENO
13832
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13833
test "x$as_lineno_1" != "x$as_lineno_2" &&
13834
test "x$as_lineno_3" = "x$as_lineno_2" || {
13835
# Find who we are. Look in the path if we contain no path at all
13838
*[\\/]* ) as_myself=$0 ;;
13839
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13840
for as_dir in $PATH
13843
test -z "$as_dir" && as_dir=.
13844
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13849
# We did not find ourselves, most probably we were run as `sh COMMAND'
13850
# in which case we are not to be found in the path.
13851
if test "x$as_myself" = x; then
13854
if test ! -f "$as_myself"; then
13855
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13856
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13857
{ (exit 1); exit 1; }; }
13859
case $CONFIG_SHELL in
13861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13865
test -z "$as_dir" && as_dir=.
13866
for as_base in sh bash ksh sh5; do
13869
if ("$as_dir/$as_base" -c '
13870
as_lineno_1=$LINENO
13871
as_lineno_2=$LINENO
13872
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13873
test "x$as_lineno_1" != "x$as_lineno_2" &&
13874
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13875
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13876
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13877
CONFIG_SHELL=$as_dir/$as_base
13878
export CONFIG_SHELL
13879
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13887
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13888
# uniformly replaced by the line number. The first 'sed' inserts a
13889
# line-number line before each line; the second 'sed' does the real
13890
# work. The second script uses 'N' to pair each line-number line
13891
# with the numbered line, and appends trailing '-' during
13892
# substitution so that $LINENO is not a special case at line end.
13893
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13894
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13895
sed '=' <$as_myself |
13900
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13903
s,^['$as_cr_digits']*\n,,
13904
' >$as_me.lineno &&
13905
chmod +x $as_me.lineno ||
13906
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13907
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13908
{ (exit 1); exit 1; }; }
13910
# Don't try to exec as it changes $[0], causing all sort of problems
13911
# (the dirname of $[0] is not the place where we might find the
13912
# original and so on. Autoconf is especially sensible to this).
13914
# Exit status is that of the last command.
13919
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13920
*c*,-n*) ECHO_N= ECHO_C='
13922
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13923
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13926
if expr a : '\(a\)' >/dev/null 2>&1; then
13932
rm -f conf$$ conf$$.exe conf$$.file
13934
if ln -s conf$$.file conf$$ 2>/dev/null; then
13935
# We could just check for DJGPP; but this test a) works b) is more generic
13936
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13937
if test -f conf$$.exe; then
13938
# Don't use ln at all; we don't have any links
13943
elif ln conf$$.file conf$$ 2>/dev/null; then
13948
rm -f conf$$ conf$$.exe conf$$.file
13950
if mkdir -p . 2>/dev/null; then
13956
as_executable_p="test -f"
13958
# Sed expression to map a string onto a valid CPP name.
13959
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
13961
# Sed expression to map a string onto a valid variable name.
13962
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
13966
# We need space, tab and new line, in precisely that order.
13976
# Open the log real soon, to keep \$[0] and so on meaningful, and to
13977
# report actual input values of CONFIG_FILES etc. instead of their
13978
# values after options handling. Logging --version etc. is OK.
13982
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13983
## Running $as_me. ##
13988
This file was extended by $as_me, which was
13989
generated by GNU Autoconf 2.57. Invocation command line was
13991
CONFIG_FILES = $CONFIG_FILES
13992
CONFIG_HEADERS = $CONFIG_HEADERS
13993
CONFIG_LINKS = $CONFIG_LINKS
13994
CONFIG_COMMANDS = $CONFIG_COMMANDS
13998
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14002
# Files that config.status was made for.
14003
if test -n "$ac_config_files"; then
14004
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14007
if test -n "$ac_config_headers"; then
14008
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14011
if test -n "$ac_config_links"; then
14012
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14015
if test -n "$ac_config_commands"; then
14016
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14019
cat >>$CONFIG_STATUS <<\_ACEOF
14022
\`$as_me' instantiates files from templates according to the
14023
current configuration.
14025
Usage: $0 [OPTIONS] [FILE]...
14027
-h, --help print this help, then exit
14028
-V, --version print version number, then exit
14029
-q, --quiet do not print progress messages
14030
-d, --debug don't remove temporary files
14031
--recheck update $as_me by reconfiguring in the same conditions
14032
--file=FILE[:TEMPLATE]
14033
instantiate the configuration file FILE
14034
--header=FILE[:TEMPLATE]
14035
instantiate the configuration header FILE
14037
Configuration files:
14040
Configuration headers:
14043
Configuration commands:
14046
Report bugs to <bug-autoconf@gnu.org>."
14049
cat >>$CONFIG_STATUS <<_ACEOF
14052
configured by $0, generated by GNU Autoconf 2.57,
14053
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14055
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14056
Free Software Foundation, Inc.
14057
This config.status script is free software; the Free Software Foundation
14058
gives unlimited permission to copy, distribute and modify it."
14063
cat >>$CONFIG_STATUS <<\_ACEOF
14064
# If no file are specified by the user, then we need to provide default
14065
# value. By we need to know if files were specified by the user.
14071
ac_option=`expr "x$1" : 'x\([^=]*\)='`
14072
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14080
*) # This is not an option, so the user has probably given explicit
14083
ac_need_defaults=false;;
14087
# Handling of the options.
14089
cat >>$CONFIG_STATUS <<\_ACEOF
14090
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14092
--version | --vers* | -V )
14093
echo "$ac_cs_version"; exit 0 ;;
14095
# Conflict between --help and --header
14096
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
14097
Try \`$0 --help' for more information." >&5
14098
echo "$as_me: error: ambiguous option: $1
14099
Try \`$0 --help' for more information." >&2;}
14100
{ (exit 1); exit 1; }; };;
14101
--help | --hel | -h )
14102
echo "$ac_cs_usage"; exit 0 ;;
14103
--debug | --d* | -d )
14105
--file | --fil | --fi | --f )
14107
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14108
ac_need_defaults=false;;
14109
--header | --heade | --head | --hea )
14111
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14112
ac_need_defaults=false;;
14113
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14114
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14117
# This is an error.
14118
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14119
Try \`$0 --help' for more information." >&5
14120
echo "$as_me: error: unrecognized option: $1
14121
Try \`$0 --help' for more information." >&2;}
14122
{ (exit 1); exit 1; }; } ;;
14124
*) ac_config_targets="$ac_config_targets $1" ;;
14130
ac_configure_extra_args=
14132
if $ac_cs_silent; then
14134
ac_configure_extra_args="$ac_configure_extra_args --silent"
14138
cat >>$CONFIG_STATUS <<_ACEOF
14139
if \$ac_cs_recheck; then
14140
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14141
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14146
cat >>$CONFIG_STATUS <<_ACEOF
14148
# INIT-COMMANDS section.
14151
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14157
cat >>$CONFIG_STATUS <<\_ACEOF
14158
for ac_config_target in $ac_config_targets
14160
case "$ac_config_target" in
14161
# Handling of arguments.
14162
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14163
"subst" ) CONFIG_FILES="$CONFIG_FILES subst" ;;
14164
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14165
"plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
14166
"plugins-scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/Makefile" ;;
14167
"plugins-scripts/subst" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/subst" ;;
14168
"plugins-scripts/utils.pm" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/utils.pm" ;;
14169
"plugins-scripts/utils.sh" ) CONFIG_FILES="$CONFIG_FILES plugins-scripts/utils.sh" ;;
14170
"command.cfg" ) CONFIG_FILES="$CONFIG_FILES command.cfg" ;;
14171
"test.pl" ) CONFIG_FILES="$CONFIG_FILES test.pl" ;;
14172
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14173
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14174
"plugins/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/config.h" ;;
14175
"plugins/common.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/common.h" ;;
14176
"plugins/version.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/version.h" ;;
14177
"plugins/netutils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/netutils.h" ;;
14178
"plugins/utils.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/utils.h" ;;
14179
"plugins/popen.h" ) CONFIG_HEADERS="$CONFIG_HEADERS plugins/popen.h" ;;
14180
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14181
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14182
{ (exit 1); exit 1; }; };;
14186
# If the user did not use the arguments to specify the items to instantiate,
14187
# then the envvar interface is used. Set only those that are not.
14188
# We use the long form for the default assignment because of an extremely
14189
# bizarre bug on SunOS 4.1.3.
14190
if $ac_need_defaults; then
14191
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14192
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14193
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14196
# Have a temporary directory for convenience. Make it in the build tree
14197
# simply because there is no reason to put it here, and in addition,
14198
# creating and moving files from /tmp can sometimes cause problems.
14199
# Create a temporary directory, and hook for its removal unless debugging.
14202
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14203
trap '{ (exit 1); exit 1; }' 1 2 13 15
14206
# Create a (secure) tmp directory for tmp files.
14209
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14210
test -n "$tmp" && test -d "$tmp"
14213
tmp=./confstat$$-$RANDOM
14214
(umask 077 && mkdir $tmp)
14217
echo "$me: cannot create a temporary directory in ." >&2
14218
{ (exit 1); exit 1; }
14223
cat >>$CONFIG_STATUS <<_ACEOF
14226
# CONFIG_FILES section.
14229
# No need to generate the scripts if there are no CONFIG_FILES.
14230
# This happens for instance when ./config.status config.h
14231
if test -n "\$CONFIG_FILES"; then
14232
# Protect against being on the right side of a sed subst in config.status.
14233
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14234
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14235
s,@SHELL@,$SHELL,;t t
14236
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14237
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14238
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14239
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14240
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14241
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14242
s,@exec_prefix@,$exec_prefix,;t t
14243
s,@prefix@,$prefix,;t t
14244
s,@program_transform_name@,$program_transform_name,;t t
14245
s,@bindir@,$bindir,;t t
14246
s,@sbindir@,$sbindir,;t t
14247
s,@libexecdir@,$libexecdir,;t t
14248
s,@datadir@,$datadir,;t t
14249
s,@sysconfdir@,$sysconfdir,;t t
14250
s,@sharedstatedir@,$sharedstatedir,;t t
14251
s,@localstatedir@,$localstatedir,;t t
14252
s,@libdir@,$libdir,;t t
14253
s,@includedir@,$includedir,;t t
14254
s,@oldincludedir@,$oldincludedir,;t t
14255
s,@infodir@,$infodir,;t t
14256
s,@mandir@,$mandir,;t t
14257
s,@build_alias@,$build_alias,;t t
14258
s,@host_alias@,$host_alias,;t t
14259
s,@target_alias@,$target_alias,;t t
14260
s,@DEFS@,$DEFS,;t t
14261
s,@ECHO_C@,$ECHO_C,;t t
14262
s,@ECHO_N@,$ECHO_N,;t t
14263
s,@ECHO_T@,$ECHO_T,;t t
14264
s,@LIBS@,$LIBS,;t t
14267
s,@PACKAGE_RELEASE@,$PACKAGE_RELEASE,;t t
14268
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14269
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14270
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14271
s,@PACKAGE@,$PACKAGE,;t t
14272
s,@VERSION@,$VERSION,;t t
14273
s,@ACLOCAL@,$ACLOCAL,;t t
14274
s,@AUTOCONF@,$AUTOCONF,;t t
14275
s,@AUTOMAKE@,$AUTOMAKE,;t t
14276
s,@AUTOHEADER@,$AUTOHEADER,;t t
14277
s,@MAKEINFO@,$MAKEINFO,;t t
14278
s,@AMTAR@,$AMTAR,;t t
14279
s,@install_sh@,$install_sh,;t t
14280
s,@STRIP@,$STRIP,;t t
14281
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14282
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14284
s,@SET_MAKE@,$SET_MAKE,;t t
14285
s,@INSTALL@,$INSTALL,;t t
14287
s,@CFLAGS@,$CFLAGS,;t t
14288
s,@LDFLAGS@,$LDFLAGS,;t t
14289
s,@CPPFLAGS@,$CPPFLAGS,;t t
14290
s,@ac_ct_CC@,$ac_ct_CC,;t t
14291
s,@EXEEXT@,$EXEEXT,;t t
14292
s,@OBJEXT@,$OBJEXT,;t t
14293
s,@DEPDIR@,$DEPDIR,;t t
14294
s,@am__include@,$am__include,;t t
14295
s,@am__quote@,$am__quote,;t t
14296
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14297
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14298
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14299
s,@CCDEPMODE@,$CCDEPMODE,;t t
14300
s,@LIBOBJS@,$LIBOBJS,;t t
14302
s,@EGREP@,$EGREP,;t t
14303
s,@NEED_SETGID@,$NEED_SETGID,;t t
14304
s,@KMEM_GROUP@,$KMEM_GROUP,;t t
14305
s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
14306
s,@POW_LIB@,$POW_LIB,;t t
14307
s,@RANLIB@,$RANLIB,;t t
14308
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14309
s,@PLUGIN_TEST@,$PLUGIN_TEST,;t t
14310
s,@SCRIPT_TEST@,$SCRIPT_TEST,;t t
14311
s,@WARRANTY@,$WARRANTY,;t t
14312
s,@SUPPORT@,$SUPPORT,;t t
14313
s,@nagios_usr@,$nagios_usr,;t t
14314
s,@nagios_grp@,$nagios_grp,;t t
14315
s,@INSTALL_OPTS@,$INSTALL_OPTS,;t t
14316
s,@trusted_path@,$trusted_path,;t t
14317
s,@PYTHON@,$PYTHON,;t t
14318
s,@PERL@,$PERL,;t t
14320
s,@HOSTNAME@,$HOSTNAME,;t t
14321
s,@BASENAME@,$BASENAME,;t t
14322
s,@SOCKETLIBS@,$SOCKETLIBS,;t t
14323
s,@PGLIBS@,$PGLIBS,;t t
14324
s,@PGINCLUDE@,$PGINCLUDE,;t t
14325
s,@RADIUSLIBS@,$RADIUSLIBS,;t t
14326
s,@LDAPLIBS@,$LDAPLIBS,;t t
14327
s,@LDAPINCLUDE@,$LDAPINCLUDE,;t t
14328
s,@MYSQLINCLUDE@,$MYSQLINCLUDE,;t t
14329
s,@MYSQLLIBS@,$MYSQLLIBS,;t t
14330
s,@check_mysql_LDFLAGS@,$check_mysql_LDFLAGS,;t t
14331
s,@OPENSSL@,$OPENSSL,;t t
14332
s,@KRBINCLUDE@,$KRBINCLUDE,;t t
14333
s,@SSLINCLUDE@,$SSLINCLUDE,;t t
14334
s,@check_tcp_ssl@,$check_tcp_ssl,;t t
14335
s,@SSLLIBS@,$SSLLIBS,;t t
14336
s,@PATH_TO_PS@,$PATH_TO_PS,;t t
14337
s,@PATH_TO_DF@,$PATH_TO_DF,;t t
14338
s,@PATH_TO_PING@,$PATH_TO_PING,;t t
14339
s,@PATH_TO_NSLOOKUP@,$PATH_TO_NSLOOKUP,;t t
14340
s,@PATH_TO_HOST@,$PATH_TO_HOST,;t t
14341
s,@PATH_TO_UPTIME@,$PATH_TO_UPTIME,;t t
14342
s,@PATH_TO_RPCINFO@,$PATH_TO_RPCINFO,;t t
14343
s,@PATH_TO_NTPDATE@,$PATH_TO_NTPDATE,;t t
14344
s,@PATH_TO_NTPDC@,$PATH_TO_NTPDC,;t t
14345
s,@PATH_TO_NTPQ@,$PATH_TO_NTPQ,;t t
14346
s,@PATH_TO_LMSTAT@,$PATH_TO_LMSTAT,;t t
14347
s,@PATH_TO_SMBCLIENT@,$PATH_TO_SMBCLIENT,;t t
14348
s,@PATH_TO_WHO@,$PATH_TO_WHO,;t t
14349
s,@PATH_TO_SNMPGET@,$PATH_TO_SNMPGET,;t t
14350
s,@PATH_TO_SNMPGETNEXT@,$PATH_TO_SNMPGETNEXT,;t t
14351
s,@PATH_TO_QUAKESTAT@,$PATH_TO_QUAKESTAT,;t t
14352
s,@PATH_TO_QSTAT@,$PATH_TO_QSTAT,;t t
14353
s,@PATH_TO_FPING@,$PATH_TO_FPING,;t t
14354
s,@PATH_TO_SSH@,$PATH_TO_SSH,;t t
14355
s,@PATH_TO_MAILQ@,$PATH_TO_MAILQ,;t t
14356
s,@PATH_TO_SWAP@,$PATH_TO_SWAP,;t t
14357
s,@PATH_TO_DIG@,$PATH_TO_DIG,;t t
14358
s,@NEED_VA_LIST@,$NEED_VA_LIST,;t t
14359
s,@EXTRAS@,$EXTRAS,;t t
14360
s,@DEPLIBS@,$DEPLIBS,;t t
14361
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14366
cat >>$CONFIG_STATUS <<\_ACEOF
14367
# Split the substitutions into bite-sized pieces for seds with
14368
# small command number limits, like on Digital OSF/1 and HP-UX.
14369
ac_max_sed_lines=48
14370
ac_sed_frag=1 # Number of current file.
14371
ac_beg=1 # First line for current file.
14372
ac_end=$ac_max_sed_lines # Line after last line for current file.
14375
while $ac_more_lines; do
14376
if test $ac_beg -gt 1; then
14377
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14379
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14381
if test ! -s $tmp/subs.frag; then
14382
ac_more_lines=false
14384
# The purpose of the label and of the branching condition is to
14385
# speed up the sed processing (if there are no `@' at all, there
14386
# is no need to browse any of the substitutions).
14387
# These are the two extra sed commands mentioned above.
14389
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14390
if test -z "$ac_sed_cmds"; then
14391
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14393
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14395
ac_sed_frag=`expr $ac_sed_frag + 1`
14397
ac_end=`expr $ac_end + $ac_max_sed_lines`
14400
if test -z "$ac_sed_cmds"; then
14403
fi # test -n "$CONFIG_FILES"
14406
cat >>$CONFIG_STATUS <<\_ACEOF
14407
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14408
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14410
- | *:- | *:-:* ) # input from stdin
14412
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14413
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14414
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14415
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14416
* ) ac_file_in=$ac_file.in ;;
14419
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14420
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14421
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14422
X"$ac_file" : 'X\(//\)[^/]' \| \
14423
X"$ac_file" : 'X\(//\)$' \| \
14424
X"$ac_file" : 'X\(/\)' \| \
14425
. : '\(.\)' 2>/dev/null ||
14427
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14428
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14429
/^X\(\/\/\)$/{ s//\1/; q; }
14430
/^X\(\/\).*/{ s//\1/; q; }
14432
{ if $as_mkdir_p; then
14437
while test ! -d "$as_dir"; do
14438
as_dirs="$as_dir $as_dirs"
14439
as_dir=`(dirname "$as_dir") 2>/dev/null ||
14440
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14441
X"$as_dir" : 'X\(//\)[^/]' \| \
14442
X"$as_dir" : 'X\(//\)$' \| \
14443
X"$as_dir" : 'X\(/\)' \| \
14444
. : '\(.\)' 2>/dev/null ||
14446
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14447
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14448
/^X\(\/\/\)$/{ s//\1/; q; }
14449
/^X\(\/\).*/{ s//\1/; q; }
14452
test ! -n "$as_dirs" || mkdir $as_dirs
14453
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14454
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14455
{ (exit 1); exit 1; }; }; }
14459
if test "$ac_dir" != .; then
14460
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14461
# A "../" for each directory in $ac_dir_suffix.
14462
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14464
ac_dir_suffix= ac_top_builddir=
14468
.) # No --srcdir option. We are building in place.
14470
if test -z "$ac_top_builddir"; then
14473
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14475
[\\/]* | ?:[\\/]* ) # Absolute path.
14476
ac_srcdir=$srcdir$ac_dir_suffix;
14477
ac_top_srcdir=$srcdir ;;
14478
*) # Relative path.
14479
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14480
ac_top_srcdir=$ac_top_builddir$srcdir ;;
14482
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14484
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14485
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14486
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14487
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14491
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14492
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14495
if test x"$ac_file" != x-; then
14496
{ echo "$as_me:$LINENO: creating $ac_file" >&5
14497
echo "$as_me: creating $ac_file" >&6;}
14500
# Let's still pretend it is `configure' which instantiates (i.e., don't
14501
# use $as_me), people would be surprised to read:
14502
# /* config.h. Generated by config.status. */
14503
if test x"$ac_file" = x-; then
14506
configure_input="$ac_file. "
14508
configure_input=$configure_input"Generated from `echo $ac_file_in |
14509
sed 's,.*/,,'` by configure."
14511
# First look for the input files in the build tree, otherwise in the
14513
ac_file_inputs=`IFS=:
14514
for f in $ac_file_in; do
14516
-) echo $tmp/stdin ;;
14518
# Absolute (can't be DOS-style, as IFS=:)
14519
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14520
echo "$as_me: error: cannot find input file: $f" >&2;}
14521
{ (exit 1); exit 1; }; }
14524
if test -f "$f"; then
14527
elif test -f "$srcdir/$f"; then
14532
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14533
echo "$as_me: error: cannot find input file: $f" >&2;}
14534
{ (exit 1); exit 1; }; }
14537
done` || { (exit 1); exit 1; }
14539
cat >>$CONFIG_STATUS <<_ACEOF
14543
cat >>$CONFIG_STATUS <<\_ACEOF
14545
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14546
s,@configure_input@,$configure_input,;t t
14547
s,@srcdir@,$ac_srcdir,;t t
14548
s,@abs_srcdir@,$ac_abs_srcdir,;t t
14549
s,@top_srcdir@,$ac_top_srcdir,;t t
14550
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14551
s,@builddir@,$ac_builddir,;t t
14552
s,@abs_builddir@,$ac_abs_builddir,;t t
14553
s,@top_builddir@,$ac_top_builddir,;t t
14554
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14555
s,@INSTALL@,$ac_INSTALL,;t t
14556
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14558
if test x"$ac_file" != x-; then
14559
mv $tmp/out $ac_file
14567
cat >>$CONFIG_STATUS <<\_ACEOF
14570
# CONFIG_HEADER section.
14573
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14574
# NAME is the cpp macro being defined and VALUE is the value it is being given.
14576
# ac_d sets the value in "#define NAME VALUE" lines.
14577
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14578
ac_dB='[ ].*$,\1#\2'
14581
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14582
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14583
ac_uB='$,\1#\2define\3'
14587
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14588
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14590
- | *:- | *:-:* ) # input from stdin
14592
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14593
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14594
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14595
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14596
* ) ac_file_in=$ac_file.in ;;
14599
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14600
echo "$as_me: creating $ac_file" >&6;}
14602
# First look for the input files in the build tree, otherwise in the
14604
ac_file_inputs=`IFS=:
14605
for f in $ac_file_in; do
14607
-) echo $tmp/stdin ;;
14609
# Absolute (can't be DOS-style, as IFS=:)
14610
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14611
echo "$as_me: error: cannot find input file: $f" >&2;}
14612
{ (exit 1); exit 1; }; }
14615
if test -f "$f"; then
14618
elif test -f "$srcdir/$f"; then
14623
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14624
echo "$as_me: error: cannot find input file: $f" >&2;}
14625
{ (exit 1); exit 1; }; }
14628
done` || { (exit 1); exit 1; }
14629
# Remove the trailing spaces.
14630
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14634
# Transform confdefs.h into two sed scripts, `conftest.defines' and
14635
# `conftest.undefs', that substitutes the proper values into
14636
# config.h.in to produce config.h. The first handles `#define'
14637
# templates, and the second `#undef' templates.
14638
# And first: Protect against being on the right side of a sed subst in
14639
# config.status. Protect against being in an unquoted here document
14640
# in config.status.
14641
rm -f conftest.defines conftest.undefs
14642
# Using a here document instead of a string reduces the quoting nightmare.
14643
# Putting comments in sed scripts is not portable.
14645
# `end' is used to avoid that the second main sed command (meant for
14646
# 0-ary CPP macros) applies to n-ary macro definitions.
14647
# See the Autoconf documentation for `clear'.
14648
cat >confdef2sed.sed <<\_ACEOF
14653
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14655
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14658
# If some macros were called several times there might be several times
14659
# the same #defines, which is useless. Nevertheless, we may not want to
14660
# sort them, since we want the *last* AC-DEFINE to be honored.
14661
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14662
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14663
rm -f confdef2sed.sed
14665
# This sed command replaces #undef with comments. This is necessary, for
14666
# example, in the case of _POSIX_SOURCE, which is predefined and required
14667
# on some systems where configure will not decide to define it.
14668
cat >>conftest.undefs <<\_ACEOF
14669
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14672
# Break up conftest.defines because some shells have a limit on the size
14673
# of here documents, and old seds have small limits too (100 cmds).
14674
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14675
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14676
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14677
echo ' :' >>$CONFIG_STATUS
14678
rm -f conftest.tail
14679
while grep . conftest.defines >/dev/null
14681
# Write a limited-size here document to $tmp/defines.sed.
14682
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14683
# Speed up: don't consider the non `#define' lines.
14684
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14685
# Work around the forget-to-reset-the-flag bug.
14686
echo 't clr' >>$CONFIG_STATUS
14687
echo ': clr' >>$CONFIG_STATUS
14688
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14690
sed -f $tmp/defines.sed $tmp/in >$tmp/out
14692
mv $tmp/out $tmp/in
14694
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14695
rm -f conftest.defines
14696
mv conftest.tail conftest.defines
14698
rm -f conftest.defines
14699
echo ' fi # grep' >>$CONFIG_STATUS
14700
echo >>$CONFIG_STATUS
14702
# Break up conftest.undefs because some shells have a limit on the size
14703
# of here documents, and old seds have small limits too (100 cmds).
14704
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14705
rm -f conftest.tail
14706
while grep . conftest.undefs >/dev/null
14708
# Write a limited-size here document to $tmp/undefs.sed.
14709
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14710
# Speed up: don't consider the non `#undef'
14711
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14712
# Work around the forget-to-reset-the-flag bug.
14713
echo 't clr' >>$CONFIG_STATUS
14714
echo ': clr' >>$CONFIG_STATUS
14715
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14717
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14719
mv $tmp/out $tmp/in
14721
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14722
rm -f conftest.undefs
14723
mv conftest.tail conftest.undefs
14725
rm -f conftest.undefs
14727
cat >>$CONFIG_STATUS <<\_ACEOF
14728
# Let's still pretend it is `configure' which instantiates (i.e., don't
14729
# use $as_me), people would be surprised to read:
14730
# /* config.h. Generated by config.status. */
14731
if test x"$ac_file" = x-; then
14732
echo "/* Generated by configure. */" >$tmp/config.h
14734
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14736
cat $tmp/in >>$tmp/config.h
14738
if test x"$ac_file" != x-; then
14739
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14740
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14741
echo "$as_me: $ac_file is unchanged" >&6;}
14743
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14744
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14745
X"$ac_file" : 'X\(//\)[^/]' \| \
14746
X"$ac_file" : 'X\(//\)$' \| \
14747
X"$ac_file" : 'X\(/\)' \| \
14748
. : '\(.\)' 2>/dev/null ||
14750
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14751
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14752
/^X\(\/\/\)$/{ s//\1/; q; }
14753
/^X\(\/\).*/{ s//\1/; q; }
14755
{ if $as_mkdir_p; then
14760
while test ! -d "$as_dir"; do
14761
as_dirs="$as_dir $as_dirs"
14762
as_dir=`(dirname "$as_dir") 2>/dev/null ||
14763
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14764
X"$as_dir" : 'X\(//\)[^/]' \| \
14765
X"$as_dir" : 'X\(//\)$' \| \
14766
X"$as_dir" : 'X\(/\)' \| \
14767
. : '\(.\)' 2>/dev/null ||
14769
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14770
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14771
/^X\(\/\/\)$/{ s//\1/; q; }
14772
/^X\(\/\).*/{ s//\1/; q; }
14775
test ! -n "$as_dirs" || mkdir $as_dirs
14776
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14777
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14778
{ (exit 1); exit 1; }; }; }
14781
mv $tmp/config.h $ac_file
14785
rm -f $tmp/config.h
14787
# Run the commands associated with the file.
14789
plugins/config.h ) # update the timestamp
14790
echo 'timestamp for plugins/config.h' >"plugins/stamp-h1"
14792
plugins/common.h ) # update the timestamp
14793
echo 'timestamp for plugins/common.h' >"plugins/stamp-h2"
14795
plugins/version.h ) # update the timestamp
14796
echo 'timestamp for plugins/version.h' >"plugins/stamp-h3"
14798
plugins/netutils.h ) # update the timestamp
14799
echo 'timestamp for plugins/netutils.h' >"plugins/stamp-h4"
14801
plugins/utils.h ) # update the timestamp
14802
echo 'timestamp for plugins/utils.h' >"plugins/stamp-h5"
14804
plugins/popen.h ) # update the timestamp
14805
echo 'timestamp for plugins/popen.h' >"plugins/stamp-h6"
14810
cat >>$CONFIG_STATUS <<\_ACEOF
14813
# CONFIG_COMMANDS section.
14815
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14816
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14817
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14818
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14819
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14820
X"$ac_dest" : 'X\(//\)[^/]' \| \
14821
X"$ac_dest" : 'X\(//\)$' \| \
14822
X"$ac_dest" : 'X\(/\)' \| \
14823
. : '\(.\)' 2>/dev/null ||
14825
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14826
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14827
/^X\(\/\/\)$/{ s//\1/; q; }
14828
/^X\(\/\).*/{ s//\1/; q; }
14832
if test "$ac_dir" != .; then
14833
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14834
# A "../" for each directory in $ac_dir_suffix.
14835
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14837
ac_dir_suffix= ac_top_builddir=
14841
.) # No --srcdir option. We are building in place.
14843
if test -z "$ac_top_builddir"; then
14846
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14848
[\\/]* | ?:[\\/]* ) # Absolute path.
14849
ac_srcdir=$srcdir$ac_dir_suffix;
14850
ac_top_srcdir=$srcdir ;;
14851
*) # Relative path.
14852
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14853
ac_top_srcdir=$ac_top_builddir$srcdir ;;
14855
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
14857
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
14858
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
14859
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
14860
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
14863
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14864
echo "$as_me: executing $ac_dest commands" >&6;}
14866
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14867
# Strip MF so we end up with the name of the file.
14868
mf=`echo "$mf" | sed -e 's/:.*$//'`
14869
# Check whether this is an Automake generated Makefile or not.
14870
# We used to match only the files named `Makefile.in', but
14871
# some people rename them; so instead we look at the file content.
14872
# Grep'ing the first line is not enough: some people post-process
14873
# each Makefile.in and add a new line on top of each file to say so.
14874
# So let's grep whole file.
14875
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14876
dirpart=`(dirname "$mf") 2>/dev/null ||
14877
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14878
X"$mf" : 'X\(//\)[^/]' \| \
14879
X"$mf" : 'X\(//\)$' \| \
14880
X"$mf" : 'X\(/\)' \| \
14881
. : '\(.\)' 2>/dev/null ||
14883
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14884
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14885
/^X\(\/\/\)$/{ s//\1/; q; }
14886
/^X\(\/\).*/{ s//\1/; q; }
14891
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14892
# Extract the definition of DEP_FILES from the Makefile without
14894
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14895
test -z "$DEPDIR" && continue
14896
# When using ansi2knr, U may be empty or an underscore; expand it
14897
U=`sed -n -e '/^U = / s///p' < "$mf"`
14898
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14899
# We invoke sed twice because it is the simplest approach to
14900
# changing $(DEPDIR) to its actual value in the expansion.
14901
for file in `sed -n -e '
14902
/^DEP_FILES = .*\\\\$/ {
14911
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14912
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14913
# Make sure the directory exists.
14914
test -f "$dirpart/$file" && continue
14915
fdir=`(dirname "$file") 2>/dev/null ||
14916
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14917
X"$file" : 'X\(//\)[^/]' \| \
14918
X"$file" : 'X\(//\)$' \| \
14919
X"$file" : 'X\(/\)' \| \
14920
. : '\(.\)' 2>/dev/null ||
14922
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14923
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14924
/^X\(\/\/\)$/{ s//\1/; q; }
14925
/^X\(\/\).*/{ s//\1/; q; }
14927
{ if $as_mkdir_p; then
14928
mkdir -p $dirpart/$fdir
14930
as_dir=$dirpart/$fdir
14932
while test ! -d "$as_dir"; do
14933
as_dirs="$as_dir $as_dirs"
14934
as_dir=`(dirname "$as_dir") 2>/dev/null ||
14935
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14936
X"$as_dir" : 'X\(//\)[^/]' \| \
14937
X"$as_dir" : 'X\(//\)$' \| \
14938
X"$as_dir" : 'X\(/\)' \| \
14939
. : '\(.\)' 2>/dev/null ||
14941
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14942
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
14943
/^X\(\/\/\)$/{ s//\1/; q; }
14944
/^X\(\/\).*/{ s//\1/; q; }
14947
test ! -n "$as_dirs" || mkdir $as_dirs
14948
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14949
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14950
{ (exit 1); exit 1; }; }; }
14952
# echo "creating $dirpart/$file"
14953
echo '# dummy' > "$dirpart/$file"
14957
default ) echo timestamp > plugins/stamp-h1;echo timestamp > plugins/stamp-h2;echo timestamp > plugins/stamp-h3;echo timestamp > plugins/stamp-h4;echo timestamp > plugins/stamp-h5;echo timestamp > plugins/stamp-h6;PATH=.:..:$PATH subst.sh command.cfg ;;
14962
cat >>$CONFIG_STATUS <<\_ACEOF
14964
{ (exit 0); exit 0; }
14966
chmod +x $CONFIG_STATUS
14967
ac_clean_files=$ac_clean_files_save
14970
# configure is writing to config.log, and then calls config.status.
14971
# config.status does its own redirection, appending to config.log.
14972
# Unfortunately, on DOS this fails, as config.log is still kept open
14973
# by configure, so config.status won't be able to write to it; its
14974
# output is simply discarded. So we exec the FD to /dev/null,
14975
# effectively closing config.log, so it can be properly (re)opened and
14976
# appended to by config.status. When coming back to configure, we
14977
# need to make the FD available again.
14978
if test "$no_create" != yes; then
14980
ac_config_status_args=
14981
test "$silent" = yes &&
14982
ac_config_status_args="$ac_config_status_args --quiet"
14984
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14986
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14987
# would make configure fail if this is the last instruction.
14988
$ac_cs_success || { (exit 1); exit 1; }