2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
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+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
exec 7<&0 </dev/null 6>&1
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556
# so uname gets run too.
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
ac_default_prefix=/usr/local
564
ac_config_libobj_dir=.
570
SHELL=${CONFIG_SHELL-/bin/sh}
572
# Identity of this package.
579
ac_unique_file="lib/device/dev-io.h"
580
# Factoring default headers for most tests.
581
ac_includes_default="\
583
#ifdef HAVE_SYS_TYPES_H
584
# include <sys/types.h>
586
#ifdef HAVE_SYS_STAT_H
587
# include <sys/stat.h>
593
# ifdef HAVE_STDLIB_H
598
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603
#ifdef HAVE_STRINGS_H
604
# include <strings.h>
606
#ifdef HAVE_INTTYPES_H
607
# include <inttypes.h>
616
ac_default_prefix=/usr/share
626
program_transform_name
710
ac_precious_vars='build_alias
721
# Initialize some variables set by options.
723
ac_init_version=false
724
# The variables have the same names as the options, with
725
# dashes changed to underlines.
733
program_transform_name=s,x,x,
741
# Installation directory options.
742
# These are left unexpanded so users can "make install exec_prefix=/foo"
743
# and all the variables that are supposed to be based on exec_prefix
744
# by default will actually change.
745
# Use braces instead of parens because sh, perl, etc. also accept them.
746
# (The list follows the same order as the GNU Coding Standards.)
747
bindir='${exec_prefix}/bin'
748
sbindir='${exec_prefix}/sbin'
749
libexecdir='${exec_prefix}/libexec'
750
datarootdir='${prefix}/share'
751
datadir='${datarootdir}'
752
sysconfdir='${prefix}/etc'
753
sharedstatedir='${prefix}/com'
754
localstatedir='${prefix}/var'
755
includedir='${prefix}/include'
756
oldincludedir='/usr/include'
757
docdir='${datarootdir}/doc/${PACKAGE}'
758
infodir='${datarootdir}/info'
763
libdir='${exec_prefix}/lib'
764
localedir='${datarootdir}/locale'
765
mandir='${datarootdir}/man'
771
# If the previous option needs an argument, assign it.
772
if test -n "$ac_prev"; then
773
eval $ac_prev=\$ac_option
779
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783
# Accept the important Cygnus configure options, so we can diagnose typos.
785
case $ac_dashdash$ac_option in
789
-bindir | --bindir | --bindi | --bind | --bin | --bi)
791
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794
-build | --build | --buil | --bui | --bu)
795
ac_prev=build_alias ;;
796
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
797
build_alias=$ac_optarg ;;
799
-cache-file | --cache-file | --cache-fil | --cache-fi \
800
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801
ac_prev=cache_file ;;
802
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804
cache_file=$ac_optarg ;;
807
cache_file=config.cache ;;
809
-datadir | --datadir | --datadi | --datad)
811
-datadir=* | --datadir=* | --datadi=* | --datad=*)
812
datadir=$ac_optarg ;;
814
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815
| --dataroo | --dataro | --datar)
816
ac_prev=datarootdir ;;
817
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819
datarootdir=$ac_optarg ;;
821
-disable-* | --disable-*)
822
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823
# Reject names that are not valid shell variable names.
824
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
826
{ (exit 1); exit 1; }; }
827
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
828
eval enable_$ac_feature=no ;;
830
-docdir | --docdir | --docdi | --doc | --do)
832
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
835
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
837
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
840
-enable-* | --enable-*)
841
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842
# Reject names that are not valid shell variable names.
843
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
845
{ (exit 1); exit 1; }; }
846
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847
eval enable_$ac_feature=\$ac_optarg ;;
849
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851
| --exec | --exe | --ex)
852
ac_prev=exec_prefix ;;
853
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855
| --exec=* | --exe=* | --ex=*)
856
exec_prefix=$ac_optarg ;;
858
-gas | --gas | --ga | --g)
859
# Obsolete; use --with-gas.
862
-help | --help | --hel | --he | -h)
864
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865
ac_init_help=recursive ;;
866
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867
ac_init_help=short ;;
869
-host | --host | --hos | --ho)
870
ac_prev=host_alias ;;
871
-host=* | --host=* | --hos=* | --ho=*)
872
host_alias=$ac_optarg ;;
874
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878
htmldir=$ac_optarg ;;
880
-includedir | --includedir | --includedi | --included | --include \
881
| --includ | --inclu | --incl | --inc)
882
ac_prev=includedir ;;
883
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884
| --includ=* | --inclu=* | --incl=* | --inc=*)
885
includedir=$ac_optarg ;;
887
-infodir | --infodir | --infodi | --infod | --info | --inf)
889
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890
infodir=$ac_optarg ;;
892
-libdir | --libdir | --libdi | --libd)
894
-libdir=* | --libdir=* | --libdi=* | --libd=*)
897
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898
| --libexe | --libex | --libe)
899
ac_prev=libexecdir ;;
900
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901
| --libexe=* | --libex=* | --libe=*)
902
libexecdir=$ac_optarg ;;
904
-localedir | --localedir | --localedi | --localed | --locale)
906
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907
localedir=$ac_optarg ;;
909
-localstatedir | --localstatedir | --localstatedi | --localstated \
910
| --localstate | --localstat | --localsta | --localst | --locals)
911
ac_prev=localstatedir ;;
912
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914
localstatedir=$ac_optarg ;;
916
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
922
# Obsolete; use --without-fp.
925
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
926
| --no-cr | --no-c | -n)
929
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
930
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
933
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935
| --oldin | --oldi | --old | --ol | --o)
936
ac_prev=oldincludedir ;;
937
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940
oldincludedir=$ac_optarg ;;
942
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
947
-program-prefix | --program-prefix | --program-prefi | --program-pref \
948
| --program-pre | --program-pr | --program-p)
949
ac_prev=program_prefix ;;
950
-program-prefix=* | --program-prefix=* | --program-prefi=* \
951
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952
program_prefix=$ac_optarg ;;
954
-program-suffix | --program-suffix | --program-suffi | --program-suff \
955
| --program-suf | --program-su | --program-s)
956
ac_prev=program_suffix ;;
957
-program-suffix=* | --program-suffix=* | --program-suffi=* \
958
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959
program_suffix=$ac_optarg ;;
961
-program-transform-name | --program-transform-name \
962
| --program-transform-nam | --program-transform-na \
963
| --program-transform-n | --program-transform- \
964
| --program-transform | --program-transfor \
965
| --program-transfo | --program-transf \
966
| --program-trans | --program-tran \
967
| --progr-tra | --program-tr | --program-t)
968
ac_prev=program_transform_name ;;
969
-program-transform-name=* | --program-transform-name=* \
970
| --program-transform-nam=* | --program-transform-na=* \
971
| --program-transform-n=* | --program-transform-=* \
972
| --program-transform=* | --program-transfor=* \
973
| --program-transfo=* | --program-transf=* \
974
| --program-trans=* | --program-tran=* \
975
| --progr-tra=* | --program-tr=* | --program-t=*)
976
program_transform_name=$ac_optarg ;;
978
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
983
-psdir | --psdir | --psdi | --psd | --ps)
985
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
988
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
989
| -silent | --silent | --silen | --sile | --sil)
992
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996
sbindir=$ac_optarg ;;
998
-sharedstatedir | --sharedstatedir | --sharedstatedi \
999
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1000
| --sharedst | --shareds | --shared | --share | --shar \
1002
ac_prev=sharedstatedir ;;
1003
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1004
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1005
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007
sharedstatedir=$ac_optarg ;;
1009
-site | --site | --sit)
1011
-site=* | --site=* | --sit=*)
1014
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1017
srcdir=$ac_optarg ;;
1019
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1020
| --syscon | --sysco | --sysc | --sys | --sy)
1021
ac_prev=sysconfdir ;;
1022
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1023
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1024
sysconfdir=$ac_optarg ;;
1026
-target | --target | --targe | --targ | --tar | --ta | --t)
1027
ac_prev=target_alias ;;
1028
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1029
target_alias=$ac_optarg ;;
1031
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1034
-version | --version | --versio | --versi | --vers | -V)
1035
ac_init_version=: ;;
1038
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1039
# Reject names that are not valid shell variable names.
1040
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1042
{ (exit 1); exit 1; }; }
1043
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044
eval with_$ac_package=\$ac_optarg ;;
1046
-without-* | --without-*)
1047
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1048
# Reject names that are not valid shell variable names.
1049
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1051
{ (exit 1); exit 1; }; }
1052
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053
eval with_$ac_package=no ;;
1056
# Obsolete; use --with-x.
1059
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1060
| --x-incl | --x-inc | --x-in | --x-i)
1061
ac_prev=x_includes ;;
1062
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1063
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1064
x_includes=$ac_optarg ;;
1066
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1067
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1068
ac_prev=x_libraries ;;
1069
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1070
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1071
x_libraries=$ac_optarg ;;
1073
-*) { echo "$as_me: error: unrecognized option: $ac_option
1074
Try \`$0 --help' for more information." >&2
1075
{ (exit 1); exit 1; }; }
1079
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080
# Reject names that are not valid shell variable names.
1081
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1082
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1083
{ (exit 1); exit 1; }; }
1084
eval $ac_envvar=\$ac_optarg
1085
export $ac_envvar ;;
1088
# FIXME: should be removed in autoconf 3.0.
1089
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1091
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1098
if test -n "$ac_prev"; then
1099
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1100
{ echo "$as_me: error: missing argument to $ac_option" >&2
1101
{ (exit 1); exit 1; }; }
1104
# Be sure to have absolute directory names.
1105
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1106
datadir sysconfdir sharedstatedir localstatedir includedir \
1107
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1108
libdir localedir mandir
1110
eval ac_val=\$$ac_var
1112
[\\/$]* | ?:[\\/]* ) continue;;
1113
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1115
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1116
{ (exit 1); exit 1; }; }
1119
# There might be people who depend on the old broken behavior: `$host'
1120
# used to hold the argument of --host etc.
1121
# FIXME: To remove some day.
1124
target=$target_alias
1126
# FIXME: To remove some day.
1127
if test "x$host_alias" != x; then
1128
if test "x$build_alias" = x; then
1129
cross_compiling=maybe
1130
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1131
If a cross compiler is detected then cross compile mode will be used." >&2
1132
elif test "x$build_alias" != "x$host_alias"; then
1138
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1140
test "$silent" = yes && exec 6>/dev/null
1143
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1144
ac_ls_di=`ls -di .` &&
1145
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1146
{ echo "$as_me: error: Working directory cannot be determined" >&2
1147
{ (exit 1); exit 1; }; }
1148
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1149
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1150
{ (exit 1); exit 1; }; }
1153
# Find the source files, if location was not specified.
1154
if test -z "$srcdir"; then
1155
ac_srcdir_defaulted=yes
1156
# Try the directory containing this script, then the parent directory.
1157
ac_confdir=`$as_dirname -- "$0" ||
1158
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1159
X"$0" : 'X\(//\)[^/]' \| \
1160
X"$0" : 'X\(//\)$' \| \
1161
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1163
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181
if test ! -r "$srcdir/$ac_unique_file"; then
1185
ac_srcdir_defaulted=no
1187
if test ! -r "$srcdir/$ac_unique_file"; then
1188
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1189
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1190
{ (exit 1); exit 1; }; }
1192
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1194
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1195
{ (exit 1); exit 1; }; }
1197
# When building in place, set srcdir=.
1198
if test "$ac_abs_confdir" = "$ac_pwd"; then
1201
# Remove unnecessary trailing slashes from srcdir.
1202
# Double slashes in file names in object file debugging info
1203
# mess up M-x gdb in Emacs.
1205
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1207
for ac_var in $ac_precious_vars; do
1208
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209
eval ac_env_${ac_var}_value=\$${ac_var}
1210
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1215
# Report the --help message.
1217
if test "$ac_init_help" = "long"; then
1218
# Omit some internal or obsolete options to make the list less imposing.
1219
# This message is too long to be a string in the A/UX 3.1 sh.
1221
\`configure' configures this package to adapt to many kinds of systems.
1223
Usage: $0 [OPTION]... [VAR=VALUE]...
1225
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226
VAR=VALUE. See below for descriptions of some of the useful variables.
1228
Defaults for the options are specified in brackets.
1231
-h, --help display this help and exit
1232
--help=short display options specific to this package
1233
--help=recursive display the short help of all the included packages
1234
-V, --version display version information and exit
1235
-q, --quiet, --silent do not print \`checking...' messages
1236
--cache-file=FILE cache test results in FILE [disabled]
1237
-C, --config-cache alias for \`--cache-file=config.cache'
1238
-n, --no-create do not create output files
1239
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1241
Installation directories:
1242
--prefix=PREFIX install architecture-independent files in PREFIX
1243
[$ac_default_prefix]
1244
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1247
By default, \`make install' will install all the files in
1248
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1249
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250
for instance \`--prefix=\$HOME'.
1252
For better control, use the options below.
1254
Fine tuning of the installation directories:
1255
--bindir=DIR user executables [EPREFIX/bin]
1256
--sbindir=DIR system admin executables [EPREFIX/sbin]
1257
--libexecdir=DIR program executables [EPREFIX/libexec]
1258
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1259
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1260
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1261
--libdir=DIR object code libraries [EPREFIX/lib]
1262
--includedir=DIR C header files [PREFIX/include]
1263
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1264
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266
--infodir=DIR info documentation [DATAROOTDIR/info]
1267
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268
--mandir=DIR man documentation [DATAROOTDIR/man]
1269
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1270
--htmldir=DIR html documentation [DOCDIR]
1271
--dvidir=DIR dvi documentation [DOCDIR]
1272
--pdfdir=DIR pdf documentation [DOCDIR]
1273
--psdir=DIR ps documentation [DOCDIR]
1279
--build=BUILD configure for building on BUILD [guessed]
1280
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1281
--target=TARGET configure for building compilers for TARGET [HOST]
1285
if test -n "$ac_init_help"; then
1290
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1291
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1292
--enable-klibc Use this to link the tools to klibc. Set KLCC to the
1293
absolute file name of klcc if not in the PATH.
1294
--enable-debug Enable debugging
1295
--enable-debug_malloc Enable malloc debugging
1296
--enable-dietlibc Use this to link the tools to dietlibc
1297
--enable-jobs=NUM Number of jobs to run simultaneously
1298
--enable-libselinux Use this to link the tools to libselinux
1299
--enable-libsepol Use this to link the tools to libsepol
1300
--enable-mini Use this to create a minimal binary suitable
1301
for early boot environments
1302
--enable-led Use this to enable LED support
1303
--enable-intel_led Use this to enable Intel LED support
1304
--disable-native_log Disable native metadata logging. Default is enabled
1305
--enable-static_link Use this to link the tools to the dmraid and devmapper
1306
libraries statically. Default is dynamic linking
1307
--enable-shared_lib Use this to generate shared libdmraid and link the
1308
tools to it. Default is static libdmraid
1309
--disable-testing Disable testing with mapped devices
1312
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1313
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1314
--with-user=USER Set the owner of installed files
1315
--with-group=GROUP Set the group owner of installed files
1317
Some influential environment variables:
1318
CC C compiler command
1319
CFLAGS C compiler flags
1320
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1321
nonstandard directory <lib dir>
1322
LIBS libraries to pass to the linker, e.g. -l<library>
1323
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1324
you have headers in a nonstandard directory <include dir>
1327
Use these variables to override the choices made by `configure' or to help
1328
it to find libraries and programs with nonstandard names/locations.
1334
if test "$ac_init_help" = "recursive"; then
1335
# If there are subdirs, report their specific --help.
1336
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1337
test -d "$ac_dir" || continue
1341
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1344
# A ".." for each directory in $ac_dir_suffix.
1345
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1346
case $ac_top_builddir_sub in
1347
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1348
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1351
ac_abs_top_builddir=$ac_pwd
1352
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1353
# for backward compatibility:
1354
ac_top_builddir=$ac_top_build_prefix
1357
.) # We are building in place.
1359
ac_top_srcdir=$ac_top_builddir_sub
1360
ac_abs_top_srcdir=$ac_pwd ;;
1361
[\\/]* | ?:[\\/]* ) # Absolute name.
1362
ac_srcdir=$srcdir$ac_dir_suffix;
1363
ac_top_srcdir=$srcdir
1364
ac_abs_top_srcdir=$srcdir ;;
1366
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1367
ac_top_srcdir=$ac_top_build_prefix$srcdir
1368
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1370
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1372
cd "$ac_dir" || { ac_status=$?; continue; }
1373
# Check for guested configure.
1374
if test -f "$ac_srcdir/configure.gnu"; then
1376
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1377
elif test -f "$ac_srcdir/configure"; then
1379
$SHELL "$ac_srcdir/configure" --help=recursive
1381
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1383
cd "$ac_pwd" || { ac_status=$?; break; }
1387
test -n "$ac_init_help" && exit $ac_status
1388
if $ac_init_version; then
1391
generated by GNU Autoconf 2.61
1393
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1394
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1395
This configure script is free software; the Free Software Foundation
1396
gives unlimited permission to copy, distribute and modify it.
1400
cat >config.log <<_ACEOF
1401
This file contains any messages produced by compilers while
1402
running configure, to aid debugging if configure makes a mistake.
1404
It was created by $as_me, which was
1405
generated by GNU Autoconf 2.61. Invocation command line was
1417
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1418
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1419
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1420
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1421
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1423
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1424
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1426
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1427
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1428
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1429
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1430
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1431
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1432
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1436
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440
test -z "$as_dir" && as_dir=.
1441
echo "PATH: $as_dir"
1457
# Keep a trace of the command line.
1458
# Strip out --no-create and --no-recursion so they do not pile up.
1459
# Strip out --silent because we don't want to record it for future runs.
1460
# Also quote any args containing shell meta-characters.
1461
# Make two passes to allow for proper duplicate-argument suppression.
1465
ac_must_keep_next=false
1471
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1472
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1473
| -silent | --silent | --silen | --sile | --sil)
1476
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1479
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1481
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1482
if test $ac_must_keep_next = true; then
1483
ac_must_keep_next=false # Got value, back to normal.
1486
*=* | --config-cache | -C | -disable-* | --disable-* \
1487
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1488
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1489
| -with-* | --with-* | -without-* | --without-* | --x)
1490
case "$ac_configure_args0 " in
1491
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1494
-* ) ac_must_keep_next=true ;;
1497
ac_configure_args="$ac_configure_args '$ac_arg'"
1502
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1503
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1505
# When interrupted or exit'd, cleanup temporary files, and complete
1506
# config.log. We remove comments because anyway the quotes in there
1507
# would cause problems or look ugly.
1508
# WARNING: Use '\'' to represent an apostrophe within the trap.
1509
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1510
trap 'exit_status=$?
1511
# Save into config.log some information that might help in debugging.
1516
## ---------------- ##
1517
## Cache variables. ##
1518
## ---------------- ##
1521
# The following way of writing the cache mishandles newlines in values,
1523
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1524
eval ac_val=\$$ac_var
1528
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1529
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1532
_ | IFS | as_nl) ;; #(
1533
*) $as_unset $ac_var ;;
1538
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1539
*${as_nl}ac_space=\ *)
1541
"s/'\''/'\''\\\\'\'''\''/g;
1542
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1545
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1553
## ----------------- ##
1554
## Output variables. ##
1555
## ----------------- ##
1558
for ac_var in $ac_subst_vars
1560
eval ac_val=\$$ac_var
1562
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564
echo "$ac_var='\''$ac_val'\''"
1568
if test -n "$ac_subst_files"; then
1570
## ------------------- ##
1571
## File substitutions. ##
1572
## ------------------- ##
1575
for ac_var in $ac_subst_files
1577
eval ac_val=\$$ac_var
1579
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1581
echo "$ac_var='\''$ac_val'\''"
1586
if test -s confdefs.h; then
1596
test "$ac_signal" != 0 &&
1597
echo "$as_me: caught signal $ac_signal"
1598
echo "$as_me: exit $exit_status"
1600
rm -f core *.core core.conftest.* &&
1601
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1604
for ac_signal in 1 2 13 15; do
1605
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1609
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1610
rm -f -r conftest* confdefs.h
1612
# Predefined preprocessor variables.
1614
cat >>confdefs.h <<_ACEOF
1615
#define PACKAGE_NAME "$PACKAGE_NAME"
1619
cat >>confdefs.h <<_ACEOF
1620
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1624
cat >>confdefs.h <<_ACEOF
1625
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1629
cat >>confdefs.h <<_ACEOF
1630
#define PACKAGE_STRING "$PACKAGE_STRING"
1634
cat >>confdefs.h <<_ACEOF
1635
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1639
# Let the site file select an alternate cache file if it wants to.
1640
# Prefer explicitly selected file to automatically selected ones.
1641
if test -n "$CONFIG_SITE"; then
1642
set x "$CONFIG_SITE"
1643
elif test "x$prefix" != xNONE; then
1644
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1646
set x "$ac_default_prefix/share/config.site" \
1647
"$ac_default_prefix/etc/config.site"
1652
if test -r "$ac_site_file"; then
1653
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1654
echo "$as_me: loading site script $ac_site_file" >&6;}
1655
sed 's/^/| /' "$ac_site_file" >&5
1660
if test -r "$cache_file"; then
1661
# Some versions of bash will fail to source /dev/null (special
1662
# files actually), so we avoid doing that.
1663
if test -f "$cache_file"; then
1664
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1665
echo "$as_me: loading cache $cache_file" >&6;}
1667
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1668
*) . "./$cache_file";;
1672
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1673
echo "$as_me: creating cache $cache_file" >&6;}
1677
# Check that the precious variables saved in the cache have kept the same
1679
ac_cache_corrupted=false
1680
for ac_var in $ac_precious_vars; do
1681
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1682
eval ac_new_set=\$ac_env_${ac_var}_set
1683
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1684
eval ac_new_val=\$ac_env_${ac_var}_value
1685
case $ac_old_set,$ac_new_set in
1687
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1688
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1689
ac_cache_corrupted=: ;;
1691
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1692
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1693
ac_cache_corrupted=: ;;
1696
if test "x$ac_old_val" != "x$ac_new_val"; then
1697
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1698
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1699
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1700
echo "$as_me: former value: $ac_old_val" >&2;}
1701
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1702
echo "$as_me: current value: $ac_new_val" >&2;}
1703
ac_cache_corrupted=:
1706
# Pass precious variables to config.status.
1707
if test "$ac_new_set" = set; then
1709
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1710
*) ac_arg=$ac_var=$ac_new_val ;;
1712
case " $ac_configure_args " in
1713
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1714
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1718
if $ac_cache_corrupted; then
1719
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1720
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1721
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1722
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1723
{ (exit 1); exit 1; }; }
1743
ac_cpp='$CPP $CPPFLAGS'
1744
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1745
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1746
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1751
for ac_dir in autoconf "$srcdir"/autoconf; do
1752
if test -f "$ac_dir/install-sh"; then
1754
ac_install_sh="$ac_aux_dir/install-sh -c"
1756
elif test -f "$ac_dir/install.sh"; then
1758
ac_install_sh="$ac_aux_dir/install.sh -c"
1760
elif test -f "$ac_dir/shtool"; then
1762
ac_install_sh="$ac_aux_dir/shtool install -c"
1766
if test -z "$ac_aux_dir"; then
1767
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1768
echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1769
{ (exit 1); exit 1; }; }
1772
# These three variables are undocumented and unsupported,
1773
# and are intended to be withdrawn in a future Autoconf release.
1774
# They can cause serious problems if a builder's source tree is in a directory
1775
# whose full name contains unusual characters.
1776
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1777
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1778
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1782
# Make sure we can run config.sub.
1783
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1784
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1785
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1786
{ (exit 1); exit 1; }; }
1788
{ echo "$as_me:$LINENO: checking build system type" >&5
1789
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1790
if test "${ac_cv_build+set}" = set; then
1791
echo $ECHO_N "(cached) $ECHO_C" >&6
1793
ac_build_alias=$build_alias
1794
test "x$ac_build_alias" = x &&
1795
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1796
test "x$ac_build_alias" = x &&
1797
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1798
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1799
{ (exit 1); exit 1; }; }
1800
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1801
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1802
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1803
{ (exit 1); exit 1; }; }
1806
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1807
echo "${ECHO_T}$ac_cv_build" >&6; }
1808
case $ac_cv_build in
1810
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1811
echo "$as_me: error: invalid value of canonical build" >&2;}
1812
{ (exit 1); exit 1; }; };;
1815
ac_save_IFS=$IFS; IFS='-'
1821
# Remember, the first character of IFS is used to create $*,
1822
# except with old shells:
1825
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1828
{ echo "$as_me:$LINENO: checking host system type" >&5
1829
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1830
if test "${ac_cv_host+set}" = set; then
1831
echo $ECHO_N "(cached) $ECHO_C" >&6
1833
if test "x$host_alias" = x; then
1834
ac_cv_host=$ac_cv_build
1836
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1837
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1838
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1839
{ (exit 1); exit 1; }; }
1843
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1844
echo "${ECHO_T}$ac_cv_host" >&6; }
1847
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1848
echo "$as_me: error: invalid value of canonical host" >&2;}
1849
{ (exit 1); exit 1; }; };;
1852
ac_save_IFS=$IFS; IFS='-'
1858
# Remember, the first character of IFS is used to create $*,
1859
# except with old shells:
1862
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1865
{ echo "$as_me:$LINENO: checking target system type" >&5
1866
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1867
if test "${ac_cv_target+set}" = set; then
1868
echo $ECHO_N "(cached) $ECHO_C" >&6
1870
if test "x$target_alias" = x; then
1871
ac_cv_target=$ac_cv_host
1873
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1874
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1875
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1876
{ (exit 1); exit 1; }; }
1880
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1881
echo "${ECHO_T}$ac_cv_target" >&6; }
1882
case $ac_cv_target in
1884
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1885
echo "$as_me: error: invalid value of canonical target" >&2;}
1886
{ (exit 1); exit 1; }; };;
1888
target=$ac_cv_target
1889
ac_save_IFS=$IFS; IFS='-'
1895
# Remember, the first character of IFS is used to create $*,
1896
# except with old shells:
1899
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1902
# The aliases save the names the user supplied, while $host etc.
1903
# will get canonicalized.
1904
test -n "$target_alias" &&
1905
test "$program_prefix$program_suffix$program_transform_name" = \
1907
program_prefix=${target_alias}-
1909
for ac_prog in gawk mawk nawk awk
1911
# Extract the first word of "$ac_prog", so it can be a program name with args.
1912
set dummy $ac_prog; ac_word=$2
1913
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1914
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1915
if test "${ac_cv_prog_AWK+set}" = set; then
1916
echo $ECHO_N "(cached) $ECHO_C" >&6
1918
if test -n "$AWK"; then
1919
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925
test -z "$as_dir" && as_dir=.
1926
for ac_exec_ext in '' $ac_executable_extensions; do
1927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1928
ac_cv_prog_AWK="$ac_prog"
1929
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939
if test -n "$AWK"; then
1940
{ echo "$as_me:$LINENO: result: $AWK" >&5
1941
echo "${ECHO_T}$AWK" >&6; }
1943
{ echo "$as_me:$LINENO: result: no" >&5
1944
echo "${ECHO_T}no" >&6; }
1948
test -n "$AWK" && break
1951
# Find a good install program. We prefer a C program (faster),
1952
# so one script is as good as another. But avoid the broken or
1953
# incompatible versions:
1954
# SysV /etc/install, /usr/sbin/install
1955
# SunOS /usr/etc/install
1956
# IRIX /sbin/install
1958
# AmigaOS /C/install, which installs bootblocks on floppy discs
1959
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1960
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1961
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1962
# OS/2's system install, which has a completely different semantic
1963
# ./install, which can be erroneously created by make from ./install.sh.
1964
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1965
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1966
if test -z "$INSTALL"; then
1967
if test "${ac_cv_path_install+set}" = set; then
1968
echo $ECHO_N "(cached) $ECHO_C" >&6
1970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1974
test -z "$as_dir" && as_dir=.
1975
# Account for people who put trailing slashes in PATH elements.
1977
./ | .// | /cC/* | \
1978
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1979
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1982
# OSF1 and SCO ODT 3.0 have their own names for install.
1983
# Don't use installbsd from OSF since it installs stuff as root
1985
for ac_prog in ginstall scoinst install; do
1986
for ac_exec_ext in '' $ac_executable_extensions; do
1987
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1988
if test $ac_prog = install &&
1989
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1990
# AIX install. It has an incompatible calling convention.
1992
elif test $ac_prog = install &&
1993
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1994
# program-specific install script used by HP pwplus--don't use.
1997
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2010
if test "${ac_cv_path_install+set}" = set; then
2011
INSTALL=$ac_cv_path_install
2013
# As a last resort, use the slow shell script. Don't cache a
2014
# value for INSTALL within a source directory, because that will
2015
# break other packages using the cache if that directory is
2016
# removed, or if the value is a relative name.
2017
INSTALL=$ac_install_sh
2020
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2021
echo "${ECHO_T}$INSTALL" >&6; }
2023
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2024
# It thinks the first close brace ends the variable substitution.
2025
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2027
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2029
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2031
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
2032
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
2034
if test "$LN_S" = "ln -s"; then
2035
{ echo "$as_me:$LINENO: result: yes" >&5
2036
echo "${ECHO_T}yes" >&6; }
2038
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2039
echo "${ECHO_T}no, using $LN_S" >&6; }
2042
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2043
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2044
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2045
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2046
echo $ECHO_N "(cached) $ECHO_C" >&6
2048
cat >conftest.make <<\_ACEOF
2051
@echo '@@@%%%=$(MAKE)=@@@%%%'
2053
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2054
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2056
eval ac_cv_prog_make_${ac_make}_set=yes;;
2058
eval ac_cv_prog_make_${ac_make}_set=no;;
2062
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2063
{ echo "$as_me:$LINENO: result: yes" >&5
2064
echo "${ECHO_T}yes" >&6; }
2067
{ echo "$as_me:$LINENO: result: no" >&5
2068
echo "${ECHO_T}no" >&6; }
2069
SET_MAKE="MAKE=${MAKE-make}"
2072
if test -n "$ac_tool_prefix"; then
2073
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2074
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2075
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2076
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2077
if test "${ac_cv_prog_RANLIB+set}" = set; then
2078
echo $ECHO_N "(cached) $ECHO_C" >&6
2080
if test -n "$RANLIB"; then
2081
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2087
test -z "$as_dir" && as_dir=.
2088
for ac_exec_ext in '' $ac_executable_extensions; do
2089
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2091
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100
RANLIB=$ac_cv_prog_RANLIB
2101
if test -n "$RANLIB"; then
2102
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
2103
echo "${ECHO_T}$RANLIB" >&6; }
2105
{ echo "$as_me:$LINENO: result: no" >&5
2106
echo "${ECHO_T}no" >&6; }
2111
if test -z "$ac_cv_prog_RANLIB"; then
2112
ac_ct_RANLIB=$RANLIB
2113
# Extract the first word of "ranlib", so it can be a program name with args.
2114
set dummy ranlib; ac_word=$2
2115
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2117
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2118
echo $ECHO_N "(cached) $ECHO_C" >&6
2120
if test -n "$ac_ct_RANLIB"; then
2121
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127
test -z "$as_dir" && as_dir=.
2128
for ac_exec_ext in '' $ac_executable_extensions; do
2129
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130
ac_cv_prog_ac_ct_RANLIB="ranlib"
2131
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2141
if test -n "$ac_ct_RANLIB"; then
2142
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2143
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2145
{ echo "$as_me:$LINENO: result: no" >&5
2146
echo "${ECHO_T}no" >&6; }
2149
if test "x$ac_ct_RANLIB" = x; then
2152
case $cross_compiling:$ac_tool_warned in
2154
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2155
whose name does not start with the host triplet. If you think this
2156
configuration is useful to you, please write to autoconf@gnu.org." >&5
2157
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2158
whose name does not start with the host triplet. If you think this
2159
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2160
ac_tool_warned=yes ;;
2162
RANLIB=$ac_ct_RANLIB
2165
RANLIB="$ac_cv_prog_RANLIB"
2171
# Check whether --enable-klibc was given.
2172
if test "${enable_klibc+set}" = set; then
2173
enableval=$enable_klibc; KLIBC=$enableval
2179
if test "X$KLIBC" = Xyes; then
2180
# Basic cross compiling support. I do not think it is wise to use
2181
# AC_CHECK_TOOL, because if we are cross compiling, we do not want
2182
# just 'klcc' to be returned ...
2183
if test "X$cross_compiling" = Xyes; then
2184
for ac_prog in ${host_alias}-klcc
2186
# Extract the first word of "$ac_prog", so it can be a program name with args.
2187
set dummy $ac_prog; ac_word=$2
2188
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190
if test "${ac_cv_prog_KLCC+set}" = set; then
2191
echo $ECHO_N "(cached) $ECHO_C" >&6
2193
if test -n "$KLCC"; then
2194
ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
2196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200
test -z "$as_dir" && as_dir=.
2201
for ac_exec_ext in '' $ac_executable_extensions; do
2202
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203
ac_cv_prog_KLCC="$ac_prog"
2204
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213
KLCC=$ac_cv_prog_KLCC
2214
if test -n "$KLCC"; then
2215
{ echo "$as_me:$LINENO: result: $KLCC" >&5
2216
echo "${ECHO_T}$KLCC" >&6; }
2218
{ echo "$as_me:$LINENO: result: no" >&5
2219
echo "${ECHO_T}no" >&6; }
2223
test -n "$KLCC" && break
2225
test -n "$KLCC" || KLCC="no"
2230
# Extract the first word of "$ac_prog", so it can be a program name with args.
2231
set dummy $ac_prog; ac_word=$2
2232
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2233
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234
if test "${ac_cv_prog_KLCC+set}" = set; then
2235
echo $ECHO_N "(cached) $ECHO_C" >&6
2237
if test -n "$KLCC"; then
2238
ac_cv_prog_KLCC="$KLCC" # Let the user override the test.
2240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244
test -z "$as_dir" && as_dir=.
2245
for ac_exec_ext in '' $ac_executable_extensions; do
2246
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247
ac_cv_prog_KLCC="$ac_prog"
2248
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257
KLCC=$ac_cv_prog_KLCC
2258
if test -n "$KLCC"; then
2259
{ echo "$as_me:$LINENO: result: $KLCC" >&5
2260
echo "${ECHO_T}$KLCC" >&6; }
2262
{ echo "$as_me:$LINENO: result: no" >&5
2263
echo "${ECHO_T}no" >&6; }
2267
test -n "$KLCC" && break
2269
test -n "$KLCC" || KLCC="no"
2272
if test "X$KLCC" = Xno; then
2273
{ { echo "$as_me:$LINENO: error: cannot find klibc frontend 'klcc'!" >&5
2274
echo "$as_me: error: cannot find klibc frontend 'klcc'!" >&2;}
2275
{ (exit 1); exit 1; }; }
2280
KLIBC_KCROSS="$($KLCC -print-klibc-kcross 2>/dev/null)"
2281
KLIBC_PREFIX="$($KLCC -print-klibc-prefix 2>/dev/null)"
2282
KLIBC_BIN_DIR="$($KLCC -print-klibc-bindir 2>/dev/null)"
2283
KLIBC_SBIN_DIR="${KLIBC_PREFIX}/${KLIBC_KCROSS}sbin"
2284
KLIBC_LIB_DIR="$($KLCC -print-klibc-libdir 2>/dev/null)"
2285
KLIBC_INCLUDE_DIR="$($KLCC -print-klibc-includedir 2>/dev/null)"
2287
# At least KLIBC_LIB_DIR should be valid, else klibc is too old or
2288
# something went wrong
2289
if test ! -d "$KLIBC_LIB_DIR"; then
2290
{ { echo "$as_me:$LINENO: error: your klibc installation is too old or not functional!" >&5
2291
echo "$as_me: error: your klibc installation is too old or not functional!" >&2;}
2292
{ (exit 1); exit 1; }; }
2305
ac_cpp='$CPP $CPPFLAGS'
2306
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2307
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2308
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
if test -n "$ac_tool_prefix"; then
2310
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2311
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2312
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314
if test "${ac_cv_prog_CC+set}" = set; then
2315
echo $ECHO_N "(cached) $ECHO_C" >&6
2317
if test -n "$CC"; then
2318
ac_cv_prog_CC="$CC" # Let the user override the test.
2320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
test -z "$as_dir" && as_dir=.
2325
for ac_exec_ext in '' $ac_executable_extensions; do
2326
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2328
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338
if test -n "$CC"; then
2339
{ echo "$as_me:$LINENO: result: $CC" >&5
2340
echo "${ECHO_T}$CC" >&6; }
2342
{ echo "$as_me:$LINENO: result: no" >&5
2343
echo "${ECHO_T}no" >&6; }
2348
if test -z "$ac_cv_prog_CC"; then
2350
# Extract the first word of "gcc", so it can be a program name with args.
2351
set dummy gcc; ac_word=$2
2352
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2355
echo $ECHO_N "(cached) $ECHO_C" >&6
2357
if test -n "$ac_ct_CC"; then
2358
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364
test -z "$as_dir" && as_dir=.
2365
for ac_exec_ext in '' $ac_executable_extensions; do
2366
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367
ac_cv_prog_ac_ct_CC="gcc"
2368
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378
if test -n "$ac_ct_CC"; then
2379
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2380
echo "${ECHO_T}$ac_ct_CC" >&6; }
2382
{ echo "$as_me:$LINENO: result: no" >&5
2383
echo "${ECHO_T}no" >&6; }
2386
if test "x$ac_ct_CC" = x; then
2389
case $cross_compiling:$ac_tool_warned in
2391
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2392
whose name does not start with the host triplet. If you think this
2393
configuration is useful to you, please write to autoconf@gnu.org." >&5
2394
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2395
whose name does not start with the host triplet. If you think this
2396
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2397
ac_tool_warned=yes ;;
2405
if test -z "$CC"; then
2406
if test -n "$ac_tool_prefix"; then
2407
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2408
set dummy ${ac_tool_prefix}cc; ac_word=$2
2409
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2410
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2411
if test "${ac_cv_prog_CC+set}" = set; then
2412
echo $ECHO_N "(cached) $ECHO_C" >&6
2414
if test -n "$CC"; then
2415
ac_cv_prog_CC="$CC" # Let the user override the test.
2417
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421
test -z "$as_dir" && as_dir=.
2422
for ac_exec_ext in '' $ac_executable_extensions; do
2423
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2424
ac_cv_prog_CC="${ac_tool_prefix}cc"
2425
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435
if test -n "$CC"; then
2436
{ echo "$as_me:$LINENO: result: $CC" >&5
2437
echo "${ECHO_T}$CC" >&6; }
2439
{ echo "$as_me:$LINENO: result: no" >&5
2440
echo "${ECHO_T}no" >&6; }
2446
if test -z "$CC"; then
2447
# Extract the first word of "cc", so it can be a program name with args.
2448
set dummy cc; ac_word=$2
2449
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2450
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2451
if test "${ac_cv_prog_CC+set}" = set; then
2452
echo $ECHO_N "(cached) $ECHO_C" >&6
2454
if test -n "$CC"; then
2455
ac_cv_prog_CC="$CC" # Let the user override the test.
2458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2462
test -z "$as_dir" && as_dir=.
2463
for ac_exec_ext in '' $ac_executable_extensions; do
2464
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2465
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2466
ac_prog_rejected=yes
2470
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477
if test $ac_prog_rejected = yes; then
2478
# We found a bogon in the path, so make sure we never use it.
2479
set dummy $ac_cv_prog_CC
2481
if test $# != 0; then
2482
# We chose a different compiler from the bogus one.
2483
# However, it has the same basename, so the bogon will be chosen
2484
# first if we set CC to just the basename; use the full file name.
2486
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2492
if test -n "$CC"; then
2493
{ echo "$as_me:$LINENO: result: $CC" >&5
2494
echo "${ECHO_T}$CC" >&6; }
2496
{ echo "$as_me:$LINENO: result: no" >&5
2497
echo "${ECHO_T}no" >&6; }
2502
if test -z "$CC"; then
2503
if test -n "$ac_tool_prefix"; then
2504
for ac_prog in cl.exe
2506
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2507
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2508
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2509
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510
if test "${ac_cv_prog_CC+set}" = set; then
2511
echo $ECHO_N "(cached) $ECHO_C" >&6
2513
if test -n "$CC"; then
2514
ac_cv_prog_CC="$CC" # Let the user override the test.
2516
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520
test -z "$as_dir" && as_dir=.
2521
for ac_exec_ext in '' $ac_executable_extensions; do
2522
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2524
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2534
if test -n "$CC"; then
2535
{ echo "$as_me:$LINENO: result: $CC" >&5
2536
echo "${ECHO_T}$CC" >&6; }
2538
{ echo "$as_me:$LINENO: result: no" >&5
2539
echo "${ECHO_T}no" >&6; }
2543
test -n "$CC" && break
2546
if test -z "$CC"; then
2548
for ac_prog in cl.exe
2550
# Extract the first word of "$ac_prog", so it can be a program name with args.
2551
set dummy $ac_prog; ac_word=$2
2552
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2553
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2555
echo $ECHO_N "(cached) $ECHO_C" >&6
2557
if test -n "$ac_ct_CC"; then
2558
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2560
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564
test -z "$as_dir" && as_dir=.
2565
for ac_exec_ext in '' $ac_executable_extensions; do
2566
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567
ac_cv_prog_ac_ct_CC="$ac_prog"
2568
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2578
if test -n "$ac_ct_CC"; then
2579
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2580
echo "${ECHO_T}$ac_ct_CC" >&6; }
2582
{ echo "$as_me:$LINENO: result: no" >&5
2583
echo "${ECHO_T}no" >&6; }
2587
test -n "$ac_ct_CC" && break
2590
if test "x$ac_ct_CC" = x; then
2593
case $cross_compiling:$ac_tool_warned in
2595
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2596
whose name does not start with the host triplet. If you think this
2597
configuration is useful to you, please write to autoconf@gnu.org." >&5
2598
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2599
whose name does not start with the host triplet. If you think this
2600
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2601
ac_tool_warned=yes ;;
2610
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2611
See \`config.log' for more details." >&5
2612
echo "$as_me: error: no acceptable C compiler found in \$PATH
2613
See \`config.log' for more details." >&2;}
2614
{ (exit 1); exit 1; }; }
2616
# Provide some information about the compiler.
2617
echo "$as_me:$LINENO: checking for C compiler version" >&5
2618
ac_compiler=`set X $ac_compile; echo $2`
2619
{ (ac_try="$ac_compiler --version >&5"
2621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622
*) ac_try_echo=$ac_try;;
2624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625
(eval "$ac_compiler --version >&5") 2>&5
2627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
(exit $ac_status); }
2629
{ (ac_try="$ac_compiler -v >&5"
2631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2632
*) ac_try_echo=$ac_try;;
2634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2635
(eval "$ac_compiler -v >&5") 2>&5
2637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638
(exit $ac_status); }
2639
{ (ac_try="$ac_compiler -V >&5"
2641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642
*) ac_try_echo=$ac_try;;
2644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645
(eval "$ac_compiler -V >&5") 2>&5
2647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648
(exit $ac_status); }
2650
cat >conftest.$ac_ext <<_ACEOF
2653
cat confdefs.h >>conftest.$ac_ext
2654
cat >>conftest.$ac_ext <<_ACEOF
2655
/* end confdefs.h. */
2665
ac_clean_files_save=$ac_clean_files
2666
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2667
# Try to create an executable without -o first, disregard a.out.
2668
# It will help us diagnose broken compilers, and finding out an intuition
2670
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2671
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2672
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2674
# List of possible output files, starting from the most likely.
2675
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2676
# only as a last resort. b.out is created by i960 compilers.
2677
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2679
# The IRIX 6 linker writes into existing files which may not be
2680
# executable, retaining their permissions. Remove them first so a
2681
# subsequent execution test works.
2683
for ac_file in $ac_files
2686
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2687
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2692
if { (ac_try="$ac_link_default"
2694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695
*) ac_try_echo=$ac_try;;
2697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698
(eval "$ac_link_default") 2>&5
2700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701
(exit $ac_status); }; then
2702
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2703
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2704
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2705
# so that the user can short-circuit this test for compilers unknown to
2707
for ac_file in $ac_files ''
2709
test -f "$ac_file" || continue
2711
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2714
# We found the default executable, but exeext='' is most
2718
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2720
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2722
# We set ac_cv_exeext here because the later test for it is not
2723
# safe: cross compilers may not add the suffix if given an `-o'
2724
# argument, so we may need to know it at that point already.
2725
# Even if this section looks crufty: it has the advantage of
2732
test "$ac_cv_exeext" = no && ac_cv_exeext=
2738
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2739
echo "${ECHO_T}$ac_file" >&6; }
2740
if test -z "$ac_file"; then
2741
echo "$as_me: failed program was:" >&5
2742
sed 's/^/| /' conftest.$ac_ext >&5
2744
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2745
See \`config.log' for more details." >&5
2746
echo "$as_me: error: C compiler cannot create executables
2747
See \`config.log' for more details." >&2;}
2748
{ (exit 77); exit 77; }; }
2751
ac_exeext=$ac_cv_exeext
2753
# Check that the compiler produces executables we can run. If not, either
2754
# the compiler is broken, or we cross compile.
2755
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2756
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2757
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2758
# If not cross compiling, check that we can run a simple program.
2759
if test "$cross_compiling" != yes; then
2760
if { ac_try='./$ac_file'
2761
{ (case "(($ac_try" in
2762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763
*) ac_try_echo=$ac_try;;
2765
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766
(eval "$ac_try") 2>&5
2768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769
(exit $ac_status); }; }; then
2772
if test "$cross_compiling" = maybe; then
2775
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2776
If you meant to cross compile, use \`--host'.
2777
See \`config.log' for more details." >&5
2778
echo "$as_me: error: cannot run C compiled programs.
2779
If you meant to cross compile, use \`--host'.
2780
See \`config.log' for more details." >&2;}
2781
{ (exit 1); exit 1; }; }
2785
{ echo "$as_me:$LINENO: result: yes" >&5
2786
echo "${ECHO_T}yes" >&6; }
2788
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2789
ac_clean_files=$ac_clean_files_save
2790
# Check that the compiler produces executables we can run. If not, either
2791
# the compiler is broken, or we cross compile.
2792
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2793
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2794
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2795
echo "${ECHO_T}$cross_compiling" >&6; }
2797
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2798
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2799
if { (ac_try="$ac_link"
2801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802
*) ac_try_echo=$ac_try;;
2804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2805
(eval "$ac_link") 2>&5
2807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808
(exit $ac_status); }; then
2809
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2810
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2811
# work properly (i.e., refer to `conftest.exe'), while it won't with
2813
for ac_file in conftest.exe conftest conftest.*; do
2814
test -f "$ac_file" || continue
2816
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2817
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2823
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2824
See \`config.log' for more details." >&5
2825
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2826
See \`config.log' for more details." >&2;}
2827
{ (exit 1); exit 1; }; }
2830
rm -f conftest$ac_cv_exeext
2831
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2832
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2834
rm -f conftest.$ac_ext
2835
EXEEXT=$ac_cv_exeext
2837
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2838
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2839
if test "${ac_cv_objext+set}" = set; then
2840
echo $ECHO_N "(cached) $ECHO_C" >&6
2842
cat >conftest.$ac_ext <<_ACEOF
2845
cat confdefs.h >>conftest.$ac_ext
2846
cat >>conftest.$ac_ext <<_ACEOF
2847
/* end confdefs.h. */
2857
rm -f conftest.o conftest.obj
2858
if { (ac_try="$ac_compile"
2860
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861
*) ac_try_echo=$ac_try;;
2863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864
(eval "$ac_compile") 2>&5
2866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867
(exit $ac_status); }; then
2868
for ac_file in conftest.o conftest.obj conftest.*; do
2869
test -f "$ac_file" || continue;
2871
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2872
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2877
echo "$as_me: failed program was:" >&5
2878
sed 's/^/| /' conftest.$ac_ext >&5
2880
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2881
See \`config.log' for more details." >&5
2882
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2883
See \`config.log' for more details." >&2;}
2884
{ (exit 1); exit 1; }; }
2887
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2889
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2890
echo "${ECHO_T}$ac_cv_objext" >&6; }
2891
OBJEXT=$ac_cv_objext
2893
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2894
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2895
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2896
echo $ECHO_N "(cached) $ECHO_C" >&6
2898
cat >conftest.$ac_ext <<_ACEOF
2901
cat confdefs.h >>conftest.$ac_ext
2902
cat >>conftest.$ac_ext <<_ACEOF
2903
/* end confdefs.h. */
2916
rm -f conftest.$ac_objext
2917
if { (ac_try="$ac_compile"
2919
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920
*) ac_try_echo=$ac_try;;
2922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923
(eval "$ac_compile") 2>conftest.er1
2925
grep -v '^ *+' conftest.er1 >conftest.err
2927
cat conftest.err >&5
2928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929
(exit $ac_status); } && {
2930
test -z "$ac_c_werror_flag" ||
2931
test ! -s conftest.err
2932
} && test -s conftest.$ac_objext; then
2935
echo "$as_me: failed program was:" >&5
2936
sed 's/^/| /' conftest.$ac_ext >&5
2941
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2945
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2946
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2947
GCC=`test $ac_compiler_gnu = yes && echo yes`
2948
ac_test_CFLAGS=${CFLAGS+set}
2949
ac_save_CFLAGS=$CFLAGS
2950
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2951
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2952
if test "${ac_cv_prog_cc_g+set}" = set; then
2953
echo $ECHO_N "(cached) $ECHO_C" >&6
2955
ac_save_c_werror_flag=$ac_c_werror_flag
2956
ac_c_werror_flag=yes
2959
cat >conftest.$ac_ext <<_ACEOF
2962
cat confdefs.h >>conftest.$ac_ext
2963
cat >>conftest.$ac_ext <<_ACEOF
2964
/* end confdefs.h. */
2974
rm -f conftest.$ac_objext
2975
if { (ac_try="$ac_compile"
2977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
*) ac_try_echo=$ac_try;;
2980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
(eval "$ac_compile") 2>conftest.er1
2983
grep -v '^ *+' conftest.er1 >conftest.err
2985
cat conftest.err >&5
2986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987
(exit $ac_status); } && {
2988
test -z "$ac_c_werror_flag" ||
2989
test ! -s conftest.err
2990
} && test -s conftest.$ac_objext; then
2993
echo "$as_me: failed program was:" >&5
2994
sed 's/^/| /' conftest.$ac_ext >&5
2997
cat >conftest.$ac_ext <<_ACEOF
3000
cat confdefs.h >>conftest.$ac_ext
3001
cat >>conftest.$ac_ext <<_ACEOF
3002
/* end confdefs.h. */
3012
rm -f conftest.$ac_objext
3013
if { (ac_try="$ac_compile"
3015
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016
*) ac_try_echo=$ac_try;;
3018
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019
(eval "$ac_compile") 2>conftest.er1
3021
grep -v '^ *+' conftest.er1 >conftest.err
3023
cat conftest.err >&5
3024
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025
(exit $ac_status); } && {
3026
test -z "$ac_c_werror_flag" ||
3027
test ! -s conftest.err
3028
} && test -s conftest.$ac_objext; then
3031
echo "$as_me: failed program was:" >&5
3032
sed 's/^/| /' conftest.$ac_ext >&5
3034
ac_c_werror_flag=$ac_save_c_werror_flag
3036
cat >conftest.$ac_ext <<_ACEOF
3039
cat confdefs.h >>conftest.$ac_ext
3040
cat >>conftest.$ac_ext <<_ACEOF
3041
/* end confdefs.h. */
3051
rm -f conftest.$ac_objext
3052
if { (ac_try="$ac_compile"
3054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055
*) ac_try_echo=$ac_try;;
3057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058
(eval "$ac_compile") 2>conftest.er1
3060
grep -v '^ *+' conftest.er1 >conftest.err
3062
cat conftest.err >&5
3063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064
(exit $ac_status); } && {
3065
test -z "$ac_c_werror_flag" ||
3066
test ! -s conftest.err
3067
} && test -s conftest.$ac_objext; then
3070
echo "$as_me: failed program was:" >&5
3071
sed 's/^/| /' conftest.$ac_ext >&5
3076
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3083
ac_c_werror_flag=$ac_save_c_werror_flag
3085
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3086
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3087
if test "$ac_test_CFLAGS" = set; then
3088
CFLAGS=$ac_save_CFLAGS
3089
elif test $ac_cv_prog_cc_g = yes; then
3090
if test "$GCC" = yes; then
3096
if test "$GCC" = yes; then
3102
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3103
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3104
if test "${ac_cv_prog_cc_c89+set}" = set; then
3105
echo $ECHO_N "(cached) $ECHO_C" >&6
3107
ac_cv_prog_cc_c89=no
3109
cat >conftest.$ac_ext <<_ACEOF
3112
cat confdefs.h >>conftest.$ac_ext
3113
cat >>conftest.$ac_ext <<_ACEOF
3114
/* end confdefs.h. */
3117
#include <sys/types.h>
3118
#include <sys/stat.h>
3119
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3120
struct buf { int x; };
3121
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3122
static char *e (p, i)
3128
static char *f (char * (*g) (char **, int), char **p, ...)
3133
s = g (p, va_arg (v,int));
3138
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3139
function prototypes and stuff, but not '\xHH' hex character constants.
3140
These don't provoke an error unfortunately, instead are silently treated
3141
as 'x'. The following induces an error, until -std is added to get
3142
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3143
array size at least. It's necessary to write '\x00'==0 to get something
3144
that's true only with -std. */
3145
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3147
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3148
inside strings and character constants. */
3150
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3152
int test (int i, double x);
3153
struct s1 {int (*f) (int a);};
3154
struct s2 {int (*f) (double a);};
3155
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3161
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3166
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3167
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3169
CC="$ac_save_CC $ac_arg"
3170
rm -f conftest.$ac_objext
3171
if { (ac_try="$ac_compile"
3173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174
*) ac_try_echo=$ac_try;;
3176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177
(eval "$ac_compile") 2>conftest.er1
3179
grep -v '^ *+' conftest.er1 >conftest.err
3181
cat conftest.err >&5
3182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3183
(exit $ac_status); } && {
3184
test -z "$ac_c_werror_flag" ||
3185
test ! -s conftest.err
3186
} && test -s conftest.$ac_objext; then
3187
ac_cv_prog_cc_c89=$ac_arg
3189
echo "$as_me: failed program was:" >&5
3190
sed 's/^/| /' conftest.$ac_ext >&5
3195
rm -f core conftest.err conftest.$ac_objext
3196
test "x$ac_cv_prog_cc_c89" != "xno" && break
3198
rm -f conftest.$ac_ext
3203
case "x$ac_cv_prog_cc_c89" in
3205
{ echo "$as_me:$LINENO: result: none needed" >&5
3206
echo "${ECHO_T}none needed" >&6; } ;;
3208
{ echo "$as_me:$LINENO: result: unsupported" >&5
3209
echo "${ECHO_T}unsupported" >&6; } ;;
3211
CC="$CC $ac_cv_prog_cc_c89"
3212
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3213
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3218
ac_cpp='$CPP $CPPFLAGS'
3219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3232
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3233
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3234
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
3235
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3236
echo $ECHO_N "(cached) $ECHO_C" >&6
3238
cat >conftest.$ac_ext <<_ACEOF
3241
cat confdefs.h >>conftest.$ac_ext
3242
cat >>conftest.$ac_ext <<_ACEOF
3243
/* end confdefs.h. */
3244
#include <sys/types.h>
3256
rm -f conftest.$ac_objext
3257
if { (ac_try="$ac_compile"
3259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260
*) ac_try_echo=$ac_try;;
3262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263
(eval "$ac_compile") 2>conftest.er1
3265
grep -v '^ *+' conftest.er1 >conftest.err
3267
cat conftest.err >&5
3268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269
(exit $ac_status); } && {
3270
test -z "$ac_c_werror_flag" ||
3271
test ! -s conftest.err
3272
} && test -s conftest.$ac_objext; then
3273
eval "$as_ac_Header=yes"
3275
echo "$as_me: failed program was:" >&5
3276
sed 's/^/| /' conftest.$ac_ext >&5
3278
eval "$as_ac_Header=no"
3281
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283
ac_res=`eval echo '${'$as_ac_Header'}'`
3284
{ echo "$as_me:$LINENO: result: $ac_res" >&5
3285
echo "${ECHO_T}$ac_res" >&6; }
3286
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287
cat >>confdefs.h <<_ACEOF
3288
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3291
ac_header_dirent=$ac_hdr; break
3295
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3296
if test $ac_header_dirent = dirent.h; then
3297
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
3298
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3299
if test "${ac_cv_search_opendir+set}" = set; then
3300
echo $ECHO_N "(cached) $ECHO_C" >&6
3302
ac_func_search_save_LIBS=$LIBS
3303
cat >conftest.$ac_ext <<_ACEOF
3306
cat confdefs.h >>conftest.$ac_ext
3307
cat >>conftest.$ac_ext <<_ACEOF
3308
/* end confdefs.h. */
3310
/* Override any GCC internal prototype to avoid an error.
3311
Use char because int might match the return type of a GCC
3312
builtin and then its argument prototype would still apply. */
3325
for ac_lib in '' dir; do
3326
if test -z "$ac_lib"; then
3327
ac_res="none required"
3330
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3332
rm -f conftest.$ac_objext conftest$ac_exeext
3333
if { (ac_try="$ac_link"
3335
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336
*) ac_try_echo=$ac_try;;
3338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339
(eval "$ac_link") 2>conftest.er1
3341
grep -v '^ *+' conftest.er1 >conftest.err
3343
cat conftest.err >&5
3344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345
(exit $ac_status); } && {
3346
test -z "$ac_c_werror_flag" ||
3347
test ! -s conftest.err
3348
} && test -s conftest$ac_exeext &&
3349
$as_test_x conftest$ac_exeext; then
3350
ac_cv_search_opendir=$ac_res
3352
echo "$as_me: failed program was:" >&5
3353
sed 's/^/| /' conftest.$ac_ext >&5
3358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3360
if test "${ac_cv_search_opendir+set}" = set; then
3364
if test "${ac_cv_search_opendir+set}" = set; then
3367
ac_cv_search_opendir=no
3370
LIBS=$ac_func_search_save_LIBS
3372
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3373
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3374
ac_res=$ac_cv_search_opendir
3375
if test "$ac_res" != no; then
3376
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3381
{ echo "$as_me:$LINENO: checking for library containing opendir" >&5
3382
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
3383
if test "${ac_cv_search_opendir+set}" = set; then
3384
echo $ECHO_N "(cached) $ECHO_C" >&6
3386
ac_func_search_save_LIBS=$LIBS
3387
cat >conftest.$ac_ext <<_ACEOF
3390
cat confdefs.h >>conftest.$ac_ext
3391
cat >>conftest.$ac_ext <<_ACEOF
3392
/* end confdefs.h. */
3394
/* Override any GCC internal prototype to avoid an error.
3395
Use char because int might match the return type of a GCC
3396
builtin and then its argument prototype would still apply. */
3409
for ac_lib in '' x; do
3410
if test -z "$ac_lib"; then
3411
ac_res="none required"
3414
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3416
rm -f conftest.$ac_objext conftest$ac_exeext
3417
if { (ac_try="$ac_link"
3419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420
*) ac_try_echo=$ac_try;;
3422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423
(eval "$ac_link") 2>conftest.er1
3425
grep -v '^ *+' conftest.er1 >conftest.err
3427
cat conftest.err >&5
3428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429
(exit $ac_status); } && {
3430
test -z "$ac_c_werror_flag" ||
3431
test ! -s conftest.err
3432
} && test -s conftest$ac_exeext &&
3433
$as_test_x conftest$ac_exeext; then
3434
ac_cv_search_opendir=$ac_res
3436
echo "$as_me: failed program was:" >&5
3437
sed 's/^/| /' conftest.$ac_ext >&5
3442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3444
if test "${ac_cv_search_opendir+set}" = set; then
3448
if test "${ac_cv_search_opendir+set}" = set; then
3451
ac_cv_search_opendir=no
3454
LIBS=$ac_func_search_save_LIBS
3456
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3457
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
3458
ac_res=$ac_cv_search_opendir
3459
if test "$ac_res" != no; then
3460
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3467
ac_cpp='$CPP $CPPFLAGS'
3468
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3469
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3470
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3471
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3472
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3473
# On Suns, sometimes $CPP names a directory.
3474
if test -n "$CPP" && test -d "$CPP"; then
3477
if test -z "$CPP"; then
3478
if test "${ac_cv_prog_CPP+set}" = set; then
3479
echo $ECHO_N "(cached) $ECHO_C" >&6
3481
# Double quotes because CPP needs to be expanded
3482
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3485
for ac_c_preproc_warn_flag in '' yes
3487
# Use a header file that comes with gcc, so configuring glibc
3488
# with a fresh cross-compiler works.
3489
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3490
# <limits.h> exists even on freestanding compilers.
3491
# On the NeXT, cc -E runs the code through the compiler's parser,
3492
# not just through cpp. "Syntax error" is here to catch this case.
3493
cat >conftest.$ac_ext <<_ACEOF
3496
cat confdefs.h >>conftest.$ac_ext
3497
cat >>conftest.$ac_ext <<_ACEOF
3498
/* end confdefs.h. */
3500
# include <limits.h>
3502
# include <assert.h>
3506
if { (ac_try="$ac_cpp conftest.$ac_ext"
3508
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509
*) ac_try_echo=$ac_try;;
3511
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3514
grep -v '^ *+' conftest.er1 >conftest.err
3516
cat conftest.err >&5
3517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518
(exit $ac_status); } >/dev/null && {
3519
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520
test ! -s conftest.err
3524
echo "$as_me: failed program was:" >&5
3525
sed 's/^/| /' conftest.$ac_ext >&5
3527
# Broken: fails on valid input.
3531
rm -f conftest.err conftest.$ac_ext
3533
# OK, works on sane cases. Now check whether nonexistent headers
3534
# can be detected and how.
3535
cat >conftest.$ac_ext <<_ACEOF
3538
cat confdefs.h >>conftest.$ac_ext
3539
cat >>conftest.$ac_ext <<_ACEOF
3540
/* end confdefs.h. */
3541
#include <ac_nonexistent.h>
3543
if { (ac_try="$ac_cpp conftest.$ac_ext"
3545
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546
*) ac_try_echo=$ac_try;;
3548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3551
grep -v '^ *+' conftest.er1 >conftest.err
3553
cat conftest.err >&5
3554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555
(exit $ac_status); } >/dev/null && {
3556
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557
test ! -s conftest.err
3559
# Broken: success on invalid input.
3562
echo "$as_me: failed program was:" >&5
3563
sed 's/^/| /' conftest.$ac_ext >&5
3565
# Passes both tests.
3570
rm -f conftest.err conftest.$ac_ext
3573
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574
rm -f conftest.err conftest.$ac_ext
3575
if $ac_preproc_ok; then
3587
{ echo "$as_me:$LINENO: result: $CPP" >&5
3588
echo "${ECHO_T}$CPP" >&6; }
3590
for ac_c_preproc_warn_flag in '' yes
3592
# Use a header file that comes with gcc, so configuring glibc
3593
# with a fresh cross-compiler works.
3594
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595
# <limits.h> exists even on freestanding compilers.
3596
# On the NeXT, cc -E runs the code through the compiler's parser,
3597
# not just through cpp. "Syntax error" is here to catch this case.
3598
cat >conftest.$ac_ext <<_ACEOF
3601
cat confdefs.h >>conftest.$ac_ext
3602
cat >>conftest.$ac_ext <<_ACEOF
3603
/* end confdefs.h. */
3605
# include <limits.h>
3607
# include <assert.h>
3611
if { (ac_try="$ac_cpp conftest.$ac_ext"
3613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614
*) ac_try_echo=$ac_try;;
3616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3619
grep -v '^ *+' conftest.er1 >conftest.err
3621
cat conftest.err >&5
3622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623
(exit $ac_status); } >/dev/null && {
3624
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3625
test ! -s conftest.err
3629
echo "$as_me: failed program was:" >&5
3630
sed 's/^/| /' conftest.$ac_ext >&5
3632
# Broken: fails on valid input.
3636
rm -f conftest.err conftest.$ac_ext
3638
# OK, works on sane cases. Now check whether nonexistent headers
3639
# can be detected and how.
3640
cat >conftest.$ac_ext <<_ACEOF
3643
cat confdefs.h >>conftest.$ac_ext
3644
cat >>conftest.$ac_ext <<_ACEOF
3645
/* end confdefs.h. */
3646
#include <ac_nonexistent.h>
3648
if { (ac_try="$ac_cpp conftest.$ac_ext"
3650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651
*) ac_try_echo=$ac_try;;
3653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3656
grep -v '^ *+' conftest.er1 >conftest.err
3658
cat conftest.err >&5
3659
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660
(exit $ac_status); } >/dev/null && {
3661
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3662
test ! -s conftest.err
3664
# Broken: success on invalid input.
3667
echo "$as_me: failed program was:" >&5
3668
sed 's/^/| /' conftest.$ac_ext >&5
3670
# Passes both tests.
3675
rm -f conftest.err conftest.$ac_ext
3678
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3679
rm -f conftest.err conftest.$ac_ext
3680
if $ac_preproc_ok; then
3683
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3684
See \`config.log' for more details." >&5
3685
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3686
See \`config.log' for more details." >&2;}
3687
{ (exit 1); exit 1; }; }
3691
ac_cpp='$CPP $CPPFLAGS'
3692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3697
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3698
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3699
if test "${ac_cv_path_GREP+set}" = set; then
3700
echo $ECHO_N "(cached) $ECHO_C" >&6
3702
# Extract the first word of "grep ggrep" to use in msg output
3703
if test -z "$GREP"; then
3704
set dummy grep ggrep; ac_prog_name=$2
3705
if test "${ac_cv_path_GREP+set}" = set; then
3706
echo $ECHO_N "(cached) $ECHO_C" >&6
3708
ac_path_GREP_found=false
3709
# Loop through the user's path and test for each of PROGNAME-LIST
3710
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3714
test -z "$as_dir" && as_dir=.
3715
for ac_prog in grep ggrep; do
3716
for ac_exec_ext in '' $ac_executable_extensions; do
3717
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3718
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3719
# Check for GNU ac_path_GREP and select it if it is found.
3720
# Check for GNU $ac_path_GREP
3721
case `"$ac_path_GREP" --version 2>&1` in
3723
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3726
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3729
cat "conftest.in" "conftest.in" >"conftest.tmp"
3730
mv "conftest.tmp" "conftest.in"
3731
cp "conftest.in" "conftest.nl"
3732
echo 'GREP' >> "conftest.nl"
3733
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735
ac_count=`expr $ac_count + 1`
3736
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3737
# Best one so far, save it but keep looking for a better one
3738
ac_cv_path_GREP="$ac_path_GREP"
3739
ac_path_GREP_max=$ac_count
3741
# 10*(2^10) chars as input seems more than enough
3742
test $ac_count -gt 10 && break
3744
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3748
$ac_path_GREP_found && break 3
3758
GREP="$ac_cv_path_GREP"
3759
if test -z "$GREP"; then
3760
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3761
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3762
{ (exit 1); exit 1; }; }
3766
ac_cv_path_GREP=$GREP
3771
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3772
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3773
GREP="$ac_cv_path_GREP"
3776
{ echo "$as_me:$LINENO: checking for egrep" >&5
3777
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3778
if test "${ac_cv_path_EGREP+set}" = set; then
3779
echo $ECHO_N "(cached) $ECHO_C" >&6
3781
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3782
then ac_cv_path_EGREP="$GREP -E"
3784
# Extract the first word of "egrep" to use in msg output
3785
if test -z "$EGREP"; then
3786
set dummy egrep; ac_prog_name=$2
3787
if test "${ac_cv_path_EGREP+set}" = set; then
3788
echo $ECHO_N "(cached) $ECHO_C" >&6
3790
ac_path_EGREP_found=false
3791
# Loop through the user's path and test for each of PROGNAME-LIST
3792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3796
test -z "$as_dir" && as_dir=.
3797
for ac_prog in egrep; do
3798
for ac_exec_ext in '' $ac_executable_extensions; do
3799
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3800
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3801
# Check for GNU ac_path_EGREP and select it if it is found.
3802
# Check for GNU $ac_path_EGREP
3803
case `"$ac_path_EGREP" --version 2>&1` in
3805
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3811
cat "conftest.in" "conftest.in" >"conftest.tmp"
3812
mv "conftest.tmp" "conftest.in"
3813
cp "conftest.in" "conftest.nl"
3814
echo 'EGREP' >> "conftest.nl"
3815
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3816
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3817
ac_count=`expr $ac_count + 1`
3818
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3819
# Best one so far, save it but keep looking for a better one
3820
ac_cv_path_EGREP="$ac_path_EGREP"
3821
ac_path_EGREP_max=$ac_count
3823
# 10*(2^10) chars as input seems more than enough
3824
test $ac_count -gt 10 && break
3826
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830
$ac_path_EGREP_found && break 3
3840
EGREP="$ac_cv_path_EGREP"
3841
if test -z "$EGREP"; then
3842
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3843
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3844
{ (exit 1); exit 1; }; }
3848
ac_cv_path_EGREP=$EGREP
3854
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3855
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3856
EGREP="$ac_cv_path_EGREP"
3859
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3860
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3861
if test "${ac_cv_header_stdc+set}" = set; then
3862
echo $ECHO_N "(cached) $ECHO_C" >&6
3864
cat >conftest.$ac_ext <<_ACEOF
3867
cat confdefs.h >>conftest.$ac_ext
3868
cat >>conftest.$ac_ext <<_ACEOF
3869
/* end confdefs.h. */
3883
rm -f conftest.$ac_objext
3884
if { (ac_try="$ac_compile"
3886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3887
*) ac_try_echo=$ac_try;;
3889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3890
(eval "$ac_compile") 2>conftest.er1
3892
grep -v '^ *+' conftest.er1 >conftest.err
3894
cat conftest.err >&5
3895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896
(exit $ac_status); } && {
3897
test -z "$ac_c_werror_flag" ||
3898
test ! -s conftest.err
3899
} && test -s conftest.$ac_objext; then
3900
ac_cv_header_stdc=yes
3902
echo "$as_me: failed program was:" >&5
3903
sed 's/^/| /' conftest.$ac_ext >&5
3905
ac_cv_header_stdc=no
3908
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910
if test $ac_cv_header_stdc = yes; then
3911
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3912
cat >conftest.$ac_ext <<_ACEOF
3915
cat confdefs.h >>conftest.$ac_ext
3916
cat >>conftest.$ac_ext <<_ACEOF
3917
/* end confdefs.h. */
3921
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3922
$EGREP "memchr" >/dev/null 2>&1; then
3925
ac_cv_header_stdc=no
3931
if test $ac_cv_header_stdc = yes; then
3932
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3933
cat >conftest.$ac_ext <<_ACEOF
3936
cat confdefs.h >>conftest.$ac_ext
3937
cat >>conftest.$ac_ext <<_ACEOF
3938
/* end confdefs.h. */
3942
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943
$EGREP "free" >/dev/null 2>&1; then
3946
ac_cv_header_stdc=no
3952
if test $ac_cv_header_stdc = yes; then
3953
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3954
if test "$cross_compiling" = yes; then
3957
cat >conftest.$ac_ext <<_ACEOF
3960
cat confdefs.h >>conftest.$ac_ext
3961
cat >>conftest.$ac_ext <<_ACEOF
3962
/* end confdefs.h. */
3965
#if ((' ' & 0x0FF) == 0x020)
3966
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3967
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3969
# define ISLOWER(c) \
3970
(('a' <= (c) && (c) <= 'i') \
3971
|| ('j' <= (c) && (c) <= 'r') \
3972
|| ('s' <= (c) && (c) <= 'z'))
3973
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3976
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3981
for (i = 0; i < 256; i++)
3982
if (XOR (islower (i), ISLOWER (i))
3983
|| toupper (i) != TOUPPER (i))
3988
rm -f conftest$ac_exeext
3989
if { (ac_try="$ac_link"
3991
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992
*) ac_try_echo=$ac_try;;
3994
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3995
(eval "$ac_link") 2>&5
3997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3999
{ (case "(($ac_try" in
4000
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001
*) ac_try_echo=$ac_try;;
4003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004
(eval "$ac_try") 2>&5
4006
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007
(exit $ac_status); }; }; then
4010
echo "$as_me: program exited with status $ac_status" >&5
4011
echo "$as_me: failed program was:" >&5
4012
sed 's/^/| /' conftest.$ac_ext >&5
4015
ac_cv_header_stdc=no
4017
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4023
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4024
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4025
if test $ac_cv_header_stdc = yes; then
4027
cat >>confdefs.h <<\_ACEOF
4028
#define STDC_HEADERS 1
4033
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4043
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4044
inttypes.h stdint.h unistd.h
4046
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4047
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4048
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4049
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4050
echo $ECHO_N "(cached) $ECHO_C" >&6
4052
cat >conftest.$ac_ext <<_ACEOF
4055
cat confdefs.h >>conftest.$ac_ext
4056
cat >>conftest.$ac_ext <<_ACEOF
4057
/* end confdefs.h. */
4058
$ac_includes_default
4060
#include <$ac_header>
4062
rm -f conftest.$ac_objext
4063
if { (ac_try="$ac_compile"
4065
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066
*) ac_try_echo=$ac_try;;
4068
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069
(eval "$ac_compile") 2>conftest.er1
4071
grep -v '^ *+' conftest.er1 >conftest.err
4073
cat conftest.err >&5
4074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
(exit $ac_status); } && {
4076
test -z "$ac_c_werror_flag" ||
4077
test ! -s conftest.err
4078
} && test -s conftest.$ac_objext; then
4079
eval "$as_ac_Header=yes"
4081
echo "$as_me: failed program was:" >&5
4082
sed 's/^/| /' conftest.$ac_ext >&5
4084
eval "$as_ac_Header=no"
4087
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089
ac_res=`eval echo '${'$as_ac_Header'}'`
4090
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4091
echo "${ECHO_T}$ac_res" >&6; }
4092
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4093
cat >>confdefs.h <<_ACEOF
4094
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4105
for ac_header in fcntl.h sys/ioctl.h unistd.h
4107
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4109
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4111
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4112
echo $ECHO_N "(cached) $ECHO_C" >&6
4114
ac_res=`eval echo '${'$as_ac_Header'}'`
4115
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4116
echo "${ECHO_T}$ac_res" >&6; }
4118
# Is the header compilable?
4119
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4120
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4121
cat >conftest.$ac_ext <<_ACEOF
4124
cat confdefs.h >>conftest.$ac_ext
4125
cat >>conftest.$ac_ext <<_ACEOF
4126
/* end confdefs.h. */
4127
$ac_includes_default
4128
#include <$ac_header>
4130
rm -f conftest.$ac_objext
4131
if { (ac_try="$ac_compile"
4133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134
*) ac_try_echo=$ac_try;;
4136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137
(eval "$ac_compile") 2>conftest.er1
4139
grep -v '^ *+' conftest.er1 >conftest.err
4141
cat conftest.err >&5
4142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143
(exit $ac_status); } && {
4144
test -z "$ac_c_werror_flag" ||
4145
test ! -s conftest.err
4146
} && test -s conftest.$ac_objext; then
4147
ac_header_compiler=yes
4149
echo "$as_me: failed program was:" >&5
4150
sed 's/^/| /' conftest.$ac_ext >&5
4152
ac_header_compiler=no
4155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4156
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4157
echo "${ECHO_T}$ac_header_compiler" >&6; }
4159
# Is the header present?
4160
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4161
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4162
cat >conftest.$ac_ext <<_ACEOF
4165
cat confdefs.h >>conftest.$ac_ext
4166
cat >>conftest.$ac_ext <<_ACEOF
4167
/* end confdefs.h. */
4168
#include <$ac_header>
4170
if { (ac_try="$ac_cpp conftest.$ac_ext"
4172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173
*) ac_try_echo=$ac_try;;
4175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4178
grep -v '^ *+' conftest.er1 >conftest.err
4180
cat conftest.err >&5
4181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182
(exit $ac_status); } >/dev/null && {
4183
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4184
test ! -s conftest.err
4186
ac_header_preproc=yes
4188
echo "$as_me: failed program was:" >&5
4189
sed 's/^/| /' conftest.$ac_ext >&5
4191
ac_header_preproc=no
4194
rm -f conftest.err conftest.$ac_ext
4195
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4196
echo "${ECHO_T}$ac_header_preproc" >&6; }
4198
# So? What about this header?
4199
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4201
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4202
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4203
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4204
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4205
ac_header_preproc=yes
4208
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4209
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4210
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4211
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4212
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4213
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4214
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4215
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4216
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4217
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4218
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4219
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4223
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4224
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4225
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4226
echo $ECHO_N "(cached) $ECHO_C" >&6
4228
eval "$as_ac_Header=\$ac_header_preproc"
4230
ac_res=`eval echo '${'$as_ac_Header'}'`
4231
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4232
echo "${ECHO_T}$ac_res" >&6; }
4235
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4236
cat >>confdefs.h <<_ACEOF
4237
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244
if test x$KLIBC != xyes; then
4246
for ac_header in malloc.h
4248
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4249
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4250
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4251
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4252
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4253
echo $ECHO_N "(cached) $ECHO_C" >&6
4255
ac_res=`eval echo '${'$as_ac_Header'}'`
4256
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4257
echo "${ECHO_T}$ac_res" >&6; }
4259
# Is the header compilable?
4260
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4261
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4262
cat >conftest.$ac_ext <<_ACEOF
4265
cat confdefs.h >>conftest.$ac_ext
4266
cat >>conftest.$ac_ext <<_ACEOF
4267
/* end confdefs.h. */
4268
$ac_includes_default
4269
#include <$ac_header>
4271
rm -f conftest.$ac_objext
4272
if { (ac_try="$ac_compile"
4274
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275
*) ac_try_echo=$ac_try;;
4277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278
(eval "$ac_compile") 2>conftest.er1
4280
grep -v '^ *+' conftest.er1 >conftest.err
4282
cat conftest.err >&5
4283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284
(exit $ac_status); } && {
4285
test -z "$ac_c_werror_flag" ||
4286
test ! -s conftest.err
4287
} && test -s conftest.$ac_objext; then
4288
ac_header_compiler=yes
4290
echo "$as_me: failed program was:" >&5
4291
sed 's/^/| /' conftest.$ac_ext >&5
4293
ac_header_compiler=no
4296
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4298
echo "${ECHO_T}$ac_header_compiler" >&6; }
4300
# Is the header present?
4301
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4302
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4303
cat >conftest.$ac_ext <<_ACEOF
4306
cat confdefs.h >>conftest.$ac_ext
4307
cat >>conftest.$ac_ext <<_ACEOF
4308
/* end confdefs.h. */
4309
#include <$ac_header>
4311
if { (ac_try="$ac_cpp conftest.$ac_ext"
4313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314
*) ac_try_echo=$ac_try;;
4316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4319
grep -v '^ *+' conftest.er1 >conftest.err
4321
cat conftest.err >&5
4322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323
(exit $ac_status); } >/dev/null && {
4324
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4325
test ! -s conftest.err
4327
ac_header_preproc=yes
4329
echo "$as_me: failed program was:" >&5
4330
sed 's/^/| /' conftest.$ac_ext >&5
4332
ac_header_preproc=no
4335
rm -f conftest.err conftest.$ac_ext
4336
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4337
echo "${ECHO_T}$ac_header_preproc" >&6; }
4339
# So? What about this header?
4340
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4342
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4343
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4344
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4345
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4346
ac_header_preproc=yes
4349
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4350
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4351
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4352
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4353
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4354
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4355
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4356
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4357
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4358
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4359
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4360
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4364
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4365
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4366
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4367
echo $ECHO_N "(cached) $ECHO_C" >&6
4369
eval "$as_ac_Header=\$ac_header_preproc"
4371
ac_res=`eval echo '${'$as_ac_Header'}'`
4372
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4373
echo "${ECHO_T}$ac_res" >&6; }
4376
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4377
cat >>confdefs.h <<_ACEOF
4378
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4387
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4388
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4389
if test "${ac_cv_c_const+set}" = set; then
4390
echo $ECHO_N "(cached) $ECHO_C" >&6
4392
cat >conftest.$ac_ext <<_ACEOF
4395
cat confdefs.h >>conftest.$ac_ext
4396
cat >>conftest.$ac_ext <<_ACEOF
4397
/* end confdefs.h. */
4402
/* FIXME: Include the comments suggested by Paul. */
4404
/* Ultrix mips cc rejects this. */
4405
typedef int charset[2];
4407
/* SunOS 4.1.1 cc rejects this. */
4408
char const *const *pcpcc;
4410
/* NEC SVR4.0.2 mips cc rejects this. */
4411
struct point {int x, y;};
4412
static struct point const zero = {0,0};
4413
/* AIX XL C 1.02.0.0 rejects this.
4414
It does not let you subtract one const X* pointer from another in
4415
an arm of an if-expression whose if-part is not a constant
4417
const char *g = "string";
4418
pcpcc = &g + (g ? g-g : 0);
4419
/* HPUX 7.0 cc rejects these. */
4421
ppc = (char**) pcpcc;
4422
pcpcc = (char const *const *) ppc;
4423
{ /* SCO 3.2v4 cc rejects this. */
4425
char const *s = 0 ? (char *) 0 : (char const *) 0;
4430
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4432
const int *foo = &x[0];
4435
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4436
typedef const int *iptr;
4440
{ /* AIX XL C 1.02.0.0 rejects this saying
4441
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4442
struct s { int j; const int *ap[3]; };
4443
struct s *b; b->j = 5;
4445
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4449
return !cs[0] && !zero.x;
4456
rm -f conftest.$ac_objext
4457
if { (ac_try="$ac_compile"
4459
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460
*) ac_try_echo=$ac_try;;
4462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463
(eval "$ac_compile") 2>conftest.er1
4465
grep -v '^ *+' conftest.er1 >conftest.err
4467
cat conftest.err >&5
4468
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469
(exit $ac_status); } && {
4470
test -z "$ac_c_werror_flag" ||
4471
test ! -s conftest.err
4472
} && test -s conftest.$ac_objext; then
4475
echo "$as_me: failed program was:" >&5
4476
sed 's/^/| /' conftest.$ac_ext >&5
4481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4483
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4484
echo "${ECHO_T}$ac_cv_c_const" >&6; }
4485
if test $ac_cv_c_const = no; then
4487
cat >>confdefs.h <<\_ACEOF
4493
{ echo "$as_me:$LINENO: checking for inline" >&5
4494
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4495
if test "${ac_cv_c_inline+set}" = set; then
4496
echo $ECHO_N "(cached) $ECHO_C" >&6
4499
for ac_kw in inline __inline__ __inline; do
4500
cat >conftest.$ac_ext <<_ACEOF
4503
cat confdefs.h >>conftest.$ac_ext
4504
cat >>conftest.$ac_ext <<_ACEOF
4505
/* end confdefs.h. */
4508
static $ac_kw foo_t static_foo () {return 0; }
4509
$ac_kw foo_t foo () {return 0; }
4513
rm -f conftest.$ac_objext
4514
if { (ac_try="$ac_compile"
4516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517
*) ac_try_echo=$ac_try;;
4519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520
(eval "$ac_compile") 2>conftest.er1
4522
grep -v '^ *+' conftest.er1 >conftest.err
4524
cat conftest.err >&5
4525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
(exit $ac_status); } && {
4527
test -z "$ac_c_werror_flag" ||
4528
test ! -s conftest.err
4529
} && test -s conftest.$ac_objext; then
4530
ac_cv_c_inline=$ac_kw
4532
echo "$as_me: failed program was:" >&5
4533
sed 's/^/| /' conftest.$ac_ext >&5
4538
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539
test "$ac_cv_c_inline" != no && break
4543
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4544
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4547
case $ac_cv_c_inline in
4550
case $ac_cv_c_inline in
4552
*) ac_val=$ac_cv_c_inline;;
4554
cat >>confdefs.h <<_ACEOF
4556
#define inline $ac_val
4562
{ echo "$as_me:$LINENO: checking for off_t" >&5
4563
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4564
if test "${ac_cv_type_off_t+set}" = set; then
4565
echo $ECHO_N "(cached) $ECHO_C" >&6
4567
cat >conftest.$ac_ext <<_ACEOF
4570
cat confdefs.h >>conftest.$ac_ext
4571
cat >>conftest.$ac_ext <<_ACEOF
4572
/* end confdefs.h. */
4573
$ac_includes_default
4574
typedef off_t ac__type_new_;
4578
if ((ac__type_new_ *) 0)
4580
if (sizeof (ac__type_new_))
4586
rm -f conftest.$ac_objext
4587
if { (ac_try="$ac_compile"
4589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590
*) ac_try_echo=$ac_try;;
4592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593
(eval "$ac_compile") 2>conftest.er1
4595
grep -v '^ *+' conftest.er1 >conftest.err
4597
cat conftest.err >&5
4598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599
(exit $ac_status); } && {
4600
test -z "$ac_c_werror_flag" ||
4601
test ! -s conftest.err
4602
} && test -s conftest.$ac_objext; then
4603
ac_cv_type_off_t=yes
4605
echo "$as_me: failed program was:" >&5
4606
sed 's/^/| /' conftest.$ac_ext >&5
4611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4613
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4614
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
4615
if test $ac_cv_type_off_t = yes; then
4619
cat >>confdefs.h <<_ACEOF
4620
#define off_t long int
4625
{ echo "$as_me:$LINENO: checking for pid_t" >&5
4626
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
4627
if test "${ac_cv_type_pid_t+set}" = set; then
4628
echo $ECHO_N "(cached) $ECHO_C" >&6
4630
cat >conftest.$ac_ext <<_ACEOF
4633
cat confdefs.h >>conftest.$ac_ext
4634
cat >>conftest.$ac_ext <<_ACEOF
4635
/* end confdefs.h. */
4636
$ac_includes_default
4637
typedef pid_t ac__type_new_;
4641
if ((ac__type_new_ *) 0)
4643
if (sizeof (ac__type_new_))
4649
rm -f conftest.$ac_objext
4650
if { (ac_try="$ac_compile"
4652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653
*) ac_try_echo=$ac_try;;
4655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656
(eval "$ac_compile") 2>conftest.er1
4658
grep -v '^ *+' conftest.er1 >conftest.err
4660
cat conftest.err >&5
4661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662
(exit $ac_status); } && {
4663
test -z "$ac_c_werror_flag" ||
4664
test ! -s conftest.err
4665
} && test -s conftest.$ac_objext; then
4666
ac_cv_type_pid_t=yes
4668
echo "$as_me: failed program was:" >&5
4669
sed 's/^/| /' conftest.$ac_ext >&5
4674
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4676
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
4677
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
4678
if test $ac_cv_type_pid_t = yes; then
4682
cat >>confdefs.h <<_ACEOF
4688
{ echo "$as_me:$LINENO: checking for size_t" >&5
4689
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4690
if test "${ac_cv_type_size_t+set}" = set; then
4691
echo $ECHO_N "(cached) $ECHO_C" >&6
4693
cat >conftest.$ac_ext <<_ACEOF
4696
cat confdefs.h >>conftest.$ac_ext
4697
cat >>conftest.$ac_ext <<_ACEOF
4698
/* end confdefs.h. */
4699
$ac_includes_default
4700
typedef size_t ac__type_new_;
4704
if ((ac__type_new_ *) 0)
4706
if (sizeof (ac__type_new_))
4712
rm -f conftest.$ac_objext
4713
if { (ac_try="$ac_compile"
4715
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716
*) ac_try_echo=$ac_try;;
4718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4719
(eval "$ac_compile") 2>conftest.er1
4721
grep -v '^ *+' conftest.er1 >conftest.err
4723
cat conftest.err >&5
4724
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725
(exit $ac_status); } && {
4726
test -z "$ac_c_werror_flag" ||
4727
test ! -s conftest.err
4728
} && test -s conftest.$ac_objext; then
4729
ac_cv_type_size_t=yes
4731
echo "$as_me: failed program was:" >&5
4732
sed 's/^/| /' conftest.$ac_ext >&5
4734
ac_cv_type_size_t=no
4737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4740
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4741
if test $ac_cv_type_size_t = yes; then
4745
cat >>confdefs.h <<_ACEOF
4746
#define size_t unsigned int
4751
{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
4752
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
4753
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
4754
echo $ECHO_N "(cached) $ECHO_C" >&6
4756
cat >conftest.$ac_ext <<_ACEOF
4759
cat confdefs.h >>conftest.$ac_ext
4760
cat >>conftest.$ac_ext <<_ACEOF
4761
/* end confdefs.h. */
4762
$ac_includes_default
4766
static struct stat ac_aggr;
4767
if (ac_aggr.st_rdev)
4773
rm -f conftest.$ac_objext
4774
if { (ac_try="$ac_compile"
4776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4777
*) ac_try_echo=$ac_try;;
4779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780
(eval "$ac_compile") 2>conftest.er1
4782
grep -v '^ *+' conftest.er1 >conftest.err
4784
cat conftest.err >&5
4785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786
(exit $ac_status); } && {
4787
test -z "$ac_c_werror_flag" ||
4788
test ! -s conftest.err
4789
} && test -s conftest.$ac_objext; then
4790
ac_cv_member_struct_stat_st_rdev=yes
4792
echo "$as_me: failed program was:" >&5
4793
sed 's/^/| /' conftest.$ac_ext >&5
4795
cat >conftest.$ac_ext <<_ACEOF
4798
cat confdefs.h >>conftest.$ac_ext
4799
cat >>conftest.$ac_ext <<_ACEOF
4800
/* end confdefs.h. */
4801
$ac_includes_default
4805
static struct stat ac_aggr;
4806
if (sizeof ac_aggr.st_rdev)
4812
rm -f conftest.$ac_objext
4813
if { (ac_try="$ac_compile"
4815
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4816
*) ac_try_echo=$ac_try;;
4818
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4819
(eval "$ac_compile") 2>conftest.er1
4821
grep -v '^ *+' conftest.er1 >conftest.err
4823
cat conftest.err >&5
4824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825
(exit $ac_status); } && {
4826
test -z "$ac_c_werror_flag" ||
4827
test ! -s conftest.err
4828
} && test -s conftest.$ac_objext; then
4829
ac_cv_member_struct_stat_st_rdev=yes
4831
echo "$as_me: failed program was:" >&5
4832
sed 's/^/| /' conftest.$ac_ext >&5
4834
ac_cv_member_struct_stat_st_rdev=no
4837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4842
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
4843
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
4844
if test $ac_cv_member_struct_stat_st_rdev = yes; then
4846
cat >>confdefs.h <<_ACEOF
4847
#define HAVE_STRUCT_STAT_ST_RDEV 1
4851
cat >>confdefs.h <<\_ACEOF
4852
#define HAVE_ST_RDEV 1
4858
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4859
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
4860
if test "${ac_cv_header_time+set}" = set; then
4861
echo $ECHO_N "(cached) $ECHO_C" >&6
4863
cat >conftest.$ac_ext <<_ACEOF
4866
cat confdefs.h >>conftest.$ac_ext
4867
cat >>conftest.$ac_ext <<_ACEOF
4868
/* end confdefs.h. */
4869
#include <sys/types.h>
4870
#include <sys/time.h>
4876
if ((struct tm *) 0)
4882
rm -f conftest.$ac_objext
4883
if { (ac_try="$ac_compile"
4885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4886
*) ac_try_echo=$ac_try;;
4888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4889
(eval "$ac_compile") 2>conftest.er1
4891
grep -v '^ *+' conftest.er1 >conftest.err
4893
cat conftest.err >&5
4894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895
(exit $ac_status); } && {
4896
test -z "$ac_c_werror_flag" ||
4897
test ! -s conftest.err
4898
} && test -s conftest.$ac_objext; then
4899
ac_cv_header_time=yes
4901
echo "$as_me: failed program was:" >&5
4902
sed 's/^/| /' conftest.$ac_ext >&5
4904
ac_cv_header_time=no
4907
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4910
echo "${ECHO_T}$ac_cv_header_time" >&6; }
4911
if test $ac_cv_header_time = yes; then
4913
cat >>confdefs.h <<\_ACEOF
4914
#define TIME_WITH_SYS_TIME 1
4920
if test x$KLIBC != xyes; then
4924
CLDFLAGS="-Wl,--version-script,.export.sym"
4925
LD_DEPS=".export.sym"
4933
# Check whether --with-user was given.
4934
if test "${with_user+set}" = set; then
4935
withval=$with_user; OWNER="$withval"
4942
# Check whether --with-group was given.
4943
if test "${with_group+set}" = set; then
4944
withval=$with_group; GROUP="$withval"
4950
echo $ac_n "checking whether to enable debugging""... $ac_c" 1>&6
4951
# Check whether --enable-debug was given.
4952
if test "${enable_debug+set}" = set; then
4953
enableval=$enable_debug; \
4959
echo "$ac_t""$DEBUG" 1>&6
4961
echo $ac_n "checking whether to enable malloc debugging""... $ac_c" 1>&6
4962
# Check whether --enable-debug_malloc was given.
4963
if test "${enable_debug_malloc+set}" = set; then
4964
enableval=$enable_debug_malloc; \
4970
echo "$ac_t""$DEBUG" 1>&6
4972
# Check whether --enable-dietlibc was given.
4973
if test "${enable_dietlibc+set}" = set; then
4974
enableval=$enable_dietlibc; DIETLIBC=yes
4980
if test x$DIETLIBC = xyes; then
4981
if test x$KLIBC = xyes; then
4982
{ { echo "$as_me:$LINENO: error: You can' enable both dietlibc and klibc!" >&5
4983
echo "$as_me: error: You can' enable both dietlibc and klibc!" >&2;}
4984
{ (exit 1); exit 1; }; }
4991
# Check whether --enable-jobs was given.
4992
if test "${enable_jobs+set}" = set; then
4993
enableval=$enable_jobs; JOBS=-j$enableval
4999
# Check whether --enable-libselinux was given.
5000
if test "${enable_libselinux+set}" = set; then
5001
enableval=$enable_libselinux; LIBSELINUX=$enableval
5007
# Check whether --enable-libsepol was given.
5008
if test "${enable_libsepol+set}" = set; then
5009
enableval=$enable_libsepol; LIBSEPOL=$enableval
5015
# Check whether --enable-mini was given.
5016
if test "${enable_mini+set}" = set; then
5017
enableval=$enable_mini; DMRAID_MINI=$enableval
5023
# Check whether --enable-led was given.
5024
if test "${enable_led+set}" = set; then
5025
enableval=$enable_led; DMRAID_LED=$enableval
5031
# Check whether --enable-intel_led was given.
5032
if test "${enable_intel_led+set}" = set; then
5033
enableval=$enable_intel_led; DMRAID_INTEL_LED=$enableval
5039
echo $ac_n "checking whether to disable native metadata logging""... $ac_c" 1>&6
5040
# Check whether --enable-native_log was given.
5041
if test "${enable_native_log+set}" = set; then
5042
enableval=$enable_native_log; \
5043
DMRAID_NATIVE_LOG=$enableval
5045
DMRAID_NATIVE_LOG=yes
5048
echo "$ac_t""$DMRAID_NATIVE_LOG" 1>&6
5050
# Check whether --enable-static_link was given.
5051
if test "${enable_static_link+set}" = set; then
5052
enableval=$enable_static_link; STATIC_LINK=$enableval
5058
# Check whether --enable-shared_lib was given.
5059
if test "${enable_shared_lib+set}" = set; then
5060
enableval=$enable_shared_lib; LIB_SO=$enableval
5066
echo $ac_n "checking whether to disable testing with mapped devices""... $ac_c" 1>&6
5067
# Check whether --enable-testing was given.
5068
if test "${enable_testing+set}" = set; then
5069
enableval=$enable_testing; \
5076
echo "$ac_t""$DEBUG" 1>&6
5078
if test x$LIB_SO = xyes; then
5082
if test x$STATIC_LINK = xyes; then
5084
if test x$LIB_SO = xyes; then
5085
{ { echo "$as_me:$LINENO: error: You can' enable both shared_lib and static_link!" >&5
5086
echo "$as_me: error: You can' enable both shared_lib and static_link!" >&2;}
5087
{ (exit 1); exit 1; }; }
5092
if test x$DMRAID_MINI = xyes; then
5093
CFLAGS="$CFLAGS -DDMRAID_MINI"
5094
FLAVOUR="${FLAVOUR}mini "
5096
if test x$DMRAID_NATIVE_LOG = xno; then
5097
FLAVOUR="${FLAVOUR}no_native_log "
5099
CFLAGS="$CFLAGS -DDMRAID_NATIVE_LOG"
5103
if test x$DMRAID_LED = xyes; then
5104
CFLAGS="$CFLAGS -DDMRAID_LED"
5107
if test x$DMRAID_INTEL_LED = xyes; then
5108
CFLAGS="$CFLAGS -DDMRAID_LED -DDMRAID_INTEL_LED"
5111
if test x$DEBUG = xyes; then
5112
FLAVOUR="${FLAVOUR}debug "
5115
if test x$DEBUG_MALLOC = xyes; then
5116
FLAVOUR="${FLAVOUR}debug_malloc "
5119
if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
5120
then exec_prefix="";
5123
if test $ac_cv_c_compiler_gnu = yes; then
5124
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
5125
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
5126
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
5127
echo $ECHO_N "(cached) $ECHO_C" >&6
5129
ac_pattern="Autoconf.*'x'"
5130
cat >conftest.$ac_ext <<_ACEOF
5133
cat confdefs.h >>conftest.$ac_ext
5134
cat >>conftest.$ac_ext <<_ACEOF
5135
/* end confdefs.h. */
5139
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5140
$EGREP "$ac_pattern" >/dev/null 2>&1; then
5141
ac_cv_prog_gcc_traditional=yes
5143
ac_cv_prog_gcc_traditional=no
5148
if test $ac_cv_prog_gcc_traditional = no; then
5149
cat >conftest.$ac_ext <<_ACEOF
5152
cat confdefs.h >>conftest.$ac_ext
5153
cat >>conftest.$ac_ext <<_ACEOF
5154
/* end confdefs.h. */
5158
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5159
$EGREP "$ac_pattern" >/dev/null 2>&1; then
5160
ac_cv_prog_gcc_traditional=yes
5166
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5167
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5168
if test $ac_cv_prog_gcc_traditional = yes; then
5169
CC="$CC -traditional"
5173
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5174
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
5175
if test "${ac_cv_type_signal+set}" = set; then
5176
echo $ECHO_N "(cached) $ECHO_C" >&6
5178
cat >conftest.$ac_ext <<_ACEOF
5181
cat confdefs.h >>conftest.$ac_ext
5182
cat >>conftest.$ac_ext <<_ACEOF
5183
/* end confdefs.h. */
5184
#include <sys/types.h>
5190
return *(signal (0, 0)) (0) == 1;
5195
rm -f conftest.$ac_objext
5196
if { (ac_try="$ac_compile"
5198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5199
*) ac_try_echo=$ac_try;;
5201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5202
(eval "$ac_compile") 2>conftest.er1
5204
grep -v '^ *+' conftest.er1 >conftest.err
5206
cat conftest.err >&5
5207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208
(exit $ac_status); } && {
5209
test -z "$ac_c_werror_flag" ||
5210
test ! -s conftest.err
5211
} && test -s conftest.$ac_objext; then
5212
ac_cv_type_signal=int
5214
echo "$as_me: failed program was:" >&5
5215
sed 's/^/| /' conftest.$ac_ext >&5
5217
ac_cv_type_signal=void
5220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5222
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5223
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
5225
cat >>confdefs.h <<_ACEOF
5226
#define RETSIGTYPE $ac_cv_type_signal
5231
for ac_func in vprintf
5233
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5234
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5235
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5236
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5237
echo $ECHO_N "(cached) $ECHO_C" >&6
5239
cat >conftest.$ac_ext <<_ACEOF
5242
cat confdefs.h >>conftest.$ac_ext
5243
cat >>conftest.$ac_ext <<_ACEOF
5244
/* end confdefs.h. */
5245
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5246
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5247
#define $ac_func innocuous_$ac_func
5249
/* System header to define __stub macros and hopefully few prototypes,
5250
which can conflict with char $ac_func (); below.
5251
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5252
<limits.h> exists even on freestanding compilers. */
5255
# include <limits.h>
5257
# include <assert.h>
5262
/* Override any GCC internal prototype to avoid an error.
5263
Use char because int might match the return type of a GCC
5264
builtin and then its argument prototype would still apply. */
5269
/* The GNU C library defines this for functions which it implements
5270
to always fail with ENOSYS. Some functions are actually named
5271
something starting with __ and the normal name is an alias. */
5272
#if defined __stub_$ac_func || defined __stub___$ac_func
5284
rm -f conftest.$ac_objext conftest$ac_exeext
5285
if { (ac_try="$ac_link"
5287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288
*) ac_try_echo=$ac_try;;
5290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291
(eval "$ac_link") 2>conftest.er1
5293
grep -v '^ *+' conftest.er1 >conftest.err
5295
cat conftest.err >&5
5296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297
(exit $ac_status); } && {
5298
test -z "$ac_c_werror_flag" ||
5299
test ! -s conftest.err
5300
} && test -s conftest$ac_exeext &&
5301
$as_test_x conftest$ac_exeext; then
5302
eval "$as_ac_var=yes"
5304
echo "$as_me: failed program was:" >&5
5305
sed 's/^/| /' conftest.$ac_ext >&5
5307
eval "$as_ac_var=no"
5310
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5311
conftest$ac_exeext conftest.$ac_ext
5313
ac_res=`eval echo '${'$as_ac_var'}'`
5314
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5315
echo "${ECHO_T}$ac_res" >&6; }
5316
if test `eval echo '${'$as_ac_var'}'` = yes; then
5317
cat >>confdefs.h <<_ACEOF
5318
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5321
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
5322
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
5323
if test "${ac_cv_func__doprnt+set}" = set; then
5324
echo $ECHO_N "(cached) $ECHO_C" >&6
5326
cat >conftest.$ac_ext <<_ACEOF
5329
cat confdefs.h >>conftest.$ac_ext
5330
cat >>conftest.$ac_ext <<_ACEOF
5331
/* end confdefs.h. */
5332
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5333
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5334
#define _doprnt innocuous__doprnt
5336
/* System header to define __stub macros and hopefully few prototypes,
5337
which can conflict with char _doprnt (); below.
5338
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5339
<limits.h> exists even on freestanding compilers. */
5342
# include <limits.h>
5344
# include <assert.h>
5349
/* Override any GCC internal prototype to avoid an error.
5350
Use char because int might match the return type of a GCC
5351
builtin and then its argument prototype would still apply. */
5356
/* The GNU C library defines this for functions which it implements
5357
to always fail with ENOSYS. Some functions are actually named
5358
something starting with __ and the normal name is an alias. */
5359
#if defined __stub__doprnt || defined __stub____doprnt
5371
rm -f conftest.$ac_objext conftest$ac_exeext
5372
if { (ac_try="$ac_link"
5374
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375
*) ac_try_echo=$ac_try;;
5377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378
(eval "$ac_link") 2>conftest.er1
5380
grep -v '^ *+' conftest.er1 >conftest.err
5382
cat conftest.err >&5
5383
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384
(exit $ac_status); } && {
5385
test -z "$ac_c_werror_flag" ||
5386
test ! -s conftest.err
5387
} && test -s conftest$ac_exeext &&
5388
$as_test_x conftest$ac_exeext; then
5389
ac_cv_func__doprnt=yes
5391
echo "$as_me: failed program was:" >&5
5392
sed 's/^/| /' conftest.$ac_ext >&5
5394
ac_cv_func__doprnt=no
5397
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5398
conftest$ac_exeext conftest.$ac_ext
5400
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5401
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
5402
if test $ac_cv_func__doprnt = yes; then
5404
cat >>confdefs.h <<\_ACEOF
5405
#define HAVE_DOPRNT 1
5417
for ac_func in mkdir rmdir uname
5419
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5420
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5421
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5422
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5423
echo $ECHO_N "(cached) $ECHO_C" >&6
5425
cat >conftest.$ac_ext <<_ACEOF
5428
cat confdefs.h >>conftest.$ac_ext
5429
cat >>conftest.$ac_ext <<_ACEOF
5430
/* end confdefs.h. */
5431
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5432
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5433
#define $ac_func innocuous_$ac_func
5435
/* System header to define __stub macros and hopefully few prototypes,
5436
which can conflict with char $ac_func (); below.
5437
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5438
<limits.h> exists even on freestanding compilers. */
5441
# include <limits.h>
5443
# include <assert.h>
5448
/* Override any GCC internal prototype to avoid an error.
5449
Use char because int might match the return type of a GCC
5450
builtin and then its argument prototype would still apply. */
5455
/* The GNU C library defines this for functions which it implements
5456
to always fail with ENOSYS. Some functions are actually named
5457
something starting with __ and the normal name is an alias. */
5458
#if defined __stub_$ac_func || defined __stub___$ac_func
5470
rm -f conftest.$ac_objext conftest$ac_exeext
5471
if { (ac_try="$ac_link"
5473
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474
*) ac_try_echo=$ac_try;;
5476
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477
(eval "$ac_link") 2>conftest.er1
5479
grep -v '^ *+' conftest.er1 >conftest.err
5481
cat conftest.err >&5
5482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
(exit $ac_status); } && {
5484
test -z "$ac_c_werror_flag" ||
5485
test ! -s conftest.err
5486
} && test -s conftest$ac_exeext &&
5487
$as_test_x conftest$ac_exeext; then
5488
eval "$as_ac_var=yes"
5490
echo "$as_me: failed program was:" >&5
5491
sed 's/^/| /' conftest.$ac_ext >&5
5493
eval "$as_ac_var=no"
5496
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5497
conftest$ac_exeext conftest.$ac_ext
5499
ac_res=`eval echo '${'$as_ac_var'}'`
5500
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5501
echo "${ECHO_T}$ac_res" >&6; }
5502
if test `eval echo '${'$as_ac_var'}'` = yes; then
5503
cat >>confdefs.h <<_ACEOF
5504
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5511
if test x$READLINE = xyes; then
5512
{ echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5513
echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6; }
5514
if test "${ac_cv_search_tgetent+set}" = set; then
5515
echo $ECHO_N "(cached) $ECHO_C" >&6
5517
ac_func_search_save_LIBS=$LIBS
5518
cat >conftest.$ac_ext <<_ACEOF
5521
cat confdefs.h >>conftest.$ac_ext
5522
cat >>conftest.$ac_ext <<_ACEOF
5523
/* end confdefs.h. */
5525
/* Override any GCC internal prototype to avoid an error.
5526
Use char because int might match the return type of a GCC
5527
builtin and then its argument prototype would still apply. */
5540
for ac_lib in '' ncurses curses termcap termlib; do
5541
if test -z "$ac_lib"; then
5542
ac_res="none required"
5545
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5547
rm -f conftest.$ac_objext conftest$ac_exeext
5548
if { (ac_try="$ac_link"
5550
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551
*) ac_try_echo=$ac_try;;
5553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554
(eval "$ac_link") 2>conftest.er1
5556
grep -v '^ *+' conftest.er1 >conftest.err
5558
cat conftest.err >&5
5559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5560
(exit $ac_status); } && {
5561
test -z "$ac_c_werror_flag" ||
5562
test ! -s conftest.err
5563
} && test -s conftest$ac_exeext &&
5564
$as_test_x conftest$ac_exeext; then
5565
ac_cv_search_tgetent=$ac_res
5567
echo "$as_me: failed program was:" >&5
5568
sed 's/^/| /' conftest.$ac_ext >&5
5573
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5575
if test "${ac_cv_search_tgetent+set}" = set; then
5579
if test "${ac_cv_search_tgetent+set}" = set; then
5582
ac_cv_search_tgetent=no
5585
LIBS=$ac_func_search_save_LIBS
5587
{ echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5588
echo "${ECHO_T}$ac_cv_search_tgetent" >&6; }
5589
ac_res=$ac_cv_search_tgetent
5590
if test "$ac_res" != no; then
5591
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5594
{ { echo "$as_me:$LINENO: error: termcap could not be found which is required for the
5595
--enable-readline option (which is enabled by default). Either disable readline
5596
support with --disable-readline or download and install termcap from:
5597
ftp.gnu.org/gnu/termcap
5598
Note: if you are using precompiled packages you will also need the development
5599
package as well (which may be called termcap-devel or something similar).
5600
Note: (n)curses also seems to work as a substitute for termcap. This was
5601
not found either - but you could try installing that as well.
5603
echo "$as_me: error: termcap could not be found which is required for the
5604
--enable-readline option (which is enabled by default). Either disable readline
5605
support with --disable-readline or download and install termcap from:
5606
ftp.gnu.org/gnu/termcap
5607
Note: if you are using precompiled packages you will also need the development
5608
package as well (which may be called termcap-devel or something similar).
5609
Note: (n)curses also seems to work as a substitute for termcap. This was
5610
not found either - but you could try installing that as well.
5612
{ (exit 1); exit 1; }; }
5619
if test x$KLIBC != xyes; then
5621
for ac_header in getopt.h
5623
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5624
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5625
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5626
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5627
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5628
echo $ECHO_N "(cached) $ECHO_C" >&6
5630
ac_res=`eval echo '${'$as_ac_Header'}'`
5631
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5632
echo "${ECHO_T}$ac_res" >&6; }
5634
# Is the header compilable?
5635
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5636
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5637
cat >conftest.$ac_ext <<_ACEOF
5640
cat confdefs.h >>conftest.$ac_ext
5641
cat >>conftest.$ac_ext <<_ACEOF
5642
/* end confdefs.h. */
5643
$ac_includes_default
5644
#include <$ac_header>
5646
rm -f conftest.$ac_objext
5647
if { (ac_try="$ac_compile"
5649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5650
*) ac_try_echo=$ac_try;;
5652
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5653
(eval "$ac_compile") 2>conftest.er1
5655
grep -v '^ *+' conftest.er1 >conftest.err
5657
cat conftest.err >&5
5658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659
(exit $ac_status); } && {
5660
test -z "$ac_c_werror_flag" ||
5661
test ! -s conftest.err
5662
} && test -s conftest.$ac_objext; then
5663
ac_header_compiler=yes
5665
echo "$as_me: failed program was:" >&5
5666
sed 's/^/| /' conftest.$ac_ext >&5
5668
ac_header_compiler=no
5671
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5673
echo "${ECHO_T}$ac_header_compiler" >&6; }
5675
# Is the header present?
5676
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5677
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5678
cat >conftest.$ac_ext <<_ACEOF
5681
cat confdefs.h >>conftest.$ac_ext
5682
cat >>conftest.$ac_ext <<_ACEOF
5683
/* end confdefs.h. */
5684
#include <$ac_header>
5686
if { (ac_try="$ac_cpp conftest.$ac_ext"
5688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5689
*) ac_try_echo=$ac_try;;
5691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5692
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5694
grep -v '^ *+' conftest.er1 >conftest.err
5696
cat conftest.err >&5
5697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698
(exit $ac_status); } >/dev/null && {
5699
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5700
test ! -s conftest.err
5702
ac_header_preproc=yes
5704
echo "$as_me: failed program was:" >&5
5705
sed 's/^/| /' conftest.$ac_ext >&5
5707
ac_header_preproc=no
5710
rm -f conftest.err conftest.$ac_ext
5711
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5712
echo "${ECHO_T}$ac_header_preproc" >&6; }
5714
# So? What about this header?
5715
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5717
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5718
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5719
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5720
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5721
ac_header_preproc=yes
5724
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5725
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5726
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5727
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5728
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5729
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5730
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5731
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5732
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5733
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5734
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5735
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5739
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5740
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5741
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5742
echo $ECHO_N "(cached) $ECHO_C" >&6
5744
eval "$as_ac_Header=\$ac_header_preproc"
5746
ac_res=`eval echo '${'$as_ac_Header'}'`
5747
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5748
echo "${ECHO_T}$ac_res" >&6; }
5751
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5752
cat >>confdefs.h <<_ACEOF
5753
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5755
CFLAGS="$CFLAGS -DHAVE_GETOPTLONG"
5762
if test "-f tools/VERSION"; then
5763
DMRAID_VERSION="`cat tools/VERSION`"
5765
DMRAID_VERSION="Unknown"
5768
if test "-f lib/version.h"; then
5769
DMRAID_LIB_VERSION="`sed --quiet 's/^.*\(DMRAID_LIB_VERSION\)[^_].*"\(.*\)"/\2/p' lib/version.h`"
5771
DMRAID_LIB_VERSION="Unknown"
5795
ac_config_files="$ac_config_files include/Makefile lib/Makefile man/Makefile tools/Makefile tools/version.h Makefile make.tmpl"
5797
cat >confcache <<\_ACEOF
5798
# This file is a shell script that caches the results of configure
5799
# tests run on this system so they can be shared between configure
5800
# scripts and configure runs, see configure's option --config-cache.
5801
# It is not useful on other systems. If it contains results you don't
5802
# want to keep, you may remove or edit it.
5804
# config.status only pays attention to the cache file if you give it
5805
# the --recheck option to rerun configure.
5807
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5808
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5813
# The following way of writing the cache mishandles newlines in values,
5814
# but we know of no workaround that is simple, portable, and efficient.
5815
# So, we kill variables containing newlines.
5816
# Ultrix sh set writes to stderr and can't be redirected directly,
5817
# and sets the high bit in the cache file unless we assign to the vars.
5819
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5820
eval ac_val=\$$ac_var
5824
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5825
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5828
_ | IFS | as_nl) ;; #(
5829
*) $as_unset $ac_var ;;
5835
case $as_nl`(ac_space=' '; set) 2>&1` in #(
5836
*${as_nl}ac_space=\ *)
5837
# `set' does not quote correctly, so add quotes (double-quote
5838
# substitution turns \\\\ into \\, and sed turns \\ into \).
5841
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5844
# `set' quotes correctly as required by POSIX, so do not add quotes.
5845
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5854
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5856
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5858
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5859
if test -w "$cache_file"; then
5860
test "x$cache_file" != "x/dev/null" &&
5861
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
5862
echo "$as_me: updating cache $cache_file" >&6;}
5863
cat confcache >$cache_file
5865
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5866
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5871
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5872
# Let make expand exec_prefix.
5873
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5875
# Transform confdefs.h into DEFS.
5876
# Protect against shell expansion while executing Makefile rules.
5877
# Protect against Makefile macro expansion.
5879
# If the first sed substitution is executed (which looks for macros that
5880
# take arguments), then branch to the quote section. Otherwise,
5881
# look for a macro that doesn't take arguments.
5885
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5887
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5891
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5904
DEFS=`sed -n "$ac_script" confdefs.h`
5909
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5910
# 1. Remove the extension, and $U if already installed.
5911
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5912
ac_i=`echo "$ac_i" | sed "$ac_script"`
5913
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5914
# will be set to the directory where LIBOBJS objects are built.
5915
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5916
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5920
LTLIBOBJS=$ac_ltlibobjs
5924
: ${CONFIG_STATUS=./config.status}
5925
ac_clean_files_save=$ac_clean_files
5926
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5927
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5928
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5929
cat >$CONFIG_STATUS <<_ACEOF
5931
# Generated by $as_me.
5932
# Run this file to recreate the current configuration.
5933
# Compiler output produced by configure, useful for debugging
5934
# configure, is in config.log if it exists.
5939
SHELL=\${CONFIG_SHELL-$SHELL}
5942
cat >>$CONFIG_STATUS <<\_ACEOF
5943
## --------------------- ##
5944
## M4sh Initialization. ##
5945
## --------------------- ##
5947
# Be more Bourne compatible
5948
DUALCASE=1; export DUALCASE # for MKS sh
5949
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5952
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5953
# is contrary to our usage. Disable this feature.
5954
alias -g '${1+"$@"}'='"$@"'
5955
setopt NO_GLOB_SUBST
5957
case `(set -o) 2>/dev/null` in
5958
*posix*) set -o posix ;;
5967
# Avoid depending upon Character Ranges.
5968
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5969
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5970
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5971
as_cr_digits='0123456789'
5972
as_cr_alnum=$as_cr_Letters$as_cr_digits
5974
# The user is always right.
5975
if test "${PATH_SEPARATOR+set}" != set; then
5976
echo "#! /bin/sh" >conf$$.sh
5977
echo "exit 0" >>conf$$.sh
5979
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5987
# Support unset when possible.
5988
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5996
# We need space, tab and new line, in precisely that order. Quoting is
5997
# there to prevent editors from complaining about space-tab.
5998
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5999
# splitting by setting IFS to empty value.)
6004
# Find who we are. Look in the path if we contain no directory separator.
6006
*[\\/]* ) as_myself=$0 ;;
6007
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011
test -z "$as_dir" && as_dir=.
6012
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6018
# We did not find ourselves, most probably we were run as `sh COMMAND'
6019
# in which case we are not to be found in the path.
6020
if test "x$as_myself" = x; then
6023
if test ! -f "$as_myself"; then
6024
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6025
{ (exit 1); exit 1; }
6028
# Work around bugs in pre-3.0 UWIN ksh.
6029
for as_var in ENV MAIL MAILPATH
6030
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6038
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6039
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6040
LC_TELEPHONE LC_TIME
6042
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6043
eval $as_var=C; export $as_var
6045
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
6049
# Required to use basename.
6050
if expr a : '\(a\)' >/dev/null 2>&1 &&
6051
test "X`expr 00001 : '.*\(...\)'`" = X001; then
6057
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6058
as_basename=basename
6064
# Name of the executable.
6065
as_me=`$as_basename -- "$0" ||
6066
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6067
X"$0" : 'X\(//\)$' \| \
6068
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6070
sed '/^.*\/\([^/][^/]*\)\/*$/{
6091
test "x$as_lineno_1" != "x$as_lineno_2" &&
6092
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6094
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6095
# uniformly replaced by the line number. The first 'sed' inserts a
6096
# line-number line after each line using $LINENO; the second 'sed'
6097
# does the real work. The second script uses 'N' to pair each
6098
# line-number line with the line containing $LINENO, and appends
6099
# trailing '-' during substitution so that $LINENO is not a special
6101
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6102
# scripts with optimization help from Paolo Bonzini. Blame Lee
6103
# E. McMahon (1931-1989) for sed's syntax. :-)
6115
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6119
chmod +x "$as_me.lineno" ||
6120
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6121
{ (exit 1); exit 1; }; }
6123
# Don't try to exec as it changes $[0], causing all sort of problems
6124
# (the dirname of $[0] is not the place where we might find the
6125
# original and so on. Autoconf is especially sensitive to this).
6127
# Exit status is that of the last command.
6132
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6138
ECHO_C= ECHO_N= ECHO_T=
6141
case `echo 'x\c'` in
6142
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
6149
if expr a : '\(a\)' >/dev/null 2>&1 &&
6150
test "X`expr 00001 : '.*\(...\)'`" = X001; then
6156
rm -f conf$$ conf$$.exe conf$$.file
6157
if test -d conf$$.dir; then
6158
rm -f conf$$.dir/conf$$.file
6164
if ln -s conf$$.file conf$$ 2>/dev/null; then
6166
# ... but there are two gotchas:
6167
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6168
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6169
# In both cases, we have to default to `cp -p'.
6170
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6172
elif ln conf$$.file conf$$ 2>/dev/null; then
6177
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6178
rmdir conf$$.dir 2>/dev/null
6180
if mkdir -p . 2>/dev/null; then
6183
test -d ./-p && rmdir ./-p
6187
if test -x / >/dev/null 2>&1; then
6190
if ls -dL / >/dev/null 2>&1; then
6197
if test -d "$1"; then
6203
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6204
???[sx]*):;;*)false;;esac;fi
6208
as_executable_p=$as_test_x
6210
# Sed expression to map a string onto a valid CPP name.
6211
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6213
# Sed expression to map a string onto a valid variable name.
6214
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6219
# Save the log message, to keep $[0] and so on meaningful, and to
6220
# report actual input values of CONFIG_FILES etc. instead of their
6221
# values after options handling.
6223
This file was extended by $as_me, which was
6224
generated by GNU Autoconf 2.61. Invocation command line was
6226
CONFIG_FILES = $CONFIG_FILES
6227
CONFIG_HEADERS = $CONFIG_HEADERS
6228
CONFIG_LINKS = $CONFIG_LINKS
6229
CONFIG_COMMANDS = $CONFIG_COMMANDS
6232
on `(hostname || uname -n) 2>/dev/null | sed 1q`
6237
cat >>$CONFIG_STATUS <<_ACEOF
6238
# Files that config.status was made for.
6239
config_files="$ac_config_files"
6243
cat >>$CONFIG_STATUS <<\_ACEOF
6245
\`$as_me' instantiates files from templates according to the
6246
current configuration.
6248
Usage: $0 [OPTIONS] [FILE]...
6250
-h, --help print this help, then exit
6251
-V, --version print version number and configuration settings, then exit
6252
-q, --quiet do not print progress messages
6253
-d, --debug don't remove temporary files
6254
--recheck update $as_me by reconfiguring in the same conditions
6255
--file=FILE[:TEMPLATE]
6256
instantiate the configuration file FILE
6258
Configuration files:
6261
Report bugs to <bug-autoconf@gnu.org>."
6264
cat >>$CONFIG_STATUS <<_ACEOF
6267
configured by $0, generated by GNU Autoconf 2.61,
6268
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6270
Copyright (C) 2006 Free Software Foundation, Inc.
6271
This config.status script is free software; the Free Software Foundation
6272
gives unlimited permission to copy, distribute and modify it."
6279
cat >>$CONFIG_STATUS <<\_ACEOF
6280
# If no file are specified by the user, then we need to provide default
6281
# value. By we need to know if files were specified by the user.
6287
ac_option=`expr "X$1" : 'X\([^=]*\)='`
6288
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6299
# Handling of the options.
6300
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6302
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6303
echo "$ac_cs_version"; exit ;;
6304
--debug | --debu | --deb | --de | --d | -d )
6306
--file | --fil | --fi | --f )
6308
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6309
ac_need_defaults=false;;
6310
--he | --h | --help | --hel | -h )
6311
echo "$ac_cs_usage"; exit ;;
6312
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6313
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6317
-*) { echo "$as_me: error: unrecognized option: $1
6318
Try \`$0 --help' for more information." >&2
6319
{ (exit 1); exit 1; }; } ;;
6321
*) ac_config_targets="$ac_config_targets $1"
6322
ac_need_defaults=false ;;
6328
ac_configure_extra_args=
6330
if $ac_cs_silent; then
6332
ac_configure_extra_args="$ac_configure_extra_args --silent"
6336
cat >>$CONFIG_STATUS <<_ACEOF
6337
if \$ac_cs_recheck; then
6338
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6341
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6345
cat >>$CONFIG_STATUS <<\_ACEOF
6349
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6350
## Running $as_me. ##
6356
cat >>$CONFIG_STATUS <<_ACEOF
6359
cat >>$CONFIG_STATUS <<\_ACEOF
6361
# Handling of arguments.
6362
for ac_config_target in $ac_config_targets
6364
case $ac_config_target in
6365
"include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
6366
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
6367
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
6368
"tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
6369
"tools/version.h") CONFIG_FILES="$CONFIG_FILES tools/version.h" ;;
6370
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6371
"make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
6373
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6374
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6375
{ (exit 1); exit 1; }; };;
6380
# If the user did not use the arguments to specify the items to instantiate,
6381
# then the envvar interface is used. Set only those that are not.
6382
# We use the long form for the default assignment because of an extremely
6383
# bizarre bug on SunOS 4.1.3.
6384
if $ac_need_defaults; then
6385
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6388
# Have a temporary directory for convenience. Make it in the build tree
6389
# simply because there is no reason against having it here, and in addition,
6390
# creating and moving files from /tmp can sometimes cause problems.
6391
# Hook for its removal unless debugging.
6392
# Note that there is a small window in which the directory will not be cleaned:
6393
# after its creation but before its name has been assigned to `$tmp'.
6397
trap 'exit_status=$?
6398
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6400
trap '{ (exit 1); exit 1; }' 1 2 13 15
6402
# Create a (secure) tmp directory for tmp files.
6405
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6406
test -n "$tmp" && test -d "$tmp"
6409
tmp=./conf$$-$RANDOM
6410
(umask 077 && mkdir "$tmp")
6413
echo "$me: cannot create a temporary directory in ." >&2
6414
{ (exit 1); exit 1; }
6418
# Set up the sed scripts for CONFIG_FILES section.
6421
# No need to generate the scripts if there are no CONFIG_FILES.
6422
# This happens for instance when ./config.status config.h
6423
if test -n "$CONFIG_FILES"; then
6430
for ac_last_try in false false false false false :; do
6431
cat >conf$$subs.sed <<_ACEOF
6432
SHELL!$SHELL$ac_delim
6433
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6434
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6435
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6436
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6437
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6438
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6439
exec_prefix!$exec_prefix$ac_delim
6440
prefix!$prefix$ac_delim
6441
program_transform_name!$program_transform_name$ac_delim
6442
bindir!$bindir$ac_delim
6443
sbindir!$sbindir$ac_delim
6444
libexecdir!$libexecdir$ac_delim
6445
datarootdir!$datarootdir$ac_delim
6446
datadir!$datadir$ac_delim
6447
sysconfdir!$sysconfdir$ac_delim
6448
sharedstatedir!$sharedstatedir$ac_delim
6449
localstatedir!$localstatedir$ac_delim
6450
includedir!$includedir$ac_delim
6451
oldincludedir!$oldincludedir$ac_delim
6452
docdir!$docdir$ac_delim
6453
infodir!$infodir$ac_delim
6454
htmldir!$htmldir$ac_delim
6455
dvidir!$dvidir$ac_delim
6456
pdfdir!$pdfdir$ac_delim
6457
psdir!$psdir$ac_delim
6458
libdir!$libdir$ac_delim
6459
localedir!$localedir$ac_delim
6460
mandir!$mandir$ac_delim
6462
ECHO_C!$ECHO_C$ac_delim
6463
ECHO_N!$ECHO_N$ac_delim
6464
ECHO_T!$ECHO_T$ac_delim
6466
build_alias!$build_alias$ac_delim
6467
host_alias!$host_alias$ac_delim
6468
target_alias!$target_alias$ac_delim
6469
build!$build$ac_delim
6470
build_cpu!$build_cpu$ac_delim
6471
build_vendor!$build_vendor$ac_delim
6472
build_os!$build_os$ac_delim
6474
host_cpu!$host_cpu$ac_delim
6475
host_vendor!$host_vendor$ac_delim
6476
host_os!$host_os$ac_delim
6477
target!$target$ac_delim
6478
target_cpu!$target_cpu$ac_delim
6479
target_vendor!$target_vendor$ac_delim
6480
target_os!$target_os$ac_delim
6482
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6483
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6484
INSTALL_DATA!$INSTALL_DATA$ac_delim
6486
SET_MAKE!$SET_MAKE$ac_delim
6487
RANLIB!$RANLIB$ac_delim
6489
KLIBC!$KLIBC$ac_delim
6490
KLIBC_PREFIX!$KLIBC_PREFIX$ac_delim
6491
KLIBC_BIN_DIR!$KLIBC_BIN_DIR$ac_delim
6492
KLIBC_SBIN_DIR!$KLIBC_SBIN_DIR$ac_delim
6493
KLIBC_LIB_DIR!$KLIBC_LIB_DIR$ac_delim
6494
KLIBC_INCLUDE_DIR!$KLIBC_INCLUDE_DIR$ac_delim
6496
CFLAGS!$CFLAGS$ac_delim
6497
LDFLAGS!$LDFLAGS$ac_delim
6498
CPPFLAGS!$CPPFLAGS$ac_delim
6499
ac_ct_CC!$ac_ct_CC$ac_delim
6500
EXEEXT!$EXEEXT$ac_delim
6501
OBJEXT!$OBJEXT$ac_delim
6504
EGREP!$EGREP$ac_delim
6505
CLDFLAGS!$CLDFLAGS$ac_delim
6506
DEBUG!$DEBUG$ac_delim
6507
DEBUG_MALLOC!$DEBUG_MALLOC$ac_delim
6508
DMRAID_TEST!$DMRAID_TEST$ac_delim
6509
DMRAID_VERSION!$DMRAID_VERSION$ac_delim
6510
DMRAID_LIB_VERSION!$DMRAID_LIB_VERSION$ac_delim
6511
DIETLIBC!$DIETLIBC$ac_delim
6512
GROUP!$GROUP$ac_delim
6514
LD_DEPS!$LD_DEPS$ac_delim
6515
FLAVOUR!$FLAVOUR$ac_delim
6516
LIBSELINUX!$LIBSELINUX$ac_delim
6517
LIBSEPOL!$LIBSEPOL$ac_delim
6518
LIB_SO!$LIB_SO$ac_delim
6519
OWNER!$OWNER$ac_delim
6520
SOFLAG!$SOFLAG$ac_delim
6521
STATIC_LINK!$STATIC_LINK$ac_delim
6522
LIBOBJS!$LIBOBJS$ac_delim
6523
LTLIBOBJS!$LTLIBOBJS$ac_delim
6526
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
6528
elif $ac_last_try; then
6529
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6530
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6531
{ (exit 1); exit 1; }; }
6533
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6537
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6538
if test -n "$ac_eof"; then
6539
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6540
ac_eof=`expr $ac_eof + 1`
6543
cat >>$CONFIG_STATUS <<_ACEOF
6544
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6545
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6548
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6549
s/^/s,@/; s/!/@,|#_!!_#|/
6552
s/'"$ac_delim"'$/,g/; t
6554
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6555
' >>$CONFIG_STATUS <conf$$subs.sed
6556
rm -f conf$$subs.sed
6557
cat >>$CONFIG_STATUS <<_ACEOF
6564
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6565
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6566
# trailing colons and then remove the whole line if VPATH becomes empty
6567
# (actually we leave an empty line to preserve line numbers).
6568
if test "x$srcdir" = x.; then
6569
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6573
s/^\([^=]*=[ ]*\):*/\1/
6579
cat >>$CONFIG_STATUS <<\_ACEOF
6580
fi # test -n "$CONFIG_FILES"
6583
for ac_tag in :F $CONFIG_FILES
6586
:[FHLC]) ac_mode=$ac_tag; continue;;
6588
case $ac_mode$ac_tag in
6590
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6591
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6592
{ (exit 1); exit 1; }; };;
6593
:[FH]-) ac_tag=-:-;;
6594
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6611
-) ac_f="$tmp/stdin";;
6612
*) # Look for the file first in the build tree, then in the source tree
6613
# (if the path is not absolute). The absolute path cannot be DOS-style,
6614
# because $ac_f cannot contain `:'.
6618
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6620
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6621
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6622
{ (exit 1); exit 1; }; };;
6624
ac_file_inputs="$ac_file_inputs $ac_f"
6627
# Let's still pretend it is `configure' which instantiates (i.e., don't
6628
# use $as_me), people would be surprised to read:
6629
# /* config.h. Generated by config.status. */
6630
configure_input="Generated from "`IFS=:
6631
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6632
if test x"$ac_file" != x-; then
6633
configure_input="$ac_file. $configure_input"
6634
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6635
echo "$as_me: creating $ac_file" >&6;}
6639
*:-:* | *:-) cat >"$tmp/stdin";;
6644
ac_dir=`$as_dirname -- "$ac_file" ||
6645
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6646
X"$ac_file" : 'X\(//\)[^/]' \| \
6647
X"$ac_file" : 'X\(//\)$' \| \
6648
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6650
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6669
-*) as_dir=./$as_dir;;
6671
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6675
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6676
*) as_qdir=$as_dir;;
6678
as_dirs="'$as_qdir' $as_dirs"
6679
as_dir=`$as_dirname -- "$as_dir" ||
6680
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6681
X"$as_dir" : 'X\(//\)[^/]' \| \
6682
X"$as_dir" : 'X\(//\)$' \| \
6683
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6685
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6702
test -d "$as_dir" && break
6704
test -z "$as_dirs" || eval "mkdir $as_dirs"
6705
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6706
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6707
{ (exit 1); exit 1; }; }; }
6711
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6713
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6714
# A ".." for each directory in $ac_dir_suffix.
6715
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6716
case $ac_top_builddir_sub in
6717
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6718
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6721
ac_abs_top_builddir=$ac_pwd
6722
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6723
# for backward compatibility:
6724
ac_top_builddir=$ac_top_build_prefix
6727
.) # We are building in place.
6729
ac_top_srcdir=$ac_top_builddir_sub
6730
ac_abs_top_srcdir=$ac_pwd ;;
6731
[\\/]* | ?:[\\/]* ) # Absolute name.
6732
ac_srcdir=$srcdir$ac_dir_suffix;
6733
ac_top_srcdir=$srcdir
6734
ac_abs_top_srcdir=$srcdir ;;
6736
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6737
ac_top_srcdir=$ac_top_build_prefix$srcdir
6738
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6740
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6750
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6751
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6755
cat >>$CONFIG_STATUS <<\_ACEOF
6756
# If the template does not know about datarootdir, expand it.
6757
# FIXME: This hack should be removed a few years after 2.60.
6758
ac_datarootdir_hack=; ac_datarootdir_seen=
6760
case `sed -n '/datarootdir/ {
6769
' $ac_file_inputs` in
6770
*datarootdir*) ac_datarootdir_seen=yes;;
6771
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6772
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6773
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6775
cat >>$CONFIG_STATUS <<_ACEOF
6776
ac_datarootdir_hack='
6777
s&@datadir@&$datadir&g
6778
s&@docdir@&$docdir&g
6779
s&@infodir@&$infodir&g
6780
s&@localedir@&$localedir&g
6781
s&@mandir@&$mandir&g
6782
s&\\\${datarootdir}&$datarootdir&g' ;;
6786
# Neutralize VPATH when `$srcdir' = `.'.
6787
# Shell code in configure.ac might set extrasub.
6788
# FIXME: do we really want to maintain this feature?
6789
cat >>$CONFIG_STATUS <<_ACEOF
6793
cat >>$CONFIG_STATUS <<\_ACEOF
6795
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6796
s&@configure_input@&$configure_input&;t t
6797
s&@top_builddir@&$ac_top_builddir_sub&;t t
6798
s&@srcdir@&$ac_srcdir&;t t
6799
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6800
s&@top_srcdir@&$ac_top_srcdir&;t t
6801
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6802
s&@builddir@&$ac_builddir&;t t
6803
s&@abs_builddir@&$ac_abs_builddir&;t t
6804
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6805
s&@INSTALL@&$ac_INSTALL&;t t
6806
$ac_datarootdir_hack
6807
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6809
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6810
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6811
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6812
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6813
which seems to be undefined. Please make sure it is defined." >&5
6814
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6815
which seems to be undefined. Please make sure it is defined." >&2;}
6819
-) cat "$tmp/out"; rm -f "$tmp/out";;
6820
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6831
{ (exit 0); exit 0; }
6833
chmod +x $CONFIG_STATUS
6834
ac_clean_files=$ac_clean_files_save
6837
# configure is writing to config.log, and then calls config.status.
6838
# config.status does its own redirection, appending to config.log.
6839
# Unfortunately, on DOS this fails, as config.log is still kept open
6840
# by configure, so config.status won't be able to write to it; its
6841
# output is simply discarded. So we exec the FD to /dev/null,
6842
# effectively closing config.log, so it can be properly (re)opened and
6843
# appended to by config.status. When coming back to configure, we
6844
# need to make the FD available again.
6845
if test "$no_create" != yes; then
6847
ac_config_status_args=
6848
test "$silent" = yes &&
6849
ac_config_status_args="$ac_config_status_args --quiet"
6851
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6853
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6854
# would make configure fail if this is the last instruction.
6855
$ac_cs_success || { (exit 1); exit 1; }