2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION.
5
# Report bugs to <BUG-REPORT-ADDRESS>.
7
# Copyright (C) 2003 Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
DUALCASE=1; export DUALCASE # for MKS sh
26
# Support unset when possible.
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34
# Work around bugs in pre-3.0 UWIN ksh.
35
$as_unset ENV MAIL MAILPATH
42
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
eval $as_var=C; export $as_var
53
# Required to use basename.
54
if expr a : '\(a\)' >/dev/null 2>&1; then
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67
# Name of the executable.
68
as_me=`$as_basename "$0" ||
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
X"$0" : 'X\(//\)$' \| \
71
X"$0" : 'X\(/\)$' \| \
72
. : '\(.\)' 2>/dev/null ||
74
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
/^X\/\(\/\/\)$/{ s//\1/; q; }
76
/^X\/\(\/\).*/{ s//\1/; q; }
80
# PATH needs CR, and LINENO needs CR and PATH.
81
# Avoid depending upon Character Ranges.
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
as_cr_digits='0123456789'
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
# The user is always right.
89
if test "${PATH_SEPARATOR+set}" != set; then
90
echo "#! /bin/sh" >conf$$.sh
91
echo "exit 0" >>conf$$.sh
93
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
test "x$as_lineno_1" != "x$as_lineno_2" &&
106
test "x$as_lineno_3" = "x$as_lineno_2" || {
107
# Find who we are. Look in the path if we contain no path at all
110
*[\\/]* ) as_myself=$0 ;;
111
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115
test -z "$as_dir" && as_dir=.
116
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121
# We did not find ourselves, most probably we were run as `sh COMMAND'
122
# in which case we are not to be found in the path.
123
if test "x$as_myself" = x; then
126
if test ! -f "$as_myself"; then
127
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
{ (exit 1); exit 1; }; }
130
case $CONFIG_SHELL in
132
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136
test -z "$as_dir" && as_dir=.
137
for as_base in sh bash ksh sh5; do
140
if ("$as_dir/$as_base" -c '
143
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
test "x$as_lineno_1" != "x$as_lineno_2" &&
145
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
CONFIG_SHELL=$as_dir/$as_base
150
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
# uniformly replaced by the line number. The first 'sed' inserts a
160
# line-number line before each line; the second 'sed' does the real
161
# work. The second script uses 'N' to pair each line-number line
162
# with the numbered line, and appends trailing '-' during
163
# substitution so that $LINENO is not a special case at line end.
164
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166
sed '=' <$as_myself |
171
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174
s,^['$as_cr_digits']*\n,,
176
chmod +x $as_me.lineno ||
177
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
{ (exit 1); exit 1; }; }
180
# Don't try to exec as it changes $[0], causing all sort of problems
181
# (the dirname of $[0] is not the place where we might find the
182
# original and so on. Autoconf is especially sensible to this).
184
# Exit status is that of the last command.
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
*c*,-n*) ECHO_N= ECHO_C='
192
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196
if expr a : '\(a\)' >/dev/null 2>&1; then
202
rm -f conf$$ conf$$.exe conf$$.file
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
# We could just check for DJGPP; but this test a) works b) is more generic
206
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
if test -f conf$$.exe; then
208
# Don't use ln at all; we don't have any links
213
elif ln conf$$.file conf$$ 2>/dev/null; then
218
rm -f conf$$ conf$$.exe conf$$.file
220
if mkdir -p . 2>/dev/null; then
223
test -d ./-p && rmdir ./-p
227
as_executable_p="test -f"
229
# Sed expression to map a string onto a valid CPP name.
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
# Sed expression to map a string onto a valid variable name.
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
# We need space, tab and new line, in precisely that order.
247
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248
# so uname gets run too.
249
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256
ac_default_prefix=/usr/local
257
ac_config_libobj_dir=.
262
SHELL=${CONFIG_SHELL-/bin/sh}
264
# Maximum number of lines to put in a shell here document.
265
# This variable seems obsolete. It should probably be removed, and
266
# only ac_max_sed_lines should be used.
267
: ${ac_max_here_lines=38}
269
# Identity of this package.
270
PACKAGE_NAME='FULL-PACKAGE-NAME'
271
PACKAGE_TARNAME='full-package-name'
272
PACKAGE_VERSION='VERSION'
273
PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
274
PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
276
ac_unique_file="kalign2_hirschberg.h"
277
# Factoring default headers for most tests.
278
ac_includes_default="\
281
# include <sys/types.h>
284
# include <sys/stat.h>
295
# if !STDC_HEADERS && HAVE_MEMORY_H
301
# include <strings.h>
304
# include <inttypes.h>
314
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LIBOBJS LTLIBOBJS'
317
# Initialize some variables set by options.
319
ac_init_version=false
320
# The variables have the same names as the options, with
321
# dashes changed to underlines.
329
program_transform_name=s,x,x,
337
# Installation directory options.
338
# These are left unexpanded so users can "make install exec_prefix=/foo"
339
# and all the variables that are supposed to be based on exec_prefix
340
# by default will actually change.
341
# Use braces instead of parens because sh, perl, etc. also accept them.
342
bindir='${exec_prefix}/bin'
343
sbindir='${exec_prefix}/sbin'
344
libexecdir='${exec_prefix}/libexec'
345
datadir='${prefix}/share'
346
sysconfdir='${prefix}/etc'
347
sharedstatedir='${prefix}/com'
348
localstatedir='${prefix}/var'
349
libdir='${exec_prefix}/lib'
350
includedir='${prefix}/include'
351
oldincludedir='/usr/include'
352
infodir='${prefix}/info'
353
mandir='${prefix}/man'
358
# If the previous option needs an argument, assign it.
359
if test -n "$ac_prev"; then
360
eval "$ac_prev=\$ac_option"
365
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
367
# Accept the important Cygnus configure options, so we can diagnose typos.
371
-bindir | --bindir | --bindi | --bind | --bin | --bi)
373
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
-build | --build | --buil | --bui | --bu)
377
ac_prev=build_alias ;;
378
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
379
build_alias=$ac_optarg ;;
381
-cache-file | --cache-file | --cache-fil | --cache-fi \
382
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383
ac_prev=cache_file ;;
384
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386
cache_file=$ac_optarg ;;
389
cache_file=config.cache ;;
391
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395
datadir=$ac_optarg ;;
397
-disable-* | --disable-*)
398
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399
# Reject names that are not valid shell variable names.
400
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
{ (exit 1); exit 1; }; }
403
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404
eval "enable_$ac_feature=no" ;;
406
-enable-* | --enable-*)
407
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408
# Reject names that are not valid shell variable names.
409
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
411
{ (exit 1); exit 1; }; }
412
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
eval "enable_$ac_feature='$ac_optarg'" ;;
419
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421
| --exec | --exe | --ex)
422
ac_prev=exec_prefix ;;
423
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425
| --exec=* | --exe=* | --ex=*)
426
exec_prefix=$ac_optarg ;;
428
-gas | --gas | --ga | --g)
429
# Obsolete; use --with-gas.
432
-help | --help | --hel | --he | -h)
434
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435
ac_init_help=recursive ;;
436
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437
ac_init_help=short ;;
439
-host | --host | --hos | --ho)
440
ac_prev=host_alias ;;
441
-host=* | --host=* | --hos=* | --ho=*)
442
host_alias=$ac_optarg ;;
444
-includedir | --includedir | --includedi | --included | --include \
445
| --includ | --inclu | --incl | --inc)
446
ac_prev=includedir ;;
447
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448
| --includ=* | --inclu=* | --incl=* | --inc=*)
449
includedir=$ac_optarg ;;
451
-infodir | --infodir | --infodi | --infod | --info | --inf)
453
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454
infodir=$ac_optarg ;;
456
-libdir | --libdir | --libdi | --libd)
458
-libdir=* | --libdir=* | --libdi=* | --libd=*)
461
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462
| --libexe | --libex | --libe)
463
ac_prev=libexecdir ;;
464
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465
| --libexe=* | --libex=* | --libe=*)
466
libexecdir=$ac_optarg ;;
468
-localstatedir | --localstatedir | --localstatedi | --localstated \
469
| --localstate | --localstat | --localsta | --localst \
470
| --locals | --local | --loca | --loc | --lo)
471
ac_prev=localstatedir ;;
472
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
474
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475
localstatedir=$ac_optarg ;;
477
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483
# Obsolete; use --without-fp.
486
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
487
| --no-cr | --no-c | -n)
490
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
491
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496
| --oldin | --oldi | --old | --ol | --o)
497
ac_prev=oldincludedir ;;
498
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501
oldincludedir=$ac_optarg ;;
503
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508
-program-prefix | --program-prefix | --program-prefi | --program-pref \
509
| --program-pre | --program-pr | --program-p)
510
ac_prev=program_prefix ;;
511
-program-prefix=* | --program-prefix=* | --program-prefi=* \
512
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513
program_prefix=$ac_optarg ;;
515
-program-suffix | --program-suffix | --program-suffi | --program-suff \
516
| --program-suf | --program-su | --program-s)
517
ac_prev=program_suffix ;;
518
-program-suffix=* | --program-suffix=* | --program-suffi=* \
519
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520
program_suffix=$ac_optarg ;;
522
-program-transform-name | --program-transform-name \
523
| --program-transform-nam | --program-transform-na \
524
| --program-transform-n | --program-transform- \
525
| --program-transform | --program-transfor \
526
| --program-transfo | --program-transf \
527
| --program-trans | --program-tran \
528
| --progr-tra | --program-tr | --program-t)
529
ac_prev=program_transform_name ;;
530
-program-transform-name=* | --program-transform-name=* \
531
| --program-transform-nam=* | --program-transform-na=* \
532
| --program-transform-n=* | --program-transform-=* \
533
| --program-transform=* | --program-transfor=* \
534
| --program-transfo=* | --program-transf=* \
535
| --program-trans=* | --program-tran=* \
536
| --progr-tra=* | --program-tr=* | --program-t=*)
537
program_transform_name=$ac_optarg ;;
539
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
540
| -silent | --silent | --silen | --sile | --sil)
543
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547
sbindir=$ac_optarg ;;
549
-sharedstatedir | --sharedstatedir | --sharedstatedi \
550
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551
| --sharedst | --shareds | --shared | --share | --shar \
553
ac_prev=sharedstatedir ;;
554
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558
sharedstatedir=$ac_optarg ;;
560
-site | --site | --sit)
562
-site=* | --site=* | --sit=*)
565
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571
| --syscon | --sysco | --sysc | --sys | --sy)
572
ac_prev=sysconfdir ;;
573
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575
sysconfdir=$ac_optarg ;;
577
-target | --target | --targe | --targ | --tar | --ta | --t)
578
ac_prev=target_alias ;;
579
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580
target_alias=$ac_optarg ;;
582
-v | -verbose | --verbose | --verbos | --verbo | --verb)
585
-version | --version | --versio | --versi | --vers | -V)
589
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590
# Reject names that are not valid shell variable names.
591
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592
{ echo "$as_me: error: invalid package name: $ac_package" >&2
593
{ (exit 1); exit 1; }; }
594
ac_package=`echo $ac_package| sed 's/-/_/g'`
596
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
eval "with_$ac_package='$ac_optarg'" ;;
601
-without-* | --without-*)
602
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603
# Reject names that are not valid shell variable names.
604
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605
{ echo "$as_me: error: invalid package name: $ac_package" >&2
606
{ (exit 1); exit 1; }; }
607
ac_package=`echo $ac_package | sed 's/-/_/g'`
608
eval "with_$ac_package=no" ;;
611
# Obsolete; use --with-x.
614
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615
| --x-incl | --x-inc | --x-in | --x-i)
616
ac_prev=x_includes ;;
617
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619
x_includes=$ac_optarg ;;
621
-x-libraries | --x-libraries | --x-librarie | --x-librari \
622
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623
ac_prev=x_libraries ;;
624
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626
x_libraries=$ac_optarg ;;
628
-*) { echo "$as_me: error: unrecognized option: $ac_option
629
Try \`$0 --help' for more information." >&2
630
{ (exit 1); exit 1; }; }
634
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635
# Reject names that are not valid shell variable names.
636
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638
{ (exit 1); exit 1; }; }
639
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640
eval "$ac_envvar='$ac_optarg'"
644
# FIXME: should be removed in autoconf 3.0.
645
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
654
if test -n "$ac_prev"; then
655
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656
{ echo "$as_me: error: missing argument to $ac_option" >&2
657
{ (exit 1); exit 1; }; }
660
# Be sure to have absolute paths.
661
for ac_var in exec_prefix prefix
663
eval ac_val=$`echo $ac_var`
665
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667
{ (exit 1); exit 1; }; };;
671
# Be sure to have absolute paths.
672
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673
localstatedir libdir includedir oldincludedir infodir mandir
675
eval ac_val=$`echo $ac_var`
677
[\\/$]* | ?:[\\/]* ) ;;
678
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679
{ (exit 1); exit 1; }; };;
683
# There might be people who depend on the old broken behavior: `$host'
684
# used to hold the argument of --host etc.
685
# FIXME: To remove some day.
690
# FIXME: To remove some day.
691
if test "x$host_alias" != x; then
692
if test "x$build_alias" = x; then
693
cross_compiling=maybe
694
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695
If a cross compiler is detected then cross compile mode will be used." >&2
696
elif test "x$build_alias" != "x$host_alias"; then
702
test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
test "$silent" = yes && exec 6>/dev/null
707
# Find the source files, if location was not specified.
708
if test -z "$srcdir"; then
709
ac_srcdir_defaulted=yes
710
# Try the directory containing this script, then its parent.
711
ac_confdir=`(dirname "$0") 2>/dev/null ||
712
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713
X"$0" : 'X\(//\)[^/]' \| \
714
X"$0" : 'X\(//\)$' \| \
715
X"$0" : 'X\(/\)' \| \
716
. : '\(.\)' 2>/dev/null ||
718
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
720
/^X\(\/\/\)$/{ s//\1/; q; }
721
/^X\(\/\).*/{ s//\1/; q; }
724
if test ! -r $srcdir/$ac_unique_file; then
728
ac_srcdir_defaulted=no
730
if test ! -r $srcdir/$ac_unique_file; then
731
if test "$ac_srcdir_defaulted" = yes; then
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733
{ (exit 1); exit 1; }; }
735
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736
{ (exit 1); exit 1; }; }
739
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741
{ (exit 1); exit 1; }; }
742
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743
ac_env_build_alias_set=${build_alias+set}
744
ac_env_build_alias_value=$build_alias
745
ac_cv_env_build_alias_set=${build_alias+set}
746
ac_cv_env_build_alias_value=$build_alias
747
ac_env_host_alias_set=${host_alias+set}
748
ac_env_host_alias_value=$host_alias
749
ac_cv_env_host_alias_set=${host_alias+set}
750
ac_cv_env_host_alias_value=$host_alias
751
ac_env_target_alias_set=${target_alias+set}
752
ac_env_target_alias_value=$target_alias
753
ac_cv_env_target_alias_set=${target_alias+set}
754
ac_cv_env_target_alias_value=$target_alias
755
ac_env_CC_set=${CC+set}
757
ac_cv_env_CC_set=${CC+set}
758
ac_cv_env_CC_value=$CC
759
ac_env_CFLAGS_set=${CFLAGS+set}
760
ac_env_CFLAGS_value=$CFLAGS
761
ac_cv_env_CFLAGS_set=${CFLAGS+set}
762
ac_cv_env_CFLAGS_value=$CFLAGS
763
ac_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_env_LDFLAGS_value=$LDFLAGS
765
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_cv_env_LDFLAGS_value=$LDFLAGS
767
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_env_CPPFLAGS_value=$CPPFLAGS
769
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771
ac_env_CPP_set=${CPP+set}
772
ac_env_CPP_value=$CPP
773
ac_cv_env_CPP_set=${CPP+set}
774
ac_cv_env_CPP_value=$CPP
777
# Report the --help message.
779
if test "$ac_init_help" = "long"; then
780
# Omit some internal or obsolete options to make the list less imposing.
781
# This message is too long to be a string in the A/UX 3.1 sh.
783
\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
785
Usage: $0 [OPTION]... [VAR=VALUE]...
787
To assign environment variables (e.g., CC, CFLAGS...), specify them as
788
VAR=VALUE. See below for descriptions of some of the useful variables.
790
Defaults for the options are specified in brackets.
793
-h, --help display this help and exit
794
--help=short display options specific to this package
795
--help=recursive display the short help of all the included packages
796
-V, --version display version information and exit
797
-q, --quiet, --silent do not print \`checking...' messages
798
--cache-file=FILE cache test results in FILE [disabled]
799
-C, --config-cache alias for \`--cache-file=config.cache'
800
-n, --no-create do not create output files
801
--srcdir=DIR find the sources in DIR [configure dir or \`..']
806
Installation directories:
807
--prefix=PREFIX install architecture-independent files in PREFIX
809
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812
By default, \`make install' will install all the files in
813
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
814
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
815
for instance \`--prefix=\$HOME'.
817
For better control, use the options below.
819
Fine tuning of the installation directories:
820
--bindir=DIR user executables [EPREFIX/bin]
821
--sbindir=DIR system admin executables [EPREFIX/sbin]
822
--libexecdir=DIR program executables [EPREFIX/libexec]
823
--datadir=DIR read-only architecture-independent data [PREFIX/share]
824
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
825
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
826
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
827
--libdir=DIR object code libraries [EPREFIX/lib]
828
--includedir=DIR C header files [PREFIX/include]
829
--oldincludedir=DIR C header files for non-gcc [/usr/include]
830
--infodir=DIR info documentation [PREFIX/info]
831
--mandir=DIR man documentation [PREFIX/man]
838
if test -n "$ac_init_help"; then
839
case $ac_init_help in
840
short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
844
Some influential environment variables:
845
CC C compiler command
846
CFLAGS C compiler flags
847
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
848
nonstandard directory <lib dir>
849
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
850
headers in a nonstandard directory <include dir>
853
Use these variables to override the choices made by `configure' or to help
854
it to find libraries and programs with nonstandard names/locations.
856
Report bugs to <BUG-REPORT-ADDRESS>.
860
if test "$ac_init_help" = "recursive"; then
861
# If there are subdirs, report their specific --help.
863
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
864
test -d $ac_dir || continue
867
if test "$ac_dir" != .; then
868
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
869
# A "../" for each directory in $ac_dir_suffix.
870
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
872
ac_dir_suffix= ac_top_builddir=
876
.) # No --srcdir option. We are building in place.
878
if test -z "$ac_top_builddir"; then
881
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
883
[\\/]* | ?:[\\/]* ) # Absolute path.
884
ac_srcdir=$srcdir$ac_dir_suffix;
885
ac_top_srcdir=$srcdir ;;
887
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
888
ac_top_srcdir=$ac_top_builddir$srcdir ;;
891
# Do not use `cd foo && pwd` to compute absolute paths, because
892
# the directories may not exist.
894
.) ac_abs_builddir="$ac_dir";;
897
.) ac_abs_builddir=`pwd`;;
898
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
899
*) ac_abs_builddir=`pwd`/"$ac_dir";;
902
case $ac_abs_builddir in
903
.) ac_abs_top_builddir=${ac_top_builddir}.;;
905
case ${ac_top_builddir}. in
906
.) ac_abs_top_builddir=$ac_abs_builddir;;
907
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
908
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
911
case $ac_abs_builddir in
912
.) ac_abs_srcdir=$ac_srcdir;;
915
.) ac_abs_srcdir=$ac_abs_builddir;;
916
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
917
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
920
case $ac_abs_builddir in
921
.) ac_abs_top_srcdir=$ac_top_srcdir;;
923
case $ac_top_srcdir in
924
.) ac_abs_top_srcdir=$ac_abs_builddir;;
925
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
926
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
931
# Check for guested configure; otherwise get Cygnus style configure.
932
if test -f $ac_srcdir/configure.gnu; then
934
$SHELL $ac_srcdir/configure.gnu --help=recursive
935
elif test -f $ac_srcdir/configure; then
937
$SHELL $ac_srcdir/configure --help=recursive
938
elif test -f $ac_srcdir/configure.ac ||
939
test -f $ac_srcdir/configure.in; then
943
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949
test -n "$ac_init_help" && exit 0
950
if $ac_init_version; then
952
FULL-PACKAGE-NAME configure VERSION
953
generated by GNU Autoconf 2.59
955
Copyright (C) 2003 Free Software Foundation, Inc.
956
This configure script is free software; the Free Software Foundation
957
gives unlimited permission to copy, distribute and modify it.
963
This file contains any messages produced by compilers while
964
running configure, to aid debugging if configure makes a mistake.
966
It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
967
generated by GNU Autoconf 2.59. Invocation command line was
978
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
979
uname -m = `(uname -m) 2>/dev/null || echo unknown`
980
uname -r = `(uname -r) 2>/dev/null || echo unknown`
981
uname -s = `(uname -s) 2>/dev/null || echo unknown`
982
uname -v = `(uname -v) 2>/dev/null || echo unknown`
984
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
985
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
987
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
988
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
989
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
990
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
991
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
992
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
993
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1001
test -z "$as_dir" && as_dir=.
1002
echo "PATH: $as_dir"
1017
# Keep a trace of the command line.
1018
# Strip out --no-create and --no-recursion so they do not pile up.
1019
# Strip out --silent because we don't want to record it for future runs.
1020
# Also quote any args containing shell meta-characters.
1021
# Make two passes to allow for proper duplicate-argument suppression.
1026
ac_must_keep_next=false
1032
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1033
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1034
| -silent | --silent | --silen | --sile | --sil)
1036
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1037
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1040
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1042
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1043
if test $ac_must_keep_next = true; then
1044
ac_must_keep_next=false # Got value, back to normal.
1047
*=* | --config-cache | -C | -disable-* | --disable-* \
1048
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1049
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1050
| -with-* | --with-* | -without-* | --without-* | --x)
1051
case "$ac_configure_args0 " in
1052
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1055
-* ) ac_must_keep_next=true ;;
1058
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1059
# Get rid of the leading space.
1065
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1066
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1068
# When interrupted or exit'd, cleanup temporary files, and complete
1069
# config.log. We remove comments because anyway the quotes in there
1070
# would cause problems or look ugly.
1071
# WARNING: Be sure not to use single quotes in there, as some shells,
1072
# such as our DU 5.0 friend, will then `close' the trap.
1073
trap 'exit_status=$?
1074
# Save into config.log some information that might help in debugging.
1079
## ---------------- ##
1080
## Cache variables. ##
1081
## ---------------- ##
1084
# The following way of writing the cache mishandles newlines in values,
1087
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1090
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1091
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1095
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102
## ----------------- ##
1103
## Output variables. ##
1104
## ----------------- ##
1107
for ac_var in $ac_subst_vars
1109
eval ac_val=$`echo $ac_var`
1110
echo "$ac_var='"'"'$ac_val'"'"'"
1114
if test -n "$ac_subst_files"; then
1121
for ac_var in $ac_subst_files
1123
eval ac_val=$`echo $ac_var`
1124
echo "$ac_var='"'"'$ac_val'"'"'"
1129
if test -s confdefs.h; then
1136
sed "/^$/d" confdefs.h | sort
1139
test "$ac_signal" != 0 &&
1140
echo "$as_me: caught signal $ac_signal"
1141
echo "$as_me: exit $exit_status"
1143
rm -f core *.core &&
1144
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1147
for ac_signal in 1 2 13 15; do
1148
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1152
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1153
rm -rf conftest* confdefs.h
1154
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1157
# Predefined preprocessor variables.
1159
cat >>confdefs.h <<_ACEOF
1160
#define PACKAGE_NAME "$PACKAGE_NAME"
1164
cat >>confdefs.h <<_ACEOF
1165
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1169
cat >>confdefs.h <<_ACEOF
1170
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1174
cat >>confdefs.h <<_ACEOF
1175
#define PACKAGE_STRING "$PACKAGE_STRING"
1179
cat >>confdefs.h <<_ACEOF
1180
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1184
# Let the site file select an alternate cache file if it wants to.
1185
# Prefer explicitly selected file to automatically selected ones.
1186
if test -z "$CONFIG_SITE"; then
1187
if test "x$prefix" != xNONE; then
1188
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1190
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1193
for ac_site_file in $CONFIG_SITE; do
1194
if test -r "$ac_site_file"; then
1195
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1196
echo "$as_me: loading site script $ac_site_file" >&6;}
1197
sed 's/^/| /' "$ac_site_file" >&5
1202
if test -r "$cache_file"; then
1203
# Some versions of bash will fail to source /dev/null (special
1204
# files actually), so we avoid doing that.
1205
if test -f "$cache_file"; then
1206
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1207
echo "$as_me: loading cache $cache_file" >&6;}
1209
[\\/]* | ?:[\\/]* ) . $cache_file;;
1210
*) . ./$cache_file;;
1214
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1215
echo "$as_me: creating cache $cache_file" >&6;}
1219
# Check that the precious variables saved in the cache have kept the same
1221
ac_cache_corrupted=false
1222
for ac_var in `(set) 2>&1 |
1223
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1224
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1225
eval ac_new_set=\$ac_env_${ac_var}_set
1226
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1227
eval ac_new_val="\$ac_env_${ac_var}_value"
1228
case $ac_old_set,$ac_new_set in
1230
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1231
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1232
ac_cache_corrupted=: ;;
1234
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1235
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1236
ac_cache_corrupted=: ;;
1239
if test "x$ac_old_val" != "x$ac_new_val"; then
1240
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1241
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1242
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1243
echo "$as_me: former value: $ac_old_val" >&2;}
1244
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1245
echo "$as_me: current value: $ac_new_val" >&2;}
1246
ac_cache_corrupted=:
1249
# Pass precious variables to config.status.
1250
if test "$ac_new_set" = set; then
1252
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1254
*) ac_arg=$ac_var=$ac_new_val ;;
1256
case " $ac_configure_args " in
1257
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1258
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1262
if $ac_cache_corrupted; then
1263
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1264
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1265
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1266
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1267
{ (exit 1); exit 1; }; }
1271
ac_cpp='$CPP $CPPFLAGS'
1272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1303
ac_config_headers="$ac_config_headers config.h"
1306
# Checks for programs.
1308
ac_cpp='$CPP $CPPFLAGS'
1309
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1312
if test -n "$ac_tool_prefix"; then
1313
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1314
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1315
echo "$as_me:$LINENO: checking for $ac_word" >&5
1316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1317
if test "${ac_cv_prog_CC+set}" = set; then
1318
echo $ECHO_N "(cached) $ECHO_C" >&6
1320
if test -n "$CC"; then
1321
ac_cv_prog_CC="$CC" # Let the user override the test.
1323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327
test -z "$as_dir" && as_dir=.
1328
for ac_exec_ext in '' $ac_executable_extensions; do
1329
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1330
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1331
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340
if test -n "$CC"; then
1341
echo "$as_me:$LINENO: result: $CC" >&5
1342
echo "${ECHO_T}$CC" >&6
1344
echo "$as_me:$LINENO: result: no" >&5
1345
echo "${ECHO_T}no" >&6
1349
if test -z "$ac_cv_prog_CC"; then
1351
# Extract the first word of "gcc", so it can be a program name with args.
1352
set dummy gcc; ac_word=$2
1353
echo "$as_me:$LINENO: checking for $ac_word" >&5
1354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1356
echo $ECHO_N "(cached) $ECHO_C" >&6
1358
if test -n "$ac_ct_CC"; then
1359
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365
test -z "$as_dir" && as_dir=.
1366
for ac_exec_ext in '' $ac_executable_extensions; do
1367
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368
ac_cv_prog_ac_ct_CC="gcc"
1369
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1378
if test -n "$ac_ct_CC"; then
1379
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1380
echo "${ECHO_T}$ac_ct_CC" >&6
1382
echo "$as_me:$LINENO: result: no" >&5
1383
echo "${ECHO_T}no" >&6
1391
if test -z "$CC"; then
1392
if test -n "$ac_tool_prefix"; then
1393
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1394
set dummy ${ac_tool_prefix}cc; ac_word=$2
1395
echo "$as_me:$LINENO: checking for $ac_word" >&5
1396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1397
if test "${ac_cv_prog_CC+set}" = set; then
1398
echo $ECHO_N "(cached) $ECHO_C" >&6
1400
if test -n "$CC"; then
1401
ac_cv_prog_CC="$CC" # Let the user override the test.
1403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407
test -z "$as_dir" && as_dir=.
1408
for ac_exec_ext in '' $ac_executable_extensions; do
1409
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1410
ac_cv_prog_CC="${ac_tool_prefix}cc"
1411
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420
if test -n "$CC"; then
1421
echo "$as_me:$LINENO: result: $CC" >&5
1422
echo "${ECHO_T}$CC" >&6
1424
echo "$as_me:$LINENO: result: no" >&5
1425
echo "${ECHO_T}no" >&6
1429
if test -z "$ac_cv_prog_CC"; then
1431
# Extract the first word of "cc", so it can be a program name with args.
1432
set dummy cc; ac_word=$2
1433
echo "$as_me:$LINENO: checking for $ac_word" >&5
1434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1436
echo $ECHO_N "(cached) $ECHO_C" >&6
1438
if test -n "$ac_ct_CC"; then
1439
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445
test -z "$as_dir" && as_dir=.
1446
for ac_exec_ext in '' $ac_executable_extensions; do
1447
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448
ac_cv_prog_ac_ct_CC="cc"
1449
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1458
if test -n "$ac_ct_CC"; then
1459
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1460
echo "${ECHO_T}$ac_ct_CC" >&6
1462
echo "$as_me:$LINENO: result: no" >&5
1463
echo "${ECHO_T}no" >&6
1472
if test -z "$CC"; then
1473
# Extract the first word of "cc", so it can be a program name with args.
1474
set dummy cc; ac_word=$2
1475
echo "$as_me:$LINENO: checking for $ac_word" >&5
1476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1477
if test "${ac_cv_prog_CC+set}" = set; then
1478
echo $ECHO_N "(cached) $ECHO_C" >&6
1480
if test -n "$CC"; then
1481
ac_cv_prog_CC="$CC" # Let the user override the test.
1484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488
test -z "$as_dir" && as_dir=.
1489
for ac_exec_ext in '' $ac_executable_extensions; do
1490
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1491
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1492
ac_prog_rejected=yes
1496
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502
if test $ac_prog_rejected = yes; then
1503
# We found a bogon in the path, so make sure we never use it.
1504
set dummy $ac_cv_prog_CC
1506
if test $# != 0; then
1507
# We chose a different compiler from the bogus one.
1508
# However, it has the same basename, so the bogon will be chosen
1509
# first if we set CC to just the basename; use the full file name.
1511
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1517
if test -n "$CC"; then
1518
echo "$as_me:$LINENO: result: $CC" >&5
1519
echo "${ECHO_T}$CC" >&6
1521
echo "$as_me:$LINENO: result: no" >&5
1522
echo "${ECHO_T}no" >&6
1526
if test -z "$CC"; then
1527
if test -n "$ac_tool_prefix"; then
1530
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1531
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1532
echo "$as_me:$LINENO: checking for $ac_word" >&5
1533
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534
if test "${ac_cv_prog_CC+set}" = set; then
1535
echo $ECHO_N "(cached) $ECHO_C" >&6
1537
if test -n "$CC"; then
1538
ac_cv_prog_CC="$CC" # Let the user override the test.
1540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544
test -z "$as_dir" && as_dir=.
1545
for ac_exec_ext in '' $ac_executable_extensions; do
1546
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1548
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557
if test -n "$CC"; then
1558
echo "$as_me:$LINENO: result: $CC" >&5
1559
echo "${ECHO_T}$CC" >&6
1561
echo "$as_me:$LINENO: result: no" >&5
1562
echo "${ECHO_T}no" >&6
1565
test -n "$CC" && break
1568
if test -z "$CC"; then
1572
# Extract the first word of "$ac_prog", so it can be a program name with args.
1573
set dummy $ac_prog; ac_word=$2
1574
echo "$as_me:$LINENO: checking for $ac_word" >&5
1575
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1576
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1577
echo $ECHO_N "(cached) $ECHO_C" >&6
1579
if test -n "$ac_ct_CC"; then
1580
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586
test -z "$as_dir" && as_dir=.
1587
for ac_exec_ext in '' $ac_executable_extensions; do
1588
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1589
ac_cv_prog_ac_ct_CC="$ac_prog"
1590
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1599
if test -n "$ac_ct_CC"; then
1600
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1601
echo "${ECHO_T}$ac_ct_CC" >&6
1603
echo "$as_me:$LINENO: result: no" >&5
1604
echo "${ECHO_T}no" >&6
1607
test -n "$ac_ct_CC" && break
1616
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1617
See \`config.log' for more details." >&5
1618
echo "$as_me: error: no acceptable C compiler found in \$PATH
1619
See \`config.log' for more details." >&2;}
1620
{ (exit 1); exit 1; }; }
1622
# Provide some information about the compiler.
1623
echo "$as_me:$LINENO:" \
1624
"checking for C compiler version" >&5
1625
ac_compiler=`set X $ac_compile; echo $2`
1626
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1627
(eval $ac_compiler --version </dev/null >&5) 2>&5
1629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1630
(exit $ac_status); }
1631
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1632
(eval $ac_compiler -v </dev/null >&5) 2>&5
1634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1635
(exit $ac_status); }
1636
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1637
(eval $ac_compiler -V </dev/null >&5) 2>&5
1639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1640
(exit $ac_status); }
1642
cat >conftest.$ac_ext <<_ACEOF
1645
cat confdefs.h >>conftest.$ac_ext
1646
cat >>conftest.$ac_ext <<_ACEOF
1647
/* end confdefs.h. */
1657
ac_clean_files_save=$ac_clean_files
1658
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1659
# Try to create an executable without -o first, disregard a.out.
1660
# It will help us diagnose broken compilers, and finding out an intuition
1662
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1663
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1664
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1665
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1666
(eval $ac_link_default) 2>&5
1668
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669
(exit $ac_status); }; then
1670
# Find the output, starting from the most likely. This scheme is
1671
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1674
# Be careful to initialize this variable, since it used to be cached.
1675
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1677
# b.out is created by i960 compilers.
1678
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1680
test -f "$ac_file" || continue
1682
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1685
# This is the source file.
1688
# We found the default executable, but exeext='' is most
1692
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1693
# FIXME: I believe we export ac_cv_exeext for Libtool,
1694
# but it would be cool to find out if it's true. Does anybody
1695
# maintain Libtool? --akim.
1703
echo "$as_me: failed program was:" >&5
1704
sed 's/^/| /' conftest.$ac_ext >&5
1706
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1707
See \`config.log' for more details." >&5
1708
echo "$as_me: error: C compiler cannot create executables
1709
See \`config.log' for more details." >&2;}
1710
{ (exit 77); exit 77; }; }
1713
ac_exeext=$ac_cv_exeext
1714
echo "$as_me:$LINENO: result: $ac_file" >&5
1715
echo "${ECHO_T}$ac_file" >&6
1717
# Check the compiler produces executables we can run. If not, either
1718
# the compiler is broken, or we cross compile.
1719
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1720
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1721
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1722
# If not cross compiling, check that we can run a simple program.
1723
if test "$cross_compiling" != yes; then
1724
if { ac_try='./$ac_file'
1725
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1728
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729
(exit $ac_status); }; }; then
1732
if test "$cross_compiling" = maybe; then
1735
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1736
If you meant to cross compile, use \`--host'.
1737
See \`config.log' for more details." >&5
1738
echo "$as_me: error: cannot run C compiled programs.
1739
If you meant to cross compile, use \`--host'.
1740
See \`config.log' for more details." >&2;}
1741
{ (exit 1); exit 1; }; }
1745
echo "$as_me:$LINENO: result: yes" >&5
1746
echo "${ECHO_T}yes" >&6
1748
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1749
ac_clean_files=$ac_clean_files_save
1750
# Check the compiler produces executables we can run. If not, either
1751
# the compiler is broken, or we cross compile.
1752
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1753
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1754
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1755
echo "${ECHO_T}$cross_compiling" >&6
1757
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1758
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1759
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1760
(eval $ac_link) 2>&5
1762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1763
(exit $ac_status); }; then
1764
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1765
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1766
# work properly (i.e., refer to `conftest.exe'), while it won't with
1768
for ac_file in conftest.exe conftest conftest.*; do
1769
test -f "$ac_file" || continue
1771
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1772
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1779
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1780
See \`config.log' for more details." >&5
1781
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1782
See \`config.log' for more details." >&2;}
1783
{ (exit 1); exit 1; }; }
1786
rm -f conftest$ac_cv_exeext
1787
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1788
echo "${ECHO_T}$ac_cv_exeext" >&6
1790
rm -f conftest.$ac_ext
1791
EXEEXT=$ac_cv_exeext
1793
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1794
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1795
if test "${ac_cv_objext+set}" = set; then
1796
echo $ECHO_N "(cached) $ECHO_C" >&6
1798
cat >conftest.$ac_ext <<_ACEOF
1801
cat confdefs.h >>conftest.$ac_ext
1802
cat >>conftest.$ac_ext <<_ACEOF
1803
/* end confdefs.h. */
1813
rm -f conftest.o conftest.obj
1814
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1815
(eval $ac_compile) 2>&5
1817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818
(exit $ac_status); }; then
1819
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1821
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1822
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1827
echo "$as_me: failed program was:" >&5
1828
sed 's/^/| /' conftest.$ac_ext >&5
1830
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1831
See \`config.log' for more details." >&5
1832
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1833
See \`config.log' for more details." >&2;}
1834
{ (exit 1); exit 1; }; }
1837
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1839
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1840
echo "${ECHO_T}$ac_cv_objext" >&6
1841
OBJEXT=$ac_cv_objext
1843
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1844
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1845
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1846
echo $ECHO_N "(cached) $ECHO_C" >&6
1848
cat >conftest.$ac_ext <<_ACEOF
1851
cat confdefs.h >>conftest.$ac_ext
1852
cat >>conftest.$ac_ext <<_ACEOF
1853
/* end confdefs.h. */
1866
rm -f conftest.$ac_objext
1867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1868
(eval $ac_compile) 2>conftest.er1
1870
grep -v '^ *+' conftest.er1 >conftest.err
1872
cat conftest.err >&5
1873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874
(exit $ac_status); } &&
1875
{ ac_try='test -z "$ac_c_werror_flag"
1876
|| test ! -s conftest.err'
1877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881
(exit $ac_status); }; } &&
1882
{ ac_try='test -s conftest.$ac_objext'
1883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887
(exit $ac_status); }; }; then
1890
echo "$as_me: failed program was:" >&5
1891
sed 's/^/| /' conftest.$ac_ext >&5
1895
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1896
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1899
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1900
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1901
GCC=`test $ac_compiler_gnu = yes && echo yes`
1902
ac_test_CFLAGS=${CFLAGS+set}
1903
ac_save_CFLAGS=$CFLAGS
1905
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1906
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1907
if test "${ac_cv_prog_cc_g+set}" = set; then
1908
echo $ECHO_N "(cached) $ECHO_C" >&6
1910
cat >conftest.$ac_ext <<_ACEOF
1913
cat confdefs.h >>conftest.$ac_ext
1914
cat >>conftest.$ac_ext <<_ACEOF
1915
/* end confdefs.h. */
1925
rm -f conftest.$ac_objext
1926
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1927
(eval $ac_compile) 2>conftest.er1
1929
grep -v '^ *+' conftest.er1 >conftest.err
1931
cat conftest.err >&5
1932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1933
(exit $ac_status); } &&
1934
{ ac_try='test -z "$ac_c_werror_flag"
1935
|| test ! -s conftest.err'
1936
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940
(exit $ac_status); }; } &&
1941
{ ac_try='test -s conftest.$ac_objext'
1942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946
(exit $ac_status); }; }; then
1949
echo "$as_me: failed program was:" >&5
1950
sed 's/^/| /' conftest.$ac_ext >&5
1954
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1956
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1957
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1958
if test "$ac_test_CFLAGS" = set; then
1959
CFLAGS=$ac_save_CFLAGS
1960
elif test $ac_cv_prog_cc_g = yes; then
1961
if test "$GCC" = yes; then
1967
if test "$GCC" = yes; then
1973
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1974
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1975
if test "${ac_cv_prog_cc_stdc+set}" = set; then
1976
echo $ECHO_N "(cached) $ECHO_C" >&6
1978
ac_cv_prog_cc_stdc=no
1980
cat >conftest.$ac_ext <<_ACEOF
1983
cat confdefs.h >>conftest.$ac_ext
1984
cat >>conftest.$ac_ext <<_ACEOF
1985
/* end confdefs.h. */
1988
#include <sys/types.h>
1989
#include <sys/stat.h>
1990
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1991
struct buf { int x; };
1992
FILE * (*rcsopen) (struct buf *, struct stat *, int);
1993
static char *e (p, i)
1999
static char *f (char * (*g) (char **, int), char **p, ...)
2004
s = g (p, va_arg (v,int));
2009
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2010
function prototypes and stuff, but not '\xHH' hex character constants.
2011
These don't provoke an error unfortunately, instead are silently treated
2012
as 'x'. The following induces an error, until -std1 is added to get
2013
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2014
array size at least. It's necessary to write '\x00'==0 to get something
2015
that's true only with -std1. */
2016
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2018
int test (int i, double x);
2019
struct s1 {int (*f) (int a);};
2020
struct s2 {int (*f) (double a);};
2021
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2027
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2032
# Don't try gcc -ansi; that turns off useful extensions and
2033
# breaks some systems' header files.
2034
# AIX -qlanglvl=ansi
2035
# Ultrix and OSF/1 -std1
2036
# HP-UX 10.20 and later -Ae
2037
# HP-UX older versions -Aa -D_HPUX_SOURCE
2038
# SVR4 -Xc -D__EXTENSIONS__
2039
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2041
CC="$ac_save_CC $ac_arg"
2042
rm -f conftest.$ac_objext
2043
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2044
(eval $ac_compile) 2>conftest.er1
2046
grep -v '^ *+' conftest.er1 >conftest.err
2048
cat conftest.err >&5
2049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050
(exit $ac_status); } &&
2051
{ ac_try='test -z "$ac_c_werror_flag"
2052
|| test ! -s conftest.err'
2053
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2056
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057
(exit $ac_status); }; } &&
2058
{ ac_try='test -s conftest.$ac_objext'
2059
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063
(exit $ac_status); }; }; then
2064
ac_cv_prog_cc_stdc=$ac_arg
2067
echo "$as_me: failed program was:" >&5
2068
sed 's/^/| /' conftest.$ac_ext >&5
2071
rm -f conftest.err conftest.$ac_objext
2073
rm -f conftest.$ac_ext conftest.$ac_objext
2078
case "x$ac_cv_prog_cc_stdc" in
2080
echo "$as_me:$LINENO: result: none needed" >&5
2081
echo "${ECHO_T}none needed" >&6 ;;
2083
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2084
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2085
CC="$CC $ac_cv_prog_cc_stdc" ;;
2088
# Some people use a C++ compiler to compile C. Since we use `exit',
2089
# in C++ we need to declare it. In case someone uses the same compiler
2090
# for both compiling C and C++ we need to have the C++ compiler decide
2091
# the declaration of exit, since it's the most demanding environment.
2092
cat >conftest.$ac_ext <<_ACEOF
2097
rm -f conftest.$ac_objext
2098
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099
(eval $ac_compile) 2>conftest.er1
2101
grep -v '^ *+' conftest.er1 >conftest.err
2103
cat conftest.err >&5
2104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105
(exit $ac_status); } &&
2106
{ ac_try='test -z "$ac_c_werror_flag"
2107
|| test ! -s conftest.err'
2108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112
(exit $ac_status); }; } &&
2113
{ ac_try='test -s conftest.$ac_objext'
2114
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118
(exit $ac_status); }; }; then
2119
for ac_declaration in \
2121
'extern "C" void std::exit (int) throw (); using std::exit;' \
2122
'extern "C" void std::exit (int); using std::exit;' \
2123
'extern "C" void exit (int) throw ();' \
2124
'extern "C" void exit (int);' \
2127
cat >conftest.$ac_ext <<_ACEOF
2130
cat confdefs.h >>conftest.$ac_ext
2131
cat >>conftest.$ac_ext <<_ACEOF
2132
/* end confdefs.h. */
2143
rm -f conftest.$ac_objext
2144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145
(eval $ac_compile) 2>conftest.er1
2147
grep -v '^ *+' conftest.er1 >conftest.err
2149
cat conftest.err >&5
2150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151
(exit $ac_status); } &&
2152
{ ac_try='test -z "$ac_c_werror_flag"
2153
|| test ! -s conftest.err'
2154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158
(exit $ac_status); }; } &&
2159
{ ac_try='test -s conftest.$ac_objext'
2160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164
(exit $ac_status); }; }; then
2167
echo "$as_me: failed program was:" >&5
2168
sed 's/^/| /' conftest.$ac_ext >&5
2172
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2173
cat >conftest.$ac_ext <<_ACEOF
2176
cat confdefs.h >>conftest.$ac_ext
2177
cat >>conftest.$ac_ext <<_ACEOF
2178
/* end confdefs.h. */
2188
rm -f conftest.$ac_objext
2189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190
(eval $ac_compile) 2>conftest.er1
2192
grep -v '^ *+' conftest.er1 >conftest.err
2194
cat conftest.err >&5
2195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196
(exit $ac_status); } &&
2197
{ ac_try='test -z "$ac_c_werror_flag"
2198
|| test ! -s conftest.err'
2199
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203
(exit $ac_status); }; } &&
2204
{ ac_try='test -s conftest.$ac_objext'
2205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
(exit $ac_status); }; }; then
2212
echo "$as_me: failed program was:" >&5
2213
sed 's/^/| /' conftest.$ac_ext >&5
2216
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2219
if test -n "$ac_declaration"; then
2220
echo '#ifdef __cplusplus' >>confdefs.h
2221
echo $ac_declaration >>confdefs.h
2222
echo '#endif' >>confdefs.h
2226
echo "$as_me: failed program was:" >&5
2227
sed 's/^/| /' conftest.$ac_ext >&5
2230
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232
ac_cpp='$CPP $CPPFLAGS'
2233
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238
# Checks for libraries.
2240
# Checks for header files.
2243
ac_cpp='$CPP $CPPFLAGS'
2244
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2245
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2246
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2247
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2248
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2249
# On Suns, sometimes $CPP names a directory.
2250
if test -n "$CPP" && test -d "$CPP"; then
2253
if test -z "$CPP"; then
2254
if test "${ac_cv_prog_CPP+set}" = set; then
2255
echo $ECHO_N "(cached) $ECHO_C" >&6
2257
# Double quotes because CPP needs to be expanded
2258
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2261
for ac_c_preproc_warn_flag in '' yes
2263
# Use a header file that comes with gcc, so configuring glibc
2264
# with a fresh cross-compiler works.
2265
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2266
# <limits.h> exists even on freestanding compilers.
2267
# On the NeXT, cc -E runs the code through the compiler's parser,
2268
# not just through cpp. "Syntax error" is here to catch this case.
2269
cat >conftest.$ac_ext <<_ACEOF
2272
cat confdefs.h >>conftest.$ac_ext
2273
cat >>conftest.$ac_ext <<_ACEOF
2274
/* end confdefs.h. */
2276
# include <limits.h>
2278
# include <assert.h>
2282
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2283
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2285
grep -v '^ *+' conftest.er1 >conftest.err
2287
cat conftest.err >&5
2288
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289
(exit $ac_status); } >/dev/null; then
2290
if test -s conftest.err; then
2291
ac_cpp_err=$ac_c_preproc_warn_flag
2292
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2299
if test -z "$ac_cpp_err"; then
2302
echo "$as_me: failed program was:" >&5
2303
sed 's/^/| /' conftest.$ac_ext >&5
2305
# Broken: fails on valid input.
2308
rm -f conftest.err conftest.$ac_ext
2310
# OK, works on sane cases. Now check whether non-existent headers
2311
# can be detected and how.
2312
cat >conftest.$ac_ext <<_ACEOF
2315
cat confdefs.h >>conftest.$ac_ext
2316
cat >>conftest.$ac_ext <<_ACEOF
2317
/* end confdefs.h. */
2318
#include <ac_nonexistent.h>
2320
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2321
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2323
grep -v '^ *+' conftest.er1 >conftest.err
2325
cat conftest.err >&5
2326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327
(exit $ac_status); } >/dev/null; then
2328
if test -s conftest.err; then
2329
ac_cpp_err=$ac_c_preproc_warn_flag
2330
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2337
if test -z "$ac_cpp_err"; then
2338
# Broken: success on invalid input.
2341
echo "$as_me: failed program was:" >&5
2342
sed 's/^/| /' conftest.$ac_ext >&5
2344
# Passes both tests.
2348
rm -f conftest.err conftest.$ac_ext
2351
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2352
rm -f conftest.err conftest.$ac_ext
2353
if $ac_preproc_ok; then
2365
echo "$as_me:$LINENO: result: $CPP" >&5
2366
echo "${ECHO_T}$CPP" >&6
2368
for ac_c_preproc_warn_flag in '' yes
2370
# Use a header file that comes with gcc, so configuring glibc
2371
# with a fresh cross-compiler works.
2372
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2373
# <limits.h> exists even on freestanding compilers.
2374
# On the NeXT, cc -E runs the code through the compiler's parser,
2375
# not just through cpp. "Syntax error" is here to catch this case.
2376
cat >conftest.$ac_ext <<_ACEOF
2379
cat confdefs.h >>conftest.$ac_ext
2380
cat >>conftest.$ac_ext <<_ACEOF
2381
/* end confdefs.h. */
2383
# include <limits.h>
2385
# include <assert.h>
2389
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2390
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2392
grep -v '^ *+' conftest.er1 >conftest.err
2394
cat conftest.err >&5
2395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396
(exit $ac_status); } >/dev/null; then
2397
if test -s conftest.err; then
2398
ac_cpp_err=$ac_c_preproc_warn_flag
2399
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2406
if test -z "$ac_cpp_err"; then
2409
echo "$as_me: failed program was:" >&5
2410
sed 's/^/| /' conftest.$ac_ext >&5
2412
# Broken: fails on valid input.
2415
rm -f conftest.err conftest.$ac_ext
2417
# OK, works on sane cases. Now check whether non-existent headers
2418
# can be detected and how.
2419
cat >conftest.$ac_ext <<_ACEOF
2422
cat confdefs.h >>conftest.$ac_ext
2423
cat >>conftest.$ac_ext <<_ACEOF
2424
/* end confdefs.h. */
2425
#include <ac_nonexistent.h>
2427
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2428
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2430
grep -v '^ *+' conftest.er1 >conftest.err
2432
cat conftest.err >&5
2433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434
(exit $ac_status); } >/dev/null; then
2435
if test -s conftest.err; then
2436
ac_cpp_err=$ac_c_preproc_warn_flag
2437
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2444
if test -z "$ac_cpp_err"; then
2445
# Broken: success on invalid input.
2448
echo "$as_me: failed program was:" >&5
2449
sed 's/^/| /' conftest.$ac_ext >&5
2451
# Passes both tests.
2455
rm -f conftest.err conftest.$ac_ext
2458
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2459
rm -f conftest.err conftest.$ac_ext
2460
if $ac_preproc_ok; then
2463
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2464
See \`config.log' for more details." >&5
2465
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2466
See \`config.log' for more details." >&2;}
2467
{ (exit 1); exit 1; }; }
2471
ac_cpp='$CPP $CPPFLAGS'
2472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477
echo "$as_me:$LINENO: checking for egrep" >&5
2478
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2479
if test "${ac_cv_prog_egrep+set}" = set; then
2480
echo $ECHO_N "(cached) $ECHO_C" >&6
2482
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2483
then ac_cv_prog_egrep='grep -E'
2484
else ac_cv_prog_egrep='egrep'
2487
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2488
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2489
EGREP=$ac_cv_prog_egrep
2492
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2493
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2494
if test "${ac_cv_header_stdc+set}" = set; then
2495
echo $ECHO_N "(cached) $ECHO_C" >&6
2497
cat >conftest.$ac_ext <<_ACEOF
2500
cat confdefs.h >>conftest.$ac_ext
2501
cat >>conftest.$ac_ext <<_ACEOF
2502
/* end confdefs.h. */
2516
rm -f conftest.$ac_objext
2517
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2518
(eval $ac_compile) 2>conftest.er1
2520
grep -v '^ *+' conftest.er1 >conftest.err
2522
cat conftest.err >&5
2523
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524
(exit $ac_status); } &&
2525
{ ac_try='test -z "$ac_c_werror_flag"
2526
|| test ! -s conftest.err'
2527
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531
(exit $ac_status); }; } &&
2532
{ ac_try='test -s conftest.$ac_objext'
2533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
(exit $ac_status); }; }; then
2538
ac_cv_header_stdc=yes
2540
echo "$as_me: failed program was:" >&5
2541
sed 's/^/| /' conftest.$ac_ext >&5
2543
ac_cv_header_stdc=no
2545
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2547
if test $ac_cv_header_stdc = yes; then
2548
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2549
cat >conftest.$ac_ext <<_ACEOF
2552
cat confdefs.h >>conftest.$ac_ext
2553
cat >>conftest.$ac_ext <<_ACEOF
2554
/* end confdefs.h. */
2558
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2559
$EGREP "memchr" >/dev/null 2>&1; then
2562
ac_cv_header_stdc=no
2568
if test $ac_cv_header_stdc = yes; then
2569
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2570
cat >conftest.$ac_ext <<_ACEOF
2573
cat confdefs.h >>conftest.$ac_ext
2574
cat >>conftest.$ac_ext <<_ACEOF
2575
/* end confdefs.h. */
2579
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2580
$EGREP "free" >/dev/null 2>&1; then
2583
ac_cv_header_stdc=no
2589
if test $ac_cv_header_stdc = yes; then
2590
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2591
if test "$cross_compiling" = yes; then
2594
cat >conftest.$ac_ext <<_ACEOF
2597
cat confdefs.h >>conftest.$ac_ext
2598
cat >>conftest.$ac_ext <<_ACEOF
2599
/* end confdefs.h. */
2601
#if ((' ' & 0x0FF) == 0x020)
2602
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2603
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2605
# define ISLOWER(c) \
2606
(('a' <= (c) && (c) <= 'i') \
2607
|| ('j' <= (c) && (c) <= 'r') \
2608
|| ('s' <= (c) && (c) <= 'z'))
2609
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2612
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2617
for (i = 0; i < 256; i++)
2618
if (XOR (islower (i), ISLOWER (i))
2619
|| toupper (i) != TOUPPER (i))
2624
rm -f conftest$ac_exeext
2625
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2626
(eval $ac_link) 2>&5
2628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
(exit $ac_status); }; }; then
2637
echo "$as_me: program exited with status $ac_status" >&5
2638
echo "$as_me: failed program was:" >&5
2639
sed 's/^/| /' conftest.$ac_ext >&5
2642
ac_cv_header_stdc=no
2644
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2648
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2649
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2650
if test $ac_cv_header_stdc = yes; then
2652
cat >>confdefs.h <<\_ACEOF
2653
#define STDC_HEADERS 1
2658
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2668
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2669
inttypes.h stdint.h unistd.h
2671
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2672
echo "$as_me:$LINENO: checking for $ac_header" >&5
2673
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2674
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2675
echo $ECHO_N "(cached) $ECHO_C" >&6
2677
cat >conftest.$ac_ext <<_ACEOF
2680
cat confdefs.h >>conftest.$ac_ext
2681
cat >>conftest.$ac_ext <<_ACEOF
2682
/* end confdefs.h. */
2683
$ac_includes_default
2685
#include <$ac_header>
2687
rm -f conftest.$ac_objext
2688
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689
(eval $ac_compile) 2>conftest.er1
2691
grep -v '^ *+' conftest.er1 >conftest.err
2693
cat conftest.err >&5
2694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695
(exit $ac_status); } &&
2696
{ ac_try='test -z "$ac_c_werror_flag"
2697
|| test ! -s conftest.err'
2698
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2702
(exit $ac_status); }; } &&
2703
{ ac_try='test -s conftest.$ac_objext'
2704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708
(exit $ac_status); }; }; then
2709
eval "$as_ac_Header=yes"
2711
echo "$as_me: failed program was:" >&5
2712
sed 's/^/| /' conftest.$ac_ext >&5
2714
eval "$as_ac_Header=no"
2716
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2718
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2719
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2720
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2721
cat >>confdefs.h <<_ACEOF
2722
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2734
for ac_header in stdlib.h string.h unistd.h getopt.h
2736
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2737
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2738
echo "$as_me:$LINENO: checking for $ac_header" >&5
2739
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2740
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2741
echo $ECHO_N "(cached) $ECHO_C" >&6
2743
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2744
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2746
# Is the header compilable?
2747
echo "$as_me:$LINENO: checking $ac_header usability" >&5
2748
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2749
cat >conftest.$ac_ext <<_ACEOF
2752
cat confdefs.h >>conftest.$ac_ext
2753
cat >>conftest.$ac_ext <<_ACEOF
2754
/* end confdefs.h. */
2755
$ac_includes_default
2756
#include <$ac_header>
2758
rm -f conftest.$ac_objext
2759
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2760
(eval $ac_compile) 2>conftest.er1
2762
grep -v '^ *+' conftest.er1 >conftest.err
2764
cat conftest.err >&5
2765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766
(exit $ac_status); } &&
2767
{ ac_try='test -z "$ac_c_werror_flag"
2768
|| test ! -s conftest.err'
2769
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773
(exit $ac_status); }; } &&
2774
{ ac_try='test -s conftest.$ac_objext'
2775
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779
(exit $ac_status); }; }; then
2780
ac_header_compiler=yes
2782
echo "$as_me: failed program was:" >&5
2783
sed 's/^/| /' conftest.$ac_ext >&5
2785
ac_header_compiler=no
2787
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2788
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2789
echo "${ECHO_T}$ac_header_compiler" >&6
2791
# Is the header present?
2792
echo "$as_me:$LINENO: checking $ac_header presence" >&5
2793
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2794
cat >conftest.$ac_ext <<_ACEOF
2797
cat confdefs.h >>conftest.$ac_ext
2798
cat >>conftest.$ac_ext <<_ACEOF
2799
/* end confdefs.h. */
2800
#include <$ac_header>
2802
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805
grep -v '^ *+' conftest.er1 >conftest.err
2807
cat conftest.err >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); } >/dev/null; then
2810
if test -s conftest.err; then
2811
ac_cpp_err=$ac_c_preproc_warn_flag
2812
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2819
if test -z "$ac_cpp_err"; then
2820
ac_header_preproc=yes
2822
echo "$as_me: failed program was:" >&5
2823
sed 's/^/| /' conftest.$ac_ext >&5
2825
ac_header_preproc=no
2827
rm -f conftest.err conftest.$ac_ext
2828
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2829
echo "${ECHO_T}$ac_header_preproc" >&6
2831
# So? What about this header?
2832
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2834
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2835
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2836
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2837
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2838
ac_header_preproc=yes
2841
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2842
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2843
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2844
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2845
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2846
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2847
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2848
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2849
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2850
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2851
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2852
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2855
## --------------------------------- ##
2856
## Report this to BUG-REPORT-ADDRESS ##
2857
## --------------------------------- ##
2860
sed "s/^/$as_me: WARNING: /" >&2
2863
echo "$as_me:$LINENO: checking for $ac_header" >&5
2864
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2865
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2866
echo $ECHO_N "(cached) $ECHO_C" >&6
2868
eval "$as_ac_Header=\$ac_header_preproc"
2870
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2871
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2874
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2875
cat >>confdefs.h <<_ACEOF
2876
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2884
# Checks for typedefs, structures, and compiler characteristics.
2885
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2886
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2887
if test "${ac_cv_c_const+set}" = set; then
2888
echo $ECHO_N "(cached) $ECHO_C" >&6
2890
cat >conftest.$ac_ext <<_ACEOF
2893
cat confdefs.h >>conftest.$ac_ext
2894
cat >>conftest.$ac_ext <<_ACEOF
2895
/* end confdefs.h. */
2900
/* FIXME: Include the comments suggested by Paul. */
2902
/* Ultrix mips cc rejects this. */
2903
typedef int charset[2];
2905
/* SunOS 4.1.1 cc rejects this. */
2906
char const *const *ccp;
2908
/* NEC SVR4.0.2 mips cc rejects this. */
2909
struct point {int x, y;};
2910
static struct point const zero = {0,0};
2911
/* AIX XL C 1.02.0.0 rejects this.
2912
It does not let you subtract one const X* pointer from another in
2913
an arm of an if-expression whose if-part is not a constant
2915
const char *g = "string";
2916
ccp = &g + (g ? g-g : 0);
2917
/* HPUX 7.0 cc rejects these. */
2920
ccp = (char const *const *) p;
2921
{ /* SCO 3.2v4 cc rejects this. */
2923
char const *s = 0 ? (char *) 0 : (char const *) 0;
2927
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2929
const int *foo = &x[0];
2932
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2933
typedef const int *iptr;
2937
{ /* AIX XL C 1.02.0.0 rejects this saying
2938
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2939
struct s { int j; const int *ap[3]; };
2940
struct s *b; b->j = 5;
2942
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2951
rm -f conftest.$ac_objext
2952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2953
(eval $ac_compile) 2>conftest.er1
2955
grep -v '^ *+' conftest.er1 >conftest.err
2957
cat conftest.err >&5
2958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959
(exit $ac_status); } &&
2960
{ ac_try='test -z "$ac_c_werror_flag"
2961
|| test ! -s conftest.err'
2962
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966
(exit $ac_status); }; } &&
2967
{ ac_try='test -s conftest.$ac_objext'
2968
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
(exit $ac_status); }; }; then
2975
echo "$as_me: failed program was:" >&5
2976
sed 's/^/| /' conftest.$ac_ext >&5
2980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2982
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2983
echo "${ECHO_T}$ac_cv_c_const" >&6
2984
if test $ac_cv_c_const = no; then
2986
cat >>confdefs.h <<\_ACEOF
2993
# Checks for library functions.
2995
for ac_header in stdlib.h
2997
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2998
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2999
echo "$as_me:$LINENO: checking for $ac_header" >&5
3000
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3001
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3002
echo $ECHO_N "(cached) $ECHO_C" >&6
3004
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3005
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3007
# Is the header compilable?
3008
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3009
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3010
cat >conftest.$ac_ext <<_ACEOF
3013
cat confdefs.h >>conftest.$ac_ext
3014
cat >>conftest.$ac_ext <<_ACEOF
3015
/* end confdefs.h. */
3016
$ac_includes_default
3017
#include <$ac_header>
3019
rm -f conftest.$ac_objext
3020
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021
(eval $ac_compile) 2>conftest.er1
3023
grep -v '^ *+' conftest.er1 >conftest.err
3025
cat conftest.err >&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); } &&
3028
{ ac_try='test -z "$ac_c_werror_flag"
3029
|| test ! -s conftest.err'
3030
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034
(exit $ac_status); }; } &&
3035
{ ac_try='test -s conftest.$ac_objext'
3036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040
(exit $ac_status); }; }; then
3041
ac_header_compiler=yes
3043
echo "$as_me: failed program was:" >&5
3044
sed 's/^/| /' conftest.$ac_ext >&5
3046
ac_header_compiler=no
3048
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3050
echo "${ECHO_T}$ac_header_compiler" >&6
3052
# Is the header present?
3053
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3054
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3055
cat >conftest.$ac_ext <<_ACEOF
3058
cat confdefs.h >>conftest.$ac_ext
3059
cat >>conftest.$ac_ext <<_ACEOF
3060
/* end confdefs.h. */
3061
#include <$ac_header>
3063
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066
grep -v '^ *+' conftest.er1 >conftest.err
3068
cat conftest.err >&5
3069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070
(exit $ac_status); } >/dev/null; then
3071
if test -s conftest.err; then
3072
ac_cpp_err=$ac_c_preproc_warn_flag
3073
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3080
if test -z "$ac_cpp_err"; then
3081
ac_header_preproc=yes
3083
echo "$as_me: failed program was:" >&5
3084
sed 's/^/| /' conftest.$ac_ext >&5
3086
ac_header_preproc=no
3088
rm -f conftest.err conftest.$ac_ext
3089
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3090
echo "${ECHO_T}$ac_header_preproc" >&6
3092
# So? What about this header?
3093
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3095
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3096
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3097
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3098
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3099
ac_header_preproc=yes
3102
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3103
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3104
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3105
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3106
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3107
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3108
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3109
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3110
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3111
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3112
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3113
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3116
## --------------------------------- ##
3117
## Report this to BUG-REPORT-ADDRESS ##
3118
## --------------------------------- ##
3121
sed "s/^/$as_me: WARNING: /" >&2
3124
echo "$as_me:$LINENO: checking for $ac_header" >&5
3125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3126
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3127
echo $ECHO_N "(cached) $ECHO_C" >&6
3129
eval "$as_ac_Header=\$ac_header_preproc"
3131
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3132
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3135
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3136
cat >>confdefs.h <<_ACEOF
3137
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3144
echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3145
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3146
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3147
echo $ECHO_N "(cached) $ECHO_C" >&6
3149
if test "$cross_compiling" = yes; then
3150
ac_cv_func_malloc_0_nonnull=no
3152
cat >conftest.$ac_ext <<_ACEOF
3155
cat confdefs.h >>conftest.$ac_ext
3156
cat >>conftest.$ac_ext <<_ACEOF
3157
/* end confdefs.h. */
3158
#if STDC_HEADERS || HAVE_STDLIB_H
3159
# include <stdlib.h>
3167
exit (malloc (0) ? 0 : 1);
3172
rm -f conftest$ac_exeext
3173
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3174
(eval $ac_link) 2>&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3178
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182
(exit $ac_status); }; }; then
3183
ac_cv_func_malloc_0_nonnull=yes
3185
echo "$as_me: program exited with status $ac_status" >&5
3186
echo "$as_me: failed program was:" >&5
3187
sed 's/^/| /' conftest.$ac_ext >&5
3190
ac_cv_func_malloc_0_nonnull=no
3192
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3195
echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3196
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3197
if test $ac_cv_func_malloc_0_nonnull = yes; then
3199
cat >>confdefs.h <<\_ACEOF
3200
#define HAVE_MALLOC 1
3204
cat >>confdefs.h <<\_ACEOF
3205
#define HAVE_MALLOC 0
3209
"malloc.$ac_objext" | \
3210
*" malloc.$ac_objext" | \
3211
"malloc.$ac_objext "* | \
3212
*" malloc.$ac_objext "* ) ;;
3213
*) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
3217
cat >>confdefs.h <<\_ACEOF
3218
#define malloc rpl_malloc
3226
for ac_header in stdlib.h
3228
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3229
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3230
echo "$as_me:$LINENO: checking for $ac_header" >&5
3231
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3232
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3233
echo $ECHO_N "(cached) $ECHO_C" >&6
3235
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3236
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3238
# Is the header compilable?
3239
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3240
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3241
cat >conftest.$ac_ext <<_ACEOF
3244
cat confdefs.h >>conftest.$ac_ext
3245
cat >>conftest.$ac_ext <<_ACEOF
3246
/* end confdefs.h. */
3247
$ac_includes_default
3248
#include <$ac_header>
3250
rm -f conftest.$ac_objext
3251
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3252
(eval $ac_compile) 2>conftest.er1
3254
grep -v '^ *+' conftest.er1 >conftest.err
3256
cat conftest.err >&5
3257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3258
(exit $ac_status); } &&
3259
{ ac_try='test -z "$ac_c_werror_flag"
3260
|| test ! -s conftest.err'
3261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265
(exit $ac_status); }; } &&
3266
{ ac_try='test -s conftest.$ac_objext'
3267
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271
(exit $ac_status); }; }; then
3272
ac_header_compiler=yes
3274
echo "$as_me: failed program was:" >&5
3275
sed 's/^/| /' conftest.$ac_ext >&5
3277
ac_header_compiler=no
3279
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3280
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3281
echo "${ECHO_T}$ac_header_compiler" >&6
3283
# Is the header present?
3284
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3285
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3286
cat >conftest.$ac_ext <<_ACEOF
3289
cat confdefs.h >>conftest.$ac_ext
3290
cat >>conftest.$ac_ext <<_ACEOF
3291
/* end confdefs.h. */
3292
#include <$ac_header>
3294
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3295
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3297
grep -v '^ *+' conftest.er1 >conftest.err
3299
cat conftest.err >&5
3300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301
(exit $ac_status); } >/dev/null; then
3302
if test -s conftest.err; then
3303
ac_cpp_err=$ac_c_preproc_warn_flag
3304
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3311
if test -z "$ac_cpp_err"; then
3312
ac_header_preproc=yes
3314
echo "$as_me: failed program was:" >&5
3315
sed 's/^/| /' conftest.$ac_ext >&5
3317
ac_header_preproc=no
3319
rm -f conftest.err conftest.$ac_ext
3320
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3321
echo "${ECHO_T}$ac_header_preproc" >&6
3323
# So? What about this header?
3324
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3326
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3327
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3328
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3329
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3330
ac_header_preproc=yes
3333
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3334
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3335
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3336
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3337
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3338
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3339
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3340
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3341
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3342
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3343
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3344
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3347
## --------------------------------- ##
3348
## Report this to BUG-REPORT-ADDRESS ##
3349
## --------------------------------- ##
3352
sed "s/^/$as_me: WARNING: /" >&2
3355
echo "$as_me:$LINENO: checking for $ac_header" >&5
3356
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3357
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3358
echo $ECHO_N "(cached) $ECHO_C" >&6
3360
eval "$as_ac_Header=\$ac_header_preproc"
3362
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3363
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3366
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3367
cat >>confdefs.h <<_ACEOF
3368
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3375
echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
3376
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
3377
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
3378
echo $ECHO_N "(cached) $ECHO_C" >&6
3380
if test "$cross_compiling" = yes; then
3381
ac_cv_func_realloc_0_nonnull=no
3383
cat >conftest.$ac_ext <<_ACEOF
3386
cat confdefs.h >>conftest.$ac_ext
3387
cat >>conftest.$ac_ext <<_ACEOF
3388
/* end confdefs.h. */
3389
#if STDC_HEADERS || HAVE_STDLIB_H
3390
# include <stdlib.h>
3398
exit (realloc (0, 0) ? 0 : 1);
3403
rm -f conftest$ac_exeext
3404
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3405
(eval $ac_link) 2>&5
3407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3409
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413
(exit $ac_status); }; }; then
3414
ac_cv_func_realloc_0_nonnull=yes
3416
echo "$as_me: program exited with status $ac_status" >&5
3417
echo "$as_me: failed program was:" >&5
3418
sed 's/^/| /' conftest.$ac_ext >&5
3421
ac_cv_func_realloc_0_nonnull=no
3423
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3426
echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
3427
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
3428
if test $ac_cv_func_realloc_0_nonnull = yes; then
3430
cat >>confdefs.h <<\_ACEOF
3431
#define HAVE_REALLOC 1
3435
cat >>confdefs.h <<\_ACEOF
3436
#define HAVE_REALLOC 0
3440
"realloc.$ac_objext" | \
3441
*" realloc.$ac_objext" | \
3442
"realloc.$ac_objext "* | \
3443
*" realloc.$ac_objext "* ) ;;
3444
*) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
3448
cat >>confdefs.h <<\_ACEOF
3449
#define realloc rpl_realloc
3457
ac_config_files="$ac_config_files Makefile"
3459
cat >confcache <<\_ACEOF
3460
# This file is a shell script that caches the results of configure
3461
# tests run on this system so they can be shared between configure
3462
# scripts and configure runs, see configure's option --config-cache.
3463
# It is not useful on other systems. If it contains results you don't
3464
# want to keep, you may remove or edit it.
3466
# config.status only pays attention to the cache file if you give it
3467
# the --recheck option to rerun configure.
3469
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3470
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3475
# The following way of writing the cache mishandles newlines in values,
3476
# but we know of no workaround that is simple, portable, and efficient.
3477
# So, don't put newlines in cache variables' values.
3478
# Ultrix sh set writes to stderr and can't be redirected directly,
3479
# and sets the high bit in the cache file unless we assign to the vars.
3482
case `(ac_space=' '; set | grep ac_space) 2>&1` in
3484
# `set' does not quote correctly, so add quotes (double-quote
3485
# substitution turns \\\\ into \\, and sed turns \\ into \).
3488
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3491
# `set' quotes correctly as required by POSIX, so do not add quotes.
3493
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3500
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3502
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3504
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3505
if test -w $cache_file; then
3506
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3507
cat confcache >$cache_file
3509
echo "not updating unwritable cache $cache_file"
3514
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3515
# Let make expand exec_prefix.
3516
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3518
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3519
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3520
# trailing colons and then remove the whole line if VPATH becomes empty
3521
# (actually we leave an empty line to preserve line numbers).
3522
if test "x$srcdir" = x.; then
3523
ac_vpsub='/^[ ]*VPATH[ ]*=/{
3524
s/:*\$(srcdir):*/:/;
3525
s/:*\${srcdir}:*/:/;
3527
s/^\([^=]*=[ ]*\):*/\1/;
3533
DEFS=-DHAVE_CONFIG_H
3537
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3538
# 1. Remove the extension, and $U if already installed.
3539
ac_i=`echo "$ac_i" |
3540
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3542
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3543
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3547
LTLIBOBJS=$ac_ltlibobjs
3551
: ${CONFIG_STATUS=./config.status}
3552
ac_clean_files_save=$ac_clean_files
3553
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3554
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3555
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3556
cat >$CONFIG_STATUS <<_ACEOF
3558
# Generated by $as_me.
3559
# Run this file to recreate the current configuration.
3560
# Compiler output produced by configure, useful for debugging
3561
# configure, is in config.log if it exists.
3566
SHELL=\${CONFIG_SHELL-$SHELL}
3569
cat >>$CONFIG_STATUS <<\_ACEOF
3570
## --------------------- ##
3571
## M4sh Initialization. ##
3572
## --------------------- ##
3574
# Be Bourne compatible
3575
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3578
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3579
# is contrary to our usage. Disable this feature.
3580
alias -g '${1+"$@"}'='"$@"'
3581
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3584
DUALCASE=1; export DUALCASE # for MKS sh
3586
# Support unset when possible.
3587
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3594
# Work around bugs in pre-3.0 UWIN ksh.
3595
$as_unset ENV MAIL MAILPATH
3602
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3603
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3604
LC_TELEPHONE LC_TIME
3606
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3607
eval $as_var=C; export $as_var
3613
# Required to use basename.
3614
if expr a : '\(a\)' >/dev/null 2>&1; then
3620
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3621
as_basename=basename
3627
# Name of the executable.
3628
as_me=`$as_basename "$0" ||
3629
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3630
X"$0" : 'X\(//\)$' \| \
3631
X"$0" : 'X\(/\)$' \| \
3632
. : '\(.\)' 2>/dev/null ||
3634
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3635
/^X\/\(\/\/\)$/{ s//\1/; q; }
3636
/^X\/\(\/\).*/{ s//\1/; q; }
3640
# PATH needs CR, and LINENO needs CR and PATH.
3641
# Avoid depending upon Character Ranges.
3642
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3643
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3644
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3645
as_cr_digits='0123456789'
3646
as_cr_alnum=$as_cr_Letters$as_cr_digits
3648
# The user is always right.
3649
if test "${PATH_SEPARATOR+set}" != set; then
3650
echo "#! /bin/sh" >conf$$.sh
3651
echo "exit 0" >>conf$$.sh
3653
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3664
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3665
test "x$as_lineno_1" != "x$as_lineno_2" &&
3666
test "x$as_lineno_3" = "x$as_lineno_2" || {
3667
# Find who we are. Look in the path if we contain no path at all
3670
*[\\/]* ) as_myself=$0 ;;
3671
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675
test -z "$as_dir" && as_dir=.
3676
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3681
# We did not find ourselves, most probably we were run as `sh COMMAND'
3682
# in which case we are not to be found in the path.
3683
if test "x$as_myself" = x; then
3686
if test ! -f "$as_myself"; then
3687
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3688
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3689
{ (exit 1); exit 1; }; }
3691
case $CONFIG_SHELL in
3693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3697
test -z "$as_dir" && as_dir=.
3698
for as_base in sh bash ksh sh5; do
3701
if ("$as_dir/$as_base" -c '
3704
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3705
test "x$as_lineno_1" != "x$as_lineno_2" &&
3706
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3707
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3708
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3709
CONFIG_SHELL=$as_dir/$as_base
3711
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3719
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3720
# uniformly replaced by the line number. The first 'sed' inserts a
3721
# line-number line before each line; the second 'sed' does the real
3722
# work. The second script uses 'N' to pair each line-number line
3723
# with the numbered line, and appends trailing '-' during
3724
# substitution so that $LINENO is not a special case at line end.
3725
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3726
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3727
sed '=' <$as_myself |
3732
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3735
s,^['$as_cr_digits']*\n,,
3737
chmod +x $as_me.lineno ||
3738
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3739
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3740
{ (exit 1); exit 1; }; }
3742
# Don't try to exec as it changes $[0], causing all sort of problems
3743
# (the dirname of $[0] is not the place where we might find the
3744
# original and so on. Autoconf is especially sensible to this).
3746
# Exit status is that of the last command.
3751
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3752
*c*,-n*) ECHO_N= ECHO_C='
3754
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3755
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3758
if expr a : '\(a\)' >/dev/null 2>&1; then
3764
rm -f conf$$ conf$$.exe conf$$.file
3766
if ln -s conf$$.file conf$$ 2>/dev/null; then
3767
# We could just check for DJGPP; but this test a) works b) is more generic
3768
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3769
if test -f conf$$.exe; then
3770
# Don't use ln at all; we don't have any links
3775
elif ln conf$$.file conf$$ 2>/dev/null; then
3780
rm -f conf$$ conf$$.exe conf$$.file
3782
if mkdir -p . 2>/dev/null; then
3785
test -d ./-p && rmdir ./-p
3789
as_executable_p="test -f"
3791
# Sed expression to map a string onto a valid CPP name.
3792
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3794
# Sed expression to map a string onto a valid variable name.
3795
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3799
# We need space, tab and new line, in precisely that order.
3809
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3810
# report actual input values of CONFIG_FILES etc. instead of their
3811
# values after options handling. Logging --version etc. is OK.
3815
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3816
## Running $as_me. ##
3821
This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
3822
generated by GNU Autoconf 2.59. Invocation command line was
3824
CONFIG_FILES = $CONFIG_FILES
3825
CONFIG_HEADERS = $CONFIG_HEADERS
3826
CONFIG_LINKS = $CONFIG_LINKS
3827
CONFIG_COMMANDS = $CONFIG_COMMANDS
3831
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3835
# Files that config.status was made for.
3836
if test -n "$ac_config_files"; then
3837
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3840
if test -n "$ac_config_headers"; then
3841
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3844
if test -n "$ac_config_links"; then
3845
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3848
if test -n "$ac_config_commands"; then
3849
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3852
cat >>$CONFIG_STATUS <<\_ACEOF
3855
\`$as_me' instantiates files from templates according to the
3856
current configuration.
3858
Usage: $0 [OPTIONS] [FILE]...
3860
-h, --help print this help, then exit
3861
-V, --version print version number, then exit
3862
-q, --quiet do not print progress messages
3863
-d, --debug don't remove temporary files
3864
--recheck update $as_me by reconfiguring in the same conditions
3865
--file=FILE[:TEMPLATE]
3866
instantiate the configuration file FILE
3867
--header=FILE[:TEMPLATE]
3868
instantiate the configuration header FILE
3870
Configuration files:
3873
Configuration headers:
3876
Report bugs to <bug-autoconf@gnu.org>."
3879
cat >>$CONFIG_STATUS <<_ACEOF
3881
FULL-PACKAGE-NAME config.status VERSION
3882
configured by $0, generated by GNU Autoconf 2.59,
3883
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3885
Copyright (C) 2003 Free Software Foundation, Inc.
3886
This config.status script is free software; the Free Software Foundation
3887
gives unlimited permission to copy, distribute and modify it."
3891
cat >>$CONFIG_STATUS <<\_ACEOF
3892
# If no file are specified by the user, then we need to provide default
3893
# value. By we need to know if files were specified by the user.
3899
ac_option=`expr "x$1" : 'x\([^=]*\)='`
3900
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3908
*) # This is not an option, so the user has probably given explicit
3911
ac_need_defaults=false;;
3915
# Handling of the options.
3917
cat >>$CONFIG_STATUS <<\_ACEOF
3918
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3920
--version | --vers* | -V )
3921
echo "$ac_cs_version"; exit 0 ;;
3923
# Conflict between --help and --header
3924
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
3925
Try \`$0 --help' for more information." >&5
3926
echo "$as_me: error: ambiguous option: $1
3927
Try \`$0 --help' for more information." >&2;}
3928
{ (exit 1); exit 1; }; };;
3929
--help | --hel | -h )
3930
echo "$ac_cs_usage"; exit 0 ;;
3931
--debug | --d* | -d )
3933
--file | --fil | --fi | --f )
3935
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3936
ac_need_defaults=false;;
3937
--header | --heade | --head | --hea )
3939
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3940
ac_need_defaults=false;;
3941
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
3942
| -silent | --silent | --silen | --sile | --sil | --si | --s)
3946
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3947
Try \`$0 --help' for more information." >&5
3948
echo "$as_me: error: unrecognized option: $1
3949
Try \`$0 --help' for more information." >&2;}
3950
{ (exit 1); exit 1; }; } ;;
3952
*) ac_config_targets="$ac_config_targets $1" ;;
3958
ac_configure_extra_args=
3960
if $ac_cs_silent; then
3962
ac_configure_extra_args="$ac_configure_extra_args --silent"
3966
cat >>$CONFIG_STATUS <<_ACEOF
3967
if \$ac_cs_recheck; then
3968
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3969
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3978
cat >>$CONFIG_STATUS <<\_ACEOF
3979
for ac_config_target in $ac_config_targets
3981
case "$ac_config_target" in
3982
# Handling of arguments.
3983
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3984
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3985
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3986
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3987
{ (exit 1); exit 1; }; };;
3991
# If the user did not use the arguments to specify the items to instantiate,
3992
# then the envvar interface is used. Set only those that are not.
3993
# We use the long form for the default assignment because of an extremely
3994
# bizarre bug on SunOS 4.1.3.
3995
if $ac_need_defaults; then
3996
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3997
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4000
# Have a temporary directory for convenience. Make it in the build tree
4001
# simply because there is no reason to put it here, and in addition,
4002
# creating and moving files from /tmp can sometimes cause problems.
4003
# Create a temporary directory, and hook for its removal unless debugging.
4006
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4007
trap '{ (exit 1); exit 1; }' 1 2 13 15
4010
# Create a (secure) tmp directory for tmp files.
4013
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4014
test -n "$tmp" && test -d "$tmp"
4017
tmp=./confstat$$-$RANDOM
4018
(umask 077 && mkdir $tmp)
4021
echo "$me: cannot create a temporary directory in ." >&2
4022
{ (exit 1); exit 1; }
4027
cat >>$CONFIG_STATUS <<_ACEOF
4030
# CONFIG_FILES section.
4033
# No need to generate the scripts if there are no CONFIG_FILES.
4034
# This happens for instance when ./config.status config.h
4035
if test -n "\$CONFIG_FILES"; then
4036
# Protect against being on the right side of a sed subst in config.status.
4037
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4038
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4039
s,@SHELL@,$SHELL,;t t
4040
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4041
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4042
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4043
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4044
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4045
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4046
s,@exec_prefix@,$exec_prefix,;t t
4047
s,@prefix@,$prefix,;t t
4048
s,@program_transform_name@,$program_transform_name,;t t
4049
s,@bindir@,$bindir,;t t
4050
s,@sbindir@,$sbindir,;t t
4051
s,@libexecdir@,$libexecdir,;t t
4052
s,@datadir@,$datadir,;t t
4053
s,@sysconfdir@,$sysconfdir,;t t
4054
s,@sharedstatedir@,$sharedstatedir,;t t
4055
s,@localstatedir@,$localstatedir,;t t
4056
s,@libdir@,$libdir,;t t
4057
s,@includedir@,$includedir,;t t
4058
s,@oldincludedir@,$oldincludedir,;t t
4059
s,@infodir@,$infodir,;t t
4060
s,@mandir@,$mandir,;t t
4061
s,@build_alias@,$build_alias,;t t
4062
s,@host_alias@,$host_alias,;t t
4063
s,@target_alias@,$target_alias,;t t
4065
s,@ECHO_C@,$ECHO_C,;t t
4066
s,@ECHO_N@,$ECHO_N,;t t
4067
s,@ECHO_T@,$ECHO_T,;t t
4070
s,@CFLAGS@,$CFLAGS,;t t
4071
s,@LDFLAGS@,$LDFLAGS,;t t
4072
s,@CPPFLAGS@,$CPPFLAGS,;t t
4073
s,@ac_ct_CC@,$ac_ct_CC,;t t
4074
s,@EXEEXT@,$EXEEXT,;t t
4075
s,@OBJEXT@,$OBJEXT,;t t
4077
s,@EGREP@,$EGREP,;t t
4078
s,@LIBOBJS@,$LIBOBJS,;t t
4079
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4084
cat >>$CONFIG_STATUS <<\_ACEOF
4085
# Split the substitutions into bite-sized pieces for seds with
4086
# small command number limits, like on Digital OSF/1 and HP-UX.
4088
ac_sed_frag=1 # Number of current file.
4089
ac_beg=1 # First line for current file.
4090
ac_end=$ac_max_sed_lines # Line after last line for current file.
4093
while $ac_more_lines; do
4094
if test $ac_beg -gt 1; then
4095
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4097
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4099
if test ! -s $tmp/subs.frag; then
4102
# The purpose of the label and of the branching condition is to
4103
# speed up the sed processing (if there are no `@' at all, there
4104
# is no need to browse any of the substitutions).
4105
# These are the two extra sed commands mentioned above.
4107
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4108
if test -z "$ac_sed_cmds"; then
4109
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4111
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4113
ac_sed_frag=`expr $ac_sed_frag + 1`
4115
ac_end=`expr $ac_end + $ac_max_sed_lines`
4118
if test -z "$ac_sed_cmds"; then
4121
fi # test -n "$CONFIG_FILES"
4124
cat >>$CONFIG_STATUS <<\_ACEOF
4125
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4126
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4128
- | *:- | *:-:* ) # input from stdin
4130
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4131
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4132
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4133
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4134
* ) ac_file_in=$ac_file.in ;;
4137
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4138
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4139
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4140
X"$ac_file" : 'X\(//\)[^/]' \| \
4141
X"$ac_file" : 'X\(//\)$' \| \
4142
X"$ac_file" : 'X\(/\)' \| \
4143
. : '\(.\)' 2>/dev/null ||
4145
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4146
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4147
/^X\(\/\/\)$/{ s//\1/; q; }
4148
/^X\(\/\).*/{ s//\1/; q; }
4150
{ if $as_mkdir_p; then
4155
while test ! -d "$as_dir"; do
4156
as_dirs="$as_dir $as_dirs"
4157
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4158
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4159
X"$as_dir" : 'X\(//\)[^/]' \| \
4160
X"$as_dir" : 'X\(//\)$' \| \
4161
X"$as_dir" : 'X\(/\)' \| \
4162
. : '\(.\)' 2>/dev/null ||
4164
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4165
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4166
/^X\(\/\/\)$/{ s//\1/; q; }
4167
/^X\(\/\).*/{ s//\1/; q; }
4170
test ! -n "$as_dirs" || mkdir $as_dirs
4171
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4172
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4173
{ (exit 1); exit 1; }; }; }
4177
if test "$ac_dir" != .; then
4178
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4179
# A "../" for each directory in $ac_dir_suffix.
4180
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4182
ac_dir_suffix= ac_top_builddir=
4186
.) # No --srcdir option. We are building in place.
4188
if test -z "$ac_top_builddir"; then
4191
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4193
[\\/]* | ?:[\\/]* ) # Absolute path.
4194
ac_srcdir=$srcdir$ac_dir_suffix;
4195
ac_top_srcdir=$srcdir ;;
4197
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4198
ac_top_srcdir=$ac_top_builddir$srcdir ;;
4201
# Do not use `cd foo && pwd` to compute absolute paths, because
4202
# the directories may not exist.
4204
.) ac_abs_builddir="$ac_dir";;
4207
.) ac_abs_builddir=`pwd`;;
4208
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4209
*) ac_abs_builddir=`pwd`/"$ac_dir";;
4212
case $ac_abs_builddir in
4213
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4215
case ${ac_top_builddir}. in
4216
.) ac_abs_top_builddir=$ac_abs_builddir;;
4217
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4218
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4221
case $ac_abs_builddir in
4222
.) ac_abs_srcdir=$ac_srcdir;;
4225
.) ac_abs_srcdir=$ac_abs_builddir;;
4226
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4227
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4230
case $ac_abs_builddir in
4231
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4233
case $ac_top_srcdir in
4234
.) ac_abs_top_srcdir=$ac_abs_builddir;;
4235
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4236
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4242
if test x"$ac_file" != x-; then
4243
{ echo "$as_me:$LINENO: creating $ac_file" >&5
4244
echo "$as_me: creating $ac_file" >&6;}
4247
# Let's still pretend it is `configure' which instantiates (i.e., don't
4248
# use $as_me), people would be surprised to read:
4249
# /* config.h. Generated by config.status. */
4250
if test x"$ac_file" = x-; then
4253
configure_input="$ac_file. "
4255
configure_input=$configure_input"Generated from `echo $ac_file_in |
4256
sed 's,.*/,,'` by configure."
4258
# First look for the input files in the build tree, otherwise in the
4260
ac_file_inputs=`IFS=:
4261
for f in $ac_file_in; do
4263
-) echo $tmp/stdin ;;
4265
# Absolute (can't be DOS-style, as IFS=:)
4266
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4267
echo "$as_me: error: cannot find input file: $f" >&2;}
4268
{ (exit 1); exit 1; }; }
4271
if test -f "$f"; then
4274
elif test -f "$srcdir/$f"; then
4279
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4280
echo "$as_me: error: cannot find input file: $f" >&2;}
4281
{ (exit 1); exit 1; }; }
4284
done` || { (exit 1); exit 1; }
4286
cat >>$CONFIG_STATUS <<_ACEOF
4290
cat >>$CONFIG_STATUS <<\_ACEOF
4292
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4293
s,@configure_input@,$configure_input,;t t
4294
s,@srcdir@,$ac_srcdir,;t t
4295
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4296
s,@top_srcdir@,$ac_top_srcdir,;t t
4297
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4298
s,@builddir@,$ac_builddir,;t t
4299
s,@abs_builddir@,$ac_abs_builddir,;t t
4300
s,@top_builddir@,$ac_top_builddir,;t t
4301
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4302
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4304
if test x"$ac_file" != x-; then
4305
mv $tmp/out $ac_file
4313
cat >>$CONFIG_STATUS <<\_ACEOF
4316
# CONFIG_HEADER section.
4319
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4320
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4322
# ac_d sets the value in "#define NAME VALUE" lines.
4323
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4324
ac_dB='[ ].*$,\1#\2'
4327
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4328
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4329
ac_uB='$,\1#\2define\3'
4333
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4334
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4336
- | *:- | *:-:* ) # input from stdin
4338
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4339
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4340
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4341
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4342
* ) ac_file_in=$ac_file.in ;;
4345
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4346
echo "$as_me: creating $ac_file" >&6;}
4348
# First look for the input files in the build tree, otherwise in the
4350
ac_file_inputs=`IFS=:
4351
for f in $ac_file_in; do
4353
-) echo $tmp/stdin ;;
4355
# Absolute (can't be DOS-style, as IFS=:)
4356
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4357
echo "$as_me: error: cannot find input file: $f" >&2;}
4358
{ (exit 1); exit 1; }; }
4359
# Do quote $f, to prevent DOS paths from being IFS'd.
4362
if test -f "$f"; then
4365
elif test -f "$srcdir/$f"; then
4370
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4371
echo "$as_me: error: cannot find input file: $f" >&2;}
4372
{ (exit 1); exit 1; }; }
4375
done` || { (exit 1); exit 1; }
4376
# Remove the trailing spaces.
4377
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4381
# Transform confdefs.h into two sed scripts, `conftest.defines' and
4382
# `conftest.undefs', that substitutes the proper values into
4383
# config.h.in to produce config.h. The first handles `#define'
4384
# templates, and the second `#undef' templates.
4385
# And first: Protect against being on the right side of a sed subst in
4386
# config.status. Protect against being in an unquoted here document
4388
rm -f conftest.defines conftest.undefs
4389
# Using a here document instead of a string reduces the quoting nightmare.
4390
# Putting comments in sed scripts is not portable.
4392
# `end' is used to avoid that the second main sed command (meant for
4393
# 0-ary CPP macros) applies to n-ary macro definitions.
4394
# See the Autoconf documentation for `clear'.
4395
cat >confdef2sed.sed <<\_ACEOF
4400
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4402
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4405
# If some macros were called several times there might be several times
4406
# the same #defines, which is useless. Nevertheless, we may not want to
4407
# sort them, since we want the *last* AC-DEFINE to be honored.
4408
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4409
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4410
rm -f confdef2sed.sed
4412
# This sed command replaces #undef with comments. This is necessary, for
4413
# example, in the case of _POSIX_SOURCE, which is predefined and required
4414
# on some systems where configure will not decide to define it.
4415
cat >>conftest.undefs <<\_ACEOF
4416
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4419
# Break up conftest.defines because some shells have a limit on the size
4420
# of here documents, and old seds have small limits too (100 cmds).
4421
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4422
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4423
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4424
echo ' :' >>$CONFIG_STATUS
4426
while grep . conftest.defines >/dev/null
4428
# Write a limited-size here document to $tmp/defines.sed.
4429
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4430
# Speed up: don't consider the non `#define' lines.
4431
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4432
# Work around the forget-to-reset-the-flag bug.
4433
echo 't clr' >>$CONFIG_STATUS
4434
echo ': clr' >>$CONFIG_STATUS
4435
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4437
sed -f $tmp/defines.sed $tmp/in >$tmp/out
4441
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4442
rm -f conftest.defines
4443
mv conftest.tail conftest.defines
4445
rm -f conftest.defines
4446
echo ' fi # grep' >>$CONFIG_STATUS
4447
echo >>$CONFIG_STATUS
4449
# Break up conftest.undefs because some shells have a limit on the size
4450
# of here documents, and old seds have small limits too (100 cmds).
4451
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4453
while grep . conftest.undefs >/dev/null
4455
# Write a limited-size here document to $tmp/undefs.sed.
4456
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4457
# Speed up: don't consider the non `#undef'
4458
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4459
# Work around the forget-to-reset-the-flag bug.
4460
echo 't clr' >>$CONFIG_STATUS
4461
echo ': clr' >>$CONFIG_STATUS
4462
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4464
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4468
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4469
rm -f conftest.undefs
4470
mv conftest.tail conftest.undefs
4472
rm -f conftest.undefs
4474
cat >>$CONFIG_STATUS <<\_ACEOF
4475
# Let's still pretend it is `configure' which instantiates (i.e., don't
4476
# use $as_me), people would be surprised to read:
4477
# /* config.h. Generated by config.status. */
4478
if test x"$ac_file" = x-; then
4479
echo "/* Generated by configure. */" >$tmp/config.h
4481
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4483
cat $tmp/in >>$tmp/config.h
4485
if test x"$ac_file" != x-; then
4486
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4487
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4488
echo "$as_me: $ac_file is unchanged" >&6;}
4490
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4491
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4492
X"$ac_file" : 'X\(//\)[^/]' \| \
4493
X"$ac_file" : 'X\(//\)$' \| \
4494
X"$ac_file" : 'X\(/\)' \| \
4495
. : '\(.\)' 2>/dev/null ||
4497
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4498
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4499
/^X\(\/\/\)$/{ s//\1/; q; }
4500
/^X\(\/\).*/{ s//\1/; q; }
4502
{ if $as_mkdir_p; then
4507
while test ! -d "$as_dir"; do
4508
as_dirs="$as_dir $as_dirs"
4509
as_dir=`(dirname "$as_dir") 2>/dev/null ||
4510
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4511
X"$as_dir" : 'X\(//\)[^/]' \| \
4512
X"$as_dir" : 'X\(//\)$' \| \
4513
X"$as_dir" : 'X\(/\)' \| \
4514
. : '\(.\)' 2>/dev/null ||
4516
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4517
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
4518
/^X\(\/\/\)$/{ s//\1/; q; }
4519
/^X\(\/\).*/{ s//\1/; q; }
4522
test ! -n "$as_dirs" || mkdir $as_dirs
4523
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4524
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4525
{ (exit 1); exit 1; }; }; }
4528
mv $tmp/config.h $ac_file
4537
cat >>$CONFIG_STATUS <<\_ACEOF
4539
{ (exit 0); exit 0; }
4541
chmod +x $CONFIG_STATUS
4542
ac_clean_files=$ac_clean_files_save
4545
# configure is writing to config.log, and then calls config.status.
4546
# config.status does its own redirection, appending to config.log.
4547
# Unfortunately, on DOS this fails, as config.log is still kept open
4548
# by configure, so config.status won't be able to write to it; its
4549
# output is simply discarded. So we exec the FD to /dev/null,
4550
# effectively closing config.log, so it can be properly (re)opened and
4551
# appended to by config.status. When coming back to configure, we
4552
# need to make the FD available again.
4553
if test "$no_create" != yes; then
4555
ac_config_status_args=
4556
test "$silent" = yes &&
4557
ac_config_status_args="$ac_config_status_args --quiet"
4559
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4561
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
4562
# would make configure fail if this is the last instruction.
4563
$ac_cs_success || { (exit 1); exit 1; }