2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57 for quagga 0.96.5.
5
# Report bugs to <http://bugzilla.quagga.net>.
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
# is contrary to our usage. Disable this feature.
21
alias -g '${1+"$@"}'='"$@"'
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26
# Support unset when possible.
27
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
226
as_executable_p="test -f"
228
# Sed expression to map a string onto a valid CPP name.
229
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
231
# Sed expression to map a string onto a valid variable name.
232
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
236
# We need space, tab and new line, in precisely that order.
246
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247
# so uname gets run too.
248
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255
ac_default_prefix=/usr/local
256
ac_config_libobj_dir=.
261
SHELL=${CONFIG_SHELL-/bin/sh}
263
# Maximum number of lines to put in a shell here document.
264
# This variable seems obsolete. It should probably be removed, and
265
# only ac_max_sed_lines should be used.
266
: ${ac_max_here_lines=38}
268
# Identity of this package.
269
PACKAGE_NAME='quagga'
270
PACKAGE_TARNAME='quagga'
271
PACKAGE_VERSION='0.96.5'
272
PACKAGE_STRING='quagga 0.96.5'
273
PACKAGE_BUGREPORT='http://bugzilla.quagga.net'
275
ac_unique_file="lib/zebra.h"
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot exampledir build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP AR ac_ct_AR RANLIB ac_ct_RANLIB EGREP MULTIPATH_NUM LIBPAM RT_METHOD KERNEL_METHOD OTHER_METHOD RTREAD_METHOD IF_METHOD IF_PROC IPFORWARD LIB_IPV6 ZEBRA BGPD RIPD RIPNGD OSPFD OSPF6D ISISD VTYSH INCLUDES CURSES OSPFCLIENT OSPFAPI LIB_REGEX LIBCAP CONFDATE LIBOBJS 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 quagga 0.96.5 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
841
--build=BUILD configure for building on BUILD [guessed]
842
--host=HOST cross-compile to build programs to run on HOST [BUILD]
846
if test -n "$ac_init_help"; then
847
case $ac_init_help in
848
short | recursive ) echo "Configuration of quagga 0.96.5:";;
853
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855
--enable-exampledir specify alternate directory for examples
856
--disable-dependency-tracking Speeds up one-time builds
857
--enable-dependency-tracking Do not reject slow dependency extractors
858
--enable-vtysh, Make integrated vty shell for Quagga
859
--disable-ipv6 turn off IPv6 related features and daemons
860
--disable-zebra do not build zebra daemon
861
--disable-bgpd do not build bgpd
862
--disable-ripd do not build ripd
863
--disable-ripngd do not build ripngd
864
--disable-ospfd do not build ospfd
865
--disable-ospf6d do not build ospf6d
866
--disable-isisd do not build isisd
867
--disable-bgp-announce, turn off BGP route announcement
868
--enable-netlink force to use Linux netlink interface
869
--enable-broken-aliases enable aliases as distinct interfaces for Linux 2.2.X
870
--enable-snmp enable SNMP support
871
--enable-tcp-zebra enable TCP/IP socket connection between zebra and protocol daemon
872
--enable-nssa enable OSPF NSSA option
873
--enable-opaque-lsa enable OSPF Opaque-LSA with OSPFAPI support (RFC2370)
874
--disable-ospfapi do not build OSPFAPI to access the OSPF LSA Database,
875
(this is the default if --enable-opaque-lsa is not set)
876
--disable-ospfclient do not build OSPFAPI client for OSPFAPI,
877
(this is the default if --disable-ospfapi is set)
878
--enable-ospf-te enable Traffic Engineering Extension to OSPF
879
--enable-multipath=ARG enable multipath function, ARG must be digit
880
--enable-user=ARG user to run Quagga suite as (default quagga)
881
--enable-group=ARG group to run Quagga suite as (default quagga)
882
--enable-vty-group=ARG set vty sockets to have specified group as owner
883
--enable-configfile-mask=ARG set mask for config files
884
--enable-logfile-mask=ARG set mask for log files
885
--disable-rtadv disable IPV6 router advertisement feature
886
--disable-capabilities disable using POSIX capabilities
889
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
890
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
891
--with-cflags Set CFLAGS for use in compilation.
892
--with-libpam use libpam for PAM support in vtysh
894
Some influential environment variables:
895
CC C compiler command
896
CFLAGS C compiler flags
897
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898
nonstandard directory <lib dir>
899
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900
headers in a nonstandard directory <include dir>
903
Use these variables to override the choices made by `configure' or to help
904
it to find libraries and programs with nonstandard names/locations.
906
Report bugs to <http://bugzilla.quagga.net>.
910
if test "$ac_init_help" = "recursive"; then
911
# If there are subdirs, report their specific --help.
913
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914
test -d $ac_dir || continue
917
if test "$ac_dir" != .; then
918
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919
# A "../" for each directory in $ac_dir_suffix.
920
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922
ac_dir_suffix= ac_top_builddir=
926
.) # No --srcdir option. We are building in place.
928
if test -z "$ac_top_builddir"; then
931
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933
[\\/]* | ?:[\\/]* ) # Absolute path.
934
ac_srcdir=$srcdir$ac_dir_suffix;
935
ac_top_srcdir=$srcdir ;;
937
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938
ac_top_srcdir=$ac_top_builddir$srcdir ;;
940
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948
# Check for guested configure; otherwise get Cygnus style configure.
949
if test -f $ac_srcdir/configure.gnu; then
951
$SHELL $ac_srcdir/configure.gnu --help=recursive
952
elif test -f $ac_srcdir/configure; then
954
$SHELL $ac_srcdir/configure --help=recursive
955
elif test -f $ac_srcdir/configure.ac ||
956
test -f $ac_srcdir/configure.in; then
960
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966
test -n "$ac_init_help" && exit 0
967
if $ac_init_version; then
969
quagga configure 0.96.5
970
generated by GNU Autoconf 2.57
972
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
973
Free Software Foundation, Inc.
974
This configure script is free software; the Free Software Foundation
975
gives unlimited permission to copy, distribute and modify it.
981
This file contains any messages produced by compilers while
982
running configure, to aid debugging if configure makes a mistake.
984
It was created by quagga $as_me 0.96.5, which was
985
generated by GNU Autoconf 2.57. Invocation command line was
996
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
997
uname -m = `(uname -m) 2>/dev/null || echo unknown`
998
uname -r = `(uname -r) 2>/dev/null || echo unknown`
999
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1000
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1002
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1003
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1005
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1006
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1007
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1008
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1009
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1010
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1011
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1019
test -z "$as_dir" && as_dir=.
1020
echo "PATH: $as_dir"
1035
# Keep a trace of the command line.
1036
# Strip out --no-create and --no-recursion so they do not pile up.
1037
# Strip out --silent because we don't want to record it for future runs.
1038
# Also quote any args containing shell meta-characters.
1039
# Make two passes to allow for proper duplicate-argument suppression.
1044
ac_must_keep_next=false
1050
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1051
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1052
| -silent | --silent | --silen | --sile | --sil)
1054
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1055
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1058
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1060
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1061
if test $ac_must_keep_next = true; then
1062
ac_must_keep_next=false # Got value, back to normal.
1065
*=* | --config-cache | -C | -disable-* | --disable-* \
1066
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1067
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1068
| -with-* | --with-* | -without-* | --without-* | --x)
1069
case "$ac_configure_args0 " in
1070
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1073
-* ) ac_must_keep_next=true ;;
1076
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1077
# Get rid of the leading space.
1083
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1084
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1086
# When interrupted or exit'd, cleanup temporary files, and complete
1087
# config.log. We remove comments because anyway the quotes in there
1088
# would cause problems or look ugly.
1089
# WARNING: Be sure not to use single quotes in there, as some shells,
1090
# such as our DU 5.0 friend, will then `close' the trap.
1091
trap 'exit_status=$?
1092
# Save into config.log some information that might help in debugging.
1097
## ---------------- ##
1098
## Cache variables. ##
1099
## ---------------- ##
1102
# The following way of writing the cache mishandles newlines in values,
1105
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1108
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1109
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1113
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1120
## ----------------- ##
1121
## Output variables. ##
1122
## ----------------- ##
1125
for ac_var in $ac_subst_vars
1127
eval ac_val=$`echo $ac_var`
1128
echo "$ac_var='"'"'$ac_val'"'"'"
1132
if test -n "$ac_subst_files"; then
1139
for ac_var in $ac_subst_files
1141
eval ac_val=$`echo $ac_var`
1142
echo "$ac_var='"'"'$ac_val'"'"'"
1147
if test -s confdefs.h; then
1154
sed "/^$/d" confdefs.h | sort
1157
test "$ac_signal" != 0 &&
1158
echo "$as_me: caught signal $ac_signal"
1159
echo "$as_me: exit $exit_status"
1161
rm -f core core.* *.core &&
1162
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1165
for ac_signal in 1 2 13 15; do
1166
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1170
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1171
rm -rf conftest* confdefs.h
1172
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1175
# Predefined preprocessor variables.
1177
cat >>confdefs.h <<_ACEOF
1178
#define PACKAGE_NAME "$PACKAGE_NAME"
1182
cat >>confdefs.h <<_ACEOF
1183
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1187
cat >>confdefs.h <<_ACEOF
1188
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1192
cat >>confdefs.h <<_ACEOF
1193
#define PACKAGE_STRING "$PACKAGE_STRING"
1197
cat >>confdefs.h <<_ACEOF
1198
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1202
# Let the site file select an alternate cache file if it wants to.
1203
# Prefer explicitly selected file to automatically selected ones.
1204
if test -z "$CONFIG_SITE"; then
1205
if test "x$prefix" != xNONE; then
1206
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1208
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1211
for ac_site_file in $CONFIG_SITE; do
1212
if test -r "$ac_site_file"; then
1213
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1214
echo "$as_me: loading site script $ac_site_file" >&6;}
1215
sed 's/^/| /' "$ac_site_file" >&5
1220
if test -r "$cache_file"; then
1221
# Some versions of bash will fail to source /dev/null (special
1222
# files actually), so we avoid doing that.
1223
if test -f "$cache_file"; then
1224
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1225
echo "$as_me: loading cache $cache_file" >&6;}
1227
[\\/]* | ?:[\\/]* ) . $cache_file;;
1228
*) . ./$cache_file;;
1232
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1233
echo "$as_me: creating cache $cache_file" >&6;}
1237
# Check that the precious variables saved in the cache have kept the same
1239
ac_cache_corrupted=false
1240
for ac_var in `(set) 2>&1 |
1241
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1242
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1243
eval ac_new_set=\$ac_env_${ac_var}_set
1244
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1245
eval ac_new_val="\$ac_env_${ac_var}_value"
1246
case $ac_old_set,$ac_new_set in
1248
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1249
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1250
ac_cache_corrupted=: ;;
1252
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1253
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1254
ac_cache_corrupted=: ;;
1257
if test "x$ac_old_val" != "x$ac_new_val"; then
1258
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1259
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1260
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1261
echo "$as_me: former value: $ac_old_val" >&2;}
1262
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1263
echo "$as_me: current value: $ac_new_val" >&2;}
1264
ac_cache_corrupted=:
1267
# Pass precious variables to config.status.
1268
if test "$ac_new_set" = set; then
1270
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1271
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1272
*) ac_arg=$ac_var=$ac_new_val ;;
1274
case " $ac_configure_args " in
1275
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1276
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1280
if $ac_cache_corrupted; then
1281
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1282
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1283
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1284
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1285
{ (exit 1); exit 1; }; }
1289
ac_cpp='$CPP $CPPFLAGS'
1290
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1291
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1292
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321
am__api_version="1.7"
1323
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1324
if test -f $ac_dir/install-sh; then
1326
ac_install_sh="$ac_aux_dir/install-sh -c"
1328
elif test -f $ac_dir/install.sh; then
1330
ac_install_sh="$ac_aux_dir/install.sh -c"
1332
elif test -f $ac_dir/shtool; then
1334
ac_install_sh="$ac_aux_dir/shtool install -c"
1338
if test -z "$ac_aux_dir"; then
1339
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1340
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1341
{ (exit 1); exit 1; }; }
1343
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1344
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1345
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1347
# Find a good install program. We prefer a C program (faster),
1348
# so one script is as good as another. But avoid the broken or
1349
# incompatible versions:
1350
# SysV /etc/install, /usr/sbin/install
1351
# SunOS /usr/etc/install
1352
# IRIX /sbin/install
1354
# AmigaOS /C/install, which installs bootblocks on floppy discs
1355
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1356
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1357
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1358
# ./install, which can be erroneously created by make from ./install.sh.
1359
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1360
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1361
if test -z "$INSTALL"; then
1362
if test "${ac_cv_path_install+set}" = set; then
1363
echo $ECHO_N "(cached) $ECHO_C" >&6
1365
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369
test -z "$as_dir" && as_dir=.
1370
# Account for people who put trailing slashes in PATH elements.
1372
./ | .// | /cC/* | \
1373
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1376
# OSF1 and SCO ODT 3.0 have their own names for install.
1377
# Don't use installbsd from OSF since it installs stuff as root
1379
for ac_prog in ginstall scoinst install; do
1380
for ac_exec_ext in '' $ac_executable_extensions; do
1381
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1382
if test $ac_prog = install &&
1383
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384
# AIX install. It has an incompatible calling convention.
1386
elif test $ac_prog = install &&
1387
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1388
# program-specific install script used by HP pwplus--don't use.
1391
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1403
if test "${ac_cv_path_install+set}" = set; then
1404
INSTALL=$ac_cv_path_install
1406
# As a last resort, use the slow shell script. We don't cache a
1407
# path for INSTALL within a source directory, because that will
1408
# break other packages using the cache if that directory is
1409
# removed, or if the path is relative.
1410
INSTALL=$ac_install_sh
1413
echo "$as_me:$LINENO: result: $INSTALL" >&5
1414
echo "${ECHO_T}$INSTALL" >&6
1416
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1417
# It thinks the first close brace ends the variable substitution.
1418
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1420
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1422
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1424
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1425
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1428
echo timestamp > conftest.file
1429
# Do `set' in a subshell so we don't clobber the current shell's
1430
# arguments. Must try -L first in case configure is actually a
1431
# symlink; some systems play weird games with the mod time of symlinks
1432
# (eg FreeBSD returns the mod time of the symlink's containing
1435
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1436
if test "$*" = "X"; then
1438
set X `ls -t $srcdir/configure conftest.file`
1441
if test "$*" != "X $srcdir/configure conftest.file" \
1442
&& test "$*" != "X conftest.file $srcdir/configure"; then
1444
# If neither matched, then we have a broken ls. This can happen
1445
# if, for instance, CONFIG_SHELL is bash and it inherits a
1446
# broken ls alias from the environment. This has actually
1447
# happened. Such a system could not be considered "sane".
1448
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1449
alias in your environment" >&5
1450
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1451
alias in your environment" >&2;}
1452
{ (exit 1); exit 1; }; }
1455
test "$2" = conftest.file
1461
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1462
Check your system clock" >&5
1463
echo "$as_me: error: newly created file is older than distributed files!
1464
Check your system clock" >&2;}
1465
{ (exit 1); exit 1; }; }
1467
echo "$as_me:$LINENO: result: yes" >&5
1468
echo "${ECHO_T}yes" >&6
1469
test "$program_prefix" != NONE &&
1470
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1471
# Use a double $ so make ignores it.
1472
test "$program_suffix" != NONE &&
1473
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1474
# Double any \ or $. echo might interpret backslashes.
1475
# By default was `s,x,x', remove it if useless.
1476
cat <<\_ACEOF >conftest.sed
1477
s/[\\$]/&&/g;s/;s,x,x,$//
1479
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1483
# expand $ac_aux_dir to an absolute path
1484
am_aux_dir=`cd $ac_aux_dir && pwd`
1486
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1487
# Use eval to expand $SHELL
1488
if eval "$MISSING --run true"; then
1489
am_missing_run="$MISSING --run "
1492
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1493
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1496
for ac_prog in gawk mawk nawk awk
1498
# Extract the first word of "$ac_prog", so it can be a program name with args.
1499
set dummy $ac_prog; ac_word=$2
1500
echo "$as_me:$LINENO: checking for $ac_word" >&5
1501
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1502
if test "${ac_cv_prog_AWK+set}" = set; then
1503
echo $ECHO_N "(cached) $ECHO_C" >&6
1505
if test -n "$AWK"; then
1506
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1508
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512
test -z "$as_dir" && as_dir=.
1513
for ac_exec_ext in '' $ac_executable_extensions; do
1514
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1515
ac_cv_prog_AWK="$ac_prog"
1516
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525
if test -n "$AWK"; then
1526
echo "$as_me:$LINENO: result: $AWK" >&5
1527
echo "${ECHO_T}$AWK" >&6
1529
echo "$as_me:$LINENO: result: no" >&5
1530
echo "${ECHO_T}no" >&6
1533
test -n "$AWK" && break
1536
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1537
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1538
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1539
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1540
echo $ECHO_N "(cached) $ECHO_C" >&6
1542
cat >conftest.make <<\_ACEOF
1544
@echo 'ac_maketemp="$(MAKE)"'
1546
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1547
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1548
if test -n "$ac_maketemp"; then
1549
eval ac_cv_prog_make_${ac_make}_set=yes
1551
eval ac_cv_prog_make_${ac_make}_set=no
1555
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1556
echo "$as_me:$LINENO: result: yes" >&5
1557
echo "${ECHO_T}yes" >&6
1560
echo "$as_me:$LINENO: result: no" >&5
1561
echo "${ECHO_T}no" >&6
1562
SET_MAKE="MAKE=${MAKE-make}"
1565
rm -rf .tst 2>/dev/null
1566
mkdir .tst 2>/dev/null
1567
if test -d .tst; then
1572
rmdir .tst 2>/dev/null
1574
# test to see if srcdir already configured
1575
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1576
test -f $srcdir/config.status; then
1577
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1578
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1579
{ (exit 1); exit 1; }; }
1582
# test whether we have cygpath
1583
if test -z "$CYGPATH_W"; then
1584
if (cygpath --version) >/dev/null 2>/dev/null; then
1585
CYGPATH_W='cygpath -w'
1592
# Define the identity of the package.
1597
cat >>confdefs.h <<_ACEOF
1598
#define PACKAGE "$PACKAGE"
1602
cat >>confdefs.h <<_ACEOF
1603
#define VERSION "$VERSION"
1606
# Some tools Automake needs.
1608
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1611
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1614
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1617
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1620
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1623
AMTAR=${AMTAR-"${am_missing_run}tar"}
1625
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1627
# Installed binaries are usually stripped using `strip' when the user
1628
# run `make install-strip'. However `strip' might not be the right
1629
# tool to use in cross-compilation environments, therefore Automake
1630
# will honor the `STRIP' environment variable to overrule this program.
1631
if test "$cross_compiling" != no; then
1632
if test -n "$ac_tool_prefix"; then
1633
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1634
set dummy ${ac_tool_prefix}strip; ac_word=$2
1635
echo "$as_me:$LINENO: checking for $ac_word" >&5
1636
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1637
if test "${ac_cv_prog_STRIP+set}" = set; then
1638
echo $ECHO_N "(cached) $ECHO_C" >&6
1640
if test -n "$STRIP"; then
1641
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647
test -z "$as_dir" && as_dir=.
1648
for ac_exec_ext in '' $ac_executable_extensions; do
1649
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1650
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1651
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1659
STRIP=$ac_cv_prog_STRIP
1660
if test -n "$STRIP"; then
1661
echo "$as_me:$LINENO: result: $STRIP" >&5
1662
echo "${ECHO_T}$STRIP" >&6
1664
echo "$as_me:$LINENO: result: no" >&5
1665
echo "${ECHO_T}no" >&6
1669
if test -z "$ac_cv_prog_STRIP"; then
1671
# Extract the first word of "strip", so it can be a program name with args.
1672
set dummy strip; ac_word=$2
1673
echo "$as_me:$LINENO: checking for $ac_word" >&5
1674
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1675
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1676
echo $ECHO_N "(cached) $ECHO_C" >&6
1678
if test -n "$ac_ct_STRIP"; then
1679
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1681
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1685
test -z "$as_dir" && as_dir=.
1686
for ac_exec_ext in '' $ac_executable_extensions; do
1687
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1688
ac_cv_prog_ac_ct_STRIP="strip"
1689
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1698
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1699
if test -n "$ac_ct_STRIP"; then
1700
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1701
echo "${ECHO_T}$ac_ct_STRIP" >&6
1703
echo "$as_me:$LINENO: result: no" >&5
1704
echo "${ECHO_T}no" >&6
1709
STRIP="$ac_cv_prog_STRIP"
1713
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1715
# We need awk for the "check" target. The system "awk" is bad on
1720
ac_config_headers="$ac_config_headers config.h"
1723
exampledir=${sysconfdir}
1724
# Check whether --enable-exampledir or --disable-exampledir was given.
1725
if test "${enable_exampledir+set}" = set; then
1726
enableval="$enable_exampledir"
1727
exampledir="$enableval"
1731
# Make sure we can run config.sub.
1732
$ac_config_sub sun4 >/dev/null 2>&1 ||
1733
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1734
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1735
{ (exit 1); exit 1; }; }
1737
echo "$as_me:$LINENO: checking build system type" >&5
1738
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1739
if test "${ac_cv_build+set}" = set; then
1740
echo $ECHO_N "(cached) $ECHO_C" >&6
1742
ac_cv_build_alias=$build_alias
1743
test -z "$ac_cv_build_alias" &&
1744
ac_cv_build_alias=`$ac_config_guess`
1745
test -z "$ac_cv_build_alias" &&
1746
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1747
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1748
{ (exit 1); exit 1; }; }
1749
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1750
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1751
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1752
{ (exit 1); exit 1; }; }
1755
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1756
echo "${ECHO_T}$ac_cv_build" >&6
1758
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1759
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1760
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1763
echo "$as_me:$LINENO: checking host system type" >&5
1764
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1765
if test "${ac_cv_host+set}" = set; then
1766
echo $ECHO_N "(cached) $ECHO_C" >&6
1768
ac_cv_host_alias=$host_alias
1769
test -z "$ac_cv_host_alias" &&
1770
ac_cv_host_alias=$ac_cv_build_alias
1771
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1772
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1773
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1774
{ (exit 1); exit 1; }; }
1777
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1778
echo "${ECHO_T}$ac_cv_host" >&6
1780
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1781
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1782
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1787
# Check whether --with-cflags or --without-cflags was given.
1788
if test "${with_cflags+set}" = set; then
1789
withval="$with_cflags"
1792
if test "x$with_cflags" != "x" ; then
1793
CFLAGS="$with_cflags" ; cflags_specified=yes ;
1794
elif test -n "$CFLAGS" ; then
1795
cflags_specified=yes ;
1799
ac_cpp='$CPP $CPPFLAGS'
1800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1803
if test -n "$ac_tool_prefix"; then
1804
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1805
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1806
echo "$as_me:$LINENO: checking for $ac_word" >&5
1807
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808
if test "${ac_cv_prog_CC+set}" = set; then
1809
echo $ECHO_N "(cached) $ECHO_C" >&6
1811
if test -n "$CC"; then
1812
ac_cv_prog_CC="$CC" # Let the user override the test.
1814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818
test -z "$as_dir" && as_dir=.
1819
for ac_exec_ext in '' $ac_executable_extensions; do
1820
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1822
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1831
if test -n "$CC"; then
1832
echo "$as_me:$LINENO: result: $CC" >&5
1833
echo "${ECHO_T}$CC" >&6
1835
echo "$as_me:$LINENO: result: no" >&5
1836
echo "${ECHO_T}no" >&6
1840
if test -z "$ac_cv_prog_CC"; then
1842
# Extract the first word of "gcc", so it can be a program name with args.
1843
set dummy gcc; ac_word=$2
1844
echo "$as_me:$LINENO: checking for $ac_word" >&5
1845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1847
echo $ECHO_N "(cached) $ECHO_C" >&6
1849
if test -n "$ac_ct_CC"; then
1850
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1852
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856
test -z "$as_dir" && as_dir=.
1857
for ac_exec_ext in '' $ac_executable_extensions; do
1858
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859
ac_cv_prog_ac_ct_CC="gcc"
1860
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1868
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869
if test -n "$ac_ct_CC"; then
1870
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1871
echo "${ECHO_T}$ac_ct_CC" >&6
1873
echo "$as_me:$LINENO: result: no" >&5
1874
echo "${ECHO_T}no" >&6
1882
if test -z "$CC"; then
1883
if test -n "$ac_tool_prefix"; then
1884
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1885
set dummy ${ac_tool_prefix}cc; ac_word=$2
1886
echo "$as_me:$LINENO: checking for $ac_word" >&5
1887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1888
if test "${ac_cv_prog_CC+set}" = set; then
1889
echo $ECHO_N "(cached) $ECHO_C" >&6
1891
if test -n "$CC"; then
1892
ac_cv_prog_CC="$CC" # Let the user override the test.
1894
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898
test -z "$as_dir" && as_dir=.
1899
for ac_exec_ext in '' $ac_executable_extensions; do
1900
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1901
ac_cv_prog_CC="${ac_tool_prefix}cc"
1902
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911
if test -n "$CC"; then
1912
echo "$as_me:$LINENO: result: $CC" >&5
1913
echo "${ECHO_T}$CC" >&6
1915
echo "$as_me:$LINENO: result: no" >&5
1916
echo "${ECHO_T}no" >&6
1920
if test -z "$ac_cv_prog_CC"; then
1922
# Extract the first word of "cc", so it can be a program name with args.
1923
set dummy cc; ac_word=$2
1924
echo "$as_me:$LINENO: checking for $ac_word" >&5
1925
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1927
echo $ECHO_N "(cached) $ECHO_C" >&6
1929
if test -n "$ac_ct_CC"; then
1930
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936
test -z "$as_dir" && as_dir=.
1937
for ac_exec_ext in '' $ac_executable_extensions; do
1938
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939
ac_cv_prog_ac_ct_CC="cc"
1940
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1949
if test -n "$ac_ct_CC"; then
1950
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1951
echo "${ECHO_T}$ac_ct_CC" >&6
1953
echo "$as_me:$LINENO: result: no" >&5
1954
echo "${ECHO_T}no" >&6
1963
if test -z "$CC"; then
1964
# Extract the first word of "cc", so it can be a program name with args.
1965
set dummy cc; ac_word=$2
1966
echo "$as_me:$LINENO: checking for $ac_word" >&5
1967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968
if test "${ac_cv_prog_CC+set}" = set; then
1969
echo $ECHO_N "(cached) $ECHO_C" >&6
1971
if test -n "$CC"; then
1972
ac_cv_prog_CC="$CC" # Let the user override the test.
1975
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979
test -z "$as_dir" && as_dir=.
1980
for ac_exec_ext in '' $ac_executable_extensions; do
1981
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1982
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1983
ac_prog_rejected=yes
1987
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1993
if test $ac_prog_rejected = yes; then
1994
# We found a bogon in the path, so make sure we never use it.
1995
set dummy $ac_cv_prog_CC
1997
if test $# != 0; then
1998
# We chose a different compiler from the bogus one.
1999
# However, it has the same basename, so the bogon will be chosen
2000
# first if we set CC to just the basename; use the full file name.
2002
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2008
if test -n "$CC"; then
2009
echo "$as_me:$LINENO: result: $CC" >&5
2010
echo "${ECHO_T}$CC" >&6
2012
echo "$as_me:$LINENO: result: no" >&5
2013
echo "${ECHO_T}no" >&6
2017
if test -z "$CC"; then
2018
if test -n "$ac_tool_prefix"; then
2021
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2022
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2023
echo "$as_me:$LINENO: checking for $ac_word" >&5
2024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2025
if test "${ac_cv_prog_CC+set}" = set; then
2026
echo $ECHO_N "(cached) $ECHO_C" >&6
2028
if test -n "$CC"; then
2029
ac_cv_prog_CC="$CC" # Let the user override the test.
2031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035
test -z "$as_dir" && as_dir=.
2036
for ac_exec_ext in '' $ac_executable_extensions; do
2037
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2038
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2039
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048
if test -n "$CC"; then
2049
echo "$as_me:$LINENO: result: $CC" >&5
2050
echo "${ECHO_T}$CC" >&6
2052
echo "$as_me:$LINENO: result: no" >&5
2053
echo "${ECHO_T}no" >&6
2056
test -n "$CC" && break
2059
if test -z "$CC"; then
2063
# Extract the first word of "$ac_prog", so it can be a program name with args.
2064
set dummy $ac_prog; ac_word=$2
2065
echo "$as_me:$LINENO: checking for $ac_word" >&5
2066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2068
echo $ECHO_N "(cached) $ECHO_C" >&6
2070
if test -n "$ac_ct_CC"; then
2071
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077
test -z "$as_dir" && as_dir=.
2078
for ac_exec_ext in '' $ac_executable_extensions; do
2079
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080
ac_cv_prog_ac_ct_CC="$ac_prog"
2081
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2090
if test -n "$ac_ct_CC"; then
2091
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2092
echo "${ECHO_T}$ac_ct_CC" >&6
2094
echo "$as_me:$LINENO: result: no" >&5
2095
echo "${ECHO_T}no" >&6
2098
test -n "$ac_ct_CC" && break
2107
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2108
See \`config.log' for more details." >&5
2109
echo "$as_me: error: no acceptable C compiler found in \$PATH
2110
See \`config.log' for more details." >&2;}
2111
{ (exit 1); exit 1; }; }
2113
# Provide some information about the compiler.
2114
echo "$as_me:$LINENO:" \
2115
"checking for C compiler version" >&5
2116
ac_compiler=`set X $ac_compile; echo $2`
2117
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118
(eval $ac_compiler --version </dev/null >&5) 2>&5
2120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121
(exit $ac_status); }
2122
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123
(eval $ac_compiler -v </dev/null >&5) 2>&5
2125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126
(exit $ac_status); }
2127
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128
(eval $ac_compiler -V </dev/null >&5) 2>&5
2130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131
(exit $ac_status); }
2133
cat >conftest.$ac_ext <<_ACEOF
2134
#line $LINENO "configure"
2137
cat confdefs.h >>conftest.$ac_ext
2138
cat >>conftest.$ac_ext <<_ACEOF
2139
/* end confdefs.h. */
2149
ac_clean_files_save=$ac_clean_files
2150
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2151
# Try to create an executable without -o first, disregard a.out.
2152
# It will help us diagnose broken compilers, and finding out an intuition
2154
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2155
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2156
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2157
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2158
(eval $ac_link_default) 2>&5
2160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161
(exit $ac_status); }; then
2162
# Find the output, starting from the most likely. This scheme is
2163
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2166
# Be careful to initialize this variable, since it used to be cached.
2167
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2169
# b.out is created by i960 compilers.
2170
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2172
test -f "$ac_file" || continue
2174
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2177
# This is the source file.
2180
# We found the default executable, but exeext='' is most
2184
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2185
# FIXME: I believe we export ac_cv_exeext for Libtool,
2186
# but it would be cool to find out if it's true. Does anybody
2187
# maintain Libtool? --akim.
2195
echo "$as_me: failed program was:" >&5
2196
sed 's/^/| /' conftest.$ac_ext >&5
2198
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2199
See \`config.log' for more details." >&5
2200
echo "$as_me: error: C compiler cannot create executables
2201
See \`config.log' for more details." >&2;}
2202
{ (exit 77); exit 77; }; }
2205
ac_exeext=$ac_cv_exeext
2206
echo "$as_me:$LINENO: result: $ac_file" >&5
2207
echo "${ECHO_T}$ac_file" >&6
2209
# Check the compiler produces executables we can run. If not, either
2210
# the compiler is broken, or we cross compile.
2211
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2212
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2213
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2214
# If not cross compiling, check that we can run a simple program.
2215
if test "$cross_compiling" != yes; then
2216
if { ac_try='./$ac_file'
2217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221
(exit $ac_status); }; }; then
2224
if test "$cross_compiling" = maybe; then
2227
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2228
If you meant to cross compile, use \`--host'.
2229
See \`config.log' for more details." >&5
2230
echo "$as_me: error: cannot run C compiled programs.
2231
If you meant to cross compile, use \`--host'.
2232
See \`config.log' for more details." >&2;}
2233
{ (exit 1); exit 1; }; }
2237
echo "$as_me:$LINENO: result: yes" >&5
2238
echo "${ECHO_T}yes" >&6
2240
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2241
ac_clean_files=$ac_clean_files_save
2242
# Check the compiler produces executables we can run. If not, either
2243
# the compiler is broken, or we cross compile.
2244
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2245
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2246
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2247
echo "${ECHO_T}$cross_compiling" >&6
2249
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2250
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2252
(eval $ac_link) 2>&5
2254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255
(exit $ac_status); }; then
2256
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2257
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2258
# work properly (i.e., refer to `conftest.exe'), while it won't with
2260
for ac_file in conftest.exe conftest conftest.*; do
2261
test -f "$ac_file" || continue
2263
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2264
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2272
See \`config.log' for more details." >&5
2273
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2274
See \`config.log' for more details." >&2;}
2275
{ (exit 1); exit 1; }; }
2278
rm -f conftest$ac_cv_exeext
2279
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2280
echo "${ECHO_T}$ac_cv_exeext" >&6
2282
rm -f conftest.$ac_ext
2283
EXEEXT=$ac_cv_exeext
2285
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2286
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2287
if test "${ac_cv_objext+set}" = set; then
2288
echo $ECHO_N "(cached) $ECHO_C" >&6
2290
cat >conftest.$ac_ext <<_ACEOF
2291
#line $LINENO "configure"
2294
cat confdefs.h >>conftest.$ac_ext
2295
cat >>conftest.$ac_ext <<_ACEOF
2296
/* end confdefs.h. */
2306
rm -f conftest.o conftest.obj
2307
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308
(eval $ac_compile) 2>&5
2310
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311
(exit $ac_status); }; then
2312
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2314
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2315
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2320
echo "$as_me: failed program was:" >&5
2321
sed 's/^/| /' conftest.$ac_ext >&5
2323
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2324
See \`config.log' for more details." >&5
2325
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2326
See \`config.log' for more details." >&2;}
2327
{ (exit 1); exit 1; }; }
2330
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2332
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2333
echo "${ECHO_T}$ac_cv_objext" >&6
2334
OBJEXT=$ac_cv_objext
2336
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2337
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2338
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2339
echo $ECHO_N "(cached) $ECHO_C" >&6
2341
cat >conftest.$ac_ext <<_ACEOF
2342
#line $LINENO "configure"
2345
cat confdefs.h >>conftest.$ac_ext
2346
cat >>conftest.$ac_ext <<_ACEOF
2347
/* end confdefs.h. */
2360
rm -f conftest.$ac_objext
2361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2362
(eval $ac_compile) 2>&5
2364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365
(exit $ac_status); } &&
2366
{ ac_try='test -s conftest.$ac_objext'
2367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371
(exit $ac_status); }; }; then
2374
echo "$as_me: failed program was:" >&5
2375
sed 's/^/| /' conftest.$ac_ext >&5
2379
rm -f conftest.$ac_objext conftest.$ac_ext
2380
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2383
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2384
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2385
GCC=`test $ac_compiler_gnu = yes && echo yes`
2386
ac_test_CFLAGS=${CFLAGS+set}
2387
ac_save_CFLAGS=$CFLAGS
2389
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2390
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2391
if test "${ac_cv_prog_cc_g+set}" = set; then
2392
echo $ECHO_N "(cached) $ECHO_C" >&6
2394
cat >conftest.$ac_ext <<_ACEOF
2395
#line $LINENO "configure"
2398
cat confdefs.h >>conftest.$ac_ext
2399
cat >>conftest.$ac_ext <<_ACEOF
2400
/* end confdefs.h. */
2410
rm -f conftest.$ac_objext
2411
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2412
(eval $ac_compile) 2>&5
2414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415
(exit $ac_status); } &&
2416
{ ac_try='test -s conftest.$ac_objext'
2417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421
(exit $ac_status); }; }; then
2424
echo "$as_me: failed program was:" >&5
2425
sed 's/^/| /' conftest.$ac_ext >&5
2429
rm -f conftest.$ac_objext conftest.$ac_ext
2431
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2432
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2433
if test "$ac_test_CFLAGS" = set; then
2434
CFLAGS=$ac_save_CFLAGS
2435
elif test $ac_cv_prog_cc_g = yes; then
2436
if test "$GCC" = yes; then
2442
if test "$GCC" = yes; then
2448
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2449
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2450
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2451
echo $ECHO_N "(cached) $ECHO_C" >&6
2453
ac_cv_prog_cc_stdc=no
2455
cat >conftest.$ac_ext <<_ACEOF
2456
#line $LINENO "configure"
2459
cat confdefs.h >>conftest.$ac_ext
2460
cat >>conftest.$ac_ext <<_ACEOF
2461
/* end confdefs.h. */
2464
#include <sys/types.h>
2465
#include <sys/stat.h>
2466
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2467
struct buf { int x; };
2468
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2469
static char *e (p, i)
2475
static char *f (char * (*g) (char **, int), char **p, ...)
2480
s = g (p, va_arg (v,int));
2484
int test (int i, double x);
2485
struct s1 {int (*f) (int a);};
2486
struct s2 {int (*f) (double a);};
2487
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2493
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2498
# Don't try gcc -ansi; that turns off useful extensions and
2499
# breaks some systems' header files.
2500
# AIX -qlanglvl=ansi
2501
# Ultrix and OSF/1 -std1
2502
# HP-UX 10.20 and later -Ae
2503
# HP-UX older versions -Aa -D_HPUX_SOURCE
2504
# SVR4 -Xc -D__EXTENSIONS__
2505
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2507
CC="$ac_save_CC $ac_arg"
2508
rm -f conftest.$ac_objext
2509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510
(eval $ac_compile) 2>&5
2512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2513
(exit $ac_status); } &&
2514
{ ac_try='test -s conftest.$ac_objext'
2515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519
(exit $ac_status); }; }; then
2520
ac_cv_prog_cc_stdc=$ac_arg
2523
echo "$as_me: failed program was:" >&5
2524
sed 's/^/| /' conftest.$ac_ext >&5
2527
rm -f conftest.$ac_objext
2529
rm -f conftest.$ac_ext conftest.$ac_objext
2534
case "x$ac_cv_prog_cc_stdc" in
2536
echo "$as_me:$LINENO: result: none needed" >&5
2537
echo "${ECHO_T}none needed" >&6 ;;
2539
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2540
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2541
CC="$CC $ac_cv_prog_cc_stdc" ;;
2544
# Some people use a C++ compiler to compile C. Since we use `exit',
2545
# in C++ we need to declare it. In case someone uses the same compiler
2546
# for both compiling C and C++ we need to have the C++ compiler decide
2547
# the declaration of exit, since it's the most demanding environment.
2548
cat >conftest.$ac_ext <<_ACEOF
2553
rm -f conftest.$ac_objext
2554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555
(eval $ac_compile) 2>&5
2557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558
(exit $ac_status); } &&
2559
{ ac_try='test -s conftest.$ac_objext'
2560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564
(exit $ac_status); }; }; then
2565
for ac_declaration in \
2567
'#include <stdlib.h>' \
2568
'extern "C" void std::exit (int) throw (); using std::exit;' \
2569
'extern "C" void std::exit (int); using std::exit;' \
2570
'extern "C" void exit (int) throw ();' \
2571
'extern "C" void exit (int);' \
2574
cat >conftest.$ac_ext <<_ACEOF
2575
#line $LINENO "configure"
2578
cat confdefs.h >>conftest.$ac_ext
2579
cat >>conftest.$ac_ext <<_ACEOF
2580
/* end confdefs.h. */
2591
rm -f conftest.$ac_objext
2592
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593
(eval $ac_compile) 2>&5
2595
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596
(exit $ac_status); } &&
2597
{ ac_try='test -s conftest.$ac_objext'
2598
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602
(exit $ac_status); }; }; then
2605
echo "$as_me: failed program was:" >&5
2606
sed 's/^/| /' conftest.$ac_ext >&5
2610
rm -f conftest.$ac_objext conftest.$ac_ext
2611
cat >conftest.$ac_ext <<_ACEOF
2612
#line $LINENO "configure"
2615
cat confdefs.h >>conftest.$ac_ext
2616
cat >>conftest.$ac_ext <<_ACEOF
2617
/* end confdefs.h. */
2627
rm -f conftest.$ac_objext
2628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629
(eval $ac_compile) 2>&5
2631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632
(exit $ac_status); } &&
2633
{ ac_try='test -s conftest.$ac_objext'
2634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
(exit $ac_status); }; }; then
2641
echo "$as_me: failed program was:" >&5
2642
sed 's/^/| /' conftest.$ac_ext >&5
2645
rm -f conftest.$ac_objext conftest.$ac_ext
2648
if test -n "$ac_declaration"; then
2649
echo '#ifdef __cplusplus' >>confdefs.h
2650
echo $ac_declaration >>confdefs.h
2651
echo '#endif' >>confdefs.h
2655
echo "$as_me: failed program was:" >&5
2656
sed 's/^/| /' conftest.$ac_ext >&5
2659
rm -f conftest.$ac_objext conftest.$ac_ext
2661
ac_cpp='$CPP $CPPFLAGS'
2662
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2665
DEPDIR="${am__leading_dot}deps"
2667
ac_config_commands="$ac_config_commands depfiles"
2670
am_make=${MAKE-make}
2671
cat > confinc << 'END'
2676
# If we don't find an include directive, just comment out the code.
2677
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2678
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2682
# First try GNU make style include.
2683
echo "include confinc" > confmf
2684
# We grep out `Entering directory' and `Leaving directory'
2685
# messages which can occur if `w' ends up in MAKEFLAGS.
2686
# In particular we don't look at `^make:' because GNU make might
2687
# be invoked under some other name (usually "gmake"), in which
2688
# case it prints its new name instead of `make'.
2689
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2694
# Now try BSD make style include.
2695
if test "$am__include" = "#"; then
2696
echo '.include "confinc"' > confmf
2697
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2698
am__include=.include
2705
echo "$as_me:$LINENO: result: $_am_result" >&5
2706
echo "${ECHO_T}$_am_result" >&6
2707
rm -f confinc confmf
2709
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2710
if test "${enable_dependency_tracking+set}" = set; then
2711
enableval="$enable_dependency_tracking"
2714
if test "x$enable_dependency_tracking" != xno; then
2715
am_depcomp="$ac_aux_dir/depcomp"
2720
if test "x$enable_dependency_tracking" != xno; then
2731
depcc="$CC" am_compiler_list=
2733
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2734
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2735
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2736
echo $ECHO_N "(cached) $ECHO_C" >&6
2738
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2739
# We make a subdir and do the tests there. Otherwise we can end up
2740
# making bogus files that we don't know about and never remove. For
2741
# instance it was reported that on HP-UX the gcc test will end up
2742
# making a dummy file named `D' -- because `-MD' means `put the output
2745
# Copy depcomp to subdir because otherwise we won't find it if we're
2746
# using a relative directory.
2747
cp "$am_depcomp" conftest.dir
2749
# We will build objects and dependencies in a subdirectory because
2750
# it helps to detect inapplicable dependency modes. For instance
2751
# both Tru64's cc and ICC support -MD to output dependencies as a
2752
# side effect of compilation, but ICC will put the dependencies in
2753
# the current directory while Tru64 will put them in the object
2757
am_cv_CC_dependencies_compiler_type=none
2758
if test "$am_compiler_list" = ""; then
2759
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2761
for depmode in $am_compiler_list; do
2762
# Setup a source with many dependencies, because some compilers
2763
# like to wrap large dependency lists on column 80 (with \), and
2764
# we should not choose a depcomp mode which is confused by this.
2766
# We need to recreate these files for each test, as the compiler may
2767
# overwrite some of them when testing with obscure command lines.
2768
# This happens at least with the AIX C compiler.
2770
for i in 1 2 3 4 5 6; do
2771
echo '#include "conftst'$i'.h"' >> sub/conftest.c
2774
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2778
# after this tag, mechanisms are not by side-effect, so they'll
2779
# only be used when explicitly requested
2780
if test "x$enable_dependency_tracking" = xyes; then
2788
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2789
# mode. It turns out that the SunPro C++ compiler does not properly
2790
# handle `-M -o', and we need to detect this.
2791
if depmode=$depmode \
2792
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2793
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2794
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2795
>/dev/null 2>conftest.err &&
2796
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2797
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2798
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2799
# icc doesn't choke on unknown options, it will just issue warnings
2800
# (even with -Werror). So we grep stderr for any message
2801
# that says an option was ignored.
2802
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2803
am_cv_CC_dependencies_compiler_type=$depmode
2812
am_cv_CC_dependencies_compiler_type=none
2816
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2817
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2818
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2823
test "x$enable_dependency_tracking" != xno \
2824
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2826
am__fastdepCC_FALSE='#'
2828
am__fastdepCC_TRUE='#'
2829
am__fastdepCC_FALSE=
2834
if test "x$cflags_specified" = "x" ; then
2835
CFLAGS="$CFLAGS -Wall"
2839
ac_cpp='$CPP $CPPFLAGS'
2840
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2844
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2845
# On Suns, sometimes $CPP names a directory.
2846
if test -n "$CPP" && test -d "$CPP"; then
2849
if test -z "$CPP"; then
2850
if test "${ac_cv_prog_CPP+set}" = set; then
2851
echo $ECHO_N "(cached) $ECHO_C" >&6
2853
# Double quotes because CPP needs to be expanded
2854
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2857
for ac_c_preproc_warn_flag in '' yes
2859
# Use a header file that comes with gcc, so configuring glibc
2860
# with a fresh cross-compiler works.
2861
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2862
# <limits.h> exists even on freestanding compilers.
2863
# On the NeXT, cc -E runs the code through the compiler's parser,
2864
# not just through cpp. "Syntax error" is here to catch this case.
2865
cat >conftest.$ac_ext <<_ACEOF
2866
#line $LINENO "configure"
2869
cat confdefs.h >>conftest.$ac_ext
2870
cat >>conftest.$ac_ext <<_ACEOF
2871
/* end confdefs.h. */
2873
# include <limits.h>
2875
# include <assert.h>
2879
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2880
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2882
grep -v '^ *+' conftest.er1 >conftest.err
2884
cat conftest.err >&5
2885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
(exit $ac_status); } >/dev/null; then
2887
if test -s conftest.err; then
2888
ac_cpp_err=$ac_c_preproc_warn_flag
2895
if test -z "$ac_cpp_err"; then
2898
echo "$as_me: failed program was:" >&5
2899
sed 's/^/| /' conftest.$ac_ext >&5
2901
# Broken: fails on valid input.
2904
rm -f conftest.err conftest.$ac_ext
2906
# OK, works on sane cases. Now check whether non-existent headers
2907
# can be detected and how.
2908
cat >conftest.$ac_ext <<_ACEOF
2909
#line $LINENO "configure"
2912
cat confdefs.h >>conftest.$ac_ext
2913
cat >>conftest.$ac_ext <<_ACEOF
2914
/* end confdefs.h. */
2915
#include <ac_nonexistent.h>
2917
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2918
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2920
grep -v '^ *+' conftest.er1 >conftest.err
2922
cat conftest.err >&5
2923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924
(exit $ac_status); } >/dev/null; then
2925
if test -s conftest.err; then
2926
ac_cpp_err=$ac_c_preproc_warn_flag
2933
if test -z "$ac_cpp_err"; then
2934
# Broken: success on invalid input.
2937
echo "$as_me: failed program was:" >&5
2938
sed 's/^/| /' conftest.$ac_ext >&5
2940
# Passes both tests.
2944
rm -f conftest.err conftest.$ac_ext
2947
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2948
rm -f conftest.err conftest.$ac_ext
2949
if $ac_preproc_ok; then
2961
echo "$as_me:$LINENO: result: $CPP" >&5
2962
echo "${ECHO_T}$CPP" >&6
2964
for ac_c_preproc_warn_flag in '' yes
2966
# Use a header file that comes with gcc, so configuring glibc
2967
# with a fresh cross-compiler works.
2968
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2969
# <limits.h> exists even on freestanding compilers.
2970
# On the NeXT, cc -E runs the code through the compiler's parser,
2971
# not just through cpp. "Syntax error" is here to catch this case.
2972
cat >conftest.$ac_ext <<_ACEOF
2973
#line $LINENO "configure"
2976
cat confdefs.h >>conftest.$ac_ext
2977
cat >>conftest.$ac_ext <<_ACEOF
2978
/* end confdefs.h. */
2980
# include <limits.h>
2982
# include <assert.h>
2986
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2987
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989
grep -v '^ *+' conftest.er1 >conftest.err
2991
cat conftest.err >&5
2992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993
(exit $ac_status); } >/dev/null; then
2994
if test -s conftest.err; then
2995
ac_cpp_err=$ac_c_preproc_warn_flag
3002
if test -z "$ac_cpp_err"; then
3005
echo "$as_me: failed program was:" >&5
3006
sed 's/^/| /' conftest.$ac_ext >&5
3008
# Broken: fails on valid input.
3011
rm -f conftest.err conftest.$ac_ext
3013
# OK, works on sane cases. Now check whether non-existent headers
3014
# can be detected and how.
3015
cat >conftest.$ac_ext <<_ACEOF
3016
#line $LINENO "configure"
3019
cat confdefs.h >>conftest.$ac_ext
3020
cat >>conftest.$ac_ext <<_ACEOF
3021
/* end confdefs.h. */
3022
#include <ac_nonexistent.h>
3024
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027
grep -v '^ *+' conftest.er1 >conftest.err
3029
cat conftest.err >&5
3030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031
(exit $ac_status); } >/dev/null; then
3032
if test -s conftest.err; then
3033
ac_cpp_err=$ac_c_preproc_warn_flag
3040
if test -z "$ac_cpp_err"; then
3041
# Broken: success on invalid input.
3044
echo "$as_me: failed program was:" >&5
3045
sed 's/^/| /' conftest.$ac_ext >&5
3047
# Passes both tests.
3051
rm -f conftest.err conftest.$ac_ext
3054
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055
rm -f conftest.err conftest.$ac_ext
3056
if $ac_preproc_ok; then
3059
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3060
See \`config.log' for more details." >&5
3061
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3062
See \`config.log' for more details." >&2;}
3063
{ (exit 1); exit 1; }; }
3067
ac_cpp='$CPP $CPPFLAGS'
3068
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072
# Find a good install program. We prefer a C program (faster),
3073
# so one script is as good as another. But avoid the broken or
3074
# incompatible versions:
3075
# SysV /etc/install, /usr/sbin/install
3076
# SunOS /usr/etc/install
3077
# IRIX /sbin/install
3079
# AmigaOS /C/install, which installs bootblocks on floppy discs
3080
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3081
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3082
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3083
# ./install, which can be erroneously created by make from ./install.sh.
3084
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3085
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3086
if test -z "$INSTALL"; then
3087
if test "${ac_cv_path_install+set}" = set; then
3088
echo $ECHO_N "(cached) $ECHO_C" >&6
3090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094
test -z "$as_dir" && as_dir=.
3095
# Account for people who put trailing slashes in PATH elements.
3097
./ | .// | /cC/* | \
3098
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3101
# OSF1 and SCO ODT 3.0 have their own names for install.
3102
# Don't use installbsd from OSF since it installs stuff as root
3104
for ac_prog in ginstall scoinst install; do
3105
for ac_exec_ext in '' $ac_executable_extensions; do
3106
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3107
if test $ac_prog = install &&
3108
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3109
# AIX install. It has an incompatible calling convention.
3111
elif test $ac_prog = install &&
3112
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3113
# program-specific install script used by HP pwplus--don't use.
3116
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3128
if test "${ac_cv_path_install+set}" = set; then
3129
INSTALL=$ac_cv_path_install
3131
# As a last resort, use the slow shell script. We don't cache a
3132
# path for INSTALL within a source directory, because that will
3133
# break other packages using the cache if that directory is
3134
# removed, or if the path is relative.
3135
INSTALL=$ac_install_sh
3138
echo "$as_me:$LINENO: result: $INSTALL" >&5
3139
echo "${ECHO_T}$INSTALL" >&6
3141
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3142
# It thinks the first close brace ends the variable substitution.
3143
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3145
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3147
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3149
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3150
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3151
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3152
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3153
echo $ECHO_N "(cached) $ECHO_C" >&6
3155
cat >conftest.make <<\_ACEOF
3157
@echo 'ac_maketemp="$(MAKE)"'
3159
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3160
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3161
if test -n "$ac_maketemp"; then
3162
eval ac_cv_prog_make_${ac_make}_set=yes
3164
eval ac_cv_prog_make_${ac_make}_set=no
3168
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3169
echo "$as_me:$LINENO: result: yes" >&5
3170
echo "${ECHO_T}yes" >&6
3173
echo "$as_me:$LINENO: result: no" >&5
3174
echo "${ECHO_T}no" >&6
3175
SET_MAKE="MAKE=${MAKE-make}"
3178
if test -n "$ac_tool_prefix"; then
3179
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3180
set dummy ${ac_tool_prefix}ar; ac_word=$2
3181
echo "$as_me:$LINENO: checking for $ac_word" >&5
3182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183
if test "${ac_cv_prog_AR+set}" = set; then
3184
echo $ECHO_N "(cached) $ECHO_C" >&6
3186
if test -n "$AR"; then
3187
ac_cv_prog_AR="$AR" # Let the user override the test.
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193
test -z "$as_dir" && as_dir=.
3194
for ac_exec_ext in '' $ac_executable_extensions; do
3195
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196
ac_cv_prog_AR="${ac_tool_prefix}ar"
3197
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3206
if test -n "$AR"; then
3207
echo "$as_me:$LINENO: result: $AR" >&5
3208
echo "${ECHO_T}$AR" >&6
3210
echo "$as_me:$LINENO: result: no" >&5
3211
echo "${ECHO_T}no" >&6
3215
if test -z "$ac_cv_prog_AR"; then
3217
# Extract the first word of "ar", so it can be a program name with args.
3218
set dummy ar; ac_word=$2
3219
echo "$as_me:$LINENO: checking for $ac_word" >&5
3220
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3222
echo $ECHO_N "(cached) $ECHO_C" >&6
3224
if test -n "$ac_ct_AR"; then
3225
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231
test -z "$as_dir" && as_dir=.
3232
for ac_exec_ext in '' $ac_executable_extensions; do
3233
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234
ac_cv_prog_ac_ct_AR="ar"
3235
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243
ac_ct_AR=$ac_cv_prog_ac_ct_AR
3244
if test -n "$ac_ct_AR"; then
3245
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3246
echo "${ECHO_T}$ac_ct_AR" >&6
3248
echo "$as_me:$LINENO: result: no" >&5
3249
echo "${ECHO_T}no" >&6
3257
if test -n "$ac_tool_prefix"; then
3258
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3259
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3260
echo "$as_me:$LINENO: checking for $ac_word" >&5
3261
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262
if test "${ac_cv_prog_RANLIB+set}" = set; then
3263
echo $ECHO_N "(cached) $ECHO_C" >&6
3265
if test -n "$RANLIB"; then
3266
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3268
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272
test -z "$as_dir" && as_dir=.
3273
for ac_exec_ext in '' $ac_executable_extensions; do
3274
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3276
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284
RANLIB=$ac_cv_prog_RANLIB
3285
if test -n "$RANLIB"; then
3286
echo "$as_me:$LINENO: result: $RANLIB" >&5
3287
echo "${ECHO_T}$RANLIB" >&6
3289
echo "$as_me:$LINENO: result: no" >&5
3290
echo "${ECHO_T}no" >&6
3294
if test -z "$ac_cv_prog_RANLIB"; then
3295
ac_ct_RANLIB=$RANLIB
3296
# Extract the first word of "ranlib", so it can be a program name with args.
3297
set dummy ranlib; ac_word=$2
3298
echo "$as_me:$LINENO: checking for $ac_word" >&5
3299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3300
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3301
echo $ECHO_N "(cached) $ECHO_C" >&6
3303
if test -n "$ac_ct_RANLIB"; then
3304
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310
test -z "$as_dir" && as_dir=.
3311
for ac_exec_ext in '' $ac_executable_extensions; do
3312
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313
ac_cv_prog_ac_ct_RANLIB="ranlib"
3314
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3323
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3324
if test -n "$ac_ct_RANLIB"; then
3325
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3326
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3328
echo "$as_me:$LINENO: result: no" >&5
3329
echo "${ECHO_T}no" >&6
3332
RANLIB=$ac_ct_RANLIB
3334
RANLIB="$ac_cv_prog_RANLIB"
3340
echo "$as_me:$LINENO: checking for egrep" >&5
3341
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3342
if test "${ac_cv_prog_egrep+set}" = set; then
3343
echo $ECHO_N "(cached) $ECHO_C" >&6
3345
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3346
then ac_cv_prog_egrep='grep -E'
3347
else ac_cv_prog_egrep='egrep'
3350
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3351
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3352
EGREP=$ac_cv_prog_egrep
3356
echo "$as_me:$LINENO: checking for AIX" >&5
3357
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3358
cat >conftest.$ac_ext <<_ACEOF
3359
#line $LINENO "configure"
3362
cat confdefs.h >>conftest.$ac_ext
3363
cat >>conftest.$ac_ext <<_ACEOF
3364
/* end confdefs.h. */
3370
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3371
$EGREP "yes" >/dev/null 2>&1; then
3372
echo "$as_me:$LINENO: result: yes" >&5
3373
echo "${ECHO_T}yes" >&6
3374
cat >>confdefs.h <<\_ACEOF
3375
#define _ALL_SOURCE 1
3379
echo "$as_me:$LINENO: result: no" >&5
3380
echo "${ECHO_T}no" >&6
3386
# Check whether --enable-vtysh or --disable-vtysh was given.
3387
if test "${enable_vtysh+set}" = set; then
3388
enableval="$enable_vtysh"
3391
# Check whether --enable-ipv6 or --disable-ipv6 was given.
3392
if test "${enable_ipv6+set}" = set; then
3393
enableval="$enable_ipv6"
3396
# Check whether --enable-zebra or --disable-zebra was given.
3397
if test "${enable_zebra+set}" = set; then
3398
enableval="$enable_zebra"
3401
# Check whether --enable-bgpd or --disable-bgpd was given.
3402
if test "${enable_bgpd+set}" = set; then
3403
enableval="$enable_bgpd"
3406
# Check whether --enable-ripd or --disable-ripd was given.
3407
if test "${enable_ripd+set}" = set; then
3408
enableval="$enable_ripd"
3411
# Check whether --enable-ripngd or --disable-ripngd was given.
3412
if test "${enable_ripngd+set}" = set; then
3413
enableval="$enable_ripngd"
3416
# Check whether --enable-ospfd or --disable-ospfd was given.
3417
if test "${enable_ospfd+set}" = set; then
3418
enableval="$enable_ospfd"
3421
# Check whether --enable-ospf6d or --disable-ospf6d was given.
3422
if test "${enable_ospf6d+set}" = set; then
3423
enableval="$enable_ospf6d"
3426
# Check whether --enable-isisd or --disable-isisd was given.
3427
if test "${enable_isisd+set}" = set; then
3428
enableval="$enable_isisd"
3431
# Check whether --enable-bgp-announce or --disable-bgp-announce was given.
3432
if test "${enable_bgp_announce+set}" = set; then
3433
enableval="$enable_bgp_announce"
3436
# Check whether --enable-netlink or --disable-netlink was given.
3437
if test "${enable_netlink+set}" = set; then
3438
enableval="$enable_netlink"
3441
# Check whether --enable-broken-aliases or --disable-broken-aliases was given.
3442
if test "${enable_broken_aliases+set}" = set; then
3443
enableval="$enable_broken_aliases"
3446
# Check whether --enable-snmp or --disable-snmp was given.
3447
if test "${enable_snmp+set}" = set; then
3448
enableval="$enable_snmp"
3452
# Check whether --with-libpam or --without-libpam was given.
3453
if test "${with_libpam+set}" = set; then
3454
withval="$with_libpam"
3457
# Check whether --enable-tcp-zebra or --disable-tcp-zebra was given.
3458
if test "${enable_tcp_zebra+set}" = set; then
3459
enableval="$enable_tcp_zebra"
3462
# Check whether --enable-nssa or --disable-nssa was given.
3463
if test "${enable_nssa+set}" = set; then
3464
enableval="$enable_nssa"
3467
# Check whether --enable-opaque-lsa or --disable-opaque-lsa was given.
3468
if test "${enable_opaque_lsa+set}" = set; then
3469
enableval="$enable_opaque_lsa"
3472
# Check whether --enable-ospfapi or --disable-ospfapi was given.
3473
if test "${enable_ospfapi+set}" = set; then
3474
enableval="$enable_ospfapi"
3477
# Check whether --enable-ospfclient or --disable-ospfclient was given.
3478
if test "${enable_ospfclient+set}" = set; then
3479
enableval="$enable_ospfclient"
3482
# Check whether --enable-ospf-te or --disable-ospf-te was given.
3483
if test "${enable_ospf_te+set}" = set; then
3484
enableval="$enable_ospf_te"
3487
# Check whether --enable-multipath or --disable-multipath was given.
3488
if test "${enable_multipath+set}" = set; then
3489
enableval="$enable_multipath"
3492
# Check whether --enable-quagga_user or --disable-quagga_user was given.
3493
if test "${enable_quagga_user+set}" = set; then
3494
enableval="$enable_quagga_user"
3497
# Check whether --enable-quagga_group or --disable-quagga_group was given.
3498
if test "${enable_quagga_group+set}" = set; then
3499
enableval="$enable_quagga_group"
3502
# Check whether --enable-vty_group or --disable-vty_group was given.
3503
if test "${enable_vty_group+set}" = set; then
3504
enableval="$enable_vty_group"
3507
# Check whether --enable-configfile_mask or --disable-configfile_mask was given.
3508
if test "${enable_configfile_mask+set}" = set; then
3509
enableval="$enable_configfile_mask"
3512
# Check whether --enable-logfile_mask or --disable-logfile_mask was given.
3513
if test "${enable_logfile_mask+set}" = set; then
3514
enableval="$enable_logfile_mask"
3518
# Check whether --enable-rtadv or --disable-rtadv was given.
3519
if test "${enable_rtadv+set}" = set; then
3520
enableval="$enable_rtadv"
3523
# Check whether --enable-capabilities or --disable-capabilities was given.
3524
if test "${enable_capabilities+set}" = set; then
3525
enableval="$enable_capabilities"
3529
if test "${enable_broken_aliases}" = "yes"; then
3530
if test "${enable_netlink}" = "yes"
3532
echo "Sorry, you can't use netlink with broken aliases"
3536
cat >>confdefs.h <<\_ACEOF
3537
#define HAVE_BROKEN_ALIASES
3543
if test "${enable_tcp_zebra}" = "yes"; then
3545
cat >>confdefs.h <<\_ACEOF
3546
#define HAVE_TCP_ZEBRA
3551
if test "${enable_nssa}" = "yes"; then
3553
cat >>confdefs.h <<\_ACEOF
3559
if test "${enable_opaque_lsa}" = "yes"; then
3561
cat >>confdefs.h <<\_ACEOF
3562
#define HAVE_OPAQUE_LSA
3567
if test "${enable_ospf_te}" = "yes"; then
3569
cat >>confdefs.h <<\_ACEOF
3570
#define HAVE_OPAQUE_LSA
3574
cat >>confdefs.h <<\_ACEOF
3575
#define HAVE_OSPF_TE
3580
echo "$as_me:$LINENO: checking if zebra should be configurable to send Route Advertisements" >&5
3581
echo $ECHO_N "checking if zebra should be configurable to send Route Advertisements... $ECHO_C" >&6
3582
if test "${enable_rtadv}" != "no"; then
3583
echo "$as_me:$LINENO: result: yes" >&5
3584
echo "${ECHO_T}yes" >&6
3586
cat >>confdefs.h <<\_ACEOF
3591
echo "$as_me:$LINENO: result: no" >&5
3592
echo "${ECHO_T}no" >&6
3595
if test "${enable_user}" = "yes" || test x"${enable_user}" = x""; then
3596
enable_user="quagga"
3597
elif test "${enable_user}" = "no"; then
3601
cat >>confdefs.h <<_ACEOF
3602
#define QUAGGA_USER "${enable_user}"
3606
if test "${enable_group}" = "yes" || test x"${enable_group}" = x""; then
3607
enable_group="quagga"
3608
elif test "${enable_group}" = "no"; then
3612
cat >>confdefs.h <<_ACEOF
3613
#define QUAGGA_GROUP "${enable_group}"
3617
if test x"${enable_vty_group}" = x"yes" ; then
3618
{ { echo "$as_me:$LINENO: error: --enable-vty-group requires a group as argument, not yes" >&5
3619
echo "$as_me: error: --enable-vty-group requires a group as argument, not yes" >&2;}
3620
{ (exit 1); exit 1; }; }
3621
elif test x"${enable_vty_group}" != x""; then
3622
if test x"${enable_vty_group}" != x"no"; then
3624
cat >>confdefs.h <<_ACEOF
3625
#define VTY_GROUP "${enable_vty_group}"
3631
enable_configfile_mask=${enable_configfile_mask:-0600}
3633
cat >>confdefs.h <<_ACEOF
3634
#define CONFIGFILE_MASK ${enable_configfile_mask}
3638
enable_logfile_mask=${enable_logfile_mask:-0600}
3640
cat >>confdefs.h <<_ACEOF
3641
#define LOGFILE_MASK ${enable_logfile_mask}
3648
case "${enable_multipath}" in
3650
MULTIPATH_NUM="${enable_multipath}"
3655
echo "Please specify digit to --enable-multipath ARG."
3663
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3664
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3665
if test "${ac_cv_header_stdc+set}" = set; then
3666
echo $ECHO_N "(cached) $ECHO_C" >&6
3668
cat >conftest.$ac_ext <<_ACEOF
3669
#line $LINENO "configure"
3672
cat confdefs.h >>conftest.$ac_ext
3673
cat >>conftest.$ac_ext <<_ACEOF
3674
/* end confdefs.h. */
3688
rm -f conftest.$ac_objext
3689
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3690
(eval $ac_compile) 2>&5
3692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693
(exit $ac_status); } &&
3694
{ ac_try='test -s conftest.$ac_objext'
3695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699
(exit $ac_status); }; }; then
3700
ac_cv_header_stdc=yes
3702
echo "$as_me: failed program was:" >&5
3703
sed 's/^/| /' conftest.$ac_ext >&5
3705
ac_cv_header_stdc=no
3707
rm -f conftest.$ac_objext conftest.$ac_ext
3709
if test $ac_cv_header_stdc = yes; then
3710
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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. */
3721
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3722
$EGREP "memchr" >/dev/null 2>&1; then
3725
ac_cv_header_stdc=no
3731
if test $ac_cv_header_stdc = yes; then
3732
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3733
cat >conftest.$ac_ext <<_ACEOF
3734
#line $LINENO "configure"
3737
cat confdefs.h >>conftest.$ac_ext
3738
cat >>conftest.$ac_ext <<_ACEOF
3739
/* end confdefs.h. */
3743
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3744
$EGREP "free" >/dev/null 2>&1; then
3747
ac_cv_header_stdc=no
3753
if test $ac_cv_header_stdc = yes; then
3754
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3755
if test "$cross_compiling" = yes; then
3758
cat >conftest.$ac_ext <<_ACEOF
3759
#line $LINENO "configure"
3762
cat confdefs.h >>conftest.$ac_ext
3763
cat >>conftest.$ac_ext <<_ACEOF
3764
/* end confdefs.h. */
3766
#if ((' ' & 0x0FF) == 0x020)
3767
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3768
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3770
# define ISLOWER(c) \
3771
(('a' <= (c) && (c) <= 'i') \
3772
|| ('j' <= (c) && (c) <= 'r') \
3773
|| ('s' <= (c) && (c) <= 'z'))
3774
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3777
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3782
for (i = 0; i < 256; i++)
3783
if (XOR (islower (i), ISLOWER (i))
3784
|| toupper (i) != TOUPPER (i))
3789
rm -f conftest$ac_exeext
3790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3791
(eval $ac_link) 2>&5
3793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3795
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799
(exit $ac_status); }; }; then
3802
echo "$as_me: program exited with status $ac_status" >&5
3803
echo "$as_me: failed program was:" >&5
3804
sed 's/^/| /' conftest.$ac_ext >&5
3807
ac_cv_header_stdc=no
3809
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3813
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3814
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3815
if test $ac_cv_header_stdc = yes; then
3817
cat >>confdefs.h <<\_ACEOF
3818
#define STDC_HEADERS 1
3823
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3833
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3834
inttypes.h stdint.h unistd.h
3836
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3837
echo "$as_me:$LINENO: checking for $ac_header" >&5
3838
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3839
if eval "test \"\${$as_ac_Header+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
$ac_includes_default
3851
#include <$ac_header>
3853
rm -f conftest.$ac_objext
3854
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3855
(eval $ac_compile) 2>&5
3857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858
(exit $ac_status); } &&
3859
{ ac_try='test -s conftest.$ac_objext'
3860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864
(exit $ac_status); }; }; then
3865
eval "$as_ac_Header=yes"
3867
echo "$as_me: failed program was:" >&5
3868
sed 's/^/| /' conftest.$ac_ext >&5
3870
eval "$as_ac_Header=no"
3872
rm -f conftest.$ac_objext conftest.$ac_ext
3874
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3875
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3876
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3877
cat >>confdefs.h <<_ACEOF
3878
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3902
for ac_header in string.h stropts.h sys/conf.h sys/ksym.h sys/time.h \
3903
sys/times.h sys/select.h sys/sysctl.h sys/sockio.h \
3904
sys/types.h linux/version.h kvm.h netdb.h asm/types.h \
3907
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3908
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3909
echo "$as_me:$LINENO: checking for $ac_header" >&5
3910
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3911
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3912
echo $ECHO_N "(cached) $ECHO_C" >&6
3914
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3915
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3917
# Is the header compilable?
3918
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3919
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3920
cat >conftest.$ac_ext <<_ACEOF
3921
#line $LINENO "configure"
3924
cat confdefs.h >>conftest.$ac_ext
3925
cat >>conftest.$ac_ext <<_ACEOF
3926
/* end confdefs.h. */
3927
$ac_includes_default
3928
#include <$ac_header>
3930
rm -f conftest.$ac_objext
3931
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3932
(eval $ac_compile) 2>&5
3934
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935
(exit $ac_status); } &&
3936
{ ac_try='test -s conftest.$ac_objext'
3937
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941
(exit $ac_status); }; }; then
3942
ac_header_compiler=yes
3944
echo "$as_me: failed program was:" >&5
3945
sed 's/^/| /' conftest.$ac_ext >&5
3947
ac_header_compiler=no
3949
rm -f conftest.$ac_objext conftest.$ac_ext
3950
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3951
echo "${ECHO_T}$ac_header_compiler" >&6
3953
# Is the header present?
3954
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3955
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3956
cat >conftest.$ac_ext <<_ACEOF
3957
#line $LINENO "configure"
3960
cat confdefs.h >>conftest.$ac_ext
3961
cat >>conftest.$ac_ext <<_ACEOF
3962
/* end confdefs.h. */
3963
#include <$ac_header>
3965
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3966
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3968
grep -v '^ *+' conftest.er1 >conftest.err
3970
cat conftest.err >&5
3971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972
(exit $ac_status); } >/dev/null; then
3973
if test -s conftest.err; then
3974
ac_cpp_err=$ac_c_preproc_warn_flag
3981
if test -z "$ac_cpp_err"; then
3982
ac_header_preproc=yes
3984
echo "$as_me: failed program was:" >&5
3985
sed 's/^/| /' conftest.$ac_ext >&5
3987
ac_header_preproc=no
3989
rm -f conftest.err conftest.$ac_ext
3990
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3991
echo "${ECHO_T}$ac_header_preproc" >&6
3993
# So? What about this header?
3994
case $ac_header_compiler:$ac_header_preproc in
3996
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3997
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3998
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3999
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4002
## ------------------------------------ ##
4003
## Report this to bug-autoconf@gnu.org. ##
4004
## ------------------------------------ ##
4007
sed "s/^/$as_me: WARNING: /" >&2
4010
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4011
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4012
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4013
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4014
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4015
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4018
## ------------------------------------ ##
4019
## Report this to bug-autoconf@gnu.org. ##
4020
## ------------------------------------ ##
4023
sed "s/^/$as_me: WARNING: /" >&2
4026
echo "$as_me:$LINENO: checking for $ac_header" >&5
4027
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4028
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4029
echo $ECHO_N "(cached) $ECHO_C" >&6
4031
eval "$as_ac_Header=$ac_header_preproc"
4033
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4034
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4037
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4038
cat >>confdefs.h <<_ACEOF
4039
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4057
for ac_header in sys/socket.h netinet/in_systm.h netinet/in.h \
4058
net/if_dl.h net/netopt.h inet/nd.h net/route.h \
4059
net/if.h net/if_var.h netinet/in_var.h
4061
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4062
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4063
echo "$as_me:$LINENO: checking for $ac_header" >&5
4064
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4065
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4066
echo $ECHO_N "(cached) $ECHO_C" >&6
4068
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4069
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4071
# Is the header compilable?
4072
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4073
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4074
cat >conftest.$ac_ext <<_ACEOF
4075
#line $LINENO "configure"
4078
cat confdefs.h >>conftest.$ac_ext
4079
cat >>conftest.$ac_ext <<_ACEOF
4080
/* end confdefs.h. */
4081
$ac_includes_default
4082
#include <$ac_header>
4084
rm -f conftest.$ac_objext
4085
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4086
(eval $ac_compile) 2>&5
4088
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089
(exit $ac_status); } &&
4090
{ ac_try='test -s conftest.$ac_objext'
4091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095
(exit $ac_status); }; }; then
4096
ac_header_compiler=yes
4098
echo "$as_me: failed program was:" >&5
4099
sed 's/^/| /' conftest.$ac_ext >&5
4101
ac_header_compiler=no
4103
rm -f conftest.$ac_objext conftest.$ac_ext
4104
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4105
echo "${ECHO_T}$ac_header_compiler" >&6
4107
# Is the header present?
4108
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4109
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4110
cat >conftest.$ac_ext <<_ACEOF
4111
#line $LINENO "configure"
4114
cat confdefs.h >>conftest.$ac_ext
4115
cat >>conftest.$ac_ext <<_ACEOF
4116
/* end confdefs.h. */
4117
#include <$ac_header>
4119
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4120
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4122
grep -v '^ *+' conftest.er1 >conftest.err
4124
cat conftest.err >&5
4125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126
(exit $ac_status); } >/dev/null; then
4127
if test -s conftest.err; then
4128
ac_cpp_err=$ac_c_preproc_warn_flag
4135
if test -z "$ac_cpp_err"; then
4136
ac_header_preproc=yes
4138
echo "$as_me: failed program was:" >&5
4139
sed 's/^/| /' conftest.$ac_ext >&5
4141
ac_header_preproc=no
4143
rm -f conftest.err conftest.$ac_ext
4144
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4145
echo "${ECHO_T}$ac_header_preproc" >&6
4147
# So? What about this header?
4148
case $ac_header_compiler:$ac_header_preproc in
4150
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4151
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4152
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4156
## ------------------------------------ ##
4157
## Report this to bug-autoconf@gnu.org. ##
4158
## ------------------------------------ ##
4161
sed "s/^/$as_me: WARNING: /" >&2
4164
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4165
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4166
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4167
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4168
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4169
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4172
## ------------------------------------ ##
4173
## Report this to bug-autoconf@gnu.org. ##
4174
## ------------------------------------ ##
4177
sed "s/^/$as_me: WARNING: /" >&2
4180
echo "$as_me:$LINENO: checking for $ac_header" >&5
4181
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4182
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4183
echo $ECHO_N "(cached) $ECHO_C" >&6
4185
eval "$as_ac_Header=$ac_header_preproc"
4187
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4188
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4191
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4192
cat >>confdefs.h <<_ACEOF
4193
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4202
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4203
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4204
if test "${ac_cv_c_const+set}" = set; then
4205
echo $ECHO_N "(cached) $ECHO_C" >&6
4207
cat >conftest.$ac_ext <<_ACEOF
4208
#line $LINENO "configure"
4211
cat confdefs.h >>conftest.$ac_ext
4212
cat >>conftest.$ac_ext <<_ACEOF
4213
/* end confdefs.h. */
4218
/* FIXME: Include the comments suggested by Paul. */
4220
/* Ultrix mips cc rejects this. */
4221
typedef int charset[2];
4223
/* SunOS 4.1.1 cc rejects this. */
4224
char const *const *ccp;
4226
/* NEC SVR4.0.2 mips cc rejects this. */
4227
struct point {int x, y;};
4228
static struct point const zero = {0,0};
4229
/* AIX XL C 1.02.0.0 rejects this.
4230
It does not let you subtract one const X* pointer from another in
4231
an arm of an if-expression whose if-part is not a constant
4233
const char *g = "string";
4234
ccp = &g + (g ? g-g : 0);
4235
/* HPUX 7.0 cc rejects these. */
4238
ccp = (char const *const *) p;
4239
{ /* SCO 3.2v4 cc rejects this. */
4241
char const *s = 0 ? (char *) 0 : (char const *) 0;
4245
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4247
const int *foo = &x[0];
4250
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4251
typedef const int *iptr;
4255
{ /* AIX XL C 1.02.0.0 rejects this saying
4256
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4257
struct s { int j; const int *ap[3]; };
4258
struct s *b; b->j = 5;
4260
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4269
rm -f conftest.$ac_objext
4270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4271
(eval $ac_compile) 2>&5
4273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274
(exit $ac_status); } &&
4275
{ ac_try='test -s conftest.$ac_objext'
4276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280
(exit $ac_status); }; }; then
4283
echo "$as_me: failed program was:" >&5
4284
sed 's/^/| /' conftest.$ac_ext >&5
4288
rm -f conftest.$ac_objext conftest.$ac_ext
4290
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4291
echo "${ECHO_T}$ac_cv_c_const" >&6
4292
if test $ac_cv_c_const = no; then
4294
cat >>confdefs.h <<\_ACEOF
4300
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4301
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4302
if test "${ac_cv_type_signal+set}" = set; then
4303
echo $ECHO_N "(cached) $ECHO_C" >&6
4305
cat >conftest.$ac_ext <<_ACEOF
4306
#line $LINENO "configure"
4309
cat confdefs.h >>conftest.$ac_ext
4310
cat >>conftest.$ac_ext <<_ACEOF
4311
/* end confdefs.h. */
4312
#include <sys/types.h>
4318
extern "C" void (*signal (int, void (*)(int)))(int);
4320
void (*signal ()) ();
4331
rm -f conftest.$ac_objext
4332
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4333
(eval $ac_compile) 2>&5
4335
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336
(exit $ac_status); } &&
4337
{ ac_try='test -s conftest.$ac_objext'
4338
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342
(exit $ac_status); }; }; then
4343
ac_cv_type_signal=void
4345
echo "$as_me: failed program was:" >&5
4346
sed 's/^/| /' conftest.$ac_ext >&5
4348
ac_cv_type_signal=int
4350
rm -f conftest.$ac_objext conftest.$ac_ext
4352
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4353
echo "${ECHO_T}$ac_cv_type_signal" >&6
4355
cat >>confdefs.h <<_ACEOF
4356
#define RETSIGTYPE $ac_cv_type_signal
4362
*-sunos5.6* | *-solaris2.6*)
4365
cat >>confdefs.h <<\_ACEOF
4370
echo "$as_me:$LINENO: checking for main in -lxnet" >&5
4371
echo $ECHO_N "checking for main in -lxnet... $ECHO_C" >&6
4372
if test "${ac_cv_lib_xnet_main+set}" = set; then
4373
echo $ECHO_N "(cached) $ECHO_C" >&6
4375
ac_check_lib_save_LIBS=$LIBS
4377
cat >conftest.$ac_ext <<_ACEOF
4378
#line $LINENO "configure"
4381
cat confdefs.h >>conftest.$ac_ext
4382
cat >>conftest.$ac_ext <<_ACEOF
4383
/* end confdefs.h. */
4394
rm -f conftest.$ac_objext conftest$ac_exeext
4395
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4396
(eval $ac_link) 2>&5
4398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
(exit $ac_status); } &&
4400
{ ac_try='test -s conftest$ac_exeext'
4401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); }; }; then
4406
ac_cv_lib_xnet_main=yes
4408
echo "$as_me: failed program was:" >&5
4409
sed 's/^/| /' conftest.$ac_ext >&5
4411
ac_cv_lib_xnet_main=no
4413
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4414
LIBS=$ac_check_lib_save_LIBS
4416
echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_main" >&5
4417
echo "${ECHO_T}$ac_cv_lib_xnet_main" >&6
4418
if test $ac_cv_lib_xnet_main = yes; then
4419
cat >>confdefs.h <<_ACEOF
4420
#define HAVE_LIBXNET 1
4429
*-sunos5* | *-solaris2*)
4431
cat >>confdefs.h <<\_ACEOF
4436
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4437
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4438
if test "${ac_cv_lib_socket_main+set}" = set; then
4439
echo $ECHO_N "(cached) $ECHO_C" >&6
4441
ac_check_lib_save_LIBS=$LIBS
4442
LIBS="-lsocket $LIBS"
4443
cat >conftest.$ac_ext <<_ACEOF
4444
#line $LINENO "configure"
4447
cat confdefs.h >>conftest.$ac_ext
4448
cat >>conftest.$ac_ext <<_ACEOF
4449
/* end confdefs.h. */
4460
rm -f conftest.$ac_objext conftest$ac_exeext
4461
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4462
(eval $ac_link) 2>&5
4464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465
(exit $ac_status); } &&
4466
{ ac_try='test -s conftest$ac_exeext'
4467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471
(exit $ac_status); }; }; then
4472
ac_cv_lib_socket_main=yes
4474
echo "$as_me: failed program was:" >&5
4475
sed 's/^/| /' conftest.$ac_ext >&5
4477
ac_cv_lib_socket_main=no
4479
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4480
LIBS=$ac_check_lib_save_LIBS
4482
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4483
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4484
if test $ac_cv_lib_socket_main = yes; then
4485
cat >>confdefs.h <<_ACEOF
4486
#define HAVE_LIBSOCKET 1
4489
LIBS="-lsocket $LIBS"
4494
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4495
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4496
if test "${ac_cv_lib_nsl_main+set}" = set; then
4497
echo $ECHO_N "(cached) $ECHO_C" >&6
4499
ac_check_lib_save_LIBS=$LIBS
4501
cat >conftest.$ac_ext <<_ACEOF
4502
#line $LINENO "configure"
4505
cat confdefs.h >>conftest.$ac_ext
4506
cat >>conftest.$ac_ext <<_ACEOF
4507
/* end confdefs.h. */
4518
rm -f conftest.$ac_objext conftest$ac_exeext
4519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4520
(eval $ac_link) 2>&5
4522
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523
(exit $ac_status); } &&
4524
{ ac_try='test -s conftest$ac_exeext'
4525
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529
(exit $ac_status); }; }; then
4530
ac_cv_lib_nsl_main=yes
4532
echo "$as_me: failed program was:" >&5
4533
sed 's/^/| /' conftest.$ac_ext >&5
4535
ac_cv_lib_nsl_main=no
4537
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4538
LIBS=$ac_check_lib_save_LIBS
4540
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4541
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4542
if test $ac_cv_lib_nsl_main = yes; then
4543
cat >>confdefs.h <<_ACEOF
4544
#define HAVE_LIBNSL 1
4556
cat >>confdefs.h <<\_ACEOF
4563
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4564
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
4565
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4566
echo $ECHO_N "(cached) $ECHO_C" >&6
4568
ac_check_lib_save_LIBS=$LIBS
4570
cat >conftest.$ac_ext <<_ACEOF
4571
#line $LINENO "configure"
4574
cat confdefs.h >>conftest.$ac_ext
4575
cat >>conftest.$ac_ext <<_ACEOF
4576
/* end confdefs.h. */
4578
/* Override any gcc2 internal prototype to avoid an error. */
4582
/* We use char because int might match the return type of a gcc2
4583
builtin and then its argument prototype would still apply. */
4584
char gethostbyname ();
4593
rm -f conftest.$ac_objext conftest$ac_exeext
4594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4595
(eval $ac_link) 2>&5
4597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598
(exit $ac_status); } &&
4599
{ ac_try='test -s conftest$ac_exeext'
4600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604
(exit $ac_status); }; }; then
4605
ac_cv_lib_nsl_gethostbyname=yes
4607
echo "$as_me: failed program was:" >&5
4608
sed 's/^/| /' conftest.$ac_ext >&5
4610
ac_cv_lib_nsl_gethostbyname=no
4612
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4613
LIBS=$ac_check_lib_save_LIBS
4615
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4616
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
4617
if test $ac_cv_lib_nsl_gethostbyname = yes; then
4618
cat >>confdefs.h <<_ACEOF
4619
#define HAVE_LIBNSL 1
4627
echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4628
echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4629
if test "${ac_cv_lib_socket_socket+set}" = set; then
4630
echo $ECHO_N "(cached) $ECHO_C" >&6
4632
ac_check_lib_save_LIBS=$LIBS
4633
LIBS="-lsocket $LIBS"
4634
cat >conftest.$ac_ext <<_ACEOF
4635
#line $LINENO "configure"
4638
cat confdefs.h >>conftest.$ac_ext
4639
cat >>conftest.$ac_ext <<_ACEOF
4640
/* end confdefs.h. */
4642
/* Override any gcc2 internal prototype to avoid an error. */
4646
/* We use char because int might match the return type of a gcc2
4647
builtin and then its argument prototype would still apply. */
4657
rm -f conftest.$ac_objext conftest$ac_exeext
4658
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4659
(eval $ac_link) 2>&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); } &&
4663
{ ac_try='test -s conftest$ac_exeext'
4664
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); }; }; then
4669
ac_cv_lib_socket_socket=yes
4671
echo "$as_me: failed program was:" >&5
4672
sed 's/^/| /' conftest.$ac_ext >&5
4674
ac_cv_lib_socket_socket=no
4676
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4677
LIBS=$ac_check_lib_save_LIBS
4679
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4680
echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4681
if test $ac_cv_lib_socket_socket = yes; then
4682
cat >>confdefs.h <<_ACEOF
4683
#define HAVE_LIBSOCKET 1
4686
LIBS="-lsocket $LIBS"
4693
cat >>confdefs.h <<\_ACEOF
4701
cat >>confdefs.h <<\_ACEOF
4708
OTHER_METHOD="mtu_kvm.o"
4710
echo "$as_me:$LINENO: checking for main in -lkvm" >&5
4711
echo $ECHO_N "checking for main in -lkvm... $ECHO_C" >&6
4712
if test "${ac_cv_lib_kvm_main+set}" = set; then
4713
echo $ECHO_N "(cached) $ECHO_C" >&6
4715
ac_check_lib_save_LIBS=$LIBS
4717
cat >conftest.$ac_ext <<_ACEOF
4718
#line $LINENO "configure"
4721
cat confdefs.h >>conftest.$ac_ext
4722
cat >>conftest.$ac_ext <<_ACEOF
4723
/* end confdefs.h. */
4734
rm -f conftest.$ac_objext conftest$ac_exeext
4735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4736
(eval $ac_link) 2>&5
4738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); } &&
4740
{ ac_try='test -s conftest$ac_exeext'
4741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745
(exit $ac_status); }; }; then
4746
ac_cv_lib_kvm_main=yes
4748
echo "$as_me: failed program was:" >&5
4749
sed 's/^/| /' conftest.$ac_ext >&5
4751
ac_cv_lib_kvm_main=no
4753
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4754
LIBS=$ac_check_lib_save_LIBS
4756
echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_main" >&5
4757
echo "${ECHO_T}$ac_cv_lib_kvm_main" >&6
4758
if test $ac_cv_lib_kvm_main = yes; then
4759
cat >>confdefs.h <<_ACEOF
4760
#define HAVE_LIBKVM 1
4771
cat >>confdefs.h <<\_ACEOF
4778
case "${enable_vtysh}" in
4779
"yes") VTYSH="vtysh";
4781
cat >>confdefs.h <<\_ACEOF
4786
echo "$as_me:$LINENO: checking for tputs in -ltinfo" >&5
4787
echo $ECHO_N "checking for tputs in -ltinfo... $ECHO_C" >&6
4788
if test "${ac_cv_lib_tinfo_tputs+set}" = set; then
4789
echo $ECHO_N "(cached) $ECHO_C" >&6
4791
ac_check_lib_save_LIBS=$LIBS
4792
LIBS="-ltinfo $LIBS"
4793
cat >conftest.$ac_ext <<_ACEOF
4794
#line $LINENO "configure"
4797
cat confdefs.h >>conftest.$ac_ext
4798
cat >>conftest.$ac_ext <<_ACEOF
4799
/* end confdefs.h. */
4801
/* Override any gcc2 internal prototype to avoid an error. */
4805
/* We use char because int might match the return type of a gcc2
4806
builtin and then its argument prototype would still apply. */
4816
rm -f conftest.$ac_objext conftest$ac_exeext
4817
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4818
(eval $ac_link) 2>&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); } &&
4822
{ ac_try='test -s conftest$ac_exeext'
4823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827
(exit $ac_status); }; }; then
4828
ac_cv_lib_tinfo_tputs=yes
4830
echo "$as_me: failed program was:" >&5
4831
sed 's/^/| /' conftest.$ac_ext >&5
4833
ac_cv_lib_tinfo_tputs=no
4835
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4836
LIBS=$ac_check_lib_save_LIBS
4838
echo "$as_me:$LINENO: result: $ac_cv_lib_tinfo_tputs" >&5
4839
echo "${ECHO_T}$ac_cv_lib_tinfo_tputs" >&6
4840
if test $ac_cv_lib_tinfo_tputs = yes; then
4841
cat >>confdefs.h <<_ACEOF
4842
#define HAVE_LIBTINFO 1
4845
LIBS="-ltinfo $LIBS"
4849
echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
4850
echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
4851
if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
4852
echo $ECHO_N "(cached) $ECHO_C" >&6
4854
ac_check_lib_save_LIBS=$LIBS
4855
LIBS="-lncurses $LIBS"
4856
cat >conftest.$ac_ext <<_ACEOF
4857
#line $LINENO "configure"
4860
cat confdefs.h >>conftest.$ac_ext
4861
cat >>conftest.$ac_ext <<_ACEOF
4862
/* end confdefs.h. */
4864
/* Override any gcc2 internal prototype to avoid an error. */
4868
/* We use char because int might match the return type of a gcc2
4869
builtin and then its argument prototype would still apply. */
4879
rm -f conftest.$ac_objext conftest$ac_exeext
4880
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4881
(eval $ac_link) 2>&5
4883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884
(exit $ac_status); } &&
4885
{ ac_try='test -s conftest$ac_exeext'
4886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
(exit $ac_status); }; }; then
4891
ac_cv_lib_ncurses_tputs=yes
4893
echo "$as_me: failed program was:" >&5
4894
sed 's/^/| /' conftest.$ac_ext >&5
4896
ac_cv_lib_ncurses_tputs=no
4898
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4899
LIBS=$ac_check_lib_save_LIBS
4901
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
4902
echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
4903
if test $ac_cv_lib_ncurses_tputs = yes; then
4904
cat >>confdefs.h <<_ACEOF
4905
#define HAVE_LIBNCURSES 1
4908
LIBS="-lncurses $LIBS"
4915
echo "$as_me:$LINENO: checking for main in -lreadline" >&5
4916
echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
4917
if test "${ac_cv_lib_readline_main+set}" = set; then
4918
echo $ECHO_N "(cached) $ECHO_C" >&6
4920
ac_check_lib_save_LIBS=$LIBS
4921
LIBS="-lreadline $LIBS"
4922
cat >conftest.$ac_ext <<_ACEOF
4923
#line $LINENO "configure"
4926
cat confdefs.h >>conftest.$ac_ext
4927
cat >>conftest.$ac_ext <<_ACEOF
4928
/* end confdefs.h. */
4939
rm -f conftest.$ac_objext conftest$ac_exeext
4940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4941
(eval $ac_link) 2>&5
4943
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944
(exit $ac_status); } &&
4945
{ ac_try='test -s conftest$ac_exeext'
4946
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950
(exit $ac_status); }; }; then
4951
ac_cv_lib_readline_main=yes
4953
echo "$as_me: failed program was:" >&5
4954
sed 's/^/| /' conftest.$ac_ext >&5
4956
ac_cv_lib_readline_main=no
4958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4959
LIBS=$ac_check_lib_save_LIBS
4961
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
4962
echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
4963
if test $ac_cv_lib_readline_main = yes; then
4964
cat >>confdefs.h <<_ACEOF
4965
#define HAVE_LIBREADLINE 1
4968
LIBS="-lreadline $LIBS"
4972
if test $ac_cv_lib_readline_main = no; then
4973
{ { echo "$as_me:$LINENO: error: vtysh needs libreadline but was not found on your system." >&5
4974
echo "$as_me: error: vtysh needs libreadline but was not found on your system." >&2;}
4975
{ (exit 1); exit 1; }; }
4977
if test "${ac_cv_header_readline_history_h+set}" = set; then
4978
echo "$as_me:$LINENO: checking for readline/history.h" >&5
4979
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
4980
if test "${ac_cv_header_readline_history_h+set}" = set; then
4981
echo $ECHO_N "(cached) $ECHO_C" >&6
4983
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
4984
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
4986
# Is the header compilable?
4987
echo "$as_me:$LINENO: checking readline/history.h usability" >&5
4988
echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
4989
cat >conftest.$ac_ext <<_ACEOF
4990
#line $LINENO "configure"
4993
cat confdefs.h >>conftest.$ac_ext
4994
cat >>conftest.$ac_ext <<_ACEOF
4995
/* end confdefs.h. */
4996
$ac_includes_default
4997
#include <readline/history.h>
4999
rm -f conftest.$ac_objext
5000
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5001
(eval $ac_compile) 2>&5
5003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004
(exit $ac_status); } &&
5005
{ ac_try='test -s conftest.$ac_objext'
5006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
(exit $ac_status); }; }; then
5011
ac_header_compiler=yes
5013
echo "$as_me: failed program was:" >&5
5014
sed 's/^/| /' conftest.$ac_ext >&5
5016
ac_header_compiler=no
5018
rm -f conftest.$ac_objext conftest.$ac_ext
5019
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5020
echo "${ECHO_T}$ac_header_compiler" >&6
5022
# Is the header present?
5023
echo "$as_me:$LINENO: checking readline/history.h presence" >&5
5024
echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
5025
cat >conftest.$ac_ext <<_ACEOF
5026
#line $LINENO "configure"
5029
cat confdefs.h >>conftest.$ac_ext
5030
cat >>conftest.$ac_ext <<_ACEOF
5031
/* end confdefs.h. */
5032
#include <readline/history.h>
5034
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5035
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5037
grep -v '^ *+' conftest.er1 >conftest.err
5039
cat conftest.err >&5
5040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041
(exit $ac_status); } >/dev/null; then
5042
if test -s conftest.err; then
5043
ac_cpp_err=$ac_c_preproc_warn_flag
5050
if test -z "$ac_cpp_err"; then
5051
ac_header_preproc=yes
5053
echo "$as_me: failed program was:" >&5
5054
sed 's/^/| /' conftest.$ac_ext >&5
5056
ac_header_preproc=no
5058
rm -f conftest.err conftest.$ac_ext
5059
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5060
echo "${ECHO_T}$ac_header_preproc" >&6
5062
# So? What about this header?
5063
case $ac_header_compiler:$ac_header_preproc in
5065
{ echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
5066
echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5067
{ echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
5068
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
5071
## ------------------------------------ ##
5072
## Report this to bug-autoconf@gnu.org. ##
5073
## ------------------------------------ ##
5076
sed "s/^/$as_me: WARNING: /" >&2
5079
{ echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
5080
echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
5081
{ echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
5082
echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
5083
{ echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
5084
echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
5087
## ------------------------------------ ##
5088
## Report this to bug-autoconf@gnu.org. ##
5089
## ------------------------------------ ##
5092
sed "s/^/$as_me: WARNING: /" >&2
5095
echo "$as_me:$LINENO: checking for readline/history.h" >&5
5096
echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
5097
if test "${ac_cv_header_readline_history_h+set}" = set; then
5098
echo $ECHO_N "(cached) $ECHO_C" >&6
5100
ac_cv_header_readline_history_h=$ac_header_preproc
5102
echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
5103
echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
5108
if test $ac_cv_header_readline_history_h = no;then
5109
{ { echo "$as_me:$LINENO: error: readline is too old to have readline/history.h, please update to the latest readline library." >&5
5110
echo "$as_me: error: readline is too old to have readline/history.h, please update to the latest readline library." >&2;}
5111
{ (exit 1); exit 1; }; }
5114
echo "$as_me:$LINENO: checking for rl_completion_matches in -lreadline" >&5
5115
echo $ECHO_N "checking for rl_completion_matches in -lreadline... $ECHO_C" >&6
5116
if test "${ac_cv_lib_readline_rl_completion_matches+set}" = set; then
5117
echo $ECHO_N "(cached) $ECHO_C" >&6
5119
ac_check_lib_save_LIBS=$LIBS
5120
LIBS="-lreadline $LIBS"
5121
cat >conftest.$ac_ext <<_ACEOF
5122
#line $LINENO "configure"
5125
cat confdefs.h >>conftest.$ac_ext
5126
cat >>conftest.$ac_ext <<_ACEOF
5127
/* end confdefs.h. */
5129
/* Override any gcc2 internal prototype to avoid an error. */
5133
/* We use char because int might match the return type of a gcc2
5134
builtin and then its argument prototype would still apply. */
5135
char rl_completion_matches ();
5139
rl_completion_matches ();
5144
rm -f conftest.$ac_objext 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); } &&
5150
{ ac_try='test -s conftest$ac_exeext'
5151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155
(exit $ac_status); }; }; then
5156
ac_cv_lib_readline_rl_completion_matches=yes
5158
echo "$as_me: failed program was:" >&5
5159
sed 's/^/| /' conftest.$ac_ext >&5
5161
ac_cv_lib_readline_rl_completion_matches=no
5163
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5164
LIBS=$ac_check_lib_save_LIBS
5166
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_rl_completion_matches" >&5
5167
echo "${ECHO_T}$ac_cv_lib_readline_rl_completion_matches" >&6
5168
if test $ac_cv_lib_readline_rl_completion_matches = yes; then
5169
cat >>confdefs.h <<_ACEOF
5170
#define HAVE_LIBREADLINE 1
5173
LIBS="-lreadline $LIBS"
5177
if test $ac_cv_lib_readline_rl_completion_matches = no; then
5179
cat >>confdefs.h <<\_ACEOF
5180
#define rl_completion_matches completion_matches
5189
if test "$with_libpam" = "yes"; then
5190
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
5191
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
5192
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
5193
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
5194
echo $ECHO_N "(cached) $ECHO_C" >&6
5196
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
5197
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
5199
# Is the header compilable?
5200
echo "$as_me:$LINENO: checking security/pam_misc.h usability" >&5
5201
echo $ECHO_N "checking security/pam_misc.h usability... $ECHO_C" >&6
5202
cat >conftest.$ac_ext <<_ACEOF
5203
#line $LINENO "configure"
5206
cat confdefs.h >>conftest.$ac_ext
5207
cat >>conftest.$ac_ext <<_ACEOF
5208
/* end confdefs.h. */
5209
$ac_includes_default
5210
#include <security/pam_misc.h>
5212
rm -f conftest.$ac_objext
5213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214
(eval $ac_compile) 2>&5
5216
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217
(exit $ac_status); } &&
5218
{ ac_try='test -s conftest.$ac_objext'
5219
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
(exit $ac_status); }; }; then
5224
ac_header_compiler=yes
5226
echo "$as_me: failed program was:" >&5
5227
sed 's/^/| /' conftest.$ac_ext >&5
5229
ac_header_compiler=no
5231
rm -f conftest.$ac_objext conftest.$ac_ext
5232
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233
echo "${ECHO_T}$ac_header_compiler" >&6
5235
# Is the header present?
5236
echo "$as_me:$LINENO: checking security/pam_misc.h presence" >&5
5237
echo $ECHO_N "checking security/pam_misc.h presence... $ECHO_C" >&6
5238
cat >conftest.$ac_ext <<_ACEOF
5239
#line $LINENO "configure"
5242
cat confdefs.h >>conftest.$ac_ext
5243
cat >>conftest.$ac_ext <<_ACEOF
5244
/* end confdefs.h. */
5245
#include <security/pam_misc.h>
5247
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5248
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5250
grep -v '^ *+' conftest.er1 >conftest.err
5252
cat conftest.err >&5
5253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254
(exit $ac_status); } >/dev/null; then
5255
if test -s conftest.err; then
5256
ac_cpp_err=$ac_c_preproc_warn_flag
5263
if test -z "$ac_cpp_err"; then
5264
ac_header_preproc=yes
5266
echo "$as_me: failed program was:" >&5
5267
sed 's/^/| /' conftest.$ac_ext >&5
5269
ac_header_preproc=no
5271
rm -f conftest.err conftest.$ac_ext
5272
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273
echo "${ECHO_T}$ac_header_preproc" >&6
5275
# So? What about this header?
5276
case $ac_header_compiler:$ac_header_preproc in
5278
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&5
5279
echo "$as_me: WARNING: security/pam_misc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
5281
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
5284
## ------------------------------------ ##
5285
## Report this to bug-autoconf@gnu.org. ##
5286
## ------------------------------------ ##
5289
sed "s/^/$as_me: WARNING: /" >&2
5292
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: present but cannot be compiled" >&5
5293
echo "$as_me: WARNING: security/pam_misc.h: present but cannot be compiled" >&2;}
5294
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&5
5295
echo "$as_me: WARNING: security/pam_misc.h: check for missing prerequisite headers?" >&2;}
5296
{ echo "$as_me:$LINENO: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&5
5297
echo "$as_me: WARNING: security/pam_misc.h: proceeding with the preprocessor's result" >&2;}
5300
## ------------------------------------ ##
5301
## Report this to bug-autoconf@gnu.org. ##
5302
## ------------------------------------ ##
5305
sed "s/^/$as_me: WARNING: /" >&2
5308
echo "$as_me:$LINENO: checking for security/pam_misc.h" >&5
5309
echo $ECHO_N "checking for security/pam_misc.h... $ECHO_C" >&6
5310
if test "${ac_cv_header_security_pam_misc_h+set}" = set; then
5311
echo $ECHO_N "(cached) $ECHO_C" >&6
5313
ac_cv_header_security_pam_misc_h=$ac_header_preproc
5315
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_misc_h" >&5
5316
echo "${ECHO_T}$ac_cv_header_security_pam_misc_h" >&6
5321
if test "$ac_cv_header_security_pam_misc_h" = yes; then
5323
cat >>confdefs.h <<\_ACEOF
5324
#define HAVE_PAM_MISC_H
5328
cat >>confdefs.h <<\_ACEOF
5329
#define PAM_CONV_FUNC misc_conv
5332
pam_conv_func="misc_conv"
5334
if test "${ac_cv_header_security_openpam_h+set}" = set; then
5335
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
5336
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
5337
if test "${ac_cv_header_security_openpam_h+set}" = set; then
5338
echo $ECHO_N "(cached) $ECHO_C" >&6
5340
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
5341
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
5343
# Is the header compilable?
5344
echo "$as_me:$LINENO: checking security/openpam.h usability" >&5
5345
echo $ECHO_N "checking security/openpam.h usability... $ECHO_C" >&6
5346
cat >conftest.$ac_ext <<_ACEOF
5347
#line $LINENO "configure"
5350
cat confdefs.h >>conftest.$ac_ext
5351
cat >>conftest.$ac_ext <<_ACEOF
5352
/* end confdefs.h. */
5353
$ac_includes_default
5354
#include <security/openpam.h>
5356
rm -f conftest.$ac_objext
5357
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358
(eval $ac_compile) 2>&5
5360
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361
(exit $ac_status); } &&
5362
{ ac_try='test -s conftest.$ac_objext'
5363
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367
(exit $ac_status); }; }; then
5368
ac_header_compiler=yes
5370
echo "$as_me: failed program was:" >&5
5371
sed 's/^/| /' conftest.$ac_ext >&5
5373
ac_header_compiler=no
5375
rm -f conftest.$ac_objext conftest.$ac_ext
5376
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5377
echo "${ECHO_T}$ac_header_compiler" >&6
5379
# Is the header present?
5380
echo "$as_me:$LINENO: checking security/openpam.h presence" >&5
5381
echo $ECHO_N "checking security/openpam.h presence... $ECHO_C" >&6
5382
cat >conftest.$ac_ext <<_ACEOF
5383
#line $LINENO "configure"
5386
cat confdefs.h >>conftest.$ac_ext
5387
cat >>conftest.$ac_ext <<_ACEOF
5388
/* end confdefs.h. */
5389
#include <security/openpam.h>
5391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5392
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5394
grep -v '^ *+' conftest.er1 >conftest.err
5396
cat conftest.err >&5
5397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398
(exit $ac_status); } >/dev/null; then
5399
if test -s conftest.err; then
5400
ac_cpp_err=$ac_c_preproc_warn_flag
5407
if test -z "$ac_cpp_err"; then
5408
ac_header_preproc=yes
5410
echo "$as_me: failed program was:" >&5
5411
sed 's/^/| /' conftest.$ac_ext >&5
5413
ac_header_preproc=no
5415
rm -f conftest.err conftest.$ac_ext
5416
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5417
echo "${ECHO_T}$ac_header_preproc" >&6
5419
# So? What about this header?
5420
case $ac_header_compiler:$ac_header_preproc in
5422
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&5
5423
echo "$as_me: WARNING: security/openpam.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5424
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
5425
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
5428
## ------------------------------------ ##
5429
## Report this to bug-autoconf@gnu.org. ##
5430
## ------------------------------------ ##
5433
sed "s/^/$as_me: WARNING: /" >&2
5436
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: present but cannot be compiled" >&5
5437
echo "$as_me: WARNING: security/openpam.h: present but cannot be compiled" >&2;}
5438
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: check for missing prerequisite headers?" >&5
5439
echo "$as_me: WARNING: security/openpam.h: check for missing prerequisite headers?" >&2;}
5440
{ echo "$as_me:$LINENO: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&5
5441
echo "$as_me: WARNING: security/openpam.h: proceeding with the preprocessor's result" >&2;}
5444
## ------------------------------------ ##
5445
## Report this to bug-autoconf@gnu.org. ##
5446
## ------------------------------------ ##
5449
sed "s/^/$as_me: WARNING: /" >&2
5452
echo "$as_me:$LINENO: checking for security/openpam.h" >&5
5453
echo $ECHO_N "checking for security/openpam.h... $ECHO_C" >&6
5454
if test "${ac_cv_header_security_openpam_h+set}" = set; then
5455
echo $ECHO_N "(cached) $ECHO_C" >&6
5457
ac_cv_header_security_openpam_h=$ac_header_preproc
5459
echo "$as_me:$LINENO: result: $ac_cv_header_security_openpam_h" >&5
5460
echo "${ECHO_T}$ac_cv_header_security_openpam_h" >&6
5465
if test "$ac_cv_header_security_openpam_h" = yes; then
5467
cat >>confdefs.h <<\_ACEOF
5468
#define HAVE_OPENPAM_H
5472
cat >>confdefs.h <<\_ACEOF
5473
#define PAM_CONV_FUNC openpam_ttyconv
5476
pam_conv_func="openpam_ttyconv"
5478
if test -z "$ac_cv_header_security_pam_misc_h$ac_cv_header_security_openpam_h" ; then
5479
{ echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
5480
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
5485
if test "$with_libpam" = "yes"; then
5486
echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
5487
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
5488
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
5489
echo $ECHO_N "(cached) $ECHO_C" >&6
5491
ac_check_lib_save_LIBS=$LIBS
5493
cat >conftest.$ac_ext <<_ACEOF
5494
#line $LINENO "configure"
5497
cat confdefs.h >>conftest.$ac_ext
5498
cat >>conftest.$ac_ext <<_ACEOF
5499
/* end confdefs.h. */
5501
/* Override any gcc2 internal prototype to avoid an error. */
5505
/* We use char because int might match the return type of a gcc2
5506
builtin and then its argument prototype would still apply. */
5516
rm -f conftest.$ac_objext conftest$ac_exeext
5517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518
(eval $ac_link) 2>&5
5520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521
(exit $ac_status); } &&
5522
{ ac_try='test -s conftest$ac_exeext'
5523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527
(exit $ac_status); }; }; then
5528
ac_cv_lib_pam_pam_start=yes
5530
echo "$as_me: failed program was:" >&5
5531
sed 's/^/| /' conftest.$ac_ext >&5
5533
ac_cv_lib_pam_pam_start=no
5535
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5536
LIBS=$ac_check_lib_save_LIBS
5538
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
5539
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
5540
if test $ac_cv_lib_pam_pam_start = yes; then
5541
as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
5542
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
5543
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
5544
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5545
echo $ECHO_N "(cached) $ECHO_C" >&6
5547
ac_check_lib_save_LIBS=$LIBS
5549
cat >conftest.$ac_ext <<_ACEOF
5550
#line $LINENO "configure"
5553
cat confdefs.h >>conftest.$ac_ext
5554
cat >>conftest.$ac_ext <<_ACEOF
5555
/* end confdefs.h. */
5557
/* Override any gcc2 internal prototype to avoid an error. */
5561
/* We use char because int might match the return type of a gcc2
5562
builtin and then its argument prototype would still apply. */
5563
char $pam_conv_func ();
5572
rm -f conftest.$ac_objext conftest$ac_exeext
5573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5574
(eval $ac_link) 2>&5
5576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577
(exit $ac_status); } &&
5578
{ ac_try='test -s conftest$ac_exeext'
5579
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583
(exit $ac_status); }; }; then
5584
eval "$as_ac_Lib=yes"
5586
echo "$as_me: failed program was:" >&5
5587
sed 's/^/| /' conftest.$ac_ext >&5
5589
eval "$as_ac_Lib=no"
5591
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5592
LIBS=$ac_check_lib_save_LIBS
5594
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5595
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5596
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5598
cat >>confdefs.h <<\_ACEOF
5605
cat >>confdefs.h <<\_ACEOF
5609
LIBPAM="-lpam -lpam_misc"
5615
echo "$as_me:$LINENO: checking for pam_end in -lpam" >&5
5616
echo $ECHO_N "checking for pam_end in -lpam... $ECHO_C" >&6
5617
if test "${ac_cv_lib_pam_pam_end+set}" = set; then
5618
echo $ECHO_N "(cached) $ECHO_C" >&6
5620
ac_check_lib_save_LIBS=$LIBS
5621
LIBS="-lpam -ldl $LIBS"
5622
cat >conftest.$ac_ext <<_ACEOF
5623
#line $LINENO "configure"
5626
cat confdefs.h >>conftest.$ac_ext
5627
cat >>conftest.$ac_ext <<_ACEOF
5628
/* end confdefs.h. */
5630
/* Override any gcc2 internal prototype to avoid an error. */
5634
/* We use char because int might match the return type of a gcc2
5635
builtin and then its argument prototype would still apply. */
5645
rm -f conftest.$ac_objext conftest$ac_exeext
5646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647
(eval $ac_link) 2>&5
5649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650
(exit $ac_status); } &&
5651
{ ac_try='test -s conftest$ac_exeext'
5652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); }; }; then
5657
ac_cv_lib_pam_pam_end=yes
5659
echo "$as_me: failed program was:" >&5
5660
sed 's/^/| /' conftest.$ac_ext >&5
5662
ac_cv_lib_pam_pam_end=no
5664
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5665
LIBS=$ac_check_lib_save_LIBS
5667
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_end" >&5
5668
echo "${ECHO_T}$ac_cv_lib_pam_pam_end" >&6
5669
if test $ac_cv_lib_pam_pam_end = yes; then
5670
as_ac_Lib=`echo "ac_cv_lib_pam_$pam_conv_func" | $as_tr_sh`
5671
echo "$as_me:$LINENO: checking for $pam_conv_func in -lpam" >&5
5672
echo $ECHO_N "checking for $pam_conv_func in -lpam... $ECHO_C" >&6
5673
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5674
echo $ECHO_N "(cached) $ECHO_C" >&6
5676
ac_check_lib_save_LIBS=$LIBS
5678
cat >conftest.$ac_ext <<_ACEOF
5679
#line $LINENO "configure"
5682
cat confdefs.h >>conftest.$ac_ext
5683
cat >>conftest.$ac_ext <<_ACEOF
5684
/* end confdefs.h. */
5686
/* Override any gcc2 internal prototype to avoid an error. */
5690
/* We use char because int might match the return type of a gcc2
5691
builtin and then its argument prototype would still apply. */
5692
char $pam_conv_func ();
5701
rm -f conftest.$ac_objext conftest$ac_exeext
5702
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5703
(eval $ac_link) 2>&5
5705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
(exit $ac_status); } &&
5707
{ ac_try='test -s conftest$ac_exeext'
5708
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712
(exit $ac_status); }; }; then
5713
eval "$as_ac_Lib=yes"
5715
echo "$as_me: failed program was:" >&5
5716
sed 's/^/| /' conftest.$ac_ext >&5
5718
eval "$as_ac_Lib=no"
5720
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5721
LIBS=$ac_check_lib_save_LIBS
5723
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5724
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5725
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5727
cat >>confdefs.h <<\_ACEOF
5734
cat >>confdefs.h <<\_ACEOF
5738
LIBPAM="-lpam -ldl -lpam_misc"
5744
{ echo "$as_me:$LINENO: WARNING: *** pam support will not be built ***" >&5
5745
echo "$as_me: WARNING: *** pam support will not be built ***" >&2;}
5755
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5756
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
5757
if test "${ac_cv_c_bigendian+set}" = set; then
5758
echo $ECHO_N "(cached) $ECHO_C" >&6
5760
# See if sys/param.h defines the BYTE_ORDER macro.
5761
cat >conftest.$ac_ext <<_ACEOF
5762
#line $LINENO "configure"
5765
cat confdefs.h >>conftest.$ac_ext
5766
cat >>conftest.$ac_ext <<_ACEOF
5767
/* end confdefs.h. */
5768
#include <sys/types.h>
5769
#include <sys/param.h>
5774
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
5782
rm -f conftest.$ac_objext
5783
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5784
(eval $ac_compile) 2>&5
5786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787
(exit $ac_status); } &&
5788
{ ac_try='test -s conftest.$ac_objext'
5789
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793
(exit $ac_status); }; }; then
5794
# It does; now see whether it defined to BIG_ENDIAN or not.
5795
cat >conftest.$ac_ext <<_ACEOF
5796
#line $LINENO "configure"
5799
cat confdefs.h >>conftest.$ac_ext
5800
cat >>conftest.$ac_ext <<_ACEOF
5801
/* end confdefs.h. */
5802
#include <sys/types.h>
5803
#include <sys/param.h>
5808
#if BYTE_ORDER != BIG_ENDIAN
5816
rm -f conftest.$ac_objext
5817
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5818
(eval $ac_compile) 2>&5
5820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821
(exit $ac_status); } &&
5822
{ ac_try='test -s conftest.$ac_objext'
5823
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827
(exit $ac_status); }; }; then
5828
ac_cv_c_bigendian=yes
5830
echo "$as_me: failed program was:" >&5
5831
sed 's/^/| /' conftest.$ac_ext >&5
5833
ac_cv_c_bigendian=no
5835
rm -f conftest.$ac_objext conftest.$ac_ext
5837
echo "$as_me: failed program was:" >&5
5838
sed 's/^/| /' conftest.$ac_ext >&5
5840
# It does not; compile a test program.
5841
if test "$cross_compiling" = yes; then
5842
# try to guess the endianness by grepping values into an object file
5843
ac_cv_c_bigendian=unknown
5844
cat >conftest.$ac_ext <<_ACEOF
5845
#line $LINENO "configure"
5848
cat confdefs.h >>conftest.$ac_ext
5849
cat >>conftest.$ac_ext <<_ACEOF
5850
/* end confdefs.h. */
5851
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5852
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5853
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
5854
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5855
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5856
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
5860
_ascii (); _ebcdic ();
5865
rm -f conftest.$ac_objext
5866
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5867
(eval $ac_compile) 2>&5
5869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870
(exit $ac_status); } &&
5871
{ ac_try='test -s conftest.$ac_objext'
5872
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876
(exit $ac_status); }; }; then
5877
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
5878
ac_cv_c_bigendian=yes
5880
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5881
if test "$ac_cv_c_bigendian" = unknown; then
5882
ac_cv_c_bigendian=no
5884
# finding both strings is unlikely to happen, but who knows?
5885
ac_cv_c_bigendian=unknown
5889
echo "$as_me: failed program was:" >&5
5890
sed 's/^/| /' conftest.$ac_ext >&5
5893
rm -f conftest.$ac_objext conftest.$ac_ext
5895
cat >conftest.$ac_ext <<_ACEOF
5896
#line $LINENO "configure"
5899
cat confdefs.h >>conftest.$ac_ext
5900
cat >>conftest.$ac_ext <<_ACEOF
5901
/* end confdefs.h. */
5905
/* Are we little or big endian? From Harbison&Steele. */
5909
char c[sizeof (long)];
5912
exit (u.c[sizeof (long) - 1] == 1);
5915
rm -f conftest$ac_exeext
5916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5917
(eval $ac_link) 2>&5
5919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5921
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925
(exit $ac_status); }; }; then
5926
ac_cv_c_bigendian=no
5928
echo "$as_me: program exited with status $ac_status" >&5
5929
echo "$as_me: failed program was:" >&5
5930
sed 's/^/| /' conftest.$ac_ext >&5
5933
ac_cv_c_bigendian=yes
5935
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5938
rm -f conftest.$ac_objext conftest.$ac_ext
5940
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5941
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
5942
case $ac_cv_c_bigendian in
5945
cat >>confdefs.h <<\_ACEOF
5946
#define WORDS_BIGENDIAN 1
5952
{ { echo "$as_me:$LINENO: error: unknown endianness
5953
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5954
echo "$as_me: error: unknown endianness
5955
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5956
{ (exit 1); exit 1; }; } ;;
5974
for ac_func in memset memcpy strerror inet_aton daemon snprintf vsnprintf \
5975
strlcat strlcpy if_nametoindex if_indextoname getifaddrs \
5978
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979
echo "$as_me:$LINENO: checking for $ac_func" >&5
5980
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5981
if eval "test \"\${$as_ac_var+set}\" = set"; then
5982
echo $ECHO_N "(cached) $ECHO_C" >&6
5984
cat >conftest.$ac_ext <<_ACEOF
5985
#line $LINENO "configure"
5988
cat confdefs.h >>conftest.$ac_ext
5989
cat >>conftest.$ac_ext <<_ACEOF
5990
/* end confdefs.h. */
5991
/* System header to define __stub macros and hopefully few prototypes,
5992
which can conflict with char $ac_func (); below.
5993
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994
<limits.h> exists even on freestanding compilers. */
5996
# include <limits.h>
5998
# include <assert.h>
6000
/* Override any gcc2 internal prototype to avoid an error. */
6005
/* We use char because int might match the return type of a gcc2
6006
builtin and then its argument prototype would still apply. */
6008
/* The GNU C library defines this for functions which it implements
6009
to always fail with ENOSYS. Some functions are actually named
6010
something starting with __ and the normal name is an alias. */
6011
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6014
char (*f) () = $ac_func;
6023
return f != $ac_func;
6028
rm -f conftest.$ac_objext conftest$ac_exeext
6029
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030
(eval $ac_link) 2>&5
6032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033
(exit $ac_status); } &&
6034
{ ac_try='test -s conftest$ac_exeext'
6035
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039
(exit $ac_status); }; }; then
6040
eval "$as_ac_var=yes"
6042
echo "$as_me: failed program was:" >&5
6043
sed 's/^/| /' conftest.$ac_ext >&5
6045
eval "$as_ac_var=no"
6047
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6049
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6050
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6051
if test `eval echo '${'$as_ac_var'}'` = yes; then
6052
cat >>confdefs.h <<_ACEOF
6053
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6060
for ac_func in setproctitle
6062
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6063
echo "$as_me:$LINENO: checking for $ac_func" >&5
6064
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6065
if eval "test \"\${$as_ac_var+set}\" = set"; then
6066
echo $ECHO_N "(cached) $ECHO_C" >&6
6068
cat >conftest.$ac_ext <<_ACEOF
6069
#line $LINENO "configure"
6072
cat confdefs.h >>conftest.$ac_ext
6073
cat >>conftest.$ac_ext <<_ACEOF
6074
/* end confdefs.h. */
6075
/* System header to define __stub macros and hopefully few prototypes,
6076
which can conflict with char $ac_func (); below.
6077
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6078
<limits.h> exists even on freestanding compilers. */
6080
# include <limits.h>
6082
# include <assert.h>
6084
/* Override any gcc2 internal prototype to avoid an error. */
6089
/* We use char because int might match the return type of a gcc2
6090
builtin and then its argument prototype would still apply. */
6092
/* The GNU C library defines this for functions which it implements
6093
to always fail with ENOSYS. Some functions are actually named
6094
something starting with __ and the normal name is an alias. */
6095
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6098
char (*f) () = $ac_func;
6107
return f != $ac_func;
6112
rm -f conftest.$ac_objext conftest$ac_exeext
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114
(eval $ac_link) 2>&5
6116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117
(exit $ac_status); } &&
6118
{ ac_try='test -s conftest$ac_exeext'
6119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123
(exit $ac_status); }; }; then
6124
eval "$as_ac_var=yes"
6126
echo "$as_me: failed program was:" >&5
6127
sed 's/^/| /' conftest.$ac_ext >&5
6129
eval "$as_ac_var=no"
6131
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6133
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6134
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6135
if test `eval echo '${'$as_ac_var'}'` = yes; then
6136
cat >>confdefs.h <<_ACEOF
6137
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6141
echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
6142
echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
6143
if test "${ac_cv_lib_util_setproctitle+set}" = set; then
6144
echo $ECHO_N "(cached) $ECHO_C" >&6
6146
ac_check_lib_save_LIBS=$LIBS
6148
cat >conftest.$ac_ext <<_ACEOF
6149
#line $LINENO "configure"
6152
cat confdefs.h >>conftest.$ac_ext
6153
cat >>conftest.$ac_ext <<_ACEOF
6154
/* end confdefs.h. */
6156
/* Override any gcc2 internal prototype to avoid an error. */
6160
/* We use char because int might match the return type of a gcc2
6161
builtin and then its argument prototype would still apply. */
6162
char setproctitle ();
6171
rm -f conftest.$ac_objext conftest$ac_exeext
6172
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6173
(eval $ac_link) 2>&5
6175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176
(exit $ac_status); } &&
6177
{ ac_try='test -s conftest$ac_exeext'
6178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182
(exit $ac_status); }; }; then
6183
ac_cv_lib_util_setproctitle=yes
6185
echo "$as_me: failed program was:" >&5
6186
sed 's/^/| /' conftest.$ac_ext >&5
6188
ac_cv_lib_util_setproctitle=no
6190
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6191
LIBS=$ac_check_lib_save_LIBS
6193
echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
6194
echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
6195
if test $ac_cv_lib_util_setproctitle = yes; then
6198
cat >>confdefs.h <<\_ACEOF
6199
#define HAVE_SETPROCTITLE
6212
echo "$as_me:$LINENO: checking zebra between kernel interface method" >&5
6213
echo $ECHO_N "checking zebra between kernel interface method... $ECHO_C" >&6
6214
if test x"$opsys" = x"gnu-linux"; then
6215
if test "${enable_netlink}" = "yes";then
6216
echo "$as_me:$LINENO: result: netlink" >&5
6217
echo "${ECHO_T}netlink" >&6
6218
RT_METHOD=rt_netlink.o
6220
cat >>confdefs.h <<\_ACEOF
6221
#define HAVE_NETLINK
6225
elif test "${enable_netlink}" = "no"; then
6226
echo "$as_me:$LINENO: result: ioctl" >&5
6227
echo "${ECHO_T}ioctl" >&6
6228
RT_METHOD=rt_ioctl.o
6231
echo "$as_me:$LINENO: result: netlink" >&5
6232
echo "${ECHO_T}netlink" >&6
6233
RT_METHOD=rt_netlink.o
6235
cat >>confdefs.h <<\_ACEOF
6236
#define HAVE_NETLINK
6242
if test "$opsys" = "sol2-6";then
6243
echo "$as_me:$LINENO: result: solaris" >&5
6244
echo "${ECHO_T}solaris" >&6
6245
KERNEL_METHOD="kernel_socket.o"
6246
RT_METHOD="rt_socket.o"
6247
elif test "$opsys" = "irix" ; then
6248
echo "$as_me:$LINENO: result: irix" >&5
6249
echo "${ECHO_T}irix" >&6
6250
KERNEL_METHOD="kernel_socket.o"
6251
RT_METHOD="rt_socket.o"
6253
if test "$cross_compiling" = yes; then
6254
KERNEL_METHOD=kernel_socket.o
6255
RT_METHOD=rt_socket.o
6256
echo "$as_me:$LINENO: result: socket" >&5
6257
echo "${ECHO_T}socket" >&6
6259
cat >conftest.$ac_ext <<_ACEOF
6260
#line $LINENO "configure"
6263
cat confdefs.h >>conftest.$ac_ext
6264
cat >>conftest.$ac_ext <<_ACEOF
6265
/* end confdefs.h. */
6267
#include <sys/types.h>
6268
#include <sys/socket.h>
6274
ac_sock = socket (AF_ROUTE, SOCK_RAW, 0);
6275
if (ac_sock < 0 && errno == EINVAL)
6280
rm -f conftest$ac_exeext
6281
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6282
(eval $ac_link) 2>&5
6284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6286
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290
(exit $ac_status); }; }; then
6291
KERNEL_METHOD=kernel_socket.o
6292
RT_METHOD=rt_socket.o
6293
echo "$as_me:$LINENO: result: socket" >&5
6294
echo "${ECHO_T}socket" >&6
6296
echo "$as_me: program exited with status $ac_status" >&5
6297
echo "$as_me: failed program was:" >&5
6298
sed 's/^/| /' conftest.$ac_ext >&5
6301
RT_METHOD=rt_ioctl.o
6302
echo "$as_me:$LINENO: result: ioctl" >&5
6303
echo "${ECHO_T}ioctl" >&6
6305
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6313
echo "$as_me:$LINENO: checking route read method check" >&5
6314
echo $ECHO_N "checking route read method check... $ECHO_C" >&6
6315
if test "${zebra_rtread+set}" = set; then
6316
echo $ECHO_N "(cached) $ECHO_C" >&6
6318
if test "$netlink" = yes; then
6319
RTREAD_METHOD="rtread_netlink.o"
6320
zebra_rtread="netlink"
6322
for zebra_rtread in /proc/net/route /dev/ip /dev/null;
6324
test x`ls $zebra_rtread 2>/dev/null` = x"$zebra_rtread" && break
6326
case $zebra_rtread in
6327
"/proc/net/route") RTREAD_METHOD="rtread_proc.o"
6328
zebra_rtread="proc";;
6331
*-freebsd*) RTREAD_METHOD=rtread_sysctl.o
6332
zebra_rtread="sysctl";;
6333
*) RTREAD_METHOD="rtread_getmsg.o"
6334
zebra_rtread="getmsg";;
6336
*) RTREAD_METHOD="rtread_sysctl.o"
6337
zebra_rtread="sysctl";;
6341
echo "$as_me:$LINENO: result: $zebra_rtread" >&5
6342
echo "${ECHO_T}$zebra_rtread" >&6
6345
echo "$as_me:$LINENO: checking interface looking up method" >&5
6346
echo $ECHO_N "checking interface looking up method... $ECHO_C" >&6
6347
if test "$netlink" = yes; then
6348
echo "$as_me:$LINENO: result: netlink" >&5
6349
echo "${ECHO_T}netlink" >&6
6350
IF_METHOD=if_netlink.o
6352
if test "$opsys" = "sol2-6";then
6353
echo "$as_me:$LINENO: result: solaris" >&5
6354
echo "${ECHO_T}solaris" >&6
6355
IF_METHOD=if_ioctl.o
6356
elif test "$opsys" = "irix" ; then
6357
echo "$as_me:$LINENO: result: irix" >&5
6358
echo "${ECHO_T}irix" >&6
6359
IF_METHOD=if_ioctl.o
6360
elif test "$opsys" = "openbsd";then
6361
echo "$as_me:$LINENO: result: openbsd" >&5
6362
echo "${ECHO_T}openbsd" >&6
6363
IF_METHOD=if_ioctl.o
6364
elif grep NET_RT_IFLIST /usr/include/sys/socket.h >/dev/null 2>&1; then
6365
echo "$as_me:$LINENO: result: sysctl" >&5
6366
echo "${ECHO_T}sysctl" >&6
6367
IF_METHOD=if_sysctl.o
6369
cat >>confdefs.h <<\_ACEOF
6370
#define HAVE_NET_RT_IFLIST
6374
echo "$as_me:$LINENO: result: ioctl" >&5
6375
echo "${ECHO_T}ioctl" >&6
6376
IF_METHOD=if_ioctl.o
6381
if test -r /proc/net/dev; then
6383
cat >>confdefs.h <<\_ACEOF
6384
#define HAVE_PROC_NET_DEV
6390
if test -r /proc/net/if_inet6; then
6392
cat >>confdefs.h <<\_ACEOF
6393
#define HAVE_PROC_NET_IF_INET6
6400
echo "$as_me:$LINENO: checking ipforward method check" >&5
6401
echo $ECHO_N "checking ipforward method check... $ECHO_C" >&6
6402
if test "${zebra_ipforward_path+set}" = set; then
6403
echo $ECHO_N "(cached) $ECHO_C" >&6
6405
for zebra_ipforward_path in /proc/net/snmp /dev/ip /dev/null;
6407
test x`ls $zebra_ipforward_path 2>/dev/null` = x"$zebra_ipforward_path" && break
6409
case $zebra_ipforward_path in
6410
"/proc/net/snmp") IPFORWARD=ipforward_proc.o
6411
zebra_ipforward_path="proc";;
6414
*-nec-sysv4*) IPFORWARD=ipforward_ews.o
6415
zebra_ipforward_path="ews";;
6416
*-freebsd*) IPFORWARD=ipforward_sysctl.o
6417
zebra_ipforward_path="sysctl";;
6418
*) IPFORWARD=ipforward_solaris.o
6419
zebra_ipforward_path="solaris";;
6421
*) IPFORWARD=ipforward_sysctl.o
6422
zebra_ipforward_path="sysctl";;
6425
echo "$as_me:$LINENO: result: $zebra_ipforward_path" >&5
6426
echo "${ECHO_T}$zebra_ipforward_path" >&6
6430
for ac_func in getaddrinfo
6432
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6433
echo "$as_me:$LINENO: checking for $ac_func" >&5
6434
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6435
if eval "test \"\${$as_ac_var+set}\" = set"; then
6436
echo $ECHO_N "(cached) $ECHO_C" >&6
6438
cat >conftest.$ac_ext <<_ACEOF
6439
#line $LINENO "configure"
6442
cat confdefs.h >>conftest.$ac_ext
6443
cat >>conftest.$ac_ext <<_ACEOF
6444
/* end confdefs.h. */
6445
/* System header to define __stub macros and hopefully few prototypes,
6446
which can conflict with char $ac_func (); below.
6447
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6448
<limits.h> exists even on freestanding compilers. */
6450
# include <limits.h>
6452
# include <assert.h>
6454
/* Override any gcc2 internal prototype to avoid an error. */
6459
/* We use char because int might match the return type of a gcc2
6460
builtin and then its argument prototype would still apply. */
6462
/* The GNU C library defines this for functions which it implements
6463
to always fail with ENOSYS. Some functions are actually named
6464
something starting with __ and the normal name is an alias. */
6465
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468
char (*f) () = $ac_func;
6477
return f != $ac_func;
6482
rm -f conftest.$ac_objext conftest$ac_exeext
6483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6484
(eval $ac_link) 2>&5
6486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487
(exit $ac_status); } &&
6488
{ ac_try='test -s conftest$ac_exeext'
6489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493
(exit $ac_status); }; }; then
6494
eval "$as_ac_var=yes"
6496
echo "$as_me: failed program was:" >&5
6497
sed 's/^/| /' conftest.$ac_ext >&5
6499
eval "$as_ac_var=no"
6501
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6503
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6504
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6505
if test `eval echo '${'$as_ac_var'}'` = yes; then
6506
cat >>confdefs.h <<_ACEOF
6507
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6509
have_getaddrinfo=yes
6516
echo "$as_me:$LINENO: checking whether does this OS have IPv6 stack" >&5
6517
echo $ECHO_N "checking whether does this OS have IPv6 stack... $ECHO_C" >&6
6518
if test "${enable_ipv6}" = "no"; then
6519
echo "$as_me:$LINENO: result: disabled" >&5
6520
echo "${ECHO_T}disabled" >&6
6522
if grep IPV6_INRIA_VERSION /usr/include/netinet/in.h >/dev/null 2>&1; then
6525
cat >>confdefs.h <<\_ACEOF
6530
cat >>confdefs.h <<\_ACEOF
6531
#define INRIA_IPV6 1
6537
echo "$as_me:$LINENO: result: INRIA IPv6" >&5
6538
echo "${ECHO_T}INRIA IPv6" >&6
6539
elif grep WIDE /usr/include/netinet6/in6.h >/dev/null 2>&1; then
6542
cat >>confdefs.h <<\_ACEOF
6547
cat >>confdefs.h <<\_ACEOF
6553
if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
6554
LIB_IPV6="-L/usr/local/v6/lib -linet6"
6556
echo "$as_me:$LINENO: result: KAME" >&5
6557
echo "${ECHO_T}KAME" >&6
6558
elif grep MUSICA /usr/include6/netinet6/in6.h >/dev/null 2>&1; then
6561
cat >>confdefs.h <<\_ACEOF
6566
cat >>confdefs.h <<\_ACEOF
6571
cat >>confdefs.h <<\_ACEOF
6577
if test -d /usr/local/v6/lib -a -f /usr/local/v6/lib/libinet6.a; then
6578
LIB_IPV6="-L/usr/local/v6/lib -linet6"
6580
echo "$as_me:$LINENO: result: MUSICA" >&5
6581
echo "${ECHO_T}MUSICA" >&6
6582
elif grep NRL /usr/include/netinet6/in6.h >/dev/null 2>&1; then
6585
cat >>confdefs.h <<\_ACEOF
6590
cat >>confdefs.h <<\_ACEOF
6596
if test x"$opsys" = x"bsdi";then
6598
cat >>confdefs.h <<\_ACEOF
6602
echo "$as_me:$LINENO: result: BSDI_NRL" >&5
6603
echo "${ECHO_T}BSDI_NRL" >&6
6605
echo "$as_me:$LINENO: result: NRL" >&5
6606
echo "${ECHO_T}NRL" >&6
6608
elif test "${enable_ipv6}" = "yes"; then
6609
cat >conftest.$ac_ext <<_ACEOF
6610
#line $LINENO "configure"
6613
cat confdefs.h >>conftest.$ac_ext
6614
cat >>conftest.$ac_ext <<_ACEOF
6615
/* end confdefs.h. */
6617
#include <linux/version.h>
6618
/* 2.1.128 or later */
6619
#if LINUX_VERSION_CODE >= 0x020180
6623
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6624
$EGREP "yes" >/dev/null 2>&1; then
6626
zebra_cv_linux_ipv6=yes
6627
echo "$as_me:$LINENO: result: Linux IPv6" >&5
6628
echo "${ECHO_T}Linux IPv6" >&6
6633
if test x`ls /proc/net/ipv6_route 2>/dev/null` = x"/proc/net/ipv6_route"
6636
zebra_cv_linux_ipv6=yes
6637
echo "$as_me:$LINENO: result: Linux IPv6" >&5
6638
echo "${ECHO_T}Linux IPv6" >&6
6642
if test "$zebra_cv_linux_ipv6" = "yes";then
6643
echo "$as_me:$LINENO: checking for GNU libc >= 2.1" >&5
6644
echo $ECHO_N "checking for GNU libc >= 2.1... $ECHO_C" >&6
6646
cat >>confdefs.h <<\_ACEOF
6650
cat >conftest.$ac_ext <<_ACEOF
6651
#line $LINENO "configure"
6654
cat confdefs.h >>conftest.$ac_ext
6655
cat >>conftest.$ac_ext <<_ACEOF
6656
/* end confdefs.h. */
6658
#include <features.h>
6659
#if __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 1
6663
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664
$EGREP "yes" >/dev/null 2>&1; then
6667
cat >>confdefs.h <<\_ACEOF
6668
#define LINUX_IPV6 1
6671
echo "$as_me:$LINENO: result: yes" >&5
6672
echo "${ECHO_T}yes" >&6
6674
echo "$as_me:$LINENO: result: no" >&5
6675
echo "${ECHO_T}no" >&6
6682
if test "$glibc" != "yes"; then
6683
INCLUDES="-I/usr/inet6/include"
6684
if test x`ls /usr/inet6/lib/libinet6.a 2>/dev/null` != x;then
6685
LIB_IPV6="-L/usr/inet6/lib -linet6"
6690
LIBS="$LIB_IPV6 $LIBS"
6693
if test x"$RIPNGD" = x""; then
6694
echo "$as_me:$LINENO: result: IPv4 only" >&5
6695
echo "${ECHO_T}IPv4 only" >&6
6699
if test "x${zebra_cv_ipv6}" = "xyes"; then
6705
for ac_header in netinet6/in6.h netinet/in6_var.h netinet/icmp6.h \
6706
netinet6/in6_var.h netinet6/nd6.h
6708
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6710
echo "$as_me:$LINENO: checking for $ac_header" >&5
6711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6712
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6713
echo $ECHO_N "(cached) $ECHO_C" >&6
6715
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6716
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6718
# Is the header compilable?
6719
echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6721
cat >conftest.$ac_ext <<_ACEOF
6722
#line $LINENO "configure"
6725
cat confdefs.h >>conftest.$ac_ext
6726
cat >>conftest.$ac_ext <<_ACEOF
6727
/* end confdefs.h. */
6728
$ac_includes_default
6729
#include <$ac_header>
6731
rm -f conftest.$ac_objext
6732
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6733
(eval $ac_compile) 2>&5
6735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736
(exit $ac_status); } &&
6737
{ ac_try='test -s conftest.$ac_objext'
6738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742
(exit $ac_status); }; }; then
6743
ac_header_compiler=yes
6745
echo "$as_me: failed program was:" >&5
6746
sed 's/^/| /' conftest.$ac_ext >&5
6748
ac_header_compiler=no
6750
rm -f conftest.$ac_objext conftest.$ac_ext
6751
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6752
echo "${ECHO_T}$ac_header_compiler" >&6
6754
# Is the header present?
6755
echo "$as_me:$LINENO: checking $ac_header presence" >&5
6756
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6757
cat >conftest.$ac_ext <<_ACEOF
6758
#line $LINENO "configure"
6761
cat confdefs.h >>conftest.$ac_ext
6762
cat >>conftest.$ac_ext <<_ACEOF
6763
/* end confdefs.h. */
6764
#include <$ac_header>
6766
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6767
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6769
grep -v '^ *+' conftest.er1 >conftest.err
6771
cat conftest.err >&5
6772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773
(exit $ac_status); } >/dev/null; then
6774
if test -s conftest.err; then
6775
ac_cpp_err=$ac_c_preproc_warn_flag
6782
if test -z "$ac_cpp_err"; then
6783
ac_header_preproc=yes
6785
echo "$as_me: failed program was:" >&5
6786
sed 's/^/| /' conftest.$ac_ext >&5
6788
ac_header_preproc=no
6790
rm -f conftest.err conftest.$ac_ext
6791
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6792
echo "${ECHO_T}$ac_header_preproc" >&6
6794
# So? What about this header?
6795
case $ac_header_compiler:$ac_header_preproc in
6797
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6798
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6799
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6803
## ------------------------------------ ##
6804
## Report this to bug-autoconf@gnu.org. ##
6805
## ------------------------------------ ##
6808
sed "s/^/$as_me: WARNING: /" >&2
6811
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6812
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6813
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6814
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6815
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6816
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6819
## ------------------------------------ ##
6820
## Report this to bug-autoconf@gnu.org. ##
6821
## ------------------------------------ ##
6824
sed "s/^/$as_me: WARNING: /" >&2
6827
echo "$as_me:$LINENO: checking for $ac_header" >&5
6828
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6829
if eval "test \"\${$as_ac_Header+set}\" = set"; then
6830
echo $ECHO_N "(cached) $ECHO_C" >&6
6832
eval "$as_ac_Header=$ac_header_preproc"
6834
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6835
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6838
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6839
cat >>confdefs.h <<_ACEOF
6840
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6849
if test "${enable_zebra}" = "no";then
6855
if test "${enable_bgpd}" = "no";then
6861
if test "${enable_ripd}" = "no";then
6867
if test "${enable_ospfd}" = "no";then
6874
if test "${enable_opaque_lsa}" = "yes"; then
6875
if test "${enable_ospfapi}" != "no";then
6877
cat >>confdefs.h <<\_ACEOF
6878
#define SUPPORT_OSPF_API
6882
if test "${enable_ospfclient}" != "no";then
6883
OSPFCLIENT="ospfclient"
6889
case "${enable_ripngd}" in
6890
"yes") RIPNGD="ripngd";;
6895
case "${enable_ospf6d}" in
6896
"yes") OSPF6D="ospf6d";;
6901
case "${enable_isisd}" in
6902
"yes") ISISD="isisd";;
6907
if test "${enable_bgp_announce}" = "no";then
6909
cat >>confdefs.h <<\_ACEOF
6910
#define DISABLE_BGP_ANNOUNCE
6927
echo "$as_me:$LINENO: checking for inet_ntop in -lc" >&5
6928
echo $ECHO_N "checking for inet_ntop in -lc... $ECHO_C" >&6
6929
if test "${ac_cv_lib_c_inet_ntop+set}" = set; then
6930
echo $ECHO_N "(cached) $ECHO_C" >&6
6932
ac_check_lib_save_LIBS=$LIBS
6934
cat >conftest.$ac_ext <<_ACEOF
6935
#line $LINENO "configure"
6938
cat confdefs.h >>conftest.$ac_ext
6939
cat >>conftest.$ac_ext <<_ACEOF
6940
/* end confdefs.h. */
6942
/* Override any gcc2 internal prototype to avoid an error. */
6946
/* We use char because int might match the return type of a gcc2
6947
builtin and then its argument prototype would still apply. */
6957
rm -f conftest.$ac_objext conftest$ac_exeext
6958
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6959
(eval $ac_link) 2>&5
6961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962
(exit $ac_status); } &&
6963
{ ac_try='test -s conftest$ac_exeext'
6964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968
(exit $ac_status); }; }; then
6969
ac_cv_lib_c_inet_ntop=yes
6971
echo "$as_me: failed program was:" >&5
6972
sed 's/^/| /' conftest.$ac_ext >&5
6974
ac_cv_lib_c_inet_ntop=no
6976
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6977
LIBS=$ac_check_lib_save_LIBS
6979
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_ntop" >&5
6980
echo "${ECHO_T}$ac_cv_lib_c_inet_ntop" >&6
6981
if test $ac_cv_lib_c_inet_ntop = yes; then
6983
cat >>confdefs.h <<\_ACEOF
6984
#define HAVE_INET_NTOP
6989
echo "$as_me:$LINENO: checking for inet_pton in -lc" >&5
6990
echo $ECHO_N "checking for inet_pton in -lc... $ECHO_C" >&6
6991
if test "${ac_cv_lib_c_inet_pton+set}" = set; then
6992
echo $ECHO_N "(cached) $ECHO_C" >&6
6994
ac_check_lib_save_LIBS=$LIBS
6996
cat >conftest.$ac_ext <<_ACEOF
6997
#line $LINENO "configure"
7000
cat confdefs.h >>conftest.$ac_ext
7001
cat >>conftest.$ac_ext <<_ACEOF
7002
/* end confdefs.h. */
7004
/* Override any gcc2 internal prototype to avoid an error. */
7008
/* We use char because int might match the return type of a gcc2
7009
builtin and then its argument prototype would still apply. */
7019
rm -f conftest.$ac_objext conftest$ac_exeext
7020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7021
(eval $ac_link) 2>&5
7023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024
(exit $ac_status); } &&
7025
{ ac_try='test -s conftest$ac_exeext'
7026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030
(exit $ac_status); }; }; then
7031
ac_cv_lib_c_inet_pton=yes
7033
echo "$as_me: failed program was:" >&5
7034
sed 's/^/| /' conftest.$ac_ext >&5
7036
ac_cv_lib_c_inet_pton=no
7038
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7039
LIBS=$ac_check_lib_save_LIBS
7041
echo "$as_me:$LINENO: result: $ac_cv_lib_c_inet_pton" >&5
7042
echo "${ECHO_T}$ac_cv_lib_c_inet_pton" >&6
7043
if test $ac_cv_lib_c_inet_pton = yes; then
7045
cat >>confdefs.h <<\_ACEOF
7046
#define HAVE_INET_PTON
7052
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7053
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7054
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7055
echo $ECHO_N "(cached) $ECHO_C" >&6
7057
ac_check_lib_save_LIBS=$LIBS
7058
LIBS="-lcrypt $LIBS"
7059
cat >conftest.$ac_ext <<_ACEOF
7060
#line $LINENO "configure"
7063
cat confdefs.h >>conftest.$ac_ext
7064
cat >>conftest.$ac_ext <<_ACEOF
7065
/* end confdefs.h. */
7067
/* Override any gcc2 internal prototype to avoid an error. */
7071
/* We use char because int might match the return type of a gcc2
7072
builtin and then its argument prototype would still apply. */
7082
rm -f conftest.$ac_objext conftest$ac_exeext
7083
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7084
(eval $ac_link) 2>&5
7086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
(exit $ac_status); } &&
7088
{ ac_try='test -s conftest$ac_exeext'
7089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; }; then
7094
ac_cv_lib_crypt_crypt=yes
7096
echo "$as_me: failed program was:" >&5
7097
sed 's/^/| /' conftest.$ac_ext >&5
7099
ac_cv_lib_crypt_crypt=no
7101
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7102
LIBS=$ac_check_lib_save_LIBS
7104
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7105
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7106
if test $ac_cv_lib_crypt_crypt = yes; then
7107
cat >>confdefs.h <<_ACEOF
7108
#define HAVE_LIBCRYPT 1
7111
LIBS="-lcrypt $LIBS"
7116
echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
7117
echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
7118
if test "${ac_cv_lib_resolv_res_init+set}" = set; then
7119
echo $ECHO_N "(cached) $ECHO_C" >&6
7121
ac_check_lib_save_LIBS=$LIBS
7122
LIBS="-lresolv $LIBS"
7123
cat >conftest.$ac_ext <<_ACEOF
7124
#line $LINENO "configure"
7127
cat confdefs.h >>conftest.$ac_ext
7128
cat >>conftest.$ac_ext <<_ACEOF
7129
/* end confdefs.h. */
7131
/* Override any gcc2 internal prototype to avoid an error. */
7135
/* We use char because int might match the return type of a gcc2
7136
builtin and then its argument prototype would still apply. */
7146
rm -f conftest.$ac_objext conftest$ac_exeext
7147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7148
(eval $ac_link) 2>&5
7150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151
(exit $ac_status); } &&
7152
{ ac_try='test -s conftest$ac_exeext'
7153
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157
(exit $ac_status); }; }; then
7158
ac_cv_lib_resolv_res_init=yes
7160
echo "$as_me: failed program was:" >&5
7161
sed 's/^/| /' conftest.$ac_ext >&5
7163
ac_cv_lib_resolv_res_init=no
7165
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7166
LIBS=$ac_check_lib_save_LIBS
7168
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
7169
echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
7170
if test $ac_cv_lib_resolv_res_init = yes; then
7171
cat >>confdefs.h <<_ACEOF
7172
#define HAVE_LIBRESOLV 1
7175
LIBS="-lresolv $LIBS"
7180
echo "$as_me:$LINENO: checking for main in -lm" >&5
7181
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
7182
if test "${ac_cv_lib_m_main+set}" = set; then
7183
echo $ECHO_N "(cached) $ECHO_C" >&6
7185
ac_check_lib_save_LIBS=$LIBS
7187
cat >conftest.$ac_ext <<_ACEOF
7188
#line $LINENO "configure"
7191
cat confdefs.h >>conftest.$ac_ext
7192
cat >>conftest.$ac_ext <<_ACEOF
7193
/* end confdefs.h. */
7204
rm -f conftest.$ac_objext conftest$ac_exeext
7205
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7206
(eval $ac_link) 2>&5
7208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209
(exit $ac_status); } &&
7210
{ ac_try='test -s conftest$ac_exeext'
7211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215
(exit $ac_status); }; }; then
7216
ac_cv_lib_m_main=yes
7218
echo "$as_me: failed program was:" >&5
7219
sed 's/^/| /' conftest.$ac_ext >&5
7223
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7224
LIBS=$ac_check_lib_save_LIBS
7226
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7227
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
7228
if test $ac_cv_lib_m_main = yes; then
7229
cat >>confdefs.h <<_ACEOF
7238
echo "$as_me:$LINENO: checking for __inet_ntop" >&5
7239
echo $ECHO_N "checking for __inet_ntop... $ECHO_C" >&6
7240
if test "${ac_cv_func___inet_ntop+set}" = set; then
7241
echo $ECHO_N "(cached) $ECHO_C" >&6
7243
cat >conftest.$ac_ext <<_ACEOF
7244
#line $LINENO "configure"
7247
cat confdefs.h >>conftest.$ac_ext
7248
cat >>conftest.$ac_ext <<_ACEOF
7249
/* end confdefs.h. */
7250
/* System header to define __stub macros and hopefully few prototypes,
7251
which can conflict with char __inet_ntop (); below.
7252
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7253
<limits.h> exists even on freestanding compilers. */
7255
# include <limits.h>
7257
# include <assert.h>
7259
/* Override any gcc2 internal prototype to avoid an error. */
7264
/* We use char because int might match the return type of a gcc2
7265
builtin and then its argument prototype would still apply. */
7266
char __inet_ntop ();
7267
/* The GNU C library defines this for functions which it implements
7268
to always fail with ENOSYS. Some functions are actually named
7269
something starting with __ and the normal name is an alias. */
7270
#if defined (__stub___inet_ntop) || defined (__stub_____inet_ntop)
7273
char (*f) () = __inet_ntop;
7282
return f != __inet_ntop;
7287
rm -f conftest.$ac_objext conftest$ac_exeext
7288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7289
(eval $ac_link) 2>&5
7291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292
(exit $ac_status); } &&
7293
{ ac_try='test -s conftest$ac_exeext'
7294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298
(exit $ac_status); }; }; then
7299
ac_cv_func___inet_ntop=yes
7301
echo "$as_me: failed program was:" >&5
7302
sed 's/^/| /' conftest.$ac_ext >&5
7304
ac_cv_func___inet_ntop=no
7306
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7308
echo "$as_me:$LINENO: result: $ac_cv_func___inet_ntop" >&5
7309
echo "${ECHO_T}$ac_cv_func___inet_ntop" >&6
7310
if test $ac_cv_func___inet_ntop = yes; then
7312
cat >>confdefs.h <<\_ACEOF
7313
#define HAVE_INET_NTOP
7318
echo "$as_me:$LINENO: checking for __inet_pton" >&5
7319
echo $ECHO_N "checking for __inet_pton... $ECHO_C" >&6
7320
if test "${ac_cv_func___inet_pton+set}" = set; then
7321
echo $ECHO_N "(cached) $ECHO_C" >&6
7323
cat >conftest.$ac_ext <<_ACEOF
7324
#line $LINENO "configure"
7327
cat confdefs.h >>conftest.$ac_ext
7328
cat >>conftest.$ac_ext <<_ACEOF
7329
/* end confdefs.h. */
7330
/* System header to define __stub macros and hopefully few prototypes,
7331
which can conflict with char __inet_pton (); below.
7332
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7333
<limits.h> exists even on freestanding compilers. */
7335
# include <limits.h>
7337
# include <assert.h>
7339
/* Override any gcc2 internal prototype to avoid an error. */
7344
/* We use char because int might match the return type of a gcc2
7345
builtin and then its argument prototype would still apply. */
7346
char __inet_pton ();
7347
/* The GNU C library defines this for functions which it implements
7348
to always fail with ENOSYS. Some functions are actually named
7349
something starting with __ and the normal name is an alias. */
7350
#if defined (__stub___inet_pton) || defined (__stub_____inet_pton)
7353
char (*f) () = __inet_pton;
7362
return f != __inet_pton;
7367
rm -f conftest.$ac_objext conftest$ac_exeext
7368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7369
(eval $ac_link) 2>&5
7371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7372
(exit $ac_status); } &&
7373
{ ac_try='test -s conftest$ac_exeext'
7374
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378
(exit $ac_status); }; }; then
7379
ac_cv_func___inet_pton=yes
7381
echo "$as_me: failed program was:" >&5
7382
sed 's/^/| /' conftest.$ac_ext >&5
7384
ac_cv_func___inet_pton=no
7386
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7388
echo "$as_me:$LINENO: result: $ac_cv_func___inet_pton" >&5
7389
echo "${ECHO_T}$ac_cv_func___inet_pton" >&6
7390
if test $ac_cv_func___inet_pton = yes; then
7392
cat >>confdefs.h <<\_ACEOF
7393
#define HAVE_INET_PTON
7398
echo "$as_me:$LINENO: checking for __inet_aton" >&5
7399
echo $ECHO_N "checking for __inet_aton... $ECHO_C" >&6
7400
if test "${ac_cv_func___inet_aton+set}" = set; then
7401
echo $ECHO_N "(cached) $ECHO_C" >&6
7403
cat >conftest.$ac_ext <<_ACEOF
7404
#line $LINENO "configure"
7407
cat confdefs.h >>conftest.$ac_ext
7408
cat >>conftest.$ac_ext <<_ACEOF
7409
/* end confdefs.h. */
7410
/* System header to define __stub macros and hopefully few prototypes,
7411
which can conflict with char __inet_aton (); below.
7412
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7413
<limits.h> exists even on freestanding compilers. */
7415
# include <limits.h>
7417
# include <assert.h>
7419
/* Override any gcc2 internal prototype to avoid an error. */
7424
/* We use char because int might match the return type of a gcc2
7425
builtin and then its argument prototype would still apply. */
7426
char __inet_aton ();
7427
/* The GNU C library defines this for functions which it implements
7428
to always fail with ENOSYS. Some functions are actually named
7429
something starting with __ and the normal name is an alias. */
7430
#if defined (__stub___inet_aton) || defined (__stub_____inet_aton)
7433
char (*f) () = __inet_aton;
7442
return f != __inet_aton;
7447
rm -f conftest.$ac_objext conftest$ac_exeext
7448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7449
(eval $ac_link) 2>&5
7451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452
(exit $ac_status); } &&
7453
{ ac_try='test -s conftest$ac_exeext'
7454
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458
(exit $ac_status); }; }; then
7459
ac_cv_func___inet_aton=yes
7461
echo "$as_me: failed program was:" >&5
7462
sed 's/^/| /' conftest.$ac_ext >&5
7464
ac_cv_func___inet_aton=no
7466
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7468
echo "$as_me:$LINENO: result: $ac_cv_func___inet_aton" >&5
7469
echo "${ECHO_T}$ac_cv_func___inet_aton" >&6
7470
if test $ac_cv_func___inet_aton = yes; then
7472
cat >>confdefs.h <<\_ACEOF
7473
#define HAVE_INET_ATON
7479
echo "$as_me:$LINENO: checking for regexec in -lc" >&5
7480
echo $ECHO_N "checking for regexec in -lc... $ECHO_C" >&6
7481
if test "${ac_cv_lib_c_regexec+set}" = set; then
7482
echo $ECHO_N "(cached) $ECHO_C" >&6
7484
ac_check_lib_save_LIBS=$LIBS
7486
cat >conftest.$ac_ext <<_ACEOF
7487
#line $LINENO "configure"
7490
cat confdefs.h >>conftest.$ac_ext
7491
cat >>conftest.$ac_ext <<_ACEOF
7492
/* end confdefs.h. */
7494
/* Override any gcc2 internal prototype to avoid an error. */
7498
/* We use char because int might match the return type of a gcc2
7499
builtin and then its argument prototype would still apply. */
7509
rm -f conftest.$ac_objext conftest$ac_exeext
7510
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7511
(eval $ac_link) 2>&5
7513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514
(exit $ac_status); } &&
7515
{ ac_try='test -s conftest$ac_exeext'
7516
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520
(exit $ac_status); }; }; then
7521
ac_cv_lib_c_regexec=yes
7523
echo "$as_me: failed program was:" >&5
7524
sed 's/^/| /' conftest.$ac_ext >&5
7526
ac_cv_lib_c_regexec=no
7528
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7529
LIBS=$ac_check_lib_save_LIBS
7531
echo "$as_me:$LINENO: result: $ac_cv_lib_c_regexec" >&5
7532
echo "${ECHO_T}$ac_cv_lib_c_regexec" >&6
7533
if test $ac_cv_lib_c_regexec = yes; then
7535
cat >>confdefs.h <<\_ACEOF
7536
#define HAVE_GNU_REGEX
7546
if test "${enable_snmp}" = "yes";then
7547
if test "${HAVE_SNMP}" = ""; then
7550
unset ac_cv_lib_snmp_asn_parse_int
7551
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
7552
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
7553
if test "${ac_cv_lib_crypto_main+set}" = set; then
7554
echo $ECHO_N "(cached) $ECHO_C" >&6
7556
ac_check_lib_save_LIBS=$LIBS
7557
LIBS="-lcrypto $LIBS"
7558
cat >conftest.$ac_ext <<_ACEOF
7559
#line $LINENO "configure"
7562
cat confdefs.h >>conftest.$ac_ext
7563
cat >>conftest.$ac_ext <<_ACEOF
7564
/* end confdefs.h. */
7575
rm -f conftest.$ac_objext conftest$ac_exeext
7576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7577
(eval $ac_link) 2>&5
7579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580
(exit $ac_status); } &&
7581
{ ac_try='test -s conftest$ac_exeext'
7582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586
(exit $ac_status); }; }; then
7587
ac_cv_lib_crypto_main=yes
7589
echo "$as_me: failed program was:" >&5
7590
sed 's/^/| /' conftest.$ac_ext >&5
7592
ac_cv_lib_crypto_main=no
7594
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7595
LIBS=$ac_check_lib_save_LIBS
7597
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
7598
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
7599
if test $ac_cv_lib_crypto_main = yes; then
7603
if test "${NEED_CRYPTO}" = ""; then
7604
echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
7605
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
7606
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
7607
echo $ECHO_N "(cached) $ECHO_C" >&6
7609
ac_check_lib_save_LIBS=$LIBS
7610
LIBS="-lnetsnmp $LIBS"
7611
cat >conftest.$ac_ext <<_ACEOF
7612
#line $LINENO "configure"
7615
cat confdefs.h >>conftest.$ac_ext
7616
cat >>conftest.$ac_ext <<_ACEOF
7617
/* end confdefs.h. */
7619
/* Override any gcc2 internal prototype to avoid an error. */
7623
/* We use char because int might match the return type of a gcc2
7624
builtin and then its argument prototype would still apply. */
7625
char asn_parse_int ();
7634
rm -f conftest.$ac_objext conftest$ac_exeext
7635
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7636
(eval $ac_link) 2>&5
7638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639
(exit $ac_status); } &&
7640
{ ac_try='test -s conftest$ac_exeext'
7641
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645
(exit $ac_status); }; }; then
7646
ac_cv_lib_netsnmp_asn_parse_int=yes
7648
echo "$as_me: failed program was:" >&5
7649
sed 's/^/| /' conftest.$ac_ext >&5
7651
ac_cv_lib_netsnmp_asn_parse_int=no
7653
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7654
LIBS=$ac_check_lib_save_LIBS
7656
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
7657
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
7658
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
7659
HAVE_NETSNMP=yes; HAVE_SNMP=yes
7663
echo "$as_me:$LINENO: checking for asn_parse_int in -lnetsnmp" >&5
7664
echo $ECHO_N "checking for asn_parse_int in -lnetsnmp... $ECHO_C" >&6
7665
if test "${ac_cv_lib_netsnmp_asn_parse_int+set}" = set; then
7666
echo $ECHO_N "(cached) $ECHO_C" >&6
7668
ac_check_lib_save_LIBS=$LIBS
7669
LIBS="-lnetsnmp "-lcrypto" $LIBS"
7670
cat >conftest.$ac_ext <<_ACEOF
7671
#line $LINENO "configure"
7674
cat confdefs.h >>conftest.$ac_ext
7675
cat >>conftest.$ac_ext <<_ACEOF
7676
/* end confdefs.h. */
7678
/* Override any gcc2 internal prototype to avoid an error. */
7682
/* We use char because int might match the return type of a gcc2
7683
builtin and then its argument prototype would still apply. */
7684
char asn_parse_int ();
7693
rm -f conftest.$ac_objext conftest$ac_exeext
7694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7695
(eval $ac_link) 2>&5
7697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698
(exit $ac_status); } &&
7699
{ ac_try='test -s conftest$ac_exeext'
7700
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704
(exit $ac_status); }; }; then
7705
ac_cv_lib_netsnmp_asn_parse_int=yes
7707
echo "$as_me: failed program was:" >&5
7708
sed 's/^/| /' conftest.$ac_ext >&5
7710
ac_cv_lib_netsnmp_asn_parse_int=no
7712
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7713
LIBS=$ac_check_lib_save_LIBS
7715
echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_asn_parse_int" >&5
7716
echo "${ECHO_T}$ac_cv_lib_netsnmp_asn_parse_int" >&6
7717
if test $ac_cv_lib_netsnmp_asn_parse_int = yes; then
7718
HAVE_NETSNMP=yes; HAVE_SNMP=yes; NEED_CRYPTO=yes;LIBS="$LIBS -lcrypto"
7724
if test "${HAVE_SNMP}" = ""; then
7727
unset ac_cv_lib_snmp_asn_parse_int
7728
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
7729
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
7730
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
7731
echo $ECHO_N "(cached) $ECHO_C" >&6
7733
ac_check_lib_save_LIBS=$LIBS
7735
cat >conftest.$ac_ext <<_ACEOF
7736
#line $LINENO "configure"
7739
cat confdefs.h >>conftest.$ac_ext
7740
cat >>conftest.$ac_ext <<_ACEOF
7741
/* end confdefs.h. */
7743
/* Override any gcc2 internal prototype to avoid an error. */
7747
/* We use char because int might match the return type of a gcc2
7748
builtin and then its argument prototype would still apply. */
7749
char asn_parse_int ();
7758
rm -f conftest.$ac_objext conftest$ac_exeext
7759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760
(eval $ac_link) 2>&5
7762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763
(exit $ac_status); } &&
7764
{ ac_try='test -s conftest$ac_exeext'
7765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769
(exit $ac_status); }; }; then
7770
ac_cv_lib_snmp_asn_parse_int=yes
7772
echo "$as_me: failed program was:" >&5
7773
sed 's/^/| /' conftest.$ac_ext >&5
7775
ac_cv_lib_snmp_asn_parse_int=no
7777
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7778
LIBS=$ac_check_lib_save_LIBS
7780
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
7781
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
7782
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
7786
if test "${HAVE_SNMP}" = ""; then
7787
unset ac_cv_lib_snmp_asn_parse_int
7788
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
7789
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
7790
if test "${ac_cv_lib_crypto_main+set}" = set; then
7791
echo $ECHO_N "(cached) $ECHO_C" >&6
7793
ac_check_lib_save_LIBS=$LIBS
7794
LIBS="-lcrypto $LIBS"
7795
cat >conftest.$ac_ext <<_ACEOF
7796
#line $LINENO "configure"
7799
cat confdefs.h >>conftest.$ac_ext
7800
cat >>conftest.$ac_ext <<_ACEOF
7801
/* end confdefs.h. */
7812
rm -f conftest.$ac_objext conftest$ac_exeext
7813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7814
(eval $ac_link) 2>&5
7816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817
(exit $ac_status); } &&
7818
{ ac_try='test -s conftest$ac_exeext'
7819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823
(exit $ac_status); }; }; then
7824
ac_cv_lib_crypto_main=yes
7826
echo "$as_me: failed program was:" >&5
7827
sed 's/^/| /' conftest.$ac_ext >&5
7829
ac_cv_lib_crypto_main=no
7831
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7832
LIBS=$ac_check_lib_save_LIBS
7834
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
7835
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
7836
if test $ac_cv_lib_crypto_main = yes; then
7840
if test "${NEED_CRYPTO}" = "yes"; then
7841
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
7842
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
7843
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
7844
echo $ECHO_N "(cached) $ECHO_C" >&6
7846
ac_check_lib_save_LIBS=$LIBS
7847
LIBS="-lsnmp "-lcrypto" $LIBS"
7848
cat >conftest.$ac_ext <<_ACEOF
7849
#line $LINENO "configure"
7852
cat confdefs.h >>conftest.$ac_ext
7853
cat >>conftest.$ac_ext <<_ACEOF
7854
/* end confdefs.h. */
7856
/* Override any gcc2 internal prototype to avoid an error. */
7860
/* We use char because int might match the return type of a gcc2
7861
builtin and then its argument prototype would still apply. */
7862
char asn_parse_int ();
7871
rm -f conftest.$ac_objext conftest$ac_exeext
7872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7873
(eval $ac_link) 2>&5
7875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876
(exit $ac_status); } &&
7877
{ ac_try='test -s conftest$ac_exeext'
7878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882
(exit $ac_status); }; }; then
7883
ac_cv_lib_snmp_asn_parse_int=yes
7885
echo "$as_me: failed program was:" >&5
7886
sed 's/^/| /' conftest.$ac_ext >&5
7888
ac_cv_lib_snmp_asn_parse_int=no
7890
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7891
LIBS=$ac_check_lib_save_LIBS
7893
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
7894
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
7895
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
7896
HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
7904
if test "${HAVE_SNMP}" = ""; then
7906
LIBS="-L/usr/local/lib"
7907
unset ac_cv_lib_snmp_asn_parse_int
7908
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
7909
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
7910
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
7911
echo $ECHO_N "(cached) $ECHO_C" >&6
7913
ac_check_lib_save_LIBS=$LIBS
7915
cat >conftest.$ac_ext <<_ACEOF
7916
#line $LINENO "configure"
7919
cat confdefs.h >>conftest.$ac_ext
7920
cat >>conftest.$ac_ext <<_ACEOF
7921
/* end confdefs.h. */
7923
/* Override any gcc2 internal prototype to avoid an error. */
7927
/* We use char because int might match the return type of a gcc2
7928
builtin and then its argument prototype would still apply. */
7929
char asn_parse_int ();
7938
rm -f conftest.$ac_objext conftest$ac_exeext
7939
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7940
(eval $ac_link) 2>&5
7942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943
(exit $ac_status); } &&
7944
{ ac_try='test -s conftest$ac_exeext'
7945
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7948
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949
(exit $ac_status); }; }; then
7950
ac_cv_lib_snmp_asn_parse_int=yes
7952
echo "$as_me: failed program was:" >&5
7953
sed 's/^/| /' conftest.$ac_ext >&5
7955
ac_cv_lib_snmp_asn_parse_int=no
7957
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7958
LIBS=$ac_check_lib_save_LIBS
7960
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
7961
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
7962
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
7966
if test "${HAVE_SNMP}" = ""; then
7967
unset ac_cv_lib_snmp_asn_parse_int
7968
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
7969
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
7970
if test "${ac_cv_lib_crypto_main+set}" = set; then
7971
echo $ECHO_N "(cached) $ECHO_C" >&6
7973
ac_check_lib_save_LIBS=$LIBS
7974
LIBS="-lcrypto $LIBS"
7975
cat >conftest.$ac_ext <<_ACEOF
7976
#line $LINENO "configure"
7979
cat confdefs.h >>conftest.$ac_ext
7980
cat >>conftest.$ac_ext <<_ACEOF
7981
/* end confdefs.h. */
7992
rm -f conftest.$ac_objext conftest$ac_exeext
7993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7994
(eval $ac_link) 2>&5
7996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997
(exit $ac_status); } &&
7998
{ ac_try='test -s conftest$ac_exeext'
7999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003
(exit $ac_status); }; }; then
8004
ac_cv_lib_crypto_main=yes
8006
echo "$as_me: failed program was:" >&5
8007
sed 's/^/| /' conftest.$ac_ext >&5
8009
ac_cv_lib_crypto_main=no
8011
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8012
LIBS=$ac_check_lib_save_LIBS
8014
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
8015
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
8016
if test $ac_cv_lib_crypto_main = yes; then
8020
if test "${NEED_CRYPTO}" = "yes"; then
8021
echo "$as_me:$LINENO: checking for asn_parse_int in -lsnmp" >&5
8022
echo $ECHO_N "checking for asn_parse_int in -lsnmp... $ECHO_C" >&6
8023
if test "${ac_cv_lib_snmp_asn_parse_int+set}" = set; then
8024
echo $ECHO_N "(cached) $ECHO_C" >&6
8026
ac_check_lib_save_LIBS=$LIBS
8027
LIBS="-lsnmp "-lcrypto" $LIBS"
8028
cat >conftest.$ac_ext <<_ACEOF
8029
#line $LINENO "configure"
8032
cat confdefs.h >>conftest.$ac_ext
8033
cat >>conftest.$ac_ext <<_ACEOF
8034
/* end confdefs.h. */
8036
/* Override any gcc2 internal prototype to avoid an error. */
8040
/* We use char because int might match the return type of a gcc2
8041
builtin and then its argument prototype would still apply. */
8042
char asn_parse_int ();
8051
rm -f conftest.$ac_objext conftest$ac_exeext
8052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8053
(eval $ac_link) 2>&5
8055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056
(exit $ac_status); } &&
8057
{ ac_try='test -s conftest$ac_exeext'
8058
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062
(exit $ac_status); }; }; then
8063
ac_cv_lib_snmp_asn_parse_int=yes
8065
echo "$as_me: failed program was:" >&5
8066
sed 's/^/| /' conftest.$ac_ext >&5
8068
ac_cv_lib_snmp_asn_parse_int=no
8070
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8071
LIBS=$ac_check_lib_save_LIBS
8073
echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_asn_parse_int" >&5
8074
echo "${ECHO_T}$ac_cv_lib_snmp_asn_parse_int" >&6
8075
if test $ac_cv_lib_snmp_asn_parse_int = yes; then
8076
HAVE_SNMP=yes; NEED_CRYPTO=yes; LIBS="$LIBS -lcrypto"
8084
if test "${HAVE_SNMP}" = "yes"; then
8085
for ac_snmp in /usr/include/net-snmp/library/asn1.h /usr/include/ucd-snmp/asn1.h /usr/local/include/ucd-snmp/asn1.h /dev/null
8087
test -f "${ac_snmp}" && break
8091
/usr/include/net-snmp/*)
8093
cat >>confdefs.h <<\_ACEOF
8098
cat >>confdefs.h <<\_ACEOF
8099
#define HAVE_NETSNMP
8103
cat >>confdefs.h <<\_ACEOF
8104
#define UCD_COMPATIBLE
8107
CFLAGS="${CFLAGS} -I/usr/include/net-snmp -I/usr/include/net-snmp/library"
8108
if test "${HAVE_NETSNMP}" = "yes"; then
8109
LIBS="${LIBS} -lnetsnmp"
8111
LIBS="${LIBS} -lsnmp"
8114
/usr/include/ucd-snmp/*)
8116
cat >>confdefs.h <<\_ACEOF
8120
CFLAGS="${CFLAGS} -I/usr/include/ucd-snmp"
8121
LIBS="${LIBS} -lsnmp"
8123
/usr/local/include/ucd-snmp/*)
8125
cat >>confdefs.h <<\_ACEOF
8129
CFLAGS="${CFLAGS} -I/usr/local/include/ucd-snmp"
8130
LIBS="${LIBS} -L/usr/local/lib -lsnmp"
8132
/usr/local/include/net-snmp/*)
8134
cat >>confdefs.h <<\_ACEOF
8139
cat >>confdefs.h <<\_ACEOF
8140
#define HAVE_NET_SNMP
8144
cat >>confdefs.h <<\_ACEOF
8145
#define UCD_COMPATIBLE
8148
CFLAGS="${CFLAGS} -I/usr/local/include/net-snmp"
8149
LIBS="${LIBS} -L/usr/local/lib -lnetsnmp"
8152
if test "${NEED_CRYPTO}" = "yes"; then
8153
LIBS="${LIBS} -lcrypto"
8158
echo "$as_me:$LINENO: checking whether struct sockaddr has a sa_len field" >&5
8159
echo $ECHO_N "checking whether struct sockaddr has a sa_len field... $ECHO_C" >&6
8160
cat >conftest.$ac_ext <<_ACEOF
8161
#line $LINENO "configure"
8164
cat confdefs.h >>conftest.$ac_ext
8165
cat >>conftest.$ac_ext <<_ACEOF
8166
/* end confdefs.h. */
8167
#include <sys/types.h>
8168
#include <sys/socket.h>
8173
static struct sockaddr ac_i;int ac_j = sizeof (ac_i.sa_len);
8178
rm -f conftest.$ac_objext
8179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8180
(eval $ac_compile) 2>&5
8182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183
(exit $ac_status); } &&
8184
{ ac_try='test -s conftest.$ac_objext'
8185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189
(exit $ac_status); }; }; then
8190
echo "$as_me:$LINENO: result: yes" >&5
8191
echo "${ECHO_T}yes" >&6
8193
cat >>confdefs.h <<\_ACEOF
8198
echo "$as_me: failed program was:" >&5
8199
sed 's/^/| /' conftest.$ac_ext >&5
8201
echo "$as_me:$LINENO: result: no" >&5
8202
echo "${ECHO_T}no" >&6
8204
rm -f conftest.$ac_objext conftest.$ac_ext
8206
echo "$as_me:$LINENO: checking whether struct sockaddr_in has a sin_len field" >&5
8207
echo $ECHO_N "checking whether struct sockaddr_in has a sin_len field... $ECHO_C" >&6
8208
cat >conftest.$ac_ext <<_ACEOF
8209
#line $LINENO "configure"
8212
cat confdefs.h >>conftest.$ac_ext
8213
cat >>conftest.$ac_ext <<_ACEOF
8214
/* end confdefs.h. */
8215
#include <sys/types.h>
8216
#include <netinet/in.h>
8221
static struct sockaddr_in ac_i;int ac_j = sizeof (ac_i.sin_len);
8226
rm -f conftest.$ac_objext
8227
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228
(eval $ac_compile) 2>&5
8230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231
(exit $ac_status); } &&
8232
{ ac_try='test -s conftest.$ac_objext'
8233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237
(exit $ac_status); }; }; then
8238
echo "$as_me:$LINENO: result: yes" >&5
8239
echo "${ECHO_T}yes" >&6
8241
cat >>confdefs.h <<\_ACEOF
8242
#define HAVE_SIN_LEN
8246
echo "$as_me: failed program was:" >&5
8247
sed 's/^/| /' conftest.$ac_ext >&5
8249
echo "$as_me:$LINENO: result: no" >&5
8250
echo "${ECHO_T}no" >&6
8252
rm -f conftest.$ac_objext conftest.$ac_ext
8254
echo "$as_me:$LINENO: checking whether struct sockaddr_un has a sun_len field" >&5
8255
echo $ECHO_N "checking whether struct sockaddr_un has a sun_len field... $ECHO_C" >&6
8256
cat >conftest.$ac_ext <<_ACEOF
8257
#line $LINENO "configure"
8260
cat confdefs.h >>conftest.$ac_ext
8261
cat >>conftest.$ac_ext <<_ACEOF
8262
/* end confdefs.h. */
8263
#include <sys/types.h>
8269
static struct sockaddr_un ac_i;int ac_j = sizeof (ac_i.sun_len);
8274
rm -f conftest.$ac_objext
8275
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8276
(eval $ac_compile) 2>&5
8278
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279
(exit $ac_status); } &&
8280
{ ac_try='test -s conftest.$ac_objext'
8281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285
(exit $ac_status); }; }; then
8286
echo "$as_me:$LINENO: result: yes" >&5
8287
echo "${ECHO_T}yes" >&6
8289
cat >>confdefs.h <<\_ACEOF
8290
#define HAVE_SUN_LEN
8294
echo "$as_me: failed program was:" >&5
8295
sed 's/^/| /' conftest.$ac_ext >&5
8297
echo "$as_me:$LINENO: result: no" >&5
8298
echo "${ECHO_T}no" >&6
8300
rm -f conftest.$ac_objext conftest.$ac_ext
8302
if test "$zebra_cv_ipv6" = yes; then
8303
echo "$as_me:$LINENO: checking whether struct sockaddr_in6 has a sin6_scope_id field" >&5
8304
echo $ECHO_N "checking whether struct sockaddr_in6 has a sin6_scope_id field... $ECHO_C" >&6
8305
cat >conftest.$ac_ext <<_ACEOF
8306
#line $LINENO "configure"
8309
cat confdefs.h >>conftest.$ac_ext
8310
cat >>conftest.$ac_ext <<_ACEOF
8311
/* end confdefs.h. */
8312
#include <sys/types.h>
8313
#include <netinet/in.h>
8318
static struct sockaddr_in6 ac_i;int ac_j = sizeof (ac_i.sin6_scope_id);
8323
rm -f conftest.$ac_objext
8324
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8325
(eval $ac_compile) 2>&5
8327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328
(exit $ac_status); } &&
8329
{ ac_try='test -s conftest.$ac_objext'
8330
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334
(exit $ac_status); }; }; then
8335
echo "$as_me:$LINENO: result: yes" >&5
8336
echo "${ECHO_T}yes" >&6
8338
cat >>confdefs.h <<\_ACEOF
8339
#define HAVE_SIN6_SCOPE_ID
8343
echo "$as_me: failed program was:" >&5
8344
sed 's/^/| /' conftest.$ac_ext >&5
8346
echo "$as_me:$LINENO: result: no" >&5
8347
echo "${ECHO_T}no" >&6
8349
rm -f conftest.$ac_objext conftest.$ac_ext
8352
echo "$as_me:$LINENO: checking whther socklen_t is defined" >&5
8353
echo $ECHO_N "checking whther socklen_t is defined... $ECHO_C" >&6
8354
cat >conftest.$ac_ext <<_ACEOF
8355
#line $LINENO "configure"
8358
cat confdefs.h >>conftest.$ac_ext
8359
cat >>conftest.$ac_ext <<_ACEOF
8360
/* end confdefs.h. */
8361
#include <sys/types.h>
8362
#include <sys/socket.h>
8363
#include <netinet/in.h>
8373
rm -f conftest.$ac_objext
8374
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8375
(eval $ac_compile) 2>&5
8377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378
(exit $ac_status); } &&
8379
{ ac_try='test -s conftest.$ac_objext'
8380
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384
(exit $ac_status); }; }; then
8385
echo "$as_me:$LINENO: result: yes" >&5
8386
echo "${ECHO_T}yes" >&6
8388
cat >>confdefs.h <<\_ACEOF
8389
#define HAVE_SOCKLEN_T
8393
echo "$as_me: failed program was:" >&5
8394
sed 's/^/| /' conftest.$ac_ext >&5
8396
echo "$as_me:$LINENO: result: no" >&5
8397
echo "${ECHO_T}no" >&6
8399
rm -f conftest.$ac_objext conftest.$ac_ext
8401
echo "$as_me:$LINENO: checking whether struct sockaddr_dl exist" >&5
8402
echo $ECHO_N "checking whether struct sockaddr_dl exist... $ECHO_C" >&6
8403
cat >conftest.$ac_ext <<_ACEOF
8404
#line $LINENO "configure"
8407
cat confdefs.h >>conftest.$ac_ext
8408
cat >>conftest.$ac_ext <<_ACEOF
8409
/* end confdefs.h. */
8410
#include <net/if_dl.h>
8413
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8414
$EGREP "sockaddr_dl" >/dev/null 2>&1; then
8415
echo "$as_me:$LINENO: result: yes" >&5
8416
echo "${ECHO_T}yes" >&6
8418
cat >>confdefs.h <<\_ACEOF
8419
#define HAVE_SOCKADDR_DL
8423
echo "$as_me:$LINENO: result: no" >&5
8424
echo "${ECHO_T}no" >&6
8429
echo "$as_me:$LINENO: checking whether struct ifaliasreq exist" >&5
8430
echo $ECHO_N "checking whether struct ifaliasreq exist... $ECHO_C" >&6
8431
cat >conftest.$ac_ext <<_ACEOF
8432
#line $LINENO "configure"
8435
cat confdefs.h >>conftest.$ac_ext
8436
cat >>conftest.$ac_ext <<_ACEOF
8437
/* end confdefs.h. */
8441
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8442
$EGREP "ifaliasreq" >/dev/null 2>&1; then
8443
echo "$as_me:$LINENO: result: yes" >&5
8444
echo "${ECHO_T}yes" >&6
8446
cat >>confdefs.h <<\_ACEOF
8447
#define HAVE_IFALIASREQ
8451
echo "$as_me:$LINENO: result: no" >&5
8452
echo "${ECHO_T}no" >&6
8457
echo "$as_me:$LINENO: checking whether struct in6_aliasreq exist" >&5
8458
echo $ECHO_N "checking whether struct in6_aliasreq exist... $ECHO_C" >&6
8459
cat >conftest.$ac_ext <<_ACEOF
8460
#line $LINENO "configure"
8463
cat confdefs.h >>conftest.$ac_ext
8464
cat >>conftest.$ac_ext <<_ACEOF
8465
/* end confdefs.h. */
8466
#include <netinet6/in6_var.h>
8469
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8470
$EGREP "in6_aliasreq" >/dev/null 2>&1; then
8471
echo "$as_me:$LINENO: result: yes" >&5
8472
echo "${ECHO_T}yes" >&6
8474
cat >>confdefs.h <<\_ACEOF
8475
#define HAVE_IN6_ALIASREQ
8479
echo "$as_me:$LINENO: result: no" >&5
8480
echo "${ECHO_T}no" >&6
8485
echo "$as_me:$LINENO: checking whether in6_aliasreq.ifra_lifetime exist" >&5
8486
echo $ECHO_N "checking whether in6_aliasreq.ifra_lifetime exist... $ECHO_C" >&6
8487
cat >conftest.$ac_ext <<_ACEOF
8488
#line $LINENO "configure"
8491
cat confdefs.h >>conftest.$ac_ext
8492
cat >>conftest.$ac_ext <<_ACEOF
8493
/* end confdefs.h. */
8494
#include <sys/types.h>
8495
#include <netinet6/in6_var.h>
8500
static struct if6_aliasreq ac_i;int ac_j = sizeof (ac_i.ifra_lifetime);
8505
rm -f conftest.$ac_objext
8506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8507
(eval $ac_compile) 2>&5
8509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510
(exit $ac_status); } &&
8511
{ ac_try='test -s conftest.$ac_objext'
8512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516
(exit $ac_status); }; }; then
8517
echo "$as_me:$LINENO: result: yes" >&5
8518
echo "${ECHO_T}yes" >&6
8520
cat >>confdefs.h <<\_ACEOF
8521
#define HAVE_IFRA_LIFETIME
8525
echo "$as_me: failed program was:" >&5
8526
sed 's/^/| /' conftest.$ac_ext >&5
8528
echo "$as_me:$LINENO: result: no" >&5
8529
echo "${ECHO_T}no" >&6
8531
rm -f conftest.$ac_objext conftest.$ac_ext
8533
echo "$as_me:$LINENO: checking whether struct rt_addrinfo exist" >&5
8534
echo $ECHO_N "checking whether struct rt_addrinfo exist... $ECHO_C" >&6
8535
cat >conftest.$ac_ext <<_ACEOF
8536
#line $LINENO "configure"
8539
cat confdefs.h >>conftest.$ac_ext
8540
cat >>conftest.$ac_ext <<_ACEOF
8541
/* end confdefs.h. */
8542
#include <net/route.h>
8545
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8546
$EGREP "rt_addrinfo" >/dev/null 2>&1; then
8547
echo "$as_me:$LINENO: result: yes" >&5
8548
echo "${ECHO_T}yes" >&6
8550
cat >>confdefs.h <<\_ACEOF
8551
#define HAVE_RT_ADDRINFO
8555
echo "$as_me:$LINENO: result: no" >&5
8556
echo "${ECHO_T}no" >&6
8561
echo "$as_me:$LINENO: checking whether struct in_pktinfo exist" >&5
8562
echo $ECHO_N "checking whether struct in_pktinfo exist... $ECHO_C" >&6
8563
cat >conftest.$ac_ext <<_ACEOF
8564
#line $LINENO "configure"
8567
cat confdefs.h >>conftest.$ac_ext
8568
cat >>conftest.$ac_ext <<_ACEOF
8569
/* end confdefs.h. */
8570
#include <netinet/in.h>
8575
struct in_pktinfo ac_x;
8580
rm -f conftest.$ac_objext
8581
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8582
(eval $ac_compile) 2>&5
8584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585
(exit $ac_status); } &&
8586
{ ac_try='test -s conftest.$ac_objext'
8587
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591
(exit $ac_status); }; }; then
8592
echo "$as_me:$LINENO: result: yes" >&5
8593
echo "${ECHO_T}yes" >&6
8595
cat >>confdefs.h <<\_ACEOF
8596
#define HAVE_INPKTINFO
8600
echo "$as_me: failed program was:" >&5
8601
sed 's/^/| /' conftest.$ac_ext >&5
8603
echo "$as_me:$LINENO: result: no" >&5
8604
echo "${ECHO_T}no" >&6
8606
rm -f conftest.$ac_objext conftest.$ac_ext
8608
echo "$as_me:$LINENO: checking whether getrusage is available" >&5
8609
echo $ECHO_N "checking whether getrusage is available... $ECHO_C" >&6
8610
cat >conftest.$ac_ext <<_ACEOF
8611
#line $LINENO "configure"
8614
cat confdefs.h >>conftest.$ac_ext
8615
cat >>conftest.$ac_ext <<_ACEOF
8616
/* end confdefs.h. */
8617
#include <sys/resource.h>
8622
struct rusage ac_x; getrusage (RUSAGE_SELF, &ac_x);
8627
rm -f conftest.$ac_objext
8628
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8629
(eval $ac_compile) 2>&5
8631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632
(exit $ac_status); } &&
8633
{ ac_try='test -s conftest.$ac_objext'
8634
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638
(exit $ac_status); }; }; then
8639
echo "$as_me:$LINENO: result: yes" >&5
8640
echo "${ECHO_T}yes" >&6
8642
cat >>confdefs.h <<\_ACEOF
8647
echo "$as_me: failed program was:" >&5
8648
sed 's/^/| /' conftest.$ac_ext >&5
8650
echo "$as_me:$LINENO: result: no" >&5
8651
echo "${ECHO_T}no" >&6
8653
rm -f conftest.$ac_objext conftest.$ac_ext
8655
if test "${enable_capabilities}" != "no"; then
8656
echo "$as_me:$LINENO: checking whether prctl PR_SET_KEEPCAPS is available" >&5
8657
echo $ECHO_N "checking whether prctl PR_SET_KEEPCAPS is available... $ECHO_C" >&6
8658
cat >conftest.$ac_ext <<_ACEOF
8659
#line $LINENO "configure"
8662
cat confdefs.h >>conftest.$ac_ext
8663
cat >>conftest.$ac_ext <<_ACEOF
8664
/* end confdefs.h. */
8665
#include <sys/prctl.h>
8669
prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0);
8674
rm -f conftest.$ac_objext
8675
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8676
(eval $ac_compile) 2>&5
8678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679
(exit $ac_status); } &&
8680
{ ac_try='test -s conftest.$ac_objext'
8681
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685
(exit $ac_status); }; }; then
8686
echo "$as_me:$LINENO: result: yes" >&5
8687
echo "${ECHO_T}yes" >&6
8689
cat >>confdefs.h <<\_ACEOF
8690
#define HAVE_PR_SET_KEEPCAPS
8693
quagga_ac_keepcaps="yes"
8695
echo "$as_me: failed program was:" >&5
8696
sed 's/^/| /' conftest.$ac_ext >&5
8698
echo "$as_me:$LINENO: result: no" >&5
8699
echo "${ECHO_T}no" >&6
8702
rm -f conftest.$ac_objext conftest.$ac_ext
8703
if test x"${quagga_ac_keepcaps}" = x"yes"; then
8705
for ac_header in sys/capability.h
8707
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8708
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709
echo "$as_me:$LINENO: checking for $ac_header" >&5
8710
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8712
echo $ECHO_N "(cached) $ECHO_C" >&6
8714
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8717
# Is the header compilable?
8718
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8719
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8720
cat >conftest.$ac_ext <<_ACEOF
8721
#line $LINENO "configure"
8724
cat confdefs.h >>conftest.$ac_ext
8725
cat >>conftest.$ac_ext <<_ACEOF
8726
/* end confdefs.h. */
8727
$ac_includes_default
8728
#include <$ac_header>
8730
rm -f conftest.$ac_objext
8731
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8732
(eval $ac_compile) 2>&5
8734
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735
(exit $ac_status); } &&
8736
{ ac_try='test -s conftest.$ac_objext'
8737
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741
(exit $ac_status); }; }; then
8742
ac_header_compiler=yes
8744
echo "$as_me: failed program was:" >&5
8745
sed 's/^/| /' conftest.$ac_ext >&5
8747
ac_header_compiler=no
8749
rm -f conftest.$ac_objext conftest.$ac_ext
8750
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8751
echo "${ECHO_T}$ac_header_compiler" >&6
8753
# Is the header present?
8754
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8755
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8756
cat >conftest.$ac_ext <<_ACEOF
8757
#line $LINENO "configure"
8760
cat confdefs.h >>conftest.$ac_ext
8761
cat >>conftest.$ac_ext <<_ACEOF
8762
/* end confdefs.h. */
8763
#include <$ac_header>
8765
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8766
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8768
grep -v '^ *+' conftest.er1 >conftest.err
8770
cat conftest.err >&5
8771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772
(exit $ac_status); } >/dev/null; then
8773
if test -s conftest.err; then
8774
ac_cpp_err=$ac_c_preproc_warn_flag
8781
if test -z "$ac_cpp_err"; then
8782
ac_header_preproc=yes
8784
echo "$as_me: failed program was:" >&5
8785
sed 's/^/| /' conftest.$ac_ext >&5
8787
ac_header_preproc=no
8789
rm -f conftest.err conftest.$ac_ext
8790
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8791
echo "${ECHO_T}$ac_header_preproc" >&6
8793
# So? What about this header?
8794
case $ac_header_compiler:$ac_header_preproc in
8796
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8797
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8798
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8799
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8802
## ------------------------------------ ##
8803
## Report this to bug-autoconf@gnu.org. ##
8804
## ------------------------------------ ##
8807
sed "s/^/$as_me: WARNING: /" >&2
8810
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8811
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8812
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8813
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8814
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8815
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8818
## ------------------------------------ ##
8819
## Report this to bug-autoconf@gnu.org. ##
8820
## ------------------------------------ ##
8823
sed "s/^/$as_me: WARNING: /" >&2
8826
echo "$as_me:$LINENO: checking for $ac_header" >&5
8827
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8828
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8829
echo $ECHO_N "(cached) $ECHO_C" >&6
8831
eval "$as_ac_Header=$ac_header_preproc"
8833
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8834
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8837
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8838
cat >>confdefs.h <<_ACEOF
8839
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8847
if test x"${ac_cv_header_sys_capability_h}" = x"yes"; then
8848
echo "$as_me:$LINENO: checking for cap_init in -lcap" >&5
8849
echo $ECHO_N "checking for cap_init in -lcap... $ECHO_C" >&6
8850
if test "${ac_cv_lib_cap_cap_init+set}" = set; then
8851
echo $ECHO_N "(cached) $ECHO_C" >&6
8853
ac_check_lib_save_LIBS=$LIBS
8855
cat >conftest.$ac_ext <<_ACEOF
8856
#line $LINENO "configure"
8859
cat confdefs.h >>conftest.$ac_ext
8860
cat >>conftest.$ac_ext <<_ACEOF
8861
/* end confdefs.h. */
8863
/* Override any gcc2 internal prototype to avoid an error. */
8867
/* We use char because int might match the return type of a gcc2
8868
builtin and then its argument prototype would still apply. */
8878
rm -f conftest.$ac_objext conftest$ac_exeext
8879
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880
(eval $ac_link) 2>&5
8882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883
(exit $ac_status); } &&
8884
{ ac_try='test -s conftest$ac_exeext'
8885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889
(exit $ac_status); }; }; then
8890
ac_cv_lib_cap_cap_init=yes
8892
echo "$as_me: failed program was:" >&5
8893
sed 's/^/| /' conftest.$ac_ext >&5
8895
ac_cv_lib_cap_cap_init=no
8897
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8898
LIBS=$ac_check_lib_save_LIBS
8900
echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_init" >&5
8901
echo "${ECHO_T}$ac_cv_lib_cap_cap_init" >&6
8902
if test $ac_cv_lib_cap_cap_init = yes; then
8904
cat >>confdefs.h <<\_ACEOF
8905
#define HAVE_LCAPS 1
8917
if test "${glibc}" = "yes"; then
8918
if test "${ac_cv_header_execinfo_h+set}" = set; then
8919
echo "$as_me:$LINENO: checking for execinfo.h" >&5
8920
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
8921
if test "${ac_cv_header_execinfo_h+set}" = set; then
8922
echo $ECHO_N "(cached) $ECHO_C" >&6
8924
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
8925
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
8927
# Is the header compilable?
8928
echo "$as_me:$LINENO: checking execinfo.h usability" >&5
8929
echo $ECHO_N "checking execinfo.h usability... $ECHO_C" >&6
8930
cat >conftest.$ac_ext <<_ACEOF
8931
#line $LINENO "configure"
8934
cat confdefs.h >>conftest.$ac_ext
8935
cat >>conftest.$ac_ext <<_ACEOF
8936
/* end confdefs.h. */
8937
$ac_includes_default
8938
#include <execinfo.h>
8940
rm -f conftest.$ac_objext
8941
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8942
(eval $ac_compile) 2>&5
8944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945
(exit $ac_status); } &&
8946
{ ac_try='test -s conftest.$ac_objext'
8947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951
(exit $ac_status); }; }; then
8952
ac_header_compiler=yes
8954
echo "$as_me: failed program was:" >&5
8955
sed 's/^/| /' conftest.$ac_ext >&5
8957
ac_header_compiler=no
8959
rm -f conftest.$ac_objext conftest.$ac_ext
8960
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8961
echo "${ECHO_T}$ac_header_compiler" >&6
8963
# Is the header present?
8964
echo "$as_me:$LINENO: checking execinfo.h presence" >&5
8965
echo $ECHO_N "checking execinfo.h presence... $ECHO_C" >&6
8966
cat >conftest.$ac_ext <<_ACEOF
8967
#line $LINENO "configure"
8970
cat confdefs.h >>conftest.$ac_ext
8971
cat >>conftest.$ac_ext <<_ACEOF
8972
/* end confdefs.h. */
8973
#include <execinfo.h>
8975
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8976
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8978
grep -v '^ *+' conftest.er1 >conftest.err
8980
cat conftest.err >&5
8981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982
(exit $ac_status); } >/dev/null; then
8983
if test -s conftest.err; then
8984
ac_cpp_err=$ac_c_preproc_warn_flag
8991
if test -z "$ac_cpp_err"; then
8992
ac_header_preproc=yes
8994
echo "$as_me: failed program was:" >&5
8995
sed 's/^/| /' conftest.$ac_ext >&5
8997
ac_header_preproc=no
8999
rm -f conftest.err conftest.$ac_ext
9000
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9001
echo "${ECHO_T}$ac_header_preproc" >&6
9003
# So? What about this header?
9004
case $ac_header_compiler:$ac_header_preproc in
9006
{ echo "$as_me:$LINENO: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
9007
echo "$as_me: WARNING: execinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9008
{ echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
9009
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
9012
## ------------------------------------ ##
9013
## Report this to bug-autoconf@gnu.org. ##
9014
## ------------------------------------ ##
9017
sed "s/^/$as_me: WARNING: /" >&2
9020
{ echo "$as_me:$LINENO: WARNING: execinfo.h: present but cannot be compiled" >&5
9021
echo "$as_me: WARNING: execinfo.h: present but cannot be compiled" >&2;}
9022
{ echo "$as_me:$LINENO: WARNING: execinfo.h: check for missing prerequisite headers?" >&5
9023
echo "$as_me: WARNING: execinfo.h: check for missing prerequisite headers?" >&2;}
9024
{ echo "$as_me:$LINENO: WARNING: execinfo.h: proceeding with the preprocessor's result" >&5
9025
echo "$as_me: WARNING: execinfo.h: proceeding with the preprocessor's result" >&2;}
9028
## ------------------------------------ ##
9029
## Report this to bug-autoconf@gnu.org. ##
9030
## ------------------------------------ ##
9033
sed "s/^/$as_me: WARNING: /" >&2
9036
echo "$as_me:$LINENO: checking for execinfo.h" >&5
9037
echo $ECHO_N "checking for execinfo.h... $ECHO_C" >&6
9038
if test "${ac_cv_header_execinfo_h+set}" = set; then
9039
echo $ECHO_N "(cached) $ECHO_C" >&6
9041
ac_cv_header_execinfo_h=$ac_header_preproc
9043
echo "$as_me:$LINENO: result: $ac_cv_header_execinfo_h" >&5
9044
echo "${ECHO_T}$ac_cv_header_execinfo_h" >&6
9050
if test x"${ac_cv_header_execinfo_h}" = x"yes"; then
9051
echo "$as_me:$LINENO: checking for backtrace" >&5
9052
echo $ECHO_N "checking for backtrace... $ECHO_C" >&6
9053
if test "${ac_cv_func_backtrace+set}" = set; then
9054
echo $ECHO_N "(cached) $ECHO_C" >&6
9056
cat >conftest.$ac_ext <<_ACEOF
9057
#line $LINENO "configure"
9060
cat confdefs.h >>conftest.$ac_ext
9061
cat >>conftest.$ac_ext <<_ACEOF
9062
/* end confdefs.h. */
9063
/* System header to define __stub macros and hopefully few prototypes,
9064
which can conflict with char backtrace (); below.
9065
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9066
<limits.h> exists even on freestanding compilers. */
9068
# include <limits.h>
9070
# include <assert.h>
9072
/* Override any gcc2 internal prototype to avoid an error. */
9077
/* We use char because int might match the return type of a gcc2
9078
builtin and then its argument prototype would still apply. */
9080
/* The GNU C library defines this for functions which it implements
9081
to always fail with ENOSYS. Some functions are actually named
9082
something starting with __ and the normal name is an alias. */
9083
#if defined (__stub_backtrace) || defined (__stub___backtrace)
9086
char (*f) () = backtrace;
9095
return f != backtrace;
9100
rm -f conftest.$ac_objext conftest$ac_exeext
9101
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9102
(eval $ac_link) 2>&5
9104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105
(exit $ac_status); } &&
9106
{ ac_try='test -s conftest$ac_exeext'
9107
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111
(exit $ac_status); }; }; then
9112
ac_cv_func_backtrace=yes
9114
echo "$as_me: failed program was:" >&5
9115
sed 's/^/| /' conftest.$ac_ext >&5
9117
ac_cv_func_backtrace=no
9119
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9121
echo "$as_me:$LINENO: result: $ac_cv_func_backtrace" >&5
9122
echo "${ECHO_T}$ac_cv_func_backtrace" >&6
9123
if test $ac_cv_func_backtrace = yes; then
9125
cat >>confdefs.h <<\_ACEOF
9126
#define HAVE_GLIBC_BACKTRACE
9134
CONFDATE=`date '+%Y%m%d'`
9137
if test "${prefix}" = "NONE"; then
9138
quagga_statedir_prefix="";
9140
quagga_statedir_prefix=${prefix}
9142
if test "${localstatedir}" = '${prefix}/var'; then
9143
echo "$as_me:$LINENO: checking state directory" >&5
9144
echo $ECHO_N "checking state directory... $ECHO_C" >&6
9145
if test "${ac_statedir+set}" = set; then
9146
echo $ECHO_N "(cached) $ECHO_C" >&6
9148
for QUAGGA_STATE_DIR in ${quagga_statedir_prefix}/var/run ${quagga_statedir_prefix}/var/adm ${quagga_statedir_prefix}/etc /var/run /var/adm /etc /dev/null;
9150
test -d $QUAGGA_STATE_DIR && break
9152
quagga_statedir=$QUAGGA_STATE_DIR
9154
echo "$as_me:$LINENO: result: $ac_statedir" >&5
9155
echo "${ECHO_T}$ac_statedir" >&6
9157
quagga_statedir=${localstatedir}
9158
echo "$as_me:$LINENO: checking directory to use for state file" >&5
9159
echo $ECHO_N "checking directory to use for state file... $ECHO_C" >&6
9160
echo "$as_me:$LINENO: result: ${quagga_statedir}" >&5
9161
echo "${ECHO_T}${quagga_statedir}" >&6
9163
if test $quagga_statedir = "/dev/null"; then
9164
{ { echo "$as_me:$LINENO: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&5
9165
echo "$as_me: error: 'STATE DIRECTORY NOT FOUND! FIX OR SPECIFY --localstatedir!'" >&2;}
9166
{ (exit 1); exit 1; }; }
9170
cat >>confdefs.h <<_ACEOF
9171
#define PATH_ZEBRA_PID "$quagga_statedir/zebra.pid"
9175
cat >>confdefs.h <<_ACEOF
9176
#define PATH_RIPD_PID "$quagga_statedir/ripd.pid"
9180
cat >>confdefs.h <<_ACEOF
9181
#define PATH_RIPNGD_PID "$quagga_statedir/ripngd.pid"
9185
cat >>confdefs.h <<_ACEOF
9186
#define PATH_BGPD_PID "$quagga_statedir/bgpd.pid"
9190
cat >>confdefs.h <<_ACEOF
9191
#define PATH_OSPFD_PID "$quagga_statedir/ospfd.pid"
9195
cat >>confdefs.h <<_ACEOF
9196
#define PATH_OSPF6D_PID "$quagga_statedir/ospf6d.pid"
9200
cat >>confdefs.h <<_ACEOF
9201
#define PATH_ISISD_PID "$quagga_statedir/isisd.pid"
9205
cat >>confdefs.h <<_ACEOF
9206
#define ZEBRA_SERV_PATH "$quagga_statedir/zserv.api"
9210
cat >>confdefs.h <<_ACEOF
9211
#define ZEBRA_VTYSH_PATH "$quagga_statedir/zebra.vty"
9215
cat >>confdefs.h <<_ACEOF
9216
#define RIP_VTYSH_PATH "$quagga_statedir/ripd.vty"
9220
cat >>confdefs.h <<_ACEOF
9221
#define RIPNG_VTYSH_PATH "$quagga_statedir/ripngd.vty"
9225
cat >>confdefs.h <<_ACEOF
9226
#define BGP_VTYSH_PATH "$quagga_statedir/bgpd.vty"
9230
cat >>confdefs.h <<_ACEOF
9231
#define OSPF_VTYSH_PATH "$quagga_statedir/ospfd.vty"
9235
cat >>confdefs.h <<_ACEOF
9236
#define OSPF6_VTYSH_PATH "$quagga_statedir/ospf6d.vty"
9240
cat >>confdefs.h <<_ACEOF
9241
#define ISIS_VTYSH_PATH "$quagga_statedir/isisd.vty"
9245
echo "$as_me:$LINENO: checking for working htonl" >&5
9246
echo $ECHO_N "checking for working htonl... $ECHO_C" >&6
9247
if test "${ac_cv_htonl_works+set}" = set; then
9248
echo $ECHO_N "(cached) $ECHO_C" >&6
9251
cat >conftest.$ac_ext <<_ACEOF
9252
#line $LINENO "configure"
9255
cat confdefs.h >>conftest.$ac_ext
9256
cat >>conftest.$ac_ext <<_ACEOF
9257
/* end confdefs.h. */
9258
#ifdef HAVE_SYS_TYPES_H
9259
#include <sys/types.h>
9264
#ifdef HAVE_NETINET_IN_H
9265
#include <netinet/in.h>
9275
rm -f conftest.$ac_objext conftest$ac_exeext
9276
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277
(eval $ac_link) 2>&5
9279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280
(exit $ac_status); } &&
9281
{ ac_try='test -s conftest$ac_exeext'
9282
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286
(exit $ac_status); }; }; then
9287
ac_cv_htonl_works=yes
9289
echo "$as_me: failed program was:" >&5
9290
sed 's/^/| /' conftest.$ac_ext >&5
9292
ac_cv_htonl_works=no
9294
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9297
echo "$as_me:$LINENO: result: $ac_cv_htonl_works" >&5
9298
echo "${ECHO_T}$ac_cv_htonl_works" >&6
9300
ac_config_files="$ac_config_files Makefile lib/Makefile zebra/Makefile ripd/Makefile ripngd/Makefile bgpd/Makefile ospfd/Makefile ospf6d/Makefile isisd/Makefile vtysh/Makefile doc/Makefile ospfclient/Makefile redhat/Makefile redhat/quagga.spec lib/version.h"
9301
cat >confcache <<\_ACEOF
9302
# This file is a shell script that caches the results of configure
9303
# tests run on this system so they can be shared between configure
9304
# scripts and configure runs, see configure's option --config-cache.
9305
# It is not useful on other systems. If it contains results you don't
9306
# want to keep, you may remove or edit it.
9308
# config.status only pays attention to the cache file if you give it
9309
# the --recheck option to rerun configure.
9311
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9312
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9317
# The following way of writing the cache mishandles newlines in values,
9318
# but we know of no workaround that is simple, portable, and efficient.
9319
# So, don't put newlines in cache variables' values.
9320
# Ultrix sh set writes to stderr and can't be redirected directly,
9321
# and sets the high bit in the cache file unless we assign to the vars.
9324
case `(ac_space=' '; set | grep ac_space) 2>&1` in
9326
# `set' does not quote correctly, so add quotes (double-quote
9327
# substitution turns \\\\ into \\, and sed turns \\ into \).
9330
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9333
# `set' quotes correctly as required by POSIX, so do not add quotes.
9335
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9342
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9344
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9346
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9347
if test -w $cache_file; then
9348
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9349
cat confcache >$cache_file
9351
echo "not updating unwritable cache $cache_file"
9356
test "x$prefix" = xNONE && prefix=$ac_default_prefix
9357
# Let make expand exec_prefix.
9358
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9360
# VPATH may cause trouble with some makes, so we remove $(srcdir),
9361
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9362
# trailing colons and then remove the whole line if VPATH becomes empty
9363
# (actually we leave an empty line to preserve line numbers).
9364
if test "x$srcdir" = x.; then
9365
ac_vpsub='/^[ ]*VPATH[ ]*=/{
9366
s/:*\$(srcdir):*/:/;
9367
s/:*\${srcdir}:*/:/;
9369
s/^\([^=]*=[ ]*\):*/\1/;
9375
DEFS=-DHAVE_CONFIG_H
9379
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9380
# 1. Remove the extension, and $U if already installed.
9381
ac_i=`echo "$ac_i" |
9382
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9384
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9385
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9389
LTLIBOBJS=$ac_ltlibobjs
9392
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9393
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9394
Usually this means the macro was only invoked conditionally." >&5
9395
echo "$as_me: error: conditional \"AMDEP\" was never defined.
9396
Usually this means the macro was only invoked conditionally." >&2;}
9397
{ (exit 1); exit 1; }; }
9399
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9400
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9401
Usually this means the macro was only invoked conditionally." >&5
9402
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9403
Usually this means the macro was only invoked conditionally." >&2;}
9404
{ (exit 1); exit 1; }; }
9407
: ${CONFIG_STATUS=./config.status}
9408
ac_clean_files_save=$ac_clean_files
9409
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9410
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9411
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9412
cat >$CONFIG_STATUS <<_ACEOF
9414
# Generated by $as_me.
9415
# Run this file to recreate the current configuration.
9416
# Compiler output produced by configure, useful for debugging
9417
# configure, is in config.log if it exists.
9422
SHELL=\${CONFIG_SHELL-$SHELL}
9425
cat >>$CONFIG_STATUS <<\_ACEOF
9426
## --------------------- ##
9427
## M4sh Initialization. ##
9428
## --------------------- ##
9430
# Be Bourne compatible
9431
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9434
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9435
# is contrary to our usage. Disable this feature.
9436
alias -g '${1+"$@"}'='"$@"'
9437
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9441
# Support unset when possible.
9442
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9449
# Work around bugs in pre-3.0 UWIN ksh.
9450
$as_unset ENV MAIL MAILPATH
9457
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9458
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9459
LC_TELEPHONE LC_TIME
9461
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9462
eval $as_var=C; export $as_var
9468
# Required to use basename.
9469
if expr a : '\(a\)' >/dev/null 2>&1; then
9475
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9476
as_basename=basename
9482
# Name of the executable.
9483
as_me=`$as_basename "$0" ||
9484
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9485
X"$0" : 'X\(//\)$' \| \
9486
X"$0" : 'X\(/\)$' \| \
9487
. : '\(.\)' 2>/dev/null ||
9489
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9490
/^X\/\(\/\/\)$/{ s//\1/; q; }
9491
/^X\/\(\/\).*/{ s//\1/; q; }
9495
# PATH needs CR, and LINENO needs CR and PATH.
9496
# Avoid depending upon Character Ranges.
9497
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9498
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9499
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9500
as_cr_digits='0123456789'
9501
as_cr_alnum=$as_cr_Letters$as_cr_digits
9503
# The user is always right.
9504
if test "${PATH_SEPARATOR+set}" != set; then
9505
echo "#! /bin/sh" >conf$$.sh
9506
echo "exit 0" >>conf$$.sh
9508
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9519
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9520
test "x$as_lineno_1" != "x$as_lineno_2" &&
9521
test "x$as_lineno_3" = "x$as_lineno_2" || {
9522
# Find who we are. Look in the path if we contain no path at all
9525
*[\\/]* ) as_myself=$0 ;;
9526
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530
test -z "$as_dir" && as_dir=.
9531
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9536
# We did not find ourselves, most probably we were run as `sh COMMAND'
9537
# in which case we are not to be found in the path.
9538
if test "x$as_myself" = x; then
9541
if test ! -f "$as_myself"; then
9542
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9543
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9544
{ (exit 1); exit 1; }; }
9546
case $CONFIG_SHELL in
9548
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9552
test -z "$as_dir" && as_dir=.
9553
for as_base in sh bash ksh sh5; do
9556
if ("$as_dir/$as_base" -c '
9559
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9560
test "x$as_lineno_1" != "x$as_lineno_2" &&
9561
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9562
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9563
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9564
CONFIG_SHELL=$as_dir/$as_base
9566
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9574
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9575
# uniformly replaced by the line number. The first 'sed' inserts a
9576
# line-number line before each line; the second 'sed' does the real
9577
# work. The second script uses 'N' to pair each line-number line
9578
# with the numbered line, and appends trailing '-' during
9579
# substitution so that $LINENO is not a special case at line end.
9580
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9581
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9582
sed '=' <$as_myself |
9587
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9590
s,^['$as_cr_digits']*\n,,
9592
chmod +x $as_me.lineno ||
9593
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9594
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9595
{ (exit 1); exit 1; }; }
9597
# Don't try to exec as it changes $[0], causing all sort of problems
9598
# (the dirname of $[0] is not the place where we might find the
9599
# original and so on. Autoconf is especially sensible to this).
9601
# Exit status is that of the last command.
9606
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9607
*c*,-n*) ECHO_N= ECHO_C='
9609
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9610
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9613
if expr a : '\(a\)' >/dev/null 2>&1; then
9619
rm -f conf$$ conf$$.exe conf$$.file
9621
if ln -s conf$$.file conf$$ 2>/dev/null; then
9622
# We could just check for DJGPP; but this test a) works b) is more generic
9623
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9624
if test -f conf$$.exe; then
9625
# Don't use ln at all; we don't have any links
9630
elif ln conf$$.file conf$$ 2>/dev/null; then
9635
rm -f conf$$ conf$$.exe conf$$.file
9637
if mkdir -p . 2>/dev/null; then
9643
as_executable_p="test -f"
9645
# Sed expression to map a string onto a valid CPP name.
9646
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9648
# Sed expression to map a string onto a valid variable name.
9649
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9653
# We need space, tab and new line, in precisely that order.
9663
# Open the log real soon, to keep \$[0] and so on meaningful, and to
9664
# report actual input values of CONFIG_FILES etc. instead of their
9665
# values after options handling. Logging --version etc. is OK.
9669
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9670
## Running $as_me. ##
9675
This file was extended by quagga $as_me 0.96.5, which was
9676
generated by GNU Autoconf 2.57. Invocation command line was
9678
CONFIG_FILES = $CONFIG_FILES
9679
CONFIG_HEADERS = $CONFIG_HEADERS
9680
CONFIG_LINKS = $CONFIG_LINKS
9681
CONFIG_COMMANDS = $CONFIG_COMMANDS
9685
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9689
# Files that config.status was made for.
9690
if test -n "$ac_config_files"; then
9691
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9694
if test -n "$ac_config_headers"; then
9695
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9698
if test -n "$ac_config_links"; then
9699
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9702
if test -n "$ac_config_commands"; then
9703
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9706
cat >>$CONFIG_STATUS <<\_ACEOF
9709
\`$as_me' instantiates files from templates according to the
9710
current configuration.
9712
Usage: $0 [OPTIONS] [FILE]...
9714
-h, --help print this help, then exit
9715
-V, --version print version number, then exit
9716
-q, --quiet do not print progress messages
9717
-d, --debug don't remove temporary files
9718
--recheck update $as_me by reconfiguring in the same conditions
9719
--file=FILE[:TEMPLATE]
9720
instantiate the configuration file FILE
9721
--header=FILE[:TEMPLATE]
9722
instantiate the configuration header FILE
9724
Configuration files:
9727
Configuration headers:
9730
Configuration commands:
9733
Report bugs to <bug-autoconf@gnu.org>."
9736
cat >>$CONFIG_STATUS <<_ACEOF
9738
quagga config.status 0.96.5
9739
configured by $0, generated by GNU Autoconf 2.57,
9740
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9742
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9743
Free Software Foundation, Inc.
9744
This config.status script is free software; the Free Software Foundation
9745
gives unlimited permission to copy, distribute and modify it."
9750
cat >>$CONFIG_STATUS <<\_ACEOF
9751
# If no file are specified by the user, then we need to provide default
9752
# value. By we need to know if files were specified by the user.
9758
ac_option=`expr "x$1" : 'x\([^=]*\)='`
9759
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9767
*) # This is not an option, so the user has probably given explicit
9770
ac_need_defaults=false;;
9774
# Handling of the options.
9776
cat >>$CONFIG_STATUS <<\_ACEOF
9777
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9779
--version | --vers* | -V )
9780
echo "$ac_cs_version"; exit 0 ;;
9782
# Conflict between --help and --header
9783
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
9784
Try \`$0 --help' for more information." >&5
9785
echo "$as_me: error: ambiguous option: $1
9786
Try \`$0 --help' for more information." >&2;}
9787
{ (exit 1); exit 1; }; };;
9788
--help | --hel | -h )
9789
echo "$ac_cs_usage"; exit 0 ;;
9790
--debug | --d* | -d )
9792
--file | --fil | --fi | --f )
9794
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9795
ac_need_defaults=false;;
9796
--header | --heade | --head | --hea )
9798
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9799
ac_need_defaults=false;;
9800
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
9801
| -silent | --silent | --silen | --sile | --sil | --si | --s)
9805
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9806
Try \`$0 --help' for more information." >&5
9807
echo "$as_me: error: unrecognized option: $1
9808
Try \`$0 --help' for more information." >&2;}
9809
{ (exit 1); exit 1; }; } ;;
9811
*) ac_config_targets="$ac_config_targets $1" ;;
9817
ac_configure_extra_args=
9819
if $ac_cs_silent; then
9821
ac_configure_extra_args="$ac_configure_extra_args --silent"
9825
cat >>$CONFIG_STATUS <<_ACEOF
9826
if \$ac_cs_recheck; then
9827
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9828
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9833
cat >>$CONFIG_STATUS <<_ACEOF
9835
# INIT-COMMANDS section.
9838
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9844
cat >>$CONFIG_STATUS <<\_ACEOF
9845
for ac_config_target in $ac_config_targets
9847
case "$ac_config_target" in
9848
# Handling of arguments.
9849
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9850
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
9851
"zebra/Makefile" ) CONFIG_FILES="$CONFIG_FILES zebra/Makefile" ;;
9852
"ripd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripd/Makefile" ;;
9853
"ripngd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ripngd/Makefile" ;;
9854
"bgpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bgpd/Makefile" ;;
9855
"ospfd/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfd/Makefile" ;;
9856
"ospf6d/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospf6d/Makefile" ;;
9857
"isisd/Makefile" ) CONFIG_FILES="$CONFIG_FILES isisd/Makefile" ;;
9858
"vtysh/Makefile" ) CONFIG_FILES="$CONFIG_FILES vtysh/Makefile" ;;
9859
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9860
"ospfclient/Makefile" ) CONFIG_FILES="$CONFIG_FILES ospfclient/Makefile" ;;
9861
"redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES redhat/Makefile" ;;
9862
"redhat/quagga.spec" ) CONFIG_FILES="$CONFIG_FILES redhat/quagga.spec" ;;
9863
"lib/version.h" ) CONFIG_FILES="$CONFIG_FILES lib/version.h" ;;
9864
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9865
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9866
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9867
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9868
{ (exit 1); exit 1; }; };;
9872
# If the user did not use the arguments to specify the items to instantiate,
9873
# then the envvar interface is used. Set only those that are not.
9874
# We use the long form for the default assignment because of an extremely
9875
# bizarre bug on SunOS 4.1.3.
9876
if $ac_need_defaults; then
9877
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9878
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9879
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9882
# Have a temporary directory for convenience. Make it in the build tree
9883
# simply because there is no reason to put it here, and in addition,
9884
# creating and moving files from /tmp can sometimes cause problems.
9885
# Create a temporary directory, and hook for its removal unless debugging.
9888
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9889
trap '{ (exit 1); exit 1; }' 1 2 13 15
9892
# Create a (secure) tmp directory for tmp files.
9895
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9896
test -n "$tmp" && test -d "$tmp"
9899
tmp=./confstat$$-$RANDOM
9900
(umask 077 && mkdir $tmp)
9903
echo "$me: cannot create a temporary directory in ." >&2
9904
{ (exit 1); exit 1; }
9909
cat >>$CONFIG_STATUS <<_ACEOF
9912
# CONFIG_FILES section.
9915
# No need to generate the scripts if there are no CONFIG_FILES.
9916
# This happens for instance when ./config.status config.h
9917
if test -n "\$CONFIG_FILES"; then
9918
# Protect against being on the right side of a sed subst in config.status.
9919
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9920
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9921
s,@SHELL@,$SHELL,;t t
9922
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9923
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9924
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9925
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9926
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9927
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9928
s,@exec_prefix@,$exec_prefix,;t t
9929
s,@prefix@,$prefix,;t t
9930
s,@program_transform_name@,$program_transform_name,;t t
9931
s,@bindir@,$bindir,;t t
9932
s,@sbindir@,$sbindir,;t t
9933
s,@libexecdir@,$libexecdir,;t t
9934
s,@datadir@,$datadir,;t t
9935
s,@sysconfdir@,$sysconfdir,;t t
9936
s,@sharedstatedir@,$sharedstatedir,;t t
9937
s,@localstatedir@,$localstatedir,;t t
9938
s,@libdir@,$libdir,;t t
9939
s,@includedir@,$includedir,;t t
9940
s,@oldincludedir@,$oldincludedir,;t t
9941
s,@infodir@,$infodir,;t t
9942
s,@mandir@,$mandir,;t t
9943
s,@build_alias@,$build_alias,;t t
9944
s,@host_alias@,$host_alias,;t t
9945
s,@target_alias@,$target_alias,;t t
9947
s,@ECHO_C@,$ECHO_C,;t t
9948
s,@ECHO_N@,$ECHO_N,;t t
9949
s,@ECHO_T@,$ECHO_T,;t t
9951
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9952
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9953
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9954
s,@CYGPATH_W@,$CYGPATH_W,;t t
9955
s,@PACKAGE@,$PACKAGE,;t t
9956
s,@VERSION@,$VERSION,;t t
9957
s,@ACLOCAL@,$ACLOCAL,;t t
9958
s,@AUTOCONF@,$AUTOCONF,;t t
9959
s,@AUTOMAKE@,$AUTOMAKE,;t t
9960
s,@AUTOHEADER@,$AUTOHEADER,;t t
9961
s,@MAKEINFO@,$MAKEINFO,;t t
9962
s,@AMTAR@,$AMTAR,;t t
9963
s,@install_sh@,$install_sh,;t t
9964
s,@STRIP@,$STRIP,;t t
9965
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
9966
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
9968
s,@SET_MAKE@,$SET_MAKE,;t t
9969
s,@am__leading_dot@,$am__leading_dot,;t t
9970
s,@exampledir@,$exampledir,;t t
9971
s,@build@,$build,;t t
9972
s,@build_cpu@,$build_cpu,;t t
9973
s,@build_vendor@,$build_vendor,;t t
9974
s,@build_os@,$build_os,;t t
9976
s,@host_cpu@,$host_cpu,;t t
9977
s,@host_vendor@,$host_vendor,;t t
9978
s,@host_os@,$host_os,;t t
9980
s,@CFLAGS@,$CFLAGS,;t t
9981
s,@LDFLAGS@,$LDFLAGS,;t t
9982
s,@CPPFLAGS@,$CPPFLAGS,;t t
9983
s,@ac_ct_CC@,$ac_ct_CC,;t t
9984
s,@EXEEXT@,$EXEEXT,;t t
9985
s,@OBJEXT@,$OBJEXT,;t t
9986
s,@DEPDIR@,$DEPDIR,;t t
9987
s,@am__include@,$am__include,;t t
9988
s,@am__quote@,$am__quote,;t t
9989
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
9990
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
9991
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
9992
s,@CCDEPMODE@,$CCDEPMODE,;t t
9993
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
9994
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
9997
s,@ac_ct_AR@,$ac_ct_AR,;t t
9998
s,@RANLIB@,$RANLIB,;t t
9999
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10000
s,@EGREP@,$EGREP,;t t
10001
s,@MULTIPATH_NUM@,$MULTIPATH_NUM,;t t
10002
s,@LIBPAM@,$LIBPAM,;t t
10003
s,@RT_METHOD@,$RT_METHOD,;t t
10004
s,@KERNEL_METHOD@,$KERNEL_METHOD,;t t
10005
s,@OTHER_METHOD@,$OTHER_METHOD,;t t
10006
s,@RTREAD_METHOD@,$RTREAD_METHOD,;t t
10007
s,@IF_METHOD@,$IF_METHOD,;t t
10008
s,@IF_PROC@,$IF_PROC,;t t
10009
s,@IPFORWARD@,$IPFORWARD,;t t
10010
s,@LIB_IPV6@,$LIB_IPV6,;t t
10011
s,@ZEBRA@,$ZEBRA,;t t
10012
s,@BGPD@,$BGPD,;t t
10013
s,@RIPD@,$RIPD,;t t
10014
s,@RIPNGD@,$RIPNGD,;t t
10015
s,@OSPFD@,$OSPFD,;t t
10016
s,@OSPF6D@,$OSPF6D,;t t
10017
s,@ISISD@,$ISISD,;t t
10018
s,@VTYSH@,$VTYSH,;t t
10019
s,@INCLUDES@,$INCLUDES,;t t
10020
s,@CURSES@,$CURSES,;t t
10021
s,@OSPFCLIENT@,$OSPFCLIENT,;t t
10022
s,@OSPFAPI@,$OSPFAPI,;t t
10023
s,@LIB_REGEX@,$LIB_REGEX,;t t
10024
s,@LIBCAP@,$LIBCAP,;t t
10025
s,@CONFDATE@,$CONFDATE,;t t
10026
s,@LIBOBJS@,$LIBOBJS,;t t
10027
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10032
cat >>$CONFIG_STATUS <<\_ACEOF
10033
# Split the substitutions into bite-sized pieces for seds with
10034
# small command number limits, like on Digital OSF/1 and HP-UX.
10035
ac_max_sed_lines=48
10036
ac_sed_frag=1 # Number of current file.
10037
ac_beg=1 # First line for current file.
10038
ac_end=$ac_max_sed_lines # Line after last line for current file.
10041
while $ac_more_lines; do
10042
if test $ac_beg -gt 1; then
10043
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10045
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10047
if test ! -s $tmp/subs.frag; then
10048
ac_more_lines=false
10050
# The purpose of the label and of the branching condition is to
10051
# speed up the sed processing (if there are no `@' at all, there
10052
# is no need to browse any of the substitutions).
10053
# These are the two extra sed commands mentioned above.
10055
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10056
if test -z "$ac_sed_cmds"; then
10057
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10059
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10061
ac_sed_frag=`expr $ac_sed_frag + 1`
10063
ac_end=`expr $ac_end + $ac_max_sed_lines`
10066
if test -z "$ac_sed_cmds"; then
10069
fi # test -n "$CONFIG_FILES"
10072
cat >>$CONFIG_STATUS <<\_ACEOF
10073
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10074
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10076
- | *:- | *:-:* ) # input from stdin
10078
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10079
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10080
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10081
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10082
* ) ac_file_in=$ac_file.in ;;
10085
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10086
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10087
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10088
X"$ac_file" : 'X\(//\)[^/]' \| \
10089
X"$ac_file" : 'X\(//\)$' \| \
10090
X"$ac_file" : 'X\(/\)' \| \
10091
. : '\(.\)' 2>/dev/null ||
10093
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10094
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10095
/^X\(\/\/\)$/{ s//\1/; q; }
10096
/^X\(\/\).*/{ s//\1/; q; }
10098
{ if $as_mkdir_p; then
10103
while test ! -d "$as_dir"; do
10104
as_dirs="$as_dir $as_dirs"
10105
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10106
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10107
X"$as_dir" : 'X\(//\)[^/]' \| \
10108
X"$as_dir" : 'X\(//\)$' \| \
10109
X"$as_dir" : 'X\(/\)' \| \
10110
. : '\(.\)' 2>/dev/null ||
10112
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10113
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10114
/^X\(\/\/\)$/{ s//\1/; q; }
10115
/^X\(\/\).*/{ s//\1/; q; }
10118
test ! -n "$as_dirs" || mkdir $as_dirs
10119
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10120
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10121
{ (exit 1); exit 1; }; }; }
10125
if test "$ac_dir" != .; then
10126
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10127
# A "../" for each directory in $ac_dir_suffix.
10128
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10130
ac_dir_suffix= ac_top_builddir=
10134
.) # No --srcdir option. We are building in place.
10136
if test -z "$ac_top_builddir"; then
10139
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10141
[\\/]* | ?:[\\/]* ) # Absolute path.
10142
ac_srcdir=$srcdir$ac_dir_suffix;
10143
ac_top_srcdir=$srcdir ;;
10144
*) # Relative path.
10145
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10146
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10148
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10150
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10151
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10152
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10153
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10157
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10158
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10161
if test x"$ac_file" != x-; then
10162
{ echo "$as_me:$LINENO: creating $ac_file" >&5
10163
echo "$as_me: creating $ac_file" >&6;}
10166
# Let's still pretend it is `configure' which instantiates (i.e., don't
10167
# use $as_me), people would be surprised to read:
10168
# /* config.h. Generated by config.status. */
10169
if test x"$ac_file" = x-; then
10172
configure_input="$ac_file. "
10174
configure_input=$configure_input"Generated from `echo $ac_file_in |
10175
sed 's,.*/,,'` by configure."
10177
# First look for the input files in the build tree, otherwise in the
10179
ac_file_inputs=`IFS=:
10180
for f in $ac_file_in; do
10182
-) echo $tmp/stdin ;;
10184
# Absolute (can't be DOS-style, as IFS=:)
10185
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10186
echo "$as_me: error: cannot find input file: $f" >&2;}
10187
{ (exit 1); exit 1; }; }
10190
if test -f "$f"; then
10193
elif test -f "$srcdir/$f"; then
10198
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10199
echo "$as_me: error: cannot find input file: $f" >&2;}
10200
{ (exit 1); exit 1; }; }
10203
done` || { (exit 1); exit 1; }
10205
cat >>$CONFIG_STATUS <<_ACEOF
10209
cat >>$CONFIG_STATUS <<\_ACEOF
10211
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10212
s,@configure_input@,$configure_input,;t t
10213
s,@srcdir@,$ac_srcdir,;t t
10214
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10215
s,@top_srcdir@,$ac_top_srcdir,;t t
10216
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10217
s,@builddir@,$ac_builddir,;t t
10218
s,@abs_builddir@,$ac_abs_builddir,;t t
10219
s,@top_builddir@,$ac_top_builddir,;t t
10220
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10221
s,@INSTALL@,$ac_INSTALL,;t t
10222
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10224
if test x"$ac_file" != x-; then
10225
mv $tmp/out $ac_file
10233
cat >>$CONFIG_STATUS <<\_ACEOF
10236
# CONFIG_HEADER section.
10239
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10240
# NAME is the cpp macro being defined and VALUE is the value it is being given.
10242
# ac_d sets the value in "#define NAME VALUE" lines.
10243
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10244
ac_dB='[ ].*$,\1#\2'
10247
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10248
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10249
ac_uB='$,\1#\2define\3'
10253
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10254
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10256
- | *:- | *:-:* ) # input from stdin
10258
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10259
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10260
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10261
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10262
* ) ac_file_in=$ac_file.in ;;
10265
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10266
echo "$as_me: creating $ac_file" >&6;}
10268
# First look for the input files in the build tree, otherwise in the
10270
ac_file_inputs=`IFS=:
10271
for f in $ac_file_in; do
10273
-) echo $tmp/stdin ;;
10275
# Absolute (can't be DOS-style, as IFS=:)
10276
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10277
echo "$as_me: error: cannot find input file: $f" >&2;}
10278
{ (exit 1); exit 1; }; }
10281
if test -f "$f"; then
10284
elif test -f "$srcdir/$f"; then
10289
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10290
echo "$as_me: error: cannot find input file: $f" >&2;}
10291
{ (exit 1); exit 1; }; }
10294
done` || { (exit 1); exit 1; }
10295
# Remove the trailing spaces.
10296
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10300
# Transform confdefs.h into two sed scripts, `conftest.defines' and
10301
# `conftest.undefs', that substitutes the proper values into
10302
# config.h.in to produce config.h. The first handles `#define'
10303
# templates, and the second `#undef' templates.
10304
# And first: Protect against being on the right side of a sed subst in
10305
# config.status. Protect against being in an unquoted here document
10306
# in config.status.
10307
rm -f conftest.defines conftest.undefs
10308
# Using a here document instead of a string reduces the quoting nightmare.
10309
# Putting comments in sed scripts is not portable.
10311
# `end' is used to avoid that the second main sed command (meant for
10312
# 0-ary CPP macros) applies to n-ary macro definitions.
10313
# See the Autoconf documentation for `clear'.
10314
cat >confdef2sed.sed <<\_ACEOF
10319
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10321
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10324
# If some macros were called several times there might be several times
10325
# the same #defines, which is useless. Nevertheless, we may not want to
10326
# sort them, since we want the *last* AC-DEFINE to be honored.
10327
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10328
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10329
rm -f confdef2sed.sed
10331
# This sed command replaces #undef with comments. This is necessary, for
10332
# example, in the case of _POSIX_SOURCE, which is predefined and required
10333
# on some systems where configure will not decide to define it.
10334
cat >>conftest.undefs <<\_ACEOF
10335
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10338
# Break up conftest.defines because some shells have a limit on the size
10339
# of here documents, and old seds have small limits too (100 cmds).
10340
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10341
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10342
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10343
echo ' :' >>$CONFIG_STATUS
10344
rm -f conftest.tail
10345
while grep . conftest.defines >/dev/null
10347
# Write a limited-size here document to $tmp/defines.sed.
10348
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10349
# Speed up: don't consider the non `#define' lines.
10350
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10351
# Work around the forget-to-reset-the-flag bug.
10352
echo 't clr' >>$CONFIG_STATUS
10353
echo ': clr' >>$CONFIG_STATUS
10354
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10356
sed -f $tmp/defines.sed $tmp/in >$tmp/out
10358
mv $tmp/out $tmp/in
10360
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10361
rm -f conftest.defines
10362
mv conftest.tail conftest.defines
10364
rm -f conftest.defines
10365
echo ' fi # grep' >>$CONFIG_STATUS
10366
echo >>$CONFIG_STATUS
10368
# Break up conftest.undefs because some shells have a limit on the size
10369
# of here documents, and old seds have small limits too (100 cmds).
10370
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10371
rm -f conftest.tail
10372
while grep . conftest.undefs >/dev/null
10374
# Write a limited-size here document to $tmp/undefs.sed.
10375
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10376
# Speed up: don't consider the non `#undef'
10377
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10378
# Work around the forget-to-reset-the-flag bug.
10379
echo 't clr' >>$CONFIG_STATUS
10380
echo ': clr' >>$CONFIG_STATUS
10381
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10383
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10385
mv $tmp/out $tmp/in
10387
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10388
rm -f conftest.undefs
10389
mv conftest.tail conftest.undefs
10391
rm -f conftest.undefs
10393
cat >>$CONFIG_STATUS <<\_ACEOF
10394
# Let's still pretend it is `configure' which instantiates (i.e., don't
10395
# use $as_me), people would be surprised to read:
10396
# /* config.h. Generated by config.status. */
10397
if test x"$ac_file" = x-; then
10398
echo "/* Generated by configure. */" >$tmp/config.h
10400
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10402
cat $tmp/in >>$tmp/config.h
10404
if test x"$ac_file" != x-; then
10405
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10406
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10407
echo "$as_me: $ac_file is unchanged" >&6;}
10409
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10410
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10411
X"$ac_file" : 'X\(//\)[^/]' \| \
10412
X"$ac_file" : 'X\(//\)$' \| \
10413
X"$ac_file" : 'X\(/\)' \| \
10414
. : '\(.\)' 2>/dev/null ||
10416
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10417
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10418
/^X\(\/\/\)$/{ s//\1/; q; }
10419
/^X\(\/\).*/{ s//\1/; q; }
10421
{ if $as_mkdir_p; then
10426
while test ! -d "$as_dir"; do
10427
as_dirs="$as_dir $as_dirs"
10428
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10429
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10430
X"$as_dir" : 'X\(//\)[^/]' \| \
10431
X"$as_dir" : 'X\(//\)$' \| \
10432
X"$as_dir" : 'X\(/\)' \| \
10433
. : '\(.\)' 2>/dev/null ||
10435
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10436
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10437
/^X\(\/\/\)$/{ s//\1/; q; }
10438
/^X\(\/\).*/{ s//\1/; q; }
10441
test ! -n "$as_dirs" || mkdir $as_dirs
10442
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10443
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10444
{ (exit 1); exit 1; }; }; }
10447
mv $tmp/config.h $ac_file
10451
rm -f $tmp/config.h
10453
# Compute $ac_file's index in $config_headers.
10455
for _am_header in $config_headers :; do
10456
case $_am_header in
10457
$ac_file | $ac_file:* )
10460
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
10463
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10464
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10465
X$ac_file : 'X\(//\)[^/]' \| \
10466
X$ac_file : 'X\(//\)$' \| \
10467
X$ac_file : 'X\(/\)' \| \
10468
. : '\(.\)' 2>/dev/null ||
10470
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10471
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10472
/^X\(\/\/\)$/{ s//\1/; q; }
10473
/^X\(\/\).*/{ s//\1/; q; }
10474
s/.*/./; q'`/stamp-h$_am_stamp_count
10477
cat >>$CONFIG_STATUS <<\_ACEOF
10480
# CONFIG_COMMANDS section.
10482
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10483
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10484
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10485
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10486
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10487
X"$ac_dest" : 'X\(//\)[^/]' \| \
10488
X"$ac_dest" : 'X\(//\)$' \| \
10489
X"$ac_dest" : 'X\(/\)' \| \
10490
. : '\(.\)' 2>/dev/null ||
10492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10493
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10494
/^X\(\/\/\)$/{ s//\1/; q; }
10495
/^X\(\/\).*/{ s//\1/; q; }
10499
if test "$ac_dir" != .; then
10500
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10501
# A "../" for each directory in $ac_dir_suffix.
10502
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10504
ac_dir_suffix= ac_top_builddir=
10508
.) # No --srcdir option. We are building in place.
10510
if test -z "$ac_top_builddir"; then
10513
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10515
[\\/]* | ?:[\\/]* ) # Absolute path.
10516
ac_srcdir=$srcdir$ac_dir_suffix;
10517
ac_top_srcdir=$srcdir ;;
10518
*) # Relative path.
10519
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10520
ac_top_srcdir=$ac_top_builddir$srcdir ;;
10522
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10524
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10525
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10526
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10527
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10530
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10531
echo "$as_me: executing $ac_dest commands" >&6;}
10533
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10534
# Strip MF so we end up with the name of the file.
10535
mf=`echo "$mf" | sed -e 's/:.*$//'`
10536
# Check whether this is an Automake generated Makefile or not.
10537
# We used to match only the files named `Makefile.in', but
10538
# some people rename them; so instead we look at the file content.
10539
# Grep'ing the first line is not enough: some people post-process
10540
# each Makefile.in and add a new line on top of each file to say so.
10541
# So let's grep whole file.
10542
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10543
dirpart=`(dirname "$mf") 2>/dev/null ||
10544
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10545
X"$mf" : 'X\(//\)[^/]' \| \
10546
X"$mf" : 'X\(//\)$' \| \
10547
X"$mf" : 'X\(/\)' \| \
10548
. : '\(.\)' 2>/dev/null ||
10550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10551
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10552
/^X\(\/\/\)$/{ s//\1/; q; }
10553
/^X\(\/\).*/{ s//\1/; q; }
10558
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
10559
# Extract the definition of DEP_FILES from the Makefile without
10561
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
10562
test -z "$DEPDIR" && continue
10563
# When using ansi2knr, U may be empty or an underscore; expand it
10564
U=`sed -n -e '/^U = / s///p' < "$mf"`
10565
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
10566
# We invoke sed twice because it is the simplest approach to
10567
# changing $(DEPDIR) to its actual value in the expansion.
10568
for file in `sed -n -e '
10569
/^DEP_FILES = .*\\\\$/ {
10578
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
10579
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10580
# Make sure the directory exists.
10581
test -f "$dirpart/$file" && continue
10582
fdir=`(dirname "$file") 2>/dev/null ||
10583
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10584
X"$file" : 'X\(//\)[^/]' \| \
10585
X"$file" : 'X\(//\)$' \| \
10586
X"$file" : 'X\(/\)' \| \
10587
. : '\(.\)' 2>/dev/null ||
10589
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10590
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10591
/^X\(\/\/\)$/{ s//\1/; q; }
10592
/^X\(\/\).*/{ s//\1/; q; }
10594
{ if $as_mkdir_p; then
10595
mkdir -p $dirpart/$fdir
10597
as_dir=$dirpart/$fdir
10599
while test ! -d "$as_dir"; do
10600
as_dirs="$as_dir $as_dirs"
10601
as_dir=`(dirname "$as_dir") 2>/dev/null ||
10602
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10603
X"$as_dir" : 'X\(//\)[^/]' \| \
10604
X"$as_dir" : 'X\(//\)$' \| \
10605
X"$as_dir" : 'X\(/\)' \| \
10606
. : '\(.\)' 2>/dev/null ||
10608
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10609
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
10610
/^X\(\/\/\)$/{ s//\1/; q; }
10611
/^X\(\/\).*/{ s//\1/; q; }
10614
test ! -n "$as_dirs" || mkdir $as_dirs
10615
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10616
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10617
{ (exit 1); exit 1; }; }; }
10619
# echo "creating $dirpart/$file"
10620
echo '# dummy' > "$dirpart/$file"
10628
cat >>$CONFIG_STATUS <<\_ACEOF
10630
{ (exit 0); exit 0; }
10632
chmod +x $CONFIG_STATUS
10633
ac_clean_files=$ac_clean_files_save
10636
# configure is writing to config.log, and then calls config.status.
10637
# config.status does its own redirection, appending to config.log.
10638
# Unfortunately, on DOS this fails, as config.log is still kept open
10639
# by configure, so config.status won't be able to write to it; its
10640
# output is simply discarded. So we exec the FD to /dev/null,
10641
# effectively closing config.log, so it can be properly (re)opened and
10642
# appended to by config.status. When coming back to configure, we
10643
# need to make the FD available again.
10644
if test "$no_create" != yes; then
10646
ac_config_status_args=
10647
test "$silent" = yes &&
10648
ac_config_status_args="$ac_config_status_args --quiet"
10650
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10652
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
10653
# would make configure fail if this is the last instruction.
10654
$ac_cs_success || { (exit 1); exit 1; }
10659
zebra configuration
10660
-------------------
10661
quagga version : ${PACKAGE_VERSION}
10662
host operationg system : ${host_os}
10663
source code location : ${srcdir}
10665
compiler flags : ${CFLAGS}
10666
linker flags : ${LDFLAGS} ${LIBS}
10667
state file directory : ${quagga_statedir}
10668
config file directory : `eval echo \`echo ${sysconfdir}\``
10669
example directory : `eval echo \`echo ${exampledir}\``
10670
user to run as : ${enable_user}
10671
group to run as : ${enable_group}
10672
group for vty sockets : ${enable_vty_group}
10673
config file mask : ${enable_configfile_mask}
10674
log file mask : ${enable_logfile_mask}
10676
The above user and group must have read/write access to the state file
10677
directory and to the config files in the config file directory.