2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="ctags.h"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS install_targets CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S STRIP sort_found CPP EGREP LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
836
if test -n "$ac_init_help"; then
841
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843
--enable-etags enable the installation of links for etags
844
--disable-extended-format
845
disable extension flags; use original ctags file
847
--disable-external-sort use internal sort algorithm instead of sort program
848
--enable-custom-config=FILE
849
enable custom config file for site-wide defaults
850
--enable-macro-patterns use patterns as default method to locate macros
851
instead of line numbers
852
--enable-maintainer-mode
853
use maintainer makefile
854
--enable-shell-globbing=DIR
855
does shell expand wildcards (yes|no)? yes
856
--enable-tmpdir=DIR default directory for temporary files ARG=/tmp
859
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861
--with-posix-regex use Posix regex interface, if available
862
--with-readlib include readtags library object during install
864
Some influential environment variables:
865
CC C compiler command
866
CFLAGS C compiler flags
867
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
868
nonstandard directory <lib dir>
869
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
870
headers in a nonstandard directory <include dir>
873
Use these variables to override the choices made by `configure' or to help
874
it to find libraries and programs with nonstandard names/locations.
879
if test "$ac_init_help" = "recursive"; then
880
# If there are subdirs, report their specific --help.
882
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
883
test -d $ac_dir || continue
886
if test "$ac_dir" != .; then
887
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
888
# A "../" for each directory in $ac_dir_suffix.
889
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891
ac_dir_suffix= ac_top_builddir=
895
.) # No --srcdir option. We are building in place.
897
if test -z "$ac_top_builddir"; then
900
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902
[\\/]* | ?:[\\/]* ) # Absolute path.
903
ac_srcdir=$srcdir$ac_dir_suffix;
904
ac_top_srcdir=$srcdir ;;
906
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
907
ac_top_srcdir=$ac_top_builddir$srcdir ;;
910
# Do not use `cd foo && pwd` to compute absolute paths, because
911
# the directories may not exist.
913
.) ac_abs_builddir="$ac_dir";;
916
.) ac_abs_builddir=`pwd`;;
917
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
918
*) ac_abs_builddir=`pwd`/"$ac_dir";;
921
case $ac_abs_builddir in
922
.) ac_abs_top_builddir=${ac_top_builddir}.;;
924
case ${ac_top_builddir}. in
925
.) ac_abs_top_builddir=$ac_abs_builddir;;
926
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
927
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
930
case $ac_abs_builddir in
931
.) ac_abs_srcdir=$ac_srcdir;;
934
.) ac_abs_srcdir=$ac_abs_builddir;;
935
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
936
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
939
case $ac_abs_builddir in
940
.) ac_abs_top_srcdir=$ac_top_srcdir;;
942
case $ac_top_srcdir in
943
.) ac_abs_top_srcdir=$ac_abs_builddir;;
944
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
945
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
950
# Check for guested configure; otherwise get Cygnus style configure.
951
if test -f $ac_srcdir/configure.gnu; then
953
$SHELL $ac_srcdir/configure.gnu --help=recursive
954
elif test -f $ac_srcdir/configure; then
956
$SHELL $ac_srcdir/configure --help=recursive
957
elif test -f $ac_srcdir/configure.ac ||
958
test -f $ac_srcdir/configure.in; then
962
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
968
test -n "$ac_init_help" && exit 0
969
if $ac_init_version; then
972
Copyright (C) 2003 Free Software Foundation, Inc.
973
This configure script is free software; the Free Software Foundation
974
gives unlimited permission to copy, distribute and modify it.
980
This file contains any messages produced by compilers while
981
running configure, to aid debugging if configure makes a mistake.
983
It was created by $as_me, which was
984
generated by GNU Autoconf 2.59. Invocation command line was
995
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996
uname -m = `(uname -m) 2>/dev/null || echo unknown`
997
uname -r = `(uname -r) 2>/dev/null || echo unknown`
998
uname -s = `(uname -s) 2>/dev/null || echo unknown`
999
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018
test -z "$as_dir" && as_dir=.
1019
echo "PATH: $as_dir"
1034
# Keep a trace of the command line.
1035
# Strip out --no-create and --no-recursion so they do not pile up.
1036
# Strip out --silent because we don't want to record it for future runs.
1037
# Also quote any args containing shell meta-characters.
1038
# Make two passes to allow for proper duplicate-argument suppression.
1043
ac_must_keep_next=false
1049
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051
| -silent | --silent | --silen | --sile | --sil)
1053
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060
if test $ac_must_keep_next = true; then
1061
ac_must_keep_next=false # Got value, back to normal.
1064
*=* | --config-cache | -C | -disable-* | --disable-* \
1065
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067
| -with-* | --with-* | -without-* | --without-* | --x)
1068
case "$ac_configure_args0 " in
1069
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072
-* ) ac_must_keep_next=true ;;
1075
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076
# Get rid of the leading space.
1082
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085
# When interrupted or exit'd, cleanup temporary files, and complete
1086
# config.log. We remove comments because anyway the quotes in there
1087
# would cause problems or look ugly.
1088
# WARNING: Be sure not to use single quotes in there, as some shells,
1089
# such as our DU 5.0 friend, will then `close' the trap.
1090
trap 'exit_status=$?
1091
# Save into config.log some information that might help in debugging.
1096
## ---------------- ##
1097
## Cache variables. ##
1098
## ---------------- ##
1101
# The following way of writing the cache mishandles newlines in values,
1104
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119
## ----------------- ##
1120
## Output variables. ##
1121
## ----------------- ##
1124
for ac_var in $ac_subst_vars
1126
eval ac_val=$`echo $ac_var`
1127
echo "$ac_var='"'"'$ac_val'"'"'"
1131
if test -n "$ac_subst_files"; then
1138
for ac_var in $ac_subst_files
1140
eval ac_val=$`echo $ac_var`
1141
echo "$ac_var='"'"'$ac_val'"'"'"
1146
if test -s confdefs.h; then
1153
sed "/^$/d" confdefs.h | sort
1156
test "$ac_signal" != 0 &&
1157
echo "$as_me: caught signal $ac_signal"
1158
echo "$as_me: exit $exit_status"
1160
rm -f core *.core &&
1161
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164
for ac_signal in 1 2 13 15; do
1165
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1170
rm -rf conftest* confdefs.h
1171
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174
# Predefined preprocessor variables.
1176
cat >>confdefs.h <<_ACEOF
1177
#define PACKAGE_NAME "$PACKAGE_NAME"
1181
cat >>confdefs.h <<_ACEOF
1182
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186
cat >>confdefs.h <<_ACEOF
1187
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1191
cat >>confdefs.h <<_ACEOF
1192
#define PACKAGE_STRING "$PACKAGE_STRING"
1196
cat >>confdefs.h <<_ACEOF
1197
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201
# Let the site file select an alternate cache file if it wants to.
1202
# Prefer explicitly selected file to automatically selected ones.
1203
if test -z "$CONFIG_SITE"; then
1204
if test "x$prefix" != xNONE; then
1205
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210
for ac_site_file in $CONFIG_SITE; do
1211
if test -r "$ac_site_file"; then
1212
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213
echo "$as_me: loading site script $ac_site_file" >&6;}
1214
sed 's/^/| /' "$ac_site_file" >&5
1219
if test -r "$cache_file"; then
1220
# Some versions of bash will fail to source /dev/null (special
1221
# files actually), so we avoid doing that.
1222
if test -f "$cache_file"; then
1223
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224
echo "$as_me: loading cache $cache_file" >&6;}
1226
[\\/]* | ?:[\\/]* ) . $cache_file;;
1227
*) . ./$cache_file;;
1231
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232
echo "$as_me: creating cache $cache_file" >&6;}
1236
# Check that the precious variables saved in the cache have kept the same
1238
ac_cache_corrupted=false
1239
for ac_var in `(set) 2>&1 |
1240
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242
eval ac_new_set=\$ac_env_${ac_var}_set
1243
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244
eval ac_new_val="\$ac_env_${ac_var}_value"
1245
case $ac_old_set,$ac_new_set in
1247
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249
ac_cache_corrupted=: ;;
1251
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253
ac_cache_corrupted=: ;;
1256
if test "x$ac_old_val" != "x$ac_new_val"; then
1257
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1260
echo "$as_me: former value: $ac_old_val" >&2;}
1261
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1262
echo "$as_me: current value: $ac_new_val" >&2;}
1263
ac_cache_corrupted=:
1266
# Pass precious variables to config.status.
1267
if test "$ac_new_set" = set; then
1269
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271
*) ac_arg=$ac_var=$ac_new_val ;;
1273
case " $ac_configure_args " in
1274
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1275
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279
if $ac_cache_corrupted; then
1280
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284
{ (exit 1); exit 1; }; }
1288
ac_cpp='$CPP $CPPFLAGS'
1289
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311
ac_config_headers="$ac_config_headers config.h"
1314
echo 'Exuberant Ctags, version 5.6'
1315
uname -mrsv 2>/dev/null
1321
# Check whether --with-posix-regex or --without-posix-regex was given.
1322
if test "${with_posix_regex+set}" = set; then
1323
withval="$with_posix_regex"
1328
# Check whether --with-readlib or --without-readlib was given.
1329
if test "${with_readlib+set}" = set; then
1330
withval="$with_readlib"
1335
# Check whether --enable-etags or --disable-etags was given.
1336
if test "${enable_etags+set}" = set; then
1337
enableval="$enable_etags"
1341
# Check whether --enable-extended-format or --disable-extended-format was given.
1342
if test "${enable_extended_format+set}" = set; then
1343
enableval="$enable_extended_format"
1344
cat >>confdefs.h <<\_ACEOF
1345
#define DEFAULT_FILE_FORMAT 1
1349
cat >>confdefs.h <<\_ACEOF
1350
#define DEFAULT_FILE_FORMAT 2
1355
# Check whether --enable-external-sort or --disable-external-sort was given.
1356
if test "${enable_external_sort+set}" = set; then
1357
enableval="$enable_external_sort"
1361
# Check whether --enable-custom-config or --disable-custom-config was given.
1362
if test "${enable_custom_config+set}" = set; then
1363
enableval="$enable_custom_config"
1367
# Check whether --enable-macro-patterns or --disable-macro-patterns was given.
1368
if test "${enable_macro_patterns+set}" = set; then
1369
enableval="$enable_macro_patterns"
1373
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1374
if test "${enable_maintainer_mode+set}" = set; then
1375
enableval="$enable_maintainer_mode"
1379
# Check whether --enable-shell-globbing or --disable-shell-globbing was given.
1380
if test "${enable_shell_globbing+set}" = set; then
1381
enableval="$enable_shell_globbing"
1385
# Check whether --enable-tmpdir or --disable-tmpdir was given.
1386
if test "${enable_tmpdir+set}" = set; then
1387
enableval="$enable_tmpdir"
1388
tmpdir_specified=yes
1393
if test "$enable_maintainer_mode" = yes ; then
1394
echo "$as_me:$LINENO: result: enabling maintainer mode" >&5
1395
echo "${ECHO_T}enabling maintainer mode" >&6
1398
install_targets="install-ctags"
1399
echo "$as_me:$LINENO: checking whether to install link to etags" >&5
1400
echo $ECHO_N "checking whether to install link to etags... $ECHO_C" >&6
1401
if test yes = "$enable_etags"; then
1402
echo "$as_me:$LINENO: result: yes" >&5
1403
echo "${ECHO_T}yes" >&6
1404
install_targets="$install_targets install-etags"
1406
echo "$as_me:$LINENO: result: no" >&5
1407
echo "${ECHO_T}no" >&6
1409
echo "$as_me:$LINENO: checking whether to install readtags object file" >&5
1410
echo $ECHO_N "checking whether to install readtags object file... $ECHO_C" >&6
1411
if test yes = "$with_readlib"; then
1412
echo "$as_me:$LINENO: result: yes" >&5
1413
echo "${ECHO_T}yes" >&6
1414
install_targets="$install_targets install-lib"
1416
echo "$as_me:$LINENO: result: no" >&5
1417
echo "${ECHO_T}no" >&6
1421
if test "$enable_custom_config" = no -o "$enable_custom_config" = yes ; then
1422
echo "$as_me:$LINENO: result: no name supplied for custom configuration file" >&5
1423
echo "${ECHO_T}no name supplied for custom configuration file" >&6
1424
elif test -n "$enable_custom_config" ; then
1425
cat >>confdefs.h <<_ACEOF
1426
#define CUSTOM_CONFIGURATION_FILE "$enable_custom_config"
1429
echo "$as_me:$LINENO: result: $enable_custom_config will be used as custom configuration file" >&5
1430
echo "${ECHO_T}$enable_custom_config will be used as custom configuration file" >&6
1433
if test "$enable_macro_patterns" = yes ; then
1434
cat >>confdefs.h <<\_ACEOF
1435
#define MACROS_USE_PATTERNS 1
1438
echo "$as_me:$LINENO: result: tag file will use patterns for macros by default" >&5
1439
echo "${ECHO_T}tag file will use patterns for macros by default" >&6
1444
ac_cpp='$CPP $CPPFLAGS'
1445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1448
if test -n "$ac_tool_prefix"; then
1449
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1450
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1451
echo "$as_me:$LINENO: checking for $ac_word" >&5
1452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1453
if test "${ac_cv_prog_CC+set}" = set; then
1454
echo $ECHO_N "(cached) $ECHO_C" >&6
1456
if test -n "$CC"; then
1457
ac_cv_prog_CC="$CC" # Let the user override the test.
1459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463
test -z "$as_dir" && as_dir=.
1464
for ac_exec_ext in '' $ac_executable_extensions; do
1465
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1466
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1467
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1476
if test -n "$CC"; then
1477
echo "$as_me:$LINENO: result: $CC" >&5
1478
echo "${ECHO_T}$CC" >&6
1480
echo "$as_me:$LINENO: result: no" >&5
1481
echo "${ECHO_T}no" >&6
1485
if test -z "$ac_cv_prog_CC"; then
1487
# Extract the first word of "gcc", so it can be a program name with args.
1488
set dummy gcc; ac_word=$2
1489
echo "$as_me:$LINENO: checking for $ac_word" >&5
1490
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1492
echo $ECHO_N "(cached) $ECHO_C" >&6
1494
if test -n "$ac_ct_CC"; then
1495
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1497
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501
test -z "$as_dir" && as_dir=.
1502
for ac_exec_ext in '' $ac_executable_extensions; do
1503
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504
ac_cv_prog_ac_ct_CC="gcc"
1505
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1514
if test -n "$ac_ct_CC"; then
1515
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1516
echo "${ECHO_T}$ac_ct_CC" >&6
1518
echo "$as_me:$LINENO: result: no" >&5
1519
echo "${ECHO_T}no" >&6
1527
if test -z "$CC"; then
1528
if test -n "$ac_tool_prefix"; then
1529
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1530
set dummy ${ac_tool_prefix}cc; ac_word=$2
1531
echo "$as_me:$LINENO: checking for $ac_word" >&5
1532
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533
if test "${ac_cv_prog_CC+set}" = set; then
1534
echo $ECHO_N "(cached) $ECHO_C" >&6
1536
if test -n "$CC"; then
1537
ac_cv_prog_CC="$CC" # Let the user override the test.
1539
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543
test -z "$as_dir" && as_dir=.
1544
for ac_exec_ext in '' $ac_executable_extensions; do
1545
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546
ac_cv_prog_CC="${ac_tool_prefix}cc"
1547
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556
if test -n "$CC"; then
1557
echo "$as_me:$LINENO: result: $CC" >&5
1558
echo "${ECHO_T}$CC" >&6
1560
echo "$as_me:$LINENO: result: no" >&5
1561
echo "${ECHO_T}no" >&6
1565
if test -z "$ac_cv_prog_CC"; then
1567
# Extract the first word of "cc", so it can be a program name with args.
1568
set dummy cc; ac_word=$2
1569
echo "$as_me:$LINENO: checking for $ac_word" >&5
1570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572
echo $ECHO_N "(cached) $ECHO_C" >&6
1574
if test -n "$ac_ct_CC"; then
1575
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581
test -z "$as_dir" && as_dir=.
1582
for ac_exec_ext in '' $ac_executable_extensions; do
1583
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584
ac_cv_prog_ac_ct_CC="cc"
1585
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594
if test -n "$ac_ct_CC"; then
1595
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596
echo "${ECHO_T}$ac_ct_CC" >&6
1598
echo "$as_me:$LINENO: result: no" >&5
1599
echo "${ECHO_T}no" >&6
1608
if test -z "$CC"; then
1609
# Extract the first word of "cc", so it can be a program name with args.
1610
set dummy cc; ac_word=$2
1611
echo "$as_me:$LINENO: checking for $ac_word" >&5
1612
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613
if test "${ac_cv_prog_CC+set}" = set; then
1614
echo $ECHO_N "(cached) $ECHO_C" >&6
1616
if test -n "$CC"; then
1617
ac_cv_prog_CC="$CC" # Let the user override the test.
1620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624
test -z "$as_dir" && as_dir=.
1625
for ac_exec_ext in '' $ac_executable_extensions; do
1626
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1627
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1628
ac_prog_rejected=yes
1632
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638
if test $ac_prog_rejected = yes; then
1639
# We found a bogon in the path, so make sure we never use it.
1640
set dummy $ac_cv_prog_CC
1642
if test $# != 0; then
1643
# We chose a different compiler from the bogus one.
1644
# However, it has the same basename, so the bogon will be chosen
1645
# first if we set CC to just the basename; use the full file name.
1647
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1653
if test -n "$CC"; then
1654
echo "$as_me:$LINENO: result: $CC" >&5
1655
echo "${ECHO_T}$CC" >&6
1657
echo "$as_me:$LINENO: result: no" >&5
1658
echo "${ECHO_T}no" >&6
1662
if test -z "$CC"; then
1663
if test -n "$ac_tool_prefix"; then
1666
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1667
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1668
echo "$as_me:$LINENO: checking for $ac_word" >&5
1669
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670
if test "${ac_cv_prog_CC+set}" = set; then
1671
echo $ECHO_N "(cached) $ECHO_C" >&6
1673
if test -n "$CC"; then
1674
ac_cv_prog_CC="$CC" # Let the user override the test.
1676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680
test -z "$as_dir" && as_dir=.
1681
for ac_exec_ext in '' $ac_executable_extensions; do
1682
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1684
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1693
if test -n "$CC"; then
1694
echo "$as_me:$LINENO: result: $CC" >&5
1695
echo "${ECHO_T}$CC" >&6
1697
echo "$as_me:$LINENO: result: no" >&5
1698
echo "${ECHO_T}no" >&6
1701
test -n "$CC" && break
1704
if test -z "$CC"; then
1708
# Extract the first word of "$ac_prog", so it can be a program name with args.
1709
set dummy $ac_prog; ac_word=$2
1710
echo "$as_me:$LINENO: checking for $ac_word" >&5
1711
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1713
echo $ECHO_N "(cached) $ECHO_C" >&6
1715
if test -n "$ac_ct_CC"; then
1716
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722
test -z "$as_dir" && as_dir=.
1723
for ac_exec_ext in '' $ac_executable_extensions; do
1724
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725
ac_cv_prog_ac_ct_CC="$ac_prog"
1726
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1734
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1735
if test -n "$ac_ct_CC"; then
1736
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1737
echo "${ECHO_T}$ac_ct_CC" >&6
1739
echo "$as_me:$LINENO: result: no" >&5
1740
echo "${ECHO_T}no" >&6
1743
test -n "$ac_ct_CC" && break
1752
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1753
See \`config.log' for more details." >&5
1754
echo "$as_me: error: no acceptable C compiler found in \$PATH
1755
See \`config.log' for more details." >&2;}
1756
{ (exit 1); exit 1; }; }
1758
# Provide some information about the compiler.
1759
echo "$as_me:$LINENO:" \
1760
"checking for C compiler version" >&5
1761
ac_compiler=`set X $ac_compile; echo $2`
1762
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1763
(eval $ac_compiler --version </dev/null >&5) 2>&5
1765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766
(exit $ac_status); }
1767
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1768
(eval $ac_compiler -v </dev/null >&5) 2>&5
1770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1771
(exit $ac_status); }
1772
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1773
(eval $ac_compiler -V </dev/null >&5) 2>&5
1775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776
(exit $ac_status); }
1778
cat >conftest.$ac_ext <<_ACEOF
1781
cat confdefs.h >>conftest.$ac_ext
1782
cat >>conftest.$ac_ext <<_ACEOF
1783
/* end confdefs.h. */
1793
ac_clean_files_save=$ac_clean_files
1794
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1795
# Try to create an executable without -o first, disregard a.out.
1796
# It will help us diagnose broken compilers, and finding out an intuition
1798
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1799
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1800
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1801
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1802
(eval $ac_link_default) 2>&5
1804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805
(exit $ac_status); }; then
1806
# Find the output, starting from the most likely. This scheme is
1807
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1810
# Be careful to initialize this variable, since it used to be cached.
1811
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1813
# b.out is created by i960 compilers.
1814
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1816
test -f "$ac_file" || continue
1818
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1821
# This is the source file.
1824
# We found the default executable, but exeext='' is most
1828
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1829
# FIXME: I believe we export ac_cv_exeext for Libtool,
1830
# but it would be cool to find out if it's true. Does anybody
1831
# maintain Libtool? --akim.
1839
echo "$as_me: failed program was:" >&5
1840
sed 's/^/| /' conftest.$ac_ext >&5
1842
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1843
See \`config.log' for more details." >&5
1844
echo "$as_me: error: C compiler cannot create executables
1845
See \`config.log' for more details." >&2;}
1846
{ (exit 77); exit 77; }; }
1849
ac_exeext=$ac_cv_exeext
1850
echo "$as_me:$LINENO: result: $ac_file" >&5
1851
echo "${ECHO_T}$ac_file" >&6
1853
# Check the compiler produces executables we can run. If not, either
1854
# the compiler is broken, or we cross compile.
1855
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1856
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1857
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1858
# If not cross compiling, check that we can run a simple program.
1859
if test "$cross_compiling" != yes; then
1860
if { ac_try='./$ac_file'
1861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865
(exit $ac_status); }; }; then
1868
if test "$cross_compiling" = maybe; then
1871
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1872
If you meant to cross compile, use \`--host'.
1873
See \`config.log' for more details." >&5
1874
echo "$as_me: error: cannot run C compiled programs.
1875
If you meant to cross compile, use \`--host'.
1876
See \`config.log' for more details." >&2;}
1877
{ (exit 1); exit 1; }; }
1881
echo "$as_me:$LINENO: result: yes" >&5
1882
echo "${ECHO_T}yes" >&6
1884
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1885
ac_clean_files=$ac_clean_files_save
1886
# Check the compiler produces executables we can run. If not, either
1887
# the compiler is broken, or we cross compile.
1888
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1889
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1890
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1891
echo "${ECHO_T}$cross_compiling" >&6
1893
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1894
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1895
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1896
(eval $ac_link) 2>&5
1898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1899
(exit $ac_status); }; then
1900
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1901
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1902
# work properly (i.e., refer to `conftest.exe'), while it won't with
1904
for ac_file in conftest.exe conftest conftest.*; do
1905
test -f "$ac_file" || continue
1907
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1908
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1915
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1916
See \`config.log' for more details." >&5
1917
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1918
See \`config.log' for more details." >&2;}
1919
{ (exit 1); exit 1; }; }
1922
rm -f conftest$ac_cv_exeext
1923
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1924
echo "${ECHO_T}$ac_cv_exeext" >&6
1926
rm -f conftest.$ac_ext
1927
EXEEXT=$ac_cv_exeext
1929
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1930
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1931
if test "${ac_cv_objext+set}" = set; then
1932
echo $ECHO_N "(cached) $ECHO_C" >&6
1934
cat >conftest.$ac_ext <<_ACEOF
1937
cat confdefs.h >>conftest.$ac_ext
1938
cat >>conftest.$ac_ext <<_ACEOF
1939
/* end confdefs.h. */
1949
rm -f conftest.o conftest.obj
1950
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1951
(eval $ac_compile) 2>&5
1953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954
(exit $ac_status); }; then
1955
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1957
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1958
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1963
echo "$as_me: failed program was:" >&5
1964
sed 's/^/| /' conftest.$ac_ext >&5
1966
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1967
See \`config.log' for more details." >&5
1968
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1969
See \`config.log' for more details." >&2;}
1970
{ (exit 1); exit 1; }; }
1973
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1975
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1976
echo "${ECHO_T}$ac_cv_objext" >&6
1977
OBJEXT=$ac_cv_objext
1979
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1980
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1981
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1982
echo $ECHO_N "(cached) $ECHO_C" >&6
1984
cat >conftest.$ac_ext <<_ACEOF
1987
cat confdefs.h >>conftest.$ac_ext
1988
cat >>conftest.$ac_ext <<_ACEOF
1989
/* end confdefs.h. */
2002
rm -f conftest.$ac_objext
2003
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2004
(eval $ac_compile) 2>conftest.er1
2006
grep -v '^ *+' conftest.er1 >conftest.err
2008
cat conftest.err >&5
2009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010
(exit $ac_status); } &&
2011
{ ac_try='test -z "$ac_c_werror_flag"
2012
|| test ! -s conftest.err'
2013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017
(exit $ac_status); }; } &&
2018
{ ac_try='test -s conftest.$ac_objext'
2019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023
(exit $ac_status); }; }; then
2026
echo "$as_me: failed program was:" >&5
2027
sed 's/^/| /' conftest.$ac_ext >&5
2031
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2032
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2035
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2036
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2037
GCC=`test $ac_compiler_gnu = yes && echo yes`
2038
ac_test_CFLAGS=${CFLAGS+set}
2039
ac_save_CFLAGS=$CFLAGS
2041
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2042
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2043
if test "${ac_cv_prog_cc_g+set}" = set; then
2044
echo $ECHO_N "(cached) $ECHO_C" >&6
2046
cat >conftest.$ac_ext <<_ACEOF
2049
cat confdefs.h >>conftest.$ac_ext
2050
cat >>conftest.$ac_ext <<_ACEOF
2051
/* end confdefs.h. */
2061
rm -f conftest.$ac_objext
2062
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2063
(eval $ac_compile) 2>conftest.er1
2065
grep -v '^ *+' conftest.er1 >conftest.err
2067
cat conftest.err >&5
2068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069
(exit $ac_status); } &&
2070
{ ac_try='test -z "$ac_c_werror_flag"
2071
|| test ! -s conftest.err'
2072
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076
(exit $ac_status); }; } &&
2077
{ ac_try='test -s conftest.$ac_objext'
2078
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082
(exit $ac_status); }; }; then
2085
echo "$as_me: failed program was:" >&5
2086
sed 's/^/| /' conftest.$ac_ext >&5
2090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2092
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2093
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2094
if test "$ac_test_CFLAGS" = set; then
2095
CFLAGS=$ac_save_CFLAGS
2096
elif test $ac_cv_prog_cc_g = yes; then
2097
if test "$GCC" = yes; then
2103
if test "$GCC" = yes; then
2109
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2110
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2111
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2112
echo $ECHO_N "(cached) $ECHO_C" >&6
2114
ac_cv_prog_cc_stdc=no
2116
cat >conftest.$ac_ext <<_ACEOF
2119
cat confdefs.h >>conftest.$ac_ext
2120
cat >>conftest.$ac_ext <<_ACEOF
2121
/* end confdefs.h. */
2124
#include <sys/types.h>
2125
#include <sys/stat.h>
2126
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2127
struct buf { int x; };
2128
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2129
static char *e (p, i)
2135
static char *f (char * (*g) (char **, int), char **p, ...)
2140
s = g (p, va_arg (v,int));
2145
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2146
function prototypes and stuff, but not '\xHH' hex character constants.
2147
These don't provoke an error unfortunately, instead are silently treated
2148
as 'x'. The following induces an error, until -std1 is added to get
2149
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2150
array size at least. It's necessary to write '\x00'==0 to get something
2151
that's true only with -std1. */
2152
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2154
int test (int i, double x);
2155
struct s1 {int (*f) (int a);};
2156
struct s2 {int (*f) (double a);};
2157
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2163
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2168
# Don't try gcc -ansi; that turns off useful extensions and
2169
# breaks some systems' header files.
2170
# AIX -qlanglvl=ansi
2171
# Ultrix and OSF/1 -std1
2172
# HP-UX 10.20 and later -Ae
2173
# HP-UX older versions -Aa -D_HPUX_SOURCE
2174
# SVR4 -Xc -D__EXTENSIONS__
2175
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2177
CC="$ac_save_CC $ac_arg"
2178
rm -f conftest.$ac_objext
2179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2180
(eval $ac_compile) 2>conftest.er1
2182
grep -v '^ *+' conftest.er1 >conftest.err
2184
cat conftest.err >&5
2185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2186
(exit $ac_status); } &&
2187
{ ac_try='test -z "$ac_c_werror_flag"
2188
|| test ! -s conftest.err'
2189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193
(exit $ac_status); }; } &&
2194
{ ac_try='test -s conftest.$ac_objext'
2195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
(exit $ac_status); }; }; then
2200
ac_cv_prog_cc_stdc=$ac_arg
2203
echo "$as_me: failed program was:" >&5
2204
sed 's/^/| /' conftest.$ac_ext >&5
2207
rm -f conftest.err conftest.$ac_objext
2209
rm -f conftest.$ac_ext conftest.$ac_objext
2214
case "x$ac_cv_prog_cc_stdc" in
2216
echo "$as_me:$LINENO: result: none needed" >&5
2217
echo "${ECHO_T}none needed" >&6 ;;
2219
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2220
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2221
CC="$CC $ac_cv_prog_cc_stdc" ;;
2224
# Some people use a C++ compiler to compile C. Since we use `exit',
2225
# in C++ we need to declare it. In case someone uses the same compiler
2226
# for both compiling C and C++ we need to have the C++ compiler decide
2227
# the declaration of exit, since it's the most demanding environment.
2228
cat >conftest.$ac_ext <<_ACEOF
2233
rm -f conftest.$ac_objext
2234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235
(eval $ac_compile) 2>conftest.er1
2237
grep -v '^ *+' conftest.er1 >conftest.err
2239
cat conftest.err >&5
2240
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241
(exit $ac_status); } &&
2242
{ ac_try='test -z "$ac_c_werror_flag"
2243
|| test ! -s conftest.err'
2244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248
(exit $ac_status); }; } &&
2249
{ ac_try='test -s conftest.$ac_objext'
2250
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
(exit $ac_status); }; }; then
2255
for ac_declaration in \
2257
'extern "C" void std::exit (int) throw (); using std::exit;' \
2258
'extern "C" void std::exit (int); using std::exit;' \
2259
'extern "C" void exit (int) throw ();' \
2260
'extern "C" void exit (int);' \
2263
cat >conftest.$ac_ext <<_ACEOF
2266
cat confdefs.h >>conftest.$ac_ext
2267
cat >>conftest.$ac_ext <<_ACEOF
2268
/* end confdefs.h. */
2279
rm -f conftest.$ac_objext
2280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281
(eval $ac_compile) 2>conftest.er1
2283
grep -v '^ *+' conftest.er1 >conftest.err
2285
cat conftest.err >&5
2286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287
(exit $ac_status); } &&
2288
{ ac_try='test -z "$ac_c_werror_flag"
2289
|| test ! -s conftest.err'
2290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294
(exit $ac_status); }; } &&
2295
{ ac_try='test -s conftest.$ac_objext'
2296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300
(exit $ac_status); }; }; then
2303
echo "$as_me: failed program was:" >&5
2304
sed 's/^/| /' conftest.$ac_ext >&5
2308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2309
cat >conftest.$ac_ext <<_ACEOF
2312
cat confdefs.h >>conftest.$ac_ext
2313
cat >>conftest.$ac_ext <<_ACEOF
2314
/* end confdefs.h. */
2324
rm -f conftest.$ac_objext
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326
(eval $ac_compile) 2>conftest.er1
2328
grep -v '^ *+' conftest.er1 >conftest.err
2330
cat conftest.err >&5
2331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332
(exit $ac_status); } &&
2333
{ ac_try='test -z "$ac_c_werror_flag"
2334
|| test ! -s conftest.err'
2335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339
(exit $ac_status); }; } &&
2340
{ ac_try='test -s conftest.$ac_objext'
2341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345
(exit $ac_status); }; }; then
2348
echo "$as_me: failed program was:" >&5
2349
sed 's/^/| /' conftest.$ac_ext >&5
2352
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2355
if test -n "$ac_declaration"; then
2356
echo '#ifdef __cplusplus' >>confdefs.h
2357
echo $ac_declaration >>confdefs.h
2358
echo '#endif' >>confdefs.h
2362
echo "$as_me: failed program was:" >&5
2363
sed 's/^/| /' conftest.$ac_ext >&5
2366
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2368
ac_cpp='$CPP $CPPFLAGS'
2369
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2376
echo "$as_me:$LINENO: checking \"HP-UX native compiler\"" >&5
2377
echo $ECHO_N "checking \"HP-UX native compiler\"... $ECHO_C" >&6
2378
if test "$CC" = "cc"; then
2379
echo "$as_me:$LINENO: result: yes; adding compiler options for ANSI support" >&5
2380
echo "${ECHO_T}yes; adding compiler options for ANSI support" >&6
2381
CFLAGS="$CFLAGS -Aa -D_HPUX_SOURCE"
2383
echo "$as_me:$LINENO: result: no" >&5
2384
echo "${ECHO_T}no" >&6
2388
if uname -r | grep '5\.' >/dev/null 2>&1; then
2389
echo "$as_me:$LINENO: checking \"Solaris native compiler\"" >&5
2390
echo $ECHO_N "checking \"Solaris native compiler\"... $ECHO_C" >&6
2391
if test "$CC" = "cc" -a "`which cc`" = "/usr/ucb/cc"; then
2392
echo "$as_me:$LINENO: result: yes; adding compiler option for ANSI support" >&5
2393
echo "${ECHO_T}yes; adding compiler option for ANSI support" >&6
2396
echo "$as_me:$LINENO: result: no" >&5
2397
echo "${ECHO_T}no" >&6
2403
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2404
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2406
if test "$LN_S" = "ln -s"; then
2407
echo "$as_me:$LINENO: result: yes" >&5
2408
echo "${ECHO_T}yes" >&6
2410
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2411
echo "${ECHO_T}no, using $LN_S" >&6
2414
# Extract the first word of "strip", so it can be a program name with args.
2415
set dummy strip; ac_word=$2
2416
echo "$as_me:$LINENO: checking for $ac_word" >&5
2417
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418
if test "${ac_cv_prog_STRIP+set}" = set; then
2419
echo $ECHO_N "(cached) $ECHO_C" >&6
2421
if test -n "$STRIP"; then
2422
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428
test -z "$as_dir" && as_dir=.
2429
for ac_exec_ext in '' $ac_executable_extensions; do
2430
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431
ac_cv_prog_STRIP="strip"
2432
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2441
STRIP=$ac_cv_prog_STRIP
2442
if test -n "$STRIP"; then
2443
echo "$as_me:$LINENO: result: $STRIP" >&5
2444
echo "${ECHO_T}$STRIP" >&6
2446
echo "$as_me:$LINENO: result: no" >&5
2447
echo "${ECHO_T}no" >&6
2453
echo "$as_me:$LINENO: checking directory to use for temporary files" >&5
2454
echo $ECHO_N "checking directory to use for temporary files... $ECHO_C" >&6
2455
if test -n "$enable_tmpdir"; then
2456
tmpdir="$enable_tmpdir"
2457
elif test -n "$TMPDIR"; then
2459
elif test -n "$TMPDIR"; then
2461
elif test -n "$TMP"; then
2463
elif test -n "$TEMP"; then
2465
elif test -d "c:/"; then
2470
if test -d $tmpdir ; then
2471
echo "$as_me:$LINENO: result: $tmpdir" >&5
2472
echo "${ECHO_T}$tmpdir" >&6
2473
cat >>confdefs.h <<_ACEOF
2474
#define TMPDIR "$tmpdir"
2478
{ { echo "$as_me:$LINENO: error: $tmpdir does not exist" >&5
2479
echo "$as_me: error: $tmpdir does not exist" >&2;}
2480
{ (exit 1); exit 1; }; }
2483
echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
2484
echo $ECHO_N "checking whether #! works in shell scripts... $ECHO_C" >&6
2485
if test "${ac_cv_sys_interpreter+set}" = set; then
2486
echo $ECHO_N "(cached) $ECHO_C" >&6
2492
(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null)
2493
if test $? -ne 69; then
2494
ac_cv_sys_interpreter=yes
2496
ac_cv_sys_interpreter=no
2500
echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
2501
echo "${ECHO_T}$ac_cv_sys_interpreter" >&6
2502
interpval=$ac_cv_sys_interpreter
2504
if test yes = "$interpval"; then
2505
cat >>confdefs.h <<\_ACEOF
2506
#define SYS_INTERPRETER 1
2511
echo "$as_me:$LINENO: checking \"for case-insensitive filenames\"" >&5
2512
echo $ECHO_N "checking \"for case-insensitive filenames\"... $ECHO_C" >&6
2514
if test -f CONFTEST.CIF; then
2515
echo "$as_me:$LINENO: result: yes" >&5
2516
echo "${ECHO_T}yes" >&6
2517
cat >>confdefs.h <<\_ACEOF
2518
#define CASE_INSENSITIVE_FILENAMES 1
2522
echo "$as_me:$LINENO: result: no" >&5
2523
echo "${ECHO_T}no" >&6
2527
echo "$as_me:$LINENO: checking selected sort method" >&5
2528
echo $ECHO_N "checking selected sort method... $ECHO_C" >&6
2529
if test no = "$enable_external_sort"; then
2530
echo "$as_me:$LINENO: result: simple internal algorithm" >&5
2531
echo "${ECHO_T}simple internal algorithm" >&6
2533
echo "$as_me:$LINENO: result: external sort utility" >&5
2534
echo "${ECHO_T}external sort utility" >&6
2535
enable_external_sort=no
2536
# Extract the first word of "sort", so it can be a program name with args.
2537
set dummy sort; ac_word=$2
2538
echo "$as_me:$LINENO: checking for $ac_word" >&5
2539
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2540
if test "${ac_cv_prog_sort_found+set}" = set; then
2541
echo $ECHO_N "(cached) $ECHO_C" >&6
2543
if test -n "$sort_found"; then
2544
ac_cv_prog_sort_found="$sort_found" # Let the user override the test.
2546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2550
test -z "$as_dir" && as_dir=.
2551
for ac_exec_ext in '' $ac_executable_extensions; do
2552
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2553
ac_cv_prog_sort_found="yes"
2554
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560
test -z "$ac_cv_prog_sort_found" && ac_cv_prog_sort_found="no"
2563
sort_found=$ac_cv_prog_sort_found
2564
if test -n "$sort_found"; then
2565
echo "$as_me:$LINENO: result: $sort_found" >&5
2566
echo "${ECHO_T}$sort_found" >&6
2568
echo "$as_me:$LINENO: result: no" >&5
2569
echo "${ECHO_T}no" >&6
2572
if test "$sort_found" = yes ; then
2573
echo "$as_me:$LINENO: checking if sort accepts our command line" >&5
2574
echo $ECHO_N "checking if sort accepts our command line... $ECHO_C" >&6
2575
touch ${tmpdir}/sort.test
2576
sort -u -f -o ${tmpdir}/sort.test ${tmpdir}/sort.test 1>/dev/null 2>&1
2577
if test $? -ne 0 ; then
2578
echo "$as_me:$LINENO: result: no" >&5
2579
echo "${ECHO_T}no" >&6
2581
echo "$as_me:$LINENO: result: yes" >&5
2582
echo "${ECHO_T}yes" >&6
2583
cat >>confdefs.h <<\_ACEOF
2584
#define EXTERNAL_SORT 1
2587
enable_external_sort=yes
2589
rm -f ${tmpdir}/sort.test
2592
if test "$enable_external_sort" != yes ; then
2593
echo "$as_me:$LINENO: result: using internal sort algorithm as fallback" >&5
2594
echo "${ECHO_T}using internal sort algorithm as fallback" >&6
2601
ac_cpp='$CPP $CPPFLAGS'
2602
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2606
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2607
# On Suns, sometimes $CPP names a directory.
2608
if test -n "$CPP" && test -d "$CPP"; then
2611
if test -z "$CPP"; then
2612
if test "${ac_cv_prog_CPP+set}" = set; then
2613
echo $ECHO_N "(cached) $ECHO_C" >&6
2615
# Double quotes because CPP needs to be expanded
2616
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2619
for ac_c_preproc_warn_flag in '' yes
2621
# Use a header file that comes with gcc, so configuring glibc
2622
# with a fresh cross-compiler works.
2623
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2624
# <limits.h> exists even on freestanding compilers.
2625
# On the NeXT, cc -E runs the code through the compiler's parser,
2626
# not just through cpp. "Syntax error" is here to catch this case.
2627
cat >conftest.$ac_ext <<_ACEOF
2630
cat confdefs.h >>conftest.$ac_ext
2631
cat >>conftest.$ac_ext <<_ACEOF
2632
/* end confdefs.h. */
2634
# include <limits.h>
2636
# include <assert.h>
2640
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2641
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2643
grep -v '^ *+' conftest.er1 >conftest.err
2645
cat conftest.err >&5
2646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647
(exit $ac_status); } >/dev/null; then
2648
if test -s conftest.err; then
2649
ac_cpp_err=$ac_c_preproc_warn_flag
2650
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2657
if test -z "$ac_cpp_err"; then
2660
echo "$as_me: failed program was:" >&5
2661
sed 's/^/| /' conftest.$ac_ext >&5
2663
# Broken: fails on valid input.
2666
rm -f conftest.err conftest.$ac_ext
2668
# OK, works on sane cases. Now check whether non-existent headers
2669
# can be detected and how.
2670
cat >conftest.$ac_ext <<_ACEOF
2673
cat confdefs.h >>conftest.$ac_ext
2674
cat >>conftest.$ac_ext <<_ACEOF
2675
/* end confdefs.h. */
2676
#include <ac_nonexistent.h>
2678
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2679
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2681
grep -v '^ *+' conftest.er1 >conftest.err
2683
cat conftest.err >&5
2684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685
(exit $ac_status); } >/dev/null; then
2686
if test -s conftest.err; then
2687
ac_cpp_err=$ac_c_preproc_warn_flag
2688
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2695
if test -z "$ac_cpp_err"; then
2696
# Broken: success on invalid input.
2699
echo "$as_me: failed program was:" >&5
2700
sed 's/^/| /' conftest.$ac_ext >&5
2702
# Passes both tests.
2706
rm -f conftest.err conftest.$ac_ext
2709
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2710
rm -f conftest.err conftest.$ac_ext
2711
if $ac_preproc_ok; then
2723
echo "$as_me:$LINENO: result: $CPP" >&5
2724
echo "${ECHO_T}$CPP" >&6
2726
for ac_c_preproc_warn_flag in '' yes
2728
# Use a header file that comes with gcc, so configuring glibc
2729
# with a fresh cross-compiler works.
2730
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2731
# <limits.h> exists even on freestanding compilers.
2732
# On the NeXT, cc -E runs the code through the compiler's parser,
2733
# not just through cpp. "Syntax error" is here to catch this case.
2734
cat >conftest.$ac_ext <<_ACEOF
2737
cat confdefs.h >>conftest.$ac_ext
2738
cat >>conftest.$ac_ext <<_ACEOF
2739
/* end confdefs.h. */
2741
# include <limits.h>
2743
# include <assert.h>
2747
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2748
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2750
grep -v '^ *+' conftest.er1 >conftest.err
2752
cat conftest.err >&5
2753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754
(exit $ac_status); } >/dev/null; then
2755
if test -s conftest.err; then
2756
ac_cpp_err=$ac_c_preproc_warn_flag
2757
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2764
if test -z "$ac_cpp_err"; then
2767
echo "$as_me: failed program was:" >&5
2768
sed 's/^/| /' conftest.$ac_ext >&5
2770
# Broken: fails on valid input.
2773
rm -f conftest.err conftest.$ac_ext
2775
# OK, works on sane cases. Now check whether non-existent headers
2776
# can be detected and how.
2777
cat >conftest.$ac_ext <<_ACEOF
2780
cat confdefs.h >>conftest.$ac_ext
2781
cat >>conftest.$ac_ext <<_ACEOF
2782
/* end confdefs.h. */
2783
#include <ac_nonexistent.h>
2785
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2786
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2788
grep -v '^ *+' conftest.er1 >conftest.err
2790
cat conftest.err >&5
2791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792
(exit $ac_status); } >/dev/null; then
2793
if test -s conftest.err; then
2794
ac_cpp_err=$ac_c_preproc_warn_flag
2795
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2802
if test -z "$ac_cpp_err"; then
2803
# Broken: success on invalid input.
2806
echo "$as_me: failed program was:" >&5
2807
sed 's/^/| /' conftest.$ac_ext >&5
2809
# Passes both tests.
2813
rm -f conftest.err conftest.$ac_ext
2816
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2817
rm -f conftest.err conftest.$ac_ext
2818
if $ac_preproc_ok; then
2821
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2822
See \`config.log' for more details." >&5
2823
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2824
See \`config.log' for more details." >&2;}
2825
{ (exit 1); exit 1; }; }
2829
ac_cpp='$CPP $CPPFLAGS'
2830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835
echo "$as_me:$LINENO: checking for egrep" >&5
2836
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2837
if test "${ac_cv_prog_egrep+set}" = set; then
2838
echo $ECHO_N "(cached) $ECHO_C" >&6
2840
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2841
then ac_cv_prog_egrep='grep -E'
2842
else ac_cv_prog_egrep='egrep'
2845
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2846
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2847
EGREP=$ac_cv_prog_egrep
2850
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2851
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2852
if test "${ac_cv_header_stdc+set}" = set; then
2853
echo $ECHO_N "(cached) $ECHO_C" >&6
2855
cat >conftest.$ac_ext <<_ACEOF
2858
cat confdefs.h >>conftest.$ac_ext
2859
cat >>conftest.$ac_ext <<_ACEOF
2860
/* end confdefs.h. */
2874
rm -f conftest.$ac_objext
2875
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2876
(eval $ac_compile) 2>conftest.er1
2878
grep -v '^ *+' conftest.er1 >conftest.err
2880
cat conftest.err >&5
2881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882
(exit $ac_status); } &&
2883
{ ac_try='test -z "$ac_c_werror_flag"
2884
|| test ! -s conftest.err'
2885
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889
(exit $ac_status); }; } &&
2890
{ ac_try='test -s conftest.$ac_objext'
2891
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895
(exit $ac_status); }; }; then
2896
ac_cv_header_stdc=yes
2898
echo "$as_me: failed program was:" >&5
2899
sed 's/^/| /' conftest.$ac_ext >&5
2901
ac_cv_header_stdc=no
2903
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2905
if test $ac_cv_header_stdc = yes; then
2906
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2907
cat >conftest.$ac_ext <<_ACEOF
2910
cat confdefs.h >>conftest.$ac_ext
2911
cat >>conftest.$ac_ext <<_ACEOF
2912
/* end confdefs.h. */
2916
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917
$EGREP "memchr" >/dev/null 2>&1; then
2920
ac_cv_header_stdc=no
2926
if test $ac_cv_header_stdc = yes; then
2927
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2928
cat >conftest.$ac_ext <<_ACEOF
2931
cat confdefs.h >>conftest.$ac_ext
2932
cat >>conftest.$ac_ext <<_ACEOF
2933
/* end confdefs.h. */
2937
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2938
$EGREP "free" >/dev/null 2>&1; then
2941
ac_cv_header_stdc=no
2947
if test $ac_cv_header_stdc = yes; then
2948
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2949
if test "$cross_compiling" = yes; then
2952
cat >conftest.$ac_ext <<_ACEOF
2955
cat confdefs.h >>conftest.$ac_ext
2956
cat >>conftest.$ac_ext <<_ACEOF
2957
/* end confdefs.h. */
2959
#if ((' ' & 0x0FF) == 0x020)
2960
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2961
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2963
# define ISLOWER(c) \
2964
(('a' <= (c) && (c) <= 'i') \
2965
|| ('j' <= (c) && (c) <= 'r') \
2966
|| ('s' <= (c) && (c) <= 'z'))
2967
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2970
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2975
for (i = 0; i < 256; i++)
2976
if (XOR (islower (i), ISLOWER (i))
2977
|| toupper (i) != TOUPPER (i))
2982
rm -f conftest$ac_exeext
2983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2984
(eval $ac_link) 2>&5
2986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992
(exit $ac_status); }; }; then
2995
echo "$as_me: program exited with status $ac_status" >&5
2996
echo "$as_me: failed program was:" >&5
2997
sed 's/^/| /' conftest.$ac_ext >&5
3000
ac_cv_header_stdc=no
3002
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3006
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3007
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3008
if test $ac_cv_header_stdc = yes; then
3010
cat >>confdefs.h <<\_ACEOF
3011
#define STDC_HEADERS 1
3016
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3026
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3027
inttypes.h stdint.h unistd.h
3029
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3030
echo "$as_me:$LINENO: checking for $ac_header" >&5
3031
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3032
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3033
echo $ECHO_N "(cached) $ECHO_C" >&6
3035
cat >conftest.$ac_ext <<_ACEOF
3038
cat confdefs.h >>conftest.$ac_ext
3039
cat >>conftest.$ac_ext <<_ACEOF
3040
/* end confdefs.h. */
3041
$ac_includes_default
3043
#include <$ac_header>
3045
rm -f conftest.$ac_objext
3046
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3047
(eval $ac_compile) 2>conftest.er1
3049
grep -v '^ *+' conftest.er1 >conftest.err
3051
cat conftest.err >&5
3052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053
(exit $ac_status); } &&
3054
{ ac_try='test -z "$ac_c_werror_flag"
3055
|| test ! -s conftest.err'
3056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060
(exit $ac_status); }; } &&
3061
{ ac_try='test -s conftest.$ac_objext'
3062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
(exit $ac_status); }; }; then
3067
eval "$as_ac_Header=yes"
3069
echo "$as_me: failed program was:" >&5
3070
sed 's/^/| /' conftest.$ac_ext >&5
3072
eval "$as_ac_Header=no"
3074
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3076
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3077
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3078
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3079
cat >>confdefs.h <<_ACEOF
3080
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3094
for ac_header in dirent.h fcntl.h fnmatch.h stat.h stdlib.h string.h
3096
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3097
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3098
echo "$as_me:$LINENO: checking for $ac_header" >&5
3099
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3100
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3101
echo $ECHO_N "(cached) $ECHO_C" >&6
3103
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3104
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3106
# Is the header compilable?
3107
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3108
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3109
cat >conftest.$ac_ext <<_ACEOF
3112
cat confdefs.h >>conftest.$ac_ext
3113
cat >>conftest.$ac_ext <<_ACEOF
3114
/* end confdefs.h. */
3115
$ac_includes_default
3116
#include <$ac_header>
3118
rm -f conftest.$ac_objext
3119
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3120
(eval $ac_compile) 2>conftest.er1
3122
grep -v '^ *+' conftest.er1 >conftest.err
3124
cat conftest.err >&5
3125
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126
(exit $ac_status); } &&
3127
{ ac_try='test -z "$ac_c_werror_flag"
3128
|| test ! -s conftest.err'
3129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3133
(exit $ac_status); }; } &&
3134
{ ac_try='test -s conftest.$ac_objext'
3135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139
(exit $ac_status); }; }; then
3140
ac_header_compiler=yes
3142
echo "$as_me: failed program was:" >&5
3143
sed 's/^/| /' conftest.$ac_ext >&5
3145
ac_header_compiler=no
3147
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3148
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3149
echo "${ECHO_T}$ac_header_compiler" >&6
3151
# Is the header present?
3152
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3153
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3154
cat >conftest.$ac_ext <<_ACEOF
3157
cat confdefs.h >>conftest.$ac_ext
3158
cat >>conftest.$ac_ext <<_ACEOF
3159
/* end confdefs.h. */
3160
#include <$ac_header>
3162
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3163
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3165
grep -v '^ *+' conftest.er1 >conftest.err
3167
cat conftest.err >&5
3168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169
(exit $ac_status); } >/dev/null; then
3170
if test -s conftest.err; then
3171
ac_cpp_err=$ac_c_preproc_warn_flag
3172
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3179
if test -z "$ac_cpp_err"; then
3180
ac_header_preproc=yes
3182
echo "$as_me: failed program was:" >&5
3183
sed 's/^/| /' conftest.$ac_ext >&5
3185
ac_header_preproc=no
3187
rm -f conftest.err conftest.$ac_ext
3188
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3189
echo "${ECHO_T}$ac_header_preproc" >&6
3191
# So? What about this header?
3192
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3194
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3195
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3196
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3197
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3198
ac_header_preproc=yes
3201
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3202
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3203
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3204
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3205
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3206
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3207
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3208
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3209
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3210
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3211
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3212
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3215
## ------------------------------------------ ##
3216
## Report this to the AC_PACKAGE_NAME lists. ##
3217
## ------------------------------------------ ##
3220
sed "s/^/$as_me: WARNING: /" >&2
3223
echo "$as_me:$LINENO: checking for $ac_header" >&5
3224
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3225
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3226
echo $ECHO_N "(cached) $ECHO_C" >&6
3228
eval "$as_ac_Header=\$ac_header_preproc"
3230
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3231
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3234
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3235
cat >>confdefs.h <<_ACEOF
3236
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3246
for ac_header in time.h types.h unistd.h
3248
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250
echo "$as_me:$LINENO: checking for $ac_header" >&5
3251
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3252
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3253
echo $ECHO_N "(cached) $ECHO_C" >&6
3255
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3256
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3258
# Is the header compilable?
3259
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3260
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3261
cat >conftest.$ac_ext <<_ACEOF
3264
cat confdefs.h >>conftest.$ac_ext
3265
cat >>conftest.$ac_ext <<_ACEOF
3266
/* end confdefs.h. */
3267
$ac_includes_default
3268
#include <$ac_header>
3270
rm -f conftest.$ac_objext
3271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3272
(eval $ac_compile) 2>conftest.er1
3274
grep -v '^ *+' conftest.er1 >conftest.err
3276
cat conftest.err >&5
3277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
(exit $ac_status); } &&
3279
{ ac_try='test -z "$ac_c_werror_flag"
3280
|| test ! -s conftest.err'
3281
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285
(exit $ac_status); }; } &&
3286
{ ac_try='test -s conftest.$ac_objext'
3287
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291
(exit $ac_status); }; }; then
3292
ac_header_compiler=yes
3294
echo "$as_me: failed program was:" >&5
3295
sed 's/^/| /' conftest.$ac_ext >&5
3297
ac_header_compiler=no
3299
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3300
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3301
echo "${ECHO_T}$ac_header_compiler" >&6
3303
# Is the header present?
3304
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3305
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3306
cat >conftest.$ac_ext <<_ACEOF
3309
cat confdefs.h >>conftest.$ac_ext
3310
cat >>conftest.$ac_ext <<_ACEOF
3311
/* end confdefs.h. */
3312
#include <$ac_header>
3314
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3315
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3317
grep -v '^ *+' conftest.er1 >conftest.err
3319
cat conftest.err >&5
3320
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321
(exit $ac_status); } >/dev/null; then
3322
if test -s conftest.err; then
3323
ac_cpp_err=$ac_c_preproc_warn_flag
3324
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3331
if test -z "$ac_cpp_err"; then
3332
ac_header_preproc=yes
3334
echo "$as_me: failed program was:" >&5
3335
sed 's/^/| /' conftest.$ac_ext >&5
3337
ac_header_preproc=no
3339
rm -f conftest.err conftest.$ac_ext
3340
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3341
echo "${ECHO_T}$ac_header_preproc" >&6
3343
# So? What about this header?
3344
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3346
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3347
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3348
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3349
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3350
ac_header_preproc=yes
3353
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3354
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3355
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3356
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3357
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3358
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3359
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3360
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3361
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3362
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3363
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3364
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3367
## ------------------------------------------ ##
3368
## Report this to the AC_PACKAGE_NAME lists. ##
3369
## ------------------------------------------ ##
3372
sed "s/^/$as_me: WARNING: /" >&2
3375
echo "$as_me:$LINENO: checking for $ac_header" >&5
3376
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3377
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3378
echo $ECHO_N "(cached) $ECHO_C" >&6
3380
eval "$as_ac_Header=\$ac_header_preproc"
3382
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3383
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3386
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3387
cat >>confdefs.h <<_ACEOF
3388
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3399
for ac_header in sys/dir.h sys/stat.h sys/times.h sys/types.h
3401
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3402
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3403
echo "$as_me:$LINENO: checking for $ac_header" >&5
3404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3405
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3406
echo $ECHO_N "(cached) $ECHO_C" >&6
3408
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3409
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3411
# Is the header compilable?
3412
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3413
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3414
cat >conftest.$ac_ext <<_ACEOF
3417
cat confdefs.h >>conftest.$ac_ext
3418
cat >>conftest.$ac_ext <<_ACEOF
3419
/* end confdefs.h. */
3420
$ac_includes_default
3421
#include <$ac_header>
3423
rm -f conftest.$ac_objext
3424
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3425
(eval $ac_compile) 2>conftest.er1
3427
grep -v '^ *+' conftest.er1 >conftest.err
3429
cat conftest.err >&5
3430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431
(exit $ac_status); } &&
3432
{ ac_try='test -z "$ac_c_werror_flag"
3433
|| test ! -s conftest.err'
3434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438
(exit $ac_status); }; } &&
3439
{ ac_try='test -s conftest.$ac_objext'
3440
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3443
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444
(exit $ac_status); }; }; then
3445
ac_header_compiler=yes
3447
echo "$as_me: failed program was:" >&5
3448
sed 's/^/| /' conftest.$ac_ext >&5
3450
ac_header_compiler=no
3452
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3453
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3454
echo "${ECHO_T}$ac_header_compiler" >&6
3456
# Is the header present?
3457
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3458
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3459
cat >conftest.$ac_ext <<_ACEOF
3462
cat confdefs.h >>conftest.$ac_ext
3463
cat >>conftest.$ac_ext <<_ACEOF
3464
/* end confdefs.h. */
3465
#include <$ac_header>
3467
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3468
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3470
grep -v '^ *+' conftest.er1 >conftest.err
3472
cat conftest.err >&5
3473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474
(exit $ac_status); } >/dev/null; then
3475
if test -s conftest.err; then
3476
ac_cpp_err=$ac_c_preproc_warn_flag
3477
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3484
if test -z "$ac_cpp_err"; then
3485
ac_header_preproc=yes
3487
echo "$as_me: failed program was:" >&5
3488
sed 's/^/| /' conftest.$ac_ext >&5
3490
ac_header_preproc=no
3492
rm -f conftest.err conftest.$ac_ext
3493
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3494
echo "${ECHO_T}$ac_header_preproc" >&6
3496
# So? What about this header?
3497
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3499
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3500
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3501
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3502
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3503
ac_header_preproc=yes
3506
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3507
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3508
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3509
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3510
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3511
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3512
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3513
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3514
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3515
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3516
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3517
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3520
## ------------------------------------------ ##
3521
## Report this to the AC_PACKAGE_NAME lists. ##
3522
## ------------------------------------------ ##
3525
sed "s/^/$as_me: WARNING: /" >&2
3528
echo "$as_me:$LINENO: checking for $ac_header" >&5
3529
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3530
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3531
echo $ECHO_N "(cached) $ECHO_C" >&6
3533
eval "$as_ac_Header=\$ac_header_preproc"
3535
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3536
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3539
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3540
cat >>confdefs.h <<_ACEOF
3541
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3552
echo "$as_me:$LINENO: checking \"if L_tmpnam is defined in stdio.h\"" >&5
3553
echo $ECHO_N "checking \"if L_tmpnam is defined in stdio.h\"... $ECHO_C" >&6
3554
cat >conftest.$ac_ext <<_ACEOF
3557
cat confdefs.h >>conftest.$ac_ext
3558
cat >>conftest.$ac_ext <<_ACEOF
3559
/* end confdefs.h. */
3566
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3567
$EGREP "yes" >/dev/null 2>&1; then
3569
echo "$as_me:$LINENO: result: yes" >&5
3570
echo "${ECHO_T}yes" >&6
3575
echo "$as_me:$LINENO: result: no" >&5
3576
echo "${ECHO_T}no" >&6
3577
cat >>confdefs.h <<\_ACEOF
3587
echo "$as_me:$LINENO: checking \"if INT_MAX is defined in limits.h\"" >&5
3588
echo $ECHO_N "checking \"if INT_MAX is defined in limits.h\"... $ECHO_C" >&6
3589
cat >conftest.$ac_ext <<_ACEOF
3592
cat confdefs.h >>conftest.$ac_ext
3593
cat >>conftest.$ac_ext <<_ACEOF
3594
/* end confdefs.h. */
3601
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3602
$EGREP "yes" >/dev/null 2>&1; then
3604
echo "$as_me:$LINENO: result: yes" >&5
3605
echo "${ECHO_T}yes" >&6
3610
echo "$as_me:$LINENO: result: no" >&5
3611
echo "${ECHO_T}no" >&6
3613
echo "$as_me:$LINENO: checking \"if MAXINT is defined in limits.h\"" >&5
3614
echo $ECHO_N "checking \"if MAXINT is defined in limits.h\"... $ECHO_C" >&6
3615
cat >conftest.$ac_ext <<_ACEOF
3618
cat confdefs.h >>conftest.$ac_ext
3619
cat >>conftest.$ac_ext <<_ACEOF
3620
/* end confdefs.h. */
3627
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3628
$EGREP "yes" >/dev/null 2>&1; then
3630
echo "$as_me:$LINENO: result: yes" >&5
3631
echo "${ECHO_T}yes" >&6
3632
cat >>confdefs.h <<\_ACEOF
3633
#define INT_MAX MAXINT
3639
echo "$as_me:$LINENO: result: no" >&5
3640
echo "${ECHO_T}no" >&6
3641
cat >>confdefs.h <<\_ACEOF
3642
#define INT_MAX 32767
3656
echo "$as_me:$LINENO: checking for size_t" >&5
3657
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3658
if test "${ac_cv_type_size_t+set}" = set; then
3659
echo $ECHO_N "(cached) $ECHO_C" >&6
3661
cat >conftest.$ac_ext <<_ACEOF
3664
cat confdefs.h >>conftest.$ac_ext
3665
cat >>conftest.$ac_ext <<_ACEOF
3666
/* end confdefs.h. */
3667
$ac_includes_default
3673
if (sizeof (size_t))
3679
rm -f conftest.$ac_objext
3680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3681
(eval $ac_compile) 2>conftest.er1
3683
grep -v '^ *+' conftest.er1 >conftest.err
3685
cat conftest.err >&5
3686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687
(exit $ac_status); } &&
3688
{ ac_try='test -z "$ac_c_werror_flag"
3689
|| test ! -s conftest.err'
3690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694
(exit $ac_status); }; } &&
3695
{ ac_try='test -s conftest.$ac_objext'
3696
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700
(exit $ac_status); }; }; then
3701
ac_cv_type_size_t=yes
3703
echo "$as_me: failed program was:" >&5
3704
sed 's/^/| /' conftest.$ac_ext >&5
3706
ac_cv_type_size_t=no
3708
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3710
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3711
echo "${ECHO_T}$ac_cv_type_size_t" >&6
3712
if test $ac_cv_type_size_t = yes; then
3716
cat >>confdefs.h <<_ACEOF
3717
#define size_t unsigned
3722
echo "$as_me:$LINENO: checking for off_t" >&5
3723
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3724
if test "${ac_cv_type_off_t+set}" = set; then
3725
echo $ECHO_N "(cached) $ECHO_C" >&6
3727
cat >conftest.$ac_ext <<_ACEOF
3730
cat confdefs.h >>conftest.$ac_ext
3731
cat >>conftest.$ac_ext <<_ACEOF
3732
/* end confdefs.h. */
3733
$ac_includes_default
3745
rm -f conftest.$ac_objext
3746
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747
(eval $ac_compile) 2>conftest.er1
3749
grep -v '^ *+' conftest.er1 >conftest.err
3751
cat conftest.err >&5
3752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753
(exit $ac_status); } &&
3754
{ ac_try='test -z "$ac_c_werror_flag"
3755
|| test ! -s conftest.err'
3756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760
(exit $ac_status); }; } &&
3761
{ ac_try='test -s conftest.$ac_objext'
3762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766
(exit $ac_status); }; }; then
3767
ac_cv_type_off_t=yes
3769
echo "$as_me: failed program was:" >&5
3770
sed 's/^/| /' conftest.$ac_ext >&5
3774
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3776
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3777
echo "${ECHO_T}$ac_cv_type_off_t" >&6
3778
if test $ac_cv_type_off_t = yes; then
3782
cat >>confdefs.h <<_ACEOF
3789
echo "$as_me:$LINENO: checking \"for fpos_t\"" >&5
3790
echo $ECHO_N "checking \"for fpos_t\"... $ECHO_C" >&6
3791
cat >conftest.$ac_ext <<_ACEOF
3794
cat confdefs.h >>conftest.$ac_ext
3795
cat >>conftest.$ac_ext <<_ACEOF
3796
/* end confdefs.h. */
3800
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3801
$EGREP "fpos_t" >/dev/null 2>&1; then
3802
echo "$as_me:$LINENO: result: yes" >&5
3803
echo "${ECHO_T}yes" >&6
3806
echo "$as_me:$LINENO: result: no" >&5
3807
echo "${ECHO_T}no" >&6
3808
cat >>confdefs.h <<\_ACEOF
3817
echo "$as_me:$LINENO: checking \"for clock_t\"" >&5
3818
echo $ECHO_N "checking \"for clock_t\"... $ECHO_C" >&6
3819
cat >conftest.$ac_ext <<_ACEOF
3822
cat confdefs.h >>conftest.$ac_ext
3823
cat >>conftest.$ac_ext <<_ACEOF
3824
/* end confdefs.h. */
3828
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3829
$EGREP "clock_t" >/dev/null 2>&1; then
3830
echo "$as_me:$LINENO: result: yes" >&5
3831
echo "${ECHO_T}yes" >&6
3834
echo "$as_me:$LINENO: result: no" >&5
3835
echo "${ECHO_T}no" >&6
3836
cat >>confdefs.h <<\_ACEOF
3837
#define clock_t long
3847
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3848
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3849
if test "${ac_cv_c_const+set}" = set; then
3850
echo $ECHO_N "(cached) $ECHO_C" >&6
3852
cat >conftest.$ac_ext <<_ACEOF
3855
cat confdefs.h >>conftest.$ac_ext
3856
cat >>conftest.$ac_ext <<_ACEOF
3857
/* end confdefs.h. */
3862
/* FIXME: Include the comments suggested by Paul. */
3864
/* Ultrix mips cc rejects this. */
3865
typedef int charset[2];
3867
/* SunOS 4.1.1 cc rejects this. */
3868
char const *const *ccp;
3870
/* NEC SVR4.0.2 mips cc rejects this. */
3871
struct point {int x, y;};
3872
static struct point const zero = {0,0};
3873
/* AIX XL C 1.02.0.0 rejects this.
3874
It does not let you subtract one const X* pointer from another in
3875
an arm of an if-expression whose if-part is not a constant
3877
const char *g = "string";
3878
ccp = &g + (g ? g-g : 0);
3879
/* HPUX 7.0 cc rejects these. */
3882
ccp = (char const *const *) p;
3883
{ /* SCO 3.2v4 cc rejects this. */
3885
char const *s = 0 ? (char *) 0 : (char const *) 0;
3889
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3891
const int *foo = &x[0];
3894
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3895
typedef const int *iptr;
3899
{ /* AIX XL C 1.02.0.0 rejects this saying
3900
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3901
struct s { int j; const int *ap[3]; };
3902
struct s *b; b->j = 5;
3904
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3913
rm -f conftest.$ac_objext
3914
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3915
(eval $ac_compile) 2>conftest.er1
3917
grep -v '^ *+' conftest.er1 >conftest.err
3919
cat conftest.err >&5
3920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921
(exit $ac_status); } &&
3922
{ ac_try='test -z "$ac_c_werror_flag"
3923
|| test ! -s conftest.err'
3924
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
(exit $ac_status); }; } &&
3929
{ ac_try='test -s conftest.$ac_objext'
3930
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3934
(exit $ac_status); }; }; then
3937
echo "$as_me: failed program was:" >&5
3938
sed 's/^/| /' conftest.$ac_ext >&5
3942
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3944
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3945
echo "${ECHO_T}$ac_cv_c_const" >&6
3946
if test $ac_cv_c_const = no; then
3948
cat >>confdefs.h <<\_ACEOF
3957
echo "$as_me:$LINENO: checking if struct stat contains st_ino" >&5
3958
echo $ECHO_N "checking if struct stat contains st_ino... $ECHO_C" >&6
3959
cat >conftest.$ac_ext <<_ACEOF
3962
cat confdefs.h >>conftest.$ac_ext
3963
cat >>conftest.$ac_ext <<_ACEOF
3964
/* end confdefs.h. */
3965
#include <sys/stat.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"
3989
|| test ! -s conftest.err'
3990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3994
(exit $ac_status); }; } &&
3995
{ ac_try='test -s conftest.$ac_objext'
3996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000
(exit $ac_status); }; }; then
4003
echo "$as_me: failed program was:" >&5
4004
sed 's/^/| /' conftest.$ac_ext >&5
4008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4009
echo "$as_me:$LINENO: result: $have_st_ino" >&5
4010
echo "${ECHO_T}$have_st_ino" >&6
4011
if test yes = "$have_st_ino"; then
4012
cat >>confdefs.h <<\_ACEOF
4013
#define HAVE_STAT_ST_INO 1
4021
for ac_func in fnmatch
4023
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4024
echo "$as_me:$LINENO: checking for $ac_func" >&5
4025
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4026
if eval "test \"\${$as_ac_var+set}\" = set"; then
4027
echo $ECHO_N "(cached) $ECHO_C" >&6
4029
cat >conftest.$ac_ext <<_ACEOF
4032
cat confdefs.h >>conftest.$ac_ext
4033
cat >>conftest.$ac_ext <<_ACEOF
4034
/* end confdefs.h. */
4035
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4036
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4037
#define $ac_func innocuous_$ac_func
4039
/* System header to define __stub macros and hopefully few prototypes,
4040
which can conflict with char $ac_func (); below.
4041
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042
<limits.h> exists even on freestanding compilers. */
4045
# include <limits.h>
4047
# include <assert.h>
4052
/* Override any gcc2 internal prototype to avoid an error. */
4057
/* We use char because int might match the return type of a gcc2
4058
builtin and then its argument prototype would still apply. */
4060
/* The GNU C library defines this for functions which it implements
4061
to always fail with ENOSYS. Some functions are actually named
4062
something starting with __ and the normal name is an alias. */
4063
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4066
char (*f) () = $ac_func;
4075
return f != $ac_func;
4080
rm -f conftest.$ac_objext conftest$ac_exeext
4081
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4082
(eval $ac_link) 2>conftest.er1
4084
grep -v '^ *+' conftest.er1 >conftest.err
4086
cat conftest.err >&5
4087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088
(exit $ac_status); } &&
4089
{ ac_try='test -z "$ac_c_werror_flag"
4090
|| test ! -s conftest.err'
4091
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4094
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095
(exit $ac_status); }; } &&
4096
{ ac_try='test -s conftest$ac_exeext'
4097
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101
(exit $ac_status); }; }; then
4102
eval "$as_ac_var=yes"
4104
echo "$as_me: failed program was:" >&5
4105
sed 's/^/| /' conftest.$ac_ext >&5
4107
eval "$as_ac_var=no"
4109
rm -f conftest.err conftest.$ac_objext \
4110
conftest$ac_exeext conftest.$ac_ext
4112
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4113
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4114
if test `eval echo '${'$as_ac_var'}'` = yes; then
4115
cat >>confdefs.h <<_ACEOF
4116
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4123
for ac_func in strstr
4125
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4126
echo "$as_me:$LINENO: checking for $ac_func" >&5
4127
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4128
if eval "test \"\${$as_ac_var+set}\" = set"; then
4129
echo $ECHO_N "(cached) $ECHO_C" >&6
4131
cat >conftest.$ac_ext <<_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4135
cat >>conftest.$ac_ext <<_ACEOF
4136
/* end confdefs.h. */
4137
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4138
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4139
#define $ac_func innocuous_$ac_func
4141
/* System header to define __stub macros and hopefully few prototypes,
4142
which can conflict with char $ac_func (); below.
4143
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144
<limits.h> exists even on freestanding compilers. */
4147
# include <limits.h>
4149
# include <assert.h>
4154
/* Override any gcc2 internal prototype to avoid an error. */
4159
/* We use char because int might match the return type of a gcc2
4160
builtin and then its argument prototype would still apply. */
4162
/* The GNU C library defines this for functions which it implements
4163
to always fail with ENOSYS. Some functions are actually named
4164
something starting with __ and the normal name is an alias. */
4165
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4168
char (*f) () = $ac_func;
4177
return f != $ac_func;
4182
rm -f conftest.$ac_objext conftest$ac_exeext
4183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184
(eval $ac_link) 2>conftest.er1
4186
grep -v '^ *+' conftest.er1 >conftest.err
4188
cat conftest.err >&5
4189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190
(exit $ac_status); } &&
4191
{ ac_try='test -z "$ac_c_werror_flag"
4192
|| test ! -s conftest.err'
4193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197
(exit $ac_status); }; } &&
4198
{ ac_try='test -s conftest$ac_exeext'
4199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203
(exit $ac_status); }; }; then
4204
eval "$as_ac_var=yes"
4206
echo "$as_me: failed program was:" >&5
4207
sed 's/^/| /' conftest.$ac_ext >&5
4209
eval "$as_ac_var=no"
4211
rm -f conftest.err conftest.$ac_objext \
4212
conftest$ac_exeext conftest.$ac_ext
4214
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4215
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4216
if test `eval echo '${'$as_ac_var'}'` = yes; then
4217
cat >>confdefs.h <<_ACEOF
4218
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4226
for ac_func in strcasecmp stricmp
4228
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4229
echo "$as_me:$LINENO: checking for $ac_func" >&5
4230
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4231
if eval "test \"\${$as_ac_var+set}\" = set"; then
4232
echo $ECHO_N "(cached) $ECHO_C" >&6
4234
cat >conftest.$ac_ext <<_ACEOF
4237
cat confdefs.h >>conftest.$ac_ext
4238
cat >>conftest.$ac_ext <<_ACEOF
4239
/* end confdefs.h. */
4240
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4241
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4242
#define $ac_func innocuous_$ac_func
4244
/* System header to define __stub macros and hopefully few prototypes,
4245
which can conflict with char $ac_func (); below.
4246
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4247
<limits.h> exists even on freestanding compilers. */
4250
# include <limits.h>
4252
# include <assert.h>
4257
/* Override any gcc2 internal prototype to avoid an error. */
4262
/* We use char because int might match the return type of a gcc2
4263
builtin and then its argument prototype would still apply. */
4265
/* The GNU C library defines this for functions which it implements
4266
to always fail with ENOSYS. Some functions are actually named
4267
something starting with __ and the normal name is an alias. */
4268
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4271
char (*f) () = $ac_func;
4280
return f != $ac_func;
4285
rm -f conftest.$ac_objext conftest$ac_exeext
4286
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4287
(eval $ac_link) 2>conftest.er1
4289
grep -v '^ *+' conftest.er1 >conftest.err
4291
cat conftest.err >&5
4292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293
(exit $ac_status); } &&
4294
{ ac_try='test -z "$ac_c_werror_flag"
4295
|| test ! -s conftest.err'
4296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300
(exit $ac_status); }; } &&
4301
{ ac_try='test -s conftest$ac_exeext'
4302
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306
(exit $ac_status); }; }; then
4307
eval "$as_ac_var=yes"
4309
echo "$as_me: failed program was:" >&5
4310
sed 's/^/| /' conftest.$ac_ext >&5
4312
eval "$as_ac_var=no"
4314
rm -f conftest.err conftest.$ac_objext \
4315
conftest$ac_exeext conftest.$ac_ext
4317
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4318
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4319
if test `eval echo '${'$as_ac_var'}'` = yes; then
4320
cat >>confdefs.h <<_ACEOF
4321
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4329
for ac_func in strncasecmp strnicmp
4331
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4332
echo "$as_me:$LINENO: checking for $ac_func" >&5
4333
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4334
if eval "test \"\${$as_ac_var+set}\" = set"; then
4335
echo $ECHO_N "(cached) $ECHO_C" >&6
4337
cat >conftest.$ac_ext <<_ACEOF
4340
cat confdefs.h >>conftest.$ac_ext
4341
cat >>conftest.$ac_ext <<_ACEOF
4342
/* end confdefs.h. */
4343
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4344
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4345
#define $ac_func innocuous_$ac_func
4347
/* System header to define __stub macros and hopefully few prototypes,
4348
which can conflict with char $ac_func (); below.
4349
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4350
<limits.h> exists even on freestanding compilers. */
4353
# include <limits.h>
4355
# include <assert.h>
4360
/* Override any gcc2 internal prototype to avoid an error. */
4365
/* We use char because int might match the return type of a gcc2
4366
builtin and then its argument prototype would still apply. */
4368
/* The GNU C library defines this for functions which it implements
4369
to always fail with ENOSYS. Some functions are actually named
4370
something starting with __ and the normal name is an alias. */
4371
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4374
char (*f) () = $ac_func;
4383
return f != $ac_func;
4388
rm -f conftest.$ac_objext conftest$ac_exeext
4389
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4390
(eval $ac_link) 2>conftest.er1
4392
grep -v '^ *+' conftest.er1 >conftest.err
4394
cat conftest.err >&5
4395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396
(exit $ac_status); } &&
4397
{ ac_try='test -z "$ac_c_werror_flag"
4398
|| test ! -s conftest.err'
4399
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
(exit $ac_status); }; } &&
4404
{ ac_try='test -s conftest$ac_exeext'
4405
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409
(exit $ac_status); }; }; then
4410
eval "$as_ac_var=yes"
4412
echo "$as_me: failed program was:" >&5
4413
sed 's/^/| /' conftest.$ac_ext >&5
4415
eval "$as_ac_var=no"
4417
rm -f conftest.err conftest.$ac_objext \
4418
conftest$ac_exeext conftest.$ac_ext
4420
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4421
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4422
if test `eval echo '${'$as_ac_var'}'` = yes; then
4423
cat >>confdefs.h <<_ACEOF
4424
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4431
for ac_func in fgetpos
4433
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4434
echo "$as_me:$LINENO: checking for $ac_func" >&5
4435
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4436
if eval "test \"\${$as_ac_var+set}\" = set"; then
4437
echo $ECHO_N "(cached) $ECHO_C" >&6
4439
cat >conftest.$ac_ext <<_ACEOF
4442
cat confdefs.h >>conftest.$ac_ext
4443
cat >>conftest.$ac_ext <<_ACEOF
4444
/* end confdefs.h. */
4445
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4446
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4447
#define $ac_func innocuous_$ac_func
4449
/* System header to define __stub macros and hopefully few prototypes,
4450
which can conflict with char $ac_func (); below.
4451
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452
<limits.h> exists even on freestanding compilers. */
4455
# include <limits.h>
4457
# include <assert.h>
4462
/* Override any gcc2 internal prototype to avoid an error. */
4467
/* We use char because int might match the return type of a gcc2
4468
builtin and then its argument prototype would still apply. */
4470
/* The GNU C library defines this for functions which it implements
4471
to always fail with ENOSYS. Some functions are actually named
4472
something starting with __ and the normal name is an alias. */
4473
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476
char (*f) () = $ac_func;
4485
return f != $ac_func;
4490
rm -f conftest.$ac_objext conftest$ac_exeext
4491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4492
(eval $ac_link) 2>conftest.er1
4494
grep -v '^ *+' conftest.er1 >conftest.err
4496
cat conftest.err >&5
4497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498
(exit $ac_status); } &&
4499
{ ac_try='test -z "$ac_c_werror_flag"
4500
|| test ! -s conftest.err'
4501
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505
(exit $ac_status); }; } &&
4506
{ ac_try='test -s conftest$ac_exeext'
4507
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511
(exit $ac_status); }; }; then
4512
eval "$as_ac_var=yes"
4514
echo "$as_me: failed program was:" >&5
4515
sed 's/^/| /' conftest.$ac_ext >&5
4517
eval "$as_ac_var=no"
4519
rm -f conftest.err conftest.$ac_objext \
4520
conftest$ac_exeext conftest.$ac_ext
4522
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4523
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4524
if test `eval echo '${'$as_ac_var'}'` = yes; then
4525
cat >>confdefs.h <<_ACEOF
4526
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4533
if test "$have_fgetpos" != yes ; then
4535
echo "$as_me:$LINENO: checking \"if SEEK_SET is defined in stdio.h\"" >&5
4536
echo $ECHO_N "checking \"if SEEK_SET is defined in stdio.h\"... $ECHO_C" >&6
4537
cat >conftest.$ac_ext <<_ACEOF
4540
cat confdefs.h >>conftest.$ac_ext
4541
cat >>conftest.$ac_ext <<_ACEOF
4542
/* end confdefs.h. */
4549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550
$EGREP "yes" >/dev/null 2>&1; then
4552
echo "$as_me:$LINENO: result: yes" >&5
4553
echo "${ECHO_T}yes" >&6
4558
echo "$as_me:$LINENO: result: no" >&5
4559
echo "${ECHO_T}no" >&6
4561
echo "$as_me:$LINENO: checking \"if SEEK_SET is defined in unistd.h\"" >&5
4562
echo $ECHO_N "checking \"if SEEK_SET is defined in unistd.h\"... $ECHO_C" >&6
4563
cat >conftest.$ac_ext <<_ACEOF
4566
cat confdefs.h >>conftest.$ac_ext
4567
cat >>conftest.$ac_ext <<_ACEOF
4568
/* end confdefs.h. */
4575
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576
$EGREP "yes" >/dev/null 2>&1; then
4578
echo "$as_me:$LINENO: result: yes" >&5
4579
echo "${ECHO_T}yes" >&6
4584
echo "$as_me:$LINENO: result: no" >&5
4585
echo "${ECHO_T}no" >&6
4586
cat >>confdefs.h <<\_ACEOF
4601
for ac_func in mkstemp
4603
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4604
echo "$as_me:$LINENO: checking for $ac_func" >&5
4605
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4606
if eval "test \"\${$as_ac_var+set}\" = set"; then
4607
echo $ECHO_N "(cached) $ECHO_C" >&6
4609
cat >conftest.$ac_ext <<_ACEOF
4612
cat confdefs.h >>conftest.$ac_ext
4613
cat >>conftest.$ac_ext <<_ACEOF
4614
/* end confdefs.h. */
4615
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4616
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4617
#define $ac_func innocuous_$ac_func
4619
/* System header to define __stub macros and hopefully few prototypes,
4620
which can conflict with char $ac_func (); below.
4621
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4622
<limits.h> exists even on freestanding compilers. */
4625
# include <limits.h>
4627
# include <assert.h>
4632
/* Override any gcc2 internal prototype to avoid an error. */
4637
/* We use char because int might match the return type of a gcc2
4638
builtin and then its argument prototype would still apply. */
4640
/* The GNU C library defines this for functions which it implements
4641
to always fail with ENOSYS. Some functions are actually named
4642
something starting with __ and the normal name is an alias. */
4643
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4646
char (*f) () = $ac_func;
4655
return f != $ac_func;
4660
rm -f conftest.$ac_objext conftest$ac_exeext
4661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4662
(eval $ac_link) 2>conftest.er1
4664
grep -v '^ *+' conftest.er1 >conftest.err
4666
cat conftest.err >&5
4667
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668
(exit $ac_status); } &&
4669
{ ac_try='test -z "$ac_c_werror_flag"
4670
|| test ! -s conftest.err'
4671
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675
(exit $ac_status); }; } &&
4676
{ ac_try='test -s conftest$ac_exeext'
4677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681
(exit $ac_status); }; }; then
4682
eval "$as_ac_var=yes"
4684
echo "$as_me: failed program was:" >&5
4685
sed 's/^/| /' conftest.$ac_ext >&5
4687
eval "$as_ac_var=no"
4689
rm -f conftest.err conftest.$ac_objext \
4690
conftest$ac_exeext conftest.$ac_ext
4692
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4693
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4694
if test `eval echo '${'$as_ac_var'}'` = yes; then
4695
cat >>confdefs.h <<_ACEOF
4696
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4702
if test "$have_mkstemp" != yes ; then
4704
for ac_func in tempnam
4706
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4707
echo "$as_me:$LINENO: checking for $ac_func" >&5
4708
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4709
if eval "test \"\${$as_ac_var+set}\" = set"; then
4710
echo $ECHO_N "(cached) $ECHO_C" >&6
4712
cat >conftest.$ac_ext <<_ACEOF
4715
cat confdefs.h >>conftest.$ac_ext
4716
cat >>conftest.$ac_ext <<_ACEOF
4717
/* end confdefs.h. */
4718
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4719
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4720
#define $ac_func innocuous_$ac_func
4722
/* System header to define __stub macros and hopefully few prototypes,
4723
which can conflict with char $ac_func (); below.
4724
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4725
<limits.h> exists even on freestanding compilers. */
4728
# include <limits.h>
4730
# include <assert.h>
4735
/* Override any gcc2 internal prototype to avoid an error. */
4740
/* We use char because int might match the return type of a gcc2
4741
builtin and then its argument prototype would still apply. */
4743
/* The GNU C library defines this for functions which it implements
4744
to always fail with ENOSYS. Some functions are actually named
4745
something starting with __ and the normal name is an alias. */
4746
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4749
char (*f) () = $ac_func;
4758
return f != $ac_func;
4763
rm -f conftest.$ac_objext conftest$ac_exeext
4764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765
(eval $ac_link) 2>conftest.er1
4767
grep -v '^ *+' conftest.er1 >conftest.err
4769
cat conftest.err >&5
4770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771
(exit $ac_status); } &&
4772
{ ac_try='test -z "$ac_c_werror_flag"
4773
|| test ! -s conftest.err'
4774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778
(exit $ac_status); }; } &&
4779
{ ac_try='test -s conftest$ac_exeext'
4780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784
(exit $ac_status); }; }; then
4785
eval "$as_ac_var=yes"
4787
echo "$as_me: failed program was:" >&5
4788
sed 's/^/| /' conftest.$ac_ext >&5
4790
eval "$as_ac_var=no"
4792
rm -f conftest.err conftest.$ac_objext \
4793
conftest$ac_exeext conftest.$ac_ext
4795
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4796
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4797
if test `eval echo '${'$as_ac_var'}'` = yes; then
4798
cat >>confdefs.h <<_ACEOF
4799
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4806
if test "$have_mkstemp" != yes -a "$have_tempnam" != yes; then
4808
for ac_func in chmod
4810
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4811
echo "$as_me:$LINENO: checking for $ac_func" >&5
4812
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4813
if eval "test \"\${$as_ac_var+set}\" = set"; then
4814
echo $ECHO_N "(cached) $ECHO_C" >&6
4816
cat >conftest.$ac_ext <<_ACEOF
4819
cat confdefs.h >>conftest.$ac_ext
4820
cat >>conftest.$ac_ext <<_ACEOF
4821
/* end confdefs.h. */
4822
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4823
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4824
#define $ac_func innocuous_$ac_func
4826
/* System header to define __stub macros and hopefully few prototypes,
4827
which can conflict with char $ac_func (); below.
4828
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829
<limits.h> exists even on freestanding compilers. */
4832
# include <limits.h>
4834
# include <assert.h>
4839
/* Override any gcc2 internal prototype to avoid an error. */
4844
/* We use char because int might match the return type of a gcc2
4845
builtin and then its argument prototype would still apply. */
4847
/* The GNU C library defines this for functions which it implements
4848
to always fail with ENOSYS. Some functions are actually named
4849
something starting with __ and the normal name is an alias. */
4850
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4853
char (*f) () = $ac_func;
4862
return f != $ac_func;
4867
rm -f conftest.$ac_objext conftest$ac_exeext
4868
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4869
(eval $ac_link) 2>conftest.er1
4871
grep -v '^ *+' conftest.er1 >conftest.err
4873
cat conftest.err >&5
4874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875
(exit $ac_status); } &&
4876
{ ac_try='test -z "$ac_c_werror_flag"
4877
|| test ! -s conftest.err'
4878
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882
(exit $ac_status); }; } &&
4883
{ ac_try='test -s conftest$ac_exeext'
4884
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
(exit $ac_status); }; }; then
4889
eval "$as_ac_var=yes"
4891
echo "$as_me: failed program was:" >&5
4892
sed 's/^/| /' conftest.$ac_ext >&5
4894
eval "$as_ac_var=no"
4896
rm -f conftest.err conftest.$ac_objext \
4897
conftest$ac_exeext conftest.$ac_ext
4899
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4900
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4901
if test `eval echo '${'$as_ac_var'}'` = yes; then
4902
cat >>confdefs.h <<_ACEOF
4903
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4909
if test "$tmpdir_specified" = yes ; then
4910
echo "$as_me:$LINENO: result: use of tmpnam overrides temporary directory selection" >&5
4911
echo "${ECHO_T}use of tmpnam overrides temporary directory selection" >&6
4918
for ac_func in opendir findfirst _findfirst
4920
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4921
echo "$as_me:$LINENO: checking for $ac_func" >&5
4922
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4923
if eval "test \"\${$as_ac_var+set}\" = set"; then
4924
echo $ECHO_N "(cached) $ECHO_C" >&6
4926
cat >conftest.$ac_ext <<_ACEOF
4929
cat confdefs.h >>conftest.$ac_ext
4930
cat >>conftest.$ac_ext <<_ACEOF
4931
/* end confdefs.h. */
4932
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4933
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4934
#define $ac_func innocuous_$ac_func
4936
/* System header to define __stub macros and hopefully few prototypes,
4937
which can conflict with char $ac_func (); below.
4938
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939
<limits.h> exists even on freestanding compilers. */
4942
# include <limits.h>
4944
# include <assert.h>
4949
/* Override any gcc2 internal prototype to avoid an error. */
4954
/* We use char because int might match the return type of a gcc2
4955
builtin and then its argument prototype would still apply. */
4957
/* The GNU C library defines this for functions which it implements
4958
to always fail with ENOSYS. Some functions are actually named
4959
something starting with __ and the normal name is an alias. */
4960
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4963
char (*f) () = $ac_func;
4972
return f != $ac_func;
4977
rm -f conftest.$ac_objext conftest$ac_exeext
4978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4979
(eval $ac_link) 2>conftest.er1
4981
grep -v '^ *+' conftest.er1 >conftest.err
4983
cat conftest.err >&5
4984
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985
(exit $ac_status); } &&
4986
{ ac_try='test -z "$ac_c_werror_flag"
4987
|| test ! -s conftest.err'
4988
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
(exit $ac_status); }; } &&
4993
{ ac_try='test -s conftest$ac_exeext'
4994
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998
(exit $ac_status); }; }; then
4999
eval "$as_ac_var=yes"
5001
echo "$as_me: failed program was:" >&5
5002
sed 's/^/| /' conftest.$ac_ext >&5
5004
eval "$as_ac_var=no"
5006
rm -f conftest.err conftest.$ac_objext \
5007
conftest$ac_exeext conftest.$ac_ext
5009
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5010
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5011
if test `eval echo '${'$as_ac_var'}'` = yes; then
5012
cat >>confdefs.h <<_ACEOF
5013
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5020
for ac_func in strerror
5022
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5023
echo "$as_me:$LINENO: checking for $ac_func" >&5
5024
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5025
if eval "test \"\${$as_ac_var+set}\" = set"; then
5026
echo $ECHO_N "(cached) $ECHO_C" >&6
5028
cat >conftest.$ac_ext <<_ACEOF
5031
cat confdefs.h >>conftest.$ac_ext
5032
cat >>conftest.$ac_ext <<_ACEOF
5033
/* end confdefs.h. */
5034
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5035
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5036
#define $ac_func innocuous_$ac_func
5038
/* System header to define __stub macros and hopefully few prototypes,
5039
which can conflict with char $ac_func (); below.
5040
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5041
<limits.h> exists even on freestanding compilers. */
5044
# include <limits.h>
5046
# include <assert.h>
5051
/* Override any gcc2 internal prototype to avoid an error. */
5056
/* We use char because int might match the return type of a gcc2
5057
builtin and then its argument prototype would still apply. */
5059
/* The GNU C library defines this for functions which it implements
5060
to always fail with ENOSYS. Some functions are actually named
5061
something starting with __ and the normal name is an alias. */
5062
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5065
char (*f) () = $ac_func;
5074
return f != $ac_func;
5079
rm -f conftest.$ac_objext conftest$ac_exeext
5080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5081
(eval $ac_link) 2>conftest.er1
5083
grep -v '^ *+' conftest.er1 >conftest.err
5085
cat conftest.err >&5
5086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087
(exit $ac_status); } &&
5088
{ ac_try='test -z "$ac_c_werror_flag"
5089
|| test ! -s conftest.err'
5090
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094
(exit $ac_status); }; } &&
5095
{ ac_try='test -s conftest$ac_exeext'
5096
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100
(exit $ac_status); }; }; then
5101
eval "$as_ac_var=yes"
5103
echo "$as_me: failed program was:" >&5
5104
sed 's/^/| /' conftest.$ac_ext >&5
5106
eval "$as_ac_var=no"
5108
rm -f conftest.err conftest.$ac_objext \
5109
conftest$ac_exeext conftest.$ac_ext
5111
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5112
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5113
if test `eval echo '${'$as_ac_var'}'` = yes; then
5114
cat >>confdefs.h <<_ACEOF
5115
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5123
for ac_func in clock times
5125
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5126
echo "$as_me:$LINENO: checking for $ac_func" >&5
5127
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5128
if eval "test \"\${$as_ac_var+set}\" = set"; then
5129
echo $ECHO_N "(cached) $ECHO_C" >&6
5131
cat >conftest.$ac_ext <<_ACEOF
5134
cat confdefs.h >>conftest.$ac_ext
5135
cat >>conftest.$ac_ext <<_ACEOF
5136
/* end confdefs.h. */
5137
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5138
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5139
#define $ac_func innocuous_$ac_func
5141
/* System header to define __stub macros and hopefully few prototypes,
5142
which can conflict with char $ac_func (); below.
5143
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144
<limits.h> exists even on freestanding compilers. */
5147
# include <limits.h>
5149
# include <assert.h>
5154
/* Override any gcc2 internal prototype to avoid an error. */
5159
/* We use char because int might match the return type of a gcc2
5160
builtin and then its argument prototype would still apply. */
5162
/* The GNU C library defines this for functions which it implements
5163
to always fail with ENOSYS. Some functions are actually named
5164
something starting with __ and the normal name is an alias. */
5165
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5168
char (*f) () = $ac_func;
5177
return f != $ac_func;
5182
rm -f conftest.$ac_objext conftest$ac_exeext
5183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5184
(eval $ac_link) 2>conftest.er1
5186
grep -v '^ *+' conftest.er1 >conftest.err
5188
cat conftest.err >&5
5189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190
(exit $ac_status); } &&
5191
{ ac_try='test -z "$ac_c_werror_flag"
5192
|| test ! -s conftest.err'
5193
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197
(exit $ac_status); }; } &&
5198
{ ac_try='test -s conftest$ac_exeext'
5199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203
(exit $ac_status); }; }; then
5204
eval "$as_ac_var=yes"
5206
echo "$as_me: failed program was:" >&5
5207
sed 's/^/| /' conftest.$ac_ext >&5
5209
eval "$as_ac_var=no"
5211
rm -f conftest.err conftest.$ac_objext \
5212
conftest$ac_exeext conftest.$ac_ext
5214
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5215
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5216
if test `eval echo '${'$as_ac_var'}'` = yes; then
5217
cat >>confdefs.h <<_ACEOF
5218
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5225
for ac_func in remove
5227
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5228
echo "$as_me:$LINENO: checking for $ac_func" >&5
5229
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5230
if eval "test \"\${$as_ac_var+set}\" = set"; then
5231
echo $ECHO_N "(cached) $ECHO_C" >&6
5233
cat >conftest.$ac_ext <<_ACEOF
5236
cat confdefs.h >>conftest.$ac_ext
5237
cat >>conftest.$ac_ext <<_ACEOF
5238
/* end confdefs.h. */
5239
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5240
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5241
#define $ac_func innocuous_$ac_func
5243
/* System header to define __stub macros and hopefully few prototypes,
5244
which can conflict with char $ac_func (); below.
5245
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5246
<limits.h> exists even on freestanding compilers. */
5249
# include <limits.h>
5251
# include <assert.h>
5256
/* Override any gcc2 internal prototype to avoid an error. */
5261
/* We use char because int might match the return type of a gcc2
5262
builtin and then its argument prototype would still apply. */
5264
/* The GNU C library defines this for functions which it implements
5265
to always fail with ENOSYS. Some functions are actually named
5266
something starting with __ and the normal name is an alias. */
5267
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5270
char (*f) () = $ac_func;
5279
return f != $ac_func;
5284
rm -f conftest.$ac_objext conftest$ac_exeext
5285
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5286
(eval $ac_link) 2>conftest.er1
5288
grep -v '^ *+' conftest.er1 >conftest.err
5290
cat conftest.err >&5
5291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5292
(exit $ac_status); } &&
5293
{ ac_try='test -z "$ac_c_werror_flag"
5294
|| test ! -s conftest.err'
5295
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5298
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299
(exit $ac_status); }; } &&
5300
{ ac_try='test -s conftest$ac_exeext'
5301
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5304
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305
(exit $ac_status); }; }; then
5306
eval "$as_ac_var=yes"
5308
echo "$as_me: failed program was:" >&5
5309
sed 's/^/| /' conftest.$ac_ext >&5
5311
eval "$as_ac_var=no"
5313
rm -f conftest.err conftest.$ac_objext \
5314
conftest$ac_exeext conftest.$ac_ext
5316
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5317
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5318
if test `eval echo '${'$as_ac_var'}'` = yes; then
5319
cat >>confdefs.h <<_ACEOF
5320
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5325
echo "$as_me:$LINENO: checking \"if remove is defined in unistd.h\"" >&5
5326
echo $ECHO_N "checking \"if remove is defined in unistd.h\"... $ECHO_C" >&6
5327
cat >conftest.$ac_ext <<_ACEOF
5330
cat confdefs.h >>conftest.$ac_ext
5331
cat >>conftest.$ac_ext <<_ACEOF
5332
/* end confdefs.h. */
5339
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340
$EGREP "yes" >/dev/null 2>&1; then
5342
echo "$as_me:$LINENO: result: yes" >&5
5343
echo "${ECHO_T}yes" >&6
5348
echo "$as_me:$LINENO: result: no" >&5
5349
echo "${ECHO_T}no" >&6
5350
cat >>confdefs.h <<\_ACEOF
5351
#define remove unlink
5363
for ac_func in truncate
5365
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5366
echo "$as_me:$LINENO: checking for $ac_func" >&5
5367
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5368
if eval "test \"\${$as_ac_var+set}\" = set"; then
5369
echo $ECHO_N "(cached) $ECHO_C" >&6
5371
cat >conftest.$ac_ext <<_ACEOF
5374
cat confdefs.h >>conftest.$ac_ext
5375
cat >>conftest.$ac_ext <<_ACEOF
5376
/* end confdefs.h. */
5377
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5378
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5379
#define $ac_func innocuous_$ac_func
5381
/* System header to define __stub macros and hopefully few prototypes,
5382
which can conflict with char $ac_func (); below.
5383
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5384
<limits.h> exists even on freestanding compilers. */
5387
# include <limits.h>
5389
# include <assert.h>
5394
/* Override any gcc2 internal prototype to avoid an error. */
5399
/* We use char because int might match the return type of a gcc2
5400
builtin and then its argument prototype would still apply. */
5402
/* The GNU C library defines this for functions which it implements
5403
to always fail with ENOSYS. Some functions are actually named
5404
something starting with __ and the normal name is an alias. */
5405
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5408
char (*f) () = $ac_func;
5417
return f != $ac_func;
5422
rm -f conftest.$ac_objext conftest$ac_exeext
5423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424
(eval $ac_link) 2>conftest.er1
5426
grep -v '^ *+' conftest.er1 >conftest.err
5428
cat conftest.err >&5
5429
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430
(exit $ac_status); } &&
5431
{ ac_try='test -z "$ac_c_werror_flag"
5432
|| test ! -s conftest.err'
5433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437
(exit $ac_status); }; } &&
5438
{ ac_try='test -s conftest$ac_exeext'
5439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5443
(exit $ac_status); }; }; then
5444
eval "$as_ac_var=yes"
5446
echo "$as_me: failed program was:" >&5
5447
sed 's/^/| /' conftest.$ac_ext >&5
5449
eval "$as_ac_var=no"
5451
rm -f conftest.err conftest.$ac_objext \
5452
conftest$ac_exeext conftest.$ac_ext
5454
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5455
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5456
if test `eval echo '${'$as_ac_var'}'` = yes; then
5457
cat >>confdefs.h <<_ACEOF
5458
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5464
if test "$have_truncate" != yes ; then
5466
for ac_func in ftruncate
5468
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5469
echo "$as_me:$LINENO: checking for $ac_func" >&5
5470
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5471
if eval "test \"\${$as_ac_var+set}\" = set"; then
5472
echo $ECHO_N "(cached) $ECHO_C" >&6
5474
cat >conftest.$ac_ext <<_ACEOF
5477
cat confdefs.h >>conftest.$ac_ext
5478
cat >>conftest.$ac_ext <<_ACEOF
5479
/* end confdefs.h. */
5480
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5481
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5482
#define $ac_func innocuous_$ac_func
5484
/* System header to define __stub macros and hopefully few prototypes,
5485
which can conflict with char $ac_func (); below.
5486
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5487
<limits.h> exists even on freestanding compilers. */
5490
# include <limits.h>
5492
# include <assert.h>
5497
/* Override any gcc2 internal prototype to avoid an error. */
5502
/* We use char because int might match the return type of a gcc2
5503
builtin and then its argument prototype would still apply. */
5505
/* The GNU C library defines this for functions which it implements
5506
to always fail with ENOSYS. Some functions are actually named
5507
something starting with __ and the normal name is an alias. */
5508
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5511
char (*f) () = $ac_func;
5520
return f != $ac_func;
5525
rm -f conftest.$ac_objext conftest$ac_exeext
5526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5527
(eval $ac_link) 2>conftest.er1
5529
grep -v '^ *+' conftest.er1 >conftest.err
5531
cat conftest.err >&5
5532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533
(exit $ac_status); } &&
5534
{ ac_try='test -z "$ac_c_werror_flag"
5535
|| test ! -s conftest.err'
5536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540
(exit $ac_status); }; } &&
5541
{ ac_try='test -s conftest$ac_exeext'
5542
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546
(exit $ac_status); }; }; then
5547
eval "$as_ac_var=yes"
5549
echo "$as_me: failed program was:" >&5
5550
sed 's/^/| /' conftest.$ac_ext >&5
5552
eval "$as_ac_var=no"
5554
rm -f conftest.err conftest.$ac_objext \
5555
conftest$ac_exeext conftest.$ac_ext
5557
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5558
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5559
if test `eval echo '${'$as_ac_var'}'` = yes; then
5560
cat >>confdefs.h <<_ACEOF
5561
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5567
if test "$have_ftruncate" != yes ; then
5569
for ac_func in chsize
5571
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5572
echo "$as_me:$LINENO: checking for $ac_func" >&5
5573
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5574
if eval "test \"\${$as_ac_var+set}\" = set"; then
5575
echo $ECHO_N "(cached) $ECHO_C" >&6
5577
cat >conftest.$ac_ext <<_ACEOF
5580
cat confdefs.h >>conftest.$ac_ext
5581
cat >>conftest.$ac_ext <<_ACEOF
5582
/* end confdefs.h. */
5583
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5584
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5585
#define $ac_func innocuous_$ac_func
5587
/* System header to define __stub macros and hopefully few prototypes,
5588
which can conflict with char $ac_func (); below.
5589
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590
<limits.h> exists even on freestanding compilers. */
5593
# include <limits.h>
5595
# include <assert.h>
5600
/* Override any gcc2 internal prototype to avoid an error. */
5605
/* We use char because int might match the return type of a gcc2
5606
builtin and then its argument prototype would still apply. */
5608
/* The GNU C library defines this for functions which it implements
5609
to always fail with ENOSYS. Some functions are actually named
5610
something starting with __ and the normal name is an alias. */
5611
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5614
char (*f) () = $ac_func;
5623
return f != $ac_func;
5628
rm -f conftest.$ac_objext conftest$ac_exeext
5629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5630
(eval $ac_link) 2>conftest.er1
5632
grep -v '^ *+' conftest.er1 >conftest.err
5634
cat conftest.err >&5
5635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636
(exit $ac_status); } &&
5637
{ ac_try='test -z "$ac_c_werror_flag"
5638
|| test ! -s conftest.err'
5639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643
(exit $ac_status); }; } &&
5644
{ ac_try='test -s conftest$ac_exeext'
5645
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649
(exit $ac_status); }; }; then
5650
eval "$as_ac_var=yes"
5652
echo "$as_me: failed program was:" >&5
5653
sed 's/^/| /' conftest.$ac_ext >&5
5655
eval "$as_ac_var=no"
5657
rm -f conftest.err conftest.$ac_objext \
5658
conftest$ac_exeext conftest.$ac_ext
5660
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5661
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5662
if test `eval echo '${'$as_ac_var'}'` = yes; then
5663
cat >>confdefs.h <<_ACEOF
5664
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5674
for ac_func in setenv
5676
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5677
echo "$as_me:$LINENO: checking for $ac_func" >&5
5678
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5679
if eval "test \"\${$as_ac_var+set}\" = set"; then
5680
echo $ECHO_N "(cached) $ECHO_C" >&6
5682
cat >conftest.$ac_ext <<_ACEOF
5685
cat confdefs.h >>conftest.$ac_ext
5686
cat >>conftest.$ac_ext <<_ACEOF
5687
/* end confdefs.h. */
5688
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5689
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5690
#define $ac_func innocuous_$ac_func
5692
/* System header to define __stub macros and hopefully few prototypes,
5693
which can conflict with char $ac_func (); below.
5694
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695
<limits.h> exists even on freestanding compilers. */
5698
# include <limits.h>
5700
# include <assert.h>
5705
/* Override any gcc2 internal prototype to avoid an error. */
5710
/* We use char because int might match the return type of a gcc2
5711
builtin and then its argument prototype would still apply. */
5713
/* The GNU C library defines this for functions which it implements
5714
to always fail with ENOSYS. Some functions are actually named
5715
something starting with __ and the normal name is an alias. */
5716
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5719
char (*f) () = $ac_func;
5728
return f != $ac_func;
5733
rm -f conftest.$ac_objext conftest$ac_exeext
5734
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5735
(eval $ac_link) 2>conftest.er1
5737
grep -v '^ *+' conftest.er1 >conftest.err
5739
cat conftest.err >&5
5740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741
(exit $ac_status); } &&
5742
{ ac_try='test -z "$ac_c_werror_flag"
5743
|| test ! -s conftest.err'
5744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748
(exit $ac_status); }; } &&
5749
{ ac_try='test -s conftest$ac_exeext'
5750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754
(exit $ac_status); }; }; then
5755
eval "$as_ac_var=yes"
5757
echo "$as_me: failed program was:" >&5
5758
sed 's/^/| /' conftest.$ac_ext >&5
5760
eval "$as_ac_var=no"
5762
rm -f conftest.err conftest.$ac_objext \
5763
conftest$ac_exeext conftest.$ac_ext
5765
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5766
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5767
if test `eval echo '${'$as_ac_var'}'` = yes; then
5768
cat >>confdefs.h <<_ACEOF
5769
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5775
if test "$have_setenv" != yes ; then
5777
for ac_func in putenv
5779
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5780
echo "$as_me:$LINENO: checking for $ac_func" >&5
5781
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5782
if eval "test \"\${$as_ac_var+set}\" = set"; then
5783
echo $ECHO_N "(cached) $ECHO_C" >&6
5785
cat >conftest.$ac_ext <<_ACEOF
5788
cat confdefs.h >>conftest.$ac_ext
5789
cat >>conftest.$ac_ext <<_ACEOF
5790
/* end confdefs.h. */
5791
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5792
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5793
#define $ac_func innocuous_$ac_func
5795
/* System header to define __stub macros and hopefully few prototypes,
5796
which can conflict with char $ac_func (); below.
5797
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5798
<limits.h> exists even on freestanding compilers. */
5801
# include <limits.h>
5803
# include <assert.h>
5808
/* Override any gcc2 internal prototype to avoid an error. */
5813
/* We use char because int might match the return type of a gcc2
5814
builtin and then its argument prototype would still apply. */
5816
/* The GNU C library defines this for functions which it implements
5817
to always fail with ENOSYS. Some functions are actually named
5818
something starting with __ and the normal name is an alias. */
5819
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5822
char (*f) () = $ac_func;
5831
return f != $ac_func;
5836
rm -f conftest.$ac_objext conftest$ac_exeext
5837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5838
(eval $ac_link) 2>conftest.er1
5840
grep -v '^ *+' conftest.er1 >conftest.err
5842
cat conftest.err >&5
5843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844
(exit $ac_status); } &&
5845
{ ac_try='test -z "$ac_c_werror_flag"
5846
|| test ! -s conftest.err'
5847
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851
(exit $ac_status); }; } &&
5852
{ ac_try='test -s conftest$ac_exeext'
5853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857
(exit $ac_status); }; }; then
5858
eval "$as_ac_var=yes"
5860
echo "$as_me: failed program was:" >&5
5861
sed 's/^/| /' conftest.$ac_ext >&5
5863
eval "$as_ac_var=no"
5865
rm -f conftest.err conftest.$ac_objext \
5866
conftest$ac_exeext conftest.$ac_ext
5868
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5869
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5870
if test `eval echo '${'$as_ac_var'}'` = yes; then
5871
cat >>confdefs.h <<_ACEOF
5872
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5878
if test "$have_putenv" = yes ; then
5879
cat >conftest.$ac_ext <<_ACEOF
5882
cat confdefs.h >>conftest.$ac_ext
5883
cat >>conftest.$ac_ext <<_ACEOF
5884
/* end confdefs.h. */
5888
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5889
$EGREP "putenv" >/dev/null 2>&1; then
5890
have_putenv_prototype=yes
5894
if test "$have_putenv_prototype" = yes ; then
5895
echo "$as_me:$LINENO: checking \"putenv prototype\"" >&5
5896
echo $ECHO_N "checking \"putenv prototype\"... $ECHO_C" >&6
5897
cat >conftest.$ac_ext <<_ACEOF
5900
cat confdefs.h >>conftest.$ac_ext
5901
cat >>conftest.$ac_ext <<_ACEOF
5902
/* end confdefs.h. */
5906
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5907
$EGREP "[^A-Za-zo-9_]putenv[ ]*\(.*const.*\)[ ]*;" >/dev/null 2>&1; then
5908
echo "$as_me:$LINENO: result: correct" >&5
5909
echo "${ECHO_T}correct" >&6
5912
echo "$as_me:$LINENO: result: no const" >&5
5913
echo "${ECHO_T}no const" >&6
5914
cat >>confdefs.h <<\_ACEOF
5915
#define NON_CONST_PUTENV_PROTOTYPE 1
5926
if test no != "$with_posix_regex"; then
5928
for ac_func in regcomp
5930
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5931
echo "$as_me:$LINENO: checking for $ac_func" >&5
5932
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5933
if eval "test \"\${$as_ac_var+set}\" = set"; then
5934
echo $ECHO_N "(cached) $ECHO_C" >&6
5936
cat >conftest.$ac_ext <<_ACEOF
5939
cat confdefs.h >>conftest.$ac_ext
5940
cat >>conftest.$ac_ext <<_ACEOF
5941
/* end confdefs.h. */
5942
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5943
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5944
#define $ac_func innocuous_$ac_func
5946
/* System header to define __stub macros and hopefully few prototypes,
5947
which can conflict with char $ac_func (); below.
5948
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5949
<limits.h> exists even on freestanding compilers. */
5952
# include <limits.h>
5954
# include <assert.h>
5959
/* Override any gcc2 internal prototype to avoid an error. */
5964
/* We use char because int might match the return type of a gcc2
5965
builtin and then its argument prototype would still apply. */
5967
/* The GNU C library defines this for functions which it implements
5968
to always fail with ENOSYS. Some functions are actually named
5969
something starting with __ and the normal name is an alias. */
5970
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5973
char (*f) () = $ac_func;
5982
return f != $ac_func;
5987
rm -f conftest.$ac_objext conftest$ac_exeext
5988
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5989
(eval $ac_link) 2>conftest.er1
5991
grep -v '^ *+' conftest.er1 >conftest.err
5993
cat conftest.err >&5
5994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
(exit $ac_status); } &&
5996
{ ac_try='test -z "$ac_c_werror_flag"
5997
|| test ! -s conftest.err'
5998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002
(exit $ac_status); }; } &&
6003
{ ac_try='test -s conftest$ac_exeext'
6004
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008
(exit $ac_status); }; }; then
6009
eval "$as_ac_var=yes"
6011
echo "$as_me: failed program was:" >&5
6012
sed 's/^/| /' conftest.$ac_ext >&5
6014
eval "$as_ac_var=no"
6016
rm -f conftest.err conftest.$ac_objext \
6017
conftest$ac_exeext conftest.$ac_ext
6019
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6020
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6021
if test `eval echo '${'$as_ac_var'}'` = yes; then
6022
cat >>confdefs.h <<_ACEOF
6023
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6029
echo "$as_me:$LINENO: checking if regcomp works" >&5
6030
echo $ECHO_N "checking if regcomp works... $ECHO_C" >&6
6031
if test "$cross_compiling" = yes; then
6032
cat >>confdefs.h <<\_ACEOF
6033
#define CHECK_REGCOMP 1
6037
cat >conftest.$ac_ext <<_ACEOF
6040
cat confdefs.h >>conftest.$ac_ext
6041
cat >>conftest.$ac_ext <<_ACEOF
6042
/* end confdefs.h. */
6044
#include <sys/types.h>
6048
exit (regcomp (&patbuf, "/hello/", 0) != 0);
6051
rm -f conftest$ac_exeext
6052
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6053
(eval $ac_link) 2>&5
6055
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6057
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6061
(exit $ac_status); }; }; then
6064
echo "$as_me: program exited with status $ac_status" >&5
6065
echo "$as_me: failed program was:" >&5
6066
sed 's/^/| /' conftest.$ac_ext >&5
6071
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6073
echo "$as_me:$LINENO: result: $regcomp_works" >&5
6074
echo "${ECHO_T}$regcomp_works" >&6
6075
if test yes != "$regcomp_works"; then
6076
cat >>confdefs.h <<\_ACEOF
6077
#define REGCOMP_BROKEN 1
6085
{ echo "$as_me:$LINENO: checking \"for missing prototypes\"..." >&5
6086
echo "$as_me: checking \"for missing prototypes\"..." >&6;}
6090
if test "$have_remove" = yes ; then
6091
cat >conftest.$ac_ext <<_ACEOF
6094
cat confdefs.h >>conftest.$ac_ext
6095
cat >>conftest.$ac_ext <<_ACEOF
6096
/* end confdefs.h. */
6100
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6101
$EGREP "[^A-Za-z0-9_]remove([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6104
cat >>confdefs.h <<\_ACEOF
6105
#define NEED_PROTO_REMOVE 1
6107
echo "$as_me:$LINENO: result: adding prototype for remove" >&5
6108
echo "${ECHO_T}adding prototype for remove" >&6
6113
cat >conftest.$ac_ext <<_ACEOF
6116
cat confdefs.h >>conftest.$ac_ext
6117
cat >>conftest.$ac_ext <<_ACEOF
6118
/* end confdefs.h. */
6122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123
$EGREP "[^A-Za-z0-9_]unlink([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6126
cat >>confdefs.h <<\_ACEOF
6127
#define NEED_PROTO_UNLINK 1
6129
echo "$as_me:$LINENO: result: adding prototype for unlink" >&5
6130
echo "${ECHO_T}adding prototype for unlink" >&6
6135
cat >conftest.$ac_ext <<_ACEOF
6138
cat confdefs.h >>conftest.$ac_ext
6139
cat >>conftest.$ac_ext <<_ACEOF
6140
/* end confdefs.h. */
6144
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6145
$EGREP "[^A-Za-z0-9_]malloc([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6148
cat >>confdefs.h <<\_ACEOF
6149
#define NEED_PROTO_MALLOC 1
6151
echo "$as_me:$LINENO: result: adding prototype for malloc" >&5
6152
echo "${ECHO_T}adding prototype for malloc" >&6
6156
cat >conftest.$ac_ext <<_ACEOF
6159
cat confdefs.h >>conftest.$ac_ext
6160
cat >>conftest.$ac_ext <<_ACEOF
6161
/* end confdefs.h. */
6165
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6166
$EGREP "[^A-Za-z0-9_]getenv([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6169
cat >>confdefs.h <<\_ACEOF
6170
#define NEED_PROTO_GETENV 1
6172
echo "$as_me:$LINENO: result: adding prototype for getenv" >&5
6173
echo "${ECHO_T}adding prototype for getenv" >&6
6177
cat >conftest.$ac_ext <<_ACEOF
6180
cat confdefs.h >>conftest.$ac_ext
6181
cat >>conftest.$ac_ext <<_ACEOF
6182
/* end confdefs.h. */
6183
#include <sys/stat.h>
6186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6187
$EGREP "[^A-Za-z0-9_]stat([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6190
cat >>confdefs.h <<\_ACEOF
6191
#define NEED_PROTO_STAT 1
6193
echo "$as_me:$LINENO: result: adding prototype for stat" >&5
6194
echo "${ECHO_T}adding prototype for stat" >&6
6198
cat >conftest.$ac_ext <<_ACEOF
6201
cat confdefs.h >>conftest.$ac_ext
6202
cat >>conftest.$ac_ext <<_ACEOF
6203
/* end confdefs.h. */
6204
#include <sys/stat.h>
6207
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208
$EGREP "[^A-Za-z0-9_]lstat([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6211
cat >>confdefs.h <<\_ACEOF
6212
#define NEED_PROTO_LSTAT 1
6214
echo "$as_me:$LINENO: result: adding prototype for lstat" >&5
6215
echo "${ECHO_T}adding prototype for lstat" >&6
6219
if test "$have_fgetpos" = yes ; then
6220
cat >conftest.$ac_ext <<_ACEOF
6223
cat confdefs.h >>conftest.$ac_ext
6224
cat >>conftest.$ac_ext <<_ACEOF
6225
/* end confdefs.h. */
6229
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230
$EGREP "[^A-Za-z0-9_]fgetpos([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6233
cat >>confdefs.h <<\_ACEOF
6234
#define NEED_PROTO_FGETPOS 1
6236
echo "$as_me:$LINENO: result: adding prototype for fgetpos" >&5
6237
echo "${ECHO_T}adding prototype for fgetpos" >&6
6242
if test "$have_truncate" = yes ; then
6243
cat >conftest.$ac_ext <<_ACEOF
6246
cat confdefs.h >>conftest.$ac_ext
6247
cat >>conftest.$ac_ext <<_ACEOF
6248
/* end confdefs.h. */
6252
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6253
$EGREP "[^A-Za-z0-9_]truncate([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6256
cat >>confdefs.h <<\_ACEOF
6257
#define NEED_PROTO_TRUNCATE 1
6259
echo "$as_me:$LINENO: result: adding prototype for truncate" >&5
6260
echo "${ECHO_T}adding prototype for truncate" >&6
6265
if test "$have_ftruncate" = yes ; then
6266
cat >conftest.$ac_ext <<_ACEOF
6269
cat confdefs.h >>conftest.$ac_ext
6270
cat >>conftest.$ac_ext <<_ACEOF
6271
/* end confdefs.h. */
6275
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6276
$EGREP "[^A-Za-z0-9_]ftruncate([ ]+[A-Za-z0-9_]*)?\(" >/dev/null 2>&1; then
6279
cat >>confdefs.h <<\_ACEOF
6280
#define NEED_PROTO_FTRUNCATE 1
6282
echo "$as_me:$LINENO: result: adding prototype for ftruncate" >&5
6283
echo "${ECHO_T}adding prototype for ftruncate" >&6
6293
if test "$enable_maintainer_mode" = yes ; then
6294
echo "$as_me:$LINENO: result: creating maintainer Makefile" >&5
6295
echo "${ECHO_T}creating maintainer Makefile" >&6
6296
ln -s maintainer.mak Makefile
6299
makefile_out=Makefile
6301
ac_config_files="$ac_config_files $makefile_out"
6302
cat >confcache <<\_ACEOF
6303
# This file is a shell script that caches the results of configure
6304
# tests run on this system so they can be shared between configure
6305
# scripts and configure runs, see configure's option --config-cache.
6306
# It is not useful on other systems. If it contains results you don't
6307
# want to keep, you may remove or edit it.
6309
# config.status only pays attention to the cache file if you give it
6310
# the --recheck option to rerun configure.
6312
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6313
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6318
# The following way of writing the cache mishandles newlines in values,
6319
# but we know of no workaround that is simple, portable, and efficient.
6320
# So, don't put newlines in cache variables' values.
6321
# Ultrix sh set writes to stderr and can't be redirected directly,
6322
# and sets the high bit in the cache file unless we assign to the vars.
6325
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6327
# `set' does not quote correctly, so add quotes (double-quote
6328
# substitution turns \\\\ into \\, and sed turns \\ into \).
6331
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6334
# `set' quotes correctly as required by POSIX, so do not add quotes.
6336
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6343
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6345
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6347
if diff $cache_file confcache >/dev/null 2>&1; then :; else
6348
if test -w $cache_file; then
6349
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6350
cat confcache >$cache_file
6352
echo "not updating unwritable cache $cache_file"
6357
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6358
# Let make expand exec_prefix.
6359
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6361
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6362
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6363
# trailing colons and then remove the whole line if VPATH becomes empty
6364
# (actually we leave an empty line to preserve line numbers).
6365
if test "x$srcdir" = x.; then
6366
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6367
s/:*\$(srcdir):*/:/;
6368
s/:*\${srcdir}:*/:/;
6370
s/^\([^=]*=[ ]*\):*/\1/;
6376
DEFS=-DHAVE_CONFIG_H
6380
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6381
# 1. Remove the extension, and $U if already installed.
6382
ac_i=`echo "$ac_i" |
6383
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6385
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6386
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6390
LTLIBOBJS=$ac_ltlibobjs
6394
: ${CONFIG_STATUS=./config.status}
6395
ac_clean_files_save=$ac_clean_files
6396
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6397
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6398
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6399
cat >$CONFIG_STATUS <<_ACEOF
6401
# Generated by $as_me.
6402
# Run this file to recreate the current configuration.
6403
# Compiler output produced by configure, useful for debugging
6404
# configure, is in config.log if it exists.
6409
SHELL=\${CONFIG_SHELL-$SHELL}
6412
cat >>$CONFIG_STATUS <<\_ACEOF
6413
## --------------------- ##
6414
## M4sh Initialization. ##
6415
## --------------------- ##
6417
# Be Bourne compatible
6418
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6421
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6422
# is contrary to our usage. Disable this feature.
6423
alias -g '${1+"$@"}'='"$@"'
6424
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6427
DUALCASE=1; export DUALCASE # for MKS sh
6429
# Support unset when possible.
6430
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6437
# Work around bugs in pre-3.0 UWIN ksh.
6438
$as_unset ENV MAIL MAILPATH
6445
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6446
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6447
LC_TELEPHONE LC_TIME
6449
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6450
eval $as_var=C; export $as_var
6456
# Required to use basename.
6457
if expr a : '\(a\)' >/dev/null 2>&1; then
6463
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6464
as_basename=basename
6470
# Name of the executable.
6471
as_me=`$as_basename "$0" ||
6472
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6473
X"$0" : 'X\(//\)$' \| \
6474
X"$0" : 'X\(/\)$' \| \
6475
. : '\(.\)' 2>/dev/null ||
6477
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6478
/^X\/\(\/\/\)$/{ s//\1/; q; }
6479
/^X\/\(\/\).*/{ s//\1/; q; }
6483
# PATH needs CR, and LINENO needs CR and PATH.
6484
# Avoid depending upon Character Ranges.
6485
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6486
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6487
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6488
as_cr_digits='0123456789'
6489
as_cr_alnum=$as_cr_Letters$as_cr_digits
6491
# The user is always right.
6492
if test "${PATH_SEPARATOR+set}" != set; then
6493
echo "#! /bin/sh" >conf$$.sh
6494
echo "exit 0" >>conf$$.sh
6496
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6507
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6508
test "x$as_lineno_1" != "x$as_lineno_2" &&
6509
test "x$as_lineno_3" = "x$as_lineno_2" || {
6510
# Find who we are. Look in the path if we contain no path at all
6513
*[\\/]* ) as_myself=$0 ;;
6514
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518
test -z "$as_dir" && as_dir=.
6519
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6524
# We did not find ourselves, most probably we were run as `sh COMMAND'
6525
# in which case we are not to be found in the path.
6526
if test "x$as_myself" = x; then
6529
if test ! -f "$as_myself"; then
6530
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6531
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6532
{ (exit 1); exit 1; }; }
6534
case $CONFIG_SHELL in
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6537
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6540
test -z "$as_dir" && as_dir=.
6541
for as_base in sh bash ksh sh5; do
6544
if ("$as_dir/$as_base" -c '
6547
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6548
test "x$as_lineno_1" != "x$as_lineno_2" &&
6549
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6550
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6551
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6552
CONFIG_SHELL=$as_dir/$as_base
6554
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6562
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6563
# uniformly replaced by the line number. The first 'sed' inserts a
6564
# line-number line before each line; the second 'sed' does the real
6565
# work. The second script uses 'N' to pair each line-number line
6566
# with the numbered line, and appends trailing '-' during
6567
# substitution so that $LINENO is not a special case at line end.
6568
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6569
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6570
sed '=' <$as_myself |
6575
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6578
s,^['$as_cr_digits']*\n,,
6580
chmod +x $as_me.lineno ||
6581
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6582
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6583
{ (exit 1); exit 1; }; }
6585
# Don't try to exec as it changes $[0], causing all sort of problems
6586
# (the dirname of $[0] is not the place where we might find the
6587
# original and so on. Autoconf is especially sensible to this).
6589
# Exit status is that of the last command.
6594
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6595
*c*,-n*) ECHO_N= ECHO_C='
6597
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6598
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6601
if expr a : '\(a\)' >/dev/null 2>&1; then
6607
rm -f conf$$ conf$$.exe conf$$.file
6609
if ln -s conf$$.file conf$$ 2>/dev/null; then
6610
# We could just check for DJGPP; but this test a) works b) is more generic
6611
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6612
if test -f conf$$.exe; then
6613
# Don't use ln at all; we don't have any links
6618
elif ln conf$$.file conf$$ 2>/dev/null; then
6623
rm -f conf$$ conf$$.exe conf$$.file
6625
if mkdir -p . 2>/dev/null; then
6628
test -d ./-p && rmdir ./-p
6632
as_executable_p="test -f"
6634
# Sed expression to map a string onto a valid CPP name.
6635
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6637
# Sed expression to map a string onto a valid variable name.
6638
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6642
# We need space, tab and new line, in precisely that order.
6652
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6653
# report actual input values of CONFIG_FILES etc. instead of their
6654
# values after options handling. Logging --version etc. is OK.
6658
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6659
## Running $as_me. ##
6664
This file was extended by $as_me, which was
6665
generated by GNU Autoconf 2.59. Invocation command line was
6667
CONFIG_FILES = $CONFIG_FILES
6668
CONFIG_HEADERS = $CONFIG_HEADERS
6669
CONFIG_LINKS = $CONFIG_LINKS
6670
CONFIG_COMMANDS = $CONFIG_COMMANDS
6674
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6678
# Files that config.status was made for.
6679
if test -n "$ac_config_files"; then
6680
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6683
if test -n "$ac_config_headers"; then
6684
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6687
if test -n "$ac_config_links"; then
6688
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6691
if test -n "$ac_config_commands"; then
6692
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6695
cat >>$CONFIG_STATUS <<\_ACEOF
6698
\`$as_me' instantiates files from templates according to the
6699
current configuration.
6701
Usage: $0 [OPTIONS] [FILE]...
6703
-h, --help print this help, then exit
6704
-V, --version print version number, then exit
6705
-q, --quiet do not print progress messages
6706
-d, --debug don't remove temporary files
6707
--recheck update $as_me by reconfiguring in the same conditions
6708
--file=FILE[:TEMPLATE]
6709
instantiate the configuration file FILE
6710
--header=FILE[:TEMPLATE]
6711
instantiate the configuration header FILE
6713
Configuration files:
6716
Configuration headers:
6719
Report bugs to <bug-autoconf@gnu.org>."
6722
cat >>$CONFIG_STATUS <<_ACEOF
6725
configured by $0, generated by GNU Autoconf 2.59,
6726
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6728
Copyright (C) 2003 Free Software Foundation, Inc.
6729
This config.status script is free software; the Free Software Foundation
6730
gives unlimited permission to copy, distribute and modify it."
6734
cat >>$CONFIG_STATUS <<\_ACEOF
6735
# If no file are specified by the user, then we need to provide default
6736
# value. By we need to know if files were specified by the user.
6742
ac_option=`expr "x$1" : 'x\([^=]*\)='`
6743
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6751
*) # This is not an option, so the user has probably given explicit
6754
ac_need_defaults=false;;
6758
# Handling of the options.
6760
cat >>$CONFIG_STATUS <<\_ACEOF
6761
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6763
--version | --vers* | -V )
6764
echo "$ac_cs_version"; exit 0 ;;
6766
# Conflict between --help and --header
6767
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
6768
Try \`$0 --help' for more information." >&5
6769
echo "$as_me: error: ambiguous option: $1
6770
Try \`$0 --help' for more information." >&2;}
6771
{ (exit 1); exit 1; }; };;
6772
--help | --hel | -h )
6773
echo "$ac_cs_usage"; exit 0 ;;
6774
--debug | --d* | -d )
6776
--file | --fil | --fi | --f )
6778
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6779
ac_need_defaults=false;;
6780
--header | --heade | --head | --hea )
6782
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6783
ac_need_defaults=false;;
6784
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6785
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6789
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6790
Try \`$0 --help' for more information." >&5
6791
echo "$as_me: error: unrecognized option: $1
6792
Try \`$0 --help' for more information." >&2;}
6793
{ (exit 1); exit 1; }; } ;;
6795
*) ac_config_targets="$ac_config_targets $1" ;;
6801
ac_configure_extra_args=
6803
if $ac_cs_silent; then
6805
ac_configure_extra_args="$ac_configure_extra_args --silent"
6809
cat >>$CONFIG_STATUS <<_ACEOF
6810
if \$ac_cs_recheck; then
6811
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6812
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6821
cat >>$CONFIG_STATUS <<\_ACEOF
6822
for ac_config_target in $ac_config_targets
6824
case "$ac_config_target" in
6825
# Handling of arguments.
6826
"$makefile_out" ) CONFIG_FILES="$CONFIG_FILES $makefile_out" ;;
6827
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6828
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6829
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6830
{ (exit 1); exit 1; }; };;
6834
# If the user did not use the arguments to specify the items to instantiate,
6835
# then the envvar interface is used. Set only those that are not.
6836
# We use the long form for the default assignment because of an extremely
6837
# bizarre bug on SunOS 4.1.3.
6838
if $ac_need_defaults; then
6839
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6840
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6843
# Have a temporary directory for convenience. Make it in the build tree
6844
# simply because there is no reason to put it here, and in addition,
6845
# creating and moving files from /tmp can sometimes cause problems.
6846
# Create a temporary directory, and hook for its removal unless debugging.
6849
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6850
trap '{ (exit 1); exit 1; }' 1 2 13 15
6853
# Create a (secure) tmp directory for tmp files.
6856
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6857
test -n "$tmp" && test -d "$tmp"
6860
tmp=./confstat$$-$RANDOM
6861
(umask 077 && mkdir $tmp)
6864
echo "$me: cannot create a temporary directory in ." >&2
6865
{ (exit 1); exit 1; }
6870
cat >>$CONFIG_STATUS <<_ACEOF
6873
# CONFIG_FILES section.
6876
# No need to generate the scripts if there are no CONFIG_FILES.
6877
# This happens for instance when ./config.status config.h
6878
if test -n "\$CONFIG_FILES"; then
6879
# Protect against being on the right side of a sed subst in config.status.
6880
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6881
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6882
s,@SHELL@,$SHELL,;t t
6883
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6884
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6885
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6886
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6887
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6888
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6889
s,@exec_prefix@,$exec_prefix,;t t
6890
s,@prefix@,$prefix,;t t
6891
s,@program_transform_name@,$program_transform_name,;t t
6892
s,@bindir@,$bindir,;t t
6893
s,@sbindir@,$sbindir,;t t
6894
s,@libexecdir@,$libexecdir,;t t
6895
s,@datadir@,$datadir,;t t
6896
s,@sysconfdir@,$sysconfdir,;t t
6897
s,@sharedstatedir@,$sharedstatedir,;t t
6898
s,@localstatedir@,$localstatedir,;t t
6899
s,@libdir@,$libdir,;t t
6900
s,@includedir@,$includedir,;t t
6901
s,@oldincludedir@,$oldincludedir,;t t
6902
s,@infodir@,$infodir,;t t
6903
s,@mandir@,$mandir,;t t
6904
s,@build_alias@,$build_alias,;t t
6905
s,@host_alias@,$host_alias,;t t
6906
s,@target_alias@,$target_alias,;t t
6908
s,@ECHO_C@,$ECHO_C,;t t
6909
s,@ECHO_N@,$ECHO_N,;t t
6910
s,@ECHO_T@,$ECHO_T,;t t
6912
s,@install_targets@,$install_targets,;t t
6914
s,@CFLAGS@,$CFLAGS,;t t
6915
s,@LDFLAGS@,$LDFLAGS,;t t
6916
s,@CPPFLAGS@,$CPPFLAGS,;t t
6917
s,@ac_ct_CC@,$ac_ct_CC,;t t
6918
s,@EXEEXT@,$EXEEXT,;t t
6919
s,@OBJEXT@,$OBJEXT,;t t
6921
s,@STRIP@,$STRIP,;t t
6922
s,@sort_found@,$sort_found,;t t
6924
s,@EGREP@,$EGREP,;t t
6925
s,@LIBOBJS@,$LIBOBJS,;t t
6926
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6931
cat >>$CONFIG_STATUS <<\_ACEOF
6932
# Split the substitutions into bite-sized pieces for seds with
6933
# small command number limits, like on Digital OSF/1 and HP-UX.
6935
ac_sed_frag=1 # Number of current file.
6936
ac_beg=1 # First line for current file.
6937
ac_end=$ac_max_sed_lines # Line after last line for current file.
6940
while $ac_more_lines; do
6941
if test $ac_beg -gt 1; then
6942
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6944
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6946
if test ! -s $tmp/subs.frag; then
6949
# The purpose of the label and of the branching condition is to
6950
# speed up the sed processing (if there are no `@' at all, there
6951
# is no need to browse any of the substitutions).
6952
# These are the two extra sed commands mentioned above.
6954
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6955
if test -z "$ac_sed_cmds"; then
6956
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6958
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6960
ac_sed_frag=`expr $ac_sed_frag + 1`
6962
ac_end=`expr $ac_end + $ac_max_sed_lines`
6965
if test -z "$ac_sed_cmds"; then
6968
fi # test -n "$CONFIG_FILES"
6971
cat >>$CONFIG_STATUS <<\_ACEOF
6972
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6973
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6975
- | *:- | *:-:* ) # input from stdin
6977
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6978
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6979
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6980
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6981
* ) ac_file_in=$ac_file.in ;;
6984
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6985
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6986
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6987
X"$ac_file" : 'X\(//\)[^/]' \| \
6988
X"$ac_file" : 'X\(//\)$' \| \
6989
X"$ac_file" : 'X\(/\)' \| \
6990
. : '\(.\)' 2>/dev/null ||
6992
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6993
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6994
/^X\(\/\/\)$/{ s//\1/; q; }
6995
/^X\(\/\).*/{ s//\1/; q; }
6997
{ if $as_mkdir_p; then
7002
while test ! -d "$as_dir"; do
7003
as_dirs="$as_dir $as_dirs"
7004
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7005
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7006
X"$as_dir" : 'X\(//\)[^/]' \| \
7007
X"$as_dir" : 'X\(//\)$' \| \
7008
X"$as_dir" : 'X\(/\)' \| \
7009
. : '\(.\)' 2>/dev/null ||
7011
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7012
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7013
/^X\(\/\/\)$/{ s//\1/; q; }
7014
/^X\(\/\).*/{ s//\1/; q; }
7017
test ! -n "$as_dirs" || mkdir $as_dirs
7018
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7019
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7020
{ (exit 1); exit 1; }; }; }
7024
if test "$ac_dir" != .; then
7025
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7026
# A "../" for each directory in $ac_dir_suffix.
7027
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7029
ac_dir_suffix= ac_top_builddir=
7033
.) # No --srcdir option. We are building in place.
7035
if test -z "$ac_top_builddir"; then
7038
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7040
[\\/]* | ?:[\\/]* ) # Absolute path.
7041
ac_srcdir=$srcdir$ac_dir_suffix;
7042
ac_top_srcdir=$srcdir ;;
7044
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7045
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7048
# Do not use `cd foo && pwd` to compute absolute paths, because
7049
# the directories may not exist.
7051
.) ac_abs_builddir="$ac_dir";;
7054
.) ac_abs_builddir=`pwd`;;
7055
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7056
*) ac_abs_builddir=`pwd`/"$ac_dir";;
7059
case $ac_abs_builddir in
7060
.) ac_abs_top_builddir=${ac_top_builddir}.;;
7062
case ${ac_top_builddir}. in
7063
.) ac_abs_top_builddir=$ac_abs_builddir;;
7064
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7065
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7068
case $ac_abs_builddir in
7069
.) ac_abs_srcdir=$ac_srcdir;;
7072
.) ac_abs_srcdir=$ac_abs_builddir;;
7073
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7074
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7077
case $ac_abs_builddir in
7078
.) ac_abs_top_srcdir=$ac_top_srcdir;;
7080
case $ac_top_srcdir in
7081
.) ac_abs_top_srcdir=$ac_abs_builddir;;
7082
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7083
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7089
if test x"$ac_file" != x-; then
7090
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7091
echo "$as_me: creating $ac_file" >&6;}
7094
# Let's still pretend it is `configure' which instantiates (i.e., don't
7095
# use $as_me), people would be surprised to read:
7096
# /* config.h. Generated by config.status. */
7097
if test x"$ac_file" = x-; then
7100
configure_input="$ac_file. "
7102
configure_input=$configure_input"Generated from `echo $ac_file_in |
7103
sed 's,.*/,,'` by configure."
7105
# First look for the input files in the build tree, otherwise in the
7107
ac_file_inputs=`IFS=:
7108
for f in $ac_file_in; do
7110
-) echo $tmp/stdin ;;
7112
# Absolute (can't be DOS-style, as IFS=:)
7113
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7114
echo "$as_me: error: cannot find input file: $f" >&2;}
7115
{ (exit 1); exit 1; }; }
7118
if test -f "$f"; then
7121
elif test -f "$srcdir/$f"; then
7126
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7127
echo "$as_me: error: cannot find input file: $f" >&2;}
7128
{ (exit 1); exit 1; }; }
7131
done` || { (exit 1); exit 1; }
7133
cat >>$CONFIG_STATUS <<_ACEOF
7137
cat >>$CONFIG_STATUS <<\_ACEOF
7139
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7140
s,@configure_input@,$configure_input,;t t
7141
s,@srcdir@,$ac_srcdir,;t t
7142
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7143
s,@top_srcdir@,$ac_top_srcdir,;t t
7144
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7145
s,@builddir@,$ac_builddir,;t t
7146
s,@abs_builddir@,$ac_abs_builddir,;t t
7147
s,@top_builddir@,$ac_top_builddir,;t t
7148
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7149
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7151
if test x"$ac_file" != x-; then
7152
mv $tmp/out $ac_file
7160
cat >>$CONFIG_STATUS <<\_ACEOF
7163
# CONFIG_HEADER section.
7166
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7167
# NAME is the cpp macro being defined and VALUE is the value it is being given.
7169
# ac_d sets the value in "#define NAME VALUE" lines.
7170
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7171
ac_dB='[ ].*$,\1#\2'
7174
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7175
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7176
ac_uB='$,\1#\2define\3'
7180
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7181
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7183
- | *:- | *:-:* ) # input from stdin
7185
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7186
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7187
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7188
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7189
* ) ac_file_in=$ac_file.in ;;
7192
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
7193
echo "$as_me: creating $ac_file" >&6;}
7195
# First look for the input files in the build tree, otherwise in the
7197
ac_file_inputs=`IFS=:
7198
for f in $ac_file_in; do
7200
-) echo $tmp/stdin ;;
7202
# Absolute (can't be DOS-style, as IFS=:)
7203
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7204
echo "$as_me: error: cannot find input file: $f" >&2;}
7205
{ (exit 1); exit 1; }; }
7206
# Do quote $f, to prevent DOS paths from being IFS'd.
7209
if test -f "$f"; then
7212
elif test -f "$srcdir/$f"; then
7217
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7218
echo "$as_me: error: cannot find input file: $f" >&2;}
7219
{ (exit 1); exit 1; }; }
7222
done` || { (exit 1); exit 1; }
7223
# Remove the trailing spaces.
7224
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7228
# Transform confdefs.h into two sed scripts, `conftest.defines' and
7229
# `conftest.undefs', that substitutes the proper values into
7230
# config.h.in to produce config.h. The first handles `#define'
7231
# templates, and the second `#undef' templates.
7232
# And first: Protect against being on the right side of a sed subst in
7233
# config.status. Protect against being in an unquoted here document
7235
rm -f conftest.defines conftest.undefs
7236
# Using a here document instead of a string reduces the quoting nightmare.
7237
# Putting comments in sed scripts is not portable.
7239
# `end' is used to avoid that the second main sed command (meant for
7240
# 0-ary CPP macros) applies to n-ary macro definitions.
7241
# See the Autoconf documentation for `clear'.
7242
cat >confdef2sed.sed <<\_ACEOF
7247
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
7249
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
7252
# If some macros were called several times there might be several times
7253
# the same #defines, which is useless. Nevertheless, we may not want to
7254
# sort them, since we want the *last* AC-DEFINE to be honored.
7255
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
7256
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
7257
rm -f confdef2sed.sed
7259
# This sed command replaces #undef with comments. This is necessary, for
7260
# example, in the case of _POSIX_SOURCE, which is predefined and required
7261
# on some systems where configure will not decide to define it.
7262
cat >>conftest.undefs <<\_ACEOF
7263
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
7266
# Break up conftest.defines because some shells have a limit on the size
7267
# of here documents, and old seds have small limits too (100 cmds).
7268
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
7269
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
7270
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
7271
echo ' :' >>$CONFIG_STATUS
7273
while grep . conftest.defines >/dev/null
7275
# Write a limited-size here document to $tmp/defines.sed.
7276
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
7277
# Speed up: don't consider the non `#define' lines.
7278
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
7279
# Work around the forget-to-reset-the-flag bug.
7280
echo 't clr' >>$CONFIG_STATUS
7281
echo ': clr' >>$CONFIG_STATUS
7282
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
7284
sed -f $tmp/defines.sed $tmp/in >$tmp/out
7288
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
7289
rm -f conftest.defines
7290
mv conftest.tail conftest.defines
7292
rm -f conftest.defines
7293
echo ' fi # grep' >>$CONFIG_STATUS
7294
echo >>$CONFIG_STATUS
7296
# Break up conftest.undefs because some shells have a limit on the size
7297
# of here documents, and old seds have small limits too (100 cmds).
7298
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
7300
while grep . conftest.undefs >/dev/null
7302
# Write a limited-size here document to $tmp/undefs.sed.
7303
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
7304
# Speed up: don't consider the non `#undef'
7305
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
7306
# Work around the forget-to-reset-the-flag bug.
7307
echo 't clr' >>$CONFIG_STATUS
7308
echo ': clr' >>$CONFIG_STATUS
7309
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
7311
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
7315
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
7316
rm -f conftest.undefs
7317
mv conftest.tail conftest.undefs
7319
rm -f conftest.undefs
7321
cat >>$CONFIG_STATUS <<\_ACEOF
7322
# Let's still pretend it is `configure' which instantiates (i.e., don't
7323
# use $as_me), people would be surprised to read:
7324
# /* config.h. Generated by config.status. */
7325
if test x"$ac_file" = x-; then
7326
echo "/* Generated by configure. */" >$tmp/config.h
7328
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
7330
cat $tmp/in >>$tmp/config.h
7332
if test x"$ac_file" != x-; then
7333
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
7334
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
7335
echo "$as_me: $ac_file is unchanged" >&6;}
7337
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7338
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7339
X"$ac_file" : 'X\(//\)[^/]' \| \
7340
X"$ac_file" : 'X\(//\)$' \| \
7341
X"$ac_file" : 'X\(/\)' \| \
7342
. : '\(.\)' 2>/dev/null ||
7344
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7345
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7346
/^X\(\/\/\)$/{ s//\1/; q; }
7347
/^X\(\/\).*/{ s//\1/; q; }
7349
{ if $as_mkdir_p; then
7354
while test ! -d "$as_dir"; do
7355
as_dirs="$as_dir $as_dirs"
7356
as_dir=`(dirname "$as_dir") 2>/dev/null ||
7357
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7358
X"$as_dir" : 'X\(//\)[^/]' \| \
7359
X"$as_dir" : 'X\(//\)$' \| \
7360
X"$as_dir" : 'X\(/\)' \| \
7361
. : '\(.\)' 2>/dev/null ||
7363
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7364
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7365
/^X\(\/\/\)$/{ s//\1/; q; }
7366
/^X\(\/\).*/{ s//\1/; q; }
7369
test ! -n "$as_dirs" || mkdir $as_dirs
7370
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7371
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7372
{ (exit 1); exit 1; }; }; }
7375
mv $tmp/config.h $ac_file
7384
cat >>$CONFIG_STATUS <<\_ACEOF
7386
{ (exit 0); exit 0; }
7388
chmod +x $CONFIG_STATUS
7389
ac_clean_files=$ac_clean_files_save
7392
# configure is writing to config.log, and then calls config.status.
7393
# config.status does its own redirection, appending to config.log.
7394
# Unfortunately, on DOS this fails, as config.log is still kept open
7395
# by configure, so config.status won't be able to write to it; its
7396
# output is simply discarded. So we exec the FD to /dev/null,
7397
# effectively closing config.log, so it can be properly (re)opened and
7398
# appended to by config.status. When coming back to configure, we
7399
# need to make the FD available again.
7400
if test "$no_create" != yes; then
7402
ac_config_status_args=
7403
test "$silent" = yes &&
7404
ac_config_status_args="$ac_config_status_args --quiet"
7406
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7408
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7409
# would make configure fail if this is the last instruction.
7410
$ac_cs_success || { (exit 1); exit 1; }