2938
2938
ac_config_headers="$ac_config_headers config.h"
2941
# checks for programs.
2943
ac_cpp='$CXXCPP $CPPFLAGS'
2944
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2947
if test -z "$CXX"; then
2948
if test -n "$CCC"; then
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2943
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2948
macro_version='2.2.6'
2949
macro_revision='1.3012'
2963
ltmain="$ac_aux_dir/ltmain.sh"
2965
# Make sure we can run config.sub.
2966
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2967
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2970
$as_echo_n "checking build system type... " >&6; }
2971
if test "${ac_cv_build+set}" = set; then :
2972
$as_echo_n "(cached) " >&6
2974
ac_build_alias=$build_alias
2975
test "x$ac_build_alias" = x &&
2976
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2977
test "x$ac_build_alias" = x &&
2978
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2979
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2980
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2984
$as_echo "$ac_cv_build" >&6; }
2985
case $ac_cv_build in
2987
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2990
ac_save_IFS=$IFS; IFS='-'
2996
# Remember, the first character of IFS is used to create $*,
2997
# except with old shells:
3000
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3004
$as_echo_n "checking host system type... " >&6; }
3005
if test "${ac_cv_host+set}" = set; then :
3006
$as_echo_n "(cached) " >&6
3008
if test "x$host_alias" = x; then
3009
ac_cv_host=$ac_cv_build
3011
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3012
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3016
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3017
$as_echo "$ac_cv_host" >&6; }
3020
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3023
ac_save_IFS=$IFS; IFS='-'
3029
# Remember, the first character of IFS is used to create $*,
3030
# except with old shells:
3033
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3036
DEPDIR="${am__leading_dot}deps"
3038
ac_config_commands="$ac_config_commands depfiles"
3041
am_make=${MAKE-make}
3042
cat > confinc << 'END'
3044
@echo this is the am__doit target
3047
# If we don't find an include directive, just comment out the code.
3048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3049
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3053
# First try GNU make style include.
3054
echo "include confinc" > confmf
3055
# Ignore all kinds of additional output from `make'.
3056
case `$am_make -s -f confmf 2> /dev/null` in #(
3057
*the\ am__doit\ target*)
3063
# Now try BSD make style include.
3064
if test "$am__include" = "#"; then
3065
echo '.include "confinc"' > confmf
3066
case `$am_make -s -f confmf 2> /dev/null` in #(
3067
*the\ am__doit\ target*)
3068
am__include=.include
3076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3077
$as_echo "$_am_result" >&6; }
3078
rm -f confinc confmf
3080
# Check whether --enable-dependency-tracking was given.
3081
if test "${enable_dependency_tracking+set}" = set; then :
3082
enableval=$enable_dependency_tracking;
3085
if test "x$enable_dependency_tracking" != xno; then
3086
am_depcomp="$ac_aux_dir/depcomp"
3089
if test "x$enable_dependency_tracking" != xno; then
3099
ac_cpp='$CPP $CPPFLAGS'
3100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
if test -n "$ac_tool_prefix"; then
3104
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3105
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3106
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107
$as_echo_n "checking for $ac_word... " >&6; }
3108
if test "${ac_cv_prog_CC+set}" = set; then :
3109
$as_echo_n "(cached) " >&6
3111
if test -n "$CC"; then
3112
ac_cv_prog_CC="$CC" # Let the user override the test.
3114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118
test -z "$as_dir" && as_dir=.
3119
for ac_exec_ext in '' $ac_executable_extensions; do
3120
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132
if test -n "$CC"; then
3133
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134
$as_echo "$CC" >&6; }
3136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137
$as_echo "no" >&6; }
3142
if test -z "$ac_cv_prog_CC"; then
3144
# Extract the first word of "gcc", so it can be a program name with args.
3145
set dummy gcc; ac_word=$2
3146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147
$as_echo_n "checking for $ac_word... " >&6; }
3148
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3149
$as_echo_n "(cached) " >&6
3151
if test -n "$ac_ct_CC"; then
3152
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158
test -z "$as_dir" && as_dir=.
3159
for ac_exec_ext in '' $ac_executable_extensions; do
3160
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161
ac_cv_prog_ac_ct_CC="gcc"
3162
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3171
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172
if test -n "$ac_ct_CC"; then
3173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174
$as_echo "$ac_ct_CC" >&6; }
3176
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177
$as_echo "no" >&6; }
3180
if test "x$ac_ct_CC" = x; then
2951
if test -n "$ac_tool_prefix"; then
2952
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3183
case $cross_compiling:$ac_tool_warned in
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3186
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3187
ac_tool_warned=yes ;;
3195
if test -z "$CC"; then
3196
if test -n "$ac_tool_prefix"; then
3197
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3198
set dummy ${ac_tool_prefix}cc; ac_word=$2
3199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3200
$as_echo_n "checking for $ac_word... " >&6; }
3201
if test "${ac_cv_prog_CC+set}" = set; then :
3202
$as_echo_n "(cached) " >&6
3204
if test -n "$CC"; then
3205
ac_cv_prog_CC="$CC" # Let the user override the test.
3207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211
test -z "$as_dir" && as_dir=.
3212
for ac_exec_ext in '' $ac_executable_extensions; do
3213
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214
ac_cv_prog_CC="${ac_tool_prefix}cc"
3215
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225
if test -n "$CC"; then
3226
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3227
$as_echo "$CC" >&6; }
3229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230
$as_echo "no" >&6; }
3236
if test -z "$CC"; then
3237
# Extract the first word of "cc", so it can be a program name with args.
3238
set dummy cc; ac_word=$2
3239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3240
$as_echo_n "checking for $ac_word... " >&6; }
3241
if test "${ac_cv_prog_CC+set}" = set; then :
3242
$as_echo_n "(cached) " >&6
3244
if test -n "$CC"; then
3245
ac_cv_prog_CC="$CC" # Let the user override the test.
3248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252
test -z "$as_dir" && as_dir=.
3253
for ac_exec_ext in '' $ac_executable_extensions; do
3254
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3255
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3256
ac_prog_rejected=yes
3260
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3267
if test $ac_prog_rejected = yes; then
3268
# We found a bogon in the path, so make sure we never use it.
3269
set dummy $ac_cv_prog_CC
3271
if test $# != 0; then
3272
# We chose a different compiler from the bogus one.
3273
# However, it has the same basename, so the bogon will be chosen
3274
# first if we set CC to just the basename; use the full file name.
3276
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3282
if test -n "$CC"; then
3283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284
$as_echo "$CC" >&6; }
3286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287
$as_echo "no" >&6; }
3292
if test -z "$CC"; then
3293
if test -n "$ac_tool_prefix"; then
3294
for ac_prog in cl.exe
2954
3296
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2955
3297
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2956
3298
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957
3299
$as_echo_n "checking for $ac_word... " >&6; }
2958
if test "${ac_cv_prog_CXX+set}" = set; then :
3300
if test "${ac_cv_prog_CC+set}" = set; then :
2959
3301
$as_echo_n "(cached) " >&6
2961
if test -n "$CXX"; then
2962
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3303
if test -n "$CC"; then
3304
ac_cv_prog_CC="$CC" # Let the user override the test.
2964
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965
3307
for as_dir in $PATH
3302
3650
$as_echo "$ac_cv_objext" >&6; }
3303
3651
OBJEXT=$ac_cv_objext
3304
3652
ac_objext=$OBJEXT
3305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3306
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3307
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3308
$as_echo_n "(cached) " >&6
3310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311
/* end confdefs.h. */
3324
if ac_fn_cxx_try_compile "$LINENO"; then :
3329
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3333
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3334
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3335
if test $ac_compiler_gnu = yes; then
3340
ac_test_CXXFLAGS=${CXXFLAGS+set}
3341
ac_save_CXXFLAGS=$CXXFLAGS
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3343
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3344
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3345
$as_echo_n "(cached) " >&6
3347
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3348
ac_cxx_werror_flag=yes
3351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352
/* end confdefs.h. */
3362
if ac_fn_cxx_try_compile "$LINENO"; then :
3363
ac_cv_prog_cxx_g=yes
3366
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367
/* end confdefs.h. */
3377
if ac_fn_cxx_try_compile "$LINENO"; then :
3380
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383
/* end confdefs.h. */
3393
if ac_fn_cxx_try_compile "$LINENO"; then :
3394
ac_cv_prog_cxx_g=yes
3396
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3401
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3403
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3404
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3405
if test "$ac_test_CXXFLAGS" = set; then
3406
CXXFLAGS=$ac_save_CXXFLAGS
3407
elif test $ac_cv_prog_cxx_g = yes; then
3408
if test "$GXX" = yes; then
3414
if test "$GXX" = yes; then
3421
ac_cpp='$CPP $CPPFLAGS'
3422
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3423
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3424
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425
DEPDIR="${am__leading_dot}deps"
3427
ac_config_commands="$ac_config_commands depfiles"
3430
am_make=${MAKE-make}
3431
cat > confinc << 'END'
3433
@echo this is the am__doit target
3436
# If we don't find an include directive, just comment out the code.
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3438
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3442
# First try GNU make style include.
3443
echo "include confinc" > confmf
3444
# Ignore all kinds of additional output from `make'.
3445
case `$am_make -s -f confmf 2> /dev/null` in #(
3446
*the\ am__doit\ target*)
3452
# Now try BSD make style include.
3453
if test "$am__include" = "#"; then
3454
echo '.include "confinc"' > confmf
3455
case `$am_make -s -f confmf 2> /dev/null` in #(
3456
*the\ am__doit\ target*)
3457
am__include=.include
3465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3466
$as_echo "$_am_result" >&6; }
3467
rm -f confinc confmf
3469
# Check whether --enable-dependency-tracking was given.
3470
if test "${enable_dependency_tracking+set}" = set; then :
3471
enableval=$enable_dependency_tracking;
3474
if test "x$enable_dependency_tracking" != xno; then
3475
am_depcomp="$ac_aux_dir/depcomp"
3478
if test "x$enable_dependency_tracking" != xno; then
3488
depcc="$CXX" am_compiler_list=
3490
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3491
$as_echo_n "checking dependency style of $depcc... " >&6; }
3492
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3493
$as_echo_n "(cached) " >&6
3495
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3496
# We make a subdir and do the tests there. Otherwise we can end up
3497
# making bogus files that we don't know about and never remove. For
3498
# instance it was reported that on HP-UX the gcc test will end up
3499
# making a dummy file named `D' -- because `-MD' means `put the output
3502
# Copy depcomp to subdir because otherwise we won't find it if we're
3503
# using a relative directory.
3504
cp "$am_depcomp" conftest.dir
3506
# We will build objects and dependencies in a subdirectory because
3507
# it helps to detect inapplicable dependency modes. For instance
3508
# both Tru64's cc and ICC support -MD to output dependencies as a
3509
# side effect of compilation, but ICC will put the dependencies in
3510
# the current directory while Tru64 will put them in the object
3514
am_cv_CXX_dependencies_compiler_type=none
3515
if test "$am_compiler_list" = ""; then
3516
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3519
case " $depcc " in #(
3520
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3523
for depmode in $am_compiler_list; do
3524
# Setup a source with many dependencies, because some compilers
3525
# like to wrap large dependency lists on column 80 (with \), and
3526
# we should not choose a depcomp mode which is confused by this.
3528
# We need to recreate these files for each test, as the compiler may
3529
# overwrite some of them when testing with obscure command lines.
3530
# This happens at least with the AIX C compiler.
3532
for i in 1 2 3 4 5 6; do
3533
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3534
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3535
# Solaris 8's {/usr,}/bin/sh.
3536
touch sub/conftst$i.h
3538
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3540
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3541
# mode. It turns out that the SunPro C++ compiler does not properly
3542
# handle `-M -o', and we need to detect this. Also, some Intel
3543
# versions had trouble with output in subdirs
3544
am__obj=sub/conftest.${OBJEXT-o}
3545
am__minus_obj="-o $am__obj"
3548
# This depmode causes a compiler race in universal mode.
3549
test "$am__universal" = false || continue
3552
# after this tag, mechanisms are not by side-effect, so they'll
3553
# only be used when explicitly requested
3554
if test "x$enable_dependency_tracking" = xyes; then
3560
msvisualcpp | msvcmsys)
3561
# This compiler won't grok `-c -o', but also, the minuso test has
3562
# not run yet. These depmodes are late enough in the game, and
3563
# so weak that their functioning should not be impacted.
3564
am__obj=conftest.${OBJEXT-o}
3569
if depmode=$depmode \
3570
source=sub/conftest.c object=$am__obj \
3571
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3572
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3573
>/dev/null 2>conftest.err &&
3574
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3575
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3576
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3577
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3578
# icc doesn't choke on unknown options, it will just issue warnings
3579
# or remarks (even with -Werror). So we grep stderr for any message
3580
# that says an option was ignored or not supported.
3581
# When given -MP, icc 7.0 and 7.1 complain thusly:
3582
# icc: Command line warning: ignoring option '-M'; no argument required
3583
# The diagnosis changed in icc 8.0:
3584
# icc: Command line remark: option '-MP' not supported
3585
if (grep 'ignoring option' conftest.err ||
3586
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3587
am_cv_CXX_dependencies_compiler_type=$depmode
3596
am_cv_CXX_dependencies_compiler_type=none
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3601
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3602
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3605
test "x$enable_dependency_tracking" != xno \
3606
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3607
am__fastdepCXX_TRUE=
3608
am__fastdepCXX_FALSE='#'
3610
am__fastdepCXX_TRUE='#'
3611
am__fastdepCXX_FALSE=
3617
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3618
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3623
macro_version='2.2.6'
3624
macro_revision='1.3012'
3638
ltmain="$ac_aux_dir/ltmain.sh"
3640
# Make sure we can run config.sub.
3641
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3642
as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3645
$as_echo_n "checking build system type... " >&6; }
3646
if test "${ac_cv_build+set}" = set; then :
3647
$as_echo_n "(cached) " >&6
3649
ac_build_alias=$build_alias
3650
test "x$ac_build_alias" = x &&
3651
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3652
test "x$ac_build_alias" = x &&
3653
as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3654
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3655
as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3659
$as_echo "$ac_cv_build" >&6; }
3660
case $ac_cv_build in
3662
*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3665
ac_save_IFS=$IFS; IFS='-'
3671
# Remember, the first character of IFS is used to create $*,
3672
# except with old shells:
3675
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3678
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3679
$as_echo_n "checking host system type... " >&6; }
3680
if test "${ac_cv_host+set}" = set; then :
3681
$as_echo_n "(cached) " >&6
3683
if test "x$host_alias" = x; then
3684
ac_cv_host=$ac_cv_build
3686
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3687
as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3692
$as_echo "$ac_cv_host" >&6; }
3695
*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3698
ac_save_IFS=$IFS; IFS='-'
3704
# Remember, the first character of IFS is used to create $*,
3705
# except with old shells:
3708
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3712
ac_cpp='$CPP $CPPFLAGS'
3713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
if test -n "$ac_tool_prefix"; then
3717
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3718
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3720
$as_echo_n "checking for $ac_word... " >&6; }
3721
if test "${ac_cv_prog_CC+set}" = set; then :
3722
$as_echo_n "(cached) " >&6
3724
if test -n "$CC"; then
3725
ac_cv_prog_CC="$CC" # Let the user override the test.
3727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731
test -z "$as_dir" && as_dir=.
3732
for ac_exec_ext in '' $ac_executable_extensions; do
3733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3735
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745
if test -n "$CC"; then
3746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3747
$as_echo "$CC" >&6; }
3749
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750
$as_echo "no" >&6; }
3755
if test -z "$ac_cv_prog_CC"; then
3757
# Extract the first word of "gcc", so it can be a program name with args.
3758
set dummy gcc; ac_word=$2
3759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760
$as_echo_n "checking for $ac_word... " >&6; }
3761
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3762
$as_echo_n "(cached) " >&6
3764
if test -n "$ac_ct_CC"; then
3765
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771
test -z "$as_dir" && as_dir=.
3772
for ac_exec_ext in '' $ac_executable_extensions; do
3773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774
ac_cv_prog_ac_ct_CC="gcc"
3775
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3784
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3785
if test -n "$ac_ct_CC"; then
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3787
$as_echo "$ac_ct_CC" >&6; }
3789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790
$as_echo "no" >&6; }
3793
if test "x$ac_ct_CC" = x; then
3796
case $cross_compiling:$ac_tool_warned in
3798
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3800
ac_tool_warned=yes ;;
3808
if test -z "$CC"; then
3809
if test -n "$ac_tool_prefix"; then
3810
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3811
set dummy ${ac_tool_prefix}cc; ac_word=$2
3812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813
$as_echo_n "checking for $ac_word... " >&6; }
3814
if test "${ac_cv_prog_CC+set}" = set; then :
3815
$as_echo_n "(cached) " >&6
3817
if test -n "$CC"; then
3818
ac_cv_prog_CC="$CC" # Let the user override the test.
3820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824
test -z "$as_dir" && as_dir=.
3825
for ac_exec_ext in '' $ac_executable_extensions; do
3826
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3827
ac_cv_prog_CC="${ac_tool_prefix}cc"
3828
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3838
if test -n "$CC"; then
3839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840
$as_echo "$CC" >&6; }
3842
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843
$as_echo "no" >&6; }
3849
if test -z "$CC"; then
3850
# Extract the first word of "cc", so it can be a program name with args.
3851
set dummy cc; ac_word=$2
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853
$as_echo_n "checking for $ac_word... " >&6; }
3854
if test "${ac_cv_prog_CC+set}" = set; then :
3855
$as_echo_n "(cached) " >&6
3857
if test -n "$CC"; then
3858
ac_cv_prog_CC="$CC" # Let the user override the test.
3861
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865
test -z "$as_dir" && as_dir=.
3866
for ac_exec_ext in '' $ac_executable_extensions; do
3867
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3868
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3869
ac_prog_rejected=yes
3873
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880
if test $ac_prog_rejected = yes; then
3881
# We found a bogon in the path, so make sure we never use it.
3882
set dummy $ac_cv_prog_CC
3884
if test $# != 0; then
3885
# We chose a different compiler from the bogus one.
3886
# However, it has the same basename, so the bogon will be chosen
3887
# first if we set CC to just the basename; use the full file name.
3889
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3895
if test -n "$CC"; then
3896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897
$as_echo "$CC" >&6; }
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900
$as_echo "no" >&6; }
3905
if test -z "$CC"; then
3906
if test -n "$ac_tool_prefix"; then
3907
for ac_prog in cl.exe
3909
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3910
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912
$as_echo_n "checking for $ac_word... " >&6; }
3913
if test "${ac_cv_prog_CC+set}" = set; then :
3914
$as_echo_n "(cached) " >&6
3916
if test -n "$CC"; then
3917
ac_cv_prog_CC="$CC" # Let the user override the test.
3919
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923
test -z "$as_dir" && as_dir=.
3924
for ac_exec_ext in '' $ac_executable_extensions; do
3925
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3926
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3927
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3937
if test -n "$CC"; then
3938
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939
$as_echo "$CC" >&6; }
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942
$as_echo "no" >&6; }
3946
test -n "$CC" && break
3949
if test -z "$CC"; then
3951
for ac_prog in cl.exe
3953
# Extract the first word of "$ac_prog", so it can be a program name with args.
3954
set dummy $ac_prog; ac_word=$2
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956
$as_echo_n "checking for $ac_word... " >&6; }
3957
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3958
$as_echo_n "(cached) " >&6
3960
if test -n "$ac_ct_CC"; then
3961
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967
test -z "$as_dir" && as_dir=.
3968
for ac_exec_ext in '' $ac_executable_extensions; do
3969
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3970
ac_cv_prog_ac_ct_CC="$ac_prog"
3971
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3980
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981
if test -n "$ac_ct_CC"; then
3982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3983
$as_echo "$ac_ct_CC" >&6; }
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986
$as_echo "no" >&6; }
3990
test -n "$ac_ct_CC" && break
3993
if test "x$ac_ct_CC" = x; then
3996
case $cross_compiling:$ac_tool_warned in
3998
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3999
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4000
ac_tool_warned=yes ;;
4009
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4010
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4011
as_fn_error "no acceptable C compiler found in \$PATH
4012
See \`config.log' for more details." "$LINENO" 5; }
4014
# Provide some information about the compiler.
4015
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4018
for ac_option in --version -v -V -qversion; do
4019
{ { ac_try="$ac_compiler $ac_option >&5"
4021
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022
*) ac_try_echo=$ac_try;;
4024
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025
$as_echo "$ac_try_echo"; } >&5
4026
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4028
if test -s conftest.err; then
4030
... rest of stderr output deleted ...
4031
10q' conftest.err >conftest.er1
4032
cat conftest.er1 >&5
4033
rm -f conftest.er1 conftest.err
4035
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4036
test $ac_status = 0; }
4039
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4040
3654
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4041
3655
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7205
ac_cpp='$CXXCPP $CPPFLAGS'
7206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7209
if test -z "$CXX"; then
7210
if test -n "$CCC"; then
7213
if test -n "$ac_tool_prefix"; then
7214
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7216
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7217
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219
$as_echo_n "checking for $ac_word... " >&6; }
7220
if test "${ac_cv_prog_CXX+set}" = set; then :
7221
$as_echo_n "(cached) " >&6
7223
if test -n "$CXX"; then
7224
ac_cv_prog_CXX="$CXX" # Let the user override the test.
7226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230
test -z "$as_dir" && as_dir=.
7231
for ac_exec_ext in '' $ac_executable_extensions; do
7232
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7234
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244
if test -n "$CXX"; then
7245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7246
$as_echo "$CXX" >&6; }
7248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249
$as_echo "no" >&6; }
7253
test -n "$CXX" && break
7256
if test -z "$CXX"; then
7258
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7260
# Extract the first word of "$ac_prog", so it can be a program name with args.
7261
set dummy $ac_prog; ac_word=$2
7262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263
$as_echo_n "checking for $ac_word... " >&6; }
7264
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
7265
$as_echo_n "(cached) " >&6
7267
if test -n "$ac_ct_CXX"; then
7268
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274
test -z "$as_dir" && as_dir=.
7275
for ac_exec_ext in '' $ac_executable_extensions; do
7276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277
ac_cv_prog_ac_ct_CXX="$ac_prog"
7278
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7288
if test -n "$ac_ct_CXX"; then
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7290
$as_echo "$ac_ct_CXX" >&6; }
7292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293
$as_echo "no" >&6; }
7297
test -n "$ac_ct_CXX" && break
7300
if test "x$ac_ct_CXX" = x; then
7303
case $cross_compiling:$ac_tool_warned in
7305
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7306
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7307
ac_tool_warned=yes ;;
7315
# Provide some information about the compiler.
7316
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7319
for ac_option in --version -v -V -qversion; do
7320
{ { ac_try="$ac_compiler $ac_option >&5"
7322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7323
*) ac_try_echo=$ac_try;;
7325
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7326
$as_echo "$ac_try_echo"; } >&5
7327
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
7329
if test -s conftest.err; then
7331
... rest of stderr output deleted ...
7332
10q' conftest.err >conftest.er1
7333
cat conftest.er1 >&5
7334
rm -f conftest.er1 conftest.err
7336
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7337
test $ac_status = 0; }
7340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7341
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7342
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
7343
$as_echo_n "(cached) " >&6
7345
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346
/* end confdefs.h. */
7359
if ac_fn_cxx_try_compile "$LINENO"; then :
7364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7365
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7369
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7370
if test $ac_compiler_gnu = yes; then
7375
ac_test_CXXFLAGS=${CXXFLAGS+set}
7376
ac_save_CXXFLAGS=$CXXFLAGS
7377
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7378
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7379
if test "${ac_cv_prog_cxx_g+set}" = set; then :
7380
$as_echo_n "(cached) " >&6
7382
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7383
ac_cxx_werror_flag=yes
7386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387
/* end confdefs.h. */
7397
if ac_fn_cxx_try_compile "$LINENO"; then :
7398
ac_cv_prog_cxx_g=yes
7401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402
/* end confdefs.h. */
7412
if ac_fn_cxx_try_compile "$LINENO"; then :
7415
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7417
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418
/* end confdefs.h. */
7428
if ac_fn_cxx_try_compile "$LINENO"; then :
7429
ac_cv_prog_cxx_g=yes
7431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7439
$as_echo "$ac_cv_prog_cxx_g" >&6; }
7440
if test "$ac_test_CXXFLAGS" = set; then
7441
CXXFLAGS=$ac_save_CXXFLAGS
7442
elif test $ac_cv_prog_cxx_g = yes; then
7443
if test "$GXX" = yes; then
7449
if test "$GXX" = yes; then
7456
ac_cpp='$CPP $CPPFLAGS'
7457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7461
depcc="$CXX" am_compiler_list=
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7464
$as_echo_n "checking dependency style of $depcc... " >&6; }
7465
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7466
$as_echo_n "(cached) " >&6
7468
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7469
# We make a subdir and do the tests there. Otherwise we can end up
7470
# making bogus files that we don't know about and never remove. For
7471
# instance it was reported that on HP-UX the gcc test will end up
7472
# making a dummy file named `D' -- because `-MD' means `put the output
7475
# Copy depcomp to subdir because otherwise we won't find it if we're
7476
# using a relative directory.
7477
cp "$am_depcomp" conftest.dir
7479
# We will build objects and dependencies in a subdirectory because
7480
# it helps to detect inapplicable dependency modes. For instance
7481
# both Tru64's cc and ICC support -MD to output dependencies as a
7482
# side effect of compilation, but ICC will put the dependencies in
7483
# the current directory while Tru64 will put them in the object
7487
am_cv_CXX_dependencies_compiler_type=none
7488
if test "$am_compiler_list" = ""; then
7489
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7492
case " $depcc " in #(
7493
*\ -arch\ *\ -arch\ *) am__universal=true ;;
7496
for depmode in $am_compiler_list; do
7497
# Setup a source with many dependencies, because some compilers
7498
# like to wrap large dependency lists on column 80 (with \), and
7499
# we should not choose a depcomp mode which is confused by this.
7501
# We need to recreate these files for each test, as the compiler may
7502
# overwrite some of them when testing with obscure command lines.
7503
# This happens at least with the AIX C compiler.
7505
for i in 1 2 3 4 5 6; do
7506
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7507
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7508
# Solaris 8's {/usr,}/bin/sh.
7509
touch sub/conftst$i.h
7511
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7513
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7514
# mode. It turns out that the SunPro C++ compiler does not properly
7515
# handle `-M -o', and we need to detect this. Also, some Intel
7516
# versions had trouble with output in subdirs
7517
am__obj=sub/conftest.${OBJEXT-o}
7518
am__minus_obj="-o $am__obj"
7521
# This depmode causes a compiler race in universal mode.
7522
test "$am__universal" = false || continue
7525
# after this tag, mechanisms are not by side-effect, so they'll
7526
# only be used when explicitly requested
7527
if test "x$enable_dependency_tracking" = xyes; then
7533
msvisualcpp | msvcmsys)
7534
# This compiler won't grok `-c -o', but also, the minuso test has
7535
# not run yet. These depmodes are late enough in the game, and
7536
# so weak that their functioning should not be impacted.
7537
am__obj=conftest.${OBJEXT-o}
7542
if depmode=$depmode \
7543
source=sub/conftest.c object=$am__obj \
7544
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7545
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7546
>/dev/null 2>conftest.err &&
7547
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7548
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7549
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7550
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7551
# icc doesn't choke on unknown options, it will just issue warnings
7552
# or remarks (even with -Werror). So we grep stderr for any message
7553
# that says an option was ignored or not supported.
7554
# When given -MP, icc 7.0 and 7.1 complain thusly:
7555
# icc: Command line warning: ignoring option '-M'; no argument required
7556
# The diagnosis changed in icc 8.0:
7557
# icc: Command line remark: option '-MP' not supported
7558
if (grep 'ignoring option' conftest.err ||
7559
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7560
am_cv_CXX_dependencies_compiler_type=$depmode
7569
am_cv_CXX_dependencies_compiler_type=none
7573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7574
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7575
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7578
test "x$enable_dependency_tracking" != xno \
7579
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7580
am__fastdepCXX_TRUE=
7581
am__fastdepCXX_FALSE='#'
7583
am__fastdepCXX_TRUE='#'
7584
am__fastdepCXX_FALSE=
7588
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7589
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7590
(test "X$CXX" != "Xg++"))) ; then
7592
ac_cpp='$CXXCPP $CPPFLAGS'
7593
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7594
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7595
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7597
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7598
if test -z "$CXXCPP"; then
7599
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7600
$as_echo_n "(cached) " >&6
7602
# Double quotes because CXXCPP needs to be expanded
7603
for CXXCPP in "$CXX -E" "/lib/cpp"
7606
for ac_cxx_preproc_warn_flag in '' yes
7608
# Use a header file that comes with gcc, so configuring glibc
7609
# with a fresh cross-compiler works.
7610
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7611
# <limits.h> exists even on freestanding compilers.
7612
# On the NeXT, cc -E runs the code through the compiler's parser,
7613
# not just through cpp. "Syntax error" is here to catch this case.
7614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615
/* end confdefs.h. */
7617
# include <limits.h>
7619
# include <assert.h>
7623
if ac_fn_cxx_try_cpp "$LINENO"; then :
7626
# Broken: fails on valid input.
7629
rm -f conftest.err conftest.$ac_ext
7631
# OK, works on sane cases. Now check whether nonexistent headers
7632
# can be detected and how.
7633
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634
/* end confdefs.h. */
7635
#include <ac_nonexistent.h>
7637
if ac_fn_cxx_try_cpp "$LINENO"; then :
7638
# Broken: success on invalid input.
7641
# Passes both tests.
7645
rm -f conftest.err conftest.$ac_ext
7648
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7649
rm -f conftest.err conftest.$ac_ext
7650
if $ac_preproc_ok; then :
7655
ac_cv_prog_CXXCPP=$CXXCPP
7658
CXXCPP=$ac_cv_prog_CXXCPP
7660
ac_cv_prog_CXXCPP=$CXXCPP
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7663
$as_echo "$CXXCPP" >&6; }
7665
for ac_cxx_preproc_warn_flag in '' yes
7667
# Use a header file that comes with gcc, so configuring glibc
7668
# with a fresh cross-compiler works.
7669
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7670
# <limits.h> exists even on freestanding compilers.
7671
# On the NeXT, cc -E runs the code through the compiler's parser,
7672
# not just through cpp. "Syntax error" is here to catch this case.
7673
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674
/* end confdefs.h. */
7676
# include <limits.h>
7678
# include <assert.h>
7682
if ac_fn_cxx_try_cpp "$LINENO"; then :
7685
# Broken: fails on valid input.
7688
rm -f conftest.err conftest.$ac_ext
7690
# OK, works on sane cases. Now check whether nonexistent headers
7691
# can be detected and how.
7692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693
/* end confdefs.h. */
7694
#include <ac_nonexistent.h>
7696
if ac_fn_cxx_try_cpp "$LINENO"; then :
7697
# Broken: success on invalid input.
7700
# Passes both tests.
7704
rm -f conftest.err conftest.$ac_ext
7707
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7708
rm -f conftest.err conftest.$ac_ext
7709
if $ac_preproc_ok; then :
7712
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7713
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7714
_lt_caught_CXX_error=yes; }
7718
ac_cpp='$CPP $CPPFLAGS'
7719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7724
_lt_caught_CXX_error=yes
11414
10501
CC="$lt_save_CC"
10515
ac_config_commands="$ac_config_commands libtool"
10520
# Only expand once:
10524
# checks for programs.
10526
ac_cpp='$CXXCPP $CPPFLAGS'
10527
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10528
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10529
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10530
if test -z "$CXX"; then
10531
if test -n "$CCC"; then
10534
if test -n "$ac_tool_prefix"; then
10535
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10537
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10538
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540
$as_echo_n "checking for $ac_word... " >&6; }
10541
if test "${ac_cv_prog_CXX+set}" = set; then :
10542
$as_echo_n "(cached) " >&6
10544
if test -n "$CXX"; then
10545
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548
for as_dir in $PATH
10551
test -z "$as_dir" && as_dir=.
10552
for ac_exec_ext in '' $ac_executable_extensions; do
10553
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10554
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10555
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10564
CXX=$ac_cv_prog_CXX
10565
if test -n "$CXX"; then
10566
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10567
$as_echo "$CXX" >&6; }
10569
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570
$as_echo "no" >&6; }
10574
test -n "$CXX" && break
10577
if test -z "$CXX"; then
10579
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10581
# Extract the first word of "$ac_prog", so it can be a program name with args.
10582
set dummy $ac_prog; ac_word=$2
10583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10584
$as_echo_n "checking for $ac_word... " >&6; }
10585
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10586
$as_echo_n "(cached) " >&6
10588
if test -n "$ac_ct_CXX"; then
10589
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10592
for as_dir in $PATH
10595
test -z "$as_dir" && as_dir=.
10596
for ac_exec_ext in '' $ac_executable_extensions; do
10597
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10598
ac_cv_prog_ac_ct_CXX="$ac_prog"
10599
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10609
if test -n "$ac_ct_CXX"; then
10610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10611
$as_echo "$ac_ct_CXX" >&6; }
10613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614
$as_echo "no" >&6; }
10618
test -n "$ac_ct_CXX" && break
10621
if test "x$ac_ct_CXX" = x; then
10624
case $cross_compiling:$ac_tool_warned in
10626
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10627
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10628
ac_tool_warned=yes ;;
10636
# Provide some information about the compiler.
10637
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10640
for ac_option in --version -v -V -qversion; do
10641
{ { ac_try="$ac_compiler $ac_option >&5"
10642
case "(($ac_try" in
10643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644
*) ac_try_echo=$ac_try;;
10646
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10647
$as_echo "$ac_try_echo"; } >&5
10648
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
10650
if test -s conftest.err; then
10652
... rest of stderr output deleted ...
10653
10q' conftest.err >conftest.er1
10654
cat conftest.er1 >&5
10655
rm -f conftest.er1 conftest.err
10657
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10658
test $ac_status = 0; }
10661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10662
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10663
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10664
$as_echo_n "(cached) " >&6
10666
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667
/* end confdefs.h. */
10680
if ac_fn_cxx_try_compile "$LINENO"; then :
10681
ac_compiler_gnu=yes
10685
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10686
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10690
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10691
if test $ac_compiler_gnu = yes; then
10696
ac_test_CXXFLAGS=${CXXFLAGS+set}
10697
ac_save_CXXFLAGS=$CXXFLAGS
10698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10699
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10700
if test "${ac_cv_prog_cxx_g+set}" = set; then :
10701
$as_echo_n "(cached) " >&6
10703
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10704
ac_cxx_werror_flag=yes
10705
ac_cv_prog_cxx_g=no
10707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708
/* end confdefs.h. */
10718
if ac_fn_cxx_try_compile "$LINENO"; then :
10719
ac_cv_prog_cxx_g=yes
10722
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723
/* end confdefs.h. */
10733
if ac_fn_cxx_try_compile "$LINENO"; then :
10736
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739
/* end confdefs.h. */
10749
if ac_fn_cxx_try_compile "$LINENO"; then :
10750
ac_cv_prog_cxx_g=yes
10752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10760
$as_echo "$ac_cv_prog_cxx_g" >&6; }
10761
if test "$ac_test_CXXFLAGS" = set; then
10762
CXXFLAGS=$ac_save_CXXFLAGS
10763
elif test $ac_cv_prog_cxx_g = yes; then
10764
if test "$GXX" = yes; then
10770
if test "$GXX" = yes; then
10777
ac_cpp='$CPP $CPPFLAGS'
10778
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10779
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10780
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10782
depcc="$CXX" am_compiler_list=
10784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10785
$as_echo_n "checking dependency style of $depcc... " >&6; }
10786
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10787
$as_echo_n "(cached) " >&6
10789
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10790
# We make a subdir and do the tests there. Otherwise we can end up
10791
# making bogus files that we don't know about and never remove. For
10792
# instance it was reported that on HP-UX the gcc test will end up
10793
# making a dummy file named `D' -- because `-MD' means `put the output
10796
# Copy depcomp to subdir because otherwise we won't find it if we're
10797
# using a relative directory.
10798
cp "$am_depcomp" conftest.dir
10800
# We will build objects and dependencies in a subdirectory because
10801
# it helps to detect inapplicable dependency modes. For instance
10802
# both Tru64's cc and ICC support -MD to output dependencies as a
10803
# side effect of compilation, but ICC will put the dependencies in
10804
# the current directory while Tru64 will put them in the object
10808
am_cv_CXX_dependencies_compiler_type=none
10809
if test "$am_compiler_list" = ""; then
10810
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10812
am__universal=false
10813
case " $depcc " in #(
10814
*\ -arch\ *\ -arch\ *) am__universal=true ;;
10817
for depmode in $am_compiler_list; do
10818
# Setup a source with many dependencies, because some compilers
10819
# like to wrap large dependency lists on column 80 (with \), and
10820
# we should not choose a depcomp mode which is confused by this.
10822
# We need to recreate these files for each test, as the compiler may
10823
# overwrite some of them when testing with obscure command lines.
10824
# This happens at least with the AIX C compiler.
10826
for i in 1 2 3 4 5 6; do
10827
echo '#include "conftst'$i'.h"' >> sub/conftest.c
10828
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10829
# Solaris 8's {/usr,}/bin/sh.
10830
touch sub/conftst$i.h
10832
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10834
# We check with `-c' and `-o' for the sake of the "dashmstdout"
10835
# mode. It turns out that the SunPro C++ compiler does not properly
10836
# handle `-M -o', and we need to detect this. Also, some Intel
10837
# versions had trouble with output in subdirs
10838
am__obj=sub/conftest.${OBJEXT-o}
10839
am__minus_obj="-o $am__obj"
10842
# This depmode causes a compiler race in universal mode.
10843
test "$am__universal" = false || continue
10846
# after this tag, mechanisms are not by side-effect, so they'll
10847
# only be used when explicitly requested
10848
if test "x$enable_dependency_tracking" = xyes; then
10854
msvisualcpp | msvcmsys)
10855
# This compiler won't grok `-c -o', but also, the minuso test has
10856
# not run yet. These depmodes are late enough in the game, and
10857
# so weak that their functioning should not be impacted.
10858
am__obj=conftest.${OBJEXT-o}
10863
if depmode=$depmode \
10864
source=sub/conftest.c object=$am__obj \
10865
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10866
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10867
>/dev/null 2>conftest.err &&
10868
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10869
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10870
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10871
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10872
# icc doesn't choke on unknown options, it will just issue warnings
10873
# or remarks (even with -Werror). So we grep stderr for any message
10874
# that says an option was ignored or not supported.
10875
# When given -MP, icc 7.0 and 7.1 complain thusly:
10876
# icc: Command line warning: ignoring option '-M'; no argument required
10877
# The diagnosis changed in icc 8.0:
10878
# icc: Command line remark: option '-MP' not supported
10879
if (grep 'ignoring option' conftest.err ||
10880
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10881
am_cv_CXX_dependencies_compiler_type=$depmode
10888
rm -rf conftest.dir
10890
am_cv_CXX_dependencies_compiler_type=none
10894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10895
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10896
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10899
test "x$enable_dependency_tracking" != xno \
10900
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10901
am__fastdepCXX_TRUE=
10902
am__fastdepCXX_FALSE='#'
10904
am__fastdepCXX_TRUE='#'
10905
am__fastdepCXX_FALSE=
10911
ac_cpp='$CXXCPP $CPPFLAGS'
10912
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10913
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10914
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10915
if test -z "$CXX"; then
10916
if test -n "$CCC"; then
10919
if test -n "$ac_tool_prefix"; then
10920
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10922
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10923
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10925
$as_echo_n "checking for $ac_word... " >&6; }
10926
if test "${ac_cv_prog_CXX+set}" = set; then :
10927
$as_echo_n "(cached) " >&6
10929
if test -n "$CXX"; then
10930
ac_cv_prog_CXX="$CXX" # Let the user override the test.
10932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933
for as_dir in $PATH
10936
test -z "$as_dir" && as_dir=.
10937
for ac_exec_ext in '' $ac_executable_extensions; do
10938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10939
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10940
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10949
CXX=$ac_cv_prog_CXX
10950
if test -n "$CXX"; then
10951
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10952
$as_echo "$CXX" >&6; }
10954
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955
$as_echo "no" >&6; }
10959
test -n "$CXX" && break
10962
if test -z "$CXX"; then
10964
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10966
# Extract the first word of "$ac_prog", so it can be a program name with args.
10967
set dummy $ac_prog; ac_word=$2
10968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10969
$as_echo_n "checking for $ac_word... " >&6; }
10970
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10971
$as_echo_n "(cached) " >&6
10973
if test -n "$ac_ct_CXX"; then
10974
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977
for as_dir in $PATH
10980
test -z "$as_dir" && as_dir=.
10981
for ac_exec_ext in '' $ac_executable_extensions; do
10982
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10983
ac_cv_prog_ac_ct_CXX="$ac_prog"
10984
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10994
if test -n "$ac_ct_CXX"; then
10995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10996
$as_echo "$ac_ct_CXX" >&6; }
10998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10999
$as_echo "no" >&6; }
11003
test -n "$ac_ct_CXX" && break
11006
if test "x$ac_ct_CXX" = x; then
11009
case $cross_compiling:$ac_tool_warned in
11011
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11012
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11013
ac_tool_warned=yes ;;
11021
# Provide some information about the compiler.
11022
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11025
for ac_option in --version -v -V -qversion; do
11026
{ { ac_try="$ac_compiler $ac_option >&5"
11027
case "(($ac_try" in
11028
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029
*) ac_try_echo=$ac_try;;
11031
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11032
$as_echo "$ac_try_echo"; } >&5
11033
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
11035
if test -s conftest.err; then
11037
... rest of stderr output deleted ...
11038
10q' conftest.err >conftest.er1
11039
cat conftest.er1 >&5
11040
rm -f conftest.er1 conftest.err
11042
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11043
test $ac_status = 0; }
11046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11047
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11048
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11049
$as_echo_n "(cached) " >&6
11051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052
/* end confdefs.h. */
11065
if ac_fn_cxx_try_compile "$LINENO"; then :
11066
ac_compiler_gnu=yes
11070
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11071
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11075
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11076
if test $ac_compiler_gnu = yes; then
11081
ac_test_CXXFLAGS=${CXXFLAGS+set}
11082
ac_save_CXXFLAGS=$CXXFLAGS
11083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11084
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11085
if test "${ac_cv_prog_cxx_g+set}" = set; then :
11086
$as_echo_n "(cached) " >&6
11088
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11089
ac_cxx_werror_flag=yes
11090
ac_cv_prog_cxx_g=no
11092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093
/* end confdefs.h. */
11103
if ac_fn_cxx_try_compile "$LINENO"; then :
11104
ac_cv_prog_cxx_g=yes
11107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11108
/* end confdefs.h. */
11118
if ac_fn_cxx_try_compile "$LINENO"; then :
11121
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11123
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124
/* end confdefs.h. */
11134
if ac_fn_cxx_try_compile "$LINENO"; then :
11135
ac_cv_prog_cxx_g=yes
11137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11139
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11145
$as_echo "$ac_cv_prog_cxx_g" >&6; }
11146
if test "$ac_test_CXXFLAGS" = set; then
11147
CXXFLAGS=$ac_save_CXXFLAGS
11148
elif test $ac_cv_prog_cxx_g = yes; then
11149
if test "$GXX" = yes; then
11155
if test "$GXX" = yes; then
11162
ac_cpp='$CPP $CPPFLAGS'
11163
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11167
depcc="$CXX" am_compiler_list=
11169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11170
$as_echo_n "checking dependency style of $depcc... " >&6; }
11171
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11172
$as_echo_n "(cached) " >&6
11174
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11175
# We make a subdir and do the tests there. Otherwise we can end up
11176
# making bogus files that we don't know about and never remove. For
11177
# instance it was reported that on HP-UX the gcc test will end up
11178
# making a dummy file named `D' -- because `-MD' means `put the output
11181
# Copy depcomp to subdir because otherwise we won't find it if we're
11182
# using a relative directory.
11183
cp "$am_depcomp" conftest.dir
11185
# We will build objects and dependencies in a subdirectory because
11186
# it helps to detect inapplicable dependency modes. For instance
11187
# both Tru64's cc and ICC support -MD to output dependencies as a
11188
# side effect of compilation, but ICC will put the dependencies in
11189
# the current directory while Tru64 will put them in the object
11193
am_cv_CXX_dependencies_compiler_type=none
11194
if test "$am_compiler_list" = ""; then
11195
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11197
am__universal=false
11198
case " $depcc " in #(
11199
*\ -arch\ *\ -arch\ *) am__universal=true ;;
11202
for depmode in $am_compiler_list; do
11203
# Setup a source with many dependencies, because some compilers
11204
# like to wrap large dependency lists on column 80 (with \), and
11205
# we should not choose a depcomp mode which is confused by this.
11207
# We need to recreate these files for each test, as the compiler may
11208
# overwrite some of them when testing with obscure command lines.
11209
# This happens at least with the AIX C compiler.
11211
for i in 1 2 3 4 5 6; do
11212
echo '#include "conftst'$i'.h"' >> sub/conftest.c
11213
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11214
# Solaris 8's {/usr,}/bin/sh.
11215
touch sub/conftst$i.h
11217
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11219
# We check with `-c' and `-o' for the sake of the "dashmstdout"
11220
# mode. It turns out that the SunPro C++ compiler does not properly
11221
# handle `-M -o', and we need to detect this. Also, some Intel
11222
# versions had trouble with output in subdirs
11223
am__obj=sub/conftest.${OBJEXT-o}
11224
am__minus_obj="-o $am__obj"
11227
# This depmode causes a compiler race in universal mode.
11228
test "$am__universal" = false || continue
11231
# after this tag, mechanisms are not by side-effect, so they'll
11232
# only be used when explicitly requested
11233
if test "x$enable_dependency_tracking" = xyes; then
11239
msvisualcpp | msvcmsys)
11240
# This compiler won't grok `-c -o', but also, the minuso test has
11241
# not run yet. These depmodes are late enough in the game, and
11242
# so weak that their functioning should not be impacted.
11243
am__obj=conftest.${OBJEXT-o}
11248
if depmode=$depmode \
11249
source=sub/conftest.c object=$am__obj \
11250
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11251
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11252
>/dev/null 2>conftest.err &&
11253
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11254
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11255
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11256
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11257
# icc doesn't choke on unknown options, it will just issue warnings
11258
# or remarks (even with -Werror). So we grep stderr for any message
11259
# that says an option was ignored or not supported.
11260
# When given -MP, icc 7.0 and 7.1 complain thusly:
11261
# icc: Command line warning: ignoring option '-M'; no argument required
11262
# The diagnosis changed in icc 8.0:
11263
# icc: Command line remark: option '-MP' not supported
11264
if (grep 'ignoring option' conftest.err ||
11265
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11266
am_cv_CXX_dependencies_compiler_type=$depmode
11273
rm -rf conftest.dir
11275
am_cv_CXX_dependencies_compiler_type=none
11279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11280
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11281
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11284
test "x$enable_dependency_tracking" != xno \
11285
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11286
am__fastdepCXX_TRUE=
11287
am__fastdepCXX_FALSE='#'
11289
am__fastdepCXX_TRUE='#'
11290
am__fastdepCXX_FALSE=
11294
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11295
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11296
(test "X$CXX" != "Xg++"))) ; then
11298
ac_cpp='$CXXCPP $CPPFLAGS'
11299
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11300
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11301
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11303
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11304
if test -z "$CXXCPP"; then
11305
if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11306
$as_echo_n "(cached) " >&6
11308
# Double quotes because CXXCPP needs to be expanded
11309
for CXXCPP in "$CXX -E" "/lib/cpp"
11311
ac_preproc_ok=false
11312
for ac_cxx_preproc_warn_flag in '' yes
11314
# Use a header file that comes with gcc, so configuring glibc
11315
# with a fresh cross-compiler works.
11316
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11317
# <limits.h> exists even on freestanding compilers.
11318
# On the NeXT, cc -E runs the code through the compiler's parser,
11319
# not just through cpp. "Syntax error" is here to catch this case.
11320
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11321
/* end confdefs.h. */
11323
# include <limits.h>
11325
# include <assert.h>
11329
if ac_fn_cxx_try_cpp "$LINENO"; then :
11332
# Broken: fails on valid input.
11335
rm -f conftest.err conftest.$ac_ext
11337
# OK, works on sane cases. Now check whether nonexistent headers
11338
# can be detected and how.
11339
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340
/* end confdefs.h. */
11341
#include <ac_nonexistent.h>
11343
if ac_fn_cxx_try_cpp "$LINENO"; then :
11344
# Broken: success on invalid input.
11347
# Passes both tests.
11351
rm -f conftest.err conftest.$ac_ext
11354
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11355
rm -f conftest.err conftest.$ac_ext
11356
if $ac_preproc_ok; then :
11361
ac_cv_prog_CXXCPP=$CXXCPP
11364
CXXCPP=$ac_cv_prog_CXXCPP
11366
ac_cv_prog_CXXCPP=$CXXCPP
11368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11369
$as_echo "$CXXCPP" >&6; }
11370
ac_preproc_ok=false
11371
for ac_cxx_preproc_warn_flag in '' yes
11373
# Use a header file that comes with gcc, so configuring glibc
11374
# with a fresh cross-compiler works.
11375
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11376
# <limits.h> exists even on freestanding compilers.
11377
# On the NeXT, cc -E runs the code through the compiler's parser,
11378
# not just through cpp. "Syntax error" is here to catch this case.
11379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11380
/* end confdefs.h. */
11382
# include <limits.h>
11384
# include <assert.h>
11388
if ac_fn_cxx_try_cpp "$LINENO"; then :
11391
# Broken: fails on valid input.
11394
rm -f conftest.err conftest.$ac_ext
11396
# OK, works on sane cases. Now check whether nonexistent headers
11397
# can be detected and how.
11398
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399
/* end confdefs.h. */
11400
#include <ac_nonexistent.h>
11402
if ac_fn_cxx_try_cpp "$LINENO"; then :
11403
# Broken: success on invalid input.
11406
# Passes both tests.
11410
rm -f conftest.err conftest.$ac_ext
11413
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11414
rm -f conftest.err conftest.$ac_ext
11415
if $ac_preproc_ok; then :
11418
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11420
_lt_caught_CXX_error=yes; }
11424
ac_cpp='$CPP $CPPFLAGS'
11425
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11430
_lt_caught_CXX_error=yes
11418
11437
ac_cpp='$CXXCPP $CPPFLAGS'
11419
11438
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'