21356
21356
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21357
21357
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21358
21358
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21359
if test -z "$CXX"; then
21360
if test -n "$CCC"; then
21363
if test -n "$ac_tool_prefix"; then
21364
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21366
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21367
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21368
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21369
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21370
if test "${ac_cv_prog_CXX+set}" = set; then
21371
echo $ECHO_N "(cached) $ECHO_C" >&6
21373
if test -n "$CXX"; then
21374
ac_cv_prog_CXX="$CXX" # Let the user override the test.
21376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21377
for as_dir in $PATH
21380
test -z "$as_dir" && as_dir=.
21381
for ac_exec_ext in '' $ac_executable_extensions; do
21382
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21383
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
21384
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21393
CXX=$ac_cv_prog_CXX
21394
if test -n "$CXX"; then
21395
{ echo "$as_me:$LINENO: result: $CXX" >&5
21396
echo "${ECHO_T}$CXX" >&6; }
21398
{ echo "$as_me:$LINENO: result: no" >&5
21399
echo "${ECHO_T}no" >&6; }
21403
test -n "$CXX" && break
21406
if test -z "$CXX"; then
21408
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
21410
# Extract the first word of "$ac_prog", so it can be a program name with args.
21411
set dummy $ac_prog; ac_word=$2
21412
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21413
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21414
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
21415
echo $ECHO_N "(cached) $ECHO_C" >&6
21417
if test -n "$ac_ct_CXX"; then
21418
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
21420
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21421
for as_dir in $PATH
21424
test -z "$as_dir" && as_dir=.
21425
for ac_exec_ext in '' $ac_executable_extensions; do
21426
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21427
ac_cv_prog_ac_ct_CXX="$ac_prog"
21428
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21437
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
21438
if test -n "$ac_ct_CXX"; then
21439
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
21440
echo "${ECHO_T}$ac_ct_CXX" >&6; }
21442
{ echo "$as_me:$LINENO: result: no" >&5
21443
echo "${ECHO_T}no" >&6; }
21447
test -n "$ac_ct_CXX" && break
21450
if test "x$ac_ct_CXX" = x; then
21453
case $cross_compiling:$ac_tool_warned in
21455
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
21456
whose name does not start with the host triplet. If you think this
21457
configuration is useful to you, please write to autoconf@gnu.org." >&5
21458
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
21459
whose name does not start with the host triplet. If you think this
21460
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
21461
ac_tool_warned=yes ;;
21469
# Provide some information about the compiler.
21470
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
21471
ac_compiler=`set X $ac_compile; echo $2`
21472
{ (ac_try="$ac_compiler --version >&5"
21473
case "(($ac_try" in
21474
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475
*) ac_try_echo=$ac_try;;
21477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478
(eval "$ac_compiler --version >&5") 2>&5
21480
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481
(exit $ac_status); }
21482
{ (ac_try="$ac_compiler -v >&5"
21483
case "(($ac_try" in
21484
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485
*) ac_try_echo=$ac_try;;
21487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488
(eval "$ac_compiler -v >&5") 2>&5
21490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491
(exit $ac_status); }
21492
{ (ac_try="$ac_compiler -V >&5"
21493
case "(($ac_try" in
21494
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21495
*) ac_try_echo=$ac_try;;
21497
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21498
(eval "$ac_compiler -V >&5") 2>&5
21500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501
(exit $ac_status); }
21503
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
21504
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
21505
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
21506
echo $ECHO_N "(cached) $ECHO_C" >&6
21508
cat >conftest.$ac_ext <<_ACEOF
21511
cat confdefs.h >>conftest.$ac_ext
21512
cat >>conftest.$ac_ext <<_ACEOF
21513
/* end confdefs.h. */
21526
rm -f conftest.$ac_objext
21527
if { (ac_try="$ac_compile"
21528
case "(($ac_try" in
21529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21530
*) ac_try_echo=$ac_try;;
21532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21533
(eval "$ac_compile") 2>conftest.er1
21535
grep -v '^ *+' conftest.er1 >conftest.err
21537
cat conftest.err >&5
21538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539
(exit $ac_status); } && {
21540
test -z "$ac_cxx_werror_flag" ||
21541
test ! -s conftest.err
21542
} && test -s conftest.$ac_objext; then
21543
ac_compiler_gnu=yes
21545
echo "$as_me: failed program was:" >&5
21546
sed 's/^/| /' conftest.$ac_ext >&5
21551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21552
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21555
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
21556
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
21557
GXX=`test $ac_compiler_gnu = yes && echo yes`
21558
ac_test_CXXFLAGS=${CXXFLAGS+set}
21559
ac_save_CXXFLAGS=$CXXFLAGS
21560
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
21561
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
21562
if test "${ac_cv_prog_cxx_g+set}" = set; then
21563
echo $ECHO_N "(cached) $ECHO_C" >&6
21565
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
21566
ac_cxx_werror_flag=yes
21567
ac_cv_prog_cxx_g=no
21569
cat >conftest.$ac_ext <<_ACEOF
21572
cat confdefs.h >>conftest.$ac_ext
21573
cat >>conftest.$ac_ext <<_ACEOF
21574
/* end confdefs.h. */
21584
rm -f conftest.$ac_objext
21585
if { (ac_try="$ac_compile"
21586
case "(($ac_try" in
21587
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588
*) ac_try_echo=$ac_try;;
21590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591
(eval "$ac_compile") 2>conftest.er1
21593
grep -v '^ *+' conftest.er1 >conftest.err
21595
cat conftest.err >&5
21596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597
(exit $ac_status); } && {
21598
test -z "$ac_cxx_werror_flag" ||
21599
test ! -s conftest.err
21600
} && test -s conftest.$ac_objext; then
21601
ac_cv_prog_cxx_g=yes
21603
echo "$as_me: failed program was:" >&5
21604
sed 's/^/| /' conftest.$ac_ext >&5
21607
cat >conftest.$ac_ext <<_ACEOF
21610
cat confdefs.h >>conftest.$ac_ext
21611
cat >>conftest.$ac_ext <<_ACEOF
21612
/* end confdefs.h. */
21622
rm -f conftest.$ac_objext
21623
if { (ac_try="$ac_compile"
21624
case "(($ac_try" in
21625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626
*) ac_try_echo=$ac_try;;
21628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629
(eval "$ac_compile") 2>conftest.er1
21631
grep -v '^ *+' conftest.er1 >conftest.err
21633
cat conftest.err >&5
21634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635
(exit $ac_status); } && {
21636
test -z "$ac_cxx_werror_flag" ||
21637
test ! -s conftest.err
21638
} && test -s conftest.$ac_objext; then
21641
echo "$as_me: failed program was:" >&5
21642
sed 's/^/| /' conftest.$ac_ext >&5
21644
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21646
cat >conftest.$ac_ext <<_ACEOF
21649
cat confdefs.h >>conftest.$ac_ext
21650
cat >>conftest.$ac_ext <<_ACEOF
21651
/* end confdefs.h. */
21661
rm -f conftest.$ac_objext
21662
if { (ac_try="$ac_compile"
21663
case "(($ac_try" in
21664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665
*) ac_try_echo=$ac_try;;
21667
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668
(eval "$ac_compile") 2>conftest.er1
21670
grep -v '^ *+' conftest.er1 >conftest.err
21672
cat conftest.err >&5
21673
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674
(exit $ac_status); } && {
21675
test -z "$ac_cxx_werror_flag" ||
21676
test ! -s conftest.err
21677
} && test -s conftest.$ac_objext; then
21678
ac_cv_prog_cxx_g=yes
21680
echo "$as_me: failed program was:" >&5
21681
sed 's/^/| /' conftest.$ac_ext >&5
21686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21692
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21693
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
21695
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
21696
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
21697
if test "$ac_test_CXXFLAGS" = set; then
21698
CXXFLAGS=$ac_save_CXXFLAGS
21699
elif test $ac_cv_prog_cxx_g = yes; then
21700
if test "$GXX" = yes; then
21706
if test "$GXX" = yes; then
21713
ac_cpp='$CPP $CPPFLAGS'
21714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21718
depcc="$CXX" am_compiler_list=
21720
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
21721
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
21722
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
21723
echo $ECHO_N "(cached) $ECHO_C" >&6
21725
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21726
# We make a subdir and do the tests there. Otherwise we can end up
21727
# making bogus files that we don't know about and never remove. For
21728
# instance it was reported that on HP-UX the gcc test will end up
21729
# making a dummy file named `D' -- because `-MD' means `put the output
21732
# Copy depcomp to subdir because otherwise we won't find it if we're
21733
# using a relative directory.
21734
cp "$am_depcomp" conftest.dir
21736
# We will build objects and dependencies in a subdirectory because
21737
# it helps to detect inapplicable dependency modes. For instance
21738
# both Tru64's cc and ICC support -MD to output dependencies as a
21739
# side effect of compilation, but ICC will put the dependencies in
21740
# the current directory while Tru64 will put them in the object
21744
am_cv_CXX_dependencies_compiler_type=none
21745
if test "$am_compiler_list" = ""; then
21746
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21748
for depmode in $am_compiler_list; do
21749
# Setup a source with many dependencies, because some compilers
21750
# like to wrap large dependency lists on column 80 (with \), and
21751
# we should not choose a depcomp mode which is confused by this.
21753
# We need to recreate these files for each test, as the compiler may
21754
# overwrite some of them when testing with obscure command lines.
21755
# This happens at least with the AIX C compiler.
21757
for i in 1 2 3 4 5 6; do
21758
echo '#include "conftst'$i'.h"' >> sub/conftest.c
21759
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
21760
# Solaris 8's {/usr,}/bin/sh.
21761
touch sub/conftst$i.h
21763
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21767
# after this tag, mechanisms are not by side-effect, so they'll
21768
# only be used when explicitly requested
21769
if test "x$enable_dependency_tracking" = xyes; then
21777
# We check with `-c' and `-o' for the sake of the "dashmstdout"
21778
# mode. It turns out that the SunPro C++ compiler does not properly
21779
# handle `-M -o', and we need to detect this.
21780
if depmode=$depmode \
21781
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
21782
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21783
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
21784
>/dev/null 2>conftest.err &&
21785
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21786
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
21787
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21788
# icc doesn't choke on unknown options, it will just issue warnings
21789
# or remarks (even with -Werror). So we grep stderr for any message
21790
# that says an option was ignored or not supported.
21791
# When given -MP, icc 7.0 and 7.1 complain thusly:
21792
# icc: Command line warning: ignoring option '-M'; no argument required
21793
# The diagnosis changed in icc 8.0:
21794
# icc: Command line remark: option '-MP' not supported
21795
if (grep 'ignoring option' conftest.err ||
21796
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21797
am_cv_CXX_dependencies_compiler_type=$depmode
21804
rm -rf conftest.dir
21806
am_cv_CXX_dependencies_compiler_type=none
21810
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
21811
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
21812
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
21817
test "x$enable_dependency_tracking" != xno \
21818
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
21819
am__fastdepCXX_TRUE=
21820
am__fastdepCXX_FALSE='#'
21822
am__fastdepCXX_TRUE='#'
21823
am__fastdepCXX_FALSE=
21828
ac_cpp='$CXXCPP $CPPFLAGS'
21829
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21830
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21831
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu