ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/configure
(Generate patch)

Comparing trunk/OOPSE-2.0/configure (file contents):
Revision 2505 by gezelter, Fri Dec 9 17:11:12 2005 UTC vs.
Revision 2510 by gezelter, Thu Dec 15 14:47:17 2005 UTC

# Line 1888 | Line 1888 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1888   #
1889   #
1890   #
1891 +
1892 +
1893 +
1894  
1895  
1896  
# Line 1896 | Line 1899 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1899  
1900  
1901  
1902 +
1903 +
1904 +
1905 +
1906 +
1907 +
1908 +
1909 +
1910 +
1911 +
1912 +
1913 +
1914 +
1915 +
1916 +
1917 +
1918 +
1919 +
1920 +
1921 +
1922 +
1923 +
1924 +
1925 +
1926 +
1927 +
1928 +
1929 +
1930 +
1931 +
1932 +
1933   # set program name
1934   PROGNAME="oopse"
1935  
# Line 3806 | Line 3840 | F90FLAGS="$F90FLAGS $ac_verb"
3840   ac_save_F90FLAGS=$F90FLAGS
3841   F90FLAGS="$F90FLAGS $ac_verb"
3842  
3843 < (eval echo $as_me:3809: \"$ac_link\") >&5
3843 > (eval echo $as_me:3843: \"$ac_link\") >&5
3844   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3845   echo "$ac_f90_v_output" >&5
3846   F90FLAGS=$ac_save_F90FLAGS
# Line 3883 | Line 3917 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3917   ac_save_F90FLAGS=$F90FLAGS
3918   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3919  
3920 < (eval echo $as_me:3886: \"$ac_link\") >&5
3920 > (eval echo $as_me:3920: \"$ac_link\") >&5
3921   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3922   echo "$ac_f90_v_output" >&5
3923   F90FLAGS=$ac_save_F90FLAGS
# Line 4722 | Line 4756 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4756   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4757  
4758  
4759 <
4760 < echo "$as_me:$LINENO: checking for asin in -lm" >&5
4761 < echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4762 < if test "${ac_cv_lib_m_asin+set}" = set; then
4759 > ac_ext=cc
4760 > ac_cpp='$CXXCPP $CPPFLAGS'
4761 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4762 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4763 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4764 > echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4765 > echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4766 > if test -z "$CXXCPP"; then
4767 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4768    echo $ECHO_N "(cached) $ECHO_C" >&6
4769   else
4770 <  ac_check_lib_save_LIBS=$LIBS
4771 < LIBS="-lm  $LIBS"
4772 < cat >conftest.$ac_ext <<_ACEOF
4770 >      # Double quotes because CXXCPP needs to be expanded
4771 >    for CXXCPP in "$CXX -E" "/lib/cpp"
4772 >    do
4773 >      ac_preproc_ok=false
4774 > for ac_cxx_preproc_warn_flag in '' yes
4775 > do
4776 >  # Use a header file that comes with gcc, so configuring glibc
4777 >  # with a fresh cross-compiler works.
4778 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4779 >  # <limits.h> exists even on freestanding compilers.
4780 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4781 >  # not just through cpp. "Syntax error" is here to catch this case.
4782 >  cat >conftest.$ac_ext <<_ACEOF
4783   /* confdefs.h.  */
4784   _ACEOF
4785   cat confdefs.h >>conftest.$ac_ext
4786   cat >>conftest.$ac_ext <<_ACEOF
4787   /* end confdefs.h.  */
4788 <
4789 < /* Override any gcc2 internal prototype to avoid an error.  */
4790 < #ifdef __cplusplus
4791 < extern "C"
4788 > #ifdef __STDC__
4789 > # include <limits.h>
4790 > #else
4791 > # include <assert.h>
4792   #endif
4793 < /* We use char because int might match the return type of a gcc2
4745 <   builtin and then its argument prototype would still apply.  */
4746 < char asin ();
4747 < int
4748 < main ()
4749 < {
4750 < asin ();
4751 <  ;
4752 <  return 0;
4753 < }
4793 >                     Syntax error
4794   _ACEOF
4795 < rm -f conftest.$ac_objext conftest$ac_exeext
4796 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4757 <  (eval $ac_link) 2>conftest.er1
4795 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4796 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4797    ac_status=$?
4798    grep -v '^ *+' conftest.er1 >conftest.err
4799    rm -f conftest.er1
4800    cat conftest.err >&5
4801    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 <  (exit $ac_status); } &&
4803 <         { ac_try='test -z "$ac_cxx_werror_flag"
4804 <                         || test ! -s conftest.err'
4805 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4806 <  (eval $ac_try) 2>&5
4807 <  ac_status=$?
4808 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770 <  (exit $ac_status); }; } &&
4771 <         { ac_try='test -s conftest$ac_exeext'
4772 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4773 <  (eval $ac_try) 2>&5
4774 <  ac_status=$?
4775 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 <  (exit $ac_status); }; }; then
4777 <  ac_cv_lib_m_asin=yes
4802 >  (exit $ac_status); } >/dev/null; then
4803 >  if test -s conftest.err; then
4804 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
4805 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4806 >  else
4807 >    ac_cpp_err=
4808 >  fi
4809   else
4810 +  ac_cpp_err=yes
4811 + fi
4812 + if test -z "$ac_cpp_err"; then
4813 +  :
4814 + else
4815    echo "$as_me: failed program was:" >&5
4816   sed 's/^/| /' conftest.$ac_ext >&5
4817  
4818 < ac_cv_lib_m_asin=no
4818 >  # Broken: fails on valid input.
4819 > continue
4820   fi
4821 < rm -f conftest.err conftest.$ac_objext \
4822 <      conftest$ac_exeext conftest.$ac_ext
4823 < LIBS=$ac_check_lib_save_LIBS
4821 > rm -f conftest.err conftest.$ac_ext
4822 >
4823 >  # OK, works on sane cases.  Now check whether non-existent headers
4824 >  # can be detected and how.
4825 >  cat >conftest.$ac_ext <<_ACEOF
4826 > /* confdefs.h.  */
4827 > _ACEOF
4828 > cat confdefs.h >>conftest.$ac_ext
4829 > cat >>conftest.$ac_ext <<_ACEOF
4830 > /* end confdefs.h.  */
4831 > #include <ac_nonexistent.h>
4832 > _ACEOF
4833 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4834 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4835 >  ac_status=$?
4836 >  grep -v '^ *+' conftest.er1 >conftest.err
4837 >  rm -f conftest.er1
4838 >  cat conftest.err >&5
4839 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 >  (exit $ac_status); } >/dev/null; then
4841 >  if test -s conftest.err; then
4842 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
4843 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4844 >  else
4845 >    ac_cpp_err=
4846 >  fi
4847 > else
4848 >  ac_cpp_err=yes
4849   fi
4850 < echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4851 < echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4852 < if test $ac_cv_lib_m_asin = yes; then
4853 <  cat >>confdefs.h <<_ACEOF
4854 < #define HAVE_LIBM 1
4850 > if test -z "$ac_cpp_err"; then
4851 >  # Broken: success on invalid input.
4852 > continue
4853 > else
4854 >  echo "$as_me: failed program was:" >&5
4855 > sed 's/^/| /' conftest.$ac_ext >&5
4856 >
4857 >  # Passes both tests.
4858 > ac_preproc_ok=:
4859 > break
4860 > fi
4861 > rm -f conftest.err conftest.$ac_ext
4862 >
4863 > done
4864 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4865 > rm -f conftest.err conftest.$ac_ext
4866 > if $ac_preproc_ok; then
4867 >  break
4868 > fi
4869 >
4870 >    done
4871 >    ac_cv_prog_CXXCPP=$CXXCPP
4872 >
4873 > fi
4874 >  CXXCPP=$ac_cv_prog_CXXCPP
4875 > else
4876 >  ac_cv_prog_CXXCPP=$CXXCPP
4877 > fi
4878 > echo "$as_me:$LINENO: result: $CXXCPP" >&5
4879 > echo "${ECHO_T}$CXXCPP" >&6
4880 > ac_preproc_ok=false
4881 > for ac_cxx_preproc_warn_flag in '' yes
4882 > do
4883 >  # Use a header file that comes with gcc, so configuring glibc
4884 >  # with a fresh cross-compiler works.
4885 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4886 >  # <limits.h> exists even on freestanding compilers.
4887 >  # On the NeXT, cc -E runs the code through the compiler's parser,
4888 >  # not just through cpp. "Syntax error" is here to catch this case.
4889 >  cat >conftest.$ac_ext <<_ACEOF
4890 > /* confdefs.h.  */
4891   _ACEOF
4892 + cat confdefs.h >>conftest.$ac_ext
4893 + cat >>conftest.$ac_ext <<_ACEOF
4894 + /* end confdefs.h.  */
4895 + #ifdef __STDC__
4896 + # include <limits.h>
4897 + #else
4898 + # include <assert.h>
4899 + #endif
4900 +                     Syntax error
4901 + _ACEOF
4902 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904 +  ac_status=$?
4905 +  grep -v '^ *+' conftest.er1 >conftest.err
4906 +  rm -f conftest.er1
4907 +  cat conftest.err >&5
4908 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 +  (exit $ac_status); } >/dev/null; then
4910 +  if test -s conftest.err; then
4911 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
4912 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4913 +  else
4914 +    ac_cpp_err=
4915 +  fi
4916 + else
4917 +  ac_cpp_err=yes
4918 + fi
4919 + if test -z "$ac_cpp_err"; then
4920 +  :
4921 + else
4922 +  echo "$as_me: failed program was:" >&5
4923 + sed 's/^/| /' conftest.$ac_ext >&5
4924  
4925 <  LIBS="-lm $LIBS"
4925 >  # Broken: fails on valid input.
4926 > continue
4927 > fi
4928 > rm -f conftest.err conftest.$ac_ext
4929  
4930 +  # OK, works on sane cases.  Now check whether non-existent headers
4931 +  # can be detected and how.
4932 +  cat >conftest.$ac_ext <<_ACEOF
4933 + /* confdefs.h.  */
4934 + _ACEOF
4935 + cat confdefs.h >>conftest.$ac_ext
4936 + cat >>conftest.$ac_ext <<_ACEOF
4937 + /* end confdefs.h.  */
4938 + #include <ac_nonexistent.h>
4939 + _ACEOF
4940 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4941 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 +  ac_status=$?
4943 +  grep -v '^ *+' conftest.er1 >conftest.err
4944 +  rm -f conftest.er1
4945 +  cat conftest.err >&5
4946 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 +  (exit $ac_status); } >/dev/null; then
4948 +  if test -s conftest.err; then
4949 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
4950 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4951 +  else
4952 +    ac_cpp_err=
4953 +  fi
4954   else
4955 <  exit
4955 >  ac_cpp_err=yes
4956   fi
4957 + if test -z "$ac_cpp_err"; then
4958 +  # Broken: success on invalid input.
4959 + continue
4960 + else
4961 +  echo "$as_me: failed program was:" >&5
4962 + sed 's/^/| /' conftest.$ac_ext >&5
4963  
4964 +  # Passes both tests.
4965 + ac_preproc_ok=:
4966 + break
4967 + fi
4968 + rm -f conftest.err conftest.$ac_ext
4969  
4970 < ac_ext=c
4971 < ac_cpp='$CPP $CPPFLAGS'
4972 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 > done
4971 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4972 > rm -f conftest.err conftest.$ac_ext
4973 > if $ac_preproc_ok; then
4974 >  :
4975 > else
4976 >  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4977 > See \`config.log' for more details." >&5
4978 > echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4979 > See \`config.log' for more details." >&2;}
4980 >   { (exit 1); exit 1; }; }
4981 > fi
4982  
4983 + ac_ext=cc
4984 + ac_cpp='$CXXCPP $CPPFLAGS'
4985 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988  
4989 +
4990   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4991   echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4992   if test "${ac_cv_header_stdc+set}" = set; then
# Line 4839 | Line 5020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5020    cat conftest.err >&5
5021    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022    (exit $ac_status); } &&
5023 <         { ac_try='test -z "$ac_c_werror_flag"
5023 >         { ac_try='test -z "$ac_cxx_werror_flag"
5024                           || test ! -s conftest.err'
5025    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5026    (eval $ac_try) 2>&5
# Line 4972 | Line 5153 | fi
5153  
5154   fi
5155  
5156 + echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
5157 + echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
5158 + if test "${ac_cv_cxx_namespaces+set}" = set; then
5159 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5160 + else
5161 +
5162 +
5163 + ac_ext=cc
5164 + ac_cpp='$CXXCPP $CPPFLAGS'
5165 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5166 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5167 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5168 +
5169 + cat >conftest.$ac_ext <<_ACEOF
5170 + /* confdefs.h.  */
5171 + _ACEOF
5172 + cat confdefs.h >>conftest.$ac_ext
5173 + cat >>conftest.$ac_ext <<_ACEOF
5174 + /* end confdefs.h.  */
5175 + namespace Outer { namespace Inner { int i = 0; }}
5176 + int
5177 + main ()
5178 + {
5179 + using namespace Outer::Inner; return i;
5180 +  ;
5181 +  return 0;
5182 + }
5183 + _ACEOF
5184 + rm -f conftest.$ac_objext
5185 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 +  (eval $ac_compile) 2>conftest.er1
5187 +  ac_status=$?
5188 +  grep -v '^ *+' conftest.er1 >conftest.err
5189 +  rm -f conftest.er1
5190 +  cat conftest.err >&5
5191 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 +  (exit $ac_status); } &&
5193 +         { ac_try='test -z "$ac_cxx_werror_flag"
5194 +                         || test ! -s conftest.err'
5195 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5196 +  (eval $ac_try) 2>&5
5197 +  ac_status=$?
5198 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 +  (exit $ac_status); }; } &&
5200 +         { ac_try='test -s conftest.$ac_objext'
5201 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 +  (eval $ac_try) 2>&5
5203 +  ac_status=$?
5204 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 +  (exit $ac_status); }; }; then
5206 +  ac_cv_cxx_namespaces=yes
5207 + else
5208 +  echo "$as_me: failed program was:" >&5
5209 + sed 's/^/| /' conftest.$ac_ext >&5
5210 +
5211 + ac_cv_cxx_namespaces=no
5212 + fi
5213 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5214 + ac_ext=cc
5215 + ac_cpp='$CXXCPP $CPPFLAGS'
5216 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5219 +
5220 +
5221 + fi
5222 + echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
5223 + echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
5224 + if test "$ac_cv_cxx_namespaces" = yes; then
5225 +
5226 + cat >>confdefs.h <<\_ACEOF
5227 + #define HAVE_NAMESPACES
5228 + _ACEOF
5229 +
5230 + fi
5231 +
5232   # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5233  
5234  
# Line 5010 | Line 5267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267    cat conftest.err >&5
5268    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269    (exit $ac_status); } &&
5270 <         { ac_try='test -z "$ac_c_werror_flag"
5270 >         { ac_try='test -z "$ac_cxx_werror_flag"
5271                           || test ! -s conftest.err'
5272    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273    (eval $ac_try) 2>&5
# Line 5044 | Line 5301 | done
5301   done
5302  
5303  
5304 < #
5305 < # Handle user hints
5306 < #
5307 < echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5051 < echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5052 <
5053 < # Check whether --with-zlib or --without-zlib was given.
5054 < if test "${with_zlib+set}" = set; then
5055 <  withval="$with_zlib"
5056 <  if test "$withval" != no ; then
5057 <  echo "$as_me:$LINENO: result: yes" >&5
5058 < echo "${ECHO_T}yes" >&6
5059 <  if test -d "$withval"
5060 <  then
5061 <    ZLIB_HOME="$withval"
5062 <  else
5063 <    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5064 < echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5065 <  fi
5304 > echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
5305 > echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
5306 > if test "${ac_cv_cxx_have_stl+set}" = set; then
5307 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5308   else
5067  echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070 fi;
5309  
5072 ZLIB_HOME=/usr/local
5073 if test ! -f "${ZLIB_HOME}/include/zlib.h"
5074 then
5075        ZLIB_HOME=/usr
5076 fi
5310  
5078 #
5079 # Locate zlib, if wanted
5080 #
5081 if test -n "${ZLIB_HOME}"
5082 then
5083        ZLIB_OLD_LDFLAGS=$LDFLAGS
5084        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5085        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5086        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5311  
5312 + ac_ext=cc
5313 + ac_cpp='$CXXCPP $CPPFLAGS'
5314 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5315 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5316 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5317  
5318 <        ac_ext=c
5090 < ac_cpp='$CPP $CPPFLAGS'
5091 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5092 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5093 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5094 <
5095 <        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5096 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5097 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5098 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5099 < else
5100 <  ac_check_lib_save_LIBS=$LIBS
5101 < LIBS="-lz  $LIBS"
5102 < cat >conftest.$ac_ext <<_ACEOF
5318 > cat >conftest.$ac_ext <<_ACEOF
5319   /* confdefs.h.  */
5320   _ACEOF
5321   cat confdefs.h >>conftest.$ac_ext
5322   cat >>conftest.$ac_ext <<_ACEOF
5323   /* end confdefs.h.  */
5324 <
5325 < /* Override any gcc2 internal prototype to avoid an error.  */
5326 < #ifdef __cplusplus
5327 < extern "C"
5324 > #include <list>
5325 > #include <deque>
5326 > #ifdef HAVE_NAMESPACES
5327 > using namespace std;
5328   #endif
5113 /* We use char because int might match the return type of a gcc2
5114   builtin and then its argument prototype would still apply.  */
5115 char inflateEnd ();
5329   int
5330   main ()
5331   {
5332 < inflateEnd ();
5332 > list<int> x; x.push_back(5);
5333 > list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
5334    ;
5335    return 0;
5336   }
5337   _ACEOF
5338 < rm -f conftest.$ac_objext conftest$ac_exeext
5339 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5340 <  (eval $ac_link) 2>conftest.er1
5338 > rm -f conftest.$ac_objext
5339 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 >  (eval $ac_compile) 2>conftest.er1
5341    ac_status=$?
5342    grep -v '^ *+' conftest.er1 >conftest.err
5343    rm -f conftest.er1
5344    cat conftest.err >&5
5345    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346    (exit $ac_status); } &&
5347 <         { ac_try='test -z "$ac_c_werror_flag"
5347 >         { ac_try='test -z "$ac_cxx_werror_flag"
5348                           || test ! -s conftest.err'
5349    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350    (eval $ac_try) 2>&5
5351    ac_status=$?
5352    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353    (exit $ac_status); }; } &&
5354 <         { ac_try='test -s conftest$ac_exeext'
5354 >         { ac_try='test -s conftest.$ac_objext'
5355    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356    (eval $ac_try) 2>&5
5357    ac_status=$?
5358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359    (exit $ac_status); }; }; then
5360 <  ac_cv_lib_z_inflateEnd=yes
5360 >  ac_cv_cxx_have_stl=yes
5361   else
5362    echo "$as_me: failed program was:" >&5
5363   sed 's/^/| /' conftest.$ac_ext >&5
5364  
5365 < ac_cv_lib_z_inflateEnd=no
5365 > ac_cv_cxx_have_stl=no
5366   fi
5367 < rm -f conftest.err conftest.$ac_objext \
5368 <      conftest$ac_exeext conftest.$ac_ext
5369 < LIBS=$ac_check_lib_save_LIBS
5367 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368 > ac_ext=cc
5369 > ac_cpp='$CXXCPP $CPPFLAGS'
5370 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5373 >
5374 >
5375   fi
5376 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5377 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5378 < if test $ac_cv_lib_z_inflateEnd = yes; then
5379 <  zlib_cv_libz=yes
5380 < else
5381 <  zlib_cv_libz=no
5376 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
5377 > echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
5378 > if test "$ac_cv_cxx_have_stl" = yes; then
5379 >
5380 > cat >>confdefs.h <<\_ACEOF
5381 > #define HAVE_STL
5382 > _ACEOF
5383 >
5384   fi
5385  
5386 <        if test "${ac_cv_header_zlib_h+set}" = set; then
5387 <  echo "$as_me:$LINENO: checking for zlib.h" >&5
5388 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5389 < if test "${ac_cv_header_zlib_h+set}" = set; then
5386 >
5387 >
5388 >  if test "${ac_cv_header_iostream+set}" = set; then
5389 >  echo "$as_me:$LINENO: checking for iostream" >&5
5390 > echo $ECHO_N "checking for iostream... $ECHO_C" >&6
5391 > if test "${ac_cv_header_iostream+set}" = set; then
5392    echo $ECHO_N "(cached) $ECHO_C" >&6
5393   fi
5394 < echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5395 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5394 > echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
5395 > echo "${ECHO_T}$ac_cv_header_iostream" >&6
5396   else
5397    # Is the header compilable?
5398 < echo "$as_me:$LINENO: checking zlib.h usability" >&5
5399 < echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5398 > echo "$as_me:$LINENO: checking iostream usability" >&5
5399 > echo $ECHO_N "checking iostream usability... $ECHO_C" >&6
5400   cat >conftest.$ac_ext <<_ACEOF
5401   /* confdefs.h.  */
5402   _ACEOF
# Line 5181 | Line 5404 | $ac_includes_default
5404   cat >>conftest.$ac_ext <<_ACEOF
5405   /* end confdefs.h.  */
5406   $ac_includes_default
5407 < #include <zlib.h>
5407 > #include <iostream>
5408   _ACEOF
5409   rm -f conftest.$ac_objext
5410   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 5192 | Line 5415 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5415    cat conftest.err >&5
5416    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417    (exit $ac_status); } &&
5418 <         { ac_try='test -z "$ac_c_werror_flag"
5418 >         { ac_try='test -z "$ac_cxx_werror_flag"
5419                           || test ! -s conftest.err'
5420    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421    (eval $ac_try) 2>&5
# Line 5217 | Line 5440 | echo "$as_me:$LINENO: checking zlib.h presence" >&5
5440   echo "${ECHO_T}$ac_header_compiler" >&6
5441  
5442   # Is the header present?
5443 < echo "$as_me:$LINENO: checking zlib.h presence" >&5
5444 < echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5443 > echo "$as_me:$LINENO: checking iostream presence" >&5
5444 > echo $ECHO_N "checking iostream presence... $ECHO_C" >&6
5445   cat >conftest.$ac_ext <<_ACEOF
5446   /* confdefs.h.  */
5447   _ACEOF
5448   cat confdefs.h >>conftest.$ac_ext
5449   cat >>conftest.$ac_ext <<_ACEOF
5450   /* end confdefs.h.  */
5451 < #include <zlib.h>
5451 > #include <iostream>
5452   _ACEOF
5453   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5454    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5236 | Line 5459 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
5459    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460    (exit $ac_status); } >/dev/null; then
5461    if test -s conftest.err; then
5462 <    ac_cpp_err=$ac_c_preproc_warn_flag
5463 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5462 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5463 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5464    else
5465      ac_cpp_err=
5466    fi
# Line 5257 | Line 5480 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
5480   echo "${ECHO_T}$ac_header_preproc" >&6
5481  
5482   # So?  What about this header?
5483 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5483 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5484    yes:no: )
5485 <    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5486 < echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5487 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5488 < echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5485 >    { echo "$as_me:$LINENO: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&5
5486 > echo "$as_me: WARNING: iostream: accepted by the compiler, rejected by the preprocessor!" >&2;}
5487 >    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the compiler's result" >&5
5488 > echo "$as_me: WARNING: iostream: proceeding with the compiler's result" >&2;}
5489      ac_header_preproc=yes
5490      ;;
5491    no:yes:* )
5492 <    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5493 < echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5494 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
5495 < echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
5496 <    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5497 < echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5498 <    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5499 < echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5500 <    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5501 < echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5502 <    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5503 < echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5492 >    { echo "$as_me:$LINENO: WARNING: iostream: present but cannot be compiled" >&5
5493 > echo "$as_me: WARNING: iostream: present but cannot be compiled" >&2;}
5494 >    { echo "$as_me:$LINENO: WARNING: iostream:     check for missing prerequisite headers?" >&5
5495 > echo "$as_me: WARNING: iostream:     check for missing prerequisite headers?" >&2;}
5496 >    { echo "$as_me:$LINENO: WARNING: iostream: see the Autoconf documentation" >&5
5497 > echo "$as_me: WARNING: iostream: see the Autoconf documentation" >&2;}
5498 >    { echo "$as_me:$LINENO: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&5
5499 > echo "$as_me: WARNING: iostream:     section \"Present But Cannot Be Compiled\"" >&2;}
5500 >    { echo "$as_me:$LINENO: WARNING: iostream: proceeding with the preprocessor's result" >&5
5501 > echo "$as_me: WARNING: iostream: proceeding with the preprocessor's result" >&2;}
5502 >    { echo "$as_me:$LINENO: WARNING: iostream: in the future, the compiler will take precedence" >&5
5503 > echo "$as_me: WARNING: iostream: in the future, the compiler will take precedence" >&2;}
5504      (
5505        cat <<\_ASBOX
5506   ## ------------------------------ ##
# Line 5288 | Line 5511 | echo "$as_me:$LINENO: checking for zlib.h" >&5
5511        sed "s/^/$as_me: WARNING:     /" >&2
5512      ;;
5513   esac
5514 < echo "$as_me:$LINENO: checking for zlib.h" >&5
5515 < echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5516 < if test "${ac_cv_header_zlib_h+set}" = set; then
5514 > echo "$as_me:$LINENO: checking for iostream" >&5
5515 > echo $ECHO_N "checking for iostream... $ECHO_C" >&6
5516 > if test "${ac_cv_header_iostream+set}" = set; then
5517    echo $ECHO_N "(cached) $ECHO_C" >&6
5518   else
5519 <  ac_cv_header_zlib_h=$ac_header_preproc
5519 >  ac_cv_header_iostream=$ac_header_preproc
5520   fi
5521 < echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5522 < echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5521 > echo "$as_me:$LINENO: result: $ac_cv_header_iostream" >&5
5522 > echo "${ECHO_T}$ac_cv_header_iostream" >&6
5523  
5524   fi
5525 < if test $ac_cv_header_zlib_h = yes; then
5303 <  zlib_cv_zlib_h=yes
5304 < else
5305 <  zlib_cv_zlib_h=no
5306 < fi
5525 > if test $ac_cv_header_iostream = yes; then
5526  
5527  
5528 <        ac_ext=c
5529 < ac_cpp='$CPP $CPPFLAGS'
5530 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5312 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
5528 > cat >>confdefs.h <<\_ACEOF
5529 > #define HAVE_IOSTREAM 1
5530 > _ACEOF
5531  
5315        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5316        then
5317                #
5318                # If both library and header were found, use them
5319                #
5532  
5533 < echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5534 < echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5535 < if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5533 > else
5534 >
5535 >
5536 > for ac_header in iostream.h
5537 > do
5538 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5539 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5540 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5541 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5542 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5543    echo $ECHO_N "(cached) $ECHO_C" >&6
5544 + fi
5545 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5546 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5547   else
5548 <  ac_check_lib_save_LIBS=$LIBS
5549 < LIBS="-lz  $LIBS"
5548 >  # Is the header compilable?
5549 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5550 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5551   cat >conftest.$ac_ext <<_ACEOF
5552   /* confdefs.h.  */
5553   _ACEOF
5554   cat confdefs.h >>conftest.$ac_ext
5555   cat >>conftest.$ac_ext <<_ACEOF
5556   /* end confdefs.h.  */
5557 <
5558 < /* Override any gcc2 internal prototype to avoid an error.  */
5336 < #ifdef __cplusplus
5337 < extern "C"
5338 < #endif
5339 < /* We use char because int might match the return type of a gcc2
5340 <   builtin and then its argument prototype would still apply.  */
5341 < char inflateEnd ();
5342 < int
5343 < main ()
5344 < {
5345 < inflateEnd ();
5346 <  ;
5347 <  return 0;
5348 < }
5557 > $ac_includes_default
5558 > #include <$ac_header>
5559   _ACEOF
5560 < rm -f conftest.$ac_objext conftest$ac_exeext
5561 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 <  (eval $ac_link) 2>conftest.er1
5560 > rm -f conftest.$ac_objext
5561 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5562 >  (eval $ac_compile) 2>conftest.er1
5563    ac_status=$?
5564    grep -v '^ *+' conftest.er1 >conftest.err
5565    rm -f conftest.er1
5566    cat conftest.err >&5
5567    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568    (exit $ac_status); } &&
5569 <         { ac_try='test -z "$ac_c_werror_flag"
5569 >         { ac_try='test -z "$ac_cxx_werror_flag"
5570                           || test ! -s conftest.err'
5571    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572    (eval $ac_try) 2>&5
5573    ac_status=$?
5574    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575    (exit $ac_status); }; } &&
5576 <         { ac_try='test -s conftest$ac_exeext'
5576 >         { ac_try='test -s conftest.$ac_objext'
5577    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5578    (eval $ac_try) 2>&5
5579    ac_status=$?
5580    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581    (exit $ac_status); }; }; then
5582 <  ac_cv_lib_z_inflateEnd=yes
5582 >  ac_header_compiler=yes
5583   else
5584    echo "$as_me: failed program was:" >&5
5585   sed 's/^/| /' conftest.$ac_ext >&5
5586  
5587 < ac_cv_lib_z_inflateEnd=no
5587 > ac_header_compiler=no
5588   fi
5589 < rm -f conftest.err conftest.$ac_objext \
5590 <      conftest$ac_exeext conftest.$ac_ext
5591 < LIBS=$ac_check_lib_save_LIBS
5589 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5591 > echo "${ECHO_T}$ac_header_compiler" >&6
5592 >
5593 > # Is the header present?
5594 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
5595 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5596 > cat >conftest.$ac_ext <<_ACEOF
5597 > /* confdefs.h.  */
5598 > _ACEOF
5599 > cat confdefs.h >>conftest.$ac_ext
5600 > cat >>conftest.$ac_ext <<_ACEOF
5601 > /* end confdefs.h.  */
5602 > #include <$ac_header>
5603 > _ACEOF
5604 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5605 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5606 >  ac_status=$?
5607 >  grep -v '^ *+' conftest.er1 >conftest.err
5608 >  rm -f conftest.er1
5609 >  cat conftest.err >&5
5610 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 >  (exit $ac_status); } >/dev/null; then
5612 >  if test -s conftest.err; then
5613 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5614 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5615 >  else
5616 >    ac_cpp_err=
5617 >  fi
5618 > else
5619 >  ac_cpp_err=yes
5620   fi
5621 < echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5622 < echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5623 < if test $ac_cv_lib_z_inflateEnd = yes; then
5621 > if test -z "$ac_cpp_err"; then
5622 >  ac_header_preproc=yes
5623 > else
5624 >  echo "$as_me: failed program was:" >&5
5625 > sed 's/^/| /' conftest.$ac_ext >&5
5626 >
5627 >  ac_header_preproc=no
5628 > fi
5629 > rm -f conftest.err conftest.$ac_ext
5630 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5631 > echo "${ECHO_T}$ac_header_preproc" >&6
5632 >
5633 > # So?  What about this header?
5634 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5635 >  yes:no: )
5636 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5637 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5638 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5639 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5640 >    ac_header_preproc=yes
5641 >    ;;
5642 >  no:yes:* )
5643 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5644 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5645 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5646 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5647 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5648 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5649 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5650 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5651 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5652 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5653 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5654 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5655 >    (
5656 >      cat <<\_ASBOX
5657 > ## ------------------------------ ##
5658 > ## Report this to gezelter@nd.edu ##
5659 > ## ------------------------------ ##
5660 > _ASBOX
5661 >    ) |
5662 >      sed "s/^/$as_me: WARNING:     /" >&2
5663 >    ;;
5664 > esac
5665 > echo "$as_me:$LINENO: checking for $ac_header" >&5
5666 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5667 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5668 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5669 > else
5670 >  eval "$as_ac_Header=\$ac_header_preproc"
5671 > fi
5672 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5673 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5674 >
5675 > fi
5676 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
5677    cat >>confdefs.h <<_ACEOF
5678 < #define HAVE_LIBZ 1
5678 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5679   _ACEOF
5680  
5681 <  LIBS="-lz $LIBS"
5681 > fi
5682  
5683 + done
5684 +
5685 +
5686   fi
5687  
5688 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5689 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5690 <                echo "$as_me:$LINENO: result: ok" >&5
5691 < echo "${ECHO_T}ok" >&6
5692 <        else
5693 <                #
5694 <                # If either header or library was not found, revert and bomb
5695 <                #
5402 <                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5403 < echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5404 <                LDFLAGS="$ZLIB_OLD_LDFLAGS"
5405 <                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5406 <                echo "$as_me:$LINENO: result: failed" >&5
5407 < echo "${ECHO_T}failed" >&6
5408 <                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5409 < echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5410 <   { (exit 1); exit 1; }; }
5411 <        fi
5688 >
5689 >
5690 >
5691 >  if test "${ac_cv_header_iomanip+set}" = set; then
5692 >  echo "$as_me:$LINENO: checking for iomanip" >&5
5693 > echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
5694 > if test "${ac_cv_header_iomanip+set}" = set; then
5695 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5696   fi
5697 + echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
5698 + echo "${ECHO_T}$ac_cv_header_iomanip" >&6
5699 + else
5700 +  # Is the header compilable?
5701 + echo "$as_me:$LINENO: checking iomanip usability" >&5
5702 + echo $ECHO_N "checking iomanip usability... $ECHO_C" >&6
5703 + cat >conftest.$ac_ext <<_ACEOF
5704 + /* confdefs.h.  */
5705 + _ACEOF
5706 + cat confdefs.h >>conftest.$ac_ext
5707 + cat >>conftest.$ac_ext <<_ACEOF
5708 + /* end confdefs.h.  */
5709 + $ac_includes_default
5710 + #include <iomanip>
5711 + _ACEOF
5712 + rm -f conftest.$ac_objext
5713 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 +  (eval $ac_compile) 2>conftest.er1
5715 +  ac_status=$?
5716 +  grep -v '^ *+' conftest.er1 >conftest.err
5717 +  rm -f conftest.er1
5718 +  cat conftest.err >&5
5719 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 +  (exit $ac_status); } &&
5721 +         { ac_try='test -z "$ac_cxx_werror_flag"
5722 +                         || test ! -s conftest.err'
5723 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 +  (eval $ac_try) 2>&5
5725 +  ac_status=$?
5726 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 +  (exit $ac_status); }; } &&
5728 +         { ac_try='test -s conftest.$ac_objext'
5729 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 +  (eval $ac_try) 2>&5
5731 +  ac_status=$?
5732 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 +  (exit $ac_status); }; }; then
5734 +  ac_header_compiler=yes
5735 + else
5736 +  echo "$as_me: failed program was:" >&5
5737 + sed 's/^/| /' conftest.$ac_ext >&5
5738  
5739 + ac_header_compiler=no
5740 + fi
5741 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5742 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5743 + echo "${ECHO_T}$ac_header_compiler" >&6
5744 +
5745 + # Is the header present?
5746 + echo "$as_me:$LINENO: checking iomanip presence" >&5
5747 + echo $ECHO_N "checking iomanip presence... $ECHO_C" >&6
5748 + cat >conftest.$ac_ext <<_ACEOF
5749 + /* confdefs.h.  */
5750 + _ACEOF
5751 + cat confdefs.h >>conftest.$ac_ext
5752 + cat >>conftest.$ac_ext <<_ACEOF
5753 + /* end confdefs.h.  */
5754 + #include <iomanip>
5755 + _ACEOF
5756 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5757 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5758 +  ac_status=$?
5759 +  grep -v '^ *+' conftest.er1 >conftest.err
5760 +  rm -f conftest.er1
5761 +  cat conftest.err >&5
5762 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 +  (exit $ac_status); } >/dev/null; then
5764 +  if test -s conftest.err; then
5765 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
5766 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5767 +  else
5768 +    ac_cpp_err=
5769 +  fi
5770 + else
5771 +  ac_cpp_err=yes
5772 + fi
5773 + if test -z "$ac_cpp_err"; then
5774 +  ac_header_preproc=yes
5775 + else
5776 +  echo "$as_me: failed program was:" >&5
5777 + sed 's/^/| /' conftest.$ac_ext >&5
5778 +
5779 +  ac_header_preproc=no
5780 + fi
5781 + rm -f conftest.err conftest.$ac_ext
5782 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5783 + echo "${ECHO_T}$ac_header_preproc" >&6
5784 +
5785 + # So?  What about this header?
5786 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5787 +  yes:no: )
5788 +    { echo "$as_me:$LINENO: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&5
5789 + echo "$as_me: WARNING: iomanip: accepted by the compiler, rejected by the preprocessor!" >&2;}
5790 +    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the compiler's result" >&5
5791 + echo "$as_me: WARNING: iomanip: proceeding with the compiler's result" >&2;}
5792 +    ac_header_preproc=yes
5793 +    ;;
5794 +  no:yes:* )
5795 +    { echo "$as_me:$LINENO: WARNING: iomanip: present but cannot be compiled" >&5
5796 + echo "$as_me: WARNING: iomanip: present but cannot be compiled" >&2;}
5797 +    { echo "$as_me:$LINENO: WARNING: iomanip:     check for missing prerequisite headers?" >&5
5798 + echo "$as_me: WARNING: iomanip:     check for missing prerequisite headers?" >&2;}
5799 +    { echo "$as_me:$LINENO: WARNING: iomanip: see the Autoconf documentation" >&5
5800 + echo "$as_me: WARNING: iomanip: see the Autoconf documentation" >&2;}
5801 +    { echo "$as_me:$LINENO: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&5
5802 + echo "$as_me: WARNING: iomanip:     section \"Present But Cannot Be Compiled\"" >&2;}
5803 +    { echo "$as_me:$LINENO: WARNING: iomanip: proceeding with the preprocessor's result" >&5
5804 + echo "$as_me: WARNING: iomanip: proceeding with the preprocessor's result" >&2;}
5805 +    { echo "$as_me:$LINENO: WARNING: iomanip: in the future, the compiler will take precedence" >&5
5806 + echo "$as_me: WARNING: iomanip: in the future, the compiler will take precedence" >&2;}
5807 +    (
5808 +      cat <<\_ASBOX
5809 + ## ------------------------------ ##
5810 + ## Report this to gezelter@nd.edu ##
5811 + ## ------------------------------ ##
5812 + _ASBOX
5813 +    ) |
5814 +      sed "s/^/$as_me: WARNING:     /" >&2
5815 +    ;;
5816 + esac
5817 + echo "$as_me:$LINENO: checking for iomanip" >&5
5818 + echo $ECHO_N "checking for iomanip... $ECHO_C" >&6
5819 + if test "${ac_cv_header_iomanip+set}" = set; then
5820 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5821 + else
5822 +  ac_cv_header_iomanip=$ac_header_preproc
5823 + fi
5824 + echo "$as_me:$LINENO: result: $ac_cv_header_iomanip" >&5
5825 + echo "${ECHO_T}$ac_cv_header_iomanip" >&6
5826  
5827 + fi
5828 + if test $ac_cv_header_iomanip = yes; then
5829  
5830  
5831 + cat >>confdefs.h <<\_ACEOF
5832 + #define HAVE_IOMANIP 1
5833 + _ACEOF
5834  
5835  
5836 + else
5837  
5838  
5839 < for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5839 > for ac_header in iomanip.h
5840   do
5841   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5842   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 5451 | Line 5869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869    cat conftest.err >&5
5870    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871    (exit $ac_status); } &&
5872 <         { ac_try='test -z "$ac_c_werror_flag"
5872 >         { ac_try='test -z "$ac_cxx_werror_flag"
5873                           || test ! -s conftest.err'
5874    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875    (eval $ac_try) 2>&5
# Line 5495 | Line 5913 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
5913    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914    (exit $ac_status); } >/dev/null; then
5915    if test -s conftest.err; then
5916 <    ac_cpp_err=$ac_c_preproc_warn_flag
5917 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5916 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5917 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5918    else
5919      ac_cpp_err=
5920    fi
# Line 5516 | Line 5934 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
5934   echo "${ECHO_T}$ac_header_preproc" >&6
5935  
5936   # So?  What about this header?
5937 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5937 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5938    yes:no: )
5939      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5940   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 5568 | Line 5986 | done
5986   done
5987  
5988  
5989 + fi
5990  
5991  
5992  
5993  
5994 < for ac_header in strstream.h iostream.h fstream.h math.h time.h
5994 > for ac_header in cmath
5995   do
5996   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5997   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 5605 | Line 6024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6024    cat conftest.err >&5
6025    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026    (exit $ac_status); } &&
6027 <         { ac_try='test -z "$ac_c_werror_flag"
6027 >         { ac_try='test -z "$ac_cxx_werror_flag"
6028                           || test ! -s conftest.err'
6029    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030    (eval $ac_try) 2>&5
# Line 5649 | Line 6068 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
6068    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069    (exit $ac_status); } >/dev/null; then
6070    if test -s conftest.err; then
6071 <    ac_cpp_err=$ac_c_preproc_warn_flag
6072 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6071 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
6072 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6073    else
6074      ac_cpp_err=
6075    fi
# Line 5670 | Line 6089 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
6089   echo "${ECHO_T}$ac_header_preproc" >&6
6090  
6091   # So?  What about this header?
6092 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6092 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6093    yes:no: )
6094      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6095   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 5721 | Line 6140 | ac_ext=cc
6140  
6141   done
6142  
6143 < ac_ext=cc
6143 >
6144 >
6145 >
6146 >  echo "$as_me:$LINENO: checking for C++ iostream in namespace std" >&5
6147 > echo $ECHO_N "checking for C++ iostream in namespace std... $ECHO_C" >&6
6148 > if test "${ac_cv_cxx_have_std_iostream+set}" = set; then
6149 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6150 > else
6151 >
6152 >      ac_cv_cxx_have_std_iostream=no
6153 >      ac_cv_cxx_need_use_std_iostream=no
6154 >      if test "x$ac_cv_cxx_namespaces" = xyes; then
6155 >
6156 >
6157 >        ac_ext=cc
6158   ac_cpp='$CXXCPP $CPPFLAGS'
6159   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6160   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6161   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6162  
6163 < ac_ext=cc
6163 >        cat >conftest.$ac_ext <<_ACEOF
6164 > /* confdefs.h.  */
6165 > _ACEOF
6166 > cat confdefs.h >>conftest.$ac_ext
6167 > cat >>conftest.$ac_ext <<_ACEOF
6168 > /* end confdefs.h.  */
6169 >
6170 > #ifdef HAVE_IOSTREAM
6171 > #include <iostream>
6172 > #else
6173 > #include <iostream.h>
6174 > #endif
6175 >
6176 > int
6177 > main ()
6178 > {
6179 > std::cout<<"Hello World"<<std::endl;return 0;
6180 >  ;
6181 >  return 0;
6182 > }
6183 > _ACEOF
6184 > rm -f conftest.$ac_objext
6185 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6186 >  (eval $ac_compile) 2>conftest.er1
6187 >  ac_status=$?
6188 >  grep -v '^ *+' conftest.er1 >conftest.err
6189 >  rm -f conftest.er1
6190 >  cat conftest.err >&5
6191 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 >  (exit $ac_status); } &&
6193 >         { ac_try='test -z "$ac_cxx_werror_flag"
6194 >                         || test ! -s conftest.err'
6195 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 >  (eval $ac_try) 2>&5
6197 >  ac_status=$?
6198 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 >  (exit $ac_status); }; } &&
6200 >         { ac_try='test -s conftest.$ac_objext'
6201 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 >  (eval $ac_try) 2>&5
6203 >  ac_status=$?
6204 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 >  (exit $ac_status); }; }; then
6206 >  ac_cv_cxx_have_std_iostream=yes
6207 > else
6208 >  echo "$as_me: failed program was:" >&5
6209 > sed 's/^/| /' conftest.$ac_ext >&5
6210 >
6211 > fi
6212 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6213 >        cat >conftest.$ac_ext <<_ACEOF
6214 > /* confdefs.h.  */
6215 > _ACEOF
6216 > cat confdefs.h >>conftest.$ac_ext
6217 > cat >>conftest.$ac_ext <<_ACEOF
6218 > /* end confdefs.h.  */
6219 >
6220 > #define __USE_STD_IOSTREAM 1
6221 > #ifdef HAVE_IOSTREAM
6222 > #include <iostream>
6223 > #else
6224 > #include <iostream.h>
6225 > #endif
6226 >
6227 > int
6228 > main ()
6229 > {
6230 > std::cout<<"Hello World"<<std::endl;return 0;
6231 >  ;
6232 >  return 0;
6233 > }
6234 > _ACEOF
6235 > rm -f conftest.$ac_objext
6236 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6237 >  (eval $ac_compile) 2>conftest.er1
6238 >  ac_status=$?
6239 >  grep -v '^ *+' conftest.er1 >conftest.err
6240 >  rm -f conftest.er1
6241 >  cat conftest.err >&5
6242 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 >  (exit $ac_status); } &&
6244 >         { ac_try='test -z "$ac_cxx_werror_flag"
6245 >                         || test ! -s conftest.err'
6246 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 >  (eval $ac_try) 2>&5
6248 >  ac_status=$?
6249 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 >  (exit $ac_status); }; } &&
6251 >         { ac_try='test -s conftest.$ac_objext'
6252 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 >  (eval $ac_try) 2>&5
6254 >  ac_status=$?
6255 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 >  (exit $ac_status); }; }; then
6257 >  ac_cv_cxx_have_std_iostream=yes;ac_cv_cxx_need_use_std_iostream=yes
6258 > else
6259 >  echo "$as_me: failed program was:" >&5
6260 > sed 's/^/| /' conftest.$ac_ext >&5
6261 >
6262 > fi
6263 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6264 >        ac_ext=cc
6265   ac_cpp='$CXXCPP $CPPFLAGS'
6266   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6269 < echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6270 < echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6271 < if test -z "$CXXCPP"; then
6272 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6269 >
6270 >      fi
6271 >
6272 > fi
6273 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iostream" >&5
6274 > echo "${ECHO_T}$ac_cv_cxx_have_std_iostream" >&6
6275 >  if test "$ac_cv_cxx_have_std_iostream" = yes; then
6276 >
6277 > cat >>confdefs.h <<\_ACEOF
6278 > #define HAVE_STD_IOSTREAM 1
6279 > _ACEOF
6280 >
6281 >  fi
6282 >  if test "$ac_cv_cxx_need_use_std_iostream" = yes; then
6283 >
6284 > cat >>confdefs.h <<\_ACEOF
6285 > #define __USE_STD_IOSTREAM 1
6286 > _ACEOF
6287 >
6288 >  fi
6289 >
6290 >
6291 >
6292 >
6293 >  echo "$as_me:$LINENO: checking for C++ Standard Template Library in namespace std." >&5
6294 > echo $ECHO_N "checking for C++ Standard Template Library in namespace std.... $ECHO_C" >&6
6295 > if test "${ac_cv_cxx_have_std_stl+set}" = set; then
6296    echo $ECHO_N "(cached) $ECHO_C" >&6
6297   else
6298 <      # Double quotes because CXXCPP needs to be expanded
6299 <    for CXXCPP in "$CXX -E" "/lib/cpp"
6300 <    do
6301 <      ac_preproc_ok=false
6302 < for ac_cxx_preproc_warn_flag in '' yes
6303 < do
6304 <  # Use a header file that comes with gcc, so configuring glibc
6305 <  # with a fresh cross-compiler works.
6306 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6307 <  # <limits.h> exists even on freestanding compilers.
6308 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6309 <  # not just through cpp. "Syntax error" is here to catch this case.
5753 <  cat >conftest.$ac_ext <<_ACEOF
6298 >
6299 >      ac_cv_cxx_have_std_stl=no
6300 >      if test "x$ac_cv_cxx_namespaces" = xyes; then
6301 >
6302 >
6303 >        ac_ext=cc
6304 > ac_cpp='$CXXCPP $CPPFLAGS'
6305 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6306 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6307 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6308 >
6309 >        cat >conftest.$ac_ext <<_ACEOF
6310   /* confdefs.h.  */
6311   _ACEOF
6312   cat confdefs.h >>conftest.$ac_ext
6313   cat >>conftest.$ac_ext <<_ACEOF
6314   /* end confdefs.h.  */
6315 < #ifdef __STDC__
6316 < # include <limits.h>
6317 < #else
6318 < # include <assert.h>
6319 < #endif
6320 <                     Syntax error
6315 > #include <list>
6316 >
6317 > int
6318 > main ()
6319 > {
6320 > std::list<int> foo;return 0;
6321 >  ;
6322 >  return 0;
6323 > }
6324   _ACEOF
6325 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6326 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6327 <  ac_status=$?
6328 <  grep -v '^ *+' conftest.er1 >conftest.err
6329 <  rm -f conftest.er1
6330 <  cat conftest.err >&5
6331 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 <  (exit $ac_status); } >/dev/null; then
6333 <  if test -s conftest.err; then
6334 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
6335 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6336 <  else
6337 <    ac_cpp_err=
6325 > rm -f conftest.$ac_objext
6326 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6327 >  (eval $ac_compile) 2>conftest.er1
6328 >  ac_status=$?
6329 >  grep -v '^ *+' conftest.er1 >conftest.err
6330 >  rm -f conftest.er1
6331 >  cat conftest.err >&5
6332 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 >  (exit $ac_status); } &&
6334 >         { ac_try='test -z "$ac_cxx_werror_flag"
6335 >                         || test ! -s conftest.err'
6336 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 >  (eval $ac_try) 2>&5
6338 >  ac_status=$?
6339 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6340 >  (exit $ac_status); }; } &&
6341 >         { ac_try='test -s conftest.$ac_objext'
6342 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6343 >  (eval $ac_try) 2>&5
6344 >  ac_status=$?
6345 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 >  (exit $ac_status); }; }; then
6347 >  ac_cv_cxx_have_std_stl=yes
6348 > else
6349 >  echo "$as_me: failed program was:" >&5
6350 > sed 's/^/| /' conftest.$ac_ext >&5
6351 >
6352 > fi
6353 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6354 >        ac_ext=cc
6355 > ac_cpp='$CXXCPP $CPPFLAGS'
6356 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6357 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6359 >
6360 >      fi
6361 >
6362 > fi
6363 > echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_stl" >&5
6364 > echo "${ECHO_T}$ac_cv_cxx_have_std_stl" >&6
6365 >  if test "$ac_cv_cxx_have_std_stl" = yes; then
6366 >
6367 > cat >>confdefs.h <<\_ACEOF
6368 > #define HAVE_STD_STL 1
6369 > _ACEOF
6370 >
6371    fi
6372 +
6373 +
6374 +
6375 +  echo "$as_me:$LINENO: checking for fstream::attach()" >&5
6376 + echo $ECHO_N "checking for fstream::attach()... $ECHO_C" >&6
6377 + if test "${ac_cv_cxx_have_fstream_attach+set}" = set; then
6378 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6379   else
5781  ac_cpp_err=yes
5782 fi
5783 if test -z "$ac_cpp_err"; then
5784  :
5785 else
5786  echo "$as_me: failed program was:" >&5
5787 sed 's/^/| /' conftest.$ac_ext >&5
6380  
6381 <  # Broken: fails on valid input.
5790 < continue
5791 < fi
5792 < rm -f conftest.err conftest.$ac_ext
6381 >    ac_cv_cxx_have_fstream_attach=no
6382  
6383 <  # OK, works on sane cases.  Now check whether non-existent headers
6384 <  # can be detected and how.
6385 <  cat >conftest.$ac_ext <<_ACEOF
6383 >
6384 >    ac_ext=cc
6385 > ac_cpp='$CXXCPP $CPPFLAGS'
6386 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6387 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6388 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6389 >
6390 >    cat >conftest.$ac_ext <<_ACEOF
6391   /* confdefs.h.  */
6392   _ACEOF
6393   cat confdefs.h >>conftest.$ac_ext
6394   cat >>conftest.$ac_ext <<_ACEOF
6395   /* end confdefs.h.  */
6396 < #include <ac_nonexistent.h>
6396 >
6397 > #ifdef HAVE_IOSTREAM
6398 > #include <fstream>
6399 > #else
6400 > #include <fstream.h>
6401 > #endif
6402 > #ifdef HAVE_STD_IOSTREAM
6403 > using namespace std;
6404 > #endif
6405 >
6406 > int
6407 > main ()
6408 > {
6409 > int fd=0;ofstream s;s.attach(fd);
6410 >  ;
6411 >  return 0;
6412 > }
6413   _ACEOF
6414 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6415 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6414 > rm -f conftest.$ac_objext
6415 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6416 >  (eval $ac_compile) 2>conftest.er1
6417    ac_status=$?
6418    grep -v '^ *+' conftest.er1 >conftest.err
6419    rm -f conftest.er1
6420    cat conftest.err >&5
6421    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 <  (exit $ac_status); } >/dev/null; then
6423 <  if test -s conftest.err; then
6424 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
6425 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6426 <  else
6427 <    ac_cpp_err=
6428 <  fi
6422 >  (exit $ac_status); } &&
6423 >         { ac_try='test -z "$ac_cxx_werror_flag"
6424 >                         || test ! -s conftest.err'
6425 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426 >  (eval $ac_try) 2>&5
6427 >  ac_status=$?
6428 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 >  (exit $ac_status); }; } &&
6430 >         { ac_try='test -s conftest.$ac_objext'
6431 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6432 >  (eval $ac_try) 2>&5
6433 >  ac_status=$?
6434 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 >  (exit $ac_status); }; }; then
6436 >  ac_cv_cxx_have_fstream_attach=yes
6437   else
5819  ac_cpp_err=yes
5820 fi
5821 if test -z "$ac_cpp_err"; then
5822  # Broken: success on invalid input.
5823 continue
5824 else
6438    echo "$as_me: failed program was:" >&5
6439   sed 's/^/| /' conftest.$ac_ext >&5
6440  
5828  # Passes both tests.
5829 ac_preproc_ok=:
5830 break
6441   fi
6442 < rm -f conftest.err conftest.$ac_ext
6442 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6443 >    ac_ext=cc
6444 > ac_cpp='$CXXCPP $CPPFLAGS'
6445 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6446 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6447 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6448  
6449 < done
5835 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5836 < rm -f conftest.err conftest.$ac_ext
5837 < if $ac_preproc_ok; then
5838 <  break
6449 >
6450   fi
6451 + echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_attach" >&5
6452 + echo "${ECHO_T}$ac_cv_cxx_have_fstream_attach" >&6
6453 +  if test "$ac_cv_cxx_have_fstream_attach" = yes; then
6454  
6455 <    done
6456 <    ac_cv_prog_CXXCPP=$CXXCPP
6455 > cat >>confdefs.h <<\_ACEOF
6456 > #define HAVE_FSTREAM_ATTACH 1
6457 > _ACEOF
6458  
6459 < fi
6460 <  CXXCPP=$ac_cv_prog_CXXCPP
6459 >  fi
6460 >
6461 >
6462 >
6463 >  echo "$as_me:$LINENO: checking for fstream::open()" >&5
6464 > echo $ECHO_N "checking for fstream::open()... $ECHO_C" >&6
6465 > if test "${ac_cv_cxx_have_fstream_open+set}" = set; then
6466 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6467   else
6468 <  ac_cv_prog_CXXCPP=$CXXCPP
6469 < fi
6470 < echo "$as_me:$LINENO: result: $CXXCPP" >&5
6471 < echo "${ECHO_T}$CXXCPP" >&6
6472 < ac_preproc_ok=false
6473 < for ac_cxx_preproc_warn_flag in '' yes
6474 < do
6475 <  # Use a header file that comes with gcc, so configuring glibc
6476 <  # with a fresh cross-compiler works.
6477 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6478 <  # <limits.h> exists even on freestanding compilers.
6479 <  # On the NeXT, cc -E runs the code through the compiler's parser,
6480 <  # not just through cpp. "Syntax error" is here to catch this case.
5860 <  cat >conftest.$ac_ext <<_ACEOF
6468 >
6469 >    ac_cv_cxx_have_fstream_open=no
6470 >    ac_cv_cxx_fstream_open_prot=no
6471 >
6472 >
6473 >    ac_ext=cc
6474 > ac_cpp='$CXXCPP $CPPFLAGS'
6475 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6476 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6477 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6478 >
6479 >    # Try with 2 parameters
6480 >    cat >conftest.$ac_ext <<_ACEOF
6481   /* confdefs.h.  */
6482   _ACEOF
6483   cat confdefs.h >>conftest.$ac_ext
6484   cat >>conftest.$ac_ext <<_ACEOF
6485   /* end confdefs.h.  */
6486 < #ifdef __STDC__
6487 < # include <limits.h>
6486 >
6487 > #ifdef HAVE_IOSTREAM
6488 > #include <fstream>
6489   #else
6490 < # include <assert.h>
6490 > #include <fstream.h>
6491   #endif
6492 <                     Syntax error
6492 > #ifdef HAVE_STD_IOSTREAM
6493 > using namespace std;
6494 > #endif
6495 >
6496 > int
6497 > main ()
6498 > {
6499 > ofstream s;s.open("conftest.txt",ios::out|ios::trunc);
6500 >  ;
6501 >  return 0;
6502 > }
6503   _ACEOF
6504 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6505 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6504 > rm -f conftest.$ac_objext
6505 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506 >  (eval $ac_compile) 2>conftest.er1
6507    ac_status=$?
6508    grep -v '^ *+' conftest.er1 >conftest.err
6509    rm -f conftest.er1
6510    cat conftest.err >&5
6511    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 <  (exit $ac_status); } >/dev/null; then
6513 <  if test -s conftest.err; then
6514 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
6515 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6516 <  else
6517 <    ac_cpp_err=
6518 <  fi
6512 >  (exit $ac_status); } &&
6513 >         { ac_try='test -z "$ac_cxx_werror_flag"
6514 >                         || test ! -s conftest.err'
6515 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 >  (eval $ac_try) 2>&5
6517 >  ac_status=$?
6518 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 >  (exit $ac_status); }; } &&
6520 >         { ac_try='test -s conftest.$ac_objext'
6521 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6522 >  (eval $ac_try) 2>&5
6523 >  ac_status=$?
6524 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 >  (exit $ac_status); }; }; then
6526 >  ac_cv_cxx_have_fstream_open=yes
6527   else
5888  ac_cpp_err=yes
5889 fi
5890 if test -z "$ac_cpp_err"; then
5891  :
5892 else
6528    echo "$as_me: failed program was:" >&5
6529   sed 's/^/| /' conftest.$ac_ext >&5
6530  
5896  # Broken: fails on valid input.
5897 continue
6531   fi
6532 < rm -f conftest.err conftest.$ac_ext
6533 <
6534 <  # OK, works on sane cases.  Now check whether non-existent headers
5902 <  # can be detected and how.
5903 <  cat >conftest.$ac_ext <<_ACEOF
6532 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533 >    # Try with mode parameter
6534 >    cat >conftest.$ac_ext <<_ACEOF
6535   /* confdefs.h.  */
6536   _ACEOF
6537   cat confdefs.h >>conftest.$ac_ext
6538   cat >>conftest.$ac_ext <<_ACEOF
6539   /* end confdefs.h.  */
6540 < #include <ac_nonexistent.h>
6540 >
6541 > #ifdef HAVE_IOSTREAM
6542 > #include <fstream>
6543 > #else
6544 > #include <fstream.h>
6545 > #endif
6546 > #ifdef HAVE_STD_IOSTREAM
6547 > using namespace std;
6548 > #endif
6549 >
6550 > int
6551 > main ()
6552 > {
6553 > ofstream s;s.open("conftest.txt",ios::out|ios::trunc,0666);
6554 >  ;
6555 >  return 0;
6556 > }
6557   _ACEOF
6558 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6559 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6558 > rm -f conftest.$ac_objext
6559 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6560 >  (eval $ac_compile) 2>conftest.er1
6561    ac_status=$?
6562    grep -v '^ *+' conftest.er1 >conftest.err
6563    rm -f conftest.er1
6564    cat conftest.err >&5
6565    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 <  (exit $ac_status); } >/dev/null; then
6567 <  if test -s conftest.err; then
6568 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
6569 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6570 <  else
6571 <    ac_cpp_err=
6572 <  fi
6573 < else
6574 <  ac_cpp_err=yes
6575 < fi
6576 < if test -z "$ac_cpp_err"; then
6577 <  # Broken: success on invalid input.
6578 < continue
6566 >  (exit $ac_status); } &&
6567 >         { ac_try='test -z "$ac_cxx_werror_flag"
6568 >                         || test ! -s conftest.err'
6569 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6570 >  (eval $ac_try) 2>&5
6571 >  ac_status=$?
6572 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 >  (exit $ac_status); }; } &&
6574 >         { ac_try='test -s conftest.$ac_objext'
6575 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6576 >  (eval $ac_try) 2>&5
6577 >  ac_status=$?
6578 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 >  (exit $ac_status); }; }; then
6580 >  ac_cv_cxx_fstream_open_prot=yes
6581   else
6582    echo "$as_me: failed program was:" >&5
6583   sed 's/^/| /' conftest.$ac_ext >&5
6584  
5935  # Passes both tests.
5936 ac_preproc_ok=:
5937 break
6585   fi
6586 < rm -f conftest.err conftest.$ac_ext
6587 <
5941 < done
5942 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943 < rm -f conftest.err conftest.$ac_ext
5944 < if $ac_preproc_ok; then
5945 <  :
5946 < else
5947 <  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 < See \`config.log' for more details." >&5
5949 < echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5950 < See \`config.log' for more details." >&2;}
5951 <   { (exit 1); exit 1; }; }
5952 < fi
5953 <
5954 < ac_ext=cc
6586 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6587 >    ac_ext=cc
6588   ac_cpp='$CXXCPP $CPPFLAGS'
6589   ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590   ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591   ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6592  
6593  
6594 + fi
6595 + echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fstream_open" >&5
6596 + echo "${ECHO_T}$ac_cv_cxx_have_fstream_open" >&6
6597 +  if test "$ac_cv_cxx_have_fstream_open" = yes; then
6598  
6599 + cat >>confdefs.h <<\_ACEOF
6600 + #define HAVE_FSTREAM_OPEN 1
6601 + _ACEOF
6602  
6603 +  fi
6604 +  if test "$ac_cv_cxx_fstream_open_prot" = yes; then
6605  
6606 + cat >>confdefs.h <<\_ACEOF
6607 + #define FSTREAM_OPEN_PROT 1
6608 + _ACEOF
6609  
6610 +  fi
6611  
6612 < for ac_header in ctype.h iostream fstream sstream strstream
6613 < do
6614 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6615 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6616 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
6617 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5972 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6612 >
6613 >
6614 >
6615 > echo "$as_me:$LINENO: checking for asin in -lm" >&5
6616 > echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
6617 > if test "${ac_cv_lib_m_asin+set}" = set; then
6618    echo $ECHO_N "(cached) $ECHO_C" >&6
5974 fi
5975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5976 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6619   else
6620 <  # Is the header compilable?
6621 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
5980 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6620 >  ac_check_lib_save_LIBS=$LIBS
6621 > LIBS="-lm  $LIBS"
6622   cat >conftest.$ac_ext <<_ACEOF
6623   /* confdefs.h.  */
6624   _ACEOF
6625   cat confdefs.h >>conftest.$ac_ext
6626   cat >>conftest.$ac_ext <<_ACEOF
6627   /* end confdefs.h.  */
6628 < $ac_includes_default
6629 < #include <$ac_header>
6628 >
6629 > /* Override any gcc2 internal prototype to avoid an error.  */
6630 > #ifdef __cplusplus
6631 > extern "C"
6632 > #endif
6633 > /* We use char because int might match the return type of a gcc2
6634 >   builtin and then its argument prototype would still apply.  */
6635 > char asin ();
6636 > int
6637 > main ()
6638 > {
6639 > asin ();
6640 >  ;
6641 >  return 0;
6642 > }
6643   _ACEOF
6644 < rm -f conftest.$ac_objext
6645 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646 <  (eval $ac_compile) 2>conftest.er1
6644 > rm -f conftest.$ac_objext conftest$ac_exeext
6645 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6646 >  (eval $ac_link) 2>conftest.er1
6647    ac_status=$?
6648    grep -v '^ *+' conftest.er1 >conftest.err
6649    rm -f conftest.er1
# Line 6003 | Line 6657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657    ac_status=$?
6658    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659    (exit $ac_status); }; } &&
6660 <         { ac_try='test -s conftest.$ac_objext'
6660 >         { ac_try='test -s conftest$ac_exeext'
6661    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662    (eval $ac_try) 2>&5
6663    ac_status=$?
6664    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665    (exit $ac_status); }; }; then
6666 <  ac_header_compiler=yes
6666 >  ac_cv_lib_m_asin=yes
6667   else
6668    echo "$as_me: failed program was:" >&5
6669   sed 's/^/| /' conftest.$ac_ext >&5
6670  
6671 < ac_header_compiler=no
6671 > ac_cv_lib_m_asin=no
6672   fi
6673 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6674 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6675 < echo "${ECHO_T}$ac_header_compiler" >&6
6676 <
6677 < # Is the header present?
6678 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
6679 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6680 < cat >conftest.$ac_ext <<_ACEOF
6681 < /* confdefs.h.  */
6673 > rm -f conftest.err conftest.$ac_objext \
6674 >      conftest$ac_exeext conftest.$ac_ext
6675 > LIBS=$ac_check_lib_save_LIBS
6676 > fi
6677 > echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
6678 > echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
6679 > if test $ac_cv_lib_m_asin = yes; then
6680 >  cat >>confdefs.h <<_ACEOF
6681 > #define HAVE_LIBM 1
6682   _ACEOF
6683 < cat confdefs.h >>conftest.$ac_ext
6684 < cat >>conftest.$ac_ext <<_ACEOF
6685 < /* end confdefs.h.  */
6032 < #include <$ac_header>
6033 < _ACEOF
6034 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6035 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6036 <  ac_status=$?
6037 <  grep -v '^ *+' conftest.er1 >conftest.err
6038 <  rm -f conftest.er1
6039 <  cat conftest.err >&5
6040 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 <  (exit $ac_status); } >/dev/null; then
6042 <  if test -s conftest.err; then
6043 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
6044 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6045 <  else
6046 <    ac_cpp_err=
6047 <  fi
6683 >
6684 >  LIBS="-lm $LIBS"
6685 >
6686   else
6687 <  ac_cpp_err=yes
6687 >  exit
6688   fi
6051 if test -z "$ac_cpp_err"; then
6052  ac_header_preproc=yes
6053 else
6054  echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6689  
6057  ac_header_preproc=no
6058 fi
6059 rm -f conftest.err conftest.$ac_ext
6060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6061 echo "${ECHO_T}$ac_header_preproc" >&6
6690  
6691 < # So?  What about this header?
6692 < case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6693 <  yes:no: )
6694 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6695 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6696 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6697 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6698 <    ac_header_preproc=yes
6699 <    ;;
6700 <  no:yes:* )
6701 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6702 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6703 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6704 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6705 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6706 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6707 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6708 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6709 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6710 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6711 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6712 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6713 <    (
6714 <      cat <<\_ASBOX
6715 < ## ------------------------------ ##
6716 < ## Report this to gezelter@nd.edu ##
6089 < ## ------------------------------ ##
6090 < _ASBOX
6091 <    ) |
6092 <      sed "s/^/$as_me: WARNING:     /" >&2
6093 <    ;;
6094 < esac
6095 < echo "$as_me:$LINENO: checking for $ac_header" >&5
6096 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6097 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6098 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6691 > ac_ext=c
6692 > ac_cpp='$CPP $CPPFLAGS'
6693 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6694 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6695 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6696 >
6697 >
6698 > #
6699 > # Handle user hints
6700 > #
6701 > echo "$as_me:$LINENO: checking if zlib is wanted" >&5
6702 > echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
6703 >
6704 > # Check whether --with-zlib or --without-zlib was given.
6705 > if test "${with_zlib+set}" = set; then
6706 >  withval="$with_zlib"
6707 >  if test "$withval" != no ; then
6708 >  echo "$as_me:$LINENO: result: yes" >&5
6709 > echo "${ECHO_T}yes" >&6
6710 >  if test -d "$withval"
6711 >  then
6712 >    ZLIB_HOME="$withval"
6713 >  else
6714 >    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
6715 > echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
6716 >  fi
6717   else
6718 <  eval "$as_ac_Header=\$ac_header_preproc"
6718 >  echo "$as_me:$LINENO: result: no" >&5
6719 > echo "${ECHO_T}no" >&6
6720   fi
6721 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6103 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6721 > fi;
6722  
6723 + ZLIB_HOME=/usr/local
6724 + if test ! -f "${ZLIB_HOME}/include/zlib.h"
6725 + then
6726 +        ZLIB_HOME=/usr
6727   fi
6106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6107  cat >>confdefs.h <<_ACEOF
6108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF
6728  
6729 < fi
6729 > #
6730 > # Locate zlib, if wanted
6731 > #
6732 > if test -n "${ZLIB_HOME}"
6733 > then
6734 >        ZLIB_OLD_LDFLAGS=$LDFLAGS
6735 >        ZLIB_OLD_CPPFLAGS=$LDFLAGS
6736 >        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
6737 >        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
6738  
6113 done
6739  
6740 < ac_ext=c
6740 >        ac_ext=c
6741   ac_cpp='$CPP $CPPFLAGS'
6742   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743   ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744   ac_compiler_gnu=$ac_cv_c_compiler_gnu
6745  
6746 +        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6747 + echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
6748 + if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6749 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6750 + else
6751 +  ac_check_lib_save_LIBS=$LIBS
6752 + LIBS="-lz  $LIBS"
6753 + cat >conftest.$ac_ext <<_ACEOF
6754 + /* confdefs.h.  */
6755 + _ACEOF
6756 + cat confdefs.h >>conftest.$ac_ext
6757 + cat >>conftest.$ac_ext <<_ACEOF
6758 + /* end confdefs.h.  */
6759  
6760 + /* Override any gcc2 internal prototype to avoid an error.  */
6761 + #ifdef __cplusplus
6762 + extern "C"
6763 + #endif
6764 + /* We use char because int might match the return type of a gcc2
6765 +   builtin and then its argument prototype would still apply.  */
6766 + char inflateEnd ();
6767 + int
6768 + main ()
6769 + {
6770 + inflateEnd ();
6771 +  ;
6772 +  return 0;
6773 + }
6774 + _ACEOF
6775 + rm -f conftest.$ac_objext conftest$ac_exeext
6776 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 +  (eval $ac_link) 2>conftest.er1
6778 +  ac_status=$?
6779 +  grep -v '^ *+' conftest.er1 >conftest.err
6780 +  rm -f conftest.er1
6781 +  cat conftest.err >&5
6782 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 +  (exit $ac_status); } &&
6784 +         { ac_try='test -z "$ac_c_werror_flag"
6785 +                         || test ! -s conftest.err'
6786 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 +  (eval $ac_try) 2>&5
6788 +  ac_status=$?
6789 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790 +  (exit $ac_status); }; } &&
6791 +         { ac_try='test -s conftest$ac_exeext'
6792 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 +  (eval $ac_try) 2>&5
6794 +  ac_status=$?
6795 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 +  (exit $ac_status); }; }; then
6797 +  ac_cv_lib_z_inflateEnd=yes
6798 + else
6799 +  echo "$as_me: failed program was:" >&5
6800 + sed 's/^/| /' conftest.$ac_ext >&5
6801  
6802 + ac_cv_lib_z_inflateEnd=no
6803 + fi
6804 + rm -f conftest.err conftest.$ac_objext \
6805 +      conftest$ac_exeext conftest.$ac_ext
6806 + LIBS=$ac_check_lib_save_LIBS
6807 + fi
6808 + echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
6809 + echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
6810 + if test $ac_cv_lib_z_inflateEnd = yes; then
6811 +  zlib_cv_libz=yes
6812 + else
6813 +  zlib_cv_libz=no
6814 + fi
6815  
6816 < for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6817 < do
6818 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6819 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6128 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
6129 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6130 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6816 >        if test "${ac_cv_header_zlib_h+set}" = set; then
6817 >  echo "$as_me:$LINENO: checking for zlib.h" >&5
6818 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
6819 > if test "${ac_cv_header_zlib_h+set}" = set; then
6820    echo $ECHO_N "(cached) $ECHO_C" >&6
6821   fi
6822 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6823 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6822 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6823 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
6824   else
6825    # Is the header compilable?
6826 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
6827 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6826 > echo "$as_me:$LINENO: checking zlib.h usability" >&5
6827 > echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
6828   cat >conftest.$ac_ext <<_ACEOF
6829   /* confdefs.h.  */
6830   _ACEOF
# Line 6143 | Line 6832 | $ac_includes_default
6832   cat >>conftest.$ac_ext <<_ACEOF
6833   /* end confdefs.h.  */
6834   $ac_includes_default
6835 < #include <$ac_header>
6835 > #include <zlib.h>
6836   _ACEOF
6837   rm -f conftest.$ac_objext
6838   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 6179 | Line 6868 | echo "$as_me:$LINENO: checking $ac_header presence" >&
6868   echo "${ECHO_T}$ac_header_compiler" >&6
6869  
6870   # Is the header present?
6871 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
6872 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6871 > echo "$as_me:$LINENO: checking zlib.h presence" >&5
6872 > echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
6873   cat >conftest.$ac_ext <<_ACEOF
6874   /* confdefs.h.  */
6875   _ACEOF
6876   cat confdefs.h >>conftest.$ac_ext
6877   cat >>conftest.$ac_ext <<_ACEOF
6878   /* end confdefs.h.  */
6879 < #include <$ac_header>
6879 > #include <zlib.h>
6880   _ACEOF
6881   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6882    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 6221 | Line 6910 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
6910   # So?  What about this header?
6911   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6912    yes:no: )
6913 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6914 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6915 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6916 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6913 >    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
6914 > echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6915 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
6916 > echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
6917      ac_header_preproc=yes
6918      ;;
6919    no:yes:* )
6920 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6921 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6922 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6923 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6924 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6925 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6926 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6927 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6928 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6929 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6930 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6931 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6920 >    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
6921 > echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
6922 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
6923 > echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
6924 >    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
6925 > echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
6926 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
6927 > echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
6928 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
6929 > echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
6930 >    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
6931 > echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
6932      (
6933        cat <<\_ASBOX
6934   ## ------------------------------ ##
# Line 6250 | Line 6939 | echo "$as_me:$LINENO: checking for $ac_header" >&5
6939        sed "s/^/$as_me: WARNING:     /" >&2
6940      ;;
6941   esac
6942 < echo "$as_me:$LINENO: checking for $ac_header" >&5
6943 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6944 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
6942 > echo "$as_me:$LINENO: checking for zlib.h" >&5
6943 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
6944 > if test "${ac_cv_header_zlib_h+set}" = set; then
6945    echo $ECHO_N "(cached) $ECHO_C" >&6
6946   else
6947 <  eval "$as_ac_Header=\$ac_header_preproc"
6947 >  ac_cv_header_zlib_h=$ac_header_preproc
6948   fi
6949 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6950 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6949 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
6950 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
6951  
6952   fi
6953 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
6953 > if test $ac_cv_header_zlib_h = yes; then
6954 >  zlib_cv_zlib_h=yes
6955 > else
6956 >  zlib_cv_zlib_h=no
6957 > fi
6958 >
6959 >
6960 >        ac_ext=c
6961 > ac_cpp='$CPP $CPPFLAGS'
6962 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6963 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6964 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6965 >
6966 >        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
6967 >        then
6968 >                #
6969 >                # If both library and header were found, use them
6970 >                #
6971 >
6972 > echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
6973 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
6974 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
6975 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6976 > else
6977 >  ac_check_lib_save_LIBS=$LIBS
6978 > LIBS="-lz  $LIBS"
6979 > cat >conftest.$ac_ext <<_ACEOF
6980 > /* confdefs.h.  */
6981 > _ACEOF
6982 > cat confdefs.h >>conftest.$ac_ext
6983 > cat >>conftest.$ac_ext <<_ACEOF
6984 > /* end confdefs.h.  */
6985 >
6986 > /* Override any gcc2 internal prototype to avoid an error.  */
6987 > #ifdef __cplusplus
6988 > extern "C"
6989 > #endif
6990 > /* We use char because int might match the return type of a gcc2
6991 >   builtin and then its argument prototype would still apply.  */
6992 > char inflateEnd ();
6993 > int
6994 > main ()
6995 > {
6996 > inflateEnd ();
6997 >  ;
6998 >  return 0;
6999 > }
7000 > _ACEOF
7001 > rm -f conftest.$ac_objext conftest$ac_exeext
7002 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7003 >  (eval $ac_link) 2>conftest.er1
7004 >  ac_status=$?
7005 >  grep -v '^ *+' conftest.er1 >conftest.err
7006 >  rm -f conftest.er1
7007 >  cat conftest.err >&5
7008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 >  (exit $ac_status); } &&
7010 >         { ac_try='test -z "$ac_c_werror_flag"
7011 >                         || test ! -s conftest.err'
7012 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7013 >  (eval $ac_try) 2>&5
7014 >  ac_status=$?
7015 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 >  (exit $ac_status); }; } &&
7017 >         { ac_try='test -s conftest$ac_exeext'
7018 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019 >  (eval $ac_try) 2>&5
7020 >  ac_status=$?
7021 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 >  (exit $ac_status); }; }; then
7023 >  ac_cv_lib_z_inflateEnd=yes
7024 > else
7025 >  echo "$as_me: failed program was:" >&5
7026 > sed 's/^/| /' conftest.$ac_ext >&5
7027 >
7028 > ac_cv_lib_z_inflateEnd=no
7029 > fi
7030 > rm -f conftest.err conftest.$ac_objext \
7031 >      conftest$ac_exeext conftest.$ac_ext
7032 > LIBS=$ac_check_lib_save_LIBS
7033 > fi
7034 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
7035 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
7036 > if test $ac_cv_lib_z_inflateEnd = yes; then
7037    cat >>confdefs.h <<_ACEOF
7038 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7038 > #define HAVE_LIBZ 1
7039   _ACEOF
7040  
7041 +  LIBS="-lz $LIBS"
7042 +
7043   fi
7044  
7045 < done
7045 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
7046 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
7047 >                echo "$as_me:$LINENO: result: ok" >&5
7048 > echo "${ECHO_T}ok" >&6
7049 >        else
7050 >                #
7051 >                # If either header or library was not found, revert and bomb
7052 >                #
7053 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
7054 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
7055 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
7056 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
7057 >                echo "$as_me:$LINENO: result: failed" >&5
7058 > echo "${ECHO_T}failed" >&6
7059 >                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
7060 > echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
7061 >   { (exit 1); exit 1; }; }
7062 >        fi
7063 > fi
7064  
7065  
7066  
7067  
7068  
7069 < for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
7069 >
7070 >
7071 >
7072 >
7073 >
7074 >
7075 >
7076 >
7077 >
7078 >
7079 >
7080 >
7081 >
7082 >
7083 >
7084 >
7085 > for ac_header in stdlib.h string.h sys/param.h unistd.h sys/time.h stdio.h conio.h strstream.h iostream.h fstream.h math.h time.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
7086   do
7087   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 6423 | Line 7231 | done
7231  
7232   done
7233  
7234 + ac_ext=cc
7235 + ac_cpp='$CXXCPP $CPPFLAGS'
7236 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7237 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7238 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7239  
7240 < for ac_header in machine/hal_sysinfo.h
7240 >
7241 >
7242 >
7243 >
7244 >
7245 > for ac_header in ctype.h iostream fstream sstream strstream
7246   do
7247   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7248   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 6457 | Line 7275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275    cat conftest.err >&5
7276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277    (exit $ac_status); } &&
7278 <         { ac_try='test -z "$ac_c_werror_flag"
7278 >         { ac_try='test -z "$ac_cxx_werror_flag"
7279                           || test ! -s conftest.err'
7280    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281    (eval $ac_try) 2>&5
# Line 6501 | Line 7319 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$a
7319    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7320    (exit $ac_status); } >/dev/null; then
7321    if test -s conftest.err; then
7322 <    ac_cpp_err=$ac_c_preproc_warn_flag
7323 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7322 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
7323 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7324    else
7325      ac_cpp_err=
7326    fi
# Line 6522 | Line 7340 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
7340   echo "${ECHO_T}$ac_header_preproc" >&6
7341  
7342   # So?  What about this header?
7343 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7343 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7344    yes:no: )
7345      { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7346   echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
# Line 6573 | Line 7391 | done
7391  
7392   done
7393  
7394 <
7395 <
7396 <
7397 <
7398 < for ac_func in rint snprintf sranddev strncasecmp
6581 < do
6582 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6583 < echo "$as_me:$LINENO: checking for $ac_func" >&5
6584 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6585 < if eval "test \"\${$as_ac_var+set}\" = set"; then
6586 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6587 < else
6588 <  cat >conftest.$ac_ext <<_ACEOF
6589 < /* confdefs.h.  */
6590 < _ACEOF
6591 < cat confdefs.h >>conftest.$ac_ext
6592 < cat >>conftest.$ac_ext <<_ACEOF
6593 < /* end confdefs.h.  */
6594 < /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6595 <   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6596 < #define $ac_func innocuous_$ac_func
7394 > ac_ext=c
7395 > ac_cpp='$CPP $CPPFLAGS'
7396 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399  
6598 /* System header to define __stub macros and hopefully few prototypes,
6599    which can conflict with char $ac_func (); below.
6600    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6601    <limits.h> exists even on freestanding compilers.  */
7400  
6603 #ifdef __STDC__
6604 # include <limits.h>
6605 #else
6606 # include <assert.h>
6607 #endif
7401  
6609 #undef $ac_func
7402  
6611 /* Override any gcc2 internal prototype to avoid an error.  */
6612 #ifdef __cplusplus
6613 extern "C"
6614 {
6615 #endif
6616 /* We use char because int might match the return type of a gcc2
6617   builtin and then its argument prototype would still apply.  */
6618 char $ac_func ();
6619 /* The GNU C library defines this for functions which it implements
6620    to always fail with ENOSYS.  Some functions are actually named
6621    something starting with __ and the normal name is an alias.  */
6622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6623 choke me
6624 #else
6625 char (*f) () = $ac_func;
6626 #endif
6627 #ifdef __cplusplus
6628 }
6629 #endif
7403  
6631 int
6632 main ()
6633 {
6634 return f != $ac_func;
6635  ;
6636  return 0;
6637 }
6638 _ACEOF
6639 rm -f conftest.$ac_objext conftest$ac_exeext
6640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6641  (eval $ac_link) 2>conftest.er1
6642  ac_status=$?
6643  grep -v '^ *+' conftest.er1 >conftest.err
6644  rm -f conftest.er1
6645  cat conftest.err >&5
6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647  (exit $ac_status); } &&
6648         { ac_try='test -z "$ac_c_werror_flag"
6649                         || test ! -s conftest.err'
6650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651  (eval $ac_try) 2>&5
6652  ac_status=$?
6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654  (exit $ac_status); }; } &&
6655         { ac_try='test -s conftest$ac_exeext'
6656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657  (eval $ac_try) 2>&5
6658  ac_status=$?
6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660  (exit $ac_status); }; }; then
6661  eval "$as_ac_var=yes"
6662 else
6663  echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
7404  
6666 eval "$as_ac_var=no"
6667 fi
6668 rm -f conftest.err conftest.$ac_objext \
6669      conftest$ac_exeext conftest.$ac_ext
6670 fi
6671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6673 if test `eval echo '${'$as_ac_var'}'` = yes; then
6674  cat >>confdefs.h <<_ACEOF
6675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6676 _ACEOF
7405  
6678 fi
6679 done
7406  
7407  
7408  
7409  
7410  
7411  
7412 < for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
7412 > for ac_func in rint snprintf sranddev strcasecmp strncasecmp stricmp strnicmp pstat_getstatic sysmp getsysinfo sysctl table
7413   do
7414   as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415   echo "$as_me:$LINENO: checking for $ac_func" >&5
# Line 7148 | Line 7874 | esac
7874   _ACEOF
7875      ;;
7876   esac
7151
7152
7153
7154
7155 for ac_func in rint sranddev
7156 do
7157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7158 echo "$as_me:$LINENO: checking for $ac_func" >&5
7159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7160 if eval "test \"\${$as_ac_var+set}\" = set"; then
7161  echo $ECHO_N "(cached) $ECHO_C" >&6
7162 else
7163  cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7170   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7171 #define $ac_func innocuous_$ac_func
7877  
7173 /* System header to define __stub macros and hopefully few prototypes,
7174    which can conflict with char $ac_func (); below.
7175    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176    <limits.h> exists even on freestanding compilers.  */
7878  
7178 #ifdef __STDC__
7179 # include <limits.h>
7180 #else
7181 # include <assert.h>
7182 #endif
7879  
7184 #undef $ac_func
7185
7186 /* Override any gcc2 internal prototype to avoid an error.  */
7187 #ifdef __cplusplus
7188 extern "C"
7189 {
7190 #endif
7191 /* We use char because int might match the return type of a gcc2
7192   builtin and then its argument prototype would still apply.  */
7193 char $ac_func ();
7194 /* The GNU C library defines this for functions which it implements
7195    to always fail with ENOSYS.  Some functions are actually named
7196    something starting with __ and the normal name is an alias.  */
7197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7198 choke me
7199 #else
7200 char (*f) () = $ac_func;
7201 #endif
7202 #ifdef __cplusplus
7203 }
7204 #endif
7205
7206 int
7207 main ()
7208 {
7209 return f != $ac_func;
7210  ;
7211  return 0;
7212 }
7213 _ACEOF
7214 rm -f conftest.$ac_objext conftest$ac_exeext
7215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7216  (eval $ac_link) 2>conftest.er1
7217  ac_status=$?
7218  grep -v '^ *+' conftest.er1 >conftest.err
7219  rm -f conftest.er1
7220  cat conftest.err >&5
7221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222  (exit $ac_status); } &&
7223         { ac_try='test -z "$ac_c_werror_flag"
7224                         || test ! -s conftest.err'
7225  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7226  (eval $ac_try) 2>&5
7227  ac_status=$?
7228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229  (exit $ac_status); }; } &&
7230         { ac_try='test -s conftest$ac_exeext'
7231  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232  (eval $ac_try) 2>&5
7233  ac_status=$?
7234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235  (exit $ac_status); }; }; then
7236  eval "$as_ac_var=yes"
7237 else
7238  echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7240
7241 eval "$as_ac_var=no"
7242 fi
7243 rm -f conftest.err conftest.$ac_objext \
7244      conftest$ac_exeext conftest.$ac_ext
7245 fi
7246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7248 if test `eval echo '${'$as_ac_var'}'` = yes; then
7249  cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7251 _ACEOF
7252
7253 fi
7254 done
7255
7256
7880    # clean out junk possibly left behind by a previous configuration
7881    rm -f src/getopt.h
7882    # Check for getopt_long support

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines