Changeset 123


Ignore:
Timestamp:
Oct 18, 2006 4:24:39 PM (13 years ago)
Author:
andreasw
Message:

check for C compiler when we search for Fortran compiler to make sure we have consistent compilers

Location:
ThirdParty/Lapack/stable/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/stable/1.0/Makefile.in

    r94 r123  
    103103ACLOCAL = @ACLOCAL@
    104104ADDLIBS = @ADDLIBS@
     105ADD_CFLAGS = @ADD_CFLAGS@
    105106ADD_FFLAGS = @ADD_FFLAGS@
    106107ALWAYS_FALSE_FALSE = @ALWAYS_FALSE_FALSE@
     
    118119CC = @CC@
    119120CCDEPMODE = @CCDEPMODE@
     121CDEFS = @CDEFS@
    120122CFLAGS = @CFLAGS@
    121123CPP = @CPP@
     
    126128CXXFLAGS = @CXXFLAGS@
    127129CYGPATH_W = @CYGPATH_W@
     130DBG_CFLAGS = @DBG_CFLAGS@
    128131DBG_FFLAGS = @DBG_FFLAGS@
    129132DEFS = @DEFS@
     
    157160MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
    158161MAKEINFO = @MAKEINFO@
     162MPICC = @MPICC@
    159163MPIF77 = @MPIF77@
    160164OBJEXT = @OBJEXT@
     165OPT_CFLAGS = @OPT_CFLAGS@
    161166OPT_FFLAGS = @OPT_FFLAGS@
    162167PACKAGE = @PACKAGE@
  • ThirdParty/Lapack/stable/1.0/configure

    r100 r123  
    473473#endif"
    474474
    475 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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS LDFLAGS ac_ct_F77 EXEEXT OBJEXT MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE CC CFLAGS CPPFLAGS ac_ct_CC DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
     475ac_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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL LT_LDFLAGS RPATH_FLAGS LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    914914ac_cv_env_target_alias_set=${target_alias+set}
    915915ac_cv_env_target_alias_value=$target_alias
     916ac_env_CDEFS_set=${CDEFS+set}
     917ac_env_CDEFS_value=$CDEFS
     918ac_cv_env_CDEFS_set=${CDEFS+set}
     919ac_cv_env_CDEFS_value=$CDEFS
     920ac_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     921ac_env_ADD_CFLAGS_value=$ADD_CFLAGS
     922ac_cv_env_ADD_CFLAGS_set=${ADD_CFLAGS+set}
     923ac_cv_env_ADD_CFLAGS_value=$ADD_CFLAGS
     924ac_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     925ac_env_DBG_CFLAGS_value=$DBG_CFLAGS
     926ac_cv_env_DBG_CFLAGS_set=${DBG_CFLAGS+set}
     927ac_cv_env_DBG_CFLAGS_value=$DBG_CFLAGS
     928ac_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     929ac_env_OPT_CFLAGS_value=$OPT_CFLAGS
     930ac_cv_env_OPT_CFLAGS_set=${OPT_CFLAGS+set}
     931ac_cv_env_OPT_CFLAGS_value=$OPT_CFLAGS
     932ac_env_CC_set=${CC+set}
     933ac_env_CC_value=$CC
     934ac_cv_env_CC_set=${CC+set}
     935ac_cv_env_CC_value=$CC
     936ac_env_CFLAGS_set=${CFLAGS+set}
     937ac_env_CFLAGS_value=$CFLAGS
     938ac_cv_env_CFLAGS_set=${CFLAGS+set}
     939ac_cv_env_CFLAGS_value=$CFLAGS
     940ac_env_LDFLAGS_set=${LDFLAGS+set}
     941ac_env_LDFLAGS_value=$LDFLAGS
     942ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
     943ac_cv_env_LDFLAGS_value=$LDFLAGS
     944ac_env_CPPFLAGS_set=${CPPFLAGS+set}
     945ac_env_CPPFLAGS_value=$CPPFLAGS
     946ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
     947ac_cv_env_CPPFLAGS_value=$CPPFLAGS
     948ac_env_MPICC_set=${MPICC+set}
     949ac_env_MPICC_value=$MPICC
     950ac_cv_env_MPICC_set=${MPICC+set}
     951ac_cv_env_MPICC_value=$MPICC
    916952ac_env_ADD_FFLAGS_set=${ADD_FFLAGS+set}
    917953ac_env_ADD_FFLAGS_value=$ADD_FFLAGS
     
    934970ac_cv_env_FFLAGS_set=${FFLAGS+set}
    935971ac_cv_env_FFLAGS_value=$FFLAGS
    936 ac_env_LDFLAGS_set=${LDFLAGS+set}
    937 ac_env_LDFLAGS_value=$LDFLAGS
    938 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
    939 ac_cv_env_LDFLAGS_value=$LDFLAGS
    940972ac_env_MPIF77_set=${MPIF77+set}
    941973ac_env_MPIF77_value=$MPIF77
    942974ac_cv_env_MPIF77_set=${MPIF77+set}
    943975ac_cv_env_MPIF77_value=$MPIF77
    944 ac_env_CC_set=${CC+set}
    945 ac_env_CC_value=$CC
    946 ac_cv_env_CC_set=${CC+set}
    947 ac_cv_env_CC_value=$CC
    948 ac_env_CFLAGS_set=${CFLAGS+set}
    949 ac_env_CFLAGS_value=$CFLAGS
    950 ac_cv_env_CFLAGS_set=${CFLAGS+set}
    951 ac_cv_env_CFLAGS_value=$CFLAGS
    952 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
    953 ac_env_CPPFLAGS_value=$CPPFLAGS
    954 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
    955 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
    956976ac_env_CPP_set=${CPP+set}
    957977ac_env_CPP_value=$CPP
     
    10531073  --enable-debug          compile all projects with debug options tests
    10541074  --enable-debug-lapack compile this project (Lapack) with debug options
     1075  --enable-doscompile     Under Cygwin, compile so that executables run under
     1076                          DOS (default: disabled)
    10551077  --enable-static[=PKGS]
    10561078                          build static libraries [default=no]
     1079  --disable-dependency-tracking  speeds up one-time build
     1080  --enable-dependency-tracking   do not reject slow dependency extractors
    10571081  --enable-maintainer-mode  enable make rules and dependencies not useful
    10581082                          (and sometimes confusing) to the casual installer
    1059   --disable-dependency-tracking  speeds up one-time build
    1060   --enable-dependency-tracking   do not reject slow dependency extractors
    10611083  --enable-shared[=PKGS]
    10621084                          build shared libraries [default=yes]
     
    10781100
    10791101Some influential environment variables:
     1102  CDEFS       Additional -D flags to be used when compiling C code.
     1103  ADD_CFLAGS  Additional C compiler options
     1104  DBG_CFLAGS  Debug C compiler options
     1105  OPT_CFLAGS  Optimize C compiler options
     1106  CC          C compiler command
     1107  CFLAGS      C compiler flags
     1108  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
     1109              nonstandard directory <lib dir>
     1110  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
     1111              headers in a nonstandard directory <include dir>
     1112  MPICC       C MPI Compiler
    10801113  ADD_FFLAGS  Additional Fortran compiler options
    10811114  DBG_FFLAGS  Debug Fortran compiler options
     
    10831116  F77         Fortran 77 compiler command
    10841117  FFLAGS      Fortran 77 compiler flags
    1085   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
    1086               nonstandard directory <lib dir>
    10871118  MPIF77      Fortran MPI Compiler
    1088   CC          C compiler command
    1089   CFLAGS      C compiler flags
    1090   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
    1091               headers in a nonstandard directory <include dir>
    10921119  CPP         C preprocessor
    10931120  CXX         C++ compiler command
     
    17491776esac
    17501777
    1751 
    1752 
    1753 ac_ext=f
    1754 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    1755 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1756 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    1757 
    1758 
    1759 
    1760 
    1761 
    1762 
    1763 coin_has_f77=yes
    1764 
    1765 save_fflags="$FFLAGS"
     1778# Check whether --enable-doscompile or --disable-doscompile was given.
     1779if test "${enable_doscompile+set}" = set; then
     1780  enableval="$enable_doscompile"
     1781  if test "$enable_doscompile = yes"; then
     1782  case $build in
     1783    *-cygwin*) ;;
     1784    *) { { echo "$as_me:$LINENO: error: --enable-doscompile option makes only sense under Cygwin" >&5
     1785echo "$as_me: error: --enable-doscompile option makes only sense under Cygwin" >&2;}
     1786   { (exit 1); exit 1; }; } ;;
     1787  esac
     1788fi
     1789else
     1790  enable_doscompile=no
     1791fi;
     1792
     1793
     1794
     1795
     1796ac_ext=c
     1797ac_cpp='$CPP $CPPFLAGS'
     1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1800ac_compiler_gnu=$ac_cv_c_compiler_gnu
     1801
     1802
     1803# For consistency, we set the C compiler to the same value of the C++
     1804# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
     1805if test x"$CXX" != x; then
     1806  case "$CXX" in
     1807    cl*)
     1808      if test x"$CC" = x; then
     1809        CC="$CXX"
     1810        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
     1811echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
     1812      fi
     1813      ;;
     1814  esac
     1815fi
     1816
     1817
     1818
     1819
     1820
     1821
     1822coin_has_cc=yes
     1823
     1824save_cflags="$CFLAGS"
    17661825case $build in
    17671826  *-cygwin* | *-mingw*)
    1768              comps="gfortran g77 ifort fl32" ;;
    1769   *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     1827             comps="gcc cl" ;;
     1828  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
     1829  *)         comps="xlc_r xlc cc gcc pgcc icc" ;;
    17701830esac
    17711831
    17721832# We delete the cached value, since the test might not have been
    17731833# performed with out choise of compilers earlier
    1774 $as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
    1775 ac_ext=f
    1776 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    1777 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    1778 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     1834$as_unset ac_cv_prog_CC || test "${ac_cv_prog_CC+set}" != set || { ac_cv_prog_CC=; export ac_cv_prog_CC; }
     1835ac_ext=c
     1836ac_cpp='$CPP $CPPFLAGS'
     1837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     1838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     1839ac_compiler_gnu=$ac_cv_c_compiler_gnu
    17791840if test -n "$ac_tool_prefix"; then
    17801841  for ac_prog in $comps
     
    17841845echo "$as_me:$LINENO: checking for $ac_word" >&5
    17851846echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1786 if test "${ac_cv_prog_F77+set}" = set; then
     1847if test "${ac_cv_prog_CC+set}" = set; then
    17871848  echo $ECHO_N "(cached) $ECHO_C" >&6
    17881849else
    1789   if test -n "$F77"; then
    1790   ac_cv_prog_F77="$F77" # Let the user override the test.
     1850  if test -n "$CC"; then
     1851  ac_cv_prog_CC="$CC" # Let the user override the test.
    17911852else
    17921853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    17971858  for ac_exec_ext in '' $ac_executable_extensions; do
    17981859  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1799     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     1860    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    18001861    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    18011862    break 2
     
    18061867fi
    18071868fi
    1808 F77=$ac_cv_prog_F77
    1809 if test -n "$F77"; then
    1810   echo "$as_me:$LINENO: result: $F77" >&5
    1811 echo "${ECHO_T}$F77" >&6
     1869CC=$ac_cv_prog_CC
     1870if test -n "$CC"; then
     1871  echo "$as_me:$LINENO: result: $CC" >&5
     1872echo "${ECHO_T}$CC" >&6
    18121873else
    18131874  echo "$as_me:$LINENO: result: no" >&5
     
    18151876fi
    18161877
    1817     test -n "$F77" && break
     1878    test -n "$CC" && break
    18181879  done
    18191880fi
    1820 if test -z "$F77"; then
    1821   ac_ct_F77=$F77
     1881if test -z "$CC"; then
     1882  ac_ct_CC=$CC
    18221883  for ac_prog in $comps
    18231884do
     
    18261887echo "$as_me:$LINENO: checking for $ac_word" >&5
    18271888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    1828 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     1889if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    18291890  echo $ECHO_N "(cached) $ECHO_C" >&6
    18301891else
    1831   if test -n "$ac_ct_F77"; then
    1832   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     1892  if test -n "$ac_ct_CC"; then
     1893  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    18331894else
    18341895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     
    18391900  for ac_exec_ext in '' $ac_executable_extensions; do
    18401901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    1841     ac_cv_prog_ac_ct_F77="$ac_prog"
     1902    ac_cv_prog_ac_ct_CC="$ac_prog"
    18421903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    18431904    break 2
     
    18481909fi
    18491910fi
    1850 ac_ct_F77=$ac_cv_prog_ac_ct_F77
    1851 if test -n "$ac_ct_F77"; then
    1852   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
    1853 echo "${ECHO_T}$ac_ct_F77" >&6
     1911ac_ct_CC=$ac_cv_prog_ac_ct_CC
     1912if test -n "$ac_ct_CC"; then
     1913  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
     1914echo "${ECHO_T}$ac_ct_CC" >&6
    18541915else
    18551916  echo "$as_me:$LINENO: result: no" >&5
     
    18571918fi
    18581919
    1859   test -n "$ac_ct_F77" && break
     1920  test -n "$ac_ct_CC" && break
    18601921done
    18611922
    1862   F77=$ac_ct_F77
    1863 fi
    1864 
     1923  CC=$ac_ct_CC
     1924fi
     1925
     1926
     1927test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
     1928See \`config.log' for more details." >&5
     1929echo "$as_me: error: no acceptable C compiler found in \$PATH
     1930See \`config.log' for more details." >&2;}
     1931   { (exit 1); exit 1; }; }
    18651932
    18661933# Provide some information about the compiler.
    1867 echo "$as_me:1867:" \
    1868      "checking for Fortran 77 compiler version" >&5
     1934echo "$as_me:$LINENO:" \
     1935     "checking for C compiler version" >&5
    18691936ac_compiler=`set X $ac_compile; echo $2`
    18701937{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     
    18831950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
    18841951  (exit $ac_status); }
    1885 rm -f a.out
    18861952
    18871953cat >conftest.$ac_ext <<_ACEOF
    1888       program main
    1889 
    1890       end
     1954/* confdefs.h.  */
     1955_ACEOF
     1956cat confdefs.h >>conftest.$ac_ext
     1957cat >>conftest.$ac_ext <<_ACEOF
     1958/* end confdefs.h.  */
     1959
     1960int
     1961main ()
     1962{
     1963
     1964  ;
     1965  return 0;
     1966}
    18911967_ACEOF
    18921968ac_clean_files_save=$ac_clean_files
     
    18951971# It will help us diagnose broken compilers, and finding out an intuition
    18961972# of exeext.
    1897 echo "$as_me:$LINENO: checking for Fortran 77 compiler default output file name" >&5
    1898 echo $ECHO_N "checking for Fortran 77 compiler default output file name... $ECHO_C" >&6
     1973echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
     1974echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
    18991975ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
    19001976if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
     
    19392015sed 's/^/| /' conftest.$ac_ext >&5
    19402016
    1941 { { echo "$as_me:$LINENO: error: Fortran 77 compiler cannot create executables
     2017{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
    19422018See \`config.log' for more details." >&5
    1943 echo "$as_me: error: Fortran 77 compiler cannot create executables
     2019echo "$as_me: error: C compiler cannot create executables
    19442020See \`config.log' for more details." >&2;}
    19452021   { (exit 77); exit 77; }; }
     
    19522028# Check the compiler produces executables we can run.  If not, either
    19532029# the compiler is broken, or we cross compile.
    1954 echo "$as_me:$LINENO: checking whether the Fortran 77 compiler works" >&5
    1955 echo $ECHO_N "checking whether the Fortran 77 compiler works... $ECHO_C" >&6
     2030echo "$as_me:$LINENO: checking whether the C compiler works" >&5
     2031echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
    19562032# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
    19572033# If not cross compiling, check that we can run a simple program.
     
    19682044        cross_compiling=yes
    19692045    else
    1970         { { echo "$as_me:$LINENO: error: cannot run Fortran 77 compiled programs.
     2046        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
    19712047If you meant to cross compile, use \`--host'.
    19722048See \`config.log' for more details." >&5
    1973 echo "$as_me: error: cannot run Fortran 77 compiled programs.
     2049echo "$as_me: error: cannot run C compiled programs.
    19742050If you meant to cross compile, use \`--host'.
    19752051See \`config.log' for more details." >&2;}
     
    20322108else
    20332109  cat >conftest.$ac_ext <<_ACEOF
    2034       program main
    2035 
    2036       end
     2110/* confdefs.h.  */
     2111_ACEOF
     2112cat confdefs.h >>conftest.$ac_ext
     2113cat >>conftest.$ac_ext <<_ACEOF
     2114/* end confdefs.h.  */
     2115
     2116int
     2117main ()
     2118{
     2119
     2120  ;
     2121  return 0;
     2122}
    20372123_ACEOF
    20382124rm -f conftest.o conftest.obj
     
    20662152OBJEXT=$ac_cv_objext
    20672153ac_objext=$OBJEXT
    2068 # If we don't use `.F' as extension, the preprocessor is not run on the
    2069 # input file.  (Note that this only needs to work for GNU compilers.)
    2070 ac_save_ext=$ac_ext
    2071 ac_ext=F
    2072 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
    2073 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
    2074 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
    2075   echo $ECHO_N "(cached) $ECHO_C" >&6
    2076 else
    2077   cat >conftest.$ac_ext <<_ACEOF
    2078       program main
    2079 #ifndef __GNUC__
    2080        choke me
    2081 #endif
    2082 
    2083       end
    2084 _ACEOF
    2085 rm -f conftest.$ac_objext
    2086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2087   (eval $ac_compile) 2>conftest.er1
    2088   ac_status=$?
    2089   grep -v '^ *+' conftest.er1 >conftest.err
    2090   rm -f conftest.er1
    2091   cat conftest.err >&5
    2092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2093   (exit $ac_status); } &&
    2094          { ac_try='test -z "$ac_f77_werror_flag"
    2095                          || test ! -s conftest.err'
    2096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2097   (eval $ac_try) 2>&5
    2098   ac_status=$?
    2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2100   (exit $ac_status); }; } &&
    2101          { ac_try='test -s conftest.$ac_objext'
    2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2103   (eval $ac_try) 2>&5
    2104   ac_status=$?
    2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2106   (exit $ac_status); }; }; then
    2107   ac_compiler_gnu=yes
    2108 else
    2109   echo "$as_me: failed program was:" >&5
    2110 sed 's/^/| /' conftest.$ac_ext >&5
    2111 
    2112 ac_compiler_gnu=no
    2113 fi
    2114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2115 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
    2116 
    2117 fi
    2118 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
    2119 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
    2120 ac_ext=$ac_save_ext
    2121 ac_test_FFLAGS=${FFLAGS+set}
    2122 ac_save_FFLAGS=$FFLAGS
    2123 FFLAGS=
    2124 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
    2125 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
    2126 if test "${ac_cv_prog_f77_g+set}" = set; then
    2127   echo $ECHO_N "(cached) $ECHO_C" >&6
    2128 else
    2129   FFLAGS=-g
    2130 cat >conftest.$ac_ext <<_ACEOF
    2131       program main
    2132 
    2133       end
    2134 _ACEOF
    2135 rm -f conftest.$ac_objext
    2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    2137   (eval $ac_compile) 2>conftest.er1
    2138   ac_status=$?
    2139   grep -v '^ *+' conftest.er1 >conftest.err
    2140   rm -f conftest.er1
    2141   cat conftest.err >&5
    2142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2143   (exit $ac_status); } &&
    2144          { ac_try='test -z "$ac_f77_werror_flag"
    2145                          || test ! -s conftest.err'
    2146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2147   (eval $ac_try) 2>&5
    2148   ac_status=$?
    2149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2150   (exit $ac_status); }; } &&
    2151          { ac_try='test -s conftest.$ac_objext'
    2152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2153   (eval $ac_try) 2>&5
    2154   ac_status=$?
    2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2156   (exit $ac_status); }; }; then
    2157   ac_cv_prog_f77_g=yes
    2158 else
    2159   echo "$as_me: failed program was:" >&5
    2160 sed 's/^/| /' conftest.$ac_ext >&5
    2161 
    2162 ac_cv_prog_f77_g=no
    2163 fi
    2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    2165 
    2166 fi
    2167 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
    2168 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
    2169 if test "$ac_test_FFLAGS" = set; then
    2170   FFLAGS=$ac_save_FFLAGS
    2171 elif test $ac_cv_prog_f77_g = yes; then
    2172   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    2173     FFLAGS="-g -O2"
    2174   else
    2175     FFLAGS="-g"
    2176   fi
    2177 else
    2178   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
    2179     FFLAGS="-O2"
    2180   else
    2181     FFLAGS=
    2182   fi
    2183 fi
    2184 
    2185 G77=`test $ac_compiler_gnu = yes && echo yes`
    2186 ac_ext=f
    2187 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    2188 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2189 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    2190 
    2191 FFLAGS="$save_fflags"
    2192 
    2193 # Check if a project specific FFLAGS variable has been set
    2194 if test x$COIN_PRJCT != x; then
    2195   eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
    2196   if test x$coin_tmp = xset; then
    2197     eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
    2198   fi
    2199 fi
    2200 
    2201 if test x"$FFLAGS" = x; then
    2202 
    2203   coin_add_fflags=
    2204   coin_opt_fflags=
    2205   coin_dbg_fflags=
    2206   coin_warn_fflags=
    2207 
    2208   if test "$G77" = "yes"; then
    2209     coin_opt_fflags="-O3 -fomit-frame-pointer"
    2210     coin_add_fflags="-pipe"
    2211     coin_dbg_fflags="-g"
    2212     case $build in
    2213       *-cygwin*)
    2214         FFLAGS="-mno-cygwin"
    2215         cat >conftest.$ac_ext <<_ACEOF
    2216       program main
    2217       write(*,*) 'Hello world'
    2218       end
    2219 _ACEOF
    2220 rm -f conftest.$ac_objext conftest$ac_exeext
    2221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2222   (eval $ac_link) 2>conftest.er1
    2223   ac_status=$?
    2224   grep -v '^ *+' conftest.er1 >conftest.err
    2225   rm -f conftest.er1
    2226   cat conftest.err >&5
    2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2228   (exit $ac_status); } &&
    2229          { ac_try='test -z "$ac_f77_werror_flag"
    2230                          || test ! -s conftest.err'
    2231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2232   (eval $ac_try) 2>&5
    2233   ac_status=$?
    2234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2235   (exit $ac_status); }; } &&
    2236          { ac_try='test -s conftest$ac_exeext'
    2237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2238   (eval $ac_try) 2>&5
    2239   ac_status=$?
    2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2241   (exit $ac_status); }; }; then
    2242   coin_add_fflags="-mno-cygwin $coin_add_fflags"
    2243 else
    2244   echo "$as_me: failed program was:" >&5
    2245 sed 's/^/| /' conftest.$ac_ext >&5
    2246 
    2247 fi
    2248 rm -f conftest.err conftest.$ac_objext \
    2249       conftest$ac_exeext conftest.$ac_ext
    2250         FFLAGS=
    2251       ;;
    2252     esac
    2253   else
    2254     case $build in
    2255       *-cygwin* | *-mingw*)
    2256         case $F77 in
    2257           ifort* | */ifort*)
    2258             coin_opt_fflags='-O3'
    2259             coin_add_fflags='-nologo -MT'
    2260             coin_dbg_fflags='-debug'
    2261           ;;
    2262         esac
    2263         ;;
    2264       *-linux-*)
    2265         case $F77 in
    2266           ifc* | */ifc* | ifort* | */ifort*)
    2267             coin_opt_fflags="-O3 -ip"
    2268             coin_add_fflags="-cm -w90 -w95"
    2269             coin_dbg_fflags="-g -CA -CB -CS"
    2270             # Check if -i_dynamic is necessary (for new glibc library)
    2271             FFLAGS=
    2272             cat >conftest.$ac_ext <<_ACEOF
    2273       program main
    2274       write(*,*) 'Hello world'
    2275       end
    2276 _ACEOF
    2277 rm -f conftest.$ac_objext conftest$ac_exeext
    2278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2279   (eval $ac_link) 2>conftest.er1
    2280   ac_status=$?
    2281   grep -v '^ *+' conftest.er1 >conftest.err
    2282   rm -f conftest.er1
    2283   cat conftest.err >&5
    2284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2285   (exit $ac_status); } &&
    2286          { ac_try='test -z "$ac_f77_werror_flag"
    2287                          || test ! -s conftest.err'
    2288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2289   (eval $ac_try) 2>&5
    2290   ac_status=$?
    2291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2292   (exit $ac_status); }; } &&
    2293          { ac_try='test -s conftest$ac_exeext'
    2294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2295   (eval $ac_try) 2>&5
    2296   ac_status=$?
    2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2298   (exit $ac_status); }; }; then
    2299   :
    2300 else
    2301   echo "$as_me: failed program was:" >&5
    2302 sed 's/^/| /' conftest.$ac_ext >&5
    2303 
    2304 coin_add_fflags="-i_dynamic $coin_add_fflags"
    2305 fi
    2306 rm -f conftest.err conftest.$ac_objext \
    2307       conftest$ac_exeext conftest.$ac_ext
    2308             ;;
    2309           pgf77* | */pgf77* | pgf90* | */pgf90*)
    2310             coin_opt_fflags="-fast"
    2311             coin_add_fflags="-Kieee -pc 64"
    2312             coin_dbg_fflags="-g"
    2313           ;;
    2314         esac
    2315         ;;
    2316       *-ibm-*)
    2317         case "$F77" in
    2318           xlf* | */xlf* | mpxlf* | */mpxlf* )
    2319             coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
    2320             coin_add_fflags="-bmaxdata:0x80000000"
    2321             coin_dbg_fflags="-g -C"
    2322             ;;
    2323         esac
    2324         ;;
    2325       *-hp-*)
    2326         coin_opt_fflags="+O3"
    2327         coin_add_fflags="+U77"
    2328         coin_dbg_fflags="-C -g"
    2329         ;;
    2330       *-sun-*)
    2331         coin_opt_fflags="-O4"
    2332         coin_dbg_fflags="-g"
    2333         ;;
    2334       *-sgi-*)
    2335         coin_opt_fflags="-O5 -OPT:Olimit=0"
    2336         coin_dbg_fflags="-g"
    2337         ;;
    2338     esac
    2339   fi
    2340 
    2341   if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
    2342     coin_dbg_fflags="-g"
    2343   fi
    2344 
    2345   if test -z "$coin_opt_fflags"; then
    2346     # Try if -O option works if nothing else is set
    2347     FFLAGS=-O
    2348     cat >conftest.$ac_ext <<_ACEOF
    2349       program main
    2350       integer i
    2351       end
    2352 _ACEOF
    2353 rm -f conftest.$ac_objext conftest$ac_exeext
    2354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2355   (eval $ac_link) 2>conftest.er1
    2356   ac_status=$?
    2357   grep -v '^ *+' conftest.er1 >conftest.err
    2358   rm -f conftest.er1
    2359   cat conftest.err >&5
    2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2361   (exit $ac_status); } &&
    2362          { ac_try='test -z "$ac_f77_werror_flag"
    2363                          || test ! -s conftest.err'
    2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2365   (eval $ac_try) 2>&5
    2366   ac_status=$?
    2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2368   (exit $ac_status); }; } &&
    2369          { ac_try='test -s conftest$ac_exeext'
    2370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2371   (eval $ac_try) 2>&5
    2372   ac_status=$?
    2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2374   (exit $ac_status); }; }; then
    2375   coin_opt_fflags="-O"
    2376 else
    2377   echo "$as_me: failed program was:" >&5
    2378 sed 's/^/| /' conftest.$ac_ext >&5
    2379 
    2380 fi
    2381 rm -f conftest.err conftest.$ac_objext \
    2382       conftest$ac_exeext conftest.$ac_ext
    2383   fi
    2384 
    2385   if test x${DBG_FFLAGS+set} != xset; then
    2386     DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
    2387   fi
    2388   if test x${OPT_FFLAGS+set} != xset; then
    2389     OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
    2390   fi
    2391 
    2392   DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
    2393   OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
    2394 
    2395   if test "$coin_debug_compile" = "true"; then
    2396     FFLAGS="$DBG_FFLAGS"
    2397   else
    2398     FFLAGS="$OPT_FFLAGS"
    2399   fi
    2400 else
    2401   FFLAGS="$FFLAGS $ADD_FFLAGS"
    2402   if test x${DBG_FFLAGS+set} != xset; then
    2403     DBG_FFLAGS="$FFLAGS"
    2404   fi
    2405   if test x${OPT_FFLAGS+set} != xset; then
    2406     OPT_FFLAGS="$FFLAGS"
    2407   fi
    2408 fi
    2409 
    2410 # Try if FFLAGS works
    2411 cat >conftest.$ac_ext <<_ACEOF
    2412       program main
    2413       integer i
    2414       end
    2415 _ACEOF
    2416 rm -f conftest.$ac_objext conftest$ac_exeext
    2417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2418   (eval $ac_link) 2>conftest.er1
    2419   ac_status=$?
    2420   grep -v '^ *+' conftest.er1 >conftest.err
    2421   rm -f conftest.er1
    2422   cat conftest.err >&5
    2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2424   (exit $ac_status); } &&
    2425          { ac_try='test -z "$ac_f77_werror_flag"
    2426                          || test ! -s conftest.err'
    2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2428   (eval $ac_try) 2>&5
    2429   ac_status=$?
    2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2431   (exit $ac_status); }; } &&
    2432          { ac_try='test -s conftest$ac_exeext'
    2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2434   (eval $ac_try) 2>&5
    2435   ac_status=$?
    2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2437   (exit $ac_status); }; }; then
    2438   :
    2439 else
    2440   echo "$as_me: failed program was:" >&5
    2441 sed 's/^/| /' conftest.$ac_ext >&5
    2442 
    2443 FFLAGS=
    2444 fi
    2445 rm -f conftest.err conftest.$ac_objext \
    2446       conftest$ac_exeext conftest.$ac_ext
    2447 if test -z "$FFLAGS"; then
    2448   { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
    2449 echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
    2450   FFLAGS='-O'
    2451   cat >conftest.$ac_ext <<_ACEOF
    2452       program main
    2453       integer i
    2454       end
    2455 _ACEOF
    2456 rm -f conftest.$ac_objext conftest$ac_exeext
    2457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    2458   (eval $ac_link) 2>conftest.er1
    2459   ac_status=$?
    2460   grep -v '^ *+' conftest.er1 >conftest.err
    2461   rm -f conftest.er1
    2462   cat conftest.err >&5
    2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2464   (exit $ac_status); } &&
    2465          { ac_try='test -z "$ac_f77_werror_flag"
    2466                          || test ! -s conftest.err'
    2467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2468   (eval $ac_try) 2>&5
    2469   ac_status=$?
    2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2471   (exit $ac_status); }; } &&
    2472          { ac_try='test -s conftest$ac_exeext'
    2473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    2474   (eval $ac_try) 2>&5
    2475   ac_status=$?
    2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    2477   (exit $ac_status); }; }; then
    2478   :
    2479 else
    2480   echo "$as_me: failed program was:" >&5
    2481 sed 's/^/| /' conftest.$ac_ext >&5
    2482 
    2483 FFLAGS=
    2484 fi
    2485 rm -f conftest.err conftest.$ac_objext \
    2486       conftest$ac_exeext conftest.$ac_ext
    2487   if test -z "$FFLAGS"; then
    2488     { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
    2489 echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
    2490   fi
    2491 fi
    2492 
    2493 { echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
    2494 echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
    2495 
    2496 
    2497 if test x"$MPIF77" = x; then :; else
    2498   { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
    2499 echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
    2500   F77="$MPIF77"
    2501 fi
    2502 
    2503 case "$F77" in
    2504   ifort*)
    2505     case $build in
    2506   *-mingw*)
    2507     if test "${LD+set}" = set; then :; else
    2508       LD=link
    2509     fi
    2510     ;;
    2511 esac
    2512 
    2513     ;;
    2514 esac
    2515 
    2516 ac_ext=c
    2517 ac_cpp='$CPP $CPPFLAGS'
    2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2521 
    2522 
    2523 
    2524 # Initialize autotools
    2525 
    2526 # On Cygwin, building DLLs doesn't work
    2527 case $build in
    2528   *-cygwin*)
    2529     coin_disable_shared=yes
    2530     platform=Cygwin
    2531   ;;
    2532   *-mingw*)
    2533     coin_disable_shared=yes
    2534     platform="Msys"
    2535 #    case "$CXX" in
    2536 #      cl*)
    2537 #        coin_disable_shared=yes
    2538 #        platform="Msys with cl"
    2539 #    ;;
    2540 #    esac
    2541   ;;
    2542 esac
    2543 if test x"$coin_disable_shared" = xyes; then
    2544   if test x"$enable_shared" = xyes; then
    2545     { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
    2546 echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
    2547   fi
    2548   enable_shared=no
    2549 fi
    2550 # By default, we only want the shared objects to be compiled
    2551 # Check whether --enable-static or --disable-static was given.
    2552 if test "${enable_static+set}" = set; then
    2553   enableval="$enable_static"
    2554   p=${PACKAGE-default}
    2555     case $enableval in
    2556     yes) enable_static=yes ;;
    2557     no) enable_static=no ;;
    2558     *)
    2559      enable_static=no
    2560       # Look at the argument we got.  We use all the common list separators.
    2561       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
    2562       for pkg in $enableval; do
    2563         IFS="$lt_save_ifs"
    2564         if test "X$pkg" = "X$p"; then
    2565           enable_static=yes
    2566         fi
    2567       done
    2568       IFS="$lt_save_ifs"
    2569       ;;
    2570     esac
    2571 else
    2572   enable_static=no
    2573 fi;
    2574 
    2575 
    2576 
    2577 echo "$as_me:$LINENO: checking for egrep" >&5
    2578 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
    2579 if test "${ac_cv_prog_egrep+set}" = set; then
    2580   echo $ECHO_N "(cached) $ECHO_C" >&6
    2581 else
    2582   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
    2583     then ac_cv_prog_egrep='grep -E'
    2584     else ac_cv_prog_egrep='egrep'
    2585     fi
    2586 fi
    2587 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
    2588 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
    2589  EGREP=$ac_cv_prog_egrep
    2590 
    2591 
    2592 am__api_version="1.9"
    2593 # Find a good install program.  We prefer a C program (faster),
    2594 # so one script is as good as another.  But avoid the broken or
    2595 # incompatible versions:
    2596 # SysV /etc/install, /usr/sbin/install
    2597 # SunOS /usr/etc/install
    2598 # IRIX /sbin/install
    2599 # AIX /bin/install
    2600 # AmigaOS /C/install, which installs bootblocks on floppy discs
    2601 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
    2602 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
    2603 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
    2604 # OS/2's system install, which has a completely different semantic
    2605 # ./install, which can be erroneously created by make from ./install.sh.
    2606 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
    2607 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
    2608 if test -z "$INSTALL"; then
    2609 if test "${ac_cv_path_install+set}" = set; then
    2610   echo $ECHO_N "(cached) $ECHO_C" >&6
    2611 else
    2612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2613 for as_dir in $PATH
    2614 do
    2615   IFS=$as_save_IFS
    2616   test -z "$as_dir" && as_dir=.
    2617   # Account for people who put trailing slashes in PATH elements.
    2618 case $as_dir/ in
    2619   ./ | .// | /cC/* | \
    2620   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
    2621   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
    2622   /usr/ucb/* ) ;;
    2623   *)
    2624     # OSF1 and SCO ODT 3.0 have their own names for install.
    2625     # Don't use installbsd from OSF since it installs stuff as root
    2626     # by default.
    2627     for ac_prog in ginstall scoinst install; do
    2628       for ac_exec_ext in '' $ac_executable_extensions; do
    2629         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
    2630           if test $ac_prog = install &&
    2631             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2632             # AIX install.  It has an incompatible calling convention.
    2633             :
    2634           elif test $ac_prog = install &&
    2635             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
    2636             # program-specific install script used by HP pwplus--don't use.
    2637             :
    2638           else
    2639             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
    2640             break 3
    2641           fi
    2642         fi
    2643       done
    2644     done
    2645     ;;
    2646 esac
    2647 done
    2648 
    2649 
    2650 fi
    2651   if test "${ac_cv_path_install+set}" = set; then
    2652     INSTALL=$ac_cv_path_install
    2653   else
    2654     # As a last resort, use the slow shell script.  We don't cache a
    2655     # path for INSTALL within a source directory, because that will
    2656     # break other packages using the cache if that directory is
    2657     # removed, or if the path is relative.
    2658     INSTALL=$ac_install_sh
    2659   fi
    2660 fi
    2661 echo "$as_me:$LINENO: result: $INSTALL" >&5
    2662 echo "${ECHO_T}$INSTALL" >&6
    2663 
    2664 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
    2665 # It thinks the first close brace ends the variable substitution.
    2666 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
    2667 
    2668 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
    2669 
    2670 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
    2671 
    2672 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
    2673 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
    2674 # Just in case
    2675 sleep 1
    2676 echo timestamp > conftest.file
    2677 # Do `set' in a subshell so we don't clobber the current shell's
    2678 # arguments.  Must try -L first in case configure is actually a
    2679 # symlink; some systems play weird games with the mod time of symlinks
    2680 # (eg FreeBSD returns the mod time of the symlink's containing
    2681 # directory).
    2682 if (
    2683    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
    2684    if test "$*" = "X"; then
    2685       # -L didn't work.
    2686       set X `ls -t $srcdir/configure conftest.file`
    2687    fi
    2688    rm -f conftest.file
    2689    if test "$*" != "X $srcdir/configure conftest.file" \
    2690       && test "$*" != "X conftest.file $srcdir/configure"; then
    2691 
    2692       # If neither matched, then we have a broken ls.  This can happen
    2693       # if, for instance, CONFIG_SHELL is bash and it inherits a
    2694       # broken ls alias from the environment.  This has actually
    2695       # happened.  Such a system could not be considered "sane".
    2696       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
    2697 alias in your environment" >&5
    2698 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
    2699 alias in your environment" >&2;}
    2700    { (exit 1); exit 1; }; }
    2701    fi
    2702 
    2703    test "$2" = conftest.file
    2704    )
    2705 then
    2706    # Ok.
    2707    :
    2708 else
    2709    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
    2710 Check your system clock" >&5
    2711 echo "$as_me: error: newly created file is older than distributed files!
    2712 Check your system clock" >&2;}
    2713    { (exit 1); exit 1; }; }
    2714 fi
    2715 echo "$as_me:$LINENO: result: yes" >&5
    2716 echo "${ECHO_T}yes" >&6
    2717 test "$program_prefix" != NONE &&
    2718   program_transform_name="s,^,$program_prefix,;$program_transform_name"
    2719 # Use a double $ so make ignores it.
    2720 test "$program_suffix" != NONE &&
    2721   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
    2722 # Double any \ or $.  echo might interpret backslashes.
    2723 # By default was `s,x,x', remove it if useless.
    2724 cat <<\_ACEOF >conftest.sed
    2725 s/[\\$]/&&/g;s/;s,x,x,$//
    2726 _ACEOF
    2727 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
    2728 rm conftest.sed
    2729 
    2730 # expand $ac_aux_dir to an absolute path
    2731 am_aux_dir=`cd $ac_aux_dir && pwd`
    2732 
    2733 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
    2734 # Use eval to expand $SHELL
    2735 if eval "$MISSING --run true"; then
    2736   am_missing_run="$MISSING --run "
    2737 else
    2738   am_missing_run=
    2739   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
    2740 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
    2741 fi
    2742 
    2743 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
    2744   # We used to keeping the `.' as first argument, in order to
    2745   # allow $(mkdir_p) to be used without argument.  As in
    2746   #   $(mkdir_p) $(somedir)
    2747   # where $(somedir) is conditionally defined.  However this is wrong
    2748   # for two reasons:
    2749   #  1. if the package is installed by a user who cannot write `.'
    2750   #     make install will fail,
    2751   #  2. the above comment should most certainly read
    2752   #     $(mkdir_p) $(DESTDIR)$(somedir)
    2753   #     so it does not work when $(somedir) is undefined and
    2754   #     $(DESTDIR) is not.
    2755   #  To support the latter case, we have to write
    2756   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
    2757   #  so the `.' trick is pointless.
    2758   mkdir_p='mkdir -p --'
    2759 else
    2760   # On NextStep and OpenStep, the `mkdir' command does not
    2761   # recognize any option.  It will interpret all options as
    2762   # directories to create, and then abort because `.' already
    2763   # exists.
    2764   for d in ./-p ./--version;
    2765   do
    2766     test -d $d && rmdir $d
    2767   done
    2768   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
    2769   if test -f "$ac_aux_dir/mkinstalldirs"; then
    2770     mkdir_p='$(mkinstalldirs)'
    2771   else
    2772     mkdir_p='$(install_sh) -d'
    2773   fi
    2774 fi
    2775 
    2776 for ac_prog in gawk mawk nawk awk
    2777 do
    2778   # Extract the first word of "$ac_prog", so it can be a program name with args.
    2779 set dummy $ac_prog; ac_word=$2
    2780 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2782 if test "${ac_cv_prog_AWK+set}" = set; then
    2783   echo $ECHO_N "(cached) $ECHO_C" >&6
    2784 else
    2785   if test -n "$AWK"; then
    2786   ac_cv_prog_AWK="$AWK" # Let the user override the test.
    2787 else
    2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2789 for as_dir in $PATH
    2790 do
    2791   IFS=$as_save_IFS
    2792   test -z "$as_dir" && as_dir=.
    2793   for ac_exec_ext in '' $ac_executable_extensions; do
    2794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2795     ac_cv_prog_AWK="$ac_prog"
    2796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2797     break 2
    2798   fi
    2799 done
    2800 done
    2801 
    2802 fi
    2803 fi
    2804 AWK=$ac_cv_prog_AWK
    2805 if test -n "$AWK"; then
    2806   echo "$as_me:$LINENO: result: $AWK" >&5
    2807 echo "${ECHO_T}$AWK" >&6
    2808 else
    2809   echo "$as_me:$LINENO: result: no" >&5
    2810 echo "${ECHO_T}no" >&6
    2811 fi
    2812 
    2813   test -n "$AWK" && break
    2814 done
    2815 
    2816 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
    2817 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
    2818 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
    2819 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
    2820   echo $ECHO_N "(cached) $ECHO_C" >&6
    2821 else
    2822   cat >conftest.make <<\_ACEOF
    2823 all:
    2824         @echo 'ac_maketemp="$(MAKE)"'
    2825 _ACEOF
    2826 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    2827 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
    2828 if test -n "$ac_maketemp"; then
    2829   eval ac_cv_prog_make_${ac_make}_set=yes
    2830 else
    2831   eval ac_cv_prog_make_${ac_make}_set=no
    2832 fi
    2833 rm -f conftest.make
    2834 fi
    2835 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
    2836   echo "$as_me:$LINENO: result: yes" >&5
    2837 echo "${ECHO_T}yes" >&6
    2838   SET_MAKE=
    2839 else
    2840   echo "$as_me:$LINENO: result: no" >&5
    2841 echo "${ECHO_T}no" >&6
    2842   SET_MAKE="MAKE=${MAKE-make}"
    2843 fi
    2844 
    2845 rm -rf .tst 2>/dev/null
    2846 mkdir .tst 2>/dev/null
    2847 if test -d .tst; then
    2848   am__leading_dot=.
    2849 else
    2850   am__leading_dot=_
    2851 fi
    2852 rmdir .tst 2>/dev/null
    2853 
    2854 DEPDIR="${am__leading_dot}deps"
    2855 
    2856           ac_config_commands="$ac_config_commands depfiles"
    2857 
    2858 
    2859 am_make=${MAKE-make}
    2860 cat > confinc << 'END'
    2861 am__doit:
    2862         @echo done
    2863 .PHONY: am__doit
    2864 END
    2865 # If we don't find an include directive, just comment out the code.
    2866 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
    2867 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
    2868 am__include="#"
    2869 am__quote=
    2870 _am_result=none
    2871 # First try GNU make style include.
    2872 echo "include confinc" > confmf
    2873 # We grep out `Entering directory' and `Leaving directory'
    2874 # messages which can occur if `w' ends up in MAKEFLAGS.
    2875 # In particular we don't look at `^make:' because GNU make might
    2876 # be invoked under some other name (usually "gmake"), in which
    2877 # case it prints its new name instead of `make'.
    2878 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
    2879    am__include=include
    2880    am__quote=
    2881    _am_result=GNU
    2882 fi
    2883 # Now try BSD make style include.
    2884 if test "$am__include" = "#"; then
    2885    echo '.include "confinc"' > confmf
    2886    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
    2887       am__include=.include
    2888       am__quote="\""
    2889       _am_result=BSD
    2890    fi
    2891 fi
    2892 
    2893 
    2894 echo "$as_me:$LINENO: result: $_am_result" >&5
    2895 echo "${ECHO_T}$_am_result" >&6
    2896 rm -f confinc confmf
    2897 
    2898 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
    2899 if test "${enable_dependency_tracking+set}" = set; then
    2900   enableval="$enable_dependency_tracking"
    2901 
    2902 fi;
    2903 if test "x$enable_dependency_tracking" != xno; then
    2904   am_depcomp="$ac_aux_dir/depcomp"
    2905   AMDEPBACKSLASH='\'
    2906 fi
    2907 
    2908 
    2909 if test "x$enable_dependency_tracking" != xno; then
    2910   AMDEP_TRUE=
    2911   AMDEP_FALSE='#'
    2912 else
    2913   AMDEP_TRUE='#'
    2914   AMDEP_FALSE=
    2915 fi
    2916 
    2917 
    2918 
    2919 ac_ext=c
    2920 ac_cpp='$CPP $CPPFLAGS'
    2921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    2922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    2923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    2924 if test -n "$ac_tool_prefix"; then
    2925   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
    2926 set dummy ${ac_tool_prefix}gcc; ac_word=$2
    2927 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2929 if test "${ac_cv_prog_CC+set}" = set; then
    2930   echo $ECHO_N "(cached) $ECHO_C" >&6
    2931 else
    2932   if test -n "$CC"; then
    2933   ac_cv_prog_CC="$CC" # Let the user override the test.
    2934 else
    2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2936 for as_dir in $PATH
    2937 do
    2938   IFS=$as_save_IFS
    2939   test -z "$as_dir" && as_dir=.
    2940   for ac_exec_ext in '' $ac_executable_extensions; do
    2941   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2942     ac_cv_prog_CC="${ac_tool_prefix}gcc"
    2943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2944     break 2
    2945   fi
    2946 done
    2947 done
    2948 
    2949 fi
    2950 fi
    2951 CC=$ac_cv_prog_CC
    2952 if test -n "$CC"; then
    2953   echo "$as_me:$LINENO: result: $CC" >&5
    2954 echo "${ECHO_T}$CC" >&6
    2955 else
    2956   echo "$as_me:$LINENO: result: no" >&5
    2957 echo "${ECHO_T}no" >&6
    2958 fi
    2959 
    2960 fi
    2961 if test -z "$ac_cv_prog_CC"; then
    2962   ac_ct_CC=$CC
    2963   # Extract the first word of "gcc", so it can be a program name with args.
    2964 set dummy gcc; ac_word=$2
    2965 echo "$as_me:$LINENO: checking for $ac_word" >&5
    2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    2967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    2968   echo $ECHO_N "(cached) $ECHO_C" >&6
    2969 else
    2970   if test -n "$ac_ct_CC"; then
    2971   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    2972 else
    2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2974 for as_dir in $PATH
    2975 do
    2976   IFS=$as_save_IFS
    2977   test -z "$as_dir" && as_dir=.
    2978   for ac_exec_ext in '' $ac_executable_extensions; do
    2979   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2980     ac_cv_prog_ac_ct_CC="gcc"
    2981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    2982     break 2
    2983   fi
    2984 done
    2985 done
    2986 
    2987 fi
    2988 fi
    2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    2990 if test -n "$ac_ct_CC"; then
    2991   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    2992 echo "${ECHO_T}$ac_ct_CC" >&6
    2993 else
    2994   echo "$as_me:$LINENO: result: no" >&5
    2995 echo "${ECHO_T}no" >&6
    2996 fi
    2997 
    2998   CC=$ac_ct_CC
    2999 else
    3000   CC="$ac_cv_prog_CC"
    3001 fi
    3002 
    3003 if test -z "$CC"; then
    3004   if test -n "$ac_tool_prefix"; then
    3005   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
    3006 set dummy ${ac_tool_prefix}cc; ac_word=$2
    3007 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3009 if test "${ac_cv_prog_CC+set}" = set; then
    3010   echo $ECHO_N "(cached) $ECHO_C" >&6
    3011 else
    3012   if test -n "$CC"; then
    3013   ac_cv_prog_CC="$CC" # Let the user override the test.
    3014 else
    3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3016 for as_dir in $PATH
    3017 do
    3018   IFS=$as_save_IFS
    3019   test -z "$as_dir" && as_dir=.
    3020   for ac_exec_ext in '' $ac_executable_extensions; do
    3021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3022     ac_cv_prog_CC="${ac_tool_prefix}cc"
    3023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3024     break 2
    3025   fi
    3026 done
    3027 done
    3028 
    3029 fi
    3030 fi
    3031 CC=$ac_cv_prog_CC
    3032 if test -n "$CC"; then
    3033   echo "$as_me:$LINENO: result: $CC" >&5
    3034 echo "${ECHO_T}$CC" >&6
    3035 else
    3036   echo "$as_me:$LINENO: result: no" >&5
    3037 echo "${ECHO_T}no" >&6
    3038 fi
    3039 
    3040 fi
    3041 if test -z "$ac_cv_prog_CC"; then
    3042   ac_ct_CC=$CC
    3043   # Extract the first word of "cc", so it can be a program name with args.
    3044 set dummy cc; ac_word=$2
    3045 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3048   echo $ECHO_N "(cached) $ECHO_C" >&6
    3049 else
    3050   if test -n "$ac_ct_CC"; then
    3051   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3052 else
    3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3054 for as_dir in $PATH
    3055 do
    3056   IFS=$as_save_IFS
    3057   test -z "$as_dir" && as_dir=.
    3058   for ac_exec_ext in '' $ac_executable_extensions; do
    3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3060     ac_cv_prog_ac_ct_CC="cc"
    3061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3062     break 2
    3063   fi
    3064 done
    3065 done
    3066 
    3067 fi
    3068 fi
    3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3070 if test -n "$ac_ct_CC"; then
    3071   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3072 echo "${ECHO_T}$ac_ct_CC" >&6
    3073 else
    3074   echo "$as_me:$LINENO: result: no" >&5
    3075 echo "${ECHO_T}no" >&6
    3076 fi
    3077 
    3078   CC=$ac_ct_CC
    3079 else
    3080   CC="$ac_cv_prog_CC"
    3081 fi
    3082 
    3083 fi
    3084 if test -z "$CC"; then
    3085   # Extract the first word of "cc", so it can be a program name with args.
    3086 set dummy cc; ac_word=$2
    3087 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3089 if test "${ac_cv_prog_CC+set}" = set; then
    3090   echo $ECHO_N "(cached) $ECHO_C" >&6
    3091 else
    3092   if test -n "$CC"; then
    3093   ac_cv_prog_CC="$CC" # Let the user override the test.
    3094 else
    3095   ac_prog_rejected=no
    3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3097 for as_dir in $PATH
    3098 do
    3099   IFS=$as_save_IFS
    3100   test -z "$as_dir" && as_dir=.
    3101   for ac_exec_ext in '' $ac_executable_extensions; do
    3102   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3103     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
    3104        ac_prog_rejected=yes
    3105        continue
    3106      fi
    3107     ac_cv_prog_CC="cc"
    3108     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3109     break 2
    3110   fi
    3111 done
    3112 done
    3113 
    3114 if test $ac_prog_rejected = yes; then
    3115   # We found a bogon in the path, so make sure we never use it.
    3116   set dummy $ac_cv_prog_CC
    3117   shift
    3118   if test $# != 0; then
    3119     # We chose a different compiler from the bogus one.
    3120     # However, it has the same basename, so the bogon will be chosen
    3121     # first if we set CC to just the basename; use the full file name.
    3122     shift
    3123     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
    3124   fi
    3125 fi
    3126 fi
    3127 fi
    3128 CC=$ac_cv_prog_CC
    3129 if test -n "$CC"; then
    3130   echo "$as_me:$LINENO: result: $CC" >&5
    3131 echo "${ECHO_T}$CC" >&6
    3132 else
    3133   echo "$as_me:$LINENO: result: no" >&5
    3134 echo "${ECHO_T}no" >&6
    3135 fi
    3136 
    3137 fi
    3138 if test -z "$CC"; then
    3139   if test -n "$ac_tool_prefix"; then
    3140   for ac_prog in cl
    3141   do
    3142     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
    3143 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    3144 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3146 if test "${ac_cv_prog_CC+set}" = set; then
    3147   echo $ECHO_N "(cached) $ECHO_C" >&6
    3148 else
    3149   if test -n "$CC"; then
    3150   ac_cv_prog_CC="$CC" # Let the user override the test.
    3151 else
    3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3153 for as_dir in $PATH
    3154 do
    3155   IFS=$as_save_IFS
    3156   test -z "$as_dir" && as_dir=.
    3157   for ac_exec_ext in '' $ac_executable_extensions; do
    3158   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3159     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
    3160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3161     break 2
    3162   fi
    3163 done
    3164 done
    3165 
    3166 fi
    3167 fi
    3168 CC=$ac_cv_prog_CC
    3169 if test -n "$CC"; then
    3170   echo "$as_me:$LINENO: result: $CC" >&5
    3171 echo "${ECHO_T}$CC" >&6
    3172 else
    3173   echo "$as_me:$LINENO: result: no" >&5
    3174 echo "${ECHO_T}no" >&6
    3175 fi
    3176 
    3177     test -n "$CC" && break
    3178   done
    3179 fi
    3180 if test -z "$CC"; then
    3181   ac_ct_CC=$CC
    3182   for ac_prog in cl
    3183 do
    3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3185 set dummy $ac_prog; ac_word=$2
    3186 echo "$as_me:$LINENO: checking for $ac_word" >&5
    3187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
    3188 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
    3189   echo $ECHO_N "(cached) $ECHO_C" >&6
    3190 else
    3191   if test -n "$ac_ct_CC"; then
    3192   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
    3193 else
    3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    3195 for as_dir in $PATH
    3196 do
    3197   IFS=$as_save_IFS
    3198   test -z "$as_dir" && as_dir=.
    3199   for ac_exec_ext in '' $ac_executable_extensions; do
    3200   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3201     ac_cv_prog_ac_ct_CC="$ac_prog"
    3202     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    3203     break 2
    3204   fi
    3205 done
    3206 done
    3207 
    3208 fi
    3209 fi
    3210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
    3211 if test -n "$ac_ct_CC"; then
    3212   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
    3213 echo "${ECHO_T}$ac_ct_CC" >&6
    3214 else
    3215   echo "$as_me:$LINENO: result: no" >&5
    3216 echo "${ECHO_T}no" >&6
    3217 fi
    3218 
    3219   test -n "$ac_ct_CC" && break
    3220 done
    3221 
    3222   CC=$ac_ct_CC
    3223 fi
    3224 
    3225 fi
    3226 
    3227 
    3228 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
    3229 See \`config.log' for more details." >&5
    3230 echo "$as_me: error: no acceptable C compiler found in \$PATH
    3231 See \`config.log' for more details." >&2;}
    3232    { (exit 1); exit 1; }; }
    3233 
    3234 # Provide some information about the compiler.
    3235 echo "$as_me:$LINENO:" \
    3236      "checking for C compiler version" >&5
    3237 ac_compiler=`set X $ac_compile; echo $2`
    3238 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
    3239   (eval $ac_compiler --version </dev/null >&5) 2>&5
    3240   ac_status=$?
    3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3242   (exit $ac_status); }
    3243 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
    3244   (eval $ac_compiler -v </dev/null >&5) 2>&5
    3245   ac_status=$?
    3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3247   (exit $ac_status); }
    3248 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
    3249   (eval $ac_compiler -V </dev/null >&5) 2>&5
    3250   ac_status=$?
    3251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    3252   (exit $ac_status); }
    3253 
    32542154echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
    32552155echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
     
    36462546ac_compiler_gnu=$ac_cv_c_compiler_gnu
    36472547
    3648 depcc="$CC"   am_compiler_list=
    3649 
    3650 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
    3651 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
    3652 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     2548CFLAGS="$save_cflags"
     2549
     2550# Check if a project specific CFLAGS variable has been set
     2551if test x$COIN_PRJCT != x; then
     2552  eval coin_tmp=\${${COIN_PRJCT}_CFLAGS+set}
     2553  if test x$coin_tmp = xset; then
     2554    eval CFLAGS=\${${COIN_PRJCT}_CFLAGS}
     2555  fi
     2556fi
     2557
     2558if test x"$CFLAGS" = x; then
     2559
     2560  coin_add_cflags=
     2561  coin_opt_cflags=
     2562  coin_dbg_cflags=
     2563  coin_warn_cflags=
     2564
     2565  if test "$GCC" = "yes"; then
     2566    case "$CC" in
     2567      icc* | */icc*)
     2568        ;;
     2569      *)
     2570        coin_opt_cflags="-O3 -fomit-frame-pointer"
     2571        coin_add_cflags="-pipe"
     2572        coin_dbg_cflags="-g"
     2573        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
     2574        if test "$enable_doscompile" = yes; then
     2575          case $build in
     2576            *-cygwin*)
     2577              CFLAGS="-mno-cygwin"
     2578              cat >conftest.$ac_ext <<_ACEOF
     2579/* confdefs.h.  */
     2580_ACEOF
     2581cat confdefs.h >>conftest.$ac_ext
     2582cat >>conftest.$ac_ext <<_ACEOF
     2583/* end confdefs.h.  */
     2584
     2585int
     2586main ()
     2587{
     2588int i=0; i++;
     2589  ;
     2590  return 0;
     2591}
     2592_ACEOF
     2593rm -f conftest.$ac_objext conftest$ac_exeext
     2594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2595  (eval $ac_link) 2>conftest.er1
     2596  ac_status=$?
     2597  grep -v '^ *+' conftest.er1 >conftest.err
     2598  rm -f conftest.er1
     2599  cat conftest.err >&5
     2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2601  (exit $ac_status); } &&
     2602         { ac_try='test -z "$ac_c_werror_flag"
     2603                         || test ! -s conftest.err'
     2604  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2605  (eval $ac_try) 2>&5
     2606  ac_status=$?
     2607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2608  (exit $ac_status); }; } &&
     2609         { ac_try='test -s conftest$ac_exeext'
     2610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2611  (eval $ac_try) 2>&5
     2612  ac_status=$?
     2613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2614  (exit $ac_status); }; }; then
     2615  coin_add_cflags="-mno-cygwin $coin_add_cflags"
     2616else
     2617  echo "$as_me: failed program was:" >&5
     2618sed 's/^/| /' conftest.$ac_ext >&5
     2619
     2620fi
     2621rm -f conftest.err conftest.$ac_objext \
     2622      conftest$ac_exeext conftest.$ac_ext
     2623              CFLAGS=
     2624            ;;
     2625          esac
     2626        fi
     2627    esac
     2628  fi
     2629  if test -z "$coin_opt_cflags"; then
     2630    case $build in
     2631      *-cygwin* | *-mingw*)
     2632        case "$CC" in
     2633          cl* | */cl*)
     2634            coin_opt_cflags='-O2'
     2635            coin_add_cflags='-nologo'
     2636            coin_dbg_cflags='-Yd'
     2637            ;;
     2638        esac
     2639        ;;
     2640      *-linux-*)
     2641        case "$CC" in
     2642          icc* | */icc*)
     2643            coin_opt_cflags="-O3 -ip"
     2644            coin_add_cflags=""
     2645            coin_dbg_cflags="-g"
     2646            # Check if -i_dynamic is necessary (for new glibc library)
     2647            CFLAGS=
     2648            cat >conftest.$ac_ext <<_ACEOF
     2649/* confdefs.h.  */
     2650_ACEOF
     2651cat confdefs.h >>conftest.$ac_ext
     2652cat >>conftest.$ac_ext <<_ACEOF
     2653/* end confdefs.h.  */
     2654
     2655int
     2656main ()
     2657{
     2658int i=0; i++;
     2659  ;
     2660  return 0;
     2661}
     2662_ACEOF
     2663rm -f conftest.$ac_objext conftest$ac_exeext
     2664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2665  (eval $ac_link) 2>conftest.er1
     2666  ac_status=$?
     2667  grep -v '^ *+' conftest.er1 >conftest.err
     2668  rm -f conftest.er1
     2669  cat conftest.err >&5
     2670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2671  (exit $ac_status); } &&
     2672         { ac_try='test -z "$ac_c_werror_flag"
     2673                         || test ! -s conftest.err'
     2674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2675  (eval $ac_try) 2>&5
     2676  ac_status=$?
     2677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2678  (exit $ac_status); }; } &&
     2679         { ac_try='test -s conftest$ac_exeext'
     2680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2681  (eval $ac_try) 2>&5
     2682  ac_status=$?
     2683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2684  (exit $ac_status); }; }; then
     2685  :
     2686else
     2687  echo "$as_me: failed program was:" >&5
     2688sed 's/^/| /' conftest.$ac_ext >&5
     2689
     2690coin_add_cflags="-i_dynamic $coin_add_cflags"
     2691fi
     2692rm -f conftest.err conftest.$ac_objext \
     2693      conftest$ac_exeext conftest.$ac_ext
     2694            ;;
     2695          pgcc* | */pgcc*)
     2696            coin_opt_cflags="-fast"
     2697            coin_add_cflags="-Kieee -pc 64"
     2698            coin_dbg_cflags="-g"
     2699            ;;
     2700        esac
     2701        ;;
     2702      *-ibm-*)
     2703        case "$CC" in
     2704          xlc* | */xlc* | mpxlc* | */mpxlc*)
     2705            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     2706            coin_add_cflags="-bmaxdata:0x80000000"
     2707            coin_dbg_cflags="-g"
     2708          ;;
     2709        esac
     2710        ;;
     2711      *-hp-*)
     2712        coin_opt_cflags="-O"
     2713        coin_add_cflags="-Ae"
     2714        coin_dbg_cflags="-g"
     2715        ;;
     2716      *-sun-*)
     2717        coin_opt_cflags="-xO4"
     2718        coin_dbg_cflags="-g"
     2719        ;;
     2720      *-sgi-*)
     2721        coin_opt_cflags="-O -OPT:Olimit=0"
     2722        coin_dbg_cflags="-g"
     2723        ;;
     2724    esac
     2725  fi
     2726
     2727  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
     2728    coin_dbg_cflags="-g"
     2729  fi
     2730
     2731  if test -z "$coin_opt_cflags"; then
     2732    # Try if -O option works if nothing else is set
     2733    CFLAGS="-O"
     2734    cat >conftest.$ac_ext <<_ACEOF
     2735/* confdefs.h.  */
     2736_ACEOF
     2737cat confdefs.h >>conftest.$ac_ext
     2738cat >>conftest.$ac_ext <<_ACEOF
     2739/* end confdefs.h.  */
     2740
     2741int
     2742main ()
     2743{
     2744int i=0; i++;
     2745  ;
     2746  return 0;
     2747}
     2748_ACEOF
     2749rm -f conftest.$ac_objext conftest$ac_exeext
     2750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2751  (eval $ac_link) 2>conftest.er1
     2752  ac_status=$?
     2753  grep -v '^ *+' conftest.er1 >conftest.err
     2754  rm -f conftest.er1
     2755  cat conftest.err >&5
     2756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2757  (exit $ac_status); } &&
     2758         { ac_try='test -z "$ac_c_werror_flag"
     2759                         || test ! -s conftest.err'
     2760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2761  (eval $ac_try) 2>&5
     2762  ac_status=$?
     2763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2764  (exit $ac_status); }; } &&
     2765         { ac_try='test -s conftest$ac_exeext'
     2766  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2767  (eval $ac_try) 2>&5
     2768  ac_status=$?
     2769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2770  (exit $ac_status); }; }; then
     2771  coin_opt_cflags="-O"
     2772else
     2773  echo "$as_me: failed program was:" >&5
     2774sed 's/^/| /' conftest.$ac_ext >&5
     2775
     2776fi
     2777rm -f conftest.err conftest.$ac_objext \
     2778      conftest$ac_exeext conftest.$ac_ext
     2779  fi
     2780
     2781  if test x${DBG_CFLAGS+set} != xset; then
     2782    DBG_CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
     2783  fi
     2784  if test x${OPT_CFLAGS+set} != xset; then
     2785    OPT_CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $coin_warn_cflags"
     2786  fi
     2787
     2788  DBG_CFLAGS="$DBG_CFLAGS $ADD_CFLAGS $CDEFS"
     2789  OPT_CFLAGS="$OPT_CFLAGS $ADD_CFLAGS $CDEFS"
     2790
     2791  if test "$coin_debug_compile" = "true"; then
     2792    CFLAGS="$DBG_CFLAGS"
     2793  else
     2794    CFLAGS="$OPT_CFLAGS"
     2795  fi
     2796else
     2797  CFLAGS="$CFLAGS $ADD_CFLAGS $CDEFS"
     2798  if test x${DBG_CFLAGS+set} != xset; then
     2799    DBG_CFLAGS="$CFLAGS"
     2800  fi
     2801  if test x${OPT_CFLAGS+set} != xset; then
     2802    OPT_CFLAGS="$CFLAGS"
     2803  fi
     2804fi
     2805
     2806# Check if user wants to have additional CFLAGS options
     2807
     2808if test x"$ADD_CFLAGS" != x; then
     2809  CFLAGS="$CFLAGS $ADD_CFLAGS"
     2810fi
     2811
     2812# Try if CFLAGS works
     2813save_CFLAGS="$CFLAGS"
     2814cat >conftest.$ac_ext <<_ACEOF
     2815/* confdefs.h.  */
     2816_ACEOF
     2817cat confdefs.h >>conftest.$ac_ext
     2818cat >>conftest.$ac_ext <<_ACEOF
     2819/* end confdefs.h.  */
     2820
     2821int
     2822main ()
     2823{
     2824int i=0; i++;
     2825  ;
     2826  return 0;
     2827}
     2828_ACEOF
     2829rm -f conftest.$ac_objext conftest$ac_exeext
     2830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2831  (eval $ac_link) 2>conftest.er1
     2832  ac_status=$?
     2833  grep -v '^ *+' conftest.er1 >conftest.err
     2834  rm -f conftest.er1
     2835  cat conftest.err >&5
     2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2837  (exit $ac_status); } &&
     2838         { ac_try='test -z "$ac_c_werror_flag"
     2839                         || test ! -s conftest.err'
     2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2841  (eval $ac_try) 2>&5
     2842  ac_status=$?
     2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2844  (exit $ac_status); }; } &&
     2845         { ac_try='test -s conftest$ac_exeext'
     2846  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2847  (eval $ac_try) 2>&5
     2848  ac_status=$?
     2849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2850  (exit $ac_status); }; }; then
     2851  :
     2852else
     2853  echo "$as_me: failed program was:" >&5
     2854sed 's/^/| /' conftest.$ac_ext >&5
     2855
     2856CFLAGS=
     2857fi
     2858rm -f conftest.err conftest.$ac_objext \
     2859      conftest$ac_exeext conftest.$ac_ext
     2860if test -z "$CFLAGS"; then
     2861  { echo "$as_me:$LINENO: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&5
     2862echo "$as_me: WARNING: The value CFLAGS=\"$save_CFLAGS\" do not work.  I will now just try '-O', but you might want to set CFLAGS manually." >&2;}
     2863  CFLAGS='-O'
     2864  cat >conftest.$ac_ext <<_ACEOF
     2865/* confdefs.h.  */
     2866_ACEOF
     2867cat confdefs.h >>conftest.$ac_ext
     2868cat >>conftest.$ac_ext <<_ACEOF
     2869/* end confdefs.h.  */
     2870
     2871int
     2872main ()
     2873{
     2874int i=0; i++;
     2875  ;
     2876  return 0;
     2877}
     2878_ACEOF
     2879rm -f conftest.$ac_objext conftest$ac_exeext
     2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     2881  (eval $ac_link) 2>conftest.er1
     2882  ac_status=$?
     2883  grep -v '^ *+' conftest.er1 >conftest.err
     2884  rm -f conftest.er1
     2885  cat conftest.err >&5
     2886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2887  (exit $ac_status); } &&
     2888         { ac_try='test -z "$ac_c_werror_flag"
     2889                         || test ! -s conftest.err'
     2890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2891  (eval $ac_try) 2>&5
     2892  ac_status=$?
     2893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2894  (exit $ac_status); }; } &&
     2895         { ac_try='test -s conftest$ac_exeext'
     2896  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     2897  (eval $ac_try) 2>&5
     2898  ac_status=$?
     2899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     2900  (exit $ac_status); }; }; then
     2901  :
     2902else
     2903  echo "$as_me: failed program was:" >&5
     2904sed 's/^/| /' conftest.$ac_ext >&5
     2905
     2906CFLAGS=
     2907fi
     2908rm -f conftest.err conftest.$ac_objext \
     2909      conftest$ac_exeext conftest.$ac_ext
     2910  if test -z "$CFLAGS"; then
     2911    { echo "$as_me:$LINENO: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&5
     2912echo "$as_me: WARNING: This value for CFLAGS does not work.  I will continue with empty CFLAGS, but you might want to set CFLAGS manually." >&2;}
     2913  fi
     2914fi
     2915
     2916{ echo "$as_me:$LINENO: C compiler options are: $CFLAGS" >&5
     2917echo "$as_me: C compiler options are: $CFLAGS" >&6;}
     2918
     2919
     2920if test x"$MPICC" = x; then :; else
     2921  { echo "$as_me:$LINENO: Will use MPI C compiler $MPICC" >&5
     2922echo "$as_me: Will use MPI C compiler $MPICC" >&6;}
     2923  CC="$MPICC"
     2924fi
     2925
     2926# Correct ADDLIBS initialization if we are using the MS compiler
     2927case "$CC" in
     2928  cl*)
     2929    ADDLIBS=
     2930    case $build in
     2931  *-mingw*)
     2932    if test "${LD+set}" = set; then :; else
     2933      LD=link
     2934    fi
     2935    ;;
     2936esac
     2937
     2938    ;;
     2939esac
     2940
     2941ac_ext=c
     2942ac_cpp='$CPP $CPPFLAGS'
     2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
     2946
     2947
     2948
     2949
     2950
     2951
     2952ac_ext=f
     2953ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     2954ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2955ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     2956
     2957
     2958
     2959
     2960
     2961
     2962coin_has_f77=yes
     2963
     2964save_fflags="$FFLAGS"
     2965case $build in
     2966  *-cygwin* | *-mingw*)
     2967             comps="gfortran g77 ifort fl32" ;;
     2968  *)         comps="xlf fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     2969esac
     2970
     2971# We delete the cached value, since the test might not have been
     2972# performed with out choise of compilers earlier
     2973$as_unset ac_cv_prog_F77 || test "${ac_cv_prog_F77+set}" != set || { ac_cv_prog_F77=; export ac_cv_prog_F77; }
     2974ac_ext=f
     2975ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     2976ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     2977ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     2978if test -n "$ac_tool_prefix"; then
     2979  for ac_prog in $comps
     2980  do
     2981    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     2982set dummy $ac_tool_prefix$ac_prog; ac_word=$2
     2983echo "$as_me:$LINENO: checking for $ac_word" >&5
     2984echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     2985if test "${ac_cv_prog_F77+set}" = set; then
    36532986  echo $ECHO_N "(cached) $ECHO_C" >&6
    36542987else
    3655   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
    3656   # We make a subdir and do the tests there.  Otherwise we can end up
    3657   # making bogus files that we don't know about and never remove.  For
    3658   # instance it was reported that on HP-UX the gcc test will end up
    3659   # making a dummy file named `D' -- because `-MD' means `put the output
    3660   # in D'.
    3661   mkdir conftest.dir
    3662   # Copy depcomp to subdir because otherwise we won't find it if we're
    3663   # using a relative directory.
    3664   cp "$am_depcomp" conftest.dir
    3665   cd conftest.dir
    3666   # We will build objects and dependencies in a subdirectory because
    3667   # it helps to detect inapplicable dependency modes.  For instance
    3668   # both Tru64's cc and ICC support -MD to output dependencies as a
    3669   # side effect of compilation, but ICC will put the dependencies in
    3670   # the current directory while Tru64 will put them in the object
    3671   # directory.
    3672   mkdir sub
    3673 
    3674   am_cv_CC_dependencies_compiler_type=none
    3675   if test "$am_compiler_list" = ""; then
    3676      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     2988  if test -n "$F77"; then
     2989  ac_cv_prog_F77="$F77" # Let the user override the test.
     2990else
     2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2992for as_dir in $PATH
     2993do
     2994  IFS=$as_save_IFS
     2995  test -z "$as_dir" && as_dir=.
     2996  for ac_exec_ext in '' $ac_executable_extensions; do
     2997  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2998    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
     2999    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3000    break 2
    36773001  fi
    3678   for depmode in $am_compiler_list; do
    3679     # Setup a source with many dependencies, because some compilers
    3680     # like to wrap large dependency lists on column 80 (with \), and
    3681     # we should not choose a depcomp mode which is confused by this.
    3682     #
    3683     # We need to recreate these files for each test, as the compiler may
    3684     # overwrite some of them when testing with obscure command lines.
    3685     # This happens at least with the AIX C compiler.
    3686     : > sub/conftest.c
    3687     for i in 1 2 3 4 5 6; do
    3688       echo '#include "conftst'$i'.h"' >> sub/conftest.c
    3689       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
    3690       # Solaris 8's {/usr,}/bin/sh.
    3691       touch sub/conftst$i.h
     3002done
     3003done
     3004
     3005fi
     3006fi
     3007F77=$ac_cv_prog_F77
     3008if test -n "$F77"; then
     3009  echo "$as_me:$LINENO: result: $F77" >&5
     3010echo "${ECHO_T}$F77" >&6
     3011else
     3012  echo "$as_me:$LINENO: result: no" >&5
     3013echo "${ECHO_T}no" >&6
     3014fi
     3015
     3016    test -n "$F77" && break
     3017  done
     3018fi
     3019if test -z "$F77"; then
     3020  ac_ct_F77=$F77
     3021  for ac_prog in $comps
     3022do
     3023  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3024set dummy $ac_prog; ac_word=$2
     3025echo "$as_me:$LINENO: checking for $ac_word" >&5
     3026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3027if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3028  echo $ECHO_N "(cached) $ECHO_C" >&6
     3029else
     3030  if test -n "$ac_ct_F77"; then
     3031  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3032else
     3033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3034for as_dir in $PATH
     3035do
     3036  IFS=$as_save_IFS
     3037  test -z "$as_dir" && as_dir=.
     3038  for ac_exec_ext in '' $ac_executable_extensions; do
     3039  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3040    ac_cv_prog_ac_ct_F77="$ac_prog"
     3041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3042    break 2
     3043  fi
     3044done
     3045done
     3046
     3047fi
     3048fi
     3049ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3050if test -n "$ac_ct_F77"; then
     3051  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3052echo "${ECHO_T}$ac_ct_F77" >&6
     3053else
     3054  echo "$as_me:$LINENO: result: no" >&5
     3055echo "${ECHO_T}no" >&6
     3056fi
     3057
     3058  test -n "$ac_ct_F77" && break
     3059done
     3060
     3061  F77=$ac_ct_F77
     3062fi
     3063
     3064
     3065# Provide some information about the compiler.
     3066echo "$as_me:3066:" \
     3067     "checking for Fortran 77 compiler version" >&5
     3068ac_compiler=`set X $ac_compile; echo $2`
     3069{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
     3070  (eval $ac_compiler --version </dev/null >&5) 2>&5
     3071  ac_status=$?
     3072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3073  (exit $ac_status); }
     3074{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
     3075  (eval $ac_compiler -v </dev/null >&5) 2>&5
     3076  ac_status=$?
     3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3078  (exit $ac_status); }
     3079{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
     3080  (eval $ac_compiler -V </dev/null >&5) 2>&5
     3081  ac_status=$?
     3082  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3083  (exit $ac_status); }
     3084rm -f a.out
     3085
     3086# If we don't use `.F' as extension, the preprocessor is not run on the
     3087# input file.  (Note that this only needs to work for GNU compilers.)
     3088ac_save_ext=$ac_ext
     3089ac_ext=F
     3090echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
     3091echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
     3092if test "${ac_cv_f77_compiler_gnu+set}" = set; then
     3093  echo $ECHO_N "(cached) $ECHO_C" >&6
     3094else
     3095  cat >conftest.$ac_ext <<_ACEOF
     3096      program main
     3097#ifndef __GNUC__
     3098       choke me
     3099#endif
     3100
     3101      end
     3102_ACEOF
     3103rm -f conftest.$ac_objext
     3104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3105  (eval $ac_compile) 2>conftest.er1
     3106  ac_status=$?
     3107  grep -v '^ *+' conftest.er1 >conftest.err
     3108  rm -f conftest.er1
     3109  cat conftest.err >&5
     3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3111  (exit $ac_status); } &&
     3112         { ac_try='test -z "$ac_f77_werror_flag"
     3113                         || test ! -s conftest.err'
     3114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3115  (eval $ac_try) 2>&5
     3116  ac_status=$?
     3117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3118  (exit $ac_status); }; } &&
     3119         { ac_try='test -s conftest.$ac_objext'
     3120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3121  (eval $ac_try) 2>&5
     3122  ac_status=$?
     3123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3124  (exit $ac_status); }; }; then
     3125  ac_compiler_gnu=yes
     3126else
     3127  echo "$as_me: failed program was:" >&5
     3128sed 's/^/| /' conftest.$ac_ext >&5
     3129
     3130ac_compiler_gnu=no
     3131fi
     3132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3133ac_cv_f77_compiler_gnu=$ac_compiler_gnu
     3134
     3135fi
     3136echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
     3137echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
     3138ac_ext=$ac_save_ext
     3139ac_test_FFLAGS=${FFLAGS+set}
     3140ac_save_FFLAGS=$FFLAGS
     3141FFLAGS=
     3142echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
     3143echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
     3144if test "${ac_cv_prog_f77_g+set}" = set; then
     3145  echo $ECHO_N "(cached) $ECHO_C" >&6
     3146else
     3147  FFLAGS=-g
     3148cat >conftest.$ac_ext <<_ACEOF
     3149      program main
     3150
     3151      end
     3152_ACEOF
     3153rm -f conftest.$ac_objext
     3154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     3155  (eval $ac_compile) 2>conftest.er1
     3156  ac_status=$?
     3157  grep -v '^ *+' conftest.er1 >conftest.err
     3158  rm -f conftest.er1
     3159  cat conftest.err >&5
     3160  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3161  (exit $ac_status); } &&
     3162         { ac_try='test -z "$ac_f77_werror_flag"
     3163                         || test ! -s conftest.err'
     3164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3165  (eval $ac_try) 2>&5
     3166  ac_status=$?
     3167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3168  (exit $ac_status); }; } &&
     3169         { ac_try='test -s conftest.$ac_objext'
     3170  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3171  (eval $ac_try) 2>&5
     3172  ac_status=$?
     3173  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3174  (exit $ac_status); }; }; then
     3175  ac_cv_prog_f77_g=yes
     3176else
     3177  echo "$as_me: failed program was:" >&5
     3178sed 's/^/| /' conftest.$ac_ext >&5
     3179
     3180ac_cv_prog_f77_g=no
     3181fi
     3182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     3183
     3184fi
     3185echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
     3186echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
     3187if test "$ac_test_FFLAGS" = set; then
     3188  FFLAGS=$ac_save_FFLAGS
     3189elif test $ac_cv_prog_f77_g = yes; then
     3190  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3191    FFLAGS="-g -O2"
     3192  else
     3193    FFLAGS="-g"
     3194  fi
     3195else
     3196  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
     3197    FFLAGS="-O2"
     3198  else
     3199    FFLAGS=
     3200  fi
     3201fi
     3202
     3203G77=`test $ac_compiler_gnu = yes && echo yes`
     3204ac_ext=f
     3205ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     3206ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3207ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     3208
     3209FFLAGS="$save_fflags"
     3210
     3211# Check if a project specific FFLAGS variable has been set
     3212if test x$COIN_PRJCT != x; then
     3213  eval coin_tmp=\${${COIN_PRJCT}_FFLAGS+set}
     3214  if test x$coin_tmp = xset; then
     3215    eval FFLAGS=\${${COIN_PRJCT}_FFLAGS}
     3216  fi
     3217fi
     3218
     3219if test x"$FFLAGS" = x; then
     3220
     3221  coin_add_fflags=
     3222  coin_opt_fflags=
     3223  coin_dbg_fflags=
     3224  coin_warn_fflags=
     3225
     3226  if test "$G77" = "yes"; then
     3227    coin_opt_fflags="-O3 -fomit-frame-pointer"
     3228    coin_add_fflags="-pipe"
     3229    coin_dbg_fflags="-g"
     3230    if test "$enable_doscompile" = yes; then
     3231      case $build in
     3232        *-cygwin*)
     3233          FFLAGS="-mno-cygwin"
     3234          cat >conftest.$ac_ext <<_ACEOF
     3235      program main
     3236      write(*,*) 'Hello world'
     3237      end
     3238_ACEOF
     3239rm -f conftest.$ac_objext conftest$ac_exeext
     3240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3241  (eval $ac_link) 2>conftest.er1
     3242  ac_status=$?
     3243  grep -v '^ *+' conftest.er1 >conftest.err
     3244  rm -f conftest.er1
     3245  cat conftest.err >&5
     3246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3247  (exit $ac_status); } &&
     3248         { ac_try='test -z "$ac_f77_werror_flag"
     3249                         || test ! -s conftest.err'
     3250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3251  (eval $ac_try) 2>&5
     3252  ac_status=$?
     3253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3254  (exit $ac_status); }; } &&
     3255         { ac_try='test -s conftest$ac_exeext'
     3256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3257  (eval $ac_try) 2>&5
     3258  ac_status=$?
     3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3260  (exit $ac_status); }; }; then
     3261  coin_add_fflags="-mno-cygwin $coin_add_fflags"
     3262else
     3263  echo "$as_me: failed program was:" >&5
     3264sed 's/^/| /' conftest.$ac_ext >&5
     3265
     3266fi
     3267rm -f conftest.err conftest.$ac_objext \
     3268      conftest$ac_exeext conftest.$ac_ext
     3269          FFLAGS=
     3270        ;;
     3271      esac
     3272    fi
     3273  else
     3274    case $build in
     3275      *-cygwin* | *-mingw*)
     3276        case $F77 in
     3277          ifort* | */ifort*)
     3278            coin_opt_fflags='-O3'
     3279            coin_add_fflags='-nologo -MT'
     3280            coin_dbg_fflags='-debug'
     3281          ;;
     3282        esac
     3283        ;;
     3284      *-linux-*)
     3285        case $F77 in
     3286          ifc* | */ifc* | ifort* | */ifort*)
     3287            coin_opt_fflags="-O3 -ip"
     3288            coin_add_fflags="-cm -w90 -w95"
     3289            coin_dbg_fflags="-g -CA -CB -CS"
     3290            # Check if -i_dynamic is necessary (for new glibc library)
     3291            FFLAGS=
     3292            cat >conftest.$ac_ext <<_ACEOF
     3293      program main
     3294      write(*,*) 'Hello world'
     3295      end
     3296_ACEOF
     3297rm -f conftest.$ac_objext conftest$ac_exeext
     3298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3299  (eval $ac_link) 2>conftest.er1
     3300  ac_status=$?
     3301  grep -v '^ *+' conftest.er1 >conftest.err
     3302  rm -f conftest.er1
     3303  cat conftest.err >&5
     3304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3305  (exit $ac_status); } &&
     3306         { ac_try='test -z "$ac_f77_werror_flag"
     3307                         || test ! -s conftest.err'
     3308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3309  (eval $ac_try) 2>&5
     3310  ac_status=$?
     3311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3312  (exit $ac_status); }; } &&
     3313         { ac_try='test -s conftest$ac_exeext'
     3314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3315  (eval $ac_try) 2>&5
     3316  ac_status=$?
     3317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3318  (exit $ac_status); }; }; then
     3319  :
     3320else
     3321  echo "$as_me: failed program was:" >&5
     3322sed 's/^/| /' conftest.$ac_ext >&5
     3323
     3324coin_add_fflags="-i_dynamic $coin_add_fflags"
     3325fi
     3326rm -f conftest.err conftest.$ac_objext \
     3327      conftest$ac_exeext conftest.$ac_ext
     3328            ;;
     3329          pgf77* | */pgf77* | pgf90* | */pgf90*)
     3330            coin_opt_fflags="-fast"
     3331            coin_add_fflags="-Kieee -pc 64"
     3332            coin_dbg_fflags="-g"
     3333          ;;
     3334        esac
     3335        ;;
     3336      *-ibm-*)
     3337        case "$F77" in
     3338          xlf* | */xlf* | mpxlf* | */mpxlf* )
     3339            coin_opt_fflags="-O3 -qarch=auto -qcache=auto -qtune=auto -qmaxmem=-1"
     3340            coin_add_fflags="-bmaxdata:0x80000000"
     3341            coin_dbg_fflags="-g -C"
     3342            ;;
     3343        esac
     3344        ;;
     3345      *-hp-*)
     3346        coin_opt_fflags="+O3"
     3347        coin_add_fflags="+U77"
     3348        coin_dbg_fflags="-C -g"
     3349        ;;
     3350      *-sun-*)
     3351        coin_opt_fflags="-O4"
     3352        coin_dbg_fflags="-g"
     3353        ;;
     3354      *-sgi-*)
     3355        coin_opt_fflags="-O5 -OPT:Olimit=0"
     3356        coin_dbg_fflags="-g"
     3357        ;;
     3358    esac
     3359  fi
     3360
     3361  if test "$ac_cv_prog_f77_g" = yes && test -z "$coin_dbg_fflags" ; then
     3362    coin_dbg_fflags="-g"
     3363  fi
     3364
     3365  if test -z "$coin_opt_fflags"; then
     3366    # Try if -O option works if nothing else is set
     3367    FFLAGS=-O
     3368    cat >conftest.$ac_ext <<_ACEOF
     3369      program main
     3370      integer i
     3371      end
     3372_ACEOF
     3373rm -f conftest.$ac_objext conftest$ac_exeext
     3374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3375  (eval $ac_link) 2>conftest.er1
     3376  ac_status=$?
     3377  grep -v '^ *+' conftest.er1 >conftest.err
     3378  rm -f conftest.er1
     3379  cat conftest.err >&5
     3380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3381  (exit $ac_status); } &&
     3382         { ac_try='test -z "$ac_f77_werror_flag"
     3383                         || test ! -s conftest.err'
     3384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3385  (eval $ac_try) 2>&5
     3386  ac_status=$?
     3387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3388  (exit $ac_status); }; } &&
     3389         { ac_try='test -s conftest$ac_exeext'
     3390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3391  (eval $ac_try) 2>&5
     3392  ac_status=$?
     3393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3394  (exit $ac_status); }; }; then
     3395  coin_opt_fflags="-O"
     3396else
     3397  echo "$as_me: failed program was:" >&5
     3398sed 's/^/| /' conftest.$ac_ext >&5
     3399
     3400fi
     3401rm -f conftest.err conftest.$ac_objext \
     3402      conftest$ac_exeext conftest.$ac_ext
     3403  fi
     3404
     3405  if test x${DBG_FFLAGS+set} != xset; then
     3406    DBG_FFLAGS="$coin_dbg_fflags $coin_add_fflags $coin_warn_fflags"
     3407  fi
     3408  if test x${OPT_FFLAGS+set} != xset; then
     3409    OPT_FFLAGS="$coin_opt_fflags $coin_add_fflags $coin_warn_fflags"
     3410  fi
     3411
     3412  DBG_FFLAGS="$DBG_FFLAGS $ADD_FFLAGS"
     3413  OPT_FFLAGS="$OPT_FFLAGS $ADD_FFLAGS"
     3414
     3415  if test "$coin_debug_compile" = "true"; then
     3416    FFLAGS="$DBG_FFLAGS"
     3417  else
     3418    FFLAGS="$OPT_FFLAGS"
     3419  fi
     3420else
     3421  FFLAGS="$FFLAGS $ADD_FFLAGS"
     3422  if test x${DBG_FFLAGS+set} != xset; then
     3423    DBG_FFLAGS="$FFLAGS"
     3424  fi
     3425  if test x${OPT_FFLAGS+set} != xset; then
     3426    OPT_FFLAGS="$FFLAGS"
     3427  fi
     3428fi
     3429
     3430# Try if FFLAGS works
     3431cat >conftest.$ac_ext <<_ACEOF
     3432      program main
     3433      integer i
     3434      end
     3435_ACEOF
     3436rm -f conftest.$ac_objext conftest$ac_exeext
     3437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3438  (eval $ac_link) 2>conftest.er1
     3439  ac_status=$?
     3440  grep -v '^ *+' conftest.er1 >conftest.err
     3441  rm -f conftest.er1
     3442  cat conftest.err >&5
     3443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3444  (exit $ac_status); } &&
     3445         { ac_try='test -z "$ac_f77_werror_flag"
     3446                         || test ! -s conftest.err'
     3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3448  (eval $ac_try) 2>&5
     3449  ac_status=$?
     3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3451  (exit $ac_status); }; } &&
     3452         { ac_try='test -s conftest$ac_exeext'
     3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3454  (eval $ac_try) 2>&5
     3455  ac_status=$?
     3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3457  (exit $ac_status); }; }; then
     3458  :
     3459else
     3460  echo "$as_me: failed program was:" >&5
     3461sed 's/^/| /' conftest.$ac_ext >&5
     3462
     3463FFLAGS=
     3464fi
     3465rm -f conftest.err conftest.$ac_objext \
     3466      conftest$ac_exeext conftest.$ac_ext
     3467if test -z "$FFLAGS"; then
     3468  { echo "$as_me:$LINENO: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&5
     3469echo "$as_me: WARNING: The flags FFLAGS=\"$FFLAGS\" do not work.  I will now just try '-O', but you might want to set FFLAGS manually." >&2;}
     3470  FFLAGS='-O'
     3471  cat >conftest.$ac_ext <<_ACEOF
     3472      program main
     3473      integer i
     3474      end
     3475_ACEOF
     3476rm -f conftest.$ac_objext conftest$ac_exeext
     3477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     3478  (eval $ac_link) 2>conftest.er1
     3479  ac_status=$?
     3480  grep -v '^ *+' conftest.er1 >conftest.err
     3481  rm -f conftest.er1
     3482  cat conftest.err >&5
     3483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3484  (exit $ac_status); } &&
     3485         { ac_try='test -z "$ac_f77_werror_flag"
     3486                         || test ! -s conftest.err'
     3487  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3488  (eval $ac_try) 2>&5
     3489  ac_status=$?
     3490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3491  (exit $ac_status); }; } &&
     3492         { ac_try='test -s conftest$ac_exeext'
     3493  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     3494  (eval $ac_try) 2>&5
     3495  ac_status=$?
     3496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     3497  (exit $ac_status); }; }; then
     3498  :
     3499else
     3500  echo "$as_me: failed program was:" >&5
     3501sed 's/^/| /' conftest.$ac_ext >&5
     3502
     3503FFLAGS=
     3504fi
     3505rm -f conftest.err conftest.$ac_objext \
     3506      conftest$ac_exeext conftest.$ac_ext
     3507  if test -z "$FFLAGS"; then
     3508    { echo "$as_me:$LINENO: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&5
     3509echo "$as_me: WARNING: This value for FFLAGS does not work.  I will continue with empty FFLAGS, but you might want to set FFLAGS manually." >&2;}
     3510  fi
     3511fi
     3512
     3513{ echo "$as_me:$LINENO: Fortran compiler options are: $FFLAGS" >&5
     3514echo "$as_me: Fortran compiler options are: $FFLAGS" >&6;}
     3515
     3516
     3517if test x"$MPIF77" = x; then :; else
     3518  { echo "$as_me:$LINENO: Will use MPI Fortran compiler $MPIF77" >&5
     3519echo "$as_me: Will use MPI Fortran compiler $MPIF77" >&6;}
     3520  F77="$MPIF77"
     3521fi
     3522
     3523case "$F77" in
     3524  ifort*)
     3525    case $build in
     3526  *-mingw*)
     3527    if test "${LD+set}" = set; then :; else
     3528      LD=link
     3529    fi
     3530    ;;
     3531esac
     3532
     3533    ;;
     3534esac
     3535
     3536ac_ext=c
     3537ac_cpp='$CPP $CPPFLAGS'
     3538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     3539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     3540ac_compiler_gnu=$ac_cv_c_compiler_gnu
     3541
     3542
     3543
     3544# Initialize autotools
     3545
     3546# On Cygwin, building DLLs doesn't work
     3547case $build in
     3548  *-cygwin*)
     3549    coin_disable_shared=yes
     3550    platform=Cygwin
     3551  ;;
     3552  *-mingw*)
     3553    coin_disable_shared=yes
     3554    platform="Msys"
     3555#    case "$CXX" in
     3556#      cl*)
     3557#        coin_disable_shared=yes
     3558#        platform="Msys with cl"
     3559#    ;;
     3560#    esac
     3561  ;;
     3562esac
     3563if test x"$coin_disable_shared" = xyes; then
     3564  if test x"$enable_shared" = xyes; then
     3565    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
     3566echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
     3567  fi
     3568  enable_shared=no
     3569fi
     3570# By default, we only want the shared objects to be compiled
     3571# Check whether --enable-static or --disable-static was given.
     3572if test "${enable_static+set}" = set; then
     3573  enableval="$enable_static"
     3574  p=${PACKAGE-default}
     3575    case $enableval in
     3576    yes) enable_static=yes ;;
     3577    no) enable_static=no ;;
     3578    *)
     3579     enable_static=no
     3580      # Look at the argument we got.  We use all the common list separators.
     3581      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
     3582      for pkg in $enableval; do
     3583        IFS="$lt_save_ifs"
     3584        if test "X$pkg" = "X$p"; then
     3585          enable_static=yes
     3586        fi
     3587      done
     3588      IFS="$lt_save_ifs"
     3589      ;;
     3590    esac
     3591else
     3592  enable_static=no
     3593fi;
     3594
     3595
     3596
     3597echo "$as_me:$LINENO: checking for egrep" >&5
     3598echo $ECHO_N "checking for egrep... $ECHO_C" >&6
     3599if test "${ac_cv_prog_egrep+set}" = set; then
     3600  echo $ECHO_N "(cached) $ECHO_C" >&6
     3601else
     3602  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
     3603    then ac_cv_prog_egrep='grep -E'
     3604    else ac_cv_prog_egrep='egrep'
     3605    fi
     3606fi
     3607echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
     3608echo "${ECHO_T}$ac_cv_prog_egrep" >&6
     3609 EGREP=$ac_cv_prog_egrep
     3610
     3611
     3612am__api_version="1.9"
     3613# Find a good install program.  We prefer a C program (faster),
     3614# so one script is as good as another.  But avoid the broken or
     3615# incompatible versions:
     3616# SysV /etc/install, /usr/sbin/install
     3617# SunOS /usr/etc/install
     3618# IRIX /sbin/install
     3619# AIX /bin/install
     3620# AmigaOS /C/install, which installs bootblocks on floppy discs
     3621# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
     3622# AFS /usr/afsws/bin/install, which mishandles nonexistent args
     3623# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
     3624# OS/2's system install, which has a completely different semantic
     3625# ./install, which can be erroneously created by make from ./install.sh.
     3626echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
     3627echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
     3628if test -z "$INSTALL"; then
     3629if test "${ac_cv_path_install+set}" = set; then
     3630  echo $ECHO_N "(cached) $ECHO_C" >&6
     3631else
     3632  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3633for as_dir in $PATH
     3634do
     3635  IFS=$as_save_IFS
     3636  test -z "$as_dir" && as_dir=.
     3637  # Account for people who put trailing slashes in PATH elements.
     3638case $as_dir/ in
     3639  ./ | .// | /cC/* | \
     3640  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
     3641  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
     3642  /usr/ucb/* ) ;;
     3643  *)
     3644    # OSF1 and SCO ODT 3.0 have their own names for install.
     3645    # Don't use installbsd from OSF since it installs stuff as root
     3646    # by default.
     3647    for ac_prog in ginstall scoinst install; do
     3648      for ac_exec_ext in '' $ac_executable_extensions; do
     3649        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
     3650          if test $ac_prog = install &&
     3651            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3652            # AIX install.  It has an incompatible calling convention.
     3653            :
     3654          elif test $ac_prog = install &&
     3655            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
     3656            # program-specific install script used by HP pwplus--don't use.
     3657            :
     3658          else
     3659            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
     3660            break 3
     3661          fi
     3662        fi
     3663      done
    36923664    done
    3693     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
    3694 
    3695     case $depmode in
    3696     nosideeffect)
    3697       # after this tag, mechanisms are not by side-effect, so they'll
    3698       # only be used when explicitly requested
    3699       if test "x$enable_dependency_tracking" = xyes; then
    3700         continue
    3701       else
    3702         break
    3703       fi
    3704       ;;
    3705     none) break ;;
    3706     esac
    3707     # We check with `-c' and `-o' for the sake of the "dashmstdout"
    3708     # mode.  It turns out that the SunPro C++ compiler does not properly
    3709     # handle `-M -o', and we need to detect this.
    3710     if depmode=$depmode \
    3711        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
    3712        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
    3713        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
    3714          >/dev/null 2>conftest.err &&
    3715        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
    3716        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
    3717        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
    3718       # icc doesn't choke on unknown options, it will just issue warnings
    3719       # or remarks (even with -Werror).  So we grep stderr for any message
    3720       # that says an option was ignored or not supported.
    3721       # When given -MP, icc 7.0 and 7.1 complain thusly:
    3722       #   icc: Command line warning: ignoring option '-M'; no argument required
    3723       # The diagnosis changed in icc 8.0:
    3724       #   icc: Command line remark: option '-MP' not supported
    3725       if (grep 'ignoring option' conftest.err ||
    3726           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
    3727         am_cv_CC_dependencies_compiler_type=$depmode
    3728         break
    3729       fi
    3730     fi
     3665    ;;
     3666esac
     3667done
     3668
     3669
     3670fi
     3671  if test "${ac_cv_path_install+set}" = set; then
     3672    INSTALL=$ac_cv_path_install
     3673  else
     3674    # As a last resort, use the slow shell script.  We don't cache a
     3675    # path for INSTALL within a source directory, because that will
     3676    # break other packages using the cache if that directory is
     3677    # removed, or if the path is relative.
     3678    INSTALL=$ac_install_sh
     3679  fi
     3680fi
     3681echo "$as_me:$LINENO: result: $INSTALL" >&5
     3682echo "${ECHO_T}$INSTALL" >&6
     3683
     3684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
     3685# It thinks the first close brace ends the variable substitution.
     3686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
     3687
     3688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
     3689
     3690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
     3691
     3692echo "$as_me:$LINENO: checking whether build environment is sane" >&5
     3693echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
     3694# Just in case
     3695sleep 1
     3696echo timestamp > conftest.file
     3697# Do `set' in a subshell so we don't clobber the current shell's
     3698# arguments.  Must try -L first in case configure is actually a
     3699# symlink; some systems play weird games with the mod time of symlinks
     3700# (eg FreeBSD returns the mod time of the symlink's containing
     3701# directory).
     3702if (
     3703   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
     3704   if test "$*" = "X"; then
     3705      # -L didn't work.
     3706      set X `ls -t $srcdir/configure conftest.file`
     3707   fi
     3708   rm -f conftest.file
     3709   if test "$*" != "X $srcdir/configure conftest.file" \
     3710      && test "$*" != "X conftest.file $srcdir/configure"; then
     3711
     3712      # If neither matched, then we have a broken ls.  This can happen
     3713      # if, for instance, CONFIG_SHELL is bash and it inherits a
     3714      # broken ls alias from the environment.  This has actually
     3715      # happened.  Such a system could not be considered "sane".
     3716      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
     3717alias in your environment" >&5
     3718echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
     3719alias in your environment" >&2;}
     3720   { (exit 1); exit 1; }; }
     3721   fi
     3722
     3723   test "$2" = conftest.file
     3724   )
     3725then
     3726   # Ok.
     3727   :
     3728else
     3729   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
     3730Check your system clock" >&5
     3731echo "$as_me: error: newly created file is older than distributed files!
     3732Check your system clock" >&2;}
     3733   { (exit 1); exit 1; }; }
     3734fi
     3735echo "$as_me:$LINENO: result: yes" >&5
     3736echo "${ECHO_T}yes" >&6
     3737test "$program_prefix" != NONE &&
     3738  program_transform_name="s,^,$program_prefix,;$program_transform_name"
     3739# Use a double $ so make ignores it.
     3740test "$program_suffix" != NONE &&
     3741  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
     3742# Double any \ or $.  echo might interpret backslashes.
     3743# By default was `s,x,x', remove it if useless.
     3744cat <<\_ACEOF >conftest.sed
     3745s/[\\$]/&&/g;s/;s,x,x,$//
     3746_ACEOF
     3747program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
     3748rm conftest.sed
     3749
     3750# expand $ac_aux_dir to an absolute path
     3751am_aux_dir=`cd $ac_aux_dir && pwd`
     3752
     3753test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
     3754# Use eval to expand $SHELL
     3755if eval "$MISSING --run true"; then
     3756  am_missing_run="$MISSING --run "
     3757else
     3758  am_missing_run=
     3759  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
     3760echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
     3761fi
     3762
     3763if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
     3764  # We used to keeping the `.' as first argument, in order to
     3765  # allow $(mkdir_p) to be used without argument.  As in
     3766  #   $(mkdir_p) $(somedir)
     3767  # where $(somedir) is conditionally defined.  However this is wrong
     3768  # for two reasons:
     3769  #  1. if the package is installed by a user who cannot write `.'
     3770  #     make install will fail,
     3771  #  2. the above comment should most certainly read
     3772  #     $(mkdir_p) $(DESTDIR)$(somedir)
     3773  #     so it does not work when $(somedir) is undefined and
     3774  #     $(DESTDIR) is not.
     3775  #  To support the latter case, we have to write
     3776  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
     3777  #  so the `.' trick is pointless.
     3778  mkdir_p='mkdir -p --'
     3779else
     3780  # On NextStep and OpenStep, the `mkdir' command does not
     3781  # recognize any option.  It will interpret all options as
     3782  # directories to create, and then abort because `.' already
     3783  # exists.
     3784  for d in ./-p ./--version;
     3785  do
     3786    test -d $d && rmdir $d
    37313787  done
    3732 
    3733   cd ..
    3734   rm -rf conftest.dir
    3735 else
    3736   am_cv_CC_dependencies_compiler_type=none
    3737 fi
    3738 
    3739 fi
    3740 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
    3741 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
    3742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
    3743 
    3744 
    3745 
    3746 if
    3747   test "x$enable_dependency_tracking" != xno \
    3748   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
    3749   am__fastdepCC_TRUE=
    3750   am__fastdepCC_FALSE='#'
    3751 else
    3752   am__fastdepCC_TRUE='#'
    3753   am__fastdepCC_FALSE=
     3788  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
     3789  if test -f "$ac_aux_dir/mkinstalldirs"; then
     3790    mkdir_p='$(mkinstalldirs)'
     3791  else
     3792    mkdir_p='$(install_sh) -d'
     3793  fi
     3794fi
     3795
     3796for ac_prog in gawk mawk nawk awk
     3797do
     3798  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3799set dummy $ac_prog; ac_word=$2
     3800echo "$as_me:$LINENO: checking for $ac_word" >&5
     3801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3802if test "${ac_cv_prog_AWK+set}" = set; then
     3803  echo $ECHO_N "(cached) $ECHO_C" >&6
     3804else
     3805  if test -n "$AWK"; then
     3806  ac_cv_prog_AWK="$AWK" # Let the user override the test.
     3807else
     3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3809for as_dir in $PATH
     3810do
     3811  IFS=$as_save_IFS
     3812  test -z "$as_dir" && as_dir=.
     3813  for ac_exec_ext in '' $ac_executable_extensions; do
     3814  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3815    ac_cv_prog_AWK="$ac_prog"
     3816    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3817    break 2
     3818  fi
     3819done
     3820done
     3821
     3822fi
     3823fi
     3824AWK=$ac_cv_prog_AWK
     3825if test -n "$AWK"; then
     3826  echo "$as_me:$LINENO: result: $AWK" >&5
     3827echo "${ECHO_T}$AWK" >&6
     3828else
     3829  echo "$as_me:$LINENO: result: no" >&5
     3830echo "${ECHO_T}no" >&6
     3831fi
     3832
     3833  test -n "$AWK" && break
     3834done
     3835
     3836echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
     3837echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
     3838set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
     3839if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
     3840  echo $ECHO_N "(cached) $ECHO_C" >&6
     3841else
     3842  cat >conftest.make <<\_ACEOF
     3843all:
     3844        @echo 'ac_maketemp="$(MAKE)"'
     3845_ACEOF
     3846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
     3847eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
     3848if test -n "$ac_maketemp"; then
     3849  eval ac_cv_prog_make_${ac_make}_set=yes
     3850else
     3851  eval ac_cv_prog_make_${ac_make}_set=no
     3852fi
     3853rm -f conftest.make
     3854fi
     3855if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
     3856  echo "$as_me:$LINENO: result: yes" >&5
     3857echo "${ECHO_T}yes" >&6
     3858  SET_MAKE=
     3859else
     3860  echo "$as_me:$LINENO: result: no" >&5
     3861echo "${ECHO_T}no" >&6
     3862  SET_MAKE="MAKE=${MAKE-make}"
     3863fi
     3864
     3865rm -rf .tst 2>/dev/null
     3866mkdir .tst 2>/dev/null
     3867if test -d .tst; then
     3868  am__leading_dot=.
     3869else
     3870  am__leading_dot=_
     3871fi
     3872rmdir .tst 2>/dev/null
     3873
     3874DEPDIR="${am__leading_dot}deps"
     3875
     3876          ac_config_commands="$ac_config_commands depfiles"
     3877
     3878
     3879am_make=${MAKE-make}
     3880cat > confinc << 'END'
     3881am__doit:
     3882        @echo done
     3883.PHONY: am__doit
     3884END
     3885# If we don't find an include directive, just comment out the code.
     3886echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
     3887echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
     3888am__include="#"
     3889am__quote=
     3890_am_result=none
     3891# First try GNU make style include.
     3892echo "include confinc" > confmf
     3893# We grep out `Entering directory' and `Leaving directory'
     3894# messages which can occur if `w' ends up in MAKEFLAGS.
     3895# In particular we don't look at `^make:' because GNU make might
     3896# be invoked under some other name (usually "gmake"), in which
     3897# case it prints its new name instead of `make'.
     3898if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
     3899   am__include=include
     3900   am__quote=
     3901   _am_result=GNU
     3902fi
     3903# Now try BSD make style include.
     3904if test "$am__include" = "#"; then
     3905   echo '.include "confinc"' > confmf
     3906   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
     3907      am__include=.include
     3908      am__quote="\""
     3909      _am_result=BSD
     3910   fi
     3911fi
     3912
     3913
     3914echo "$as_me:$LINENO: result: $_am_result" >&5
     3915echo "${ECHO_T}$_am_result" >&6
     3916rm -f confinc confmf
     3917
     3918# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
     3919if test "${enable_dependency_tracking+set}" = set; then
     3920  enableval="$enable_dependency_tracking"
     3921
     3922fi;
     3923if test "x$enable_dependency_tracking" != xno; then
     3924  am_depcomp="$ac_aux_dir/depcomp"
     3925  AMDEPBACKSLASH='\'
     3926fi
     3927
     3928
     3929if test "x$enable_dependency_tracking" != xno; then
     3930  AMDEP_TRUE=
     3931  AMDEP_FALSE='#'
     3932else
     3933  AMDEP_TRUE='#'
     3934  AMDEP_FALSE=
    37543935fi
    37553936
     
    43844565*-*-irix6*)
    43854566  # Find out which ABI we are using.
    4386   echo '#line 4386 "configure"' > conftest.$ac_ext
     4567  echo '#line 4567 "configure"' > conftest.$ac_ext
    43874568  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    43884569  (eval $ac_compile) 2>&5
     
    68136994   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    68146995   -e 's:$: $lt_compiler_flag:'`
    6815    (eval echo "\"\$as_me:6815: $lt_compile\"" >&5)
     6996   (eval echo "\"\$as_me:6996: $lt_compile\"" >&5)
    68166997   (eval "$lt_compile" 2>conftest.err)
    68176998   ac_status=$?
    68186999   cat conftest.err >&5
    6819    echo "$as_me:6819: \$? = $ac_status" >&5
     7000   echo "$as_me:7000: \$? = $ac_status" >&5
    68207001   if (exit $ac_status) && test -s "$ac_outfile"; then
    68217002     # The compiler can only warn and ignore the option if not recognized
     
    70817262   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    70827263   -e 's:$: $lt_compiler_flag:'`
    7083    (eval echo "\"\$as_me:7083: $lt_compile\"" >&5)
     7264   (eval echo "\"\$as_me:7264: $lt_compile\"" >&5)
    70847265   (eval "$lt_compile" 2>conftest.err)
    70857266   ac_status=$?
    70867267   cat conftest.err >&5
    7087    echo "$as_me:7087: \$? = $ac_status" >&5
     7268   echo "$as_me:7268: \$? = $ac_status" >&5
    70887269   if (exit $ac_status) && test -s "$ac_outfile"; then
    70897270     # The compiler can only warn and ignore the option if not recognized
     
    71857366   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    71867367   -e 's:$: $lt_compiler_flag:'`
    7187    (eval echo "\"\$as_me:7187: $lt_compile\"" >&5)
     7368   (eval echo "\"\$as_me:7368: $lt_compile\"" >&5)
    71887369   (eval "$lt_compile" 2>out/conftest.err)
    71897370   ac_status=$?
    71907371   cat out/conftest.err >&5
    7191    echo "$as_me:7191: \$? = $ac_status" >&5
     7372   echo "$as_me:7372: \$? = $ac_status" >&5
    71927373   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    71937374   then
     
    95309711  lt_status=$lt_dlunknown
    95319712  cat > conftest.$ac_ext <<EOF
    9532 #line 9532 "configure"
     9713#line 9713 "configure"
    95339714#include "confdefs.h"
    95349715
     
    96309811  lt_status=$lt_dlunknown
    96319812  cat > conftest.$ac_ext <<EOF
    9632 #line 9632 "configure"
     9813#line 9813 "configure"
    96339814#include "confdefs.h"
    96349815
     
    1197412155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1197512156   -e 's:$: $lt_compiler_flag:'`
    11976    (eval echo "\"\$as_me:11976: $lt_compile\"" >&5)
     12157   (eval echo "\"\$as_me:12157: $lt_compile\"" >&5)
    1197712158   (eval "$lt_compile" 2>conftest.err)
    1197812159   ac_status=$?
    1197912160   cat conftest.err >&5
    11980    echo "$as_me:11980: \$? = $ac_status" >&5
     12161   echo "$as_me:12161: \$? = $ac_status" >&5
    1198112162   if (exit $ac_status) && test -s "$ac_outfile"; then
    1198212163     # The compiler can only warn and ignore the option if not recognized
     
    1207812259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1207912260   -e 's:$: $lt_compiler_flag:'`
    12080    (eval echo "\"\$as_me:12080: $lt_compile\"" >&5)
     12261   (eval echo "\"\$as_me:12261: $lt_compile\"" >&5)
    1208112262   (eval "$lt_compile" 2>out/conftest.err)
    1208212263   ac_status=$?
    1208312264   cat out/conftest.err >&5
    12084    echo "$as_me:12084: \$? = $ac_status" >&5
     12265   echo "$as_me:12265: \$? = $ac_status" >&5
    1208512266   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1208612267   then
     
    1364813829   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1364913830   -e 's:$: $lt_compiler_flag:'`
    13650    (eval echo "\"\$as_me:13650: $lt_compile\"" >&5)
     13831   (eval echo "\"\$as_me:13831: $lt_compile\"" >&5)
    1365113832   (eval "$lt_compile" 2>conftest.err)
    1365213833   ac_status=$?
    1365313834   cat conftest.err >&5
    13654    echo "$as_me:13654: \$? = $ac_status" >&5
     13835   echo "$as_me:13835: \$? = $ac_status" >&5
    1365513836   if (exit $ac_status) && test -s "$ac_outfile"; then
    1365613837     # The compiler can only warn and ignore the option if not recognized
     
    1375213933   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1375313934   -e 's:$: $lt_compiler_flag:'`
    13754    (eval echo "\"\$as_me:13754: $lt_compile\"" >&5)
     13935   (eval echo "\"\$as_me:13935: $lt_compile\"" >&5)
    1375513936   (eval "$lt_compile" 2>out/conftest.err)
    1375613937   ac_status=$?
    1375713938   cat out/conftest.err >&5
    13758    echo "$as_me:13758: \$? = $ac_status" >&5
     13939   echo "$as_me:13939: \$? = $ac_status" >&5
    1375913940   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1376013941   then
     
    1595916140   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1596016141   -e 's:$: $lt_compiler_flag:'`
    15961    (eval echo "\"\$as_me:15961: $lt_compile\"" >&5)
     16142   (eval echo "\"\$as_me:16142: $lt_compile\"" >&5)
    1596216143   (eval "$lt_compile" 2>conftest.err)
    1596316144   ac_status=$?
    1596416145   cat conftest.err >&5
    15965    echo "$as_me:15965: \$? = $ac_status" >&5
     16146   echo "$as_me:16146: \$? = $ac_status" >&5
    1596616147   if (exit $ac_status) && test -s "$ac_outfile"; then
    1596716148     # The compiler can only warn and ignore the option if not recognized
     
    1622716408   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1622816409   -e 's:$: $lt_compiler_flag:'`
    16229    (eval echo "\"\$as_me:16229: $lt_compile\"" >&5)
     16410   (eval echo "\"\$as_me:16410: $lt_compile\"" >&5)
    1623016411   (eval "$lt_compile" 2>conftest.err)
    1623116412   ac_status=$?
    1623216413   cat conftest.err >&5
    16233    echo "$as_me:16233: \$? = $ac_status" >&5
     16414   echo "$as_me:16414: \$? = $ac_status" >&5
    1623416415   if (exit $ac_status) && test -s "$ac_outfile"; then
    1623516416     # The compiler can only warn and ignore the option if not recognized
     
    1633116512   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1633216513   -e 's:$: $lt_compiler_flag:'`
    16333    (eval echo "\"\$as_me:16333: $lt_compile\"" >&5)
     16514   (eval echo "\"\$as_me:16514: $lt_compile\"" >&5)
    1633416515   (eval "$lt_compile" 2>out/conftest.err)
    1633516516   ac_status=$?
    1633616517   cat out/conftest.err >&5
    16337    echo "$as_me:16337: \$? = $ac_status" >&5
     16518   echo "$as_me:16518: \$? = $ac_status" >&5
    1633816519   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1633916520   then
     
    1914619327
    1914719328
     19329depcc="$CC"   am_compiler_list=
     19330
     19331echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
     19332echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
     19333if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
     19334  echo $ECHO_N "(cached) $ECHO_C" >&6
     19335else
     19336  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
     19337  # We make a subdir and do the tests there.  Otherwise we can end up
     19338  # making bogus files that we don't know about and never remove.  For
     19339  # instance it was reported that on HP-UX the gcc test will end up
     19340  # making a dummy file named `D' -- because `-MD' means `put the output
     19341  # in D'.
     19342  mkdir conftest.dir
     19343  # Copy depcomp to subdir because otherwise we won't find it if we're
     19344  # using a relative directory.
     19345  cp "$am_depcomp" conftest.dir
     19346  cd conftest.dir
     19347  # We will build objects and dependencies in a subdirectory because
     19348  # it helps to detect inapplicable dependency modes.  For instance
     19349  # both Tru64's cc and ICC support -MD to output dependencies as a
     19350  # side effect of compilation, but ICC will put the dependencies in
     19351  # the current directory while Tru64 will put them in the object
     19352  # directory.
     19353  mkdir sub
     19354
     19355  am_cv_CC_dependencies_compiler_type=none
     19356  if test "$am_compiler_list" = ""; then
     19357     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
     19358  fi
     19359  for depmode in $am_compiler_list; do
     19360    # Setup a source with many dependencies, because some compilers
     19361    # like to wrap large dependency lists on column 80 (with \), and
     19362    # we should not choose a depcomp mode which is confused by this.
     19363    #
     19364    # We need to recreate these files for each test, as the compiler may
     19365    # overwrite some of them when testing with obscure command lines.
     19366    # This happens at least with the AIX C compiler.
     19367    : > sub/conftest.c
     19368    for i in 1 2 3 4 5 6; do
     19369      echo '#include "conftst'$i'.h"' >> sub/conftest.c
     19370      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
     19371      # Solaris 8's {/usr,}/bin/sh.
     19372      touch sub/conftst$i.h
     19373    done
     19374    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
     19375
     19376    case $depmode in
     19377    nosideeffect)
     19378      # after this tag, mechanisms are not by side-effect, so they'll
     19379      # only be used when explicitly requested
     19380      if test "x$enable_dependency_tracking" = xyes; then
     19381        continue
     19382      else
     19383        break
     19384      fi
     19385      ;;
     19386    none) break ;;
     19387    esac
     19388    # We check with `-c' and `-o' for the sake of the "dashmstdout"
     19389    # mode.  It turns out that the SunPro C++ compiler does not properly
     19390    # handle `-M -o', and we need to detect this.
     19391    if depmode=$depmode \
     19392       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
     19393       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
     19394       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
     19395         >/dev/null 2>conftest.err &&
     19396       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
     19397       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
     19398       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
     19399      # icc doesn't choke on unknown options, it will just issue warnings
     19400      # or remarks (even with -Werror).  So we grep stderr for any message
     19401      # that says an option was ignored or not supported.
     19402      # When given -MP, icc 7.0 and 7.1 complain thusly:
     19403      #   icc: Command line warning: ignoring option '-M'; no argument required
     19404      # The diagnosis changed in icc 8.0:
     19405      #   icc: Command line remark: option '-MP' not supported
     19406      if (grep 'ignoring option' conftest.err ||
     19407          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
     19408        am_cv_CC_dependencies_compiler_type=$depmode
     19409        break
     19410      fi
     19411    fi
     19412  done
     19413
     19414  cd ..
     19415  rm -rf conftest.dir
     19416else
     19417  am_cv_CC_dependencies_compiler_type=none
     19418fi
     19419
     19420fi
     19421echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
     19422echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
     19423CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
     19424
     19425
     19426
     19427if
     19428  test "x$enable_dependency_tracking" != xno \
     19429  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
     19430  am__fastdepCC_TRUE=
     19431  am__fastdepCC_FALSE='#'
     19432else
     19433  am__fastdepCC_TRUE='#'
     19434  am__fastdepCC_FALSE=
     19435fi
     19436
     19437
    1914819438
    1914919439echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
     
    1982920119   { (exit 1); exit 1; }; }
    1983020120fi
     20121if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
     20122  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
     20123Usually this means the macro was only invoked conditionally." >&5
     20124echo "$as_me: error: conditional \"AMDEP\" was never defined.
     20125Usually this means the macro was only invoked conditionally." >&2;}
     20126   { (exit 1); exit 1; }; }
     20127fi
     20128if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
     20129  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
     20130Usually this means the macro was only invoked conditionally." >&5
     20131echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
     20132Usually this means the macro was only invoked conditionally." >&2;}
     20133   { (exit 1); exit 1; }; }
     20134fi
    1983120135if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
    1983220136  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
     
    1984020144Usually this means the macro was only invoked conditionally." >&5
    1984120145echo "$as_me: error: conditional \"HAVE_EXTERNALS\" was never defined.
    19842 Usually this means the macro was only invoked conditionally." >&2;}
    19843    { (exit 1); exit 1; }; }
    19844 fi
    19845 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
    19846   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
    19847 Usually this means the macro was only invoked conditionally." >&5
    19848 echo "$as_me: error: conditional \"AMDEP\" was never defined.
    19849 Usually this means the macro was only invoked conditionally." >&2;}
    19850    { (exit 1); exit 1; }; }
    19851 fi
    19852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
    19853   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
    19854 Usually this means the macro was only invoked conditionally." >&5
    19855 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
    1985620146Usually this means the macro was only invoked conditionally." >&2;}
    1985720147   { (exit 1); exit 1; }; }
     
    2040220692s,@build_vendor@,$build_vendor,;t t
    2040320693s,@build_os@,$build_os,;t t
     20694s,@CDEFS@,$CDEFS,;t t
     20695s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
     20696s,@DBG_CFLAGS@,$DBG_CFLAGS,;t t
     20697s,@OPT_CFLAGS@,$OPT_CFLAGS,;t t
     20698s,@CC@,$CC,;t t
     20699s,@CFLAGS@,$CFLAGS,;t t
     20700s,@LDFLAGS@,$LDFLAGS,;t t
     20701s,@CPPFLAGS@,$CPPFLAGS,;t t
     20702s,@ac_ct_CC@,$ac_ct_CC,;t t
     20703s,@EXEEXT@,$EXEEXT,;t t
     20704s,@OBJEXT@,$OBJEXT,;t t
     20705s,@MPICC@,$MPICC,;t t
    2040420706s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
    2040520707s,@DBG_FFLAGS@,$DBG_FFLAGS,;t t
     
    2040720709s,@F77@,$F77,;t t
    2040820710s,@FFLAGS@,$FFLAGS,;t t
    20409 s,@LDFLAGS@,$LDFLAGS,;t t
    2041020711s,@ac_ct_F77@,$ac_ct_F77,;t t
    20411 s,@EXEEXT@,$EXEEXT,;t t
    20412 s,@OBJEXT@,$OBJEXT,;t t
    2041320712s,@MPIF77@,$MPIF77,;t t
    2041420713s,@EGREP@,$EGREP,;t t
     
    2043520734s,@am__tar@,$am__tar,;t t
    2043620735s,@am__untar@,$am__untar,;t t
     20736s,@DEPDIR@,$DEPDIR,;t t
     20737s,@am__include@,$am__include,;t t
     20738s,@am__quote@,$am__quote,;t t
     20739s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
     20740s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
     20741s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
     20742s,@CCDEPMODE@,$CCDEPMODE,;t t
     20743s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
     20744s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2043720745s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
    2043820746s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
     
    2045020758s,@HAVE_EXTERNALS_TRUE@,$HAVE_EXTERNALS_TRUE,;t t
    2045120759s,@HAVE_EXTERNALS_FALSE@,$HAVE_EXTERNALS_FALSE,;t t
    20452 s,@CC@,$CC,;t t
    20453 s,@CFLAGS@,$CFLAGS,;t t
    20454 s,@CPPFLAGS@,$CPPFLAGS,;t t
    20455 s,@ac_ct_CC@,$ac_ct_CC,;t t
    20456 s,@DEPDIR@,$DEPDIR,;t t
    20457 s,@am__include@,$am__include,;t t
    20458 s,@am__quote@,$am__quote,;t t
    20459 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
    20460 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
    20461 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
    20462 s,@CCDEPMODE@,$CCDEPMODE,;t t
    20463 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
    20464 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
    2046520760s,@host@,$host,;t t
    2046620761s,@host_cpu@,$host_cpu,;t t
Note: See TracChangeset for help on using the changeset viewer.