2387
ac_cpp='$CXXCPP $CPPFLAGS'
2388
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391
if test -z "$CXX"; then
2392
if test -n "$CCC"; then
2376
ac_cpp='$CPP $CPPFLAGS'
2377
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2378
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2379
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2380
if test -n "$ac_tool_prefix"; then
2381
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2382
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2383
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2384
$as_echo_n "checking for $ac_word... " >&6; }
2385
if test "${ac_cv_prog_CC+set}" = set; then
2386
$as_echo_n "(cached) " >&6
2388
if test -n "$CC"; then
2389
ac_cv_prog_CC="$CC" # Let the user override the test.
2391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395
test -z "$as_dir" && as_dir=.
2396
for ac_exec_ext in '' $ac_executable_extensions; do
2397
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2398
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2399
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409
if test -n "$CC"; then
2410
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2411
$as_echo "$CC" >&6; }
2413
{ $as_echo "$as_me:$LINENO: result: no" >&5
2414
$as_echo "no" >&6; }
2419
if test -z "$ac_cv_prog_CC"; then
2421
# Extract the first word of "gcc", so it can be a program name with args.
2422
set dummy gcc; ac_word=$2
2423
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2424
$as_echo_n "checking for $ac_word... " >&6; }
2425
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2426
$as_echo_n "(cached) " >&6
2428
if test -n "$ac_ct_CC"; then
2429
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2431
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2435
test -z "$as_dir" && as_dir=.
2436
for ac_exec_ext in '' $ac_executable_extensions; do
2437
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438
ac_cv_prog_ac_ct_CC="gcc"
2439
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2449
if test -n "$ac_ct_CC"; then
2450
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2451
$as_echo "$ac_ct_CC" >&6; }
2453
{ $as_echo "$as_me:$LINENO: result: no" >&5
2454
$as_echo "no" >&6; }
2457
if test "x$ac_ct_CC" = x; then
2395
if test -n "$ac_tool_prefix"; then
2396
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2460
case $cross_compiling:$ac_tool_warned in
2462
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2463
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2464
ac_tool_warned=yes ;;
2472
if test -z "$CC"; then
2473
if test -n "$ac_tool_prefix"; then
2474
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2475
set dummy ${ac_tool_prefix}cc; ac_word=$2
2476
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2477
$as_echo_n "checking for $ac_word... " >&6; }
2478
if test "${ac_cv_prog_CC+set}" = set; then
2479
$as_echo_n "(cached) " >&6
2481
if test -n "$CC"; then
2482
ac_cv_prog_CC="$CC" # Let the user override the test.
2484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488
test -z "$as_dir" && as_dir=.
2489
for ac_exec_ext in '' $ac_executable_extensions; do
2490
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491
ac_cv_prog_CC="${ac_tool_prefix}cc"
2492
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502
if test -n "$CC"; then
2503
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2504
$as_echo "$CC" >&6; }
2506
{ $as_echo "$as_me:$LINENO: result: no" >&5
2507
$as_echo "no" >&6; }
2513
if test -z "$CC"; then
2514
# Extract the first word of "cc", so it can be a program name with args.
2515
set dummy cc; ac_word=$2
2516
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2517
$as_echo_n "checking for $ac_word... " >&6; }
2518
if test "${ac_cv_prog_CC+set}" = set; then
2519
$as_echo_n "(cached) " >&6
2521
if test -n "$CC"; then
2522
ac_cv_prog_CC="$CC" # Let the user override the test.
2525
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529
test -z "$as_dir" && as_dir=.
2530
for ac_exec_ext in '' $ac_executable_extensions; do
2531
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2532
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2533
ac_prog_rejected=yes
2537
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544
if test $ac_prog_rejected = yes; then
2545
# We found a bogon in the path, so make sure we never use it.
2546
set dummy $ac_cv_prog_CC
2548
if test $# != 0; then
2549
# We chose a different compiler from the bogus one.
2550
# However, it has the same basename, so the bogon will be chosen
2551
# first if we set CC to just the basename; use the full file name.
2553
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2559
if test -n "$CC"; then
2560
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
2561
$as_echo "$CC" >&6; }
2563
{ $as_echo "$as_me:$LINENO: result: no" >&5
2564
$as_echo "no" >&6; }
2569
if test -z "$CC"; then
2570
if test -n "$ac_tool_prefix"; then
2571
for ac_prog in cl.exe
2398
2573
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399
2574
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400
2575
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2401
2576
$as_echo_n "checking for $ac_word... " >&6; }
2402
if test "${ac_cv_prog_CXX+set}" = set; then
2577
if test "${ac_cv_prog_CC+set}" = set; then
2403
2578
$as_echo_n "(cached) " >&6
2405
if test -n "$CXX"; then
2406
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2580
if test -n "$CC"; then
2581
ac_cv_prog_CC="$CC" # Let the user override the test.
2408
2583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409
2584
for as_dir in $PATH
2782
2966
$as_echo "$ac_cv_objext" >&6; }
2783
2967
OBJEXT=$ac_cv_objext
2784
2968
ac_objext=$OBJEXT
2785
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2786
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2787
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2788
$as_echo_n "(cached) " >&6
2790
cat >conftest.$ac_ext <<_ACEOF
2793
cat confdefs.h >>conftest.$ac_ext
2794
cat >>conftest.$ac_ext <<_ACEOF
2795
/* end confdefs.h. */
2808
rm -f conftest.$ac_objext
2809
if { (ac_try="$ac_compile"
2811
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812
*) ac_try_echo=$ac_try;;
2814
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2815
$as_echo "$ac_try_echo") >&5
2816
(eval "$ac_compile") 2>conftest.er1
2818
grep -v '^ *+' conftest.er1 >conftest.err
2820
cat conftest.err >&5
2821
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822
(exit $ac_status); } && {
2823
test -z "$ac_cxx_werror_flag" ||
2824
test ! -s conftest.err
2825
} && test -s conftest.$ac_objext; then
2828
$as_echo "$as_me: failed program was:" >&5
2829
sed 's/^/| /' conftest.$ac_ext >&5
2834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2838
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2839
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2840
if test $ac_compiler_gnu = yes; then
2845
ac_test_CXXFLAGS=${CXXFLAGS+set}
2846
ac_save_CXXFLAGS=$CXXFLAGS
2847
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2848
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
2849
if test "${ac_cv_prog_cxx_g+set}" = set; then
2850
$as_echo_n "(cached) " >&6
2852
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2853
ac_cxx_werror_flag=yes
2856
cat >conftest.$ac_ext <<_ACEOF
2859
cat confdefs.h >>conftest.$ac_ext
2860
cat >>conftest.$ac_ext <<_ACEOF
2861
/* end confdefs.h. */
2871
rm -f conftest.$ac_objext
2872
if { (ac_try="$ac_compile"
2874
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875
*) ac_try_echo=$ac_try;;
2877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2878
$as_echo "$ac_try_echo") >&5
2879
(eval "$ac_compile") 2>conftest.er1
2881
grep -v '^ *+' conftest.er1 >conftest.err
2883
cat conftest.err >&5
2884
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885
(exit $ac_status); } && {
2886
test -z "$ac_cxx_werror_flag" ||
2887
test ! -s conftest.err
2888
} && test -s conftest.$ac_objext; then
2889
ac_cv_prog_cxx_g=yes
2891
$as_echo "$as_me: failed program was:" >&5
2892
sed 's/^/| /' conftest.$ac_ext >&5
2895
cat >conftest.$ac_ext <<_ACEOF
2898
cat confdefs.h >>conftest.$ac_ext
2899
cat >>conftest.$ac_ext <<_ACEOF
2900
/* end confdefs.h. */
2910
rm -f conftest.$ac_objext
2911
if { (ac_try="$ac_compile"
2913
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2914
*) ac_try_echo=$ac_try;;
2916
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2917
$as_echo "$ac_try_echo") >&5
2918
(eval "$ac_compile") 2>conftest.er1
2920
grep -v '^ *+' conftest.er1 >conftest.err
2922
cat conftest.err >&5
2923
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924
(exit $ac_status); } && {
2925
test -z "$ac_cxx_werror_flag" ||
2926
test ! -s conftest.err
2927
} && test -s conftest.$ac_objext; then
2930
$as_echo "$as_me: failed program was:" >&5
2931
sed 's/^/| /' conftest.$ac_ext >&5
2933
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2935
cat >conftest.$ac_ext <<_ACEOF
2938
cat confdefs.h >>conftest.$ac_ext
2939
cat >>conftest.$ac_ext <<_ACEOF
2940
/* end confdefs.h. */
2950
rm -f conftest.$ac_objext
2951
if { (ac_try="$ac_compile"
2953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954
*) ac_try_echo=$ac_try;;
2956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2957
$as_echo "$ac_try_echo") >&5
2958
(eval "$ac_compile") 2>conftest.er1
2960
grep -v '^ *+' conftest.er1 >conftest.err
2962
cat conftest.err >&5
2963
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964
(exit $ac_status); } && {
2965
test -z "$ac_cxx_werror_flag" ||
2966
test ! -s conftest.err
2967
} && test -s conftest.$ac_objext; then
2968
ac_cv_prog_cxx_g=yes
2970
$as_echo "$as_me: failed program was:" >&5
2971
sed 's/^/| /' conftest.$ac_ext >&5
2976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2982
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2985
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2986
$as_echo "$ac_cv_prog_cxx_g" >&6; }
2987
if test "$ac_test_CXXFLAGS" = set; then
2988
CXXFLAGS=$ac_save_CXXFLAGS
2989
elif test $ac_cv_prog_cxx_g = yes; then
2990
if test "$GXX" = yes; then
2996
if test "$GXX" = yes; then
3003
ac_cpp='$CPP $CPPFLAGS'
3004
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3005
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3006
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007
DEPDIR="${am__leading_dot}deps"
3009
ac_config_commands="$ac_config_commands depfiles"
3012
am_make=${MAKE-make}
3013
cat > confinc << 'END'
3018
# If we don't find an include directive, just comment out the code.
3019
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3020
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3024
# First try GNU make style include.
3025
echo "include confinc" > confmf
3026
# We grep out `Entering directory' and `Leaving directory'
3027
# messages which can occur if `w' ends up in MAKEFLAGS.
3028
# In particular we don't look at `^make:' because GNU make might
3029
# be invoked under some other name (usually "gmake"), in which
3030
# case it prints its new name instead of `make'.
3031
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3036
# Now try BSD make style include.
3037
if test "$am__include" = "#"; then
3038
echo '.include "confinc"' > confmf
3039
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3040
am__include=.include
3047
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3048
$as_echo "$_am_result" >&6; }
3049
rm -f confinc confmf
3051
# Check whether --enable-dependency-tracking was given.
3052
if test "${enable_dependency_tracking+set}" = set; then
3053
enableval=$enable_dependency_tracking;
3056
if test "x$enable_dependency_tracking" != xno; then
3057
am_depcomp="$ac_aux_dir/depcomp"
3060
if test "x$enable_dependency_tracking" != xno; then
3070
depcc="$CXX" am_compiler_list=
3072
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3073
$as_echo_n "checking dependency style of $depcc... " >&6; }
3074
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3075
$as_echo_n "(cached) " >&6
3077
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3078
# We make a subdir and do the tests there. Otherwise we can end up
3079
# making bogus files that we don't know about and never remove. For
3080
# instance it was reported that on HP-UX the gcc test will end up
3081
# making a dummy file named `D' -- because `-MD' means `put the output
3084
# Copy depcomp to subdir because otherwise we won't find it if we're
3085
# using a relative directory.
3086
cp "$am_depcomp" conftest.dir
3088
# We will build objects and dependencies in a subdirectory because
3089
# it helps to detect inapplicable dependency modes. For instance
3090
# both Tru64's cc and ICC support -MD to output dependencies as a
3091
# side effect of compilation, but ICC will put the dependencies in
3092
# the current directory while Tru64 will put them in the object
3096
am_cv_CXX_dependencies_compiler_type=none
3097
if test "$am_compiler_list" = ""; then
3098
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3100
for depmode in $am_compiler_list; do
3101
# Setup a source with many dependencies, because some compilers
3102
# like to wrap large dependency lists on column 80 (with \), and
3103
# we should not choose a depcomp mode which is confused by this.
3105
# We need to recreate these files for each test, as the compiler may
3106
# overwrite some of them when testing with obscure command lines.
3107
# This happens at least with the AIX C compiler.
3109
for i in 1 2 3 4 5 6; do
3110
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3111
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3112
# Solaris 8's {/usr,}/bin/sh.
3113
touch sub/conftst$i.h
3115
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3119
# after this tag, mechanisms are not by side-effect, so they'll
3120
# only be used when explicitly requested
3121
if test "x$enable_dependency_tracking" = xyes; then
3129
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3130
# mode. It turns out that the SunPro C++ compiler does not properly
3131
# handle `-M -o', and we need to detect this.
3132
if depmode=$depmode \
3133
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3134
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3135
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3136
>/dev/null 2>conftest.err &&
3137
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3138
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3139
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3140
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3141
# icc doesn't choke on unknown options, it will just issue warnings
3142
# or remarks (even with -Werror). So we grep stderr for any message
3143
# that says an option was ignored or not supported.
3144
# When given -MP, icc 7.0 and 7.1 complain thusly:
3145
# icc: Command line warning: ignoring option '-M'; no argument required
3146
# The diagnosis changed in icc 8.0:
3147
# icc: Command line remark: option '-MP' not supported
3148
if (grep 'ignoring option' conftest.err ||
3149
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3150
am_cv_CXX_dependencies_compiler_type=$depmode
3159
am_cv_CXX_dependencies_compiler_type=none
3163
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3164
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3165
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3168
test "x$enable_dependency_tracking" != xno \
3169
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3170
am__fastdepCXX_TRUE=
3171
am__fastdepCXX_FALSE='#'
3173
am__fastdepCXX_TRUE='#'
3174
am__fastdepCXX_FALSE=
3179
ac_cpp='$CPP $CPPFLAGS'
3180
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
if test -n "$ac_tool_prefix"; then
3184
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3185
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3186
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187
$as_echo_n "checking for $ac_word... " >&6; }
3188
if test "${ac_cv_prog_CC+set}" = set; then
3189
$as_echo_n "(cached) " >&6
3191
if test -n "$CC"; then
3192
ac_cv_prog_CC="$CC" # Let the user override the test.
3194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198
test -z "$as_dir" && as_dir=.
3199
for ac_exec_ext in '' $ac_executable_extensions; do
3200
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3201
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3202
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212
if test -n "$CC"; then
3213
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3214
$as_echo "$CC" >&6; }
3216
{ $as_echo "$as_me:$LINENO: result: no" >&5
3217
$as_echo "no" >&6; }
3222
if test -z "$ac_cv_prog_CC"; then
3224
# Extract the first word of "gcc", so it can be a program name with args.
3225
set dummy gcc; ac_word=$2
3226
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3227
$as_echo_n "checking for $ac_word... " >&6; }
3228
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3229
$as_echo_n "(cached) " >&6
3231
if test -n "$ac_ct_CC"; then
3232
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3234
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238
test -z "$as_dir" && as_dir=.
3239
for ac_exec_ext in '' $ac_executable_extensions; do
3240
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241
ac_cv_prog_ac_ct_CC="gcc"
3242
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3252
if test -n "$ac_ct_CC"; then
3253
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3254
$as_echo "$ac_ct_CC" >&6; }
3256
{ $as_echo "$as_me:$LINENO: result: no" >&5
3257
$as_echo "no" >&6; }
3260
if test "x$ac_ct_CC" = x; then
3263
case $cross_compiling:$ac_tool_warned in
3265
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3266
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3267
ac_tool_warned=yes ;;
3275
if test -z "$CC"; then
3276
if test -n "$ac_tool_prefix"; then
3277
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3278
set dummy ${ac_tool_prefix}cc; ac_word=$2
3279
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3280
$as_echo_n "checking for $ac_word... " >&6; }
3281
if test "${ac_cv_prog_CC+set}" = set; then
3282
$as_echo_n "(cached) " >&6
3284
if test -n "$CC"; then
3285
ac_cv_prog_CC="$CC" # Let the user override the test.
3287
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291
test -z "$as_dir" && as_dir=.
3292
for ac_exec_ext in '' $ac_executable_extensions; do
3293
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3294
ac_cv_prog_CC="${ac_tool_prefix}cc"
3295
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305
if test -n "$CC"; then
3306
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3307
$as_echo "$CC" >&6; }
3309
{ $as_echo "$as_me:$LINENO: result: no" >&5
3310
$as_echo "no" >&6; }
3316
if test -z "$CC"; then
3317
# Extract the first word of "cc", so it can be a program name with args.
3318
set dummy cc; ac_word=$2
3319
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3320
$as_echo_n "checking for $ac_word... " >&6; }
3321
if test "${ac_cv_prog_CC+set}" = set; then
3322
$as_echo_n "(cached) " >&6
3324
if test -n "$CC"; then
3325
ac_cv_prog_CC="$CC" # Let the user override the test.
3328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332
test -z "$as_dir" && as_dir=.
3333
for ac_exec_ext in '' $ac_executable_extensions; do
3334
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3335
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3336
ac_prog_rejected=yes
3340
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3347
if test $ac_prog_rejected = yes; then
3348
# We found a bogon in the path, so make sure we never use it.
3349
set dummy $ac_cv_prog_CC
3351
if test $# != 0; then
3352
# We chose a different compiler from the bogus one.
3353
# However, it has the same basename, so the bogon will be chosen
3354
# first if we set CC to just the basename; use the full file name.
3356
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3362
if test -n "$CC"; then
3363
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3364
$as_echo "$CC" >&6; }
3366
{ $as_echo "$as_me:$LINENO: result: no" >&5
3367
$as_echo "no" >&6; }
3372
if test -z "$CC"; then
3373
if test -n "$ac_tool_prefix"; then
3374
for ac_prog in cl.exe
3376
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3377
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3378
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3379
$as_echo_n "checking for $ac_word... " >&6; }
3380
if test "${ac_cv_prog_CC+set}" = set; then
3381
$as_echo_n "(cached) " >&6
3383
if test -n "$CC"; then
3384
ac_cv_prog_CC="$CC" # Let the user override the test.
3386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390
test -z "$as_dir" && as_dir=.
3391
for ac_exec_ext in '' $ac_executable_extensions; do
3392
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3394
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404
if test -n "$CC"; then
3405
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3406
$as_echo "$CC" >&6; }
3408
{ $as_echo "$as_me:$LINENO: result: no" >&5
3409
$as_echo "no" >&6; }
3413
test -n "$CC" && break
3416
if test -z "$CC"; then
3418
for ac_prog in cl.exe
3420
# Extract the first word of "$ac_prog", so it can be a program name with args.
3421
set dummy $ac_prog; ac_word=$2
3422
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3423
$as_echo_n "checking for $ac_word... " >&6; }
3424
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3425
$as_echo_n "(cached) " >&6
3427
if test -n "$ac_ct_CC"; then
3428
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434
test -z "$as_dir" && as_dir=.
3435
for ac_exec_ext in '' $ac_executable_extensions; do
3436
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437
ac_cv_prog_ac_ct_CC="$ac_prog"
3438
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448
if test -n "$ac_ct_CC"; then
3449
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3450
$as_echo "$ac_ct_CC" >&6; }
3452
{ $as_echo "$as_me:$LINENO: result: no" >&5
3453
$as_echo "no" >&6; }
3457
test -n "$ac_ct_CC" && break
3460
if test "x$ac_ct_CC" = x; then
3463
case $cross_compiling:$ac_tool_warned in
3465
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3466
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3467
ac_tool_warned=yes ;;
3476
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3477
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3479
See \`config.log' for more details." >&5
3480
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3481
See \`config.log' for more details." >&2;}
3482
{ (exit 1); exit 1; }; }; }
3484
# Provide some information about the compiler.
3485
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3488
{ (ac_try="$ac_compiler --version >&5"
3490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491
*) ac_try_echo=$ac_try;;
3493
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3494
$as_echo "$ac_try_echo") >&5
3495
(eval "$ac_compiler --version >&5") 2>&5
3497
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498
(exit $ac_status); }
3499
{ (ac_try="$ac_compiler -v >&5"
3501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502
*) ac_try_echo=$ac_try;;
3504
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3505
$as_echo "$ac_try_echo") >&5
3506
(eval "$ac_compiler -v >&5") 2>&5
3508
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); }
3510
{ (ac_try="$ac_compiler -V >&5"
3512
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513
*) ac_try_echo=$ac_try;;
3515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3516
$as_echo "$ac_try_echo") >&5
3517
(eval "$ac_compiler -V >&5") 2>&5
3519
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520
(exit $ac_status); }
3522
2969
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3523
2970
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3524
2971
if test "${ac_cv_c_compiler_gnu+set}" = set; then