ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/configure
(Generate patch)

Comparing trunk/configure (file contents):
Revision 502 by gezelter, Thu Apr 14 21:41:56 2005 UTC vs.
Revision 768 by chuckv, Tue Nov 29 22:54:21 2005 UTC

# Line 312 | Line 312 | ac_includes_default="\
312   # include <unistd.h>
313   #endif"
314  
315 < ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI CXXCPP USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
315 > ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PROGNAME debug build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX OOPSE_TEMPLATE_FLAGS EXTRA_CC_FLAG F90 F90FLAGS ac_ct_F90 PREPFLAG PREPDEFFLAG F90LIBS F90_FUNC F90_FUNC_ MOD F90_WORK_FILES_ARG MODDIRFLAG F90MODINCSPEC F90_MODULE_NAMES CPP EGREP CXXCPP LIBOBJS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT PERLINTERP PERL_SHEBANG AR PS MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI USE_CGAL CGAL_INC_DIR CGAL_LIB_DIR CGAL_RLIB_DIR CGAL_DEFINES CGAL_CXXFLAGS CGAL_LIBS DOXYGEN DOT DOC enable_dot enable_html_docs enable_latex_docs BATEXT MKINSTALLDIRS OOPSE OOPSE_HOME SUBDIRS FFLAGS LTLIBOBJS'
316   ac_subst_files=''
317  
318   # Initialize some variables set by options.
# Line 879 | Line 879 | Optional Packages:
879   Optional Packages:
880    --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
881    --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
882 +  --with-zlib=DIR root directory path of zlib installation defaults to
883 +                    /usr/local or /usr if not found in /usr/local
884 +  --without-zlib to disable zlib usage completely
885    --with-perl-shebang     override what perl thinks is the way for the kernel
886                            to start it (seldom needed)
887    --with-mpi=<prefix>     compile with MPI installed in <prefix> [default=no]
# Line 990 | Line 993 | esac
993      else
994        echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
995      fi
996 <    cd $ac_popdir
996 >    cd "$ac_popdir"
997    done
998   fi
999  
# Line 1885 | Line 1888 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1888   #
1889   #
1890   #
1891 +
1892 +
1893  
1894  
1895  
# Line 2323 | Line 2328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328    cat conftest.err >&5
2329    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330    (exit $ac_status); } &&
2331 <         { ac_try='test -z "$ac_c_werror_flag"
2327 <                         || test ! -s conftest.err'
2331 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2332    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333    (eval $ac_try) 2>&5
2334    ac_status=$?
# Line 2382 | Line 2386 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2386    cat conftest.err >&5
2387    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388    (exit $ac_status); } &&
2389 <         { ac_try='test -z "$ac_c_werror_flag"
2386 <                         || test ! -s conftest.err'
2389 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2390    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2391    (eval $ac_try) 2>&5
2392    ac_status=$?
# Line 2499 | Line 2502 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2502    cat conftest.err >&5
2503    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504    (exit $ac_status); } &&
2505 <         { ac_try='test -z "$ac_c_werror_flag"
2503 <                         || test ! -s conftest.err'
2505 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2506    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507    (eval $ac_try) 2>&5
2508    ac_status=$?
# Line 2554 | Line 2556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2556    cat conftest.err >&5
2557    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2558    (exit $ac_status); } &&
2559 <         { ac_try='test -z "$ac_c_werror_flag"
2558 <                         || test ! -s conftest.err'
2559 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2560    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561    (eval $ac_try) 2>&5
2562    ac_status=$?
# Line 2600 | Line 2601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2601    cat conftest.err >&5
2602    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603    (exit $ac_status); } &&
2604 <         { ac_try='test -z "$ac_c_werror_flag"
2604 <                         || test ! -s conftest.err'
2604 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2605    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606    (eval $ac_try) 2>&5
2607    ac_status=$?
# Line 2645 | Line 2645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2645    cat conftest.err >&5
2646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647    (exit $ac_status); } &&
2648 <         { ac_try='test -z "$ac_c_werror_flag"
2649 <                         || test ! -s conftest.err'
2648 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2649    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650    (eval $ac_try) 2>&5
2651    ac_status=$?
# Line 2831 | Line 2830 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2830    cat conftest.err >&5
2831    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832    (exit $ac_status); } &&
2833 <         { ac_try='test -z "$ac_cxx_werror_flag"
2835 <                         || test ! -s conftest.err'
2833 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2834    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835    (eval $ac_try) 2>&5
2836    ac_status=$?
# Line 2890 | Line 2888 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888    cat conftest.err >&5
2889    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890    (exit $ac_status); } &&
2891 <         { ac_try='test -z "$ac_cxx_werror_flag"
2894 <                         || test ! -s conftest.err'
2891 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2892    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2893    (eval $ac_try) 2>&5
2894    ac_status=$?
# Line 2962 | Line 2959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2959    cat conftest.err >&5
2960    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961    (exit $ac_status); } &&
2962 <         { ac_try='test -z "$ac_cxx_werror_flag"
2966 <                         || test ! -s conftest.err'
2962 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
2963    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964    (eval $ac_try) 2>&5
2965    ac_status=$?
# Line 3007 | Line 3003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3003    cat conftest.err >&5
3004    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005    (exit $ac_status); } &&
3006 <         { ac_try='test -z "$ac_cxx_werror_flag"
3011 <                         || test ! -s conftest.err'
3006 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
3007    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3008    (eval $ac_try) 2>&5
3009    ac_status=$?
# Line 3218 | Line 3213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3213    cat conftest.err >&5
3214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215    (exit $ac_status); } &&
3216 <         { ac_try='test -z "$ac_f90_werror_flag"
3222 <                         || test ! -s conftest.err'
3216 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
3217    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218    (eval $ac_try) 2>&5
3219    ac_status=$?
# Line 3319 | Line 3313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313    cat conftest.err >&5
3314    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315    (exit $ac_status); } &&
3316 <         { ac_try='test -z "$ac_f90_werror_flag"
3323 <                         || test ! -s conftest.err'
3316 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
3317    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318    (eval $ac_try) 2>&5
3319    ac_status=$?
# Line 3434 | Line 3427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3427    cat conftest.err >&5
3428    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429    (exit $ac_status); } &&
3430 <         { ac_try='test -z "$ac_f90_werror_flag"
3438 <                         || test ! -s conftest.err'
3430 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
3431    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3432    (eval $ac_try) 2>&5
3433    ac_status=$?
# Line 3513 | Line 3505 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505    cat conftest.err >&5
3506    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507    (exit $ac_status); } &&
3508 <         { ac_try='test -z "$ac_f90_werror_flag"
3517 <                         || test ! -s conftest.err'
3508 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
3509    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3510    (eval $ac_try) 2>&5
3511    ac_status=$?
# Line 3550 | Line 3541 | F90FLAGS="$F90FLAGS $ac_verb"
3541   ac_save_F90FLAGS=$F90FLAGS
3542   F90FLAGS="$F90FLAGS $ac_verb"
3543  
3544 < (eval echo $as_me:3553: \"$ac_link\") >&5
3544 > (eval echo $as_me:3544: \"$ac_link\") >&5
3545   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3546   echo "$ac_f90_v_output" >&5
3547   F90FLAGS=$ac_save_F90FLAGS
# Line 3627 | Line 3618 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3618   ac_save_F90FLAGS=$F90FLAGS
3619   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3620  
3621 < (eval echo $as_me:3630: \"$ac_link\") >&5
3621 > (eval echo $as_me:3621: \"$ac_link\") >&5
3622   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3623   echo "$ac_f90_v_output" >&5
3624   F90FLAGS=$ac_save_F90FLAGS
# Line 3816 | Line 3807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3807    cat conftest.err >&5
3808    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3809    (exit $ac_status); } &&
3810 <         { ac_try='test -z "$ac_f90_werror_flag"
3820 <                         || test ! -s conftest.err'
3810 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
3811    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3812    (eval $ac_try) 2>&5
3813    ac_status=$?
# Line 3875 | Line 3865 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3865    cat conftest.err >&5
3866    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867    (exit $ac_status); } &&
3868 <         { ac_try='test -z "$ac_c_werror_flag"
3879 <                         || test ! -s conftest.err'
3868 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3869    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3870    (eval $ac_try) 2>&5
3871    ac_status=$?
# Line 3946 | Line 3935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3935    cat conftest.err >&5
3936    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937    (exit $ac_status); } &&
3938 <         { ac_try='test -z "$ac_c_werror_flag"
3950 <                         || test ! -s conftest.err'
3938 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3939    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940    (eval $ac_try) 2>&5
3941    ac_status=$?
# Line 4251 | Line 4239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4239    cat conftest.err >&5
4240    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241    (exit $ac_status); } &&
4242 <         { ac_try='test -z "$ac_f90_werror_flag"
4255 <                         || test ! -s conftest.err'
4242 >         { ac_try='test -z "$ac_f90_werror_flag"                         || test ! -s conftest.err'
4243    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4244    (eval $ac_try) 2>&5
4245    ac_status=$?
# Line 4459 | Line 4446 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
4446   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447  
4448  
4449 + ac_ext=cc
4450 + ac_cpp='$CXXCPP $CPPFLAGS'
4451 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4452 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4453 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4454 +
4455 +
4456 +
4457 + echo "$as_me:$LINENO: checking for asin in -lm" >&5
4458 + echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4459 + if test "${ac_cv_lib_m_asin+set}" = set; then
4460 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4461 + else
4462 +  ac_check_lib_save_LIBS=$LIBS
4463 + LIBS="-lm  $LIBS"
4464 + cat >conftest.$ac_ext <<_ACEOF
4465 + /* confdefs.h.  */
4466 + _ACEOF
4467 + cat confdefs.h >>conftest.$ac_ext
4468 + cat >>conftest.$ac_ext <<_ACEOF
4469 + /* end confdefs.h.  */
4470 +
4471 + /* Override any gcc2 internal prototype to avoid an error.  */
4472 + #ifdef __cplusplus
4473 + extern "C"
4474 + #endif
4475 + /* We use char because int might match the return type of a gcc2
4476 +   builtin and then its argument prototype would still apply.  */
4477 + char asin ();
4478 + int
4479 + main ()
4480 + {
4481 + asin ();
4482 +  ;
4483 +  return 0;
4484 + }
4485 + _ACEOF
4486 + rm -f conftest.$ac_objext conftest$ac_exeext
4487 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4488 +  (eval $ac_link) 2>conftest.er1
4489 +  ac_status=$?
4490 +  grep -v '^ *+' conftest.er1 >conftest.err
4491 +  rm -f conftest.er1
4492 +  cat conftest.err >&5
4493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 +  (exit $ac_status); } &&
4495 +         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
4496 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 +  (eval $ac_try) 2>&5
4498 +  ac_status=$?
4499 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 +  (exit $ac_status); }; } &&
4501 +         { ac_try='test -s conftest$ac_exeext'
4502 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 +  (eval $ac_try) 2>&5
4504 +  ac_status=$?
4505 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 +  (exit $ac_status); }; }; then
4507 +  ac_cv_lib_m_asin=yes
4508 + else
4509 +  echo "$as_me: failed program was:" >&5
4510 + sed 's/^/| /' conftest.$ac_ext >&5
4511 +
4512 + ac_cv_lib_m_asin=no
4513 + fi
4514 + rm -f conftest.err conftest.$ac_objext \
4515 +      conftest$ac_exeext conftest.$ac_ext
4516 + LIBS=$ac_check_lib_save_LIBS
4517 + fi
4518 + echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4519 + echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4520 + if test $ac_cv_lib_m_asin = yes; then
4521 +  cat >>confdefs.h <<_ACEOF
4522 + #define HAVE_LIBM 1
4523 + _ACEOF
4524 +
4525 +  LIBS="-lm $LIBS"
4526 +
4527 + else
4528 +  exit
4529 + fi
4530 +
4531 +
4532   ac_ext=c
4533   ac_cpp='$CPP $CPPFLAGS'
4534   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 4748 | Line 4818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4818    cat conftest.err >&5
4819    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820    (exit $ac_status); } &&
4821 <         { ac_try='test -z "$ac_c_werror_flag"
4752 <                         || test ! -s conftest.err'
4821 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4822    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823    (eval $ac_try) 2>&5
4824    ac_status=$?
# Line 4919 | Line 4988 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988    cat conftest.err >&5
4989    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990    (exit $ac_status); } &&
4991 <         { ac_try='test -z "$ac_c_werror_flag"
4923 <                         || test ! -s conftest.err'
4991 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4992    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993    (eval $ac_try) 2>&5
4994    ac_status=$?
# Line 4953 | Line 5021 | done
5021   done
5022  
5023  
5024 + #
5025 + # Handle user hints
5026 + #
5027 + echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5028 + echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5029  
5030 + # Check whether --with-zlib or --without-zlib was given.
5031 + if test "${with_zlib+set}" = set; then
5032 +  withval="$with_zlib"
5033 +  if test "$withval" != no ; then
5034 +  echo "$as_me:$LINENO: result: yes" >&5
5035 + echo "${ECHO_T}yes" >&6
5036 +  if test -d "$withval"
5037 +  then
5038 +    ZLIB_HOME="$withval"
5039 +  else
5040 +    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5041 + echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5042 +  fi
5043 + else
5044 +  echo "$as_me:$LINENO: result: no" >&5
5045 + echo "${ECHO_T}no" >&6
5046 + fi
5047 + fi;
5048  
5049 + ZLIB_HOME=/usr/local
5050 + if test ! -f "${ZLIB_HOME}/include/zlib.h"
5051 + then
5052 +        ZLIB_HOME=/usr
5053 + fi
5054  
5055 + #
5056 + # Locate zlib, if wanted
5057 + #
5058 + if test -n "${ZLIB_HOME}"
5059 + then
5060 +        ZLIB_OLD_LDFLAGS=$LDFLAGS
5061 +        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5062 +        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5063 +        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5064  
5065  
5066 +        ac_ext=c
5067 + ac_cpp='$CPP $CPPFLAGS'
5068 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071  
5072 +        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5073 + echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5074 + if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5075 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5076 + else
5077 +  ac_check_lib_save_LIBS=$LIBS
5078 + LIBS="-lz  $LIBS"
5079 + cat >conftest.$ac_ext <<_ACEOF
5080 + /* confdefs.h.  */
5081 + _ACEOF
5082 + cat confdefs.h >>conftest.$ac_ext
5083 + cat >>conftest.$ac_ext <<_ACEOF
5084 + /* end confdefs.h.  */
5085  
5086 + /* Override any gcc2 internal prototype to avoid an error.  */
5087 + #ifdef __cplusplus
5088 + extern "C"
5089 + #endif
5090 + /* We use char because int might match the return type of a gcc2
5091 +   builtin and then its argument prototype would still apply.  */
5092 + char inflateEnd ();
5093 + int
5094 + main ()
5095 + {
5096 + inflateEnd ();
5097 +  ;
5098 +  return 0;
5099 + }
5100 + _ACEOF
5101 + rm -f conftest.$ac_objext conftest$ac_exeext
5102 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5103 +  (eval $ac_link) 2>conftest.er1
5104 +  ac_status=$?
5105 +  grep -v '^ *+' conftest.er1 >conftest.err
5106 +  rm -f conftest.er1
5107 +  cat conftest.err >&5
5108 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 +  (exit $ac_status); } &&
5110 +         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5111 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5112 +  (eval $ac_try) 2>&5
5113 +  ac_status=$?
5114 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 +  (exit $ac_status); }; } &&
5116 +         { ac_try='test -s conftest$ac_exeext'
5117 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118 +  (eval $ac_try) 2>&5
5119 +  ac_status=$?
5120 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 +  (exit $ac_status); }; }; then
5122 +  ac_cv_lib_z_inflateEnd=yes
5123 + else
5124 +  echo "$as_me: failed program was:" >&5
5125 + sed 's/^/| /' conftest.$ac_ext >&5
5126  
5127 + ac_cv_lib_z_inflateEnd=no
5128 + fi
5129 + rm -f conftest.err conftest.$ac_objext \
5130 +      conftest$ac_exeext conftest.$ac_ext
5131 + LIBS=$ac_check_lib_save_LIBS
5132 + fi
5133 + echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5134 + echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5135 + if test $ac_cv_lib_z_inflateEnd = yes; then
5136 +  zlib_cv_libz=yes
5137 + else
5138 +  zlib_cv_libz=no
5139 + fi
5140  
5141 < for ac_header in unistd.h sys/pstat.h sys/sysmp.h sys/sysinfo.h sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h machine/hal_sysinfo.h
5142 < do
5143 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
4969 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
4970 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4971 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5141 >        if test "${ac_cv_header_zlib_h+set}" = set; then
5142 >  echo "$as_me:$LINENO: checking for zlib.h" >&5
5143 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5144 > if test "${ac_cv_header_zlib_h+set}" = set; then
5145    echo $ECHO_N "(cached) $ECHO_C" >&6
5146   fi
5147 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5148 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5147 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5148 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5149   else
5150    # Is the header compilable?
5151 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
5152 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5151 > echo "$as_me:$LINENO: checking zlib.h usability" >&5
5152 > echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5153   cat >conftest.$ac_ext <<_ACEOF
5154   /* confdefs.h.  */
5155   _ACEOF
# Line 4984 | Line 5157 | $ac_includes_default
5157   cat >>conftest.$ac_ext <<_ACEOF
5158   /* end confdefs.h.  */
5159   $ac_includes_default
5160 < #include <$ac_header>
5160 > #include <zlib.h>
5161   _ACEOF
5162   rm -f conftest.$ac_objext
5163   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 4995 | Line 5168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5168    cat conftest.err >&5
5169    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170    (exit $ac_status); } &&
5171 <         { ac_try='test -z "$ac_c_werror_flag"
4999 <                         || test ! -s conftest.err'
5171 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5172    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5173    (eval $ac_try) 2>&5
5174    ac_status=$?
# Line 5020 | Line 5192 | echo "${ECHO_T}$ac_header_compiler" >&6
5192   echo "${ECHO_T}$ac_header_compiler" >&6
5193  
5194   # Is the header present?
5195 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
5196 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5195 > echo "$as_me:$LINENO: checking zlib.h presence" >&5
5196 > echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5197   cat >conftest.$ac_ext <<_ACEOF
5198   /* confdefs.h.  */
5199   _ACEOF
5200   cat confdefs.h >>conftest.$ac_ext
5201   cat >>conftest.$ac_ext <<_ACEOF
5202   /* end confdefs.h.  */
5203 < #include <$ac_header>
5203 > #include <zlib.h>
5204   _ACEOF
5205   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5206    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5062 | Line 5234 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
5234   # So?  What about this header?
5235   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5236    yes:no: )
5237 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5238 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5239 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5240 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5237 >    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5238 > echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5239 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5240 > echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5241      ac_header_preproc=yes
5242      ;;
5243    no:yes:* )
5244 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5245 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5246 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5247 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5248 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5249 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5250 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5251 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5252 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5253 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5254 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5255 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5244 >    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5245 > echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5246 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
5247 > echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
5248 >    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5249 > echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5250 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5251 > echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5252 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5253 > echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5254 >    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5255 > echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5256      (
5257        cat <<\_ASBOX
5258   ## ------------------------------ ##
# Line 5091 | Line 5263 | esac
5263        sed "s/^/$as_me: WARNING:     /" >&2
5264      ;;
5265   esac
5266 < echo "$as_me:$LINENO: checking for $ac_header" >&5
5267 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5268 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5266 > echo "$as_me:$LINENO: checking for zlib.h" >&5
5267 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5268 > if test "${ac_cv_header_zlib_h+set}" = set; then
5269    echo $ECHO_N "(cached) $ECHO_C" >&6
5270   else
5271 <  eval "$as_ac_Header=\$ac_header_preproc"
5271 >  ac_cv_header_zlib_h=$ac_header_preproc
5272   fi
5273 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5274 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5273 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5274 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5275  
5276   fi
5277 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
5278 <  cat >>confdefs.h <<_ACEOF
5279 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5280 < _ACEOF
5109 <
5277 > if test $ac_cv_header_zlib_h = yes; then
5278 >  zlib_cv_zlib_h=yes
5279 > else
5280 >  zlib_cv_zlib_h=no
5281   fi
5282  
5112 done
5283  
5284 +        ac_ext=c
5285 + ac_cpp='$CPP $CPPFLAGS'
5286 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5287 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5288 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5289  
5290 +        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5291 +        then
5292 +                #
5293 +                # If both library and header were found, use them
5294 +                #
5295  
5296 <
5297 <
5298 <
5119 < for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5120 < do
5121 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5122 < echo "$as_me:$LINENO: checking for $ac_func" >&5
5123 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5124 < if eval "test \"\${$as_ac_var+set}\" = set"; then
5296 > echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5297 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5298 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5299    echo $ECHO_N "(cached) $ECHO_C" >&6
5300   else
5301 <  cat >conftest.$ac_ext <<_ACEOF
5301 >  ac_check_lib_save_LIBS=$LIBS
5302 > LIBS="-lz  $LIBS"
5303 > cat >conftest.$ac_ext <<_ACEOF
5304   /* confdefs.h.  */
5305   _ACEOF
5306   cat confdefs.h >>conftest.$ac_ext
5307   cat >>conftest.$ac_ext <<_ACEOF
5308   /* end confdefs.h.  */
5133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5134   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5135 #define $ac_func innocuous_$ac_func
5309  
5137 /* System header to define __stub macros and hopefully few prototypes,
5138    which can conflict with char $ac_func (); below.
5139    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5140    <limits.h> exists even on freestanding compilers.  */
5141
5142 #ifdef __STDC__
5143 # include <limits.h>
5144 #else
5145 # include <assert.h>
5146 #endif
5147
5148 #undef $ac_func
5149
5310   /* Override any gcc2 internal prototype to avoid an error.  */
5311   #ifdef __cplusplus
5312   extern "C"
5153 {
5313   #endif
5314   /* We use char because int might match the return type of a gcc2
5315     builtin and then its argument prototype would still apply.  */
5316 < char $ac_func ();
5158 < /* The GNU C library defines this for functions which it implements
5159 <    to always fail with ENOSYS.  Some functions are actually named
5160 <    something starting with __ and the normal name is an alias.  */
5161 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5162 < choke me
5163 < #else
5164 < char (*f) () = $ac_func;
5165 < #endif
5166 < #ifdef __cplusplus
5167 < }
5168 < #endif
5169 <
5316 > char inflateEnd ();
5317   int
5318   main ()
5319   {
5320 < return f != $ac_func;
5320 > inflateEnd ();
5321    ;
5322    return 0;
5323   }
# Line 5184 | Line 5331 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5331    cat conftest.err >&5
5332    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333    (exit $ac_status); } &&
5334 <         { ac_try='test -z "$ac_c_werror_flag"
5188 <                         || test ! -s conftest.err'
5334 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5335    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336    (eval $ac_try) 2>&5
5337    ac_status=$?
# Line 5197 | Line 5343 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5343    ac_status=$?
5344    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345    (exit $ac_status); }; }; then
5346 <  eval "$as_ac_var=yes"
5346 >  ac_cv_lib_z_inflateEnd=yes
5347   else
5348    echo "$as_me: failed program was:" >&5
5349   sed 's/^/| /' conftest.$ac_ext >&5
5350  
5351 < eval "$as_ac_var=no"
5351 > ac_cv_lib_z_inflateEnd=no
5352   fi
5353   rm -f conftest.err conftest.$ac_objext \
5354        conftest$ac_exeext conftest.$ac_ext
5355 + LIBS=$ac_check_lib_save_LIBS
5356   fi
5357 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5358 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5359 < if test `eval echo '${'$as_ac_var'}'` = yes; then
5357 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5358 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5359 > if test $ac_cv_lib_z_inflateEnd = yes; then
5360    cat >>confdefs.h <<_ACEOF
5361 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5361 > #define HAVE_LIBZ 1
5362   _ACEOF
5363  
5364 +  LIBS="-lz $LIBS"
5365 +
5366   fi
5218 done
5367  
5368 < # special check for _system_configuration because AIX <4.3.2 do not
5369 < # contain the `physmem' member.
5370 < echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5371 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5368 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5369 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5370 >                echo "$as_me:$LINENO: result: ok" >&5
5371 > echo "${ECHO_T}ok" >&6
5372 >        else
5373 >                #
5374 >                # If either header or library was not found, revert and bomb
5375 >                #
5376 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5377 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5378 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
5379 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5380 >                echo "$as_me:$LINENO: result: failed" >&5
5381 > echo "${ECHO_T}failed" >&6
5382 >                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5383 > echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5384 >   { (exit 1); exit 1; }; }
5385 >        fi
5386 > fi
5387 >
5388 >
5389 >
5390 >
5391 >
5392 >
5393 >
5394 >
5395 > for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5396 > do
5397 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5398 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5399 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5400 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5401 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5402 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5403 > fi
5404 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5405 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5406 > else
5407 >  # Is the header compilable?
5408 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5409 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5410   cat >conftest.$ac_ext <<_ACEOF
5411   /* confdefs.h.  */
5412   _ACEOF
5413   cat confdefs.h >>conftest.$ac_ext
5414   cat >>conftest.$ac_ext <<_ACEOF
5415   /* end confdefs.h.  */
5416 < #include <sys/systemcfg.h>
5417 < int
5232 < main ()
5233 < {
5234 < double x = _system_configuration.physmem;
5235 <  ;
5236 <  return 0;
5237 < }
5416 > $ac_includes_default
5417 > #include <$ac_header>
5418   _ACEOF
5419   rm -f conftest.$ac_objext
5420   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 5245 | Line 5425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425    cat conftest.err >&5
5426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427    (exit $ac_status); } &&
5428 <         { ac_try='test -z "$ac_c_werror_flag"
5249 <                         || test ! -s conftest.err'
5428 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5429    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430    (eval $ac_try) 2>&5
5431    ac_status=$?
# Line 5258 | Line 5437 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5437    ac_status=$?
5438    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439    (exit $ac_status); }; }; then
5440 <  echo "$as_me:$LINENO: result: yes" >&5
5262 < echo "${ECHO_T}yes" >&6
5263 <
5264 < cat >>confdefs.h <<\_ACEOF
5265 < #define HAVE__SYSTEM_CONFIGURATION 1
5266 < _ACEOF
5267 <
5440 >  ac_header_compiler=yes
5441   else
5442    echo "$as_me: failed program was:" >&5
5443   sed 's/^/| /' conftest.$ac_ext >&5
5444  
5445 < echo "$as_me:$LINENO: result: no" >&5
5273 < echo "${ECHO_T}no" >&6
5445 > ac_header_compiler=no
5446   fi
5447   rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5448 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5449 + echo "${ECHO_T}$ac_header_compiler" >&6
5450  
5451 <  # clean out junk possibly left behind by a previous configuration
5452 <  rm -f src/getopt.h
5453 <  # Check for getopt_long support
5451 > # Is the header present?
5452 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
5453 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5454 > cat >conftest.$ac_ext <<_ACEOF
5455 > /* confdefs.h.  */
5456 > _ACEOF
5457 > cat confdefs.h >>conftest.$ac_ext
5458 > cat >>conftest.$ac_ext <<_ACEOF
5459 > /* end confdefs.h.  */
5460 > #include <$ac_header>
5461 > _ACEOF
5462 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5463 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5464 >  ac_status=$?
5465 >  grep -v '^ *+' conftest.er1 >conftest.err
5466 >  rm -f conftest.er1
5467 >  cat conftest.err >&5
5468 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 >  (exit $ac_status); } >/dev/null; then
5470 >  if test -s conftest.err; then
5471 >    ac_cpp_err=$ac_c_preproc_warn_flag
5472 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5473 >  else
5474 >    ac_cpp_err=
5475 >  fi
5476 > else
5477 >  ac_cpp_err=yes
5478 > fi
5479 > if test -z "$ac_cpp_err"; then
5480 >  ac_header_preproc=yes
5481 > else
5482 >  echo "$as_me: failed program was:" >&5
5483 > sed 's/^/| /' conftest.$ac_ext >&5
5484  
5485 < for ac_header in getopt.h
5485 >  ac_header_preproc=no
5486 > fi
5487 > rm -f conftest.err conftest.$ac_ext
5488 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5489 > echo "${ECHO_T}$ac_header_preproc" >&6
5490 >
5491 > # So?  What about this header?
5492 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5493 >  yes:no: )
5494 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5495 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5496 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5497 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5498 >    ac_header_preproc=yes
5499 >    ;;
5500 >  no:yes:* )
5501 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5502 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5503 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5504 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5505 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5506 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5507 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5508 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5509 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5510 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5511 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5512 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5513 >    (
5514 >      cat <<\_ASBOX
5515 > ## ------------------------------ ##
5516 > ## Report this to gezelter@nd.edu ##
5517 > ## ------------------------------ ##
5518 > _ASBOX
5519 >    ) |
5520 >      sed "s/^/$as_me: WARNING:     /" >&2
5521 >    ;;
5522 > esac
5523 > echo "$as_me:$LINENO: checking for $ac_header" >&5
5524 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5527 > else
5528 >  eval "$as_ac_Header=\$ac_header_preproc"
5529 > fi
5530 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5531 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5532 >
5533 > fi
5534 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
5535 >  cat >>confdefs.h <<_ACEOF
5536 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5537 > _ACEOF
5538 >
5539 > fi
5540 >
5541 > done
5542 >
5543 >
5544 >
5545 >
5546 >
5547 >
5548 > for ac_header in strstream.h iostream.h fstream.h math.h time.h
5549   do
5550   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5551   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 5311 | Line 5578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5578    cat conftest.err >&5
5579    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580    (exit $ac_status); } &&
5581 <         { ac_try='test -z "$ac_c_werror_flag"
5315 <                         || test ! -s conftest.err'
5581 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5582    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583    (eval $ac_try) 2>&5
5584    ac_status=$?
# Line 5427 | Line 5693 | done
5693  
5694   done
5695  
5696 + ac_ext=cc
5697 + ac_cpp='$CXXCPP $CPPFLAGS'
5698 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5701  
5702 < for ac_func in getopt_long
5703 < do
5704 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5705 < echo "$as_me:$LINENO: checking for $ac_func" >&5
5706 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5707 < if eval "test \"\${$as_ac_var+set}\" = set"; then
5702 > ac_ext=cc
5703 > ac_cpp='$CXXCPP $CPPFLAGS'
5704 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5705 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5706 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5707 > echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5708 > echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5709 > if test -z "$CXXCPP"; then
5710 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5711    echo $ECHO_N "(cached) $ECHO_C" >&6
5712   else
5713 +      # Double quotes because CXXCPP needs to be expanded
5714 +    for CXXCPP in "$CXX -E" "/lib/cpp"
5715 +    do
5716 +      ac_preproc_ok=false
5717 + for ac_cxx_preproc_warn_flag in '' yes
5718 + do
5719 +  # Use a header file that comes with gcc, so configuring glibc
5720 +  # with a fresh cross-compiler works.
5721 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5722 +  # <limits.h> exists even on freestanding compilers.
5723 +  # On the NeXT, cc -E runs the code through the compiler's parser,
5724 +  # not just through cpp. "Syntax error" is here to catch this case.
5725    cat >conftest.$ac_ext <<_ACEOF
5726   /* confdefs.h.  */
5727   _ACEOF
5728   cat confdefs.h >>conftest.$ac_ext
5729   cat >>conftest.$ac_ext <<_ACEOF
5730   /* end confdefs.h.  */
5445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5446   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5447 #define $ac_func innocuous_$ac_func
5448
5449 /* System header to define __stub macros and hopefully few prototypes,
5450    which can conflict with char $ac_func (); below.
5451    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5452    <limits.h> exists even on freestanding compilers.  */
5453
5731   #ifdef __STDC__
5732   # include <limits.h>
5733   #else
5734   # include <assert.h>
5735   #endif
5736 <
5460 < #undef $ac_func
5461 <
5462 < /* Override any gcc2 internal prototype to avoid an error.  */
5463 < #ifdef __cplusplus
5464 < extern "C"
5465 < {
5466 < #endif
5467 < /* We use char because int might match the return type of a gcc2
5468 <   builtin and then its argument prototype would still apply.  */
5469 < char $ac_func ();
5470 < /* The GNU C library defines this for functions which it implements
5471 <    to always fail with ENOSYS.  Some functions are actually named
5472 <    something starting with __ and the normal name is an alias.  */
5473 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5474 < choke me
5475 < #else
5476 < char (*f) () = $ac_func;
5477 < #endif
5478 < #ifdef __cplusplus
5479 < }
5480 < #endif
5481 <
5482 < int
5483 < main ()
5484 < {
5485 < return f != $ac_func;
5486 <  ;
5487 <  return 0;
5488 < }
5736 >                     Syntax error
5737   _ACEOF
5738 < rm -f conftest.$ac_objext conftest$ac_exeext
5739 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5492 <  (eval $ac_link) 2>conftest.er1
5738 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5739 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5740    ac_status=$?
5741    grep -v '^ *+' conftest.er1 >conftest.err
5742    rm -f conftest.er1
5743    cat conftest.err >&5
5744    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 <  (exit $ac_status); } &&
5746 <         { ac_try='test -z "$ac_c_werror_flag"
5747 <                         || test ! -s conftest.err'
5748 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749 <  (eval $ac_try) 2>&5
5750 <  ac_status=$?
5751 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 <  (exit $ac_status); }; } &&
5506 <         { ac_try='test -s conftest$ac_exeext'
5507 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5508 <  (eval $ac_try) 2>&5
5509 <  ac_status=$?
5510 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 <  (exit $ac_status); }; }; then
5512 <  eval "$as_ac_var=yes"
5745 >  (exit $ac_status); } >/dev/null; then
5746 >  if test -s conftest.err; then
5747 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5748 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5749 >  else
5750 >    ac_cpp_err=
5751 >  fi
5752   else
5753 +  ac_cpp_err=yes
5754 + fi
5755 + if test -z "$ac_cpp_err"; then
5756 +  :
5757 + else
5758    echo "$as_me: failed program was:" >&5
5759   sed 's/^/| /' conftest.$ac_ext >&5
5760  
5761 < eval "$as_ac_var=no"
5761 >  # Broken: fails on valid input.
5762 > continue
5763   fi
5764 < rm -f conftest.err conftest.$ac_objext \
5520 <      conftest$ac_exeext conftest.$ac_ext
5521 < fi
5522 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5523 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5524 < if test `eval echo '${'$as_ac_var'}'` = yes; then
5525 <  cat >>confdefs.h <<_ACEOF
5526 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5527 < _ACEOF
5764 > rm -f conftest.err conftest.$ac_ext
5765  
5766 < else
5767 <  # FreeBSD has a gnugetopt library for this
5768 <    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5532 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5533 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5534 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5535 < else
5536 <  ac_check_lib_save_LIBS=$LIBS
5537 < LIBS="-lgnugetopt  $LIBS"
5538 < cat >conftest.$ac_ext <<_ACEOF
5766 >  # OK, works on sane cases.  Now check whether non-existent headers
5767 >  # can be detected and how.
5768 >  cat >conftest.$ac_ext <<_ACEOF
5769   /* confdefs.h.  */
5770   _ACEOF
5771   cat confdefs.h >>conftest.$ac_ext
5772   cat >>conftest.$ac_ext <<_ACEOF
5773   /* end confdefs.h.  */
5774 <
5545 < /* Override any gcc2 internal prototype to avoid an error.  */
5546 < #ifdef __cplusplus
5547 < extern "C"
5548 < #endif
5549 < /* We use char because int might match the return type of a gcc2
5550 <   builtin and then its argument prototype would still apply.  */
5551 < char getopt_long ();
5552 < int
5553 < main ()
5554 < {
5555 < getopt_long ();
5556 <  ;
5557 <  return 0;
5558 < }
5774 > #include <ac_nonexistent.h>
5775   _ACEOF
5776 < rm -f conftest.$ac_objext conftest$ac_exeext
5777 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562 <  (eval $ac_link) 2>conftest.er1
5776 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5777 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5778    ac_status=$?
5779    grep -v '^ *+' conftest.er1 >conftest.err
5780    rm -f conftest.er1
5781    cat conftest.err >&5
5782    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 <  (exit $ac_status); } &&
5784 <         { ac_try='test -z "$ac_c_werror_flag"
5785 <                         || test ! -s conftest.err'
5786 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5787 <  (eval $ac_try) 2>&5
5788 <  ac_status=$?
5789 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 <  (exit $ac_status); }; } &&
5576 <         { ac_try='test -s conftest$ac_exeext'
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_gnugetopt_getopt_long=yes
5783 >  (exit $ac_status); } >/dev/null; then
5784 >  if test -s conftest.err; then
5785 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5786 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5787 >  else
5788 >    ac_cpp_err=
5789 >  fi
5790   else
5791 +  ac_cpp_err=yes
5792 + fi
5793 + if test -z "$ac_cpp_err"; then
5794 +  # Broken: success on invalid input.
5795 + continue
5796 + else
5797    echo "$as_me: failed program was:" >&5
5798   sed 's/^/| /' conftest.$ac_ext >&5
5799  
5800 < ac_cv_lib_gnugetopt_getopt_long=no
5800 >  # Passes both tests.
5801 > ac_preproc_ok=:
5802 > break
5803   fi
5804 < rm -f conftest.err conftest.$ac_objext \
5805 <      conftest$ac_exeext conftest.$ac_ext
5806 < LIBS=$ac_check_lib_save_LIBS
5804 > rm -f conftest.err conftest.$ac_ext
5805 >
5806 > done
5807 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 > rm -f conftest.err conftest.$ac_ext
5809 > if $ac_preproc_ok; then
5810 >  break
5811   fi
5593 echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5594 echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5595 if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5596  cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_GETOPT_LONG 1
5598 _ACEOF
5812  
5813 +    done
5814 +    ac_cv_prog_CXXCPP=$CXXCPP
5815 +
5816 + fi
5817 +  CXXCPP=$ac_cv_prog_CXXCPP
5818   else
5819 <  # use the GNU replacement
5820 <      case $LIBOBJS in
5821 <    "getopt.$ac_objext"   | \
5822 <  *" getopt.$ac_objext"   | \
5823 <    "getopt.$ac_objext "* | \
5824 <  *" getopt.$ac_objext "* ) ;;
5825 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5826 < esac
5819 >  ac_cv_prog_CXXCPP=$CXXCPP
5820 > fi
5821 > echo "$as_me:$LINENO: result: $CXXCPP" >&5
5822 > echo "${ECHO_T}$CXXCPP" >&6
5823 > ac_preproc_ok=false
5824 > for ac_cxx_preproc_warn_flag in '' yes
5825 > do
5826 >  # Use a header file that comes with gcc, so configuring glibc
5827 >  # with a fresh cross-compiler works.
5828 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 >  # <limits.h> exists even on freestanding compilers.
5830 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5831 >  # not just through cpp. "Syntax error" is here to catch this case.
5832 >  cat >conftest.$ac_ext <<_ACEOF
5833 > /* confdefs.h.  */
5834 > _ACEOF
5835 > cat confdefs.h >>conftest.$ac_ext
5836 > cat >>conftest.$ac_ext <<_ACEOF
5837 > /* end confdefs.h.  */
5838 > #ifdef __STDC__
5839 > # include <limits.h>
5840 > #else
5841 > # include <assert.h>
5842 > #endif
5843 >                     Syntax error
5844 > _ACEOF
5845 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847 >  ac_status=$?
5848 >  grep -v '^ *+' conftest.er1 >conftest.err
5849 >  rm -f conftest.er1
5850 >  cat conftest.err >&5
5851 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 >  (exit $ac_status); } >/dev/null; then
5853 >  if test -s conftest.err; then
5854 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5855 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5856 >  else
5857 >    ac_cpp_err=
5858 >  fi
5859 > else
5860 >  ac_cpp_err=yes
5861 > fi
5862 > if test -z "$ac_cpp_err"; then
5863 >  :
5864 > else
5865 >  echo "$as_me: failed program was:" >&5
5866 > sed 's/^/| /' conftest.$ac_ext >&5
5867  
5868 <      case $LIBOBJS in
5869 <    "getopt1.$ac_objext"   | \
5870 <  *" getopt1.$ac_objext"   | \
5871 <    "getopt1.$ac_objext "* | \
5614 <  *" getopt1.$ac_objext "* ) ;;
5615 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5616 < esac
5868 >  # Broken: fails on valid input.
5869 > continue
5870 > fi
5871 > rm -f conftest.err conftest.$ac_ext
5872  
5873 <                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5874 <
5873 >  # OK, works on sane cases.  Now check whether non-existent headers
5874 >  # can be detected and how.
5875 >  cat >conftest.$ac_ext <<_ACEOF
5876 > /* confdefs.h.  */
5877 > _ACEOF
5878 > cat confdefs.h >>conftest.$ac_ext
5879 > cat >>conftest.$ac_ext <<_ACEOF
5880 > /* end confdefs.h.  */
5881 > #include <ac_nonexistent.h>
5882 > _ACEOF
5883 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5884 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5885 >  ac_status=$?
5886 >  grep -v '^ *+' conftest.er1 >conftest.err
5887 >  rm -f conftest.er1
5888 >  cat conftest.err >&5
5889 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 >  (exit $ac_status); } >/dev/null; then
5891 >  if test -s conftest.err; then
5892 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5893 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5894 >  else
5895 >    ac_cpp_err=
5896 >  fi
5897 > else
5898 >  ac_cpp_err=yes
5899   fi
5900 + if test -z "$ac_cpp_err"; then
5901 +  # Broken: success on invalid input.
5902 + continue
5903 + else
5904 +  echo "$as_me: failed program was:" >&5
5905 + sed 's/^/| /' conftest.$ac_ext >&5
5906  
5907 +  # Passes both tests.
5908 + ac_preproc_ok=:
5909 + break
5910   fi
5911 + rm -f conftest.err conftest.$ac_ext
5912 +
5913   done
5914 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 + rm -f conftest.err conftest.$ac_ext
5916 + if $ac_preproc_ok; then
5917 +  :
5918 + else
5919 +  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5920 + See \`config.log' for more details." >&5
5921 + echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5922 + See \`config.log' for more details." >&2;}
5923 +   { (exit 1); exit 1; }; }
5924 + fi
5925  
5926 + ac_ext=cc
5927 + ac_cpp='$CXXCPP $CPPFLAGS'
5928 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5929 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5930 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5931  
5932  
5627 case $debug in
5628  1)
5629     ;;
5630  *)
5933  
5934  
5935  
5936  
5937  
5938 <
5939 < echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5940 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5941 < if test "${ac_cv_prog_really_gcc+set}" = set; then
5938 > for ac_header in ctype.h iostream fstream sstream strstream
5939 > do
5940 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5941 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5942 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5943 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5944 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5945    echo $ECHO_N "(cached) $ECHO_C" >&6
5946 + fi
5947 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949   else
5950 <
5951 < cat > conftest.c <<EOF
5952 < #ifdef __GNUC__
5953 <  #ifndef __INTEL_COMPILER
5954 <     yes;
5955 <  #endif
5956 < #endif
5957 < EOF
5958 < if { ac_try='${CC-cc} -E conftest.c'
5950 >  # Is the header compilable?
5951 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5952 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5953 > cat >conftest.$ac_ext <<_ACEOF
5954 > /* confdefs.h.  */
5955 > _ACEOF
5956 > cat confdefs.h >>conftest.$ac_ext
5957 > cat >>conftest.$ac_ext <<_ACEOF
5958 > /* end confdefs.h.  */
5959 > $ac_includes_default
5960 > #include <$ac_header>
5961 > _ACEOF
5962 > rm -f conftest.$ac_objext
5963 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 >  (eval $ac_compile) 2>conftest.er1
5965 >  ac_status=$?
5966 >  grep -v '^ *+' conftest.er1 >conftest.err
5967 >  rm -f conftest.er1
5968 >  cat conftest.err >&5
5969 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 >  (exit $ac_status); } &&
5971 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
5972    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5973    (eval $ac_try) 2>&5
5974    ac_status=$?
5975    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
5977 <  ac_cv_prog_really_gcc=yes
5976 >  (exit $ac_status); }; } &&
5977 >         { ac_try='test -s conftest.$ac_objext'
5978 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5979 >  (eval $ac_try) 2>&5
5980 >  ac_status=$?
5981 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 >  (exit $ac_status); }; }; then
5983 >  ac_header_compiler=yes
5984   else
5985 <  ac_cv_prog_really_gcc=no
5986 < fi
5985 >  echo "$as_me: failed program was:" >&5
5986 > sed 's/^/| /' conftest.$ac_ext >&5
5987  
5988 + ac_header_compiler=no
5989   fi
5990 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
5991 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
5992 < if test "$ac_cv_prog_really_gcc" = yes; then
5665 <        :
5990 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5991 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5992 > echo "${ECHO_T}$ac_header_compiler" >&6
5993  
5994 + # Is the header present?
5995 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
5996 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5997 + cat >conftest.$ac_ext <<_ACEOF
5998 + /* confdefs.h.  */
5999 + _ACEOF
6000 + cat confdefs.h >>conftest.$ac_ext
6001 + cat >>conftest.$ac_ext <<_ACEOF
6002 + /* end confdefs.h.  */
6003 + #include <$ac_header>
6004 + _ACEOF
6005 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6006 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6007 +  ac_status=$?
6008 +  grep -v '^ *+' conftest.er1 >conftest.err
6009 +  rm -f conftest.er1
6010 +  cat conftest.err >&5
6011 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 +  (exit $ac_status); } >/dev/null; then
6013 +  if test -s conftest.err; then
6014 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
6015 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6016 +  else
6017 +    ac_cpp_err=
6018 +  fi
6019   else
6020 <        :
5669 <
6020 >  ac_cpp_err=yes
6021   fi
6022 <
6023 <
6024 < # Try to determine "good" native compiler flags if none specified on command
6025 < # line
6022 > if test -z "$ac_cpp_err"; then
6023 >  ac_header_preproc=yes
6024 > else
6025 >  echo "$as_me: failed program was:" >&5
6026 > sed 's/^/| /' conftest.$ac_ext >&5
6027 >
6028 >  ac_header_preproc=no
6029 > fi
6030 > rm -f conftest.err conftest.$ac_ext
6031 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6032 > echo "${ECHO_T}$ac_header_preproc" >&6
6033 >
6034 > # So?  What about this header?
6035 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6036 >  yes:no: )
6037 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6038 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6039 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6040 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6041 >    ac_header_preproc=yes
6042 >    ;;
6043 >  no:yes:* )
6044 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6045 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6046 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6047 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6048 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6049 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6050 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6051 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6052 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6053 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6054 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6055 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6056 >    (
6057 >      cat <<\_ASBOX
6058 > ## ------------------------------ ##
6059 > ## Report this to gezelter@nd.edu ##
6060 > ## ------------------------------ ##
6061 > _ASBOX
6062 >    ) |
6063 >      sed "s/^/$as_me: WARNING:     /" >&2
6064 >    ;;
6065 > esac
6066 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6067 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6068 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6069 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6070 > else
6071 >  eval "$as_ac_Header=\$ac_header_preproc"
6072 > fi
6073 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6074 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6075 >
6076 > fi
6077 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6078 >  cat >>confdefs.h <<_ACEOF
6079 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6080 > _ACEOF
6081 >
6082 > fi
6083 >
6084 > done
6085 >
6086 > ac_ext=c
6087 > ac_cpp='$CPP $CPPFLAGS'
6088 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6091 >
6092 >
6093 >
6094 >
6095 > for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6096 > do
6097 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6098 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6099 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6100 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6101 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6102 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6103 > fi
6104 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6105 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6106 > else
6107 >  # Is the header compilable?
6108 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6109 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6110 > cat >conftest.$ac_ext <<_ACEOF
6111 > /* confdefs.h.  */
6112 > _ACEOF
6113 > cat confdefs.h >>conftest.$ac_ext
6114 > cat >>conftest.$ac_ext <<_ACEOF
6115 > /* end confdefs.h.  */
6116 > $ac_includes_default
6117 > #include <$ac_header>
6118 > _ACEOF
6119 > rm -f conftest.$ac_objext
6120 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6121 >  (eval $ac_compile) 2>conftest.er1
6122 >  ac_status=$?
6123 >  grep -v '^ *+' conftest.er1 >conftest.err
6124 >  rm -f conftest.er1
6125 >  cat conftest.err >&5
6126 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 >  (exit $ac_status); } &&
6128 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6129 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6130 >  (eval $ac_try) 2>&5
6131 >  ac_status=$?
6132 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 >  (exit $ac_status); }; } &&
6134 >         { ac_try='test -s conftest.$ac_objext'
6135 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 >  (eval $ac_try) 2>&5
6137 >  ac_status=$?
6138 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6139 >  (exit $ac_status); }; }; then
6140 >  ac_header_compiler=yes
6141 > else
6142 >  echo "$as_me: failed program was:" >&5
6143 > sed 's/^/| /' conftest.$ac_ext >&5
6144 >
6145 > ac_header_compiler=no
6146 > fi
6147 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6148 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6149 > echo "${ECHO_T}$ac_header_compiler" >&6
6150 >
6151 > # Is the header present?
6152 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6153 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6154 > cat >conftest.$ac_ext <<_ACEOF
6155 > /* confdefs.h.  */
6156 > _ACEOF
6157 > cat confdefs.h >>conftest.$ac_ext
6158 > cat >>conftest.$ac_ext <<_ACEOF
6159 > /* end confdefs.h.  */
6160 > #include <$ac_header>
6161 > _ACEOF
6162 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6163 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6164 >  ac_status=$?
6165 >  grep -v '^ *+' conftest.er1 >conftest.err
6166 >  rm -f conftest.er1
6167 >  cat conftest.err >&5
6168 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 >  (exit $ac_status); } >/dev/null; then
6170 >  if test -s conftest.err; then
6171 >    ac_cpp_err=$ac_c_preproc_warn_flag
6172 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6173 >  else
6174 >    ac_cpp_err=
6175 >  fi
6176 > else
6177 >  ac_cpp_err=yes
6178 > fi
6179 > if test -z "$ac_cpp_err"; then
6180 >  ac_header_preproc=yes
6181 > else
6182 >  echo "$as_me: failed program was:" >&5
6183 > sed 's/^/| /' conftest.$ac_ext >&5
6184 >
6185 >  ac_header_preproc=no
6186 > fi
6187 > rm -f conftest.err conftest.$ac_ext
6188 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6189 > echo "${ECHO_T}$ac_header_preproc" >&6
6190 >
6191 > # So?  What about this header?
6192 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6193 >  yes:no: )
6194 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6195 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6196 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6197 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6198 >    ac_header_preproc=yes
6199 >    ;;
6200 >  no:yes:* )
6201 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6202 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6203 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6204 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6205 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6206 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6207 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6208 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6209 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6210 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6211 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6212 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6213 >    (
6214 >      cat <<\_ASBOX
6215 > ## ------------------------------ ##
6216 > ## Report this to gezelter@nd.edu ##
6217 > ## ------------------------------ ##
6218 > _ASBOX
6219 >    ) |
6220 >      sed "s/^/$as_me: WARNING:     /" >&2
6221 >    ;;
6222 > esac
6223 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6224 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6225 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6226 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6227 > else
6228 >  eval "$as_ac_Header=\$ac_header_preproc"
6229 > fi
6230 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6232 >
6233 > fi
6234 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6235 >  cat >>confdefs.h <<_ACEOF
6236 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6237 > _ACEOF
6238 >
6239 > fi
6240 >
6241 > done
6242 >
6243 >
6244 >
6245 >
6246 >
6247 > for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
6248 > do
6249 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6251 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6252 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6253 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6254 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6255 > fi
6256 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6257 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6258 > else
6259 >  # Is the header compilable?
6260 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6261 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6262 > cat >conftest.$ac_ext <<_ACEOF
6263 > /* confdefs.h.  */
6264 > _ACEOF
6265 > cat confdefs.h >>conftest.$ac_ext
6266 > cat >>conftest.$ac_ext <<_ACEOF
6267 > /* end confdefs.h.  */
6268 > $ac_includes_default
6269 > #include <$ac_header>
6270 > _ACEOF
6271 > rm -f conftest.$ac_objext
6272 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 >  (eval $ac_compile) 2>conftest.er1
6274 >  ac_status=$?
6275 >  grep -v '^ *+' conftest.er1 >conftest.err
6276 >  rm -f conftest.er1
6277 >  cat conftest.err >&5
6278 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 >  (exit $ac_status); } &&
6280 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6281 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6282 >  (eval $ac_try) 2>&5
6283 >  ac_status=$?
6284 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 >  (exit $ac_status); }; } &&
6286 >         { ac_try='test -s conftest.$ac_objext'
6287 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6288 >  (eval $ac_try) 2>&5
6289 >  ac_status=$?
6290 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 >  (exit $ac_status); }; }; then
6292 >  ac_header_compiler=yes
6293 > else
6294 >  echo "$as_me: failed program was:" >&5
6295 > sed 's/^/| /' conftest.$ac_ext >&5
6296 >
6297 > ac_header_compiler=no
6298 > fi
6299 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6300 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 > echo "${ECHO_T}$ac_header_compiler" >&6
6302 >
6303 > # Is the header present?
6304 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6306 > cat >conftest.$ac_ext <<_ACEOF
6307 > /* confdefs.h.  */
6308 > _ACEOF
6309 > cat confdefs.h >>conftest.$ac_ext
6310 > cat >>conftest.$ac_ext <<_ACEOF
6311 > /* end confdefs.h.  */
6312 > #include <$ac_header>
6313 > _ACEOF
6314 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6315 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6316 >  ac_status=$?
6317 >  grep -v '^ *+' conftest.er1 >conftest.err
6318 >  rm -f conftest.er1
6319 >  cat conftest.err >&5
6320 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 >  (exit $ac_status); } >/dev/null; then
6322 >  if test -s conftest.err; then
6323 >    ac_cpp_err=$ac_c_preproc_warn_flag
6324 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6325 >  else
6326 >    ac_cpp_err=
6327 >  fi
6328 > else
6329 >  ac_cpp_err=yes
6330 > fi
6331 > if test -z "$ac_cpp_err"; then
6332 >  ac_header_preproc=yes
6333 > else
6334 >  echo "$as_me: failed program was:" >&5
6335 > sed 's/^/| /' conftest.$ac_ext >&5
6336 >
6337 >  ac_header_preproc=no
6338 > fi
6339 > rm -f conftest.err conftest.$ac_ext
6340 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6341 > echo "${ECHO_T}$ac_header_preproc" >&6
6342 >
6343 > # So?  What about this header?
6344 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6345 >  yes:no: )
6346 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6347 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6348 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6349 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6350 >    ac_header_preproc=yes
6351 >    ;;
6352 >  no:yes:* )
6353 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6354 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6355 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6356 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6357 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6358 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6359 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6360 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6361 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6362 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6364 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6365 >    (
6366 >      cat <<\_ASBOX
6367 > ## ------------------------------ ##
6368 > ## Report this to gezelter@nd.edu ##
6369 > ## ------------------------------ ##
6370 > _ASBOX
6371 >    ) |
6372 >      sed "s/^/$as_me: WARNING:     /" >&2
6373 >    ;;
6374 > esac
6375 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6377 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6378 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6379 > else
6380 >  eval "$as_ac_Header=\$ac_header_preproc"
6381 > fi
6382 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6383 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6384 >
6385 > fi
6386 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6387 >  cat >>confdefs.h <<_ACEOF
6388 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6389 > _ACEOF
6390 >
6391 > fi
6392 >
6393 > done
6394 >
6395 >
6396 > for ac_header in machine/hal_sysinfo.h
6397 > do
6398 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6399 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6400 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6401 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6402 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6403 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6404 > fi
6405 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6406 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6407 > else
6408 >  # Is the header compilable?
6409 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6410 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6411 > cat >conftest.$ac_ext <<_ACEOF
6412 > /* confdefs.h.  */
6413 > _ACEOF
6414 > cat confdefs.h >>conftest.$ac_ext
6415 > cat >>conftest.$ac_ext <<_ACEOF
6416 > /* end confdefs.h.  */
6417 > $ac_includes_default
6418 > #include <$ac_header>
6419 > _ACEOF
6420 > rm -f conftest.$ac_objext
6421 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6422 >  (eval $ac_compile) 2>conftest.er1
6423 >  ac_status=$?
6424 >  grep -v '^ *+' conftest.er1 >conftest.err
6425 >  rm -f conftest.er1
6426 >  cat conftest.err >&5
6427 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 >  (exit $ac_status); } &&
6429 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6430 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6431 >  (eval $ac_try) 2>&5
6432 >  ac_status=$?
6433 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 >  (exit $ac_status); }; } &&
6435 >         { ac_try='test -s conftest.$ac_objext'
6436 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 >  (eval $ac_try) 2>&5
6438 >  ac_status=$?
6439 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 >  (exit $ac_status); }; }; then
6441 >  ac_header_compiler=yes
6442 > else
6443 >  echo "$as_me: failed program was:" >&5
6444 > sed 's/^/| /' conftest.$ac_ext >&5
6445 >
6446 > ac_header_compiler=no
6447 > fi
6448 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6449 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6450 > echo "${ECHO_T}$ac_header_compiler" >&6
6451 >
6452 > # Is the header present?
6453 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6454 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6455 > cat >conftest.$ac_ext <<_ACEOF
6456 > /* confdefs.h.  */
6457 > _ACEOF
6458 > cat confdefs.h >>conftest.$ac_ext
6459 > cat >>conftest.$ac_ext <<_ACEOF
6460 > /* end confdefs.h.  */
6461 > #include <$ac_header>
6462 > _ACEOF
6463 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6464 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6465 >  ac_status=$?
6466 >  grep -v '^ *+' conftest.er1 >conftest.err
6467 >  rm -f conftest.er1
6468 >  cat conftest.err >&5
6469 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 >  (exit $ac_status); } >/dev/null; then
6471 >  if test -s conftest.err; then
6472 >    ac_cpp_err=$ac_c_preproc_warn_flag
6473 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6474 >  else
6475 >    ac_cpp_err=
6476 >  fi
6477 > else
6478 >  ac_cpp_err=yes
6479 > fi
6480 > if test -z "$ac_cpp_err"; then
6481 >  ac_header_preproc=yes
6482 > else
6483 >  echo "$as_me: failed program was:" >&5
6484 > sed 's/^/| /' conftest.$ac_ext >&5
6485 >
6486 >  ac_header_preproc=no
6487 > fi
6488 > rm -f conftest.err conftest.$ac_ext
6489 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6490 > echo "${ECHO_T}$ac_header_preproc" >&6
6491 >
6492 > # So?  What about this header?
6493 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6494 >  yes:no: )
6495 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6496 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6497 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6498 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6499 >    ac_header_preproc=yes
6500 >    ;;
6501 >  no:yes:* )
6502 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6503 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6504 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6505 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6506 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6507 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6508 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6509 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6510 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6511 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6512 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6513 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6514 >    (
6515 >      cat <<\_ASBOX
6516 > ## ------------------------------ ##
6517 > ## Report this to gezelter@nd.edu ##
6518 > ## ------------------------------ ##
6519 > _ASBOX
6520 >    ) |
6521 >      sed "s/^/$as_me: WARNING:     /" >&2
6522 >    ;;
6523 > esac
6524 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6525 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6526 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6527 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6528 > else
6529 >  eval "$as_ac_Header=\$ac_header_preproc"
6530 > fi
6531 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6532 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6533 >
6534 > fi
6535 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6536 >  cat >>confdefs.h <<_ACEOF
6537 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538 > _ACEOF
6539 >
6540 > fi
6541 >
6542 > done
6543 >
6544 >
6545 >
6546 >
6547 >
6548 > for ac_func in rint snprintf sranddev strncasecmp
6549 > do
6550 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6551 > echo "$as_me:$LINENO: checking for $ac_func" >&5
6552 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6553 > if eval "test \"\${$as_ac_var+set}\" = set"; then
6554 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6555 > else
6556 >  cat >conftest.$ac_ext <<_ACEOF
6557 > /* confdefs.h.  */
6558 > _ACEOF
6559 > cat confdefs.h >>conftest.$ac_ext
6560 > cat >>conftest.$ac_ext <<_ACEOF
6561 > /* end confdefs.h.  */
6562 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6563 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6564 > #define $ac_func innocuous_$ac_func
6565 >
6566 > /* System header to define __stub macros and hopefully few prototypes,
6567 >    which can conflict with char $ac_func (); below.
6568 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6569 >    <limits.h> exists even on freestanding compilers.  */
6570 >
6571 > #ifdef __STDC__
6572 > # include <limits.h>
6573 > #else
6574 > # include <assert.h>
6575 > #endif
6576 >
6577 > #undef $ac_func
6578 >
6579 > /* Override any gcc2 internal prototype to avoid an error.  */
6580 > #ifdef __cplusplus
6581 > extern "C"
6582 > {
6583 > #endif
6584 > /* We use char because int might match the return type of a gcc2
6585 >   builtin and then its argument prototype would still apply.  */
6586 > char $ac_func ();
6587 > /* The GNU C library defines this for functions which it implements
6588 >    to always fail with ENOSYS.  Some functions are actually named
6589 >    something starting with __ and the normal name is an alias.  */
6590 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6591 > choke me
6592 > #else
6593 > char (*f) () = $ac_func;
6594 > #endif
6595 > #ifdef __cplusplus
6596 > }
6597 > #endif
6598 >
6599 > int
6600 > main ()
6601 > {
6602 > return f != $ac_func;
6603 >  ;
6604 >  return 0;
6605 > }
6606 > _ACEOF
6607 > rm -f conftest.$ac_objext conftest$ac_exeext
6608 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6609 >  (eval $ac_link) 2>conftest.er1
6610 >  ac_status=$?
6611 >  grep -v '^ *+' conftest.er1 >conftest.err
6612 >  rm -f conftest.er1
6613 >  cat conftest.err >&5
6614 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 >  (exit $ac_status); } &&
6616 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6617 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6618 >  (eval $ac_try) 2>&5
6619 >  ac_status=$?
6620 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6621 >  (exit $ac_status); }; } &&
6622 >         { ac_try='test -s conftest$ac_exeext'
6623 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6624 >  (eval $ac_try) 2>&5
6625 >  ac_status=$?
6626 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 >  (exit $ac_status); }; }; then
6628 >  eval "$as_ac_var=yes"
6629 > else
6630 >  echo "$as_me: failed program was:" >&5
6631 > sed 's/^/| /' conftest.$ac_ext >&5
6632 >
6633 > eval "$as_ac_var=no"
6634 > fi
6635 > rm -f conftest.err conftest.$ac_objext \
6636 >      conftest$ac_exeext conftest.$ac_ext
6637 > fi
6638 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6639 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6640 > if test `eval echo '${'$as_ac_var'}'` = yes; then
6641 >  cat >>confdefs.h <<_ACEOF
6642 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6643 > _ACEOF
6644 >
6645 > fi
6646 > done
6647 >
6648 >
6649 >
6650 >
6651 >
6652 >
6653 > for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6654 > do
6655 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6656 > echo "$as_me:$LINENO: checking for $ac_func" >&5
6657 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6658 > if eval "test \"\${$as_ac_var+set}\" = set"; then
6659 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6660 > else
6661 >  cat >conftest.$ac_ext <<_ACEOF
6662 > /* confdefs.h.  */
6663 > _ACEOF
6664 > cat confdefs.h >>conftest.$ac_ext
6665 > cat >>conftest.$ac_ext <<_ACEOF
6666 > /* end confdefs.h.  */
6667 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6668 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6669 > #define $ac_func innocuous_$ac_func
6670 >
6671 > /* System header to define __stub macros and hopefully few prototypes,
6672 >    which can conflict with char $ac_func (); below.
6673 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6674 >    <limits.h> exists even on freestanding compilers.  */
6675 >
6676 > #ifdef __STDC__
6677 > # include <limits.h>
6678 > #else
6679 > # include <assert.h>
6680 > #endif
6681 >
6682 > #undef $ac_func
6683 >
6684 > /* Override any gcc2 internal prototype to avoid an error.  */
6685 > #ifdef __cplusplus
6686 > extern "C"
6687 > {
6688 > #endif
6689 > /* We use char because int might match the return type of a gcc2
6690 >   builtin and then its argument prototype would still apply.  */
6691 > char $ac_func ();
6692 > /* The GNU C library defines this for functions which it implements
6693 >    to always fail with ENOSYS.  Some functions are actually named
6694 >    something starting with __ and the normal name is an alias.  */
6695 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6696 > choke me
6697 > #else
6698 > char (*f) () = $ac_func;
6699 > #endif
6700 > #ifdef __cplusplus
6701 > }
6702 > #endif
6703 >
6704 > int
6705 > main ()
6706 > {
6707 > return f != $ac_func;
6708 >  ;
6709 >  return 0;
6710 > }
6711 > _ACEOF
6712 > rm -f conftest.$ac_objext conftest$ac_exeext
6713 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 >  (eval $ac_link) 2>conftest.er1
6715 >  ac_status=$?
6716 >  grep -v '^ *+' conftest.er1 >conftest.err
6717 >  rm -f conftest.er1
6718 >  cat conftest.err >&5
6719 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 >  (exit $ac_status); } &&
6721 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6722 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 >  (eval $ac_try) 2>&5
6724 >  ac_status=$?
6725 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 >  (exit $ac_status); }; } &&
6727 >         { ac_try='test -s conftest$ac_exeext'
6728 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 >  (eval $ac_try) 2>&5
6730 >  ac_status=$?
6731 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 >  (exit $ac_status); }; }; then
6733 >  eval "$as_ac_var=yes"
6734 > else
6735 >  echo "$as_me: failed program was:" >&5
6736 > sed 's/^/| /' conftest.$ac_ext >&5
6737 >
6738 > eval "$as_ac_var=no"
6739 > fi
6740 > rm -f conftest.err conftest.$ac_objext \
6741 >      conftest$ac_exeext conftest.$ac_ext
6742 > fi
6743 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6744 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6745 > if test `eval echo '${'$as_ac_var'}'` = yes; then
6746 >  cat >>confdefs.h <<_ACEOF
6747 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6748 > _ACEOF
6749 >
6750 > fi
6751 > done
6752 >
6753 > # special check for _system_configuration because AIX <4.3.2 do not
6754 > # contain the `physmem' member.
6755 > echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6756 > echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6757 > cat >conftest.$ac_ext <<_ACEOF
6758 > /* confdefs.h.  */
6759 > _ACEOF
6760 > cat confdefs.h >>conftest.$ac_ext
6761 > cat >>conftest.$ac_ext <<_ACEOF
6762 > /* end confdefs.h.  */
6763 > #include <sys/systemcfg.h>
6764 > int
6765 > main ()
6766 > {
6767 > double x = _system_configuration.physmem;
6768 >  ;
6769 >  return 0;
6770 > }
6771 > _ACEOF
6772 > rm -f conftest.$ac_objext
6773 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6774 >  (eval $ac_compile) 2>conftest.er1
6775 >  ac_status=$?
6776 >  grep -v '^ *+' conftest.er1 >conftest.err
6777 >  rm -f conftest.er1
6778 >  cat conftest.err >&5
6779 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 >  (exit $ac_status); } &&
6781 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6782 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 >  (eval $ac_try) 2>&5
6784 >  ac_status=$?
6785 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 >  (exit $ac_status); }; } &&
6787 >         { ac_try='test -s conftest.$ac_objext'
6788 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 >  (eval $ac_try) 2>&5
6790 >  ac_status=$?
6791 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 >  (exit $ac_status); }; }; then
6793 >  echo "$as_me:$LINENO: result: yes" >&5
6794 > echo "${ECHO_T}yes" >&6
6795 >
6796 > cat >>confdefs.h <<\_ACEOF
6797 > #define HAVE__SYSTEM_CONFIGURATION 1
6798 > _ACEOF
6799 >
6800 > else
6801 >  echo "$as_me: failed program was:" >&5
6802 > sed 's/^/| /' conftest.$ac_ext >&5
6803 >
6804 > echo "$as_me:$LINENO: result: no" >&5
6805 > echo "${ECHO_T}no" >&6
6806 > fi
6807 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6808 > echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6809 > echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6810 > if test "${ac_cv_header_time+set}" = set; then
6811 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6812 > else
6813 >  cat >conftest.$ac_ext <<_ACEOF
6814 > /* confdefs.h.  */
6815 > _ACEOF
6816 > cat confdefs.h >>conftest.$ac_ext
6817 > cat >>conftest.$ac_ext <<_ACEOF
6818 > /* end confdefs.h.  */
6819 > #include <sys/types.h>
6820 > #include <sys/time.h>
6821 > #include <time.h>
6822 >
6823 > int
6824 > main ()
6825 > {
6826 > if ((struct tm *) 0)
6827 > return 0;
6828 >  ;
6829 >  return 0;
6830 > }
6831 > _ACEOF
6832 > rm -f conftest.$ac_objext
6833 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6834 >  (eval $ac_compile) 2>conftest.er1
6835 >  ac_status=$?
6836 >  grep -v '^ *+' conftest.er1 >conftest.err
6837 >  rm -f conftest.er1
6838 >  cat conftest.err >&5
6839 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 >  (exit $ac_status); } &&
6841 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6842 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6843 >  (eval $ac_try) 2>&5
6844 >  ac_status=$?
6845 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6846 >  (exit $ac_status); }; } &&
6847 >         { ac_try='test -s conftest.$ac_objext'
6848 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6849 >  (eval $ac_try) 2>&5
6850 >  ac_status=$?
6851 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 >  (exit $ac_status); }; }; then
6853 >  ac_cv_header_time=yes
6854 > else
6855 >  echo "$as_me: failed program was:" >&5
6856 > sed 's/^/| /' conftest.$ac_ext >&5
6857 >
6858 > ac_cv_header_time=no
6859 > fi
6860 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6861 > fi
6862 > echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6863 > echo "${ECHO_T}$ac_cv_header_time" >&6
6864 > if test $ac_cv_header_time = yes; then
6865 >
6866 > cat >>confdefs.h <<\_ACEOF
6867 > #define TIME_WITH_SYS_TIME 1
6868 > _ACEOF
6869 >
6870 > fi
6871 >
6872 >
6873 > echo "$as_me:$LINENO: checking for clock_t" >&5
6874 > echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
6875 > if test "${ac_cv_type_clock_t+set}" = set; then
6876 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6877 > else
6878 >  cat >conftest.$ac_ext <<_ACEOF
6879 > /* confdefs.h.  */
6880 > _ACEOF
6881 > cat confdefs.h >>conftest.$ac_ext
6882 > cat >>conftest.$ac_ext <<_ACEOF
6883 > /* end confdefs.h.  */
6884 > $ac_includes_default
6885 > int
6886 > main ()
6887 > {
6888 > if ((clock_t *) 0)
6889 >  return 0;
6890 > if (sizeof (clock_t))
6891 >  return 0;
6892 >  ;
6893 >  return 0;
6894 > }
6895 > _ACEOF
6896 > rm -f conftest.$ac_objext
6897 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6898 >  (eval $ac_compile) 2>conftest.er1
6899 >  ac_status=$?
6900 >  grep -v '^ *+' conftest.er1 >conftest.err
6901 >  rm -f conftest.er1
6902 >  cat conftest.err >&5
6903 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 >  (exit $ac_status); } &&
6905 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6906 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 >  (eval $ac_try) 2>&5
6908 >  ac_status=$?
6909 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 >  (exit $ac_status); }; } &&
6911 >         { ac_try='test -s conftest.$ac_objext'
6912 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6913 >  (eval $ac_try) 2>&5
6914 >  ac_status=$?
6915 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 >  (exit $ac_status); }; }; then
6917 >  ac_cv_type_clock_t=yes
6918 > else
6919 >  echo "$as_me: failed program was:" >&5
6920 > sed 's/^/| /' conftest.$ac_ext >&5
6921 >
6922 > ac_cv_type_clock_t=no
6923 > fi
6924 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6925 > fi
6926 > echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
6927 > echo "${ECHO_T}$ac_cv_type_clock_t" >&6
6928 > if test $ac_cv_type_clock_t = yes; then
6929 >
6930 > cat >>confdefs.h <<_ACEOF
6931 > #define HAVE_CLOCK_T 1
6932 > _ACEOF
6933 >
6934 >
6935 > fi
6936 >
6937 > echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6938 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6939 > if test "${ac_cv_c_const+set}" = set; then
6940 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6941 > else
6942 >  cat >conftest.$ac_ext <<_ACEOF
6943 > /* confdefs.h.  */
6944 > _ACEOF
6945 > cat confdefs.h >>conftest.$ac_ext
6946 > cat >>conftest.$ac_ext <<_ACEOF
6947 > /* end confdefs.h.  */
6948 >
6949 > int
6950 > main ()
6951 > {
6952 > /* FIXME: Include the comments suggested by Paul. */
6953 > #ifndef __cplusplus
6954 >  /* Ultrix mips cc rejects this.  */
6955 >  typedef int charset[2];
6956 >  const charset x;
6957 >  /* SunOS 4.1.1 cc rejects this.  */
6958 >  char const *const *ccp;
6959 >  char **p;
6960 >  /* NEC SVR4.0.2 mips cc rejects this.  */
6961 >  struct point {int x, y;};
6962 >  static struct point const zero = {0,0};
6963 >  /* AIX XL C 1.02.0.0 rejects this.
6964 >     It does not let you subtract one const X* pointer from another in
6965 >     an arm of an if-expression whose if-part is not a constant
6966 >     expression */
6967 >  const char *g = "string";
6968 >  ccp = &g + (g ? g-g : 0);
6969 >  /* HPUX 7.0 cc rejects these. */
6970 >  ++ccp;
6971 >  p = (char**) ccp;
6972 >  ccp = (char const *const *) p;
6973 >  { /* SCO 3.2v4 cc rejects this.  */
6974 >    char *t;
6975 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
6976 >
6977 >    *t++ = 0;
6978 >  }
6979 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6980 >    int x[] = {25, 17};
6981 >    const int *foo = &x[0];
6982 >    ++foo;
6983 >  }
6984 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6985 >    typedef const int *iptr;
6986 >    iptr p = 0;
6987 >    ++p;
6988 >  }
6989 >  { /* AIX XL C 1.02.0.0 rejects this saying
6990 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6991 >    struct s { int j; const int *ap[3]; };
6992 >    struct s *b; b->j = 5;
6993 >  }
6994 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6995 >    const int foo = 10;
6996 >  }
6997 > #endif
6998 >
6999 >  ;
7000 >  return 0;
7001 > }
7002 > _ACEOF
7003 > rm -f conftest.$ac_objext
7004 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7005 >  (eval $ac_compile) 2>conftest.er1
7006 >  ac_status=$?
7007 >  grep -v '^ *+' conftest.er1 >conftest.err
7008 >  rm -f conftest.er1
7009 >  cat conftest.err >&5
7010 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 >  (exit $ac_status); } &&
7012 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7013 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 >  (eval $ac_try) 2>&5
7015 >  ac_status=$?
7016 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 >  (exit $ac_status); }; } &&
7018 >         { ac_try='test -s conftest.$ac_objext'
7019 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 >  (eval $ac_try) 2>&5
7021 >  ac_status=$?
7022 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 >  (exit $ac_status); }; }; then
7024 >  ac_cv_c_const=yes
7025 > else
7026 >  echo "$as_me: failed program was:" >&5
7027 > sed 's/^/| /' conftest.$ac_ext >&5
7028 >
7029 > ac_cv_c_const=no
7030 > fi
7031 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7032 > fi
7033 > echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7034 > echo "${ECHO_T}$ac_cv_c_const" >&6
7035 > if test $ac_cv_c_const = no; then
7036 >
7037 > cat >>confdefs.h <<\_ACEOF
7038 > #define const
7039 > _ACEOF
7040 >
7041 > fi
7042 >
7043 > echo "$as_me:$LINENO: checking for inline" >&5
7044 > echo $ECHO_N "checking for inline... $ECHO_C" >&6
7045 > if test "${ac_cv_c_inline+set}" = set; then
7046 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7047 > else
7048 >  ac_cv_c_inline=no
7049 > for ac_kw in inline __inline__ __inline; do
7050 >  cat >conftest.$ac_ext <<_ACEOF
7051 > /* confdefs.h.  */
7052 > _ACEOF
7053 > cat confdefs.h >>conftest.$ac_ext
7054 > cat >>conftest.$ac_ext <<_ACEOF
7055 > /* end confdefs.h.  */
7056 > #ifndef __cplusplus
7057 > typedef int foo_t;
7058 > static $ac_kw foo_t static_foo () {return 0; }
7059 > $ac_kw foo_t foo () {return 0; }
7060 > #endif
7061 >
7062 > _ACEOF
7063 > rm -f conftest.$ac_objext
7064 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 >  (eval $ac_compile) 2>conftest.er1
7066 >  ac_status=$?
7067 >  grep -v '^ *+' conftest.er1 >conftest.err
7068 >  rm -f conftest.er1
7069 >  cat conftest.err >&5
7070 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 >  (exit $ac_status); } &&
7072 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7073 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 >  (eval $ac_try) 2>&5
7075 >  ac_status=$?
7076 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 >  (exit $ac_status); }; } &&
7078 >         { ac_try='test -s conftest.$ac_objext'
7079 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7080 >  (eval $ac_try) 2>&5
7081 >  ac_status=$?
7082 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 >  (exit $ac_status); }; }; then
7084 >  ac_cv_c_inline=$ac_kw; break
7085 > else
7086 >  echo "$as_me: failed program was:" >&5
7087 > sed 's/^/| /' conftest.$ac_ext >&5
7088 >
7089 > fi
7090 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7091 > done
7092 >
7093 > fi
7094 > echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7095 > echo "${ECHO_T}$ac_cv_c_inline" >&6
7096 >
7097 >
7098 > case $ac_cv_c_inline in
7099 >  inline | yes) ;;
7100 >  *)
7101 >    case $ac_cv_c_inline in
7102 >      no) ac_val=;;
7103 >      *) ac_val=$ac_cv_c_inline;;
7104 >    esac
7105 >    cat >>confdefs.h <<_ACEOF
7106 > #ifndef __cplusplus
7107 > #define inline $ac_val
7108 > #endif
7109 > _ACEOF
7110 >    ;;
7111 > esac
7112 >
7113 >
7114 >
7115 >
7116 > for ac_func in rint sranddev
7117 > do
7118 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7119 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7120 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7121 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7122 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7123 > else
7124 >  cat >conftest.$ac_ext <<_ACEOF
7125 > /* confdefs.h.  */
7126 > _ACEOF
7127 > cat confdefs.h >>conftest.$ac_ext
7128 > cat >>conftest.$ac_ext <<_ACEOF
7129 > /* end confdefs.h.  */
7130 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7131 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7132 > #define $ac_func innocuous_$ac_func
7133 >
7134 > /* System header to define __stub macros and hopefully few prototypes,
7135 >    which can conflict with char $ac_func (); below.
7136 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7137 >    <limits.h> exists even on freestanding compilers.  */
7138 >
7139 > #ifdef __STDC__
7140 > # include <limits.h>
7141 > #else
7142 > # include <assert.h>
7143 > #endif
7144 >
7145 > #undef $ac_func
7146 >
7147 > /* Override any gcc2 internal prototype to avoid an error.  */
7148 > #ifdef __cplusplus
7149 > extern "C"
7150 > {
7151 > #endif
7152 > /* We use char because int might match the return type of a gcc2
7153 >   builtin and then its argument prototype would still apply.  */
7154 > char $ac_func ();
7155 > /* The GNU C library defines this for functions which it implements
7156 >    to always fail with ENOSYS.  Some functions are actually named
7157 >    something starting with __ and the normal name is an alias.  */
7158 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7159 > choke me
7160 > #else
7161 > char (*f) () = $ac_func;
7162 > #endif
7163 > #ifdef __cplusplus
7164 > }
7165 > #endif
7166 >
7167 > int
7168 > main ()
7169 > {
7170 > return f != $ac_func;
7171 >  ;
7172 >  return 0;
7173 > }
7174 > _ACEOF
7175 > rm -f conftest.$ac_objext conftest$ac_exeext
7176 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7177 >  (eval $ac_link) 2>conftest.er1
7178 >  ac_status=$?
7179 >  grep -v '^ *+' conftest.er1 >conftest.err
7180 >  rm -f conftest.er1
7181 >  cat conftest.err >&5
7182 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 >  (exit $ac_status); } &&
7184 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7185 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7186 >  (eval $ac_try) 2>&5
7187 >  ac_status=$?
7188 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 >  (exit $ac_status); }; } &&
7190 >         { ac_try='test -s conftest$ac_exeext'
7191 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 >  (eval $ac_try) 2>&5
7193 >  ac_status=$?
7194 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 >  (exit $ac_status); }; }; then
7196 >  eval "$as_ac_var=yes"
7197 > else
7198 >  echo "$as_me: failed program was:" >&5
7199 > sed 's/^/| /' conftest.$ac_ext >&5
7200 >
7201 > eval "$as_ac_var=no"
7202 > fi
7203 > rm -f conftest.err conftest.$ac_objext \
7204 >      conftest$ac_exeext conftest.$ac_ext
7205 > fi
7206 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7207 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7208 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7209 >  cat >>confdefs.h <<_ACEOF
7210 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7211 > _ACEOF
7212 >
7213 > fi
7214 > done
7215 >
7216 >
7217 >  # clean out junk possibly left behind by a previous configuration
7218 >  rm -f src/getopt.h
7219 >  # Check for getopt_long support
7220 >
7221 > for ac_header in getopt.h
7222 > do
7223 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7224 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7225 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
7226 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7227 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7228 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7229 > fi
7230 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7231 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7232 > else
7233 >  # Is the header compilable?
7234 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
7235 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7236 > cat >conftest.$ac_ext <<_ACEOF
7237 > /* confdefs.h.  */
7238 > _ACEOF
7239 > cat confdefs.h >>conftest.$ac_ext
7240 > cat >>conftest.$ac_ext <<_ACEOF
7241 > /* end confdefs.h.  */
7242 > $ac_includes_default
7243 > #include <$ac_header>
7244 > _ACEOF
7245 > rm -f conftest.$ac_objext
7246 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7247 >  (eval $ac_compile) 2>conftest.er1
7248 >  ac_status=$?
7249 >  grep -v '^ *+' conftest.er1 >conftest.err
7250 >  rm -f conftest.er1
7251 >  cat conftest.err >&5
7252 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 >  (exit $ac_status); } &&
7254 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7255 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 >  (eval $ac_try) 2>&5
7257 >  ac_status=$?
7258 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 >  (exit $ac_status); }; } &&
7260 >         { ac_try='test -s conftest.$ac_objext'
7261 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262 >  (eval $ac_try) 2>&5
7263 >  ac_status=$?
7264 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 >  (exit $ac_status); }; }; then
7266 >  ac_header_compiler=yes
7267 > else
7268 >  echo "$as_me: failed program was:" >&5
7269 > sed 's/^/| /' conftest.$ac_ext >&5
7270 >
7271 > ac_header_compiler=no
7272 > fi
7273 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7275 > echo "${ECHO_T}$ac_header_compiler" >&6
7276 >
7277 > # Is the header present?
7278 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
7279 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7280 > cat >conftest.$ac_ext <<_ACEOF
7281 > /* confdefs.h.  */
7282 > _ACEOF
7283 > cat confdefs.h >>conftest.$ac_ext
7284 > cat >>conftest.$ac_ext <<_ACEOF
7285 > /* end confdefs.h.  */
7286 > #include <$ac_header>
7287 > _ACEOF
7288 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7289 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7290 >  ac_status=$?
7291 >  grep -v '^ *+' conftest.er1 >conftest.err
7292 >  rm -f conftest.er1
7293 >  cat conftest.err >&5
7294 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 >  (exit $ac_status); } >/dev/null; then
7296 >  if test -s conftest.err; then
7297 >    ac_cpp_err=$ac_c_preproc_warn_flag
7298 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7299 >  else
7300 >    ac_cpp_err=
7301 >  fi
7302 > else
7303 >  ac_cpp_err=yes
7304 > fi
7305 > if test -z "$ac_cpp_err"; then
7306 >  ac_header_preproc=yes
7307 > else
7308 >  echo "$as_me: failed program was:" >&5
7309 > sed 's/^/| /' conftest.$ac_ext >&5
7310 >
7311 >  ac_header_preproc=no
7312 > fi
7313 > rm -f conftest.err conftest.$ac_ext
7314 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7315 > echo "${ECHO_T}$ac_header_preproc" >&6
7316 >
7317 > # So?  What about this header?
7318 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7319 >  yes:no: )
7320 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7321 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7322 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7323 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7324 >    ac_header_preproc=yes
7325 >    ;;
7326 >  no:yes:* )
7327 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7328 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7329 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7330 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7331 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7332 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7333 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7334 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7335 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7337 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7338 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7339 >    (
7340 >      cat <<\_ASBOX
7341 > ## ------------------------------ ##
7342 > ## Report this to gezelter@nd.edu ##
7343 > ## ------------------------------ ##
7344 > _ASBOX
7345 >    ) |
7346 >      sed "s/^/$as_me: WARNING:     /" >&2
7347 >    ;;
7348 > esac
7349 > echo "$as_me:$LINENO: checking for $ac_header" >&5
7350 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7351 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7352 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7353 > else
7354 >  eval "$as_ac_Header=\$ac_header_preproc"
7355 > fi
7356 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7357 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7358 >
7359 > fi
7360 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
7361 >  cat >>confdefs.h <<_ACEOF
7362 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7363 > _ACEOF
7364 >
7365 > fi
7366 >
7367 > done
7368 >
7369 >
7370 > for ac_func in getopt_long
7371 > do
7372 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7373 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7374 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7375 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7376 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7377 > else
7378 >  cat >conftest.$ac_ext <<_ACEOF
7379 > /* confdefs.h.  */
7380 > _ACEOF
7381 > cat confdefs.h >>conftest.$ac_ext
7382 > cat >>conftest.$ac_ext <<_ACEOF
7383 > /* end confdefs.h.  */
7384 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7385 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7386 > #define $ac_func innocuous_$ac_func
7387 >
7388 > /* System header to define __stub macros and hopefully few prototypes,
7389 >    which can conflict with char $ac_func (); below.
7390 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7391 >    <limits.h> exists even on freestanding compilers.  */
7392 >
7393 > #ifdef __STDC__
7394 > # include <limits.h>
7395 > #else
7396 > # include <assert.h>
7397 > #endif
7398 >
7399 > #undef $ac_func
7400 >
7401 > /* Override any gcc2 internal prototype to avoid an error.  */
7402 > #ifdef __cplusplus
7403 > extern "C"
7404 > {
7405 > #endif
7406 > /* We use char because int might match the return type of a gcc2
7407 >   builtin and then its argument prototype would still apply.  */
7408 > char $ac_func ();
7409 > /* The GNU C library defines this for functions which it implements
7410 >    to always fail with ENOSYS.  Some functions are actually named
7411 >    something starting with __ and the normal name is an alias.  */
7412 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7413 > choke me
7414 > #else
7415 > char (*f) () = $ac_func;
7416 > #endif
7417 > #ifdef __cplusplus
7418 > }
7419 > #endif
7420 >
7421 > int
7422 > main ()
7423 > {
7424 > return f != $ac_func;
7425 >  ;
7426 >  return 0;
7427 > }
7428 > _ACEOF
7429 > rm -f conftest.$ac_objext conftest$ac_exeext
7430 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7431 >  (eval $ac_link) 2>conftest.er1
7432 >  ac_status=$?
7433 >  grep -v '^ *+' conftest.er1 >conftest.err
7434 >  rm -f conftest.er1
7435 >  cat conftest.err >&5
7436 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 >  (exit $ac_status); } &&
7438 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7439 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 >  (eval $ac_try) 2>&5
7441 >  ac_status=$?
7442 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 >  (exit $ac_status); }; } &&
7444 >         { ac_try='test -s conftest$ac_exeext'
7445 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 >  (eval $ac_try) 2>&5
7447 >  ac_status=$?
7448 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 >  (exit $ac_status); }; }; then
7450 >  eval "$as_ac_var=yes"
7451 > else
7452 >  echo "$as_me: failed program was:" >&5
7453 > sed 's/^/| /' conftest.$ac_ext >&5
7454 >
7455 > eval "$as_ac_var=no"
7456 > fi
7457 > rm -f conftest.err conftest.$ac_objext \
7458 >      conftest$ac_exeext conftest.$ac_ext
7459 > fi
7460 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7461 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7462 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7463 >  cat >>confdefs.h <<_ACEOF
7464 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7465 > _ACEOF
7466 >
7467 > else
7468 >  # FreeBSD has a gnugetopt library for this
7469 >    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
7470 > echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
7471 > if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
7472 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7473 > else
7474 >  ac_check_lib_save_LIBS=$LIBS
7475 > LIBS="-lgnugetopt  $LIBS"
7476 > cat >conftest.$ac_ext <<_ACEOF
7477 > /* confdefs.h.  */
7478 > _ACEOF
7479 > cat confdefs.h >>conftest.$ac_ext
7480 > cat >>conftest.$ac_ext <<_ACEOF
7481 > /* end confdefs.h.  */
7482 >
7483 > /* Override any gcc2 internal prototype to avoid an error.  */
7484 > #ifdef __cplusplus
7485 > extern "C"
7486 > #endif
7487 > /* We use char because int might match the return type of a gcc2
7488 >   builtin and then its argument prototype would still apply.  */
7489 > char getopt_long ();
7490 > int
7491 > main ()
7492 > {
7493 > getopt_long ();
7494 >  ;
7495 >  return 0;
7496 > }
7497 > _ACEOF
7498 > rm -f conftest.$ac_objext conftest$ac_exeext
7499 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500 >  (eval $ac_link) 2>conftest.er1
7501 >  ac_status=$?
7502 >  grep -v '^ *+' conftest.er1 >conftest.err
7503 >  rm -f conftest.er1
7504 >  cat conftest.err >&5
7505 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 >  (exit $ac_status); } &&
7507 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7508 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7509 >  (eval $ac_try) 2>&5
7510 >  ac_status=$?
7511 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 >  (exit $ac_status); }; } &&
7513 >         { ac_try='test -s conftest$ac_exeext'
7514 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7515 >  (eval $ac_try) 2>&5
7516 >  ac_status=$?
7517 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 >  (exit $ac_status); }; }; then
7519 >  ac_cv_lib_gnugetopt_getopt_long=yes
7520 > else
7521 >  echo "$as_me: failed program was:" >&5
7522 > sed 's/^/| /' conftest.$ac_ext >&5
7523 >
7524 > ac_cv_lib_gnugetopt_getopt_long=no
7525 > fi
7526 > rm -f conftest.err conftest.$ac_objext \
7527 >      conftest$ac_exeext conftest.$ac_ext
7528 > LIBS=$ac_check_lib_save_LIBS
7529 > fi
7530 > echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
7531 > echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
7532 > if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
7533 >  cat >>confdefs.h <<\_ACEOF
7534 > #define HAVE_GETOPT_LONG 1
7535 > _ACEOF
7536 >
7537 > else
7538 >  # use the GNU replacement
7539 >      case $LIBOBJS in
7540 >    "getopt.$ac_objext"   | \
7541 >  *" getopt.$ac_objext"   | \
7542 >    "getopt.$ac_objext "* | \
7543 >  *" getopt.$ac_objext "* ) ;;
7544 >  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
7545 > esac
7546 >
7547 >      case $LIBOBJS in
7548 >    "getopt1.$ac_objext"   | \
7549 >  *" getopt1.$ac_objext"   | \
7550 >    "getopt1.$ac_objext "* | \
7551 >  *" getopt1.$ac_objext "* ) ;;
7552 >  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
7553 > esac
7554 >
7555 >                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
7556 >
7557 > fi
7558 >
7559 > fi
7560 > done
7561 >
7562 >
7563 >
7564 > case $debug in
7565 >  1)
7566 >     ;;
7567 >  *)
7568 >
7569 >
7570 >
7571 >
7572 >
7573 >
7574 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
7575 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
7576 > if test "${ac_cv_prog_really_gcc+set}" = set; then
7577 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7578 > else
7579 >
7580 > cat > conftest.c <<EOF
7581 > #ifdef __GNUC__
7582 >  #ifndef __INTEL_COMPILER
7583 >     yes;
7584 >  #endif
7585 > #endif
7586 > EOF
7587 > if { ac_try='${CC-cc} -E conftest.c'
7588 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 >  (eval $ac_try) 2>&5
7590 >  ac_status=$?
7591 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7592 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7593 >  ac_cv_prog_really_gcc=yes
7594 > else
7595 >  ac_cv_prog_really_gcc=no
7596 > fi
7597 >
7598 > fi
7599 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
7600 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
7601 > if test "$ac_cv_prog_really_gcc" = yes; then
7602 >        :
7603 >
7604 > else
7605 >        :
7606 >
7607 > fi
7608 >
7609 >
7610 > # Try to determine "good" native compiler flags if none specified on command
7611 > # line
7612   if test "$ac_test_CFLAGS" != "set"; then
7613    CFLAGS=""
7614    case "${host_cpu}-${host_os}" in
# Line 6973 | Line 8910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910    cat conftest.err >&5
8911    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912    (exit $ac_status); } &&
8913 <         { ac_try='test -z "$ac_c_werror_flag"
6977 <                         || test ! -s conftest.err'
8913 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8914    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8915    (eval $ac_try) 2>&5
8916    ac_status=$?
# Line 7040 | Line 8976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8976    cat conftest.err >&5
8977    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978    (exit $ac_status); } &&
8979 <         { ac_try='test -z "$ac_c_werror_flag"
7044 <                         || test ! -s conftest.err'
8979 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8980    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981    (eval $ac_try) 2>&5
8982    ac_status=$?
# Line 7130 | Line 9065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065    cat conftest.err >&5
9066    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067    (exit $ac_status); } &&
9068 <         { ac_try='test -z "$ac_c_werror_flag"
7134 <                         || test ! -s conftest.err'
9068 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9069    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070    (eval $ac_try) 2>&5
9071    ac_status=$?
# Line 7456 | Line 9390 | cat >>confdefs.h <<_ACEOF
9390  
9391   cat >>confdefs.h <<_ACEOF
9392   #define PSCOMMAND $PS
9393 + _ACEOF
9394 +
9395 +
9396 + cat >>confdefs.h <<\_ACEOF
9397 + #define OBAPI
9398   _ACEOF
9399  
9400  
9401 +
9402   if test "$ac_cv_prog_ps_syntax" = BSD; then
9403    cat >>confdefs.h <<\_ACEOF
9404   #define PSTYPE_IS_BSD 1
# Line 7506 | Line 9446 | have_mpi_h=0
9446   echo "$as_me:$LINENO: checking for mpi.h" >&5
9447   echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
9448   have_mpi_h=0
9449 + rm -f conftest*
9450   echo '#include <mpi.h>' > conftest.cc
9451 < if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
9451 > if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
9452          echo "$as_me:$LINENO: result: yes" >&5
9453   echo "${ECHO_T}yes" >&6
9454          have_mpi_h=1
9455   else
9456 +        if test -s conftest.out ; then
9457 +                cat conftest.out >> config.log
9458 +        fi
9459          echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9460   echo "${ECHO_T}no! Check MPI include paths" >&6
9461          USE_MPI="no"
# Line 7605 | Line 9549 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9549    cat conftest.err >&5
9550    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551    (exit $ac_status); } &&
9552 <         { ac_try='test -z "$ac_c_werror_flag"
7609 <                         || test ! -s conftest.err'
9552 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9553    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554    (eval $ac_try) 2>&5
9555    ac_status=$?
# Line 7675 | Line 9618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618    cat conftest.err >&5
9619    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620    (exit $ac_status); } &&
9621 <         { ac_try='test -z "$ac_c_werror_flag"
7679 <                         || test ! -s conftest.err'
9621 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9622    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623    (eval $ac_try) 2>&5
9624    ac_status=$?
# Line 7746 | Line 9688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688    cat conftest.err >&5
9689    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9690    (exit $ac_status); } &&
9691 <         { ac_try='test -z "$ac_c_werror_flag"
7750 <                         || test ! -s conftest.err'
9691 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9692    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9693    (eval $ac_try) 2>&5
9694    ac_status=$?
# Line 7817 | Line 9758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9758    cat conftest.err >&5
9759    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760    (exit $ac_status); } &&
9761 <         { ac_try='test -z "$ac_c_werror_flag"
7821 <                         || test ! -s conftest.err'
9761 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9762    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763    (eval $ac_try) 2>&5
9764    ac_status=$?
# Line 7889 | Line 9829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9829    cat conftest.err >&5
9830    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831    (exit $ac_status); } &&
9832 <         { ac_try='test -z "$ac_c_werror_flag"
7893 <                         || test ! -s conftest.err'
9832 >         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9833    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834    (eval $ac_try) 2>&5
9835    ac_status=$?
# Line 7964 | Line 9903 | if test "x$cgal_makefile" != xno; then
9903      cgal_makefile="$CGAL_MAKEFILE"
9904    fi
9905  
9906 <  echo "cgal_makefile      $cgal_makefile"
9906 >  echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
9907 > echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
9908  
9909    if test -f "$cgal_makefile"; then
9910  
# Line 8026 | Line 9966 | EOF
9966        GMP_RLIBDIR=""
9967      fi
9968  
9969 <    echo "CGAL_OS_COMPILER   $CGAL_OS_COMPILER"
9970 <    echo "CGAL_INCLDIR       $CGAL_INCLDIR"
9971 <    echo "CGAL_INCLCONFDIR   $CGAL_INCLCONFDIR"
9972 <    echo "CGAL_LIBDIR        $CGAL_LIBDIR"
9973 <    echo "CGAL_CXXFLAGS      $CGAL_CXXFLAGS"
9974 <    echo "LEDA_INCLDIR       $LEDA_INCLDIR"
9975 <    echo "LEDA_LIBDIR        $LEDA_LIBDIR"
9976 <    echo "GMP_INCLDIR        $GMP_INCLDIR"
9977 <    echo "GMP_LIBDIR         $GMP_LIBDIR"
9969 >    echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5
9970 > echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6
9971 >    echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5
9972 > echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6
9973 >    echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5
9974 > echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6
9975 >    echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5
9976 > echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6
9977 >    echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5
9978 > echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6
9979 >    echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5
9980 > echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6
9981 >    echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5
9982 > echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6
9983 >    echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5
9984 > echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6
9985 >    echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5
9986 > echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6
9987  
9988      ac_ext=cc
9989   ac_cpp='$CXXCPP $CPPFLAGS'
# Line 8044 | Line 9993 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9993  
9994      save_CXXFLAGS="$CXXFLAGS"
9995      CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
9996 <
8048 < ac_ext=cc
8049 < ac_cpp='$CXXCPP $CPPFLAGS'
8050 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8051 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8052 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8053 < echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8054 < echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8055 < if test -z "$CXXCPP"; then
8056 <  if test "${ac_cv_prog_CXXCPP+set}" = set; then
8057 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8058 < else
8059 <      # Double quotes because CXXCPP needs to be expanded
8060 <    for CXXCPP in "$CXX -E" "/lib/cpp"
8061 <    do
8062 <      ac_preproc_ok=false
8063 < for ac_cxx_preproc_warn_flag in '' yes
8064 < do
8065 <  # Use a header file that comes with gcc, so configuring glibc
8066 <  # with a fresh cross-compiler works.
8067 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8068 <  # <limits.h> exists even on freestanding compilers.
8069 <  # On the NeXT, cc -E runs the code through the compiler's parser,
8070 <  # not just through cpp. "Syntax error" is here to catch this case.
8071 <  cat >conftest.$ac_ext <<_ACEOF
8072 < /* confdefs.h.  */
8073 < _ACEOF
8074 < cat confdefs.h >>conftest.$ac_ext
8075 < cat >>conftest.$ac_ext <<_ACEOF
8076 < /* end confdefs.h.  */
8077 < #ifdef __STDC__
8078 < # include <limits.h>
8079 < #else
8080 < # include <assert.h>
8081 < #endif
8082 <                     Syntax error
8083 < _ACEOF
8084 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8085 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8086 <  ac_status=$?
8087 <  grep -v '^ *+' conftest.er1 >conftest.err
8088 <  rm -f conftest.er1
8089 <  cat conftest.err >&5
8090 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 <  (exit $ac_status); } >/dev/null; then
8092 <  if test -s conftest.err; then
8093 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
8094 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8095 <  else
8096 <    ac_cpp_err=
8097 <  fi
8098 < else
8099 <  ac_cpp_err=yes
8100 < fi
8101 < if test -z "$ac_cpp_err"; then
8102 <  :
8103 < else
8104 <  echo "$as_me: failed program was:" >&5
8105 < sed 's/^/| /' conftest.$ac_ext >&5
8106 <
8107 <  # Broken: fails on valid input.
8108 < continue
8109 < fi
8110 < rm -f conftest.err conftest.$ac_ext
8111 <
8112 <  # OK, works on sane cases.  Now check whether non-existent headers
8113 <  # can be detected and how.
8114 <  cat >conftest.$ac_ext <<_ACEOF
8115 < /* confdefs.h.  */
8116 < _ACEOF
8117 < cat confdefs.h >>conftest.$ac_ext
8118 < cat >>conftest.$ac_ext <<_ACEOF
8119 < /* end confdefs.h.  */
8120 < #include <ac_nonexistent.h>
8121 < _ACEOF
8122 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8123 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8124 <  ac_status=$?
8125 <  grep -v '^ *+' conftest.er1 >conftest.err
8126 <  rm -f conftest.er1
8127 <  cat conftest.err >&5
8128 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 <  (exit $ac_status); } >/dev/null; then
8130 <  if test -s conftest.err; then
8131 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
8132 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8133 <  else
8134 <    ac_cpp_err=
8135 <  fi
8136 < else
8137 <  ac_cpp_err=yes
8138 < fi
8139 < if test -z "$ac_cpp_err"; then
8140 <  # Broken: success on invalid input.
8141 < continue
8142 < else
8143 <  echo "$as_me: failed program was:" >&5
8144 < sed 's/^/| /' conftest.$ac_ext >&5
8145 <
8146 <  # Passes both tests.
8147 < ac_preproc_ok=:
8148 < break
8149 < fi
8150 < rm -f conftest.err conftest.$ac_ext
8151 <
8152 < done
8153 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8154 < rm -f conftest.err conftest.$ac_ext
8155 < if $ac_preproc_ok; then
8156 <  break
8157 < fi
8158 <
8159 <    done
8160 <    ac_cv_prog_CXXCPP=$CXXCPP
8161 <
8162 < fi
8163 <  CXXCPP=$ac_cv_prog_CXXCPP
8164 < else
8165 <  ac_cv_prog_CXXCPP=$CXXCPP
8166 < fi
8167 < echo "$as_me:$LINENO: result: $CXXCPP" >&5
8168 < echo "${ECHO_T}$CXXCPP" >&6
8169 < ac_preproc_ok=false
8170 < for ac_cxx_preproc_warn_flag in '' yes
8171 < do
8172 <  # Use a header file that comes with gcc, so configuring glibc
8173 <  # with a fresh cross-compiler works.
8174 <  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8175 <  # <limits.h> exists even on freestanding compilers.
8176 <  # On the NeXT, cc -E runs the code through the compiler's parser,
8177 <  # not just through cpp. "Syntax error" is here to catch this case.
8178 <  cat >conftest.$ac_ext <<_ACEOF
8179 < /* confdefs.h.  */
8180 < _ACEOF
8181 < cat confdefs.h >>conftest.$ac_ext
8182 < cat >>conftest.$ac_ext <<_ACEOF
8183 < /* end confdefs.h.  */
8184 < #ifdef __STDC__
8185 < # include <limits.h>
8186 < #else
8187 < # include <assert.h>
8188 < #endif
8189 <                     Syntax error
8190 < _ACEOF
8191 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8192 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8193 <  ac_status=$?
8194 <  grep -v '^ *+' conftest.er1 >conftest.err
8195 <  rm -f conftest.er1
8196 <  cat conftest.err >&5
8197 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 <  (exit $ac_status); } >/dev/null; then
8199 <  if test -s conftest.err; then
8200 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
8201 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8202 <  else
8203 <    ac_cpp_err=
8204 <  fi
8205 < else
8206 <  ac_cpp_err=yes
8207 < fi
8208 < if test -z "$ac_cpp_err"; then
8209 <  :
8210 < else
8211 <  echo "$as_me: failed program was:" >&5
8212 < sed 's/^/| /' conftest.$ac_ext >&5
8213 <
8214 <  # Broken: fails on valid input.
8215 < continue
8216 < fi
8217 < rm -f conftest.err conftest.$ac_ext
8218 <
8219 <  # OK, works on sane cases.  Now check whether non-existent headers
8220 <  # can be detected and how.
8221 <  cat >conftest.$ac_ext <<_ACEOF
8222 < /* confdefs.h.  */
8223 < _ACEOF
8224 < cat confdefs.h >>conftest.$ac_ext
8225 < cat >>conftest.$ac_ext <<_ACEOF
8226 < /* end confdefs.h.  */
8227 < #include <ac_nonexistent.h>
8228 < _ACEOF
8229 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8230 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8231 <  ac_status=$?
8232 <  grep -v '^ *+' conftest.er1 >conftest.err
8233 <  rm -f conftest.er1
8234 <  cat conftest.err >&5
8235 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 <  (exit $ac_status); } >/dev/null; then
8237 <  if test -s conftest.err; then
8238 <    ac_cpp_err=$ac_cxx_preproc_warn_flag
8239 <    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8240 <  else
8241 <    ac_cpp_err=
8242 <  fi
8243 < else
8244 <  ac_cpp_err=yes
8245 < fi
8246 < if test -z "$ac_cpp_err"; then
8247 <  # Broken: success on invalid input.
8248 < continue
8249 < else
8250 <  echo "$as_me: failed program was:" >&5
8251 < sed 's/^/| /' conftest.$ac_ext >&5
8252 <
8253 <  # Passes both tests.
8254 < ac_preproc_ok=:
8255 < break
8256 < fi
8257 < rm -f conftest.err conftest.$ac_ext
8258 <
8259 < done
8260 < # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8261 < rm -f conftest.err conftest.$ac_ext
8262 < if $ac_preproc_ok; then
8263 <  :
8264 < else
8265 <  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8266 < See \`config.log' for more details." >&5
8267 < echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8268 < See \`config.log' for more details." >&2;}
8269 <   { (exit 1); exit 1; }; }
8270 < fi
8271 <
8272 < ac_ext=cc
8273 < ac_cpp='$CXXCPP $CPPFLAGS'
8274 < ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8275 < ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8276 < ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8277 <
8278 <
8279 < if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9996 >    if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9997    echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
9998   echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
9999   if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
# Line 8306 | Line 10023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10023    cat conftest.err >&5
10024    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025    (exit $ac_status); } &&
10026 <         { ac_try='test -z "$ac_cxx_werror_flag"
8310 <                         || test ! -s conftest.err'
10026 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10027    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028    (eval $ac_try) 2>&5
10029    ac_status=$?
# Line 8474 | Line 10190 | echo "${ECHO_T}no" >&6
10190  
10191        CGAL_CXXFLAGS="-ftemplate-depth-50"
10192  
10193 <      echo "CGAL_USES_LEDA     $CGAL_USES_LEDA"
10194 <      echo "CGAL_USES_GMP      $CGAL_USES_GMP"
10195 <      echo "CGAL_INCLDIR       $CGAL_INCLDIR"
10196 <      echo "CGAL_LIBDIR        $CGAL_LIBDIR"
10197 <      echo "CGAL_DEFINES       $CGAL_DEFINES"
10198 <      echo "CGAL_CXXFLAGS      $CGAL_CXXFLAGS"
10199 <      echo "CGAL_LIBS          $CGAL_LIBS"
10193 >      echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5
10194 > echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6
10195 >      echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5
10196 > echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6
10197 >      echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5
10198 > echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6
10199 >      echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5
10200 > echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6
10201 >      echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5
10202 > echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6
10203 >      echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5
10204 > echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6
10205 >      echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5
10206 > echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6
10207      fi
10208  
10209      if test "x$cgal" = xyes; then
# Line 8522 | Line 10245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10245    cat conftest.err >&5
10246    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247    (exit $ac_status); } &&
10248 <         { ac_try='test -z "$ac_cxx_werror_flag"
8526 <                         || test ! -s conftest.err'
10248 >         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
10249    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250    (eval $ac_try) 2>&5
10251    ac_status=$?
# Line 8587 | Line 10309 | else
10309    fi
10310   else
10311     if test "x$cgal_makefile" != xno; then
10312 <    { echo "$as_me:$LINENO: WARNING: *********************************************************" >&5
10313 < echo "$as_me: WARNING: *********************************************************" >&2;}
8592 <    { echo "$as_me:$LINENO: WARNING: *** Warning: CGAL was not found.                      ***" >&5
8593 < echo "$as_me: WARNING: *** Warning: CGAL was not found.                      ***" >&2;}
8594 <    { echo "$as_me:$LINENO: WARNING: *** Run \"configure\" with the appropriate options.     ***" >&5
8595 < echo "$as_me: WARNING: *** Run \"configure\" with the appropriate options.     ***" >&2;}
8596 <    { echo "$as_me:$LINENO: WARNING: *** CGAL support will be disabled.                    ***" >&5
8597 < echo "$as_me: WARNING: *** CGAL support will be disabled.                    ***" >&2;}
8598 <    { echo "$as_me:$LINENO: WARNING: *********************************************************" >&5
8599 < echo "$as_me: WARNING: *********************************************************" >&2;}
10312 >    echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
10313 > echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
10314    fi
10315    CGAL_INCLDIR=
10316    CGAL_LIBDIR=
# Line 9478 | Line 11192 | s,@EGREP@,$EGREP,;t t
11192   s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
11193   s,@CPP@,$CPP,;t t
11194   s,@EGREP@,$EGREP,;t t
11195 + s,@CXXCPP@,$CXXCPP,;t t
11196   s,@LIBOBJS@,$LIBOBJS,;t t
11197   s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11198   s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
# Line 9500 | Line 11215 | s,@USE_MPI@,$USE_MPI,;t t
11215   s,@MPI_LIB@,$MPI_LIB,;t t
11216   s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
11217   s,@USE_MPI@,$USE_MPI,;t t
9503 s,@CXXCPP@,$CXXCPP,;t t
11218   s,@USE_CGAL@,$USE_CGAL,;t t
11219   s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
11220   s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
# Line 9687 | Line 11401 | esac
11401    *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11402    esac
11403  
9690  if test x"$ac_file" != x-; then
9691    { echo "$as_me:$LINENO: creating $ac_file" >&5
9692 echo "$as_me: creating $ac_file" >&6;}
9693    rm -f "$ac_file"
9694  fi
11404    # Let's still pretend it is `configure' which instantiates (i.e., don't
11405    # use $as_me), people would be surprised to read:
11406    #    /* config.h.  Generated by config.status.  */
# Line 9730 | Line 11439 | echo "$as_me: error: cannot find input file: $f" >&2;}
11439           fi;;
11440        esac
11441      done` || { (exit 1); exit 1; }
11442 +
11443 +  if test x"$ac_file" != x-; then
11444 +    { echo "$as_me:$LINENO: creating $ac_file" >&5
11445 + echo "$as_me: creating $ac_file" >&6;}
11446 +    rm -f "$ac_file"
11447 +  fi
11448   _ACEOF
11449   cat >>$CONFIG_STATUS <<_ACEOF
11450    sed "$ac_vpsub

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines