3740
3805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741
3806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742
3807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
DEPDIR="${am__leading_dot}deps"
3745
ac_config_commands="$ac_config_commands depfiles"
3748
am_make=${MAKE-make}
3749
cat > confinc << 'END'
3751
@echo this is the am__doit target
3754
# If we don't find an include directive, just comment out the code.
3755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3756
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3760
# First try GNU make style include.
3761
echo "include confinc" > confmf
3762
# Ignore all kinds of additional output from `make'.
3763
case `$am_make -s -f confmf 2> /dev/null` in #(
3764
*the\ am__doit\ target*)
3770
# Now try BSD make style include.
3771
if test "$am__include" = "#"; then
3772
echo '.include "confinc"' > confmf
3773
case `$am_make -s -f confmf 2> /dev/null` in #(
3774
*the\ am__doit\ target*)
3775
am__include=.include
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3784
$as_echo "$_am_result" >&6; }
3785
rm -f confinc confmf
3787
# Check whether --enable-dependency-tracking was given.
3788
if test "${enable_dependency_tracking+set}" = set; then :
3789
enableval=$enable_dependency_tracking;
3792
if test "x$enable_dependency_tracking" != xno; then
3793
am_depcomp="$ac_aux_dir/depcomp"
3796
if test "x$enable_dependency_tracking" != xno; then
3809
depcc="$CC" am_compiler_list=
3811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3812
$as_echo_n "checking dependency style of $depcc... " >&6; }
3813
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3814
$as_echo_n "(cached) " >&6
3816
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3817
# We make a subdir and do the tests there. Otherwise we can end up
3818
# making bogus files that we don't know about and never remove. For
3819
# instance it was reported that on HP-UX the gcc test will end up
3820
# making a dummy file named `D' -- because `-MD' means `put the output
3823
# Copy depcomp to subdir because otherwise we won't find it if we're
3824
# using a relative directory.
3825
cp "$am_depcomp" conftest.dir
3827
# We will build objects and dependencies in a subdirectory because
3828
# it helps to detect inapplicable dependency modes. For instance
3829
# both Tru64's cc and ICC support -MD to output dependencies as a
3830
# side effect of compilation, but ICC will put the dependencies in
3831
# the current directory while Tru64 will put them in the object
3835
am_cv_CC_dependencies_compiler_type=none
3836
if test "$am_compiler_list" = ""; then
3837
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3840
case " $depcc " in #(
3841
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3844
for depmode in $am_compiler_list; do
3845
# Setup a source with many dependencies, because some compilers
3846
# like to wrap large dependency lists on column 80 (with \), and
3847
# we should not choose a depcomp mode which is confused by this.
3849
# We need to recreate these files for each test, as the compiler may
3850
# overwrite some of them when testing with obscure command lines.
3851
# This happens at least with the AIX C compiler.
3853
for i in 1 2 3 4 5 6; do
3854
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3855
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3856
# Solaris 8's {/usr,}/bin/sh.
3857
touch sub/conftst$i.h
3859
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3861
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3862
# mode. It turns out that the SunPro C++ compiler does not properly
3863
# handle `-M -o', and we need to detect this. Also, some Intel
3864
# versions had trouble with output in subdirs
3865
am__obj=sub/conftest.${OBJEXT-o}
3866
am__minus_obj="-o $am__obj"
3869
# This depmode causes a compiler race in universal mode.
3870
test "$am__universal" = false || continue
3873
# after this tag, mechanisms are not by side-effect, so they'll
3874
# only be used when explicitly requested
3875
if test "x$enable_dependency_tracking" = xyes; then
3881
msvisualcpp | msvcmsys)
3882
# This compiler won't grok `-c -o', but also, the minuso test has
3883
# not run yet. These depmodes are late enough in the game, and
3884
# so weak that their functioning should not be impacted.
3885
am__obj=conftest.${OBJEXT-o}
3890
if depmode=$depmode \
3891
source=sub/conftest.c object=$am__obj \
3892
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3893
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3894
>/dev/null 2>conftest.err &&
3895
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3896
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3897
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3898
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3899
# icc doesn't choke on unknown options, it will just issue warnings
3900
# or remarks (even with -Werror). So we grep stderr for any message
3901
# that says an option was ignored or not supported.
3902
# When given -MP, icc 7.0 and 7.1 complain thusly:
3903
# icc: Command line warning: ignoring option '-M'; no argument required
3904
# The diagnosis changed in icc 8.0:
3905
# icc: Command line remark: option '-MP' not supported
3906
if (grep 'ignoring option' conftest.err ||
3907
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3908
am_cv_CC_dependencies_compiler_type=$depmode
3917
am_cv_CC_dependencies_compiler_type=none
3921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3922
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3923
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3926
test "x$enable_dependency_tracking" != xno \
3927
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3929
am__fastdepCC_FALSE='#'
3931
am__fastdepCC_TRUE='#'
3932
am__fastdepCC_FALSE=
3938
ac_cpp='$CPP $CPPFLAGS'
3939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3943
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3944
# On Suns, sometimes $CPP names a directory.
3945
if test -n "$CPP" && test -d "$CPP"; then
3948
if test -z "$CPP"; then
3949
if ${ac_cv_prog_CPP+:} false; then :
3950
$as_echo_n "(cached) " >&6
3952
# Double quotes because CPP needs to be expanded
3953
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3956
for ac_c_preproc_warn_flag in '' yes
3958
# Use a header file that comes with gcc, so configuring glibc
3959
# with a fresh cross-compiler works.
3960
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3961
# <limits.h> exists even on freestanding compilers.
3962
# On the NeXT, cc -E runs the code through the compiler's parser,
3963
# not just through cpp. "Syntax error" is here to catch this case.
3964
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965
/* end confdefs.h. */
3967
# include <limits.h>
3969
# include <assert.h>
3973
if ac_fn_c_try_cpp "$LINENO"; then :
3976
# Broken: fails on valid input.
3979
rm -f conftest.err conftest.i conftest.$ac_ext
3981
# OK, works on sane cases. Now check whether nonexistent headers
3982
# can be detected and how.
3983
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984
/* end confdefs.h. */
3985
#include <ac_nonexistent.h>
3987
if ac_fn_c_try_cpp "$LINENO"; then :
3988
# Broken: success on invalid input.
3991
# Passes both tests.
3995
rm -f conftest.err conftest.i conftest.$ac_ext
3998
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3999
rm -f conftest.i conftest.err conftest.$ac_ext
4000
if $ac_preproc_ok; then :
4012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4013
$as_echo "$CPP" >&6; }
4015
for ac_c_preproc_warn_flag in '' yes
4017
# Use a header file that comes with gcc, so configuring glibc
4018
# with a fresh cross-compiler works.
4019
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4020
# <limits.h> exists even on freestanding compilers.
4021
# On the NeXT, cc -E runs the code through the compiler's parser,
4022
# not just through cpp. "Syntax error" is here to catch this case.
4023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024
/* end confdefs.h. */
4026
# include <limits.h>
4028
# include <assert.h>
4032
if ac_fn_c_try_cpp "$LINENO"; then :
4035
# Broken: fails on valid input.
4038
rm -f conftest.err conftest.i conftest.$ac_ext
4040
# OK, works on sane cases. Now check whether nonexistent headers
4041
# can be detected and how.
4042
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043
/* end confdefs.h. */
4044
#include <ac_nonexistent.h>
4046
if ac_fn_c_try_cpp "$LINENO"; then :
4047
# Broken: success on invalid input.
4050
# Passes both tests.
4054
rm -f conftest.err conftest.i conftest.$ac_ext
4057
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4058
rm -f conftest.i conftest.err conftest.$ac_ext
4059
if $ac_preproc_ok; then :
4062
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4063
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4064
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4065
See \`config.log' for more details" "$LINENO" 5; }
4069
ac_cpp='$CPP $CPPFLAGS'
4070
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4076
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4077
if ${ac_cv_path_GREP+:} false; then :
4078
$as_echo_n "(cached) " >&6
4080
if test -z "$GREP"; then
4081
ac_path_GREP_found=false
4082
# Loop through the user's path and test for each of PROGNAME-LIST
4083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4087
test -z "$as_dir" && as_dir=.
4088
for ac_prog in grep ggrep; do
4089
for ac_exec_ext in '' $ac_executable_extensions; do
4090
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4091
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4092
# Check for GNU ac_path_GREP and select it if it is found.
4093
# Check for GNU $ac_path_GREP
4094
case `"$ac_path_GREP" --version 2>&1` in
4096
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4099
$as_echo_n 0123456789 >"conftest.in"
4102
cat "conftest.in" "conftest.in" >"conftest.tmp"
4103
mv "conftest.tmp" "conftest.in"
4104
cp "conftest.in" "conftest.nl"
4105
$as_echo 'GREP' >> "conftest.nl"
4106
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4107
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4108
as_fn_arith $ac_count + 1 && ac_count=$as_val
4109
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4110
# Best one so far, save it but keep looking for a better one
4111
ac_cv_path_GREP="$ac_path_GREP"
4112
ac_path_GREP_max=$ac_count
4114
# 10*(2^10) chars as input seems more than enough
4115
test $ac_count -gt 10 && break
4117
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4120
$ac_path_GREP_found && break 3
4125
if test -z "$ac_cv_path_GREP"; then
4126
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4129
ac_cv_path_GREP=$GREP
4133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4134
$as_echo "$ac_cv_path_GREP" >&6; }
4135
GREP="$ac_cv_path_GREP"
4138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4139
$as_echo_n "checking for egrep... " >&6; }
4140
if ${ac_cv_path_EGREP+:} false; then :
4141
$as_echo_n "(cached) " >&6
4143
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4144
then ac_cv_path_EGREP="$GREP -E"
4146
if test -z "$EGREP"; then
4147
ac_path_EGREP_found=false
4148
# Loop through the user's path and test for each of PROGNAME-LIST
4149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4153
test -z "$as_dir" && as_dir=.
4154
for ac_prog in egrep; do
4155
for ac_exec_ext in '' $ac_executable_extensions; do
4156
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4158
# Check for GNU ac_path_EGREP and select it if it is found.
4159
# Check for GNU $ac_path_EGREP
4160
case `"$ac_path_EGREP" --version 2>&1` in
4162
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4165
$as_echo_n 0123456789 >"conftest.in"
4168
cat "conftest.in" "conftest.in" >"conftest.tmp"
4169
mv "conftest.tmp" "conftest.in"
4170
cp "conftest.in" "conftest.nl"
4171
$as_echo 'EGREP' >> "conftest.nl"
4172
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174
as_fn_arith $ac_count + 1 && ac_count=$as_val
4175
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176
# Best one so far, save it but keep looking for a better one
4177
ac_cv_path_EGREP="$ac_path_EGREP"
4178
ac_path_EGREP_max=$ac_count
4180
# 10*(2^10) chars as input seems more than enough
4181
test $ac_count -gt 10 && break
4183
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4186
$ac_path_EGREP_found && break 3
4191
if test -z "$ac_cv_path_EGREP"; then
4192
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4195
ac_cv_path_EGREP=$EGREP
4200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4201
$as_echo "$ac_cv_path_EGREP" >&6; }
4202
EGREP="$ac_cv_path_EGREP"
4205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4206
$as_echo_n "checking for ANSI C header files... " >&6; }
4207
if ${ac_cv_header_stdc+:} false; then :
4208
$as_echo_n "(cached) " >&6
4210
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211
/* end confdefs.h. */
4225
if ac_fn_c_try_compile "$LINENO"; then :
4226
ac_cv_header_stdc=yes
4228
ac_cv_header_stdc=no
4230
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4232
if test $ac_cv_header_stdc = yes; then
4233
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235
/* end confdefs.h. */
4239
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4240
$EGREP "memchr" >/dev/null 2>&1; then :
4243
ac_cv_header_stdc=no
4249
if test $ac_cv_header_stdc = yes; then
4250
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252
/* end confdefs.h. */
4256
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4257
$EGREP "free" >/dev/null 2>&1; then :
4260
ac_cv_header_stdc=no
4266
if test $ac_cv_header_stdc = yes; then
4267
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4268
if test "$cross_compiling" = yes; then :
4271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272
/* end confdefs.h. */
4275
#if ((' ' & 0x0FF) == 0x020)
4276
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4277
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4279
# define ISLOWER(c) \
4280
(('a' <= (c) && (c) <= 'i') \
4281
|| ('j' <= (c) && (c) <= 'r') \
4282
|| ('s' <= (c) && (c) <= 'z'))
4283
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4286
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4291
for (i = 0; i < 256; i++)
4292
if (XOR (islower (i), ISLOWER (i))
4293
|| toupper (i) != TOUPPER (i))
4298
if ac_fn_c_try_run "$LINENO"; then :
4301
ac_cv_header_stdc=no
4303
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4304
conftest.$ac_objext conftest.beam conftest.$ac_ext
4309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4310
$as_echo "$ac_cv_header_stdc" >&6; }
4311
if test $ac_cv_header_stdc = yes; then
4313
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4317
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319
inttypes.h stdint.h unistd.h
4321
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4322
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4324
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4325
cat >>confdefs.h <<_ACEOF
4326
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4335
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4336
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4343
if test "$MINIX" = yes; then
4345
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4348
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4351
$as_echo "#define _MINIX 1" >>confdefs.h
4356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4357
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4358
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4359
$as_echo_n "(cached) " >&6
4361
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4362
/* end confdefs.h. */
4364
# define __EXTENSIONS__ 1
4365
$ac_includes_default
4374
if ac_fn_c_try_compile "$LINENO"; then :
4375
ac_cv_safe_to_define___extensions__=yes
4377
ac_cv_safe_to_define___extensions__=no
4379
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4382
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4383
test $ac_cv_safe_to_define___extensions__ = yes &&
4384
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4386
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4388
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4390
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4392
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4397
ac_cpp='$CPP $CPPFLAGS'
4398
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403
ac_cpp='$CPP $CPPFLAGS'
4404
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407
if test -n "$ac_tool_prefix"; then
4408
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4409
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4410
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411
$as_echo_n "checking for $ac_word... " >&6; }
4412
if ${ac_cv_prog_CC+:} false; then :
4413
$as_echo_n "(cached) " >&6
4415
if test -n "$CC"; then
4416
ac_cv_prog_CC="$CC" # Let the user override the test.
4418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422
test -z "$as_dir" && as_dir=.
4423
for ac_exec_ext in '' $ac_executable_extensions; do
4424
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4426
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4436
if test -n "$CC"; then
4437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4438
$as_echo "$CC" >&6; }
4440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441
$as_echo "no" >&6; }
4446
if test -z "$ac_cv_prog_CC"; then
4448
# Extract the first word of "gcc", so it can be a program name with args.
4449
set dummy gcc; ac_word=$2
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4451
$as_echo_n "checking for $ac_word... " >&6; }
4452
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4453
$as_echo_n "(cached) " >&6
4455
if test -n "$ac_ct_CC"; then
4456
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462
test -z "$as_dir" && as_dir=.
4463
for ac_exec_ext in '' $ac_executable_extensions; do
4464
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4465
ac_cv_prog_ac_ct_CC="gcc"
4466
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4476
if test -n "$ac_ct_CC"; then
4477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4478
$as_echo "$ac_ct_CC" >&6; }
4480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481
$as_echo "no" >&6; }
4484
if test "x$ac_ct_CC" = x; then
4487
case $cross_compiling:$ac_tool_warned in
4489
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491
ac_tool_warned=yes ;;
4499
if test -z "$CC"; then
4500
if test -n "$ac_tool_prefix"; then
4501
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4502
set dummy ${ac_tool_prefix}cc; ac_word=$2
4503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4504
$as_echo_n "checking for $ac_word... " >&6; }
4505
if ${ac_cv_prog_CC+:} false; then :
4506
$as_echo_n "(cached) " >&6
4508
if test -n "$CC"; then
4509
ac_cv_prog_CC="$CC" # Let the user override the test.
4511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515
test -z "$as_dir" && as_dir=.
4516
for ac_exec_ext in '' $ac_executable_extensions; do
4517
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518
ac_cv_prog_CC="${ac_tool_prefix}cc"
4519
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529
if test -n "$CC"; then
4530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4531
$as_echo "$CC" >&6; }
4533
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534
$as_echo "no" >&6; }
4540
if test -z "$CC"; then
4541
# Extract the first word of "cc", so it can be a program name with args.
4542
set dummy cc; ac_word=$2
4543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4544
$as_echo_n "checking for $ac_word... " >&6; }
4545
if ${ac_cv_prog_CC+:} false; then :
4546
$as_echo_n "(cached) " >&6
4548
if test -n "$CC"; then
4549
ac_cv_prog_CC="$CC" # Let the user override the test.
4552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556
test -z "$as_dir" && as_dir=.
4557
for ac_exec_ext in '' $ac_executable_extensions; do
4558
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4560
ac_prog_rejected=yes
4564
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4571
if test $ac_prog_rejected = yes; then
4572
# We found a bogon in the path, so make sure we never use it.
4573
set dummy $ac_cv_prog_CC
4575
if test $# != 0; then
4576
# We chose a different compiler from the bogus one.
4577
# However, it has the same basename, so the bogon will be chosen
4578
# first if we set CC to just the basename; use the full file name.
4580
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4586
if test -n "$CC"; then
4587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4588
$as_echo "$CC" >&6; }
4590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591
$as_echo "no" >&6; }
4596
if test -z "$CC"; then
4597
if test -n "$ac_tool_prefix"; then
4598
for ac_prog in cl.exe
4600
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4601
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603
$as_echo_n "checking for $ac_word... " >&6; }
4604
if ${ac_cv_prog_CC+:} false; then :
4605
$as_echo_n "(cached) " >&6
4607
if test -n "$CC"; then
4608
ac_cv_prog_CC="$CC" # Let the user override the test.
4610
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614
test -z "$as_dir" && as_dir=.
4615
for ac_exec_ext in '' $ac_executable_extensions; do
4616
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4618
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4628
if test -n "$CC"; then
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4630
$as_echo "$CC" >&6; }
4632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633
$as_echo "no" >&6; }
4637
test -n "$CC" && break
4640
if test -z "$CC"; then
4642
for ac_prog in cl.exe
4644
# Extract the first word of "$ac_prog", so it can be a program name with args.
4645
set dummy $ac_prog; ac_word=$2
4646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647
$as_echo_n "checking for $ac_word... " >&6; }
4648
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4649
$as_echo_n "(cached) " >&6
4651
if test -n "$ac_ct_CC"; then
4652
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658
test -z "$as_dir" && as_dir=.
4659
for ac_exec_ext in '' $ac_executable_extensions; do
4660
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661
ac_cv_prog_ac_ct_CC="$ac_prog"
4662
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4671
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4672
if test -n "$ac_ct_CC"; then
4673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4674
$as_echo "$ac_ct_CC" >&6; }
4676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677
$as_echo "no" >&6; }
4681
test -n "$ac_ct_CC" && break
4684
if test "x$ac_ct_CC" = x; then
4687
case $cross_compiling:$ac_tool_warned in
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4690
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4691
ac_tool_warned=yes ;;
4700
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4701
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4702
as_fn_error $? "no acceptable C compiler found in \$PATH
4703
See \`config.log' for more details" "$LINENO" 5; }
4705
# Provide some information about the compiler.
4706
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4709
for ac_option in --version -v -V -qversion; do
4710
{ { ac_try="$ac_compiler $ac_option >&5"
4712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713
*) ac_try_echo=$ac_try;;
4715
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4716
$as_echo "$ac_try_echo"; } >&5
4717
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4719
if test -s conftest.err; then
4721
... rest of stderr output deleted ...
4722
10q' conftest.err >conftest.er1
4723
cat conftest.er1 >&5
4725
rm -f conftest.er1 conftest.err
4726
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4727
test $ac_status = 0; }
4730
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4731
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4732
if ${ac_cv_c_compiler_gnu+:} false; then :
4733
$as_echo_n "(cached) " >&6
4735
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736
/* end confdefs.h. */
4749
if ac_fn_c_try_compile "$LINENO"; then :
4754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4758
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4759
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4760
if test $ac_compiler_gnu = yes; then
4765
ac_test_CFLAGS=${CFLAGS+set}
4766
ac_save_CFLAGS=$CFLAGS
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4768
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4769
if ${ac_cv_prog_cc_g+:} false; then :
4770
$as_echo_n "(cached) " >&6
4772
ac_save_c_werror_flag=$ac_c_werror_flag
4773
ac_c_werror_flag=yes
4776
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777
/* end confdefs.h. */
4787
if ac_fn_c_try_compile "$LINENO"; then :
4791
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792
/* end confdefs.h. */
4802
if ac_fn_c_try_compile "$LINENO"; then :
4805
ac_c_werror_flag=$ac_save_c_werror_flag
4807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808
/* end confdefs.h. */
4818
if ac_fn_c_try_compile "$LINENO"; then :
4821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826
ac_c_werror_flag=$ac_save_c_werror_flag
4828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4829
$as_echo "$ac_cv_prog_cc_g" >&6; }
4830
if test "$ac_test_CFLAGS" = set; then
4831
CFLAGS=$ac_save_CFLAGS
4832
elif test $ac_cv_prog_cc_g = yes; then
4833
if test "$GCC" = yes; then
4839
if test "$GCC" = yes; then
4845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4846
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4847
if ${ac_cv_prog_cc_c89+:} false; then :
4848
$as_echo_n "(cached) " >&6
4850
ac_cv_prog_cc_c89=no
4852
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4853
/* end confdefs.h. */
4856
#include <sys/types.h>
4857
#include <sys/stat.h>
4858
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4859
struct buf { int x; };
4860
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4861
static char *e (p, i)
4867
static char *f (char * (*g) (char **, int), char **p, ...)
4872
s = g (p, va_arg (v,int));
4877
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4878
function prototypes and stuff, but not '\xHH' hex character constants.
4879
These don't provoke an error unfortunately, instead are silently treated
4880
as 'x'. The following induces an error, until -std is added to get
4881
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4882
array size at least. It's necessary to write '\x00'==0 to get something
4883
that's true only with -std. */
4884
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4886
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4887
inside strings and character constants. */
4889
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4891
int test (int i, double x);
4892
struct s1 {int (*f) (int a);};
4893
struct s2 {int (*f) (double a);};
4894
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4900
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4905
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4906
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4908
CC="$ac_save_CC $ac_arg"
4909
if ac_fn_c_try_compile "$LINENO"; then :
4910
ac_cv_prog_cc_c89=$ac_arg
4912
rm -f core conftest.err conftest.$ac_objext
4913
test "x$ac_cv_prog_cc_c89" != "xno" && break
4915
rm -f conftest.$ac_ext
4920
case "x$ac_cv_prog_cc_c89" in
4922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4923
$as_echo "none needed" >&6; } ;;
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4926
$as_echo "unsupported" >&6; } ;;
4928
CC="$CC $ac_cv_prog_cc_c89"
4929
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4930
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4932
if test "x$ac_cv_prog_cc_c89" != xno; then :
4937
ac_cpp='$CPP $CPPFLAGS'
4938
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4939
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4940
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
4942
depcc="$CC" am_compiler_list=