google_hash 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. data/ChangeLog.txt +2 -0
  2. data/VERSION +1 -1
  3. data/ext/clean.bat +0 -0
  4. data/ext/clean.sh +4 -0
  5. data/ext/extconf.rb +4 -5
  6. data/ext/go.bat +0 -0
  7. data/ext/sparsehash-2.0.2/AUTHORS +2 -0
  8. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/COPYING +0 -0
  9. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/ChangeLog +60 -0
  10. data/ext/sparsehash-2.0.2/INSTALL +365 -0
  11. data/ext/sparsehash-2.0.2/Makefile +1336 -0
  12. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/Makefile.am +97 -40
  13. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/Makefile.in +538 -256
  14. data/ext/sparsehash-2.0.2/NEWS +188 -0
  15. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/README +4 -10
  16. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/README_windows.txt +3 -3
  17. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/TODO +0 -0
  18. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/aclocal.m4 +266 -166
  19. data/ext/sparsehash-2.0.2/allocator.patch +31 -0
  20. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/config.guess +235 -234
  21. data/ext/sparsehash-2.0.2/config.status +1238 -0
  22. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/config.sub +198 -64
  23. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/configure +1118 -1000
  24. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/configure.ac +4 -5
  25. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/depcomp +136 -36
  26. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/dense_hash_map.html +182 -67
  27. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/dense_hash_set.html +173 -74
  28. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/designstyle.css +0 -6
  29. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/implementation.html +0 -0
  30. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/index.html +4 -5
  31. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/performance.html +1 -1
  32. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparse_hash_map.html +190 -58
  33. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparse_hash_set.html +180 -65
  34. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/doc/sparsetable.html +1 -1
  35. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/Makefile +0 -0
  36. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/README +0 -0
  37. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/example.c +1 -0
  38. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/libchash.c +1 -0
  39. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/experimental/libchash.h +1 -0
  40. data/ext/sparsehash-2.0.2/install-sh +520 -0
  41. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/acx_pthread.m4 +34 -0
  42. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/google_namespace.m4 +0 -0
  43. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/namespaces.m4 +0 -0
  44. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/stl_hash.m4 +0 -0
  45. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/m4/stl_hash_fun.m4 +0 -0
  46. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/missing +60 -44
  47. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb.sh +0 -0
  48. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/README +0 -0
  49. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/changelog +42 -0
  50. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/compat +0 -0
  51. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/control +1 -1
  52. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/copyright +5 -4
  53. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/docs +0 -0
  54. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/deb/rules +0 -0
  55. data/ext/sparsehash-2.0.2/packages/deb/sparsehash.dirs +5 -0
  56. data/ext/sparsehash-2.0.2/packages/deb/sparsehash.install +6 -0
  57. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/rpm.sh +1 -1
  58. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/packages/rpm/rpm.spec +5 -3
  59. data/ext/{sparsehash-1.8.1/google-sparsehash.sln → sparsehash-2.0.2/sparsehash.sln} +0 -0
  60. data/ext/sparsehash-2.0.2/src/config.h +132 -0
  61. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/config.h.in +0 -3
  62. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/config.h.include +0 -1
  63. data/ext/sparsehash-2.0.2/src/google/dense_hash_map +34 -0
  64. data/ext/sparsehash-2.0.2/src/google/dense_hash_set +34 -0
  65. data/ext/sparsehash-2.0.2/src/google/sparse_hash_map +34 -0
  66. data/ext/sparsehash-2.0.2/src/google/sparse_hash_set +34 -0
  67. data/ext/sparsehash-2.0.2/src/google/sparsehash/densehashtable.h +34 -0
  68. data/ext/sparsehash-2.0.2/src/google/sparsehash/hashtable-common.h +34 -0
  69. data/ext/sparsehash-2.0.2/src/google/sparsehash/libc_allocator_with_realloc.h +34 -0
  70. data/ext/sparsehash-2.0.2/src/google/sparsehash/sparsehashtable.h +34 -0
  71. data/ext/sparsehash-2.0.2/src/google/sparsetable +34 -0
  72. data/ext/sparsehash-2.0.2/src/google/template_util.h +34 -0
  73. data/ext/sparsehash-2.0.2/src/google/type_traits.h +34 -0
  74. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/hash_test_interface.h +64 -37
  75. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/hashtable_test.cc +415 -141
  76. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/libc_allocator_with_realloc_test.cc +16 -23
  77. data/ext/sparsehash-2.0.2/src/simple_compat_test.cc +106 -0
  78. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/simple_test.cc +8 -5
  79. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/dense_hash_map +80 -37
  80. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/dense_hash_set +64 -34
  81. data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/densehashtable.h +247 -173
  82. data/ext/sparsehash-2.0.2/src/sparsehash/internal/hashtable-common.h +381 -0
  83. data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/libc_allocator_with_realloc.h +5 -7
  84. data/ext/{sparsehash-1.8.1/src/google/sparsehash → sparsehash-2.0.2/src/sparsehash/internal}/sparsehashtable.h +154 -93
  85. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparse_hash_map +96 -36
  86. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparse_hash_set +85 -32
  87. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/sparsetable +520 -258
  88. data/ext/sparsehash-2.0.2/src/sparsehash/template_util.h +134 -0
  89. data/ext/{sparsehash-1.8.1/src/google → sparsehash-2.0.2/src/sparsehash}/type_traits.h +153 -35
  90. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/sparsetable_unittest.cc +108 -22
  91. data/ext/sparsehash-2.0.2/src/stamp-h1 +1 -0
  92. data/ext/sparsehash-2.0.2/src/template_util_unittest.cc +134 -0
  93. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/testutil.h +16 -1
  94. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/time_hash_map.cc +259 -94
  95. data/ext/sparsehash-2.0.2/src/type_traits_unittest.cc +636 -0
  96. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/config.h +4 -4
  97. data/ext/sparsehash-2.0.2/src/windows/google/sparsehash/sparseconfig.h +49 -0
  98. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/port.cc +1 -0
  99. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/src/windows/port.h +4 -13
  100. data/ext/sparsehash-2.0.2/src/windows/sparsehash/internal/sparseconfig.h +49 -0
  101. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/hashtable_test/hashtable_test.vcproj +11 -11
  102. data/ext/sparsehash-2.0.2/vsprojects/libc_allocator_with_realloc_test/libc_allocator_with_realloc_test.vcproj +161 -0
  103. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/simple_test/simple_test.vcproj +10 -10
  104. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/sparsetable_unittest/sparsetable_unittest.vcproj +4 -4
  105. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/time_hash_map/time_hash_map.vcproj +10 -10
  106. data/ext/{sparsehash-1.8.1 → sparsehash-2.0.2}/vsprojects/type_traits_unittest/type_traits_unittest.vcproj +3 -3
  107. data/ext/spec.bat +0 -0
  108. data/ext/template/google_hash.cpp.erb +6 -5
  109. metadata +106 -86
  110. data/ext/sparsehash-1.8.1/AUTHORS +0 -2
  111. data/ext/sparsehash-1.8.1/INSTALL +0 -236
  112. data/ext/sparsehash-1.8.1/NEWS +0 -71
  113. data/ext/sparsehash-1.8.1/compile +0 -99
  114. data/ext/sparsehash-1.8.1/install-sh +0 -323
  115. data/ext/sparsehash-1.8.1/m4/stl_namespace.m4 +0 -25
  116. data/ext/sparsehash-1.8.1/mkinstalldirs +0 -158
  117. data/ext/sparsehash-1.8.1/packages/deb/sparsehash.dirs +0 -2
  118. data/ext/sparsehash-1.8.1/packages/deb/sparsehash.install +0 -2
  119. data/ext/sparsehash-1.8.1/src/google/sparsehash/hashtable-common.h +0 -178
  120. data/ext/sparsehash-1.8.1/src/type_traits_unittest.cc +0 -502
  121. data/ext/sparsehash-1.8.1/src/windows/google/sparsehash/sparseconfig.h +0 -32
@@ -1,8 +1,8 @@
1
1
  #! /bin/sh
2
2
  # Guess values for system-dependent variables and create Makefiles.
3
- # Generated by GNU Autoconf 2.68 for sparsehash 1.8.1.
3
+ # Generated by GNU Autoconf 2.68 for sparsehash 2.0.2.
4
4
  #
5
- # Report bugs to <opensource@google.com>.
5
+ # Report bugs to <google-sparsehash@googlegroups.com>.
6
6
  #
7
7
  #
8
8
  # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
@@ -239,10 +239,10 @@ fi
239
239
  $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240
240
  else
241
241
  $as_echo "$0: Please tell bug-autoconf@gnu.org and
242
- $0: opensource@google.com about your system, including any
243
- $0: error possibly output before this message. Then install
244
- $0: a modern shell, or manually run the script under such a
245
- $0: shell if you do have one."
242
+ $0: google-sparsehash@googlegroups.com about your system,
243
+ $0: including any error possibly output before this
244
+ $0: message. Then install a modern shell, or manually run
245
+ $0: the script under such a shell if you do have one."
246
246
  fi
247
247
  exit 1
248
248
  fi
@@ -560,9 +560,9 @@ MAKEFLAGS=
560
560
  # Identity of this package.
561
561
  PACKAGE_NAME='sparsehash'
562
562
  PACKAGE_TARNAME='sparsehash'
563
- PACKAGE_VERSION='1.8.1'
564
- PACKAGE_STRING='sparsehash 1.8.1'
565
- PACKAGE_BUGREPORT='opensource@google.com'
563
+ PACKAGE_VERSION='2.0.2'
564
+ PACKAGE_STRING='sparsehash 2.0.2'
565
+ PACKAGE_BUGREPORT='google-sparsehash@googlegroups.com'
566
566
  PACKAGE_URL=''
567
567
 
568
568
  ac_unique_file="README"
@@ -602,7 +602,9 @@ ac_includes_default="\
602
602
  # include <unistd.h>
603
603
  #endif"
604
604
 
605
- ac_subst_vars='LTLIBOBJS
605
+ ac_subst_vars='am__EXEEXT_FALSE
606
+ am__EXEEXT_TRUE
607
+ LTLIBOBJS
606
608
  LIBOBJS
607
609
  tcmalloc_libs
608
610
  tcmalloc_flags
@@ -623,16 +625,16 @@ EGREP
623
625
  GREP
624
626
  GCC_FALSE
625
627
  GCC_TRUE
626
- am__fastdepCXX_FALSE
627
- am__fastdepCXX_TRUE
628
- CXXDEPMODE
629
- ac_ct_CXX
630
- CXXFLAGS
631
- CXX
632
628
  CPP
633
629
  am__fastdepCC_FALSE
634
630
  am__fastdepCC_TRUE
635
631
  CCDEPMODE
632
+ ac_ct_CC
633
+ CFLAGS
634
+ CC
635
+ am__fastdepCXX_FALSE
636
+ am__fastdepCXX_TRUE
637
+ CXXDEPMODE
636
638
  AMDEPBACKSLASH
637
639
  AMDEP_FALSE
638
640
  AMDEP_TRUE
@@ -641,11 +643,11 @@ am__include
641
643
  DEPDIR
642
644
  OBJEXT
643
645
  EXEEXT
644
- ac_ct_CC
646
+ ac_ct_CXX
645
647
  CPPFLAGS
646
648
  LDFLAGS
647
- CFLAGS
648
- CC
649
+ CXXFLAGS
650
+ CXX
649
651
  am__untar
650
652
  am__tar
651
653
  AMTAR
@@ -653,6 +655,7 @@ am__leading_dot
653
655
  SET_MAKE
654
656
  AWK
655
657
  mkdir_p
658
+ MKDIR_P
656
659
  INSTALL_STRIP_PROGRAM
657
660
  STRIP
658
661
  install_sh
@@ -664,6 +667,7 @@ ACLOCAL
664
667
  VERSION
665
668
  PACKAGE
666
669
  CYGPATH_W
670
+ am__isrc
667
671
  INSTALL_DATA
668
672
  INSTALL_SCRIPT
669
673
  INSTALL_PROGRAM
@@ -714,15 +718,15 @@ enable_namespace
714
718
  ac_precious_vars='build_alias
715
719
  host_alias
716
720
  target_alias
717
- CC
718
- CFLAGS
721
+ CXX
722
+ CXXFLAGS
719
723
  LDFLAGS
720
724
  LIBS
721
725
  CPPFLAGS
722
- CPP
723
- CXX
724
- CXXFLAGS
725
726
  CCC
727
+ CC
728
+ CFLAGS
729
+ CPP
726
730
  CXXCPP'
727
731
 
728
732
 
@@ -1266,7 +1270,7 @@ if test "$ac_init_help" = "long"; then
1266
1270
  # Omit some internal or obsolete options to make the list less imposing.
1267
1271
  # This message is too long to be a string in the A/UX 3.1 sh.
1268
1272
  cat <<_ACEOF
1269
- \`configure' configures sparsehash 1.8.1 to adapt to many kinds of systems.
1273
+ \`configure' configures sparsehash 2.0.2 to adapt to many kinds of systems.
1270
1274
 
1271
1275
  Usage: $0 [OPTION]... [VAR=VALUE]...
1272
1276
 
@@ -1336,7 +1340,7 @@ fi
1336
1340
 
1337
1341
  if test -n "$ac_init_help"; then
1338
1342
  case $ac_init_help in
1339
- short | recursive ) echo "Configuration of sparsehash 1.8.1:";;
1343
+ short | recursive ) echo "Configuration of sparsehash 2.0.2:";;
1340
1344
  esac
1341
1345
  cat <<\_ACEOF
1342
1346
 
@@ -1352,22 +1356,22 @@ Optional Features:
1352
1356
  is to define them in namespace google.
1353
1357
 
1354
1358
  Some influential environment variables:
1355
- CC C compiler command
1356
- CFLAGS C compiler flags
1359
+ CXX C++ compiler command
1360
+ CXXFLAGS C++ compiler flags
1357
1361
  LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1358
1362
  nonstandard directory <lib dir>
1359
1363
  LIBS libraries to pass to the linker, e.g. -l<library>
1360
1364
  CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1361
1365
  you have headers in a nonstandard directory <include dir>
1366
+ CC C compiler command
1367
+ CFLAGS C compiler flags
1362
1368
  CPP C preprocessor
1363
- CXX C++ compiler command
1364
- CXXFLAGS C++ compiler flags
1365
1369
  CXXCPP C++ preprocessor
1366
1370
 
1367
1371
  Use these variables to override the choices made by `configure' or to help
1368
1372
  it to find libraries and programs with nonstandard names/locations.
1369
1373
 
1370
- Report bugs to <opensource@google.com>.
1374
+ Report bugs to <google-sparsehash@googlegroups.com>.
1371
1375
  _ACEOF
1372
1376
  ac_status=$?
1373
1377
  fi
@@ -1430,7 +1434,7 @@ fi
1430
1434
  test -n "$ac_init_help" && exit $ac_status
1431
1435
  if $ac_init_version; then
1432
1436
  cat <<\_ACEOF
1433
- sparsehash configure 1.8.1
1437
+ sparsehash configure 2.0.2
1434
1438
  generated by GNU Autoconf 2.68
1435
1439
 
1436
1440
  Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1444,10 +1448,10 @@ fi
1444
1448
  ## Autoconf initialization. ##
1445
1449
  ## ------------------------ ##
1446
1450
 
1447
- # ac_fn_c_try_compile LINENO
1448
- # --------------------------
1451
+ # ac_fn_cxx_try_compile LINENO
1452
+ # ----------------------------
1449
1453
  # Try to compile conftest.$ac_ext, and return whether this succeeded.
1450
- ac_fn_c_try_compile ()
1454
+ ac_fn_cxx_try_compile ()
1451
1455
  {
1452
1456
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1453
1457
  rm -f conftest.$ac_objext
@@ -1467,7 +1471,7 @@ $as_echo "$ac_try_echo"; } >&5
1467
1471
  fi
1468
1472
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1469
1473
  test $ac_status = 0; } && {
1470
- test -z "$ac_c_werror_flag" ||
1474
+ test -z "$ac_cxx_werror_flag" ||
1471
1475
  test ! -s conftest.err
1472
1476
  } && test -s conftest.$ac_objext; then :
1473
1477
  ac_retval=0
@@ -1480,22 +1484,23 @@ fi
1480
1484
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1481
1485
  as_fn_set_status $ac_retval
1482
1486
 
1483
- } # ac_fn_c_try_compile
1487
+ } # ac_fn_cxx_try_compile
1484
1488
 
1485
- # ac_fn_c_try_cpp LINENO
1486
- # ----------------------
1487
- # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1488
- ac_fn_c_try_cpp ()
1489
+ # ac_fn_c_try_compile LINENO
1490
+ # --------------------------
1491
+ # Try to compile conftest.$ac_ext, and return whether this succeeded.
1492
+ ac_fn_c_try_compile ()
1489
1493
  {
1490
1494
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1491
- if { { ac_try="$ac_cpp conftest.$ac_ext"
1495
+ rm -f conftest.$ac_objext
1496
+ if { { ac_try="$ac_compile"
1492
1497
  case "(($ac_try" in
1493
1498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1494
1499
  *) ac_try_echo=$ac_try;;
1495
1500
  esac
1496
1501
  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1497
1502
  $as_echo "$ac_try_echo"; } >&5
1498
- (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1503
+ (eval "$ac_compile") 2>conftest.err
1499
1504
  ac_status=$?
1500
1505
  if test -s conftest.err; then
1501
1506
  grep -v '^ *+' conftest.err >conftest.er1
@@ -1503,37 +1508,36 @@ $as_echo "$ac_try_echo"; } >&5
1503
1508
  mv -f conftest.er1 conftest.err
1504
1509
  fi
1505
1510
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1506
- test $ac_status = 0; } > conftest.i && {
1507
- test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1511
+ test $ac_status = 0; } && {
1512
+ test -z "$ac_c_werror_flag" ||
1508
1513
  test ! -s conftest.err
1509
- }; then :
1514
+ } && test -s conftest.$ac_objext; then :
1510
1515
  ac_retval=0
1511
1516
  else
1512
1517
  $as_echo "$as_me: failed program was:" >&5
1513
1518
  sed 's/^/| /' conftest.$ac_ext >&5
1514
1519
 
1515
- ac_retval=1
1520
+ ac_retval=1
1516
1521
  fi
1517
1522
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1518
1523
  as_fn_set_status $ac_retval
1519
1524
 
1520
- } # ac_fn_c_try_cpp
1525
+ } # ac_fn_c_try_compile
1521
1526
 
1522
- # ac_fn_cxx_try_compile LINENO
1523
- # ----------------------------
1524
- # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525
- ac_fn_cxx_try_compile ()
1527
+ # ac_fn_c_try_cpp LINENO
1528
+ # ----------------------
1529
+ # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1530
+ ac_fn_c_try_cpp ()
1526
1531
  {
1527
1532
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528
- rm -f conftest.$ac_objext
1529
- if { { ac_try="$ac_compile"
1533
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
1530
1534
  case "(($ac_try" in
1531
1535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532
1536
  *) ac_try_echo=$ac_try;;
1533
1537
  esac
1534
1538
  eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535
1539
  $as_echo "$ac_try_echo"; } >&5
1536
- (eval "$ac_compile") 2>conftest.err
1540
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1537
1541
  ac_status=$?
1538
1542
  if test -s conftest.err; then
1539
1543
  grep -v '^ *+' conftest.err >conftest.er1
@@ -1541,21 +1545,21 @@ $as_echo "$ac_try_echo"; } >&5
1541
1545
  mv -f conftest.er1 conftest.err
1542
1546
  fi
1543
1547
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544
- test $ac_status = 0; } && {
1545
- test -z "$ac_cxx_werror_flag" ||
1548
+ test $ac_status = 0; } > conftest.i && {
1549
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1546
1550
  test ! -s conftest.err
1547
- } && test -s conftest.$ac_objext; then :
1551
+ }; then :
1548
1552
  ac_retval=0
1549
1553
  else
1550
1554
  $as_echo "$as_me: failed program was:" >&5
1551
1555
  sed 's/^/| /' conftest.$ac_ext >&5
1552
1556
 
1553
- ac_retval=1
1557
+ ac_retval=1
1554
1558
  fi
1555
1559
  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1556
1560
  as_fn_set_status $ac_retval
1557
1561
 
1558
- } # ac_fn_cxx_try_compile
1562
+ } # ac_fn_c_try_cpp
1559
1563
 
1560
1564
  # ac_fn_c_try_run LINENO
1561
1565
  # ----------------------
@@ -1867,9 +1871,9 @@ $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867
1871
  $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868
1872
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869
1873
  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870
- ( $as_echo "## ------------------------------------ ##
1871
- ## Report this to opensource@google.com ##
1872
- ## ------------------------------------ ##"
1874
+ ( $as_echo "## ------------------------------------------------- ##
1875
+ ## Report this to google-sparsehash@googlegroups.com ##
1876
+ ## ------------------------------------------------- ##"
1873
1877
  ) | sed "s/^/$as_me: WARNING: /" >&2
1874
1878
  ;;
1875
1879
  esac
@@ -1995,9 +1999,9 @@ $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995
1999
  $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1996
2000
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997
2001
  $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998
- ( $as_echo "## ------------------------------------ ##
1999
- ## Report this to opensource@google.com ##
2000
- ## ------------------------------------ ##"
2002
+ ( $as_echo "## ------------------------------------------------- ##
2003
+ ## Report this to google-sparsehash@googlegroups.com ##
2004
+ ## ------------------------------------------------- ##"
2001
2005
  ) | sed "s/^/$as_me: WARNING: /" >&2
2002
2006
  ;;
2003
2007
  esac
@@ -2019,7 +2023,7 @@ cat >config.log <<_ACEOF
2019
2023
  This file contains any messages produced by compilers while
2020
2024
  running configure, to aid debugging if configure makes a mistake.
2021
2025
 
2022
- It was created by sparsehash $as_me 1.8.1, which was
2026
+ It was created by sparsehash $as_me 2.0.2, which was
2023
2027
  generated by GNU Autoconf 2.68. Invocation command line was
2024
2028
 
2025
2029
  $ $0 $@
@@ -2370,7 +2374,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2374
  # The argument here is just something that should be in the current directory
2371
2375
  # (for sanity checking)
2372
2376
 
2373
- am__api_version="1.9"
2377
+ am__api_version='1.11'
2378
+
2374
2379
  ac_aux_dir=
2375
2380
  for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2376
2381
  if test -f "$ac_dir/install-sh"; then
@@ -2498,16 +2503,29 @@ $as_echo_n "checking whether build environment is sane... " >&6; }
2498
2503
  # Just in case
2499
2504
  sleep 1
2500
2505
  echo timestamp > conftest.file
2506
+ # Reject unsafe characters in $srcdir or the absolute working directory
2507
+ # name. Accept space and tab only in the latter.
2508
+ am_lf='
2509
+ '
2510
+ case `pwd` in
2511
+ *[\\\"\#\$\&\'\`$am_lf]*)
2512
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2513
+ esac
2514
+ case $srcdir in
2515
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2516
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2517
+ esac
2518
+
2501
2519
  # Do `set' in a subshell so we don't clobber the current shell's
2502
2520
  # arguments. Must try -L first in case configure is actually a
2503
2521
  # symlink; some systems play weird games with the mod time of symlinks
2504
2522
  # (eg FreeBSD returns the mod time of the symlink's containing
2505
2523
  # directory).
2506
2524
  if (
2507
- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2525
+ set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2508
2526
  if test "$*" = "X"; then
2509
2527
  # -L didn't work.
2510
- set X `ls -t $srcdir/configure conftest.file`
2528
+ set X `ls -t "$srcdir/configure" conftest.file`
2511
2529
  fi
2512
2530
  rm -f conftest.file
2513
2531
  if test "$*" != "X $srcdir/configure conftest.file" \
@@ -2545,7 +2563,14 @@ program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2545
2563
  # expand $ac_aux_dir to an absolute path
2546
2564
  am_aux_dir=`cd $ac_aux_dir && pwd`
2547
2565
 
2548
- test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2566
+ if test x"${MISSING+set}" != xset; then
2567
+ case $am_aux_dir in
2568
+ *\ * | *\ *)
2569
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2570
+ *)
2571
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
2572
+ esac
2573
+ fi
2549
2574
  # Use eval to expand $SHELL
2550
2575
  if eval "$MISSING --run true"; then
2551
2576
  am_missing_run="$MISSING --run "
@@ -2555,38 +2580,162 @@ else
2555
2580
  $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2556
2581
  fi
2557
2582
 
2558
- if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2559
- # We used to keeping the `.' as first argument, in order to
2560
- # allow $(mkdir_p) to be used without argument. As in
2561
- # $(mkdir_p) $(somedir)
2562
- # where $(somedir) is conditionally defined. However this is wrong
2563
- # for two reasons:
2564
- # 1. if the package is installed by a user who cannot write `.'
2565
- # make install will fail,
2566
- # 2. the above comment should most certainly read
2567
- # $(mkdir_p) $(DESTDIR)$(somedir)
2568
- # so it does not work when $(somedir) is undefined and
2569
- # $(DESTDIR) is not.
2570
- # To support the latter case, we have to write
2571
- # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2572
- # so the `.' trick is pointless.
2573
- mkdir_p='mkdir -p --'
2574
- else
2575
- # On NextStep and OpenStep, the `mkdir' command does not
2576
- # recognize any option. It will interpret all options as
2577
- # directories to create, and then abort because `.' already
2578
- # exists.
2579
- for d in ./-p ./--version;
2580
- do
2581
- test -d $d && rmdir $d
2583
+ if test x"${install_sh}" != xset; then
2584
+ case $am_aux_dir in
2585
+ *\ * | *\ *)
2586
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2587
+ *)
2588
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
2589
+ esac
2590
+ fi
2591
+
2592
+ # Installed binaries are usually stripped using `strip' when the user
2593
+ # run `make install-strip'. However `strip' might not be the right
2594
+ # tool to use in cross-compilation environments, therefore Automake
2595
+ # will honor the `STRIP' environment variable to overrule this program.
2596
+ if test "$cross_compiling" != no; then
2597
+ if test -n "$ac_tool_prefix"; then
2598
+ # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2599
+ set dummy ${ac_tool_prefix}strip; ac_word=$2
2600
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601
+ $as_echo_n "checking for $ac_word... " >&6; }
2602
+ if ${ac_cv_prog_STRIP+:} false; then :
2603
+ $as_echo_n "(cached) " >&6
2604
+ else
2605
+ if test -n "$STRIP"; then
2606
+ ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2607
+ else
2608
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609
+ for as_dir in $PATH
2610
+ do
2611
+ IFS=$as_save_IFS
2612
+ test -z "$as_dir" && as_dir=.
2613
+ for ac_exec_ext in '' $ac_executable_extensions; do
2614
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2616
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617
+ break 2
2618
+ fi
2619
+ done
2620
+ done
2621
+ IFS=$as_save_IFS
2622
+
2623
+ fi
2624
+ fi
2625
+ STRIP=$ac_cv_prog_STRIP
2626
+ if test -n "$STRIP"; then
2627
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2628
+ $as_echo "$STRIP" >&6; }
2629
+ else
2630
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631
+ $as_echo "no" >&6; }
2632
+ fi
2633
+
2634
+
2635
+ fi
2636
+ if test -z "$ac_cv_prog_STRIP"; then
2637
+ ac_ct_STRIP=$STRIP
2638
+ # Extract the first word of "strip", so it can be a program name with args.
2639
+ set dummy strip; ac_word=$2
2640
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641
+ $as_echo_n "checking for $ac_word... " >&6; }
2642
+ if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2643
+ $as_echo_n "(cached) " >&6
2644
+ else
2645
+ if test -n "$ac_ct_STRIP"; then
2646
+ ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2647
+ else
2648
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649
+ for as_dir in $PATH
2650
+ do
2651
+ IFS=$as_save_IFS
2652
+ test -z "$as_dir" && as_dir=.
2653
+ for ac_exec_ext in '' $ac_executable_extensions; do
2654
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655
+ ac_cv_prog_ac_ct_STRIP="strip"
2656
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657
+ break 2
2658
+ fi
2659
+ done
2660
+ done
2661
+ IFS=$as_save_IFS
2662
+
2663
+ fi
2664
+ fi
2665
+ ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2666
+ if test -n "$ac_ct_STRIP"; then
2667
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2668
+ $as_echo "$ac_ct_STRIP" >&6; }
2669
+ else
2670
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671
+ $as_echo "no" >&6; }
2672
+ fi
2673
+
2674
+ if test "x$ac_ct_STRIP" = x; then
2675
+ STRIP=":"
2676
+ else
2677
+ case $cross_compiling:$ac_tool_warned in
2678
+ yes:)
2679
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2680
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2681
+ ac_tool_warned=yes ;;
2682
+ esac
2683
+ STRIP=$ac_ct_STRIP
2684
+ fi
2685
+ else
2686
+ STRIP="$ac_cv_prog_STRIP"
2687
+ fi
2688
+
2689
+ fi
2690
+ INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2691
+
2692
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2693
+ $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2694
+ if test -z "$MKDIR_P"; then
2695
+ if ${ac_cv_path_mkdir+:} false; then :
2696
+ $as_echo_n "(cached) " >&6
2697
+ else
2698
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2699
+ for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2700
+ do
2701
+ IFS=$as_save_IFS
2702
+ test -z "$as_dir" && as_dir=.
2703
+ for ac_prog in mkdir gmkdir; do
2704
+ for ac_exec_ext in '' $ac_executable_extensions; do
2705
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2706
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2707
+ 'mkdir (GNU coreutils) '* | \
2708
+ 'mkdir (coreutils) '* | \
2709
+ 'mkdir (fileutils) '4.1*)
2710
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2711
+ break 3;;
2712
+ esac
2713
+ done
2714
+ done
2582
2715
  done
2583
- # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2584
- if test -f "$ac_aux_dir/mkinstalldirs"; then
2585
- mkdir_p='$(mkinstalldirs)'
2716
+ IFS=$as_save_IFS
2717
+
2718
+ fi
2719
+
2720
+ test -d ./--version && rmdir ./--version
2721
+ if test "${ac_cv_path_mkdir+set}" = set; then
2722
+ MKDIR_P="$ac_cv_path_mkdir -p"
2586
2723
  else
2587
- mkdir_p='$(install_sh) -d'
2724
+ # As a last resort, use the slow shell script. Don't cache a
2725
+ # value for MKDIR_P within a source directory, because that will
2726
+ # break other packages using the cache if that directory is
2727
+ # removed, or if the value is a relative name.
2728
+ MKDIR_P="$ac_install_sh -d"
2588
2729
  fi
2589
2730
  fi
2731
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2732
+ $as_echo "$MKDIR_P" >&6; }
2733
+
2734
+ mkdir_p="$MKDIR_P"
2735
+ case $mkdir_p in
2736
+ [\\/$]* | ?:[\\/]*) ;;
2737
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2738
+ esac
2590
2739
 
2591
2740
  for ac_prog in gawk mawk nawk awk
2592
2741
  do
@@ -2670,10 +2819,14 @@ else
2670
2819
  fi
2671
2820
  rmdir .tst 2>/dev/null
2672
2821
 
2673
- # test to see if srcdir already configured
2674
- if test "`cd $srcdir && pwd`" != "`pwd`" &&
2675
- test -f $srcdir/config.status; then
2676
- as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2822
+ if test "`cd $srcdir && pwd`" != "`pwd`"; then
2823
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2824
+ # is not polluted with repeated "-I."
2825
+ am__isrc=' -I$(srcdir)'
2826
+ # test to see if srcdir already configured
2827
+ if test -f $srcdir/config.status; then
2828
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2829
+ fi
2677
2830
  fi
2678
2831
 
2679
2832
  # test whether we have cygpath
@@ -2688,7 +2841,7 @@ fi
2688
2841
 
2689
2842
  # Define the identity of the package.
2690
2843
  PACKAGE='sparsehash'
2691
- VERSION='1.8.1'
2844
+ VERSION='2.0.2'
2692
2845
 
2693
2846
 
2694
2847
  cat >>confdefs.h <<_ACEOF
@@ -2716,113 +2869,11 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2716
2869
 
2717
2870
  MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2718
2871
 
2719
- install_sh=${install_sh-"$am_aux_dir/install-sh"}
2872
+ # We need awk for the "check" target. The system "awk" is bad on
2873
+ # some platforms.
2874
+ # Always define AMTAR for backward compatibility.
2720
2875
 
2721
- # Installed binaries are usually stripped using `strip' when the user
2722
- # run `make install-strip'. However `strip' might not be the right
2723
- # tool to use in cross-compilation environments, therefore Automake
2724
- # will honor the `STRIP' environment variable to overrule this program.
2725
- if test "$cross_compiling" != no; then
2726
- if test -n "$ac_tool_prefix"; then
2727
- # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2728
- set dummy ${ac_tool_prefix}strip; ac_word=$2
2729
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730
- $as_echo_n "checking for $ac_word... " >&6; }
2731
- if ${ac_cv_prog_STRIP+:} false; then :
2732
- $as_echo_n "(cached) " >&6
2733
- else
2734
- if test -n "$STRIP"; then
2735
- ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2736
- else
2737
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738
- for as_dir in $PATH
2739
- do
2740
- IFS=$as_save_IFS
2741
- test -z "$as_dir" && as_dir=.
2742
- for ac_exec_ext in '' $ac_executable_extensions; do
2743
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744
- ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2745
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746
- break 2
2747
- fi
2748
- done
2749
- done
2750
- IFS=$as_save_IFS
2751
-
2752
- fi
2753
- fi
2754
- STRIP=$ac_cv_prog_STRIP
2755
- if test -n "$STRIP"; then
2756
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2757
- $as_echo "$STRIP" >&6; }
2758
- else
2759
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760
- $as_echo "no" >&6; }
2761
- fi
2762
-
2763
-
2764
- fi
2765
- if test -z "$ac_cv_prog_STRIP"; then
2766
- ac_ct_STRIP=$STRIP
2767
- # Extract the first word of "strip", so it can be a program name with args.
2768
- set dummy strip; ac_word=$2
2769
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770
- $as_echo_n "checking for $ac_word... " >&6; }
2771
- if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2772
- $as_echo_n "(cached) " >&6
2773
- else
2774
- if test -n "$ac_ct_STRIP"; then
2775
- ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2776
- else
2777
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778
- for as_dir in $PATH
2779
- do
2780
- IFS=$as_save_IFS
2781
- test -z "$as_dir" && as_dir=.
2782
- for ac_exec_ext in '' $ac_executable_extensions; do
2783
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784
- ac_cv_prog_ac_ct_STRIP="strip"
2785
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786
- break 2
2787
- fi
2788
- done
2789
- done
2790
- IFS=$as_save_IFS
2791
-
2792
- fi
2793
- fi
2794
- ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2795
- if test -n "$ac_ct_STRIP"; then
2796
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2797
- $as_echo "$ac_ct_STRIP" >&6; }
2798
- else
2799
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800
- $as_echo "no" >&6; }
2801
- fi
2802
-
2803
- if test "x$ac_ct_STRIP" = x; then
2804
- STRIP=":"
2805
- else
2806
- case $cross_compiling:$ac_tool_warned in
2807
- yes:)
2808
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2809
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2810
- ac_tool_warned=yes ;;
2811
- esac
2812
- STRIP=$ac_ct_STRIP
2813
- fi
2814
- else
2815
- STRIP="$ac_cv_prog_STRIP"
2816
- fi
2817
-
2818
- fi
2819
- INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2820
-
2821
- # We need awk for the "check" target. The system "awk" is bad on
2822
- # some platforms.
2823
- # Always define AMTAR for backward compatibility.
2824
-
2825
- AMTAR=${AMTAR-"${am_missing_run}tar"}
2876
+ AMTAR=${AMTAR-"${am_missing_run}tar"}
2826
2877
 
2827
2878
  am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2828
2879
 
@@ -2834,213 +2885,27 @@ ac_config_headers="$ac_config_headers src/config.h"
2834
2885
 
2835
2886
 
2836
2887
  # Checks for programs.
2837
- ac_ext=c
2838
- ac_cpp='$CPP $CPPFLAGS'
2839
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842
- if test -n "$ac_tool_prefix"; then
2843
- # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2844
- set dummy ${ac_tool_prefix}gcc; ac_word=$2
2845
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846
- $as_echo_n "checking for $ac_word... " >&6; }
2847
- if ${ac_cv_prog_CC+:} false; then :
2848
- $as_echo_n "(cached) " >&6
2849
- else
2850
- if test -n "$CC"; then
2851
- ac_cv_prog_CC="$CC" # Let the user override the test.
2852
- else
2853
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2854
- for as_dir in $PATH
2855
- do
2856
- IFS=$as_save_IFS
2857
- test -z "$as_dir" && as_dir=.
2858
- for ac_exec_ext in '' $ac_executable_extensions; do
2859
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2860
- ac_cv_prog_CC="${ac_tool_prefix}gcc"
2861
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2862
- break 2
2863
- fi
2864
- done
2865
- done
2866
- IFS=$as_save_IFS
2867
-
2868
- fi
2869
- fi
2870
- CC=$ac_cv_prog_CC
2871
- if test -n "$CC"; then
2872
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873
- $as_echo "$CC" >&6; }
2874
- else
2875
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876
- $as_echo "no" >&6; }
2877
- fi
2878
-
2879
-
2880
- fi
2881
- if test -z "$ac_cv_prog_CC"; then
2882
- ac_ct_CC=$CC
2883
- # Extract the first word of "gcc", so it can be a program name with args.
2884
- set dummy gcc; ac_word=$2
2885
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886
- $as_echo_n "checking for $ac_word... " >&6; }
2887
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
2888
- $as_echo_n "(cached) " >&6
2889
- else
2890
- if test -n "$ac_ct_CC"; then
2891
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2892
- else
2893
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2894
- for as_dir in $PATH
2895
- do
2896
- IFS=$as_save_IFS
2897
- test -z "$as_dir" && as_dir=.
2898
- for ac_exec_ext in '' $ac_executable_extensions; do
2899
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900
- ac_cv_prog_ac_ct_CC="gcc"
2901
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2902
- break 2
2903
- fi
2904
- done
2905
- done
2906
- IFS=$as_save_IFS
2907
-
2908
- fi
2909
- fi
2910
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911
- if test -n "$ac_ct_CC"; then
2912
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2913
- $as_echo "$ac_ct_CC" >&6; }
2914
- else
2915
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916
- $as_echo "no" >&6; }
2917
- fi
2918
-
2919
- if test "x$ac_ct_CC" = x; then
2920
- CC=""
2888
+ ac_ext=cpp
2889
+ ac_cpp='$CXXCPP $CPPFLAGS'
2890
+ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891
+ ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892
+ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2893
+ if test -z "$CXX"; then
2894
+ if test -n "$CCC"; then
2895
+ CXX=$CCC
2921
2896
  else
2922
- case $cross_compiling:$ac_tool_warned in
2923
- yes:)
2924
- { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925
- $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926
- ac_tool_warned=yes ;;
2927
- esac
2928
- CC=$ac_ct_CC
2929
- fi
2930
- else
2931
- CC="$ac_cv_prog_CC"
2932
- fi
2933
-
2934
- if test -z "$CC"; then
2935
- if test -n "$ac_tool_prefix"; then
2936
- # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2937
- set dummy ${ac_tool_prefix}cc; ac_word=$2
2938
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939
- $as_echo_n "checking for $ac_word... " >&6; }
2940
- if ${ac_cv_prog_CC+:} false; then :
2941
- $as_echo_n "(cached) " >&6
2942
- else
2943
- if test -n "$CC"; then
2944
- ac_cv_prog_CC="$CC" # Let the user override the test.
2945
- else
2946
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947
- for as_dir in $PATH
2948
- do
2949
- IFS=$as_save_IFS
2950
- test -z "$as_dir" && as_dir=.
2951
- for ac_exec_ext in '' $ac_executable_extensions; do
2952
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2953
- ac_cv_prog_CC="${ac_tool_prefix}cc"
2954
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2955
- break 2
2956
- fi
2957
- done
2958
- done
2959
- IFS=$as_save_IFS
2960
-
2961
- fi
2962
- fi
2963
- CC=$ac_cv_prog_CC
2964
- if test -n "$CC"; then
2965
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966
- $as_echo "$CC" >&6; }
2967
- else
2968
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969
- $as_echo "no" >&6; }
2970
- fi
2971
-
2972
-
2973
- fi
2974
- fi
2975
- if test -z "$CC"; then
2976
- # Extract the first word of "cc", so it can be a program name with args.
2977
- set dummy cc; ac_word=$2
2978
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979
- $as_echo_n "checking for $ac_word... " >&6; }
2980
- if ${ac_cv_prog_CC+:} false; then :
2981
- $as_echo_n "(cached) " >&6
2982
- else
2983
- if test -n "$CC"; then
2984
- ac_cv_prog_CC="$CC" # Let the user override the test.
2985
- else
2986
- ac_prog_rejected=no
2987
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988
- for as_dir in $PATH
2989
- do
2990
- IFS=$as_save_IFS
2991
- test -z "$as_dir" && as_dir=.
2992
- for ac_exec_ext in '' $ac_executable_extensions; do
2993
- if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2994
- if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2995
- ac_prog_rejected=yes
2996
- continue
2997
- fi
2998
- ac_cv_prog_CC="cc"
2999
- $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000
- break 2
3001
- fi
3002
- done
3003
- done
3004
- IFS=$as_save_IFS
3005
-
3006
- if test $ac_prog_rejected = yes; then
3007
- # We found a bogon in the path, so make sure we never use it.
3008
- set dummy $ac_cv_prog_CC
3009
- shift
3010
- if test $# != 0; then
3011
- # We chose a different compiler from the bogus one.
3012
- # However, it has the same basename, so the bogon will be chosen
3013
- # first if we set CC to just the basename; use the full file name.
3014
- shift
3015
- ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3016
- fi
3017
- fi
3018
- fi
3019
- fi
3020
- CC=$ac_cv_prog_CC
3021
- if test -n "$CC"; then
3022
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023
- $as_echo "$CC" >&6; }
3024
- else
3025
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026
- $as_echo "no" >&6; }
3027
- fi
3028
-
3029
-
3030
- fi
3031
- if test -z "$CC"; then
3032
- if test -n "$ac_tool_prefix"; then
3033
- for ac_prog in cl.exe
2897
+ if test -n "$ac_tool_prefix"; then
2898
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3034
2899
  do
3035
2900
  # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036
2901
  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037
2902
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038
2903
  $as_echo_n "checking for $ac_word... " >&6; }
3039
- if ${ac_cv_prog_CC+:} false; then :
2904
+ if ${ac_cv_prog_CXX+:} false; then :
3040
2905
  $as_echo_n "(cached) " >&6
3041
2906
  else
3042
- if test -n "$CC"; then
3043
- ac_cv_prog_CC="$CC" # Let the user override the test.
2907
+ if test -n "$CXX"; then
2908
+ ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044
2909
  else
3045
2910
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046
2911
  for as_dir in $PATH
@@ -3049,7 +2914,7 @@ do
3049
2914
  test -z "$as_dir" && as_dir=.
3050
2915
  for ac_exec_ext in '' $ac_executable_extensions; do
3051
2916
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052
- ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2917
+ ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053
2918
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054
2919
  break 2
3055
2920
  fi
@@ -3059,32 +2924,32 @@ IFS=$as_save_IFS
3059
2924
 
3060
2925
  fi
3061
2926
  fi
3062
- CC=$ac_cv_prog_CC
3063
- if test -n "$CC"; then
3064
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065
- $as_echo "$CC" >&6; }
2927
+ CXX=$ac_cv_prog_CXX
2928
+ if test -n "$CXX"; then
2929
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2930
+ $as_echo "$CXX" >&6; }
3066
2931
  else
3067
2932
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068
2933
  $as_echo "no" >&6; }
3069
2934
  fi
3070
2935
 
3071
2936
 
3072
- test -n "$CC" && break
2937
+ test -n "$CXX" && break
3073
2938
  done
3074
2939
  fi
3075
- if test -z "$CC"; then
3076
- ac_ct_CC=$CC
3077
- for ac_prog in cl.exe
2940
+ if test -z "$CXX"; then
2941
+ ac_ct_CXX=$CXX
2942
+ for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3078
2943
  do
3079
2944
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3080
2945
  set dummy $ac_prog; ac_word=$2
3081
2946
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082
2947
  $as_echo_n "checking for $ac_word... " >&6; }
3083
- if ${ac_cv_prog_ac_ct_CC+:} false; then :
2948
+ if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3084
2949
  $as_echo_n "(cached) " >&6
3085
2950
  else
3086
- if test -n "$ac_ct_CC"; then
3087
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2951
+ if test -n "$ac_ct_CXX"; then
2952
+ ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088
2953
  else
3089
2954
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090
2955
  for as_dir in $PATH
@@ -3093,7 +2958,7 @@ do
3093
2958
  test -z "$as_dir" && as_dir=.
3094
2959
  for ac_exec_ext in '' $ac_executable_extensions; do
3095
2960
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096
- ac_cv_prog_ac_ct_CC="$ac_prog"
2961
+ ac_cv_prog_ac_ct_CXX="$ac_prog"
3097
2962
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098
2963
  break 2
3099
2964
  fi
@@ -3103,21 +2968,21 @@ IFS=$as_save_IFS
3103
2968
 
3104
2969
  fi
3105
2970
  fi
3106
- ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107
- if test -n "$ac_ct_CC"; then
3108
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3109
- $as_echo "$ac_ct_CC" >&6; }
2971
+ ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2972
+ if test -n "$ac_ct_CXX"; then
2973
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2974
+ $as_echo "$ac_ct_CXX" >&6; }
3110
2975
  else
3111
2976
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112
2977
  $as_echo "no" >&6; }
3113
2978
  fi
3114
2979
 
3115
2980
 
3116
- test -n "$ac_ct_CC" && break
2981
+ test -n "$ac_ct_CXX" && break
3117
2982
  done
3118
2983
 
3119
- if test "x$ac_ct_CC" = x; then
3120
- CC=""
2984
+ if test "x$ac_ct_CXX" = x; then
2985
+ CXX="g++"
3121
2986
  else
3122
2987
  case $cross_compiling:$ac_tool_warned in
3123
2988
  yes:)
@@ -3125,20 +2990,14 @@ yes:)
3125
2990
  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126
2991
  ac_tool_warned=yes ;;
3127
2992
  esac
3128
- CC=$ac_ct_CC
2993
+ CXX=$ac_ct_CXX
3129
2994
  fi
3130
2995
  fi
3131
2996
 
2997
+ fi
3132
2998
  fi
3133
-
3134
-
3135
- test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137
- as_fn_error $? "no acceptable C compiler found in \$PATH
3138
- See \`config.log' for more details" "$LINENO" 5; }
3139
-
3140
2999
  # Provide some information about the compiler.
3141
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3000
+ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3142
3001
  set X $ac_compile
3143
3002
  ac_compiler=$2
3144
3003
  for ac_option in --version -v -V -qversion; do
@@ -3178,8 +3037,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3178
3037
  # Try to create an executable without -o first, disregard a.out.
3179
3038
  # It will help us diagnose broken compilers, and finding out an intuition
3180
3039
  # of exeext.
3181
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3182
- $as_echo_n "checking whether the C compiler works... " >&6; }
3040
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3041
+ $as_echo_n "checking whether the C++ compiler works... " >&6; }
3183
3042
  ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3184
3043
 
3185
3044
  # The possible output files:
@@ -3249,14 +3108,14 @@ sed 's/^/| /' conftest.$ac_ext >&5
3249
3108
 
3250
3109
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251
3110
  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252
- as_fn_error 77 "C compiler cannot create executables
3111
+ as_fn_error 77 "C++ compiler cannot create executables
3253
3112
  See \`config.log' for more details" "$LINENO" 5; }
3254
3113
  else
3255
3114
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256
3115
  $as_echo "yes" >&6; }
3257
3116
  fi
3258
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3259
- $as_echo_n "checking for C compiler default output file name... " >&6; }
3117
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3118
+ $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3260
3119
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261
3120
  $as_echo "$ac_file" >&6; }
3262
3121
  ac_exeext=$ac_cv_exeext
@@ -3350,7 +3209,7 @@ $as_echo "$ac_try_echo"; } >&5
3350
3209
  else
3351
3210
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352
3211
  $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353
- as_fn_error $? "cannot run C compiled programs.
3212
+ as_fn_error $? "cannot run C++ compiled programs.
3354
3213
  If you meant to cross compile, use \`--host'.
3355
3214
  See \`config.log' for more details" "$LINENO" 5; }
3356
3215
  fi
@@ -3412,9 +3271,9 @@ fi
3412
3271
  $as_echo "$ac_cv_objext" >&6; }
3413
3272
  OBJEXT=$ac_cv_objext
3414
3273
  ac_objext=$OBJEXT
3415
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3416
- $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3417
- if ${ac_cv_c_compiler_gnu+:} false; then :
3274
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3275
+ $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3276
+ if ${ac_cv_cxx_compiler_gnu+:} false; then :
3418
3277
  $as_echo_n "(cached) " >&6
3419
3278
  else
3420
3279
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -3431,193 +3290,102 @@ main ()
3431
3290
  return 0;
3432
3291
  }
3433
3292
  _ACEOF
3434
- if ac_fn_c_try_compile "$LINENO"; then :
3293
+ if ac_fn_cxx_try_compile "$LINENO"; then :
3435
3294
  ac_compiler_gnu=yes
3436
3295
  else
3437
3296
  ac_compiler_gnu=no
3438
3297
  fi
3439
3298
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440
- ac_cv_c_compiler_gnu=$ac_compiler_gnu
3299
+ ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3441
3300
 
3442
3301
  fi
3443
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3444
- $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3302
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3303
+ $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3445
3304
  if test $ac_compiler_gnu = yes; then
3446
- GCC=yes
3447
- else
3448
- GCC=
3449
- fi
3450
- ac_test_CFLAGS=${CFLAGS+set}
3451
- ac_save_CFLAGS=$CFLAGS
3452
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3453
- $as_echo_n "checking whether $CC accepts -g... " >&6; }
3454
- if ${ac_cv_prog_cc_g+:} false; then :
3455
- $as_echo_n "(cached) " >&6
3456
- else
3457
- ac_save_c_werror_flag=$ac_c_werror_flag
3458
- ac_c_werror_flag=yes
3459
- ac_cv_prog_cc_g=no
3460
- CFLAGS="-g"
3461
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462
- /* end confdefs.h. */
3463
-
3464
- int
3465
- main ()
3466
- {
3467
-
3468
- ;
3469
- return 0;
3470
- }
3471
- _ACEOF
3472
- if ac_fn_c_try_compile "$LINENO"; then :
3473
- ac_cv_prog_cc_g=yes
3474
- else
3475
- CFLAGS=""
3476
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477
- /* end confdefs.h. */
3478
-
3479
- int
3480
- main ()
3481
- {
3482
-
3483
- ;
3484
- return 0;
3485
- }
3486
- _ACEOF
3487
- if ac_fn_c_try_compile "$LINENO"; then :
3488
-
3489
- else
3490
- ac_c_werror_flag=$ac_save_c_werror_flag
3491
- CFLAGS="-g"
3492
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493
- /* end confdefs.h. */
3494
-
3495
- int
3496
- main ()
3497
- {
3498
-
3499
- ;
3500
- return 0;
3501
- }
3502
- _ACEOF
3503
- if ac_fn_c_try_compile "$LINENO"; then :
3504
- ac_cv_prog_cc_g=yes
3505
- fi
3506
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507
- fi
3508
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3509
- fi
3510
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511
- ac_c_werror_flag=$ac_save_c_werror_flag
3512
- fi
3513
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3514
- $as_echo "$ac_cv_prog_cc_g" >&6; }
3515
- if test "$ac_test_CFLAGS" = set; then
3516
- CFLAGS=$ac_save_CFLAGS
3517
- elif test $ac_cv_prog_cc_g = yes; then
3518
- if test "$GCC" = yes; then
3519
- CFLAGS="-g -O2"
3520
- else
3521
- CFLAGS="-g"
3522
- fi
3305
+ GXX=yes
3523
3306
  else
3524
- if test "$GCC" = yes; then
3525
- CFLAGS="-O2"
3526
- else
3527
- CFLAGS=
3528
- fi
3307
+ GXX=
3529
3308
  fi
3530
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3531
- $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3532
- if ${ac_cv_prog_cc_c89+:} false; then :
3309
+ ac_test_CXXFLAGS=${CXXFLAGS+set}
3310
+ ac_save_CXXFLAGS=$CXXFLAGS
3311
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3312
+ $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3313
+ if ${ac_cv_prog_cxx_g+:} false; then :
3533
3314
  $as_echo_n "(cached) " >&6
3534
3315
  else
3535
- ac_cv_prog_cc_c89=no
3536
- ac_save_CC=$CC
3537
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538
- /* end confdefs.h. */
3539
- #include <stdarg.h>
3540
- #include <stdio.h>
3541
- #include <sys/types.h>
3542
- #include <sys/stat.h>
3543
- /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3544
- struct buf { int x; };
3545
- FILE * (*rcsopen) (struct buf *, struct stat *, int);
3546
- static char *e (p, i)
3547
- char **p;
3548
- int i;
3316
+ ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3317
+ ac_cxx_werror_flag=yes
3318
+ ac_cv_prog_cxx_g=no
3319
+ CXXFLAGS="-g"
3320
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321
+ /* end confdefs.h. */
3322
+
3323
+ int
3324
+ main ()
3549
3325
  {
3550
- return p[i];
3326
+
3327
+ ;
3328
+ return 0;
3551
3329
  }
3552
- static char *f (char * (*g) (char **, int), char **p, ...)
3330
+ _ACEOF
3331
+ if ac_fn_cxx_try_compile "$LINENO"; then :
3332
+ ac_cv_prog_cxx_g=yes
3333
+ else
3334
+ CXXFLAGS=""
3335
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336
+ /* end confdefs.h. */
3337
+
3338
+ int
3339
+ main ()
3553
3340
  {
3554
- char *s;
3555
- va_list v;
3556
- va_start (v,p);
3557
- s = g (p, va_arg (v,int));
3558
- va_end (v);
3559
- return s;
3560
- }
3561
3341
 
3562
- /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3563
- function prototypes and stuff, but not '\xHH' hex character constants.
3564
- These don't provoke an error unfortunately, instead are silently treated
3565
- as 'x'. The following induces an error, until -std is added to get
3566
- proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3567
- array size at least. It's necessary to write '\x00'==0 to get something
3568
- that's true only with -std. */
3569
- int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3342
+ ;
3343
+ return 0;
3344
+ }
3345
+ _ACEOF
3346
+ if ac_fn_cxx_try_compile "$LINENO"; then :
3570
3347
 
3571
- /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3572
- inside strings and character constants. */
3573
- #define FOO(x) 'x'
3574
- int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3348
+ else
3349
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3350
+ CXXFLAGS="-g"
3351
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352
+ /* end confdefs.h. */
3575
3353
 
3576
- int test (int i, double x);
3577
- struct s1 {int (*f) (int a);};
3578
- struct s2 {int (*f) (double a);};
3579
- int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3580
- int argc;
3581
- char **argv;
3582
3354
  int
3583
3355
  main ()
3584
3356
  {
3585
- return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3357
+
3586
3358
  ;
3587
3359
  return 0;
3588
3360
  }
3589
3361
  _ACEOF
3590
- for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3591
- -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592
- do
3593
- CC="$ac_save_CC $ac_arg"
3594
- if ac_fn_c_try_compile "$LINENO"; then :
3595
- ac_cv_prog_cc_c89=$ac_arg
3362
+ if ac_fn_cxx_try_compile "$LINENO"; then :
3363
+ ac_cv_prog_cxx_g=yes
3596
3364
  fi
3597
- rm -f core conftest.err conftest.$ac_objext
3598
- test "x$ac_cv_prog_cc_c89" != "xno" && break
3599
- done
3600
- rm -f conftest.$ac_ext
3601
- CC=$ac_save_CC
3602
-
3365
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3603
3366
  fi
3604
- # AC_CACHE_VAL
3605
- case "x$ac_cv_prog_cc_c89" in
3606
- x)
3607
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3608
- $as_echo "none needed" >&6; } ;;
3609
- xno)
3610
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3611
- $as_echo "unsupported" >&6; } ;;
3612
- *)
3613
- CC="$CC $ac_cv_prog_cc_c89"
3614
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3615
- $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3616
- esac
3617
- if test "x$ac_cv_prog_cc_c89" != xno; then :
3618
-
3367
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368
+ fi
3369
+ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370
+ ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3371
+ fi
3372
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3373
+ $as_echo "$ac_cv_prog_cxx_g" >&6; }
3374
+ if test "$ac_test_CXXFLAGS" = set; then
3375
+ CXXFLAGS=$ac_save_CXXFLAGS
3376
+ elif test $ac_cv_prog_cxx_g = yes; then
3377
+ if test "$GXX" = yes; then
3378
+ CXXFLAGS="-g -O2"
3379
+ else
3380
+ CXXFLAGS="-g"
3381
+ fi
3382
+ else
3383
+ if test "$GXX" = yes; then
3384
+ CXXFLAGS="-O2"
3385
+ else
3386
+ CXXFLAGS=
3387
+ fi
3619
3388
  fi
3620
-
3621
3389
  ac_ext=c
3622
3390
  ac_cpp='$CPP $CPPFLAGS'
3623
3391
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
@@ -3631,7 +3399,7 @@ ac_config_commands="$ac_config_commands depfiles"
3631
3399
  am_make=${MAKE-make}
3632
3400
  cat > confinc << 'END'
3633
3401
  am__doit:
3634
- @echo done
3402
+ @echo this is the am__doit target
3635
3403
  .PHONY: am__doit
3636
3404
  END
3637
3405
  # If we don't find an include directive, just comment out the code.
@@ -3642,24 +3410,24 @@ am__quote=
3642
3410
  _am_result=none
3643
3411
  # First try GNU make style include.
3644
3412
  echo "include confinc" > confmf
3645
- # We grep out `Entering directory' and `Leaving directory'
3646
- # messages which can occur if `w' ends up in MAKEFLAGS.
3647
- # In particular we don't look at `^make:' because GNU make might
3648
- # be invoked under some other name (usually "gmake"), in which
3649
- # case it prints its new name instead of `make'.
3650
- if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3651
- am__include=include
3652
- am__quote=
3653
- _am_result=GNU
3654
- fi
3413
+ # Ignore all kinds of additional output from `make'.
3414
+ case `$am_make -s -f confmf 2> /dev/null` in #(
3415
+ *the\ am__doit\ target*)
3416
+ am__include=include
3417
+ am__quote=
3418
+ _am_result=GNU
3419
+ ;;
3420
+ esac
3655
3421
  # Now try BSD make style include.
3656
3422
  if test "$am__include" = "#"; then
3657
3423
  echo '.include "confinc"' > confmf
3658
- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3659
- am__include=.include
3660
- am__quote="\""
3661
- _am_result=BSD
3662
- fi
3424
+ case `$am_make -s -f confmf 2> /dev/null` in #(
3425
+ *the\ am__doit\ target*)
3426
+ am__include=.include
3427
+ am__quote="\""
3428
+ _am_result=BSD
3429
+ ;;
3430
+ esac
3663
3431
  fi
3664
3432
 
3665
3433
 
@@ -3676,9 +3444,7 @@ if test "x$enable_dependency_tracking" != xno; then
3676
3444
  am_depcomp="$ac_aux_dir/depcomp"
3677
3445
  AMDEPBACKSLASH='\'
3678
3446
  fi
3679
-
3680
-
3681
- if test "x$enable_dependency_tracking" != xno; then
3447
+ if test "x$enable_dependency_tracking" != xno; then
3682
3448
  AMDEP_TRUE=
3683
3449
  AMDEP_FALSE='#'
3684
3450
  else
@@ -3688,12 +3454,11 @@ fi
3688
3454
 
3689
3455
 
3690
3456
 
3691
-
3692
- depcc="$CC" am_compiler_list=
3457
+ depcc="$CXX" am_compiler_list=
3693
3458
 
3694
3459
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3695
3460
  $as_echo_n "checking dependency style of $depcc... " >&6; }
3696
- if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3461
+ if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3697
3462
  $as_echo_n "(cached) " >&6
3698
3463
  else
3699
3464
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
@@ -3715,10 +3480,15 @@ else
3715
3480
  # directory.
3716
3481
  mkdir sub
3717
3482
 
3718
- am_cv_CC_dependencies_compiler_type=none
3483
+ am_cv_CXX_dependencies_compiler_type=none
3719
3484
  if test "$am_compiler_list" = ""; then
3720
3485
  am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721
3486
  fi
3487
+ am__universal=false
3488
+ case " $depcc " in #(
3489
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
3490
+ esac
3491
+
3722
3492
  for depmode in $am_compiler_list; do
3723
3493
  # Setup a source with many dependencies, because some compilers
3724
3494
  # like to wrap large dependency lists on column 80 (with \), and
@@ -3736,7 +3506,17 @@ else
3736
3506
  done
3737
3507
  echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3738
3508
 
3509
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
3510
+ # mode. It turns out that the SunPro C++ compiler does not properly
3511
+ # handle `-M -o', and we need to detect this. Also, some Intel
3512
+ # versions had trouble with output in subdirs
3513
+ am__obj=sub/conftest.${OBJEXT-o}
3514
+ am__minus_obj="-o $am__obj"
3739
3515
  case $depmode in
3516
+ gcc)
3517
+ # This depmode causes a compiler race in universal mode.
3518
+ test "$am__universal" = false || continue
3519
+ ;;
3740
3520
  nosideeffect)
3741
3521
  # after this tag, mechanisms are not by side-effect, so they'll
3742
3522
  # only be used when explicitly requested
@@ -3746,18 +3526,23 @@ else
3746
3526
  break
3747
3527
  fi
3748
3528
  ;;
3529
+ msvisualcpp | msvcmsys)
3530
+ # This compiler won't grok `-c -o', but also, the minuso test has
3531
+ # not run yet. These depmodes are late enough in the game, and
3532
+ # so weak that their functioning should not be impacted.
3533
+ am__obj=conftest.${OBJEXT-o}
3534
+ am__minus_obj=
3535
+ ;;
3749
3536
  none) break ;;
3750
3537
  esac
3751
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
3752
- # mode. It turns out that the SunPro C++ compiler does not properly
3753
- # handle `-M -o', and we need to detect this.
3754
3538
  if depmode=$depmode \
3755
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3539
+ source=sub/conftest.c object=$am__obj \
3756
3540
  depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3757
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3541
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3758
3542
  >/dev/null 2>conftest.err &&
3543
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3759
3544
  grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3760
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3545
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3761
3546
  ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3762
3547
  # icc doesn't choke on unknown options, it will just issue warnings
3763
3548
  # or remarks (even with -Werror). So we grep stderr for any message
@@ -3768,7 +3553,7 @@ else
3768
3553
  # icc: Command line remark: option '-MP' not supported
3769
3554
  if (grep 'ignoring option' conftest.err ||
3770
3555
  grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3771
- am_cv_CC_dependencies_compiler_type=$depmode
3556
+ am_cv_CXX_dependencies_compiler_type=$depmode
3772
3557
  break
3773
3558
  fi
3774
3559
  fi
@@ -3777,24 +3562,22 @@ else
3777
3562
  cd ..
3778
3563
  rm -rf conftest.dir
3779
3564
  else
3780
- am_cv_CC_dependencies_compiler_type=none
3565
+ am_cv_CXX_dependencies_compiler_type=none
3781
3566
  fi
3782
3567
 
3783
3568
  fi
3784
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3785
- $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3786
- CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3787
-
3788
-
3569
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3570
+ $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3571
+ CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3789
3572
 
3790
- if
3573
+ if
3791
3574
  test "x$enable_dependency_tracking" != xno \
3792
- && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3793
- am__fastdepCC_TRUE=
3794
- am__fastdepCC_FALSE='#'
3575
+ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3576
+ am__fastdepCXX_TRUE=
3577
+ am__fastdepCXX_FALSE='#'
3795
3578
  else
3796
- am__fastdepCC_TRUE='#'
3797
- am__fastdepCC_FALSE=
3579
+ am__fastdepCXX_TRUE='#'
3580
+ am__fastdepCXX_FALSE=
3798
3581
  fi
3799
3582
 
3800
3583
 
@@ -3803,159 +3586,208 @@ ac_cpp='$CPP $CPPFLAGS'
3803
3586
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3804
3587
  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3805
3588
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3807
- $as_echo_n "checking how to run the C preprocessor... " >&6; }
3808
- # On Suns, sometimes $CPP names a directory.
3809
- if test -n "$CPP" && test -d "$CPP"; then
3810
- CPP=
3589
+ if test -n "$ac_tool_prefix"; then
3590
+ # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3591
+ set dummy ${ac_tool_prefix}gcc; ac_word=$2
3592
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593
+ $as_echo_n "checking for $ac_word... " >&6; }
3594
+ if ${ac_cv_prog_CC+:} false; then :
3595
+ $as_echo_n "(cached) " >&6
3596
+ else
3597
+ if test -n "$CC"; then
3598
+ ac_cv_prog_CC="$CC" # Let the user override the test.
3599
+ else
3600
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601
+ for as_dir in $PATH
3602
+ do
3603
+ IFS=$as_save_IFS
3604
+ test -z "$as_dir" && as_dir=.
3605
+ for ac_exec_ext in '' $ac_executable_extensions; do
3606
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
3608
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609
+ break 2
3610
+ fi
3611
+ done
3612
+ done
3613
+ IFS=$as_save_IFS
3614
+
3811
3615
  fi
3812
- if test -z "$CPP"; then
3813
- if ${ac_cv_prog_CPP+:} false; then :
3616
+ fi
3617
+ CC=$ac_cv_prog_CC
3618
+ if test -n "$CC"; then
3619
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620
+ $as_echo "$CC" >&6; }
3621
+ else
3622
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623
+ $as_echo "no" >&6; }
3624
+ fi
3625
+
3626
+
3627
+ fi
3628
+ if test -z "$ac_cv_prog_CC"; then
3629
+ ac_ct_CC=$CC
3630
+ # Extract the first word of "gcc", so it can be a program name with args.
3631
+ set dummy gcc; ac_word=$2
3632
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633
+ $as_echo_n "checking for $ac_word... " >&6; }
3634
+ if ${ac_cv_prog_ac_ct_CC+:} false; then :
3814
3635
  $as_echo_n "(cached) " >&6
3815
3636
  else
3816
- # Double quotes because CPP needs to be expanded
3817
- for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3818
- do
3819
- ac_preproc_ok=false
3820
- for ac_c_preproc_warn_flag in '' yes
3637
+ if test -n "$ac_ct_CC"; then
3638
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639
+ else
3640
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641
+ for as_dir in $PATH
3821
3642
  do
3822
- # Use a header file that comes with gcc, so configuring glibc
3823
- # with a fresh cross-compiler works.
3824
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3825
- # <limits.h> exists even on freestanding compilers.
3826
- # On the NeXT, cc -E runs the code through the compiler's parser,
3827
- # not just through cpp. "Syntax error" is here to catch this case.
3828
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829
- /* end confdefs.h. */
3830
- #ifdef __STDC__
3831
- # include <limits.h>
3832
- #else
3833
- # include <assert.h>
3834
- #endif
3835
- Syntax error
3836
- _ACEOF
3837
- if ac_fn_c_try_cpp "$LINENO"; then :
3643
+ IFS=$as_save_IFS
3644
+ test -z "$as_dir" && as_dir=.
3645
+ for ac_exec_ext in '' $ac_executable_extensions; do
3646
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3647
+ ac_cv_prog_ac_ct_CC="gcc"
3648
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649
+ break 2
3650
+ fi
3651
+ done
3652
+ done
3653
+ IFS=$as_save_IFS
3838
3654
 
3655
+ fi
3656
+ fi
3657
+ ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658
+ if test -n "$ac_ct_CC"; then
3659
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660
+ $as_echo "$ac_ct_CC" >&6; }
3839
3661
  else
3840
- # Broken: fails on valid input.
3841
- continue
3662
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663
+ $as_echo "no" >&6; }
3842
3664
  fi
3843
- rm -f conftest.err conftest.i conftest.$ac_ext
3844
3665
 
3845
- # OK, works on sane cases. Now check whether nonexistent headers
3846
- # can be detected and how.
3847
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848
- /* end confdefs.h. */
3849
- #include <ac_nonexistent.h>
3850
- _ACEOF
3851
- if ac_fn_c_try_cpp "$LINENO"; then :
3852
- # Broken: success on invalid input.
3853
- continue
3666
+ if test "x$ac_ct_CC" = x; then
3667
+ CC=""
3668
+ else
3669
+ case $cross_compiling:$ac_tool_warned in
3670
+ yes:)
3671
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672
+ $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673
+ ac_tool_warned=yes ;;
3674
+ esac
3675
+ CC=$ac_ct_CC
3676
+ fi
3854
3677
  else
3855
- # Passes both tests.
3856
- ac_preproc_ok=:
3857
- break
3678
+ CC="$ac_cv_prog_CC"
3858
3679
  fi
3859
- rm -f conftest.err conftest.i conftest.$ac_ext
3860
3680
 
3681
+ if test -z "$CC"; then
3682
+ if test -n "$ac_tool_prefix"; then
3683
+ # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3684
+ set dummy ${ac_tool_prefix}cc; ac_word=$2
3685
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686
+ $as_echo_n "checking for $ac_word... " >&6; }
3687
+ if ${ac_cv_prog_CC+:} false; then :
3688
+ $as_echo_n "(cached) " >&6
3689
+ else
3690
+ if test -n "$CC"; then
3691
+ ac_cv_prog_CC="$CC" # Let the user override the test.
3692
+ else
3693
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694
+ for as_dir in $PATH
3695
+ do
3696
+ IFS=$as_save_IFS
3697
+ test -z "$as_dir" && as_dir=.
3698
+ for ac_exec_ext in '' $ac_executable_extensions; do
3699
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3700
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
3701
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702
+ break 2
3703
+ fi
3861
3704
  done
3862
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3863
- rm -f conftest.i conftest.err conftest.$ac_ext
3864
- if $ac_preproc_ok; then :
3865
- break
3866
- fi
3867
-
3868
- done
3869
- ac_cv_prog_CPP=$CPP
3705
+ done
3706
+ IFS=$as_save_IFS
3870
3707
 
3871
3708
  fi
3872
- CPP=$ac_cv_prog_CPP
3873
- else
3874
- ac_cv_prog_CPP=$CPP
3875
3709
  fi
3876
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3877
- $as_echo "$CPP" >&6; }
3878
- ac_preproc_ok=false
3879
- for ac_c_preproc_warn_flag in '' yes
3880
- do
3881
- # Use a header file that comes with gcc, so configuring glibc
3882
- # with a fresh cross-compiler works.
3883
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3884
- # <limits.h> exists even on freestanding compilers.
3885
- # On the NeXT, cc -E runs the code through the compiler's parser,
3886
- # not just through cpp. "Syntax error" is here to catch this case.
3887
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888
- /* end confdefs.h. */
3889
- #ifdef __STDC__
3890
- # include <limits.h>
3891
- #else
3892
- # include <assert.h>
3893
- #endif
3894
- Syntax error
3895
- _ACEOF
3896
- if ac_fn_c_try_cpp "$LINENO"; then :
3897
-
3710
+ CC=$ac_cv_prog_CC
3711
+ if test -n "$CC"; then
3712
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713
+ $as_echo "$CC" >&6; }
3898
3714
  else
3899
- # Broken: fails on valid input.
3900
- continue
3715
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716
+ $as_echo "no" >&6; }
3901
3717
  fi
3902
- rm -f conftest.err conftest.i conftest.$ac_ext
3903
3718
 
3904
- # OK, works on sane cases. Now check whether nonexistent headers
3905
- # can be detected and how.
3906
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907
- /* end confdefs.h. */
3908
- #include <ac_nonexistent.h>
3909
- _ACEOF
3910
- if ac_fn_c_try_cpp "$LINENO"; then :
3911
- # Broken: success on invalid input.
3912
- continue
3913
- else
3914
- # Passes both tests.
3915
- ac_preproc_ok=:
3916
- break
3917
- fi
3918
- rm -f conftest.err conftest.i conftest.$ac_ext
3919
3719
 
3720
+ fi
3721
+ fi
3722
+ if test -z "$CC"; then
3723
+ # Extract the first word of "cc", so it can be a program name with args.
3724
+ set dummy cc; ac_word=$2
3725
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726
+ $as_echo_n "checking for $ac_word... " >&6; }
3727
+ if ${ac_cv_prog_CC+:} false; then :
3728
+ $as_echo_n "(cached) " >&6
3729
+ else
3730
+ if test -n "$CC"; then
3731
+ ac_cv_prog_CC="$CC" # Let the user override the test.
3732
+ else
3733
+ ac_prog_rejected=no
3734
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735
+ for as_dir in $PATH
3736
+ do
3737
+ IFS=$as_save_IFS
3738
+ test -z "$as_dir" && as_dir=.
3739
+ for ac_exec_ext in '' $ac_executable_extensions; do
3740
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741
+ if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3742
+ ac_prog_rejected=yes
3743
+ continue
3744
+ fi
3745
+ ac_cv_prog_CC="cc"
3746
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747
+ break 2
3748
+ fi
3920
3749
  done
3921
- # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922
- rm -f conftest.i conftest.err conftest.$ac_ext
3923
- if $ac_preproc_ok; then :
3750
+ done
3751
+ IFS=$as_save_IFS
3924
3752
 
3753
+ if test $ac_prog_rejected = yes; then
3754
+ # We found a bogon in the path, so make sure we never use it.
3755
+ set dummy $ac_cv_prog_CC
3756
+ shift
3757
+ if test $# != 0; then
3758
+ # We chose a different compiler from the bogus one.
3759
+ # However, it has the same basename, so the bogon will be chosen
3760
+ # first if we set CC to just the basename; use the full file name.
3761
+ shift
3762
+ ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3763
+ fi
3764
+ fi
3765
+ fi
3766
+ fi
3767
+ CC=$ac_cv_prog_CC
3768
+ if test -n "$CC"; then
3769
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770
+ $as_echo "$CC" >&6; }
3925
3771
  else
3926
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927
- $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928
- as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3929
- See \`config.log' for more details" "$LINENO" 5; }
3772
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773
+ $as_echo "no" >&6; }
3930
3774
  fi
3931
3775
 
3932
- ac_ext=c
3933
- ac_cpp='$CPP $CPPFLAGS'
3934
- ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935
- ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936
- ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3776
 
3938
- ac_ext=cpp
3939
- ac_cpp='$CXXCPP $CPPFLAGS'
3940
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3943
- if test -z "$CXX"; then
3944
- if test -n "$CCC"; then
3945
- CXX=$CCC
3946
- else
3947
- if test -n "$ac_tool_prefix"; then
3948
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3777
+ fi
3778
+ if test -z "$CC"; then
3779
+ if test -n "$ac_tool_prefix"; then
3780
+ for ac_prog in cl.exe
3949
3781
  do
3950
3782
  # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3951
3783
  set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3952
3784
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953
3785
  $as_echo_n "checking for $ac_word... " >&6; }
3954
- if ${ac_cv_prog_CXX+:} false; then :
3786
+ if ${ac_cv_prog_CC+:} false; then :
3955
3787
  $as_echo_n "(cached) " >&6
3956
3788
  else
3957
- if test -n "$CXX"; then
3958
- ac_cv_prog_CXX="$CXX" # Let the user override the test.
3789
+ if test -n "$CC"; then
3790
+ ac_cv_prog_CC="$CC" # Let the user override the test.
3959
3791
  else
3960
3792
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961
3793
  for as_dir in $PATH
@@ -3964,7 +3796,7 @@ do
3964
3796
  test -z "$as_dir" && as_dir=.
3965
3797
  for ac_exec_ext in '' $ac_executable_extensions; do
3966
3798
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3967
- ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3799
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3968
3800
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969
3801
  break 2
3970
3802
  fi
@@ -3974,32 +3806,32 @@ IFS=$as_save_IFS
3974
3806
 
3975
3807
  fi
3976
3808
  fi
3977
- CXX=$ac_cv_prog_CXX
3978
- if test -n "$CXX"; then
3979
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3980
- $as_echo "$CXX" >&6; }
3809
+ CC=$ac_cv_prog_CC
3810
+ if test -n "$CC"; then
3811
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812
+ $as_echo "$CC" >&6; }
3981
3813
  else
3982
3814
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983
3815
  $as_echo "no" >&6; }
3984
3816
  fi
3985
3817
 
3986
3818
 
3987
- test -n "$CXX" && break
3819
+ test -n "$CC" && break
3988
3820
  done
3989
3821
  fi
3990
- if test -z "$CXX"; then
3991
- ac_ct_CXX=$CXX
3992
- for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3822
+ if test -z "$CC"; then
3823
+ ac_ct_CC=$CC
3824
+ for ac_prog in cl.exe
3993
3825
  do
3994
3826
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3995
3827
  set dummy $ac_prog; ac_word=$2
3996
3828
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997
3829
  $as_echo_n "checking for $ac_word... " >&6; }
3998
- if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3830
+ if ${ac_cv_prog_ac_ct_CC+:} false; then :
3999
3831
  $as_echo_n "(cached) " >&6
4000
3832
  else
4001
- if test -n "$ac_ct_CXX"; then
4002
- ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3833
+ if test -n "$ac_ct_CC"; then
3834
+ ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4003
3835
  else
4004
3836
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005
3837
  for as_dir in $PATH
@@ -4008,7 +3840,7 @@ do
4008
3840
  test -z "$as_dir" && as_dir=.
4009
3841
  for ac_exec_ext in '' $ac_executable_extensions; do
4010
3842
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011
- ac_cv_prog_ac_ct_CXX="$ac_prog"
3843
+ ac_cv_prog_ac_ct_CC="$ac_prog"
4012
3844
  $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013
3845
  break 2
4014
3846
  fi
@@ -4018,21 +3850,21 @@ IFS=$as_save_IFS
4018
3850
 
4019
3851
  fi
4020
3852
  fi
4021
- ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4022
- if test -n "$ac_ct_CXX"; then
4023
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4024
- $as_echo "$ac_ct_CXX" >&6; }
3853
+ ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854
+ if test -n "$ac_ct_CC"; then
3855
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856
+ $as_echo "$ac_ct_CC" >&6; }
4025
3857
  else
4026
3858
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027
3859
  $as_echo "no" >&6; }
4028
3860
  fi
4029
3861
 
4030
3862
 
4031
- test -n "$ac_ct_CXX" && break
3863
+ test -n "$ac_ct_CC" && break
4032
3864
  done
4033
3865
 
4034
- if test "x$ac_ct_CXX" = x; then
4035
- CXX="g++"
3866
+ if test "x$ac_ct_CC" = x; then
3867
+ CC=""
4036
3868
  else
4037
3869
  case $cross_compiling:$ac_tool_warned in
4038
3870
  yes:)
@@ -4040,14 +3872,20 @@ yes:)
4040
3872
  $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4041
3873
  ac_tool_warned=yes ;;
4042
3874
  esac
4043
- CXX=$ac_ct_CXX
3875
+ CC=$ac_ct_CC
4044
3876
  fi
4045
3877
  fi
4046
3878
 
4047
- fi
4048
3879
  fi
3880
+
3881
+
3882
+ test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884
+ as_fn_error $? "no acceptable C compiler found in \$PATH
3885
+ See \`config.log' for more details" "$LINENO" 5; }
3886
+
4049
3887
  # Provide some information about the compiler.
4050
- $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3888
+ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4051
3889
  set X $ac_compile
4052
3890
  ac_compiler=$2
4053
3891
  for ac_option in --version -v -V -qversion; do
@@ -4071,9 +3909,9 @@ $as_echo "$ac_try_echo"; } >&5
4071
3909
  test $ac_status = 0; }
4072
3910
  done
4073
3911
 
4074
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4075
- $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4076
- if ${ac_cv_cxx_compiler_gnu+:} false; then :
3912
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3913
+ $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3914
+ if ${ac_cv_c_compiler_gnu+:} false; then :
4077
3915
  $as_echo_n "(cached) " >&6
4078
3916
  else
4079
3917
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -4090,33 +3928,33 @@ main ()
4090
3928
  return 0;
4091
3929
  }
4092
3930
  _ACEOF
4093
- if ac_fn_cxx_try_compile "$LINENO"; then :
3931
+ if ac_fn_c_try_compile "$LINENO"; then :
4094
3932
  ac_compiler_gnu=yes
4095
3933
  else
4096
3934
  ac_compiler_gnu=no
4097
3935
  fi
4098
3936
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099
- ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3937
+ ac_cv_c_compiler_gnu=$ac_compiler_gnu
4100
3938
 
4101
3939
  fi
4102
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4103
- $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3940
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3941
+ $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4104
3942
  if test $ac_compiler_gnu = yes; then
4105
- GXX=yes
3943
+ GCC=yes
4106
3944
  else
4107
- GXX=
3945
+ GCC=
4108
3946
  fi
4109
- ac_test_CXXFLAGS=${CXXFLAGS+set}
4110
- ac_save_CXXFLAGS=$CXXFLAGS
4111
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4112
- $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4113
- if ${ac_cv_prog_cxx_g+:} false; then :
3947
+ ac_test_CFLAGS=${CFLAGS+set}
3948
+ ac_save_CFLAGS=$CFLAGS
3949
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3950
+ $as_echo_n "checking whether $CC accepts -g... " >&6; }
3951
+ if ${ac_cv_prog_cc_g+:} false; then :
4114
3952
  $as_echo_n "(cached) " >&6
4115
3953
  else
4116
- ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4117
- ac_cxx_werror_flag=yes
4118
- ac_cv_prog_cxx_g=no
4119
- CXXFLAGS="-g"
3954
+ ac_save_c_werror_flag=$ac_c_werror_flag
3955
+ ac_c_werror_flag=yes
3956
+ ac_cv_prog_cc_g=no
3957
+ CFLAGS="-g"
4120
3958
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121
3959
  /* end confdefs.h. */
4122
3960
 
@@ -4128,10 +3966,10 @@ main ()
4128
3966
  return 0;
4129
3967
  }
4130
3968
  _ACEOF
4131
- if ac_fn_cxx_try_compile "$LINENO"; then :
4132
- ac_cv_prog_cxx_g=yes
3969
+ if ac_fn_c_try_compile "$LINENO"; then :
3970
+ ac_cv_prog_cc_g=yes
4133
3971
  else
4134
- CXXFLAGS=""
3972
+ CFLAGS=""
4135
3973
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136
3974
  /* end confdefs.h. */
4137
3975
 
@@ -4143,11 +3981,11 @@ main ()
4143
3981
  return 0;
4144
3982
  }
4145
3983
  _ACEOF
4146
- if ac_fn_cxx_try_compile "$LINENO"; then :
3984
+ if ac_fn_c_try_compile "$LINENO"; then :
4147
3985
 
4148
3986
  else
4149
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4150
- CXXFLAGS="-g"
3987
+ ac_c_werror_flag=$ac_save_c_werror_flag
3988
+ CFLAGS="-g"
4151
3989
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152
3990
  /* end confdefs.h. */
4153
3991
 
@@ -4159,44 +3997,135 @@ main ()
4159
3997
  return 0;
4160
3998
  }
4161
3999
  _ACEOF
4162
- if ac_fn_cxx_try_compile "$LINENO"; then :
4163
- ac_cv_prog_cxx_g=yes
4000
+ if ac_fn_c_try_compile "$LINENO"; then :
4001
+ ac_cv_prog_cc_g=yes
4164
4002
  fi
4165
4003
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4166
4004
  fi
4167
4005
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4168
4006
  fi
4169
4007
  rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170
- ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4008
+ ac_c_werror_flag=$ac_save_c_werror_flag
4171
4009
  fi
4172
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4173
- $as_echo "$ac_cv_prog_cxx_g" >&6; }
4174
- if test "$ac_test_CXXFLAGS" = set; then
4175
- CXXFLAGS=$ac_save_CXXFLAGS
4176
- elif test $ac_cv_prog_cxx_g = yes; then
4177
- if test "$GXX" = yes; then
4178
- CXXFLAGS="-g -O2"
4010
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4011
+ $as_echo "$ac_cv_prog_cc_g" >&6; }
4012
+ if test "$ac_test_CFLAGS" = set; then
4013
+ CFLAGS=$ac_save_CFLAGS
4014
+ elif test $ac_cv_prog_cc_g = yes; then
4015
+ if test "$GCC" = yes; then
4016
+ CFLAGS="-g -O2"
4179
4017
  else
4180
- CXXFLAGS="-g"
4018
+ CFLAGS="-g"
4181
4019
  fi
4182
4020
  else
4183
- if test "$GXX" = yes; then
4184
- CXXFLAGS="-O2"
4021
+ if test "$GCC" = yes; then
4022
+ CFLAGS="-O2"
4185
4023
  else
4186
- CXXFLAGS=
4024
+ CFLAGS=
4187
4025
  fi
4188
4026
  fi
4027
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4028
+ $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4029
+ if ${ac_cv_prog_cc_c89+:} false; then :
4030
+ $as_echo_n "(cached) " >&6
4031
+ else
4032
+ ac_cv_prog_cc_c89=no
4033
+ ac_save_CC=$CC
4034
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035
+ /* end confdefs.h. */
4036
+ #include <stdarg.h>
4037
+ #include <stdio.h>
4038
+ #include <sys/types.h>
4039
+ #include <sys/stat.h>
4040
+ /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4041
+ struct buf { int x; };
4042
+ FILE * (*rcsopen) (struct buf *, struct stat *, int);
4043
+ static char *e (p, i)
4044
+ char **p;
4045
+ int i;
4046
+ {
4047
+ return p[i];
4048
+ }
4049
+ static char *f (char * (*g) (char **, int), char **p, ...)
4050
+ {
4051
+ char *s;
4052
+ va_list v;
4053
+ va_start (v,p);
4054
+ s = g (p, va_arg (v,int));
4055
+ va_end (v);
4056
+ return s;
4057
+ }
4058
+
4059
+ /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4060
+ function prototypes and stuff, but not '\xHH' hex character constants.
4061
+ These don't provoke an error unfortunately, instead are silently treated
4062
+ as 'x'. The following induces an error, until -std is added to get
4063
+ proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4064
+ array size at least. It's necessary to write '\x00'==0 to get something
4065
+ that's true only with -std. */
4066
+ int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4067
+
4068
+ /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4069
+ inside strings and character constants. */
4070
+ #define FOO(x) 'x'
4071
+ int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4072
+
4073
+ int test (int i, double x);
4074
+ struct s1 {int (*f) (int a);};
4075
+ struct s2 {int (*f) (double a);};
4076
+ int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4077
+ int argc;
4078
+ char **argv;
4079
+ int
4080
+ main ()
4081
+ {
4082
+ return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4083
+ ;
4084
+ return 0;
4085
+ }
4086
+ _ACEOF
4087
+ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4088
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4089
+ do
4090
+ CC="$ac_save_CC $ac_arg"
4091
+ if ac_fn_c_try_compile "$LINENO"; then :
4092
+ ac_cv_prog_cc_c89=$ac_arg
4093
+ fi
4094
+ rm -f core conftest.err conftest.$ac_objext
4095
+ test "x$ac_cv_prog_cc_c89" != "xno" && break
4096
+ done
4097
+ rm -f conftest.$ac_ext
4098
+ CC=$ac_save_CC
4099
+
4100
+ fi
4101
+ # AC_CACHE_VAL
4102
+ case "x$ac_cv_prog_cc_c89" in
4103
+ x)
4104
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4105
+ $as_echo "none needed" >&6; } ;;
4106
+ xno)
4107
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4108
+ $as_echo "unsupported" >&6; } ;;
4109
+ *)
4110
+ CC="$CC $ac_cv_prog_cc_c89"
4111
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4112
+ $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4113
+ esac
4114
+ if test "x$ac_cv_prog_cc_c89" != xno; then :
4115
+
4116
+ fi
4117
+
4189
4118
  ac_ext=c
4190
4119
  ac_cpp='$CPP $CPPFLAGS'
4191
4120
  ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192
4121
  ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193
4122
  ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194
4123
 
4195
- depcc="$CXX" am_compiler_list=
4124
+ depcc="$CC" am_compiler_list=
4196
4125
 
4197
4126
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4198
4127
  $as_echo_n "checking dependency style of $depcc... " >&6; }
4199
- if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4128
+ if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4200
4129
  $as_echo_n "(cached) " >&6
4201
4130
  else
4202
4131
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
@@ -4218,10 +4147,15 @@ else
4218
4147
  # directory.
4219
4148
  mkdir sub
4220
4149
 
4221
- am_cv_CXX_dependencies_compiler_type=none
4150
+ am_cv_CC_dependencies_compiler_type=none
4222
4151
  if test "$am_compiler_list" = ""; then
4223
4152
  am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4224
4153
  fi
4154
+ am__universal=false
4155
+ case " $depcc " in #(
4156
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
4157
+ esac
4158
+
4225
4159
  for depmode in $am_compiler_list; do
4226
4160
  # Setup a source with many dependencies, because some compilers
4227
4161
  # like to wrap large dependency lists on column 80 (with \), and
@@ -4239,71 +4173,219 @@ else
4239
4173
  done
4240
4174
  echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4241
4175
 
4242
- case $depmode in
4243
- nosideeffect)
4244
- # after this tag, mechanisms are not by side-effect, so they'll
4245
- # only be used when explicitly requested
4246
- if test "x$enable_dependency_tracking" = xyes; then
4247
- continue
4248
- else
4249
- break
4250
- fi
4251
- ;;
4252
- none) break ;;
4253
- esac
4254
- # We check with `-c' and `-o' for the sake of the "dashmstdout"
4255
- # mode. It turns out that the SunPro C++ compiler does not properly
4256
- # handle `-M -o', and we need to detect this.
4257
- if depmode=$depmode \
4258
- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4259
- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4260
- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4261
- >/dev/null 2>conftest.err &&
4262
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4263
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4264
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4265
- # icc doesn't choke on unknown options, it will just issue warnings
4266
- # or remarks (even with -Werror). So we grep stderr for any message
4267
- # that says an option was ignored or not supported.
4268
- # When given -MP, icc 7.0 and 7.1 complain thusly:
4269
- # icc: Command line warning: ignoring option '-M'; no argument required
4270
- # The diagnosis changed in icc 8.0:
4271
- # icc: Command line remark: option '-MP' not supported
4272
- if (grep 'ignoring option' conftest.err ||
4273
- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4274
- am_cv_CXX_dependencies_compiler_type=$depmode
4275
- break
4276
- fi
4277
- fi
4278
- done
4176
+ # We check with `-c' and `-o' for the sake of the "dashmstdout"
4177
+ # mode. It turns out that the SunPro C++ compiler does not properly
4178
+ # handle `-M -o', and we need to detect this. Also, some Intel
4179
+ # versions had trouble with output in subdirs
4180
+ am__obj=sub/conftest.${OBJEXT-o}
4181
+ am__minus_obj="-o $am__obj"
4182
+ case $depmode in
4183
+ gcc)
4184
+ # This depmode causes a compiler race in universal mode.
4185
+ test "$am__universal" = false || continue
4186
+ ;;
4187
+ nosideeffect)
4188
+ # after this tag, mechanisms are not by side-effect, so they'll
4189
+ # only be used when explicitly requested
4190
+ if test "x$enable_dependency_tracking" = xyes; then
4191
+ continue
4192
+ else
4193
+ break
4194
+ fi
4195
+ ;;
4196
+ msvisualcpp | msvcmsys)
4197
+ # This compiler won't grok `-c -o', but also, the minuso test has
4198
+ # not run yet. These depmodes are late enough in the game, and
4199
+ # so weak that their functioning should not be impacted.
4200
+ am__obj=conftest.${OBJEXT-o}
4201
+ am__minus_obj=
4202
+ ;;
4203
+ none) break ;;
4204
+ esac
4205
+ if depmode=$depmode \
4206
+ source=sub/conftest.c object=$am__obj \
4207
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4208
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4209
+ >/dev/null 2>conftest.err &&
4210
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4211
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4212
+ grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4213
+ ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4214
+ # icc doesn't choke on unknown options, it will just issue warnings
4215
+ # or remarks (even with -Werror). So we grep stderr for any message
4216
+ # that says an option was ignored or not supported.
4217
+ # When given -MP, icc 7.0 and 7.1 complain thusly:
4218
+ # icc: Command line warning: ignoring option '-M'; no argument required
4219
+ # The diagnosis changed in icc 8.0:
4220
+ # icc: Command line remark: option '-MP' not supported
4221
+ if (grep 'ignoring option' conftest.err ||
4222
+ grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4223
+ am_cv_CC_dependencies_compiler_type=$depmode
4224
+ break
4225
+ fi
4226
+ fi
4227
+ done
4228
+
4229
+ cd ..
4230
+ rm -rf conftest.dir
4231
+ else
4232
+ am_cv_CC_dependencies_compiler_type=none
4233
+ fi
4234
+
4235
+ fi
4236
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4237
+ $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4238
+ CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4239
+
4240
+ if
4241
+ test "x$enable_dependency_tracking" != xno \
4242
+ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4243
+ am__fastdepCC_TRUE=
4244
+ am__fastdepCC_FALSE='#'
4245
+ else
4246
+ am__fastdepCC_TRUE='#'
4247
+ am__fastdepCC_FALSE=
4248
+ fi
4249
+
4250
+
4251
+ ac_ext=c
4252
+ ac_cpp='$CPP $CPPFLAGS'
4253
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4257
+ $as_echo_n "checking how to run the C preprocessor... " >&6; }
4258
+ # On Suns, sometimes $CPP names a directory.
4259
+ if test -n "$CPP" && test -d "$CPP"; then
4260
+ CPP=
4261
+ fi
4262
+ if test -z "$CPP"; then
4263
+ if ${ac_cv_prog_CPP+:} false; then :
4264
+ $as_echo_n "(cached) " >&6
4265
+ else
4266
+ # Double quotes because CPP needs to be expanded
4267
+ for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4268
+ do
4269
+ ac_preproc_ok=false
4270
+ for ac_c_preproc_warn_flag in '' yes
4271
+ do
4272
+ # Use a header file that comes with gcc, so configuring glibc
4273
+ # with a fresh cross-compiler works.
4274
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275
+ # <limits.h> exists even on freestanding compilers.
4276
+ # On the NeXT, cc -E runs the code through the compiler's parser,
4277
+ # not just through cpp. "Syntax error" is here to catch this case.
4278
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279
+ /* end confdefs.h. */
4280
+ #ifdef __STDC__
4281
+ # include <limits.h>
4282
+ #else
4283
+ # include <assert.h>
4284
+ #endif
4285
+ Syntax error
4286
+ _ACEOF
4287
+ if ac_fn_c_try_cpp "$LINENO"; then :
4288
+
4289
+ else
4290
+ # Broken: fails on valid input.
4291
+ continue
4292
+ fi
4293
+ rm -f conftest.err conftest.i conftest.$ac_ext
4279
4294
 
4280
- cd ..
4281
- rm -rf conftest.dir
4295
+ # OK, works on sane cases. Now check whether nonexistent headers
4296
+ # can be detected and how.
4297
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298
+ /* end confdefs.h. */
4299
+ #include <ac_nonexistent.h>
4300
+ _ACEOF
4301
+ if ac_fn_c_try_cpp "$LINENO"; then :
4302
+ # Broken: success on invalid input.
4303
+ continue
4282
4304
  else
4283
- am_cv_CXX_dependencies_compiler_type=none
4305
+ # Passes both tests.
4306
+ ac_preproc_ok=:
4307
+ break
4284
4308
  fi
4309
+ rm -f conftest.err conftest.i conftest.$ac_ext
4285
4310
 
4311
+ done
4312
+ # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313
+ rm -f conftest.i conftest.err conftest.$ac_ext
4314
+ if $ac_preproc_ok; then :
4315
+ break
4286
4316
  fi
4287
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4288
- $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4289
- CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4290
4317
 
4318
+ done
4319
+ ac_cv_prog_CPP=$CPP
4320
+
4321
+ fi
4322
+ CPP=$ac_cv_prog_CPP
4323
+ else
4324
+ ac_cv_prog_CPP=$CPP
4325
+ fi
4326
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4327
+ $as_echo "$CPP" >&6; }
4328
+ ac_preproc_ok=false
4329
+ for ac_c_preproc_warn_flag in '' yes
4330
+ do
4331
+ # Use a header file that comes with gcc, so configuring glibc
4332
+ # with a fresh cross-compiler works.
4333
+ # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4334
+ # <limits.h> exists even on freestanding compilers.
4335
+ # On the NeXT, cc -E runs the code through the compiler's parser,
4336
+ # not just through cpp. "Syntax error" is here to catch this case.
4337
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338
+ /* end confdefs.h. */
4339
+ #ifdef __STDC__
4340
+ # include <limits.h>
4341
+ #else
4342
+ # include <assert.h>
4343
+ #endif
4344
+ Syntax error
4345
+ _ACEOF
4346
+ if ac_fn_c_try_cpp "$LINENO"; then :
4291
4347
 
4348
+ else
4349
+ # Broken: fails on valid input.
4350
+ continue
4351
+ fi
4352
+ rm -f conftest.err conftest.i conftest.$ac_ext
4292
4353
 
4293
- if
4294
- test "x$enable_dependency_tracking" != xno \
4295
- && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4296
- am__fastdepCXX_TRUE=
4297
- am__fastdepCXX_FALSE='#'
4354
+ # OK, works on sane cases. Now check whether nonexistent headers
4355
+ # can be detected and how.
4356
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357
+ /* end confdefs.h. */
4358
+ #include <ac_nonexistent.h>
4359
+ _ACEOF
4360
+ if ac_fn_c_try_cpp "$LINENO"; then :
4361
+ # Broken: success on invalid input.
4362
+ continue
4298
4363
  else
4299
- am__fastdepCXX_TRUE='#'
4300
- am__fastdepCXX_FALSE=
4364
+ # Passes both tests.
4365
+ ac_preproc_ok=:
4366
+ break
4301
4367
  fi
4368
+ rm -f conftest.err conftest.i conftest.$ac_ext
4302
4369
 
4370
+ done
4371
+ # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4372
+ rm -f conftest.i conftest.err conftest.$ac_ext
4373
+ if $ac_preproc_ok; then :
4303
4374
 
4375
+ else
4376
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4377
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4378
+ as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4379
+ See \`config.log' for more details" "$LINENO" 5; }
4380
+ fi
4304
4381
 
4382
+ ac_ext=c
4383
+ ac_cpp='$CPP $CPPFLAGS'
4384
+ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385
+ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386
+ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4387
 
4306
- if test "$GCC" = yes; then
4388
+ if test "$GCC" = yes; then
4307
4389
  GCC_TRUE=
4308
4390
  GCC_FALSE='#'
4309
4391
  else
@@ -5369,6 +5451,77 @@ $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shar
5369
5451
  acx_pthread_ok=no
5370
5452
  fi
5371
5453
 
5454
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether what we have so far is sufficient with -nostdlib" >&5
5455
+ $as_echo_n "checking whether what we have so far is sufficient with -nostdlib... " >&6; }
5456
+ CFLAGS="-nostdlib $CFLAGS"
5457
+ # we need c with nostdlib
5458
+ LIBS="$LIBS -lc"
5459
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460
+ /* end confdefs.h. */
5461
+ #include <pthread.h>
5462
+ int
5463
+ main ()
5464
+ {
5465
+ pthread_t th; pthread_join(th, 0);
5466
+ pthread_attr_init(0); pthread_cleanup_push(0, 0);
5467
+ pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5468
+ ;
5469
+ return 0;
5470
+ }
5471
+ _ACEOF
5472
+ if ac_fn_c_try_link "$LINENO"; then :
5473
+ done=yes
5474
+ else
5475
+ done=no
5476
+ fi
5477
+ rm -f core conftest.err conftest.$ac_objext \
5478
+ conftest$ac_exeext conftest.$ac_ext
5479
+
5480
+ if test "x$done" = xyes; then
5481
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5482
+ $as_echo "yes" >&6; }
5483
+ else
5484
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485
+ $as_echo "no" >&6; }
5486
+ fi
5487
+
5488
+ if test x"$done" = xno; then
5489
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread saves the day" >&5
5490
+ $as_echo_n "checking whether -lpthread saves the day... " >&6; }
5491
+ LIBS="-lpthread $LIBS"
5492
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5493
+ /* end confdefs.h. */
5494
+ #include <pthread.h>
5495
+ int
5496
+ main ()
5497
+ {
5498
+ pthread_t th; pthread_join(th, 0);
5499
+ pthread_attr_init(0); pthread_cleanup_push(0, 0);
5500
+ pthread_create(0,0,0,0); pthread_cleanup_pop(0);
5501
+ ;
5502
+ return 0;
5503
+ }
5504
+ _ACEOF
5505
+ if ac_fn_c_try_link "$LINENO"; then :
5506
+ done=yes
5507
+ else
5508
+ done=no
5509
+ fi
5510
+ rm -f core conftest.err conftest.$ac_objext \
5511
+ conftest$ac_exeext conftest.$ac_ext
5512
+
5513
+ if test "x$done" = xyes; then
5514
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515
+ $as_echo "yes" >&6; }
5516
+ PTHREAD_LIBS="$PTHREAD_LIBS -lpthread"
5517
+ else
5518
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519
+ $as_echo "no" >&6; }
5520
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&5
5521
+ $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries and -nostdlib" >&2;}
5522
+ fi
5523
+ fi
5524
+
5372
5525
  CFLAGS="$save_CFLAGS"
5373
5526
  LIBS="$save_LIBS"
5374
5527
  CC="$save_CC"
@@ -5621,71 +5774,8 @@ _ACEOF
5621
5774
  $as_echo "$ac_cv_cxx_stl_hash_fun" >&6; }
5622
5775
 
5623
5776
 
5624
- # Find out what namespace 'normal' STL code lives in, and also what namespace
5625
- # the user wants our classes to be defined in
5626
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
5627
- $as_echo_n "checking what namespace STL code is in... " >&6; }
5628
- if ${ac_cv_cxx_stl_namespace+:} false; then :
5629
- $as_echo_n "(cached) " >&6
5630
- else
5631
-
5632
-
5633
- ac_ext=cpp
5634
- ac_cpp='$CXXCPP $CPPFLAGS'
5635
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5638
-
5639
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640
- /* end confdefs.h. */
5641
- #include <vector>
5642
- int
5643
- main ()
5644
- {
5645
- vector<int> t; return 0;
5646
- ;
5647
- return 0;
5648
- }
5649
- _ACEOF
5650
- if ac_fn_cxx_try_compile "$LINENO"; then :
5651
- ac_cv_cxx_stl_namespace=none
5652
- fi
5653
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5654
- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655
- /* end confdefs.h. */
5656
- #include <vector>
5657
- int
5658
- main ()
5659
- {
5660
- std::vector<int> t; return 0;
5661
- ;
5662
- return 0;
5663
- }
5664
- _ACEOF
5665
- if ac_fn_cxx_try_compile "$LINENO"; then :
5666
- ac_cv_cxx_stl_namespace=std
5667
- fi
5668
- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669
- ac_ext=cpp
5670
- ac_cpp='$CXXCPP $CPPFLAGS'
5671
- ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672
- ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673
- ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5674
-
5675
- fi
5676
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
5677
- $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
5678
- if test "$ac_cv_cxx_stl_namespace" = none; then
5679
-
5680
- $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
5681
-
5682
- fi
5683
- if test "$ac_cv_cxx_stl_namespace" = std; then
5684
-
5685
- $as_echo "#define STL_NAMESPACE std" >>confdefs.h
5686
-
5687
- fi
5688
-
5777
+ # Find out what namespace the user wants our classes to be defined in.
5778
+ # TODO(csilvers): change this to default to sparsehash instead.
5689
5779
  google_namespace_default=google
5690
5780
  # Check whether --enable-namespace was given.
5691
5781
  if test "${enable_namespace+set}" = set; then :
@@ -5851,18 +5941,26 @@ LIBOBJS=$ac_libobjs
5851
5941
  LTLIBOBJS=$ac_ltlibobjs
5852
5942
 
5853
5943
 
5944
+ if test -n "$EXEEXT"; then
5945
+ am__EXEEXT_TRUE=
5946
+ am__EXEEXT_FALSE='#'
5947
+ else
5948
+ am__EXEEXT_TRUE='#'
5949
+ am__EXEEXT_FALSE=
5950
+ fi
5951
+
5854
5952
  if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5855
5953
  as_fn_error $? "conditional \"AMDEP\" was never defined.
5856
5954
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
5857
5955
  fi
5858
- if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5859
- as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5860
- Usually this means the macro was only invoked conditionally." "$LINENO" 5
5861
- fi
5862
5956
  if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5863
5957
  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5864
5958
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
5865
5959
  fi
5960
+ if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5961
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5962
+ Usually this means the macro was only invoked conditionally." "$LINENO" 5
5963
+ fi
5866
5964
  if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
5867
5965
  as_fn_error $? "conditional \"GCC\" was never defined.
5868
5966
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
@@ -6276,7 +6374,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6276
6374
  # report actual input values of CONFIG_FILES etc. instead of their
6277
6375
  # values after options handling.
6278
6376
  ac_log="
6279
- This file was extended by sparsehash $as_me 1.8.1, which was
6377
+ This file was extended by sparsehash $as_me 2.0.2, which was
6280
6378
  generated by GNU Autoconf 2.68. Invocation command line was
6281
6379
 
6282
6380
  CONFIG_FILES = $CONFIG_FILES
@@ -6336,13 +6434,13 @@ $config_headers
6336
6434
  Configuration commands:
6337
6435
  $config_commands
6338
6436
 
6339
- Report bugs to <opensource@google.com>."
6437
+ Report bugs to <google-sparsehash@googlegroups.com>."
6340
6438
 
6341
6439
  _ACEOF
6342
6440
  cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6343
6441
  ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6344
6442
  ac_cs_version="\\
6345
- sparsehash config.status 1.8.1
6443
+ sparsehash config.status 2.0.2
6346
6444
  configured by $0, generated by GNU Autoconf 2.68,
6347
6445
  with options \\"\$ac_cs_config\\"
6348
6446
 
@@ -6353,6 +6451,7 @@ gives unlimited permission to copy, distribute and modify it."
6353
6451
  ac_pwd='$ac_pwd'
6354
6452
  srcdir='$srcdir'
6355
6453
  INSTALL='$INSTALL'
6454
+ MKDIR_P='$MKDIR_P'
6356
6455
  AWK='$AWK'
6357
6456
  test -n "\$AWK" || AWK=awk
6358
6457
  _ACEOF
@@ -6921,6 +7020,11 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6921
7020
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6922
7021
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6923
7022
  esac
7023
+ ac_MKDIR_P=$MKDIR_P
7024
+ case $MKDIR_P in
7025
+ [\\/$]* | ?:[\\/]* ) ;;
7026
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
7027
+ esac
6924
7028
  _ACEOF
6925
7029
 
6926
7030
  cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
@@ -6975,6 +7079,7 @@ s&@builddir@&$ac_builddir&;t t
6975
7079
  s&@abs_builddir@&$ac_abs_builddir&;t t
6976
7080
  s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6977
7081
  s&@INSTALL@&$ac_INSTALL&;t t
7082
+ s&@MKDIR_P@&$ac_MKDIR_P&;t t
6978
7083
  $ac_datarootdir_hack
6979
7084
  "
6980
7085
  eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
@@ -7020,21 +7125,22 @@ $as_echo "$as_me: $ac_file is unchanged" >&6;}
7020
7125
  || as_fn_error $? "could not create -" "$LINENO" 5
7021
7126
  fi
7022
7127
  # Compute "$ac_file"'s index in $config_headers.
7128
+ _am_arg="$ac_file"
7023
7129
  _am_stamp_count=1
7024
7130
  for _am_header in $config_headers :; do
7025
7131
  case $_am_header in
7026
- "$ac_file" | "$ac_file":* )
7132
+ $_am_arg | $_am_arg:* )
7027
7133
  break ;;
7028
7134
  * )
7029
7135
  _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7030
7136
  esac
7031
7137
  done
7032
- echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
7033
- $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7034
- X"$ac_file" : 'X\(//\)[^/]' \| \
7035
- X"$ac_file" : 'X\(//\)$' \| \
7036
- X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7037
- $as_echo X"$ac_file" |
7138
+ echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7139
+ $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7140
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
7141
+ X"$_am_arg" : 'X\(//\)$' \| \
7142
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7143
+ $as_echo X"$_am_arg" |
7038
7144
  sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7039
7145
  s//\1/
7040
7146
  q
@@ -7061,17 +7167,28 @@ $as_echo "$as_me: executing $ac_file commands" >&6;}
7061
7167
 
7062
7168
 
7063
7169
  case $ac_file$ac_mode in
7064
- "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
7065
- # Strip MF so we end up with the name of the file.
7066
- mf=`echo "$mf" | sed -e 's/:.*$//'`
7067
- # Check whether this is an Automake generated Makefile or not.
7068
- # We used to match only the files named `Makefile.in', but
7069
- # some people rename them; so instead we look at the file content.
7070
- # Grep'ing the first line is not enough: some people post-process
7071
- # each Makefile.in and add a new line on top of each file to say so.
7072
- # So let's grep whole file.
7073
- if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7074
- dirpart=`$as_dirname -- "$mf" ||
7170
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
7171
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
7172
+ # are listed without --file. Let's play safe and only enable the eval
7173
+ # if we detect the quoting.
7174
+ case $CONFIG_FILES in
7175
+ *\'*) eval set x "$CONFIG_FILES" ;;
7176
+ *) set x $CONFIG_FILES ;;
7177
+ esac
7178
+ shift
7179
+ for mf
7180
+ do
7181
+ # Strip MF so we end up with the name of the file.
7182
+ mf=`echo "$mf" | sed -e 's/:.*$//'`
7183
+ # Check whether this is an Automake generated Makefile or not.
7184
+ # We used to match only the files named `Makefile.in', but
7185
+ # some people rename them; so instead we look at the file content.
7186
+ # Grep'ing the first line is not enough: some people post-process
7187
+ # each Makefile.in and add a new line on top of each file to say so.
7188
+ # Grep'ing the whole file is not good either: AIX grep has a line
7189
+ # limit of 2048, but all sed's we know have understand at least 4000.
7190
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
7191
+ dirpart=`$as_dirname -- "$mf" ||
7075
7192
  $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7076
7193
  X"$mf" : 'X\(//\)[^/]' \| \
7077
7194
  X"$mf" : 'X\(//\)$' \| \
@@ -7094,28 +7211,28 @@ $as_echo X"$mf" |
7094
7211
  q
7095
7212
  }
7096
7213
  s/.*/./; q'`
7097
- else
7098
- continue
7099
- fi
7100
- # Extract the definition of DEPDIR, am__include, and am__quote
7101
- # from the Makefile without running `make'.
7102
- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7103
- test -z "$DEPDIR" && continue
7104
- am__include=`sed -n 's/^am__include = //p' < "$mf"`
7105
- test -z "am__include" && continue
7106
- am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7107
- # When using ansi2knr, U may be empty or an underscore; expand it
7108
- U=`sed -n 's/^U = //p' < "$mf"`
7109
- # Find all dependency output files, they are included files with
7110
- # $(DEPDIR) in their names. We invoke sed twice because it is the
7111
- # simplest approach to changing $(DEPDIR) to its actual value in the
7112
- # expansion.
7113
- for file in `sed -n "
7114
- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7115
- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7116
- # Make sure the directory exists.
7117
- test -f "$dirpart/$file" && continue
7118
- fdir=`$as_dirname -- "$file" ||
7214
+ else
7215
+ continue
7216
+ fi
7217
+ # Extract the definition of DEPDIR, am__include, and am__quote
7218
+ # from the Makefile without running `make'.
7219
+ DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7220
+ test -z "$DEPDIR" && continue
7221
+ am__include=`sed -n 's/^am__include = //p' < "$mf"`
7222
+ test -z "am__include" && continue
7223
+ am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7224
+ # When using ansi2knr, U may be empty or an underscore; expand it
7225
+ U=`sed -n 's/^U = //p' < "$mf"`
7226
+ # Find all dependency output files, they are included files with
7227
+ # $(DEPDIR) in their names. We invoke sed twice because it is the
7228
+ # simplest approach to changing $(DEPDIR) to its actual value in the
7229
+ # expansion.
7230
+ for file in `sed -n "
7231
+ s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7232
+ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7233
+ # Make sure the directory exists.
7234
+ test -f "$dirpart/$file" && continue
7235
+ fdir=`$as_dirname -- "$file" ||
7119
7236
  $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7120
7237
  X"$file" : 'X\(//\)[^/]' \| \
7121
7238
  X"$file" : 'X\(//\)$' \| \
@@ -7138,11 +7255,12 @@ $as_echo X"$file" |
7138
7255
  q
7139
7256
  }
7140
7257
  s/.*/./; q'`
7141
- as_dir=$dirpart/$fdir; as_fn_mkdir_p
7142
- # echo "creating $dirpart/$file"
7143
- echo '# dummy' > "$dirpart/$file"
7258
+ as_dir=$dirpart/$fdir; as_fn_mkdir_p
7259
+ # echo "creating $dirpart/$file"
7260
+ echo '# dummy' > "$dirpart/$file"
7261
+ done
7144
7262
  done
7145
- done
7263
+ }
7146
7264
  ;;
7147
7265
 
7148
7266
  esac