2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for dbacl 1.9.
5
# Report bugs to <laird@lbreyer.com>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
271
PACKAGE_TARNAME='dbacl'
272
PACKAGE_VERSION='1.9'
273
PACKAGE_STRING='dbacl 1.9'
274
PACKAGE_BUGREPORT='laird@lbreyer.com'
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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CFLAGSIEEE LEX LEXLIB LEX_OUTPUT_ROOT YACC LDADDINTER INCLUDESINTER 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 dbacl 1.9 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]
843
--target=TARGET configure for building compilers for TARGET [HOST]
847
if test -n "$ac_init_help"; then
848
case $ac_init_help in
849
short | recursive ) echo "Configuration of dbacl 1.9:";;
853
Some influential environment variables:
854
CC C compiler command
855
CFLAGS C compiler flags
856
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
857
nonstandard directory <lib dir>
858
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
859
headers in a nonstandard directory <include dir>
862
Use these variables to override the choices made by `configure' or to help
863
it to find libraries and programs with nonstandard names/locations.
865
Report bugs to <laird@lbreyer.com>.
869
if test "$ac_init_help" = "recursive"; then
870
# If there are subdirs, report their specific --help.
872
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
873
test -d $ac_dir || continue
876
if test "$ac_dir" != .; then
877
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
878
# A "../" for each directory in $ac_dir_suffix.
879
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881
ac_dir_suffix= ac_top_builddir=
885
.) # No --srcdir option. We are building in place.
887
if test -z "$ac_top_builddir"; then
890
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892
[\\/]* | ?:[\\/]* ) # Absolute path.
893
ac_srcdir=$srcdir$ac_dir_suffix;
894
ac_top_srcdir=$srcdir ;;
896
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
897
ac_top_srcdir=$ac_top_builddir$srcdir ;;
900
# Do not use `cd foo && pwd` to compute absolute paths, because
901
# the directories may not exist.
903
.) ac_abs_builddir="$ac_dir";;
906
.) ac_abs_builddir=`pwd`;;
907
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
908
*) ac_abs_builddir=`pwd`/"$ac_dir";;
911
case $ac_abs_builddir in
912
.) ac_abs_top_builddir=${ac_top_builddir}.;;
914
case ${ac_top_builddir}. in
915
.) ac_abs_top_builddir=$ac_abs_builddir;;
916
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
917
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
920
case $ac_abs_builddir in
921
.) ac_abs_srcdir=$ac_srcdir;;
924
.) ac_abs_srcdir=$ac_abs_builddir;;
925
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
926
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
929
case $ac_abs_builddir in
930
.) ac_abs_top_srcdir=$ac_top_srcdir;;
932
case $ac_top_srcdir in
933
.) ac_abs_top_srcdir=$ac_abs_builddir;;
934
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
935
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
940
# Check for guested configure; otherwise get Cygnus style configure.
941
if test -f $ac_srcdir/configure.gnu; then
943
$SHELL $ac_srcdir/configure.gnu --help=recursive
944
elif test -f $ac_srcdir/configure; then
946
$SHELL $ac_srcdir/configure --help=recursive
947
elif test -f $ac_srcdir/configure.ac ||
948
test -f $ac_srcdir/configure.in; then
952
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
958
test -n "$ac_init_help" && exit 0
959
if $ac_init_version; then
962
generated by GNU Autoconf 2.59
964
Copyright (C) 2003 Free Software Foundation, Inc.
965
This configure script is free software; the Free Software Foundation
966
gives unlimited permission to copy, distribute and modify it.
972
This file contains any messages produced by compilers while
973
running configure, to aid debugging if configure makes a mistake.
975
It was created by dbacl $as_me 1.9, which was
976
generated by GNU Autoconf 2.59. Invocation command line was
987
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
988
uname -m = `(uname -m) 2>/dev/null || echo unknown`
989
uname -r = `(uname -r) 2>/dev/null || echo unknown`
990
uname -s = `(uname -s) 2>/dev/null || echo unknown`
991
uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
994
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
996
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
997
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
998
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
999
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1000
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1001
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1002
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1010
test -z "$as_dir" && as_dir=.
1011
echo "PATH: $as_dir"
1026
# Keep a trace of the command line.
1027
# Strip out --no-create and --no-recursion so they do not pile up.
1028
# Strip out --silent because we don't want to record it for future runs.
1029
# Also quote any args containing shell meta-characters.
1030
# Make two passes to allow for proper duplicate-argument suppression.
1035
ac_must_keep_next=false
1041
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1042
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043
| -silent | --silent | --silen | --sile | --sil)
1045
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1046
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1052
if test $ac_must_keep_next = true; then
1053
ac_must_keep_next=false # Got value, back to normal.
1056
*=* | --config-cache | -C | -disable-* | --disable-* \
1057
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1058
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1059
| -with-* | --with-* | -without-* | --without-* | --x)
1060
case "$ac_configure_args0 " in
1061
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1064
-* ) ac_must_keep_next=true ;;
1067
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1068
# Get rid of the leading space.
1074
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1075
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
# When interrupted or exit'd, cleanup temporary files, and complete
1078
# config.log. We remove comments because anyway the quotes in there
1079
# would cause problems or look ugly.
1080
# WARNING: Be sure not to use single quotes in there, as some shells,
1081
# such as our DU 5.0 friend, will then `close' the trap.
1082
trap 'exit_status=$?
1083
# Save into config.log some information that might help in debugging.
1088
## ---------------- ##
1089
## Cache variables. ##
1090
## ---------------- ##
1093
# The following way of writing the cache mishandles newlines in values,
1096
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1099
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1100
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1104
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111
## ----------------- ##
1112
## Output variables. ##
1113
## ----------------- ##
1116
for ac_var in $ac_subst_vars
1118
eval ac_val=$`echo $ac_var`
1119
echo "$ac_var='"'"'$ac_val'"'"'"
1123
if test -n "$ac_subst_files"; then
1130
for ac_var in $ac_subst_files
1132
eval ac_val=$`echo $ac_var`
1133
echo "$ac_var='"'"'$ac_val'"'"'"
1138
if test -s confdefs.h; then
1145
sed "/^$/d" confdefs.h | sort
1148
test "$ac_signal" != 0 &&
1149
echo "$as_me: caught signal $ac_signal"
1150
echo "$as_me: exit $exit_status"
1152
rm -f core *.core &&
1153
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1156
for ac_signal in 1 2 13 15; do
1157
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1161
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1162
rm -rf conftest* confdefs.h
1163
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1166
# Predefined preprocessor variables.
1168
cat >>confdefs.h <<_ACEOF
1169
#define PACKAGE_NAME "$PACKAGE_NAME"
1173
cat >>confdefs.h <<_ACEOF
1174
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1178
cat >>confdefs.h <<_ACEOF
1179
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1183
cat >>confdefs.h <<_ACEOF
1184
#define PACKAGE_STRING "$PACKAGE_STRING"
1188
cat >>confdefs.h <<_ACEOF
1189
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1193
# Let the site file select an alternate cache file if it wants to.
1194
# Prefer explicitly selected file to automatically selected ones.
1195
if test -z "$CONFIG_SITE"; then
1196
if test "x$prefix" != xNONE; then
1197
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1202
for ac_site_file in $CONFIG_SITE; do
1203
if test -r "$ac_site_file"; then
1204
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1205
echo "$as_me: loading site script $ac_site_file" >&6;}
1206
sed 's/^/| /' "$ac_site_file" >&5
1211
if test -r "$cache_file"; then
1212
# Some versions of bash will fail to source /dev/null (special
1213
# files actually), so we avoid doing that.
1214
if test -f "$cache_file"; then
1215
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1216
echo "$as_me: loading cache $cache_file" >&6;}
1218
[\\/]* | ?:[\\/]* ) . $cache_file;;
1219
*) . ./$cache_file;;
1223
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1224
echo "$as_me: creating cache $cache_file" >&6;}
1228
# Check that the precious variables saved in the cache have kept the same
1230
ac_cache_corrupted=false
1231
for ac_var in `(set) 2>&1 |
1232
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1233
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1234
eval ac_new_set=\$ac_env_${ac_var}_set
1235
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1236
eval ac_new_val="\$ac_env_${ac_var}_value"
1237
case $ac_old_set,$ac_new_set in
1239
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1240
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1241
ac_cache_corrupted=: ;;
1243
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1244
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1245
ac_cache_corrupted=: ;;
1248
if test "x$ac_old_val" != "x$ac_new_val"; then
1249
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1250
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1251
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1252
echo "$as_me: former value: $ac_old_val" >&2;}
1253
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1254
echo "$as_me: current value: $ac_new_val" >&2;}
1255
ac_cache_corrupted=:
1258
# Pass precious variables to config.status.
1259
if test "$ac_new_set" = set; then
1261
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1262
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1263
*) ac_arg=$ac_var=$ac_new_val ;;
1265
case " $ac_configure_args " in
1266
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1267
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1271
if $ac_cache_corrupted; then
1272
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1273
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1274
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1275
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1276
{ (exit 1); exit 1; }; }
1280
ac_cpp='$CPP $CPPFLAGS'
1281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
for ac_dir in config $srcdir/config; do
1313
if test -f $ac_dir/install-sh; then
1315
ac_install_sh="$ac_aux_dir/install-sh -c"
1317
elif test -f $ac_dir/install.sh; then
1319
ac_install_sh="$ac_aux_dir/install.sh -c"
1321
elif test -f $ac_dir/shtool; then
1323
ac_install_sh="$ac_aux_dir/shtool install -c"
1327
if test -z "$ac_aux_dir"; then
1328
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1329
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1330
{ (exit 1); exit 1; }; }
1332
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1333
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1334
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1336
# Make sure we can run config.sub.
1337
$ac_config_sub sun4 >/dev/null 2>&1 ||
1338
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1339
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1340
{ (exit 1); exit 1; }; }
1342
echo "$as_me:$LINENO: checking build system type" >&5
1343
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1344
if test "${ac_cv_build+set}" = set; then
1345
echo $ECHO_N "(cached) $ECHO_C" >&6
1347
ac_cv_build_alias=$build_alias
1348
test -z "$ac_cv_build_alias" &&
1349
ac_cv_build_alias=`$ac_config_guess`
1350
test -z "$ac_cv_build_alias" &&
1351
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1352
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1353
{ (exit 1); exit 1; }; }
1354
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1355
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1356
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1357
{ (exit 1); exit 1; }; }
1360
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1361
echo "${ECHO_T}$ac_cv_build" >&6
1363
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1364
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1365
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1368
echo "$as_me:$LINENO: checking host system type" >&5
1369
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1370
if test "${ac_cv_host+set}" = set; then
1371
echo $ECHO_N "(cached) $ECHO_C" >&6
1373
ac_cv_host_alias=$host_alias
1374
test -z "$ac_cv_host_alias" &&
1375
ac_cv_host_alias=$ac_cv_build_alias
1376
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1377
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1378
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1379
{ (exit 1); exit 1; }; }
1382
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1383
echo "${ECHO_T}$ac_cv_host" >&6
1385
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1386
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1387
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1390
echo "$as_me:$LINENO: checking target system type" >&5
1391
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1392
if test "${ac_cv_target+set}" = set; then
1393
echo $ECHO_N "(cached) $ECHO_C" >&6
1395
ac_cv_target_alias=$target_alias
1396
test "x$ac_cv_target_alias" = "x" &&
1397
ac_cv_target_alias=$ac_cv_host_alias
1398
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1399
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1400
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1401
{ (exit 1); exit 1; }; }
1404
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1405
echo "${ECHO_T}$ac_cv_target" >&6
1406
target=$ac_cv_target
1407
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1408
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1409
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1412
# The aliases save the names the user supplied, while $host etc.
1413
# will get canonicalized.
1414
test -n "$target_alias" &&
1415
test "$program_prefix$program_suffix$program_transform_name" = \
1417
program_prefix=${target_alias}-
1419
cat >>confdefs.h <<\_ACEOF
1420
#define _GNU_SOURCE 1
1424
am__api_version="1.4"
1425
# Find a good install program. We prefer a C program (faster),
1426
# so one script is as good as another. But avoid the broken or
1427
# incompatible versions:
1428
# SysV /etc/install, /usr/sbin/install
1429
# SunOS /usr/etc/install
1430
# IRIX /sbin/install
1432
# AmigaOS /C/install, which installs bootblocks on floppy discs
1433
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1434
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1435
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1436
# OS/2's system install, which has a completely different semantic
1437
# ./install, which can be erroneously created by make from ./install.sh.
1438
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1439
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1440
if test -z "$INSTALL"; then
1441
if test "${ac_cv_path_install+set}" = set; then
1442
echo $ECHO_N "(cached) $ECHO_C" >&6
1444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448
test -z "$as_dir" && as_dir=.
1449
# Account for people who put trailing slashes in PATH elements.
1451
./ | .// | /cC/* | \
1452
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1453
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1456
# OSF1 and SCO ODT 3.0 have their own names for install.
1457
# Don't use installbsd from OSF since it installs stuff as root
1459
for ac_prog in ginstall scoinst install; do
1460
for ac_exec_ext in '' $ac_executable_extensions; do
1461
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1462
if test $ac_prog = install &&
1463
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1464
# AIX install. It has an incompatible calling convention.
1466
elif test $ac_prog = install &&
1467
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1468
# program-specific install script used by HP pwplus--don't use.
1471
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1483
if test "${ac_cv_path_install+set}" = set; then
1484
INSTALL=$ac_cv_path_install
1486
# As a last resort, use the slow shell script. We don't cache a
1487
# path for INSTALL within a source directory, because that will
1488
# break other packages using the cache if that directory is
1489
# removed, or if the path is relative.
1490
INSTALL=$ac_install_sh
1493
echo "$as_me:$LINENO: result: $INSTALL" >&5
1494
echo "${ECHO_T}$INSTALL" >&6
1496
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1497
# It thinks the first close brace ends the variable substitution.
1498
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1500
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1502
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1504
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1505
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1508
echo timestamp > conftestfile
1509
# Do `set' in a subshell so we don't clobber the current shell's
1510
# arguments. Must try -L first in case configure is actually a
1511
# symlink; some systems play weird games with the mod time of symlinks
1512
# (eg FreeBSD returns the mod time of the symlink's containing
1515
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1516
if test "$*" = "X"; then
1518
set X `ls -t $srcdir/configure conftestfile`
1520
if test "$*" != "X $srcdir/configure conftestfile" \
1521
&& test "$*" != "X conftestfile $srcdir/configure"; then
1523
# If neither matched, then we have a broken ls. This can happen
1524
# if, for instance, CONFIG_SHELL is bash and it inherits a
1525
# broken ls alias from the environment. This has actually
1526
# happened. Such a system could not be considered "sane".
1527
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1528
alias in your environment" >&5
1529
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1530
alias in your environment" >&2;}
1531
{ (exit 1); exit 1; }; }
1534
test "$2" = conftestfile
1540
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1541
Check your system clock" >&5
1542
echo "$as_me: error: newly created file is older than distributed files!
1543
Check your system clock" >&2;}
1544
{ (exit 1); exit 1; }; }
1547
echo "$as_me:$LINENO: result: yes" >&5
1548
echo "${ECHO_T}yes" >&6
1549
test "$program_prefix" != NONE &&
1550
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1551
# Use a double $ so make ignores it.
1552
test "$program_suffix" != NONE &&
1553
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1554
# Double any \ or $. echo might interpret backslashes.
1555
# By default was `s,x,x', remove it if useless.
1556
cat <<\_ACEOF >conftest.sed
1557
s/[\\$]/&&/g;s/;s,x,x,$//
1559
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1562
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1563
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1564
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1565
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1566
echo $ECHO_N "(cached) $ECHO_C" >&6
1568
cat >conftest.make <<\_ACEOF
1570
@echo 'ac_maketemp="$(MAKE)"'
1572
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1573
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1574
if test -n "$ac_maketemp"; then
1575
eval ac_cv_prog_make_${ac_make}_set=yes
1577
eval ac_cv_prog_make_${ac_make}_set=no
1581
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1582
echo "$as_me:$LINENO: result: yes" >&5
1583
echo "${ECHO_T}yes" >&6
1586
echo "$as_me:$LINENO: result: no" >&5
1587
echo "${ECHO_T}no" >&6
1588
SET_MAKE="MAKE=${MAKE-make}"
1596
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1597
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1598
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1599
{ (exit 1); exit 1; }; }
1604
missing_dir=`cd $ac_aux_dir && pwd`
1605
echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1606
echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1607
# Run test in a subshell; some versions of sh will print an error if
1608
# an executable is not found, even if stderr is redirected.
1609
# Redirect stdin to placate older versions of autoconf. Sigh.
1610
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1611
ACLOCAL=aclocal-${am__api_version}
1612
echo "$as_me:$LINENO: result: found" >&5
1613
echo "${ECHO_T}found" >&6
1615
ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1616
echo "$as_me:$LINENO: result: missing" >&5
1617
echo "${ECHO_T}missing" >&6
1620
echo "$as_me:$LINENO: checking for working autoconf" >&5
1621
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1622
# Run test in a subshell; some versions of sh will print an error if
1623
# an executable is not found, even if stderr is redirected.
1624
# Redirect stdin to placate older versions of autoconf. Sigh.
1625
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1627
echo "$as_me:$LINENO: result: found" >&5
1628
echo "${ECHO_T}found" >&6
1630
AUTOCONF="$missing_dir/missing autoconf"
1631
echo "$as_me:$LINENO: result: missing" >&5
1632
echo "${ECHO_T}missing" >&6
1635
echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1636
echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1637
# Run test in a subshell; some versions of sh will print an error if
1638
# an executable is not found, even if stderr is redirected.
1639
# Redirect stdin to placate older versions of autoconf. Sigh.
1640
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1641
AUTOMAKE=automake-${am__api_version}
1642
echo "$as_me:$LINENO: result: found" >&5
1643
echo "${ECHO_T}found" >&6
1645
AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1646
echo "$as_me:$LINENO: result: missing" >&5
1647
echo "${ECHO_T}missing" >&6
1650
echo "$as_me:$LINENO: checking for working autoheader" >&5
1651
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1652
# Run test in a subshell; some versions of sh will print an error if
1653
# an executable is not found, even if stderr is redirected.
1654
# Redirect stdin to placate older versions of autoconf. Sigh.
1655
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1656
AUTOHEADER=autoheader
1657
echo "$as_me:$LINENO: result: found" >&5
1658
echo "${ECHO_T}found" >&6
1660
AUTOHEADER="$missing_dir/missing autoheader"
1661
echo "$as_me:$LINENO: result: missing" >&5
1662
echo "${ECHO_T}missing" >&6
1665
echo "$as_me:$LINENO: checking for working makeinfo" >&5
1666
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1667
# Run test in a subshell; some versions of sh will print an error if
1668
# an executable is not found, even if stderr is redirected.
1669
# Redirect stdin to placate older versions of autoconf. Sigh.
1670
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1672
echo "$as_me:$LINENO: result: found" >&5
1673
echo "${ECHO_T}found" >&6
1675
MAKEINFO="$missing_dir/missing makeinfo"
1676
echo "$as_me:$LINENO: result: missing" >&5
1677
echo "${ECHO_T}missing" >&6
1682
ac_config_headers="$ac_config_headers src/config.h"
1684
ac_config_commands="$ac_config_commands default-1"
1687
## Checks for host information.
1689
ac_cpp='$CPP $CPPFLAGS'
1690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1693
if test -n "$ac_tool_prefix"; then
1694
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1695
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1696
echo "$as_me:$LINENO: checking for $ac_word" >&5
1697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698
if test "${ac_cv_prog_CC+set}" = set; then
1699
echo $ECHO_N "(cached) $ECHO_C" >&6
1701
if test -n "$CC"; then
1702
ac_cv_prog_CC="$CC" # Let the user override the test.
1704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708
test -z "$as_dir" && as_dir=.
1709
for ac_exec_ext in '' $ac_executable_extensions; do
1710
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1712
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1721
if test -n "$CC"; then
1722
echo "$as_me:$LINENO: result: $CC" >&5
1723
echo "${ECHO_T}$CC" >&6
1725
echo "$as_me:$LINENO: result: no" >&5
1726
echo "${ECHO_T}no" >&6
1730
if test -z "$ac_cv_prog_CC"; then
1732
# Extract the first word of "gcc", so it can be a program name with args.
1733
set dummy gcc; ac_word=$2
1734
echo "$as_me:$LINENO: checking for $ac_word" >&5
1735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737
echo $ECHO_N "(cached) $ECHO_C" >&6
1739
if test -n "$ac_ct_CC"; then
1740
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1746
test -z "$as_dir" && as_dir=.
1747
for ac_exec_ext in '' $ac_executable_extensions; do
1748
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749
ac_cv_prog_ac_ct_CC="gcc"
1750
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759
if test -n "$ac_ct_CC"; then
1760
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1761
echo "${ECHO_T}$ac_ct_CC" >&6
1763
echo "$as_me:$LINENO: result: no" >&5
1764
echo "${ECHO_T}no" >&6
1772
if test -z "$CC"; then
1773
if test -n "$ac_tool_prefix"; then
1774
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1775
set dummy ${ac_tool_prefix}cc; ac_word=$2
1776
echo "$as_me:$LINENO: checking for $ac_word" >&5
1777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1778
if test "${ac_cv_prog_CC+set}" = set; then
1779
echo $ECHO_N "(cached) $ECHO_C" >&6
1781
if test -n "$CC"; then
1782
ac_cv_prog_CC="$CC" # Let the user override the test.
1784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1788
test -z "$as_dir" && as_dir=.
1789
for ac_exec_ext in '' $ac_executable_extensions; do
1790
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1791
ac_cv_prog_CC="${ac_tool_prefix}cc"
1792
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1801
if test -n "$CC"; then
1802
echo "$as_me:$LINENO: result: $CC" >&5
1803
echo "${ECHO_T}$CC" >&6
1805
echo "$as_me:$LINENO: result: no" >&5
1806
echo "${ECHO_T}no" >&6
1810
if test -z "$ac_cv_prog_CC"; then
1812
# Extract the first word of "cc", so it can be a program name with args.
1813
set dummy cc; ac_word=$2
1814
echo "$as_me:$LINENO: checking for $ac_word" >&5
1815
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1816
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1817
echo $ECHO_N "(cached) $ECHO_C" >&6
1819
if test -n "$ac_ct_CC"; then
1820
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1822
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1826
test -z "$as_dir" && as_dir=.
1827
for ac_exec_ext in '' $ac_executable_extensions; do
1828
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1829
ac_cv_prog_ac_ct_CC="cc"
1830
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1838
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1839
if test -n "$ac_ct_CC"; then
1840
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1841
echo "${ECHO_T}$ac_ct_CC" >&6
1843
echo "$as_me:$LINENO: result: no" >&5
1844
echo "${ECHO_T}no" >&6
1853
if test -z "$CC"; then
1854
# Extract the first word of "cc", so it can be a program name with args.
1855
set dummy cc; ac_word=$2
1856
echo "$as_me:$LINENO: checking for $ac_word" >&5
1857
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858
if test "${ac_cv_prog_CC+set}" = set; then
1859
echo $ECHO_N "(cached) $ECHO_C" >&6
1861
if test -n "$CC"; then
1862
ac_cv_prog_CC="$CC" # Let the user override the test.
1865
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869
test -z "$as_dir" && as_dir=.
1870
for ac_exec_ext in '' $ac_executable_extensions; do
1871
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1873
ac_prog_rejected=yes
1877
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883
if test $ac_prog_rejected = yes; then
1884
# We found a bogon in the path, so make sure we never use it.
1885
set dummy $ac_cv_prog_CC
1887
if test $# != 0; then
1888
# We chose a different compiler from the bogus one.
1889
# However, it has the same basename, so the bogon will be chosen
1890
# first if we set CC to just the basename; use the full file name.
1892
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1898
if test -n "$CC"; then
1899
echo "$as_me:$LINENO: result: $CC" >&5
1900
echo "${ECHO_T}$CC" >&6
1902
echo "$as_me:$LINENO: result: no" >&5
1903
echo "${ECHO_T}no" >&6
1907
if test -z "$CC"; then
1908
if test -n "$ac_tool_prefix"; then
1911
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1912
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1913
echo "$as_me:$LINENO: checking for $ac_word" >&5
1914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915
if test "${ac_cv_prog_CC+set}" = set; then
1916
echo $ECHO_N "(cached) $ECHO_C" >&6
1918
if test -n "$CC"; then
1919
ac_cv_prog_CC="$CC" # Let the user override the test.
1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925
test -z "$as_dir" && as_dir=.
1926
for ac_exec_ext in '' $ac_executable_extensions; do
1927
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1928
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1929
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938
if test -n "$CC"; then
1939
echo "$as_me:$LINENO: result: $CC" >&5
1940
echo "${ECHO_T}$CC" >&6
1942
echo "$as_me:$LINENO: result: no" >&5
1943
echo "${ECHO_T}no" >&6
1946
test -n "$CC" && break
1949
if test -z "$CC"; then
1953
# Extract the first word of "$ac_prog", so it can be a program name with args.
1954
set dummy $ac_prog; ac_word=$2
1955
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1958
echo $ECHO_N "(cached) $ECHO_C" >&6
1960
if test -n "$ac_ct_CC"; then
1961
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967
test -z "$as_dir" && as_dir=.
1968
for ac_exec_ext in '' $ac_executable_extensions; do
1969
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
ac_cv_prog_ac_ct_CC="$ac_prog"
1971
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1980
if test -n "$ac_ct_CC"; then
1981
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1982
echo "${ECHO_T}$ac_ct_CC" >&6
1984
echo "$as_me:$LINENO: result: no" >&5
1985
echo "${ECHO_T}no" >&6
1988
test -n "$ac_ct_CC" && break
1997
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1998
See \`config.log' for more details." >&5
1999
echo "$as_me: error: no acceptable C compiler found in \$PATH
2000
See \`config.log' for more details." >&2;}
2001
{ (exit 1); exit 1; }; }
2003
# Provide some information about the compiler.
2004
echo "$as_me:$LINENO:" \
2005
"checking for C compiler version" >&5
2006
ac_compiler=`set X $ac_compile; echo $2`
2007
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2008
(eval $ac_compiler --version </dev/null >&5) 2>&5
2010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011
(exit $ac_status); }
2012
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2013
(eval $ac_compiler -v </dev/null >&5) 2>&5
2015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2016
(exit $ac_status); }
2017
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2018
(eval $ac_compiler -V </dev/null >&5) 2>&5
2020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021
(exit $ac_status); }
2023
cat >conftest.$ac_ext <<_ACEOF
2026
cat confdefs.h >>conftest.$ac_ext
2027
cat >>conftest.$ac_ext <<_ACEOF
2028
/* end confdefs.h. */
2038
ac_clean_files_save=$ac_clean_files
2039
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2040
# Try to create an executable without -o first, disregard a.out.
2041
# It will help us diagnose broken compilers, and finding out an intuition
2043
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2044
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2045
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2046
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2047
(eval $ac_link_default) 2>&5
2049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050
(exit $ac_status); }; then
2051
# Find the output, starting from the most likely. This scheme is
2052
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2055
# Be careful to initialize this variable, since it used to be cached.
2056
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2058
# b.out is created by i960 compilers.
2059
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2061
test -f "$ac_file" || continue
2063
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2066
# This is the source file.
2069
# We found the default executable, but exeext='' is most
2073
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2074
# FIXME: I believe we export ac_cv_exeext for Libtool,
2075
# but it would be cool to find out if it's true. Does anybody
2076
# maintain Libtool? --akim.
2084
echo "$as_me: failed program was:" >&5
2085
sed 's/^/| /' conftest.$ac_ext >&5
2087
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2088
See \`config.log' for more details." >&5
2089
echo "$as_me: error: C compiler cannot create executables
2090
See \`config.log' for more details." >&2;}
2091
{ (exit 77); exit 77; }; }
2094
ac_exeext=$ac_cv_exeext
2095
echo "$as_me:$LINENO: result: $ac_file" >&5
2096
echo "${ECHO_T}$ac_file" >&6
2098
# Check the compiler produces executables we can run. If not, either
2099
# the compiler is broken, or we cross compile.
2100
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2101
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2102
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2103
# If not cross compiling, check that we can run a simple program.
2104
if test "$cross_compiling" != yes; then
2105
if { ac_try='./$ac_file'
2106
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110
(exit $ac_status); }; }; then
2113
if test "$cross_compiling" = maybe; then
2116
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2117
If you meant to cross compile, use \`--host'.
2118
See \`config.log' for more details." >&5
2119
echo "$as_me: error: cannot run C compiled programs.
2120
If you meant to cross compile, use \`--host'.
2121
See \`config.log' for more details." >&2;}
2122
{ (exit 1); exit 1; }; }
2126
echo "$as_me:$LINENO: result: yes" >&5
2127
echo "${ECHO_T}yes" >&6
2129
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2130
ac_clean_files=$ac_clean_files_save
2131
# Check the compiler produces executables we can run. If not, either
2132
# the compiler is broken, or we cross compile.
2133
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2134
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2135
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2136
echo "${ECHO_T}$cross_compiling" >&6
2138
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2139
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2141
(eval $ac_link) 2>&5
2143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144
(exit $ac_status); }; then
2145
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2146
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2147
# work properly (i.e., refer to `conftest.exe'), while it won't with
2149
for ac_file in conftest.exe conftest conftest.*; do
2150
test -f "$ac_file" || continue
2152
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2153
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2160
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2161
See \`config.log' for more details." >&5
2162
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2163
See \`config.log' for more details." >&2;}
2164
{ (exit 1); exit 1; }; }
2167
rm -f conftest$ac_cv_exeext
2168
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2169
echo "${ECHO_T}$ac_cv_exeext" >&6
2171
rm -f conftest.$ac_ext
2172
EXEEXT=$ac_cv_exeext
2174
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2175
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2176
if test "${ac_cv_objext+set}" = set; then
2177
echo $ECHO_N "(cached) $ECHO_C" >&6
2179
cat >conftest.$ac_ext <<_ACEOF
2182
cat confdefs.h >>conftest.$ac_ext
2183
cat >>conftest.$ac_ext <<_ACEOF
2184
/* end confdefs.h. */
2194
rm -f conftest.o conftest.obj
2195
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196
(eval $ac_compile) 2>&5
2198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
(exit $ac_status); }; then
2200
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2202
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2203
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208
echo "$as_me: failed program was:" >&5
2209
sed 's/^/| /' conftest.$ac_ext >&5
2211
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2212
See \`config.log' for more details." >&5
2213
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2214
See \`config.log' for more details." >&2;}
2215
{ (exit 1); exit 1; }; }
2218
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2220
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2221
echo "${ECHO_T}$ac_cv_objext" >&6
2222
OBJEXT=$ac_cv_objext
2224
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2225
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2226
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2227
echo $ECHO_N "(cached) $ECHO_C" >&6
2229
cat >conftest.$ac_ext <<_ACEOF
2232
cat confdefs.h >>conftest.$ac_ext
2233
cat >>conftest.$ac_ext <<_ACEOF
2234
/* end confdefs.h. */
2247
rm -f conftest.$ac_objext
2248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249
(eval $ac_compile) 2>conftest.er1
2251
grep -v '^ *+' conftest.er1 >conftest.err
2253
cat conftest.err >&5
2254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255
(exit $ac_status); } &&
2256
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261
(exit $ac_status); }; } &&
2262
{ ac_try='test -s conftest.$ac_objext'
2263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); }; }; then
2270
echo "$as_me: failed program was:" >&5
2271
sed 's/^/| /' conftest.$ac_ext >&5
2275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2279
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2280
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2281
GCC=`test $ac_compiler_gnu = yes && echo yes`
2282
ac_test_CFLAGS=${CFLAGS+set}
2283
ac_save_CFLAGS=$CFLAGS
2285
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2286
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2287
if test "${ac_cv_prog_cc_g+set}" = set; then
2288
echo $ECHO_N "(cached) $ECHO_C" >&6
2290
cat >conftest.$ac_ext <<_ACEOF
2293
cat confdefs.h >>conftest.$ac_ext
2294
cat >>conftest.$ac_ext <<_ACEOF
2295
/* end confdefs.h. */
2305
rm -f conftest.$ac_objext
2306
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307
(eval $ac_compile) 2>conftest.er1
2309
grep -v '^ *+' conftest.er1 >conftest.err
2311
cat conftest.err >&5
2312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313
(exit $ac_status); } &&
2314
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319
(exit $ac_status); }; } &&
2320
{ ac_try='test -s conftest.$ac_objext'
2321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325
(exit $ac_status); }; }; then
2328
echo "$as_me: failed program was:" >&5
2329
sed 's/^/| /' conftest.$ac_ext >&5
2333
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2335
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2336
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2337
if test "$ac_test_CFLAGS" = set; then
2338
CFLAGS=$ac_save_CFLAGS
2339
elif test $ac_cv_prog_cc_g = yes; then
2340
if test "$GCC" = yes; then
2346
if test "$GCC" = yes; then
2352
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2353
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2354
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2355
echo $ECHO_N "(cached) $ECHO_C" >&6
2357
ac_cv_prog_cc_stdc=no
2359
cat >conftest.$ac_ext <<_ACEOF
2362
cat confdefs.h >>conftest.$ac_ext
2363
cat >>conftest.$ac_ext <<_ACEOF
2364
/* end confdefs.h. */
2367
#include <sys/types.h>
2368
#include <sys/stat.h>
2369
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2370
struct buf { int x; };
2371
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2372
static char *e (p, i)
2378
static char *f (char * (*g) (char **, int), char **p, ...)
2383
s = g (p, va_arg (v,int));
2388
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2389
function prototypes and stuff, but not '\xHH' hex character constants.
2390
These don't provoke an error unfortunately, instead are silently treated
2391
as 'x'. The following induces an error, until -std1 is added to get
2392
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2393
array size at least. It's necessary to write '\x00'==0 to get something
2394
that's true only with -std1. */
2395
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2397
int test (int i, double x);
2398
struct s1 {int (*f) (int a);};
2399
struct s2 {int (*f) (double a);};
2400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2406
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2411
# Don't try gcc -ansi; that turns off useful extensions and
2412
# breaks some systems' header files.
2413
# AIX -qlanglvl=ansi
2414
# Ultrix and OSF/1 -std1
2415
# HP-UX 10.20 and later -Ae
2416
# HP-UX older versions -Aa -D_HPUX_SOURCE
2417
# SVR4 -Xc -D__EXTENSIONS__
2418
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2420
CC="$ac_save_CC $ac_arg"
2421
rm -f conftest.$ac_objext
2422
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423
(eval $ac_compile) 2>conftest.er1
2425
grep -v '^ *+' conftest.er1 >conftest.err
2427
cat conftest.err >&5
2428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429
(exit $ac_status); } &&
2430
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435
(exit $ac_status); }; } &&
2436
{ ac_try='test -s conftest.$ac_objext'
2437
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441
(exit $ac_status); }; }; then
2442
ac_cv_prog_cc_stdc=$ac_arg
2445
echo "$as_me: failed program was:" >&5
2446
sed 's/^/| /' conftest.$ac_ext >&5
2449
rm -f conftest.err conftest.$ac_objext
2451
rm -f conftest.$ac_ext conftest.$ac_objext
2456
case "x$ac_cv_prog_cc_stdc" in
2458
echo "$as_me:$LINENO: result: none needed" >&5
2459
echo "${ECHO_T}none needed" >&6 ;;
2461
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2462
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2463
CC="$CC $ac_cv_prog_cc_stdc" ;;
2466
# Some people use a C++ compiler to compile C. Since we use `exit',
2467
# in C++ we need to declare it. In case someone uses the same compiler
2468
# for both compiling C and C++ we need to have the C++ compiler decide
2469
# the declaration of exit, since it's the most demanding environment.
2470
cat >conftest.$ac_ext <<_ACEOF
2475
rm -f conftest.$ac_objext
2476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2477
(eval $ac_compile) 2>conftest.er1
2479
grep -v '^ *+' conftest.er1 >conftest.err
2481
cat conftest.err >&5
2482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483
(exit $ac_status); } &&
2484
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489
(exit $ac_status); }; } &&
2490
{ ac_try='test -s conftest.$ac_objext'
2491
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495
(exit $ac_status); }; }; then
2496
for ac_declaration in \
2498
'extern "C" void std::exit (int) throw (); using std::exit;' \
2499
'extern "C" void std::exit (int); using std::exit;' \
2500
'extern "C" void exit (int) throw ();' \
2501
'extern "C" void exit (int);' \
2504
cat >conftest.$ac_ext <<_ACEOF
2507
cat confdefs.h >>conftest.$ac_ext
2508
cat >>conftest.$ac_ext <<_ACEOF
2509
/* end confdefs.h. */
2520
rm -f conftest.$ac_objext
2521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2522
(eval $ac_compile) 2>conftest.er1
2524
grep -v '^ *+' conftest.er1 >conftest.err
2526
cat conftest.err >&5
2527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528
(exit $ac_status); } &&
2529
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534
(exit $ac_status); }; } &&
2535
{ ac_try='test -s conftest.$ac_objext'
2536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540
(exit $ac_status); }; }; then
2543
echo "$as_me: failed program was:" >&5
2544
sed 's/^/| /' conftest.$ac_ext >&5
2548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2549
cat >conftest.$ac_ext <<_ACEOF
2552
cat confdefs.h >>conftest.$ac_ext
2553
cat >>conftest.$ac_ext <<_ACEOF
2554
/* end confdefs.h. */
2564
rm -f conftest.$ac_objext
2565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566
(eval $ac_compile) 2>conftest.er1
2568
grep -v '^ *+' conftest.er1 >conftest.err
2570
cat conftest.err >&5
2571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572
(exit $ac_status); } &&
2573
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578
(exit $ac_status); }; } &&
2579
{ ac_try='test -s conftest.$ac_objext'
2580
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); }; }; then
2587
echo "$as_me: failed program was:" >&5
2588
sed 's/^/| /' conftest.$ac_ext >&5
2591
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2594
if test -n "$ac_declaration"; then
2595
echo '#ifdef __cplusplus' >>confdefs.h
2596
echo $ac_declaration >>confdefs.h
2597
echo '#endif' >>confdefs.h
2601
echo "$as_me: failed program was:" >&5
2602
sed 's/^/| /' conftest.$ac_ext >&5
2605
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2607
ac_cpp='$CPP $CPPFLAGS'
2608
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2614
ac_cpp='$CPP $CPPFLAGS'
2615
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2619
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2620
# On Suns, sometimes $CPP names a directory.
2621
if test -n "$CPP" && test -d "$CPP"; then
2624
if test -z "$CPP"; then
2625
if test "${ac_cv_prog_CPP+set}" = set; then
2626
echo $ECHO_N "(cached) $ECHO_C" >&6
2628
# Double quotes because CPP needs to be expanded
2629
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2632
for ac_c_preproc_warn_flag in '' yes
2634
# Use a header file that comes with gcc, so configuring glibc
2635
# with a fresh cross-compiler works.
2636
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2637
# <limits.h> exists even on freestanding compilers.
2638
# On the NeXT, cc -E runs the code through the compiler's parser,
2639
# not just through cpp. "Syntax error" is here to catch this case.
2640
cat >conftest.$ac_ext <<_ACEOF
2643
cat confdefs.h >>conftest.$ac_ext
2644
cat >>conftest.$ac_ext <<_ACEOF
2645
/* end confdefs.h. */
2647
# include <limits.h>
2649
# include <assert.h>
2653
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2654
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2656
grep -v '^ *+' conftest.er1 >conftest.err
2658
cat conftest.err >&5
2659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
(exit $ac_status); } >/dev/null; then
2661
if test -s conftest.err; then
2662
ac_cpp_err=$ac_c_preproc_warn_flag
2663
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2670
if test -z "$ac_cpp_err"; then
2673
echo "$as_me: failed program was:" >&5
2674
sed 's/^/| /' conftest.$ac_ext >&5
2676
# Broken: fails on valid input.
2679
rm -f conftest.err conftest.$ac_ext
2681
# OK, works on sane cases. Now check whether non-existent headers
2682
# can be detected and how.
2683
cat >conftest.$ac_ext <<_ACEOF
2686
cat confdefs.h >>conftest.$ac_ext
2687
cat >>conftest.$ac_ext <<_ACEOF
2688
/* end confdefs.h. */
2689
#include <ac_nonexistent.h>
2691
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2692
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2694
grep -v '^ *+' conftest.er1 >conftest.err
2696
cat conftest.err >&5
2697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698
(exit $ac_status); } >/dev/null; then
2699
if test -s conftest.err; then
2700
ac_cpp_err=$ac_c_preproc_warn_flag
2701
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2708
if test -z "$ac_cpp_err"; then
2709
# Broken: success on invalid input.
2712
echo "$as_me: failed program was:" >&5
2713
sed 's/^/| /' conftest.$ac_ext >&5
2715
# Passes both tests.
2719
rm -f conftest.err conftest.$ac_ext
2722
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2723
rm -f conftest.err conftest.$ac_ext
2724
if $ac_preproc_ok; then
2736
echo "$as_me:$LINENO: result: $CPP" >&5
2737
echo "${ECHO_T}$CPP" >&6
2739
for ac_c_preproc_warn_flag in '' yes
2741
# Use a header file that comes with gcc, so configuring glibc
2742
# with a fresh cross-compiler works.
2743
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2744
# <limits.h> exists even on freestanding compilers.
2745
# On the NeXT, cc -E runs the code through the compiler's parser,
2746
# not just through cpp. "Syntax error" is here to catch this case.
2747
cat >conftest.$ac_ext <<_ACEOF
2750
cat confdefs.h >>conftest.$ac_ext
2751
cat >>conftest.$ac_ext <<_ACEOF
2752
/* end confdefs.h. */
2754
# include <limits.h>
2756
# include <assert.h>
2760
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2761
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2763
grep -v '^ *+' conftest.er1 >conftest.err
2765
cat conftest.err >&5
2766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767
(exit $ac_status); } >/dev/null; then
2768
if test -s conftest.err; then
2769
ac_cpp_err=$ac_c_preproc_warn_flag
2770
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2777
if test -z "$ac_cpp_err"; then
2780
echo "$as_me: failed program was:" >&5
2781
sed 's/^/| /' conftest.$ac_ext >&5
2783
# Broken: fails on valid input.
2786
rm -f conftest.err conftest.$ac_ext
2788
# OK, works on sane cases. Now check whether non-existent headers
2789
# can be detected and how.
2790
cat >conftest.$ac_ext <<_ACEOF
2793
cat confdefs.h >>conftest.$ac_ext
2794
cat >>conftest.$ac_ext <<_ACEOF
2795
/* end confdefs.h. */
2796
#include <ac_nonexistent.h>
2798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2799
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801
grep -v '^ *+' conftest.er1 >conftest.err
2803
cat conftest.err >&5
2804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805
(exit $ac_status); } >/dev/null; then
2806
if test -s conftest.err; then
2807
ac_cpp_err=$ac_c_preproc_warn_flag
2808
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2815
if test -z "$ac_cpp_err"; then
2816
# Broken: success on invalid input.
2819
echo "$as_me: failed program was:" >&5
2820
sed 's/^/| /' conftest.$ac_ext >&5
2822
# Passes both tests.
2826
rm -f conftest.err conftest.$ac_ext
2829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2830
rm -f conftest.err conftest.$ac_ext
2831
if $ac_preproc_ok; then
2834
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2835
See \`config.log' for more details." >&5
2836
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2837
See \`config.log' for more details." >&2;}
2838
{ (exit 1); exit 1; }; }
2842
ac_cpp='$CPP $CPPFLAGS'
2843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2848
echo "$as_me:$LINENO: checking for egrep" >&5
2849
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2850
if test "${ac_cv_prog_egrep+set}" = set; then
2851
echo $ECHO_N "(cached) $ECHO_C" >&6
2853
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2854
then ac_cv_prog_egrep='grep -E'
2855
else ac_cv_prog_egrep='egrep'
2858
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2859
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2860
EGREP=$ac_cv_prog_egrep
2864
echo "$as_me:$LINENO: checking for AIX" >&5
2865
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2866
cat >conftest.$ac_ext <<_ACEOF
2869
cat confdefs.h >>conftest.$ac_ext
2870
cat >>conftest.$ac_ext <<_ACEOF
2871
/* end confdefs.h. */
2877
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2878
$EGREP "yes" >/dev/null 2>&1; then
2879
echo "$as_me:$LINENO: result: yes" >&5
2880
echo "${ECHO_T}yes" >&6
2881
cat >>confdefs.h <<\_ACEOF
2882
#define _ALL_SOURCE 1
2886
echo "$as_me:$LINENO: result: no" >&5
2887
echo "${ECHO_T}no" >&6
2892
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2893
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2894
if test "${ac_cv_header_stdc+set}" = set; then
2895
echo $ECHO_N "(cached) $ECHO_C" >&6
2897
cat >conftest.$ac_ext <<_ACEOF
2900
cat confdefs.h >>conftest.$ac_ext
2901
cat >>conftest.$ac_ext <<_ACEOF
2902
/* end confdefs.h. */
2916
rm -f conftest.$ac_objext
2917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918
(eval $ac_compile) 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); } &&
2925
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2926
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930
(exit $ac_status); }; } &&
2931
{ ac_try='test -s conftest.$ac_objext'
2932
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936
(exit $ac_status); }; }; then
2937
ac_cv_header_stdc=yes
2939
echo "$as_me: failed program was:" >&5
2940
sed 's/^/| /' conftest.$ac_ext >&5
2942
ac_cv_header_stdc=no
2944
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946
if test $ac_cv_header_stdc = yes; then
2947
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2948
cat >conftest.$ac_ext <<_ACEOF
2951
cat confdefs.h >>conftest.$ac_ext
2952
cat >>conftest.$ac_ext <<_ACEOF
2953
/* end confdefs.h. */
2957
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2958
$EGREP "memchr" >/dev/null 2>&1; then
2961
ac_cv_header_stdc=no
2967
if test $ac_cv_header_stdc = yes; then
2968
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2969
cat >conftest.$ac_ext <<_ACEOF
2972
cat confdefs.h >>conftest.$ac_ext
2973
cat >>conftest.$ac_ext <<_ACEOF
2974
/* end confdefs.h. */
2978
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2979
$EGREP "free" >/dev/null 2>&1; then
2982
ac_cv_header_stdc=no
2988
if test $ac_cv_header_stdc = yes; then
2989
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2990
if test "$cross_compiling" = yes; then
2993
cat >conftest.$ac_ext <<_ACEOF
2996
cat confdefs.h >>conftest.$ac_ext
2997
cat >>conftest.$ac_ext <<_ACEOF
2998
/* end confdefs.h. */
3000
#if ((' ' & 0x0FF) == 0x020)
3001
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3002
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3004
# define ISLOWER(c) \
3005
(('a' <= (c) && (c) <= 'i') \
3006
|| ('j' <= (c) && (c) <= 'r') \
3007
|| ('s' <= (c) && (c) <= 'z'))
3008
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3011
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3016
for (i = 0; i < 256; i++)
3017
if (XOR (islower (i), ISLOWER (i))
3018
|| toupper (i) != TOUPPER (i))
3023
rm -f conftest$ac_exeext
3024
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3025
(eval $ac_link) 2>&5
3027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3029
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033
(exit $ac_status); }; }; then
3036
echo "$as_me: program exited with status $ac_status" >&5
3037
echo "$as_me: failed program was:" >&5
3038
sed 's/^/| /' conftest.$ac_ext >&5
3041
ac_cv_header_stdc=no
3043
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3047
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3048
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3049
if test $ac_cv_header_stdc = yes; then
3051
cat >>confdefs.h <<\_ACEOF
3052
#define STDC_HEADERS 1
3057
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3067
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3068
inttypes.h stdint.h unistd.h
3070
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3071
echo "$as_me:$LINENO: checking for $ac_header" >&5
3072
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3073
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3074
echo $ECHO_N "(cached) $ECHO_C" >&6
3076
cat >conftest.$ac_ext <<_ACEOF
3079
cat confdefs.h >>conftest.$ac_ext
3080
cat >>conftest.$ac_ext <<_ACEOF
3081
/* end confdefs.h. */
3082
$ac_includes_default
3084
#include <$ac_header>
3086
rm -f conftest.$ac_objext
3087
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088
(eval $ac_compile) 2>conftest.er1
3090
grep -v '^ *+' conftest.er1 >conftest.err
3092
cat conftest.err >&5
3093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094
(exit $ac_status); } &&
3095
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100
(exit $ac_status); }; } &&
3101
{ ac_try='test -s conftest.$ac_objext'
3102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
(exit $ac_status); }; }; then
3107
eval "$as_ac_Header=yes"
3109
echo "$as_me: failed program was:" >&5
3110
sed 's/^/| /' conftest.$ac_ext >&5
3112
eval "$as_ac_Header=no"
3114
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3117
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3118
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3119
cat >>confdefs.h <<_ACEOF
3120
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3128
if test "${ac_cv_header_minix_config_h+set}" = set; then
3129
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3130
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3131
if test "${ac_cv_header_minix_config_h+set}" = set; then
3132
echo $ECHO_N "(cached) $ECHO_C" >&6
3134
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3135
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3137
# Is the header compilable?
3138
echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3139
echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3140
cat >conftest.$ac_ext <<_ACEOF
3143
cat confdefs.h >>conftest.$ac_ext
3144
cat >>conftest.$ac_ext <<_ACEOF
3145
/* end confdefs.h. */
3146
$ac_includes_default
3147
#include <minix/config.h>
3149
rm -f conftest.$ac_objext
3150
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3151
(eval $ac_compile) 2>conftest.er1
3153
grep -v '^ *+' conftest.er1 >conftest.err
3155
cat conftest.err >&5
3156
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157
(exit $ac_status); } &&
3158
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3159
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
(exit $ac_status); }; } &&
3164
{ ac_try='test -s conftest.$ac_objext'
3165
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169
(exit $ac_status); }; }; then
3170
ac_header_compiler=yes
3172
echo "$as_me: failed program was:" >&5
3173
sed 's/^/| /' conftest.$ac_ext >&5
3175
ac_header_compiler=no
3177
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3178
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3179
echo "${ECHO_T}$ac_header_compiler" >&6
3181
# Is the header present?
3182
echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3183
echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3184
cat >conftest.$ac_ext <<_ACEOF
3187
cat confdefs.h >>conftest.$ac_ext
3188
cat >>conftest.$ac_ext <<_ACEOF
3189
/* end confdefs.h. */
3190
#include <minix/config.h>
3192
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3195
grep -v '^ *+' conftest.er1 >conftest.err
3197
cat conftest.err >&5
3198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199
(exit $ac_status); } >/dev/null; then
3200
if test -s conftest.err; then
3201
ac_cpp_err=$ac_c_preproc_warn_flag
3202
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3209
if test -z "$ac_cpp_err"; then
3210
ac_header_preproc=yes
3212
echo "$as_me: failed program was:" >&5
3213
sed 's/^/| /' conftest.$ac_ext >&5
3215
ac_header_preproc=no
3217
rm -f conftest.err conftest.$ac_ext
3218
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3219
echo "${ECHO_T}$ac_header_preproc" >&6
3221
# So? What about this header?
3222
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3224
{ echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3225
echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3226
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3227
echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3228
ac_header_preproc=yes
3231
{ echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3232
echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3233
{ echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3234
echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3235
{ echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3236
echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3237
{ echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3238
echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3239
{ echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3240
echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3241
{ echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3242
echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3245
## -------------------------------- ##
3246
## Report this to laird@lbreyer.com ##
3247
## -------------------------------- ##
3250
sed "s/^/$as_me: WARNING: /" >&2
3253
echo "$as_me:$LINENO: checking for minix/config.h" >&5
3254
echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3255
if test "${ac_cv_header_minix_config_h+set}" = set; then
3256
echo $ECHO_N "(cached) $ECHO_C" >&6
3258
ac_cv_header_minix_config_h=$ac_header_preproc
3260
echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3261
echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3264
if test $ac_cv_header_minix_config_h = yes; then
3271
if test "$MINIX" = yes; then
3273
cat >>confdefs.h <<\_ACEOF
3274
#define _POSIX_SOURCE 1
3278
cat >>confdefs.h <<\_ACEOF
3279
#define _POSIX_1_SOURCE 2
3283
cat >>confdefs.h <<\_ACEOF
3295
cat >>confdefs.h <<\_ACEOF
3299
{ echo "$as_me:$LINENO: using -mieee compilation flag to allow divide by zero." >&5
3300
echo "$as_me: using -mieee compilation flag to allow divide by zero." >&6;}
3306
cat >>confdefs.h <<\_ACEOF
3313
cat >>confdefs.h <<\_ACEOF
3320
cat >>confdefs.h <<\_ACEOF
3327
cat >>confdefs.h <<\_ACEOF
3334
cat >>confdefs.h <<\_ACEOF
3342
cat >>confdefs.h <<_ACEOF
3343
#define TARGETCPU "$target"
3347
## Checks for programs
3349
ac_cpp='$CPP $CPPFLAGS'
3350
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
if test -n "$ac_tool_prefix"; then
3354
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3355
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3356
echo "$as_me:$LINENO: checking for $ac_word" >&5
3357
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3358
if test "${ac_cv_prog_CC+set}" = set; then
3359
echo $ECHO_N "(cached) $ECHO_C" >&6
3361
if test -n "$CC"; then
3362
ac_cv_prog_CC="$CC" # Let the user override the test.
3364
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368
test -z "$as_dir" && as_dir=.
3369
for ac_exec_ext in '' $ac_executable_extensions; do
3370
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3372
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3381
if test -n "$CC"; then
3382
echo "$as_me:$LINENO: result: $CC" >&5
3383
echo "${ECHO_T}$CC" >&6
3385
echo "$as_me:$LINENO: result: no" >&5
3386
echo "${ECHO_T}no" >&6
3390
if test -z "$ac_cv_prog_CC"; then
3392
# Extract the first word of "gcc", so it can be a program name with args.
3393
set dummy gcc; ac_word=$2
3394
echo "$as_me:$LINENO: checking for $ac_word" >&5
3395
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3396
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3397
echo $ECHO_N "(cached) $ECHO_C" >&6
3399
if test -n "$ac_ct_CC"; then
3400
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3402
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406
test -z "$as_dir" && as_dir=.
3407
for ac_exec_ext in '' $ac_executable_extensions; do
3408
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409
ac_cv_prog_ac_ct_CC="gcc"
3410
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3418
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3419
if test -n "$ac_ct_CC"; then
3420
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3421
echo "${ECHO_T}$ac_ct_CC" >&6
3423
echo "$as_me:$LINENO: result: no" >&5
3424
echo "${ECHO_T}no" >&6
3432
if test -z "$CC"; then
3433
if test -n "$ac_tool_prefix"; then
3434
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3435
set dummy ${ac_tool_prefix}cc; ac_word=$2
3436
echo "$as_me:$LINENO: checking for $ac_word" >&5
3437
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3438
if test "${ac_cv_prog_CC+set}" = set; then
3439
echo $ECHO_N "(cached) $ECHO_C" >&6
3441
if test -n "$CC"; then
3442
ac_cv_prog_CC="$CC" # Let the user override the test.
3444
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448
test -z "$as_dir" && as_dir=.
3449
for ac_exec_ext in '' $ac_executable_extensions; do
3450
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3451
ac_cv_prog_CC="${ac_tool_prefix}cc"
3452
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3461
if test -n "$CC"; then
3462
echo "$as_me:$LINENO: result: $CC" >&5
3463
echo "${ECHO_T}$CC" >&6
3465
echo "$as_me:$LINENO: result: no" >&5
3466
echo "${ECHO_T}no" >&6
3470
if test -z "$ac_cv_prog_CC"; then
3472
# Extract the first word of "cc", so it can be a program name with args.
3473
set dummy cc; ac_word=$2
3474
echo "$as_me:$LINENO: checking for $ac_word" >&5
3475
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3476
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3477
echo $ECHO_N "(cached) $ECHO_C" >&6
3479
if test -n "$ac_ct_CC"; then
3480
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3482
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486
test -z "$as_dir" && as_dir=.
3487
for ac_exec_ext in '' $ac_executable_extensions; do
3488
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489
ac_cv_prog_ac_ct_CC="cc"
3490
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499
if test -n "$ac_ct_CC"; then
3500
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3501
echo "${ECHO_T}$ac_ct_CC" >&6
3503
echo "$as_me:$LINENO: result: no" >&5
3504
echo "${ECHO_T}no" >&6
3513
if test -z "$CC"; then
3514
# Extract the first word of "cc", so it can be a program name with args.
3515
set dummy cc; ac_word=$2
3516
echo "$as_me:$LINENO: checking for $ac_word" >&5
3517
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3518
if test "${ac_cv_prog_CC+set}" = set; then
3519
echo $ECHO_N "(cached) $ECHO_C" >&6
3521
if test -n "$CC"; then
3522
ac_cv_prog_CC="$CC" # Let the user override the test.
3525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529
test -z "$as_dir" && as_dir=.
3530
for ac_exec_ext in '' $ac_executable_extensions; do
3531
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3532
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3533
ac_prog_rejected=yes
3537
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543
if test $ac_prog_rejected = yes; then
3544
# We found a bogon in the path, so make sure we never use it.
3545
set dummy $ac_cv_prog_CC
3547
if test $# != 0; then
3548
# We chose a different compiler from the bogus one.
3549
# However, it has the same basename, so the bogon will be chosen
3550
# first if we set CC to just the basename; use the full file name.
3552
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3558
if test -n "$CC"; then
3559
echo "$as_me:$LINENO: result: $CC" >&5
3560
echo "${ECHO_T}$CC" >&6
3562
echo "$as_me:$LINENO: result: no" >&5
3563
echo "${ECHO_T}no" >&6
3567
if test -z "$CC"; then
3568
if test -n "$ac_tool_prefix"; then
3571
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3572
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3573
echo "$as_me:$LINENO: checking for $ac_word" >&5
3574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3575
if test "${ac_cv_prog_CC+set}" = set; then
3576
echo $ECHO_N "(cached) $ECHO_C" >&6
3578
if test -n "$CC"; then
3579
ac_cv_prog_CC="$CC" # Let the user override the test.
3581
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585
test -z "$as_dir" && as_dir=.
3586
for ac_exec_ext in '' $ac_executable_extensions; do
3587
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3589
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3598
if test -n "$CC"; then
3599
echo "$as_me:$LINENO: result: $CC" >&5
3600
echo "${ECHO_T}$CC" >&6
3602
echo "$as_me:$LINENO: result: no" >&5
3603
echo "${ECHO_T}no" >&6
3606
test -n "$CC" && break
3609
if test -z "$CC"; then
3613
# Extract the first word of "$ac_prog", so it can be a program name with args.
3614
set dummy $ac_prog; ac_word=$2
3615
echo "$as_me:$LINENO: checking for $ac_word" >&5
3616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3618
echo $ECHO_N "(cached) $ECHO_C" >&6
3620
if test -n "$ac_ct_CC"; then
3621
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627
test -z "$as_dir" && as_dir=.
3628
for ac_exec_ext in '' $ac_executable_extensions; do
3629
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630
ac_cv_prog_ac_ct_CC="$ac_prog"
3631
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640
if test -n "$ac_ct_CC"; then
3641
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3642
echo "${ECHO_T}$ac_ct_CC" >&6
3644
echo "$as_me:$LINENO: result: no" >&5
3645
echo "${ECHO_T}no" >&6
3648
test -n "$ac_ct_CC" && break
3657
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3658
See \`config.log' for more details." >&5
3659
echo "$as_me: error: no acceptable C compiler found in \$PATH
3660
See \`config.log' for more details." >&2;}
3661
{ (exit 1); exit 1; }; }
3663
# Provide some information about the compiler.
3664
echo "$as_me:$LINENO:" \
3665
"checking for C compiler version" >&5
3666
ac_compiler=`set X $ac_compile; echo $2`
3667
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3668
(eval $ac_compiler --version </dev/null >&5) 2>&5
3670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
(exit $ac_status); }
3672
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3673
(eval $ac_compiler -v </dev/null >&5) 2>&5
3675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676
(exit $ac_status); }
3677
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3678
(eval $ac_compiler -V </dev/null >&5) 2>&5
3680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681
(exit $ac_status); }
3683
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3684
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3685
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3686
echo $ECHO_N "(cached) $ECHO_C" >&6
3688
cat >conftest.$ac_ext <<_ACEOF
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3706
rm -f conftest.$ac_objext
3707
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708
(eval $ac_compile) 2>conftest.er1
3710
grep -v '^ *+' conftest.er1 >conftest.err
3712
cat conftest.err >&5
3713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714
(exit $ac_status); } &&
3715
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3716
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720
(exit $ac_status); }; } &&
3721
{ ac_try='test -s conftest.$ac_objext'
3722
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726
(exit $ac_status); }; }; then
3729
echo "$as_me: failed program was:" >&5
3730
sed 's/^/| /' conftest.$ac_ext >&5
3734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3738
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3739
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3740
GCC=`test $ac_compiler_gnu = yes && echo yes`
3741
ac_test_CFLAGS=${CFLAGS+set}
3742
ac_save_CFLAGS=$CFLAGS
3744
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3745
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3746
if test "${ac_cv_prog_cc_g+set}" = set; then
3747
echo $ECHO_N "(cached) $ECHO_C" >&6
3749
cat >conftest.$ac_ext <<_ACEOF
3752
cat confdefs.h >>conftest.$ac_ext
3753
cat >>conftest.$ac_ext <<_ACEOF
3754
/* end confdefs.h. */
3764
rm -f conftest.$ac_objext
3765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766
(eval $ac_compile) 2>conftest.er1
3768
grep -v '^ *+' conftest.er1 >conftest.err
3770
cat conftest.err >&5
3771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772
(exit $ac_status); } &&
3773
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778
(exit $ac_status); }; } &&
3779
{ ac_try='test -s conftest.$ac_objext'
3780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784
(exit $ac_status); }; }; then
3787
echo "$as_me: failed program was:" >&5
3788
sed 's/^/| /' conftest.$ac_ext >&5
3792
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3794
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3795
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3796
if test "$ac_test_CFLAGS" = set; then
3797
CFLAGS=$ac_save_CFLAGS
3798
elif test $ac_cv_prog_cc_g = yes; then
3799
if test "$GCC" = yes; then
3805
if test "$GCC" = yes; then
3811
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3812
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3813
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3814
echo $ECHO_N "(cached) $ECHO_C" >&6
3816
ac_cv_prog_cc_stdc=no
3818
cat >conftest.$ac_ext <<_ACEOF
3821
cat confdefs.h >>conftest.$ac_ext
3822
cat >>conftest.$ac_ext <<_ACEOF
3823
/* end confdefs.h. */
3826
#include <sys/types.h>
3827
#include <sys/stat.h>
3828
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3829
struct buf { int x; };
3830
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3831
static char *e (p, i)
3837
static char *f (char * (*g) (char **, int), char **p, ...)
3842
s = g (p, va_arg (v,int));
3847
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3848
function prototypes and stuff, but not '\xHH' hex character constants.
3849
These don't provoke an error unfortunately, instead are silently treated
3850
as 'x'. The following induces an error, until -std1 is added to get
3851
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3852
array size at least. It's necessary to write '\x00'==0 to get something
3853
that's true only with -std1. */
3854
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3856
int test (int i, double x);
3857
struct s1 {int (*f) (int a);};
3858
struct s2 {int (*f) (double a);};
3859
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3865
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3870
# Don't try gcc -ansi; that turns off useful extensions and
3871
# breaks some systems' header files.
3872
# AIX -qlanglvl=ansi
3873
# Ultrix and OSF/1 -std1
3874
# HP-UX 10.20 and later -Ae
3875
# HP-UX older versions -Aa -D_HPUX_SOURCE
3876
# SVR4 -Xc -D__EXTENSIONS__
3877
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3879
CC="$ac_save_CC $ac_arg"
3880
rm -f conftest.$ac_objext
3881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3882
(eval $ac_compile) 2>conftest.er1
3884
grep -v '^ *+' conftest.er1 >conftest.err
3886
cat conftest.err >&5
3887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888
(exit $ac_status); } &&
3889
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
(exit $ac_status); }; } &&
3895
{ ac_try='test -s conftest.$ac_objext'
3896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
(exit $ac_status); }; }; then
3901
ac_cv_prog_cc_stdc=$ac_arg
3904
echo "$as_me: failed program was:" >&5
3905
sed 's/^/| /' conftest.$ac_ext >&5
3908
rm -f conftest.err conftest.$ac_objext
3910
rm -f conftest.$ac_ext conftest.$ac_objext
3915
case "x$ac_cv_prog_cc_stdc" in
3917
echo "$as_me:$LINENO: result: none needed" >&5
3918
echo "${ECHO_T}none needed" >&6 ;;
3920
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3921
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3922
CC="$CC $ac_cv_prog_cc_stdc" ;;
3925
# Some people use a C++ compiler to compile C. Since we use `exit',
3926
# in C++ we need to declare it. In case someone uses the same compiler
3927
# for both compiling C and C++ we need to have the C++ compiler decide
3928
# the declaration of exit, since it's the most demanding environment.
3929
cat >conftest.$ac_ext <<_ACEOF
3934
rm -f conftest.$ac_objext
3935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3936
(eval $ac_compile) 2>conftest.er1
3938
grep -v '^ *+' conftest.er1 >conftest.err
3940
cat conftest.err >&5
3941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3942
(exit $ac_status); } &&
3943
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948
(exit $ac_status); }; } &&
3949
{ ac_try='test -s conftest.$ac_objext'
3950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954
(exit $ac_status); }; }; then
3955
for ac_declaration in \
3957
'extern "C" void std::exit (int) throw (); using std::exit;' \
3958
'extern "C" void std::exit (int); using std::exit;' \
3959
'extern "C" void exit (int) throw ();' \
3960
'extern "C" void exit (int);' \
3963
cat >conftest.$ac_ext <<_ACEOF
3966
cat confdefs.h >>conftest.$ac_ext
3967
cat >>conftest.$ac_ext <<_ACEOF
3968
/* end confdefs.h. */
3979
rm -f conftest.$ac_objext
3980
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3981
(eval $ac_compile) 2>conftest.er1
3983
grep -v '^ *+' conftest.er1 >conftest.err
3985
cat conftest.err >&5
3986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3987
(exit $ac_status); } &&
3988
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3989
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993
(exit $ac_status); }; } &&
3994
{ ac_try='test -s conftest.$ac_objext'
3995
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999
(exit $ac_status); }; }; then
4002
echo "$as_me: failed program was:" >&5
4003
sed 's/^/| /' conftest.$ac_ext >&5
4007
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4008
cat >conftest.$ac_ext <<_ACEOF
4011
cat confdefs.h >>conftest.$ac_ext
4012
cat >>conftest.$ac_ext <<_ACEOF
4013
/* end confdefs.h. */
4023
rm -f conftest.$ac_objext
4024
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4025
(eval $ac_compile) 2>conftest.er1
4027
grep -v '^ *+' conftest.er1 >conftest.err
4029
cat conftest.err >&5
4030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031
(exit $ac_status); } &&
4032
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4033
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037
(exit $ac_status); }; } &&
4038
{ ac_try='test -s conftest.$ac_objext'
4039
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043
(exit $ac_status); }; }; then
4046
echo "$as_me: failed program was:" >&5
4047
sed 's/^/| /' conftest.$ac_ext >&5
4050
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4053
if test -n "$ac_declaration"; then
4054
echo '#ifdef __cplusplus' >>confdefs.h
4055
echo $ac_declaration >>confdefs.h
4056
echo '#endif' >>confdefs.h
4060
echo "$as_me: failed program was:" >&5
4061
sed 's/^/| /' conftest.$ac_ext >&5
4064
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4066
ac_cpp='$CPP $CPPFLAGS'
4067
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071
# Find a good install program. We prefer a C program (faster),
4072
# so one script is as good as another. But avoid the broken or
4073
# incompatible versions:
4074
# SysV /etc/install, /usr/sbin/install
4075
# SunOS /usr/etc/install
4076
# IRIX /sbin/install
4078
# AmigaOS /C/install, which installs bootblocks on floppy discs
4079
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4080
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4081
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4082
# OS/2's system install, which has a completely different semantic
4083
# ./install, which can be erroneously created by make from ./install.sh.
4084
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4085
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4086
if test -z "$INSTALL"; then
4087
if test "${ac_cv_path_install+set}" = set; then
4088
echo $ECHO_N "(cached) $ECHO_C" >&6
4090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094
test -z "$as_dir" && as_dir=.
4095
# Account for people who put trailing slashes in PATH elements.
4097
./ | .// | /cC/* | \
4098
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4099
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4102
# OSF1 and SCO ODT 3.0 have their own names for install.
4103
# Don't use installbsd from OSF since it installs stuff as root
4105
for ac_prog in ginstall scoinst install; do
4106
for ac_exec_ext in '' $ac_executable_extensions; do
4107
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4108
if test $ac_prog = install &&
4109
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4110
# AIX install. It has an incompatible calling convention.
4112
elif test $ac_prog = install &&
4113
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4114
# program-specific install script used by HP pwplus--don't use.
4117
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4129
if test "${ac_cv_path_install+set}" = set; then
4130
INSTALL=$ac_cv_path_install
4132
# As a last resort, use the slow shell script. We don't cache a
4133
# path for INSTALL within a source directory, because that will
4134
# break other packages using the cache if that directory is
4135
# removed, or if the path is relative.
4136
INSTALL=$ac_install_sh
4139
echo "$as_me:$LINENO: result: $INSTALL" >&5
4140
echo "${ECHO_T}$INSTALL" >&6
4142
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4143
# It thinks the first close brace ends the variable substitution.
4144
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4146
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4148
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4150
missing_dir=`cd $ac_aux_dir && pwd`
4151
for ac_prog in flex lex
4153
# Extract the first word of "$ac_prog", so it can be a program name with args.
4154
set dummy $ac_prog; ac_word=$2
4155
echo "$as_me:$LINENO: checking for $ac_word" >&5
4156
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4157
if test "${ac_cv_prog_LEX+set}" = set; then
4158
echo $ECHO_N "(cached) $ECHO_C" >&6
4160
if test -n "$LEX"; then
4161
ac_cv_prog_LEX="$LEX" # Let the user override the test.
4163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167
test -z "$as_dir" && as_dir=.
4168
for ac_exec_ext in '' $ac_executable_extensions; do
4169
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170
ac_cv_prog_LEX="$ac_prog"
4171
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4180
if test -n "$LEX"; then
4181
echo "$as_me:$LINENO: result: $LEX" >&5
4182
echo "${ECHO_T}$LEX" >&6
4184
echo "$as_me:$LINENO: result: no" >&5
4185
echo "${ECHO_T}no" >&6
4188
test -n "$LEX" && break
4190
test -n "$LEX" || LEX="$missing_dir/missing flex"
4192
for ac_prog in flex lex
4194
# Extract the first word of "$ac_prog", so it can be a program name with args.
4195
set dummy $ac_prog; ac_word=$2
4196
echo "$as_me:$LINENO: checking for $ac_word" >&5
4197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198
if test "${ac_cv_prog_LEX+set}" = set; then
4199
echo $ECHO_N "(cached) $ECHO_C" >&6
4201
if test -n "$LEX"; then
4202
ac_cv_prog_LEX="$LEX" # Let the user override the test.
4204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208
test -z "$as_dir" && as_dir=.
4209
for ac_exec_ext in '' $ac_executable_extensions; do
4210
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4211
ac_cv_prog_LEX="$ac_prog"
4212
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221
if test -n "$LEX"; then
4222
echo "$as_me:$LINENO: result: $LEX" >&5
4223
echo "${ECHO_T}$LEX" >&6
4225
echo "$as_me:$LINENO: result: no" >&5
4226
echo "${ECHO_T}no" >&6
4229
test -n "$LEX" && break
4231
test -n "$LEX" || LEX=":"
4233
if test -z "$LEXLIB"
4235
echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4236
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4237
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4238
echo $ECHO_N "(cached) $ECHO_C" >&6
4240
ac_check_lib_save_LIBS=$LIBS
4242
cat >conftest.$ac_ext <<_ACEOF
4245
cat confdefs.h >>conftest.$ac_ext
4246
cat >>conftest.$ac_ext <<_ACEOF
4247
/* end confdefs.h. */
4249
/* Override any gcc2 internal prototype to avoid an error. */
4253
/* We use char because int might match the return type of a gcc2
4254
builtin and then its argument prototype would still apply. */
4264
rm -f conftest.$ac_objext conftest$ac_exeext
4265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4266
(eval $ac_link) 2>conftest.er1
4268
grep -v '^ *+' conftest.er1 >conftest.err
4270
cat conftest.err >&5
4271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272
(exit $ac_status); } &&
4273
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278
(exit $ac_status); }; } &&
4279
{ ac_try='test -s conftest$ac_exeext'
4280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284
(exit $ac_status); }; }; then
4285
ac_cv_lib_fl_yywrap=yes
4287
echo "$as_me: failed program was:" >&5
4288
sed 's/^/| /' conftest.$ac_ext >&5
4290
ac_cv_lib_fl_yywrap=no
4292
rm -f conftest.err conftest.$ac_objext \
4293
conftest$ac_exeext conftest.$ac_ext
4294
LIBS=$ac_check_lib_save_LIBS
4296
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4297
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4298
if test $ac_cv_lib_fl_yywrap = yes; then
4301
echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4302
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4303
if test "${ac_cv_lib_l_yywrap+set}" = set; then
4304
echo $ECHO_N "(cached) $ECHO_C" >&6
4306
ac_check_lib_save_LIBS=$LIBS
4308
cat >conftest.$ac_ext <<_ACEOF
4311
cat confdefs.h >>conftest.$ac_ext
4312
cat >>conftest.$ac_ext <<_ACEOF
4313
/* end confdefs.h. */
4315
/* Override any gcc2 internal prototype to avoid an error. */
4319
/* We use char because int might match the return type of a gcc2
4320
builtin and then its argument prototype would still apply. */
4330
rm -f conftest.$ac_objext conftest$ac_exeext
4331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332
(eval $ac_link) 2>conftest.er1
4334
grep -v '^ *+' conftest.er1 >conftest.err
4336
cat conftest.err >&5
4337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338
(exit $ac_status); } &&
4339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344
(exit $ac_status); }; } &&
4345
{ ac_try='test -s conftest$ac_exeext'
4346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350
(exit $ac_status); }; }; then
4351
ac_cv_lib_l_yywrap=yes
4353
echo "$as_me: failed program was:" >&5
4354
sed 's/^/| /' conftest.$ac_ext >&5
4356
ac_cv_lib_l_yywrap=no
4358
rm -f conftest.err conftest.$ac_objext \
4359
conftest$ac_exeext conftest.$ac_ext
4360
LIBS=$ac_check_lib_save_LIBS
4362
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4363
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4364
if test $ac_cv_lib_l_yywrap = yes; then
4372
if test "x$LEX" != "x:"; then
4373
echo "$as_me:$LINENO: checking lex output file root" >&5
4374
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4375
if test "${ac_cv_prog_lex_root+set}" = set; then
4376
echo $ECHO_N "(cached) $ECHO_C" >&6
4378
# The minimal lex program is just a single line: %%. But some broken lexes
4379
# (Solaris, I think it was) want two %% lines, so accommodate them.
4380
cat >conftest.l <<_ACEOF
4384
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4385
(eval $LEX conftest.l) 2>&5
4387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388
(exit $ac_status); }
4389
if test -f lex.yy.c; then
4390
ac_cv_prog_lex_root=lex.yy
4391
elif test -f lexyy.c; then
4392
ac_cv_prog_lex_root=lexyy
4394
{ { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4395
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4396
{ (exit 1); exit 1; }; }
4399
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4400
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4402
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4404
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4405
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4406
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4407
echo $ECHO_N "(cached) $ECHO_C" >&6
4409
# POSIX says lex can declare yytext either as a pointer or an array; the
4410
# default is implementation-dependent. Figure out which it is, since
4411
# not all implementations provide the %pointer and %array declarations.
4412
ac_cv_prog_lex_yytext_pointer=no
4413
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4415
LIBS="$LIBS $LEXLIB"
4416
cat >conftest.$ac_ext <<_ACEOF
4417
`cat $LEX_OUTPUT_ROOT.c`
4419
rm -f conftest.$ac_objext conftest$ac_exeext
4420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4421
(eval $ac_link) 2>conftest.er1
4423
grep -v '^ *+' conftest.er1 >conftest.err
4425
cat conftest.err >&5
4426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427
(exit $ac_status); } &&
4428
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4429
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433
(exit $ac_status); }; } &&
4434
{ ac_try='test -s conftest$ac_exeext'
4435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
(exit $ac_status); }; }; then
4440
ac_cv_prog_lex_yytext_pointer=yes
4442
echo "$as_me: failed program was:" >&5
4443
sed 's/^/| /' conftest.$ac_ext >&5
4446
rm -f conftest.err conftest.$ac_objext \
4447
conftest$ac_exeext conftest.$ac_ext
4449
rm -f "${LEX_OUTPUT_ROOT}.c"
4452
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4453
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4454
if test $ac_cv_prog_lex_yytext_pointer = yes; then
4456
cat >>confdefs.h <<\_ACEOF
4457
#define YYTEXT_POINTER 1
4464
for ac_prog in 'bison -y' byacc
4466
# Extract the first word of "$ac_prog", so it can be a program name with args.
4467
set dummy $ac_prog; ac_word=$2
4468
echo "$as_me:$LINENO: checking for $ac_word" >&5
4469
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470
if test "${ac_cv_prog_YACC+set}" = set; then
4471
echo $ECHO_N "(cached) $ECHO_C" >&6
4473
if test -n "$YACC"; then
4474
ac_cv_prog_YACC="$YACC" # Let the user override the test.
4476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480
test -z "$as_dir" && as_dir=.
4481
for ac_exec_ext in '' $ac_executable_extensions; do
4482
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4483
ac_cv_prog_YACC="$ac_prog"
4484
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492
YACC=$ac_cv_prog_YACC
4493
if test -n "$YACC"; then
4494
echo "$as_me:$LINENO: result: $YACC" >&5
4495
echo "${ECHO_T}$YACC" >&6
4497
echo "$as_me:$LINENO: result: no" >&5
4498
echo "${ECHO_T}no" >&6
4501
test -n "$YACC" && break
4503
test -n "$YACC" || YACC="yacc"
4506
## Checks for libraries.
4508
echo "$as_me:$LINENO: checking for log in -lm" >&5
4509
echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
4510
if test "${ac_cv_lib_m_log+set}" = set; then
4511
echo $ECHO_N "(cached) $ECHO_C" >&6
4513
ac_check_lib_save_LIBS=$LIBS
4515
cat >conftest.$ac_ext <<_ACEOF
4518
cat confdefs.h >>conftest.$ac_ext
4519
cat >>conftest.$ac_ext <<_ACEOF
4520
/* end confdefs.h. */
4522
/* Override any gcc2 internal prototype to avoid an error. */
4526
/* We use char because int might match the return type of a gcc2
4527
builtin and then its argument prototype would still apply. */
4537
rm -f conftest.$ac_objext conftest$ac_exeext
4538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4539
(eval $ac_link) 2>conftest.er1
4541
grep -v '^ *+' conftest.er1 >conftest.err
4543
cat conftest.err >&5
4544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545
(exit $ac_status); } &&
4546
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4547
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551
(exit $ac_status); }; } &&
4552
{ ac_try='test -s conftest$ac_exeext'
4553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557
(exit $ac_status); }; }; then
4560
echo "$as_me: failed program was:" >&5
4561
sed 's/^/| /' conftest.$ac_ext >&5
4565
rm -f conftest.err conftest.$ac_objext \
4566
conftest$ac_exeext conftest.$ac_ext
4567
LIBS=$ac_check_lib_save_LIBS
4569
echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
4570
echo "${ECHO_T}$ac_cv_lib_m_log" >&6
4571
if test $ac_cv_lib_m_log = yes; then
4572
cat >>confdefs.h <<_ACEOF
4586
# Decide if mailinspect will be interactive
4587
echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
4588
echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
4589
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
4590
echo $ECHO_N "(cached) $ECHO_C" >&6
4592
ac_check_lib_save_LIBS=$LIBS
4593
LIBS="-lncurses $LIBS"
4594
cat >conftest.$ac_ext <<_ACEOF
4597
cat confdefs.h >>conftest.$ac_ext
4598
cat >>conftest.$ac_ext <<_ACEOF
4599
/* end confdefs.h. */
4601
/* Override any gcc2 internal prototype to avoid an error. */
4605
/* We use char because int might match the return type of a gcc2
4606
builtin and then its argument prototype would still apply. */
4616
rm -f conftest.$ac_objext conftest$ac_exeext
4617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4618
(eval $ac_link) 2>conftest.er1
4620
grep -v '^ *+' conftest.er1 >conftest.err
4622
cat conftest.err >&5
4623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624
(exit $ac_status); } &&
4625
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630
(exit $ac_status); }; } &&
4631
{ ac_try='test -s conftest$ac_exeext'
4632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636
(exit $ac_status); }; }; then
4637
ac_cv_lib_ncurses_initscr=yes
4639
echo "$as_me: failed program was:" >&5
4640
sed 's/^/| /' conftest.$ac_ext >&5
4642
ac_cv_lib_ncurses_initscr=no
4644
rm -f conftest.err conftest.$ac_objext \
4645
conftest$ac_exeext conftest.$ac_ext
4646
LIBS=$ac_check_lib_save_LIBS
4648
echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
4649
echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
4650
if test $ac_cv_lib_ncurses_initscr = yes; then
4652
echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
4653
echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
4654
if test "${ac_cv_lib_readline_readline+set}" = set; then
4655
echo $ECHO_N "(cached) $ECHO_C" >&6
4657
ac_check_lib_save_LIBS=$LIBS
4658
LIBS="-lreadline $LIBS"
4659
cat >conftest.$ac_ext <<_ACEOF
4662
cat confdefs.h >>conftest.$ac_ext
4663
cat >>conftest.$ac_ext <<_ACEOF
4664
/* end confdefs.h. */
4666
/* Override any gcc2 internal prototype to avoid an error. */
4670
/* We use char because int might match the return type of a gcc2
4671
builtin and then its argument prototype would still apply. */
4681
rm -f conftest.$ac_objext conftest$ac_exeext
4682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4683
(eval $ac_link) 2>conftest.er1
4685
grep -v '^ *+' conftest.er1 >conftest.err
4687
cat conftest.err >&5
4688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689
(exit $ac_status); } &&
4690
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695
(exit $ac_status); }; } &&
4696
{ ac_try='test -s conftest$ac_exeext'
4697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701
(exit $ac_status); }; }; then
4702
ac_cv_lib_readline_readline=yes
4704
echo "$as_me: failed program was:" >&5
4705
sed 's/^/| /' conftest.$ac_ext >&5
4707
ac_cv_lib_readline_readline=no
4709
rm -f conftest.err conftest.$ac_objext \
4710
conftest$ac_exeext conftest.$ac_ext
4711
LIBS=$ac_check_lib_save_LIBS
4713
echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
4714
echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
4715
if test $ac_cv_lib_readline_readline = yes; then
4717
echo "$as_me:$LINENO: checking for SLsmg_init_smg in -lslang" >&5
4718
echo $ECHO_N "checking for SLsmg_init_smg in -lslang... $ECHO_C" >&6
4719
if test "${ac_cv_lib_slang_SLsmg_init_smg+set}" = set; then
4720
echo $ECHO_N "(cached) $ECHO_C" >&6
4722
ac_check_lib_save_LIBS=$LIBS
4723
LIBS="-lslang $LIBS"
4724
cat >conftest.$ac_ext <<_ACEOF
4727
cat confdefs.h >>conftest.$ac_ext
4728
cat >>conftest.$ac_ext <<_ACEOF
4729
/* end confdefs.h. */
4731
/* Override any gcc2 internal prototype to avoid an error. */
4735
/* We use char because int might match the return type of a gcc2
4736
builtin and then its argument prototype would still apply. */
4737
char SLsmg_init_smg ();
4746
rm -f conftest.$ac_objext conftest$ac_exeext
4747
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4748
(eval $ac_link) 2>conftest.er1
4750
grep -v '^ *+' conftest.er1 >conftest.err
4752
cat conftest.err >&5
4753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754
(exit $ac_status); } &&
4755
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
(exit $ac_status); }; } &&
4761
{ ac_try='test -s conftest$ac_exeext'
4762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
(exit $ac_status); }; }; then
4767
ac_cv_lib_slang_SLsmg_init_smg=yes
4769
echo "$as_me: failed program was:" >&5
4770
sed 's/^/| /' conftest.$ac_ext >&5
4772
ac_cv_lib_slang_SLsmg_init_smg=no
4774
rm -f conftest.err conftest.$ac_objext \
4775
conftest$ac_exeext conftest.$ac_ext
4776
LIBS=$ac_check_lib_save_LIBS
4778
echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLsmg_init_smg" >&5
4779
echo "${ECHO_T}$ac_cv_lib_slang_SLsmg_init_smg" >&6
4780
if test $ac_cv_lib_slang_SLsmg_init_smg = yes; then
4782
LDADDINTER="-lslang -lreadline -lncurses"
4784
INCLUDESINTER="-I/usr/include/slang"
4787
cat >>confdefs.h <<\_ACEOF
4788
#define HAVE_LIBNCURSES
4792
cat >>confdefs.h <<\_ACEOF
4793
#define HAVE_LIBSLANG
4797
cat >>confdefs.h <<\_ACEOF
4798
#define HAVE_LIBREADLINE
4803
{ echo "$as_me:$LINENO: WARNING: libslang missing, disabling interactive mailinspect" >&5
4804
echo "$as_me: WARNING: libslang missing, disabling interactive mailinspect" >&2;}
4809
{ echo "$as_me:$LINENO: WARNING: libreadline missing, disabling interactive mailinspect" >&5
4810
echo "$as_me: WARNING: libreadline missing, disabling interactive mailinspect" >&2;}
4815
{ echo "$as_me:$LINENO: WARNING: libncurses missing (needed by readline), disabling interactive mailinspect" >&5
4816
echo "$as_me: WARNING: libncurses missing (needed by readline), disabling interactive mailinspect" >&2;}
4820
## Checks for header files.
4821
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4822
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4823
if test "${ac_cv_header_stdc+set}" = set; then
4824
echo $ECHO_N "(cached) $ECHO_C" >&6
4826
cat >conftest.$ac_ext <<_ACEOF
4829
cat confdefs.h >>conftest.$ac_ext
4830
cat >>conftest.$ac_ext <<_ACEOF
4831
/* end confdefs.h. */
4845
rm -f conftest.$ac_objext
4846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847
(eval $ac_compile) 2>conftest.er1
4849
grep -v '^ *+' conftest.er1 >conftest.err
4851
cat conftest.err >&5
4852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853
(exit $ac_status); } &&
4854
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859
(exit $ac_status); }; } &&
4860
{ ac_try='test -s conftest.$ac_objext'
4861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865
(exit $ac_status); }; }; then
4866
ac_cv_header_stdc=yes
4868
echo "$as_me: failed program was:" >&5
4869
sed 's/^/| /' conftest.$ac_ext >&5
4871
ac_cv_header_stdc=no
4873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4875
if test $ac_cv_header_stdc = yes; then
4876
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4877
cat >conftest.$ac_ext <<_ACEOF
4880
cat confdefs.h >>conftest.$ac_ext
4881
cat >>conftest.$ac_ext <<_ACEOF
4882
/* end confdefs.h. */
4886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4887
$EGREP "memchr" >/dev/null 2>&1; then
4890
ac_cv_header_stdc=no
4896
if test $ac_cv_header_stdc = yes; then
4897
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4898
cat >conftest.$ac_ext <<_ACEOF
4901
cat confdefs.h >>conftest.$ac_ext
4902
cat >>conftest.$ac_ext <<_ACEOF
4903
/* end confdefs.h. */
4907
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4908
$EGREP "free" >/dev/null 2>&1; then
4911
ac_cv_header_stdc=no
4917
if test $ac_cv_header_stdc = yes; then
4918
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4919
if test "$cross_compiling" = yes; then
4922
cat >conftest.$ac_ext <<_ACEOF
4925
cat confdefs.h >>conftest.$ac_ext
4926
cat >>conftest.$ac_ext <<_ACEOF
4927
/* end confdefs.h. */
4929
#if ((' ' & 0x0FF) == 0x020)
4930
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4931
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4933
# define ISLOWER(c) \
4934
(('a' <= (c) && (c) <= 'i') \
4935
|| ('j' <= (c) && (c) <= 'r') \
4936
|| ('s' <= (c) && (c) <= 'z'))
4937
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4940
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4945
for (i = 0; i < 256; i++)
4946
if (XOR (islower (i), ISLOWER (i))
4947
|| toupper (i) != TOUPPER (i))
4952
rm -f conftest$ac_exeext
4953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4954
(eval $ac_link) 2>&5
4956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4958
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4962
(exit $ac_status); }; }; then
4965
echo "$as_me: program exited with status $ac_status" >&5
4966
echo "$as_me: failed program was:" >&5
4967
sed 's/^/| /' conftest.$ac_ext >&5
4970
ac_cv_header_stdc=no
4972
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4976
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4977
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4978
if test $ac_cv_header_stdc = yes; then
4980
cat >>confdefs.h <<\_ACEOF
4981
#define STDC_HEADERS 1
4992
for ac_header in features.h langinfo.h unistd.h sys/mman.h mman.h netinet/in.h
4994
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996
echo "$as_me:$LINENO: checking for $ac_header" >&5
4997
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4999
echo $ECHO_N "(cached) $ECHO_C" >&6
5001
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5004
# Is the header compilable?
5005
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5006
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5007
cat >conftest.$ac_ext <<_ACEOF
5010
cat confdefs.h >>conftest.$ac_ext
5011
cat >>conftest.$ac_ext <<_ACEOF
5012
/* end confdefs.h. */
5013
$ac_includes_default
5014
#include <$ac_header>
5016
rm -f conftest.$ac_objext
5017
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5018
(eval $ac_compile) 2>conftest.er1
5020
grep -v '^ *+' conftest.er1 >conftest.err
5022
cat conftest.err >&5
5023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024
(exit $ac_status); } &&
5025
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030
(exit $ac_status); }; } &&
5031
{ ac_try='test -s conftest.$ac_objext'
5032
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); }; }; then
5037
ac_header_compiler=yes
5039
echo "$as_me: failed program was:" >&5
5040
sed 's/^/| /' conftest.$ac_ext >&5
5042
ac_header_compiler=no
5044
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5045
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5046
echo "${ECHO_T}$ac_header_compiler" >&6
5048
# Is the header present?
5049
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5050
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5051
cat >conftest.$ac_ext <<_ACEOF
5054
cat confdefs.h >>conftest.$ac_ext
5055
cat >>conftest.$ac_ext <<_ACEOF
5056
/* end confdefs.h. */
5057
#include <$ac_header>
5059
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5060
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5062
grep -v '^ *+' conftest.er1 >conftest.err
5064
cat conftest.err >&5
5065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066
(exit $ac_status); } >/dev/null; then
5067
if test -s conftest.err; then
5068
ac_cpp_err=$ac_c_preproc_warn_flag
5069
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5076
if test -z "$ac_cpp_err"; then
5077
ac_header_preproc=yes
5079
echo "$as_me: failed program was:" >&5
5080
sed 's/^/| /' conftest.$ac_ext >&5
5082
ac_header_preproc=no
5084
rm -f conftest.err conftest.$ac_ext
5085
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5086
echo "${ECHO_T}$ac_header_preproc" >&6
5088
# So? What about this header?
5089
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5091
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5092
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5093
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5094
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5095
ac_header_preproc=yes
5098
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5099
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5100
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5101
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5102
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5103
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5104
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5105
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5106
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5107
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5108
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5109
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5112
## -------------------------------- ##
5113
## Report this to laird@lbreyer.com ##
5114
## -------------------------------- ##
5117
sed "s/^/$as_me: WARNING: /" >&2
5120
echo "$as_me:$LINENO: checking for $ac_header" >&5
5121
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5122
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5123
echo $ECHO_N "(cached) $ECHO_C" >&6
5125
eval "$as_ac_Header=\$ac_header_preproc"
5127
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5128
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5131
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5132
cat >>confdefs.h <<_ACEOF
5133
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5142
for ac_header in wchar.h wctype.h
5144
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5145
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5146
echo "$as_me:$LINENO: checking for $ac_header" >&5
5147
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149
echo $ECHO_N "(cached) $ECHO_C" >&6
5151
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5152
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5154
# Is the header compilable?
5155
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5156
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5157
cat >conftest.$ac_ext <<_ACEOF
5160
cat confdefs.h >>conftest.$ac_ext
5161
cat >>conftest.$ac_ext <<_ACEOF
5162
/* end confdefs.h. */
5163
$ac_includes_default
5164
#include <$ac_header>
5166
rm -f conftest.$ac_objext
5167
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168
(eval $ac_compile) 2>conftest.er1
5170
grep -v '^ *+' conftest.er1 >conftest.err
5172
cat conftest.err >&5
5173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5174
(exit $ac_status); } &&
5175
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180
(exit $ac_status); }; } &&
5181
{ ac_try='test -s conftest.$ac_objext'
5182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186
(exit $ac_status); }; }; then
5187
ac_header_compiler=yes
5189
echo "$as_me: failed program was:" >&5
5190
sed 's/^/| /' conftest.$ac_ext >&5
5192
ac_header_compiler=no
5194
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5196
echo "${ECHO_T}$ac_header_compiler" >&6
5198
# Is the header present?
5199
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5200
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5201
cat >conftest.$ac_ext <<_ACEOF
5204
cat confdefs.h >>conftest.$ac_ext
5205
cat >>conftest.$ac_ext <<_ACEOF
5206
/* end confdefs.h. */
5207
#include <$ac_header>
5209
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5212
grep -v '^ *+' conftest.er1 >conftest.err
5214
cat conftest.err >&5
5215
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216
(exit $ac_status); } >/dev/null; then
5217
if test -s conftest.err; then
5218
ac_cpp_err=$ac_c_preproc_warn_flag
5219
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5226
if test -z "$ac_cpp_err"; then
5227
ac_header_preproc=yes
5229
echo "$as_me: failed program was:" >&5
5230
sed 's/^/| /' conftest.$ac_ext >&5
5232
ac_header_preproc=no
5234
rm -f conftest.err conftest.$ac_ext
5235
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5236
echo "${ECHO_T}$ac_header_preproc" >&6
5238
# So? What about this header?
5239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5241
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5243
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5245
ac_header_preproc=yes
5248
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5250
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5251
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5252
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5254
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5255
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5256
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5258
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5262
## -------------------------------- ##
5263
## Report this to laird@lbreyer.com ##
5264
## -------------------------------- ##
5267
sed "s/^/$as_me: WARNING: /" >&2
5270
echo "$as_me:$LINENO: checking for $ac_header" >&5
5271
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273
echo $ECHO_N "(cached) $ECHO_C" >&6
5275
eval "$as_ac_Header=\$ac_header_preproc"
5277
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5281
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5282
cat >>confdefs.h <<_ACEOF
5283
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5288
{ echo "$as_me:$LINENO: WARNING: No wide character headers, disabling full internationalization." >&5
5289
echo "$as_me: WARNING: No wide character headers, disabling full internationalization." >&2;}
5296
## Checks for typedefs, structures, and compiler characteristics.
5297
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5298
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5299
if test "${ac_cv_c_const+set}" = set; then
5300
echo $ECHO_N "(cached) $ECHO_C" >&6
5302
cat >conftest.$ac_ext <<_ACEOF
5305
cat confdefs.h >>conftest.$ac_ext
5306
cat >>conftest.$ac_ext <<_ACEOF
5307
/* end confdefs.h. */
5312
/* FIXME: Include the comments suggested by Paul. */
5314
/* Ultrix mips cc rejects this. */
5315
typedef int charset[2];
5317
/* SunOS 4.1.1 cc rejects this. */
5318
char const *const *ccp;
5320
/* NEC SVR4.0.2 mips cc rejects this. */
5321
struct point {int x, y;};
5322
static struct point const zero = {0,0};
5323
/* AIX XL C 1.02.0.0 rejects this.
5324
It does not let you subtract one const X* pointer from another in
5325
an arm of an if-expression whose if-part is not a constant
5327
const char *g = "string";
5328
ccp = &g + (g ? g-g : 0);
5329
/* HPUX 7.0 cc rejects these. */
5332
ccp = (char const *const *) p;
5333
{ /* SCO 3.2v4 cc rejects this. */
5335
char const *s = 0 ? (char *) 0 : (char const *) 0;
5339
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5341
const int *foo = &x[0];
5344
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5345
typedef const int *iptr;
5349
{ /* AIX XL C 1.02.0.0 rejects this saying
5350
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5351
struct s { int j; const int *ap[3]; };
5352
struct s *b; b->j = 5;
5354
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5363
rm -f conftest.$ac_objext
5364
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5365
(eval $ac_compile) 2>conftest.er1
5367
grep -v '^ *+' conftest.er1 >conftest.err
5369
cat conftest.err >&5
5370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371
(exit $ac_status); } &&
5372
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5373
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
(exit $ac_status); }; } &&
5378
{ ac_try='test -s conftest.$ac_objext'
5379
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383
(exit $ac_status); }; }; then
5386
echo "$as_me: failed program was:" >&5
5387
sed 's/^/| /' conftest.$ac_ext >&5
5391
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5393
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5394
echo "${ECHO_T}$ac_cv_c_const" >&6
5395
if test $ac_cv_c_const = no; then
5397
cat >>confdefs.h <<\_ACEOF
5403
echo "$as_me:$LINENO: checking for size_t" >&5
5404
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5405
if test "${ac_cv_type_size_t+set}" = set; then
5406
echo $ECHO_N "(cached) $ECHO_C" >&6
5408
cat >conftest.$ac_ext <<_ACEOF
5411
cat confdefs.h >>conftest.$ac_ext
5412
cat >>conftest.$ac_ext <<_ACEOF
5413
/* end confdefs.h. */
5414
$ac_includes_default
5420
if (sizeof (size_t))
5426
rm -f conftest.$ac_objext
5427
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428
(eval $ac_compile) 2>conftest.er1
5430
grep -v '^ *+' conftest.er1 >conftest.err
5432
cat conftest.err >&5
5433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434
(exit $ac_status); } &&
5435
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5436
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440
(exit $ac_status); }; } &&
5441
{ ac_try='test -s conftest.$ac_objext'
5442
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446
(exit $ac_status); }; }; then
5447
ac_cv_type_size_t=yes
5449
echo "$as_me: failed program was:" >&5
5450
sed 's/^/| /' conftest.$ac_ext >&5
5452
ac_cv_type_size_t=no
5454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5457
echo "${ECHO_T}$ac_cv_type_size_t" >&6
5458
if test $ac_cv_type_size_t = yes; then
5462
cat >>confdefs.h <<_ACEOF
5463
#define size_t unsigned
5469
## Checks for library functions.
5471
echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
5472
echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
5473
if test "${ac_cv_func_mbrtowc+set}" = set; then
5474
echo $ECHO_N "(cached) $ECHO_C" >&6
5476
cat >conftest.$ac_ext <<_ACEOF
5479
cat confdefs.h >>conftest.$ac_ext
5480
cat >>conftest.$ac_ext <<_ACEOF
5481
/* end confdefs.h. */
5486
mbstate_t state; return ! (sizeof state && mbrtowc);
5491
rm -f conftest.$ac_objext conftest$ac_exeext
5492
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5493
(eval $ac_link) 2>conftest.er1
5495
grep -v '^ *+' conftest.er1 >conftest.err
5497
cat conftest.err >&5
5498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499
(exit $ac_status); } &&
5500
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505
(exit $ac_status); }; } &&
5506
{ ac_try='test -s conftest$ac_exeext'
5507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511
(exit $ac_status); }; }; then
5512
ac_cv_func_mbrtowc=yes
5514
echo "$as_me: failed program was:" >&5
5515
sed 's/^/| /' conftest.$ac_ext >&5
5517
ac_cv_func_mbrtowc=no
5519
rm -f conftest.err conftest.$ac_objext \
5520
conftest$ac_exeext conftest.$ac_ext
5522
echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
5523
echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
5524
if test $ac_cv_func_mbrtowc = yes; then
5526
cat >>confdefs.h <<\_ACEOF
5527
#define HAVE_MBRTOWC 1
5534
for ac_header in stdlib.h unistd.h
5536
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5537
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5538
echo "$as_me:$LINENO: checking for $ac_header" >&5
5539
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5540
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5541
echo $ECHO_N "(cached) $ECHO_C" >&6
5543
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5544
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5546
# Is the header compilable?
5547
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5548
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5549
cat >conftest.$ac_ext <<_ACEOF
5552
cat confdefs.h >>conftest.$ac_ext
5553
cat >>conftest.$ac_ext <<_ACEOF
5554
/* end confdefs.h. */
5555
$ac_includes_default
5556
#include <$ac_header>
5558
rm -f conftest.$ac_objext
5559
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5560
(eval $ac_compile) 2>conftest.er1
5562
grep -v '^ *+' conftest.er1 >conftest.err
5564
cat conftest.err >&5
5565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566
(exit $ac_status); } &&
5567
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5568
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572
(exit $ac_status); }; } &&
5573
{ ac_try='test -s conftest.$ac_objext'
5574
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578
(exit $ac_status); }; }; then
5579
ac_header_compiler=yes
5581
echo "$as_me: failed program was:" >&5
5582
sed 's/^/| /' conftest.$ac_ext >&5
5584
ac_header_compiler=no
5586
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5587
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5588
echo "${ECHO_T}$ac_header_compiler" >&6
5590
# Is the header present?
5591
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5592
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5593
cat >conftest.$ac_ext <<_ACEOF
5596
cat confdefs.h >>conftest.$ac_ext
5597
cat >>conftest.$ac_ext <<_ACEOF
5598
/* end confdefs.h. */
5599
#include <$ac_header>
5601
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5602
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5604
grep -v '^ *+' conftest.er1 >conftest.err
5606
cat conftest.err >&5
5607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608
(exit $ac_status); } >/dev/null; then
5609
if test -s conftest.err; then
5610
ac_cpp_err=$ac_c_preproc_warn_flag
5611
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5618
if test -z "$ac_cpp_err"; then
5619
ac_header_preproc=yes
5621
echo "$as_me: failed program was:" >&5
5622
sed 's/^/| /' conftest.$ac_ext >&5
5624
ac_header_preproc=no
5626
rm -f conftest.err conftest.$ac_ext
5627
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5628
echo "${ECHO_T}$ac_header_preproc" >&6
5630
# So? What about this header?
5631
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5633
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5634
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5635
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5636
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5637
ac_header_preproc=yes
5640
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5641
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5642
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5643
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5644
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5645
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5646
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5647
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5648
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5649
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5650
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5651
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5654
## -------------------------------- ##
5655
## Report this to laird@lbreyer.com ##
5656
## -------------------------------- ##
5659
sed "s/^/$as_me: WARNING: /" >&2
5662
echo "$as_me:$LINENO: checking for $ac_header" >&5
5663
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5664
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5665
echo $ECHO_N "(cached) $ECHO_C" >&6
5667
eval "$as_ac_Header=\$ac_header_preproc"
5669
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5673
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674
cat >>confdefs.h <<_ACEOF
5675
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683
for ac_func in getpagesize
5685
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5686
echo "$as_me:$LINENO: checking for $ac_func" >&5
5687
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5688
if eval "test \"\${$as_ac_var+set}\" = set"; then
5689
echo $ECHO_N "(cached) $ECHO_C" >&6
5691
cat >conftest.$ac_ext <<_ACEOF
5694
cat confdefs.h >>conftest.$ac_ext
5695
cat >>conftest.$ac_ext <<_ACEOF
5696
/* end confdefs.h. */
5697
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5698
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5699
#define $ac_func innocuous_$ac_func
5701
/* System header to define __stub macros and hopefully few prototypes,
5702
which can conflict with char $ac_func (); below.
5703
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5704
<limits.h> exists even on freestanding compilers. */
5707
# include <limits.h>
5709
# include <assert.h>
5714
/* Override any gcc2 internal prototype to avoid an error. */
5719
/* We use char because int might match the return type of a gcc2
5720
builtin and then its argument prototype would still apply. */
5722
/* The GNU C library defines this for functions which it implements
5723
to always fail with ENOSYS. Some functions are actually named
5724
something starting with __ and the normal name is an alias. */
5725
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5728
char (*f) () = $ac_func;
5737
return f != $ac_func;
5742
rm -f conftest.$ac_objext conftest$ac_exeext
5743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744
(eval $ac_link) 2>conftest.er1
5746
grep -v '^ *+' conftest.er1 >conftest.err
5748
cat conftest.err >&5
5749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750
(exit $ac_status); } &&
5751
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756
(exit $ac_status); }; } &&
5757
{ ac_try='test -s conftest$ac_exeext'
5758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762
(exit $ac_status); }; }; then
5763
eval "$as_ac_var=yes"
5765
echo "$as_me: failed program was:" >&5
5766
sed 's/^/| /' conftest.$ac_ext >&5
5768
eval "$as_ac_var=no"
5770
rm -f conftest.err conftest.$ac_objext \
5771
conftest$ac_exeext conftest.$ac_ext
5773
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5774
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5775
if test `eval echo '${'$as_ac_var'}'` = yes; then
5776
cat >>confdefs.h <<_ACEOF
5777
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5783
echo "$as_me:$LINENO: checking for working mmap" >&5
5784
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5785
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5786
echo $ECHO_N "(cached) $ECHO_C" >&6
5788
if test "$cross_compiling" = yes; then
5789
ac_cv_func_mmap_fixed_mapped=no
5791
cat >conftest.$ac_ext <<_ACEOF
5794
cat confdefs.h >>conftest.$ac_ext
5795
cat >>conftest.$ac_ext <<_ACEOF
5796
/* end confdefs.h. */
5797
$ac_includes_default
5798
/* malloc might have been renamed as rpl_malloc. */
5801
/* Thanks to Mike Haertel and Jim Avera for this test.
5802
Here is a matrix of mmap possibilities:
5803
mmap private not fixed
5804
mmap private fixed at somewhere currently unmapped
5805
mmap private fixed at somewhere already mapped
5806
mmap shared not fixed
5807
mmap shared fixed at somewhere currently unmapped
5808
mmap shared fixed at somewhere already mapped
5809
For private mappings, we should verify that changes cannot be read()
5810
back from the file, nor mmap's back from the file at a different
5811
address. (There have been systems where private was not correctly
5812
implemented like the infamous i386 svr4.0, and systems where the
5813
VM page cache was not coherent with the file system buffer cache
5814
like early versions of FreeBSD and possibly contemporary NetBSD.)
5815
For shared mappings, we should conversely verify that changes get
5816
propagated back to all the places they're supposed to be.
5818
Grep wants private fixed already mapped.
5819
The main things grep needs to know about mmap are:
5820
* does it exist and is it safe to write into the mmap'd area
5821
* how to use it (BSD variants) */
5824
#include <sys/mman.h>
5826
#if !STDC_HEADERS && !HAVE_STDLIB_H
5830
/* This mess was copied from the GNU getpagesize.h. */
5831
#if !HAVE_GETPAGESIZE
5832
/* Assume that all systems that can run configure have sys/param.h. */
5833
# if !HAVE_SYS_PARAM_H
5834
# define HAVE_SYS_PARAM_H 1
5837
# ifdef _SC_PAGESIZE
5838
# define getpagesize() sysconf(_SC_PAGESIZE)
5839
# else /* no _SC_PAGESIZE */
5840
# if HAVE_SYS_PARAM_H
5841
# include <sys/param.h>
5842
# ifdef EXEC_PAGESIZE
5843
# define getpagesize() EXEC_PAGESIZE
5844
# else /* no EXEC_PAGESIZE */
5846
# define getpagesize() NBPG * CLSIZE
5849
# endif /* no CLSIZE */
5850
# else /* no NBPG */
5852
# define getpagesize() NBPC
5853
# else /* no NBPC */
5855
# define getpagesize() PAGESIZE
5856
# endif /* PAGESIZE */
5857
# endif /* no NBPC */
5858
# endif /* no NBPG */
5859
# endif /* no EXEC_PAGESIZE */
5860
# else /* no HAVE_SYS_PARAM_H */
5861
# define getpagesize() 8192 /* punt totally */
5862
# endif /* no HAVE_SYS_PARAM_H */
5863
# endif /* no _SC_PAGESIZE */
5865
#endif /* no HAVE_GETPAGESIZE */
5870
char *data, *data2, *data3;
5874
pagesize = getpagesize ();
5876
/* First, make a file with some known garbage in it. */
5877
data = (char *) malloc (pagesize);
5880
for (i = 0; i < pagesize; ++i)
5881
*(data + i) = rand ();
5883
fd = creat ("conftest.mmap", 0600);
5886
if (write (fd, data, pagesize) != pagesize)
5890
/* Next, try to mmap the file at a fixed address which already has
5891
something else allocated at it. If we can, also make sure that
5892
we see the same garbage. */
5893
fd = open ("conftest.mmap", O_RDWR);
5896
data2 = (char *) malloc (2 * pagesize);
5899
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5900
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5901
MAP_PRIVATE | MAP_FIXED, fd, 0L))
5903
for (i = 0; i < pagesize; ++i)
5904
if (*(data + i) != *(data2 + i))
5907
/* Finally, make sure that changes to the mapped area do not
5908
percolate back to the file as seen by read(). (This is a bug on
5909
some variants of i386 svr4.0.) */
5910
for (i = 0; i < pagesize; ++i)
5911
*(data2 + i) = *(data2 + i) + 1;
5912
data3 = (char *) malloc (pagesize);
5915
if (read (fd, data3, pagesize) != pagesize)
5917
for (i = 0; i < pagesize; ++i)
5918
if (*(data + i) != *(data3 + i))
5924
rm -f conftest$ac_exeext
5925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5926
(eval $ac_link) 2>&5
5928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934
(exit $ac_status); }; }; then
5935
ac_cv_func_mmap_fixed_mapped=yes
5937
echo "$as_me: program exited with status $ac_status" >&5
5938
echo "$as_me: failed program was:" >&5
5939
sed 's/^/| /' conftest.$ac_ext >&5
5942
ac_cv_func_mmap_fixed_mapped=no
5944
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5947
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5948
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5949
if test $ac_cv_func_mmap_fixed_mapped = yes; then
5951
cat >>confdefs.h <<\_ACEOF
5959
for ac_func in vprintf
5961
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5962
echo "$as_me:$LINENO: checking for $ac_func" >&5
5963
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5964
if eval "test \"\${$as_ac_var+set}\" = set"; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5967
cat >conftest.$ac_ext <<_ACEOF
5970
cat confdefs.h >>conftest.$ac_ext
5971
cat >>conftest.$ac_ext <<_ACEOF
5972
/* end confdefs.h. */
5973
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5974
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5975
#define $ac_func innocuous_$ac_func
5977
/* System header to define __stub macros and hopefully few prototypes,
5978
which can conflict with char $ac_func (); below.
5979
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980
<limits.h> exists even on freestanding compilers. */
5983
# include <limits.h>
5985
# include <assert.h>
5990
/* Override any gcc2 internal prototype to avoid an error. */
5995
/* We use char because int might match the return type of a gcc2
5996
builtin and then its argument prototype would still apply. */
5998
/* The GNU C library defines this for functions which it implements
5999
to always fail with ENOSYS. Some functions are actually named
6000
something starting with __ and the normal name is an alias. */
6001
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6004
char (*f) () = $ac_func;
6013
return f != $ac_func;
6018
rm -f conftest.$ac_objext conftest$ac_exeext
6019
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6020
(eval $ac_link) 2>conftest.er1
6022
grep -v '^ *+' conftest.er1 >conftest.err
6024
cat conftest.err >&5
6025
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026
(exit $ac_status); } &&
6027
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6028
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032
(exit $ac_status); }; } &&
6033
{ ac_try='test -s conftest$ac_exeext'
6034
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038
(exit $ac_status); }; }; then
6039
eval "$as_ac_var=yes"
6041
echo "$as_me: failed program was:" >&5
6042
sed 's/^/| /' conftest.$ac_ext >&5
6044
eval "$as_ac_var=no"
6046
rm -f conftest.err conftest.$ac_objext \
6047
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
6056
echo "$as_me:$LINENO: checking for _doprnt" >&5
6057
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
6058
if test "${ac_cv_func__doprnt+set}" = set; then
6059
echo $ECHO_N "(cached) $ECHO_C" >&6
6061
cat >conftest.$ac_ext <<_ACEOF
6064
cat confdefs.h >>conftest.$ac_ext
6065
cat >>conftest.$ac_ext <<_ACEOF
6066
/* end confdefs.h. */
6067
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
6068
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6069
#define _doprnt innocuous__doprnt
6071
/* System header to define __stub macros and hopefully few prototypes,
6072
which can conflict with char _doprnt (); below.
6073
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6074
<limits.h> exists even on freestanding compilers. */
6077
# include <limits.h>
6079
# 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__doprnt) || defined (__stub____doprnt)
6098
char (*f) () = _doprnt;
6107
return f != _doprnt;
6112
rm -f conftest.$ac_objext conftest$ac_exeext
6113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6114
(eval $ac_link) 2>conftest.er1
6116
grep -v '^ *+' conftest.er1 >conftest.err
6118
cat conftest.err >&5
6119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120
(exit $ac_status); } &&
6121
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6122
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126
(exit $ac_status); }; } &&
6127
{ ac_try='test -s conftest$ac_exeext'
6128
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132
(exit $ac_status); }; }; then
6133
ac_cv_func__doprnt=yes
6135
echo "$as_me: failed program was:" >&5
6136
sed 's/^/| /' conftest.$ac_ext >&5
6138
ac_cv_func__doprnt=no
6140
rm -f conftest.err conftest.$ac_objext \
6141
conftest$ac_exeext conftest.$ac_ext
6143
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
6144
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
6145
if test $ac_cv_func__doprnt = yes; then
6147
cat >>confdefs.h <<\_ACEOF
6148
#define HAVE_DOPRNT 1
6157
echo "$as_me:$LINENO: checking for function prototypes" >&5
6158
echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
6159
if test "$ac_cv_prog_cc_stdc" != no; then
6160
echo "$as_me:$LINENO: result: yes" >&5
6161
echo "${ECHO_T}yes" >&6
6163
cat >>confdefs.h <<\_ACEOF
6164
#define PROTOTYPES 1
6168
cat >>confdefs.h <<\_ACEOF
6169
#define __PROTOTYPES 1
6173
echo "$as_me:$LINENO: result: no" >&5
6174
echo "${ECHO_T}no" >&6
6177
echo "$as_me:$LINENO: checking whether setvbuf arguments are reversed" >&5
6178
echo $ECHO_N "checking whether setvbuf arguments are reversed... $ECHO_C" >&6
6179
if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
6180
echo $ECHO_N "(cached) $ECHO_C" >&6
6182
ac_cv_func_setvbuf_reversed=no
6183
cat >conftest.$ac_ext <<_ACEOF
6186
cat confdefs.h >>conftest.$ac_ext
6187
cat >>conftest.$ac_ext <<_ACEOF
6188
/* end confdefs.h. */
6191
int (setvbuf) (FILE *, int, char *, size_t);
6196
char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
6201
rm -f conftest.$ac_objext conftest$ac_exeext
6202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6203
(eval $ac_link) 2>conftest.er1
6205
grep -v '^ *+' conftest.er1 >conftest.err
6207
cat conftest.err >&5
6208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209
(exit $ac_status); } &&
6210
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215
(exit $ac_status); }; } &&
6216
{ ac_try='test -s conftest$ac_exeext'
6217
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6221
(exit $ac_status); }; }; then
6222
cat >conftest.$ac_ext <<_ACEOF
6225
cat confdefs.h >>conftest.$ac_ext
6226
cat >>conftest.$ac_ext <<_ACEOF
6227
/* end confdefs.h. */
6230
int (setvbuf) (FILE *, int, char *, size_t);
6235
char buf; return setvbuf (stdout, &buf, _IOLBF, 1);
6240
rm -f conftest.$ac_objext conftest$ac_exeext
6241
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6242
(eval $ac_link) 2>conftest.er1
6244
grep -v '^ *+' conftest.er1 >conftest.err
6246
cat conftest.err >&5
6247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248
(exit $ac_status); } &&
6249
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254
(exit $ac_status); }; } &&
6255
{ ac_try='test -s conftest$ac_exeext'
6256
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260
(exit $ac_status); }; }; then
6261
# It compiles and links either way, so it must not be declared
6262
# with a prototype and most likely this is a K&R C compiler.
6264
if test "$cross_compiling" = yes; then
6265
: # Assume setvbuf is not reversed when cross-compiling.
6267
cat >conftest.$ac_ext <<_ACEOF
6270
cat confdefs.h >>conftest.$ac_ext
6271
cat >>conftest.$ac_ext <<_ACEOF
6272
/* end confdefs.h. */
6277
/* This call has the arguments reversed.
6278
A reversed system may check and see that the address of buf
6279
is not _IOLBF, _IONBF, or _IOFBF, and return nonzero. */
6281
if (setvbuf (stdout, _IOLBF, &buf, 1) != 0)
6284
exit (0); /* Non-reversed systems SEGV here. */
6289
rm -f conftest$ac_exeext
6290
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6291
(eval $ac_link) 2>&5
6293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299
(exit $ac_status); }; }; then
6300
ac_cv_func_setvbuf_reversed=yes
6302
echo "$as_me: program exited with status $ac_status" >&5
6303
echo "$as_me: failed program was:" >&5
6304
sed 's/^/| /' conftest.$ac_ext >&5
6309
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6311
ac_cv_func_setvbuf_reversed=yes
6313
echo "$as_me: failed program was:" >&5
6314
sed 's/^/| /' conftest.$ac_ext >&5
6317
rm -f conftest.err conftest.$ac_objext \
6318
conftest$ac_exeext conftest.$ac_ext
6320
echo "$as_me: failed program was:" >&5
6321
sed 's/^/| /' conftest.$ac_ext >&5
6324
rm -f conftest.err conftest.$ac_objext \
6325
conftest$ac_exeext conftest.$ac_ext
6327
echo "$as_me:$LINENO: result: $ac_cv_func_setvbuf_reversed" >&5
6328
echo "${ECHO_T}$ac_cv_func_setvbuf_reversed" >&6
6329
if test $ac_cv_func_setvbuf_reversed = yes; then
6331
cat >>confdefs.h <<\_ACEOF
6332
#define SETVBUF_REVERSED 1
6340
for ac_func in getpagesize madvise sigaction
6342
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6343
echo "$as_me:$LINENO: checking for $ac_func" >&5
6344
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6345
if eval "test \"\${$as_ac_var+set}\" = set"; then
6346
echo $ECHO_N "(cached) $ECHO_C" >&6
6348
cat >conftest.$ac_ext <<_ACEOF
6351
cat confdefs.h >>conftest.$ac_ext
6352
cat >>conftest.$ac_ext <<_ACEOF
6353
/* end confdefs.h. */
6354
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6355
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6356
#define $ac_func innocuous_$ac_func
6358
/* System header to define __stub macros and hopefully few prototypes,
6359
which can conflict with char $ac_func (); below.
6360
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6361
<limits.h> exists even on freestanding compilers. */
6364
# include <limits.h>
6366
# include <assert.h>
6371
/* Override any gcc2 internal prototype to avoid an error. */
6376
/* We use char because int might match the return type of a gcc2
6377
builtin and then its argument prototype would still apply. */
6379
/* The GNU C library defines this for functions which it implements
6380
to always fail with ENOSYS. Some functions are actually named
6381
something starting with __ and the normal name is an alias. */
6382
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6385
char (*f) () = $ac_func;
6394
return f != $ac_func;
6399
rm -f conftest.$ac_objext conftest$ac_exeext
6400
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6401
(eval $ac_link) 2>conftest.er1
6403
grep -v '^ *+' conftest.er1 >conftest.err
6405
cat conftest.err >&5
6406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407
(exit $ac_status); } &&
6408
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413
(exit $ac_status); }; } &&
6414
{ ac_try='test -s conftest$ac_exeext'
6415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419
(exit $ac_status); }; }; then
6420
eval "$as_ac_var=yes"
6422
echo "$as_me: failed program was:" >&5
6423
sed 's/^/| /' conftest.$ac_ext >&5
6425
eval "$as_ac_var=no"
6427
rm -f conftest.err conftest.$ac_objext \
6428
conftest$ac_exeext conftest.$ac_ext
6430
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6431
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6432
if test `eval echo '${'$as_ac_var'}'` = yes; then
6433
cat >>confdefs.h <<_ACEOF
6434
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6440
## the AX_FUNC_POSIX_MEMALIGN was downloaded from the AC archive,
6441
## http://ac-archive.sourceforge.net/doc/acinclude.html and added
6442
## to the acinclude.m4 file. After aclocal was run, it got put into aclocal.m4
6443
echo "$as_me:$LINENO: checking for working posix_memalign" >&5
6444
echo $ECHO_N "checking for working posix_memalign... $ECHO_C" >&6
6445
if test "${ax_cv_func_posix_memalign_works+set}" = set; then
6446
echo $ECHO_N "(cached) $ECHO_C" >&6
6448
if test "$cross_compiling" = yes; then
6449
ax_cv_func_posix_memalign_works=no
6451
cat >conftest.$ac_ext <<_ACEOF
6454
cat confdefs.h >>conftest.$ac_ext
6455
cat >>conftest.$ac_ext <<_ACEOF
6456
/* end confdefs.h. */
6465
/* Some versions of glibc incorrectly perform the alignment check on
6467
exit (posix_memalign (&buffer, sizeof(void *), 123) != 0);
6471
rm -f conftest$ac_exeext
6472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6473
(eval $ac_link) 2>&5
6475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6477
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481
(exit $ac_status); }; }; then
6482
ax_cv_func_posix_memalign_works=yes
6484
echo "$as_me: program exited with status $ac_status" >&5
6485
echo "$as_me: failed program was:" >&5
6486
sed 's/^/| /' conftest.$ac_ext >&5
6489
ax_cv_func_posix_memalign_works=no
6491
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6494
echo "$as_me:$LINENO: result: $ax_cv_func_posix_memalign_works" >&5
6495
echo "${ECHO_T}$ax_cv_func_posix_memalign_works" >&6
6496
if test "$ax_cv_func_posix_memalign_works" = "yes" ; then
6498
cat >>confdefs.h <<\_ACEOF
6499
#define HAVE_POSIX_MEMALIGN 1
6504
if test x$ac_cv_func_posix_memalign_works = xno; then
6507
for ac_func in memalign valloc
6509
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6510
echo "$as_me:$LINENO: checking for $ac_func" >&5
6511
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6512
if eval "test \"\${$as_ac_var+set}\" = set"; then
6513
echo $ECHO_N "(cached) $ECHO_C" >&6
6515
cat >conftest.$ac_ext <<_ACEOF
6518
cat confdefs.h >>conftest.$ac_ext
6519
cat >>conftest.$ac_ext <<_ACEOF
6520
/* end confdefs.h. */
6521
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6522
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6523
#define $ac_func innocuous_$ac_func
6525
/* System header to define __stub macros and hopefully few prototypes,
6526
which can conflict with char $ac_func (); below.
6527
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6528
<limits.h> exists even on freestanding compilers. */
6531
# include <limits.h>
6533
# include <assert.h>
6538
/* Override any gcc2 internal prototype to avoid an error. */
6543
/* We use char because int might match the return type of a gcc2
6544
builtin and then its argument prototype would still apply. */
6546
/* The GNU C library defines this for functions which it implements
6547
to always fail with ENOSYS. Some functions are actually named
6548
something starting with __ and the normal name is an alias. */
6549
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6552
char (*f) () = $ac_func;
6561
return f != $ac_func;
6566
rm -f conftest.$ac_objext conftest$ac_exeext
6567
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6568
(eval $ac_link) 2>conftest.er1
6570
grep -v '^ *+' conftest.er1 >conftest.err
6572
cat conftest.err >&5
6573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574
(exit $ac_status); } &&
6575
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6576
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580
(exit $ac_status); }; } &&
6581
{ ac_try='test -s conftest$ac_exeext'
6582
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
(exit $ac_status); }; }; then
6587
eval "$as_ac_var=yes"
6589
echo "$as_me: failed program was:" >&5
6590
sed 's/^/| /' conftest.$ac_ext >&5
6592
eval "$as_ac_var=no"
6594
rm -f conftest.err conftest.$ac_objext \
6595
conftest$ac_exeext conftest.$ac_ext
6597
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6598
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6599
if test `eval echo '${'$as_ac_var'}'` = yes; then
6600
cat >>confdefs.h <<_ACEOF
6601
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6609
for ac_func in wcstol
6611
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6612
echo "$as_me:$LINENO: checking for $ac_func" >&5
6613
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6614
if eval "test \"\${$as_ac_var+set}\" = set"; then
6615
echo $ECHO_N "(cached) $ECHO_C" >&6
6617
cat >conftest.$ac_ext <<_ACEOF
6620
cat confdefs.h >>conftest.$ac_ext
6621
cat >>conftest.$ac_ext <<_ACEOF
6622
/* end confdefs.h. */
6623
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6624
For example, HP-UX 11i <limits.h> declares gettimeofday. */
6625
#define $ac_func innocuous_$ac_func
6627
/* System header to define __stub macros and hopefully few prototypes,
6628
which can conflict with char $ac_func (); below.
6629
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6630
<limits.h> exists even on freestanding compilers. */
6633
# include <limits.h>
6635
# include <assert.h>
6640
/* Override any gcc2 internal prototype to avoid an error. */
6645
/* We use char because int might match the return type of a gcc2
6646
builtin and then its argument prototype would still apply. */
6648
/* The GNU C library defines this for functions which it implements
6649
to always fail with ENOSYS. Some functions are actually named
6650
something starting with __ and the normal name is an alias. */
6651
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6654
char (*f) () = $ac_func;
6663
return f != $ac_func;
6668
rm -f conftest.$ac_objext conftest$ac_exeext
6669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6670
(eval $ac_link) 2>conftest.er1
6672
grep -v '^ *+' conftest.er1 >conftest.err
6674
cat conftest.err >&5
6675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676
(exit $ac_status); } &&
6677
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682
(exit $ac_status); }; } &&
6683
{ ac_try='test -s conftest$ac_exeext'
6684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6688
(exit $ac_status); }; }; then
6689
eval "$as_ac_var=yes"
6691
echo "$as_me: failed program was:" >&5
6692
sed 's/^/| /' conftest.$ac_ext >&5
6694
eval "$as_ac_var=no"
6696
rm -f conftest.err conftest.$ac_objext \
6697
conftest$ac_exeext conftest.$ac_ext
6699
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6700
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6701
if test `eval echo '${'$as_ac_var'}'` = yes; then
6702
cat >>confdefs.h <<_ACEOF
6703
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6708
{ echo "$as_me:$LINENO: WARNING: Incomplete Unicode implementation, some HTML conversions may suffer." >&5
6709
echo "$as_me: WARNING: Incomplete Unicode implementation, some HTML conversions may suffer." >&2;}
6716
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/tests/Makefile man/Makefile ts/Makefile"
6718
cat >confcache <<\_ACEOF
6719
# This file is a shell script that caches the results of configure
6720
# tests run on this system so they can be shared between configure
6721
# scripts and configure runs, see configure's option --config-cache.
6722
# It is not useful on other systems. If it contains results you don't
6723
# want to keep, you may remove or edit it.
6725
# config.status only pays attention to the cache file if you give it
6726
# the --recheck option to rerun configure.
6728
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6729
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6734
# The following way of writing the cache mishandles newlines in values,
6735
# but we know of no workaround that is simple, portable, and efficient.
6736
# So, don't put newlines in cache variables' values.
6737
# Ultrix sh set writes to stderr and can't be redirected directly,
6738
# and sets the high bit in the cache file unless we assign to the vars.
6741
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6743
# `set' does not quote correctly, so add quotes (double-quote
6744
# substitution turns \\\\ into \\, and sed turns \\ into \).
6747
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6750
# `set' quotes correctly as required by POSIX, so do not add quotes.
6752
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6759
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6761
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6763
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6764
if test -w $cache_file; then
6765
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6766
cat confcache >$cache_file
6768
echo "not updating unwritable cache $cache_file"
6773
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6774
# Let make expand exec_prefix.
6775
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6777
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6778
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6779
# trailing colons and then remove the whole line if VPATH becomes empty
6780
# (actually we leave an empty line to preserve line numbers).
6781
if test "x$srcdir" = x.; then
6782
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6783
s/:*\$(srcdir):*/:/;
6784
s/:*\${srcdir}:*/:/;
6786
s/^\([^=]*=[ ]*\):*/\1/;
6792
DEFS=-DHAVE_CONFIG_H
6796
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6797
# 1. Remove the extension, and $U if already installed.
6798
ac_i=`echo "$ac_i" |
6799
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6801
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6802
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6806
LTLIBOBJS=$ac_ltlibobjs
6810
: ${CONFIG_STATUS=./config.status}
6811
ac_clean_files_save=$ac_clean_files
6812
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6813
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6814
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6815
cat >$CONFIG_STATUS <<_ACEOF
6817
# Generated by $as_me.
6818
# Run this file to recreate the current configuration.
6819
# Compiler output produced by configure, useful for debugging
6820
# configure, is in config.log if it exists.
6825
SHELL=\${CONFIG_SHELL-$SHELL}
6828
cat >>$CONFIG_STATUS <<\_ACEOF
6829
## --------------------- ##
6830
## M4sh Initialization. ##
6831
## --------------------- ##
6833
# Be Bourne compatible
6834
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6837
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6838
# is contrary to our usage. Disable this feature.
6839
alias -g '${1+"$@"}'='"$@"'
6840
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6843
DUALCASE=1; export DUALCASE # for MKS sh
6845
# Support unset when possible.
6846
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6853
# Work around bugs in pre-3.0 UWIN ksh.
6854
$as_unset ENV MAIL MAILPATH
6861
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6862
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6863
LC_TELEPHONE LC_TIME
6865
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6866
eval $as_var=C; export $as_var
6872
# Required to use basename.
6873
if expr a : '\(a\)' >/dev/null 2>&1; then
6879
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6880
as_basename=basename
6886
# Name of the executable.
6887
as_me=`$as_basename "$0" ||
6888
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6889
X"$0" : 'X\(//\)$' \| \
6890
X"$0" : 'X\(/\)$' \| \
6891
. : '\(.\)' 2>/dev/null ||
6893
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6894
/^X\/\(\/\/\)$/{ s//\1/; q; }
6895
/^X\/\(\/\).*/{ s//\1/; q; }
6899
# PATH needs CR, and LINENO needs CR and PATH.
6900
# Avoid depending upon Character Ranges.
6901
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6902
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6903
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6904
as_cr_digits='0123456789'
6905
as_cr_alnum=$as_cr_Letters$as_cr_digits
6907
# The user is always right.
6908
if test "${PATH_SEPARATOR+set}" != set; then
6909
echo "#! /bin/sh" >conf$$.sh
6910
echo "exit 0" >>conf$$.sh
6912
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6923
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6924
test "x$as_lineno_1" != "x$as_lineno_2" &&
6925
test "x$as_lineno_3" = "x$as_lineno_2" || {
6926
# Find who we are. Look in the path if we contain no path at all
6929
*[\\/]* ) as_myself=$0 ;;
6930
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934
test -z "$as_dir" && as_dir=.
6935
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6940
# We did not find ourselves, most probably we were run as `sh COMMAND'
6941
# in which case we are not to be found in the path.
6942
if test "x$as_myself" = x; then
6945
if test ! -f "$as_myself"; then
6946
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6947
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6948
{ (exit 1); exit 1; }; }
6950
case $CONFIG_SHELL in
6952
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6953
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6956
test -z "$as_dir" && as_dir=.
6957
for as_base in sh bash ksh sh5; do
6960
if ("$as_dir/$as_base" -c '
6963
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6964
test "x$as_lineno_1" != "x$as_lineno_2" &&
6965
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6966
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6967
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6968
CONFIG_SHELL=$as_dir/$as_base
6970
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6978
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6979
# uniformly replaced by the line number. The first 'sed' inserts a
6980
# line-number line before each line; the second 'sed' does the real
6981
# work. The second script uses 'N' to pair each line-number line
6982
# with the numbered line, and appends trailing '-' during
6983
# substitution so that $LINENO is not a special case at line end.
6984
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6985
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6986
sed '=' <$as_myself |
6991
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6994
s,^['$as_cr_digits']*\n,,
6996
chmod +x $as_me.lineno ||
6997
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6998
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6999
{ (exit 1); exit 1; }; }
7001
# Don't try to exec as it changes $[0], causing all sort of problems
7002
# (the dirname of $[0] is not the place where we might find the
7003
# original and so on. Autoconf is especially sensible to this).
7005
# Exit status is that of the last command.
7010
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7011
*c*,-n*) ECHO_N= ECHO_C='
7013
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7014
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7017
if expr a : '\(a\)' >/dev/null 2>&1; then
7023
rm -f conf$$ conf$$.exe conf$$.file
7025
if ln -s conf$$.file conf$$ 2>/dev/null; then
7026
# We could just check for DJGPP; but this test a) works b) is more generic
7027
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7028
if test -f conf$$.exe; then
7029
# Don't use ln at all; we don't have any links
7034
elif ln conf$$.file conf$$ 2>/dev/null; then
7039
rm -f conf$$ conf$$.exe conf$$.file
7041
if mkdir -p . 2>/dev/null; then
7044
test -d ./-p && rmdir ./-p
7048
as_executable_p="test -f"
7050
# Sed expression to map a string onto a valid CPP name.
7051
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7053
# Sed expression to map a string onto a valid variable name.
7054
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7058
# We need space, tab and new line, in precisely that order.
7068
# Open the log real soon, to keep \$[0] and so on meaningful, and to
7069
# report actual input values of CONFIG_FILES etc. instead of their
7070
# values after options handling. Logging --version etc. is OK.
7074
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7075
## Running $as_me. ##
7080
This file was extended by dbacl $as_me 1.9, which was
7081
generated by GNU Autoconf 2.59. Invocation command line was
7083
CONFIG_FILES = $CONFIG_FILES
7084
CONFIG_HEADERS = $CONFIG_HEADERS
7085
CONFIG_LINKS = $CONFIG_LINKS
7086
CONFIG_COMMANDS = $CONFIG_COMMANDS
7090
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7094
# Files that config.status was made for.
7095
if test -n "$ac_config_files"; then
7096
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7099
if test -n "$ac_config_headers"; then
7100
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7103
if test -n "$ac_config_links"; then
7104
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7107
if test -n "$ac_config_commands"; then
7108
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7111
cat >>$CONFIG_STATUS <<\_ACEOF
7114
\`$as_me' instantiates files from templates according to the
7115
current configuration.
7117
Usage: $0 [OPTIONS] [FILE]...
7119
-h, --help print this help, then exit
7120
-V, --version print version number, then exit
7121
-q, --quiet do not print progress messages
7122
-d, --debug don't remove temporary files
7123
--recheck update $as_me by reconfiguring in the same conditions
7124
--file=FILE[:TEMPLATE]
7125
instantiate the configuration file FILE
7126
--header=FILE[:TEMPLATE]
7127
instantiate the configuration header FILE
7129
Configuration files:
7132
Configuration headers:
7135
Configuration commands:
7138
Report bugs to <bug-autoconf@gnu.org>."
7141
cat >>$CONFIG_STATUS <<_ACEOF
7143
dbacl config.status 1.9
7144
configured by $0, generated by GNU Autoconf 2.59,
7145
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7147
Copyright (C) 2003 Free Software Foundation, Inc.
7148
This config.status script is free software; the Free Software Foundation
7149
gives unlimited permission to copy, distribute and modify it."
7154
cat >>$CONFIG_STATUS <<\_ACEOF
7155
# If no file are specified by the user, then we need to provide default
7156
# value. By we need to know if files were specified by the user.
7162
ac_option=`expr "x$1" : 'x\([^=]*\)='`
7163
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7171
*) # This is not an option, so the user has probably given explicit
7174
ac_need_defaults=false;;
7178
# Handling of the options.
7180
cat >>$CONFIG_STATUS <<\_ACEOF
7181
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7183
--version | --vers* | -V )
7184
echo "$ac_cs_version"; exit 0 ;;
7186
# Conflict between --help and --header
7187
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
7188
Try \`$0 --help' for more information." >&5
7189
echo "$as_me: error: ambiguous option: $1
7190
Try \`$0 --help' for more information." >&2;}
7191
{ (exit 1); exit 1; }; };;
7192
--help | --hel | -h )
7193
echo "$ac_cs_usage"; exit 0 ;;
7194
--debug | --d* | -d )
7196
--file | --fil | --fi | --f )
7198
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7199
ac_need_defaults=false;;
7200
--header | --heade | --head | --hea )
7202
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7203
ac_need_defaults=false;;
7204
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
7205
| -silent | --silent | --silen | --sile | --sil | --si | --s)
7209
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7210
Try \`$0 --help' for more information." >&5
7211
echo "$as_me: error: unrecognized option: $1
7212
Try \`$0 --help' for more information." >&2;}
7213
{ (exit 1); exit 1; }; } ;;
7215
*) ac_config_targets="$ac_config_targets $1" ;;
7221
ac_configure_extra_args=
7223
if $ac_cs_silent; then
7225
ac_configure_extra_args="$ac_configure_extra_args --silent"
7229
cat >>$CONFIG_STATUS <<_ACEOF
7230
if \$ac_cs_recheck; then
7231
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7232
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7237
cat >>$CONFIG_STATUS <<_ACEOF
7239
# INIT-COMMANDS section.
7248
cat >>$CONFIG_STATUS <<\_ACEOF
7249
for ac_config_target in $ac_config_targets
7251
case "$ac_config_target" in
7252
# Handling of arguments.
7253
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7254
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
7255
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
7256
"src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
7257
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
7258
"ts/Makefile" ) CONFIG_FILES="$CONFIG_FILES ts/Makefile" ;;
7259
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
7260
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
7261
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7262
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7263
{ (exit 1); exit 1; }; };;
7267
# If the user did not use the arguments to specify the items to instantiate,
7268
# then the envvar interface is used. Set only those that are not.
7269
# We use the long form for the default assignment because of an extremely
7270
# bizarre bug on SunOS 4.1.3.
7271
if $ac_need_defaults; then
7272
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7273
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7274
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7277
# Have a temporary directory for convenience. Make it in the build tree
7278
# simply because there is no reason to put it here, and in addition,
7279
# creating and moving files from /tmp can sometimes cause problems.
7280
# Create a temporary directory, and hook for its removal unless debugging.
7283
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7284
trap '{ (exit 1); exit 1; }' 1 2 13 15
7287
# Create a (secure) tmp directory for tmp files.
7290
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7291
test -n "$tmp" && test -d "$tmp"
7294
tmp=./confstat$$-$RANDOM
7295
(umask 077 && mkdir $tmp)
7298
echo "$me: cannot create a temporary directory in ." >&2
7299
{ (exit 1); exit 1; }
7304
cat >>$CONFIG_STATUS <<_ACEOF
7307
# CONFIG_FILES section.
7310
# No need to generate the scripts if there are no CONFIG_FILES.
7311
# This happens for instance when ./config.status config.h
7312
if test -n "\$CONFIG_FILES"; then
7313
# Protect against being on the right side of a sed subst in config.status.
7314
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7315
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7316
s,@SHELL@,$SHELL,;t t
7317
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7318
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7319
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7320
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7321
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7322
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7323
s,@exec_prefix@,$exec_prefix,;t t
7324
s,@prefix@,$prefix,;t t
7325
s,@program_transform_name@,$program_transform_name,;t t
7326
s,@bindir@,$bindir,;t t
7327
s,@sbindir@,$sbindir,;t t
7328
s,@libexecdir@,$libexecdir,;t t
7329
s,@datadir@,$datadir,;t t
7330
s,@sysconfdir@,$sysconfdir,;t t
7331
s,@sharedstatedir@,$sharedstatedir,;t t
7332
s,@localstatedir@,$localstatedir,;t t
7333
s,@libdir@,$libdir,;t t
7334
s,@includedir@,$includedir,;t t
7335
s,@oldincludedir@,$oldincludedir,;t t
7336
s,@infodir@,$infodir,;t t
7337
s,@mandir@,$mandir,;t t
7338
s,@build_alias@,$build_alias,;t t
7339
s,@host_alias@,$host_alias,;t t
7340
s,@target_alias@,$target_alias,;t t
7342
s,@ECHO_C@,$ECHO_C,;t t
7343
s,@ECHO_N@,$ECHO_N,;t t
7344
s,@ECHO_T@,$ECHO_T,;t t
7346
s,@build@,$build,;t t
7347
s,@build_cpu@,$build_cpu,;t t
7348
s,@build_vendor@,$build_vendor,;t t
7349
s,@build_os@,$build_os,;t t
7351
s,@host_cpu@,$host_cpu,;t t
7352
s,@host_vendor@,$host_vendor,;t t
7353
s,@host_os@,$host_os,;t t
7354
s,@target@,$target,;t t
7355
s,@target_cpu@,$target_cpu,;t t
7356
s,@target_vendor@,$target_vendor,;t t
7357
s,@target_os@,$target_os,;t t
7358
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7359
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7360
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7361
s,@PACKAGE@,$PACKAGE,;t t
7362
s,@VERSION@,$VERSION,;t t
7363
s,@ACLOCAL@,$ACLOCAL,;t t
7364
s,@AUTOCONF@,$AUTOCONF,;t t
7365
s,@AUTOMAKE@,$AUTOMAKE,;t t
7366
s,@AUTOHEADER@,$AUTOHEADER,;t t
7367
s,@MAKEINFO@,$MAKEINFO,;t t
7368
s,@SET_MAKE@,$SET_MAKE,;t t
7370
s,@CFLAGS@,$CFLAGS,;t t
7371
s,@LDFLAGS@,$LDFLAGS,;t t
7372
s,@CPPFLAGS@,$CPPFLAGS,;t t
7373
s,@ac_ct_CC@,$ac_ct_CC,;t t
7374
s,@EXEEXT@,$EXEEXT,;t t
7375
s,@OBJEXT@,$OBJEXT,;t t
7377
s,@EGREP@,$EGREP,;t t
7378
s,@CFLAGSIEEE@,$CFLAGSIEEE,;t t
7380
s,@LEXLIB@,$LEXLIB,;t t
7381
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
7383
s,@LDADDINTER@,$LDADDINTER,;t t
7384
s,@INCLUDESINTER@,$INCLUDESINTER,;t t
7385
s,@LIBOBJS@,$LIBOBJS,;t t
7386
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7391
cat >>$CONFIG_STATUS <<\_ACEOF
7392
# Split the substitutions into bite-sized pieces for seds with
7393
# small command number limits, like on Digital OSF/1 and HP-UX.
7395
ac_sed_frag=1 # Number of current file.
7396
ac_beg=1 # First line for current file.
7397
ac_end=$ac_max_sed_lines # Line after last line for current file.
7400
while $ac_more_lines; do
7401
if test $ac_beg -gt 1; then
7402
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7404
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7406
if test ! -s $tmp/subs.frag; then
7409
# The purpose of the label and of the branching condition is to
7410
# speed up the sed processing (if there are no `@' at all, there
7411
# is no need to browse any of the substitutions).
7412
# These are the two extra sed commands mentioned above.
7414
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7415
if test -z "$ac_sed_cmds"; then
7416
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7418
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7420
ac_sed_frag=`expr $ac_sed_frag + 1`
7422
ac_end=`expr $ac_end + $ac_max_sed_lines`
7425
if test -z "$ac_sed_cmds"; then
7428
fi # test -n "$CONFIG_FILES"
7431
cat >>$CONFIG_STATUS <<\_ACEOF
7432
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7433
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7435
- | *:- | *:-:* ) # input from stdin
7437
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7438
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7439
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7440
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7441
* ) ac_file_in=$ac_file.in ;;
7444
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7445
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7446
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7447
X"$ac_file" : 'X\(//\)[^/]' \| \
7448
X"$ac_file" : 'X\(//\)$' \| \
7449
X"$ac_file" : 'X\(/\)' \| \
7450
. : '\(.\)' 2>/dev/null ||
7452
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7453
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7454
/^X\(\/\/\)$/{ s//\1/; q; }
7455
/^X\(\/\).*/{ s//\1/; q; }
7457
{ if $as_mkdir_p; then
7462
while test ! -d "$as_dir"; do
7463
as_dirs="$as_dir $as_dirs"
7464
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7465
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7466
X"$as_dir" : 'X\(//\)[^/]' \| \
7467
X"$as_dir" : 'X\(//\)$' \| \
7468
X"$as_dir" : 'X\(/\)' \| \
7469
. : '\(.\)' 2>/dev/null ||
7471
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7472
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7473
/^X\(\/\/\)$/{ s//\1/; q; }
7474
/^X\(\/\).*/{ s//\1/; q; }
7477
test ! -n "$as_dirs" || mkdir $as_dirs
7478
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7479
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7480
{ (exit 1); exit 1; }; }; }
7484
if test "$ac_dir" != .; then
7485
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7486
# A "../" for each directory in $ac_dir_suffix.
7487
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7489
ac_dir_suffix= ac_top_builddir=
7493
.) # No --srcdir option. We are building in place.
7495
if test -z "$ac_top_builddir"; then
7498
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7500
[\\/]* | ?:[\\/]* ) # Absolute path.
7501
ac_srcdir=$srcdir$ac_dir_suffix;
7502
ac_top_srcdir=$srcdir ;;
7504
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7505
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7508
# Do not use `cd foo && pwd` to compute absolute paths, because
7509
# the directories may not exist.
7511
.) ac_abs_builddir="$ac_dir";;
7514
.) ac_abs_builddir=`pwd`;;
7515
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7516
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7519
case $ac_abs_builddir in
7520
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7522
case ${ac_top_builddir}. in
7523
.) ac_abs_top_builddir=$ac_abs_builddir;;
7524
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7525
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7528
case $ac_abs_builddir in
7529
.) ac_abs_srcdir=$ac_srcdir;;
7532
.) ac_abs_srcdir=$ac_abs_builddir;;
7533
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7534
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7537
case $ac_abs_builddir in
7538
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7540
case $ac_top_srcdir in
7541
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7542
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7543
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7549
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7550
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7553
# Let's still pretend it is `configure' which instantiates (i.e., don't
7554
# use $as_me), people would be surprised to read:
7555
# /* config.h. Generated by config.status. */
7556
if test x"$ac_file" = x-; then
7559
configure_input="$ac_file. "
7561
configure_input=$configure_input"Generated from `echo $ac_file_in |
7562
sed 's,.*/,,'` by configure."
7564
# First look for the input files in the build tree, otherwise in the
7566
ac_file_inputs=`IFS=:
7567
for f in $ac_file_in; do
7569
-) echo $tmp/stdin ;;
7571
# Absolute (can't be DOS-style, as IFS=:)
7572
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7573
echo "$as_me: error: cannot find input file: $f" >&2;}
7574
{ (exit 1); exit 1; }; }
7577
if test -f "$f"; then
7580
elif test -f "$srcdir/$f"; then
7585
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7586
echo "$as_me: error: cannot find input file: $f" >&2;}
7587
{ (exit 1); exit 1; }; }
7590
done` || { (exit 1); exit 1; }
7592
if test x"$ac_file" != x-; then
7593
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7594
echo "$as_me: creating $ac_file" >&6;}
7598
cat >>$CONFIG_STATUS <<_ACEOF
7602
cat >>$CONFIG_STATUS <<\_ACEOF
7604
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7605
s,@configure_input@,$configure_input,;t t
7606
s,@srcdir@,$ac_srcdir,;t t
7607
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7608
s,@top_srcdir@,$ac_top_srcdir,;t t
7609
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7610
s,@builddir@,$ac_builddir,;t t
7611
s,@abs_builddir@,$ac_abs_builddir,;t t
7612
s,@top_builddir@,$ac_top_builddir,;t t
7613
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7614
s,@INSTALL@,$ac_INSTALL,;t t
7615
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7617
if test x"$ac_file" != x-; then
7618
mv $tmp/out $ac_file
7626
cat >>$CONFIG_STATUS <<\_ACEOF
7629
# CONFIG_HEADER section.
7632
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7633
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7635
# ac_d sets the value in "#define NAME VALUE" lines.
7636
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7637
ac_dB='[ ].*$,\1#\2'
7640
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7641
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7642
ac_uB='$,\1#\2define\3'
7646
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7647
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7649
- | *:- | *:-:* ) # input from stdin
7651
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7652
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7653
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7654
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7655
* ) ac_file_in=$ac_file.in ;;
7658
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7659
echo "$as_me: creating $ac_file" >&6;}
7661
# First look for the input files in the build tree, otherwise in the
7663
ac_file_inputs=`IFS=:
7664
for f in $ac_file_in; do
7666
-) echo $tmp/stdin ;;
7668
# Absolute (can't be DOS-style, as IFS=:)
7669
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7670
echo "$as_me: error: cannot find input file: $f" >&2;}
7671
{ (exit 1); exit 1; }; }
7672
# Do quote $f, to prevent DOS paths from being IFS'd.
7675
if test -f "$f"; then
7678
elif test -f "$srcdir/$f"; then
7683
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7684
echo "$as_me: error: cannot find input file: $f" >&2;}
7685
{ (exit 1); exit 1; }; }
7688
done` || { (exit 1); exit 1; }
7689
# Remove the trailing spaces.
7690
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7694
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7695
# `conftest.undefs', that substitutes the proper values into
7696
# config.h.in to produce config.h. The first handles `#define'
7697
# templates, and the second `#undef' templates.
7698
# And first: Protect against being on the right side of a sed subst in
7699
# config.status. Protect against being in an unquoted here document
7701
rm -f conftest.defines conftest.undefs
7702
# Using a here document instead of a string reduces the quoting nightmare.
7703
# Putting comments in sed scripts is not portable.
7705
# `end' is used to avoid that the second main sed command (meant for
7706
# 0-ary CPP macros) applies to n-ary macro definitions.
7707
# See the Autoconf documentation for `clear'.
7708
cat >confdef2sed.sed <<\_ACEOF
7713
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7715
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7718
# If some macros were called several times there might be several times
7719
# the same #defines, which is useless. Nevertheless, we may not want to
7720
# sort them, since we want the *last* AC-DEFINE to be honored.
7721
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7722
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7723
rm -f confdef2sed.sed
7725
# This sed command replaces #undef with comments. This is necessary, for
7726
# example, in the case of _POSIX_SOURCE, which is predefined and required
7727
# on some systems where configure will not decide to define it.
7728
cat >>conftest.undefs <<\_ACEOF
7729
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7732
# Break up conftest.defines because some shells have a limit on the size
7733
# of here documents, and old seds have small limits too (100 cmds).
7734
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7735
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7736
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7737
echo ' :' >>$CONFIG_STATUS
7739
while grep . conftest.defines >/dev/null
7741
# Write a limited-size here document to $tmp/defines.sed.
7742
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7743
# Speed up: don't consider the non `#define' lines.
7744
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7745
# Work around the forget-to-reset-the-flag bug.
7746
echo 't clr' >>$CONFIG_STATUS
7747
echo ': clr' >>$CONFIG_STATUS
7748
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7750
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7754
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7755
rm -f conftest.defines
7756
mv conftest.tail conftest.defines
7758
rm -f conftest.defines
7759
echo ' fi # grep' >>$CONFIG_STATUS
7760
echo >>$CONFIG_STATUS
7762
# Break up conftest.undefs because some shells have a limit on the size
7763
# of here documents, and old seds have small limits too (100 cmds).
7764
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7766
while grep . conftest.undefs >/dev/null
7768
# Write a limited-size here document to $tmp/undefs.sed.
7769
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7770
# Speed up: don't consider the non `#undef'
7771
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7772
# Work around the forget-to-reset-the-flag bug.
7773
echo 't clr' >>$CONFIG_STATUS
7774
echo ': clr' >>$CONFIG_STATUS
7775
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7777
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7781
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7782
rm -f conftest.undefs
7783
mv conftest.tail conftest.undefs
7785
rm -f conftest.undefs
7787
cat >>$CONFIG_STATUS <<\_ACEOF
7788
# Let's still pretend it is `configure' which instantiates (i.e., don't
7789
# use $as_me), people would be surprised to read:
7790
# /* config.h. Generated by config.status. */
7791
if test x"$ac_file" = x-; then
7792
echo "/* Generated by configure. */" >$tmp/config.h
7794
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7796
cat $tmp/in >>$tmp/config.h
7798
if test x"$ac_file" != x-; then
7799
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7800
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7801
echo "$as_me: $ac_file is unchanged" >&6;}
7803
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7804
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7805
X"$ac_file" : 'X\(//\)[^/]' \| \
7806
X"$ac_file" : 'X\(//\)$' \| \
7807
X"$ac_file" : 'X\(/\)' \| \
7808
. : '\(.\)' 2>/dev/null ||
7810
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7811
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7812
/^X\(\/\/\)$/{ s//\1/; q; }
7813
/^X\(\/\).*/{ s//\1/; q; }
7815
{ if $as_mkdir_p; then
7820
while test ! -d "$as_dir"; do
7821
as_dirs="$as_dir $as_dirs"
7822
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7823
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7824
X"$as_dir" : 'X\(//\)[^/]' \| \
7825
X"$as_dir" : 'X\(//\)$' \| \
7826
X"$as_dir" : 'X\(/\)' \| \
7827
. : '\(.\)' 2>/dev/null ||
7829
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7830
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7831
/^X\(\/\/\)$/{ s//\1/; q; }
7832
/^X\(\/\).*/{ s//\1/; q; }
7835
test ! -n "$as_dirs" || mkdir $as_dirs
7836
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7837
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7838
{ (exit 1); exit 1; }; }; }
7841
mv $tmp/config.h $ac_file
7849
cat >>$CONFIG_STATUS <<\_ACEOF
7852
# CONFIG_COMMANDS section.
7854
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
7855
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
7856
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
7857
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
7858
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7859
X"$ac_dest" : 'X\(//\)[^/]' \| \
7860
X"$ac_dest" : 'X\(//\)$' \| \
7861
X"$ac_dest" : 'X\(/\)' \| \
7862
. : '\(.\)' 2>/dev/null ||
7864
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7865
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7866
/^X\(\/\/\)$/{ s//\1/; q; }
7867
/^X\(\/\).*/{ s//\1/; q; }
7869
{ if $as_mkdir_p; then
7874
while test ! -d "$as_dir"; do
7875
as_dirs="$as_dir $as_dirs"
7876
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7877
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7878
X"$as_dir" : 'X\(//\)[^/]' \| \
7879
X"$as_dir" : 'X\(//\)$' \| \
7880
X"$as_dir" : 'X\(/\)' \| \
7881
. : '\(.\)' 2>/dev/null ||
7883
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7884
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7885
/^X\(\/\/\)$/{ s//\1/; q; }
7886
/^X\(\/\).*/{ s//\1/; q; }
7889
test ! -n "$as_dirs" || mkdir $as_dirs
7890
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7891
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7892
{ (exit 1); exit 1; }; }; }
7896
if test "$ac_dir" != .; then
7897
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7898
# A "../" for each directory in $ac_dir_suffix.
7899
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7901
ac_dir_suffix= ac_top_builddir=
7905
.) # No --srcdir option. We are building in place.
7907
if test -z "$ac_top_builddir"; then
7910
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7912
[\\/]* | ?:[\\/]* ) # Absolute path.
7913
ac_srcdir=$srcdir$ac_dir_suffix;
7914
ac_top_srcdir=$srcdir ;;
7916
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7917
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7920
# Do not use `cd foo && pwd` to compute absolute paths, because
7921
# the directories may not exist.
7923
.) ac_abs_builddir="$ac_dir";;
7926
.) ac_abs_builddir=`pwd`;;
7927
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7928
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7931
case $ac_abs_builddir in
7932
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7934
case ${ac_top_builddir}. in
7935
.) ac_abs_top_builddir=$ac_abs_builddir;;
7936
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7937
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7940
case $ac_abs_builddir in
7941
.) ac_abs_srcdir=$ac_srcdir;;
7944
.) ac_abs_srcdir=$ac_abs_builddir;;
7945
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7946
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7949
case $ac_abs_builddir in
7950
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7952
case $ac_top_srcdir in
7953
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7954
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7955
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7960
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
7961
echo "$as_me: executing $ac_dest commands" >&6;}
7963
default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h ;;
7968
cat >>$CONFIG_STATUS <<\_ACEOF
7970
{ (exit 0); exit 0; }
7972
chmod +x $CONFIG_STATUS
7973
ac_clean_files=$ac_clean_files_save
7976
# configure is writing to config.log, and then calls config.status.
7977
# config.status does its own redirection, appending to config.log.
7978
# Unfortunately, on DOS this fails, as config.log is still kept open
7979
# by configure, so config.status won't be able to write to it; its
7980
# output is simply discarded. So we exec the FD to /dev/null,
7981
# effectively closing config.log, so it can be properly (re)opened and
7982
# appended to by config.status. When coming back to configure, we
7983
# need to make the FD available again.
7984
if test "$no_create" != yes; then
7986
ac_config_status_args=
7987
test "$silent" = yes &&
7988
ac_config_status_args="$ac_config_status_args --quiet"
7990
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7992
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7993
# would make configure fail if this is the last instruction.
7994
$ac_cs_success || { (exit 1); exit 1; }