3318
3339
{ as_fn_set_status 77
3319
3340
as_fn_error "C compiler cannot create executables
3320
3341
See \`config.log' for more details." "$LINENO" 5; }; }
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323
$as_echo "yes" >&6; }
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326
$as_echo_n "checking for C compiler default output file name... " >&6; }
3327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328
$as_echo "$ac_file" >&6; }
3329
3343
ac_exeext=$ac_cv_exeext
3331
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3345
# Check that the compiler produces executables we can run. If not, either
3346
# the compiler is broken, or we cross compile.
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348
$as_echo_n "checking whether the C compiler works... " >&6; }
3349
# If not cross compiling, check that we can run a simple program.
3350
if test "$cross_compiling" != yes; then
3351
if { ac_try='./$ac_file'
3352
{ { case "(($ac_try" in
3353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354
*) ac_try_echo=$ac_try;;
3356
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357
$as_echo "$ac_try_echo"; } >&5
3358
(eval "$ac_try") 2>&5
3360
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361
test $ac_status = 0; }; }; then
3364
if test "$cross_compiling" = maybe; then
3367
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369
as_fn_error "cannot run C compiled programs.
3370
If you meant to cross compile, use \`--host'.
3371
See \`config.log' for more details." "$LINENO" 5; }
3375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3376
$as_echo "yes" >&6; }
3378
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3332
3379
ac_clean_files=$ac_clean_files_save
3380
# Check that the compiler produces executables we can run. If not, either
3381
# the compiler is broken, or we cross compile.
3382
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383
$as_echo_n "checking whether we are cross compiling... " >&6; }
3384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3385
$as_echo "$cross_compiling" >&6; }
3333
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3334
3388
$as_echo_n "checking for suffix of executables... " >&6; }
3335
3389
if { { ac_try="$ac_link"
3362
3416
as_fn_error "cannot compute suffix of executables: cannot compile and link
3363
3417
See \`config.log' for more details." "$LINENO" 5; }
3365
rm -f conftest conftest$ac_cv_exeext
3419
rm -f conftest$ac_cv_exeext
3366
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3367
3421
$as_echo "$ac_cv_exeext" >&6; }
3369
3423
rm -f conftest.$ac_ext
3370
3424
EXEEXT=$ac_cv_exeext
3371
3425
ac_exeext=$EXEEXT
3372
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373
/* end confdefs.h. */
3378
FILE *f = fopen ("conftest.out", "w");
3379
return ferror (f) || fclose (f) != 0;
3385
ac_clean_files="$ac_clean_files conftest.out"
3386
# Check that the compiler produces executables we can run. If not, either
3387
# the compiler is broken, or we cross compile.
3388
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389
$as_echo_n "checking whether we are cross compiling... " >&6; }
3390
if test "$cross_compiling" != yes; then
3391
{ { ac_try="$ac_link"
3393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394
*) ac_try_echo=$ac_try;;
3396
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397
$as_echo "$ac_try_echo"; } >&5
3398
(eval "$ac_link") 2>&5
3400
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401
test $ac_status = 0; }
3402
if { ac_try='./conftest$ac_cv_exeext'
3403
{ { case "(($ac_try" in
3404
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405
*) ac_try_echo=$ac_try;;
3407
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408
$as_echo "$ac_try_echo"; } >&5
3409
(eval "$ac_try") 2>&5
3411
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412
test $ac_status = 0; }; }; then
3415
if test "$cross_compiling" = maybe; then
3418
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420
as_fn_error "cannot run C compiled programs.
3421
If you meant to cross compile, use \`--host'.
3422
See \`config.log' for more details." "$LINENO" 5; }
3426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427
$as_echo "$cross_compiling" >&6; }
3429
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430
ac_clean_files=$ac_clean_files_save
3431
3426
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3432
3427
$as_echo_n "checking for suffix of object files... " >&6; }
3433
3428
if test "${ac_cv_objext+set}" = set; then :
6422
6459
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6423
6460
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6426
ac_cpp='$CXXCPP $CPPFLAGS'
6427
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6428
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6429
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6430
if test -z "$CXX"; then
6431
if test -n "$CCC"; then
6434
if test -n "$ac_tool_prefix"; then
6435
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6437
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6438
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6439
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440
$as_echo_n "checking for $ac_word... " >&6; }
6441
if test "${ac_cv_prog_CXX+set}" = set; then :
6442
$as_echo_n "(cached) " >&6
6444
if test -n "$CXX"; then
6445
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6447
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451
test -z "$as_dir" && as_dir=.
6452
for ac_exec_ext in '' $ac_executable_extensions; do
6453
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6455
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465
if test -n "$CXX"; then
6466
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6467
$as_echo "$CXX" >&6; }
6469
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470
$as_echo "no" >&6; }
6474
test -n "$CXX" && break
6477
if test -z "$CXX"; then
6479
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6481
# Extract the first word of "$ac_prog", so it can be a program name with args.
6482
set dummy $ac_prog; ac_word=$2
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484
$as_echo_n "checking for $ac_word... " >&6; }
6485
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6486
$as_echo_n "(cached) " >&6
6488
if test -n "$ac_ct_CXX"; then
6489
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495
test -z "$as_dir" && as_dir=.
6496
for ac_exec_ext in '' $ac_executable_extensions; do
6497
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498
ac_cv_prog_ac_ct_CXX="$ac_prog"
6499
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6509
if test -n "$ac_ct_CXX"; then
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6511
$as_echo "$ac_ct_CXX" >&6; }
6513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
$as_echo "no" >&6; }
6518
test -n "$ac_ct_CXX" && break
6521
if test "x$ac_ct_CXX" = x; then
6524
case $cross_compiling:$ac_tool_warned in
6526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528
ac_tool_warned=yes ;;
6536
# Provide some information about the compiler.
6537
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6540
for ac_option in --version -v -V -qversion; do
6541
{ { ac_try="$ac_compiler $ac_option >&5"
6543
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544
*) ac_try_echo=$ac_try;;
6546
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6547
$as_echo "$ac_try_echo"; } >&5
6548
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
6550
if test -s conftest.err; then
6552
... rest of stderr output deleted ...
6553
10q' conftest.err >conftest.er1
6554
cat conftest.er1 >&5
6556
rm -f conftest.er1 conftest.err
6557
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6558
test $ac_status = 0; }
6561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6562
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6563
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6564
$as_echo_n "(cached) " >&6
6566
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567
/* end confdefs.h. */
6580
if ac_fn_cxx_try_compile "$LINENO"; then :
6585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6590
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6591
if test $ac_compiler_gnu = yes; then
6596
ac_test_CXXFLAGS=${CXXFLAGS+set}
6597
ac_save_CXXFLAGS=$CXXFLAGS
6598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6599
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6600
if test "${ac_cv_prog_cxx_g+set}" = set; then :
6601
$as_echo_n "(cached) " >&6
6603
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6604
ac_cxx_werror_flag=yes
6607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608
/* end confdefs.h. */
6618
if ac_fn_cxx_try_compile "$LINENO"; then :
6619
ac_cv_prog_cxx_g=yes
6622
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623
/* end confdefs.h. */
6633
if ac_fn_cxx_try_compile "$LINENO"; then :
6636
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6639
/* end confdefs.h. */
6649
if ac_fn_cxx_try_compile "$LINENO"; then :
6650
ac_cv_prog_cxx_g=yes
6652
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6659
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6660
$as_echo "$ac_cv_prog_cxx_g" >&6; }
6661
if test "$ac_test_CXXFLAGS" = set; then
6662
CXXFLAGS=$ac_save_CXXFLAGS
6663
elif test $ac_cv_prog_cxx_g = yes; then
6664
if test "$GXX" = yes; then
6670
if test "$GXX" = yes; then
6677
ac_cpp='$CPP $CPPFLAGS'
6678
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6679
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6680
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
depcc="$CXX" am_compiler_list=
6684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6685
$as_echo_n "checking dependency style of $depcc... " >&6; }
6686
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6687
$as_echo_n "(cached) " >&6
6689
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6690
# We make a subdir and do the tests there. Otherwise we can end up
6691
# making bogus files that we don't know about and never remove. For
6692
# instance it was reported that on HP-UX the gcc test will end up
6693
# making a dummy file named `D' -- because `-MD' means `put the output
6696
# Copy depcomp to subdir because otherwise we won't find it if we're
6697
# using a relative directory.
6698
cp "$am_depcomp" conftest.dir
6700
# We will build objects and dependencies in a subdirectory because
6701
# it helps to detect inapplicable dependency modes. For instance
6702
# both Tru64's cc and ICC support -MD to output dependencies as a
6703
# side effect of compilation, but ICC will put the dependencies in
6704
# the current directory while Tru64 will put them in the object
6708
am_cv_CXX_dependencies_compiler_type=none
6709
if test "$am_compiler_list" = ""; then
6710
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6713
case " $depcc " in #(
6714
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6717
for depmode in $am_compiler_list; do
6718
# Setup a source with many dependencies, because some compilers
6719
# like to wrap large dependency lists on column 80 (with \), and
6720
# we should not choose a depcomp mode which is confused by this.
6722
# We need to recreate these files for each test, as the compiler may
6723
# overwrite some of them when testing with obscure command lines.
6724
# This happens at least with the AIX C compiler.
6726
for i in 1 2 3 4 5 6; do
6727
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6728
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6729
# Solaris 8's {/usr,}/bin/sh.
6730
touch sub/conftst$i.h
6732
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6734
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6735
# mode. It turns out that the SunPro C++ compiler does not properly
6736
# handle `-M -o', and we need to detect this. Also, some Intel
6737
# versions had trouble with output in subdirs
6738
am__obj=sub/conftest.${OBJEXT-o}
6739
am__minus_obj="-o $am__obj"
6742
# This depmode causes a compiler race in universal mode.
6743
test "$am__universal" = false || continue
6746
# after this tag, mechanisms are not by side-effect, so they'll
6747
# only be used when explicitly requested
6748
if test "x$enable_dependency_tracking" = xyes; then
6754
msvisualcpp | msvcmsys)
6755
# This compiler won't grok `-c -o', but also, the minuso test has
6756
# not run yet. These depmodes are late enough in the game, and
6757
# so weak that their functioning should not be impacted.
6758
am__obj=conftest.${OBJEXT-o}
6763
if depmode=$depmode \
6764
source=sub/conftest.c object=$am__obj \
6765
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6766
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6767
>/dev/null 2>conftest.err &&
6768
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6769
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6770
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6771
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6772
# icc doesn't choke on unknown options, it will just issue warnings
6773
# or remarks (even with -Werror). So we grep stderr for any message
6774
# that says an option was ignored or not supported.
6775
# When given -MP, icc 7.0 and 7.1 complain thusly:
6776
# icc: Command line warning: ignoring option '-M'; no argument required
6777
# The diagnosis changed in icc 8.0:
6778
# icc: Command line remark: option '-MP' not supported
6779
if (grep 'ignoring option' conftest.err ||
6780
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6781
am_cv_CXX_dependencies_compiler_type=$depmode
6790
am_cv_CXX_dependencies_compiler_type=none
6794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6795
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6796
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6799
test "x$enable_dependency_tracking" != xno \
6800
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6801
am__fastdepCXX_TRUE=
6802
am__fastdepCXX_FALSE='#'
6804
am__fastdepCXX_TRUE='#'
6805
am__fastdepCXX_FALSE=
6809
6462
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
6810
6463
$as_echo_n "checking whether the C++ compiler works... " >&6; }
6814
6467
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815
6468
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6471
ac_cpp='$CXXCPP $CPPFLAGS'
6472
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6473
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6474
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6475
if test -z "$CXX"; then
6476
if test -n "$CCC"; then
6479
if test -n "$ac_tool_prefix"; then
6480
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6482
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6483
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485
$as_echo_n "checking for $ac_word... " >&6; }
6486
if test "${ac_cv_prog_CXX+set}" = set; then :
6487
$as_echo_n "(cached) " >&6
6489
if test -n "$CXX"; then
6490
ac_cv_prog_CXX="$CXX" # Let the user override the test.
6492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496
test -z "$as_dir" && as_dir=.
6497
for ac_exec_ext in '' $ac_executable_extensions; do
6498
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6500
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510
if test -n "$CXX"; then
6511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6512
$as_echo "$CXX" >&6; }
6514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515
$as_echo "no" >&6; }
6519
test -n "$CXX" && break
6522
if test -z "$CXX"; then
6524
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6526
# Extract the first word of "$ac_prog", so it can be a program name with args.
6527
set dummy $ac_prog; ac_word=$2
6528
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6529
$as_echo_n "checking for $ac_word... " >&6; }
6530
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6531
$as_echo_n "(cached) " >&6
6533
if test -n "$ac_ct_CXX"; then
6534
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6540
test -z "$as_dir" && as_dir=.
6541
for ac_exec_ext in '' $ac_executable_extensions; do
6542
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6543
ac_cv_prog_ac_ct_CXX="$ac_prog"
6544
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6554
if test -n "$ac_ct_CXX"; then
6555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6556
$as_echo "$ac_ct_CXX" >&6; }
6558
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6559
$as_echo "no" >&6; }
6563
test -n "$ac_ct_CXX" && break
6566
if test "x$ac_ct_CXX" = x; then
6569
case $cross_compiling:$ac_tool_warned in
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573
ac_tool_warned=yes ;;
6581
# Provide some information about the compiler.
6582
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6585
for ac_option in --version -v -V -qversion; do
6586
{ { ac_try="$ac_compiler $ac_option >&5"
6588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6589
*) ac_try_echo=$ac_try;;
6591
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6592
$as_echo "$ac_try_echo"; } >&5
6593
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
6595
if test -s conftest.err; then
6597
... rest of stderr output deleted ...
6598
10q' conftest.err >conftest.er1
6599
cat conftest.er1 >&5
6600
rm -f conftest.er1 conftest.err
6602
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603
test $ac_status = 0; }
6606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6607
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6608
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6609
$as_echo_n "(cached) " >&6
6611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6612
/* end confdefs.h. */
6625
if ac_fn_cxx_try_compile "$LINENO"; then :
6630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6635
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6636
if test $ac_compiler_gnu = yes; then
6641
ac_test_CXXFLAGS=${CXXFLAGS+set}
6642
ac_save_CXXFLAGS=$CXXFLAGS
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6644
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6645
if test "${ac_cv_prog_cxx_g+set}" = set; then :
6646
$as_echo_n "(cached) " >&6
6648
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6649
ac_cxx_werror_flag=yes
6652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653
/* end confdefs.h. */
6663
if ac_fn_cxx_try_compile "$LINENO"; then :
6664
ac_cv_prog_cxx_g=yes
6667
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668
/* end confdefs.h. */
6678
if ac_fn_cxx_try_compile "$LINENO"; then :
6681
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6683
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684
/* end confdefs.h. */
6694
if ac_fn_cxx_try_compile "$LINENO"; then :
6695
ac_cv_prog_cxx_g=yes
6697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6701
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6702
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6705
$as_echo "$ac_cv_prog_cxx_g" >&6; }
6706
if test "$ac_test_CXXFLAGS" = set; then
6707
CXXFLAGS=$ac_save_CXXFLAGS
6708
elif test $ac_cv_prog_cxx_g = yes; then
6709
if test "$GXX" = yes; then
6715
if test "$GXX" = yes; then
6722
ac_cpp='$CXXCPP $CPPFLAGS'
6723
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6724
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6725
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6727
depcc="$CXX" am_compiler_list=
6729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6730
$as_echo_n "checking dependency style of $depcc... " >&6; }
6731
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6732
$as_echo_n "(cached) " >&6
6734
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6735
# We make a subdir and do the tests there. Otherwise we can end up
6736
# making bogus files that we don't know about and never remove. For
6737
# instance it was reported that on HP-UX the gcc test will end up
6738
# making a dummy file named `D' -- because `-MD' means `put the output
6741
# Copy depcomp to subdir because otherwise we won't find it if we're
6742
# using a relative directory.
6743
cp "$am_depcomp" conftest.dir
6745
# We will build objects and dependencies in a subdirectory because
6746
# it helps to detect inapplicable dependency modes. For instance
6747
# both Tru64's cc and ICC support -MD to output dependencies as a
6748
# side effect of compilation, but ICC will put the dependencies in
6749
# the current directory while Tru64 will put them in the object
6753
am_cv_CXX_dependencies_compiler_type=none
6754
if test "$am_compiler_list" = ""; then
6755
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6758
case " $depcc " in #(
6759
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6762
for depmode in $am_compiler_list; do
6763
# Setup a source with many dependencies, because some compilers
6764
# like to wrap large dependency lists on column 80 (with \), and
6765
# we should not choose a depcomp mode which is confused by this.
6767
# We need to recreate these files for each test, as the compiler may
6768
# overwrite some of them when testing with obscure command lines.
6769
# This happens at least with the AIX C compiler.
6771
for i in 1 2 3 4 5 6; do
6772
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6773
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6774
# Solaris 8's {/usr,}/bin/sh.
6775
touch sub/conftst$i.h
6777
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6779
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6780
# mode. It turns out that the SunPro C++ compiler does not properly
6781
# handle `-M -o', and we need to detect this. Also, some Intel
6782
# versions had trouble with output in subdirs
6783
am__obj=sub/conftest.${OBJEXT-o}
6784
am__minus_obj="-o $am__obj"
6787
# This depmode causes a compiler race in universal mode.
6788
test "$am__universal" = false || continue
6791
# after this tag, mechanisms are not by side-effect, so they'll
6792
# only be used when explicitly requested
6793
if test "x$enable_dependency_tracking" = xyes; then
6799
msvisualcpp | msvcmsys)
6800
# This compiler won't grok `-c -o', but also, the minuso test has
6801
# not run yet. These depmodes are late enough in the game, and
6802
# so weak that their functioning should not be impacted.
6803
am__obj=conftest.${OBJEXT-o}
6808
if depmode=$depmode \
6809
source=sub/conftest.c object=$am__obj \
6810
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6811
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6812
>/dev/null 2>conftest.err &&
6813
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6814
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6815
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6816
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6817
# icc doesn't choke on unknown options, it will just issue warnings
6818
# or remarks (even with -Werror). So we grep stderr for any message
6819
# that says an option was ignored or not supported.
6820
# When given -MP, icc 7.0 and 7.1 complain thusly:
6821
# icc: Command line warning: ignoring option '-M'; no argument required
6822
# The diagnosis changed in icc 8.0:
6823
# icc: Command line remark: option '-MP' not supported
6824
if (grep 'ignoring option' conftest.err ||
6825
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6826
am_cv_CXX_dependencies_compiler_type=$depmode
6835
am_cv_CXX_dependencies_compiler_type=none
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6840
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6841
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6844
test "x$enable_dependency_tracking" != xno \
6845
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6846
am__fastdepCXX_TRUE=
6847
am__fastdepCXX_FALSE='#'
6849
am__fastdepCXX_TRUE='#'
6850
am__fastdepCXX_FALSE=
6818
6855
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819
6856
/* end confdefs.h. */
18682
if test "x$enable_debug" = "xchecks"; then
18686
ac_cpp='$CPP $CPPFLAGS'
18687
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18688
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18689
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18692
flags_save="`eval echo '$'CFLAGS`"
18695
for flag in -Werror -Wall -Wpointer-arith -Wcast-align
18697
CFLAGS="$flags_save $accepted_flags $flag "
18698
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18699
/* end confdefs.h. */
18702
if ac_fn_c_try_compile "$LINENO"; then :
18704
old_value="`eval echo '$'accepted_flags`"
18705
if test "x$old_value" = "x" ; then
18706
accepted_flags="$flag"
18707
elif test "x$flag" != "x" ; then
18708
accepted_flags="$old_value $flag"
18712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18715
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
18716
if test "x$old_value" = "x" ; then
18717
EXTRA_DEBUG_CFLAGS="$accepted_flags"
18718
elif test "x$accepted_flags" != "x" ; then
18719
EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
18723
CFLAGS="$flags_save"
18726
ac_cpp='$CPP $CPPFLAGS'
18727
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18728
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18729
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18736
ac_cpp='$CPP $CPPFLAGS'
18737
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18738
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18739
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18742
flags_save="`eval echo '$'CFLAGS`"
18745
for flag in -Wmissing-prototypes -Wmissing-declarations
18747
CFLAGS="$flags_save $accepted_flags $flag "
18748
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749
/* end confdefs.h. */
18752
if ac_fn_c_try_compile "$LINENO"; then :
18754
old_value="`eval echo '$'accepted_flags`"
18755
if test "x$old_value" = "x" ; then
18756
accepted_flags="$flag"
18757
elif test "x$flag" != "x" ; then
18758
accepted_flags="$old_value $flag"
18762
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18765
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
18766
if test "x$old_value" = "x" ; then
18767
EXTRA_DEBUG_CFLAGS="$accepted_flags"
18768
elif test "x$accepted_flags" != "x" ; then
18769
EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
18773
CFLAGS="$flags_save"
18776
ac_cpp='$CPP $CPPFLAGS'
18777
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18786
ac_cpp='$CPP $CPPFLAGS'
18787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18792
flags_save="`eval echo '$'CFLAGS`"
18795
for flag in -Wstrict-prototypes -Wnested-externs -Wl,--no-add-needed
18797
CFLAGS="$flags_save $accepted_flags $flag "
18798
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18799
/* end confdefs.h. */
18802
if ac_fn_c_try_compile "$LINENO"; then :
18804
old_value="`eval echo '$'accepted_flags`"
18805
if test "x$old_value" = "x" ; then
18806
accepted_flags="$flag"
18807
elif test "x$flag" != "x" ; then
18808
accepted_flags="$old_value $flag"
18812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18815
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
18816
if test "x$old_value" = "x" ; then
18817
EXTRA_DEBUG_CFLAGS="$accepted_flags"
18818
elif test "x$accepted_flags" != "x" ; then
18819
EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
18823
CFLAGS="$flags_save"
18826
ac_cpp='$CPP $CPPFLAGS'
18827
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18828
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18829
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18836
ac_cpp='$CXXCPP $CPPFLAGS'
18837
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18838
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18839
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18842
flags_save="`eval echo '$'CXXFLAGS`"
18845
for flag in -Werror -Wall -Wpointer-arith -Wcast-align
18847
CXXFLAGS="$flags_save $accepted_flags $flag "
18848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18849
/* end confdefs.h. */
18852
if ac_fn_cxx_try_compile "$LINENO"; then :
18854
old_value="`eval echo '$'accepted_flags`"
18855
if test "x$old_value" = "x" ; then
18856
accepted_flags="$flag"
18857
elif test "x$flag" != "x" ; then
18858
accepted_flags="$old_value $flag"
18862
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
18866
if test "x$old_value" = "x" ; then
18867
EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
18868
elif test "x$accepted_flags" != "x" ; then
18869
EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
18873
CXXFLAGS="$flags_save"
18876
ac_cpp='$CPP $CPPFLAGS'
18877
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18878
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18879
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18886
ac_cpp='$CXXCPP $CPPFLAGS'
18887
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18892
flags_save="`eval echo '$'CXXFLAGS`"
18895
for flag in --Wmissing-declarations
18897
CXXFLAGS="$flags_save $accepted_flags $flag "
18898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899
/* end confdefs.h. */
18902
if ac_fn_cxx_try_compile "$LINENO"; then :
18904
old_value="`eval echo '$'accepted_flags`"
18905
if test "x$old_value" = "x" ; then
18906
accepted_flags="$flag"
18907
elif test "x$flag" != "x" ; then
18908
accepted_flags="$old_value $flag"
18912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18915
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
18916
if test "x$old_value" = "x" ; then
18917
EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
18918
elif test "x$accepted_flags" != "x" ; then
18919
EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
18923
CXXFLAGS="$flags_save"
18926
ac_cpp='$CPP $CPPFLAGS'
18927
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18727
18935
if test "x$enable_debug" = "xno"; then
19043
# Check whether --enable-gprof was given.
19044
if test "${enable_gprof+set}" = set; then :
19045
enableval=$enable_gprof; case "${enableval}" in
19046
yes) enable_gprof=yes ;;
19047
no) enable_gprof=no ;;
19048
*) as_fn_error "bad value ${enableval} for --enable-gprof" "$LINENO" 5 ;;
19055
if test "x$enable_gprof" = "xyes"; then
19059
ac_cpp='$CPP $CPPFLAGS'
19060
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19065
flags_save="`eval echo '$'CFLAGS`"
19070
CFLAGS="$flags_save $accepted_flags $flag "
19071
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19072
/* end confdefs.h. */
19075
if ac_fn_c_try_compile "$LINENO"; then :
19077
old_value="`eval echo '$'accepted_flags`"
19078
if test "x$old_value" = "x" ; then
19079
accepted_flags="$flag"
19080
elif test "x$flag" != "x" ; then
19081
accepted_flags="$old_value $flag"
19085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19088
old_value="`eval echo '$'EXTRA_DEBUG_CFLAGS`"
19089
if test "x$old_value" = "x" ; then
19090
EXTRA_DEBUG_CFLAGS="$accepted_flags"
19091
elif test "x$accepted_flags" != "x" ; then
19092
EXTRA_DEBUG_CFLAGS="$old_value $accepted_flags"
19096
CFLAGS="$flags_save"
19099
ac_cpp='$CPP $CPPFLAGS'
19100
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19101
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19102
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
ac_cpp='$CXXCPP $CPPFLAGS'
19110
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19111
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19112
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19115
flags_save="`eval echo '$'CXXFLAGS`"
19120
CXXFLAGS="$flags_save $accepted_flags $flag "
19121
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122
/* end confdefs.h. */
19125
if ac_fn_cxx_try_compile "$LINENO"; then :
19127
old_value="`eval echo '$'accepted_flags`"
19128
if test "x$old_value" = "x" ; then
19129
accepted_flags="$flag"
19130
elif test "x$flag" != "x" ; then
19131
accepted_flags="$old_value $flag"
19135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138
old_value="`eval echo '$'EXTRA_DEBUG_CXXFLAGS`"
19139
if test "x$old_value" = "x" ; then
19140
EXTRA_DEBUG_CXXFLAGS="$accepted_flags"
19141
elif test "x$accepted_flags" != "x" ; then
19142
EXTRA_DEBUG_CXXFLAGS="$old_value $accepted_flags"
19146
CXXFLAGS="$flags_save"
19149
ac_cpp='$CPP $CPPFLAGS'
19150
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18835
19159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
18836
19160
$as_echo_n "checking for C99 variadic macros... " >&6; }
18837
19161
if test "${ac_cv_c99_variadic_macros+set}" = set; then :
27497
# Check whether --enable-gtktest was given.
27498
if test "${enable_gtktest+set}" = set; then :
27499
enableval=$enable_gtktest;
27505
pkg_config_args=gtk+-2.0
27510
pkg_config_args="$pkg_config_args gthread-2.0"
27517
# Extract the first word of "pkg-config", so it can be a program name with args.
27518
set dummy pkg-config; ac_word=$2
27519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27520
$as_echo_n "checking for $ac_word... " >&6; }
27521
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
27522
$as_echo_n "(cached) " >&6
27524
case $PKG_CONFIG in
27526
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27530
for as_dir in $PATH
27533
test -z "$as_dir" && as_dir=.
27534
for ac_exec_ext in '' $ac_executable_extensions; do
27535
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27536
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27537
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27544
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27548
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27549
if test -n "$PKG_CONFIG"; then
27550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
27551
$as_echo "$PKG_CONFIG" >&6; }
27553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27554
$as_echo "no" >&6; }
27559
if test x$PKG_CONFIG != xno ; then
27560
if pkg-config --atleast-pkgconfig-version 0.7 ; then
27563
echo *** pkg-config too old; version 0.7 or better required.
27571
min_gtk_version=2.6.0
27572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
27573
$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
27575
if test x$PKG_CONFIG != xno ; then
27576
## don't try to run the test against uninstalled libtool libs
27577
if $PKG_CONFIG --uninstalled $pkg_config_args; then
27578
echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27582
if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27589
if test x"$no_gtk" = x ; then
27590
GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27591
GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27592
gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27593
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27594
gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27595
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27596
gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27597
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27598
if test "x$enable_gtktest" = "xyes" ; then
27599
ac_save_CFLAGS="$CFLAGS"
27600
ac_save_LIBS="$LIBS"
27601
CFLAGS="$CFLAGS $GTK_CFLAGS"
27602
LIBS="$GTK_LIBS $LIBS"
27604
if test "$cross_compiling" = yes; then :
27605
echo $ac_n "cross compiling; assumed OK... $ac_c"
27607
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608
/* end confdefs.h. */
27610
#include <gtk/gtk.h>
27612
#include <stdlib.h>
27617
int major, minor, micro;
27620
system ("touch conf.gtktest");
27622
/* HP/UX 9 (%@#!) writes to sscanf strings */
27623
tmp_version = g_strdup("$min_gtk_version");
27624
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
27625
printf("%s, bad version string\n", "$min_gtk_version");
27629
if ((gtk_major_version != $gtk_config_major_version) ||
27630
(gtk_minor_version != $gtk_config_minor_version) ||
27631
(gtk_micro_version != $gtk_config_micro_version))
27633
printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27634
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27635
gtk_major_version, gtk_minor_version, gtk_micro_version);
27636
printf ("*** was found! If pkg-config was correct, then it is best\n");
27637
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27638
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27639
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27640
printf("*** required on your system.\n");
27641
printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27642
printf("*** to point to the correct configuration files\n");
27644
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27645
(gtk_minor_version != GTK_MINOR_VERSION) ||
27646
(gtk_micro_version != GTK_MICRO_VERSION))
27648
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27649
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27650
printf("*** library (version %d.%d.%d)\n",
27651
gtk_major_version, gtk_minor_version, gtk_micro_version);
27655
if ((gtk_major_version > major) ||
27656
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27657
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27663
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27664
gtk_major_version, gtk_minor_version, gtk_micro_version);
27665
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27666
major, minor, micro);
27667
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27669
printf("*** If you have already installed a sufficiently new version, this error\n");
27670
printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27671
printf("*** being found. The easiest way to fix this is to remove the old version\n");
27672
printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27673
printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27674
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27675
printf("*** so that the correct libraries are found at run-time))\n");
27682
if ac_fn_c_try_run "$LINENO"; then :
27687
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27688
conftest.$ac_objext conftest.beam conftest.$ac_ext
27691
CFLAGS="$ac_save_CFLAGS"
27692
LIBS="$ac_save_LIBS"
27695
if test "x$no_gtk" = x ; then
27696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27697
$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
27701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTHREAD" >&5
27702
$as_echo_n "checking for GTHREAD... " >&6; }
27704
if test -n "$PKG_CONFIG"; then
27705
if test -n "$GTHREAD_CFLAGS"; then
27706
pkg_cv_GTHREAD_CFLAGS="$GTHREAD_CFLAGS"
27708
if test -n "$PKG_CONFIG" && \
27709
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
27710
($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
27712
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27713
test $ac_status = 0; }; then
27714
pkg_cv_GTHREAD_CFLAGS=`$PKG_CONFIG --cflags "gthread-2.0" 2>/dev/null`
27722
if test -n "$PKG_CONFIG"; then
27723
if test -n "$GTHREAD_LIBS"; then
27724
pkg_cv_GTHREAD_LIBS="$GTHREAD_LIBS"
27726
if test -n "$PKG_CONFIG" && \
27727
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gthread-2.0\""; } >&5
27728
($PKG_CONFIG --exists --print-errors "gthread-2.0") 2>&5
27730
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27731
test $ac_status = 0; }; then
27732
pkg_cv_GTHREAD_LIBS=`$PKG_CONFIG --libs "gthread-2.0" 2>/dev/null`
27743
if test $pkg_failed = yes; then
27745
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27746
_pkg_short_errors_supported=yes
27748
_pkg_short_errors_supported=no
27750
if test $_pkg_short_errors_supported = yes; then
27751
GTHREAD_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gthread-2.0"`
27753
GTHREAD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gthread-2.0"`
27755
# Put the nasty error message in config.log where it belongs
27756
echo "$GTHREAD_PKG_ERRORS" >&5
27758
as_fn_error "Package requirements (gthread-2.0) were not met:
27760
$GTHREAD_PKG_ERRORS
27762
Consider adjusting the PKG_CONFIG_PATH environment variable if you
27763
installed software in a non-standard prefix.
27765
Alternatively, you may set the environment variables GTHREAD_CFLAGS
27766
and GTHREAD_LIBS to avoid the need to call pkg-config.
27767
See the pkg-config man page for more details.
27769
elif test $pkg_failed = untried; then
27770
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27771
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27772
as_fn_error "The pkg-config script could not be found or is too old. Make sure it
27773
is in your PATH or set the PKG_CONFIG environment variable to the full
27774
path to pkg-config.
27776
Alternatively, you may set the environment variables GTHREAD_CFLAGS
27777
and GTHREAD_LIBS to avoid the need to call pkg-config.
27778
See the pkg-config man page for more details.
27780
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27781
See \`config.log' for more details." "$LINENO" 5; }
27783
GTHREAD_CFLAGS=$pkg_cv_GTHREAD_CFLAGS
27784
GTHREAD_LIBS=$pkg_cv_GTHREAD_LIBS
27785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27786
$as_echo "yes" >&6; }
27789
MP_gtk2_CFLAGS="$GTK_CFLAGS $GTHREAD_CFLAGS"
27790
MP_gtk2_LIBS="$GTK_LIBS $GTHREAD_LIBS"
27791
if test "x$MINGW32" = "xyes"; then
27792
MP_gtk2_CFLAGS="$MP_gtk2_CFLAGS -mms-bitfields"
27793
MP_gtk2_LIBS="$GTK_LIBS"
27794
MP_gtk2_LDFLAGS="$MP_gtk2_LDFLAGS -mwindows"
27799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27800
$as_echo "no" >&6; }
27801
if test "$PKG_CONFIG" = "no" ; then
27802
echo "*** A new enough version of pkg-config was not found."
27803
echo "*** See http://pkgconfig.sourceforge.net"
27805
if test -f conf.gtktest ; then
27808
echo "*** Could not run GTK+ test program, checking why..."
27809
ac_save_CFLAGS="$CFLAGS"
27810
ac_save_LIBS="$LIBS"
27811
CFLAGS="$CFLAGS $GTK_CFLAGS"
27812
LIBS="$LIBS $GTK_LIBS"
27813
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814
/* end confdefs.h. */
27816
#include <gtk/gtk.h>
27822
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27827
if ac_fn_c_try_link "$LINENO"; then :
27828
echo "*** The test program compiled, but did not run. This usually means"
27829
echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27830
echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27831
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27832
echo "*** to the installed location Also, make sure you have run ldconfig if that"
27833
echo "*** is required on your system"
27835
echo "*** If you have an old version installed, it is best to remove it, although"
27836
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27838
echo "*** The test program failed to compile or link. See the file config.log for the"
27839
echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27841
rm -f core conftest.err conftest.$ac_objext \
27842
conftest$ac_exeext conftest.$ac_ext
27843
CFLAGS="$ac_save_CFLAGS"
27844
LIBS="$ac_save_LIBS"
27855
if test "x$modinst" = "xyes"; then