2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/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 -n "`(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
224
as_executable_p="test -f"
226
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
# We need space, tab and new line, in precisely that order.
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245
# so uname gets run too.
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
ac_default_prefix=/usr/local
254
ac_config_libobj_dir=.
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Maximum number of lines to put in a shell here document.
262
# This variable seems obsolete. It should probably be removed, and
263
# only ac_max_sed_lines should be used.
264
: ${ac_max_here_lines=38}
266
# Identity of this package.
273
ac_unique_file="main.c"
274
# Factoring default headers for most tests.
275
ac_includes_default="\
278
# include <sys/types.h>
281
# include <sys/stat.h>
292
# if !STDC_HEADERS && HAVE_MEMORY_H
298
# include <strings.h>
301
# include <inttypes.h>
311
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP PERL HAVE_PERL_TRUE HAVE_PERL_FALSE LIBOBJS LTLIBOBJS'
314
# Initialize some variables set by options.
316
ac_init_version=false
317
# The variables have the same names as the options, with
318
# dashes changed to underlines.
326
program_transform_name=s,x,x,
334
# Installation directory options.
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
336
# and all the variables that are supposed to be based on exec_prefix
337
# by default will actually change.
338
# Use braces instead of parens because sh, perl, etc. also accept them.
339
bindir='${exec_prefix}/bin'
340
sbindir='${exec_prefix}/sbin'
341
libexecdir='${exec_prefix}/libexec'
342
datadir='${prefix}/share'
343
sysconfdir='${prefix}/etc'
344
sharedstatedir='${prefix}/com'
345
localstatedir='${prefix}/var'
346
libdir='${exec_prefix}/lib'
347
includedir='${prefix}/include'
348
oldincludedir='/usr/include'
349
infodir='${prefix}/info'
350
mandir='${prefix}/man'
355
# If the previous option needs an argument, assign it.
356
if test -n "$ac_prev"; then
357
eval "$ac_prev=\$ac_option"
362
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
# Accept the important Cygnus configure options, so we can diagnose typos.
368
-bindir | --bindir | --bindi | --bind | --bin | --bi)
370
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
-build | --build | --buil | --bui | --bu)
374
ac_prev=build_alias ;;
375
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
376
build_alias=$ac_optarg ;;
378
-cache-file | --cache-file | --cache-fil | --cache-fi \
379
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380
ac_prev=cache_file ;;
381
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383
cache_file=$ac_optarg ;;
386
cache_file=config.cache ;;
388
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
datadir=$ac_optarg ;;
394
-disable-* | --disable-*)
395
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396
# Reject names that are not valid shell variable names.
397
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
399
{ (exit 1); exit 1; }; }
400
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401
eval "enable_$ac_feature=no" ;;
403
-enable-* | --enable-*)
404
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405
# Reject names that are not valid shell variable names.
406
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
408
{ (exit 1); exit 1; }; }
409
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
eval "enable_$ac_feature='$ac_optarg'" ;;
416
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418
| --exec | --exe | --ex)
419
ac_prev=exec_prefix ;;
420
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422
| --exec=* | --exe=* | --ex=*)
423
exec_prefix=$ac_optarg ;;
425
-gas | --gas | --ga | --g)
426
# Obsolete; use --with-gas.
429
-help | --help | --hel | --he | -h)
431
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432
ac_init_help=recursive ;;
433
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434
ac_init_help=short ;;
436
-host | --host | --hos | --ho)
437
ac_prev=host_alias ;;
438
-host=* | --host=* | --hos=* | --ho=*)
439
host_alias=$ac_optarg ;;
441
-includedir | --includedir | --includedi | --included | --include \
442
| --includ | --inclu | --incl | --inc)
443
ac_prev=includedir ;;
444
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445
| --includ=* | --inclu=* | --incl=* | --inc=*)
446
includedir=$ac_optarg ;;
448
-infodir | --infodir | --infodi | --infod | --info | --inf)
450
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451
infodir=$ac_optarg ;;
453
-libdir | --libdir | --libdi | --libd)
455
-libdir=* | --libdir=* | --libdi=* | --libd=*)
458
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459
| --libexe | --libex | --libe)
460
ac_prev=libexecdir ;;
461
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462
| --libexe=* | --libex=* | --libe=*)
463
libexecdir=$ac_optarg ;;
465
-localstatedir | --localstatedir | --localstatedi | --localstated \
466
| --localstate | --localstat | --localsta | --localst \
467
| --locals | --local | --loca | --loc | --lo)
468
ac_prev=localstatedir ;;
469
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
471
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472
localstatedir=$ac_optarg ;;
474
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480
# Obsolete; use --without-fp.
483
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
484
| --no-cr | --no-c | -n)
487
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
488
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493
| --oldin | --oldi | --old | --ol | --o)
494
ac_prev=oldincludedir ;;
495
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498
oldincludedir=$ac_optarg ;;
500
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
-program-prefix | --program-prefix | --program-prefi | --program-pref \
506
| --program-pre | --program-pr | --program-p)
507
ac_prev=program_prefix ;;
508
-program-prefix=* | --program-prefix=* | --program-prefi=* \
509
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510
program_prefix=$ac_optarg ;;
512
-program-suffix | --program-suffix | --program-suffi | --program-suff \
513
| --program-suf | --program-su | --program-s)
514
ac_prev=program_suffix ;;
515
-program-suffix=* | --program-suffix=* | --program-suffi=* \
516
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517
program_suffix=$ac_optarg ;;
519
-program-transform-name | --program-transform-name \
520
| --program-transform-nam | --program-transform-na \
521
| --program-transform-n | --program-transform- \
522
| --program-transform | --program-transfor \
523
| --program-transfo | --program-transf \
524
| --program-trans | --program-tran \
525
| --progr-tra | --program-tr | --program-t)
526
ac_prev=program_transform_name ;;
527
-program-transform-name=* | --program-transform-name=* \
528
| --program-transform-nam=* | --program-transform-na=* \
529
| --program-transform-n=* | --program-transform-=* \
530
| --program-transform=* | --program-transfor=* \
531
| --program-transfo=* | --program-transf=* \
532
| --program-trans=* | --program-tran=* \
533
| --progr-tra=* | --program-tr=* | --program-t=*)
534
program_transform_name=$ac_optarg ;;
536
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
537
| -silent | --silent | --silen | --sile | --sil)
540
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
sbindir=$ac_optarg ;;
546
-sharedstatedir | --sharedstatedir | --sharedstatedi \
547
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548
| --sharedst | --shareds | --shared | --share | --shar \
550
ac_prev=sharedstatedir ;;
551
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
sharedstatedir=$ac_optarg ;;
557
-site | --site | --sit)
559
-site=* | --site=* | --sit=*)
562
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568
| --syscon | --sysco | --sysc | --sys | --sy)
569
ac_prev=sysconfdir ;;
570
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572
sysconfdir=$ac_optarg ;;
574
-target | --target | --targe | --targ | --tar | --ta | --t)
575
ac_prev=target_alias ;;
576
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577
target_alias=$ac_optarg ;;
579
-v | -verbose | --verbose | --verbos | --verbo | --verb)
582
-version | --version | --versio | --versi | --vers | -V)
586
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587
# Reject names that are not valid shell variable names.
588
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
{ echo "$as_me: error: invalid package name: $ac_package" >&2
590
{ (exit 1); exit 1; }; }
591
ac_package=`echo $ac_package| sed 's/-/_/g'`
593
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
eval "with_$ac_package='$ac_optarg'" ;;
598
-without-* | --without-*)
599
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600
# Reject names that are not valid shell variable names.
601
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602
{ echo "$as_me: error: invalid package name: $ac_package" >&2
603
{ (exit 1); exit 1; }; }
604
ac_package=`echo $ac_package | sed 's/-/_/g'`
605
eval "with_$ac_package=no" ;;
608
# Obsolete; use --with-x.
611
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612
| --x-incl | --x-inc | --x-in | --x-i)
613
ac_prev=x_includes ;;
614
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616
x_includes=$ac_optarg ;;
618
-x-libraries | --x-libraries | --x-librarie | --x-librari \
619
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620
ac_prev=x_libraries ;;
621
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623
x_libraries=$ac_optarg ;;
625
-*) { echo "$as_me: error: unrecognized option: $ac_option
626
Try \`$0 --help' for more information." >&2
627
{ (exit 1); exit 1; }; }
631
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632
# Reject names that are not valid shell variable names.
633
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635
{ (exit 1); exit 1; }; }
636
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637
eval "$ac_envvar='$ac_optarg'"
641
# FIXME: should be removed in autoconf 3.0.
642
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
if test -n "$ac_prev"; then
652
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653
{ echo "$as_me: error: missing argument to $ac_option" >&2
654
{ (exit 1); exit 1; }; }
657
# Be sure to have absolute paths.
658
for ac_var in exec_prefix prefix
660
eval ac_val=$`echo $ac_var`
662
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664
{ (exit 1); exit 1; }; };;
668
# Be sure to have absolute paths.
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670
localstatedir libdir includedir oldincludedir infodir mandir
672
eval ac_val=$`echo $ac_var`
674
[\\/$]* | ?:[\\/]* ) ;;
675
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676
{ (exit 1); exit 1; }; };;
680
# There might be people who depend on the old broken behavior: `$host'
681
# used to hold the argument of --host etc.
682
# FIXME: To remove some day.
687
# FIXME: To remove some day.
688
if test "x$host_alias" != x; then
689
if test "x$build_alias" = x; then
690
cross_compiling=maybe
691
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692
If a cross compiler is detected then cross compile mode will be used." >&2
693
elif test "x$build_alias" != "x$host_alias"; then
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
test "$silent" = yes && exec 6>/dev/null
704
# Find the source files, if location was not specified.
705
if test -z "$srcdir"; then
706
ac_srcdir_defaulted=yes
707
# Try the directory containing this script, then its parent.
708
ac_confdir=`(dirname "$0") 2>/dev/null ||
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710
X"$0" : 'X\(//\)[^/]' \| \
711
X"$0" : 'X\(//\)$' \| \
712
X"$0" : 'X\(/\)' \| \
713
. : '\(.\)' 2>/dev/null ||
715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
717
/^X\(\/\/\)$/{ s//\1/; q; }
718
/^X\(\/\).*/{ s//\1/; q; }
721
if test ! -r $srcdir/$ac_unique_file; then
725
ac_srcdir_defaulted=no
727
if test ! -r $srcdir/$ac_unique_file; then
728
if test "$ac_srcdir_defaulted" = yes; then
729
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730
{ (exit 1); exit 1; }; }
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733
{ (exit 1); exit 1; }; }
736
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738
{ (exit 1); exit 1; }; }
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740
ac_env_build_alias_set=${build_alias+set}
741
ac_env_build_alias_value=$build_alias
742
ac_cv_env_build_alias_set=${build_alias+set}
743
ac_cv_env_build_alias_value=$build_alias
744
ac_env_host_alias_set=${host_alias+set}
745
ac_env_host_alias_value=$host_alias
746
ac_cv_env_host_alias_set=${host_alias+set}
747
ac_cv_env_host_alias_value=$host_alias
748
ac_env_target_alias_set=${target_alias+set}
749
ac_env_target_alias_value=$target_alias
750
ac_cv_env_target_alias_set=${target_alias+set}
751
ac_cv_env_target_alias_value=$target_alias
752
ac_env_CC_set=${CC+set}
754
ac_cv_env_CC_set=${CC+set}
755
ac_cv_env_CC_value=$CC
756
ac_env_CFLAGS_set=${CFLAGS+set}
757
ac_env_CFLAGS_value=$CFLAGS
758
ac_cv_env_CFLAGS_set=${CFLAGS+set}
759
ac_cv_env_CFLAGS_value=$CFLAGS
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
761
ac_env_LDFLAGS_value=$LDFLAGS
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765
ac_env_CPPFLAGS_value=$CPPFLAGS
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768
ac_env_CPP_set=${CPP+set}
769
ac_env_CPP_value=$CPP
770
ac_cv_env_CPP_set=${CPP+set}
771
ac_cv_env_CPP_value=$CPP
774
# Report the --help message.
776
if test "$ac_init_help" = "long"; then
777
# Omit some internal or obsolete options to make the list less imposing.
778
# This message is too long to be a string in the A/UX 3.1 sh.
780
\`configure' configures this package to adapt to many kinds of systems.
782
Usage: $0 [OPTION]... [VAR=VALUE]...
784
To assign environment variables (e.g., CC, CFLAGS...), specify them as
785
VAR=VALUE. See below for descriptions of some of the useful variables.
787
Defaults for the options are specified in brackets.
790
-h, --help display this help and exit
791
--help=short display options specific to this package
792
--help=recursive display the short help of all the included packages
793
-V, --version display version information and exit
794
-q, --quiet, --silent do not print \`checking...' messages
795
--cache-file=FILE cache test results in FILE [disabled]
796
-C, --config-cache alias for \`--cache-file=config.cache'
797
-n, --no-create do not create output files
798
--srcdir=DIR find the sources in DIR [configure dir or \`..']
803
Installation directories:
804
--prefix=PREFIX install architecture-independent files in PREFIX
806
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809
By default, \`make install' will install all the files in
810
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812
for instance \`--prefix=\$HOME'.
814
For better control, use the options below.
816
Fine tuning of the installation directories:
817
--bindir=DIR user executables [EPREFIX/bin]
818
--sbindir=DIR system admin executables [EPREFIX/sbin]
819
--libexecdir=DIR program executables [EPREFIX/libexec]
820
--datadir=DIR read-only architecture-independent data [PREFIX/share]
821
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
824
--libdir=DIR object code libraries [EPREFIX/lib]
825
--includedir=DIR C header files [PREFIX/include]
826
--oldincludedir=DIR C header files for non-gcc [/usr/include]
827
--infodir=DIR info documentation [PREFIX/info]
828
--mandir=DIR man documentation [PREFIX/man]
834
--program-prefix=PREFIX prepend PREFIX to installed program names
835
--program-suffix=SUFFIX append SUFFIX to installed program names
836
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
840
if test -n "$ac_init_help"; then
845
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847
--disable-dependency-tracking Speeds up one-time builds
848
--enable-dependency-tracking Do not reject slow dependency extractors
850
Some influential environment variables:
851
CC C compiler command
852
CFLAGS C compiler flags
853
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854
nonstandard directory <lib dir>
855
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856
headers in a nonstandard directory <include dir>
859
Use these variables to override the choices made by `configure' or to help
860
it to find libraries and programs with nonstandard names/locations.
865
if test "$ac_init_help" = "recursive"; then
866
# If there are subdirs, report their specific --help.
868
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869
test -d $ac_dir || continue
872
if test "$ac_dir" != .; then
873
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874
# A "../" for each directory in $ac_dir_suffix.
875
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877
ac_dir_suffix= ac_top_builddir=
881
.) # No --srcdir option. We are building in place.
883
if test -z "$ac_top_builddir"; then
886
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888
[\\/]* | ?:[\\/]* ) # Absolute path.
889
ac_srcdir=$srcdir$ac_dir_suffix;
890
ac_top_srcdir=$srcdir ;;
892
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893
ac_top_srcdir=$ac_top_builddir$srcdir ;;
895
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
897
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
898
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
899
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
900
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
903
# Check for guested configure; otherwise get Cygnus style configure.
904
if test -f $ac_srcdir/configure.gnu; then
906
$SHELL $ac_srcdir/configure.gnu --help=recursive
907
elif test -f $ac_srcdir/configure; then
909
$SHELL $ac_srcdir/configure --help=recursive
910
elif test -f $ac_srcdir/configure.ac ||
911
test -f $ac_srcdir/configure.in; then
915
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
921
test -n "$ac_init_help" && exit 0
922
if $ac_init_version; then
925
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
926
Free Software Foundation, Inc.
927
This configure script is free software; the Free Software Foundation
928
gives unlimited permission to copy, distribute and modify it.
934
This file contains any messages produced by compilers while
935
running configure, to aid debugging if configure makes a mistake.
937
It was created by $as_me, which was
938
generated by GNU Autoconf 2.57. Invocation command line was
949
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
950
uname -m = `(uname -m) 2>/dev/null || echo unknown`
951
uname -r = `(uname -r) 2>/dev/null || echo unknown`
952
uname -s = `(uname -s) 2>/dev/null || echo unknown`
953
uname -v = `(uname -v) 2>/dev/null || echo unknown`
955
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
956
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
958
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
959
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
960
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
961
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
962
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
963
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
964
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
972
test -z "$as_dir" && as_dir=.
988
# Keep a trace of the command line.
989
# Strip out --no-create and --no-recursion so they do not pile up.
990
# Strip out --silent because we don't want to record it for future runs.
991
# Also quote any args containing shell meta-characters.
992
# Make two passes to allow for proper duplicate-argument suppression.
997
ac_must_keep_next=false
1003
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1004
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005
| -silent | --silent | --silen | --sile | --sil)
1007
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1008
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1011
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1013
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1014
if test $ac_must_keep_next = true; then
1015
ac_must_keep_next=false # Got value, back to normal.
1018
*=* | --config-cache | -C | -disable-* | --disable-* \
1019
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1020
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1021
| -with-* | --with-* | -without-* | --without-* | --x)
1022
case "$ac_configure_args0 " in
1023
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1026
-* ) ac_must_keep_next=true ;;
1029
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1030
# Get rid of the leading space.
1036
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1037
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1039
# When interrupted or exit'd, cleanup temporary files, and complete
1040
# config.log. We remove comments because anyway the quotes in there
1041
# would cause problems or look ugly.
1042
# WARNING: Be sure not to use single quotes in there, as some shells,
1043
# such as our DU 5.0 friend, will then `close' the trap.
1044
trap 'exit_status=$?
1045
# Save into config.log some information that might help in debugging.
1050
## ---------------- ##
1051
## Cache variables. ##
1052
## ---------------- ##
1055
# The following way of writing the cache mishandles newlines in values,
1058
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1061
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1062
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1066
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1073
## ----------------- ##
1074
## Output variables. ##
1075
## ----------------- ##
1078
for ac_var in $ac_subst_vars
1080
eval ac_val=$`echo $ac_var`
1081
echo "$ac_var='"'"'$ac_val'"'"'"
1085
if test -n "$ac_subst_files"; then
1092
for ac_var in $ac_subst_files
1094
eval ac_val=$`echo $ac_var`
1095
echo "$ac_var='"'"'$ac_val'"'"'"
1100
if test -s confdefs.h; then
1107
sed "/^$/d" confdefs.h | sort
1110
test "$ac_signal" != 0 &&
1111
echo "$as_me: caught signal $ac_signal"
1112
echo "$as_me: exit $exit_status"
1114
rm -f core core.* *.core &&
1115
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1118
for ac_signal in 1 2 13 15; do
1119
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1123
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1124
rm -rf conftest* confdefs.h
1125
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1128
# Predefined preprocessor variables.
1130
cat >>confdefs.h <<_ACEOF
1131
#define PACKAGE_NAME "$PACKAGE_NAME"
1135
cat >>confdefs.h <<_ACEOF
1136
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1140
cat >>confdefs.h <<_ACEOF
1141
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1145
cat >>confdefs.h <<_ACEOF
1146
#define PACKAGE_STRING "$PACKAGE_STRING"
1150
cat >>confdefs.h <<_ACEOF
1151
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1155
# Let the site file select an alternate cache file if it wants to.
1156
# Prefer explicitly selected file to automatically selected ones.
1157
if test -z "$CONFIG_SITE"; then
1158
if test "x$prefix" != xNONE; then
1159
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1161
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1164
for ac_site_file in $CONFIG_SITE; do
1165
if test -r "$ac_site_file"; then
1166
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1167
echo "$as_me: loading site script $ac_site_file" >&6;}
1168
sed 's/^/| /' "$ac_site_file" >&5
1173
if test -r "$cache_file"; then
1174
# Some versions of bash will fail to source /dev/null (special
1175
# files actually), so we avoid doing that.
1176
if test -f "$cache_file"; then
1177
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1178
echo "$as_me: loading cache $cache_file" >&6;}
1180
[\\/]* | ?:[\\/]* ) . $cache_file;;
1181
*) . ./$cache_file;;
1185
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1186
echo "$as_me: creating cache $cache_file" >&6;}
1190
# Check that the precious variables saved in the cache have kept the same
1192
ac_cache_corrupted=false
1193
for ac_var in `(set) 2>&1 |
1194
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1195
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1196
eval ac_new_set=\$ac_env_${ac_var}_set
1197
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1198
eval ac_new_val="\$ac_env_${ac_var}_value"
1199
case $ac_old_set,$ac_new_set in
1201
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1202
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1203
ac_cache_corrupted=: ;;
1205
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1206
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1207
ac_cache_corrupted=: ;;
1210
if test "x$ac_old_val" != "x$ac_new_val"; then
1211
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1212
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1213
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1214
echo "$as_me: former value: $ac_old_val" >&2;}
1215
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1216
echo "$as_me: current value: $ac_new_val" >&2;}
1217
ac_cache_corrupted=:
1220
# Pass precious variables to config.status.
1221
if test "$ac_new_set" = set; then
1223
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1224
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1225
*) ac_arg=$ac_var=$ac_new_val ;;
1227
case " $ac_configure_args " in
1228
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1229
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1233
if $ac_cache_corrupted; then
1234
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1235
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1236
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1237
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1238
{ (exit 1); exit 1; }; }
1242
ac_cpp='$CPP $CPPFLAGS'
1243
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1244
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1245
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1266
am__api_version="1.7"
1268
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1269
if test -f $ac_dir/install-sh; then
1271
ac_install_sh="$ac_aux_dir/install-sh -c"
1273
elif test -f $ac_dir/install.sh; then
1275
ac_install_sh="$ac_aux_dir/install.sh -c"
1277
elif test -f $ac_dir/shtool; then
1279
ac_install_sh="$ac_aux_dir/shtool install -c"
1283
if test -z "$ac_aux_dir"; then
1284
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1285
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1286
{ (exit 1); exit 1; }; }
1288
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1289
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1290
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1292
# Find a good install program. We prefer a C program (faster),
1293
# so one script is as good as another. But avoid the broken or
1294
# incompatible versions:
1295
# SysV /etc/install, /usr/sbin/install
1296
# SunOS /usr/etc/install
1297
# IRIX /sbin/install
1299
# AmigaOS /C/install, which installs bootblocks on floppy discs
1300
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1301
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1302
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1303
# ./install, which can be erroneously created by make from ./install.sh.
1304
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1305
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1306
if test -z "$INSTALL"; then
1307
if test "${ac_cv_path_install+set}" = set; then
1308
echo $ECHO_N "(cached) $ECHO_C" >&6
1310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314
test -z "$as_dir" && as_dir=.
1315
# Account for people who put trailing slashes in PATH elements.
1317
./ | .// | /cC/* | \
1318
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1321
# OSF1 and SCO ODT 3.0 have their own names for install.
1322
# Don't use installbsd from OSF since it installs stuff as root
1324
for ac_prog in ginstall scoinst install; do
1325
for ac_exec_ext in '' $ac_executable_extensions; do
1326
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1327
if test $ac_prog = install &&
1328
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1329
# AIX install. It has an incompatible calling convention.
1331
elif test $ac_prog = install &&
1332
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1333
# program-specific install script used by HP pwplus--don't use.
1336
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1348
if test "${ac_cv_path_install+set}" = set; then
1349
INSTALL=$ac_cv_path_install
1351
# As a last resort, use the slow shell script. We don't cache a
1352
# path for INSTALL within a source directory, because that will
1353
# break other packages using the cache if that directory is
1354
# removed, or if the path is relative.
1355
INSTALL=$ac_install_sh
1358
echo "$as_me:$LINENO: result: $INSTALL" >&5
1359
echo "${ECHO_T}$INSTALL" >&6
1361
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1362
# It thinks the first close brace ends the variable substitution.
1363
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1365
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1367
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1369
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1370
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1373
echo timestamp > conftest.file
1374
# Do `set' in a subshell so we don't clobber the current shell's
1375
# arguments. Must try -L first in case configure is actually a
1376
# symlink; some systems play weird games with the mod time of symlinks
1377
# (eg FreeBSD returns the mod time of the symlink's containing
1380
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1381
if test "$*" = "X"; then
1383
set X `ls -t $srcdir/configure conftest.file`
1386
if test "$*" != "X $srcdir/configure conftest.file" \
1387
&& test "$*" != "X conftest.file $srcdir/configure"; then
1389
# If neither matched, then we have a broken ls. This can happen
1390
# if, for instance, CONFIG_SHELL is bash and it inherits a
1391
# broken ls alias from the environment. This has actually
1392
# happened. Such a system could not be considered "sane".
1393
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1394
alias in your environment" >&5
1395
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1396
alias in your environment" >&2;}
1397
{ (exit 1); exit 1; }; }
1400
test "$2" = conftest.file
1406
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1407
Check your system clock" >&5
1408
echo "$as_me: error: newly created file is older than distributed files!
1409
Check your system clock" >&2;}
1410
{ (exit 1); exit 1; }; }
1412
echo "$as_me:$LINENO: result: yes" >&5
1413
echo "${ECHO_T}yes" >&6
1414
test "$program_prefix" != NONE &&
1415
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1416
# Use a double $ so make ignores it.
1417
test "$program_suffix" != NONE &&
1418
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1419
# Double any \ or $. echo might interpret backslashes.
1420
# By default was `s,x,x', remove it if useless.
1421
cat <<\_ACEOF >conftest.sed
1422
s/[\\$]/&&/g;s/;s,x,x,$//
1424
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1428
# expand $ac_aux_dir to an absolute path
1429
am_aux_dir=`cd $ac_aux_dir && pwd`
1431
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1432
# Use eval to expand $SHELL
1433
if eval "$MISSING --run true"; then
1434
am_missing_run="$MISSING --run "
1437
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1438
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1441
for ac_prog in gawk mawk nawk awk
1443
# Extract the first word of "$ac_prog", so it can be a program name with args.
1444
set dummy $ac_prog; ac_word=$2
1445
echo "$as_me:$LINENO: checking for $ac_word" >&5
1446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447
if test "${ac_cv_prog_AWK+set}" = set; then
1448
echo $ECHO_N "(cached) $ECHO_C" >&6
1450
if test -n "$AWK"; then
1451
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457
test -z "$as_dir" && as_dir=.
1458
for ac_exec_ext in '' $ac_executable_extensions; do
1459
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1460
ac_cv_prog_AWK="$ac_prog"
1461
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1470
if test -n "$AWK"; then
1471
echo "$as_me:$LINENO: result: $AWK" >&5
1472
echo "${ECHO_T}$AWK" >&6
1474
echo "$as_me:$LINENO: result: no" >&5
1475
echo "${ECHO_T}no" >&6
1478
test -n "$AWK" && break
1481
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1482
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1483
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1484
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1485
echo $ECHO_N "(cached) $ECHO_C" >&6
1487
cat >conftest.make <<\_ACEOF
1489
@echo 'ac_maketemp="$(MAKE)"'
1491
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1492
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1493
if test -n "$ac_maketemp"; then
1494
eval ac_cv_prog_make_${ac_make}_set=yes
1496
eval ac_cv_prog_make_${ac_make}_set=no
1500
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1501
echo "$as_me:$LINENO: result: yes" >&5
1502
echo "${ECHO_T}yes" >&6
1505
echo "$as_me:$LINENO: result: no" >&5
1506
echo "${ECHO_T}no" >&6
1507
SET_MAKE="MAKE=${MAKE-make}"
1510
# test to see if srcdir already configured
1511
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1512
test -f $srcdir/config.status; then
1513
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1514
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1515
{ (exit 1); exit 1; }; }
1518
# test whether we have cygpath
1519
if test -z "$CYGPATH_W"; then
1520
if (cygpath --version) >/dev/null 2>/dev/null; then
1521
CYGPATH_W='cygpath -w'
1528
# Define the identity of the package.
1533
cat >>confdefs.h <<_ACEOF
1534
#define PACKAGE "$PACKAGE"
1538
cat >>confdefs.h <<_ACEOF
1539
#define VERSION "$VERSION"
1542
# Some tools Automake needs.
1544
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1547
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1550
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1553
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1556
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1559
AMTAR=${AMTAR-"${am_missing_run}tar"}
1561
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1563
# Installed binaries are usually stripped using `strip' when the user
1564
# run `make install-strip'. However `strip' might not be the right
1565
# tool to use in cross-compilation environments, therefore Automake
1566
# will honor the `STRIP' environment variable to overrule this program.
1567
if test "$cross_compiling" != no; then
1568
if test -n "$ac_tool_prefix"; then
1569
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1570
set dummy ${ac_tool_prefix}strip; ac_word=$2
1571
echo "$as_me:$LINENO: checking for $ac_word" >&5
1572
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1573
if test "${ac_cv_prog_STRIP+set}" = set; then
1574
echo $ECHO_N "(cached) $ECHO_C" >&6
1576
if test -n "$STRIP"; then
1577
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1579
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583
test -z "$as_dir" && as_dir=.
1584
for ac_exec_ext in '' $ac_executable_extensions; do
1585
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1586
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1587
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595
STRIP=$ac_cv_prog_STRIP
1596
if test -n "$STRIP"; then
1597
echo "$as_me:$LINENO: result: $STRIP" >&5
1598
echo "${ECHO_T}$STRIP" >&6
1600
echo "$as_me:$LINENO: result: no" >&5
1601
echo "${ECHO_T}no" >&6
1605
if test -z "$ac_cv_prog_STRIP"; then
1607
# Extract the first word of "strip", so it can be a program name with args.
1608
set dummy strip; ac_word=$2
1609
echo "$as_me:$LINENO: checking for $ac_word" >&5
1610
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1612
echo $ECHO_N "(cached) $ECHO_C" >&6
1614
if test -n "$ac_ct_STRIP"; then
1615
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621
test -z "$as_dir" && as_dir=.
1622
for ac_exec_ext in '' $ac_executable_extensions; do
1623
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624
ac_cv_prog_ac_ct_STRIP="strip"
1625
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1634
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1635
if test -n "$ac_ct_STRIP"; then
1636
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1637
echo "${ECHO_T}$ac_ct_STRIP" >&6
1639
echo "$as_me:$LINENO: result: no" >&5
1640
echo "${ECHO_T}no" >&6
1645
STRIP="$ac_cv_prog_STRIP"
1649
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1651
# We need awk for the "check" target. The system "awk" is bad on
1657
ac_config_headers="$ac_config_headers config.h"
1661
ac_cpp='$CPP $CPPFLAGS'
1662
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1663
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1664
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1665
if test -n "$ac_tool_prefix"; then
1666
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1667
set dummy ${ac_tool_prefix}gcc; 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}gcc"
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
1702
if test -z "$ac_cv_prog_CC"; then
1704
# Extract the first word of "gcc", so it can be a program name with args.
1705
set dummy gcc; ac_word=$2
1706
echo "$as_me:$LINENO: checking for $ac_word" >&5
1707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1709
echo $ECHO_N "(cached) $ECHO_C" >&6
1711
if test -n "$ac_ct_CC"; then
1712
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718
test -z "$as_dir" && as_dir=.
1719
for ac_exec_ext in '' $ac_executable_extensions; do
1720
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721
ac_cv_prog_ac_ct_CC="gcc"
1722
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1731
if test -n "$ac_ct_CC"; then
1732
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1733
echo "${ECHO_T}$ac_ct_CC" >&6
1735
echo "$as_me:$LINENO: result: no" >&5
1736
echo "${ECHO_T}no" >&6
1744
if test -z "$CC"; then
1745
if test -n "$ac_tool_prefix"; then
1746
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1747
set dummy ${ac_tool_prefix}cc; ac_word=$2
1748
echo "$as_me:$LINENO: checking for $ac_word" >&5
1749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750
if test "${ac_cv_prog_CC+set}" = set; then
1751
echo $ECHO_N "(cached) $ECHO_C" >&6
1753
if test -n "$CC"; then
1754
ac_cv_prog_CC="$CC" # Let the user override the test.
1756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760
test -z "$as_dir" && as_dir=.
1761
for ac_exec_ext in '' $ac_executable_extensions; do
1762
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763
ac_cv_prog_CC="${ac_tool_prefix}cc"
1764
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773
if test -n "$CC"; then
1774
echo "$as_me:$LINENO: result: $CC" >&5
1775
echo "${ECHO_T}$CC" >&6
1777
echo "$as_me:$LINENO: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1782
if test -z "$ac_cv_prog_CC"; then
1784
# Extract the first word of "cc", so it can be a program name with args.
1785
set dummy cc; ac_word=$2
1786
echo "$as_me:$LINENO: checking for $ac_word" >&5
1787
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789
echo $ECHO_N "(cached) $ECHO_C" >&6
1791
if test -n "$ac_ct_CC"; then
1792
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798
test -z "$as_dir" && as_dir=.
1799
for ac_exec_ext in '' $ac_executable_extensions; do
1800
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801
ac_cv_prog_ac_ct_CC="cc"
1802
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811
if test -n "$ac_ct_CC"; then
1812
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813
echo "${ECHO_T}$ac_ct_CC" >&6
1815
echo "$as_me:$LINENO: result: no" >&5
1816
echo "${ECHO_T}no" >&6
1825
if test -z "$CC"; then
1826
# Extract the first word of "cc", so it can be a program name with args.
1827
set dummy cc; ac_word=$2
1828
echo "$as_me:$LINENO: checking for $ac_word" >&5
1829
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830
if test "${ac_cv_prog_CC+set}" = set; then
1831
echo $ECHO_N "(cached) $ECHO_C" >&6
1833
if test -n "$CC"; then
1834
ac_cv_prog_CC="$CC" # Let the user override the test.
1837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841
test -z "$as_dir" && as_dir=.
1842
for ac_exec_ext in '' $ac_executable_extensions; do
1843
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1845
ac_prog_rejected=yes
1849
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855
if test $ac_prog_rejected = yes; then
1856
# We found a bogon in the path, so make sure we never use it.
1857
set dummy $ac_cv_prog_CC
1859
if test $# != 0; then
1860
# We chose a different compiler from the bogus one.
1861
# However, it has the same basename, so the bogon will be chosen
1862
# first if we set CC to just the basename; use the full file name.
1864
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1870
if test -n "$CC"; then
1871
echo "$as_me:$LINENO: result: $CC" >&5
1872
echo "${ECHO_T}$CC" >&6
1874
echo "$as_me:$LINENO: result: no" >&5
1875
echo "${ECHO_T}no" >&6
1879
if test -z "$CC"; then
1880
if test -n "$ac_tool_prefix"; then
1883
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1884
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1885
echo "$as_me:$LINENO: checking for $ac_word" >&5
1886
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1887
if test "${ac_cv_prog_CC+set}" = set; then
1888
echo $ECHO_N "(cached) $ECHO_C" >&6
1890
if test -n "$CC"; then
1891
ac_cv_prog_CC="$CC" # Let the user override the test.
1893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897
test -z "$as_dir" && as_dir=.
1898
for ac_exec_ext in '' $ac_executable_extensions; do
1899
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1900
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1901
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910
if test -n "$CC"; then
1911
echo "$as_me:$LINENO: result: $CC" >&5
1912
echo "${ECHO_T}$CC" >&6
1914
echo "$as_me:$LINENO: result: no" >&5
1915
echo "${ECHO_T}no" >&6
1918
test -n "$CC" && break
1921
if test -z "$CC"; then
1925
# Extract the first word of "$ac_prog", so it can be a program name with args.
1926
set dummy $ac_prog; ac_word=$2
1927
echo "$as_me:$LINENO: checking for $ac_word" >&5
1928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1929
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1930
echo $ECHO_N "(cached) $ECHO_C" >&6
1932
if test -n "$ac_ct_CC"; then
1933
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939
test -z "$as_dir" && as_dir=.
1940
for ac_exec_ext in '' $ac_executable_extensions; do
1941
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1942
ac_cv_prog_ac_ct_CC="$ac_prog"
1943
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1952
if test -n "$ac_ct_CC"; then
1953
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1954
echo "${ECHO_T}$ac_ct_CC" >&6
1956
echo "$as_me:$LINENO: result: no" >&5
1957
echo "${ECHO_T}no" >&6
1960
test -n "$ac_ct_CC" && break
1969
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1970
See \`config.log' for more details." >&5
1971
echo "$as_me: error: no acceptable C compiler found in \$PATH
1972
See \`config.log' for more details." >&2;}
1973
{ (exit 1); exit 1; }; }
1975
# Provide some information about the compiler.
1976
echo "$as_me:$LINENO:" \
1977
"checking for C compiler version" >&5
1978
ac_compiler=`set X $ac_compile; echo $2`
1979
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1980
(eval $ac_compiler --version </dev/null >&5) 2>&5
1982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983
(exit $ac_status); }
1984
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1985
(eval $ac_compiler -v </dev/null >&5) 2>&5
1987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988
(exit $ac_status); }
1989
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1990
(eval $ac_compiler -V </dev/null >&5) 2>&5
1992
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993
(exit $ac_status); }
1995
cat >conftest.$ac_ext <<_ACEOF
1996
#line $LINENO "configure"
1999
cat confdefs.h >>conftest.$ac_ext
2000
cat >>conftest.$ac_ext <<_ACEOF
2001
/* end confdefs.h. */
2011
ac_clean_files_save=$ac_clean_files
2012
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2013
# Try to create an executable without -o first, disregard a.out.
2014
# It will help us diagnose broken compilers, and finding out an intuition
2016
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2017
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2018
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2020
(eval $ac_link_default) 2>&5
2022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023
(exit $ac_status); }; then
2024
# Find the output, starting from the most likely. This scheme is
2025
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2028
# Be careful to initialize this variable, since it used to be cached.
2029
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031
# b.out is created by i960 compilers.
2032
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034
test -f "$ac_file" || continue
2036
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2039
# This is the source file.
2042
# We found the default executable, but exeext='' is most
2046
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2047
# FIXME: I believe we export ac_cv_exeext for Libtool,
2048
# but it would be cool to find out if it's true. Does anybody
2049
# maintain Libtool? --akim.
2057
echo "$as_me: failed program was:" >&5
2058
sed 's/^/| /' conftest.$ac_ext >&5
2060
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2061
See \`config.log' for more details." >&5
2062
echo "$as_me: error: C compiler cannot create executables
2063
See \`config.log' for more details." >&2;}
2064
{ (exit 77); exit 77; }; }
2067
ac_exeext=$ac_cv_exeext
2068
echo "$as_me:$LINENO: result: $ac_file" >&5
2069
echo "${ECHO_T}$ac_file" >&6
2071
# Check the compiler produces executables we can run. If not, either
2072
# the compiler is broken, or we cross compile.
2073
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2074
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2075
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2076
# If not cross compiling, check that we can run a simple program.
2077
if test "$cross_compiling" != yes; then
2078
if { ac_try='./$ac_file'
2079
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083
(exit $ac_status); }; }; then
2086
if test "$cross_compiling" = maybe; then
2089
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2090
If you meant to cross compile, use \`--host'.
2091
See \`config.log' for more details." >&5
2092
echo "$as_me: error: cannot run C compiled programs.
2093
If you meant to cross compile, use \`--host'.
2094
See \`config.log' for more details." >&2;}
2095
{ (exit 1); exit 1; }; }
2099
echo "$as_me:$LINENO: result: yes" >&5
2100
echo "${ECHO_T}yes" >&6
2102
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2103
ac_clean_files=$ac_clean_files_save
2104
# Check the compiler produces executables we can run. If not, either
2105
# the compiler is broken, or we cross compile.
2106
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2107
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2108
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2109
echo "${ECHO_T}$cross_compiling" >&6
2111
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2112
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2113
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2114
(eval $ac_link) 2>&5
2116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117
(exit $ac_status); }; then
2118
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2119
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2120
# work properly (i.e., refer to `conftest.exe'), while it won't with
2122
for ac_file in conftest.exe conftest conftest.*; do
2123
test -f "$ac_file" || continue
2125
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2126
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2133
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2134
See \`config.log' for more details." >&5
2135
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2136
See \`config.log' for more details." >&2;}
2137
{ (exit 1); exit 1; }; }
2140
rm -f conftest$ac_cv_exeext
2141
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2142
echo "${ECHO_T}$ac_cv_exeext" >&6
2144
rm -f conftest.$ac_ext
2145
EXEEXT=$ac_cv_exeext
2147
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2148
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2149
if test "${ac_cv_objext+set}" = set; then
2150
echo $ECHO_N "(cached) $ECHO_C" >&6
2152
cat >conftest.$ac_ext <<_ACEOF
2153
#line $LINENO "configure"
2156
cat confdefs.h >>conftest.$ac_ext
2157
cat >>conftest.$ac_ext <<_ACEOF
2158
/* end confdefs.h. */
2168
rm -f conftest.o conftest.obj
2169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170
(eval $ac_compile) 2>&5
2172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173
(exit $ac_status); }; then
2174
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2177
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2182
echo "$as_me: failed program was:" >&5
2183
sed 's/^/| /' conftest.$ac_ext >&5
2185
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2186
See \`config.log' for more details." >&5
2187
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2188
See \`config.log' for more details." >&2;}
2189
{ (exit 1); exit 1; }; }
2192
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2195
echo "${ECHO_T}$ac_cv_objext" >&6
2196
OBJEXT=$ac_cv_objext
2198
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2199
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2200
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2201
echo $ECHO_N "(cached) $ECHO_C" >&6
2203
cat >conftest.$ac_ext <<_ACEOF
2204
#line $LINENO "configure"
2207
cat confdefs.h >>conftest.$ac_ext
2208
cat >>conftest.$ac_ext <<_ACEOF
2209
/* end confdefs.h. */
2222
rm -f conftest.$ac_objext
2223
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224
(eval $ac_compile) 2>&5
2226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227
(exit $ac_status); } &&
2228
{ ac_try='test -s conftest.$ac_objext'
2229
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233
(exit $ac_status); }; }; then
2236
echo "$as_me: failed program was:" >&5
2237
sed 's/^/| /' conftest.$ac_ext >&5
2241
rm -f conftest.$ac_objext conftest.$ac_ext
2242
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2245
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2246
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2247
GCC=`test $ac_compiler_gnu = yes && echo yes`
2248
ac_test_CFLAGS=${CFLAGS+set}
2249
ac_save_CFLAGS=$CFLAGS
2251
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2252
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2253
if test "${ac_cv_prog_cc_g+set}" = set; then
2254
echo $ECHO_N "(cached) $ECHO_C" >&6
2256
cat >conftest.$ac_ext <<_ACEOF
2257
#line $LINENO "configure"
2260
cat confdefs.h >>conftest.$ac_ext
2261
cat >>conftest.$ac_ext <<_ACEOF
2262
/* end confdefs.h. */
2272
rm -f conftest.$ac_objext
2273
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274
(eval $ac_compile) 2>&5
2276
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277
(exit $ac_status); } &&
2278
{ ac_try='test -s conftest.$ac_objext'
2279
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283
(exit $ac_status); }; }; then
2286
echo "$as_me: failed program was:" >&5
2287
sed 's/^/| /' conftest.$ac_ext >&5
2291
rm -f conftest.$ac_objext conftest.$ac_ext
2293
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2294
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2295
if test "$ac_test_CFLAGS" = set; then
2296
CFLAGS=$ac_save_CFLAGS
2297
elif test $ac_cv_prog_cc_g = yes; then
2298
if test "$GCC" = yes; then
2304
if test "$GCC" = yes; then
2310
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2311
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2312
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2313
echo $ECHO_N "(cached) $ECHO_C" >&6
2315
ac_cv_prog_cc_stdc=no
2317
cat >conftest.$ac_ext <<_ACEOF
2318
#line $LINENO "configure"
2321
cat confdefs.h >>conftest.$ac_ext
2322
cat >>conftest.$ac_ext <<_ACEOF
2323
/* end confdefs.h. */
2326
#include <sys/types.h>
2327
#include <sys/stat.h>
2328
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2329
struct buf { int x; };
2330
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2331
static char *e (p, i)
2337
static char *f (char * (*g) (char **, int), char **p, ...)
2342
s = g (p, va_arg (v,int));
2346
int test (int i, double x);
2347
struct s1 {int (*f) (int a);};
2348
struct s2 {int (*f) (double a);};
2349
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2355
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2360
# Don't try gcc -ansi; that turns off useful extensions and
2361
# breaks some systems' header files.
2362
# AIX -qlanglvl=ansi
2363
# Ultrix and OSF/1 -std1
2364
# HP-UX 10.20 and later -Ae
2365
# HP-UX older versions -Aa -D_HPUX_SOURCE
2366
# SVR4 -Xc -D__EXTENSIONS__
2367
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2369
CC="$ac_save_CC $ac_arg"
2370
rm -f conftest.$ac_objext
2371
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372
(eval $ac_compile) 2>&5
2374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375
(exit $ac_status); } &&
2376
{ ac_try='test -s conftest.$ac_objext'
2377
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381
(exit $ac_status); }; }; then
2382
ac_cv_prog_cc_stdc=$ac_arg
2385
echo "$as_me: failed program was:" >&5
2386
sed 's/^/| /' conftest.$ac_ext >&5
2389
rm -f conftest.$ac_objext
2391
rm -f conftest.$ac_ext conftest.$ac_objext
2396
case "x$ac_cv_prog_cc_stdc" in
2398
echo "$as_me:$LINENO: result: none needed" >&5
2399
echo "${ECHO_T}none needed" >&6 ;;
2401
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2402
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2403
CC="$CC $ac_cv_prog_cc_stdc" ;;
2406
# Some people use a C++ compiler to compile C. Since we use `exit',
2407
# in C++ we need to declare it. In case someone uses the same compiler
2408
# for both compiling C and C++ we need to have the C++ compiler decide
2409
# the declaration of exit, since it's the most demanding environment.
2410
cat >conftest.$ac_ext <<_ACEOF
2415
rm -f conftest.$ac_objext
2416
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417
(eval $ac_compile) 2>&5
2419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420
(exit $ac_status); } &&
2421
{ ac_try='test -s conftest.$ac_objext'
2422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426
(exit $ac_status); }; }; then
2427
for ac_declaration in \
2429
'#include <stdlib.h>' \
2430
'extern "C" void std::exit (int) throw (); using std::exit;' \
2431
'extern "C" void std::exit (int); using std::exit;' \
2432
'extern "C" void exit (int) throw ();' \
2433
'extern "C" void exit (int);' \
2436
cat >conftest.$ac_ext <<_ACEOF
2437
#line $LINENO "configure"
2440
cat confdefs.h >>conftest.$ac_ext
2441
cat >>conftest.$ac_ext <<_ACEOF
2442
/* end confdefs.h. */
2453
rm -f conftest.$ac_objext
2454
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455
(eval $ac_compile) 2>&5
2457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458
(exit $ac_status); } &&
2459
{ ac_try='test -s conftest.$ac_objext'
2460
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464
(exit $ac_status); }; }; then
2467
echo "$as_me: failed program was:" >&5
2468
sed 's/^/| /' conftest.$ac_ext >&5
2472
rm -f conftest.$ac_objext conftest.$ac_ext
2473
cat >conftest.$ac_ext <<_ACEOF
2474
#line $LINENO "configure"
2477
cat confdefs.h >>conftest.$ac_ext
2478
cat >>conftest.$ac_ext <<_ACEOF
2479
/* end confdefs.h. */
2489
rm -f conftest.$ac_objext
2490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2491
(eval $ac_compile) 2>&5
2493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494
(exit $ac_status); } &&
2495
{ ac_try='test -s conftest.$ac_objext'
2496
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500
(exit $ac_status); }; }; then
2503
echo "$as_me: failed program was:" >&5
2504
sed 's/^/| /' conftest.$ac_ext >&5
2507
rm -f conftest.$ac_objext conftest.$ac_ext
2510
if test -n "$ac_declaration"; then
2511
echo '#ifdef __cplusplus' >>confdefs.h
2512
echo $ac_declaration >>confdefs.h
2513
echo '#endif' >>confdefs.h
2517
echo "$as_me: failed program was:" >&5
2518
sed 's/^/| /' conftest.$ac_ext >&5
2521
rm -f conftest.$ac_objext conftest.$ac_ext
2523
ac_cpp='$CPP $CPPFLAGS'
2524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2527
rm -f .deps 2>/dev/null
2528
mkdir .deps 2>/dev/null
2529
if test -d .deps; then
2532
# MS-DOS does not allow filenames that begin with a dot.
2535
rmdir .deps 2>/dev/null
2538
ac_config_commands="$ac_config_commands depfiles"
2541
am_make=${MAKE-make}
2542
cat > confinc << 'END'
2546
# If we don't find an include directive, just comment out the code.
2547
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2548
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2552
# First try GNU make style include.
2553
echo "include confinc" > confmf
2554
# We grep out `Entering directory' and `Leaving directory'
2555
# messages which can occur if `w' ends up in MAKEFLAGS.
2556
# In particular we don't look at `^make:' because GNU make might
2557
# be invoked under some other name (usually "gmake"), in which
2558
# case it prints its new name instead of `make'.
2559
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2564
# Now try BSD make style include.
2565
if test "$am__include" = "#"; then
2566
echo '.include "confinc"' > confmf
2567
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2568
am__include=.include
2575
echo "$as_me:$LINENO: result: $_am_result" >&5
2576
echo "${ECHO_T}$_am_result" >&6
2577
rm -f confinc confmf
2579
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2580
if test "${enable_dependency_tracking+set}" = set; then
2581
enableval="$enable_dependency_tracking"
2584
if test "x$enable_dependency_tracking" != xno; then
2585
am_depcomp="$ac_aux_dir/depcomp"
2590
if test "x$enable_dependency_tracking" != xno; then
2601
depcc="$CC" am_compiler_list=
2603
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2604
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2605
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2606
echo $ECHO_N "(cached) $ECHO_C" >&6
2608
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2609
# We make a subdir and do the tests there. Otherwise we can end up
2610
# making bogus files that we don't know about and never remove. For
2611
# instance it was reported that on HP-UX the gcc test will end up
2612
# making a dummy file named `D' -- because `-MD' means `put the output
2615
# Copy depcomp to subdir because otherwise we won't find it if we're
2616
# using a relative directory.
2617
cp "$am_depcomp" conftest.dir
2620
am_cv_CC_dependencies_compiler_type=none
2621
if test "$am_compiler_list" = ""; then
2622
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2624
for depmode in $am_compiler_list; do
2625
# We need to recreate these files for each test, as the compiler may
2626
# overwrite some of them when testing with obscure command lines.
2627
# This happens at least with the AIX C compiler.
2628
echo '#include "conftest.h"' > conftest.c
2629
echo 'int i;' > conftest.h
2630
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2634
# after this tag, mechanisms are not by side-effect, so they'll
2635
# only be used when explicitly requested
2636
if test "x$enable_dependency_tracking" = xyes; then
2644
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2645
# mode. It turns out that the SunPro C++ compiler does not properly
2646
# handle `-M -o', and we need to detect this.
2647
if depmode=$depmode \
2648
source=conftest.c object=conftest.o \
2649
depfile=conftest.Po tmpdepfile=conftest.TPo \
2650
$SHELL ./depcomp $depcc -c -o conftest.o conftest.c >/dev/null 2>&1 &&
2651
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2652
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2653
am_cv_CC_dependencies_compiler_type=$depmode
2661
am_cv_CC_dependencies_compiler_type=none
2665
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2666
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2667
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2672
test "x$enable_dependency_tracking" != xno \
2673
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2675
am__fastdepCC_FALSE='#'
2677
am__fastdepCC_TRUE='#'
2678
am__fastdepCC_FALSE=
2684
ac_cpp='$CPP $CPPFLAGS'
2685
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2689
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2690
# On Suns, sometimes $CPP names a directory.
2691
if test -n "$CPP" && test -d "$CPP"; then
2694
if test -z "$CPP"; then
2695
if test "${ac_cv_prog_CPP+set}" = set; then
2696
echo $ECHO_N "(cached) $ECHO_C" >&6
2698
# Double quotes because CPP needs to be expanded
2699
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2702
for ac_c_preproc_warn_flag in '' yes
2704
# Use a header file that comes with gcc, so configuring glibc
2705
# with a fresh cross-compiler works.
2706
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2707
# <limits.h> exists even on freestanding compilers.
2708
# On the NeXT, cc -E runs the code through the compiler's parser,
2709
# not just through cpp. "Syntax error" is here to catch this case.
2710
cat >conftest.$ac_ext <<_ACEOF
2711
#line $LINENO "configure"
2714
cat confdefs.h >>conftest.$ac_ext
2715
cat >>conftest.$ac_ext <<_ACEOF
2716
/* end confdefs.h. */
2718
# include <limits.h>
2720
# include <assert.h>
2724
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2725
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2727
grep -v '^ *+' conftest.er1 >conftest.err
2729
cat conftest.err >&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); } >/dev/null; then
2732
if test -s conftest.err; then
2733
ac_cpp_err=$ac_c_preproc_warn_flag
2740
if test -z "$ac_cpp_err"; then
2743
echo "$as_me: failed program was:" >&5
2744
sed 's/^/| /' conftest.$ac_ext >&5
2746
# Broken: fails on valid input.
2749
rm -f conftest.err conftest.$ac_ext
2751
# OK, works on sane cases. Now check whether non-existent headers
2752
# can be detected and how.
2753
cat >conftest.$ac_ext <<_ACEOF
2754
#line $LINENO "configure"
2757
cat confdefs.h >>conftest.$ac_ext
2758
cat >>conftest.$ac_ext <<_ACEOF
2759
/* end confdefs.h. */
2760
#include <ac_nonexistent.h>
2762
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2763
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2765
grep -v '^ *+' conftest.er1 >conftest.err
2767
cat conftest.err >&5
2768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769
(exit $ac_status); } >/dev/null; then
2770
if test -s conftest.err; then
2771
ac_cpp_err=$ac_c_preproc_warn_flag
2778
if test -z "$ac_cpp_err"; then
2779
# Broken: success on invalid input.
2782
echo "$as_me: failed program was:" >&5
2783
sed 's/^/| /' conftest.$ac_ext >&5
2785
# Passes both tests.
2789
rm -f conftest.err conftest.$ac_ext
2792
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2793
rm -f conftest.err conftest.$ac_ext
2794
if $ac_preproc_ok; then
2806
echo "$as_me:$LINENO: result: $CPP" >&5
2807
echo "${ECHO_T}$CPP" >&6
2809
for ac_c_preproc_warn_flag in '' yes
2811
# Use a header file that comes with gcc, so configuring glibc
2812
# with a fresh cross-compiler works.
2813
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2814
# <limits.h> exists even on freestanding compilers.
2815
# On the NeXT, cc -E runs the code through the compiler's parser,
2816
# not just through cpp. "Syntax error" is here to catch this case.
2817
cat >conftest.$ac_ext <<_ACEOF
2818
#line $LINENO "configure"
2821
cat confdefs.h >>conftest.$ac_ext
2822
cat >>conftest.$ac_ext <<_ACEOF
2823
/* end confdefs.h. */
2825
# include <limits.h>
2827
# include <assert.h>
2831
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2832
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2834
grep -v '^ *+' conftest.er1 >conftest.err
2836
cat conftest.err >&5
2837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838
(exit $ac_status); } >/dev/null; then
2839
if test -s conftest.err; then
2840
ac_cpp_err=$ac_c_preproc_warn_flag
2847
if test -z "$ac_cpp_err"; then
2850
echo "$as_me: failed program was:" >&5
2851
sed 's/^/| /' conftest.$ac_ext >&5
2853
# Broken: fails on valid input.
2856
rm -f conftest.err conftest.$ac_ext
2858
# OK, works on sane cases. Now check whether non-existent headers
2859
# can be detected and how.
2860
cat >conftest.$ac_ext <<_ACEOF
2861
#line $LINENO "configure"
2864
cat confdefs.h >>conftest.$ac_ext
2865
cat >>conftest.$ac_ext <<_ACEOF
2866
/* end confdefs.h. */
2867
#include <ac_nonexistent.h>
2869
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2870
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2872
grep -v '^ *+' conftest.er1 >conftest.err
2874
cat conftest.err >&5
2875
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876
(exit $ac_status); } >/dev/null; then
2877
if test -s conftest.err; then
2878
ac_cpp_err=$ac_c_preproc_warn_flag
2885
if test -z "$ac_cpp_err"; then
2886
# Broken: success on invalid input.
2889
echo "$as_me: failed program was:" >&5
2890
sed 's/^/| /' conftest.$ac_ext >&5
2892
# Passes both tests.
2896
rm -f conftest.err conftest.$ac_ext
2899
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2900
rm -f conftest.err conftest.$ac_ext
2901
if $ac_preproc_ok; then
2904
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2905
See \`config.log' for more details." >&5
2906
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2907
See \`config.log' for more details." >&2;}
2908
{ (exit 1); exit 1; }; }
2912
ac_cpp='$CPP $CPPFLAGS'
2913
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918
echo "$as_me:$LINENO: checking for egrep" >&5
2919
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2920
if test "${ac_cv_prog_egrep+set}" = set; then
2921
echo $ECHO_N "(cached) $ECHO_C" >&6
2923
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2924
then ac_cv_prog_egrep='grep -E'
2925
else ac_cv_prog_egrep='egrep'
2928
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2929
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2930
EGREP=$ac_cv_prog_egrep
2933
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2934
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2935
if test "${ac_cv_header_stdc+set}" = set; then
2936
echo $ECHO_N "(cached) $ECHO_C" >&6
2938
cat >conftest.$ac_ext <<_ACEOF
2939
#line $LINENO "configure"
2942
cat confdefs.h >>conftest.$ac_ext
2943
cat >>conftest.$ac_ext <<_ACEOF
2944
/* end confdefs.h. */
2958
rm -f conftest.$ac_objext
2959
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960
(eval $ac_compile) 2>&5
2962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963
(exit $ac_status); } &&
2964
{ ac_try='test -s conftest.$ac_objext'
2965
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969
(exit $ac_status); }; }; then
2970
ac_cv_header_stdc=yes
2972
echo "$as_me: failed program was:" >&5
2973
sed 's/^/| /' conftest.$ac_ext >&5
2975
ac_cv_header_stdc=no
2977
rm -f conftest.$ac_objext conftest.$ac_ext
2979
if test $ac_cv_header_stdc = yes; then
2980
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2981
cat >conftest.$ac_ext <<_ACEOF
2982
#line $LINENO "configure"
2985
cat confdefs.h >>conftest.$ac_ext
2986
cat >>conftest.$ac_ext <<_ACEOF
2987
/* end confdefs.h. */
2991
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2992
$EGREP "memchr" >/dev/null 2>&1; then
2995
ac_cv_header_stdc=no
3001
if test $ac_cv_header_stdc = yes; then
3002
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3003
cat >conftest.$ac_ext <<_ACEOF
3004
#line $LINENO "configure"
3007
cat confdefs.h >>conftest.$ac_ext
3008
cat >>conftest.$ac_ext <<_ACEOF
3009
/* end confdefs.h. */
3013
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3014
$EGREP "free" >/dev/null 2>&1; then
3017
ac_cv_header_stdc=no
3023
if test $ac_cv_header_stdc = yes; then
3024
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3025
if test "$cross_compiling" = yes; then
3028
cat >conftest.$ac_ext <<_ACEOF
3029
#line $LINENO "configure"
3032
cat confdefs.h >>conftest.$ac_ext
3033
cat >>conftest.$ac_ext <<_ACEOF
3034
/* end confdefs.h. */
3036
#if ((' ' & 0x0FF) == 0x020)
3037
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3038
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3040
# define ISLOWER(c) \
3041
(('a' <= (c) && (c) <= 'i') \
3042
|| ('j' <= (c) && (c) <= 'r') \
3043
|| ('s' <= (c) && (c) <= 'z'))
3044
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3047
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3052
for (i = 0; i < 256; i++)
3053
if (XOR (islower (i), ISLOWER (i))
3054
|| toupper (i) != TOUPPER (i))
3059
rm -f conftest$ac_exeext
3060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3061
(eval $ac_link) 2>&5
3063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3065
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069
(exit $ac_status); }; }; then
3072
echo "$as_me: program exited with status $ac_status" >&5
3073
echo "$as_me: failed program was:" >&5
3074
sed 's/^/| /' conftest.$ac_ext >&5
3077
ac_cv_header_stdc=no
3079
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3083
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3084
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3085
if test $ac_cv_header_stdc = yes; then
3087
cat >>confdefs.h <<\_ACEOF
3088
#define STDC_HEADERS 1
3094
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3104
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3105
inttypes.h stdint.h unistd.h
3107
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3108
echo "$as_me:$LINENO: checking for $ac_header" >&5
3109
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3110
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3111
echo $ECHO_N "(cached) $ECHO_C" >&6
3113
cat >conftest.$ac_ext <<_ACEOF
3114
#line $LINENO "configure"
3117
cat confdefs.h >>conftest.$ac_ext
3118
cat >>conftest.$ac_ext <<_ACEOF
3119
/* end confdefs.h. */
3120
$ac_includes_default
3122
#include <$ac_header>
3124
rm -f conftest.$ac_objext
3125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3126
(eval $ac_compile) 2>&5
3128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3129
(exit $ac_status); } &&
3130
{ ac_try='test -s conftest.$ac_objext'
3131
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135
(exit $ac_status); }; }; then
3136
eval "$as_ac_Header=yes"
3138
echo "$as_me: failed program was:" >&5
3139
sed 's/^/| /' conftest.$ac_ext >&5
3141
eval "$as_ac_Header=no"
3143
rm -f conftest.$ac_objext conftest.$ac_ext
3145
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3146
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3147
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3148
cat >>confdefs.h <<_ACEOF
3149
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3157
echo "$as_me:$LINENO: checking for short" >&5
3158
echo $ECHO_N "checking for short... $ECHO_C" >&6
3159
if test "${ac_cv_type_short+set}" = set; then
3160
echo $ECHO_N "(cached) $ECHO_C" >&6
3162
cat >conftest.$ac_ext <<_ACEOF
3163
#line $LINENO "configure"
3166
cat confdefs.h >>conftest.$ac_ext
3167
cat >>conftest.$ac_ext <<_ACEOF
3168
/* end confdefs.h. */
3169
$ac_includes_default
3181
rm -f conftest.$ac_objext
3182
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183
(eval $ac_compile) 2>&5
3185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186
(exit $ac_status); } &&
3187
{ ac_try='test -s conftest.$ac_objext'
3188
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192
(exit $ac_status); }; }; then
3193
ac_cv_type_short=yes
3195
echo "$as_me: failed program was:" >&5
3196
sed 's/^/| /' conftest.$ac_ext >&5
3200
rm -f conftest.$ac_objext conftest.$ac_ext
3202
echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
3203
echo "${ECHO_T}$ac_cv_type_short" >&6
3205
echo "$as_me:$LINENO: checking size of short" >&5
3206
echo $ECHO_N "checking size of short... $ECHO_C" >&6
3207
if test "${ac_cv_sizeof_short+set}" = set; then
3208
echo $ECHO_N "(cached) $ECHO_C" >&6
3210
if test "$ac_cv_type_short" = yes; then
3211
# The cast to unsigned long works around a bug in the HP C Compiler
3212
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3213
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3214
# This bug is HP SR number 8606223364.
3215
if test "$cross_compiling" = yes; then
3216
# Depending upon the size, compute the lo and hi bounds.
3217
cat >conftest.$ac_ext <<_ACEOF
3218
#line $LINENO "configure"
3221
cat confdefs.h >>conftest.$ac_ext
3222
cat >>conftest.$ac_ext <<_ACEOF
3223
/* end confdefs.h. */
3224
$ac_includes_default
3228
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
3235
rm -f conftest.$ac_objext
3236
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3237
(eval $ac_compile) 2>&5
3239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240
(exit $ac_status); } &&
3241
{ ac_try='test -s conftest.$ac_objext'
3242
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246
(exit $ac_status); }; }; then
3249
cat >conftest.$ac_ext <<_ACEOF
3250
#line $LINENO "configure"
3253
cat confdefs.h >>conftest.$ac_ext
3254
cat >>conftest.$ac_ext <<_ACEOF
3255
/* end confdefs.h. */
3256
$ac_includes_default
3260
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3267
rm -f conftest.$ac_objext
3268
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3269
(eval $ac_compile) 2>&5
3271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272
(exit $ac_status); } &&
3273
{ ac_try='test -s conftest.$ac_objext'
3274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278
(exit $ac_status); }; }; then
3279
ac_hi=$ac_mid; break
3281
echo "$as_me: failed program was:" >&5
3282
sed 's/^/| /' conftest.$ac_ext >&5
3284
ac_lo=`expr $ac_mid + 1`
3285
if test $ac_lo -le $ac_mid; then
3289
ac_mid=`expr 2 '*' $ac_mid + 1`
3291
rm -f conftest.$ac_objext conftest.$ac_ext
3294
echo "$as_me: failed program was:" >&5
3295
sed 's/^/| /' conftest.$ac_ext >&5
3297
cat >conftest.$ac_ext <<_ACEOF
3298
#line $LINENO "configure"
3301
cat confdefs.h >>conftest.$ac_ext
3302
cat >>conftest.$ac_ext <<_ACEOF
3303
/* end confdefs.h. */
3304
$ac_includes_default
3308
static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
3315
rm -f conftest.$ac_objext
3316
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3317
(eval $ac_compile) 2>&5
3319
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320
(exit $ac_status); } &&
3321
{ ac_try='test -s conftest.$ac_objext'
3322
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326
(exit $ac_status); }; }; then
3329
cat >conftest.$ac_ext <<_ACEOF
3330
#line $LINENO "configure"
3333
cat confdefs.h >>conftest.$ac_ext
3334
cat >>conftest.$ac_ext <<_ACEOF
3335
/* end confdefs.h. */
3336
$ac_includes_default
3340
static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
3347
rm -f conftest.$ac_objext
3348
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349
(eval $ac_compile) 2>&5
3351
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352
(exit $ac_status); } &&
3353
{ ac_try='test -s conftest.$ac_objext'
3354
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3357
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358
(exit $ac_status); }; }; then
3359
ac_lo=$ac_mid; break
3361
echo "$as_me: failed program was:" >&5
3362
sed 's/^/| /' conftest.$ac_ext >&5
3364
ac_hi=`expr '(' $ac_mid ')' - 1`
3365
if test $ac_mid -le $ac_hi; then
3369
ac_mid=`expr 2 '*' $ac_mid`
3371
rm -f conftest.$ac_objext conftest.$ac_ext
3374
echo "$as_me: failed program was:" >&5
3375
sed 's/^/| /' conftest.$ac_ext >&5
3379
rm -f conftest.$ac_objext conftest.$ac_ext
3381
rm -f conftest.$ac_objext conftest.$ac_ext
3382
# Binary search between lo and hi bounds.
3383
while test "x$ac_lo" != "x$ac_hi"; do
3384
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3385
cat >conftest.$ac_ext <<_ACEOF
3386
#line $LINENO "configure"
3389
cat confdefs.h >>conftest.$ac_ext
3390
cat >>conftest.$ac_ext <<_ACEOF
3391
/* end confdefs.h. */
3392
$ac_includes_default
3396
static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
3403
rm -f conftest.$ac_objext
3404
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405
(eval $ac_compile) 2>&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); } &&
3409
{ ac_try='test -s conftest.$ac_objext'
3410
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3413
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414
(exit $ac_status); }; }; then
3417
echo "$as_me: failed program was:" >&5
3418
sed 's/^/| /' conftest.$ac_ext >&5
3420
ac_lo=`expr '(' $ac_mid ')' + 1`
3422
rm -f conftest.$ac_objext conftest.$ac_ext
3425
?*) ac_cv_sizeof_short=$ac_lo;;
3426
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3427
See \`config.log' for more details." >&5
3428
echo "$as_me: error: cannot compute sizeof (short), 77
3429
See \`config.log' for more details." >&2;}
3430
{ (exit 1); exit 1; }; } ;;
3433
if test "$cross_compiling" = yes; then
3434
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3435
See \`config.log' for more details." >&5
3436
echo "$as_me: error: cannot run test program while cross compiling
3437
See \`config.log' for more details." >&2;}
3438
{ (exit 1); exit 1; }; }
3440
cat >conftest.$ac_ext <<_ACEOF
3441
#line $LINENO "configure"
3444
cat confdefs.h >>conftest.$ac_ext
3445
cat >>conftest.$ac_ext <<_ACEOF
3446
/* end confdefs.h. */
3447
$ac_includes_default
3448
long longval () { return (long) (sizeof (short)); }
3449
unsigned long ulongval () { return (long) (sizeof (short)); }
3456
FILE *f = fopen ("conftest.val", "w");
3459
if (((long) (sizeof (short))) < 0)
3461
long i = longval ();
3462
if (i != ((long) (sizeof (short))))
3464
fprintf (f, "%ld\n", i);
3468
unsigned long i = ulongval ();
3469
if (i != ((long) (sizeof (short))))
3471
fprintf (f, "%lu\n", i);
3473
exit (ferror (f) || fclose (f) != 0);
3479
rm -f conftest$ac_exeext
3480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3481
(eval $ac_link) 2>&5
3483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
(exit $ac_status); }; }; then
3490
ac_cv_sizeof_short=`cat conftest.val`
3492
echo "$as_me: program exited with status $ac_status" >&5
3493
echo "$as_me: failed program was:" >&5
3494
sed 's/^/| /' conftest.$ac_ext >&5
3497
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
3498
See \`config.log' for more details." >&5
3499
echo "$as_me: error: cannot compute sizeof (short), 77
3500
See \`config.log' for more details." >&2;}
3501
{ (exit 1); exit 1; }; }
3503
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3508
ac_cv_sizeof_short=0
3511
echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
3512
echo "${ECHO_T}$ac_cv_sizeof_short" >&6
3513
cat >>confdefs.h <<_ACEOF
3514
#define SIZEOF_SHORT $ac_cv_sizeof_short
3518
echo "$as_me:$LINENO: checking for int" >&5
3519
echo $ECHO_N "checking for int... $ECHO_C" >&6
3520
if test "${ac_cv_type_int+set}" = set; then
3521
echo $ECHO_N "(cached) $ECHO_C" >&6
3523
cat >conftest.$ac_ext <<_ACEOF
3524
#line $LINENO "configure"
3527
cat confdefs.h >>conftest.$ac_ext
3528
cat >>conftest.$ac_ext <<_ACEOF
3529
/* end confdefs.h. */
3530
$ac_includes_default
3542
rm -f conftest.$ac_objext
3543
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3544
(eval $ac_compile) 2>&5
3546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547
(exit $ac_status); } &&
3548
{ ac_try='test -s conftest.$ac_objext'
3549
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553
(exit $ac_status); }; }; then
3556
echo "$as_me: failed program was:" >&5
3557
sed 's/^/| /' conftest.$ac_ext >&5
3561
rm -f conftest.$ac_objext conftest.$ac_ext
3563
echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
3564
echo "${ECHO_T}$ac_cv_type_int" >&6
3566
echo "$as_me:$LINENO: checking size of int" >&5
3567
echo $ECHO_N "checking size of int... $ECHO_C" >&6
3568
if test "${ac_cv_sizeof_int+set}" = set; then
3569
echo $ECHO_N "(cached) $ECHO_C" >&6
3571
if test "$ac_cv_type_int" = yes; then
3572
# The cast to unsigned long works around a bug in the HP C Compiler
3573
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3574
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3575
# This bug is HP SR number 8606223364.
3576
if test "$cross_compiling" = yes; then
3577
# Depending upon the size, compute the lo and hi bounds.
3578
cat >conftest.$ac_ext <<_ACEOF
3579
#line $LINENO "configure"
3582
cat confdefs.h >>conftest.$ac_ext
3583
cat >>conftest.$ac_ext <<_ACEOF
3584
/* end confdefs.h. */
3585
$ac_includes_default
3589
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
3596
rm -f conftest.$ac_objext
3597
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598
(eval $ac_compile) 2>&5
3600
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601
(exit $ac_status); } &&
3602
{ ac_try='test -s conftest.$ac_objext'
3603
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607
(exit $ac_status); }; }; then
3610
cat >conftest.$ac_ext <<_ACEOF
3611
#line $LINENO "configure"
3614
cat confdefs.h >>conftest.$ac_ext
3615
cat >>conftest.$ac_ext <<_ACEOF
3616
/* end confdefs.h. */
3617
$ac_includes_default
3621
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3628
rm -f conftest.$ac_objext
3629
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3630
(eval $ac_compile) 2>&5
3632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633
(exit $ac_status); } &&
3634
{ ac_try='test -s conftest.$ac_objext'
3635
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639
(exit $ac_status); }; }; then
3640
ac_hi=$ac_mid; break
3642
echo "$as_me: failed program was:" >&5
3643
sed 's/^/| /' conftest.$ac_ext >&5
3645
ac_lo=`expr $ac_mid + 1`
3646
if test $ac_lo -le $ac_mid; then
3650
ac_mid=`expr 2 '*' $ac_mid + 1`
3652
rm -f conftest.$ac_objext conftest.$ac_ext
3655
echo "$as_me: failed program was:" >&5
3656
sed 's/^/| /' conftest.$ac_ext >&5
3658
cat >conftest.$ac_ext <<_ACEOF
3659
#line $LINENO "configure"
3662
cat confdefs.h >>conftest.$ac_ext
3663
cat >>conftest.$ac_ext <<_ACEOF
3664
/* end confdefs.h. */
3665
$ac_includes_default
3669
static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
3676
rm -f conftest.$ac_objext
3677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678
(eval $ac_compile) 2>&5
3680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681
(exit $ac_status); } &&
3682
{ ac_try='test -s conftest.$ac_objext'
3683
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687
(exit $ac_status); }; }; then
3690
cat >conftest.$ac_ext <<_ACEOF
3691
#line $LINENO "configure"
3694
cat confdefs.h >>conftest.$ac_ext
3695
cat >>conftest.$ac_ext <<_ACEOF
3696
/* end confdefs.h. */
3697
$ac_includes_default
3701
static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
3708
rm -f conftest.$ac_objext
3709
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3710
(eval $ac_compile) 2>&5
3712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713
(exit $ac_status); } &&
3714
{ ac_try='test -s conftest.$ac_objext'
3715
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719
(exit $ac_status); }; }; then
3720
ac_lo=$ac_mid; break
3722
echo "$as_me: failed program was:" >&5
3723
sed 's/^/| /' conftest.$ac_ext >&5
3725
ac_hi=`expr '(' $ac_mid ')' - 1`
3726
if test $ac_mid -le $ac_hi; then
3730
ac_mid=`expr 2 '*' $ac_mid`
3732
rm -f conftest.$ac_objext conftest.$ac_ext
3735
echo "$as_me: failed program was:" >&5
3736
sed 's/^/| /' conftest.$ac_ext >&5
3740
rm -f conftest.$ac_objext conftest.$ac_ext
3742
rm -f conftest.$ac_objext conftest.$ac_ext
3743
# Binary search between lo and hi bounds.
3744
while test "x$ac_lo" != "x$ac_hi"; do
3745
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3746
cat >conftest.$ac_ext <<_ACEOF
3747
#line $LINENO "configure"
3750
cat confdefs.h >>conftest.$ac_ext
3751
cat >>conftest.$ac_ext <<_ACEOF
3752
/* end confdefs.h. */
3753
$ac_includes_default
3757
static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
3764
rm -f conftest.$ac_objext
3765
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3766
(eval $ac_compile) 2>&5
3768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
(exit $ac_status); } &&
3770
{ ac_try='test -s conftest.$ac_objext'
3771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
(exit $ac_status); }; }; then
3778
echo "$as_me: failed program was:" >&5
3779
sed 's/^/| /' conftest.$ac_ext >&5
3781
ac_lo=`expr '(' $ac_mid ')' + 1`
3783
rm -f conftest.$ac_objext conftest.$ac_ext
3786
?*) ac_cv_sizeof_int=$ac_lo;;
3787
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3788
See \`config.log' for more details." >&5
3789
echo "$as_me: error: cannot compute sizeof (int), 77
3790
See \`config.log' for more details." >&2;}
3791
{ (exit 1); exit 1; }; } ;;
3794
if test "$cross_compiling" = yes; then
3795
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
3796
See \`config.log' for more details." >&5
3797
echo "$as_me: error: cannot run test program while cross compiling
3798
See \`config.log' for more details." >&2;}
3799
{ (exit 1); exit 1; }; }
3801
cat >conftest.$ac_ext <<_ACEOF
3802
#line $LINENO "configure"
3805
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h. */
3808
$ac_includes_default
3809
long longval () { return (long) (sizeof (int)); }
3810
unsigned long ulongval () { return (long) (sizeof (int)); }
3817
FILE *f = fopen ("conftest.val", "w");
3820
if (((long) (sizeof (int))) < 0)
3822
long i = longval ();
3823
if (i != ((long) (sizeof (int))))
3825
fprintf (f, "%ld\n", i);
3829
unsigned long i = ulongval ();
3830
if (i != ((long) (sizeof (int))))
3832
fprintf (f, "%lu\n", i);
3834
exit (ferror (f) || fclose (f) != 0);
3840
rm -f conftest$ac_exeext
3841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842
(eval $ac_link) 2>&5
3844
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850
(exit $ac_status); }; }; then
3851
ac_cv_sizeof_int=`cat conftest.val`
3853
echo "$as_me: program exited with status $ac_status" >&5
3854
echo "$as_me: failed program was:" >&5
3855
sed 's/^/| /' conftest.$ac_ext >&5
3858
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
3859
See \`config.log' for more details." >&5
3860
echo "$as_me: error: cannot compute sizeof (int), 77
3861
See \`config.log' for more details." >&2;}
3862
{ (exit 1); exit 1; }; }
3864
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3872
echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
3873
echo "${ECHO_T}$ac_cv_sizeof_int" >&6
3874
cat >>confdefs.h <<_ACEOF
3875
#define SIZEOF_INT $ac_cv_sizeof_int
3879
echo "$as_me:$LINENO: checking for long" >&5
3880
echo $ECHO_N "checking for long... $ECHO_C" >&6
3881
if test "${ac_cv_type_long+set}" = set; then
3882
echo $ECHO_N "(cached) $ECHO_C" >&6
3884
cat >conftest.$ac_ext <<_ACEOF
3885
#line $LINENO "configure"
3888
cat confdefs.h >>conftest.$ac_ext
3889
cat >>conftest.$ac_ext <<_ACEOF
3890
/* end confdefs.h. */
3891
$ac_includes_default
3903
rm -f conftest.$ac_objext
3904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905
(eval $ac_compile) 2>&5
3907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908
(exit $ac_status); } &&
3909
{ ac_try='test -s conftest.$ac_objext'
3910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914
(exit $ac_status); }; }; then
3917
echo "$as_me: failed program was:" >&5
3918
sed 's/^/| /' conftest.$ac_ext >&5
3922
rm -f conftest.$ac_objext conftest.$ac_ext
3924
echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
3925
echo "${ECHO_T}$ac_cv_type_long" >&6
3927
echo "$as_me:$LINENO: checking size of long" >&5
3928
echo $ECHO_N "checking size of long... $ECHO_C" >&6
3929
if test "${ac_cv_sizeof_long+set}" = set; then
3930
echo $ECHO_N "(cached) $ECHO_C" >&6
3932
if test "$ac_cv_type_long" = yes; then
3933
# The cast to unsigned long works around a bug in the HP C Compiler
3934
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
3935
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
3936
# This bug is HP SR number 8606223364.
3937
if test "$cross_compiling" = yes; then
3938
# Depending upon the size, compute the lo and hi bounds.
3939
cat >conftest.$ac_ext <<_ACEOF
3940
#line $LINENO "configure"
3943
cat confdefs.h >>conftest.$ac_ext
3944
cat >>conftest.$ac_ext <<_ACEOF
3945
/* end confdefs.h. */
3946
$ac_includes_default
3950
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
3957
rm -f conftest.$ac_objext
3958
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959
(eval $ac_compile) 2>&5
3961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962
(exit $ac_status); } &&
3963
{ ac_try='test -s conftest.$ac_objext'
3964
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968
(exit $ac_status); }; }; then
3971
cat >conftest.$ac_ext <<_ACEOF
3972
#line $LINENO "configure"
3975
cat confdefs.h >>conftest.$ac_ext
3976
cat >>conftest.$ac_ext <<_ACEOF
3977
/* end confdefs.h. */
3978
$ac_includes_default
3982
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
3989
rm -f conftest.$ac_objext
3990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3991
(eval $ac_compile) 2>&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
4001
ac_hi=$ac_mid; break
4003
echo "$as_me: failed program was:" >&5
4004
sed 's/^/| /' conftest.$ac_ext >&5
4006
ac_lo=`expr $ac_mid + 1`
4007
if test $ac_lo -le $ac_mid; then
4011
ac_mid=`expr 2 '*' $ac_mid + 1`
4013
rm -f conftest.$ac_objext conftest.$ac_ext
4016
echo "$as_me: failed program was:" >&5
4017
sed 's/^/| /' conftest.$ac_ext >&5
4019
cat >conftest.$ac_ext <<_ACEOF
4020
#line $LINENO "configure"
4023
cat confdefs.h >>conftest.$ac_ext
4024
cat >>conftest.$ac_ext <<_ACEOF
4025
/* end confdefs.h. */
4026
$ac_includes_default
4030
static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4037
rm -f conftest.$ac_objext
4038
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4039
(eval $ac_compile) 2>&5
4041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042
(exit $ac_status); } &&
4043
{ ac_try='test -s conftest.$ac_objext'
4044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048
(exit $ac_status); }; }; then
4051
cat >conftest.$ac_ext <<_ACEOF
4052
#line $LINENO "configure"
4055
cat confdefs.h >>conftest.$ac_ext
4056
cat >>conftest.$ac_ext <<_ACEOF
4057
/* end confdefs.h. */
4058
$ac_includes_default
4062
static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4069
rm -f conftest.$ac_objext
4070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4071
(eval $ac_compile) 2>&5
4073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074
(exit $ac_status); } &&
4075
{ ac_try='test -s conftest.$ac_objext'
4076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080
(exit $ac_status); }; }; then
4081
ac_lo=$ac_mid; break
4083
echo "$as_me: failed program was:" >&5
4084
sed 's/^/| /' conftest.$ac_ext >&5
4086
ac_hi=`expr '(' $ac_mid ')' - 1`
4087
if test $ac_mid -le $ac_hi; then
4091
ac_mid=`expr 2 '*' $ac_mid`
4093
rm -f conftest.$ac_objext conftest.$ac_ext
4096
echo "$as_me: failed program was:" >&5
4097
sed 's/^/| /' conftest.$ac_ext >&5
4101
rm -f conftest.$ac_objext conftest.$ac_ext
4103
rm -f conftest.$ac_objext conftest.$ac_ext
4104
# Binary search between lo and hi bounds.
4105
while test "x$ac_lo" != "x$ac_hi"; do
4106
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
4107
cat >conftest.$ac_ext <<_ACEOF
4108
#line $LINENO "configure"
4111
cat confdefs.h >>conftest.$ac_ext
4112
cat >>conftest.$ac_ext <<_ACEOF
4113
/* end confdefs.h. */
4114
$ac_includes_default
4118
static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4125
rm -f conftest.$ac_objext
4126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4127
(eval $ac_compile) 2>&5
4129
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4130
(exit $ac_status); } &&
4131
{ ac_try='test -s conftest.$ac_objext'
4132
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136
(exit $ac_status); }; }; then
4139
echo "$as_me: failed program was:" >&5
4140
sed 's/^/| /' conftest.$ac_ext >&5
4142
ac_lo=`expr '(' $ac_mid ')' + 1`
4144
rm -f conftest.$ac_objext conftest.$ac_ext
4147
?*) ac_cv_sizeof_long=$ac_lo;;
4148
'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4149
See \`config.log' for more details." >&5
4150
echo "$as_me: error: cannot compute sizeof (long), 77
4151
See \`config.log' for more details." >&2;}
4152
{ (exit 1); exit 1; }; } ;;
4155
if test "$cross_compiling" = yes; then
4156
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4157
See \`config.log' for more details." >&5
4158
echo "$as_me: error: cannot run test program while cross compiling
4159
See \`config.log' for more details." >&2;}
4160
{ (exit 1); exit 1; }; }
4162
cat >conftest.$ac_ext <<_ACEOF
4163
#line $LINENO "configure"
4166
cat confdefs.h >>conftest.$ac_ext
4167
cat >>conftest.$ac_ext <<_ACEOF
4168
/* end confdefs.h. */
4169
$ac_includes_default
4170
long longval () { return (long) (sizeof (long)); }
4171
unsigned long ulongval () { return (long) (sizeof (long)); }
4178
FILE *f = fopen ("conftest.val", "w");
4181
if (((long) (sizeof (long))) < 0)
4183
long i = longval ();
4184
if (i != ((long) (sizeof (long))))
4186
fprintf (f, "%ld\n", i);
4190
unsigned long i = ulongval ();
4191
if (i != ((long) (sizeof (long))))
4193
fprintf (f, "%lu\n", i);
4195
exit (ferror (f) || fclose (f) != 0);
4201
rm -f conftest$ac_exeext
4202
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4203
(eval $ac_link) 2>&5
4205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4207
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211
(exit $ac_status); }; }; then
4212
ac_cv_sizeof_long=`cat conftest.val`
4214
echo "$as_me: program exited with status $ac_status" >&5
4215
echo "$as_me: failed program was:" >&5
4216
sed 's/^/| /' conftest.$ac_ext >&5
4219
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4220
See \`config.log' for more details." >&5
4221
echo "$as_me: error: cannot compute sizeof (long), 77
4222
See \`config.log' for more details." >&2;}
4223
{ (exit 1); exit 1; }; }
4225
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4233
echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
4234
echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4235
cat >>confdefs.h <<_ACEOF
4236
#define SIZEOF_LONG $ac_cv_sizeof_long
4241
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4242
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4243
if test "${ac_cv_c_const+set}" = set; then
4244
echo $ECHO_N "(cached) $ECHO_C" >&6
4246
cat >conftest.$ac_ext <<_ACEOF
4247
#line $LINENO "configure"
4250
cat confdefs.h >>conftest.$ac_ext
4251
cat >>conftest.$ac_ext <<_ACEOF
4252
/* end confdefs.h. */
4257
/* FIXME: Include the comments suggested by Paul. */
4259
/* Ultrix mips cc rejects this. */
4260
typedef int charset[2];
4262
/* SunOS 4.1.1 cc rejects this. */
4263
char const *const *ccp;
4265
/* NEC SVR4.0.2 mips cc rejects this. */
4266
struct point {int x, y;};
4267
static struct point const zero = {0,0};
4268
/* AIX XL C 1.02.0.0 rejects this.
4269
It does not let you subtract one const X* pointer from another in
4270
an arm of an if-expression whose if-part is not a constant
4272
const char *g = "string";
4273
ccp = &g + (g ? g-g : 0);
4274
/* HPUX 7.0 cc rejects these. */
4277
ccp = (char const *const *) p;
4278
{ /* SCO 3.2v4 cc rejects this. */
4280
char const *s = 0 ? (char *) 0 : (char const *) 0;
4284
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4286
const int *foo = &x[0];
4289
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4290
typedef const int *iptr;
4294
{ /* AIX XL C 1.02.0.0 rejects this saying
4295
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4296
struct s { int j; const int *ap[3]; };
4297
struct s *b; b->j = 5;
4299
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4308
rm -f conftest.$ac_objext
4309
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4310
(eval $ac_compile) 2>&5
4312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313
(exit $ac_status); } &&
4314
{ ac_try='test -s conftest.$ac_objext'
4315
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319
(exit $ac_status); }; }; then
4322
echo "$as_me: failed program was:" >&5
4323
sed 's/^/| /' conftest.$ac_ext >&5
4327
rm -f conftest.$ac_objext conftest.$ac_ext
4329
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4330
echo "${ECHO_T}$ac_cv_c_const" >&6
4331
if test $ac_cv_c_const = no; then
4333
cat >>confdefs.h <<\_ACEOF
4339
echo "$as_me:$LINENO: checking for inline" >&5
4340
echo $ECHO_N "checking for inline... $ECHO_C" >&6
4341
if test "${ac_cv_c_inline+set}" = set; then
4342
echo $ECHO_N "(cached) $ECHO_C" >&6
4345
for ac_kw in inline __inline__ __inline; do
4346
cat >conftest.$ac_ext <<_ACEOF
4347
#line $LINENO "configure"
4350
cat confdefs.h >>conftest.$ac_ext
4351
cat >>conftest.$ac_ext <<_ACEOF
4352
/* end confdefs.h. */
4355
static $ac_kw foo_t static_foo () {return 0; }
4356
$ac_kw foo_t foo () {return 0; }
4360
rm -f conftest.$ac_objext
4361
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362
(eval $ac_compile) 2>&5
4364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365
(exit $ac_status); } &&
4366
{ ac_try='test -s conftest.$ac_objext'
4367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
(exit $ac_status); }; }; then
4372
ac_cv_c_inline=$ac_kw; break
4374
echo "$as_me: failed program was:" >&5
4375
sed 's/^/| /' conftest.$ac_ext >&5
4378
rm -f conftest.$ac_objext conftest.$ac_ext
4382
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4383
echo "${ECHO_T}$ac_cv_c_inline" >&6
4384
case $ac_cv_c_inline in
4387
cat >>confdefs.h <<\_ACEOF
4391
*) cat >>confdefs.h <<_ACEOF
4392
#define inline $ac_cv_c_inline
4399
cat >>confdefs.h <<\_ACEOF
4400
#define USE_UNIX_REDIRECTION 1
4404
for ac_prog in perl5.00502 perl5.00501 perl5.00500 perl5.005 perl5.00404 perl5.004 perl5 perl
4406
# Extract the first word of "$ac_prog", so it can be a program name with args.
4407
set dummy $ac_prog; ac_word=$2
4408
echo "$as_me:$LINENO: checking for $ac_word" >&5
4409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4410
if test "${ac_cv_prog_PERL+set}" = set; then
4411
echo $ECHO_N "(cached) $ECHO_C" >&6
4413
if test -n "$PERL"; then
4414
ac_cv_prog_PERL="$PERL" # Let the user override the test.
4416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420
test -z "$as_dir" && as_dir=.
4421
for ac_exec_ext in '' $ac_executable_extensions; do
4422
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4423
ac_cv_prog_PERL="$ac_prog"
4424
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4432
PERL=$ac_cv_prog_PERL
4433
if test -n "$PERL"; then
4434
echo "$as_me:$LINENO: result: $PERL" >&5
4435
echo "${ECHO_T}$PERL" >&6
4437
echo "$as_me:$LINENO: result: no" >&5
4438
echo "${ECHO_T}no" >&6
4441
test -n "$PERL" && break
4446
if test -n "$PERL"; then
4455
if test "$GCC" = yes; then
4457
cat >>confdefs.h <<\_ACEOF
4458
#define USE_GCC_ASM 1
4461
CFLAGS="$CFLAGS -funroll-all-loops -O3"
4462
echo "$as_me:$LINENO: checking for pgcc/egcs" >&5
4463
echo $ECHO_N "checking for pgcc/egcs... $ECHO_C" >&6
4464
case `$CC -v 2>&1` in
4466
echo "$as_me:$LINENO: result: pgcc" >&5
4467
echo "${ECHO_T}pgcc" >&6
4470
echo "$as_me:$LINENO: result: egcs" >&5
4471
echo "${ECHO_T}egcs" >&6
4474
echo "$as_me:$LINENO: checking for x86 asm" >&5
4475
echo $ECHO_N "checking for x86 asm... $ECHO_C" >&6
4477
i386 | i486 | i586 | ix86 | i86 )
4479
cat >>confdefs.h <<\_ACEOF
4480
#define COMPILE_CPU 5
4483
echo "$as_me:$LINENO: result: pentium" >&5
4484
echo "${ECHO_T}pentium" >&6
4488
cat >>confdefs.h <<\_ACEOF
4489
#define COMPILE_CPU 6
4492
echo "$as_me:$LINENO: result: pentiumpro" >&5
4493
echo "${ECHO_T}pentiumpro" >&6
4496
echo "$as_me:$LINENO: result: not x86" >&5
4497
echo "${ECHO_T}not x86" >&6
4500
echo "$as_me:$LINENO: result: no gcc" >&5
4501
echo "${ECHO_T}no gcc" >&6
4509
for ac_header in stdbool.h getopt.h unistd.h sys/time.h
4511
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4512
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513
echo "$as_me:$LINENO: checking for $ac_header" >&5
4514
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4515
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4516
echo $ECHO_N "(cached) $ECHO_C" >&6
4518
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4521
# Is the header compilable?
4522
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4523
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4524
cat >conftest.$ac_ext <<_ACEOF
4525
#line $LINENO "configure"
4528
cat confdefs.h >>conftest.$ac_ext
4529
cat >>conftest.$ac_ext <<_ACEOF
4530
/* end confdefs.h. */
4531
$ac_includes_default
4532
#include <$ac_header>
4534
rm -f conftest.$ac_objext
4535
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4536
(eval $ac_compile) 2>&5
4538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539
(exit $ac_status); } &&
4540
{ ac_try='test -s conftest.$ac_objext'
4541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545
(exit $ac_status); }; }; then
4546
ac_header_compiler=yes
4548
echo "$as_me: failed program was:" >&5
4549
sed 's/^/| /' conftest.$ac_ext >&5
4551
ac_header_compiler=no
4553
rm -f conftest.$ac_objext conftest.$ac_ext
4554
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4555
echo "${ECHO_T}$ac_header_compiler" >&6
4557
# Is the header present?
4558
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4559
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4560
cat >conftest.$ac_ext <<_ACEOF
4561
#line $LINENO "configure"
4564
cat confdefs.h >>conftest.$ac_ext
4565
cat >>conftest.$ac_ext <<_ACEOF
4566
/* end confdefs.h. */
4567
#include <$ac_header>
4569
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4570
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4572
grep -v '^ *+' conftest.er1 >conftest.err
4574
cat conftest.err >&5
4575
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576
(exit $ac_status); } >/dev/null; then
4577
if test -s conftest.err; then
4578
ac_cpp_err=$ac_c_preproc_warn_flag
4585
if test -z "$ac_cpp_err"; then
4586
ac_header_preproc=yes
4588
echo "$as_me: failed program was:" >&5
4589
sed 's/^/| /' conftest.$ac_ext >&5
4591
ac_header_preproc=no
4593
rm -f conftest.err conftest.$ac_ext
4594
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4595
echo "${ECHO_T}$ac_header_preproc" >&6
4597
# So? What about this header?
4598
case $ac_header_compiler:$ac_header_preproc in
4600
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4601
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4602
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4603
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4606
## ------------------------------------ ##
4607
## Report this to bug-autoconf@gnu.org. ##
4608
## ------------------------------------ ##
4611
sed "s/^/$as_me: WARNING: /" >&2
4614
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4615
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4616
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4617
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4618
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4619
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4622
## ------------------------------------ ##
4623
## Report this to bug-autoconf@gnu.org. ##
4624
## ------------------------------------ ##
4627
sed "s/^/$as_me: WARNING: /" >&2
4630
echo "$as_me:$LINENO: checking for $ac_header" >&5
4631
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4632
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4633
echo $ECHO_N "(cached) $ECHO_C" >&6
4635
eval "$as_ac_Header=$ac_header_preproc"
4637
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4638
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4641
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4642
cat >>confdefs.h <<_ACEOF
4643
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4651
for ac_func in gettimeofday
4653
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4654
echo "$as_me:$LINENO: checking for $ac_func" >&5
4655
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4656
if eval "test \"\${$as_ac_var+set}\" = set"; then
4657
echo $ECHO_N "(cached) $ECHO_C" >&6
4659
cat >conftest.$ac_ext <<_ACEOF
4660
#line $LINENO "configure"
4663
cat confdefs.h >>conftest.$ac_ext
4664
cat >>conftest.$ac_ext <<_ACEOF
4665
/* end confdefs.h. */
4666
/* System header to define __stub macros and hopefully few prototypes,
4667
which can conflict with char $ac_func (); below.
4668
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4669
<limits.h> exists even on freestanding compilers. */
4671
# include <limits.h>
4673
# include <assert.h>
4675
/* Override any gcc2 internal prototype to avoid an error. */
4680
/* We use char because int might match the return type of a gcc2
4681
builtin and then its argument prototype would still apply. */
4683
/* The GNU C library defines this for functions which it implements
4684
to always fail with ENOSYS. Some functions are actually named
4685
something starting with __ and the normal name is an alias. */
4686
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4689
char (*f) () = $ac_func;
4698
return f != $ac_func;
4703
rm -f conftest.$ac_objext conftest$ac_exeext
4704
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4705
(eval $ac_link) 2>&5
4707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
(exit $ac_status); } &&
4709
{ ac_try='test -s conftest$ac_exeext'
4710
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714
(exit $ac_status); }; }; then
4715
eval "$as_ac_var=yes"
4717
echo "$as_me: failed program was:" >&5
4718
sed 's/^/| /' conftest.$ac_ext >&5
4720
eval "$as_ac_var=no"
4722
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4724
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4725
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4726
if test `eval echo '${'$as_ac_var'}'` = yes; then
4727
cat >>confdefs.h <<_ACEOF
4728
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4735
for ac_func in getopt_long
4737
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4738
echo "$as_me:$LINENO: checking for $ac_func" >&5
4739
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4740
if eval "test \"\${$as_ac_var+set}\" = set"; then
4741
echo $ECHO_N "(cached) $ECHO_C" >&6
4743
cat >conftest.$ac_ext <<_ACEOF
4744
#line $LINENO "configure"
4747
cat confdefs.h >>conftest.$ac_ext
4748
cat >>conftest.$ac_ext <<_ACEOF
4749
/* end confdefs.h. */
4750
/* System header to define __stub macros and hopefully few prototypes,
4751
which can conflict with char $ac_func (); below.
4752
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4753
<limits.h> exists even on freestanding compilers. */
4755
# include <limits.h>
4757
# include <assert.h>
4759
/* Override any gcc2 internal prototype to avoid an error. */
4764
/* We use char because int might match the return type of a gcc2
4765
builtin and then its argument prototype would still apply. */
4767
/* The GNU C library defines this for functions which it implements
4768
to always fail with ENOSYS. Some functions are actually named
4769
something starting with __ and the normal name is an alias. */
4770
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4773
char (*f) () = $ac_func;
4782
return f != $ac_func;
4787
rm -f conftest.$ac_objext conftest$ac_exeext
4788
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4789
(eval $ac_link) 2>&5
4791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792
(exit $ac_status); } &&
4793
{ ac_try='test -s conftest$ac_exeext'
4794
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798
(exit $ac_status); }; }; then
4799
eval "$as_ac_var=yes"
4801
echo "$as_me: failed program was:" >&5
4802
sed 's/^/| /' conftest.$ac_ext >&5
4804
eval "$as_ac_var=no"
4806
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4808
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4809
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4810
if test `eval echo '${'$as_ac_var'}'` = yes; then
4811
cat >>confdefs.h <<_ACEOF
4812
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4816
LIBOBJS="$LIBOBJS getopt.$ac_objext"
4817
LIBOBJS="$LIBOBJS getopt1.$ac_objext"
4826
ac_config_files="$ac_config_files Makefile"
4828
cat >confcache <<\_ACEOF
4829
# This file is a shell script that caches the results of configure
4830
# tests run on this system so they can be shared between configure
4831
# scripts and configure runs, see configure's option --config-cache.
4832
# It is not useful on other systems. If it contains results you don't
4833
# want to keep, you may remove or edit it.
4835
# config.status only pays attention to the cache file if you give it
4836
# the --recheck option to rerun configure.
4838
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4839
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4844
# The following way of writing the cache mishandles newlines in values,
4845
# but we know of no workaround that is simple, portable, and efficient.
4846
# So, don't put newlines in cache variables' values.
4847
# Ultrix sh set writes to stderr and can't be redirected directly,
4848
# and sets the high bit in the cache file unless we assign to the vars.
4851
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4853
# `set' does not quote correctly, so add quotes (double-quote
4854
# substitution turns \\\\ into \\, and sed turns \\ into \).
4857
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4860
# `set' quotes correctly as required by POSIX, so do not add quotes.
4862
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4869
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4871
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4873
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4874
if test -w $cache_file; then
4875
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4876
cat confcache >$cache_file
4878
echo "not updating unwritable cache $cache_file"
4883
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4884
# Let make expand exec_prefix.
4885
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4887
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4888
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4889
# trailing colons and then remove the whole line if VPATH becomes empty
4890
# (actually we leave an empty line to preserve line numbers).
4891
if test "x$srcdir" = x.; then
4892
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4893
s/:*\$(srcdir):*/:/;
4894
s/:*\${srcdir}:*/:/;
4896
s/^\([^=]*=[ ]*\):*/\1/;
4902
DEFS=-DHAVE_CONFIG_H
4906
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4907
# 1. Remove the extension, and $U if already installed.
4908
ac_i=`echo "$ac_i" |
4909
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4911
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4912
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4916
LTLIBOBJS=$ac_ltlibobjs
4919
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4920
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4921
Usually this means the macro was only invoked conditionally." >&5
4922
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4923
Usually this means the macro was only invoked conditionally." >&2;}
4924
{ (exit 1); exit 1; }; }
4926
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4927
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
4928
Usually this means the macro was only invoked conditionally." >&5
4929
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
4930
Usually this means the macro was only invoked conditionally." >&2;}
4931
{ (exit 1); exit 1; }; }
4933
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
4934
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_PERL\" was never defined.
4935
Usually this means the macro was only invoked conditionally." >&5
4936
echo "$as_me: error: conditional \"HAVE_PERL\" was never defined.
4937
Usually this means the macro was only invoked conditionally." >&2;}
4938
{ (exit 1); exit 1; }; }
4941
: ${CONFIG_STATUS=./config.status}
4942
ac_clean_files_save=$ac_clean_files
4943
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4944
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4945
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4946
cat >$CONFIG_STATUS <<_ACEOF
4948
# Generated by $as_me.
4949
# Run this file to recreate the current configuration.
4950
# Compiler output produced by configure, useful for debugging
4951
# configure, is in config.log if it exists.
4956
SHELL=\${CONFIG_SHELL-$SHELL}
4959
cat >>$CONFIG_STATUS <<\_ACEOF
4960
## --------------------- ##
4961
## M4sh Initialization. ##
4962
## --------------------- ##
4964
# Be Bourne compatible
4965
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4968
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4969
# is contrary to our usage. Disable this feature.
4970
alias -g '${1+"$@"}'='"$@"'
4971
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4975
# Support unset when possible.
4976
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4983
# Work around bugs in pre-3.0 UWIN ksh.
4984
$as_unset ENV MAIL MAILPATH
4991
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4992
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4993
LC_TELEPHONE LC_TIME
4995
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4996
eval $as_var=C; export $as_var
5002
# Required to use basename.
5003
if expr a : '\(a\)' >/dev/null 2>&1; then
5009
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5010
as_basename=basename
5016
# Name of the executable.
5017
as_me=`$as_basename "$0" ||
5018
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5019
X"$0" : 'X\(//\)$' \| \
5020
X"$0" : 'X\(/\)$' \| \
5021
. : '\(.\)' 2>/dev/null ||
5023
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5024
/^X\/\(\/\/\)$/{ s//\1/; q; }
5025
/^X\/\(\/\).*/{ s//\1/; q; }
5029
# PATH needs CR, and LINENO needs CR and PATH.
5030
# Avoid depending upon Character Ranges.
5031
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5032
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5033
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5034
as_cr_digits='0123456789'
5035
as_cr_alnum=$as_cr_Letters$as_cr_digits
5037
# The user is always right.
5038
if test "${PATH_SEPARATOR+set}" != set; then
5039
echo "#! /bin/sh" >conf$$.sh
5040
echo "exit 0" >>conf$$.sh
5042
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5053
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5054
test "x$as_lineno_1" != "x$as_lineno_2" &&
5055
test "x$as_lineno_3" = "x$as_lineno_2" || {
5056
# Find who we are. Look in the path if we contain no path at all
5059
*[\\/]* ) as_myself=$0 ;;
5060
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064
test -z "$as_dir" && as_dir=.
5065
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5070
# We did not find ourselves, most probably we were run as `sh COMMAND'
5071
# in which case we are not to be found in the path.
5072
if test "x$as_myself" = x; then
5075
if test ! -f "$as_myself"; then
5076
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5077
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5078
{ (exit 1); exit 1; }; }
5080
case $CONFIG_SHELL in
5082
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5086
test -z "$as_dir" && as_dir=.
5087
for as_base in sh bash ksh sh5; do
5090
if ("$as_dir/$as_base" -c '
5093
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5094
test "x$as_lineno_1" != "x$as_lineno_2" &&
5095
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5096
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5097
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5098
CONFIG_SHELL=$as_dir/$as_base
5100
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5108
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5109
# uniformly replaced by the line number. The first 'sed' inserts a
5110
# line-number line before each line; the second 'sed' does the real
5111
# work. The second script uses 'N' to pair each line-number line
5112
# with the numbered line, and appends trailing '-' during
5113
# substitution so that $LINENO is not a special case at line end.
5114
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5115
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5116
sed '=' <$as_myself |
5121
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5124
s,^['$as_cr_digits']*\n,,
5126
chmod +x $as_me.lineno ||
5127
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5128
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5129
{ (exit 1); exit 1; }; }
5131
# Don't try to exec as it changes $[0], causing all sort of problems
5132
# (the dirname of $[0] is not the place where we might find the
5133
# original and so on. Autoconf is especially sensible to this).
5135
# Exit status is that of the last command.
5140
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5141
*c*,-n*) ECHO_N= ECHO_C='
5143
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5144
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5147
if expr a : '\(a\)' >/dev/null 2>&1; then
5153
rm -f conf$$ conf$$.exe conf$$.file
5155
if ln -s conf$$.file conf$$ 2>/dev/null; then
5156
# We could just check for DJGPP; but this test a) works b) is more generic
5157
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5158
if test -f conf$$.exe; then
5159
# Don't use ln at all; we don't have any links
5164
elif ln conf$$.file conf$$ 2>/dev/null; then
5169
rm -f conf$$ conf$$.exe conf$$.file
5171
if mkdir -p . 2>/dev/null; then
5177
as_executable_p="test -f"
5179
# Sed expression to map a string onto a valid CPP name.
5180
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
5182
# Sed expression to map a string onto a valid variable name.
5183
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
5187
# We need space, tab and new line, in precisely that order.
5197
# Open the log real soon, to keep \$[0] and so on meaningful, and to
5198
# report actual input values of CONFIG_FILES etc. instead of their
5199
# values after options handling. Logging --version etc. is OK.
5203
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5204
## Running $as_me. ##
5209
This file was extended by $as_me, which was
5210
generated by GNU Autoconf 2.57. Invocation command line was
5212
CONFIG_FILES = $CONFIG_FILES
5213
CONFIG_HEADERS = $CONFIG_HEADERS
5214
CONFIG_LINKS = $CONFIG_LINKS
5215
CONFIG_COMMANDS = $CONFIG_COMMANDS
5219
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5223
# Files that config.status was made for.
5224
if test -n "$ac_config_files"; then
5225
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5228
if test -n "$ac_config_headers"; then
5229
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5232
if test -n "$ac_config_links"; then
5233
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5236
if test -n "$ac_config_commands"; then
5237
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5240
cat >>$CONFIG_STATUS <<\_ACEOF
5243
\`$as_me' instantiates files from templates according to the
5244
current configuration.
5246
Usage: $0 [OPTIONS] [FILE]...
5248
-h, --help print this help, then exit
5249
-V, --version print version number, then exit
5250
-q, --quiet do not print progress messages
5251
-d, --debug don't remove temporary files
5252
--recheck update $as_me by reconfiguring in the same conditions
5253
--file=FILE[:TEMPLATE]
5254
instantiate the configuration file FILE
5255
--header=FILE[:TEMPLATE]
5256
instantiate the configuration header FILE
5258
Configuration files:
5261
Configuration headers:
5264
Configuration commands:
5267
Report bugs to <bug-autoconf@gnu.org>."
5270
cat >>$CONFIG_STATUS <<_ACEOF
5273
configured by $0, generated by GNU Autoconf 2.57,
5274
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5276
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
5277
Free Software Foundation, Inc.
5278
This config.status script is free software; the Free Software Foundation
5279
gives unlimited permission to copy, distribute and modify it."
5284
cat >>$CONFIG_STATUS <<\_ACEOF
5285
# If no file are specified by the user, then we need to provide default
5286
# value. By we need to know if files were specified by the user.
5292
ac_option=`expr "x$1" : 'x\([^=]*\)='`
5293
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5301
*) # This is not an option, so the user has probably given explicit
5304
ac_need_defaults=false;;
5308
# Handling of the options.
5310
cat >>$CONFIG_STATUS <<\_ACEOF
5311
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5313
--version | --vers* | -V )
5314
echo "$ac_cs_version"; exit 0 ;;
5316
# Conflict between --help and --header
5317
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
5318
Try \`$0 --help' for more information." >&5
5319
echo "$as_me: error: ambiguous option: $1
5320
Try \`$0 --help' for more information." >&2;}
5321
{ (exit 1); exit 1; }; };;
5322
--help | --hel | -h )
5323
echo "$ac_cs_usage"; exit 0 ;;
5324
--debug | --d* | -d )
5326
--file | --fil | --fi | --f )
5328
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5329
ac_need_defaults=false;;
5330
--header | --heade | --head | --hea )
5332
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5333
ac_need_defaults=false;;
5334
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5335
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5339
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5340
Try \`$0 --help' for more information." >&5
5341
echo "$as_me: error: unrecognized option: $1
5342
Try \`$0 --help' for more information." >&2;}
5343
{ (exit 1); exit 1; }; } ;;
5345
*) ac_config_targets="$ac_config_targets $1" ;;
5351
ac_configure_extra_args=
5353
if $ac_cs_silent; then
5355
ac_configure_extra_args="$ac_configure_extra_args --silent"
5359
cat >>$CONFIG_STATUS <<_ACEOF
5360
if \$ac_cs_recheck; then
5361
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5362
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5367
cat >>$CONFIG_STATUS <<_ACEOF
5369
# INIT-COMMANDS section.
5372
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5378
cat >>$CONFIG_STATUS <<\_ACEOF
5379
for ac_config_target in $ac_config_targets
5381
case "$ac_config_target" in
5382
# Handling of arguments.
5383
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5384
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5385
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5386
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5387
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5388
{ (exit 1); exit 1; }; };;
5392
# If the user did not use the arguments to specify the items to instantiate,
5393
# then the envvar interface is used. Set only those that are not.
5394
# We use the long form for the default assignment because of an extremely
5395
# bizarre bug on SunOS 4.1.3.
5396
if $ac_need_defaults; then
5397
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5398
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5399
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5402
# Have a temporary directory for convenience. Make it in the build tree
5403
# simply because there is no reason to put it here, and in addition,
5404
# creating and moving files from /tmp can sometimes cause problems.
5405
# Create a temporary directory, and hook for its removal unless debugging.
5408
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5409
trap '{ (exit 1); exit 1; }' 1 2 13 15
5412
# Create a (secure) tmp directory for tmp files.
5415
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5416
test -n "$tmp" && test -d "$tmp"
5419
tmp=./confstat$$-$RANDOM
5420
(umask 077 && mkdir $tmp)
5423
echo "$me: cannot create a temporary directory in ." >&2
5424
{ (exit 1); exit 1; }
5429
cat >>$CONFIG_STATUS <<_ACEOF
5432
# CONFIG_FILES section.
5435
# No need to generate the scripts if there are no CONFIG_FILES.
5436
# This happens for instance when ./config.status config.h
5437
if test -n "\$CONFIG_FILES"; then
5438
# Protect against being on the right side of a sed subst in config.status.
5439
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5440
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5441
s,@SHELL@,$SHELL,;t t
5442
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5443
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5444
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5445
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5446
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5447
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5448
s,@exec_prefix@,$exec_prefix,;t t
5449
s,@prefix@,$prefix,;t t
5450
s,@program_transform_name@,$program_transform_name,;t t
5451
s,@bindir@,$bindir,;t t
5452
s,@sbindir@,$sbindir,;t t
5453
s,@libexecdir@,$libexecdir,;t t
5454
s,@datadir@,$datadir,;t t
5455
s,@sysconfdir@,$sysconfdir,;t t
5456
s,@sharedstatedir@,$sharedstatedir,;t t
5457
s,@localstatedir@,$localstatedir,;t t
5458
s,@libdir@,$libdir,;t t
5459
s,@includedir@,$includedir,;t t
5460
s,@oldincludedir@,$oldincludedir,;t t
5461
s,@infodir@,$infodir,;t t
5462
s,@mandir@,$mandir,;t t
5463
s,@build_alias@,$build_alias,;t t
5464
s,@host_alias@,$host_alias,;t t
5465
s,@target_alias@,$target_alias,;t t
5467
s,@ECHO_C@,$ECHO_C,;t t
5468
s,@ECHO_N@,$ECHO_N,;t t
5469
s,@ECHO_T@,$ECHO_T,;t t
5471
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5472
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5473
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5474
s,@CYGPATH_W@,$CYGPATH_W,;t t
5475
s,@PACKAGE@,$PACKAGE,;t t
5476
s,@VERSION@,$VERSION,;t t
5477
s,@ACLOCAL@,$ACLOCAL,;t t
5478
s,@AUTOCONF@,$AUTOCONF,;t t
5479
s,@AUTOMAKE@,$AUTOMAKE,;t t
5480
s,@AUTOHEADER@,$AUTOHEADER,;t t
5481
s,@MAKEINFO@,$MAKEINFO,;t t
5482
s,@AMTAR@,$AMTAR,;t t
5483
s,@install_sh@,$install_sh,;t t
5484
s,@STRIP@,$STRIP,;t t
5485
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5486
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
5488
s,@SET_MAKE@,$SET_MAKE,;t t
5490
s,@CFLAGS@,$CFLAGS,;t t
5491
s,@LDFLAGS@,$LDFLAGS,;t t
5492
s,@CPPFLAGS@,$CPPFLAGS,;t t
5493
s,@ac_ct_CC@,$ac_ct_CC,;t t
5494
s,@EXEEXT@,$EXEEXT,;t t
5495
s,@OBJEXT@,$OBJEXT,;t t
5496
s,@DEPDIR@,$DEPDIR,;t t
5497
s,@am__include@,$am__include,;t t
5498
s,@am__quote@,$am__quote,;t t
5499
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
5500
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
5501
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
5502
s,@CCDEPMODE@,$CCDEPMODE,;t t
5503
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
5504
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
5506
s,@EGREP@,$EGREP,;t t
5508
s,@HAVE_PERL_TRUE@,$HAVE_PERL_TRUE,;t t
5509
s,@HAVE_PERL_FALSE@,$HAVE_PERL_FALSE,;t t
5510
s,@LIBOBJS@,$LIBOBJS,;t t
5511
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5516
cat >>$CONFIG_STATUS <<\_ACEOF
5517
# Split the substitutions into bite-sized pieces for seds with
5518
# small command number limits, like on Digital OSF/1 and HP-UX.
5520
ac_sed_frag=1 # Number of current file.
5521
ac_beg=1 # First line for current file.
5522
ac_end=$ac_max_sed_lines # Line after last line for current file.
5525
while $ac_more_lines; do
5526
if test $ac_beg -gt 1; then
5527
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5529
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5531
if test ! -s $tmp/subs.frag; then
5534
# The purpose of the label and of the branching condition is to
5535
# speed up the sed processing (if there are no `@' at all, there
5536
# is no need to browse any of the substitutions).
5537
# These are the two extra sed commands mentioned above.
5539
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5540
if test -z "$ac_sed_cmds"; then
5541
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5543
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5545
ac_sed_frag=`expr $ac_sed_frag + 1`
5547
ac_end=`expr $ac_end + $ac_max_sed_lines`
5550
if test -z "$ac_sed_cmds"; then
5553
fi # test -n "$CONFIG_FILES"
5556
cat >>$CONFIG_STATUS <<\_ACEOF
5557
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5558
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5560
- | *:- | *:-:* ) # input from stdin
5562
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5563
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5564
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5565
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5566
* ) ac_file_in=$ac_file.in ;;
5569
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5570
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5571
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5572
X"$ac_file" : 'X\(//\)[^/]' \| \
5573
X"$ac_file" : 'X\(//\)$' \| \
5574
X"$ac_file" : 'X\(/\)' \| \
5575
. : '\(.\)' 2>/dev/null ||
5577
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5578
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5579
/^X\(\/\/\)$/{ s//\1/; q; }
5580
/^X\(\/\).*/{ s//\1/; q; }
5582
{ if $as_mkdir_p; then
5587
while test ! -d "$as_dir"; do
5588
as_dirs="$as_dir $as_dirs"
5589
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5590
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5591
X"$as_dir" : 'X\(//\)[^/]' \| \
5592
X"$as_dir" : 'X\(//\)$' \| \
5593
X"$as_dir" : 'X\(/\)' \| \
5594
. : '\(.\)' 2>/dev/null ||
5596
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5597
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5598
/^X\(\/\/\)$/{ s//\1/; q; }
5599
/^X\(\/\).*/{ s//\1/; q; }
5602
test ! -n "$as_dirs" || mkdir $as_dirs
5603
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5604
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5605
{ (exit 1); exit 1; }; }; }
5609
if test "$ac_dir" != .; then
5610
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5611
# A "../" for each directory in $ac_dir_suffix.
5612
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5614
ac_dir_suffix= ac_top_builddir=
5618
.) # No --srcdir option. We are building in place.
5620
if test -z "$ac_top_builddir"; then
5623
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5625
[\\/]* | ?:[\\/]* ) # Absolute path.
5626
ac_srcdir=$srcdir$ac_dir_suffix;
5627
ac_top_srcdir=$srcdir ;;
5629
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5630
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5632
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5634
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5635
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5636
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5637
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5641
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5642
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5645
if test x"$ac_file" != x-; then
5646
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5647
echo "$as_me: creating $ac_file" >&6;}
5650
# Let's still pretend it is `configure' which instantiates (i.e., don't
5651
# use $as_me), people would be surprised to read:
5652
# /* config.h. Generated by config.status. */
5653
if test x"$ac_file" = x-; then
5656
configure_input="$ac_file. "
5658
configure_input=$configure_input"Generated from `echo $ac_file_in |
5659
sed 's,.*/,,'` by configure."
5661
# First look for the input files in the build tree, otherwise in the
5663
ac_file_inputs=`IFS=:
5664
for f in $ac_file_in; do
5666
-) echo $tmp/stdin ;;
5668
# Absolute (can't be DOS-style, as IFS=:)
5669
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5670
echo "$as_me: error: cannot find input file: $f" >&2;}
5671
{ (exit 1); exit 1; }; }
5674
if test -f "$f"; then
5677
elif test -f "$srcdir/$f"; then
5682
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5683
echo "$as_me: error: cannot find input file: $f" >&2;}
5684
{ (exit 1); exit 1; }; }
5687
done` || { (exit 1); exit 1; }
5689
cat >>$CONFIG_STATUS <<_ACEOF
5693
cat >>$CONFIG_STATUS <<\_ACEOF
5695
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5696
s,@configure_input@,$configure_input,;t t
5697
s,@srcdir@,$ac_srcdir,;t t
5698
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5699
s,@top_srcdir@,$ac_top_srcdir,;t t
5700
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5701
s,@builddir@,$ac_builddir,;t t
5702
s,@abs_builddir@,$ac_abs_builddir,;t t
5703
s,@top_builddir@,$ac_top_builddir,;t t
5704
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5705
s,@INSTALL@,$ac_INSTALL,;t t
5706
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5708
if test x"$ac_file" != x-; then
5709
mv $tmp/out $ac_file
5717
cat >>$CONFIG_STATUS <<\_ACEOF
5720
# CONFIG_HEADER section.
5723
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5724
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5726
# ac_d sets the value in "#define NAME VALUE" lines.
5727
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5728
ac_dB='[ ].*$,\1#\2'
5731
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5732
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5733
ac_uB='$,\1#\2define\3'
5737
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5738
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5740
- | *:- | *:-:* ) # input from stdin
5742
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5743
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5744
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5745
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5746
* ) ac_file_in=$ac_file.in ;;
5749
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5750
echo "$as_me: creating $ac_file" >&6;}
5752
# First look for the input files in the build tree, otherwise in the
5754
ac_file_inputs=`IFS=:
5755
for f in $ac_file_in; do
5757
-) echo $tmp/stdin ;;
5759
# Absolute (can't be DOS-style, as IFS=:)
5760
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5761
echo "$as_me: error: cannot find input file: $f" >&2;}
5762
{ (exit 1); exit 1; }; }
5765
if test -f "$f"; then
5768
elif test -f "$srcdir/$f"; then
5773
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5774
echo "$as_me: error: cannot find input file: $f" >&2;}
5775
{ (exit 1); exit 1; }; }
5778
done` || { (exit 1); exit 1; }
5779
# Remove the trailing spaces.
5780
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5784
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5785
# `conftest.undefs', that substitutes the proper values into
5786
# config.h.in to produce config.h. The first handles `#define'
5787
# templates, and the second `#undef' templates.
5788
# And first: Protect against being on the right side of a sed subst in
5789
# config.status. Protect against being in an unquoted here document
5791
rm -f conftest.defines conftest.undefs
5792
# Using a here document instead of a string reduces the quoting nightmare.
5793
# Putting comments in sed scripts is not portable.
5795
# `end' is used to avoid that the second main sed command (meant for
5796
# 0-ary CPP macros) applies to n-ary macro definitions.
5797
# See the Autoconf documentation for `clear'.
5798
cat >confdef2sed.sed <<\_ACEOF
5803
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5805
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5808
# If some macros were called several times there might be several times
5809
# the same #defines, which is useless. Nevertheless, we may not want to
5810
# sort them, since we want the *last* AC-DEFINE to be honored.
5811
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5812
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5813
rm -f confdef2sed.sed
5815
# This sed command replaces #undef with comments. This is necessary, for
5816
# example, in the case of _POSIX_SOURCE, which is predefined and required
5817
# on some systems where configure will not decide to define it.
5818
cat >>conftest.undefs <<\_ACEOF
5819
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5822
# Break up conftest.defines because some shells have a limit on the size
5823
# of here documents, and old seds have small limits too (100 cmds).
5824
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5825
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5826
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5827
echo ' :' >>$CONFIG_STATUS
5829
while grep . conftest.defines >/dev/null
5831
# Write a limited-size here document to $tmp/defines.sed.
5832
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5833
# Speed up: don't consider the non `#define' lines.
5834
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5835
# Work around the forget-to-reset-the-flag bug.
5836
echo 't clr' >>$CONFIG_STATUS
5837
echo ': clr' >>$CONFIG_STATUS
5838
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5840
sed -f $tmp/defines.sed $tmp/in >$tmp/out
5844
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5845
rm -f conftest.defines
5846
mv conftest.tail conftest.defines
5848
rm -f conftest.defines
5849
echo ' fi # grep' >>$CONFIG_STATUS
5850
echo >>$CONFIG_STATUS
5852
# Break up conftest.undefs because some shells have a limit on the size
5853
# of here documents, and old seds have small limits too (100 cmds).
5854
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5856
while grep . conftest.undefs >/dev/null
5858
# Write a limited-size here document to $tmp/undefs.sed.
5859
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5860
# Speed up: don't consider the non `#undef'
5861
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5862
# Work around the forget-to-reset-the-flag bug.
5863
echo 't clr' >>$CONFIG_STATUS
5864
echo ': clr' >>$CONFIG_STATUS
5865
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5867
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5871
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5872
rm -f conftest.undefs
5873
mv conftest.tail conftest.undefs
5875
rm -f conftest.undefs
5877
cat >>$CONFIG_STATUS <<\_ACEOF
5878
# Let's still pretend it is `configure' which instantiates (i.e., don't
5879
# use $as_me), people would be surprised to read:
5880
# /* config.h. Generated by config.status. */
5881
if test x"$ac_file" = x-; then
5882
echo "/* Generated by configure. */" >$tmp/config.h
5884
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5886
cat $tmp/in >>$tmp/config.h
5888
if test x"$ac_file" != x-; then
5889
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5890
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5891
echo "$as_me: $ac_file is unchanged" >&6;}
5893
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5894
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5895
X"$ac_file" : 'X\(//\)[^/]' \| \
5896
X"$ac_file" : 'X\(//\)$' \| \
5897
X"$ac_file" : 'X\(/\)' \| \
5898
. : '\(.\)' 2>/dev/null ||
5900
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5901
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5902
/^X\(\/\/\)$/{ s//\1/; q; }
5903
/^X\(\/\).*/{ s//\1/; q; }
5905
{ if $as_mkdir_p; then
5910
while test ! -d "$as_dir"; do
5911
as_dirs="$as_dir $as_dirs"
5912
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5913
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5914
X"$as_dir" : 'X\(//\)[^/]' \| \
5915
X"$as_dir" : 'X\(//\)$' \| \
5916
X"$as_dir" : 'X\(/\)' \| \
5917
. : '\(.\)' 2>/dev/null ||
5919
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5920
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5921
/^X\(\/\/\)$/{ s//\1/; q; }
5922
/^X\(\/\).*/{ s//\1/; q; }
5925
test ! -n "$as_dirs" || mkdir $as_dirs
5926
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5927
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5928
{ (exit 1); exit 1; }; }; }
5931
mv $tmp/config.h $ac_file
5937
_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
5938
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
5939
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5940
X$ac_file : 'X\(//\)[^/]' \| \
5941
X$ac_file : 'X\(//\)$' \| \
5942
X$ac_file : 'X\(/\)' \| \
5943
. : '\(.\)' 2>/dev/null ||
5945
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5946
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5947
/^X\(\/\/\)$/{ s//\1/; q; }
5948
/^X\(\/\).*/{ s//\1/; q; }
5949
s/.*/./; q'`/stamp-h$_am_stamp_count
5952
cat >>$CONFIG_STATUS <<\_ACEOF
5955
# CONFIG_COMMANDS section.
5957
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5958
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5959
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5960
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5961
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5962
X"$ac_dest" : 'X\(//\)[^/]' \| \
5963
X"$ac_dest" : 'X\(//\)$' \| \
5964
X"$ac_dest" : 'X\(/\)' \| \
5965
. : '\(.\)' 2>/dev/null ||
5967
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5968
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5969
/^X\(\/\/\)$/{ s//\1/; q; }
5970
/^X\(\/\).*/{ s//\1/; q; }
5974
if test "$ac_dir" != .; then
5975
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5976
# A "../" for each directory in $ac_dir_suffix.
5977
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5979
ac_dir_suffix= ac_top_builddir=
5983
.) # No --srcdir option. We are building in place.
5985
if test -z "$ac_top_builddir"; then
5988
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5990
[\\/]* | ?:[\\/]* ) # Absolute path.
5991
ac_srcdir=$srcdir$ac_dir_suffix;
5992
ac_top_srcdir=$srcdir ;;
5994
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5995
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5997
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5999
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
6000
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
6001
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
6002
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
6005
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6006
echo "$as_me: executing $ac_dest commands" >&6;}
6008
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6009
# Strip MF so we end up with the name of the file.
6010
mf=`echo "$mf" | sed -e 's/:.*$//'`
6011
# Check whether this is an Automake generated Makefile or not.
6012
# We used to match only the files named `Makefile.in', but
6013
# some people rename them; so instead we look at the file content.
6014
# Grep'ing the first line is not enough: some people post-process
6015
# each Makefile.in and add a new line on top of each file to say so.
6016
# So let's grep whole file.
6017
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6018
dirpart=`(dirname "$mf") 2>/dev/null ||
6019
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6020
X"$mf" : 'X\(//\)[^/]' \| \
6021
X"$mf" : 'X\(//\)$' \| \
6022
X"$mf" : 'X\(/\)' \| \
6023
. : '\(.\)' 2>/dev/null ||
6025
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6026
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6027
/^X\(\/\/\)$/{ s//\1/; q; }
6028
/^X\(\/\).*/{ s//\1/; q; }
6033
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6034
# Extract the definition of DEP_FILES from the Makefile without
6036
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6037
test -z "$DEPDIR" && continue
6038
# When using ansi2knr, U may be empty or an underscore; expand it
6039
U=`sed -n -e '/^U = / s///p' < "$mf"`
6040
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6041
# We invoke sed twice because it is the simplest approach to
6042
# changing $(DEPDIR) to its actual value in the expansion.
6043
for file in `sed -n -e '
6044
/^DEP_FILES = .*\\\\$/ {
6053
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6054
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6055
# Make sure the directory exists.
6056
test -f "$dirpart/$file" && continue
6057
fdir=`(dirname "$file") 2>/dev/null ||
6058
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6059
X"$file" : 'X\(//\)[^/]' \| \
6060
X"$file" : 'X\(//\)$' \| \
6061
X"$file" : 'X\(/\)' \| \
6062
. : '\(.\)' 2>/dev/null ||
6064
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6065
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6066
/^X\(\/\/\)$/{ s//\1/; q; }
6067
/^X\(\/\).*/{ s//\1/; q; }
6069
{ if $as_mkdir_p; then
6070
mkdir -p $dirpart/$fdir
6072
as_dir=$dirpart/$fdir
6074
while test ! -d "$as_dir"; do
6075
as_dirs="$as_dir $as_dirs"
6076
as_dir=`(dirname "$as_dir") 2>/dev/null ||
6077
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6078
X"$as_dir" : 'X\(//\)[^/]' \| \
6079
X"$as_dir" : 'X\(//\)$' \| \
6080
X"$as_dir" : 'X\(/\)' \| \
6081
. : '\(.\)' 2>/dev/null ||
6083
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6084
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
6085
/^X\(\/\/\)$/{ s//\1/; q; }
6086
/^X\(\/\).*/{ s//\1/; q; }
6089
test ! -n "$as_dirs" || mkdir $as_dirs
6090
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6091
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6092
{ (exit 1); exit 1; }; }; }
6094
# echo "creating $dirpart/$file"
6095
echo '# dummy' > "$dirpart/$file"
6103
cat >>$CONFIG_STATUS <<\_ACEOF
6105
{ (exit 0); exit 0; }
6107
chmod +x $CONFIG_STATUS
6108
ac_clean_files=$ac_clean_files_save
6111
# configure is writing to config.log, and then calls config.status.
6112
# config.status does its own redirection, appending to config.log.
6113
# Unfortunately, on DOS this fails, as config.log is still kept open
6114
# by configure, so config.status won't be able to write to it; its
6115
# output is simply discarded. So we exec the FD to /dev/null,
6116
# effectively closing config.log, so it can be properly (re)opened and
6117
# appended to by config.status. When coming back to configure, we
6118
# need to make the FD available again.
6119
if test "$no_create" != yes; then
6121
ac_config_status_args=
6122
test "$silent" = yes &&
6123
ac_config_status_args="$ac_config_status_args --quiet"
6125
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6127
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6128
# would make configure fail if this is the last instruction.
6129
$ac_cs_success || { (exit 1); exit 1; }