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 314 by tim, Fri Feb 11 22:37:36 2005 UTC vs.
Revision 754 by gezelter, Thu Nov 17 20:39:59 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 AR MPI_LIB_DIR MPI_INC_DIR MPI_F90_INC MPI_LIB MPI_F90_LIB USE_MPI SPRNG_LIB_DIR SPRNG_INC_DIR SPRNG_LIB USE_SPRNG MKL_LIBDIR MKL_LIB MKL_INC HAVE_MKL 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 789 | Line 789 | ac_cv_env_CPP_value=$CPP
789   ac_env_CPP_value=$CPP
790   ac_cv_env_CPP_set=${CPP+set}
791   ac_cv_env_CPP_value=$CPP
792 + ac_env_CXXCPP_set=${CXXCPP+set}
793 + ac_env_CXXCPP_value=$CXXCPP
794 + ac_cv_env_CXXCPP_set=${CXXCPP+set}
795 + ac_cv_env_CXXCPP_value=$CXXCPP
796  
797   #
798   # Report the --help message.
# Line 875 | 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]
888 <  --with-sprng=<prefix>   compile with SPRNG installed in <prefix>
880 <                          [default=/usr/local]
881 <  --with-mkl              Do we want MKL will check /usr/local/intel/mkl61 /opt/intel/mkl61
888 >  --with-cgal-makefile=FILE  CGAL makefile that should be used
889  
890   Some influential environment variables:
891    CC          C compiler command
# Line 892 | Line 899 | Some influential environment variables:
899    F90         Fortran 90 compiler command
900    F90FLAGS    Fortran 90 compiler flags
901    CPP         C preprocessor
902 +  CXXCPP      C++ preprocessor
903  
904   Use these variables to override the choices made by `configure' or to help
905   it to find libraries and programs with nonstandard names/locations.
# Line 1877 | Line 1885 | ac_configure="$SHELL $ac_aux_dir/configure" # This sho
1885  
1886  
1887  
1888 + #
1889 + #
1890 + #
1891 +
1892 +
1893  
1894  
1895  
# Line 3542 | Line 3555 | F90FLAGS="$F90FLAGS $ac_verb"
3555   ac_save_F90FLAGS=$F90FLAGS
3556   F90FLAGS="$F90FLAGS $ac_verb"
3557  
3558 < (eval echo $as_me:3545: \"$ac_link\") >&5
3558 > (eval echo $as_me:3558: \"$ac_link\") >&5
3559   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3560   echo "$ac_f90_v_output" >&5
3561   F90FLAGS=$ac_save_F90FLAGS
# Line 3619 | Line 3632 | F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3632   ac_save_F90FLAGS=$F90FLAGS
3633   F90FLAGS="$F90FLAGS $ac_cv_prog_f90_v"
3634  
3635 < (eval echo $as_me:3622: \"$ac_link\") >&5
3635 > (eval echo $as_me:3635: \"$ac_link\") >&5
3636   ac_f90_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
3637   echo "$ac_f90_v_output" >&5
3638   F90FLAGS=$ac_save_F90FLAGS
# Line 4451 | Line 4464 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
4464   ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465  
4466  
4467 + ac_ext=cc
4468 + ac_cpp='$CXXCPP $CPPFLAGS'
4469 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4470 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4471 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4472 +
4473 +
4474 +
4475 + echo "$as_me:$LINENO: checking for asin in -lm" >&5
4476 + echo $ECHO_N "checking for asin in -lm... $ECHO_C" >&6
4477 + if test "${ac_cv_lib_m_asin+set}" = set; then
4478 +  echo $ECHO_N "(cached) $ECHO_C" >&6
4479 + else
4480 +  ac_check_lib_save_LIBS=$LIBS
4481 + LIBS="-lm  $LIBS"
4482 + cat >conftest.$ac_ext <<_ACEOF
4483 + /* confdefs.h.  */
4484 + _ACEOF
4485 + cat confdefs.h >>conftest.$ac_ext
4486 + cat >>conftest.$ac_ext <<_ACEOF
4487 + /* end confdefs.h.  */
4488 +
4489 + /* Override any gcc2 internal prototype to avoid an error.  */
4490 + #ifdef __cplusplus
4491 + extern "C"
4492 + #endif
4493 + /* We use char because int might match the return type of a gcc2
4494 +   builtin and then its argument prototype would still apply.  */
4495 + char asin ();
4496 + int
4497 + main ()
4498 + {
4499 + asin ();
4500 +  ;
4501 +  return 0;
4502 + }
4503 + _ACEOF
4504 + rm -f conftest.$ac_objext conftest$ac_exeext
4505 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 +  (eval $ac_link) 2>conftest.er1
4507 +  ac_status=$?
4508 +  grep -v '^ *+' conftest.er1 >conftest.err
4509 +  rm -f conftest.er1
4510 +  cat conftest.err >&5
4511 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 +  (exit $ac_status); } &&
4513 +         { ac_try='test -z "$ac_cxx_werror_flag"
4514 +                         || test ! -s conftest.err'
4515 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4516 +  (eval $ac_try) 2>&5
4517 +  ac_status=$?
4518 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 +  (exit $ac_status); }; } &&
4520 +         { ac_try='test -s conftest$ac_exeext'
4521 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4522 +  (eval $ac_try) 2>&5
4523 +  ac_status=$?
4524 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 +  (exit $ac_status); }; }; then
4526 +  ac_cv_lib_m_asin=yes
4527 + else
4528 +  echo "$as_me: failed program was:" >&5
4529 + sed 's/^/| /' conftest.$ac_ext >&5
4530 +
4531 + ac_cv_lib_m_asin=no
4532 + fi
4533 + rm -f conftest.err conftest.$ac_objext \
4534 +      conftest$ac_exeext conftest.$ac_ext
4535 + LIBS=$ac_check_lib_save_LIBS
4536 + fi
4537 + echo "$as_me:$LINENO: result: $ac_cv_lib_m_asin" >&5
4538 + echo "${ECHO_T}$ac_cv_lib_m_asin" >&6
4539 + if test $ac_cv_lib_m_asin = yes; then
4540 +  cat >>confdefs.h <<_ACEOF
4541 + #define HAVE_LIBM 1
4542 + _ACEOF
4543 +
4544 +  LIBS="-lm $LIBS"
4545 +
4546 + else
4547 +  exit
4548 + fi
4549 +
4550 +
4551   ac_ext=c
4552   ac_cpp='$CPP $CPPFLAGS'
4553   ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
# Line 4945 | Line 5042 | done
5042   done
5043  
5044  
5045 + #
5046 + # Handle user hints
5047 + #
5048 + echo "$as_me:$LINENO: checking if zlib is wanted" >&5
5049 + echo $ECHO_N "checking if zlib is wanted... $ECHO_C" >&6
5050  
5051 + # Check whether --with-zlib or --without-zlib was given.
5052 + if test "${with_zlib+set}" = set; then
5053 +  withval="$with_zlib"
5054 +  if test "$withval" != no ; then
5055 +  echo "$as_me:$LINENO: result: yes" >&5
5056 + echo "${ECHO_T}yes" >&6
5057 +  if test -d "$withval"
5058 +  then
5059 +    ZLIB_HOME="$withval"
5060 +  else
5061 +    { echo "$as_me:$LINENO: WARNING: Sorry, $withval does not exist, checking usual places" >&5
5062 + echo "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;}
5063 +  fi
5064 + else
5065 +  echo "$as_me:$LINENO: result: no" >&5
5066 + echo "${ECHO_T}no" >&6
5067 + fi
5068 + fi;
5069  
5070 + ZLIB_HOME=/usr/local
5071 + if test ! -f "${ZLIB_HOME}/include/zlib.h"
5072 + then
5073 +        ZLIB_HOME=/usr
5074 + fi
5075  
5076 + #
5077 + # Locate zlib, if wanted
5078 + #
5079 + if test -n "${ZLIB_HOME}"
5080 + then
5081 +        ZLIB_OLD_LDFLAGS=$LDFLAGS
5082 +        ZLIB_OLD_CPPFLAGS=$LDFLAGS
5083 +        LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
5084 +        CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
5085  
5086  
5087 +        ac_ext=c
5088 + ac_cpp='$CPP $CPPFLAGS'
5089 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5092  
5093 +        echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5094 + echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5095 + if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5096 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5097 + else
5098 +  ac_check_lib_save_LIBS=$LIBS
5099 + LIBS="-lz  $LIBS"
5100 + cat >conftest.$ac_ext <<_ACEOF
5101 + /* confdefs.h.  */
5102 + _ACEOF
5103 + cat confdefs.h >>conftest.$ac_ext
5104 + cat >>conftest.$ac_ext <<_ACEOF
5105 + /* end confdefs.h.  */
5106  
5107 + /* Override any gcc2 internal prototype to avoid an error.  */
5108 + #ifdef __cplusplus
5109 + extern "C"
5110 + #endif
5111 + /* We use char because int might match the return type of a gcc2
5112 +   builtin and then its argument prototype would still apply.  */
5113 + char inflateEnd ();
5114 + int
5115 + main ()
5116 + {
5117 + inflateEnd ();
5118 +  ;
5119 +  return 0;
5120 + }
5121 + _ACEOF
5122 + rm -f conftest.$ac_objext conftest$ac_exeext
5123 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 +  (eval $ac_link) 2>conftest.er1
5125 +  ac_status=$?
5126 +  grep -v '^ *+' conftest.er1 >conftest.err
5127 +  rm -f conftest.er1
5128 +  cat conftest.err >&5
5129 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 +  (exit $ac_status); } &&
5131 +         { ac_try='test -z "$ac_c_werror_flag"
5132 +                         || test ! -s conftest.err'
5133 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5134 +  (eval $ac_try) 2>&5
5135 +  ac_status=$?
5136 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 +  (exit $ac_status); }; } &&
5138 +         { ac_try='test -s conftest$ac_exeext'
5139 +  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 +  (eval $ac_try) 2>&5
5141 +  ac_status=$?
5142 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 +  (exit $ac_status); }; }; then
5144 +  ac_cv_lib_z_inflateEnd=yes
5145 + else
5146 +  echo "$as_me: failed program was:" >&5
5147 + sed 's/^/| /' conftest.$ac_ext >&5
5148  
5149 + ac_cv_lib_z_inflateEnd=no
5150 + fi
5151 + rm -f conftest.err conftest.$ac_objext \
5152 +      conftest$ac_exeext conftest.$ac_ext
5153 + LIBS=$ac_check_lib_save_LIBS
5154 + fi
5155 + echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5156 + echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5157 + if test $ac_cv_lib_z_inflateEnd = yes; then
5158 +  zlib_cv_libz=yes
5159 + else
5160 +  zlib_cv_libz=no
5161 + fi
5162  
5163 < 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
5164 < do
5165 < as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5166 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961 <  echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163 >        if test "${ac_cv_header_zlib_h+set}" = set; then
5164 >  echo "$as_me:$LINENO: checking for zlib.h" >&5
5165 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5166 > if test "${ac_cv_header_zlib_h+set}" = set; then
5167    echo $ECHO_N "(cached) $ECHO_C" >&6
5168   fi
5169 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5170 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5169 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5170 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5171   else
5172    # Is the header compilable?
5173 < echo "$as_me:$LINENO: checking $ac_header usability" >&5
5174 < echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5173 > echo "$as_me:$LINENO: checking zlib.h usability" >&5
5174 > echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
5175   cat >conftest.$ac_ext <<_ACEOF
5176   /* confdefs.h.  */
5177   _ACEOF
# Line 4976 | Line 5179 | $ac_includes_default
5179   cat >>conftest.$ac_ext <<_ACEOF
5180   /* end confdefs.h.  */
5181   $ac_includes_default
5182 < #include <$ac_header>
5182 > #include <zlib.h>
5183   _ACEOF
5184   rm -f conftest.$ac_objext
5185   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 5012 | Line 5215 | echo "${ECHO_T}$ac_header_compiler" >&6
5215   echo "${ECHO_T}$ac_header_compiler" >&6
5216  
5217   # Is the header present?
5218 < echo "$as_me:$LINENO: checking $ac_header presence" >&5
5219 < echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5218 > echo "$as_me:$LINENO: checking zlib.h presence" >&5
5219 > echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
5220   cat >conftest.$ac_ext <<_ACEOF
5221   /* confdefs.h.  */
5222   _ACEOF
5223   cat confdefs.h >>conftest.$ac_ext
5224   cat >>conftest.$ac_ext <<_ACEOF
5225   /* end confdefs.h.  */
5226 < #include <$ac_header>
5226 > #include <zlib.h>
5227   _ACEOF
5228   if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5229    (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
# Line 5054 | Line 5257 | case $ac_header_compiler:$ac_header_preproc:$ac_c_prep
5257   # So?  What about this header?
5258   case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5259    yes:no: )
5260 <    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5261 < echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5263 < echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5260 >    { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
5261 > echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5262 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
5263 > echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
5264      ac_header_preproc=yes
5265      ;;
5266    no:yes:* )
5267 <    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5268 < echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5269 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5270 < echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5271 <    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5272 < echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5273 <    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5274 < echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5275 <    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5276 < echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5277 <    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5278 < echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5267 >    { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
5268 > echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
5269 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
5270 > echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
5271 >    { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
5272 > echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
5273 >    { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
5274 > echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5275 >    { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
5276 > echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
5277 >    { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
5278 > echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
5279      (
5280        cat <<\_ASBOX
5281   ## ------------------------------ ##
# Line 5083 | Line 5286 | esac
5286        sed "s/^/$as_me: WARNING:     /" >&2
5287      ;;
5288   esac
5289 < echo "$as_me:$LINENO: checking for $ac_header" >&5
5290 < echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5291 < if eval "test \"\${$as_ac_Header+set}\" = set"; then
5289 > echo "$as_me:$LINENO: checking for zlib.h" >&5
5290 > echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
5291 > if test "${ac_cv_header_zlib_h+set}" = set; then
5292    echo $ECHO_N "(cached) $ECHO_C" >&6
5293   else
5294 <  eval "$as_ac_Header=\$ac_header_preproc"
5294 >  ac_cv_header_zlib_h=$ac_header_preproc
5295   fi
5296 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5297 < echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5296 > echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
5297 > echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
5298  
5299   fi
5300 < if test `eval echo '${'$as_ac_Header'}'` = yes; then
5301 <  cat >>confdefs.h <<_ACEOF
5302 < #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5303 < _ACEOF
5101 <
5300 > if test $ac_cv_header_zlib_h = yes; then
5301 >  zlib_cv_zlib_h=yes
5302 > else
5303 >  zlib_cv_zlib_h=no
5304   fi
5305  
5104 done
5306  
5307 +        ac_ext=c
5308 + ac_cpp='$CPP $CPPFLAGS'
5309 + ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 + ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 + ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312  
5313 +        if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
5314 +        then
5315 +                #
5316 +                # If both library and header were found, use them
5317 +                #
5318  
5319 <
5320 <
5321 <
5111 < for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
5112 < do
5113 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5114 < echo "$as_me:$LINENO: checking for $ac_func" >&5
5115 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5116 < if eval "test \"\${$as_ac_var+set}\" = set"; then
5319 > echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
5320 > echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
5321 > if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
5322    echo $ECHO_N "(cached) $ECHO_C" >&6
5323   else
5324 <  cat >conftest.$ac_ext <<_ACEOF
5324 >  ac_check_lib_save_LIBS=$LIBS
5325 > LIBS="-lz  $LIBS"
5326 > cat >conftest.$ac_ext <<_ACEOF
5327   /* confdefs.h.  */
5328   _ACEOF
5329   cat confdefs.h >>conftest.$ac_ext
5330   cat >>conftest.$ac_ext <<_ACEOF
5331   /* end confdefs.h.  */
5125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5126   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5127 #define $ac_func innocuous_$ac_func
5332  
5129 /* System header to define __stub macros and hopefully few prototypes,
5130    which can conflict with char $ac_func (); below.
5131    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5132    <limits.h> exists even on freestanding compilers.  */
5133
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139
5140 #undef $ac_func
5141
5333   /* Override any gcc2 internal prototype to avoid an error.  */
5334   #ifdef __cplusplus
5335   extern "C"
5145 {
5336   #endif
5337   /* We use char because int might match the return type of a gcc2
5338     builtin and then its argument prototype would still apply.  */
5339 < char $ac_func ();
5150 < /* The GNU C library defines this for functions which it implements
5151 <    to always fail with ENOSYS.  Some functions are actually named
5152 <    something starting with __ and the normal name is an alias.  */
5153 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5154 < choke me
5155 < #else
5156 < char (*f) () = $ac_func;
5157 < #endif
5158 < #ifdef __cplusplus
5159 < }
5160 < #endif
5161 <
5339 > char inflateEnd ();
5340   int
5341   main ()
5342   {
5343 < return f != $ac_func;
5343 > inflateEnd ();
5344    ;
5345    return 0;
5346   }
# Line 5189 | Line 5367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367    ac_status=$?
5368    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369    (exit $ac_status); }; }; then
5370 <  eval "$as_ac_var=yes"
5370 >  ac_cv_lib_z_inflateEnd=yes
5371   else
5372    echo "$as_me: failed program was:" >&5
5373   sed 's/^/| /' conftest.$ac_ext >&5
5374  
5375 < eval "$as_ac_var=no"
5375 > ac_cv_lib_z_inflateEnd=no
5376   fi
5377   rm -f conftest.err conftest.$ac_objext \
5378        conftest$ac_exeext conftest.$ac_ext
5379 + LIBS=$ac_check_lib_save_LIBS
5380   fi
5381 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5382 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5383 < if test `eval echo '${'$as_ac_var'}'` = yes; then
5381 > echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
5382 > echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
5383 > if test $ac_cv_lib_z_inflateEnd = yes; then
5384    cat >>confdefs.h <<_ACEOF
5385 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5385 > #define HAVE_LIBZ 1
5386   _ACEOF
5387  
5388 +  LIBS="-lz $LIBS"
5389 +
5390   fi
5210 done
5391  
5392 < # special check for _system_configuration because AIX <4.3.2 do not
5393 < # contain the `physmem' member.
5394 < echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
5395 < echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
5392 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5393 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5394 >                echo "$as_me:$LINENO: result: ok" >&5
5395 > echo "${ECHO_T}ok" >&6
5396 >        else
5397 >                #
5398 >                # If either header or library was not found, revert and bomb
5399 >                #
5400 >                echo "$as_me:$LINENO: checking zlib in ${ZLIB_HOME}" >&5
5401 > echo $ECHO_N "checking zlib in ${ZLIB_HOME}... $ECHO_C" >&6
5402 >                LDFLAGS="$ZLIB_OLD_LDFLAGS"
5403 >                CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
5404 >                echo "$as_me:$LINENO: result: failed" >&5
5405 > echo "${ECHO_T}failed" >&6
5406 >                { { echo "$as_me:$LINENO: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&5
5407 > echo "$as_me: error: either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" >&2;}
5408 >   { (exit 1); exit 1; }; }
5409 >        fi
5410 > fi
5411 >
5412 >
5413 >
5414 >
5415 >
5416 >
5417 >
5418 >
5419 > for ac_header in sys/time.h unistd.h stdlib.h stdio.h conio.h string.h
5420 > do
5421 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5423 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5424 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5425 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5426 >  echo $ECHO_N "(cached) $ECHO_C" >&6
5427 > fi
5428 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5429 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5430 > else
5431 >  # Is the header compilable?
5432 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5433 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5434   cat >conftest.$ac_ext <<_ACEOF
5435   /* confdefs.h.  */
5436   _ACEOF
5437   cat confdefs.h >>conftest.$ac_ext
5438   cat >>conftest.$ac_ext <<_ACEOF
5439   /* end confdefs.h.  */
5440 < #include <sys/systemcfg.h>
5441 < int
5224 < main ()
5225 < {
5226 < double x = _system_configuration.physmem;
5227 <  ;
5228 <  return 0;
5229 < }
5440 > $ac_includes_default
5441 > #include <$ac_header>
5442   _ACEOF
5443   rm -f conftest.$ac_objext
5444   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
# Line 5250 | Line 5462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5462    ac_status=$?
5463    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464    (exit $ac_status); }; }; then
5465 <  echo "$as_me:$LINENO: result: yes" >&5
5466 < echo "${ECHO_T}yes" >&6
5465 >  ac_header_compiler=yes
5466 > else
5467 >  echo "$as_me: failed program was:" >&5
5468 > sed 's/^/| /' conftest.$ac_ext >&5
5469  
5470 < cat >>confdefs.h <<\_ACEOF
5471 < #define HAVE__SYSTEM_CONFIGURATION 1
5472 < _ACEOF
5470 > ac_header_compiler=no
5471 > fi
5472 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5473 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5474 > echo "${ECHO_T}$ac_header_compiler" >&6
5475  
5476 + # Is the header present?
5477 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
5478 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5479 + cat >conftest.$ac_ext <<_ACEOF
5480 + /* confdefs.h.  */
5481 + _ACEOF
5482 + cat confdefs.h >>conftest.$ac_ext
5483 + cat >>conftest.$ac_ext <<_ACEOF
5484 + /* end confdefs.h.  */
5485 + #include <$ac_header>
5486 + _ACEOF
5487 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5488 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5489 +  ac_status=$?
5490 +  grep -v '^ *+' conftest.er1 >conftest.err
5491 +  rm -f conftest.er1
5492 +  cat conftest.err >&5
5493 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 +  (exit $ac_status); } >/dev/null; then
5495 +  if test -s conftest.err; then
5496 +    ac_cpp_err=$ac_c_preproc_warn_flag
5497 +    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5498 +  else
5499 +    ac_cpp_err=
5500 +  fi
5501   else
5502 +  ac_cpp_err=yes
5503 + fi
5504 + if test -z "$ac_cpp_err"; then
5505 +  ac_header_preproc=yes
5506 + else
5507    echo "$as_me: failed program was:" >&5
5508   sed 's/^/| /' conftest.$ac_ext >&5
5509  
5510 < echo "$as_me:$LINENO: result: no" >&5
5265 < echo "${ECHO_T}no" >&6
5510 >  ac_header_preproc=no
5511   fi
5512 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5512 > rm -f conftest.err conftest.$ac_ext
5513 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5514 > echo "${ECHO_T}$ac_header_preproc" >&6
5515  
5516 + # So?  What about this header?
5517 + case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5518 +  yes:no: )
5519 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5520 + echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5521 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5522 + echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5523 +    ac_header_preproc=yes
5524 +    ;;
5525 +  no:yes:* )
5526 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5527 + echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5528 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5529 + echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5530 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5531 + echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5532 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5533 + echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5534 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5535 + echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5536 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5537 + echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5538 +    (
5539 +      cat <<\_ASBOX
5540 + ## ------------------------------ ##
5541 + ## Report this to gezelter@nd.edu ##
5542 + ## ------------------------------ ##
5543 + _ASBOX
5544 +    ) |
5545 +      sed "s/^/$as_me: WARNING:     /" >&2
5546 +    ;;
5547 + esac
5548 + echo "$as_me:$LINENO: checking for $ac_header" >&5
5549 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5550 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
5551 +  echo $ECHO_N "(cached) $ECHO_C" >&6
5552 + else
5553 +  eval "$as_ac_Header=\$ac_header_preproc"
5554 + fi
5555 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5556 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5557  
5558 + fi
5559 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
5560 +  cat >>confdefs.h <<_ACEOF
5561 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 + _ACEOF
5563  
5564 + fi
5565  
5566 <  # clean out junk possibly left behind by a previous configuration
5273 <  rm -f src/getopt.h
5274 <  # Check for getopt_long support
5566 > done
5567  
5568 < for ac_header in getopt.h
5568 >
5569 >
5570 >
5571 >
5572 >
5573 > for ac_header in strstream.h iostream.h fstream.h math.h time.h
5574   do
5575   as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5576   if eval "test \"\${$as_ac_Header+set}\" = set"; then
# Line 5422 | Line 5719 | done
5719  
5720   done
5721  
5722 + ac_ext=cc
5723 + ac_cpp='$CXXCPP $CPPFLAGS'
5724 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5727  
5728 < for ac_func in getopt_long
5729 < do
5730 < as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5731 < echo "$as_me:$LINENO: checking for $ac_func" >&5
5732 < echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5733 < if eval "test \"\${$as_ac_var+set}\" = set"; then
5728 > ac_ext=cc
5729 > ac_cpp='$CXXCPP $CPPFLAGS'
5730 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5733 > echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5734 > echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5735 > if test -z "$CXXCPP"; then
5736 >  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5737    echo $ECHO_N "(cached) $ECHO_C" >&6
5738   else
5739 +      # Double quotes because CXXCPP needs to be expanded
5740 +    for CXXCPP in "$CXX -E" "/lib/cpp"
5741 +    do
5742 +      ac_preproc_ok=false
5743 + for ac_cxx_preproc_warn_flag in '' yes
5744 + do
5745 +  # Use a header file that comes with gcc, so configuring glibc
5746 +  # with a fresh cross-compiler works.
5747 +  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5748 +  # <limits.h> exists even on freestanding compilers.
5749 +  # On the NeXT, cc -E runs the code through the compiler's parser,
5750 +  # not just through cpp. "Syntax error" is here to catch this case.
5751    cat >conftest.$ac_ext <<_ACEOF
5752   /* confdefs.h.  */
5753   _ACEOF
5754   cat confdefs.h >>conftest.$ac_ext
5755   cat >>conftest.$ac_ext <<_ACEOF
5756   /* end confdefs.h.  */
5440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5441   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5442 #define $ac_func innocuous_$ac_func
5443
5444 /* System header to define __stub macros and hopefully few prototypes,
5445    which can conflict with char $ac_func (); below.
5446    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5447    <limits.h> exists even on freestanding compilers.  */
5448
5757   #ifdef __STDC__
5758   # include <limits.h>
5759   #else
5760   # include <assert.h>
5761   #endif
5762 <
5455 < #undef $ac_func
5456 <
5457 < /* Override any gcc2 internal prototype to avoid an error.  */
5458 < #ifdef __cplusplus
5459 < extern "C"
5460 < {
5461 < #endif
5462 < /* We use char because int might match the return type of a gcc2
5463 <   builtin and then its argument prototype would still apply.  */
5464 < char $ac_func ();
5465 < /* The GNU C library defines this for functions which it implements
5466 <    to always fail with ENOSYS.  Some functions are actually named
5467 <    something starting with __ and the normal name is an alias.  */
5468 < #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5469 < choke me
5470 < #else
5471 < char (*f) () = $ac_func;
5472 < #endif
5473 < #ifdef __cplusplus
5474 < }
5475 < #endif
5476 <
5477 < int
5478 < main ()
5479 < {
5480 < return f != $ac_func;
5481 <  ;
5482 <  return 0;
5483 < }
5762 >                     Syntax error
5763   _ACEOF
5764 < rm -f conftest.$ac_objext conftest$ac_exeext
5765 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5487 <  (eval $ac_link) 2>conftest.er1
5764 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5765 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5766    ac_status=$?
5767    grep -v '^ *+' conftest.er1 >conftest.err
5768    rm -f conftest.er1
5769    cat conftest.err >&5
5770    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771 <  (exit $ac_status); } &&
5772 <         { ac_try='test -z "$ac_c_werror_flag"
5773 <                         || test ! -s conftest.err'
5774 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775 <  (eval $ac_try) 2>&5
5776 <  ac_status=$?
5777 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 <  (exit $ac_status); }; } &&
5501 <         { ac_try='test -s conftest$ac_exeext'
5502 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5503 <  (eval $ac_try) 2>&5
5504 <  ac_status=$?
5505 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 <  (exit $ac_status); }; }; then
5507 <  eval "$as_ac_var=yes"
5771 >  (exit $ac_status); } >/dev/null; then
5772 >  if test -s conftest.err; then
5773 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5774 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5775 >  else
5776 >    ac_cpp_err=
5777 >  fi
5778   else
5779 +  ac_cpp_err=yes
5780 + fi
5781 + if test -z "$ac_cpp_err"; then
5782 +  :
5783 + else
5784    echo "$as_me: failed program was:" >&5
5785   sed 's/^/| /' conftest.$ac_ext >&5
5786  
5787 < eval "$as_ac_var=no"
5787 >  # Broken: fails on valid input.
5788 > continue
5789   fi
5790 < rm -f conftest.err conftest.$ac_objext \
5791 <      conftest$ac_exeext conftest.$ac_ext
5792 < fi
5793 < echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5794 < echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5795 < if test `eval echo '${'$as_ac_var'}'` = yes; then
5520 <  cat >>confdefs.h <<_ACEOF
5521 < #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5790 > rm -f conftest.err conftest.$ac_ext
5791 >
5792 >  # OK, works on sane cases.  Now check whether non-existent headers
5793 >  # can be detected and how.
5794 >  cat >conftest.$ac_ext <<_ACEOF
5795 > /* confdefs.h.  */
5796   _ACEOF
5797 <
5797 > cat confdefs.h >>conftest.$ac_ext
5798 > cat >>conftest.$ac_ext <<_ACEOF
5799 > /* end confdefs.h.  */
5800 > #include <ac_nonexistent.h>
5801 > _ACEOF
5802 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5803 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5804 >  ac_status=$?
5805 >  grep -v '^ *+' conftest.er1 >conftest.err
5806 >  rm -f conftest.er1
5807 >  cat conftest.err >&5
5808 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5809 >  (exit $ac_status); } >/dev/null; then
5810 >  if test -s conftest.err; then
5811 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5812 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5813 >  else
5814 >    ac_cpp_err=
5815 >  fi
5816   else
5817 <  # FreeBSD has a gnugetopt library for this
5818 <    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
5819 < echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
5820 < if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
5821 <  echo $ECHO_N "(cached) $ECHO_C" >&6
5817 >  ac_cpp_err=yes
5818 > fi
5819 > if test -z "$ac_cpp_err"; then
5820 >  # Broken: success on invalid input.
5821 > continue
5822   else
5823 <  ac_check_lib_save_LIBS=$LIBS
5824 < LIBS="-lgnugetopt  $LIBS"
5825 < cat >conftest.$ac_ext <<_ACEOF
5823 >  echo "$as_me: failed program was:" >&5
5824 > sed 's/^/| /' conftest.$ac_ext >&5
5825 >
5826 >  # Passes both tests.
5827 > ac_preproc_ok=:
5828 > break
5829 > fi
5830 > rm -f conftest.err conftest.$ac_ext
5831 >
5832 > done
5833 > # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5834 > rm -f conftest.err conftest.$ac_ext
5835 > if $ac_preproc_ok; then
5836 >  break
5837 > fi
5838 >
5839 >    done
5840 >    ac_cv_prog_CXXCPP=$CXXCPP
5841 >
5842 > fi
5843 >  CXXCPP=$ac_cv_prog_CXXCPP
5844 > else
5845 >  ac_cv_prog_CXXCPP=$CXXCPP
5846 > fi
5847 > echo "$as_me:$LINENO: result: $CXXCPP" >&5
5848 > echo "${ECHO_T}$CXXCPP" >&6
5849 > ac_preproc_ok=false
5850 > for ac_cxx_preproc_warn_flag in '' yes
5851 > do
5852 >  # Use a header file that comes with gcc, so configuring glibc
5853 >  # with a fresh cross-compiler works.
5854 >  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5855 >  # <limits.h> exists even on freestanding compilers.
5856 >  # On the NeXT, cc -E runs the code through the compiler's parser,
5857 >  # not just through cpp. "Syntax error" is here to catch this case.
5858 >  cat >conftest.$ac_ext <<_ACEOF
5859   /* confdefs.h.  */
5860   _ACEOF
5861   cat confdefs.h >>conftest.$ac_ext
5862   cat >>conftest.$ac_ext <<_ACEOF
5863   /* end confdefs.h.  */
5864 <
5865 < /* Override any gcc2 internal prototype to avoid an error.  */
5866 < #ifdef __cplusplus
5867 < extern "C"
5864 > #ifdef __STDC__
5865 > # include <limits.h>
5866 > #else
5867 > # include <assert.h>
5868   #endif
5869 < /* We use char because int might match the return type of a gcc2
5545 <   builtin and then its argument prototype would still apply.  */
5546 < char getopt_long ();
5547 < int
5548 < main ()
5549 < {
5550 < getopt_long ();
5551 <  ;
5552 <  return 0;
5553 < }
5869 >                     Syntax error
5870   _ACEOF
5871 < rm -f conftest.$ac_objext conftest$ac_exeext
5872 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5557 <  (eval $ac_link) 2>conftest.er1
5871 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5872 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5873    ac_status=$?
5874    grep -v '^ *+' conftest.er1 >conftest.err
5875    rm -f conftest.er1
5876    cat conftest.err >&5
5877    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 <  (exit $ac_status); } &&
5879 <         { ac_try='test -z "$ac_c_werror_flag"
5880 <                         || test ! -s conftest.err'
5881 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882 <  (eval $ac_try) 2>&5
5883 <  ac_status=$?
5884 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 <  (exit $ac_status); }; } &&
5571 <         { ac_try='test -s conftest$ac_exeext'
5572 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 <  (eval $ac_try) 2>&5
5574 <  ac_status=$?
5575 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 <  (exit $ac_status); }; }; then
5577 <  ac_cv_lib_gnugetopt_getopt_long=yes
5878 >  (exit $ac_status); } >/dev/null; then
5879 >  if test -s conftest.err; then
5880 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
5881 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5882 >  else
5883 >    ac_cpp_err=
5884 >  fi
5885   else
5886 +  ac_cpp_err=yes
5887 + fi
5888 + if test -z "$ac_cpp_err"; then
5889 +  :
5890 + else
5891    echo "$as_me: failed program was:" >&5
5892   sed 's/^/| /' conftest.$ac_ext >&5
5893  
5894 < ac_cv_lib_gnugetopt_getopt_long=no
5894 >  # Broken: fails on valid input.
5895 > continue
5896   fi
5897 < rm -f conftest.err conftest.$ac_objext \
5585 <      conftest$ac_exeext conftest.$ac_ext
5586 < LIBS=$ac_check_lib_save_LIBS
5587 < fi
5588 < echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5589 < echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
5590 < if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
5591 <  cat >>confdefs.h <<\_ACEOF
5592 < #define HAVE_GETOPT_LONG 1
5593 < _ACEOF
5897 > rm -f conftest.err conftest.$ac_ext
5898  
5899 +  # OK, works on sane cases.  Now check whether non-existent headers
5900 +  # can be detected and how.
5901 +  cat >conftest.$ac_ext <<_ACEOF
5902 + /* confdefs.h.  */
5903 + _ACEOF
5904 + cat confdefs.h >>conftest.$ac_ext
5905 + cat >>conftest.$ac_ext <<_ACEOF
5906 + /* end confdefs.h.  */
5907 + #include <ac_nonexistent.h>
5908 + _ACEOF
5909 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5910 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5911 +  ac_status=$?
5912 +  grep -v '^ *+' conftest.er1 >conftest.err
5913 +  rm -f conftest.er1
5914 +  cat conftest.err >&5
5915 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 +  (exit $ac_status); } >/dev/null; then
5917 +  if test -s conftest.err; then
5918 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
5919 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5920 +  else
5921 +    ac_cpp_err=
5922 +  fi
5923   else
5924 <  # use the GNU replacement
5597 <      case $LIBOBJS in
5598 <    "getopt.$ac_objext"   | \
5599 <  *" getopt.$ac_objext"   | \
5600 <    "getopt.$ac_objext "* | \
5601 <  *" getopt.$ac_objext "* ) ;;
5602 <  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
5603 < esac
5604 <
5605 <      case $LIBOBJS in
5606 <    "getopt1.$ac_objext"   | \
5607 <  *" getopt1.$ac_objext"   | \
5608 <    "getopt1.$ac_objext "* | \
5609 <  *" getopt1.$ac_objext "* ) ;;
5610 <  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
5611 < esac
5612 <
5613 <                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
5614 <
5924 >  ac_cpp_err=yes
5925   fi
5926 + if test -z "$ac_cpp_err"; then
5927 +  # Broken: success on invalid input.
5928 + continue
5929 + else
5930 +  echo "$as_me: failed program was:" >&5
5931 + sed 's/^/| /' conftest.$ac_ext >&5
5932  
5933 +  # Passes both tests.
5934 + ac_preproc_ok=:
5935 + break
5936   fi
5937 + rm -f conftest.err conftest.$ac_ext
5938 +
5939   done
5940 + # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941 + rm -f conftest.err conftest.$ac_ext
5942 + if $ac_preproc_ok; then
5943 +  :
5944 + else
5945 +  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5946 + See \`config.log' for more details." >&5
5947 + echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5948 + See \`config.log' for more details." >&2;}
5949 +   { (exit 1); exit 1; }; }
5950 + fi
5951  
5952 + ac_ext=cc
5953 + ac_cpp='$CXXCPP $CPPFLAGS'
5954 + ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5955 + ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5956 + ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5957  
5958  
5622 case $debug in
5623  1)
5624     ;;
5625  *)
5959  
5960  
5961  
5962  
5963  
5964 <
5965 < echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
5966 < echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
5967 < if test "${ac_cv_prog_really_gcc+set}" = set; then
5964 > for ac_header in ctype.h iostream fstream sstream strstream
5965 > do
5966 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5967 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5968 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
5969 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5970 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
5971    echo $ECHO_N "(cached) $ECHO_C" >&6
5972 + fi
5973 + echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5974 + echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5975   else
5976 <
5977 < cat > conftest.c <<EOF
5978 < #ifdef __GNUC__
5979 <  #ifndef __INTEL_COMPILER
5980 <     yes;
5981 <  #endif
5982 < #endif
5983 < EOF
5984 < if { ac_try='${CC-cc} -E conftest.c'
5976 >  # Is the header compilable?
5977 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
5978 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5979 > cat >conftest.$ac_ext <<_ACEOF
5980 > /* confdefs.h.  */
5981 > _ACEOF
5982 > cat confdefs.h >>conftest.$ac_ext
5983 > cat >>conftest.$ac_ext <<_ACEOF
5984 > /* end confdefs.h.  */
5985 > $ac_includes_default
5986 > #include <$ac_header>
5987 > _ACEOF
5988 > rm -f conftest.$ac_objext
5989 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5990 >  (eval $ac_compile) 2>conftest.er1
5991 >  ac_status=$?
5992 >  grep -v '^ *+' conftest.er1 >conftest.err
5993 >  rm -f conftest.er1
5994 >  cat conftest.err >&5
5995 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 >  (exit $ac_status); } &&
5997 >         { ac_try='test -z "$ac_cxx_werror_flag"
5998 >                         || test ! -s conftest.err'
5999    { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6000    (eval $ac_try) 2>&5
6001    ac_status=$?
6002    echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6004 <  ac_cv_prog_really_gcc=yes
6003 >  (exit $ac_status); }; } &&
6004 >         { ac_try='test -s conftest.$ac_objext'
6005 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 >  (eval $ac_try) 2>&5
6007 >  ac_status=$?
6008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009 >  (exit $ac_status); }; }; then
6010 >  ac_header_compiler=yes
6011   else
6012 <  ac_cv_prog_really_gcc=no
6012 >  echo "$as_me: failed program was:" >&5
6013 > sed 's/^/| /' conftest.$ac_ext >&5
6014 >
6015 > ac_header_compiler=no
6016   fi
6017 + rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 + echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6019 + echo "${ECHO_T}$ac_header_compiler" >&6
6020  
6021 + # Is the header present?
6022 + echo "$as_me:$LINENO: checking $ac_header presence" >&5
6023 + echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6024 + cat >conftest.$ac_ext <<_ACEOF
6025 + /* confdefs.h.  */
6026 + _ACEOF
6027 + cat confdefs.h >>conftest.$ac_ext
6028 + cat >>conftest.$ac_ext <<_ACEOF
6029 + /* end confdefs.h.  */
6030 + #include <$ac_header>
6031 + _ACEOF
6032 + if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6033 +  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6034 +  ac_status=$?
6035 +  grep -v '^ *+' conftest.er1 >conftest.err
6036 +  rm -f conftest.er1
6037 +  cat conftest.err >&5
6038 +  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 +  (exit $ac_status); } >/dev/null; then
6040 +  if test -s conftest.err; then
6041 +    ac_cpp_err=$ac_cxx_preproc_warn_flag
6042 +    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6043 +  else
6044 +    ac_cpp_err=
6045 +  fi
6046 + else
6047 +  ac_cpp_err=yes
6048   fi
6049 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
6050 < echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
6051 < if test "$ac_cv_prog_really_gcc" = yes; then
6052 <        :
6049 > if test -z "$ac_cpp_err"; then
6050 >  ac_header_preproc=yes
6051 > else
6052 >  echo "$as_me: failed program was:" >&5
6053 > sed 's/^/| /' conftest.$ac_ext >&5
6054  
6055 +  ac_header_preproc=no
6056 + fi
6057 + rm -f conftest.err conftest.$ac_ext
6058 + echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6059 + echo "${ECHO_T}$ac_header_preproc" >&6
6060 +
6061 + # So?  What about this header?
6062 + case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6063 +  yes:no: )
6064 +    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6065 + echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6066 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6067 + echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6068 +    ac_header_preproc=yes
6069 +    ;;
6070 +  no:yes:* )
6071 +    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6072 + echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6073 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6074 + echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6075 +    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6076 + echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6077 +    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6078 + echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6079 +    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6080 + echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6081 +    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6082 + echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6083 +    (
6084 +      cat <<\_ASBOX
6085 + ## ------------------------------ ##
6086 + ## Report this to gezelter@nd.edu ##
6087 + ## ------------------------------ ##
6088 + _ASBOX
6089 +    ) |
6090 +      sed "s/^/$as_me: WARNING:     /" >&2
6091 +    ;;
6092 + esac
6093 + echo "$as_me:$LINENO: checking for $ac_header" >&5
6094 + echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6095 + if eval "test \"\${$as_ac_Header+set}\" = set"; then
6096 +  echo $ECHO_N "(cached) $ECHO_C" >&6
6097   else
6098 <        :
6098 >  eval "$as_ac_Header=\$ac_header_preproc"
6099 > fi
6100 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6101 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6102  
6103   fi
6104 + if test `eval echo '${'$as_ac_Header'}'` = yes; then
6105 +  cat >>confdefs.h <<_ACEOF
6106 + #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6107 + _ACEOF
6108  
6109 + fi
6110  
6111 < # Try to determine "good" native compiler flags if none specified on command
5669 < # line
5670 < if test "$ac_test_CFLAGS" != "set"; then
5671 <  CFLAGS=""
5672 <  case "${host_cpu}-${host_os}" in
6111 > done
6112  
6113 <  *linux*) if test "$CC" = icc; then
6114 <                    CFLAGS="-O"
6115 <                fi;;
6116 <  sparc-solaris2*) if test "$CC" = cc; then
6117 <                    CFLAGS="-native -fast -xO5 -dalign"
6118 <                 fi;;
6119 <
6120 <  alpha*-osf*)  if test "$CC" = cc; then
6121 <                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
6122 <                fi;;
6123 <
6124 <  hppa*-hpux*)  if test "$CC" = cc; then
6125 <                    CFLAGS="-Ae +O3 +Oall"
6126 <                fi;;
6127 <
6128 <   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
6129 <                    CFLAGS="-O3 -qtune=auto -qansialias -w"
6130 <                fi;;
6131 <   powerpc*-aix*)
6132 <        if test "$CC" = cc -o "$CC" = xlc; then
6133 <                CFLAGS="-O3 -qtune=auto -qansialias -w"
6134 <                echo "*******************************************************"
6135 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
6136 <                echo "*  recommended that you use                           *"
6137 <                echo "*                                                     *"
6138 <                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
6139 <                echo "*                                 ^^^                 *"
6140 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
6141 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
6142 <                echo "*******************************************************"
6143 <        fi;;
6144 <   *darwin*)
6145 <        if test "$CC" = xlc -o "$CC" = cc; then
6146 <                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6147 <        fi;;
6148 <  esac
6149 <
6150 <  # use default flags for gcc on all systems
6151 <  if test $ac_cv_prog_really_gcc = yes; then
6152 <     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6153 <  fi
6154 <
6155 <  # test for gcc-specific flags:
6156 <  if test $ac_cv_prog_really_gcc = yes; then
6157 <    # -malign-double for x86 systems
6158 <
6159 <
6160 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
6161 < echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
6162 < if test "${ac_align_double+set}" = set; then
6163 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6164 < else
6165 <  echo 'void f(){}' > conftest.c
6166 < if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
6167 <        ac_align_double=yes
6168 < else
6169 <        ac_align_double=no
6170 < fi
6171 < rm -f conftest*
6172 <
6173 < fi
6174 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
6175 < echo "${ECHO_T}$ac_align_double" >&6
6176 < if test "$ac_align_double" = yes; then
6177 <        :
6178 <        CFLAGS="$CFLAGS -malign-double"
6179 < else
6180 <        :
6181 <
6182 < fi
6183 <
6184 <    # -fstrict-aliasing for gcc-2.95+
6185 <
6186 <
6187 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
6188 < echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
6189 < if test "${ac_fstrict_aliasing+set}" = set; then
6190 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6191 < else
6192 <  echo 'void f(){}' > conftest.c
6193 < if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
6194 <        ac_fstrict_aliasing=yes
6195 < else
6196 <        ac_fstrict_aliasing=no
6197 < fi
6198 < rm -f conftest*
6199 <
6200 < fi
6201 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6202 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6203 < if test "$ac_fstrict_aliasing" = yes; then
6204 <        :
6205 <        CFLAGS="$CFLAGS -fstrict-aliasing"
6206 < else
6207 <        :
6208 <
6209 < fi
6210 <
6211 <  fi
6212 <
6213 <  CPU_FLAGS=""
6214 <  if test $ac_cv_prog_really_gcc = yes; then
6215 <                  case "${host_cpu}" in
6216 <          i586*)
6217 <
6218 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
6219 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
6220 < if test "${ac_cpu_pentium+set}" = set; then
6221 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6222 < else
6223 <  echo 'void f(){}' > conftest.c
6224 < if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
6225 <        ac_cpu_pentium=yes
6226 < else
6227 <        ac_cpu_pentium=no
6228 < fi
6229 < rm -f conftest*
6230 <
6231 < fi
6232 < echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6233 < echo "${ECHO_T}$ac_cpu_pentium" >&6
6234 < if test "$ac_cpu_pentium" = yes; then
6235 <        :
6236 <        CPU_FLAGS=-mcpu=pentium
6237 < else
6238 <        :
6239 <
6240 <
6241 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
6242 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
6243 < if test "${ac_pentium+set}" = set; then
6244 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6245 < else
6246 <  echo 'void f(){}' > conftest.c
6247 < if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
6248 <        ac_pentium=yes
6249 < else
6250 <        ac_pentium=no
6251 < fi
6252 < rm -f conftest*
6253 <
6254 < fi
6255 < echo "$as_me:$LINENO: result: $ac_pentium" >&5
6256 < echo "${ECHO_T}$ac_pentium" >&6
6257 < if test "$ac_pentium" = yes; then
6258 <        :
6259 <        CPU_FLAGS=-mpentium
6260 < else
6261 <        :
6262 <
6263 < fi
6264 <
6265 < fi
6266 <
6267 <                  ;;
6268 <          i686*)
6269 <
6270 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
6271 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6272 < if test "${ac_cpu_pentiumpro+set}" = set; then
6273 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6274 < else
6275 <  echo 'void f(){}' > conftest.c
6276 < if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
6277 <        ac_cpu_pentiumpro=yes
6278 < else
6279 <        ac_cpu_pentiumpro=no
6280 < fi
6281 < rm -f conftest*
6282 <
6283 < fi
6284 < echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6285 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6286 < if test "$ac_cpu_pentiumpro" = yes; then
6287 <        :
6288 <        CPU_FLAGS=-mcpu=pentiumpro
6289 < else
6290 <        :
6291 <
6292 <
6293 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
6294 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
6295 < if test "${ac_pentiumpro+set}" = set; then
6296 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6297 < else
6298 <  echo 'void f(){}' > conftest.c
6299 < if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
6300 <        ac_pentiumpro=yes
6301 < else
6302 <        ac_pentiumpro=no
6303 < fi
6304 < rm -f conftest*
6305 <
6306 < fi
6307 < echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6308 < echo "${ECHO_T}$ac_pentiumpro" >&6
6309 < if test "$ac_pentiumpro" = yes; then
6310 <        :
6311 <        CPU_FLAGS=-mpentiumpro
6312 < else
6313 <        :
6314 <
6315 < fi
6316 <
6317 < fi
6318 <
6319 <                  ;;
6320 <          powerpc*)
6321 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6322 <                is60x=`echo $cputype | egrep "^600-9e?$"`
6323 <                if test -n "$is60x"; then
6324 <
6325 <
6326 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
6327 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
6328 < if test "${ac_m_cpu_60x+set}" = set; then
6329 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6330 < else
6331 <  echo 'void f(){}' > conftest.c
6332 < if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
6333 <        ac_m_cpu_60x=yes
6334 < else
6335 <        ac_m_cpu_60x=no
6336 < fi
6337 < rm -f conftest*
6338 <
6339 < fi
6340 < echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6341 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
6342 < if test "$ac_m_cpu_60x" = yes; then
6343 <        :
6344 <        CPU_FLAGS=-mcpu=$cputype
6345 < else
6346 <        :
6347 <
6348 < fi
6349 <
6350 <                elif test "$cputype" = 750; then
6351 <
6352 <
6353 < echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
6354 < echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
6355 < if test "${ac_cv_prog_gcc_2_95+set}" = set; then
6356 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6357 < else
6358 <
6359 < cat > conftest.c <<EOF
6360 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6361 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6362 <     yes;
6363 < #  endif
6364 < #endif
6365 < EOF
6366 < if { ac_try='${CC-cc} -E conftest.c'
6367 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 <  (eval $ac_try) 2>&5
6369 <  ac_status=$?
6370 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6372 <  ac_cv_prog_gcc_2_95=yes
6373 < else
6374 <  ac_cv_prog_gcc_2_95=no
6375 < fi
6376 <
6377 < fi
6378 < echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
6379 < echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
6380 < if test "$ac_cv_prog_gcc_2_95" = yes; then
6381 <        :
6382 <
6383 <
6384 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
6385 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
6386 < if test "${ac_m_cpu_750+set}" = set; then
6387 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6388 < else
6389 <  echo 'void f(){}' > conftest.c
6390 < if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
6391 <        ac_m_cpu_750=yes
6392 < else
6393 <        ac_m_cpu_750=no
6394 < fi
6395 < rm -f conftest*
6396 <
6397 < fi
6398 < echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6399 < echo "${ECHO_T}$ac_m_cpu_750" >&6
6400 < if test "$ac_m_cpu_750" = yes; then
6401 <        :
6402 <        CPU_FLAGS=-mcpu=750
6403 < else
6404 <        :
6405 <
6406 < fi
6407 <
6408 < else
6409 <        :
6410 <
6411 < fi
6412 <
6413 <                fi
6414 <                if test -z "$CPU_FLAGS"; then
6415 <
6416 <
6417 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
6418 < echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
6419 < if test "${ac_m_cpu_powerpc+set}" = set; then
6420 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6421 < else
6422 <  echo 'void f(){}' > conftest.c
6423 < if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
6424 <        ac_m_cpu_powerpc=yes
6425 < else
6426 <        ac_m_cpu_powerpc=no
6427 < fi
6428 < rm -f conftest*
6429 <
6430 < fi
6431 < echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6432 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6433 < if test "$ac_m_cpu_powerpc" = yes; then
6434 <        :
6435 <        CPU_FLAGS=-mcpu=powerpc
6436 < else
6437 <        :
6438 <
6439 < fi
6440 <
6441 <                fi
6442 <                if test -z "$CPU_FLAGS"; then
6443 <
6444 <
6445 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
6446 < echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
6447 < if test "${ac_m_powerpc+set}" = set; then
6448 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6449 < else
6450 <  echo 'void f(){}' > conftest.c
6451 < if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
6452 <        ac_m_powerpc=yes
6453 < else
6454 <        ac_m_powerpc=no
6455 < fi
6456 < rm -f conftest*
6457 <
6458 < fi
6459 < echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6460 < echo "${ECHO_T}$ac_m_powerpc" >&6
6461 < if test "$ac_m_powerpc" = yes; then
6462 <        :
6463 <        CPU_FLAGS=-mpowerpc
6464 < else
6465 <        :
6466 <
6467 < fi
6468 <
6469 <                fi
6470 <          esac
6471 <  fi
6472 <
6473 <  if test -n "$CPU_FLAGS"; then
6474 <        CFLAGS="$CFLAGS $CPU_FLAGS"
6475 <  fi
6476 <
6477 <  if test -z "$CFLAGS"; then
6478 <        echo ""
6479 <        echo "********************************************************"
6480 <        echo "* WARNING: Don't know the best CFLAGS for this system  *"
6481 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
6482 <        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
6483 <        echo "********************************************************"
6484 <        echo ""
6485 <        CFLAGS="-O3"
6486 <  fi
6487 <
6488 <
6489 <
6490 < echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
6491 < echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
6492 < if test "${ac_guessed_cflags+set}" = set; then
6493 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6494 < else
6495 <  echo 'void f(){}' > conftest.c
6496 < if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
6497 <        ac_guessed_cflags=yes
6498 < else
6499 <        ac_guessed_cflags=no
6500 < fi
6501 < rm -f conftest*
6502 <
6503 < fi
6504 < echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
6505 < echo "${ECHO_T}$ac_guessed_cflags" >&6
6506 < if test "$ac_guessed_cflags" = yes; then
6507 <        :
6508 <
6509 < else
6510 <        :
6511 <
6512 <        echo ""
6513 <        echo "********************************************************"
6514 <        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
6515 <        echo "* your compiler.                                       *"
6516 <        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
6517 <        echo "********************************************************"
6518 <        echo ""
6519 <        CFLAGS=""
6520 <
6521 < fi
6522 <
6523 <
6524 < fi
6525 <
6526 <
6527 <
6528 <
6529 <
6530 <
6531 <
6532 < echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
6533 < echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
6534 < if test "${ac_cv_prog_really_gxx+set}" = set; then
6535 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6536 < else
6537 <
6538 < cat > conftest.cpp <<EOF
6539 < #ifdef __GNUC__
6540 <  #ifndef __INTEL_COMPILER
6541 <     yes;
6542 <  #endif
6543 < #endif
6544 < EOF
6545 < if { ac_try='${CXX-c++} -E conftest.cpp'
6546 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6547 <  (eval $ac_try) 2>&5
6548 <  ac_status=$?
6549 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6551 <  ac_cv_prog_really_gxx=yes
6552 < else
6553 <  ac_cv_prog_really_gxx=no
6554 < fi
6555 <
6556 < fi
6557 < echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
6558 < echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
6559 < if test "$ac_cv_prog_really_gxx" = yes; then
6560 <        :
6561 <
6562 < else
6563 <        :
6564 <
6565 < fi
6566 <
6567 <
6568 < # Try to determine "good" native compiler flags if none specified on command
6569 < # line
6570 < if test "$ac_test_CXXFLAGS" != "set"; then
6571 <  CXXFLAGS=""
6572 <  case "${host_cpu}-${host_os}" in
6573 <
6574 <  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
6575 <                    CXXFLAGS="-O"
6576 <                fi;;
6577 <  sparc-solaris2*) if test "$CXX" = CC; then
6578 <                    CXXFLAGS="-native -fast -xO5 -dalign"
6579 <                 fi;;
6580 <   rs6000*-aix*)  if test "$CXX" = xlC; then
6581 <                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6582 <                fi;;
6583 <   powerpc*-aix*)
6584 <        if test "$CXX" = xlC; then
6585 <                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
6586 <                echo "*******************************************************"
6587 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
6588 <                echo "*  recommended that you use                           *"
6589 <                echo "*                                                     *"
6590 <                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
6591 <                echo "*                                 ^^^                 *"
6592 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
6593 <                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
6594 <                echo "*******************************************************"
6595 <        fi;;
6596 <   *darwin*)
6597 <        if test "$CXX" = xlc++; then
6598 <                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
6599 <        fi;;
6600 <  esac
6601 <
6602 <  # use default flags for gcc on all systems
6603 <  if test $ac_cv_prog_really_gxx = yes; then
6604 <     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
6605 <  fi
6606 <
6607 <  # test for gcc-specific flags:
6608 <  if test $ac_cv_prog_really_gxx = yes; then
6609 <    # -malign-double for x86 systems
6610 <
6611 <
6612 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
6613 < echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
6614 < if test "${ac_align_double+set}" = set; then
6615 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6616 < else
6617 <  echo 'void f(){}' > conftest.cpp
6618 < if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
6619 <        ac_align_double=yes
6620 < else
6621 <        ac_align_double=no
6622 < fi
6623 < rm -f conftest*
6624 <
6625 < fi
6626 < echo "$as_me:$LINENO: result: $ac_align_double" >&5
6627 < echo "${ECHO_T}$ac_align_double" >&6
6628 < if test "$ac_align_double" = yes; then
6629 <        :
6630 <        CXXFLAGS="$CXXFLAGS -malign-double"
6631 < else
6632 <        :
6633 <
6634 < fi
6635 <
6636 <    # -fstrict-aliasing for gcc-2.95+
6637 <
6638 <
6639 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
6640 < echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
6641 < if test "${ac_fstrict_aliasing+set}" = set; then
6642 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6643 < else
6644 <  echo 'void f(){}' > conftest.cpp
6645 < if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
6646 <        ac_fstrict_aliasing=yes
6647 < else
6648 <        ac_fstrict_aliasing=no
6649 < fi
6650 < rm -f conftest*
6651 <
6652 < fi
6653 < echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
6654 < echo "${ECHO_T}$ac_fstrict_aliasing" >&6
6655 < if test "$ac_fstrict_aliasing" = yes; then
6656 <        :
6657 <        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
6658 < else
6659 <        :
6660 <
6661 < fi
6662 <
6663 <  fi
6664 <
6665 <  CPU_FLAGS=""
6666 <  if test $ac_cv_prog_really_gxx = yes; then
6667 <                  case "${host_cpu}" in
6668 <          i586*)
6669 <
6670 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
6671 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
6672 < if test "${ac_cpu_pentium+set}" = set; then
6673 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6674 < else
6675 <  echo 'void f(){}' > conftest.cpp
6676 < if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
6677 <        ac_cpu_pentium=yes
6678 < else
6679 <        ac_cpu_pentium=no
6680 < fi
6681 < rm -f conftest*
6682 <
6683 < fi
6684 < echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
6685 < echo "${ECHO_T}$ac_cpu_pentium" >&6
6686 < if test "$ac_cpu_pentium" = yes; then
6687 <        :
6688 <        CPU_FLAGS=-mcpu=pentium
6689 < else
6690 <        :
6691 <
6692 <
6693 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
6694 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
6695 < if test "${ac_pentium+set}" = set; then
6696 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6697 < else
6698 <  echo 'void f(){}' > conftest.cpp
6699 < if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
6700 <        ac_pentium=yes
6701 < else
6702 <        ac_pentium=no
6703 < fi
6704 < rm -f conftest*
6705 <
6706 < fi
6707 < echo "$as_me:$LINENO: result: $ac_pentium" >&5
6708 < echo "${ECHO_T}$ac_pentium" >&6
6709 < if test "$ac_pentium" = yes; then
6710 <        :
6711 <        CPU_FLAGS=-mpentium
6712 < else
6713 <        :
6714 <
6715 < fi
6716 <
6717 < fi
6718 <
6719 <                  ;;
6720 <          i686*)
6721 <
6722 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
6723 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
6724 < if test "${ac_cpu_pentiumpro+set}" = set; then
6725 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6726 < else
6727 <  echo 'void f(){}' > conftest.cpp
6728 < if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
6729 <        ac_cpu_pentiumpro=yes
6730 < else
6731 <        ac_cpu_pentiumpro=no
6732 < fi
6733 < rm -f conftest*
6734 <
6735 < fi
6736 < echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
6737 < echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
6738 < if test "$ac_cpu_pentiumpro" = yes; then
6739 <        :
6740 <        CPU_FLAGS=-mcpu=pentiumpro
6741 < else
6742 <        :
6743 <
6744 <
6745 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
6746 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
6747 < if test "${ac_pentiumpro+set}" = set; then
6748 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6749 < else
6750 <  echo 'void f(){}' > conftest.cpp
6751 < if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
6752 <        ac_pentiumpro=yes
6753 < else
6754 <        ac_pentiumpro=no
6755 < fi
6756 < rm -f conftest*
6757 <
6758 < fi
6759 < echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
6760 < echo "${ECHO_T}$ac_pentiumpro" >&6
6761 < if test "$ac_pentiumpro" = yes; then
6762 <        :
6763 <        CPU_FLAGS=-mpentiumpro
6764 < else
6765 <        :
6766 <
6767 < fi
6768 <
6769 < fi
6770 <
6771 <                  ;;
6772 <          powerpc*)
6773 <                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
6774 <                is60x=`echo $cputype | egrep "^600-9e?$"`
6775 <                if test -n "$is60x"; then
6776 <
6777 <
6778 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
6779 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
6780 < if test "${ac_m_cpu_60x+set}" = set; then
6781 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6782 < else
6783 <  echo 'void f(){}' > conftest.cpp
6784 < if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
6785 <        ac_m_cpu_60x=yes
6786 < else
6787 <        ac_m_cpu_60x=no
6788 < fi
6789 < rm -f conftest*
6790 <
6791 < fi
6792 < echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
6793 < echo "${ECHO_T}$ac_m_cpu_60x" >&6
6794 < if test "$ac_m_cpu_60x" = yes; then
6795 <        :
6796 <        CPU_FLAGS=-mcpu=$cputype
6797 < else
6798 <        :
6799 <
6800 < fi
6801 <
6802 <                elif test "$cputype" = 750; then
6803 <
6804 <
6805 < echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
6806 < echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
6807 < if test "${ac_cv_prog_gxx_2_95+set}" = set; then
6808 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6809 < else
6810 <
6811 < cat > conftest.cpp <<EOF
6812 < #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
6813 < #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
6814 <     yes;
6815 < #  endif
6816 < #endif
6817 < EOF
6818 < if { ac_try='${CXX-c++} -E conftest.cpp'
6819 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 <  (eval $ac_try) 2>&5
6821 <  ac_status=$?
6822 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 <  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
6824 <  ac_cv_prog_gxx_2_95=yes
6825 < else
6826 <  ac_cv_prog_gxx_2_95=no
6827 < fi
6828 <
6829 < fi
6830 < echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
6831 < echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
6832 < if test "$ac_cv_prog_gxx_2_95" = yes; then
6833 <        :
6834 <
6835 <
6836 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
6837 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
6838 < if test "${ac_m_cpu_750+set}" = set; then
6839 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6840 < else
6841 <  echo 'void f(){}' > conftest.cpp
6842 < if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
6843 <        ac_m_cpu_750=yes
6844 < else
6845 <        ac_m_cpu_750=no
6846 < fi
6847 < rm -f conftest*
6848 <
6849 < fi
6850 < echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
6851 < echo "${ECHO_T}$ac_m_cpu_750" >&6
6852 < if test "$ac_m_cpu_750" = yes; then
6853 <        :
6854 <        CPU_FLAGS=-mcpu=750
6855 < else
6856 <        :
6857 <
6858 < fi
6859 <
6860 < else
6861 <        :
6862 <
6863 < fi
6864 <
6865 <                fi
6866 <                if test -z "$CPU_FLAGS"; then
6867 <
6868 <
6869 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
6870 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
6871 < if test "${ac_m_cpu_powerpc+set}" = set; then
6872 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6873 < else
6874 <  echo 'void f(){}' > conftest.cpp
6875 < if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
6876 <        ac_m_cpu_powerpc=yes
6877 < else
6878 <        ac_m_cpu_powerpc=no
6879 < fi
6880 < rm -f conftest*
6881 <
6882 < fi
6883 < echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
6884 < echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
6885 < if test "$ac_m_cpu_powerpc" = yes; then
6886 <        :
6887 <        CPU_FLAGS=-mcpu=powerpc
6888 < else
6889 <        :
6890 <
6891 < fi
6892 <
6893 <                fi
6894 <                if test -z "$CPU_FLAGS"; then
6895 <
6896 <
6897 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
6898 < echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
6899 < if test "${ac_m_powerpc+set}" = set; then
6900 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6901 < else
6902 <  echo 'void f(){}' > conftest.cpp
6903 < if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
6904 <        ac_m_powerpc=yes
6905 < else
6906 <        ac_m_powerpc=no
6907 < fi
6908 < rm -f conftest*
6909 <
6910 < fi
6911 < echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
6912 < echo "${ECHO_T}$ac_m_powerpc" >&6
6913 < if test "$ac_m_powerpc" = yes; then
6914 <        :
6915 <        CPU_FLAGS=-mpowerpc
6916 < else
6917 <        :
6918 <
6919 < fi
6920 <
6921 <                fi
6922 <          esac
6923 <  fi
6924 <
6925 <  if test -n "$CPU_FLAGS"; then
6926 <        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
6927 <  fi
6928 <
6929 <  if test -z "$CXXFLAGS"; then
6930 <        echo ""
6931 <        echo "**********************************************************"
6932 <        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
6933 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
6934 <        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
6935 <        echo "**********************************************************"
6936 <        echo ""
6937 <        CXXFLAGS="-O3"
6938 <  fi
6939 <
6940 <
6941 <
6942 < echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
6943 < echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
6944 < if test "${ac_guessed_cxxflags+set}" = set; then
6945 <  echo $ECHO_N "(cached) $ECHO_C" >&6
6946 < else
6947 <  echo 'void f(){}' > conftest.cpp
6948 < if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
6949 <        ac_guessed_cxxflags=yes
6950 < else
6951 <        ac_guessed_cxxflags=no
6952 < fi
6953 < rm -f conftest*
6954 <
6955 < fi
6956 < echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
6957 < echo "${ECHO_T}$ac_guessed_cxxflags" >&6
6958 < if test "$ac_guessed_cxxflags" = yes; then
6959 <        :
6960 <
6961 < else
6962 <        :
6963 <
6964 <        echo ""
6965 <        echo "**********************************************************"
6966 <        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
6967 <        echo "* your compiler.                                         *"
6968 <        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
6969 <        echo "**********************************************************"
6970 <        echo ""
6971 <        CXXFLAGS=""
6972 <
6973 < fi
6974 <
6975 <
6976 < fi
6977 <
6978 <
6979 <
6980 <
6981 <
6982 < # Try to determine "good" native compiler flags if none specified on command
6983 < # line
6984 <
6985 < if test x"$F90FLAGS" = x ; then
6986 <  F90FLAGS=""
6987 <  case "${host_cpu}-${host_os}" in
6988 <
6989 <  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
6990 <                    F90FLAGS="-O"
6991 <                fi;;
6992 <   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
6993 <                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
6994 <                fi;;
6995 <   powerpc*-aix*)
6996 <        if test "$F90" = f90 -o "$F90" = xlf90; then
6997 <                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
6998 <                echo "*******************************************************"
6999 <                echo "*  You have AIX on an unknown powerpc system.  It is  *"
7000 <                echo "*  recommended that you use                           *"
7001 <                echo "*                                                     *"
7002 <                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
7003 <                echo "*                                 ^^^                 *"
7004 <                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
7005 <                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
7006 <                echo "*******************************************************"
7007 <        fi;;
7008 <   *darwin*)
7009 <        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
7010 <                F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
7011 <        fi;;
7012 <  esac
7013 <
7014 <  if test -n "$CPU_FLAGS"; then
7015 <        F90FLAGS="$F90FLAGS $CPU_FLAGS"
7016 <  fi
7017 <
7018 <  if test -z "$F90FLAGS"; then
7019 <        echo ""
7020 <        echo "**********************************************************"
7021 <        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
7022 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
7023 <        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
7024 <        echo "**********************************************************"
7025 <        echo ""
7026 <        F90FLAGS="-O3"
7027 <  fi
7028 <
7029 <
7030 < echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
7031 < echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
7032 < if test "${ac_guessed_f90flags+set}" = set; then
7033 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7034 < else
7035 <
7036 <
7037 <
7038 < ac_ext=f90
7039 < ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
7040 < ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7041 < ac_compiler_gnu=$ac_cv_f90_compiler_gnu
7042 <
7043 < echo 'program main' > conftest.$ac_ext
7044 < echo 'end program main' >> conftest.$ac_ext
7045 < ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
7046 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7047 <  (eval $ac_compile) 2>&5
7048 <  ac_status=$?
7049 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 <  (exit $ac_status); }; then
7051 <        ac_guessed_f90flags=yes
7052 < else
7053 <        ac_guessed_f90flags=no
7054 < fi
7055 < rm -f conftest*
7056 < ac_ext=c
7057 < ac_cpp='$CPP $CPPFLAGS'
7058 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061 <
7062 <
7063 < fi
7064 < echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
7065 < echo "${ECHO_T}$ac_guessed_f90flags" >&6
7066 < if test "$ac_guessed_f90flags" = yes; then
7067 <        :
7068 <
7069 < else
7070 <        :
7071 <
7072 <        echo ""
7073 <        echo "**********************************************************"
7074 <        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
7075 <        echo "* your compiler.                                         *"
7076 <        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
7077 <        echo "**********************************************************"
7078 <        echo ""
7079 <        F90FLAGS=""
7080 <
7081 < fi
7082 <
7083 <
7084 < fi
7085 <
7086 <     ;;
7087 < esac
7088 <
7089 < # Find a good install program.  We prefer a C program (faster),
7090 < # so one script is as good as another.  But avoid the broken or
7091 < # incompatible versions:
7092 < # SysV /etc/install, /usr/sbin/install
7093 < # SunOS /usr/etc/install
7094 < # IRIX /sbin/install
7095 < # AIX /bin/install
7096 < # AmigaOS /C/install, which installs bootblocks on floppy discs
7097 < # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7098 < # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7099 < # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7100 < # OS/2's system install, which has a completely different semantic
7101 < # ./install, which can be erroneously created by make from ./install.sh.
7102 < echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7103 < echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
7104 < if test -z "$INSTALL"; then
7105 < if test "${ac_cv_path_install+set}" = set; then
7106 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7107 < else
7108 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 < for as_dir in $PATH
7110 < do
7111 <  IFS=$as_save_IFS
7112 <  test -z "$as_dir" && as_dir=.
7113 <  # Account for people who put trailing slashes in PATH elements.
7114 < case $as_dir/ in
7115 <  ./ | .// | /cC/* | \
7116 <  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7117 <  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7118 <  /usr/ucb/* ) ;;
7119 <  *)
7120 <    # OSF1 and SCO ODT 3.0 have their own names for install.
7121 <    # Don't use installbsd from OSF since it installs stuff as root
7122 <    # by default.
7123 <    for ac_prog in ginstall scoinst install; do
7124 <      for ac_exec_ext in '' $ac_executable_extensions; do
7125 <        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
7126 <          if test $ac_prog = install &&
7127 <            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7128 <            # AIX install.  It has an incompatible calling convention.
7129 <            :
7130 <          elif test $ac_prog = install &&
7131 <            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7132 <            # program-specific install script used by HP pwplus--don't use.
7133 <            :
7134 <          else
7135 <            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7136 <            break 3
7137 <          fi
7138 <        fi
7139 <      done
7140 <    done
7141 <    ;;
7142 < esac
7143 < done
7144 <
7145 <
7146 < fi
7147 <  if test "${ac_cv_path_install+set}" = set; then
7148 <    INSTALL=$ac_cv_path_install
7149 <  else
7150 <    # As a last resort, use the slow shell script.  We don't cache a
7151 <    # path for INSTALL within a source directory, because that will
7152 <    # break other packages using the cache if that directory is
7153 <    # removed, or if the path is relative.
7154 <    INSTALL=$ac_install_sh
7155 <  fi
7156 < fi
7157 < echo "$as_me:$LINENO: result: $INSTALL" >&5
7158 < echo "${ECHO_T}$INSTALL" >&6
7159 <
7160 < # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7161 < # It thinks the first close brace ends the variable substitution.
7162 < test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7163 <
7164 < test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7165 <
7166 < test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7167 <
7168 < echo "$as_me:$LINENO: checking whether ln -s works" >&5
7169 < echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
7170 < LN_S=$as_ln_s
7171 < if test "$LN_S" = "ln -s"; then
7172 <  echo "$as_me:$LINENO: result: yes" >&5
7173 < echo "${ECHO_T}yes" >&6
7174 < else
7175 <  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7176 < echo "${ECHO_T}no, using $LN_S" >&6
7177 < fi
7178 <
7179 < echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7180 < echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
7181 < set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
7182 < if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7183 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7184 < else
7185 <  cat >conftest.make <<\_ACEOF
7186 < all:
7187 <        @echo 'ac_maketemp="$(MAKE)"'
7188 < _ACEOF
7189 < # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7190 < eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7191 < if test -n "$ac_maketemp"; then
7192 <  eval ac_cv_prog_make_${ac_make}_set=yes
7193 < else
7194 <  eval ac_cv_prog_make_${ac_make}_set=no
7195 < fi
7196 < rm -f conftest.make
7197 < fi
7198 < if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7199 <  echo "$as_me:$LINENO: result: yes" >&5
7200 < echo "${ECHO_T}yes" >&6
7201 <  SET_MAKE=
7202 < else
7203 <  echo "$as_me:$LINENO: result: no" >&5
7204 < echo "${ECHO_T}no" >&6
7205 <  SET_MAKE="MAKE=${MAKE-make}"
7206 < fi
7207 <
7208 < if test -n "$ac_tool_prefix"; then
7209 <  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7210 < set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7211 < echo "$as_me:$LINENO: checking for $ac_word" >&5
7212 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7213 < if test "${ac_cv_prog_RANLIB+set}" = set; then
7214 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7215 < else
7216 <  if test -n "$RANLIB"; then
7217 <  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7218 < else
7219 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 < for as_dir in $PATH
7221 < do
7222 <  IFS=$as_save_IFS
7223 <  test -z "$as_dir" && as_dir=.
7224 <  for ac_exec_ext in '' $ac_executable_extensions; do
7225 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7226 <    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7227 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 <    break 2
7229 <  fi
7230 < done
7231 < done
7232 <
7233 < fi
7234 < fi
7235 < RANLIB=$ac_cv_prog_RANLIB
7236 < if test -n "$RANLIB"; then
7237 <  echo "$as_me:$LINENO: result: $RANLIB" >&5
7238 < echo "${ECHO_T}$RANLIB" >&6
7239 < else
7240 <  echo "$as_me:$LINENO: result: no" >&5
7241 < echo "${ECHO_T}no" >&6
7242 < fi
7243 <
7244 < fi
7245 < if test -z "$ac_cv_prog_RANLIB"; then
7246 <  ac_ct_RANLIB=$RANLIB
7247 <  # Extract the first word of "ranlib", so it can be a program name with args.
7248 < set dummy ranlib; ac_word=$2
7249 < echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7251 < if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7252 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7253 < else
7254 <  if test -n "$ac_ct_RANLIB"; then
7255 <  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7256 < else
7257 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 < for as_dir in $PATH
7259 < do
7260 <  IFS=$as_save_IFS
7261 <  test -z "$as_dir" && as_dir=.
7262 <  for ac_exec_ext in '' $ac_executable_extensions; do
7263 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264 <    ac_cv_prog_ac_ct_RANLIB="ranlib"
7265 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 <    break 2
7267 <  fi
7268 < done
7269 < done
7270 <
7271 <  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7272 < fi
7273 < fi
7274 < ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7275 < if test -n "$ac_ct_RANLIB"; then
7276 <  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7277 < echo "${ECHO_T}$ac_ct_RANLIB" >&6
7278 < else
7279 <  echo "$as_me:$LINENO: result: no" >&5
7280 < echo "${ECHO_T}no" >&6
7281 < fi
7282 <
7283 <  RANLIB=$ac_ct_RANLIB
7284 < else
7285 <  RANLIB="$ac_cv_prog_RANLIB"
7286 < fi
7287 <
7288 < for ac_prog in 'bison -y' byacc
7289 < do
7290 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
7291 < set dummy $ac_prog; ac_word=$2
7292 < echo "$as_me:$LINENO: checking for $ac_word" >&5
7293 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7294 < if test "${ac_cv_prog_YACC+set}" = set; then
7295 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7296 < else
7297 <  if test -n "$YACC"; then
7298 <  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7299 < else
7300 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 < for as_dir in $PATH
7302 < do
7303 <  IFS=$as_save_IFS
7304 <  test -z "$as_dir" && as_dir=.
7305 <  for ac_exec_ext in '' $ac_executable_extensions; do
7306 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307 <    ac_cv_prog_YACC="$ac_prog"
7308 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 <    break 2
7310 <  fi
7311 < done
7312 < done
7313 <
7314 < fi
7315 < fi
7316 < YACC=$ac_cv_prog_YACC
7317 < if test -n "$YACC"; then
7318 <  echo "$as_me:$LINENO: result: $YACC" >&5
7319 < echo "${ECHO_T}$YACC" >&6
7320 < else
7321 <  echo "$as_me:$LINENO: result: no" >&5
7322 < echo "${ECHO_T}no" >&6
7323 < fi
7324 <
7325 <  test -n "$YACC" && break
7326 < done
7327 < test -n "$YACC" || YACC="yacc"
7328 <
7329 < for ac_prog in flex lex
7330 < do
7331 <  # Extract the first word of "$ac_prog", so it can be a program name with args.
7332 < set dummy $ac_prog; ac_word=$2
7333 < echo "$as_me:$LINENO: checking for $ac_word" >&5
7334 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7335 < if test "${ac_cv_prog_LEX+set}" = set; then
7336 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7337 < else
7338 <  if test -n "$LEX"; then
7339 <  ac_cv_prog_LEX="$LEX" # Let the user override the test.
7340 < else
7341 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 < for as_dir in $PATH
7343 < do
7344 <  IFS=$as_save_IFS
7345 <  test -z "$as_dir" && as_dir=.
7346 <  for ac_exec_ext in '' $ac_executable_extensions; do
7347 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348 <    ac_cv_prog_LEX="$ac_prog"
7349 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7350 <    break 2
7351 <  fi
7352 < done
7353 < done
7354 <
7355 < fi
7356 < fi
7357 < LEX=$ac_cv_prog_LEX
7358 < if test -n "$LEX"; then
7359 <  echo "$as_me:$LINENO: result: $LEX" >&5
7360 < echo "${ECHO_T}$LEX" >&6
7361 < else
7362 <  echo "$as_me:$LINENO: result: no" >&5
7363 < echo "${ECHO_T}no" >&6
7364 < fi
7365 <
7366 <  test -n "$LEX" && break
7367 < done
7368 < test -n "$LEX" || LEX=":"
7369 <
7370 < if test -z "$LEXLIB"
7371 < then
7372 <  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
7373 < echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
7374 < if test "${ac_cv_lib_fl_yywrap+set}" = set; then
7375 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7376 < else
7377 <  ac_check_lib_save_LIBS=$LIBS
7378 < LIBS="-lfl  $LIBS"
7379 < cat >conftest.$ac_ext <<_ACEOF
7380 < /* confdefs.h.  */
7381 < _ACEOF
7382 < cat confdefs.h >>conftest.$ac_ext
7383 < cat >>conftest.$ac_ext <<_ACEOF
7384 < /* end confdefs.h.  */
7385 <
7386 < /* Override any gcc2 internal prototype to avoid an error.  */
7387 < #ifdef __cplusplus
7388 < extern "C"
7389 < #endif
7390 < /* We use char because int might match the return type of a gcc2
7391 <   builtin and then its argument prototype would still apply.  */
7392 < char yywrap ();
7393 < int
7394 < main ()
7395 < {
7396 < yywrap ();
7397 <  ;
7398 <  return 0;
7399 < }
7400 < _ACEOF
7401 < rm -f conftest.$ac_objext conftest$ac_exeext
7402 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 <  (eval $ac_link) 2>conftest.er1
7404 <  ac_status=$?
7405 <  grep -v '^ *+' conftest.er1 >conftest.err
7406 <  rm -f conftest.er1
7407 <  cat conftest.err >&5
7408 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 <  (exit $ac_status); } &&
7410 <         { ac_try='test -z "$ac_c_werror_flag"
7411 <                         || test ! -s conftest.err'
7412 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7413 <  (eval $ac_try) 2>&5
7414 <  ac_status=$?
7415 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 <  (exit $ac_status); }; } &&
7417 <         { ac_try='test -s conftest$ac_exeext'
7418 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 <  (eval $ac_try) 2>&5
7420 <  ac_status=$?
7421 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 <  (exit $ac_status); }; }; then
7423 <  ac_cv_lib_fl_yywrap=yes
7424 < else
7425 <  echo "$as_me: failed program was:" >&5
7426 < sed 's/^/| /' conftest.$ac_ext >&5
7427 <
7428 < ac_cv_lib_fl_yywrap=no
7429 < fi
7430 < rm -f conftest.err conftest.$ac_objext \
7431 <      conftest$ac_exeext conftest.$ac_ext
7432 < LIBS=$ac_check_lib_save_LIBS
7433 < fi
7434 < echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
7435 < echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
7436 < if test $ac_cv_lib_fl_yywrap = yes; then
7437 <  LEXLIB="-lfl"
7438 < else
7439 <  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
7440 < echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
7441 < if test "${ac_cv_lib_l_yywrap+set}" = set; then
7442 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7443 < else
7444 <  ac_check_lib_save_LIBS=$LIBS
7445 < LIBS="-ll  $LIBS"
7446 < cat >conftest.$ac_ext <<_ACEOF
7447 < /* confdefs.h.  */
7448 < _ACEOF
7449 < cat confdefs.h >>conftest.$ac_ext
7450 < cat >>conftest.$ac_ext <<_ACEOF
7451 < /* end confdefs.h.  */
7452 <
7453 < /* Override any gcc2 internal prototype to avoid an error.  */
7454 < #ifdef __cplusplus
7455 < extern "C"
7456 < #endif
7457 < /* We use char because int might match the return type of a gcc2
7458 <   builtin and then its argument prototype would still apply.  */
7459 < char yywrap ();
7460 < int
7461 < main ()
7462 < {
7463 < yywrap ();
7464 <  ;
7465 <  return 0;
7466 < }
7467 < _ACEOF
7468 < rm -f conftest.$ac_objext conftest$ac_exeext
7469 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7470 <  (eval $ac_link) 2>conftest.er1
7471 <  ac_status=$?
7472 <  grep -v '^ *+' conftest.er1 >conftest.err
7473 <  rm -f conftest.er1
7474 <  cat conftest.err >&5
7475 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 <  (exit $ac_status); } &&
7477 <         { ac_try='test -z "$ac_c_werror_flag"
7478 <                         || test ! -s conftest.err'
7479 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 <  (eval $ac_try) 2>&5
7481 <  ac_status=$?
7482 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 <  (exit $ac_status); }; } &&
7484 <         { ac_try='test -s conftest$ac_exeext'
7485 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 <  (eval $ac_try) 2>&5
7487 <  ac_status=$?
7488 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 <  (exit $ac_status); }; }; then
7490 <  ac_cv_lib_l_yywrap=yes
7491 < else
7492 <  echo "$as_me: failed program was:" >&5
7493 < sed 's/^/| /' conftest.$ac_ext >&5
7494 <
7495 < ac_cv_lib_l_yywrap=no
7496 < fi
7497 < rm -f conftest.err conftest.$ac_objext \
7498 <      conftest$ac_exeext conftest.$ac_ext
7499 < LIBS=$ac_check_lib_save_LIBS
7500 < fi
7501 < echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
7502 < echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
7503 < if test $ac_cv_lib_l_yywrap = yes; then
7504 <  LEXLIB="-ll"
7505 < fi
7506 <
7507 < fi
7508 <
7509 < fi
7510 <
7511 < if test "x$LEX" != "x:"; then
7512 <  echo "$as_me:$LINENO: checking lex output file root" >&5
7513 < echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
7514 < if test "${ac_cv_prog_lex_root+set}" = set; then
7515 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7516 < else
7517 <  # The minimal lex program is just a single line: %%.  But some broken lexes
7518 < # (Solaris, I think it was) want two %% lines, so accommodate them.
7519 < cat >conftest.l <<_ACEOF
7520 < %%
7521 < %%
7522 < _ACEOF
7523 < { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
7524 <  (eval $LEX conftest.l) 2>&5
7525 <  ac_status=$?
7526 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 <  (exit $ac_status); }
7528 < if test -f lex.yy.c; then
7529 <  ac_cv_prog_lex_root=lex.yy
7530 < elif test -f lexyy.c; then
7531 <  ac_cv_prog_lex_root=lexyy
7532 < else
7533 <  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
7534 < echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
7535 <   { (exit 1); exit 1; }; }
7536 < fi
7537 < fi
7538 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
7539 < echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
7540 < rm -f conftest.l
7541 < LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7542 <
7543 < echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
7544 < echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
7545 < if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
7546 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7547 < else
7548 <  # POSIX says lex can declare yytext either as a pointer or an array; the
7549 < # default is implementation-dependent. Figure out which it is, since
7550 < # not all implementations provide the %pointer and %array declarations.
7551 < ac_cv_prog_lex_yytext_pointer=no
7552 < echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
7553 < ac_save_LIBS=$LIBS
7554 < LIBS="$LIBS $LEXLIB"
7555 < cat >conftest.$ac_ext <<_ACEOF
7556 < `cat $LEX_OUTPUT_ROOT.c`
7557 < _ACEOF
7558 < rm -f conftest.$ac_objext conftest$ac_exeext
7559 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7560 <  (eval $ac_link) 2>conftest.er1
7561 <  ac_status=$?
7562 <  grep -v '^ *+' conftest.er1 >conftest.err
7563 <  rm -f conftest.er1
7564 <  cat conftest.err >&5
7565 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 <  (exit $ac_status); } &&
7567 <         { ac_try='test -z "$ac_c_werror_flag"
7568 <                         || test ! -s conftest.err'
7569 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7570 <  (eval $ac_try) 2>&5
7571 <  ac_status=$?
7572 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 <  (exit $ac_status); }; } &&
7574 <         { ac_try='test -s conftest$ac_exeext'
7575 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7576 <  (eval $ac_try) 2>&5
7577 <  ac_status=$?
7578 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 <  (exit $ac_status); }; }; then
7580 <  ac_cv_prog_lex_yytext_pointer=yes
7581 < else
7582 <  echo "$as_me: failed program was:" >&5
7583 < sed 's/^/| /' conftest.$ac_ext >&5
7584 <
7585 < fi
7586 < rm -f conftest.err conftest.$ac_objext \
7587 <      conftest$ac_exeext conftest.$ac_ext
7588 < LIBS=$ac_save_LIBS
7589 < rm -f "${LEX_OUTPUT_ROOT}.c"
7590 <
7591 < fi
7592 < echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
7593 < echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
7594 < if test $ac_cv_prog_lex_yytext_pointer = yes; then
7595 <
7596 < cat >>confdefs.h <<\_ACEOF
7597 < #define YYTEXT_POINTER 1
7598 < _ACEOF
7599 <
7600 < fi
7601 <
7602 < fi
7603 < # Extract the first word of "ar", so it can be a program name with args.
7604 < set dummy ar; ac_word=$2
7605 < echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7607 < if test "${ac_cv_prog_AR+set}" = set; then
7608 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7609 < else
7610 <  if test -n "$AR"; then
7611 <  ac_cv_prog_AR="$AR" # Let the user override the test.
7612 < else
7613 < as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 < for as_dir in $PATH
7615 < do
7616 <  IFS=$as_save_IFS
7617 <  test -z "$as_dir" && as_dir=.
7618 <  for ac_exec_ext in '' $ac_executable_extensions; do
7619 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620 <    ac_cv_prog_AR="ar"
7621 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7622 <    break 2
7623 <  fi
7624 < done
7625 < done
7626 <
7627 <  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
7628 < fi
7629 < fi
7630 < AR=$ac_cv_prog_AR
7631 < if test -n "$AR"; then
7632 <  echo "$as_me:$LINENO: result: $AR" >&5
7633 < echo "${ECHO_T}$AR" >&6
7634 < else
7635 <  echo "$as_me:$LINENO: result: no" >&5
7636 < echo "${ECHO_T}no" >&6
7637 < fi
7638 <
7639 < if test "$AR" = "NONE"; then
7640 <  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
7641 < echo "$as_me: error: --> Can't find \`ar'!" >&2;}
7642 <   { (exit 1); exit 1; }; }
7643 <  cat >confcache <<\_ACEOF
7644 < # This file is a shell script that caches the results of configure
7645 < # tests run on this system so they can be shared between configure
7646 < # scripts and configure runs, see configure's option --config-cache.
7647 < # It is not useful on other systems.  If it contains results you don't
7648 < # want to keep, you may remove or edit it.
7649 < #
7650 < # config.status only pays attention to the cache file if you give it
7651 < # the --recheck option to rerun configure.
7652 < #
7653 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
7654 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
7655 < # following values.
7656 <
7657 < _ACEOF
7658 <
7659 < # The following way of writing the cache mishandles newlines in values,
7660 < # but we know of no workaround that is simple, portable, and efficient.
7661 < # So, don't put newlines in cache variables' values.
7662 < # Ultrix sh set writes to stderr and can't be redirected directly,
7663 < # and sets the high bit in the cache file unless we assign to the vars.
7664 < {
7665 <  (set) 2>&1 |
7666 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
7667 <    *ac_space=\ *)
7668 <      # `set' does not quote correctly, so add quotes (double-quote
7669 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
7670 <      sed -n \
7671 <        "s/'/'\\\\''/g;
7672 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7673 <      ;;
7674 <    *)
7675 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
7676 <      sed -n \
7677 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7678 <      ;;
7679 <    esac;
7680 < } |
7681 <  sed '
7682 <     t clear
7683 <     : clear
7684 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7685 <     t end
7686 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7687 <     : end' >>confcache
7688 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
7689 <  if test -w $cache_file; then
7690 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7691 <    cat confcache >$cache_file
7692 <  else
7693 <    echo "not updating unwritable cache $cache_file"
7694 <  fi
7695 < fi
7696 < rm -f confcache
7697 <  exit 1
7698 < fi
7699 <
7700 <
7701 <
7702 < # Check whether --with-mpi or --without-mpi was given.
7703 < if test "${with_mpi+set}" = set; then
7704 <  withval="$with_mpi"
7705 <  with_mpi=$withval
7706 < else
7707 <  with_mpi="no"
7708 < fi;
7709 <
7710 < case "x$with_mpi" in
7711 <        xyes | "x")  USE_MPI=yes;;
7712 <        xno) USE_MPI=no ;;
7713 <        *) MPI="$with_mpi"; USE_MPI=yes ;;
7714 < esac
7715 < if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
7716 <        MPI="/usr/local"
7717 < fi
7718 < if test "$USE_MPI" = "yes"; then
7719 <
7720 <
7721 < # Set variables...
7722 < MPI_LIB_DIR="$MPI/lib"
7723 < MPI_INC_DIR="$MPI/include"
7724 <
7725 <
7726 <
7727 < echo "$as_me:$LINENO: checking for mpi.h" >&5
7728 < echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
7729 < have_mpi_h=0
7730 < echo '#include <mpi.h>' > conftest.cc
7731 < if test -z "`${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1`"; then
7732 <        echo "$as_me:$LINENO: result: yes" >&5
7733 < echo "${ECHO_T}yes" >&6
7734 <        have_mpi_h=1
7735 < else
7736 <        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7737 < echo "${ECHO_T}no! Check MPI include paths" >&6
7738 <        USE_MPI="no"
7739 < fi
7740 < rm -f conftest*
7741 < if test "$have_mpi_h" = 1; then
7742 <
7743 < cat >>confdefs.h <<\_ACEOF
7744 < #define HAVE_MPI_H 1
7745 < _ACEOF
7746 <
7747 < fi
7748 <
7749 < echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
7750 < echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
7751 < have_mpif_h=0
7752 < rm -f conftest*
7753 < cat >conftest.f90 <<EOF
7754 < program main
7755 <   include 'mpif.h'
7756 < end
7757 < EOF
7758 < if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
7759 <        echo "$as_me:$LINENO: result: yes" >&5
7760 < echo "${ECHO_T}yes" >&6
7761 <        MPI_F90_INC="$MPI_INC_DIR"
7762 <        have_mpif_h=1
7763 < else
7764 <        if test -s conftest.out ; then
7765 <                cat conftest.out >> config.log
7766 <        fi
7767 <        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
7768 < echo "${ECHO_T}no! Check MPI include paths" >&6
7769 <        USE_MPI="no"
7770 < fi
7771 < rm -f conftest*
7772 <
7773 < if test "$have_mpif_h" = 1; then
7774 <
7775 < cat >>confdefs.h <<\_ACEOF
7776 < #define HAVE_MPIF_H 1
7777 < _ACEOF
7778 <
7779 < fi
7780 <
7781 < ac_ext=c
7782 < ac_cpp='$CPP $CPPFLAGS'
7783 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786 <
7787 < ac_save_LDFLAGS=$LDFLAGS
7788 < LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
7789 <
7790 < if test x = x"$MPI_LIB"; then
7791 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
7792 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
7793 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
7794 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7795 < else
7796 <  ac_check_lib_save_LIBS=$LIBS
7797 < LIBS="-lmpich  $LIBS"
7798 < cat >conftest.$ac_ext <<_ACEOF
7799 < /* confdefs.h.  */
7800 < _ACEOF
7801 < cat confdefs.h >>conftest.$ac_ext
7802 < cat >>conftest.$ac_ext <<_ACEOF
7803 < /* end confdefs.h.  */
7804 <
7805 < /* Override any gcc2 internal prototype to avoid an error.  */
7806 < #ifdef __cplusplus
7807 < extern "C"
7808 < #endif
7809 < /* We use char because int might match the return type of a gcc2
7810 <   builtin and then its argument prototype would still apply.  */
7811 < char MPI_Init ();
7812 < int
7813 < main ()
7814 < {
7815 < MPI_Init ();
7816 <  ;
7817 <  return 0;
7818 < }
7819 < _ACEOF
7820 < rm -f conftest.$ac_objext conftest$ac_exeext
7821 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7822 <  (eval $ac_link) 2>conftest.er1
7823 <  ac_status=$?
7824 <  grep -v '^ *+' conftest.er1 >conftest.err
7825 <  rm -f conftest.er1
7826 <  cat conftest.err >&5
7827 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 <  (exit $ac_status); } &&
7829 <         { ac_try='test -z "$ac_c_werror_flag"
7830 <                         || test ! -s conftest.err'
7831 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7832 <  (eval $ac_try) 2>&5
7833 <  ac_status=$?
7834 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 <  (exit $ac_status); }; } &&
7836 <         { ac_try='test -s conftest$ac_exeext'
7837 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 <  (eval $ac_try) 2>&5
7839 <  ac_status=$?
7840 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 <  (exit $ac_status); }; }; then
7842 <  ac_cv_lib_mpich_MPI_Init=yes
7843 < else
7844 <  echo "$as_me: failed program was:" >&5
7845 < sed 's/^/| /' conftest.$ac_ext >&5
7846 <
7847 < ac_cv_lib_mpich_MPI_Init=no
7848 < fi
7849 < rm -f conftest.err conftest.$ac_objext \
7850 <      conftest$ac_exeext conftest.$ac_ext
7851 < LIBS=$ac_check_lib_save_LIBS
7852 < fi
7853 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
7854 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
7855 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
7856 <  MPI_LIB="-lmpich"
7857 < fi
7858 <
7859 < fi
7860 < if test x = x"$MPI_LIB"; then
7861 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7862 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7863 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7864 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7865 < else
7866 <  ac_check_lib_save_LIBS=$LIBS
7867 < LIBS="-lmpi  $LIBS"
7868 < cat >conftest.$ac_ext <<_ACEOF
7869 < /* confdefs.h.  */
7870 < _ACEOF
7871 < cat confdefs.h >>conftest.$ac_ext
7872 < cat >>conftest.$ac_ext <<_ACEOF
7873 < /* end confdefs.h.  */
7874 <
7875 < /* Override any gcc2 internal prototype to avoid an error.  */
7876 < #ifdef __cplusplus
7877 < extern "C"
7878 < #endif
7879 < /* We use char because int might match the return type of a gcc2
7880 <   builtin and then its argument prototype would still apply.  */
7881 < char MPI_Init ();
7882 < int
7883 < main ()
7884 < {
7885 < MPI_Init ();
7886 <  ;
7887 <  return 0;
7888 < }
7889 < _ACEOF
7890 < rm -f conftest.$ac_objext conftest$ac_exeext
7891 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7892 <  (eval $ac_link) 2>conftest.er1
7893 <  ac_status=$?
7894 <  grep -v '^ *+' conftest.er1 >conftest.err
7895 <  rm -f conftest.er1
7896 <  cat conftest.err >&5
7897 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 <  (exit $ac_status); } &&
7899 <         { ac_try='test -z "$ac_c_werror_flag"
7900 <                         || test ! -s conftest.err'
7901 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7902 <  (eval $ac_try) 2>&5
7903 <  ac_status=$?
7904 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 <  (exit $ac_status); }; } &&
7906 <         { ac_try='test -s conftest$ac_exeext'
7907 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908 <  (eval $ac_try) 2>&5
7909 <  ac_status=$?
7910 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 <  (exit $ac_status); }; }; then
7912 <  ac_cv_lib_mpi_MPI_Init=yes
7913 < else
7914 <  echo "$as_me: failed program was:" >&5
7915 < sed 's/^/| /' conftest.$ac_ext >&5
7916 <
7917 < ac_cv_lib_mpi_MPI_Init=no
7918 < fi
7919 < rm -f conftest.err conftest.$ac_objext \
7920 <      conftest$ac_exeext conftest.$ac_ext
7921 < LIBS=$ac_check_lib_save_LIBS
7922 < fi
7923 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7924 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7925 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
7926 <  MPI_LIB="-lmpi"
7927 < fi
7928 <
7929 < fi
7930 < $as_unset ac_cv_lib_mpi_MPI_Init
7931 < if test x = x"$MPI_LIB"; then
7932 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
7933 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
7934 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
7935 <  echo $ECHO_N "(cached) $ECHO_C" >&6
7936 < else
7937 <  ac_check_lib_save_LIBS=$LIBS
7938 < LIBS="-lmpi "-llam" $LIBS"
7939 < cat >conftest.$ac_ext <<_ACEOF
7940 < /* confdefs.h.  */
7941 < _ACEOF
7942 < cat confdefs.h >>conftest.$ac_ext
7943 < cat >>conftest.$ac_ext <<_ACEOF
7944 < /* end confdefs.h.  */
7945 <
7946 < /* Override any gcc2 internal prototype to avoid an error.  */
7947 < #ifdef __cplusplus
7948 < extern "C"
7949 < #endif
7950 < /* We use char because int might match the return type of a gcc2
7951 <   builtin and then its argument prototype would still apply.  */
7952 < char MPI_Init ();
7953 < int
7954 < main ()
7955 < {
7956 < MPI_Init ();
7957 <  ;
7958 <  return 0;
7959 < }
7960 < _ACEOF
7961 < rm -f conftest.$ac_objext conftest$ac_exeext
7962 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 <  (eval $ac_link) 2>conftest.er1
7964 <  ac_status=$?
7965 <  grep -v '^ *+' conftest.er1 >conftest.err
7966 <  rm -f conftest.er1
7967 <  cat conftest.err >&5
7968 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 <  (exit $ac_status); } &&
7970 <         { ac_try='test -z "$ac_c_werror_flag"
7971 <                         || test ! -s conftest.err'
7972 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7973 <  (eval $ac_try) 2>&5
7974 <  ac_status=$?
7975 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 <  (exit $ac_status); }; } &&
7977 <         { ac_try='test -s conftest$ac_exeext'
7978 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 <  (eval $ac_try) 2>&5
7980 <  ac_status=$?
7981 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 <  (exit $ac_status); }; }; then
7983 <  ac_cv_lib_mpi_MPI_Init=yes
7984 < else
7985 <  echo "$as_me: failed program was:" >&5
7986 < sed 's/^/| /' conftest.$ac_ext >&5
7987 <
7988 < ac_cv_lib_mpi_MPI_Init=no
7989 < fi
7990 < rm -f conftest.err conftest.$ac_objext \
7991 <      conftest$ac_exeext conftest.$ac_ext
7992 < LIBS=$ac_check_lib_save_LIBS
7993 < fi
7994 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
7995 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
7996 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
7997 <  MPI_LIB="-lmpi -llam"
7998 < fi
7999 <
8000 < fi
8001 < $as_unset ac_cv_lib_mpich_MPI_Init
8002 < if test x = x"$MPI_LIB"; then
8003 <        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
8004 < echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
8005 < if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
8006 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8007 < else
8008 <  ac_check_lib_save_LIBS=$LIBS
8009 < LIBS="-lmpich "-lpmpich" $LIBS"
8010 < cat >conftest.$ac_ext <<_ACEOF
8011 < /* confdefs.h.  */
8012 < _ACEOF
8013 < cat confdefs.h >>conftest.$ac_ext
8014 < cat >>conftest.$ac_ext <<_ACEOF
8015 < /* end confdefs.h.  */
8016 <
8017 < /* Override any gcc2 internal prototype to avoid an error.  */
8018 < #ifdef __cplusplus
8019 < extern "C"
8020 < #endif
8021 < /* We use char because int might match the return type of a gcc2
8022 <   builtin and then its argument prototype would still apply.  */
8023 < char MPI_Init ();
8024 < int
8025 < main ()
8026 < {
8027 < MPI_Init ();
8028 <  ;
8029 <  return 0;
8030 < }
8031 < _ACEOF
8032 < rm -f conftest.$ac_objext conftest$ac_exeext
8033 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034 <  (eval $ac_link) 2>conftest.er1
8035 <  ac_status=$?
8036 <  grep -v '^ *+' conftest.er1 >conftest.err
8037 <  rm -f conftest.er1
8038 <  cat conftest.err >&5
8039 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 <  (exit $ac_status); } &&
8041 <         { ac_try='test -z "$ac_c_werror_flag"
8042 <                         || test ! -s conftest.err'
8043 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8044 <  (eval $ac_try) 2>&5
8045 <  ac_status=$?
8046 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 <  (exit $ac_status); }; } &&
8048 <         { ac_try='test -s conftest$ac_exeext'
8049 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 <  (eval $ac_try) 2>&5
8051 <  ac_status=$?
8052 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 <  (exit $ac_status); }; }; then
8054 <  ac_cv_lib_mpich_MPI_Init=yes
8055 < else
8056 <  echo "$as_me: failed program was:" >&5
8057 < sed 's/^/| /' conftest.$ac_ext >&5
8058 <
8059 < ac_cv_lib_mpich_MPI_Init=no
8060 < fi
8061 < rm -f conftest.err conftest.$ac_objext \
8062 <      conftest$ac_exeext conftest.$ac_ext
8063 < LIBS=$ac_check_lib_save_LIBS
8064 < fi
8065 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
8066 < echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
8067 < if test $ac_cv_lib_mpich_MPI_Init = yes; then
8068 <  MPI_LIB="-lmpich -lpmpich"
8069 < fi
8070 <
8071 < fi
8072 <
8073 < $as_unset ac_cv_lib_mpi_MPI_Init
8074 < if test x = x"$MPI_LIB"; then
8075 < echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
8076 < echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
8077 < if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
8078 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8079 < else
8080 <  ac_check_lib_save_LIBS=$LIBS
8081 < LIBS="-lmpi -llam -lpthread $LIBS"
8082 < cat >conftest.$ac_ext <<_ACEOF
8083 < /* confdefs.h.  */
8084 < _ACEOF
8085 < cat confdefs.h >>conftest.$ac_ext
8086 < cat >>conftest.$ac_ext <<_ACEOF
8087 < /* end confdefs.h.  */
8088 <
8089 < /* Override any gcc2 internal prototype to avoid an error.  */
8090 < #ifdef __cplusplus
8091 < extern "C"
8092 < #endif
8093 < /* We use char because int might match the return type of a gcc2
8094 <   builtin and then its argument prototype would still apply.  */
8095 < char MPI_Init ();
8096 < int
8097 < main ()
8098 < {
8099 < MPI_Init ();
8100 <  ;
8101 <  return 0;
8102 < }
8103 < _ACEOF
8104 < rm -f conftest.$ac_objext conftest$ac_exeext
8105 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8106 <  (eval $ac_link) 2>conftest.er1
8107 <  ac_status=$?
8108 <  grep -v '^ *+' conftest.er1 >conftest.err
8109 <  rm -f conftest.er1
8110 <  cat conftest.err >&5
8111 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 <  (exit $ac_status); } &&
8113 <         { ac_try='test -z "$ac_c_werror_flag"
8114 <                         || test ! -s conftest.err'
8115 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116 <  (eval $ac_try) 2>&5
8117 <  ac_status=$?
8118 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 <  (exit $ac_status); }; } &&
8120 <         { ac_try='test -s conftest$ac_exeext'
8121 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8122 <  (eval $ac_try) 2>&5
8123 <  ac_status=$?
8124 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 <  (exit $ac_status); }; }; then
8126 <  ac_cv_lib_mpi_MPI_Init=yes
8127 < else
8128 <  echo "$as_me: failed program was:" >&5
8129 < sed 's/^/| /' conftest.$ac_ext >&5
8130 <
8131 < ac_cv_lib_mpi_MPI_Init=no
8132 < fi
8133 < rm -f conftest.err conftest.$ac_objext \
8134 <      conftest$ac_exeext conftest.$ac_ext
8135 < LIBS=$ac_check_lib_save_LIBS
8136 < fi
8137 < echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
8138 < echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
8139 < if test $ac_cv_lib_mpi_MPI_Init = yes; then
8140 <  MPI_LIB="-lmpi -llam -lpthread"
8141 < else
8142 <
8143 <             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
8144 < echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
8145 <   { (exit 1); exit 1; }; }
8146 <             USE_MPI="no"
8147 <
8148 < fi
8149 <
8150 < fi
8151 <
8152 <
8153 <
8154 < echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
8155 < echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
8156 < MPI_F90_LIB=""
8157 < if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
8158 <        MPI_F90_LIB="-lfmpich"
8159 < elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
8160 <        MPI_F90_LIB="-llamf77mpi"
8161 < else
8162 <                        MPI_F90_LIB="  "
8163 < fi
8164 < echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
8165 < echo "${ECHO_T}found $MPI_F90_LIB" >&6
8166 <
8167 <
8168 < fi
8169 <
8170 <
8171 <
8172 < # Check whether --with-sprng or --without-sprng was given.
8173 < if test "${with_sprng+set}" = set; then
8174 <  withval="$with_sprng"
8175 <  with_sprng=$withval
8176 < else
8177 <  with_sprng="/usr/local"
8178 < fi;
8179 <
8180 < case "x$with_sprng" in
8181 <        xyes | "x")  USE_SPRNG=yes;;
8182 <        xno) USE_SPRNG=no ;;
8183 <        *) SPRNG="$with_sprng"; USE_SPRNG=yes ;;
8184 < esac
8185 < if test "$USE_SPRNG" = "yes" -a -z "$with_sprng"; then
8186 <        SPRNG="/usr/local"
8187 < fi
8188 < if test "$USE_SPRNG" = "yes"; then
8189 <
8190 <
8191 < # Set variables...
8192 < SPRNG_LIB_DIR="$SPRNG/lib"
8193 < SPRNG_INC_DIR="$SPRNG/include"
8194 <
8195 <
8196 <
8197 < echo "$as_me:$LINENO: checking for sprng.h" >&5
8198 < echo $ECHO_N "checking for sprng.h... $ECHO_C" >&6
8199 < have_sprng_h=0
8200 < echo '#include <sprng.h>' > conftest.cc
8201 < if test -z "`${CXX} -I${SPRNG_INC_DIR} -c conftest.cc 2>&1`"; then
8202 <        echo "$as_me:$LINENO: result: yes" >&5
8203 < echo "${ECHO_T}yes" >&6
8204 <        have_sprng_h=1
8205 < else
8206 <        echo "$as_me:$LINENO: result: no! Check SPRNG include path!" >&5
8207 < echo "${ECHO_T}no! Check SPRNG include path!" >&6
8208 <        USE_SPRNG="no"
8209 < fi
8210 < rm -f conftest*
8211 < if test "$have_sprng_h" = 1; then
8212 <
8213 < cat >>confdefs.h <<\_ACEOF
8214 < #define HAVE_SPRNG_H 1
8215 < _ACEOF
8216 <
8217 < fi
8218 <
8219 < ac_ext=c
8220 < ac_cpp='$CPP $CPPFLAGS'
8221 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8222 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8223 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8224 <
8225 < ac_save_LDFLAGS=$LDFLAGS
8226 < LDFLAGS="${LDFLAGS} -L${SPRNG_LIB_DIR} "
8227 <
8228 < echo "$as_me:$LINENO: checking for init_rng in -lsprng" >&5
8229 < echo $ECHO_N "checking for init_rng in -lsprng... $ECHO_C" >&6
8230 < if test "${ac_cv_lib_sprng_init_rng+set}" = set; then
8231 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8232 < else
8233 <  ac_check_lib_save_LIBS=$LIBS
8234 < LIBS="-lsprng  $LIBS"
8235 < cat >conftest.$ac_ext <<_ACEOF
8236 < /* confdefs.h.  */
8237 < _ACEOF
8238 < cat confdefs.h >>conftest.$ac_ext
8239 < cat >>conftest.$ac_ext <<_ACEOF
8240 < /* end confdefs.h.  */
8241 <
8242 < /* Override any gcc2 internal prototype to avoid an error.  */
8243 < #ifdef __cplusplus
8244 < extern "C"
8245 < #endif
8246 < /* We use char because int might match the return type of a gcc2
8247 <   builtin and then its argument prototype would still apply.  */
8248 < char init_rng ();
8249 < int
8250 < main ()
8251 < {
8252 < init_rng ();
8253 <  ;
8254 <  return 0;
8255 < }
8256 < _ACEOF
8257 < rm -f conftest.$ac_objext conftest$ac_exeext
8258 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259 <  (eval $ac_link) 2>conftest.er1
8260 <  ac_status=$?
8261 <  grep -v '^ *+' conftest.er1 >conftest.err
8262 <  rm -f conftest.er1
8263 <  cat conftest.err >&5
8264 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 <  (exit $ac_status); } &&
8266 <         { ac_try='test -z "$ac_c_werror_flag"
8267 <                         || test ! -s conftest.err'
8268 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269 <  (eval $ac_try) 2>&5
8270 <  ac_status=$?
8271 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 <  (exit $ac_status); }; } &&
8273 <         { ac_try='test -s conftest$ac_exeext'
8274 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 <  (eval $ac_try) 2>&5
8276 <  ac_status=$?
8277 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278 <  (exit $ac_status); }; }; then
8279 <  ac_cv_lib_sprng_init_rng=yes
8280 < else
8281 <  echo "$as_me: failed program was:" >&5
8282 < sed 's/^/| /' conftest.$ac_ext >&5
8283 <
8284 < ac_cv_lib_sprng_init_rng=no
8285 < fi
8286 < rm -f conftest.err conftest.$ac_objext \
8287 <      conftest$ac_exeext conftest.$ac_ext
8288 < LIBS=$ac_check_lib_save_LIBS
8289 < fi
8290 < echo "$as_me:$LINENO: result: $ac_cv_lib_sprng_init_rng" >&5
8291 < echo "${ECHO_T}$ac_cv_lib_sprng_init_rng" >&6
8292 < if test $ac_cv_lib_sprng_init_rng = yes; then
8293 <  SPRNG_LIB="-lsprng"
8294 < else
8295 <
8296 <             { { echo "$as_me:$LINENO: error: Didn't find libsprng; check path for SPRNG package first..." >&5
8297 < echo "$as_me: error: Didn't find libsprng; check path for SPRNG package first..." >&2;}
8298 <   { (exit 1); exit 1; }; }
8299 <             USE_SPRNG="no"
8300 <
8301 < fi
8302 <
8303 <
8304 < if test "$USE_SPRNG" = "no"; then
8305 <  { { echo "$as_me:$LINENO: error: No working SPRNG library found" >&5
8306 < echo "$as_me: error: No working SPRNG library found" >&2;}
8307 <   { (exit 1); exit 1; }; }
8308 < fi
8309 <
8310 <
8311 < fi
8312 <
8313 <
8314 <
8315 < echo "$as_me:$LINENO: checking if MKL is wanted" >&5
8316 < echo $ECHO_N "checking if MKL is wanted... $ECHO_C" >&6
8317 <
8318 < # Check whether --with-mkl or --without-mkl was given.
8319 < if test "${with_mkl+set}" = set; then
8320 <  withval="$with_mkl"
8321 <     echo "$as_me:$LINENO: result: yes" >&5
8322 < echo "${ECHO_T}yes" >&6
8323 <    for dir in $withval /usr/local/intel/mkl61 /opt/intel/mkl61; do
8324 <        mkldir="$dir"
8325 <        if test -f "$dir/include/mkl.h"; then
8326 <            found_mkl="yes";
8327 <            break;
8328 <        fi
8329 <    done
8330 <    if test x_$found_mkl != x_yes; then
8331 <        { { echo "$as_me:$LINENO: error: Cannot find MKL includes" >&5
8332 < echo "$as_me: error: Cannot find MKL includes" >&2;}
8333 <   { (exit 1); exit 1; }; }
8334 <    else
8335 <        printf "MKL includes found in $mkldir/include\n";
8336 <    fi
8337 <
8338 <
8339 <
8340 <  ac_ext=c
8341 < ac_cpp='$CPP $CPPFLAGS'
8342 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8343 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8344 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8345 <
8346 <  ac_save_CPPFLAGS=$CPPFLAGS
8347 <  CPPFLAGS="${CPPFLAGS} -I${mkldir}/include"
8348 <  ac_save_LDFLAGS=$LDFLAGS
8349 <  LDFLAGS="${LDFLAGS} -L${mkldir}/lib/32 -lmkl -lvml -lguide"
8350 <  if test "${ac_cv_header_mkl_h+set}" = set; then
8351 <  echo "$as_me:$LINENO: checking for mkl.h" >&5
8352 < echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
8353 < if test "${ac_cv_header_mkl_h+set}" = set; then
8354 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8355 < fi
8356 < echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
8357 < echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
8358 < else
8359 <  # Is the header compilable?
8360 < echo "$as_me:$LINENO: checking mkl.h usability" >&5
8361 < echo $ECHO_N "checking mkl.h usability... $ECHO_C" >&6
8362 < cat >conftest.$ac_ext <<_ACEOF
8363 < /* confdefs.h.  */
8364 < _ACEOF
8365 < cat confdefs.h >>conftest.$ac_ext
8366 < cat >>conftest.$ac_ext <<_ACEOF
8367 < /* end confdefs.h.  */
8368 < $ac_includes_default
8369 < #include <mkl.h>
8370 < _ACEOF
8371 < rm -f conftest.$ac_objext
8372 < if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 <  (eval $ac_compile) 2>conftest.er1
8374 <  ac_status=$?
8375 <  grep -v '^ *+' conftest.er1 >conftest.err
8376 <  rm -f conftest.er1
8377 <  cat conftest.err >&5
8378 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 <  (exit $ac_status); } &&
8380 <         { ac_try='test -z "$ac_c_werror_flag"
8381 <                         || test ! -s conftest.err'
8382 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383 <  (eval $ac_try) 2>&5
8384 <  ac_status=$?
8385 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 <  (exit $ac_status); }; } &&
8387 <         { ac_try='test -s conftest.$ac_objext'
8388 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389 <  (eval $ac_try) 2>&5
8390 <  ac_status=$?
8391 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 <  (exit $ac_status); }; }; then
8393 <  ac_header_compiler=yes
8394 < else
8395 <  echo "$as_me: failed program was:" >&5
8396 < sed 's/^/| /' conftest.$ac_ext >&5
8397 <
8398 < ac_header_compiler=no
8399 < fi
8400 < rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8401 < echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8402 < echo "${ECHO_T}$ac_header_compiler" >&6
8403 <
8404 < # Is the header present?
8405 < echo "$as_me:$LINENO: checking mkl.h presence" >&5
8406 < echo $ECHO_N "checking mkl.h presence... $ECHO_C" >&6
8407 < cat >conftest.$ac_ext <<_ACEOF
8408 < /* confdefs.h.  */
8409 < _ACEOF
8410 < cat confdefs.h >>conftest.$ac_ext
8411 < cat >>conftest.$ac_ext <<_ACEOF
8412 < /* end confdefs.h.  */
8413 < #include <mkl.h>
8414 < _ACEOF
8415 < if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8416 <  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8417 <  ac_status=$?
8418 <  grep -v '^ *+' conftest.er1 >conftest.err
8419 <  rm -f conftest.er1
8420 <  cat conftest.err >&5
8421 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 <  (exit $ac_status); } >/dev/null; then
8423 <  if test -s conftest.err; then
8424 <    ac_cpp_err=$ac_c_preproc_warn_flag
8425 <    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8426 <  else
8427 <    ac_cpp_err=
8428 <  fi
8429 < else
8430 <  ac_cpp_err=yes
8431 < fi
8432 < if test -z "$ac_cpp_err"; then
8433 <  ac_header_preproc=yes
8434 < else
8435 <  echo "$as_me: failed program was:" >&5
8436 < sed 's/^/| /' conftest.$ac_ext >&5
8437 <
8438 <  ac_header_preproc=no
8439 < fi
8440 < rm -f conftest.err conftest.$ac_ext
8441 < echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8442 < echo "${ECHO_T}$ac_header_preproc" >&6
8443 <
8444 < # So?  What about this header?
8445 < case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8446 <  yes:no: )
8447 <    { echo "$as_me:$LINENO: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8448 < echo "$as_me: WARNING: mkl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8449 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the compiler's result" >&5
8450 < echo "$as_me: WARNING: mkl.h: proceeding with the compiler's result" >&2;}
8451 <    ac_header_preproc=yes
8452 <    ;;
8453 <  no:yes:* )
8454 <    { echo "$as_me:$LINENO: WARNING: mkl.h: present but cannot be compiled" >&5
8455 < echo "$as_me: WARNING: mkl.h: present but cannot be compiled" >&2;}
8456 <    { echo "$as_me:$LINENO: WARNING: mkl.h:     check for missing prerequisite headers?" >&5
8457 < echo "$as_me: WARNING: mkl.h:     check for missing prerequisite headers?" >&2;}
8458 <    { echo "$as_me:$LINENO: WARNING: mkl.h: see the Autoconf documentation" >&5
8459 < echo "$as_me: WARNING: mkl.h: see the Autoconf documentation" >&2;}
8460 <    { echo "$as_me:$LINENO: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&5
8461 < echo "$as_me: WARNING: mkl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8462 <    { echo "$as_me:$LINENO: WARNING: mkl.h: proceeding with the preprocessor's result" >&5
8463 < echo "$as_me: WARNING: mkl.h: proceeding with the preprocessor's result" >&2;}
8464 <    { echo "$as_me:$LINENO: WARNING: mkl.h: in the future, the compiler will take precedence" >&5
8465 < echo "$as_me: WARNING: mkl.h: in the future, the compiler will take precedence" >&2;}
8466 <    (
8467 <      cat <<\_ASBOX
8468 < ## ------------------------------ ##
8469 < ## Report this to gezelter@nd.edu ##
8470 < ## ------------------------------ ##
8471 < _ASBOX
8472 <    ) |
8473 <      sed "s/^/$as_me: WARNING:     /" >&2
8474 <    ;;
8475 < esac
8476 < echo "$as_me:$LINENO: checking for mkl.h" >&5
8477 < echo $ECHO_N "checking for mkl.h... $ECHO_C" >&6
8478 < if test "${ac_cv_header_mkl_h+set}" = set; then
8479 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8480 < else
8481 <  ac_cv_header_mkl_h=$ac_header_preproc
8482 < fi
8483 < echo "$as_me:$LINENO: result: $ac_cv_header_mkl_h" >&5
8484 < echo "${ECHO_T}$ac_cv_header_mkl_h" >&6
8485 <
8486 < fi
8487 < if test $ac_cv_header_mkl_h = yes; then
8488 <
8489 <    echo "$as_me:$LINENO: checking for vslNewStream in -lmkl" >&5
8490 < echo $ECHO_N "checking for vslNewStream in -lmkl... $ECHO_C" >&6
8491 < if test "${ac_cv_lib_mkl_vslNewStream+set}" = set; then
8492 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8493 < else
8494 <  ac_check_lib_save_LIBS=$LIBS
8495 < LIBS="-lmkl  $LIBS"
8496 < cat >conftest.$ac_ext <<_ACEOF
8497 < /* confdefs.h.  */
8498 < _ACEOF
8499 < cat confdefs.h >>conftest.$ac_ext
8500 < cat >>conftest.$ac_ext <<_ACEOF
8501 < /* end confdefs.h.  */
8502 <
8503 < /* Override any gcc2 internal prototype to avoid an error.  */
8504 < #ifdef __cplusplus
8505 < extern "C"
8506 < #endif
8507 < /* We use char because int might match the return type of a gcc2
8508 <   builtin and then its argument prototype would still apply.  */
8509 < char vslNewStream ();
8510 < int
8511 < main ()
8512 < {
8513 < vslNewStream ();
8514 <  ;
8515 <  return 0;
8516 < }
8517 < _ACEOF
8518 < rm -f conftest.$ac_objext conftest$ac_exeext
8519 < if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8520 <  (eval $ac_link) 2>conftest.er1
8521 <  ac_status=$?
8522 <  grep -v '^ *+' conftest.er1 >conftest.err
8523 <  rm -f conftest.er1
8524 <  cat conftest.err >&5
8525 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 <  (exit $ac_status); } &&
8527 <         { ac_try='test -z "$ac_c_werror_flag"
8528 <                         || test ! -s conftest.err'
8529 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 <  (eval $ac_try) 2>&5
8531 <  ac_status=$?
8532 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 <  (exit $ac_status); }; } &&
8534 <         { ac_try='test -s conftest$ac_exeext'
8535 <  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8536 <  (eval $ac_try) 2>&5
8537 <  ac_status=$?
8538 <  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 <  (exit $ac_status); }; }; then
8540 <  ac_cv_lib_mkl_vslNewStream=yes
8541 < else
8542 <  echo "$as_me: failed program was:" >&5
8543 < sed 's/^/| /' conftest.$ac_ext >&5
8544 <
8545 < ac_cv_lib_mkl_vslNewStream=no
8546 < fi
8547 < rm -f conftest.err conftest.$ac_objext \
8548 <      conftest$ac_exeext conftest.$ac_ext
8549 < LIBS=$ac_check_lib_save_LIBS
8550 < fi
8551 < echo "$as_me:$LINENO: result: $ac_cv_lib_mkl_vslNewStream" >&5
8552 < echo "${ECHO_T}$ac_cv_lib_mkl_vslNewStream" >&6
8553 < if test $ac_cv_lib_mkl_vslNewStream = yes; then
8554 <  MKL_LIBDIR="${mkldir}/lib/32",
8555 <                     MKL_LIB="-lmkl -lvml -lguide",
8556 <                     HAVE_MKL="yes"
8557 < fi
8558 <
8559 <
8560 < else
8561 <  MKL_INC="-I${mkldir}/include"
8562 < fi
8563 <
8564 <
8565 <  CPPFLAGS=$ac_save_CPPFLAGS
8566 <  LDFLAGS=$ac_save_LDFLAGS
8567 <  ac_ext=c
8568 < ac_cpp='$CPP $CPPFLAGS'
8569 < ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8570 < ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8571 < ac_compiler_gnu=$ac_cv_c_compiler_gnu
8572 <
8573 <
8574 <  if test x_$HAVE_MKL != x_yes; then
8575 <        { { echo "$as_me:$LINENO: error: Can't build with MKL" >&5
8576 < echo "$as_me: error: Can't build with MKL" >&2;}
8577 <   { (exit 1); exit 1; }; }
8578 <  fi
8579 <
8580 <
8581 <
8582 <
8583 <
8584 < else
8585 <
8586 <    echo "$as_me:$LINENO: result: no" >&5
8587 < echo "${ECHO_T}no" >&6
8588 <
8589 < fi;
8590 <
8591 <
8592 <
8593 < # Check whether --enable-doxygen or --disable-doxygen was given.
8594 < if test "${enable_doxygen+set}" = set; then
8595 <  enableval="$enable_doxygen"
8596 <
8597 < fi;
8598 < # Check whether --enable-dot or --disable-dot was given.
8599 < if test "${enable_dot+set}" = set; then
8600 <  enableval="$enable_dot"
8601 <
8602 < fi;
8603 < # Check whether --enable-html-docs or --disable-html-docs was given.
8604 < if test "${enable_html_docs+set}" = set; then
8605 <  enableval="$enable_html_docs"
8606 <
8607 < else
8608 <   enable_html_docs=yes
8609 < fi;
8610 < # Check whether --enable-latex-docs or --disable-latex-docs was given.
8611 < if test "${enable_latex_docs+set}" = set; then
8612 <  enableval="$enable_latex_docs"
8613 <
8614 < else
8615 <   enable_latex_docs=no
8616 < fi;
8617 < if test "x$enable_doxygen" = xno; then
8618 <        enable_doc=no
8619 < else
8620 <        # Extract the first word of "doxygen", so it can be a program name with args.
8621 < set dummy doxygen; ac_word=$2
8622 < echo "$as_me:$LINENO: checking for $ac_word" >&5
8623 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8624 < if test "${ac_cv_path_DOXYGEN+set}" = set; then
8625 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8626 < else
8627 <  case $DOXYGEN in
8628 <  [\\/]* | ?:[\\/]*)
8629 <  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8630 <  ;;
8631 <  *)
8632 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8633 < for as_dir in $PATH
8634 < do
8635 <  IFS=$as_save_IFS
8636 <  test -z "$as_dir" && as_dir=.
8637 <  for ac_exec_ext in '' $ac_executable_extensions; do
8638 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8639 <    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8640 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8641 <    break 2
8642 <  fi
8643 < done
8644 < done
8645 <
8646 <  ;;
8647 < esac
8648 < fi
8649 < DOXYGEN=$ac_cv_path_DOXYGEN
8650 <
8651 < if test -n "$DOXYGEN"; then
8652 <  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8653 < echo "${ECHO_T}$DOXYGEN" >&6
8654 < else
8655 <  echo "$as_me:$LINENO: result: no" >&5
8656 < echo "${ECHO_T}no" >&6
8657 < fi
8658 <
8659 <        if test "x$DOXYGEN" = x; then
8660 <                if test "x$enable_doxygen" = xyes; then
8661 <                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
8662 < echo "$as_me: error: could not find doxygen" >&2;}
8663 <   { (exit 1); exit 1; }; }
8664 <                fi
8665 <                enable_doc=no
8666 <        else
8667 <                enable_doc=yes
8668 <                # Extract the first word of "dot", so it can be a program name with args.
8669 < set dummy dot; ac_word=$2
8670 < echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 < echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8672 < if test "${ac_cv_path_DOT+set}" = set; then
8673 <  echo $ECHO_N "(cached) $ECHO_C" >&6
8674 < else
8675 <  case $DOT in
8676 <  [\\/]* | ?:[\\/]*)
8677 <  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
8678 <  ;;
8679 <  *)
8680 <  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 < for as_dir in $PATH
8682 < do
8683 <  IFS=$as_save_IFS
8684 <  test -z "$as_dir" && as_dir=.
8685 <  for ac_exec_ext in '' $ac_executable_extensions; do
8686 <  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8687 <    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
8688 <    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 <    break 2
8690 <  fi
8691 < done
8692 < done
8693 <
8694 <  ;;
8695 < esac
8696 < fi
8697 < DOT=$ac_cv_path_DOT
8698 <
8699 < if test -n "$DOT"; then
8700 <  echo "$as_me:$LINENO: result: $DOT" >&5
8701 < echo "${ECHO_T}$DOT" >&6
8702 < else
8703 <  echo "$as_me:$LINENO: result: no" >&5
8704 < echo "${ECHO_T}no" >&6
8705 < fi
8706 <
8707 <        fi
8708 < fi
8709 <
8710 < if test "x$enable_doc" = xyes; then
8711 <  DOC=1
8712 < else
8713 <  DOC=0
8714 < fi
8715 <
8716 <
8717 < if test x$DOT = x; then
8718 <        if test "x$enable_dot" = xyes; then
8719 <                { { echo "$as_me:$LINENO: error: could not find dot" >&5
8720 < echo "$as_me: error: could not find dot" >&2;}
8721 <   { (exit 1); exit 1; }; }
8722 <        fi
8723 <        enable_dot=no
8724 < else
8725 <        enable_dot=yes
8726 < fi
8727 <
8728 <
8729 <
8730 <
8731 <
8732 <
8733 <
8734 < OBJEXT=".$OBJEXT"
8735 <
8736 < OOPSE=oopse
8737 <
8738 < if test "x${prefix}" = "xNONE"
8739 < then
8740 <  OOPSE_HOME=${ac_default_prefix}/oopse
8741 < else
8742 <  OOPSE_HOME=${prefix}/oopse
8743 < fi
8744 < # Check whether --enable-oopse-home or --disable-oopse-home was given.
8745 < if test "${enable_oopse_home+set}" = set; then
8746 <  enableval="$enable_oopse_home"
8747 <  OOPSE_HOME="${enableval}"
8748 < fi;
8749 <
8750 < case "x$INSTALL" in
8751 <   x/*) ;;
8752 <   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
8753 < esac
8754 <
8755 < MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
8756 <
8757 < CFLAGS=${CFLAGS-""}
8758 < CXXFLAGS=${CXXFLAGS-""}
8759 < CPPFLAGS=${CPPFLAGS-""}
8760 < FFLAGS=${FFLAGS-""}
8761 < F90FLAGS=${F90FLAGS-""}
8762 < LDFLAGS=${LDFLAGS-""}
8763 < DEBUG=${DEBUG-"-g"}
8764 <
8765 < case $debug in
8766 <  1)
8767 <     FFLAGS="$DEBUG $FFLAGS"
8768 <     F90FLAGS="$DEBUG $F90FLAGS"
8769 <     ;;
8770 <  *)
8771 <     ;;
8772 < esac
8773 <
8774 <
8775 <
8776 <
8777 <
8778 <
8779 <
8780 <
8781 <
8782 <
8783 <
8784 <
8785 <
8786 <
8787 <
8788 <
8789 <
8790 <
8791 <          ac_config_headers="$ac_config_headers src/config.h"
8792 <
8793 <                    ac_config_files="$ac_config_files make/Makefile src/utils/Makefile"
8794 <
8795 <
8796 < cat >confcache <<\_ACEOF
8797 < # This file is a shell script that caches the results of configure
8798 < # tests run on this system so they can be shared between configure
8799 < # scripts and configure runs, see configure's option --config-cache.
8800 < # It is not useful on other systems.  If it contains results you don't
8801 < # want to keep, you may remove or edit it.
8802 < #
8803 < # config.status only pays attention to the cache file if you give it
8804 < # the --recheck option to rerun configure.
8805 < #
8806 < # `ac_cv_env_foo' variables (set or unset) will be overridden when
8807 < # loading this file, other *unset* `ac_cv_foo' will be assigned the
8808 < # following values.
8809 <
8810 < _ACEOF
8811 <
8812 < # The following way of writing the cache mishandles newlines in values,
8813 < # but we know of no workaround that is simple, portable, and efficient.
8814 < # So, don't put newlines in cache variables' values.
8815 < # Ultrix sh set writes to stderr and can't be redirected directly,
8816 < # and sets the high bit in the cache file unless we assign to the vars.
8817 < {
8818 <  (set) 2>&1 |
8819 <    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8820 <    *ac_space=\ *)
8821 <      # `set' does not quote correctly, so add quotes (double-quote
8822 <      # substitution turns \\\\ into \\, and sed turns \\ into \).
8823 <      sed -n \
8824 <        "s/'/'\\\\''/g;
8825 <          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8826 <      ;;
8827 <    *)
8828 <      # `set' quotes correctly as required by POSIX, so do not add quotes.
8829 <      sed -n \
8830 <        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8831 <      ;;
8832 <    esac;
8833 < } |
8834 <  sed '
8835 <     t clear
8836 <     : clear
8837 <     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8838 <     t end
8839 <     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8840 <     : end' >>confcache
8841 < if diff $cache_file confcache >/dev/null 2>&1; then :; else
8842 <  if test -w $cache_file; then
8843 <    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8844 <    cat confcache >$cache_file
8845 <  else
8846 <    echo "not updating unwritable cache $cache_file"
8847 <  fi
8848 < fi
8849 < rm -f confcache
8850 <
8851 < test "x$prefix" = xNONE && prefix=$ac_default_prefix
8852 < # Let make expand exec_prefix.
8853 < test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8854 <
8855 < # VPATH may cause trouble with some makes, so we remove $(srcdir),
8856 < # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8857 < # trailing colons and then remove the whole line if VPATH becomes empty
8858 < # (actually we leave an empty line to preserve line numbers).
8859 < if test "x$srcdir" = x.; then
8860 <  ac_vpsub='/^[  ]*VPATH[        ]*=/{
8861 < s/:*\$(srcdir):*/:/;
8862 < s/:*\${srcdir}:*/:/;
8863 < s/:*@srcdir@:*/:/;
8864 < s/^\([^=]*=[     ]*\):*/\1/;
8865 < s/:*$//;
8866 < s/^[^=]*=[       ]*$//;
8867 < }'
8868 < fi
8869 <
8870 < DEFS=-DHAVE_CONFIG_H
8871 <
8872 < ac_libobjs=
8873 < ac_ltlibobjs=
8874 < for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8875 <  # 1. Remove the extension, and $U if already installed.
8876 <  ac_i=`echo "$ac_i" |
8877 <         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8878 <  # 2. Add them.
8879 <  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8880 <  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8881 < done
8882 < LIBOBJS=$ac_libobjs
8883 <
8884 < LTLIBOBJS=$ac_ltlibobjs
8885 <
8886 <
8887 <
8888 < : ${CONFIG_STATUS=./config.status}
8889 < ac_clean_files_save=$ac_clean_files
8890 < ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8891 < { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8892 < echo "$as_me: creating $CONFIG_STATUS" >&6;}
8893 < cat >$CONFIG_STATUS <<_ACEOF
8894 < #! $SHELL
8895 < # Generated by $as_me.
8896 < # Run this file to recreate the current configuration.
8897 < # Compiler output produced by configure, useful for debugging
8898 < # configure, is in config.log if it exists.
8899 <
8900 < debug=false
8901 < ac_cs_recheck=false
8902 < ac_cs_silent=false
8903 < SHELL=\${CONFIG_SHELL-$SHELL}
8904 < _ACEOF
8905 <
8906 < cat >>$CONFIG_STATUS <<\_ACEOF
8907 < ## --------------------- ##
8908 < ## M4sh Initialization.  ##
8909 < ## --------------------- ##
8910 <
8911 < # Be Bourne compatible
8912 < if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8913 <  emulate sh
8914 <  NULLCMD=:
8915 <  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8916 <  # is contrary to our usage.  Disable this feature.
8917 <  alias -g '${1+"$@"}'='"$@"'
8918 < elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8919 <  set -o posix
8920 < fi
8921 < DUALCASE=1; export DUALCASE # for MKS sh
8922 <
8923 < # Support unset when possible.
8924 < if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8925 <  as_unset=unset
8926 < else
8927 <  as_unset=false
8928 < fi
8929 <
8930 <
8931 < # Work around bugs in pre-3.0 UWIN ksh.
8932 < $as_unset ENV MAIL MAILPATH
8933 < PS1='$ '
8934 < PS2='> '
8935 < PS4='+ '
8936 <
8937 < # NLS nuisances.
8938 < for as_var in \
8939 <  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8940 <  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8941 <  LC_TELEPHONE LC_TIME
8942 < do
8943 <  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8944 <    eval $as_var=C; export $as_var
8945 <  else
8946 <    $as_unset $as_var
8947 <  fi
8948 < done
8949 <
8950 < # Required to use basename.
8951 < if expr a : '\(a\)' >/dev/null 2>&1; then
8952 <  as_expr=expr
8953 < else
8954 <  as_expr=false
8955 < fi
8956 <
8957 < if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8958 <  as_basename=basename
8959 < else
8960 <  as_basename=false
8961 < fi
8962 <
8963 <
8964 < # Name of the executable.
8965 < as_me=`$as_basename "$0" ||
8966 < $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8967 <         X"$0" : 'X\(//\)$' \| \
8968 <         X"$0" : 'X\(/\)$' \| \
8969 <         .     : '\(.\)' 2>/dev/null ||
8970 < echo X/"$0" |
8971 <    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8972 <          /^X\/\(\/\/\)$/{ s//\1/; q; }
8973 <          /^X\/\(\/\).*/{ s//\1/; q; }
8974 <          s/.*/./; q'`
8975 <
8976 <
8977 < # PATH needs CR, and LINENO needs CR and PATH.
8978 < # Avoid depending upon Character Ranges.
8979 < as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8980 < as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8981 < as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8982 < as_cr_digits='0123456789'
8983 < as_cr_alnum=$as_cr_Letters$as_cr_digits
8984 <
8985 < # The user is always right.
8986 < if test "${PATH_SEPARATOR+set}" != set; then
8987 <  echo "#! /bin/sh" >conf$$.sh
8988 <  echo  "exit 0"   >>conf$$.sh
8989 <  chmod +x conf$$.sh
8990 <  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8991 <    PATH_SEPARATOR=';'
8992 <  else
8993 <    PATH_SEPARATOR=:
8994 <  fi
8995 <  rm -f conf$$.sh
8996 < fi
8997 <
8998 <
8999 <  as_lineno_1=$LINENO
9000 <  as_lineno_2=$LINENO
9001 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9002 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
9003 <  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9004 <  # Find who we are.  Look in the path if we contain no path at all
9005 <  # relative or not.
9006 <  case $0 in
9007 <    *[\\/]* ) as_myself=$0 ;;
9008 <    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9009 < for as_dir in $PATH
9010 < do
9011 <  IFS=$as_save_IFS
9012 <  test -z "$as_dir" && as_dir=.
9013 <  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9014 < done
9015 <
9016 <       ;;
9017 <  esac
9018 <  # We did not find ourselves, most probably we were run as `sh COMMAND'
9019 <  # in which case we are not to be found in the path.
9020 <  if test "x$as_myself" = x; then
9021 <    as_myself=$0
9022 <  fi
9023 <  if test ! -f "$as_myself"; then
9024 <    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9025 < echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9026 <   { (exit 1); exit 1; }; }
9027 <  fi
9028 <  case $CONFIG_SHELL in
9029 <  '')
9030 <    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9031 < for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9032 < do
9033 <  IFS=$as_save_IFS
9034 <  test -z "$as_dir" && as_dir=.
9035 <  for as_base in sh bash ksh sh5; do
9036 <         case $as_dir in
9037 <         /*)
9038 <           if ("$as_dir/$as_base" -c '
9039 <  as_lineno_1=$LINENO
9040 <  as_lineno_2=$LINENO
9041 <  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9042 <  test "x$as_lineno_1" != "x$as_lineno_2" &&
9043 <  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9044 <             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9045 <             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9046 <             CONFIG_SHELL=$as_dir/$as_base
9047 <             export CONFIG_SHELL
9048 <             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9049 <           fi;;
9050 <         esac
9051 <       done
9052 < done
9053 < ;;
9054 <  esac
9055 <
9056 <  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9057 <  # uniformly replaced by the line number.  The first 'sed' inserts a
9058 <  # line-number line before each line; the second 'sed' does the real
9059 <  # work.  The second script uses 'N' to pair each line-number line
9060 <  # with the numbered line, and appends trailing '-' during
9061 <  # substitution so that $LINENO is not a special case at line end.
9062 <  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9063 <  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9064 <  sed '=' <$as_myself |
9065 <    sed '
9066 <      N
9067 <      s,$,-,
9068 <      : loop
9069 <      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9070 <      t loop
9071 <      s,-$,,
9072 <      s,^['$as_cr_digits']*\n,,
9073 <    ' >$as_me.lineno &&
9074 <  chmod +x $as_me.lineno ||
9075 <    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9076 < echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9077 <   { (exit 1); exit 1; }; }
9078 <
9079 <  # Don't try to exec as it changes $[0], causing all sort of problems
9080 <  # (the dirname of $[0] is not the place where we might find the
9081 <  # original and so on.  Autoconf is especially sensible to this).
9082 <  . ./$as_me.lineno
9083 <  # Exit status is that of the last command.
9084 <  exit
9085 < }
9086 <
9087 <
9088 < case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9089 <  *c*,-n*) ECHO_N= ECHO_C='
9090 < ' ECHO_T='      ' ;;
9091 <  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9092 <  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9093 < esac
9094 <
9095 < if expr a : '\(a\)' >/dev/null 2>&1; then
9096 <  as_expr=expr
9097 < else
9098 <  as_expr=false
9099 < fi
9100 <
9101 < rm -f conf$$ conf$$.exe conf$$.file
9102 < echo >conf$$.file
9103 < if ln -s conf$$.file conf$$ 2>/dev/null; then
9104 <  # We could just check for DJGPP; but this test a) works b) is more generic
9105 <  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9106 <  if test -f conf$$.exe; then
9107 <    # Don't use ln at all; we don't have any links
9108 <    as_ln_s='cp -p'
9109 <  else
9110 <    as_ln_s='ln -s'
9111 <  fi
9112 < elif ln conf$$.file conf$$ 2>/dev/null; then
9113 <  as_ln_s=ln
9114 < else
9115 <  as_ln_s='cp -p'
9116 < fi
9117 < rm -f conf$$ conf$$.exe conf$$.file
9118 <
9119 < if mkdir -p . 2>/dev/null; then
9120 <  as_mkdir_p=:
9121 < else
9122 <  test -d ./-p && rmdir ./-p
9123 <  as_mkdir_p=false
9124 < fi
9125 <
9126 < as_executable_p="test -f"
9127 <
9128 < # Sed expression to map a string onto a valid CPP name.
9129 < as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9130 <
9131 < # Sed expression to map a string onto a valid variable name.
9132 < as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9133 <
9134 <
9135 < # IFS
9136 < # We need space, tab and new line, in precisely that order.
9137 < as_nl='
9138 < '
9139 < IFS="   $as_nl"
9140 <
9141 < # CDPATH.
9142 < $as_unset CDPATH
9143 <
9144 < exec 6>&1
9145 <
9146 < # Open the log real soon, to keep \$[0] and so on meaningful, and to
9147 < # report actual input values of CONFIG_FILES etc. instead of their
9148 < # values after options handling.  Logging --version etc. is OK.
9149 < exec 5>>config.log
9150 < {
9151 <  echo
9152 <  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9153 < ## Running $as_me. ##
9154 < _ASBOX
9155 < } >&5
9156 < cat >&5 <<_CSEOF
9157 <
9158 < This file was extended by OOPSE $as_me 2.0, which was
9159 < generated by GNU Autoconf 2.59.  Invocation command line was
9160 <
9161 <  CONFIG_FILES    = $CONFIG_FILES
9162 <  CONFIG_HEADERS  = $CONFIG_HEADERS
9163 <  CONFIG_LINKS    = $CONFIG_LINKS
9164 <  CONFIG_COMMANDS = $CONFIG_COMMANDS
9165 <  $ $0 $@
9166 <
9167 < _CSEOF
9168 < echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9169 < echo >&5
9170 < _ACEOF
9171 <
9172 < # Files that config.status was made for.
9173 < if test -n "$ac_config_files"; then
9174 <  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9175 < fi
9176 <
9177 < if test -n "$ac_config_headers"; then
9178 <  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9179 < fi
9180 <
9181 < if test -n "$ac_config_links"; then
9182 <  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9183 < fi
9184 <
9185 < if test -n "$ac_config_commands"; then
9186 <  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9187 < fi
9188 <
9189 < cat >>$CONFIG_STATUS <<\_ACEOF
9190 <
9191 < ac_cs_usage="\
9192 < \`$as_me' instantiates files from templates according to the
9193 < current configuration.
9194 <
9195 < Usage: $0 [OPTIONS] [FILE]...
9196 <
9197 <  -h, --help       print this help, then exit
9198 <  -V, --version    print version number, then exit
9199 <  -q, --quiet      do not print progress messages
9200 <  -d, --debug      don't remove temporary files
9201 <      --recheck    update $as_me by reconfiguring in the same conditions
9202 <  --file=FILE[:TEMPLATE]
9203 <                   instantiate the configuration file FILE
9204 <  --header=FILE[:TEMPLATE]
9205 <                   instantiate the configuration header FILE
9206 <
9207 < Configuration files:
9208 < $config_files
9209 <
9210 < Configuration headers:
9211 < $config_headers
9212 <
9213 < Configuration links:
9214 < $config_links
9215 <
9216 < Report bugs to <bug-autoconf@gnu.org>."
9217 < _ACEOF
9218 <
9219 < cat >>$CONFIG_STATUS <<_ACEOF
9220 < ac_cs_version="\\
9221 < OOPSE config.status 2.0
9222 < configured by $0, generated by GNU Autoconf 2.59,
9223 <  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9224 <
9225 < Copyright (C) 2003 Free Software Foundation, Inc.
9226 < This config.status script is free software; the Free Software Foundation
9227 < gives unlimited permission to copy, distribute and modify it."
9228 < srcdir=$srcdir
9229 < INSTALL="$INSTALL"
9230 < _ACEOF
9231 <
9232 < cat >>$CONFIG_STATUS <<\_ACEOF
9233 < # If no file are specified by the user, then we need to provide default
9234 < # value.  By we need to know if files were specified by the user.
9235 < ac_need_defaults=:
9236 < while test $# != 0
9237 < do
9238 <  case $1 in
9239 <  --*=*)
9240 <    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9241 <    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9242 <    ac_shift=:
9243 <    ;;
9244 <  -*)
9245 <    ac_option=$1
9246 <    ac_optarg=$2
9247 <    ac_shift=shift
9248 <    ;;
9249 <  *) # This is not an option, so the user has probably given explicit
9250 <     # arguments.
9251 <     ac_option=$1
9252 <     ac_need_defaults=false;;
9253 <  esac
9254 <
9255 <  case $ac_option in
9256 <  # Handling of the options.
9257 < _ACEOF
9258 < cat >>$CONFIG_STATUS <<\_ACEOF
9259 <  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9260 <    ac_cs_recheck=: ;;
9261 <  --version | --vers* | -V )
9262 <    echo "$ac_cs_version"; exit 0 ;;
9263 <  --he | --h)
9264 <    # Conflict between --help and --header
9265 <    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9266 < Try \`$0 --help' for more information." >&5
9267 < echo "$as_me: error: ambiguous option: $1
9268 < Try \`$0 --help' for more information." >&2;}
9269 <   { (exit 1); exit 1; }; };;
9270 <  --help | --hel | -h )
9271 <    echo "$ac_cs_usage"; exit 0 ;;
9272 <  --debug | --d* | -d )
9273 <    debug=: ;;
9274 <  --file | --fil | --fi | --f )
9275 <    $ac_shift
9276 <    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9277 <    ac_need_defaults=false;;
9278 <  --header | --heade | --head | --hea )
9279 <    $ac_shift
9280 <    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9281 <    ac_need_defaults=false;;
9282 <  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9283 <  | -silent | --silent | --silen | --sile | --sil | --si | --s)
9284 <    ac_cs_silent=: ;;
9285 <
9286 <  # This is an error.
9287 <  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9288 < Try \`$0 --help' for more information." >&5
9289 < echo "$as_me: error: unrecognized option: $1
9290 < Try \`$0 --help' for more information." >&2;}
9291 <   { (exit 1); exit 1; }; } ;;
9292 <
9293 <  *) ac_config_targets="$ac_config_targets $1" ;;
9294 <
9295 <  esac
9296 <  shift
9297 < done
9298 <
9299 < ac_configure_extra_args=
9300 <
9301 < if $ac_cs_silent; then
9302 <  exec 6>/dev/null
9303 <  ac_configure_extra_args="$ac_configure_extra_args --silent"
9304 < fi
9305 <
9306 < _ACEOF
9307 < cat >>$CONFIG_STATUS <<_ACEOF
9308 < if \$ac_cs_recheck; then
9309 <  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9310 <  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9311 < fi
9312 <
9313 < _ACEOF
9314 <
9315 <
9316 <
9317 <
9318 <
9319 < cat >>$CONFIG_STATUS <<\_ACEOF
9320 < for ac_config_target in $ac_config_targets
9321 < do
9322 <  case "$ac_config_target" in
9323 <  # Handling of arguments.
9324 <  "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
9325 <  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
9326 <  "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
9327 <  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
9328 <  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9329 < echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9330 <   { (exit 1); exit 1; }; };;
9331 <  esac
9332 < done
9333 <
9334 < # If the user did not use the arguments to specify the items to instantiate,
9335 < # then the envvar interface is used.  Set only those that are not.
9336 < # We use the long form for the default assignment because of an extremely
9337 < # bizarre bug on SunOS 4.1.3.
9338 < if $ac_need_defaults; then
9339 <  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9340 <  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9341 <  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
9342 < fi
9343 <
9344 < # Have a temporary directory for convenience.  Make it in the build tree
9345 < # simply because there is no reason to put it here, and in addition,
9346 < # creating and moving files from /tmp can sometimes cause problems.
9347 < # Create a temporary directory, and hook for its removal unless debugging.
9348 < $debug ||
9349 < {
9350 <  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9351 <  trap '{ (exit 1); exit 1; }' 1 2 13 15
9352 < }
9353 <
9354 < # Create a (secure) tmp directory for tmp files.
9355 <
9356 < {
9357 <  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9358 <  test -n "$tmp" && test -d "$tmp"
9359 < }  ||
9360 < {
9361 <  tmp=./confstat$$-$RANDOM
9362 <  (umask 077 && mkdir $tmp)
9363 < } ||
9364 < {
9365 <   echo "$me: cannot create a temporary directory in ." >&2
9366 <   { (exit 1); exit 1; }
9367 < }
9368 <
9369 < _ACEOF
9370 <
9371 < cat >>$CONFIG_STATUS <<_ACEOF
9372 <
9373 < #
9374 < # CONFIG_FILES section.
9375 < #
9376 <
9377 < # No need to generate the scripts if there are no CONFIG_FILES.
9378 < # This happens for instance when ./config.status config.h
9379 < if test -n "\$CONFIG_FILES"; then
9380 <  # Protect against being on the right side of a sed subst in config.status.
9381 <  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9382 <   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9383 < s,@SHELL@,$SHELL,;t t
9384 < s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9385 < s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9386 < s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9387 < s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9388 < s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9389 < s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9390 < s,@exec_prefix@,$exec_prefix,;t t
9391 < s,@prefix@,$prefix,;t t
9392 < s,@program_transform_name@,$program_transform_name,;t t
9393 < s,@bindir@,$bindir,;t t
9394 < s,@sbindir@,$sbindir,;t t
9395 < s,@libexecdir@,$libexecdir,;t t
9396 < s,@datadir@,$datadir,;t t
9397 < s,@sysconfdir@,$sysconfdir,;t t
9398 < s,@sharedstatedir@,$sharedstatedir,;t t
9399 < s,@localstatedir@,$localstatedir,;t t
9400 < s,@libdir@,$libdir,;t t
9401 < s,@includedir@,$includedir,;t t
9402 < s,@oldincludedir@,$oldincludedir,;t t
9403 < s,@infodir@,$infodir,;t t
9404 < s,@mandir@,$mandir,;t t
9405 < s,@build_alias@,$build_alias,;t t
9406 < s,@host_alias@,$host_alias,;t t
9407 < s,@target_alias@,$target_alias,;t t
9408 < s,@DEFS@,$DEFS,;t t
9409 < s,@ECHO_C@,$ECHO_C,;t t
9410 < s,@ECHO_N@,$ECHO_N,;t t
9411 < s,@ECHO_T@,$ECHO_T,;t t
9412 < s,@LIBS@,$LIBS,;t t
9413 < s,@PROGNAME@,$PROGNAME,;t t
9414 < s,@debug@,$debug,;t t
9415 < s,@build@,$build,;t t
9416 < s,@build_cpu@,$build_cpu,;t t
9417 < s,@build_vendor@,$build_vendor,;t t
9418 < s,@build_os@,$build_os,;t t
9419 < s,@host@,$host,;t t
9420 < s,@host_cpu@,$host_cpu,;t t
9421 < s,@host_vendor@,$host_vendor,;t t
9422 < s,@host_os@,$host_os,;t t
9423 < s,@CC@,$CC,;t t
9424 < s,@CFLAGS@,$CFLAGS,;t t
9425 < s,@LDFLAGS@,$LDFLAGS,;t t
9426 < s,@CPPFLAGS@,$CPPFLAGS,;t t
9427 < s,@ac_ct_CC@,$ac_ct_CC,;t t
9428 < s,@EXEEXT@,$EXEEXT,;t t
9429 < s,@OBJEXT@,$OBJEXT,;t t
9430 < s,@CXX@,$CXX,;t t
9431 < s,@CXXFLAGS@,$CXXFLAGS,;t t
9432 < s,@ac_ct_CXX@,$ac_ct_CXX,;t t
9433 < s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
9434 < s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
9435 < s,@F90@,$F90,;t t
9436 < s,@F90FLAGS@,$F90FLAGS,;t t
9437 < s,@ac_ct_F90@,$ac_ct_F90,;t t
9438 < s,@PREPFLAG@,$PREPFLAG,;t t
9439 < s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
9440 < s,@F90LIBS@,$F90LIBS,;t t
9441 < s,@F90_FUNC@,$F90_FUNC,;t t
9442 < s,@F90_FUNC_@,$F90_FUNC_,;t t
9443 < s,@MOD@,$MOD,;t t
9444 < s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
9445 < s,@MODDIRFLAG@,$MODDIRFLAG,;t t
9446 < s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
9447 < s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
9448 < s,@CPP@,$CPP,;t t
9449 < s,@EGREP@,$EGREP,;t t
9450 < s,@LIBOBJS@,$LIBOBJS,;t t
9451 < s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9452 < s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9453 < s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9454 < s,@LN_S@,$LN_S,;t t
9455 < s,@SET_MAKE@,$SET_MAKE,;t t
9456 < s,@RANLIB@,$RANLIB,;t t
9457 < s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9458 < s,@YACC@,$YACC,;t t
9459 < s,@LEX@,$LEX,;t t
9460 < s,@LEXLIB@,$LEXLIB,;t t
9461 < s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
9462 < s,@AR@,$AR,;t t
9463 < s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
9464 < s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
9465 < s,@MPI_F90_INC@,$MPI_F90_INC,;t t
9466 < s,@MPI_LIB@,$MPI_LIB,;t t
9467 < s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
9468 < s,@USE_MPI@,$USE_MPI,;t t
9469 < s,@SPRNG_LIB_DIR@,$SPRNG_LIB_DIR,;t t
9470 < s,@SPRNG_INC_DIR@,$SPRNG_INC_DIR,;t t
9471 < s,@SPRNG_LIB@,$SPRNG_LIB,;t t
9472 < s,@USE_SPRNG@,$USE_SPRNG,;t t
9473 < s,@MKL_LIBDIR@,$MKL_LIBDIR,;t t
9474 < s,@MKL_LIB@,$MKL_LIB,;t t
9475 < s,@MKL_INC@,$MKL_INC,;t t
9476 < s,@HAVE_MKL@,$HAVE_MKL,;t t
9477 < s,@DOXYGEN@,$DOXYGEN,;t t
9478 < s,@DOT@,$DOT,;t t
9479 < s,@DOC@,$DOC,;t t
9480 < s,@enable_dot@,$enable_dot,;t t
9481 < s,@enable_html_docs@,$enable_html_docs,;t t
9482 < s,@enable_latex_docs@,$enable_latex_docs,;t t
9483 < s,@BATEXT@,$BATEXT,;t t
9484 < s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9485 < s,@OOPSE@,$OOPSE,;t t
9486 < s,@OOPSE_HOME@,$OOPSE_HOME,;t t
9487 < s,@SUBDIRS@,$SUBDIRS,;t t
9488 < s,@FFLAGS@,$FFLAGS,;t t
9489 < s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9490 < CEOF
9491 <
9492 < _ACEOF
9493 <
9494 <  cat >>$CONFIG_STATUS <<\_ACEOF
9495 <  # Split the substitutions into bite-sized pieces for seds with
9496 <  # small command number limits, like on Digital OSF/1 and HP-UX.
9497 <  ac_max_sed_lines=48
9498 <  ac_sed_frag=1 # Number of current file.
9499 <  ac_beg=1 # First line for current file.
9500 <  ac_end=$ac_max_sed_lines # Line after last line for current file.
9501 <  ac_more_lines=:
9502 <  ac_sed_cmds=
9503 <  while $ac_more_lines; do
9504 <    if test $ac_beg -gt 1; then
9505 <      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9506 <    else
9507 <      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
9508 <    fi
9509 <    if test ! -s $tmp/subs.frag; then
9510 <      ac_more_lines=false
9511 <    else
9512 <      # The purpose of the label and of the branching condition is to
9513 <      # speed up the sed processing (if there are no `@' at all, there
9514 <      # is no need to browse any of the substitutions).
9515 <      # These are the two extra sed commands mentioned above.
9516 <      (echo ':t
9517 <  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9518 <      if test -z "$ac_sed_cmds"; then
9519 <        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9520 <      else
9521 <        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9522 <      fi
9523 <      ac_sed_frag=`expr $ac_sed_frag + 1`
9524 <      ac_beg=$ac_end
9525 <      ac_end=`expr $ac_end + $ac_max_sed_lines`
9526 <    fi
9527 <  done
9528 <  if test -z "$ac_sed_cmds"; then
9529 <    ac_sed_cmds=cat
9530 <  fi
9531 < fi # test -n "$CONFIG_FILES"
9532 <
9533 < _ACEOF
9534 < cat >>$CONFIG_STATUS <<\_ACEOF
9535 < for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9536 <  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9537 <  case $ac_file in
9538 <  - | *:- | *:-:* ) # input from stdin
9539 <        cat >$tmp/stdin
9540 <        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9541 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9542 <  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9543 <        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9544 <  * )   ac_file_in=$ac_file.in ;;
9545 <  esac
9546 <
9547 <  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9548 <  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9549 < $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9550 <         X"$ac_file" : 'X\(//\)[^/]' \| \
9551 <         X"$ac_file" : 'X\(//\)$' \| \
9552 <         X"$ac_file" : 'X\(/\)' \| \
9553 <         .     : '\(.\)' 2>/dev/null ||
9554 < echo X"$ac_file" |
9555 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9556 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9557 <          /^X\(\/\/\)$/{ s//\1/; q; }
9558 <          /^X\(\/\).*/{ s//\1/; q; }
9559 <          s/.*/./; q'`
9560 <  { if $as_mkdir_p; then
9561 <    mkdir -p "$ac_dir"
9562 <  else
9563 <    as_dir="$ac_dir"
9564 <    as_dirs=
9565 <    while test ! -d "$as_dir"; do
9566 <      as_dirs="$as_dir $as_dirs"
9567 <      as_dir=`(dirname "$as_dir") 2>/dev/null ||
9568 < $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9569 <         X"$as_dir" : 'X\(//\)[^/]' \| \
9570 <         X"$as_dir" : 'X\(//\)$' \| \
9571 <         X"$as_dir" : 'X\(/\)' \| \
9572 <         .     : '\(.\)' 2>/dev/null ||
9573 < echo X"$as_dir" |
9574 <    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9575 <          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9576 <          /^X\(\/\/\)$/{ s//\1/; q; }
9577 <          /^X\(\/\).*/{ s//\1/; q; }
9578 <          s/.*/./; q'`
9579 <    done
9580 <    test ! -n "$as_dirs" || mkdir $as_dirs
9581 <  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9582 < echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9583 <   { (exit 1); exit 1; }; }; }
9584 <
9585 <  ac_builddir=.
9586 <
9587 < if test "$ac_dir" != .; then
9588 <  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9589 <  # A "../" for each directory in $ac_dir_suffix.
9590 <  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9591 < else
9592 <  ac_dir_suffix= ac_top_builddir=
9593 < fi
9594 <
9595 < case $srcdir in
9596 <  .)  # No --srcdir option.  We are building in place.
9597 <    ac_srcdir=.
9598 <    if test -z "$ac_top_builddir"; then
9599 <       ac_top_srcdir=.
9600 <    else
9601 <       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9602 <    fi ;;
9603 <  [\\/]* | ?:[\\/]* )  # Absolute path.
9604 <    ac_srcdir=$srcdir$ac_dir_suffix;
9605 <    ac_top_srcdir=$srcdir ;;
9606 <  *) # Relative path.
9607 <    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9608 <    ac_top_srcdir=$ac_top_builddir$srcdir ;;
9609 < esac
9610 <
9611 < # Do not use `cd foo && pwd` to compute absolute paths, because
9612 < # the directories may not exist.
9613 < case `pwd` in
9614 < .) ac_abs_builddir="$ac_dir";;
9615 < *)
9616 <  case "$ac_dir" in
9617 <  .) ac_abs_builddir=`pwd`;;
9618 <  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9619 <  *) ac_abs_builddir=`pwd`/"$ac_dir";;
9620 <  esac;;
9621 < esac
9622 < case $ac_abs_builddir in
9623 < .) ac_abs_top_builddir=${ac_top_builddir}.;;
9624 < *)
9625 <  case ${ac_top_builddir}. in
9626 <  .) ac_abs_top_builddir=$ac_abs_builddir;;
9627 <  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9628 <  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9629 <  esac;;
9630 < esac
9631 < case $ac_abs_builddir in
9632 < .) ac_abs_srcdir=$ac_srcdir;;
9633 < *)
9634 <  case $ac_srcdir in
9635 <  .) ac_abs_srcdir=$ac_abs_builddir;;
9636 <  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9637 <  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9638 <  esac;;
9639 < esac
9640 < case $ac_abs_builddir in
9641 < .) ac_abs_top_srcdir=$ac_top_srcdir;;
9642 < *)
9643 <  case $ac_top_srcdir in
9644 <  .) ac_abs_top_srcdir=$ac_abs_builddir;;
9645 <  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9646 <  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9647 <  esac;;
9648 < esac
9649 <
9650 <
9651 <  case $INSTALL in
9652 <  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9653 <  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9654 <  esac
9655 <
9656 <  if test x"$ac_file" != x-; then
9657 <    { echo "$as_me:$LINENO: creating $ac_file" >&5
9658 < echo "$as_me: creating $ac_file" >&6;}
9659 <    rm -f "$ac_file"
9660 <  fi
9661 <  # Let's still pretend it is `configure' which instantiates (i.e., don't
9662 <  # use $as_me), people would be surprised to read:
9663 <  #    /* config.h.  Generated by config.status.  */
9664 <  if test x"$ac_file" = x-; then
9665 <    configure_input=
9666 <  else
9667 <    configure_input="$ac_file.  "
9668 <  fi
9669 <  configure_input=$configure_input"Generated from `echo $ac_file_in |
9670 <                                     sed 's,.*/,,'` by configure."
9671 <
9672 <  # First look for the input files in the build tree, otherwise in the
9673 <  # src tree.
9674 <  ac_file_inputs=`IFS=:
9675 <    for f in $ac_file_in; do
9676 <      case $f in
9677 <      -) echo $tmp/stdin ;;
9678 <      [\\/$]*)
9679 <         # Absolute (can't be DOS-style, as IFS=:)
9680 <         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9681 < echo "$as_me: error: cannot find input file: $f" >&2;}
9682 <   { (exit 1); exit 1; }; }
9683 <         echo "$f";;
9684 <      *) # Relative
9685 <         if test -f "$f"; then
9686 <           # Build tree
9687 <           echo "$f"
9688 <         elif test -f "$srcdir/$f"; then
9689 <           # Source tree
9690 <           echo "$srcdir/$f"
9691 <         else
9692 <           # /dev/null tree
9693 <           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9694 < echo "$as_me: error: cannot find input file: $f" >&2;}
9695 <   { (exit 1); exit 1; }; }
9696 <         fi;;
9697 <      esac
9698 <    done` || { (exit 1); exit 1; }
9699 < _ACEOF
9700 < cat >>$CONFIG_STATUS <<_ACEOF
9701 <  sed "$ac_vpsub
9702 < $extrasub
9703 < _ACEOF
9704 < cat >>$CONFIG_STATUS <<\_ACEOF
9705 < :t
9706 < /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9707 < s,@configure_input@,$configure_input,;t t
9708 < s,@srcdir@,$ac_srcdir,;t t
9709 < s,@abs_srcdir@,$ac_abs_srcdir,;t t
9710 < s,@top_srcdir@,$ac_top_srcdir,;t t
9711 < s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
9712 < s,@builddir@,$ac_builddir,;t t
9713 < s,@abs_builddir@,$ac_abs_builddir,;t t
9714 < s,@top_builddir@,$ac_top_builddir,;t t
9715 < s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
9716 < s,@INSTALL@,$ac_INSTALL,;t t
9717 < " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9718 <  rm -f $tmp/stdin
9719 <  if test x"$ac_file" != x-; then
9720 <    mv $tmp/out $ac_file
9721 <  else
9722 <    cat $tmp/out
9723 <    rm -f $tmp/out
9724 <  fi
9725 <
6113 > ac_ext=c
6114 > ac_cpp='$CPP $CPPFLAGS'
6115 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6116 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6117 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118 >
6119 >
6120 >
6121 >
6122 > for ac_header in sys/pstat.h sys/sysmp.h sys/sysinfo.h
6123 > do
6124 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6125 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6126 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6127 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6128 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6129 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6130 > fi
6131 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6132 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6133 > else
6134 >  # Is the header compilable?
6135 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6137 > cat >conftest.$ac_ext <<_ACEOF
6138 > /* confdefs.h.  */
6139 > _ACEOF
6140 > cat confdefs.h >>conftest.$ac_ext
6141 > cat >>conftest.$ac_ext <<_ACEOF
6142 > /* end confdefs.h.  */
6143 > $ac_includes_default
6144 > #include <$ac_header>
6145 > _ACEOF
6146 > rm -f conftest.$ac_objext
6147 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 >  (eval $ac_compile) 2>conftest.er1
6149 >  ac_status=$?
6150 >  grep -v '^ *+' conftest.er1 >conftest.err
6151 >  rm -f conftest.er1
6152 >  cat conftest.err >&5
6153 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154 >  (exit $ac_status); } &&
6155 >         { ac_try='test -z "$ac_c_werror_flag"
6156 >                         || test ! -s conftest.err'
6157 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 >  (eval $ac_try) 2>&5
6159 >  ac_status=$?
6160 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 >  (exit $ac_status); }; } &&
6162 >         { ac_try='test -s conftest.$ac_objext'
6163 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6164 >  (eval $ac_try) 2>&5
6165 >  ac_status=$?
6166 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 >  (exit $ac_status); }; }; then
6168 >  ac_header_compiler=yes
6169 > else
6170 >  echo "$as_me: failed program was:" >&5
6171 > sed 's/^/| /' conftest.$ac_ext >&5
6172 >
6173 > ac_header_compiler=no
6174 > fi
6175 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6176 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6177 > echo "${ECHO_T}$ac_header_compiler" >&6
6178 >
6179 > # Is the header present?
6180 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6181 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6182 > cat >conftest.$ac_ext <<_ACEOF
6183 > /* confdefs.h.  */
6184 > _ACEOF
6185 > cat confdefs.h >>conftest.$ac_ext
6186 > cat >>conftest.$ac_ext <<_ACEOF
6187 > /* end confdefs.h.  */
6188 > #include <$ac_header>
6189 > _ACEOF
6190 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6191 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6192 >  ac_status=$?
6193 >  grep -v '^ *+' conftest.er1 >conftest.err
6194 >  rm -f conftest.er1
6195 >  cat conftest.err >&5
6196 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 >  (exit $ac_status); } >/dev/null; then
6198 >  if test -s conftest.err; then
6199 >    ac_cpp_err=$ac_c_preproc_warn_flag
6200 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6201 >  else
6202 >    ac_cpp_err=
6203 >  fi
6204 > else
6205 >  ac_cpp_err=yes
6206 > fi
6207 > if test -z "$ac_cpp_err"; then
6208 >  ac_header_preproc=yes
6209 > else
6210 >  echo "$as_me: failed program was:" >&5
6211 > sed 's/^/| /' conftest.$ac_ext >&5
6212 >
6213 >  ac_header_preproc=no
6214 > fi
6215 > rm -f conftest.err conftest.$ac_ext
6216 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6217 > echo "${ECHO_T}$ac_header_preproc" >&6
6218 >
6219 > # So?  What about this header?
6220 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6221 >  yes:no: )
6222 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6223 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6224 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6225 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6226 >    ac_header_preproc=yes
6227 >    ;;
6228 >  no:yes:* )
6229 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6230 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6231 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6232 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6233 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6234 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6235 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6236 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6237 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6238 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6239 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6240 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6241 >    (
6242 >      cat <<\_ASBOX
6243 > ## ------------------------------ ##
6244 > ## Report this to gezelter@nd.edu ##
6245 > ## ------------------------------ ##
6246 > _ASBOX
6247 >    ) |
6248 >      sed "s/^/$as_me: WARNING:     /" >&2
6249 >    ;;
6250 > esac
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 > else
6256 >  eval "$as_ac_Header=\$ac_header_preproc"
6257 > fi
6258 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6259 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6260 >
6261 > fi
6262 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6263 >  cat >>confdefs.h <<_ACEOF
6264 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6265 > _ACEOF
6266 >
6267 > fi
6268 >
6269 > done
6270 >
6271 >
6272 >
6273 >
6274 >
6275 > for ac_header in sys/table.h sys/param.h sys/sysctl.h sys/sytemcfg.h
6276 > do
6277 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6278 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6280 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6281 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6282 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6283 > fi
6284 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6285 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6286 > else
6287 >  # Is the header compilable?
6288 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6289 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6290 > cat >conftest.$ac_ext <<_ACEOF
6291 > /* confdefs.h.  */
6292 > _ACEOF
6293 > cat confdefs.h >>conftest.$ac_ext
6294 > cat >>conftest.$ac_ext <<_ACEOF
6295 > /* end confdefs.h.  */
6296 > $ac_includes_default
6297 > #include <$ac_header>
6298 > _ACEOF
6299 > rm -f conftest.$ac_objext
6300 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 >  (eval $ac_compile) 2>conftest.er1
6302 >  ac_status=$?
6303 >  grep -v '^ *+' conftest.er1 >conftest.err
6304 >  rm -f conftest.er1
6305 >  cat conftest.err >&5
6306 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 >  (exit $ac_status); } &&
6308 >         { ac_try='test -z "$ac_c_werror_flag"
6309 >                         || test ! -s conftest.err'
6310 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 >  (eval $ac_try) 2>&5
6312 >  ac_status=$?
6313 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 >  (exit $ac_status); }; } &&
6315 >         { ac_try='test -s conftest.$ac_objext'
6316 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 >  (eval $ac_try) 2>&5
6318 >  ac_status=$?
6319 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 >  (exit $ac_status); }; }; then
6321 >  ac_header_compiler=yes
6322 > else
6323 >  echo "$as_me: failed program was:" >&5
6324 > sed 's/^/| /' conftest.$ac_ext >&5
6325 >
6326 > ac_header_compiler=no
6327 > fi
6328 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6329 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 > echo "${ECHO_T}$ac_header_compiler" >&6
6331 >
6332 > # Is the header present?
6333 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6335 > cat >conftest.$ac_ext <<_ACEOF
6336 > /* confdefs.h.  */
6337 > _ACEOF
6338 > cat confdefs.h >>conftest.$ac_ext
6339 > cat >>conftest.$ac_ext <<_ACEOF
6340 > /* end confdefs.h.  */
6341 > #include <$ac_header>
6342 > _ACEOF
6343 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6344 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6345 >  ac_status=$?
6346 >  grep -v '^ *+' conftest.er1 >conftest.err
6347 >  rm -f conftest.er1
6348 >  cat conftest.err >&5
6349 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 >  (exit $ac_status); } >/dev/null; then
6351 >  if test -s conftest.err; then
6352 >    ac_cpp_err=$ac_c_preproc_warn_flag
6353 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6354 >  else
6355 >    ac_cpp_err=
6356 >  fi
6357 > else
6358 >  ac_cpp_err=yes
6359 > fi
6360 > if test -z "$ac_cpp_err"; then
6361 >  ac_header_preproc=yes
6362 > else
6363 >  echo "$as_me: failed program was:" >&5
6364 > sed 's/^/| /' conftest.$ac_ext >&5
6365 >
6366 >  ac_header_preproc=no
6367 > fi
6368 > rm -f conftest.err conftest.$ac_ext
6369 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 > echo "${ECHO_T}$ac_header_preproc" >&6
6371 >
6372 > # So?  What about this header?
6373 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 >  yes:no: )
6375 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 >    ac_header_preproc=yes
6380 >    ;;
6381 >  no:yes:* )
6382 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6385 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6386 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6389 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6390 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6394 >    (
6395 >      cat <<\_ASBOX
6396 > ## ------------------------------ ##
6397 > ## Report this to gezelter@nd.edu ##
6398 > ## ------------------------------ ##
6399 > _ASBOX
6400 >    ) |
6401 >      sed "s/^/$as_me: WARNING:     /" >&2
6402 >    ;;
6403 > esac
6404 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6405 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6406 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6408 > else
6409 >  eval "$as_ac_Header=\$ac_header_preproc"
6410 > fi
6411 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6412 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6413 >
6414 > fi
6415 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6416 >  cat >>confdefs.h <<_ACEOF
6417 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 > _ACEOF
6419 >
6420 > fi
6421 >
6422 > done
6423 >
6424 >
6425 > for ac_header in machine/hal_sysinfo.h
6426 > do
6427 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6428 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6429 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
6430 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6431 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6432 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6433 > fi
6434 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6435 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6436 > else
6437 >  # Is the header compilable?
6438 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
6439 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6440 > cat >conftest.$ac_ext <<_ACEOF
6441 > /* confdefs.h.  */
6442 > _ACEOF
6443 > cat confdefs.h >>conftest.$ac_ext
6444 > cat >>conftest.$ac_ext <<_ACEOF
6445 > /* end confdefs.h.  */
6446 > $ac_includes_default
6447 > #include <$ac_header>
6448 > _ACEOF
6449 > rm -f conftest.$ac_objext
6450 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 >  (eval $ac_compile) 2>conftest.er1
6452 >  ac_status=$?
6453 >  grep -v '^ *+' conftest.er1 >conftest.err
6454 >  rm -f conftest.er1
6455 >  cat conftest.err >&5
6456 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 >  (exit $ac_status); } &&
6458 >         { ac_try='test -z "$ac_c_werror_flag"
6459 >                         || test ! -s conftest.err'
6460 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6461 >  (eval $ac_try) 2>&5
6462 >  ac_status=$?
6463 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 >  (exit $ac_status); }; } &&
6465 >         { ac_try='test -s conftest.$ac_objext'
6466 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6467 >  (eval $ac_try) 2>&5
6468 >  ac_status=$?
6469 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 >  (exit $ac_status); }; }; then
6471 >  ac_header_compiler=yes
6472 > else
6473 >  echo "$as_me: failed program was:" >&5
6474 > sed 's/^/| /' conftest.$ac_ext >&5
6475 >
6476 > ac_header_compiler=no
6477 > fi
6478 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6480 > echo "${ECHO_T}$ac_header_compiler" >&6
6481 >
6482 > # Is the header present?
6483 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
6484 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6485 > cat >conftest.$ac_ext <<_ACEOF
6486 > /* confdefs.h.  */
6487 > _ACEOF
6488 > cat confdefs.h >>conftest.$ac_ext
6489 > cat >>conftest.$ac_ext <<_ACEOF
6490 > /* end confdefs.h.  */
6491 > #include <$ac_header>
6492 > _ACEOF
6493 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6494 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6495 >  ac_status=$?
6496 >  grep -v '^ *+' conftest.er1 >conftest.err
6497 >  rm -f conftest.er1
6498 >  cat conftest.err >&5
6499 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 >  (exit $ac_status); } >/dev/null; then
6501 >  if test -s conftest.err; then
6502 >    ac_cpp_err=$ac_c_preproc_warn_flag
6503 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6504 >  else
6505 >    ac_cpp_err=
6506 >  fi
6507 > else
6508 >  ac_cpp_err=yes
6509 > fi
6510 > if test -z "$ac_cpp_err"; then
6511 >  ac_header_preproc=yes
6512 > else
6513 >  echo "$as_me: failed program was:" >&5
6514 > sed 's/^/| /' conftest.$ac_ext >&5
6515 >
6516 >  ac_header_preproc=no
6517 > fi
6518 > rm -f conftest.err conftest.$ac_ext
6519 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6520 > echo "${ECHO_T}$ac_header_preproc" >&6
6521 >
6522 > # So?  What about this header?
6523 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6524 >  yes:no: )
6525 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6526 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6527 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6528 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6529 >    ac_header_preproc=yes
6530 >    ;;
6531 >  no:yes:* )
6532 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6533 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6534 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6535 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6536 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6537 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6538 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6539 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6540 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6541 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6542 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6543 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6544 >    (
6545 >      cat <<\_ASBOX
6546 > ## ------------------------------ ##
6547 > ## Report this to gezelter@nd.edu ##
6548 > ## ------------------------------ ##
6549 > _ASBOX
6550 >    ) |
6551 >      sed "s/^/$as_me: WARNING:     /" >&2
6552 >    ;;
6553 > esac
6554 > echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6558 > else
6559 >  eval "$as_ac_Header=\$ac_header_preproc"
6560 > fi
6561 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 >
6564 > fi
6565 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
6566 >  cat >>confdefs.h <<_ACEOF
6567 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568 > _ACEOF
6569 >
6570 > fi
6571 >
6572 > done
6573 >
6574 >
6575 >
6576 >
6577 >
6578 >
6579 > for ac_func in pstat_getstatic sysmp getsysinfo sysctl table
6580 > do
6581 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6582 > echo "$as_me:$LINENO: checking for $ac_func" >&5
6583 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6584 > if eval "test \"\${$as_ac_var+set}\" = set"; then
6585 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6586 > else
6587 >  cat >conftest.$ac_ext <<_ACEOF
6588 > /* confdefs.h.  */
6589 > _ACEOF
6590 > cat confdefs.h >>conftest.$ac_ext
6591 > cat >>conftest.$ac_ext <<_ACEOF
6592 > /* end confdefs.h.  */
6593 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6594 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6595 > #define $ac_func innocuous_$ac_func
6596 >
6597 > /* System header to define __stub macros and hopefully few prototypes,
6598 >    which can conflict with char $ac_func (); below.
6599 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6600 >    <limits.h> exists even on freestanding compilers.  */
6601 >
6602 > #ifdef __STDC__
6603 > # include <limits.h>
6604 > #else
6605 > # include <assert.h>
6606 > #endif
6607 >
6608 > #undef $ac_func
6609 >
6610 > /* Override any gcc2 internal prototype to avoid an error.  */
6611 > #ifdef __cplusplus
6612 > extern "C"
6613 > {
6614 > #endif
6615 > /* We use char because int might match the return type of a gcc2
6616 >   builtin and then its argument prototype would still apply.  */
6617 > char $ac_func ();
6618 > /* The GNU C library defines this for functions which it implements
6619 >    to always fail with ENOSYS.  Some functions are actually named
6620 >    something starting with __ and the normal name is an alias.  */
6621 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6622 > choke me
6623 > #else
6624 > char (*f) () = $ac_func;
6625 > #endif
6626 > #ifdef __cplusplus
6627 > }
6628 > #endif
6629 >
6630 > int
6631 > main ()
6632 > {
6633 > return f != $ac_func;
6634 >  ;
6635 >  return 0;
6636 > }
6637 > _ACEOF
6638 > rm -f conftest.$ac_objext conftest$ac_exeext
6639 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 >  (eval $ac_link) 2>conftest.er1
6641 >  ac_status=$?
6642 >  grep -v '^ *+' conftest.er1 >conftest.err
6643 >  rm -f conftest.er1
6644 >  cat conftest.err >&5
6645 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 >  (exit $ac_status); } &&
6647 >         { ac_try='test -z "$ac_c_werror_flag"
6648 >                         || test ! -s conftest.err'
6649 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 >  (eval $ac_try) 2>&5
6651 >  ac_status=$?
6652 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 >  (exit $ac_status); }; } &&
6654 >         { ac_try='test -s conftest$ac_exeext'
6655 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 >  (eval $ac_try) 2>&5
6657 >  ac_status=$?
6658 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 >  (exit $ac_status); }; }; then
6660 >  eval "$as_ac_var=yes"
6661 > else
6662 >  echo "$as_me: failed program was:" >&5
6663 > sed 's/^/| /' conftest.$ac_ext >&5
6664 >
6665 > eval "$as_ac_var=no"
6666 > fi
6667 > rm -f conftest.err conftest.$ac_objext \
6668 >      conftest$ac_exeext conftest.$ac_ext
6669 > fi
6670 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6671 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6672 > if test `eval echo '${'$as_ac_var'}'` = yes; then
6673 >  cat >>confdefs.h <<_ACEOF
6674 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6675 > _ACEOF
6676 >
6677 > fi
6678 > done
6679 >
6680 > # special check for _system_configuration because AIX <4.3.2 do not
6681 > # contain the `physmem' member.
6682 > echo "$as_me:$LINENO: checking for external symbol _system_configuration" >&5
6683 > echo $ECHO_N "checking for external symbol _system_configuration... $ECHO_C" >&6
6684 > cat >conftest.$ac_ext <<_ACEOF
6685 > /* confdefs.h.  */
6686 > _ACEOF
6687 > cat confdefs.h >>conftest.$ac_ext
6688 > cat >>conftest.$ac_ext <<_ACEOF
6689 > /* end confdefs.h.  */
6690 > #include <sys/systemcfg.h>
6691 > int
6692 > main ()
6693 > {
6694 > double x = _system_configuration.physmem;
6695 >  ;
6696 >  return 0;
6697 > }
6698 > _ACEOF
6699 > rm -f conftest.$ac_objext
6700 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6701 >  (eval $ac_compile) 2>conftest.er1
6702 >  ac_status=$?
6703 >  grep -v '^ *+' conftest.er1 >conftest.err
6704 >  rm -f conftest.er1
6705 >  cat conftest.err >&5
6706 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 >  (exit $ac_status); } &&
6708 >         { ac_try='test -z "$ac_c_werror_flag"
6709 >                         || test ! -s conftest.err'
6710 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 >  (eval $ac_try) 2>&5
6712 >  ac_status=$?
6713 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 >  (exit $ac_status); }; } &&
6715 >         { ac_try='test -s conftest.$ac_objext'
6716 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 >  (eval $ac_try) 2>&5
6718 >  ac_status=$?
6719 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 >  (exit $ac_status); }; }; then
6721 >  echo "$as_me:$LINENO: result: yes" >&5
6722 > echo "${ECHO_T}yes" >&6
6723 >
6724 > cat >>confdefs.h <<\_ACEOF
6725 > #define HAVE__SYSTEM_CONFIGURATION 1
6726 > _ACEOF
6727 >
6728 > else
6729 >  echo "$as_me: failed program was:" >&5
6730 > sed 's/^/| /' conftest.$ac_ext >&5
6731 >
6732 > echo "$as_me:$LINENO: result: no" >&5
6733 > echo "${ECHO_T}no" >&6
6734 > fi
6735 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6736 > echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6737 > echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6738 > if test "${ac_cv_header_time+set}" = set; then
6739 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6740 > else
6741 >  cat >conftest.$ac_ext <<_ACEOF
6742 > /* confdefs.h.  */
6743 > _ACEOF
6744 > cat confdefs.h >>conftest.$ac_ext
6745 > cat >>conftest.$ac_ext <<_ACEOF
6746 > /* end confdefs.h.  */
6747 > #include <sys/types.h>
6748 > #include <sys/time.h>
6749 > #include <time.h>
6750 >
6751 > int
6752 > main ()
6753 > {
6754 > if ((struct tm *) 0)
6755 > return 0;
6756 >  ;
6757 >  return 0;
6758 > }
6759 > _ACEOF
6760 > rm -f conftest.$ac_objext
6761 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6762 >  (eval $ac_compile) 2>conftest.er1
6763 >  ac_status=$?
6764 >  grep -v '^ *+' conftest.er1 >conftest.err
6765 >  rm -f conftest.er1
6766 >  cat conftest.err >&5
6767 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 >  (exit $ac_status); } &&
6769 >         { ac_try='test -z "$ac_c_werror_flag"
6770 >                         || test ! -s conftest.err'
6771 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6772 >  (eval $ac_try) 2>&5
6773 >  ac_status=$?
6774 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 >  (exit $ac_status); }; } &&
6776 >         { ac_try='test -s conftest.$ac_objext'
6777 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 >  (eval $ac_try) 2>&5
6779 >  ac_status=$?
6780 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 >  (exit $ac_status); }; }; then
6782 >  ac_cv_header_time=yes
6783 > else
6784 >  echo "$as_me: failed program was:" >&5
6785 > sed 's/^/| /' conftest.$ac_ext >&5
6786 >
6787 > ac_cv_header_time=no
6788 > fi
6789 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6790 > fi
6791 > echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6792 > echo "${ECHO_T}$ac_cv_header_time" >&6
6793 > if test $ac_cv_header_time = yes; then
6794 >
6795 > cat >>confdefs.h <<\_ACEOF
6796 > #define TIME_WITH_SYS_TIME 1
6797 > _ACEOF
6798 >
6799 > fi
6800 >
6801 >
6802 > echo "$as_me:$LINENO: checking for clock_t" >&5
6803 > echo $ECHO_N "checking for clock_t... $ECHO_C" >&6
6804 > if test "${ac_cv_type_clock_t+set}" = set; then
6805 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6806 > else
6807 >  cat >conftest.$ac_ext <<_ACEOF
6808 > /* confdefs.h.  */
6809 > _ACEOF
6810 > cat confdefs.h >>conftest.$ac_ext
6811 > cat >>conftest.$ac_ext <<_ACEOF
6812 > /* end confdefs.h.  */
6813 > $ac_includes_default
6814 > int
6815 > main ()
6816 > {
6817 > if ((clock_t *) 0)
6818 >  return 0;
6819 > if (sizeof (clock_t))
6820 >  return 0;
6821 >  ;
6822 >  return 0;
6823 > }
6824 > _ACEOF
6825 > rm -f conftest.$ac_objext
6826 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6827 >  (eval $ac_compile) 2>conftest.er1
6828 >  ac_status=$?
6829 >  grep -v '^ *+' conftest.er1 >conftest.err
6830 >  rm -f conftest.er1
6831 >  cat conftest.err >&5
6832 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6833 >  (exit $ac_status); } &&
6834 >         { ac_try='test -z "$ac_c_werror_flag"
6835 >                         || test ! -s conftest.err'
6836 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6837 >  (eval $ac_try) 2>&5
6838 >  ac_status=$?
6839 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 >  (exit $ac_status); }; } &&
6841 >         { ac_try='test -s conftest.$ac_objext'
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); }; }; then
6847 >  ac_cv_type_clock_t=yes
6848 > else
6849 >  echo "$as_me: failed program was:" >&5
6850 > sed 's/^/| /' conftest.$ac_ext >&5
6851 >
6852 > ac_cv_type_clock_t=no
6853 > fi
6854 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 > fi
6856 > echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
6857 > echo "${ECHO_T}$ac_cv_type_clock_t" >&6
6858 > if test $ac_cv_type_clock_t = yes; then
6859 >
6860 > cat >>confdefs.h <<_ACEOF
6861 > #define HAVE_CLOCK_T 1
6862 > _ACEOF
6863 >
6864 >
6865 > fi
6866 >
6867 > echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6868 > echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
6869 > if test "${ac_cv_c_const+set}" = set; then
6870 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6871 > else
6872 >  cat >conftest.$ac_ext <<_ACEOF
6873 > /* confdefs.h.  */
6874 > _ACEOF
6875 > cat confdefs.h >>conftest.$ac_ext
6876 > cat >>conftest.$ac_ext <<_ACEOF
6877 > /* end confdefs.h.  */
6878 >
6879 > int
6880 > main ()
6881 > {
6882 > /* FIXME: Include the comments suggested by Paul. */
6883 > #ifndef __cplusplus
6884 >  /* Ultrix mips cc rejects this.  */
6885 >  typedef int charset[2];
6886 >  const charset x;
6887 >  /* SunOS 4.1.1 cc rejects this.  */
6888 >  char const *const *ccp;
6889 >  char **p;
6890 >  /* NEC SVR4.0.2 mips cc rejects this.  */
6891 >  struct point {int x, y;};
6892 >  static struct point const zero = {0,0};
6893 >  /* AIX XL C 1.02.0.0 rejects this.
6894 >     It does not let you subtract one const X* pointer from another in
6895 >     an arm of an if-expression whose if-part is not a constant
6896 >     expression */
6897 >  const char *g = "string";
6898 >  ccp = &g + (g ? g-g : 0);
6899 >  /* HPUX 7.0 cc rejects these. */
6900 >  ++ccp;
6901 >  p = (char**) ccp;
6902 >  ccp = (char const *const *) p;
6903 >  { /* SCO 3.2v4 cc rejects this.  */
6904 >    char *t;
6905 >    char const *s = 0 ? (char *) 0 : (char const *) 0;
6906 >
6907 >    *t++ = 0;
6908 >  }
6909 >  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
6910 >    int x[] = {25, 17};
6911 >    const int *foo = &x[0];
6912 >    ++foo;
6913 >  }
6914 >  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6915 >    typedef const int *iptr;
6916 >    iptr p = 0;
6917 >    ++p;
6918 >  }
6919 >  { /* AIX XL C 1.02.0.0 rejects this saying
6920 >       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6921 >    struct s { int j; const int *ap[3]; };
6922 >    struct s *b; b->j = 5;
6923 >  }
6924 >  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6925 >    const int foo = 10;
6926 >  }
6927 > #endif
6928 >
6929 >  ;
6930 >  return 0;
6931 > }
6932 > _ACEOF
6933 > rm -f conftest.$ac_objext
6934 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 >  (eval $ac_compile) 2>conftest.er1
6936 >  ac_status=$?
6937 >  grep -v '^ *+' conftest.er1 >conftest.err
6938 >  rm -f conftest.er1
6939 >  cat conftest.err >&5
6940 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 >  (exit $ac_status); } &&
6942 >         { ac_try='test -z "$ac_c_werror_flag"
6943 >                         || test ! -s conftest.err'
6944 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945 >  (eval $ac_try) 2>&5
6946 >  ac_status=$?
6947 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 >  (exit $ac_status); }; } &&
6949 >         { ac_try='test -s conftest.$ac_objext'
6950 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951 >  (eval $ac_try) 2>&5
6952 >  ac_status=$?
6953 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 >  (exit $ac_status); }; }; then
6955 >  ac_cv_c_const=yes
6956 > else
6957 >  echo "$as_me: failed program was:" >&5
6958 > sed 's/^/| /' conftest.$ac_ext >&5
6959 >
6960 > ac_cv_c_const=no
6961 > fi
6962 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6963 > fi
6964 > echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6965 > echo "${ECHO_T}$ac_cv_c_const" >&6
6966 > if test $ac_cv_c_const = no; then
6967 >
6968 > cat >>confdefs.h <<\_ACEOF
6969 > #define const
6970 > _ACEOF
6971 >
6972 > fi
6973 >
6974 > echo "$as_me:$LINENO: checking for inline" >&5
6975 > echo $ECHO_N "checking for inline... $ECHO_C" >&6
6976 > if test "${ac_cv_c_inline+set}" = set; then
6977 >  echo $ECHO_N "(cached) $ECHO_C" >&6
6978 > else
6979 >  ac_cv_c_inline=no
6980 > for ac_kw in inline __inline__ __inline; do
6981 >  cat >conftest.$ac_ext <<_ACEOF
6982 > /* confdefs.h.  */
6983 > _ACEOF
6984 > cat confdefs.h >>conftest.$ac_ext
6985 > cat >>conftest.$ac_ext <<_ACEOF
6986 > /* end confdefs.h.  */
6987 > #ifndef __cplusplus
6988 > typedef int foo_t;
6989 > static $ac_kw foo_t static_foo () {return 0; }
6990 > $ac_kw foo_t foo () {return 0; }
6991 > #endif
6992 >
6993 > _ACEOF
6994 > rm -f conftest.$ac_objext
6995 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6996 >  (eval $ac_compile) 2>conftest.er1
6997 >  ac_status=$?
6998 >  grep -v '^ *+' conftest.er1 >conftest.err
6999 >  rm -f conftest.er1
7000 >  cat conftest.err >&5
7001 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 >  (exit $ac_status); } &&
7003 >         { ac_try='test -z "$ac_c_werror_flag"
7004 >                         || test ! -s conftest.err'
7005 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7006 >  (eval $ac_try) 2>&5
7007 >  ac_status=$?
7008 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 >  (exit $ac_status); }; } &&
7010 >         { ac_try='test -s conftest.$ac_objext'
7011 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7012 >  (eval $ac_try) 2>&5
7013 >  ac_status=$?
7014 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 >  (exit $ac_status); }; }; then
7016 >  ac_cv_c_inline=$ac_kw; break
7017 > else
7018 >  echo "$as_me: failed program was:" >&5
7019 > sed 's/^/| /' conftest.$ac_ext >&5
7020 >
7021 > fi
7022 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7023 > done
7024 >
7025 > fi
7026 > echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7027 > echo "${ECHO_T}$ac_cv_c_inline" >&6
7028 >
7029 >
7030 > case $ac_cv_c_inline in
7031 >  inline | yes) ;;
7032 >  *)
7033 >    case $ac_cv_c_inline in
7034 >      no) ac_val=;;
7035 >      *) ac_val=$ac_cv_c_inline;;
7036 >    esac
7037 >    cat >>confdefs.h <<_ACEOF
7038 > #ifndef __cplusplus
7039 > #define inline $ac_val
7040 > #endif
7041 > _ACEOF
7042 >    ;;
7043 > esac
7044 >
7045 >
7046 >
7047 >
7048 > for ac_func in rint sranddev
7049 > do
7050 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7051 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7052 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7053 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7054 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7055 > else
7056 >  cat >conftest.$ac_ext <<_ACEOF
7057 > /* confdefs.h.  */
7058 > _ACEOF
7059 > cat confdefs.h >>conftest.$ac_ext
7060 > cat >>conftest.$ac_ext <<_ACEOF
7061 > /* end confdefs.h.  */
7062 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7063 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7064 > #define $ac_func innocuous_$ac_func
7065 >
7066 > /* System header to define __stub macros and hopefully few prototypes,
7067 >    which can conflict with char $ac_func (); below.
7068 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7069 >    <limits.h> exists even on freestanding compilers.  */
7070 >
7071 > #ifdef __STDC__
7072 > # include <limits.h>
7073 > #else
7074 > # include <assert.h>
7075 > #endif
7076 >
7077 > #undef $ac_func
7078 >
7079 > /* Override any gcc2 internal prototype to avoid an error.  */
7080 > #ifdef __cplusplus
7081 > extern "C"
7082 > {
7083 > #endif
7084 > /* We use char because int might match the return type of a gcc2
7085 >   builtin and then its argument prototype would still apply.  */
7086 > char $ac_func ();
7087 > /* The GNU C library defines this for functions which it implements
7088 >    to always fail with ENOSYS.  Some functions are actually named
7089 >    something starting with __ and the normal name is an alias.  */
7090 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7091 > choke me
7092 > #else
7093 > char (*f) () = $ac_func;
7094 > #endif
7095 > #ifdef __cplusplus
7096 > }
7097 > #endif
7098 >
7099 > int
7100 > main ()
7101 > {
7102 > return f != $ac_func;
7103 >  ;
7104 >  return 0;
7105 > }
7106 > _ACEOF
7107 > rm -f conftest.$ac_objext conftest$ac_exeext
7108 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7109 >  (eval $ac_link) 2>conftest.er1
7110 >  ac_status=$?
7111 >  grep -v '^ *+' conftest.er1 >conftest.err
7112 >  rm -f conftest.er1
7113 >  cat conftest.err >&5
7114 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 >  (exit $ac_status); } &&
7116 >         { ac_try='test -z "$ac_c_werror_flag"
7117 >                         || test ! -s conftest.err'
7118 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7119 >  (eval $ac_try) 2>&5
7120 >  ac_status=$?
7121 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 >  (exit $ac_status); }; } &&
7123 >         { ac_try='test -s conftest$ac_exeext'
7124 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 >  (eval $ac_try) 2>&5
7126 >  ac_status=$?
7127 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 >  (exit $ac_status); }; }; then
7129 >  eval "$as_ac_var=yes"
7130 > else
7131 >  echo "$as_me: failed program was:" >&5
7132 > sed 's/^/| /' conftest.$ac_ext >&5
7133 >
7134 > eval "$as_ac_var=no"
7135 > fi
7136 > rm -f conftest.err conftest.$ac_objext \
7137 >      conftest$ac_exeext conftest.$ac_ext
7138 > fi
7139 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7140 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7141 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7142 >  cat >>confdefs.h <<_ACEOF
7143 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7144 > _ACEOF
7145 >
7146 > fi
7147 > done
7148 >
7149 >
7150 >  # clean out junk possibly left behind by a previous configuration
7151 >  rm -f src/getopt.h
7152 >  # Check for getopt_long support
7153 >
7154 > for ac_header in getopt.h
7155 > do
7156 > as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7157 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7158 >  echo "$as_me:$LINENO: checking for $ac_header" >&5
7159 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7160 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7161 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7162 > fi
7163 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7164 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7165 > else
7166 >  # Is the header compilable?
7167 > echo "$as_me:$LINENO: checking $ac_header usability" >&5
7168 > echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7169 > cat >conftest.$ac_ext <<_ACEOF
7170 > /* confdefs.h.  */
7171 > _ACEOF
7172 > cat confdefs.h >>conftest.$ac_ext
7173 > cat >>conftest.$ac_ext <<_ACEOF
7174 > /* end confdefs.h.  */
7175 > $ac_includes_default
7176 > #include <$ac_header>
7177 > _ACEOF
7178 > rm -f conftest.$ac_objext
7179 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 >  (eval $ac_compile) 2>conftest.er1
7181 >  ac_status=$?
7182 >  grep -v '^ *+' conftest.er1 >conftest.err
7183 >  rm -f conftest.er1
7184 >  cat conftest.err >&5
7185 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 >  (exit $ac_status); } &&
7187 >         { ac_try='test -z "$ac_c_werror_flag"
7188 >                         || test ! -s conftest.err'
7189 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190 >  (eval $ac_try) 2>&5
7191 >  ac_status=$?
7192 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 >  (exit $ac_status); }; } &&
7194 >         { ac_try='test -s conftest.$ac_objext'
7195 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 >  (eval $ac_try) 2>&5
7197 >  ac_status=$?
7198 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 >  (exit $ac_status); }; }; then
7200 >  ac_header_compiler=yes
7201 > else
7202 >  echo "$as_me: failed program was:" >&5
7203 > sed 's/^/| /' conftest.$ac_ext >&5
7204 >
7205 > ac_header_compiler=no
7206 > fi
7207 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7208 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7209 > echo "${ECHO_T}$ac_header_compiler" >&6
7210 >
7211 > # Is the header present?
7212 > echo "$as_me:$LINENO: checking $ac_header presence" >&5
7213 > echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7214 > cat >conftest.$ac_ext <<_ACEOF
7215 > /* confdefs.h.  */
7216 > _ACEOF
7217 > cat confdefs.h >>conftest.$ac_ext
7218 > cat >>conftest.$ac_ext <<_ACEOF
7219 > /* end confdefs.h.  */
7220 > #include <$ac_header>
7221 > _ACEOF
7222 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7223 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7224 >  ac_status=$?
7225 >  grep -v '^ *+' conftest.er1 >conftest.err
7226 >  rm -f conftest.er1
7227 >  cat conftest.err >&5
7228 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 >  (exit $ac_status); } >/dev/null; then
7230 >  if test -s conftest.err; then
7231 >    ac_cpp_err=$ac_c_preproc_warn_flag
7232 >    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7233 >  else
7234 >    ac_cpp_err=
7235 >  fi
7236 > else
7237 >  ac_cpp_err=yes
7238 > fi
7239 > if test -z "$ac_cpp_err"; then
7240 >  ac_header_preproc=yes
7241 > else
7242 >  echo "$as_me: failed program was:" >&5
7243 > sed 's/^/| /' conftest.$ac_ext >&5
7244 >
7245 >  ac_header_preproc=no
7246 > fi
7247 > rm -f conftest.err conftest.$ac_ext
7248 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7249 > echo "${ECHO_T}$ac_header_preproc" >&6
7250 >
7251 > # So?  What about this header?
7252 > case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7253 >  yes:no: )
7254 >    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7255 > echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7256 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7257 > echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7258 >    ac_header_preproc=yes
7259 >    ;;
7260 >  no:yes:* )
7261 >    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7262 > echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7263 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7264 > echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7265 >    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7266 > echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7267 >    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7268 > echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7269 >    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7270 > echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7271 >    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7272 > echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7273 >    (
7274 >      cat <<\_ASBOX
7275 > ## ------------------------------ ##
7276 > ## Report this to gezelter@nd.edu ##
7277 > ## ------------------------------ ##
7278 > _ASBOX
7279 >    ) |
7280 >      sed "s/^/$as_me: WARNING:     /" >&2
7281 >    ;;
7282 > esac
7283 > echo "$as_me:$LINENO: checking for $ac_header" >&5
7284 > echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7285 > if eval "test \"\${$as_ac_Header+set}\" = set"; then
7286 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7287 > else
7288 >  eval "$as_ac_Header=\$ac_header_preproc"
7289 > fi
7290 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7291 > echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7292 >
7293 > fi
7294 > if test `eval echo '${'$as_ac_Header'}'` = yes; then
7295 >  cat >>confdefs.h <<_ACEOF
7296 > #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7297 > _ACEOF
7298 >
7299 > fi
7300 >
7301 > done
7302 >
7303 >
7304 > for ac_func in getopt_long
7305 > do
7306 > as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7307 > echo "$as_me:$LINENO: checking for $ac_func" >&5
7308 > echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7309 > if eval "test \"\${$as_ac_var+set}\" = set"; then
7310 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7311 > else
7312 >  cat >conftest.$ac_ext <<_ACEOF
7313 > /* confdefs.h.  */
7314 > _ACEOF
7315 > cat confdefs.h >>conftest.$ac_ext
7316 > cat >>conftest.$ac_ext <<_ACEOF
7317 > /* end confdefs.h.  */
7318 > /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7319 >   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7320 > #define $ac_func innocuous_$ac_func
7321 >
7322 > /* System header to define __stub macros and hopefully few prototypes,
7323 >    which can conflict with char $ac_func (); below.
7324 >    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7325 >    <limits.h> exists even on freestanding compilers.  */
7326 >
7327 > #ifdef __STDC__
7328 > # include <limits.h>
7329 > #else
7330 > # include <assert.h>
7331 > #endif
7332 >
7333 > #undef $ac_func
7334 >
7335 > /* Override any gcc2 internal prototype to avoid an error.  */
7336 > #ifdef __cplusplus
7337 > extern "C"
7338 > {
7339 > #endif
7340 > /* We use char because int might match the return type of a gcc2
7341 >   builtin and then its argument prototype would still apply.  */
7342 > char $ac_func ();
7343 > /* The GNU C library defines this for functions which it implements
7344 >    to always fail with ENOSYS.  Some functions are actually named
7345 >    something starting with __ and the normal name is an alias.  */
7346 > #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7347 > choke me
7348 > #else
7349 > char (*f) () = $ac_func;
7350 > #endif
7351 > #ifdef __cplusplus
7352 > }
7353 > #endif
7354 >
7355 > int
7356 > main ()
7357 > {
7358 > return f != $ac_func;
7359 >  ;
7360 >  return 0;
7361 > }
7362 > _ACEOF
7363 > rm -f conftest.$ac_objext conftest$ac_exeext
7364 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7365 >  (eval $ac_link) 2>conftest.er1
7366 >  ac_status=$?
7367 >  grep -v '^ *+' conftest.er1 >conftest.err
7368 >  rm -f conftest.er1
7369 >  cat conftest.err >&5
7370 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 >  (exit $ac_status); } &&
7372 >         { ac_try='test -z "$ac_c_werror_flag"
7373 >                         || test ! -s conftest.err'
7374 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7375 >  (eval $ac_try) 2>&5
7376 >  ac_status=$?
7377 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 >  (exit $ac_status); }; } &&
7379 >         { ac_try='test -s conftest$ac_exeext'
7380 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7381 >  (eval $ac_try) 2>&5
7382 >  ac_status=$?
7383 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384 >  (exit $ac_status); }; }; then
7385 >  eval "$as_ac_var=yes"
7386 > else
7387 >  echo "$as_me: failed program was:" >&5
7388 > sed 's/^/| /' conftest.$ac_ext >&5
7389 >
7390 > eval "$as_ac_var=no"
7391 > fi
7392 > rm -f conftest.err conftest.$ac_objext \
7393 >      conftest$ac_exeext conftest.$ac_ext
7394 > fi
7395 > echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7396 > echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7397 > if test `eval echo '${'$as_ac_var'}'` = yes; then
7398 >  cat >>confdefs.h <<_ACEOF
7399 > #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7400 > _ACEOF
7401 >
7402 > else
7403 >  # FreeBSD has a gnugetopt library for this
7404 >    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
7405 > echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
7406 > if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
7407 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7408 > else
7409 >  ac_check_lib_save_LIBS=$LIBS
7410 > LIBS="-lgnugetopt  $LIBS"
7411 > cat >conftest.$ac_ext <<_ACEOF
7412 > /* confdefs.h.  */
7413 > _ACEOF
7414 > cat confdefs.h >>conftest.$ac_ext
7415 > cat >>conftest.$ac_ext <<_ACEOF
7416 > /* end confdefs.h.  */
7417 >
7418 > /* Override any gcc2 internal prototype to avoid an error.  */
7419 > #ifdef __cplusplus
7420 > extern "C"
7421 > #endif
7422 > /* We use char because int might match the return type of a gcc2
7423 >   builtin and then its argument prototype would still apply.  */
7424 > char getopt_long ();
7425 > int
7426 > main ()
7427 > {
7428 > getopt_long ();
7429 >  ;
7430 >  return 0;
7431 > }
7432 > _ACEOF
7433 > rm -f conftest.$ac_objext conftest$ac_exeext
7434 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7435 >  (eval $ac_link) 2>conftest.er1
7436 >  ac_status=$?
7437 >  grep -v '^ *+' conftest.er1 >conftest.err
7438 >  rm -f conftest.er1
7439 >  cat conftest.err >&5
7440 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441 >  (exit $ac_status); } &&
7442 >         { ac_try='test -z "$ac_c_werror_flag"
7443 >                         || test ! -s conftest.err'
7444 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 >  (eval $ac_try) 2>&5
7446 >  ac_status=$?
7447 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 >  (exit $ac_status); }; } &&
7449 >         { ac_try='test -s conftest$ac_exeext'
7450 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 >  (eval $ac_try) 2>&5
7452 >  ac_status=$?
7453 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 >  (exit $ac_status); }; }; then
7455 >  ac_cv_lib_gnugetopt_getopt_long=yes
7456 > else
7457 >  echo "$as_me: failed program was:" >&5
7458 > sed 's/^/| /' conftest.$ac_ext >&5
7459 >
7460 > ac_cv_lib_gnugetopt_getopt_long=no
7461 > fi
7462 > rm -f conftest.err conftest.$ac_objext \
7463 >      conftest$ac_exeext conftest.$ac_ext
7464 > LIBS=$ac_check_lib_save_LIBS
7465 > fi
7466 > echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
7467 > echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
7468 > if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
7469 >  cat >>confdefs.h <<\_ACEOF
7470 > #define HAVE_GETOPT_LONG 1
7471 > _ACEOF
7472 >
7473 > else
7474 >  # use the GNU replacement
7475 >      case $LIBOBJS in
7476 >    "getopt.$ac_objext"   | \
7477 >  *" getopt.$ac_objext"   | \
7478 >    "getopt.$ac_objext "* | \
7479 >  *" getopt.$ac_objext "* ) ;;
7480 >  *) LIBOBJS="$LIBOBJS getopt.$ac_objext" ;;
7481 > esac
7482 >
7483 >      case $LIBOBJS in
7484 >    "getopt1.$ac_objext"   | \
7485 >  *" getopt1.$ac_objext"   | \
7486 >    "getopt1.$ac_objext "* | \
7487 >  *" getopt1.$ac_objext "* ) ;;
7488 >  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext" ;;
7489 > esac
7490 >
7491 >                ac_config_links="$ac_config_links src/getopt.h:src/utils/gnugetopt.h"
7492 >
7493 > fi
7494 >
7495 > fi
7496 > done
7497 >
7498 >
7499 >
7500 > case $debug in
7501 >  1)
7502 >     ;;
7503 >  *)
7504 >
7505 >
7506 >
7507 >
7508 >
7509 >
7510 > echo "$as_me:$LINENO: checking whether we are *really* using GNU cc" >&5
7511 > echo $ECHO_N "checking whether we are *really* using GNU cc... $ECHO_C" >&6
7512 > if test "${ac_cv_prog_really_gcc+set}" = set; then
7513 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7514 > else
7515 >
7516 > cat > conftest.c <<EOF
7517 > #ifdef __GNUC__
7518 >  #ifndef __INTEL_COMPILER
7519 >     yes;
7520 >  #endif
7521 > #endif
7522 > EOF
7523 > if { ac_try='${CC-cc} -E conftest.c'
7524 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525 >  (eval $ac_try) 2>&5
7526 >  ac_status=$?
7527 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7529 >  ac_cv_prog_really_gcc=yes
7530 > else
7531 >  ac_cv_prog_really_gcc=no
7532 > fi
7533 >
7534 > fi
7535 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gcc" >&5
7536 > echo "${ECHO_T}$ac_cv_prog_really_gcc" >&6
7537 > if test "$ac_cv_prog_really_gcc" = yes; then
7538 >        :
7539 >
7540 > else
7541 >        :
7542 >
7543 > fi
7544 >
7545 >
7546 > # Try to determine "good" native compiler flags if none specified on command
7547 > # line
7548 > if test "$ac_test_CFLAGS" != "set"; then
7549 >  CFLAGS=""
7550 >  case "${host_cpu}-${host_os}" in
7551 >
7552 >  *linux*) if test "$CC" = icc; then
7553 >                    CFLAGS="-O"
7554 >                fi;;
7555 >  sparc-solaris2*) if test "$CC" = cc; then
7556 >                    CFLAGS="-native -fast -xO5 -dalign"
7557 >                 fi;;
7558 >
7559 >  alpha*-osf*)  if test "$CC" = cc; then
7560 >                    CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host -arch host -std1"
7561 >                fi;;
7562 >
7563 >  hppa*-hpux*)  if test "$CC" = cc; then
7564 >                    CFLAGS="-Ae +O3 +Oall"
7565 >                fi;;
7566 >
7567 >   rs6000*-aix*)  if test "$CC" = cc -o "$CC" = xlc; then
7568 >                    CFLAGS="-O3 -qtune=auto -qansialias -w"
7569 >                fi;;
7570 >   powerpc*-aix*)
7571 >        if test "$CC" = cc -o "$CC" = xlc; then
7572 >                CFLAGS="-O3 -qtune=auto -qansialias -w"
7573 >                echo "*******************************************************"
7574 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
7575 >                echo "*  recommended that you use                           *"
7576 >                echo "*                                                     *"
7577 >                echo "*    CFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
7578 >                echo "*                                 ^^^                 *"
7579 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
7580 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
7581 >                echo "*******************************************************"
7582 >        fi;;
7583 >   *darwin*)
7584 >        if test "$CC" = xlc -o "$CC" = cc; then
7585 >                CFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
7586 >        fi;;
7587 >  esac
7588 >
7589 >  # use default flags for gcc on all systems
7590 >  if test $ac_cv_prog_really_gcc = yes; then
7591 >     CFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
7592 >  fi
7593 >
7594 >  # test for gcc-specific flags:
7595 >  if test $ac_cv_prog_really_gcc = yes; then
7596 >    # -malign-double for x86 systems
7597 >
7598 >
7599 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -malign-double" >&5
7600 > echo $ECHO_N "checking whether ${CC-cc} accepts -malign-double... $ECHO_C" >&6
7601 > if test "${ac_align_double+set}" = set; then
7602 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7603 > else
7604 >  echo 'void f(){}' > conftest.c
7605 > if test -z "`${CC-cc} -malign-double -c conftest.c 2>&1`"; then
7606 >        ac_align_double=yes
7607 > else
7608 >        ac_align_double=no
7609 > fi
7610 > rm -f conftest*
7611 >
7612 > fi
7613 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
7614 > echo "${ECHO_T}$ac_align_double" >&6
7615 > if test "$ac_align_double" = yes; then
7616 >        :
7617 >        CFLAGS="$CFLAGS -malign-double"
7618 > else
7619 >        :
7620 >
7621 > fi
7622 >
7623 >    # -fstrict-aliasing for gcc-2.95+
7624 >
7625 >
7626 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -fstrict-aliasing" >&5
7627 > echo $ECHO_N "checking whether ${CC-cc} accepts -fstrict-aliasing... $ECHO_C" >&6
7628 > if test "${ac_fstrict_aliasing+set}" = set; then
7629 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7630 > else
7631 >  echo 'void f(){}' > conftest.c
7632 > if test -z "`${CC-cc} -fstrict-aliasing -c conftest.c 2>&1`"; then
7633 >        ac_fstrict_aliasing=yes
7634 > else
7635 >        ac_fstrict_aliasing=no
7636 > fi
7637 > rm -f conftest*
7638 >
7639 > fi
7640 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
7641 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
7642 > if test "$ac_fstrict_aliasing" = yes; then
7643 >        :
7644 >        CFLAGS="$CFLAGS -fstrict-aliasing"
7645 > else
7646 >        :
7647 >
7648 > fi
7649 >
7650 >  fi
7651 >
7652 >  CPU_FLAGS=""
7653 >  if test $ac_cv_prog_really_gcc = yes; then
7654 >                  case "${host_cpu}" in
7655 >          i586*)
7656 >
7657 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentium" >&5
7658 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentium... $ECHO_C" >&6
7659 > if test "${ac_cpu_pentium+set}" = set; then
7660 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7661 > else
7662 >  echo 'void f(){}' > conftest.c
7663 > if test -z "`${CC-cc} -mcpu=pentium -c conftest.c 2>&1`"; then
7664 >        ac_cpu_pentium=yes
7665 > else
7666 >        ac_cpu_pentium=no
7667 > fi
7668 > rm -f conftest*
7669 >
7670 > fi
7671 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
7672 > echo "${ECHO_T}$ac_cpu_pentium" >&6
7673 > if test "$ac_cpu_pentium" = yes; then
7674 >        :
7675 >        CPU_FLAGS=-mcpu=pentium
7676 > else
7677 >        :
7678 >
7679 >
7680 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentium" >&5
7681 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentium... $ECHO_C" >&6
7682 > if test "${ac_pentium+set}" = set; then
7683 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7684 > else
7685 >  echo 'void f(){}' > conftest.c
7686 > if test -z "`${CC-cc} -mpentium -c conftest.c 2>&1`"; then
7687 >        ac_pentium=yes
7688 > else
7689 >        ac_pentium=no
7690 > fi
7691 > rm -f conftest*
7692 >
7693 > fi
7694 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
7695 > echo "${ECHO_T}$ac_pentium" >&6
7696 > if test "$ac_pentium" = yes; then
7697 >        :
7698 >        CPU_FLAGS=-mpentium
7699 > else
7700 >        :
7701 >
7702 > fi
7703 >
7704 > fi
7705 >
7706 >                  ;;
7707 >          i686*)
7708 >
7709 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=pentiumpro" >&5
7710 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=pentiumpro... $ECHO_C" >&6
7711 > if test "${ac_cpu_pentiumpro+set}" = set; then
7712 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7713 > else
7714 >  echo 'void f(){}' > conftest.c
7715 > if test -z "`${CC-cc} -mcpu=pentiumpro -c conftest.c 2>&1`"; then
7716 >        ac_cpu_pentiumpro=yes
7717 > else
7718 >        ac_cpu_pentiumpro=no
7719 > fi
7720 > rm -f conftest*
7721 >
7722 > fi
7723 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
7724 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
7725 > if test "$ac_cpu_pentiumpro" = yes; then
7726 >        :
7727 >        CPU_FLAGS=-mcpu=pentiumpro
7728 > else
7729 >        :
7730 >
7731 >
7732 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpentiumpro" >&5
7733 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpentiumpro... $ECHO_C" >&6
7734 > if test "${ac_pentiumpro+set}" = set; then
7735 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7736 > else
7737 >  echo 'void f(){}' > conftest.c
7738 > if test -z "`${CC-cc} -mpentiumpro -c conftest.c 2>&1`"; then
7739 >        ac_pentiumpro=yes
7740 > else
7741 >        ac_pentiumpro=no
7742 > fi
7743 > rm -f conftest*
7744 >
7745 > fi
7746 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
7747 > echo "${ECHO_T}$ac_pentiumpro" >&6
7748 > if test "$ac_pentiumpro" = yes; then
7749 >        :
7750 >        CPU_FLAGS=-mpentiumpro
7751 > else
7752 >        :
7753 >
7754 > fi
7755 >
7756 > fi
7757 >
7758 >                  ;;
7759 >          powerpc*)
7760 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
7761 >                is60x=`echo $cputype | egrep "^600-9e?$"`
7762 >                if test -n "$is60x"; then
7763 >
7764 >
7765 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=$cputype" >&5
7766 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=$cputype... $ECHO_C" >&6
7767 > if test "${ac_m_cpu_60x+set}" = set; then
7768 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7769 > else
7770 >  echo 'void f(){}' > conftest.c
7771 > if test -z "`${CC-cc} -mcpu=$cputype -c conftest.c 2>&1`"; then
7772 >        ac_m_cpu_60x=yes
7773 > else
7774 >        ac_m_cpu_60x=no
7775 > fi
7776 > rm -f conftest*
7777 >
7778 > fi
7779 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
7780 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
7781 > if test "$ac_m_cpu_60x" = yes; then
7782 >        :
7783 >        CPU_FLAGS=-mcpu=$cputype
7784 > else
7785 >        :
7786 >
7787 > fi
7788 >
7789 >                elif test "$cputype" = 750; then
7790 >
7791 >
7792 > echo "$as_me:$LINENO: checking whether we are using gcc 2.95 or later" >&5
7793 > echo $ECHO_N "checking whether we are using gcc 2.95 or later... $ECHO_C" >&6
7794 > if test "${ac_cv_prog_gcc_2_95+set}" = set; then
7795 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7796 > else
7797 >
7798 > cat > conftest.c <<EOF
7799 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
7800 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
7801 >     yes;
7802 > #  endif
7803 > #endif
7804 > EOF
7805 > if { ac_try='${CC-cc} -E conftest.c'
7806 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807 >  (eval $ac_try) 2>&5
7808 >  ac_status=$?
7809 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7811 >  ac_cv_prog_gcc_2_95=yes
7812 > else
7813 >  ac_cv_prog_gcc_2_95=no
7814 > fi
7815 >
7816 > fi
7817 > echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_2_95" >&5
7818 > echo "${ECHO_T}$ac_cv_prog_gcc_2_95" >&6
7819 > if test "$ac_cv_prog_gcc_2_95" = yes; then
7820 >        :
7821 >
7822 >
7823 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=750" >&5
7824 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=750... $ECHO_C" >&6
7825 > if test "${ac_m_cpu_750+set}" = set; then
7826 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7827 > else
7828 >  echo 'void f(){}' > conftest.c
7829 > if test -z "`${CC-cc} -mcpu=750 -c conftest.c 2>&1`"; then
7830 >        ac_m_cpu_750=yes
7831 > else
7832 >        ac_m_cpu_750=no
7833 > fi
7834 > rm -f conftest*
7835 >
7836 > fi
7837 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
7838 > echo "${ECHO_T}$ac_m_cpu_750" >&6
7839 > if test "$ac_m_cpu_750" = yes; then
7840 >        :
7841 >        CPU_FLAGS=-mcpu=750
7842 > else
7843 >        :
7844 >
7845 > fi
7846 >
7847 > else
7848 >        :
7849 >
7850 > fi
7851 >
7852 >                fi
7853 >                if test -z "$CPU_FLAGS"; then
7854 >
7855 >
7856 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mcpu=powerpc" >&5
7857 > echo $ECHO_N "checking whether ${CC-cc} accepts -mcpu=powerpc... $ECHO_C" >&6
7858 > if test "${ac_m_cpu_powerpc+set}" = set; then
7859 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7860 > else
7861 >  echo 'void f(){}' > conftest.c
7862 > if test -z "`${CC-cc} -mcpu=powerpc -c conftest.c 2>&1`"; then
7863 >        ac_m_cpu_powerpc=yes
7864 > else
7865 >        ac_m_cpu_powerpc=no
7866 > fi
7867 > rm -f conftest*
7868 >
7869 > fi
7870 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
7871 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
7872 > if test "$ac_m_cpu_powerpc" = yes; then
7873 >        :
7874 >        CPU_FLAGS=-mcpu=powerpc
7875 > else
7876 >        :
7877 >
7878 > fi
7879 >
7880 >                fi
7881 >                if test -z "$CPU_FLAGS"; then
7882 >
7883 >
7884 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts -mpowerpc" >&5
7885 > echo $ECHO_N "checking whether ${CC-cc} accepts -mpowerpc... $ECHO_C" >&6
7886 > if test "${ac_m_powerpc+set}" = set; then
7887 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7888 > else
7889 >  echo 'void f(){}' > conftest.c
7890 > if test -z "`${CC-cc} -mpowerpc -c conftest.c 2>&1`"; then
7891 >        ac_m_powerpc=yes
7892 > else
7893 >        ac_m_powerpc=no
7894 > fi
7895 > rm -f conftest*
7896 >
7897 > fi
7898 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
7899 > echo "${ECHO_T}$ac_m_powerpc" >&6
7900 > if test "$ac_m_powerpc" = yes; then
7901 >        :
7902 >        CPU_FLAGS=-mpowerpc
7903 > else
7904 >        :
7905 >
7906 > fi
7907 >
7908 >                fi
7909 >          esac
7910 >  fi
7911 >
7912 >  if test -n "$CPU_FLAGS"; then
7913 >        CFLAGS="$CFLAGS $CPU_FLAGS"
7914 >  fi
7915 >
7916 >  if test -z "$CFLAGS"; then
7917 >        echo ""
7918 >        echo "********************************************************"
7919 >        echo "* WARNING: Don't know the best CFLAGS for this system  *"
7920 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
7921 >        echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
7922 >        echo "********************************************************"
7923 >        echo ""
7924 >        CFLAGS="-O3"
7925 >  fi
7926 >
7927 >
7928 >
7929 > echo "$as_me:$LINENO: checking whether ${CC-cc} accepts ${CFLAGS}" >&5
7930 > echo $ECHO_N "checking whether ${CC-cc} accepts ${CFLAGS}... $ECHO_C" >&6
7931 > if test "${ac_guessed_cflags+set}" = set; then
7932 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7933 > else
7934 >  echo 'void f(){}' > conftest.c
7935 > if test -z "`${CC-cc} ${CFLAGS} -c conftest.c 2>&1`"; then
7936 >        ac_guessed_cflags=yes
7937 > else
7938 >        ac_guessed_cflags=no
7939 > fi
7940 > rm -f conftest*
7941 >
7942 > fi
7943 > echo "$as_me:$LINENO: result: $ac_guessed_cflags" >&5
7944 > echo "${ECHO_T}$ac_guessed_cflags" >&6
7945 > if test "$ac_guessed_cflags" = yes; then
7946 >        :
7947 >
7948 > else
7949 >        :
7950 >
7951 >        echo ""
7952 >        echo "********************************************************"
7953 >        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
7954 >        echo "* your compiler.                                       *"
7955 >        echo "* Use  make CFLAGS=..., or edit the top level Makefile *"
7956 >        echo "********************************************************"
7957 >        echo ""
7958 >        CFLAGS=""
7959 >
7960 > fi
7961 >
7962 >
7963 > fi
7964 >
7965 >
7966 >
7967 >
7968 >
7969 >
7970 >
7971 > echo "$as_me:$LINENO: checking whether we are *really* using GNU c++" >&5
7972 > echo $ECHO_N "checking whether we are *really* using GNU c++... $ECHO_C" >&6
7973 > if test "${ac_cv_prog_really_gxx+set}" = set; then
7974 >  echo $ECHO_N "(cached) $ECHO_C" >&6
7975 > else
7976 >
7977 > cat > conftest.cpp <<EOF
7978 > #ifdef __GNUC__
7979 >  #ifndef __INTEL_COMPILER
7980 >     yes;
7981 >  #endif
7982 > #endif
7983 > EOF
7984 > if { ac_try='${CXX-c++} -E conftest.cpp'
7985 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 >  (eval $ac_try) 2>&5
7987 >  ac_status=$?
7988 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
7990 >  ac_cv_prog_really_gxx=yes
7991 > else
7992 >  ac_cv_prog_really_gxx=no
7993 > fi
7994 >
7995 > fi
7996 > echo "$as_me:$LINENO: result: $ac_cv_prog_really_gxx" >&5
7997 > echo "${ECHO_T}$ac_cv_prog_really_gxx" >&6
7998 > if test "$ac_cv_prog_really_gxx" = yes; then
7999 >        :
8000 >
8001 > else
8002 >        :
8003 >
8004 > fi
8005 >
8006 >
8007 > # Try to determine "good" native compiler flags if none specified on command
8008 > # line
8009 > if test "$ac_test_CXXFLAGS" != "set"; then
8010 >  CXXFLAGS=""
8011 >  case "${host_cpu}-${host_os}" in
8012 >
8013 >  *linux*) if test "$CXX" = icc -o "$CXX" = icpc; then
8014 >                    CXXFLAGS="-O"
8015 >                fi;;
8016 >  sparc-solaris2*) if test "$CXX" = CC; then
8017 >                    CXXFLAGS="-native -fast -xO5 -dalign"
8018 >                 fi;;
8019 >   rs6000*-aix*)  if test "$CXX" = xlC; then
8020 >                    CXXFLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8021 >                fi;;
8022 >   powerpc*-aix*)
8023 >        if test "$CXX" = xlC; then
8024 >                CXXFLAGS="-O3 -qarch=ppc -qansialias -w"
8025 >                echo "*******************************************************"
8026 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
8027 >                echo "*  recommended that you use                           *"
8028 >                echo "*                                                     *"
8029 >                echo "*  CXXFLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
8030 >                echo "*                                 ^^^                 *"
8031 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
8032 >                echo "*  PowerPC CPU you have.   For more info, man cc.     *"
8033 >                echo "*******************************************************"
8034 >        fi;;
8035 >   *darwin*)
8036 >        if test "$CXX" = xlc++ -o "$CXX" = xlC ; then
8037 >                CXXFLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto -qaltivec"
8038 >        fi;;
8039 >  esac
8040 >
8041 >  # use default flags for gcc on all systems
8042 >  if test $ac_cv_prog_really_gxx = yes; then
8043 >     CXXFLAGS="-O6 -fomit-frame-pointer -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic"
8044 >  fi
8045 >
8046 >  # test for gcc-specific flags:
8047 >  if test $ac_cv_prog_really_gxx = yes; then
8048 >    # -malign-double for x86 systems
8049 >
8050 >
8051 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -malign-double" >&5
8052 > echo $ECHO_N "checking whether ${CXX-c++} accepts -malign-double... $ECHO_C" >&6
8053 > if test "${ac_align_double+set}" = set; then
8054 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8055 > else
8056 >  echo 'void f(){}' > conftest.cpp
8057 > if test -z "`${CXX-c++} -malign-double -c conftest.cpp 2>&1`"; then
8058 >        ac_align_double=yes
8059 > else
8060 >        ac_align_double=no
8061 > fi
8062 > rm -f conftest*
8063 >
8064 > fi
8065 > echo "$as_me:$LINENO: result: $ac_align_double" >&5
8066 > echo "${ECHO_T}$ac_align_double" >&6
8067 > if test "$ac_align_double" = yes; then
8068 >        :
8069 >        CXXFLAGS="$CXXFLAGS -malign-double"
8070 > else
8071 >        :
8072 >
8073 > fi
8074 >
8075 >    # -fstrict-aliasing for gcc-2.95+
8076 >
8077 >
8078 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -fstrict-aliasing" >&5
8079 > echo $ECHO_N "checking whether ${CXX-c++} accepts -fstrict-aliasing... $ECHO_C" >&6
8080 > if test "${ac_fstrict_aliasing+set}" = set; then
8081 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8082 > else
8083 >  echo 'void f(){}' > conftest.cpp
8084 > if test -z "`${CXX-c++} -fstrict-aliasing -c conftest.cpp 2>&1`"; then
8085 >        ac_fstrict_aliasing=yes
8086 > else
8087 >        ac_fstrict_aliasing=no
8088 > fi
8089 > rm -f conftest*
8090 >
8091 > fi
8092 > echo "$as_me:$LINENO: result: $ac_fstrict_aliasing" >&5
8093 > echo "${ECHO_T}$ac_fstrict_aliasing" >&6
8094 > if test "$ac_fstrict_aliasing" = yes; then
8095 >        :
8096 >        CXXFLAGS="$CXXFLAGS -fstrict-aliasing"
8097 > else
8098 >        :
8099 >
8100 > fi
8101 >
8102 >  fi
8103 >
8104 >  CPU_FLAGS=""
8105 >  if test $ac_cv_prog_really_gxx = yes; then
8106 >                  case "${host_cpu}" in
8107 >          i586*)
8108 >
8109 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentium" >&5
8110 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentium... $ECHO_C" >&6
8111 > if test "${ac_cpu_pentium+set}" = set; then
8112 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8113 > else
8114 >  echo 'void f(){}' > conftest.cpp
8115 > if test -z "`${CXX-c++} -mcpu=pentium -c conftest.cpp 2>&1`"; then
8116 >        ac_cpu_pentium=yes
8117 > else
8118 >        ac_cpu_pentium=no
8119 > fi
8120 > rm -f conftest*
8121 >
8122 > fi
8123 > echo "$as_me:$LINENO: result: $ac_cpu_pentium" >&5
8124 > echo "${ECHO_T}$ac_cpu_pentium" >&6
8125 > if test "$ac_cpu_pentium" = yes; then
8126 >        :
8127 >        CPU_FLAGS=-mcpu=pentium
8128 > else
8129 >        :
8130 >
8131 >
8132 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentium" >&5
8133 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentium... $ECHO_C" >&6
8134 > if test "${ac_pentium+set}" = set; then
8135 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8136 > else
8137 >  echo 'void f(){}' > conftest.cpp
8138 > if test -z "`${CXX-c++} -mpentium -c conftest.cpp 2>&1`"; then
8139 >        ac_pentium=yes
8140 > else
8141 >        ac_pentium=no
8142 > fi
8143 > rm -f conftest*
8144 >
8145 > fi
8146 > echo "$as_me:$LINENO: result: $ac_pentium" >&5
8147 > echo "${ECHO_T}$ac_pentium" >&6
8148 > if test "$ac_pentium" = yes; then
8149 >        :
8150 >        CPU_FLAGS=-mpentium
8151 > else
8152 >        :
8153 >
8154 > fi
8155 >
8156 > fi
8157 >
8158 >                  ;;
8159 >          i686*)
8160 >
8161 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=pentiumpro" >&5
8162 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=pentiumpro... $ECHO_C" >&6
8163 > if test "${ac_cpu_pentiumpro+set}" = set; then
8164 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8165 > else
8166 >  echo 'void f(){}' > conftest.cpp
8167 > if test -z "`${CXX-c++} -mcpu=pentiumpro -c conftest.cpp 2>&1`"; then
8168 >        ac_cpu_pentiumpro=yes
8169 > else
8170 >        ac_cpu_pentiumpro=no
8171 > fi
8172 > rm -f conftest*
8173 >
8174 > fi
8175 > echo "$as_me:$LINENO: result: $ac_cpu_pentiumpro" >&5
8176 > echo "${ECHO_T}$ac_cpu_pentiumpro" >&6
8177 > if test "$ac_cpu_pentiumpro" = yes; then
8178 >        :
8179 >        CPU_FLAGS=-mcpu=pentiumpro
8180 > else
8181 >        :
8182 >
8183 >
8184 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpentiumpro" >&5
8185 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpentiumpro... $ECHO_C" >&6
8186 > if test "${ac_pentiumpro+set}" = set; then
8187 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8188 > else
8189 >  echo 'void f(){}' > conftest.cpp
8190 > if test -z "`${CXX-c++} -mpentiumpro -c conftest.cpp 2>&1`"; then
8191 >        ac_pentiumpro=yes
8192 > else
8193 >        ac_pentiumpro=no
8194 > fi
8195 > rm -f conftest*
8196 >
8197 > fi
8198 > echo "$as_me:$LINENO: result: $ac_pentiumpro" >&5
8199 > echo "${ECHO_T}$ac_pentiumpro" >&6
8200 > if test "$ac_pentiumpro" = yes; then
8201 >        :
8202 >        CPU_FLAGS=-mpentiumpro
8203 > else
8204 >        :
8205 >
8206 > fi
8207 >
8208 > fi
8209 >
8210 >                  ;;
8211 >          powerpc*)
8212 >                cputype=`(grep cpu /proc/cpuinfo | head -1 | cut -d: -f2 | sed 's/ //g') 2> /dev/null`
8213 >                is60x=`echo $cputype | egrep "^600-9e?$"`
8214 >                if test -n "$is60x"; then
8215 >
8216 >
8217 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=$cputype" >&5
8218 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=$cputype... $ECHO_C" >&6
8219 > if test "${ac_m_cpu_60x+set}" = set; then
8220 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8221 > else
8222 >  echo 'void f(){}' > conftest.cpp
8223 > if test -z "`${CXX-c++} -mcpu=$cputype -c conftest.cpp 2>&1`"; then
8224 >        ac_m_cpu_60x=yes
8225 > else
8226 >        ac_m_cpu_60x=no
8227 > fi
8228 > rm -f conftest*
8229 >
8230 > fi
8231 > echo "$as_me:$LINENO: result: $ac_m_cpu_60x" >&5
8232 > echo "${ECHO_T}$ac_m_cpu_60x" >&6
8233 > if test "$ac_m_cpu_60x" = yes; then
8234 >        :
8235 >        CPU_FLAGS=-mcpu=$cputype
8236 > else
8237 >        :
8238 >
8239 > fi
8240 >
8241 >                elif test "$cputype" = 750; then
8242 >
8243 >
8244 > echo "$as_me:$LINENO: checking whether we are using g++ 2.95 or later" >&5
8245 > echo $ECHO_N "checking whether we are using g++ 2.95 or later... $ECHO_C" >&6
8246 > if test "${ac_cv_prog_gxx_2_95+set}" = set; then
8247 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8248 > else
8249 >
8250 > cat > conftest.cpp <<EOF
8251 > #ifdef __GNUC__ && !defined (__INTEL_COMPILER)
8252 > #  if (__GNUC__ > 2) || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
8253 >     yes;
8254 > #  endif
8255 > #endif
8256 > EOF
8257 > if { ac_try='${CXX-c++} -E conftest.cpp'
8258 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 >  (eval $ac_try) 2>&5
8260 >  ac_status=$?
8261 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 >  (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
8263 >  ac_cv_prog_gxx_2_95=yes
8264 > else
8265 >  ac_cv_prog_gxx_2_95=no
8266 > fi
8267 >
8268 > fi
8269 > echo "$as_me:$LINENO: result: $ac_cv_prog_gxx_2_95" >&5
8270 > echo "${ECHO_T}$ac_cv_prog_gxx_2_95" >&6
8271 > if test "$ac_cv_prog_gxx_2_95" = yes; then
8272 >        :
8273 >
8274 >
8275 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=750" >&5
8276 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=750... $ECHO_C" >&6
8277 > if test "${ac_m_cpu_750+set}" = set; then
8278 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8279 > else
8280 >  echo 'void f(){}' > conftest.cpp
8281 > if test -z "`${CXX-c++} -mcpu=750 -c conftest.cpp 2>&1`"; then
8282 >        ac_m_cpu_750=yes
8283 > else
8284 >        ac_m_cpu_750=no
8285 > fi
8286 > rm -f conftest*
8287 >
8288 > fi
8289 > echo "$as_me:$LINENO: result: $ac_m_cpu_750" >&5
8290 > echo "${ECHO_T}$ac_m_cpu_750" >&6
8291 > if test "$ac_m_cpu_750" = yes; then
8292 >        :
8293 >        CPU_FLAGS=-mcpu=750
8294 > else
8295 >        :
8296 >
8297 > fi
8298 >
8299 > else
8300 >        :
8301 >
8302 > fi
8303 >
8304 >                fi
8305 >                if test -z "$CPU_FLAGS"; then
8306 >
8307 >
8308 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mcpu=powerpc" >&5
8309 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mcpu=powerpc... $ECHO_C" >&6
8310 > if test "${ac_m_cpu_powerpc+set}" = set; then
8311 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8312 > else
8313 >  echo 'void f(){}' > conftest.cpp
8314 > if test -z "`${CXX-c++} -mcpu=powerpc -c conftest.cpp 2>&1`"; then
8315 >        ac_m_cpu_powerpc=yes
8316 > else
8317 >        ac_m_cpu_powerpc=no
8318 > fi
8319 > rm -f conftest*
8320 >
8321 > fi
8322 > echo "$as_me:$LINENO: result: $ac_m_cpu_powerpc" >&5
8323 > echo "${ECHO_T}$ac_m_cpu_powerpc" >&6
8324 > if test "$ac_m_cpu_powerpc" = yes; then
8325 >        :
8326 >        CPU_FLAGS=-mcpu=powerpc
8327 > else
8328 >        :
8329 >
8330 > fi
8331 >
8332 >                fi
8333 >                if test -z "$CPU_FLAGS"; then
8334 >
8335 >
8336 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts -mpowerpc" >&5
8337 > echo $ECHO_N "checking whether ${CXX-c++} accepts -mpowerpc... $ECHO_C" >&6
8338 > if test "${ac_m_powerpc+set}" = set; then
8339 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8340 > else
8341 >  echo 'void f(){}' > conftest.cpp
8342 > if test -z "`${CXX-c++} -mpowerpc -c conftest.cpp 2>&1`"; then
8343 >        ac_m_powerpc=yes
8344 > else
8345 >        ac_m_powerpc=no
8346 > fi
8347 > rm -f conftest*
8348 >
8349 > fi
8350 > echo "$as_me:$LINENO: result: $ac_m_powerpc" >&5
8351 > echo "${ECHO_T}$ac_m_powerpc" >&6
8352 > if test "$ac_m_powerpc" = yes; then
8353 >        :
8354 >        CPU_FLAGS=-mpowerpc
8355 > else
8356 >        :
8357 >
8358 > fi
8359 >
8360 >                fi
8361 >          esac
8362 >  fi
8363 >
8364 >  if test -n "$CPU_FLAGS"; then
8365 >        CXXFLAGS="$CXXFLAGS $CPU_FLAGS"
8366 >  fi
8367 >
8368 >  if test -z "$CXXFLAGS"; then
8369 >        echo ""
8370 >        echo "**********************************************************"
8371 >        echo "* WARNING: Don't know the best CXXFLAGS for this system  *"
8372 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
8373 >        echo "* (otherwise, a default of CXXFLAGS=-O3 will be used)    *"
8374 >        echo "**********************************************************"
8375 >        echo ""
8376 >        CXXFLAGS="-O3"
8377 >  fi
8378 >
8379 >
8380 >
8381 > echo "$as_me:$LINENO: checking whether ${CXX-c++} accepts ${CXXFLAGS}" >&5
8382 > echo $ECHO_N "checking whether ${CXX-c++} accepts ${CXXFLAGS}... $ECHO_C" >&6
8383 > if test "${ac_guessed_cxxflags+set}" = set; then
8384 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8385 > else
8386 >  echo 'void f(){}' > conftest.cpp
8387 > if test -z "`${CXX-c++} ${CXXFLAGS} -c conftest.cpp 2>&1`"; then
8388 >        ac_guessed_cxxflags=yes
8389 > else
8390 >        ac_guessed_cxxflags=no
8391 > fi
8392 > rm -f conftest*
8393 >
8394 > fi
8395 > echo "$as_me:$LINENO: result: $ac_guessed_cxxflags" >&5
8396 > echo "${ECHO_T}$ac_guessed_cxxflags" >&6
8397 > if test "$ac_guessed_cxxflags" = yes; then
8398 >        :
8399 >
8400 > else
8401 >        :
8402 >
8403 >        echo ""
8404 >        echo "**********************************************************"
8405 >        echo "* WARNING: The guessed CXXFLAGS don't seem to work with  *"
8406 >        echo "* your compiler.                                         *"
8407 >        echo "* Use  make CXXFLAGS=..., or edit the top level Makefile *"
8408 >        echo "**********************************************************"
8409 >        echo ""
8410 >        CXXFLAGS=""
8411 >
8412 > fi
8413 >
8414 >
8415 > fi
8416 >
8417 >
8418 >
8419 >
8420 >
8421 > # Try to determine "good" native compiler flags if none specified on command
8422 > # line
8423 >
8424 > if test x"$F90FLAGS" = x ; then
8425 >  F90FLAGS=""
8426 >  case "${host_cpu}-${host_os}" in
8427 >
8428 >  *linux*) if test "$F90" = ifc -o "$F90" = ifort; then
8429 >                    F90FLAGS="-O"
8430 >                fi;;
8431 >   rs6000*-aix*)  if test "$F90" = xlf90 -o "$F90" = f90; then
8432 >                    F90FLAGS="-O3 -qarch=pwrx -qtune=pwrx -qansialias -w"
8433 >                fi;;
8434 >   powerpc*-aix*)
8435 >        if test "$F90" = f90 -o "$F90" = xlf90; then
8436 >                F90FLAGS="-O3 -qarch=ppc -qansialias -w"
8437 >                echo "*******************************************************"
8438 >                echo "*  You have AIX on an unknown powerpc system.  It is  *"
8439 >                echo "*  recommended that you use                           *"
8440 >                echo "*                                                     *"
8441 >                echo "*  F90FLAGS=-O3 -qarch=ppc -qtune=xxx -qansialias -w  *"
8442 >                echo "*                                 ^^^                 *"
8443 >                echo "*  where xxx is 601, 603, 604, or whatever kind of    *"
8444 >                echo "*  PowerPC CPU you have.   For more info, man xlf.    *"
8445 >                echo "*******************************************************"
8446 >        fi;;
8447 >   *darwin*)
8448 >        if test "$F90" = f90 -o "$F90" = xlf90 -o "$F90" = xlf95; then
8449 >                F90FLAGS="-qthreaded -O -qtune=auto -qarch=auto -qunroll=auto"
8450 >        fi;;
8451 >  esac
8452 >
8453 >  if test -n "$CPU_FLAGS"; then
8454 >        F90FLAGS="$F90FLAGS $CPU_FLAGS"
8455 >  fi
8456 >
8457 >  if test -z "$F90FLAGS"; then
8458 >        echo ""
8459 >        echo "**********************************************************"
8460 >        echo "* WARNING: Don't know the best F90FLAGS for this system  *"
8461 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
8462 >        echo "* (otherwise, a default of F90FLAGS=-O3 will be used)    *"
8463 >        echo "**********************************************************"
8464 >        echo ""
8465 >        F90FLAGS="-O3"
8466 >  fi
8467 >
8468 >
8469 > echo "$as_me:$LINENO: checking whether ${F90-f90} accepts ${F90FLAGS}" >&5
8470 > echo $ECHO_N "checking whether ${F90-f90} accepts ${F90FLAGS}... $ECHO_C" >&6
8471 > if test "${ac_guessed_f90flags+set}" = set; then
8472 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8473 > else
8474 >
8475 >
8476 >
8477 > ac_ext=f90
8478 > ac_compile='$F90 -c $F90FLAGS conftest.$ac_ext >&5'
8479 > ac_link='$F90 -o conftest$ac_exeext $F90FLAGS $LD90FLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8480 > ac_compiler_gnu=$ac_cv_f90_compiler_gnu
8481 >
8482 > echo 'program main' > conftest.$ac_ext
8483 > echo 'end program main' >> conftest.$ac_ext
8484 > ac_compile='${F90-f90} -c ${F90FLAGS} $F90FLAGS conftest.$ac_ext 1>&5'
8485 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8486 >  (eval $ac_compile) 2>&5
8487 >  ac_status=$?
8488 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 >  (exit $ac_status); }; then
8490 >        ac_guessed_f90flags=yes
8491 > else
8492 >        ac_guessed_f90flags=no
8493 > fi
8494 > rm -f conftest*
8495 > ac_ext=c
8496 > ac_cpp='$CPP $CPPFLAGS'
8497 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
8500 >
8501 >
8502 > fi
8503 > echo "$as_me:$LINENO: result: $ac_guessed_f90flags" >&5
8504 > echo "${ECHO_T}$ac_guessed_f90flags" >&6
8505 > if test "$ac_guessed_f90flags" = yes; then
8506 >        :
8507 >
8508 > else
8509 >        :
8510 >
8511 >        echo ""
8512 >        echo "**********************************************************"
8513 >        echo "* WARNING: The guessed F90FLAGS don't seem to work with  *"
8514 >        echo "* your compiler.                                         *"
8515 >        echo "* Use  make F90FLAGS=..., or edit the top level Makefile *"
8516 >        echo "**********************************************************"
8517 >        echo ""
8518 >        F90FLAGS=""
8519 >
8520 > fi
8521 >
8522 >
8523 > fi
8524 >
8525 >     ;;
8526 > esac
8527 >
8528 > # Find a good install program.  We prefer a C program (faster),
8529 > # so one script is as good as another.  But avoid the broken or
8530 > # incompatible versions:
8531 > # SysV /etc/install, /usr/sbin/install
8532 > # SunOS /usr/etc/install
8533 > # IRIX /sbin/install
8534 > # AIX /bin/install
8535 > # AmigaOS /C/install, which installs bootblocks on floppy discs
8536 > # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8537 > # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8538 > # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8539 > # OS/2's system install, which has a completely different semantic
8540 > # ./install, which can be erroneously created by make from ./install.sh.
8541 > echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8542 > echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8543 > if test -z "$INSTALL"; then
8544 > if test "${ac_cv_path_install+set}" = set; then
8545 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8546 > else
8547 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 > for as_dir in $PATH
8549 > do
8550 >  IFS=$as_save_IFS
8551 >  test -z "$as_dir" && as_dir=.
8552 >  # Account for people who put trailing slashes in PATH elements.
8553 > case $as_dir/ in
8554 >  ./ | .// | /cC/* | \
8555 >  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8556 >  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8557 >  /usr/ucb/* ) ;;
8558 >  *)
8559 >    # OSF1 and SCO ODT 3.0 have their own names for install.
8560 >    # Don't use installbsd from OSF since it installs stuff as root
8561 >    # by default.
8562 >    for ac_prog in ginstall scoinst install; do
8563 >      for ac_exec_ext in '' $ac_executable_extensions; do
8564 >        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8565 >          if test $ac_prog = install &&
8566 >            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8567 >            # AIX install.  It has an incompatible calling convention.
8568 >            :
8569 >          elif test $ac_prog = install &&
8570 >            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8571 >            # program-specific install script used by HP pwplus--don't use.
8572 >            :
8573 >          else
8574 >            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8575 >            break 3
8576 >          fi
8577 >        fi
8578 >      done
8579 >    done
8580 >    ;;
8581 > esac
8582 > done
8583 >
8584 >
8585 > fi
8586 >  if test "${ac_cv_path_install+set}" = set; then
8587 >    INSTALL=$ac_cv_path_install
8588 >  else
8589 >    # As a last resort, use the slow shell script.  We don't cache a
8590 >    # path for INSTALL within a source directory, because that will
8591 >    # break other packages using the cache if that directory is
8592 >    # removed, or if the path is relative.
8593 >    INSTALL=$ac_install_sh
8594 >  fi
8595 > fi
8596 > echo "$as_me:$LINENO: result: $INSTALL" >&5
8597 > echo "${ECHO_T}$INSTALL" >&6
8598 >
8599 > # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8600 > # It thinks the first close brace ends the variable substitution.
8601 > test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8602 >
8603 > test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8604 >
8605 > test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8606 >
8607 > echo "$as_me:$LINENO: checking whether ln -s works" >&5
8608 > echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8609 > LN_S=$as_ln_s
8610 > if test "$LN_S" = "ln -s"; then
8611 >  echo "$as_me:$LINENO: result: yes" >&5
8612 > echo "${ECHO_T}yes" >&6
8613 > else
8614 >  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8615 > echo "${ECHO_T}no, using $LN_S" >&6
8616 > fi
8617 >
8618 > echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8619 > echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8620 > set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
8621 > if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8622 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8623 > else
8624 >  cat >conftest.make <<\_ACEOF
8625 > all:
8626 >        @echo 'ac_maketemp="$(MAKE)"'
8627 > _ACEOF
8628 > # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8629 > eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8630 > if test -n "$ac_maketemp"; then
8631 >  eval ac_cv_prog_make_${ac_make}_set=yes
8632 > else
8633 >  eval ac_cv_prog_make_${ac_make}_set=no
8634 > fi
8635 > rm -f conftest.make
8636 > fi
8637 > if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8638 >  echo "$as_me:$LINENO: result: yes" >&5
8639 > echo "${ECHO_T}yes" >&6
8640 >  SET_MAKE=
8641 > else
8642 >  echo "$as_me:$LINENO: result: no" >&5
8643 > echo "${ECHO_T}no" >&6
8644 >  SET_MAKE="MAKE=${MAKE-make}"
8645 > fi
8646 >
8647 > if test -n "$ac_tool_prefix"; then
8648 >  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8649 > set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8650 > echo "$as_me:$LINENO: checking for $ac_word" >&5
8651 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8652 > if test "${ac_cv_prog_RANLIB+set}" = set; then
8653 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8654 > else
8655 >  if test -n "$RANLIB"; then
8656 >  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8657 > else
8658 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659 > for as_dir in $PATH
8660 > do
8661 >  IFS=$as_save_IFS
8662 >  test -z "$as_dir" && as_dir=.
8663 >  for ac_exec_ext in '' $ac_executable_extensions; do
8664 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8665 >    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8666 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8667 >    break 2
8668 >  fi
8669 > done
8670 > done
8671 >
8672 > fi
8673 > fi
8674 > RANLIB=$ac_cv_prog_RANLIB
8675 > if test -n "$RANLIB"; then
8676 >  echo "$as_me:$LINENO: result: $RANLIB" >&5
8677 > echo "${ECHO_T}$RANLIB" >&6
8678 > else
8679 >  echo "$as_me:$LINENO: result: no" >&5
8680 > echo "${ECHO_T}no" >&6
8681 > fi
8682 >
8683 > fi
8684 > if test -z "$ac_cv_prog_RANLIB"; then
8685 >  ac_ct_RANLIB=$RANLIB
8686 >  # Extract the first word of "ranlib", so it can be a program name with args.
8687 > set dummy ranlib; ac_word=$2
8688 > echo "$as_me:$LINENO: checking for $ac_word" >&5
8689 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8690 > if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8691 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8692 > else
8693 >  if test -n "$ac_ct_RANLIB"; then
8694 >  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8695 > else
8696 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 > for as_dir in $PATH
8698 > do
8699 >  IFS=$as_save_IFS
8700 >  test -z "$as_dir" && as_dir=.
8701 >  for ac_exec_ext in '' $ac_executable_extensions; do
8702 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 >    ac_cv_prog_ac_ct_RANLIB="ranlib"
8704 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 >    break 2
8706 >  fi
8707 > done
8708 > done
8709 >
8710 >  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8711 > fi
8712 > fi
8713 > ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8714 > if test -n "$ac_ct_RANLIB"; then
8715 >  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8716 > echo "${ECHO_T}$ac_ct_RANLIB" >&6
8717 > else
8718 >  echo "$as_me:$LINENO: result: no" >&5
8719 > echo "${ECHO_T}no" >&6
8720 > fi
8721 >
8722 >  RANLIB=$ac_ct_RANLIB
8723 > else
8724 >  RANLIB="$ac_cv_prog_RANLIB"
8725 > fi
8726 >
8727 > for ac_prog in 'bison -y' byacc
8728 > do
8729 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
8730 > set dummy $ac_prog; ac_word=$2
8731 > echo "$as_me:$LINENO: checking for $ac_word" >&5
8732 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8733 > if test "${ac_cv_prog_YACC+set}" = set; then
8734 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8735 > else
8736 >  if test -n "$YACC"; then
8737 >  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8738 > else
8739 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 > for as_dir in $PATH
8741 > do
8742 >  IFS=$as_save_IFS
8743 >  test -z "$as_dir" && as_dir=.
8744 >  for ac_exec_ext in '' $ac_executable_extensions; do
8745 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8746 >    ac_cv_prog_YACC="$ac_prog"
8747 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8748 >    break 2
8749 >  fi
8750 > done
8751 > done
8752 >
8753 > fi
8754 > fi
8755 > YACC=$ac_cv_prog_YACC
8756 > if test -n "$YACC"; then
8757 >  echo "$as_me:$LINENO: result: $YACC" >&5
8758 > echo "${ECHO_T}$YACC" >&6
8759 > else
8760 >  echo "$as_me:$LINENO: result: no" >&5
8761 > echo "${ECHO_T}no" >&6
8762 > fi
8763 >
8764 >  test -n "$YACC" && break
8765 > done
8766 > test -n "$YACC" || YACC="yacc"
8767 >
8768 > for ac_prog in flex lex
8769 > do
8770 >  # Extract the first word of "$ac_prog", so it can be a program name with args.
8771 > set dummy $ac_prog; ac_word=$2
8772 > echo "$as_me:$LINENO: checking for $ac_word" >&5
8773 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8774 > if test "${ac_cv_prog_LEX+set}" = set; then
8775 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8776 > else
8777 >  if test -n "$LEX"; then
8778 >  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8779 > else
8780 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 > for as_dir in $PATH
8782 > do
8783 >  IFS=$as_save_IFS
8784 >  test -z "$as_dir" && as_dir=.
8785 >  for ac_exec_ext in '' $ac_executable_extensions; do
8786 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8787 >    ac_cv_prog_LEX="$ac_prog"
8788 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 >    break 2
8790 >  fi
8791 > done
8792 > done
8793 >
8794 > fi
8795 > fi
8796 > LEX=$ac_cv_prog_LEX
8797 > if test -n "$LEX"; then
8798 >  echo "$as_me:$LINENO: result: $LEX" >&5
8799 > echo "${ECHO_T}$LEX" >&6
8800 > else
8801 >  echo "$as_me:$LINENO: result: no" >&5
8802 > echo "${ECHO_T}no" >&6
8803 > fi
8804 >
8805 >  test -n "$LEX" && break
8806 > done
8807 > test -n "$LEX" || LEX=":"
8808 >
8809 > if test -z "$LEXLIB"
8810 > then
8811 >  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8812 > echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8813 > if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8814 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8815 > else
8816 >  ac_check_lib_save_LIBS=$LIBS
8817 > LIBS="-lfl  $LIBS"
8818 > cat >conftest.$ac_ext <<_ACEOF
8819 > /* confdefs.h.  */
8820 > _ACEOF
8821 > cat confdefs.h >>conftest.$ac_ext
8822 > cat >>conftest.$ac_ext <<_ACEOF
8823 > /* end confdefs.h.  */
8824 >
8825 > /* Override any gcc2 internal prototype to avoid an error.  */
8826 > #ifdef __cplusplus
8827 > extern "C"
8828 > #endif
8829 > /* We use char because int might match the return type of a gcc2
8830 >   builtin and then its argument prototype would still apply.  */
8831 > char yywrap ();
8832 > int
8833 > main ()
8834 > {
8835 > yywrap ();
8836 >  ;
8837 >  return 0;
8838 > }
8839 > _ACEOF
8840 > rm -f conftest.$ac_objext conftest$ac_exeext
8841 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8842 >  (eval $ac_link) 2>conftest.er1
8843 >  ac_status=$?
8844 >  grep -v '^ *+' conftest.er1 >conftest.err
8845 >  rm -f conftest.er1
8846 >  cat conftest.err >&5
8847 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 >  (exit $ac_status); } &&
8849 >         { ac_try='test -z "$ac_c_werror_flag"
8850 >                         || test ! -s conftest.err'
8851 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 >  (eval $ac_try) 2>&5
8853 >  ac_status=$?
8854 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 >  (exit $ac_status); }; } &&
8856 >         { ac_try='test -s conftest$ac_exeext'
8857 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858 >  (eval $ac_try) 2>&5
8859 >  ac_status=$?
8860 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 >  (exit $ac_status); }; }; then
8862 >  ac_cv_lib_fl_yywrap=yes
8863 > else
8864 >  echo "$as_me: failed program was:" >&5
8865 > sed 's/^/| /' conftest.$ac_ext >&5
8866 >
8867 > ac_cv_lib_fl_yywrap=no
8868 > fi
8869 > rm -f conftest.err conftest.$ac_objext \
8870 >      conftest$ac_exeext conftest.$ac_ext
8871 > LIBS=$ac_check_lib_save_LIBS
8872 > fi
8873 > echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8874 > echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8875 > if test $ac_cv_lib_fl_yywrap = yes; then
8876 >  LEXLIB="-lfl"
8877 > else
8878 >  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8879 > echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8880 > if test "${ac_cv_lib_l_yywrap+set}" = set; then
8881 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8882 > else
8883 >  ac_check_lib_save_LIBS=$LIBS
8884 > LIBS="-ll  $LIBS"
8885 > cat >conftest.$ac_ext <<_ACEOF
8886 > /* confdefs.h.  */
8887 > _ACEOF
8888 > cat confdefs.h >>conftest.$ac_ext
8889 > cat >>conftest.$ac_ext <<_ACEOF
8890 > /* end confdefs.h.  */
8891 >
8892 > /* Override any gcc2 internal prototype to avoid an error.  */
8893 > #ifdef __cplusplus
8894 > extern "C"
8895 > #endif
8896 > /* We use char because int might match the return type of a gcc2
8897 >   builtin and then its argument prototype would still apply.  */
8898 > char yywrap ();
8899 > int
8900 > main ()
8901 > {
8902 > yywrap ();
8903 >  ;
8904 >  return 0;
8905 > }
8906 > _ACEOF
8907 > rm -f conftest.$ac_objext conftest$ac_exeext
8908 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 >  (eval $ac_link) 2>conftest.er1
8910 >  ac_status=$?
8911 >  grep -v '^ *+' conftest.er1 >conftest.err
8912 >  rm -f conftest.er1
8913 >  cat conftest.err >&5
8914 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 >  (exit $ac_status); } &&
8916 >         { ac_try='test -z "$ac_c_werror_flag"
8917 >                         || test ! -s conftest.err'
8918 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 >  (eval $ac_try) 2>&5
8920 >  ac_status=$?
8921 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 >  (exit $ac_status); }; } &&
8923 >         { ac_try='test -s conftest$ac_exeext'
8924 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 >  (eval $ac_try) 2>&5
8926 >  ac_status=$?
8927 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 >  (exit $ac_status); }; }; then
8929 >  ac_cv_lib_l_yywrap=yes
8930 > else
8931 >  echo "$as_me: failed program was:" >&5
8932 > sed 's/^/| /' conftest.$ac_ext >&5
8933 >
8934 > ac_cv_lib_l_yywrap=no
8935 > fi
8936 > rm -f conftest.err conftest.$ac_objext \
8937 >      conftest$ac_exeext conftest.$ac_ext
8938 > LIBS=$ac_check_lib_save_LIBS
8939 > fi
8940 > echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8941 > echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8942 > if test $ac_cv_lib_l_yywrap = yes; then
8943 >  LEXLIB="-ll"
8944 > fi
8945 >
8946 > fi
8947 >
8948 > fi
8949 >
8950 > if test "x$LEX" != "x:"; then
8951 >  echo "$as_me:$LINENO: checking lex output file root" >&5
8952 > echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8953 > if test "${ac_cv_prog_lex_root+set}" = set; then
8954 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8955 > else
8956 >  # The minimal lex program is just a single line: %%.  But some broken lexes
8957 > # (Solaris, I think it was) want two %% lines, so accommodate them.
8958 > cat >conftest.l <<_ACEOF
8959 > %%
8960 > %%
8961 > _ACEOF
8962 > { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8963 >  (eval $LEX conftest.l) 2>&5
8964 >  ac_status=$?
8965 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 >  (exit $ac_status); }
8967 > if test -f lex.yy.c; then
8968 >  ac_cv_prog_lex_root=lex.yy
8969 > elif test -f lexyy.c; then
8970 >  ac_cv_prog_lex_root=lexyy
8971 > else
8972 >  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8973 > echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8974 >   { (exit 1); exit 1; }; }
8975 > fi
8976 > fi
8977 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8978 > echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8979 > rm -f conftest.l
8980 > LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8981 >
8982 > echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8983 > echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8984 > if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8985 >  echo $ECHO_N "(cached) $ECHO_C" >&6
8986 > else
8987 >  # POSIX says lex can declare yytext either as a pointer or an array; the
8988 > # default is implementation-dependent. Figure out which it is, since
8989 > # not all implementations provide the %pointer and %array declarations.
8990 > ac_cv_prog_lex_yytext_pointer=no
8991 > echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8992 > ac_save_LIBS=$LIBS
8993 > LIBS="$LIBS $LEXLIB"
8994 > cat >conftest.$ac_ext <<_ACEOF
8995 > `cat $LEX_OUTPUT_ROOT.c`
8996 > _ACEOF
8997 > rm -f conftest.$ac_objext conftest$ac_exeext
8998 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 >  (eval $ac_link) 2>conftest.er1
9000 >  ac_status=$?
9001 >  grep -v '^ *+' conftest.er1 >conftest.err
9002 >  rm -f conftest.er1
9003 >  cat conftest.err >&5
9004 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 >  (exit $ac_status); } &&
9006 >         { ac_try='test -z "$ac_c_werror_flag"
9007 >                         || test ! -s conftest.err'
9008 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9009 >  (eval $ac_try) 2>&5
9010 >  ac_status=$?
9011 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 >  (exit $ac_status); }; } &&
9013 >         { ac_try='test -s conftest$ac_exeext'
9014 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9015 >  (eval $ac_try) 2>&5
9016 >  ac_status=$?
9017 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018 >  (exit $ac_status); }; }; then
9019 >  ac_cv_prog_lex_yytext_pointer=yes
9020 > else
9021 >  echo "$as_me: failed program was:" >&5
9022 > sed 's/^/| /' conftest.$ac_ext >&5
9023 >
9024 > fi
9025 > rm -f conftest.err conftest.$ac_objext \
9026 >      conftest$ac_exeext conftest.$ac_ext
9027 > LIBS=$ac_save_LIBS
9028 > rm -f "${LEX_OUTPUT_ROOT}.c"
9029 >
9030 > fi
9031 > echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9032 > echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9033 > if test $ac_cv_prog_lex_yytext_pointer = yes; then
9034 >
9035 > cat >>confdefs.h <<\_ACEOF
9036 > #define YYTEXT_POINTER 1
9037 > _ACEOF
9038 >
9039 > fi
9040 >
9041 > fi
9042 >
9043 >   # Extract the first word of "perl", so it can be a program name with args.
9044 > set dummy perl; ac_word=$2
9045 > echo "$as_me:$LINENO: checking for $ac_word" >&5
9046 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047 > if test "${ac_cv_path_PERLINTERP+set}" = set; then
9048 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9049 > else
9050 >  case $PERLINTERP in
9051 >  [\\/]* | ?:[\\/]*)
9052 >  ac_cv_path_PERLINTERP="$PERLINTERP" # Let the user override the test with a path.
9053 >  ;;
9054 >  *)
9055 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9056 > for as_dir in $PATH
9057 > do
9058 >  IFS=$as_save_IFS
9059 >  test -z "$as_dir" && as_dir=.
9060 >  for ac_exec_ext in '' $ac_executable_extensions; do
9061 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9062 >    ac_cv_path_PERLINTERP="$as_dir/$ac_word$ac_exec_ext"
9063 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9064 >    break 2
9065 >  fi
9066 > done
9067 > done
9068 >
9069 >  test -z "$ac_cv_path_PERLINTERP" && ac_cv_path_PERLINTERP="perl"
9070 >  ;;
9071 > esac
9072 > fi
9073 > PERLINTERP=$ac_cv_path_PERLINTERP
9074 >
9075 > if test -n "$PERLINTERP"; then
9076 >  echo "$as_me:$LINENO: result: $PERLINTERP" >&5
9077 > echo "${ECHO_T}$PERLINTERP" >&6
9078 > else
9079 >  echo "$as_me:$LINENO: result: no" >&5
9080 > echo "${ECHO_T}no" >&6
9081 > fi
9082 >
9083 >   ac_cv_path_perlinterp="$PERLINTERP"
9084 >   _sHpB='#!'
9085 >
9086 >
9087 > # Check whether --with-perl-shebang or --without-perl-shebang was given.
9088 > if test "${with_perl_shebang+set}" = set; then
9089 >  withval="$with_perl_shebang"
9090 >  opt_perl_shebang="$withval"
9091 > else
9092 >                opt_perl_shebang="not_set"
9093 > fi;
9094 >   echo "$as_me:$LINENO: checking whether explicit instead of detected sharpbang is to be used" >&5
9095 > echo $ECHO_N "checking whether explicit instead of detected sharpbang is to be used... $ECHO_C" >&6
9096 > if test "${ax_cv_opt_perl_shebang+set}" = set; then
9097 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9098 > else
9099 >   case "$opt_perl_shebang" in
9100 >                      not_set  ) ax_cv_opt_perl_shebang=''
9101 >                               ;;
9102 >                         *     )
9103 >        ax_cv_opt_perl_shebang=`echo "$opt_perl_shebang" | sed -e's|^#!\s*\(.*\)$|\1|'`
9104 >                    esac
9105 >
9106 > fi
9107 > echo "$as_me:$LINENO: result: $ax_cv_opt_perl_shebang" >&5
9108 > echo "${ECHO_T}$ax_cv_opt_perl_shebang" >&6
9109 >   if test "A$ax_cv_opt_perl_shebang" != "A"
9110 >     then
9111 >       ac_cv_sys_kernshrpbang_perl="$ax_cv_opt_perl_shebang"
9112 >       PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9113 >              { echo "$as_me:$LINENO: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&5
9114 > echo "$as_me: OK - PERL_SHEBANG is $_sHpB$PERL_SHEBANG." >&6;}
9115 >
9116 > # Automatic detection of sharpbang formula starts here
9117 >     else
9118 >   _somian_shbangperl=`$PERLINTERP -V:startperl`
9119 >   negclass="[^']"; # must leave this comment:  m4 will remove the outer brackets for us, heheh
9120 >   echo "$as_me:$LINENO: checking for kernel sharpbang invocation to start perl" >&5
9121 > echo $ECHO_N "checking for kernel sharpbang invocation to start perl... $ECHO_C" >&6
9122 > if test "${ac_cv_sys_kernshrpbang_perl+set}" = set; then
9123 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9124 > else
9125 >  _somian_kspb_perl=`echo "$_somian_shbangperl" | sed -ne"s|.*='\($negclass*\)';$|\1|p"`
9126 >        if test "x$_somian_kspb_perl" == x
9127 >          then _somian_ksbp_warn_empty='durnit'
9128 >          else
9129 >          case "A$_somian_kspb_perl" in
9130 >                 A#!*perl* )
9131 >           ac_cv_sys_kernshrpbang_perl=`echo "$_somian_kspb_perl" | sed -e's|#!\(.*\)$|\1|'`
9132 >                        ;;
9133 >                     A*    )  _somian_ksbp_warn_defau='trouble'
9134 >                              ac_cv_sys_kernshrpbang_perl="$PERLINTERP"
9135 >          esac
9136 >        fi
9137 >
9138 > fi
9139 > echo "$as_me:$LINENO: result: $ac_cv_sys_kernshrpbang_perl" >&5
9140 > echo "${ECHO_T}$ac_cv_sys_kernshrpbang_perl" >&6
9141 > # The above prints Checking ... result message to user.
9142 >   PERL_SHEBANG="$ac_cv_sys_kernshrpbang_perl"
9143 >
9144 >    if test A${_somian_ksbp_warn_empty+set} == Aset
9145 >      then   { echo "$as_me:$LINENO: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&5
9146 > echo "$as_me: WARNING: In last check, doing $PERLINTERP -V:startperl yielded empty result! That should not happen." >&2;}
9147 >    fi
9148 > # Inform user after printing result value
9149 >    if test A${_somian_ksbp_warn_defau+set} == Aset
9150 >      then { echo "$as_me:$LINENO: Maybe Not good -" >&5
9151 > echo "$as_me: Maybe Not good -" >&6;}
9152 >           { echo "$as_me:$LINENO: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&5
9153 > echo "$as_me: WARNING: In last check perl's Config query did not work so we bunted: $_sHpB$PERLINTERP" >&2;}
9154 >      else { echo "$as_me:$LINENO: OK Good result - " >&5
9155 > echo "$as_me: OK Good result - " >&6;}
9156 >           { echo "$as_me:$LINENO: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&5
9157 > echo "$as_me: In last check we got a proper-looking answer from perl's Config: $_somian_shbangperl" >&6;}
9158 >    fi
9159 >  fi
9160 >
9161 > # Extract the first word of "ar", so it can be a program name with args.
9162 > set dummy ar; ac_word=$2
9163 > echo "$as_me:$LINENO: checking for $ac_word" >&5
9164 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9165 > if test "${ac_cv_prog_AR+set}" = set; then
9166 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9167 > else
9168 >  if test -n "$AR"; then
9169 >  ac_cv_prog_AR="$AR" # Let the user override the test.
9170 > else
9171 > as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9172 > for as_dir in $PATH
9173 > do
9174 >  IFS=$as_save_IFS
9175 >  test -z "$as_dir" && as_dir=.
9176 >  for ac_exec_ext in '' $ac_executable_extensions; do
9177 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9178 >    ac_cv_prog_AR="ar"
9179 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 >    break 2
9181 >  fi
9182 > done
9183 > done
9184 >
9185 >  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="NONE"
9186 > fi
9187 > fi
9188 > AR=$ac_cv_prog_AR
9189 > if test -n "$AR"; then
9190 >  echo "$as_me:$LINENO: result: $AR" >&5
9191 > echo "${ECHO_T}$AR" >&6
9192 > else
9193 >  echo "$as_me:$LINENO: result: no" >&5
9194 > echo "${ECHO_T}no" >&6
9195 > fi
9196 >
9197 > if test "$AR" = "NONE"; then
9198 >  { { echo "$as_me:$LINENO: error: --> Can't find \`ar'!" >&5
9199 > echo "$as_me: error: --> Can't find \`ar'!" >&2;}
9200 >   { (exit 1); exit 1; }; }
9201 >  cat >confcache <<\_ACEOF
9202 > # This file is a shell script that caches the results of configure
9203 > # tests run on this system so they can be shared between configure
9204 > # scripts and configure runs, see configure's option --config-cache.
9205 > # It is not useful on other systems.  If it contains results you don't
9206 > # want to keep, you may remove or edit it.
9207 > #
9208 > # config.status only pays attention to the cache file if you give it
9209 > # the --recheck option to rerun configure.
9210 > #
9211 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
9212 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
9213 > # following values.
9214 >
9215 > _ACEOF
9216 >
9217 > # The following way of writing the cache mishandles newlines in values,
9218 > # but we know of no workaround that is simple, portable, and efficient.
9219 > # So, don't put newlines in cache variables' values.
9220 > # Ultrix sh set writes to stderr and can't be redirected directly,
9221 > # and sets the high bit in the cache file unless we assign to the vars.
9222 > {
9223 >  (set) 2>&1 |
9224 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
9225 >    *ac_space=\ *)
9226 >      # `set' does not quote correctly, so add quotes (double-quote
9227 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
9228 >      sed -n \
9229 >        "s/'/'\\\\''/g;
9230 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9231 >      ;;
9232 >    *)
9233 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
9234 >      sed -n \
9235 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9236 >      ;;
9237 >    esac;
9238 > } |
9239 >  sed '
9240 >     t clear
9241 >     : clear
9242 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9243 >     t end
9244 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9245 >     : end' >>confcache
9246 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
9247 >  if test -w $cache_file; then
9248 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9249 >    cat confcache >$cache_file
9250 >  else
9251 >    echo "not updating unwritable cache $cache_file"
9252 >  fi
9253 > fi
9254 > rm -f confcache
9255 >  exit 1
9256 > fi
9257 >
9258 > # Extract the first word of "ps", so it can be a program name with args.
9259 > set dummy ps; ac_word=$2
9260 > echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9262 > if test "${ac_cv_path_PS+set}" = set; then
9263 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9264 > else
9265 >  case $PS in
9266 >  [\\/]* | ?:[\\/]*)
9267 >  ac_cv_path_PS="$PS" # Let the user override the test with a path.
9268 >  ;;
9269 >  *)
9270 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 > for as_dir in $PATH
9272 > do
9273 >  IFS=$as_save_IFS
9274 >  test -z "$as_dir" && as_dir=.
9275 >  for ac_exec_ext in '' $ac_executable_extensions; do
9276 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 >    ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
9278 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 >    break 2
9280 >  fi
9281 > done
9282 > done
9283 >
9284 >  ;;
9285 > esac
9286 > fi
9287 > PS=$ac_cv_path_PS
9288 >
9289 > if test -n "$PS"; then
9290 >  echo "$as_me:$LINENO: result: $PS" >&5
9291 > echo "${ECHO_T}$PS" >&6
9292 > else
9293 >  echo "$as_me:$LINENO: result: no" >&5
9294 > echo "${ECHO_T}no" >&6
9295 > fi
9296 >
9297 > echo "$as_me:$LINENO: checking for POSIX or BSD ps syntax" >&5
9298 > echo $ECHO_N "checking for POSIX or BSD ps syntax... $ECHO_C" >&6
9299 > if test "${ac_cv_prog_ps_syntax+set}" = set; then
9300 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9301 > else
9302 >
9303 >        if $PS ax -o rss > /dev/null 2>&1; then
9304 >                ac_cv_prog_ps_ax=yes
9305 >        else
9306 >                ac_cv_prog_ps_ax=no
9307 >        fi
9308 >        if $PS -ef -o rss > /dev/null 2>&1; then
9309 >                ac_cv_prog_ps_ef=yes
9310 >        else
9311 >                ac_cv_prog_ps_ef=no
9312 >        fi
9313 >        if test "$ac_cv_prog_ps_ax" = yes; then
9314 >                ac_cv_prog_ps_syntax=BSD
9315 >        else
9316 >                if test "$ac_cv_prog_ps_ef" = yes; then
9317 >                        ac_cv_prog_ps_syntax=POSIX
9318 >                else
9319 >                        { { echo "$as_me:$LINENO: error: Could not determine ps syntax" >&5
9320 > echo "$as_me: error: Could not determine ps syntax" >&2;}
9321 >   { (exit 1); exit 1; }; }
9322 >                fi
9323 >        fi
9324 >
9325 > fi
9326 > echo "$as_me:$LINENO: result: $ac_cv_prog_ps_syntax" >&5
9327 > echo "${ECHO_T}$ac_cv_prog_ps_syntax" >&6
9328 >
9329 >
9330 > cat >>confdefs.h <<_ACEOF
9331 > #define PSCOMMAND $PS
9332 > _ACEOF
9333 >
9334 >
9335 > cat >>confdefs.h <<\_ACEOF
9336 > #define OBAPI
9337 > _ACEOF
9338 >
9339 >
9340 >
9341 > if test "$ac_cv_prog_ps_syntax" = BSD; then
9342 >  cat >>confdefs.h <<\_ACEOF
9343 > #define PSTYPE_IS_BSD 1
9344 > _ACEOF
9345 >
9346 > else
9347 >   if test "$ac_cv_prog_ps_syntax" = POSIX; then
9348 >       cat >>confdefs.h <<\_ACEOF
9349 > #define PSTYPE_IS_POSIX 1
9350 > _ACEOF
9351 >
9352 >   else
9353 >       { { echo "$as_me:$LINENO: error: Unknown ps syntax type!" >&5
9354 > echo "$as_me: error: Unknown ps syntax type!" >&2;}
9355 >   { (exit 1); exit 1; }; }
9356 >   fi
9357 > fi
9358 >
9359 >
9360 > # Check whether --with-mpi or --without-mpi was given.
9361 > if test "${with_mpi+set}" = set; then
9362 >  withval="$with_mpi"
9363 >  with_mpi=$withval
9364 > else
9365 >  with_mpi="no"
9366 > fi;
9367 >
9368 > case "x$with_mpi" in
9369 >        xyes | "x")  USE_MPI=yes;;
9370 >        xno) USE_MPI=no ;;
9371 >        *) MPI="$with_mpi"; USE_MPI=yes ;;
9372 > esac
9373 > if test "$USE_MPI" = "yes" -a -z "$with_mpi"; then
9374 >        MPI="/usr/local"
9375 > fi
9376 > if test "$USE_MPI" = "yes"; then
9377 >
9378 >
9379 > # Set variables...
9380 > MPI_LIB_DIR="$MPI/lib"
9381 > MPI_INC_DIR="$MPI/include"
9382 >
9383 >
9384 >
9385 > echo "$as_me:$LINENO: checking for mpi.h" >&5
9386 > echo $ECHO_N "checking for mpi.h... $ECHO_C" >&6
9387 > have_mpi_h=0
9388 > rm -f conftest*
9389 > echo '#include <mpi.h>' > conftest.cc
9390 > if ${CXX} -I${MPI_INC_DIR} -c conftest.cc 2>&1 ; then
9391 >        echo "$as_me:$LINENO: result: yes" >&5
9392 > echo "${ECHO_T}yes" >&6
9393 >        have_mpi_h=1
9394 > else
9395 >        if test -s conftest.out ; then
9396 >                cat conftest.out >> config.log
9397 >        fi
9398 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9399 > echo "${ECHO_T}no! Check MPI include paths" >&6
9400 >        USE_MPI="no"
9401 > fi
9402 > rm -f conftest*
9403 > if test "$have_mpi_h" = 1; then
9404 >
9405 > cat >>confdefs.h <<\_ACEOF
9406 > #define HAVE_MPI_H 1
9407 > _ACEOF
9408 >
9409 > fi
9410 >
9411 > echo "$as_me:$LINENO: checking whether mpif.h is usable" >&5
9412 > echo $ECHO_N "checking whether mpif.h is usable... $ECHO_C" >&6
9413 > have_mpif_h=0
9414 > rm -f conftest*
9415 > cat >conftest.f90 <<EOF
9416 > program main
9417 >   include 'mpif.h'
9418 > end
9419 > EOF
9420 > if $F90 -I$MPI_INC_DIR -c conftest.f90 > conftest.out 2>&1 ; then
9421 >        echo "$as_me:$LINENO: result: yes" >&5
9422 > echo "${ECHO_T}yes" >&6
9423 >        MPI_F90_INC="$MPI_INC_DIR"
9424 >        have_mpif_h=1
9425 > else
9426 >        if test -s conftest.out ; then
9427 >                cat conftest.out >> config.log
9428 >        fi
9429 >        echo "$as_me:$LINENO: result: no! Check MPI include paths" >&5
9430 > echo "${ECHO_T}no! Check MPI include paths" >&6
9431 >        USE_MPI="no"
9432 > fi
9433 > rm -f conftest*
9434 >
9435 > if test "$have_mpif_h" = 1; then
9436 >
9437 > cat >>confdefs.h <<\_ACEOF
9438 > #define HAVE_MPIF_H 1
9439 > _ACEOF
9440 >
9441 > fi
9442 >
9443 > ac_ext=c
9444 > ac_cpp='$CPP $CPPFLAGS'
9445 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9446 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9447 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
9448 >
9449 > ac_save_LDFLAGS=$LDFLAGS
9450 > LDFLAGS="${LDFLAGS} -L${MPI_LIB_DIR} "
9451 >
9452 > if test x = x"$MPI_LIB"; then
9453 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9454 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9455 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9456 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9457 > else
9458 >  ac_check_lib_save_LIBS=$LIBS
9459 > LIBS="-lmpich  $LIBS"
9460 > cat >conftest.$ac_ext <<_ACEOF
9461 > /* confdefs.h.  */
9462 > _ACEOF
9463 > cat confdefs.h >>conftest.$ac_ext
9464 > cat >>conftest.$ac_ext <<_ACEOF
9465 > /* end confdefs.h.  */
9466 >
9467 > /* Override any gcc2 internal prototype to avoid an error.  */
9468 > #ifdef __cplusplus
9469 > extern "C"
9470 > #endif
9471 > /* We use char because int might match the return type of a gcc2
9472 >   builtin and then its argument prototype would still apply.  */
9473 > char MPI_Init ();
9474 > int
9475 > main ()
9476 > {
9477 > MPI_Init ();
9478 >  ;
9479 >  return 0;
9480 > }
9481 > _ACEOF
9482 > rm -f conftest.$ac_objext conftest$ac_exeext
9483 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9484 >  (eval $ac_link) 2>conftest.er1
9485 >  ac_status=$?
9486 >  grep -v '^ *+' conftest.er1 >conftest.err
9487 >  rm -f conftest.er1
9488 >  cat conftest.err >&5
9489 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 >  (exit $ac_status); } &&
9491 >         { ac_try='test -z "$ac_c_werror_flag"
9492 >                         || test ! -s conftest.err'
9493 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 >  (eval $ac_try) 2>&5
9495 >  ac_status=$?
9496 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 >  (exit $ac_status); }; } &&
9498 >         { ac_try='test -s conftest$ac_exeext'
9499 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9500 >  (eval $ac_try) 2>&5
9501 >  ac_status=$?
9502 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 >  (exit $ac_status); }; }; then
9504 >  ac_cv_lib_mpich_MPI_Init=yes
9505 > else
9506 >  echo "$as_me: failed program was:" >&5
9507 > sed 's/^/| /' conftest.$ac_ext >&5
9508 >
9509 > ac_cv_lib_mpich_MPI_Init=no
9510 > fi
9511 > rm -f conftest.err conftest.$ac_objext \
9512 >      conftest$ac_exeext conftest.$ac_ext
9513 > LIBS=$ac_check_lib_save_LIBS
9514 > fi
9515 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9516 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9517 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
9518 >  MPI_LIB="-lmpich"
9519 > fi
9520 >
9521 > fi
9522 > if test x = x"$MPI_LIB"; then
9523 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9524 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9525 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9526 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9527 > else
9528 >  ac_check_lib_save_LIBS=$LIBS
9529 > LIBS="-lmpi  $LIBS"
9530 > cat >conftest.$ac_ext <<_ACEOF
9531 > /* confdefs.h.  */
9532 > _ACEOF
9533 > cat confdefs.h >>conftest.$ac_ext
9534 > cat >>conftest.$ac_ext <<_ACEOF
9535 > /* end confdefs.h.  */
9536 >
9537 > /* Override any gcc2 internal prototype to avoid an error.  */
9538 > #ifdef __cplusplus
9539 > extern "C"
9540 > #endif
9541 > /* We use char because int might match the return type of a gcc2
9542 >   builtin and then its argument prototype would still apply.  */
9543 > char MPI_Init ();
9544 > int
9545 > main ()
9546 > {
9547 > MPI_Init ();
9548 >  ;
9549 >  return 0;
9550 > }
9551 > _ACEOF
9552 > rm -f conftest.$ac_objext conftest$ac_exeext
9553 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 >  (eval $ac_link) 2>conftest.er1
9555 >  ac_status=$?
9556 >  grep -v '^ *+' conftest.er1 >conftest.err
9557 >  rm -f conftest.er1
9558 >  cat conftest.err >&5
9559 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 >  (exit $ac_status); } &&
9561 >         { ac_try='test -z "$ac_c_werror_flag"
9562 >                         || test ! -s conftest.err'
9563 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9564 >  (eval $ac_try) 2>&5
9565 >  ac_status=$?
9566 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 >  (exit $ac_status); }; } &&
9568 >         { ac_try='test -s conftest$ac_exeext'
9569 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 >  (eval $ac_try) 2>&5
9571 >  ac_status=$?
9572 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 >  (exit $ac_status); }; }; then
9574 >  ac_cv_lib_mpi_MPI_Init=yes
9575 > else
9576 >  echo "$as_me: failed program was:" >&5
9577 > sed 's/^/| /' conftest.$ac_ext >&5
9578 >
9579 > ac_cv_lib_mpi_MPI_Init=no
9580 > fi
9581 > rm -f conftest.err conftest.$ac_objext \
9582 >      conftest$ac_exeext conftest.$ac_ext
9583 > LIBS=$ac_check_lib_save_LIBS
9584 > fi
9585 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9586 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9587 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
9588 >  MPI_LIB="-lmpi"
9589 > fi
9590 >
9591 > fi
9592 > $as_unset ac_cv_lib_mpi_MPI_Init
9593 > if test x = x"$MPI_LIB"; then
9594 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9595 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9596 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9597 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9598 > else
9599 >  ac_check_lib_save_LIBS=$LIBS
9600 > LIBS="-lmpi "-llam" $LIBS"
9601 > cat >conftest.$ac_ext <<_ACEOF
9602 > /* confdefs.h.  */
9603 > _ACEOF
9604 > cat confdefs.h >>conftest.$ac_ext
9605 > cat >>conftest.$ac_ext <<_ACEOF
9606 > /* end confdefs.h.  */
9607 >
9608 > /* Override any gcc2 internal prototype to avoid an error.  */
9609 > #ifdef __cplusplus
9610 > extern "C"
9611 > #endif
9612 > /* We use char because int might match the return type of a gcc2
9613 >   builtin and then its argument prototype would still apply.  */
9614 > char MPI_Init ();
9615 > int
9616 > main ()
9617 > {
9618 > MPI_Init ();
9619 >  ;
9620 >  return 0;
9621 > }
9622 > _ACEOF
9623 > rm -f conftest.$ac_objext conftest$ac_exeext
9624 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9625 >  (eval $ac_link) 2>conftest.er1
9626 >  ac_status=$?
9627 >  grep -v '^ *+' conftest.er1 >conftest.err
9628 >  rm -f conftest.er1
9629 >  cat conftest.err >&5
9630 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 >  (exit $ac_status); } &&
9632 >         { ac_try='test -z "$ac_c_werror_flag"
9633 >                         || test ! -s conftest.err'
9634 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 >  (eval $ac_try) 2>&5
9636 >  ac_status=$?
9637 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 >  (exit $ac_status); }; } &&
9639 >         { ac_try='test -s conftest$ac_exeext'
9640 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 >  (eval $ac_try) 2>&5
9642 >  ac_status=$?
9643 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 >  (exit $ac_status); }; }; then
9645 >  ac_cv_lib_mpi_MPI_Init=yes
9646 > else
9647 >  echo "$as_me: failed program was:" >&5
9648 > sed 's/^/| /' conftest.$ac_ext >&5
9649 >
9650 > ac_cv_lib_mpi_MPI_Init=no
9651 > fi
9652 > rm -f conftest.err conftest.$ac_objext \
9653 >      conftest$ac_exeext conftest.$ac_ext
9654 > LIBS=$ac_check_lib_save_LIBS
9655 > fi
9656 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9657 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9658 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
9659 >  MPI_LIB="-lmpi -llam"
9660 > fi
9661 >
9662 > fi
9663 > $as_unset ac_cv_lib_mpich_MPI_Init
9664 > if test x = x"$MPI_LIB"; then
9665 >        echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5
9666 > echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6
9667 > if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then
9668 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9669 > else
9670 >  ac_check_lib_save_LIBS=$LIBS
9671 > LIBS="-lmpich "-lpmpich" $LIBS"
9672 > cat >conftest.$ac_ext <<_ACEOF
9673 > /* confdefs.h.  */
9674 > _ACEOF
9675 > cat confdefs.h >>conftest.$ac_ext
9676 > cat >>conftest.$ac_ext <<_ACEOF
9677 > /* end confdefs.h.  */
9678 >
9679 > /* Override any gcc2 internal prototype to avoid an error.  */
9680 > #ifdef __cplusplus
9681 > extern "C"
9682 > #endif
9683 > /* We use char because int might match the return type of a gcc2
9684 >   builtin and then its argument prototype would still apply.  */
9685 > char MPI_Init ();
9686 > int
9687 > main ()
9688 > {
9689 > MPI_Init ();
9690 >  ;
9691 >  return 0;
9692 > }
9693 > _ACEOF
9694 > rm -f conftest.$ac_objext conftest$ac_exeext
9695 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9696 >  (eval $ac_link) 2>conftest.er1
9697 >  ac_status=$?
9698 >  grep -v '^ *+' conftest.er1 >conftest.err
9699 >  rm -f conftest.er1
9700 >  cat conftest.err >&5
9701 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 >  (exit $ac_status); } &&
9703 >         { ac_try='test -z "$ac_c_werror_flag"
9704 >                         || test ! -s conftest.err'
9705 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9706 >  (eval $ac_try) 2>&5
9707 >  ac_status=$?
9708 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709 >  (exit $ac_status); }; } &&
9710 >         { ac_try='test -s conftest$ac_exeext'
9711 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 >  (eval $ac_try) 2>&5
9713 >  ac_status=$?
9714 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 >  (exit $ac_status); }; }; then
9716 >  ac_cv_lib_mpich_MPI_Init=yes
9717 > else
9718 >  echo "$as_me: failed program was:" >&5
9719 > sed 's/^/| /' conftest.$ac_ext >&5
9720 >
9721 > ac_cv_lib_mpich_MPI_Init=no
9722 > fi
9723 > rm -f conftest.err conftest.$ac_objext \
9724 >      conftest$ac_exeext conftest.$ac_ext
9725 > LIBS=$ac_check_lib_save_LIBS
9726 > fi
9727 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5
9728 > echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6
9729 > if test $ac_cv_lib_mpich_MPI_Init = yes; then
9730 >  MPI_LIB="-lmpich -lpmpich"
9731 > fi
9732 >
9733 > fi
9734 >
9735 > $as_unset ac_cv_lib_mpi_MPI_Init
9736 > if test x = x"$MPI_LIB"; then
9737 > echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5
9738 > echo $ECHO_N "checking for MPI_Init in -lmpi... $ECHO_C" >&6
9739 > if test "${ac_cv_lib_mpi_MPI_Init+set}" = set; then
9740 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9741 > else
9742 >  ac_check_lib_save_LIBS=$LIBS
9743 > LIBS="-lmpi -llam -lpthread $LIBS"
9744 > cat >conftest.$ac_ext <<_ACEOF
9745 > /* confdefs.h.  */
9746 > _ACEOF
9747 > cat confdefs.h >>conftest.$ac_ext
9748 > cat >>conftest.$ac_ext <<_ACEOF
9749 > /* end confdefs.h.  */
9750 >
9751 > /* Override any gcc2 internal prototype to avoid an error.  */
9752 > #ifdef __cplusplus
9753 > extern "C"
9754 > #endif
9755 > /* We use char because int might match the return type of a gcc2
9756 >   builtin and then its argument prototype would still apply.  */
9757 > char MPI_Init ();
9758 > int
9759 > main ()
9760 > {
9761 > MPI_Init ();
9762 >  ;
9763 >  return 0;
9764 > }
9765 > _ACEOF
9766 > rm -f conftest.$ac_objext conftest$ac_exeext
9767 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9768 >  (eval $ac_link) 2>conftest.er1
9769 >  ac_status=$?
9770 >  grep -v '^ *+' conftest.er1 >conftest.err
9771 >  rm -f conftest.er1
9772 >  cat conftest.err >&5
9773 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774 >  (exit $ac_status); } &&
9775 >         { ac_try='test -z "$ac_c_werror_flag"
9776 >                         || test ! -s conftest.err'
9777 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 >  (eval $ac_try) 2>&5
9779 >  ac_status=$?
9780 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 >  (exit $ac_status); }; } &&
9782 >         { ac_try='test -s conftest$ac_exeext'
9783 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784 >  (eval $ac_try) 2>&5
9785 >  ac_status=$?
9786 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 >  (exit $ac_status); }; }; then
9788 >  ac_cv_lib_mpi_MPI_Init=yes
9789 > else
9790 >  echo "$as_me: failed program was:" >&5
9791 > sed 's/^/| /' conftest.$ac_ext >&5
9792 >
9793 > ac_cv_lib_mpi_MPI_Init=no
9794 > fi
9795 > rm -f conftest.err conftest.$ac_objext \
9796 >      conftest$ac_exeext conftest.$ac_ext
9797 > LIBS=$ac_check_lib_save_LIBS
9798 > fi
9799 > echo "$as_me:$LINENO: result: $ac_cv_lib_mpi_MPI_Init" >&5
9800 > echo "${ECHO_T}$ac_cv_lib_mpi_MPI_Init" >&6
9801 > if test $ac_cv_lib_mpi_MPI_Init = yes; then
9802 >  MPI_LIB="-lmpi -llam -lpthread"
9803 > else
9804 >
9805 >             { { echo "$as_me:$LINENO: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&5
9806 > echo "$as_me: error: Didn't find liblam, libmpi, or libmpich; check path for MPI package first..." >&2;}
9807 >   { (exit 1); exit 1; }; }
9808 >             USE_MPI="no"
9809 >
9810 > fi
9811 >
9812 > fi
9813 >
9814 >
9815 >
9816 > echo "$as_me:$LINENO: checking for MPI Fortran library" >&5
9817 > echo $ECHO_N "checking for MPI Fortran library... $ECHO_C" >&6
9818 > MPI_F90_LIB=""
9819 > if test -f "$MPI_LIB_DIR/libfmpich.a" ; then
9820 >        MPI_F90_LIB="-lfmpich"
9821 > elif test -f "$MPI_LIB_DIR/liblamf77mpi.a" ; then
9822 >        MPI_F90_LIB="-llamf77mpi"
9823 > else
9824 >                        MPI_F90_LIB="  "
9825 > fi
9826 > echo "$as_me:$LINENO: result: found $MPI_F90_LIB" >&5
9827 > echo "${ECHO_T}found $MPI_F90_LIB" >&6
9828 >
9829 >
9830 > fi
9831 >
9832 >
9833 >
9834 >
9835 > USE_CGAL=no
9836 > cgal_makefile=auto
9837 >
9838 > # Check whether --with-cgal-makefile or --without-cgal-makefile was given.
9839 > if test "${with_cgal_makefile+set}" = set; then
9840 >  withval="$with_cgal_makefile"
9841 >  cgal_makefile="$withval"
9842 > fi;
9843 >
9844 > if test "x$cgal_makefile" != xno; then
9845 >
9846 >  if test "x$cgal_makefile" = xauto -a "x$CGAL_MAKEFILE" != x; then
9847 >    cgal_makefile="$CGAL_MAKEFILE"
9848 >  fi
9849 >
9850 >  echo "$as_me:$LINENO: checking for cgal_makefile: $cgal_makefile" >&5
9851 > echo $ECHO_N "checking for cgal_makefile: $cgal_makefile... $ECHO_C" >&6
9852 >
9853 >  if test -f "$cgal_makefile"; then
9854 >
9855 >    cat >config.tmp.Makefile <<EOF
9856 > include $cgal_makefile
9857 > default:
9858 >        @echo CGAL_OS_COMPILER=\"\${CGAL_OS_COMPILER}\" >config.tmp.cgalvariables
9859 >        @echo CGAL_INCLDIR=\"\${CGAL_INCL_DIR}\" >>config.tmp.cgalvariables
9860 >        @echo CGAL_INCLCONFDIR=\"\${CGAL_INCL_CONF_DIR}\" >>config.tmp.cgalvariables
9861 >        @echo CGAL_LIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9862 >        @echo CGAL_RLIBDIR=\"\${CGAL_LIB_DIR}/\${CGAL_OS_COMPILER}\" >>config.tmp.cgalvariables
9863 >        @echo CGAL_CXXFLAGS=\"\${CGAL_CXXFLAGS}\" >>config.tmp.cgalvariables
9864 >        @echo GMP_INCLDIR=\"\${GMP_INCL_DIR}\" >>config.tmp.cgalvariables
9865 >        @echo GMP_LIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9866 >        @echo GMP_RLIBDIR=\"\${GMP_LIB_DIR}\" >>config.tmp.cgalvariables
9867 >        @echo LEDA_INCLDIR=\"\${LEDA_INCL_DIR}\" >>config.tmp.cgalvariables
9868 >        @echo LEDA_LIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9869 >        @echo LEDA_RLIBDIR=\"\${LEDA_LIB_DIR}\" >>config.tmp.cgalvariables
9870 > EOF
9871 >
9872 >    make -s -f config.tmp.Makefile
9873 >    . config.tmp.cgalvariables
9874 >
9875 >    rm -f config.tmp.Makefile config.tmp.cgalvariables
9876 >
9877 >    if test "x$CGAL_INCLDIR" = "x"; then
9878 >      CGAL_INCLDIR=""
9879 >    fi
9880 >
9881 >    if test "x$CGAL_LIBDIR" = "x"; then
9882 >      CGAL_LIBDIR=""
9883 >    fi
9884 >
9885 >    if test "x$CGAL_RLIBDIR" = "x"; then
9886 >      CGAL_RLIBDIR=""
9887 >    fi
9888 >
9889 >    if test "x$LEDA_INCLDIR" = "x"; then
9890 >      LEDA_INCLDIR=""
9891 >    fi
9892 >
9893 >    if test "x$LEDA_LIBDIR" = "x"; then
9894 >      LEDA_LIBDIR=""
9895 >    fi
9896 >
9897 >    if test "x$LEDA_RLIBDIR" = "x"; then
9898 >      LEDA_RLIBDIR=""
9899 >    fi
9900 >
9901 >    if test "x$GMP_INCLDIR" = "x"; then
9902 >      GMP_INCLDIR=""
9903 >    fi
9904 >
9905 >    if test "x$GMP_LIBDIR" = "x"; then
9906 >      GMP_LIBDIR=""
9907 >    fi
9908 >
9909 >    if test "x$GMP_RLIBDIR" = "x"; then
9910 >      GMP_RLIBDIR=""
9911 >    fi
9912 >
9913 >    echo "$as_me:$LINENO: result: CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&5
9914 > echo "${ECHO_T}CGAL_OS_COMPILER=   $CGAL_OS_COMPILER" >&6
9915 >    echo "$as_me:$LINENO: result: CGAL_INCLDIR=       $CGAL_INCLDIR" >&5
9916 > echo "${ECHO_T}CGAL_INCLDIR=       $CGAL_INCLDIR" >&6
9917 >    echo "$as_me:$LINENO: result: CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&5
9918 > echo "${ECHO_T}CGAL_INCLCONFDIR=   $CGAL_INCLCONFDIR" >&6
9919 >    echo "$as_me:$LINENO: result: CGAL_LIBDIR=        $CGAL_LIBDIR" >&5
9920 > echo "${ECHO_T}CGAL_LIBDIR=        $CGAL_LIBDIR" >&6
9921 >    echo "$as_me:$LINENO: result: CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&5
9922 > echo "${ECHO_T}CGAL_CXXFLAGS=      $CGAL_CXXFLAGS" >&6
9923 >    echo "$as_me:$LINENO: result: LEDA_INCLDIR=       $LEDA_INCLDIR" >&5
9924 > echo "${ECHO_T}LEDA_INCLDIR=       $LEDA_INCLDIR" >&6
9925 >    echo "$as_me:$LINENO: result: LEDA_LIBDIR=        $LEDA_LIBDIR" >&5
9926 > echo "${ECHO_T}LEDA_LIBDIR=        $LEDA_LIBDIR" >&6
9927 >    echo "$as_me:$LINENO: result: GMP_INCLDIR=        $GMP_INCLDIR" >&5
9928 > echo "${ECHO_T}GMP_INCLDIR=        $GMP_INCLDIR" >&6
9929 >    echo "$as_me:$LINENO: result: GMP_LIBDIR=         $GMP_LIBDIR" >&5
9930 > echo "${ECHO_T}GMP_LIBDIR=         $GMP_LIBDIR" >&6
9931 >
9932 >    ac_ext=cc
9933 > ac_cpp='$CXXCPP $CPPFLAGS'
9934 > ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9935 > ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9936 > ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9937 >
9938 >    save_CXXFLAGS="$CXXFLAGS"
9939 >    CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
9940 >    if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9941 >  echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
9942 > echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
9943 > if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
9944 >  echo $ECHO_N "(cached) $ECHO_C" >&6
9945 > fi
9946 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
9947 > echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
9948 > else
9949 >  # Is the header compilable?
9950 > echo "$as_me:$LINENO: checking CGAL/Cartesian.h usability" >&5
9951 > echo $ECHO_N "checking CGAL/Cartesian.h usability... $ECHO_C" >&6
9952 > cat >conftest.$ac_ext <<_ACEOF
9953 > /* confdefs.h.  */
9954 > _ACEOF
9955 > cat confdefs.h >>conftest.$ac_ext
9956 > cat >>conftest.$ac_ext <<_ACEOF
9957 > /* end confdefs.h.  */
9958 > $ac_includes_default
9959 > #include <CGAL/Cartesian.h>
9960 > _ACEOF
9961 > rm -f conftest.$ac_objext
9962 > if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9963 >  (eval $ac_compile) 2>conftest.er1
9964 >  ac_status=$?
9965 >  grep -v '^ *+' conftest.er1 >conftest.err
9966 >  rm -f conftest.er1
9967 >  cat conftest.err >&5
9968 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 >  (exit $ac_status); } &&
9970 >         { ac_try='test -z "$ac_cxx_werror_flag"
9971 >                         || test ! -s conftest.err'
9972 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 >  (eval $ac_try) 2>&5
9974 >  ac_status=$?
9975 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 >  (exit $ac_status); }; } &&
9977 >         { ac_try='test -s conftest.$ac_objext'
9978 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9979 >  (eval $ac_try) 2>&5
9980 >  ac_status=$?
9981 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 >  (exit $ac_status); }; }; then
9983 >  ac_header_compiler=yes
9984 > else
9985 >  echo "$as_me: failed program was:" >&5
9986 > sed 's/^/| /' conftest.$ac_ext >&5
9987 >
9988 > ac_header_compiler=no
9989 > fi
9990 > rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9991 > echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9992 > echo "${ECHO_T}$ac_header_compiler" >&6
9993 >
9994 > # Is the header present?
9995 > echo "$as_me:$LINENO: checking CGAL/Cartesian.h presence" >&5
9996 > echo $ECHO_N "checking CGAL/Cartesian.h presence... $ECHO_C" >&6
9997 > cat >conftest.$ac_ext <<_ACEOF
9998 > /* confdefs.h.  */
9999 > _ACEOF
10000 > cat confdefs.h >>conftest.$ac_ext
10001 > cat >>conftest.$ac_ext <<_ACEOF
10002 > /* end confdefs.h.  */
10003 > #include <CGAL/Cartesian.h>
10004 > _ACEOF
10005 > if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10006 >  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10007 >  ac_status=$?
10008 >  grep -v '^ *+' conftest.er1 >conftest.err
10009 >  rm -f conftest.er1
10010 >  cat conftest.err >&5
10011 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 >  (exit $ac_status); } >/dev/null; then
10013 >  if test -s conftest.err; then
10014 >    ac_cpp_err=$ac_cxx_preproc_warn_flag
10015 >    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10016 >  else
10017 >    ac_cpp_err=
10018 >  fi
10019 > else
10020 >  ac_cpp_err=yes
10021 > fi
10022 > if test -z "$ac_cpp_err"; then
10023 >  ac_header_preproc=yes
10024 > else
10025 >  echo "$as_me: failed program was:" >&5
10026 > sed 's/^/| /' conftest.$ac_ext >&5
10027 >
10028 >  ac_header_preproc=no
10029 > fi
10030 > rm -f conftest.err conftest.$ac_ext
10031 > echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032 > echo "${ECHO_T}$ac_header_preproc" >&6
10033 >
10034 > # So?  What about this header?
10035 > case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10036 >  yes:no: )
10037 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038 > echo "$as_me: WARNING: CGAL/Cartesian.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&5
10040 > echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the compiler's result" >&2;}
10041 >    ac_header_preproc=yes
10042 >    ;;
10043 >  no:yes:* )
10044 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&5
10045 > echo "$as_me: WARNING: CGAL/Cartesian.h: present but cannot be compiled" >&2;}
10046 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&5
10047 > echo "$as_me: WARNING: CGAL/Cartesian.h:     check for missing prerequisite headers?" >&2;}
10048 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&5
10049 > echo "$as_me: WARNING: CGAL/Cartesian.h: see the Autoconf documentation" >&2;}
10050 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&5
10051 > echo "$as_me: WARNING: CGAL/Cartesian.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10052 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&5
10053 > echo "$as_me: WARNING: CGAL/Cartesian.h: proceeding with the preprocessor's result" >&2;}
10054 >    { echo "$as_me:$LINENO: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&5
10055 > echo "$as_me: WARNING: CGAL/Cartesian.h: in the future, the compiler will take precedence" >&2;}
10056 >    (
10057 >      cat <<\_ASBOX
10058 > ## ------------------------------ ##
10059 > ## Report this to gezelter@nd.edu ##
10060 > ## ------------------------------ ##
10061 > _ASBOX
10062 >    ) |
10063 >      sed "s/^/$as_me: WARNING:     /" >&2
10064 >    ;;
10065 > esac
10066 > echo "$as_me:$LINENO: checking for CGAL/Cartesian.h" >&5
10067 > echo $ECHO_N "checking for CGAL/Cartesian.h... $ECHO_C" >&6
10068 > if test "${ac_cv_header_CGAL_Cartesian_h+set}" = set; then
10069 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10070 > else
10071 >  ac_cv_header_CGAL_Cartesian_h=$ac_header_preproc
10072 > fi
10073 > echo "$as_me:$LINENO: result: $ac_cv_header_CGAL_Cartesian_h" >&5
10074 > echo "${ECHO_T}$ac_cv_header_CGAL_Cartesian_h" >&6
10075 >
10076 > fi
10077 > if test $ac_cv_header_CGAL_Cartesian_h = yes; then
10078 >  cgal=yes
10079 > else
10080 >  cgal=no
10081 > fi
10082 >
10083 >
10084 >    CXXFLAGS="$save_CXXFLAGS"
10085 >
10086 >    if test "x$cgal" = xyes; then
10087 >      echo "$as_me:$LINENO: checking for CGAL version" >&5
10088 > echo $ECHO_N "checking for CGAL version... $ECHO_C" >&6
10089 >      LOCATION=${CGAL_INCLDIR}
10090 >      LOCATION=${LOCATION:-/usr/include}
10091 >      if test -f $LOCATION/CGAL/version.h; then
10092 >        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/version.h | sed 's/[^0-9\.]*//g'`
10093 >      else
10094 >        CGAL_VERSION=`grep '#define.*\<CGAL_VERSION\>.*' $LOCATION/CGAL/config.h | sed 's/[^0-9\.]*//g'`
10095 >      fi
10096 >      if echo $CGAL_VERSION | grep -q "^[3456789]"; then
10097 >        echo "$as_me:$LINENO: result: ($CGAL_VERSION) yes" >&5
10098 > echo "${ECHO_T}($CGAL_VERSION) yes" >&6
10099 >      else
10100 >        echo "$as_me:$LINENO: result: ($CGAL_VERSION) no" >&5
10101 > echo "${ECHO_T}($CGAL_VERSION) no" >&6
10102 >        cgal=no
10103 >      fi
10104 >    fi
10105 >
10106 >    if test "x$cgal" = xyes; then
10107 >      CGAL_LIBS="-lCGAL"
10108 >      echo "$as_me:$LINENO: checking whether CGAL uses LEDA" >&5
10109 > echo $ECHO_N "checking whether CGAL uses LEDA... $ECHO_C" >&6
10110 >      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_LEDA; then
10111 >        CGAL_USES_LEDA=yes
10112 >        echo "$as_me:$LINENO: result: yes" >&5
10113 > echo "${ECHO_T}yes" >&6
10114 >        CGAL_DEFINES="-DCGAL_USE_LEDA -DLEDA_PREFIX"
10115 >      else
10116 >        echo "$as_me:$LINENO: result: no" >&5
10117 > echo "${ECHO_T}no" >&6
10118 >        CGAL_USES_LEDA=no
10119 >      fi
10120 >
10121 >      echo "$as_me:$LINENO: checking whether CGAL uses GMP" >&5
10122 > echo $ECHO_N "checking whether CGAL uses GMP... $ECHO_C" >&6
10123 >      if echo $CGAL_CXXFLAGS | grep -q -- -DCGAL_USE_GMP; then
10124 >        CGAL_USES_GMP=yes
10125 >        echo "$as_me:$LINENO: result: yes" >&5
10126 > echo "${ECHO_T}yes" >&6
10127 >        CGAL_DEFINES="-DCGAL_USE_GMP $CGAL_DEFINES"
10128 >      else
10129 >        echo "$as_me:$LINENO: result: no" >&5
10130 > echo "${ECHO_T}no" >&6
10131 >        CGAL_USES_GMP=no
10132 >      fi
10133 >
10134 >      CGAL_LIBS="$CGAL_LIBS -lm"
10135 >
10136 >      CGAL_CXXFLAGS="-ftemplate-depth-50"
10137 >
10138 >      echo "$as_me:$LINENO: result: CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&5
10139 > echo "${ECHO_T}CGAL_USES_LEDA=     $CGAL_USES_LEDA" >&6
10140 >      echo "$as_me:$LINENO: result: CGAL_USES_GMP =     $CGAL_USES_GMP" >&5
10141 > echo "${ECHO_T}CGAL_USES_GMP =     $CGAL_USES_GMP" >&6
10142 >      echo "$as_me:$LINENO: result: CGAL_INCLDIR  =     $CGAL_INCLDIR" >&5
10143 > echo "${ECHO_T}CGAL_INCLDIR  =     $CGAL_INCLDIR" >&6
10144 >      echo "$as_me:$LINENO: result: CGAL_LIBDIR   =     $CGAL_LIBDIR" >&5
10145 > echo "${ECHO_T}CGAL_LIBDIR   =     $CGAL_LIBDIR" >&6
10146 >      echo "$as_me:$LINENO: result: CGAL_DEFINES  =     $CGAL_DEFINES" >&5
10147 > echo "${ECHO_T}CGAL_DEFINES  =     $CGAL_DEFINES" >&6
10148 >      echo "$as_me:$LINENO: result: CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&5
10149 > echo "${ECHO_T}CGAL_CXXFLAGS =     $CGAL_CXXFLAGS" >&6
10150 >      echo "$as_me:$LINENO: result: CGAL_LIBS     =     $CGAL_LIBS" >&5
10151 > echo "${ECHO_T}CGAL_LIBS     =     $CGAL_LIBS" >&6
10152 >    fi
10153 >
10154 >    if test "x$cgal" = xyes; then
10155 >      save_LIBS="$LIBS"
10156 >      LIBS="$LIBS -L$CGAL_LIBDIR"
10157 >      if test "x$CGAL_USES_LEDA" = xyes; then
10158 >        LIBS="-lL $LIBS -L$LEDA_LIBDIR"
10159 >      fi
10160 >      # if test "x$CGAL_USES_GMP" = xyes; then
10161 >      #   LIBS="-lgmp $LIBS $GMP_LIBDIR"
10162 >      # fi
10163 >      echo "$as_me:$LINENO: checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL" >&5
10164 > echo $ECHO_N "checking for ::CGAL::Cartesian<int>::Point_2 in -lCGAL... $ECHO_C" >&6
10165 > save_CXXFLAGS_CHECK_CXX_LIB="$CXXFLAGS"
10166 > CXXFLAGS="$CXXFLAGS -I$CGAL_INCLDIR -I$CGAL_INCLCONFDIR"
10167 > save_LIBS_CHECK_CXX_LIB="$LIBS"
10168 > LIBS="-lCGAL  $LIBS"
10169 > cat >conftest.$ac_ext <<_ACEOF
10170 > /* confdefs.h.  */
10171 > _ACEOF
10172 > cat confdefs.h >>conftest.$ac_ext
10173 > cat >>conftest.$ac_ext <<_ACEOF
10174 > /* end confdefs.h.  */
10175 > #include <CGAL/Cartesian.h>
10176 > int
10177 > main ()
10178 > {
10179 > ::CGAL::Cartesian<int>::Point_2 P
10180 >  ;
10181 >  return 0;
10182 > }
10183 > _ACEOF
10184 > rm -f conftest.$ac_objext conftest$ac_exeext
10185 > if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10186 >  (eval $ac_link) 2>conftest.er1
10187 >  ac_status=$?
10188 >  grep -v '^ *+' conftest.er1 >conftest.err
10189 >  rm -f conftest.er1
10190 >  cat conftest.err >&5
10191 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10192 >  (exit $ac_status); } &&
10193 >         { ac_try='test -z "$ac_cxx_werror_flag"
10194 >                         || test ! -s conftest.err'
10195 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 >  (eval $ac_try) 2>&5
10197 >  ac_status=$?
10198 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 >  (exit $ac_status); }; } &&
10200 >         { ac_try='test -s conftest$ac_exeext'
10201 >  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10202 >  (eval $ac_try) 2>&5
10203 >  ac_status=$?
10204 >  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 >  (exit $ac_status); }; }; then
10206 >  echo "$as_me:$LINENO: result: yes" >&5
10207 > echo "${ECHO_T}yes" >&6
10208 > cgal=yes
10209 > else
10210 >  echo "$as_me: failed program was:" >&5
10211 > sed 's/^/| /' conftest.$ac_ext >&5
10212 >
10213 > echo "$as_me:$LINENO: result: no" >&5
10214 > echo "${ECHO_T}no" >&6
10215 > cgal=no
10216 > fi
10217 > rm -f conftest.err conftest.$ac_objext \
10218 >      conftest$ac_exeext conftest.$ac_ext
10219 > CXXFLAGS="$save_CXXFLAGS_CHECK_CXX_LIB"
10220 > LIBS="$save_LIBS_CHECK_CXX_LIB"
10221 >      LIBS="$save_LIBS"
10222 >    fi
10223 >
10224 >  fi
10225 >  ac_ext=c
10226 > ac_cpp='$CPP $CPPFLAGS'
10227 > ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10228 > ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10229 > ac_compiler_gnu=$ac_cv_c_compiler_gnu
10230 >
10231 >
10232 > fi
10233 >
10234 > if test "x$cgal" = xyes; then
10235 >  USE_CGAL=yes
10236 >
10237 > cat >>confdefs.h <<\_ACEOF
10238 > #define HAVE_CGAL 1
10239 > _ACEOF
10240 >
10241 >
10242 > cat >>confdefs.h <<_ACEOF
10243 > #define CGAL_VERSION $CGAL_VERSION
10244 > _ACEOF
10245 >
10246 >  if ! echo $CGAL_VERSION | grep -q "^3.0"; then
10247 >    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10248 > echo "$as_me: WARNING: *****************************************************" >&2;}
10249 >    { echo "$as_me:$LINENO: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&5
10250 > echo "$as_me: WARNING: *** Warning: Your CGAL version is newer than the  ***" >&2;}
10251 >    { echo "$as_me:$LINENO: WARNING: *** supported versions. It may still work though. ***" >&5
10252 > echo "$as_me: WARNING: *** supported versions. It may still work though. ***" >&2;}
10253 >    { echo "$as_me:$LINENO: WARNING: *****************************************************" >&5
10254 > echo "$as_me: WARNING: *****************************************************" >&2;}
10255 >  fi
10256 > else
10257 >   if test "x$cgal_makefile" != xno; then
10258 >    echo "$as_me:$LINENO: result: No CGAL support. These are not the droids you want." >&5
10259 > echo "${ECHO_T}No CGAL support. These are not the droids you want." >&6
10260 >  fi
10261 >  CGAL_INCLDIR=
10262 >  CGAL_LIBDIR=
10263 >  CGAL_RLIBDIR=
10264 >  CGAL_DEFINES=
10265 >  CGAL_CXXFLAGS=
10266 >  CGAL_LIBS=
10267 > fi
10268 >
10269 >
10270 > CGAL_INC_DIR="${CGAL_INCLDIR} ${CGAL_INCLCONFDIR}"
10271 >
10272 > CGAL_LIB_DIR=${CGAL_LIBDIR}
10273 >
10274 > CGAL_RLIB_DIR=${CGAL_RLIBDIR}
10275 >
10276 >
10277 >
10278 >
10279 >
10280 >
10281 >
10282 > # Check whether --enable-doxygen or --disable-doxygen was given.
10283 > if test "${enable_doxygen+set}" = set; then
10284 >  enableval="$enable_doxygen"
10285 >
10286 > fi;
10287 > # Check whether --enable-dot or --disable-dot was given.
10288 > if test "${enable_dot+set}" = set; then
10289 >  enableval="$enable_dot"
10290 >
10291 > fi;
10292 > # Check whether --enable-html-docs or --disable-html-docs was given.
10293 > if test "${enable_html_docs+set}" = set; then
10294 >  enableval="$enable_html_docs"
10295 >
10296 > else
10297 >   enable_html_docs=yes
10298 > fi;
10299 > # Check whether --enable-latex-docs or --disable-latex-docs was given.
10300 > if test "${enable_latex_docs+set}" = set; then
10301 >  enableval="$enable_latex_docs"
10302 >
10303 > else
10304 >   enable_latex_docs=no
10305 > fi;
10306 > if test "x$enable_doxygen" = xno; then
10307 >        enable_doc=no
10308 > else
10309 >        # Extract the first word of "doxygen", so it can be a program name with args.
10310 > set dummy doxygen; ac_word=$2
10311 > echo "$as_me:$LINENO: checking for $ac_word" >&5
10312 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10313 > if test "${ac_cv_path_DOXYGEN+set}" = set; then
10314 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10315 > else
10316 >  case $DOXYGEN in
10317 >  [\\/]* | ?:[\\/]*)
10318 >  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
10319 >  ;;
10320 >  *)
10321 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322 > for as_dir in $PATH
10323 > do
10324 >  IFS=$as_save_IFS
10325 >  test -z "$as_dir" && as_dir=.
10326 >  for ac_exec_ext in '' $ac_executable_extensions; do
10327 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10328 >    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
10329 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 >    break 2
10331 >  fi
10332 > done
10333 > done
10334 >
10335 >  ;;
10336 > esac
10337 > fi
10338 > DOXYGEN=$ac_cv_path_DOXYGEN
10339 >
10340 > if test -n "$DOXYGEN"; then
10341 >  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
10342 > echo "${ECHO_T}$DOXYGEN" >&6
10343 > else
10344 >  echo "$as_me:$LINENO: result: no" >&5
10345 > echo "${ECHO_T}no" >&6
10346 > fi
10347 >
10348 >        if test "x$DOXYGEN" = x; then
10349 >                if test "x$enable_doxygen" = xyes; then
10350 >                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
10351 > echo "$as_me: error: could not find doxygen" >&2;}
10352 >   { (exit 1); exit 1; }; }
10353 >                fi
10354 >                enable_doc=no
10355 >        else
10356 >                enable_doc=yes
10357 >                # Extract the first word of "dot", so it can be a program name with args.
10358 > set dummy dot; ac_word=$2
10359 > echo "$as_me:$LINENO: checking for $ac_word" >&5
10360 > echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10361 > if test "${ac_cv_path_DOT+set}" = set; then
10362 >  echo $ECHO_N "(cached) $ECHO_C" >&6
10363 > else
10364 >  case $DOT in
10365 >  [\\/]* | ?:[\\/]*)
10366 >  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
10367 >  ;;
10368 >  *)
10369 >  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370 > for as_dir in $PATH
10371 > do
10372 >  IFS=$as_save_IFS
10373 >  test -z "$as_dir" && as_dir=.
10374 >  for ac_exec_ext in '' $ac_executable_extensions; do
10375 >  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10376 >    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
10377 >    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 >    break 2
10379 >  fi
10380 > done
10381 > done
10382 >
10383 >  ;;
10384 > esac
10385 > fi
10386 > DOT=$ac_cv_path_DOT
10387 >
10388 > if test -n "$DOT"; then
10389 >  echo "$as_me:$LINENO: result: $DOT" >&5
10390 > echo "${ECHO_T}$DOT" >&6
10391 > else
10392 >  echo "$as_me:$LINENO: result: no" >&5
10393 > echo "${ECHO_T}no" >&6
10394 > fi
10395 >
10396 >        fi
10397 > fi
10398 >
10399 > if test "x$enable_doc" = xyes; then
10400 >  DOC=1
10401 > else
10402 >  DOC=0
10403 > fi
10404 >
10405 >
10406 > if test x$DOT = x; then
10407 >        if test "x$enable_dot" = xyes; then
10408 >                { { echo "$as_me:$LINENO: error: could not find dot" >&5
10409 > echo "$as_me: error: could not find dot" >&2;}
10410 >   { (exit 1); exit 1; }; }
10411 >        fi
10412 >        enable_dot=no
10413 > else
10414 >        enable_dot=yes
10415 > fi
10416 >
10417 >
10418 >
10419 >
10420 >
10421 >
10422 >
10423 > OBJEXT=".$OBJEXT"
10424 >
10425 > OOPSE=oopse
10426 >
10427 > if test "x${prefix}" = "xNONE"
10428 > then
10429 >  OOPSE_HOME=${ac_default_prefix}/oopse
10430 > else
10431 >  OOPSE_HOME=${prefix}/oopse
10432 > fi
10433 > # Check whether --enable-oopse-home or --disable-oopse-home was given.
10434 > if test "${enable_oopse_home+set}" = set; then
10435 >  enableval="$enable_oopse_home"
10436 >  OOPSE_HOME="${enableval}"
10437 > fi;
10438 >
10439 > case "x$INSTALL" in
10440 >   x/*) ;;
10441 >   *) INSTALL=`pwd`/ac-tools/"shtool install -c" ;
10442 > esac
10443 >
10444 > MKINSTALLDIRS=`pwd`/ac-tools/"shtool mkdir -p -f"
10445 >
10446 > CFLAGS=${CFLAGS-""}
10447 > CXXFLAGS=${CXXFLAGS-""}
10448 > CPPFLAGS=${CPPFLAGS-""}
10449 > FFLAGS=${FFLAGS-""}
10450 > F90FLAGS=${F90FLAGS-""}
10451 > LDFLAGS=${LDFLAGS-""}
10452 > DEBUG=${DEBUG-"-g"}
10453 >
10454 > case $debug in
10455 >  1)
10456 >     FFLAGS="$DEBUG $FFLAGS"
10457 >     F90FLAGS="$DEBUG $F90FLAGS"
10458 >     ;;
10459 >  *)
10460 >     ;;
10461 > esac
10462 >
10463 >
10464 >
10465 >
10466 >
10467 >
10468 >
10469 >
10470 >
10471 >
10472 >
10473 >
10474 >
10475 >
10476 >
10477 >
10478 >
10479 >
10480 >          ac_config_headers="$ac_config_headers src/config.h"
10481 >
10482 >                                        ac_config_files="$ac_config_files make/Makefile src/utils/Makefile src/applications/nanoRodBuilder/Makefile scripts/filepp"
10483 >
10484 >
10485 > cat >confcache <<\_ACEOF
10486 > # This file is a shell script that caches the results of configure
10487 > # tests run on this system so they can be shared between configure
10488 > # scripts and configure runs, see configure's option --config-cache.
10489 > # It is not useful on other systems.  If it contains results you don't
10490 > # want to keep, you may remove or edit it.
10491 > #
10492 > # config.status only pays attention to the cache file if you give it
10493 > # the --recheck option to rerun configure.
10494 > #
10495 > # `ac_cv_env_foo' variables (set or unset) will be overridden when
10496 > # loading this file, other *unset* `ac_cv_foo' will be assigned the
10497 > # following values.
10498 >
10499 > _ACEOF
10500 >
10501 > # The following way of writing the cache mishandles newlines in values,
10502 > # but we know of no workaround that is simple, portable, and efficient.
10503 > # So, don't put newlines in cache variables' values.
10504 > # Ultrix sh set writes to stderr and can't be redirected directly,
10505 > # and sets the high bit in the cache file unless we assign to the vars.
10506 > {
10507 >  (set) 2>&1 |
10508 >    case `(ac_space=' '; set | grep ac_space) 2>&1` in
10509 >    *ac_space=\ *)
10510 >      # `set' does not quote correctly, so add quotes (double-quote
10511 >      # substitution turns \\\\ into \\, and sed turns \\ into \).
10512 >      sed -n \
10513 >        "s/'/'\\\\''/g;
10514 >          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10515 >      ;;
10516 >    *)
10517 >      # `set' quotes correctly as required by POSIX, so do not add quotes.
10518 >      sed -n \
10519 >        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10520 >      ;;
10521 >    esac;
10522 > } |
10523 >  sed '
10524 >     t clear
10525 >     : clear
10526 >     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10527 >     t end
10528 >     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10529 >     : end' >>confcache
10530 > if diff $cache_file confcache >/dev/null 2>&1; then :; else
10531 >  if test -w $cache_file; then
10532 >    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10533 >    cat confcache >$cache_file
10534 >  else
10535 >    echo "not updating unwritable cache $cache_file"
10536 >  fi
10537 > fi
10538 > rm -f confcache
10539 >
10540 > test "x$prefix" = xNONE && prefix=$ac_default_prefix
10541 > # Let make expand exec_prefix.
10542 > test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10543 >
10544 > # VPATH may cause trouble with some makes, so we remove $(srcdir),
10545 > # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10546 > # trailing colons and then remove the whole line if VPATH becomes empty
10547 > # (actually we leave an empty line to preserve line numbers).
10548 > if test "x$srcdir" = x.; then
10549 >  ac_vpsub='/^[  ]*VPATH[        ]*=/{
10550 > s/:*\$(srcdir):*/:/;
10551 > s/:*\${srcdir}:*/:/;
10552 > s/:*@srcdir@:*/:/;
10553 > s/^\([^=]*=[     ]*\):*/\1/;
10554 > s/:*$//;
10555 > s/^[^=]*=[       ]*$//;
10556 > }'
10557 > fi
10558 >
10559 > DEFS=-DHAVE_CONFIG_H
10560 >
10561 > ac_libobjs=
10562 > ac_ltlibobjs=
10563 > for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10564 >  # 1. Remove the extension, and $U if already installed.
10565 >  ac_i=`echo "$ac_i" |
10566 >         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10567 >  # 2. Add them.
10568 >  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10569 >  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10570 > done
10571 > LIBOBJS=$ac_libobjs
10572 >
10573 > LTLIBOBJS=$ac_ltlibobjs
10574 >
10575 >
10576 >
10577 > : ${CONFIG_STATUS=./config.status}
10578 > ac_clean_files_save=$ac_clean_files
10579 > ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10580 > { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10581 > echo "$as_me: creating $CONFIG_STATUS" >&6;}
10582 > cat >$CONFIG_STATUS <<_ACEOF
10583 > #! $SHELL
10584 > # Generated by $as_me.
10585 > # Run this file to recreate the current configuration.
10586 > # Compiler output produced by configure, useful for debugging
10587 > # configure, is in config.log if it exists.
10588 >
10589 > debug=false
10590 > ac_cs_recheck=false
10591 > ac_cs_silent=false
10592 > SHELL=\${CONFIG_SHELL-$SHELL}
10593 > _ACEOF
10594 >
10595 > cat >>$CONFIG_STATUS <<\_ACEOF
10596 > ## --------------------- ##
10597 > ## M4sh Initialization.  ##
10598 > ## --------------------- ##
10599 >
10600 > # Be Bourne compatible
10601 > if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10602 >  emulate sh
10603 >  NULLCMD=:
10604 >  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10605 >  # is contrary to our usage.  Disable this feature.
10606 >  alias -g '${1+"$@"}'='"$@"'
10607 > elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10608 >  set -o posix
10609 > fi
10610 > DUALCASE=1; export DUALCASE # for MKS sh
10611 >
10612 > # Support unset when possible.
10613 > if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10614 >  as_unset=unset
10615 > else
10616 >  as_unset=false
10617 > fi
10618 >
10619 >
10620 > # Work around bugs in pre-3.0 UWIN ksh.
10621 > $as_unset ENV MAIL MAILPATH
10622 > PS1='$ '
10623 > PS2='> '
10624 > PS4='+ '
10625 >
10626 > # NLS nuisances.
10627 > for as_var in \
10628 >  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10629 >  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10630 >  LC_TELEPHONE LC_TIME
10631 > do
10632 >  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10633 >    eval $as_var=C; export $as_var
10634 >  else
10635 >    $as_unset $as_var
10636 >  fi
10637 > done
10638 >
10639 > # Required to use basename.
10640 > if expr a : '\(a\)' >/dev/null 2>&1; then
10641 >  as_expr=expr
10642 > else
10643 >  as_expr=false
10644 > fi
10645 >
10646 > if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10647 >  as_basename=basename
10648 > else
10649 >  as_basename=false
10650 > fi
10651 >
10652 >
10653 > # Name of the executable.
10654 > as_me=`$as_basename "$0" ||
10655 > $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10656 >         X"$0" : 'X\(//\)$' \| \
10657 >         X"$0" : 'X\(/\)$' \| \
10658 >         .     : '\(.\)' 2>/dev/null ||
10659 > echo X/"$0" |
10660 >    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10661 >          /^X\/\(\/\/\)$/{ s//\1/; q; }
10662 >          /^X\/\(\/\).*/{ s//\1/; q; }
10663 >          s/.*/./; q'`
10664 >
10665 >
10666 > # PATH needs CR, and LINENO needs CR and PATH.
10667 > # Avoid depending upon Character Ranges.
10668 > as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10669 > as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10670 > as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10671 > as_cr_digits='0123456789'
10672 > as_cr_alnum=$as_cr_Letters$as_cr_digits
10673 >
10674 > # The user is always right.
10675 > if test "${PATH_SEPARATOR+set}" != set; then
10676 >  echo "#! /bin/sh" >conf$$.sh
10677 >  echo  "exit 0"   >>conf$$.sh
10678 >  chmod +x conf$$.sh
10679 >  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10680 >    PATH_SEPARATOR=';'
10681 >  else
10682 >    PATH_SEPARATOR=:
10683 >  fi
10684 >  rm -f conf$$.sh
10685 > fi
10686 >
10687 >
10688 >  as_lineno_1=$LINENO
10689 >  as_lineno_2=$LINENO
10690 >  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10691 >  test "x$as_lineno_1" != "x$as_lineno_2" &&
10692 >  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
10693 >  # Find who we are.  Look in the path if we contain no path at all
10694 >  # relative or not.
10695 >  case $0 in
10696 >    *[\\/]* ) as_myself=$0 ;;
10697 >    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10698 > for as_dir in $PATH
10699 > do
10700 >  IFS=$as_save_IFS
10701 >  test -z "$as_dir" && as_dir=.
10702 >  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10703 > done
10704 >
10705 >       ;;
10706 >  esac
10707 >  # We did not find ourselves, most probably we were run as `sh COMMAND'
10708 >  # in which case we are not to be found in the path.
10709 >  if test "x$as_myself" = x; then
10710 >    as_myself=$0
10711 >  fi
10712 >  if test ! -f "$as_myself"; then
10713 >    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10714 > echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10715 >   { (exit 1); exit 1; }; }
10716 >  fi
10717 >  case $CONFIG_SHELL in
10718 >  '')
10719 >    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10720 > for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10721 > do
10722 >  IFS=$as_save_IFS
10723 >  test -z "$as_dir" && as_dir=.
10724 >  for as_base in sh bash ksh sh5; do
10725 >         case $as_dir in
10726 >         /*)
10727 >           if ("$as_dir/$as_base" -c '
10728 >  as_lineno_1=$LINENO
10729 >  as_lineno_2=$LINENO
10730 >  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10731 >  test "x$as_lineno_1" != "x$as_lineno_2" &&
10732 >  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
10733 >             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
10734 >             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
10735 >             CONFIG_SHELL=$as_dir/$as_base
10736 >             export CONFIG_SHELL
10737 >             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10738 >           fi;;
10739 >         esac
10740 >       done
10741 > done
10742 > ;;
10743 >  esac
10744 >
10745 >  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10746 >  # uniformly replaced by the line number.  The first 'sed' inserts a
10747 >  # line-number line before each line; the second 'sed' does the real
10748 >  # work.  The second script uses 'N' to pair each line-number line
10749 >  # with the numbered line, and appends trailing '-' during
10750 >  # substitution so that $LINENO is not a special case at line end.
10751 >  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10752 >  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
10753 >  sed '=' <$as_myself |
10754 >    sed '
10755 >      N
10756 >      s,$,-,
10757 >      : loop
10758 >      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10759 >      t loop
10760 >      s,-$,,
10761 >      s,^['$as_cr_digits']*\n,,
10762 >    ' >$as_me.lineno &&
10763 >  chmod +x $as_me.lineno ||
10764 >    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10765 > echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10766 >   { (exit 1); exit 1; }; }
10767 >
10768 >  # Don't try to exec as it changes $[0], causing all sort of problems
10769 >  # (the dirname of $[0] is not the place where we might find the
10770 >  # original and so on.  Autoconf is especially sensible to this).
10771 >  . ./$as_me.lineno
10772 >  # Exit status is that of the last command.
10773 >  exit
10774 > }
10775 >
10776 >
10777 > case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10778 >  *c*,-n*) ECHO_N= ECHO_C='
10779 > ' ECHO_T='      ' ;;
10780 >  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10781 >  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
10782 > esac
10783 >
10784 > if expr a : '\(a\)' >/dev/null 2>&1; then
10785 >  as_expr=expr
10786 > else
10787 >  as_expr=false
10788 > fi
10789 >
10790 > rm -f conf$$ conf$$.exe conf$$.file
10791 > echo >conf$$.file
10792 > if ln -s conf$$.file conf$$ 2>/dev/null; then
10793 >  # We could just check for DJGPP; but this test a) works b) is more generic
10794 >  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10795 >  if test -f conf$$.exe; then
10796 >    # Don't use ln at all; we don't have any links
10797 >    as_ln_s='cp -p'
10798 >  else
10799 >    as_ln_s='ln -s'
10800 >  fi
10801 > elif ln conf$$.file conf$$ 2>/dev/null; then
10802 >  as_ln_s=ln
10803 > else
10804 >  as_ln_s='cp -p'
10805 > fi
10806 > rm -f conf$$ conf$$.exe conf$$.file
10807 >
10808 > if mkdir -p . 2>/dev/null; then
10809 >  as_mkdir_p=:
10810 > else
10811 >  test -d ./-p && rmdir ./-p
10812 >  as_mkdir_p=false
10813 > fi
10814 >
10815 > as_executable_p="test -f"
10816 >
10817 > # Sed expression to map a string onto a valid CPP name.
10818 > as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10819 >
10820 > # Sed expression to map a string onto a valid variable name.
10821 > as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10822 >
10823 >
10824 > # IFS
10825 > # We need space, tab and new line, in precisely that order.
10826 > as_nl='
10827 > '
10828 > IFS="   $as_nl"
10829 >
10830 > # CDPATH.
10831 > $as_unset CDPATH
10832 >
10833 > exec 6>&1
10834 >
10835 > # Open the log real soon, to keep \$[0] and so on meaningful, and to
10836 > # report actual input values of CONFIG_FILES etc. instead of their
10837 > # values after options handling.  Logging --version etc. is OK.
10838 > exec 5>>config.log
10839 > {
10840 >  echo
10841 >  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10842 > ## Running $as_me. ##
10843 > _ASBOX
10844 > } >&5
10845 > cat >&5 <<_CSEOF
10846 >
10847 > This file was extended by OOPSE $as_me 2.0, which was
10848 > generated by GNU Autoconf 2.59.  Invocation command line was
10849 >
10850 >  CONFIG_FILES    = $CONFIG_FILES
10851 >  CONFIG_HEADERS  = $CONFIG_HEADERS
10852 >  CONFIG_LINKS    = $CONFIG_LINKS
10853 >  CONFIG_COMMANDS = $CONFIG_COMMANDS
10854 >  $ $0 $@
10855 >
10856 > _CSEOF
10857 > echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10858 > echo >&5
10859 > _ACEOF
10860 >
10861 > # Files that config.status was made for.
10862 > if test -n "$ac_config_files"; then
10863 >  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10864 > fi
10865 >
10866 > if test -n "$ac_config_headers"; then
10867 >  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10868 > fi
10869 >
10870 > if test -n "$ac_config_links"; then
10871 >  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10872 > fi
10873 >
10874 > if test -n "$ac_config_commands"; then
10875 >  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10876 > fi
10877 >
10878 > cat >>$CONFIG_STATUS <<\_ACEOF
10879 >
10880 > ac_cs_usage="\
10881 > \`$as_me' instantiates files from templates according to the
10882 > current configuration.
10883 >
10884 > Usage: $0 [OPTIONS] [FILE]...
10885 >
10886 >  -h, --help       print this help, then exit
10887 >  -V, --version    print version number, then exit
10888 >  -q, --quiet      do not print progress messages
10889 >  -d, --debug      don't remove temporary files
10890 >      --recheck    update $as_me by reconfiguring in the same conditions
10891 >  --file=FILE[:TEMPLATE]
10892 >                   instantiate the configuration file FILE
10893 >  --header=FILE[:TEMPLATE]
10894 >                   instantiate the configuration header FILE
10895 >
10896 > Configuration files:
10897 > $config_files
10898 >
10899 > Configuration headers:
10900 > $config_headers
10901 >
10902 > Configuration links:
10903 > $config_links
10904 >
10905 > Report bugs to <bug-autoconf@gnu.org>."
10906 > _ACEOF
10907 >
10908 > cat >>$CONFIG_STATUS <<_ACEOF
10909 > ac_cs_version="\\
10910 > OOPSE config.status 2.0
10911 > configured by $0, generated by GNU Autoconf 2.59,
10912 >  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10913 >
10914 > Copyright (C) 2003 Free Software Foundation, Inc.
10915 > This config.status script is free software; the Free Software Foundation
10916 > gives unlimited permission to copy, distribute and modify it."
10917 > srcdir=$srcdir
10918 > INSTALL="$INSTALL"
10919 > _ACEOF
10920 >
10921 > cat >>$CONFIG_STATUS <<\_ACEOF
10922 > # If no file are specified by the user, then we need to provide default
10923 > # value.  By we need to know if files were specified by the user.
10924 > ac_need_defaults=:
10925 > while test $# != 0
10926 > do
10927 >  case $1 in
10928 >  --*=*)
10929 >    ac_option=`expr "x$1" : 'x\([^=]*\)='`
10930 >    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10931 >    ac_shift=:
10932 >    ;;
10933 >  -*)
10934 >    ac_option=$1
10935 >    ac_optarg=$2
10936 >    ac_shift=shift
10937 >    ;;
10938 >  *) # This is not an option, so the user has probably given explicit
10939 >     # arguments.
10940 >     ac_option=$1
10941 >     ac_need_defaults=false;;
10942 >  esac
10943 >
10944 >  case $ac_option in
10945 >  # Handling of the options.
10946 > _ACEOF
10947 > cat >>$CONFIG_STATUS <<\_ACEOF
10948 >  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10949 >    ac_cs_recheck=: ;;
10950 >  --version | --vers* | -V )
10951 >    echo "$ac_cs_version"; exit 0 ;;
10952 >  --he | --h)
10953 >    # Conflict between --help and --header
10954 >    { { echo "$as_me:$LINENO: error: ambiguous option: $1
10955 > Try \`$0 --help' for more information." >&5
10956 > echo "$as_me: error: ambiguous option: $1
10957 > Try \`$0 --help' for more information." >&2;}
10958 >   { (exit 1); exit 1; }; };;
10959 >  --help | --hel | -h )
10960 >    echo "$ac_cs_usage"; exit 0 ;;
10961 >  --debug | --d* | -d )
10962 >    debug=: ;;
10963 >  --file | --fil | --fi | --f )
10964 >    $ac_shift
10965 >    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10966 >    ac_need_defaults=false;;
10967 >  --header | --heade | --head | --hea )
10968 >    $ac_shift
10969 >    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10970 >    ac_need_defaults=false;;
10971 >  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10972 >  | -silent | --silent | --silen | --sile | --sil | --si | --s)
10973 >    ac_cs_silent=: ;;
10974 >
10975 >  # This is an error.
10976 >  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10977 > Try \`$0 --help' for more information." >&5
10978 > echo "$as_me: error: unrecognized option: $1
10979 > Try \`$0 --help' for more information." >&2;}
10980 >   { (exit 1); exit 1; }; } ;;
10981 >
10982 >  *) ac_config_targets="$ac_config_targets $1" ;;
10983 >
10984 >  esac
10985 >  shift
10986 > done
10987 >
10988 > ac_configure_extra_args=
10989 >
10990 > if $ac_cs_silent; then
10991 >  exec 6>/dev/null
10992 >  ac_configure_extra_args="$ac_configure_extra_args --silent"
10993 > fi
10994 >
10995 > _ACEOF
10996 > cat >>$CONFIG_STATUS <<_ACEOF
10997 > if \$ac_cs_recheck; then
10998 >  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10999 >  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11000 > fi
11001 >
11002 > _ACEOF
11003 >
11004 >
11005 >
11006 >
11007 >
11008 > cat >>$CONFIG_STATUS <<\_ACEOF
11009 > for ac_config_target in $ac_config_targets
11010 > do
11011 >  case "$ac_config_target" in
11012 >  # Handling of arguments.
11013 >  "make/Makefile" ) CONFIG_FILES="$CONFIG_FILES make/Makefile" ;;
11014 >  "src/utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
11015 >  "src/applications/nanoRodBuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/applications/nanoRodBuilder/Makefile" ;;
11016 >  "scripts/filepp" ) CONFIG_FILES="$CONFIG_FILES scripts/filepp" ;;
11017 >  "src/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS src/getopt.h:src/utils/gnugetopt.h" ;;
11018 >  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11019 >  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11020 > echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11021 >   { (exit 1); exit 1; }; };;
11022 >  esac
11023 > done
11024 >
11025 > # If the user did not use the arguments to specify the items to instantiate,
11026 > # then the envvar interface is used.  Set only those that are not.
11027 > # We use the long form for the default assignment because of an extremely
11028 > # bizarre bug on SunOS 4.1.3.
11029 > if $ac_need_defaults; then
11030 >  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11031 >  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11032 >  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
11033 > fi
11034 >
11035 > # Have a temporary directory for convenience.  Make it in the build tree
11036 > # simply because there is no reason to put it here, and in addition,
11037 > # creating and moving files from /tmp can sometimes cause problems.
11038 > # Create a temporary directory, and hook for its removal unless debugging.
11039 > $debug ||
11040 > {
11041 >  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11042 >  trap '{ (exit 1); exit 1; }' 1 2 13 15
11043 > }
11044 >
11045 > # Create a (secure) tmp directory for tmp files.
11046 >
11047 > {
11048 >  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11049 >  test -n "$tmp" && test -d "$tmp"
11050 > }  ||
11051 > {
11052 >  tmp=./confstat$$-$RANDOM
11053 >  (umask 077 && mkdir $tmp)
11054 > } ||
11055 > {
11056 >   echo "$me: cannot create a temporary directory in ." >&2
11057 >   { (exit 1); exit 1; }
11058 > }
11059 >
11060 > _ACEOF
11061 >
11062 > cat >>$CONFIG_STATUS <<_ACEOF
11063 >
11064 > #
11065 > # CONFIG_FILES section.
11066 > #
11067 >
11068 > # No need to generate the scripts if there are no CONFIG_FILES.
11069 > # This happens for instance when ./config.status config.h
11070 > if test -n "\$CONFIG_FILES"; then
11071 >  # Protect against being on the right side of a sed subst in config.status.
11072 >  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11073 >   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11074 > s,@SHELL@,$SHELL,;t t
11075 > s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11076 > s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11077 > s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11078 > s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11079 > s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11080 > s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11081 > s,@exec_prefix@,$exec_prefix,;t t
11082 > s,@prefix@,$prefix,;t t
11083 > s,@program_transform_name@,$program_transform_name,;t t
11084 > s,@bindir@,$bindir,;t t
11085 > s,@sbindir@,$sbindir,;t t
11086 > s,@libexecdir@,$libexecdir,;t t
11087 > s,@datadir@,$datadir,;t t
11088 > s,@sysconfdir@,$sysconfdir,;t t
11089 > s,@sharedstatedir@,$sharedstatedir,;t t
11090 > s,@localstatedir@,$localstatedir,;t t
11091 > s,@libdir@,$libdir,;t t
11092 > s,@includedir@,$includedir,;t t
11093 > s,@oldincludedir@,$oldincludedir,;t t
11094 > s,@infodir@,$infodir,;t t
11095 > s,@mandir@,$mandir,;t t
11096 > s,@build_alias@,$build_alias,;t t
11097 > s,@host_alias@,$host_alias,;t t
11098 > s,@target_alias@,$target_alias,;t t
11099 > s,@DEFS@,$DEFS,;t t
11100 > s,@ECHO_C@,$ECHO_C,;t t
11101 > s,@ECHO_N@,$ECHO_N,;t t
11102 > s,@ECHO_T@,$ECHO_T,;t t
11103 > s,@LIBS@,$LIBS,;t t
11104 > s,@PROGNAME@,$PROGNAME,;t t
11105 > s,@debug@,$debug,;t t
11106 > s,@build@,$build,;t t
11107 > s,@build_cpu@,$build_cpu,;t t
11108 > s,@build_vendor@,$build_vendor,;t t
11109 > s,@build_os@,$build_os,;t t
11110 > s,@host@,$host,;t t
11111 > s,@host_cpu@,$host_cpu,;t t
11112 > s,@host_vendor@,$host_vendor,;t t
11113 > s,@host_os@,$host_os,;t t
11114 > s,@CC@,$CC,;t t
11115 > s,@CFLAGS@,$CFLAGS,;t t
11116 > s,@LDFLAGS@,$LDFLAGS,;t t
11117 > s,@CPPFLAGS@,$CPPFLAGS,;t t
11118 > s,@ac_ct_CC@,$ac_ct_CC,;t t
11119 > s,@EXEEXT@,$EXEEXT,;t t
11120 > s,@OBJEXT@,$OBJEXT,;t t
11121 > s,@CXX@,$CXX,;t t
11122 > s,@CXXFLAGS@,$CXXFLAGS,;t t
11123 > s,@ac_ct_CXX@,$ac_ct_CXX,;t t
11124 > s,@OOPSE_TEMPLATE_FLAGS@,$OOPSE_TEMPLATE_FLAGS,;t t
11125 > s,@EXTRA_CC_FLAG@,$EXTRA_CC_FLAG,;t t
11126 > s,@F90@,$F90,;t t
11127 > s,@F90FLAGS@,$F90FLAGS,;t t
11128 > s,@ac_ct_F90@,$ac_ct_F90,;t t
11129 > s,@PREPFLAG@,$PREPFLAG,;t t
11130 > s,@PREPDEFFLAG@,$PREPDEFFLAG,;t t
11131 > s,@F90LIBS@,$F90LIBS,;t t
11132 > s,@F90_FUNC@,$F90_FUNC,;t t
11133 > s,@F90_FUNC_@,$F90_FUNC_,;t t
11134 > s,@MOD@,$MOD,;t t
11135 > s,@F90_WORK_FILES_ARG@,$F90_WORK_FILES_ARG,;t t
11136 > s,@MODDIRFLAG@,$MODDIRFLAG,;t t
11137 > s,@F90MODINCSPEC@,$F90MODINCSPEC,;t t
11138 > s,@F90_MODULE_NAMES@,$F90_MODULE_NAMES,;t t
11139 > s,@CPP@,$CPP,;t t
11140 > s,@EGREP@,$EGREP,;t t
11141 > s,@CXXCPP@,$CXXCPP,;t t
11142 > s,@LIBOBJS@,$LIBOBJS,;t t
11143 > s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11144 > s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11145 > s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11146 > s,@LN_S@,$LN_S,;t t
11147 > s,@SET_MAKE@,$SET_MAKE,;t t
11148 > s,@RANLIB@,$RANLIB,;t t
11149 > s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11150 > s,@YACC@,$YACC,;t t
11151 > s,@LEX@,$LEX,;t t
11152 > s,@LEXLIB@,$LEXLIB,;t t
11153 > s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
11154 > s,@PERLINTERP@,$PERLINTERP,;t t
11155 > s,@PERL_SHEBANG@,$PERL_SHEBANG,;t t
11156 > s,@AR@,$AR,;t t
11157 > s,@PS@,$PS,;t t
11158 > s,@MPI_LIB_DIR@,$MPI_LIB_DIR,;t t
11159 > s,@MPI_INC_DIR@,$MPI_INC_DIR,;t t
11160 > s,@MPI_F90_INC@,$MPI_F90_INC,;t t
11161 > s,@MPI_LIB@,$MPI_LIB,;t t
11162 > s,@MPI_F90_LIB@,$MPI_F90_LIB,;t t
11163 > s,@USE_MPI@,$USE_MPI,;t t
11164 > s,@USE_CGAL@,$USE_CGAL,;t t
11165 > s,@CGAL_INC_DIR@,$CGAL_INC_DIR,;t t
11166 > s,@CGAL_LIB_DIR@,$CGAL_LIB_DIR,;t t
11167 > s,@CGAL_RLIB_DIR@,$CGAL_RLIB_DIR,;t t
11168 > s,@CGAL_DEFINES@,$CGAL_DEFINES,;t t
11169 > s,@CGAL_CXXFLAGS@,$CGAL_CXXFLAGS,;t t
11170 > s,@CGAL_LIBS@,$CGAL_LIBS,;t t
11171 > s,@DOXYGEN@,$DOXYGEN,;t t
11172 > s,@DOT@,$DOT,;t t
11173 > s,@DOC@,$DOC,;t t
11174 > s,@enable_dot@,$enable_dot,;t t
11175 > s,@enable_html_docs@,$enable_html_docs,;t t
11176 > s,@enable_latex_docs@,$enable_latex_docs,;t t
11177 > s,@BATEXT@,$BATEXT,;t t
11178 > s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11179 > s,@OOPSE@,$OOPSE,;t t
11180 > s,@OOPSE_HOME@,$OOPSE_HOME,;t t
11181 > s,@SUBDIRS@,$SUBDIRS,;t t
11182 > s,@FFLAGS@,$FFLAGS,;t t
11183 > s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11184 > CEOF
11185 >
11186 > _ACEOF
11187 >
11188 >  cat >>$CONFIG_STATUS <<\_ACEOF
11189 >  # Split the substitutions into bite-sized pieces for seds with
11190 >  # small command number limits, like on Digital OSF/1 and HP-UX.
11191 >  ac_max_sed_lines=48
11192 >  ac_sed_frag=1 # Number of current file.
11193 >  ac_beg=1 # First line for current file.
11194 >  ac_end=$ac_max_sed_lines # Line after last line for current file.
11195 >  ac_more_lines=:
11196 >  ac_sed_cmds=
11197 >  while $ac_more_lines; do
11198 >    if test $ac_beg -gt 1; then
11199 >      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11200 >    else
11201 >      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11202 >    fi
11203 >    if test ! -s $tmp/subs.frag; then
11204 >      ac_more_lines=false
11205 >    else
11206 >      # The purpose of the label and of the branching condition is to
11207 >      # speed up the sed processing (if there are no `@' at all, there
11208 >      # is no need to browse any of the substitutions).
11209 >      # These are the two extra sed commands mentioned above.
11210 >      (echo ':t
11211 >  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11212 >      if test -z "$ac_sed_cmds"; then
11213 >        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11214 >      else
11215 >        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11216 >      fi
11217 >      ac_sed_frag=`expr $ac_sed_frag + 1`
11218 >      ac_beg=$ac_end
11219 >      ac_end=`expr $ac_end + $ac_max_sed_lines`
11220 >    fi
11221 >  done
11222 >  if test -z "$ac_sed_cmds"; then
11223 >    ac_sed_cmds=cat
11224 >  fi
11225 > fi # test -n "$CONFIG_FILES"
11226 >
11227 > _ACEOF
11228 > cat >>$CONFIG_STATUS <<\_ACEOF
11229 > for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11230 >  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11231 >  case $ac_file in
11232 >  - | *:- | *:-:* ) # input from stdin
11233 >        cat >$tmp/stdin
11234 >        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11235 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11236 >  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11237 >        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11238 >  * )   ac_file_in=$ac_file.in ;;
11239 >  esac
11240 >
11241 >  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11242 >  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11243 > $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11244 >         X"$ac_file" : 'X\(//\)[^/]' \| \
11245 >         X"$ac_file" : 'X\(//\)$' \| \
11246 >         X"$ac_file" : 'X\(/\)' \| \
11247 >         .     : '\(.\)' 2>/dev/null ||
11248 > echo X"$ac_file" |
11249 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11250 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11251 >          /^X\(\/\/\)$/{ s//\1/; q; }
11252 >          /^X\(\/\).*/{ s//\1/; q; }
11253 >          s/.*/./; q'`
11254 >  { if $as_mkdir_p; then
11255 >    mkdir -p "$ac_dir"
11256 >  else
11257 >    as_dir="$ac_dir"
11258 >    as_dirs=
11259 >    while test ! -d "$as_dir"; do
11260 >      as_dirs="$as_dir $as_dirs"
11261 >      as_dir=`(dirname "$as_dir") 2>/dev/null ||
11262 > $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11263 >         X"$as_dir" : 'X\(//\)[^/]' \| \
11264 >         X"$as_dir" : 'X\(//\)$' \| \
11265 >         X"$as_dir" : 'X\(/\)' \| \
11266 >         .     : '\(.\)' 2>/dev/null ||
11267 > echo X"$as_dir" |
11268 >    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11269 >          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11270 >          /^X\(\/\/\)$/{ s//\1/; q; }
11271 >          /^X\(\/\).*/{ s//\1/; q; }
11272 >          s/.*/./; q'`
11273 >    done
11274 >    test ! -n "$as_dirs" || mkdir $as_dirs
11275 >  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11276 > echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11277 >   { (exit 1); exit 1; }; }; }
11278 >
11279 >  ac_builddir=.
11280 >
11281 > if test "$ac_dir" != .; then
11282 >  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11283 >  # A "../" for each directory in $ac_dir_suffix.
11284 >  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11285 > else
11286 >  ac_dir_suffix= ac_top_builddir=
11287 > fi
11288 >
11289 > case $srcdir in
11290 >  .)  # No --srcdir option.  We are building in place.
11291 >    ac_srcdir=.
11292 >    if test -z "$ac_top_builddir"; then
11293 >       ac_top_srcdir=.
11294 >    else
11295 >       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11296 >    fi ;;
11297 >  [\\/]* | ?:[\\/]* )  # Absolute path.
11298 >    ac_srcdir=$srcdir$ac_dir_suffix;
11299 >    ac_top_srcdir=$srcdir ;;
11300 >  *) # Relative path.
11301 >    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11302 >    ac_top_srcdir=$ac_top_builddir$srcdir ;;
11303 > esac
11304 >
11305 > # Do not use `cd foo && pwd` to compute absolute paths, because
11306 > # the directories may not exist.
11307 > case `pwd` in
11308 > .) ac_abs_builddir="$ac_dir";;
11309 > *)
11310 >  case "$ac_dir" in
11311 >  .) ac_abs_builddir=`pwd`;;
11312 >  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11313 >  *) ac_abs_builddir=`pwd`/"$ac_dir";;
11314 >  esac;;
11315 > esac
11316 > case $ac_abs_builddir in
11317 > .) ac_abs_top_builddir=${ac_top_builddir}.;;
11318 > *)
11319 >  case ${ac_top_builddir}. in
11320 >  .) ac_abs_top_builddir=$ac_abs_builddir;;
11321 >  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11322 >  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11323 >  esac;;
11324 > esac
11325 > case $ac_abs_builddir in
11326 > .) ac_abs_srcdir=$ac_srcdir;;
11327 > *)
11328 >  case $ac_srcdir in
11329 >  .) ac_abs_srcdir=$ac_abs_builddir;;
11330 >  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11331 >  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11332 >  esac;;
11333 > esac
11334 > case $ac_abs_builddir in
11335 > .) ac_abs_top_srcdir=$ac_top_srcdir;;
11336 > *)
11337 >  case $ac_top_srcdir in
11338 >  .) ac_abs_top_srcdir=$ac_abs_builddir;;
11339 >  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11340 >  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11341 >  esac;;
11342 > esac
11343 >
11344 >
11345 >  case $INSTALL in
11346 >  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11347 >  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11348 >  esac
11349 >
11350 >  if test x"$ac_file" != x-; then
11351 >    { echo "$as_me:$LINENO: creating $ac_file" >&5
11352 > echo "$as_me: creating $ac_file" >&6;}
11353 >    rm -f "$ac_file"
11354 >  fi
11355 >  # Let's still pretend it is `configure' which instantiates (i.e., don't
11356 >  # use $as_me), people would be surprised to read:
11357 >  #    /* config.h.  Generated by config.status.  */
11358 >  if test x"$ac_file" = x-; then
11359 >    configure_input=
11360 >  else
11361 >    configure_input="$ac_file.  "
11362 >  fi
11363 >  configure_input=$configure_input"Generated from `echo $ac_file_in |
11364 >                                     sed 's,.*/,,'` by configure."
11365 >
11366 >  # First look for the input files in the build tree, otherwise in the
11367 >  # src tree.
11368 >  ac_file_inputs=`IFS=:
11369 >    for f in $ac_file_in; do
11370 >      case $f in
11371 >      -) echo $tmp/stdin ;;
11372 >      [\\/$]*)
11373 >         # Absolute (can't be DOS-style, as IFS=:)
11374 >         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11375 > echo "$as_me: error: cannot find input file: $f" >&2;}
11376 >   { (exit 1); exit 1; }; }
11377 >         echo "$f";;
11378 >      *) # Relative
11379 >         if test -f "$f"; then
11380 >           # Build tree
11381 >           echo "$f"
11382 >         elif test -f "$srcdir/$f"; then
11383 >           # Source tree
11384 >           echo "$srcdir/$f"
11385 >         else
11386 >           # /dev/null tree
11387 >           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11388 > echo "$as_me: error: cannot find input file: $f" >&2;}
11389 >   { (exit 1); exit 1; }; }
11390 >         fi;;
11391 >      esac
11392 >    done` || { (exit 1); exit 1; }
11393 > _ACEOF
11394 > cat >>$CONFIG_STATUS <<_ACEOF
11395 >  sed "$ac_vpsub
11396 > $extrasub
11397 > _ACEOF
11398 > cat >>$CONFIG_STATUS <<\_ACEOF
11399 > :t
11400 > /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11401 > s,@configure_input@,$configure_input,;t t
11402 > s,@srcdir@,$ac_srcdir,;t t
11403 > s,@abs_srcdir@,$ac_abs_srcdir,;t t
11404 > s,@top_srcdir@,$ac_top_srcdir,;t t
11405 > s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11406 > s,@builddir@,$ac_builddir,;t t
11407 > s,@abs_builddir@,$ac_abs_builddir,;t t
11408 > s,@top_builddir@,$ac_top_builddir,;t t
11409 > s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11410 > s,@INSTALL@,$ac_INSTALL,;t t
11411 > " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11412 >  rm -f $tmp/stdin
11413 >  if test x"$ac_file" != x-; then
11414 >    mv $tmp/out $ac_file
11415 >  else
11416 >    cat $tmp/out
11417 >    rm -f $tmp/out
11418 >  fi
11419 >
11420 >  # Run the commands associated with the file.
11421 >  case $ac_file in
11422 >    make/Makefile ) chmod 0755 scripts/* ;;
11423 >    src/utils/Makefile ) chmod 0755 scripts/* ;;
11424 >    src/applications/nanoRodBuilder/Makefile ) chmod 0755 scripts/* ;;
11425 >    scripts/filepp ) chmod 0755 scripts/* ;;
11426 >  esac
11427   done
11428   _ACEOF
11429   cat >>$CONFIG_STATUS <<\_ACEOF

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines