Changeset 2313


Ignore:
Timestamp:
Jun 19, 2011 10:33:08 AM (9 years ago)
Author:
stefan
Message:

sync with trunk rev2311

Location:
ThirdParty/Lapack/stable/1.3
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/stable/1.3

  • ThirdParty/Lapack/stable/1.3/Makefile.am

    r2006 r2313  
    9999pkgconfiglib_DATA = coinlapack.pc
    100100
    101 if COIN_HAS_PKGCONFIG
    102 addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/Lapack
    103        
    104 install-data-hook:
    105         @$(mkdir_p) "$(addlibsdir)"
    106         PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
    107         $(PKG_CONFIG) --libs coinlapack > $(addlibsdir)/lapack_addlibs.txt
    108        
    109 uninstall-hook:
    110         rm -f $(addlibsdir)/lapack_addlibs.txt
    111 endif
    112 
    113 test: $(libampl)
     101test:
    114102        @echo "No test available for Lapack."
    115103
  • ThirdParty/Lapack/stable/1.3/Makefile.in

    r2064 r2313  
    5757        $(srcdir)/coinlapack.pc.in $(top_srcdir)/configure \
    5858        config.guess config.sub depcomp install-sh ltmain.sh missing
    59 @HAVE_EXTERNALS_TRUE@am__append_1 = Externals
    60 @HAVE_EXTERNALS_TRUE@am__append_2 = .Externals-stamp
     59@HAVE_EXTERNALS_TRUE@am__append_1 = Dependencies
     60@HAVE_EXTERNALS_TRUE@am__append_2 = .Dependencies-stamp
    6161subdir = .
    6262ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    132132AUX_DIR = @AUX_DIR@
    133133AWK = @AWK@
     134BLAS_CFLAGS = @BLAS_CFLAGS@
     135BLAS_CFLAGS_INSTALLED = @BLAS_CFLAGS_INSTALLED@
     136BLAS_DATA = @BLAS_DATA@
     137BLAS_DATA_INSTALLED = @BLAS_DATA_INSTALLED@
     138BLAS_DEPENDENCIES = @BLAS_DEPENDENCIES@
     139BLAS_LIBS = @BLAS_LIBS@
     140BLAS_LIBS_INSTALLED = @BLAS_LIBS_INSTALLED@
    134141BUILDTOOLSDIR = @BUILDTOOLSDIR@
    135142CC = @CC@
     
    139146COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@
    140147COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@
     148COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@
     149COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@
    141150COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@
    142151COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@
     
    170179INSTALL_SCRIPT = @INSTALL_SCRIPT@
    171180INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    172 LAPACK_PCLIBS = @LAPACK_PCLIBS@
     181LAPACKLIB_CFLAGS = @LAPACKLIB_CFLAGS@
     182LAPACKLIB_CFLAGS_INSTALLED = @LAPACKLIB_CFLAGS_INSTALLED@
     183LAPACKLIB_DEPENDENCIES = @LAPACKLIB_DEPENDENCIES@
     184LAPACKLIB_LIBS = @LAPACKLIB_LIBS@
     185LAPACKLIB_LIBS_INSTALLED = @LAPACKLIB_LIBS_INSTALLED@
     186LAPACKLIB_PCLIBS = @LAPACKLIB_PCLIBS@
     187LAPACKLIB_PCREQUIRES = @LAPACKLIB_PCREQUIRES@
    173188LAPACK_SVN_REV = @LAPACK_SVN_REV@
    174189LDFLAGS = @LDFLAGS@
     
    339354pkgconfiglibdir = $(libdir)/pkgconfig
    340355pkgconfiglib_DATA = coinlapack.pc
    341 @COIN_HAS_PKGCONFIG_TRUE@addlibsdir = $(DESTDIR)$(datadir)/coin/doc/ThirdParty/Lapack
    342356
    343357########################################################################
     
    672686        @echo "This command is intended for maintainers to use"
    673687        @echo "it deletes files that may require special tools to rebuild."
    674 @COIN_HAS_PKGCONFIG_FALSE@install-data-hook:
    675 @COIN_HAS_PKGCONFIG_FALSE@uninstall-hook:
    676688clean: clean-am
    677689
     
    696708
    697709install-data-am: install-pkgconfiglibDATA
    698         @$(NORMAL_INSTALL)
    699         $(MAKE) $(AM_MAKEFLAGS) install-data-hook
    700710
    701711install-exec-am: install-libLTLIBRARIES
     
    728738uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES \
    729739        uninstall-pkgconfiglibDATA
    730         @$(NORMAL_INSTALL)
    731         $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
    732740
    733741.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \
     
    737745        distclean-libtool distclean-tags distcleancheck distdir \
    738746        distuninstallcheck dvi dvi-am html html-am info info-am \
    739         install install-am install-data install-data-am \
    740         install-data-hook install-exec install-exec-am install-info \
    741         install-info-am install-libLTLIBRARIES install-man \
    742         install-pkgconfiglibDATA install-strip installcheck \
    743         installcheck-am installdirs maintainer-clean \
    744         maintainer-clean-generic mostlyclean mostlyclean-compile \
    745         mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
    746         tags uninstall uninstall-am uninstall-hook uninstall-info-am \
    747         uninstall-libLTLIBRARIES uninstall-pkgconfiglibDATA
     747        install install-am install-data install-data-am install-exec \
     748        install-exec-am install-info install-info-am \
     749        install-libLTLIBRARIES install-man install-pkgconfiglibDATA \
     750        install-strip installcheck installcheck-am installdirs \
     751        maintainer-clean maintainer-clean-generic mostlyclean \
     752        mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
     753        pdf pdf-am ps ps-am tags uninstall uninstall-am \
     754        uninstall-info-am uninstall-libLTLIBRARIES \
     755        uninstall-pkgconfiglibDATA
    748756
    749757
     
    757765        $(LIBTOOL) --tag=F77 --mode=compile $(F77) $(AM_FFLAGS) $(DLAMCH_FFLAGS) -c -o $@ $<
    758766
    759 @COIN_HAS_PKGCONFIG_TRUE@install-data-hook:
    760 @COIN_HAS_PKGCONFIG_TRUE@       @$(mkdir_p) "$(addlibsdir)"
    761 @COIN_HAS_PKGCONFIG_TRUE@       PKG_CONFIG_PATH=@COIN_PKG_CONFIG_PATH@ \
    762 @COIN_HAS_PKGCONFIG_TRUE@       $(PKG_CONFIG) --libs coinlapack > $(addlibsdir)/lapack_addlibs.txt
    763 
    764 @COIN_HAS_PKGCONFIG_TRUE@uninstall-hook:
    765 @COIN_HAS_PKGCONFIG_TRUE@       rm -f $(addlibsdir)/lapack_addlibs.txt
    766 
    767 test: $(libampl)
     767test:
    768768        @echo "No test available for Lapack."
    769769
     
    807807@MAINTAINER_MODE_TRUE@  cp $< $@
    808808
    809 # Take care of updating externals (if Externals file exists)
    810 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@$(top_builddir)/Makefile: .Externals-stamp
    811 
    812 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@.Externals-stamp: $(srcdir)/Externals
    813 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); svn propset svn:externals -F Externals .
    814 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     touch .Externals-stamp
    815 
    816 @HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@update-externals: .Externals-stamp
     809# Take care of updating externals (if Dependencies file exists)
     810@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@$(top_builddir)/Makefile: .Dependencies-stamp
     811
     812@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@.Dependencies-stamp: $(srcdir)/Dependencies
     813@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); BuildTools/set_externals Dependencies
     814@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     touch .Dependencies-stamp
     815
     816@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@update-externals: .Dependencies-stamp
    817817@HAVE_EXTERNALS_TRUE@@MAINTAINER_MODE_TRUE@     cd $(srcdir); svn update
    818818
  • ThirdParty/Lapack/stable/1.3/coinlapack-uninstalled.pc.in

    r2064 r2313  
    66URL: https://projects.coin-or.org/BuildTools
    77Version: @PACKAGE_VERSION@
    8 Libs: ${libdir}/libcoinlapack.la @LAPACK_PCLIBS@
     8Libs: ${libdir}/libcoinlapack.la @LAPACKLIB_PCLIBS@
    99Cflags:
     10Requires: @LAPACKLIB_PCREQUIRES@
  • ThirdParty/Lapack/stable/1.3/coinlapack.pc.in

    r2064 r2313  
    77URL: https://projects.coin-or.org/BuildTools
    88Version: @PACKAGE_VERSION@
    9 Libs: -L${libdir} -lcoinlapack @LAPACK_PCLIBS@
     9Libs: -L${libdir} -lcoinlapack @LAPACKLIB_PCLIBS@
    1010Cflags:
     11Requires: @LAPACKLIB_PCREQUIRES@
  • ThirdParty/Lapack/stable/1.3/configure

    r2064 r2313  
    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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED LAPACK_PCLIBS DLAMCH_FFLAGS 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 ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR 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 ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE have_svnversion LAPACK_SVN_REV build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COIN_CC_IS_CL_TRUE COIN_CC_IS_CL_FALSE MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 ac_ct_F77 FFLAGS MPIF77 FLIBS PKG_CONFIG ac_pt_PKG_CONFIG COIN_HAS_PKGCONFIG_TRUE COIN_HAS_PKGCONFIG_FALSE COIN_PKG_CONFIG_PATH COIN_PKG_CONFIG_PATH_UNINSTALLED BLAS_LIBS BLAS_CFLAGS BLAS_DATA BLAS_DEPENDENCIES BLAS_LIBS_INSTALLED BLAS_CFLAGS_INSTALLED BLAS_DATA_INSTALLED LAPACKLIB_CFLAGS LAPACKLIB_LIBS LAPACKLIB_PCLIBS LAPACKLIB_PCREQUIRES LAPACKLIB_DEPENDENCIES LAPACKLIB_CFLAGS_INSTALLED LAPACKLIB_LIBS_INSTALLED COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE DLAMCH_FFLAGS EGREP LN_S 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 ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS LIBEXT VPATH_DISTCLEANFILES ABSBUILDDIR LIBOBJS LTLIBOBJS'
    476476ac_subst_files=''
    477477
     
    10801080  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    10811081  --enable-debug          compile all projects with debug options tests
    1082   --enable-debug-lapack compile this project (Lapack) with debug options
     1082                          (implies --disable-shared)
     1083  --enable-debug-lapack compile project Lapack with debug compiler flags
    10831084  --enable-doscompile     Under Cygwin, compile so that executables run under
    10841085                          DOS. Set to mingw to use gcc/g++/ld with
     
    10861087                          icl/link). Default when mentioned: mingw. Default
    10871088                          when not mentioned: disabled.
    1088   --enable-pkg-config     use pkg-config if available (default is yes)
     1089  --disable-pkg-config    disable use of pkg-config (if available)
     1090  --disable-interpackage-dependencies
     1091                          disables deduction of Makefile dependencies from
     1092                          package linker flags
    10891093  --enable-static[=PKGS]
    10901094                          build static libraries [default=no]
     
    11051109  --with-lapack-checklevel
    11061110                          specify the sanity check level for project Lapack
     1111  --with-blas             specify BLAS library (or BUILD to enforce use of
     1112                          ThirdParty/Blas)
     1113
    11071114  --with-coin-instdir     prefix of installation directory for precompiled
    11081115                          COIN packages
     1116  --with-blas-lib linker flags for using package Blas
     1117  --with-blas-incdir directory with header files for using package Blas
     1118  --with-blas-datadir directory with data files for using package Blas
    11091119  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    11101120  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    16281638coin_projectdir=yes
    16291639
    1630 # Set the project's version number
    1631 if test "xLapack" != x; then
     1640# Set the project's version numbers
     1641
    16321642
    16331643cat >>confdefs.h <<_ACEOF
     
    16351645_ACEOF
    16361646
    1637 fi
    1638 
    1639 # Set the project's SVN revision number. The complicated sed expression
    1640 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
    1641 # as a single number.
    1642 # Extract the first word of "svnversion", so it can be a program name with args.
     1647
     1648  coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
     1649  coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
     1650  coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
     1651  if test "x$coin_majorver" = x ; then coin_majorver=9999 ; fi
     1652  if test "x$coin_minorver" = x ; then coin_minorver=9999 ; fi
     1653  if test "x$coin_releasever" = x ; then coin_releasever=9999 ; fi
     1654
     1655cat >>confdefs.h <<_ACEOF
     1656#define LAPACK_VERSION_MAJOR $coin_majorver
     1657_ACEOF
     1658
     1659
     1660cat >>confdefs.h <<_ACEOF
     1661#define LAPACK_VERSION_MINOR $coin_minorver
     1662_ACEOF
     1663
     1664
     1665cat >>confdefs.h <<_ACEOF
     1666#define LAPACK_VERSION_RELEASE $coin_releasever
     1667_ACEOF
     1668
     1669
     1670  # We use the following variable to have a string with the upper case
     1671  # version of the project name
     1672  COIN_PRJCT=LAPACK
     1673
     1674  # Set the project's SVN revision number. The complicated sed expression
     1675  # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
     1676  # as a single number.
     1677  # Extract the first word of "svnversion", so it can be a program name with args.
    16431678set dummy svnversion; ac_word=$2
    16441679echo "$as_me:$LINENO: checking for $ac_word" >&5
     
    16761711fi
    16771712
    1678 if test "x$have_svnversion" = xyes && test "xLapack" != x; then
    1679 
    1680   svn_rev_tmp=`cd $srcdir/$coin_has_lapack ; svnversion`
    1681   LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    1682   if test $LAPACK_SVN_REV != exported; then
     1713  if test "x$have_svnversion" = xyes; then
     1714
     1715    svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
     1716    if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x; then
     1717      LAPACK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    16831718
    16841719cat >>confdefs.h <<_ACEOF
     
    16861721_ACEOF
    16871722
     1723    fi
    16881724  fi
    1689 fi
     1725
     1726
    16901727
    16911728# Capture libtool library version, if given.
     1729
    16921730
    16931731
     
    17901828  case "${enableval}" in
    17911829    yes) coin_debug_compile=true
    1792          enable_shared=no
    17931830         ;;
    17941831    no)  coin_debug_compile=false
     
    18451882#define COIN_LAPACK_CHECKLEVEL $coin_lapack_checklevel
    18461883_ACEOF
    1847 
    1848 
    1849 # We use the following variable to have a string with the upper case
    1850 # version of the project name
    1851 COIN_PRJCT=LAPACK
    18521884
    18531885
     
    19301962  esac
    19311963fi
    1932 
    1933 # add automake conditional so we can recognize cl compiler in makefile
    1934 coin_cc_is_cl=false
    1935 if test x"$CXX" != x; then
    1936   case "$CXX" in
    1937     cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
    1938       coin_cc_is_cl=true
    1939       ;;
    1940   esac
    1941 fi
    1942 
    1943 
    1944 if test $coin_cc_is_cl = true; then
    1945   COIN_CC_IS_CL_TRUE=
    1946   COIN_CC_IS_CL_FALSE='#'
    1947 else
    1948   COIN_CC_IS_CL_TRUE='#'
    1949   COIN_CC_IS_CL_FALSE=
    1950 fi
    1951 
    19521964
    19531965
     
    27692781CFLAGS="$save_cflags"
    27702782
     2783# add automake conditional so we can recognize cl compiler in makefile
     2784coin_cc_is_cl=false
     2785case "$CC" in
     2786  cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     2787    coin_cc_is_cl=true
     2788    ;;
     2789esac
     2790
     2791
     2792if test $coin_cc_is_cl = true; then
     2793  COIN_CC_IS_CL_TRUE=
     2794  COIN_CC_IS_CL_FALSE='#'
     2795else
     2796  COIN_CC_IS_CL_TRUE='#'
     2797  COIN_CC_IS_CL_FALSE=
     2798fi
     2799
     2800
    27712801# Check if a project specific CFLAGS variable has been set
    27722802if test x$COIN_PRJCT != x; then
     
    27912821        coin_opt_cflags="-O3"
    27922822        coin_add_cflags="-pipe"
    2793         coin_dbg_cflags="-g"
    2794         coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas"
     2823        coin_dbg_cflags="-g -O0"
     2824        coin_warn_cflags="-Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall -Wno-unknown-pragmas -Wno-long-long"
    27952825        case $build in
    27962826          *-darwin*)
     
    30573087esac
    30583088
     3089# add -DPROJECT_BUILD to signal compiler preprocessor which config header file to include
     3090if test x$COIN_PRJCT != x; then
     3091  CFLAGS="$CFLAGS -D${COIN_PRJCT}_BUILD"
     3092fi
     3093
    30593094# Try if CFLAGS works
    30603095save_CFLAGS="$CFLAGS"
     
    32043239       coin_f77_comps="ifort fl32 compile_f2c"
    32053240     else
    3206        coin_f77_comps="gfortran g77 ifort fl32 compile_f2c"
     3241       coin_f77_comps="gfortran ifort g95 g77 fl32 compile_f2c"
    32073242     fi ;;
    32083243  *-*-solaris*)
    3209      coin_f77_comps="f95 f90 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3244     coin_f77_comps="f95 f90 g95 f77 xlf_r fort77 gfortran g77 pgf90 pgf77 ifort ifc frt af77" ;;
    32103245  *-linux-gnu*)
    3211      coin_f77_comps="gfortran fort77 f77 g77 pgf90 pgf77 ifort ifc frt af77 xlf_r" ;;
    3212   *) coin_f77_comps="xlf_r fort77 gfortran f77 g77 pgf90 pgf77 ifort ifc frt af77" ;;
     3246     coin_f77_comps="gfortran ifort g95 fort77 f77 g77 pgf90 pgf77 ifc frt af77 xlf_r" ;;
     3247  *) coin_f77_comps="xlf_r fort77 gfortran ifort g95 f77 g77 pgf90 pgf77 ifc frt af77" ;;
    32133248 esac
    32143249
     
    32463281{ echo "$as_me:$LINENO: Trying to determine Fortran compiler name" >&5
    32473282echo "$as_me: Trying to determine Fortran compiler name" >&6;}
    3248 for ac_prog in $coin_f77_comps
    3249 do
    3250   # Extract the first word of "$ac_prog", so it can be a program name with args.
    3251 set dummy $ac_prog; ac_word=$2
     3283if test -n "$ac_tool_prefix"; then
     3284  for ac_prog in $coin_f77_comps
     3285  do
     3286    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     3287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
    32523288echo "$as_me:$LINENO: checking for $ac_word" >&5
    32533289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     
    32653301  for ac_exec_ext in '' $ac_executable_extensions; do
    32663302  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    3267     ac_cv_prog_F77="$ac_prog"
     3303    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
    32683304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
    32693305    break 2
     
    32833319fi
    32843320
    3285   test -n "$F77" && break
     3321    test -n "$F77" && break
     3322  done
     3323fi
     3324if test -z "$F77"; then
     3325  ac_ct_F77=$F77
     3326  for ac_prog in $coin_f77_comps
     3327do
     3328  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3329set dummy $ac_prog; ac_word=$2
     3330echo "$as_me:$LINENO: checking for $ac_word" >&5
     3331echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
     3332if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
     3333  echo $ECHO_N "(cached) $ECHO_C" >&6
     3334else
     3335  if test -n "$ac_ct_F77"; then
     3336  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
     3337else
     3338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3339for as_dir in $PATH
     3340do
     3341  IFS=$as_save_IFS
     3342  test -z "$as_dir" && as_dir=.
     3343  for ac_exec_ext in '' $ac_executable_extensions; do
     3344  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3345    ac_cv_prog_ac_ct_F77="$ac_prog"
     3346    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
     3347    break 2
     3348  fi
    32863349done
    3287 test -n "$F77" || F77="unavailable"
     3350done
     3351
     3352fi
     3353fi
     3354ac_ct_F77=$ac_cv_prog_ac_ct_F77
     3355if test -n "$ac_ct_F77"; then
     3356  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
     3357echo "${ECHO_T}$ac_ct_F77" >&6
     3358else
     3359  echo "$as_me:$LINENO: result: no" >&5
     3360echo "${ECHO_T}no" >&6
     3361fi
     3362
     3363  test -n "$ac_ct_F77" && break
     3364done
     3365test -n "$ac_ct_F77" || ac_ct_F77="unavailable"
     3366
     3367  F77=$ac_ct_F77
     3368fi
    32883369
    32893370
     
    33813462
    33823463# Provide some information about the compiler.
    3383 echo "$as_me:3383:" \
     3464echo "$as_me:3464:" \
    33843465     "checking for Fortran 77 compiler version" >&5
    33853466ac_compiler=`set X $ac_compile; echo $2`
     
    35493630    coin_opt_fflags="-O3"
    35503631    coin_add_fflags="-pipe"
    3551     coin_dbg_fflags="-g"
     3632    coin_dbg_fflags="-g -O0"
    35523633    case $enable_doscompile in
    35533634      mingw)
     
    38983979
    38993980
    3900 # Get the linker flags (FLIBS) that are required for linking against this blas library
     3981# Get the linker flags (FLIBS) that are required for linking against this library
     3982
     3983# get FLIBS
    39013984ac_ext=f
    39023985ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     
    39504033ac_save_FFLAGS=$FFLAGS
    39514034FFLAGS="$FFLAGS $ac_verb"
    3952 (eval echo $as_me:3952: \"$ac_link\") >&5
     4035(eval echo $as_me:4035: \"$ac_link\") >&5
    39534036ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39544037echo "$ac_f77_v_output" >&5
     
    40284111ac_save_FFLAGS=$FFLAGS
    40294112FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    4030 (eval echo $as_me:4030: \"$ac_link\") >&5
     4113(eval echo $as_me:4113: \"$ac_link\") >&5
    40314114ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    40324115echo "$ac_f77_v_output" >&5
     
    41944277
    41954278
    4196 ac_ext=f
    4197 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4198 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4199 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4200 
    4201 ac_ext=f
    4202 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4203 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4204 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4205 
    4206 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
    4207 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
    4208 if test "${ac_cv_f77_dummy_main+set}" = set; then
    4209   echo $ECHO_N "(cached) $ECHO_C" >&6
    4210 else
    4211   ac_f77_dm_save_LIBS=$LIBS
    4212  LIBS="$LIBS $FLIBS"
    4213  ac_fortran_dm_var=F77_DUMMY_MAIN
    4214  ac_ext=c
     4279ac_ext=c
    42154280ac_cpp='$CPP $CPPFLAGS'
    42164281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     
    42184283ac_compiler_gnu=$ac_cv_c_compiler_gnu
    42194284
    4220  # First, try linking without a dummy main:
    4221  cat >conftest.$ac_ext <<_ACEOF
    4222 /* confdefs.h.  */
    4223 _ACEOF
    4224 cat confdefs.h >>conftest.$ac_ext
    4225 cat >>conftest.$ac_ext <<_ACEOF
    4226 /* end confdefs.h.  */
    4227 
    4228 #ifdef F77_DUMMY_MAIN
    4229 
    4230 #  ifdef __cplusplus
    4231      extern "C"
    4232 #  endif
    4233    int F77_DUMMY_MAIN() { return 1; }
    4234 
    4235 #endif
    4236 int
    4237 main ()
    4238 {
    4239 
    4240   ;
    4241   return 0;
    4242 }
    4243 _ACEOF
    4244 rm -f conftest.$ac_objext conftest$ac_exeext
    4245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4246   (eval $ac_link) 2>conftest.er1
    4247   ac_status=$?
    4248   grep -v '^ *+' conftest.er1 >conftest.err
    4249   rm -f conftest.er1
    4250   cat conftest.err >&5
    4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4252   (exit $ac_status); } &&
    4253          { ac_try='test -z "$ac_c_werror_flag"
    4254                          || test ! -s conftest.err'
    4255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4256   (eval $ac_try) 2>&5
    4257   ac_status=$?
    4258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4259   (exit $ac_status); }; } &&
    4260          { ac_try='test -s conftest$ac_exeext'
    4261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4262   (eval $ac_try) 2>&5
    4263   ac_status=$?
    4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4265   (exit $ac_status); }; }; then
    4266   ac_cv_fortran_dummy_main=none
    4267 else
    4268   echo "$as_me: failed program was:" >&5
    4269 sed 's/^/| /' conftest.$ac_ext >&5
    4270 
    4271 ac_cv_fortran_dummy_main=unknown
    4272 fi
    4273 rm -f conftest.err conftest.$ac_objext \
    4274       conftest$ac_exeext conftest.$ac_ext
    4275 
    4276  if test $ac_cv_fortran_dummy_main = unknown; then
    4277    for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
    4278      cat >conftest.$ac_ext <<_ACEOF
    4279 /* confdefs.h.  */
    4280 _ACEOF
    4281 cat confdefs.h >>conftest.$ac_ext
    4282 cat >>conftest.$ac_ext <<_ACEOF
    4283 /* end confdefs.h.  */
    4284 #define $ac_fortran_dm_var $ac_func
    4285 #ifdef F77_DUMMY_MAIN
    4286 
    4287 #  ifdef __cplusplus
    4288      extern "C"
    4289 #  endif
    4290    int F77_DUMMY_MAIN() { return 1; }
    4291 
    4292 #endif
    4293 int
    4294 main ()
    4295 {
    4296 
    4297   ;
    4298   return 0;
    4299 }
    4300 _ACEOF
    4301 rm -f conftest.$ac_objext conftest$ac_exeext
    4302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4303   (eval $ac_link) 2>conftest.er1
    4304   ac_status=$?
    4305   grep -v '^ *+' conftest.er1 >conftest.err
    4306   rm -f conftest.er1
    4307   cat conftest.err >&5
    4308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4309   (exit $ac_status); } &&
    4310          { ac_try='test -z "$ac_c_werror_flag"
    4311                          || test ! -s conftest.err'
    4312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4313   (eval $ac_try) 2>&5
    4314   ac_status=$?
    4315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4316   (exit $ac_status); }; } &&
    4317          { ac_try='test -s conftest$ac_exeext'
    4318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4319   (eval $ac_try) 2>&5
    4320   ac_status=$?
    4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4322   (exit $ac_status); }; }; then
    4323   ac_cv_fortran_dummy_main=$ac_func; break
    4324 else
    4325   echo "$as_me: failed program was:" >&5
    4326 sed 's/^/| /' conftest.$ac_ext >&5
    4327 
    4328 fi
    4329 rm -f conftest.err conftest.$ac_objext \
    4330       conftest$ac_exeext conftest.$ac_ext
    4331    done
    4332  fi
    4333  ac_ext=f
    4334 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4335 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4336 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4337  ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
    4338  rm -f conftest*
    4339  LIBS=$ac_f77_dm_save_LIBS
    4340 
    4341 fi
    4342 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
    4343 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
    4344 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
    4345 if test "$F77_DUMMY_MAIN" != unknown; then
    4346   if test $F77_DUMMY_MAIN != none; then
    4347 
    4348 cat >>confdefs.h <<_ACEOF
    4349 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN
    4350 _ACEOF
    4351 
    4352   if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
    4353 
    4354 cat >>confdefs.h <<\_ACEOF
    4355 #define FC_DUMMY_MAIN_EQ_F77 1
    4356 _ACEOF
    4357 
    4358   fi
    4359 fi
    4360 else
    4361   { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
    4362 See \`config.log' for more details." >&5
    4363 echo "$as_me: error: linking to Fortran libraries from C fails
    4364 See \`config.log' for more details." >&2;}
    4365    { (exit 1); exit 1; }; }
    4366 fi
    4367 
    4368 
    4369 ac_ext=f
    4370 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4371 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4372 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4373 
    4374 ac_ext=f
    4375 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4376 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4377 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4378 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
    4379 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
    4380 if test "${ac_cv_f77_mangling+set}" = set; then
    4381   echo $ECHO_N "(cached) $ECHO_C" >&6
    4382 else
    4383   cat >conftest.$ac_ext <<_ACEOF
    4384       subroutine foobar()
    4385       return
    4386       end
    4387       subroutine foo_bar()
    4388       return
    4389       end
    4390 _ACEOF
    4391 rm -f conftest.$ac_objext
    4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    4393   (eval $ac_compile) 2>conftest.er1
    4394   ac_status=$?
    4395   grep -v '^ *+' conftest.er1 >conftest.err
    4396   rm -f conftest.er1
    4397   cat conftest.err >&5
    4398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4399   (exit $ac_status); } &&
    4400          { ac_try='test -z "$ac_f77_werror_flag"
    4401                          || test ! -s conftest.err'
    4402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4403   (eval $ac_try) 2>&5
    4404   ac_status=$?
    4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4406   (exit $ac_status); }; } &&
    4407          { ac_try='test -s conftest.$ac_objext'
    4408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4409   (eval $ac_try) 2>&5
    4410   ac_status=$?
    4411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4412   (exit $ac_status); }; }; then
    4413   mv conftest.$ac_objext cfortran_test.$ac_objext
    4414 
    4415   ac_save_LIBS=$LIBS
    4416   LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
    4417 
    4418   ac_ext=c
    4419 ac_cpp='$CPP $CPPFLAGS'
    4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4423   ac_success=no
    4424   for ac_foobar in foobar FOOBAR; do
    4425     for ac_underscore in "" "_"; do
    4426       ac_func="$ac_foobar$ac_underscore"
    4427       cat >conftest.$ac_ext <<_ACEOF
    4428 /* confdefs.h.  */
    4429 _ACEOF
    4430 cat confdefs.h >>conftest.$ac_ext
    4431 cat >>conftest.$ac_ext <<_ACEOF
    4432 /* end confdefs.h.  */
    4433 
    4434 /* Override any gcc2 internal prototype to avoid an error.  */
    4435 #ifdef __cplusplus
    4436 extern "C"
    4437 #endif
    4438 /* We use char because int might match the return type of a gcc2
    4439    builtin and then its argument prototype would still apply.  */
    4440 char $ac_func ();
    4441 #ifdef F77_DUMMY_MAIN
    4442 
    4443 #  ifdef __cplusplus
    4444      extern "C"
    4445 #  endif
    4446    int F77_DUMMY_MAIN() { return 1; }
    4447 
    4448 #endif
    4449 int
    4450 main ()
    4451 {
    4452 $ac_func ();
    4453   ;
    4454   return 0;
    4455 }
    4456 _ACEOF
    4457 rm -f conftest.$ac_objext conftest$ac_exeext
    4458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4459   (eval $ac_link) 2>conftest.er1
    4460   ac_status=$?
    4461   grep -v '^ *+' conftest.er1 >conftest.err
    4462   rm -f conftest.er1
    4463   cat conftest.err >&5
    4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4465   (exit $ac_status); } &&
    4466          { ac_try='test -z "$ac_c_werror_flag"
    4467                          || test ! -s conftest.err'
    4468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4469   (eval $ac_try) 2>&5
    4470   ac_status=$?
    4471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4472   (exit $ac_status); }; } &&
    4473          { ac_try='test -s conftest$ac_exeext'
    4474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4475   (eval $ac_try) 2>&5
    4476   ac_status=$?
    4477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4478   (exit $ac_status); }; }; then
    4479   ac_success=yes; break 2
    4480 else
    4481   echo "$as_me: failed program was:" >&5
    4482 sed 's/^/| /' conftest.$ac_ext >&5
    4483 
    4484 fi
    4485 rm -f conftest.err conftest.$ac_objext \
    4486       conftest$ac_exeext conftest.$ac_ext
    4487     done
    4488   done
    4489   ac_ext=f
    4490 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4491 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4492 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4493 
    4494   if test "$ac_success" = "yes"; then
    4495      case $ac_foobar in
    4496         foobar)
    4497            ac_case=lower
    4498            ac_foo_bar=foo_bar
    4499            ;;
    4500         FOOBAR)
    4501            ac_case=upper
    4502            ac_foo_bar=FOO_BAR
    4503            ;;
    4504      esac
    4505 
    4506      ac_ext=c
    4507 ac_cpp='$CPP $CPPFLAGS'
    4508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
    4509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
    4511      ac_success_extra=no
    4512      for ac_extra in "" "_"; do
    4513         ac_func="$ac_foo_bar$ac_underscore$ac_extra"
    4514         cat >conftest.$ac_ext <<_ACEOF
    4515 /* confdefs.h.  */
    4516 _ACEOF
    4517 cat confdefs.h >>conftest.$ac_ext
    4518 cat >>conftest.$ac_ext <<_ACEOF
    4519 /* end confdefs.h.  */
    4520 
    4521 /* Override any gcc2 internal prototype to avoid an error.  */
    4522 #ifdef __cplusplus
    4523 extern "C"
    4524 #endif
    4525 /* We use char because int might match the return type of a gcc2
    4526    builtin and then its argument prototype would still apply.  */
    4527 char $ac_func ();
    4528 #ifdef F77_DUMMY_MAIN
    4529 
    4530 #  ifdef __cplusplus
    4531      extern "C"
    4532 #  endif
    4533    int F77_DUMMY_MAIN() { return 1; }
    4534 
    4535 #endif
    4536 int
    4537 main ()
    4538 {
    4539 $ac_func ();
    4540   ;
    4541   return 0;
    4542 }
    4543 _ACEOF
    4544 rm -f conftest.$ac_objext conftest$ac_exeext
    4545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
    4546   (eval $ac_link) 2>conftest.er1
    4547   ac_status=$?
    4548   grep -v '^ *+' conftest.er1 >conftest.err
    4549   rm -f conftest.er1
    4550   cat conftest.err >&5
    4551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4552   (exit $ac_status); } &&
    4553          { ac_try='test -z "$ac_c_werror_flag"
    4554                          || test ! -s conftest.err'
    4555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4556   (eval $ac_try) 2>&5
    4557   ac_status=$?
    4558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4559   (exit $ac_status); }; } &&
    4560          { ac_try='test -s conftest$ac_exeext'
    4561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
    4562   (eval $ac_try) 2>&5
    4563   ac_status=$?
    4564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
    4565   (exit $ac_status); }; }; then
    4566   ac_success_extra=yes; break
    4567 else
    4568   echo "$as_me: failed program was:" >&5
    4569 sed 's/^/| /' conftest.$ac_ext >&5
    4570 
    4571 fi
    4572 rm -f conftest.err conftest.$ac_objext \
    4573       conftest$ac_exeext conftest.$ac_ext
    4574      done
    4575      ac_ext=f
    4576 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4577 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4578 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4579 
    4580      if test "$ac_success_extra" = "yes"; then
    4581         ac_cv_f77_mangling="$ac_case case"
    4582         if test -z "$ac_underscore"; then
    4583            ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
    4584         else
    4585            ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
    4586         fi
    4587         if test -z "$ac_extra"; then
    4588            ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
    4589         else
    4590            ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
    4591         fi
    4592       else
    4593         ac_cv_f77_mangling="unknown"
    4594       fi
    4595   else
    4596      ac_cv_f77_mangling="unknown"
    4597   fi
    4598 
    4599   LIBS=$ac_save_LIBS
    4600   rm -f cfortran_test* conftest*
    4601 else
    4602   echo "$as_me: failed program was:" >&5
    4603 sed 's/^/| /' conftest.$ac_ext >&5
    4604 
    4605 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
    4606 See \`config.log' for more details." >&5
    4607 echo "$as_me: error: cannot compile a simple Fortran program
    4608 See \`config.log' for more details." >&2;}
    4609    { (exit 1); exit 1; }; }
    4610 fi
    4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
    4612 
    4613 fi
    4614 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
    4615 echo "${ECHO_T}$ac_cv_f77_mangling" >&6
    4616 
    4617 ac_ext=f
    4618 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4619 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4620 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4621 
    4622 
    4623 ac_ext=f
    4624 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4625 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4626 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4627 
    4628 
    4629 ac_ext=f
    4630 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4631 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4632 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4633 
    4634 
    4635 case $ac_cv_f77_mangling in
    4636   "lower case, no underscore, no extra underscore")
    4637           cat >>confdefs.h <<\_ACEOF
    4638 #define F77_FUNC(name,NAME) name
    4639 _ACEOF
    4640 
    4641           cat >>confdefs.h <<\_ACEOF
    4642 #define F77_FUNC_(name,NAME) name
    4643 _ACEOF
    4644  ;;
    4645   "lower case, no underscore, extra underscore")
    4646           cat >>confdefs.h <<\_ACEOF
    4647 #define F77_FUNC(name,NAME) name
    4648 _ACEOF
    4649 
    4650           cat >>confdefs.h <<\_ACEOF
    4651 #define F77_FUNC_(name,NAME) name ## _
    4652 _ACEOF
    4653  ;;
    4654   "lower case, underscore, no extra underscore")
    4655           cat >>confdefs.h <<\_ACEOF
    4656 #define F77_FUNC(name,NAME) name ## _
    4657 _ACEOF
    4658 
    4659           cat >>confdefs.h <<\_ACEOF
    4660 #define F77_FUNC_(name,NAME) name ## _
    4661 _ACEOF
    4662  ;;
    4663   "lower case, underscore, extra underscore")
    4664           cat >>confdefs.h <<\_ACEOF
    4665 #define F77_FUNC(name,NAME) name ## _
    4666 _ACEOF
    4667 
    4668           cat >>confdefs.h <<\_ACEOF
    4669 #define F77_FUNC_(name,NAME) name ## __
    4670 _ACEOF
    4671  ;;
    4672   "upper case, no underscore, no extra underscore")
    4673           cat >>confdefs.h <<\_ACEOF
    4674 #define F77_FUNC(name,NAME) NAME
    4675 _ACEOF
    4676 
    4677           cat >>confdefs.h <<\_ACEOF
    4678 #define F77_FUNC_(name,NAME) NAME
    4679 _ACEOF
    4680  ;;
    4681   "upper case, no underscore, extra underscore")
    4682           cat >>confdefs.h <<\_ACEOF
    4683 #define F77_FUNC(name,NAME) NAME
    4684 _ACEOF
    4685 
    4686           cat >>confdefs.h <<\_ACEOF
    4687 #define F77_FUNC_(name,NAME) NAME ## _
    4688 _ACEOF
    4689  ;;
    4690   "upper case, underscore, no extra underscore")
    4691           cat >>confdefs.h <<\_ACEOF
    4692 #define F77_FUNC(name,NAME) NAME ## _
    4693 _ACEOF
    4694 
    4695           cat >>confdefs.h <<\_ACEOF
    4696 #define F77_FUNC_(name,NAME) NAME ## _
    4697 _ACEOF
    4698  ;;
    4699   "upper case, underscore, extra underscore")
    4700           cat >>confdefs.h <<\_ACEOF
    4701 #define F77_FUNC(name,NAME) NAME ## _
    4702 _ACEOF
    4703 
    4704           cat >>confdefs.h <<\_ACEOF
    4705 #define F77_FUNC_(name,NAME) NAME ## __
    4706 _ACEOF
    4707  ;;
    4708   *)
    4709           { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
    4710 echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
    4711           ;;
    4712 esac
    4713 
    4714 ac_ext=f
    4715 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
    4716 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
    4717 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
    4718 
     4285orig_FLIBS="$FLIBS"
    47194286
    47204287# If FLIBS has been set by the user, we just restore its value here
     
    47414308  # This is seem to be unnecessary, libifcorert(d).lib has been removed from the link line.
    47424309  # Further, excluding libc.lib from the default libs seemed to be necessary only for VS < 8.
    4743   # Since the corresponding flag seems to make more trouble that it avoid, it has been removed now.
     4310  # Since the corresponding flag seems to make more trouble than it avoids, it has been removed now.
    47444311     *-cygwin* | *-mingw*)
    47454312       case "$F77" in
     
    47704337fi
    47714338
     4339if test "x$orig_FLIBS" != "x$FLIBS" ; then
     4340  { echo "$as_me:$LINENO: Corrected Fortran libraries: $FLIBS" >&5
     4341echo "$as_me: Corrected Fortran libraries: $FLIBS" >&6;}
     4342fi
     4343
     4344ac_ext=f
     4345ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4346ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4347ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4348
     4349echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5
     4350echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6
     4351if test "${ac_cv_f77_dummy_main+set}" = set; then
     4352  echo $ECHO_N "(cached) $ECHO_C" >&6
     4353else
     4354  ac_f77_dm_save_LIBS=$LIBS
     4355 LIBS="$LIBS $FLIBS"
     4356 ac_fortran_dm_var=F77_DUMMY_MAIN
     4357 ac_ext=c
     4358ac_cpp='$CPP $CPPFLAGS'
     4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4362
     4363 # First, try linking without a dummy main:
     4364 cat >conftest.$ac_ext <<_ACEOF
     4365/* confdefs.h.  */
     4366_ACEOF
     4367cat confdefs.h >>conftest.$ac_ext
     4368cat >>conftest.$ac_ext <<_ACEOF
     4369/* end confdefs.h.  */
     4370
     4371#ifdef F77_DUMMY_MAIN
     4372
     4373#  ifdef __cplusplus
     4374     extern "C"
     4375#  endif
     4376   int F77_DUMMY_MAIN() { return 1; }
     4377
     4378#endif
     4379int
     4380main ()
     4381{
     4382
     4383  ;
     4384  return 0;
     4385}
     4386_ACEOF
     4387rm -f conftest.$ac_objext conftest$ac_exeext
     4388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4389  (eval $ac_link) 2>conftest.er1
     4390  ac_status=$?
     4391  grep -v '^ *+' conftest.er1 >conftest.err
     4392  rm -f conftest.er1
     4393  cat conftest.err >&5
     4394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4395  (exit $ac_status); } &&
     4396         { ac_try='test -z "$ac_c_werror_flag"
     4397                         || test ! -s conftest.err'
     4398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4399  (eval $ac_try) 2>&5
     4400  ac_status=$?
     4401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4402  (exit $ac_status); }; } &&
     4403         { ac_try='test -s conftest$ac_exeext'
     4404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4405  (eval $ac_try) 2>&5
     4406  ac_status=$?
     4407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4408  (exit $ac_status); }; }; then
     4409  ac_cv_fortran_dummy_main=none
     4410else
     4411  echo "$as_me: failed program was:" >&5
     4412sed 's/^/| /' conftest.$ac_ext >&5
     4413
     4414ac_cv_fortran_dummy_main=unknown
     4415fi
     4416rm -f conftest.err conftest.$ac_objext \
     4417      conftest$ac_exeext conftest.$ac_ext
     4418
     4419 if test $ac_cv_fortran_dummy_main = unknown; then
     4420   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
     4421     cat >conftest.$ac_ext <<_ACEOF
     4422/* confdefs.h.  */
     4423_ACEOF
     4424cat confdefs.h >>conftest.$ac_ext
     4425cat >>conftest.$ac_ext <<_ACEOF
     4426/* end confdefs.h.  */
     4427#define $ac_fortran_dm_var $ac_func
     4428#ifdef F77_DUMMY_MAIN
     4429
     4430#  ifdef __cplusplus
     4431     extern "C"
     4432#  endif
     4433   int F77_DUMMY_MAIN() { return 1; }
     4434
     4435#endif
     4436int
     4437main ()
     4438{
     4439
     4440  ;
     4441  return 0;
     4442}
     4443_ACEOF
     4444rm -f conftest.$ac_objext conftest$ac_exeext
     4445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4446  (eval $ac_link) 2>conftest.er1
     4447  ac_status=$?
     4448  grep -v '^ *+' conftest.er1 >conftest.err
     4449  rm -f conftest.er1
     4450  cat conftest.err >&5
     4451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4452  (exit $ac_status); } &&
     4453         { ac_try='test -z "$ac_c_werror_flag"
     4454                         || test ! -s conftest.err'
     4455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4456  (eval $ac_try) 2>&5
     4457  ac_status=$?
     4458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4459  (exit $ac_status); }; } &&
     4460         { ac_try='test -s conftest$ac_exeext'
     4461  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4462  (eval $ac_try) 2>&5
     4463  ac_status=$?
     4464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4465  (exit $ac_status); }; }; then
     4466  ac_cv_fortran_dummy_main=$ac_func; break
     4467else
     4468  echo "$as_me: failed program was:" >&5
     4469sed 's/^/| /' conftest.$ac_ext >&5
     4470
     4471fi
     4472rm -f conftest.err conftest.$ac_objext \
     4473      conftest$ac_exeext conftest.$ac_ext
     4474   done
     4475 fi
     4476 ac_ext=f
     4477ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4478ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4479ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4480 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
     4481 rm -f conftest*
     4482 LIBS=$ac_f77_dm_save_LIBS
     4483
     4484fi
     4485echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5
     4486echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6
     4487F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
     4488if test "$F77_DUMMY_MAIN" != unknown; then
     4489  if test $F77_DUMMY_MAIN != none; then
     4490
     4491cat >>confdefs.h <<_ACEOF
     4492#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
     4493_ACEOF
     4494
     4495  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
     4496
     4497cat >>confdefs.h <<\_ACEOF
     4498#define FC_DUMMY_MAIN_EQ_F77 1
     4499_ACEOF
     4500
     4501  fi
     4502fi
     4503else
     4504  { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails
     4505See \`config.log' for more details." >&5
     4506echo "$as_me: error: linking to Fortran libraries from C fails
     4507See \`config.log' for more details." >&2;}
     4508   { (exit 1); exit 1; }; }
     4509fi
     4510
     4511
     4512ac_ext=f
     4513ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4514ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4515ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4516
     4517ac_ext=f
     4518ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4519ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4520ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4521echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5
     4522echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6
     4523if test "${ac_cv_f77_mangling+set}" = set; then
     4524  echo $ECHO_N "(cached) $ECHO_C" >&6
     4525else
     4526  cat >conftest.$ac_ext <<_ACEOF
     4527      subroutine foobar()
     4528      return
     4529      end
     4530      subroutine foo_bar()
     4531      return
     4532      end
     4533_ACEOF
     4534rm -f conftest.$ac_objext
     4535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
     4536  (eval $ac_compile) 2>conftest.er1
     4537  ac_status=$?
     4538  grep -v '^ *+' conftest.er1 >conftest.err
     4539  rm -f conftest.er1
     4540  cat conftest.err >&5
     4541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4542  (exit $ac_status); } &&
     4543         { ac_try='test -z "$ac_f77_werror_flag"
     4544                         || test ! -s conftest.err'
     4545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4546  (eval $ac_try) 2>&5
     4547  ac_status=$?
     4548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4549  (exit $ac_status); }; } &&
     4550         { ac_try='test -s conftest.$ac_objext'
     4551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4552  (eval $ac_try) 2>&5
     4553  ac_status=$?
     4554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4555  (exit $ac_status); }; }; then
     4556  mv conftest.$ac_objext cfortran_test.$ac_objext
     4557
     4558  ac_save_LIBS=$LIBS
     4559  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
     4560
     4561  ac_ext=c
     4562ac_cpp='$CPP $CPPFLAGS'
     4563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4565ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4566  ac_success=no
     4567  for ac_foobar in foobar FOOBAR; do
     4568    for ac_underscore in "" "_"; do
     4569      ac_func="$ac_foobar$ac_underscore"
     4570      cat >conftest.$ac_ext <<_ACEOF
     4571/* confdefs.h.  */
     4572_ACEOF
     4573cat confdefs.h >>conftest.$ac_ext
     4574cat >>conftest.$ac_ext <<_ACEOF
     4575/* end confdefs.h.  */
     4576
     4577/* Override any gcc2 internal prototype to avoid an error.  */
     4578#ifdef __cplusplus
     4579extern "C"
     4580#endif
     4581/* We use char because int might match the return type of a gcc2
     4582   builtin and then its argument prototype would still apply.  */
     4583char $ac_func ();
     4584#ifdef F77_DUMMY_MAIN
     4585
     4586#  ifdef __cplusplus
     4587     extern "C"
     4588#  endif
     4589   int F77_DUMMY_MAIN() { return 1; }
     4590
     4591#endif
     4592int
     4593main ()
     4594{
     4595$ac_func ();
     4596  ;
     4597  return 0;
     4598}
     4599_ACEOF
     4600rm -f conftest.$ac_objext conftest$ac_exeext
     4601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4602  (eval $ac_link) 2>conftest.er1
     4603  ac_status=$?
     4604  grep -v '^ *+' conftest.er1 >conftest.err
     4605  rm -f conftest.er1
     4606  cat conftest.err >&5
     4607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4608  (exit $ac_status); } &&
     4609         { ac_try='test -z "$ac_c_werror_flag"
     4610                         || test ! -s conftest.err'
     4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4612  (eval $ac_try) 2>&5
     4613  ac_status=$?
     4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4615  (exit $ac_status); }; } &&
     4616         { ac_try='test -s conftest$ac_exeext'
     4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4618  (eval $ac_try) 2>&5
     4619  ac_status=$?
     4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4621  (exit $ac_status); }; }; then
     4622  ac_success=yes; break 2
     4623else
     4624  echo "$as_me: failed program was:" >&5
     4625sed 's/^/| /' conftest.$ac_ext >&5
     4626
     4627fi
     4628rm -f conftest.err conftest.$ac_objext \
     4629      conftest$ac_exeext conftest.$ac_ext
     4630    done
     4631  done
     4632  ac_ext=f
     4633ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4634ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4635ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4636
     4637  if test "$ac_success" = "yes"; then
     4638     case $ac_foobar in
     4639        foobar)
     4640           ac_case=lower
     4641           ac_foo_bar=foo_bar
     4642           ;;
     4643        FOOBAR)
     4644           ac_case=upper
     4645           ac_foo_bar=FOO_BAR
     4646           ;;
     4647     esac
     4648
     4649     ac_ext=c
     4650ac_cpp='$CPP $CPPFLAGS'
     4651ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     4652ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4653ac_compiler_gnu=$ac_cv_c_compiler_gnu
     4654     ac_success_extra=no
     4655     for ac_extra in "" "_"; do
     4656        ac_func="$ac_foo_bar$ac_underscore$ac_extra"
     4657        cat >conftest.$ac_ext <<_ACEOF
     4658/* confdefs.h.  */
     4659_ACEOF
     4660cat confdefs.h >>conftest.$ac_ext
     4661cat >>conftest.$ac_ext <<_ACEOF
     4662/* end confdefs.h.  */
     4663
     4664/* Override any gcc2 internal prototype to avoid an error.  */
     4665#ifdef __cplusplus
     4666extern "C"
     4667#endif
     4668/* We use char because int might match the return type of a gcc2
     4669   builtin and then its argument prototype would still apply.  */
     4670char $ac_func ();
     4671#ifdef F77_DUMMY_MAIN
     4672
     4673#  ifdef __cplusplus
     4674     extern "C"
     4675#  endif
     4676   int F77_DUMMY_MAIN() { return 1; }
     4677
     4678#endif
     4679int
     4680main ()
     4681{
     4682$ac_func ();
     4683  ;
     4684  return 0;
     4685}
     4686_ACEOF
     4687rm -f conftest.$ac_objext conftest$ac_exeext
     4688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     4689  (eval $ac_link) 2>conftest.er1
     4690  ac_status=$?
     4691  grep -v '^ *+' conftest.er1 >conftest.err
     4692  rm -f conftest.er1
     4693  cat conftest.err >&5
     4694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4695  (exit $ac_status); } &&
     4696         { ac_try='test -z "$ac_c_werror_flag"
     4697                         || test ! -s conftest.err'
     4698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4699  (eval $ac_try) 2>&5
     4700  ac_status=$?
     4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4702  (exit $ac_status); }; } &&
     4703         { ac_try='test -s conftest$ac_exeext'
     4704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     4705  (eval $ac_try) 2>&5
     4706  ac_status=$?
     4707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     4708  (exit $ac_status); }; }; then
     4709  ac_success_extra=yes; break
     4710else
     4711  echo "$as_me: failed program was:" >&5
     4712sed 's/^/| /' conftest.$ac_ext >&5
     4713
     4714fi
     4715rm -f conftest.err conftest.$ac_objext \
     4716      conftest$ac_exeext conftest.$ac_ext
     4717     done
     4718     ac_ext=f
     4719ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4720ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4721ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4722
     4723     if test "$ac_success_extra" = "yes"; then
     4724        ac_cv_f77_mangling="$ac_case case"
     4725        if test -z "$ac_underscore"; then
     4726           ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
     4727        else
     4728           ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
     4729        fi
     4730        if test -z "$ac_extra"; then
     4731           ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
     4732        else
     4733           ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
     4734        fi
     4735      else
     4736        ac_cv_f77_mangling="unknown"
     4737      fi
     4738  else
     4739     ac_cv_f77_mangling="unknown"
     4740  fi
     4741
     4742  LIBS=$ac_save_LIBS
     4743  rm -f cfortran_test* conftest*
     4744else
     4745  echo "$as_me: failed program was:" >&5
     4746sed 's/^/| /' conftest.$ac_ext >&5
     4747
     4748{ { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program
     4749See \`config.log' for more details." >&5
     4750echo "$as_me: error: cannot compile a simple Fortran program
     4751See \`config.log' for more details." >&2;}
     4752   { (exit 1); exit 1; }; }
     4753fi
     4754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
     4755
     4756fi
     4757echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5
     4758echo "${ECHO_T}$ac_cv_f77_mangling" >&6
     4759
     4760ac_ext=f
     4761ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4762ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4763ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4764
     4765
     4766ac_ext=f
     4767ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4768ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4769ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4770
     4771ac_ext=f
     4772ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4773ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4774ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4775
     4776
     4777case $ac_cv_f77_mangling in
     4778  "lower case, no underscore, no extra underscore")
     4779          cat >>confdefs.h <<\_ACEOF
     4780#define F77_FUNC(name,NAME) name
     4781_ACEOF
     4782
     4783          cat >>confdefs.h <<\_ACEOF
     4784#define F77_FUNC_(name,NAME) name
     4785_ACEOF
     4786 ;;
     4787  "lower case, no underscore, extra underscore")
     4788          cat >>confdefs.h <<\_ACEOF
     4789#define F77_FUNC(name,NAME) name
     4790_ACEOF
     4791
     4792          cat >>confdefs.h <<\_ACEOF
     4793#define F77_FUNC_(name,NAME) name ## _
     4794_ACEOF
     4795 ;;
     4796  "lower case, underscore, no extra underscore")
     4797          cat >>confdefs.h <<\_ACEOF
     4798#define F77_FUNC(name,NAME) name ## _
     4799_ACEOF
     4800
     4801          cat >>confdefs.h <<\_ACEOF
     4802#define F77_FUNC_(name,NAME) name ## _
     4803_ACEOF
     4804 ;;
     4805  "lower case, underscore, extra underscore")
     4806          cat >>confdefs.h <<\_ACEOF
     4807#define F77_FUNC(name,NAME) name ## _
     4808_ACEOF
     4809
     4810          cat >>confdefs.h <<\_ACEOF
     4811#define F77_FUNC_(name,NAME) name ## __
     4812_ACEOF
     4813 ;;
     4814  "upper case, no underscore, no extra underscore")
     4815          cat >>confdefs.h <<\_ACEOF
     4816#define F77_FUNC(name,NAME) NAME
     4817_ACEOF
     4818
     4819          cat >>confdefs.h <<\_ACEOF
     4820#define F77_FUNC_(name,NAME) NAME
     4821_ACEOF
     4822 ;;
     4823  "upper case, no underscore, extra underscore")
     4824          cat >>confdefs.h <<\_ACEOF
     4825#define F77_FUNC(name,NAME) NAME
     4826_ACEOF
     4827
     4828          cat >>confdefs.h <<\_ACEOF
     4829#define F77_FUNC_(name,NAME) NAME ## _
     4830_ACEOF
     4831 ;;
     4832  "upper case, underscore, no extra underscore")
     4833          cat >>confdefs.h <<\_ACEOF
     4834#define F77_FUNC(name,NAME) NAME ## _
     4835_ACEOF
     4836
     4837          cat >>confdefs.h <<\_ACEOF
     4838#define F77_FUNC_(name,NAME) NAME ## _
     4839_ACEOF
     4840 ;;
     4841  "upper case, underscore, extra underscore")
     4842          cat >>confdefs.h <<\_ACEOF
     4843#define F77_FUNC(name,NAME) NAME ## _
     4844_ACEOF
     4845
     4846          cat >>confdefs.h <<\_ACEOF
     4847#define F77_FUNC_(name,NAME) NAME ## __
     4848_ACEOF
     4849 ;;
     4850  *)
     4851          { echo "$as_me:$LINENO: WARNING: unknown Fortran name-mangling scheme" >&5
     4852echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
     4853          ;;
     4854esac
     4855
     4856ac_ext=f
     4857ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     4858ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     4859ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     4860
    47724861ac_ext=c
    47734862ac_cpp='$CPP $CPPFLAGS'
     
    47794868
    47804869
    4781 # Check if pkg-config is available (to setup addlibs file)
     4870# Check for Blas
    47824871
    47834872
     
    48814970  fi
    48824971  if test -n "$PKG_CONFIG"; then
    4883     _pkg_min_version=0.9.0
     4972    _pkg_min_version=0.16.0
    48844973    echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
    48854974echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
     
    49225011# unfortunately, ${libdir} expands to ${exec_prefix}/lib and ${exec_prefix} to ${prefix}...
    49235012if test "x${prefix}" = xNONE ; then
    4924   COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    4925 else
    4926   COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     5013  COIN_PKG_CONFIG_PATH="${ac_default_prefix}/lib/pkgconfig:${ac_default_prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     5014else
     5015  COIN_PKG_CONFIG_PATH="${prefix}/lib/pkgconfig:${prefix}/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    49275016fi
    49285017
     
    49365025   { (exit 1); exit 1; }; }
    49375026   fi
    4938    COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:${COIN_PKG_CONFIG_PATH}"
     5027   COIN_PKG_CONFIG_PATH="$withval/lib/pkgconfig:$withval/share/pkgconfig:${COIN_PKG_CONFIG_PATH}"
    49395028
    49405029fi;
     
    49745063fi
    49755064
    4976 
    4977 
    4978 # Add FLIBS to LAPACK_PCLIBS, so that they get into the .pc files
    4979 LAPACK_PCLIBS="$FLIBS"
    4980 
     5065if test -n "$PKG_CONFIG" && test x$coin_cc_is_cl = xtrue; then
     5066  { echo "$as_me:$LINENO: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&5
     5067echo "$as_me: WARNING: Using pkg-config together with MS or Intel Compiler on Windows is not support by example Makefiles. Consider using --disable-pkg-config." >&2;}
     5068fi
     5069
     5070
     5071
     5072
     5073# Check whether --with-blas or --without-blas was given.
     5074if test "${with_blas+set}" = set; then
     5075  withval="$with_blas"
     5076  use_blas="$withval"
     5077else
     5078  use_blas=
     5079fi;
     5080
     5081# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
     5082# preference
     5083
     5084# Check whether --with-blas-lib or --without-blas-lib was given.
     5085if test "${with_blas_lib+set}" = set; then
     5086  withval="$with_blas_lib"
     5087  use_blas=BUILD
     5088fi;
     5089
     5090# Check if user supplied option makes sense
     5091if test x"$use_blas" != x; then
     5092  if test "$use_blas" = "BUILD"; then
     5093    # we come to this later
     5094    :
     5095  elif test "$use_blas" != "no"; then
     5096    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
     5097echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     5098    coin_need_flibs=no
     5099    coin_save_LIBS="$LIBS"
     5100    LIBS="$use_blas $LIBS"
     5101    case $ac_ext in
     5102  f)
     5103    cat >conftest.$ac_ext <<_ACEOF
     5104/* confdefs.h.  */
     5105_ACEOF
     5106cat confdefs.h >>conftest.$ac_ext
     5107cat >>conftest.$ac_ext <<_ACEOF
     5108/* end confdefs.h.  */
     5109
     5110#ifdef F77_DUMMY_MAIN
     5111
     5112#  ifdef __cplusplus
     5113     extern "C"
     5114#  endif
     5115   int F77_DUMMY_MAIN() { return 1; }
     5116
     5117#endif
     5118int
     5119main ()
     5120{
     5121      call daxpy
     5122  ;
     5123  return 0;
     5124}
     5125_ACEOF
     5126rm -f conftest.$ac_objext conftest$ac_exeext
     5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5128  (eval $ac_link) 2>conftest.er1
     5129  ac_status=$?
     5130  grep -v '^ *+' conftest.er1 >conftest.err
     5131  rm -f conftest.er1
     5132  cat conftest.err >&5
     5133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5134  (exit $ac_status); } &&
     5135         { ac_try='test -z "$ac_c_werror_flag"
     5136                         || test ! -s conftest.err'
     5137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5138  (eval $ac_try) 2>&5
     5139  ac_status=$?
     5140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5141  (exit $ac_status); }; } &&
     5142         { ac_try='test -s conftest$ac_exeext'
     5143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5144  (eval $ac_try) 2>&5
     5145  ac_status=$?
     5146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5147  (exit $ac_status); }; }; then
     5148  if test $coin_need_flibs = yes ; then
     5149                         use_blas="$use_blas $FLIBS"
     5150                       fi
     5151                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5152echo "${ECHO_T}yes: $use_blas" >&6
     5153else
     5154  echo "$as_me: failed program was:" >&5
     5155sed 's/^/| /' conftest.$ac_ext >&5
     5156
     5157echo "$as_me:$LINENO: result: no" >&5
     5158echo "${ECHO_T}no" >&6
     5159                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5160echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5161   { (exit 1); exit 1; }; }
     5162fi
     5163rm -f conftest.err conftest.$ac_objext \
     5164      conftest$ac_exeext conftest.$ac_ext
     5165    ;;
     5166  c)
     5167    ac_ext=f
     5168ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5169ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5170ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5171case $ac_cv_f77_mangling in
     5172  upper*) ac_val="DAXPY" ;;
     5173  lower*) ac_val="daxpy" ;;
     5174  *)      ac_val="unknown" ;;
     5175esac
     5176case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5177
     5178cfuncdaxpy="$ac_val"
     5179
     5180ac_ext=c
     5181ac_cpp='$CPP $CPPFLAGS'
     5182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5184ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5185
     5186    if test x"$coin_need_flibs" = xyes; then
     5187      flink_try=no;
     5188    else
     5189      cat >conftest.$ac_ext <<_ACEOF
     5190/* confdefs.h.  */
     5191_ACEOF
     5192cat confdefs.h >>conftest.$ac_ext
     5193cat >>conftest.$ac_ext <<_ACEOF
     5194/* end confdefs.h.  */
     5195void $cfuncdaxpy();
     5196#ifdef F77_DUMMY_MAIN
     5197
     5198#  ifdef __cplusplus
     5199     extern "C"
     5200#  endif
     5201   int F77_DUMMY_MAIN() { return 1; }
     5202
     5203#endif
     5204int
     5205main ()
     5206{
     5207$cfuncdaxpy()
     5208  ;
     5209  return 0;
     5210}
     5211_ACEOF
     5212rm -f conftest.$ac_objext conftest$ac_exeext
     5213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5214  (eval $ac_link) 2>conftest.er1
     5215  ac_status=$?
     5216  grep -v '^ *+' conftest.er1 >conftest.err
     5217  rm -f conftest.er1
     5218  cat conftest.err >&5
     5219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5220  (exit $ac_status); } &&
     5221         { ac_try='test -z "$ac_c_werror_flag"
     5222                         || test ! -s conftest.err'
     5223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5224  (eval $ac_try) 2>&5
     5225  ac_status=$?
     5226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5227  (exit $ac_status); }; } &&
     5228         { ac_try='test -s conftest$ac_exeext'
     5229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5230  (eval $ac_try) 2>&5
     5231  ac_status=$?
     5232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5233  (exit $ac_status); }; }; then
     5234  flink_try=yes
     5235else
     5236  echo "$as_me: failed program was:" >&5
     5237sed 's/^/| /' conftest.$ac_ext >&5
     5238
     5239flink_try=no
     5240fi
     5241rm -f conftest.err conftest.$ac_objext \
     5242      conftest$ac_exeext conftest.$ac_ext
     5243    fi
     5244    if test $flink_try = yes; then
     5245      if test $coin_need_flibs = yes ; then
     5246                         use_blas="$use_blas $FLIBS"
     5247                       fi
     5248                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5249echo "${ECHO_T}yes: $use_blas" >&6
     5250    else
     5251      if test x"$FLIBS" != x; then
     5252        flink_save_libs="$LIBS"
     5253        LIBS="$LIBS $FLIBS"
     5254        cat >conftest.$ac_ext <<_ACEOF
     5255/* confdefs.h.  */
     5256_ACEOF
     5257cat confdefs.h >>conftest.$ac_ext
     5258cat >>conftest.$ac_ext <<_ACEOF
     5259/* end confdefs.h.  */
     5260void $cfuncdaxpy();
     5261#ifdef F77_DUMMY_MAIN
     5262
     5263#  ifdef __cplusplus
     5264     extern "C"
     5265#  endif
     5266   int F77_DUMMY_MAIN() { return 1; }
     5267
     5268#endif
     5269int
     5270main ()
     5271{
     5272$cfuncdaxpy()
     5273  ;
     5274  return 0;
     5275}
     5276_ACEOF
     5277rm -f conftest.$ac_objext conftest$ac_exeext
     5278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5279  (eval $ac_link) 2>conftest.er1
     5280  ac_status=$?
     5281  grep -v '^ *+' conftest.er1 >conftest.err
     5282  rm -f conftest.er1
     5283  cat conftest.err >&5
     5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5285  (exit $ac_status); } &&
     5286         { ac_try='test -z "$ac_c_werror_flag"
     5287                         || test ! -s conftest.err'
     5288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5289  (eval $ac_try) 2>&5
     5290  ac_status=$?
     5291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5292  (exit $ac_status); }; } &&
     5293         { ac_try='test -s conftest$ac_exeext'
     5294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5295  (eval $ac_try) 2>&5
     5296  ac_status=$?
     5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5298  (exit $ac_status); }; }; then
     5299  LIBS="$flink_save_libs"
     5300                     coin_need_flibs=yes
     5301                     if test $coin_need_flibs = yes ; then
     5302                         use_blas="$use_blas $FLIBS"
     5303                       fi
     5304                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5305echo "${ECHO_T}yes: $use_blas" >&6
     5306
     5307else
     5308  echo "$as_me: failed program was:" >&5
     5309sed 's/^/| /' conftest.$ac_ext >&5
     5310
     5311LIBS="$flink_save_libs"
     5312                     echo "$as_me:$LINENO: result: no" >&5
     5313echo "${ECHO_T}no" >&6
     5314                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5315echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5316   { (exit 1); exit 1; }; }
     5317fi
     5318rm -f conftest.err conftest.$ac_objext \
     5319      conftest$ac_exeext conftest.$ac_ext
     5320      else
     5321        echo "$as_me:$LINENO: result: no" >&5
     5322echo "${ECHO_T}no" >&6
     5323                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5324echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5325   { (exit 1); exit 1; }; }
     5326      fi
     5327    fi
     5328    ;;
     5329  cc|cpp)
     5330    ac_ext=f
     5331ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5332ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5333ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5334case $ac_cv_f77_mangling in
     5335  upper*) ac_val="DAXPY" ;;
     5336  lower*) ac_val="daxpy" ;;
     5337  *)      ac_val="unknown" ;;
     5338esac
     5339case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5340
     5341cfuncdaxpy="$ac_val"
     5342
     5343ac_ext=c
     5344ac_cpp='$CPP $CPPFLAGS'
     5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5347ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5348
     5349    if test x"$coin_need_flibs" = xyes; then
     5350      flink_try=no;
     5351    else
     5352      cat >conftest.$ac_ext <<_ACEOF
     5353/* confdefs.h.  */
     5354_ACEOF
     5355cat confdefs.h >>conftest.$ac_ext
     5356cat >>conftest.$ac_ext <<_ACEOF
     5357/* end confdefs.h.  */
     5358extern "C" {void $cfuncdaxpy();}
     5359#ifdef F77_DUMMY_MAIN
     5360
     5361#  ifdef __cplusplus
     5362     extern "C"
     5363#  endif
     5364   int F77_DUMMY_MAIN() { return 1; }
     5365
     5366#endif
     5367int
     5368main ()
     5369{
     5370$cfuncdaxpy()
     5371  ;
     5372  return 0;
     5373}
     5374_ACEOF
     5375rm -f conftest.$ac_objext conftest$ac_exeext
     5376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5377  (eval $ac_link) 2>conftest.er1
     5378  ac_status=$?
     5379  grep -v '^ *+' conftest.er1 >conftest.err
     5380  rm -f conftest.er1
     5381  cat conftest.err >&5
     5382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5383  (exit $ac_status); } &&
     5384         { ac_try='test -z "$ac_c_werror_flag"
     5385                         || test ! -s conftest.err'
     5386  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5387  (eval $ac_try) 2>&5
     5388  ac_status=$?
     5389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5390  (exit $ac_status); }; } &&
     5391         { ac_try='test -s conftest$ac_exeext'
     5392  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5393  (eval $ac_try) 2>&5
     5394  ac_status=$?
     5395  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5396  (exit $ac_status); }; }; then
     5397  flink_try=yes
     5398else
     5399  echo "$as_me: failed program was:" >&5
     5400sed 's/^/| /' conftest.$ac_ext >&5
     5401
     5402flink_try=no
     5403fi
     5404rm -f conftest.err conftest.$ac_objext \
     5405      conftest$ac_exeext conftest.$ac_ext
     5406    fi
     5407    if test $flink_try = yes; then
     5408      if test $coin_need_flibs = yes ; then
     5409                         use_blas="$use_blas $FLIBS"
     5410                       fi
     5411                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5412echo "${ECHO_T}yes: $use_blas" >&6
     5413    else
     5414      if test x"$FLIBS" != x; then
     5415        flink_save_libs="$LIBS"
     5416        LIBS="$LIBS $FLIBS"
     5417        cat >conftest.$ac_ext <<_ACEOF
     5418/* confdefs.h.  */
     5419_ACEOF
     5420cat confdefs.h >>conftest.$ac_ext
     5421cat >>conftest.$ac_ext <<_ACEOF
     5422/* end confdefs.h.  */
     5423extern "C" {void $cfuncdaxpy();}
     5424#ifdef F77_DUMMY_MAIN
     5425
     5426#  ifdef __cplusplus
     5427     extern "C"
     5428#  endif
     5429   int F77_DUMMY_MAIN() { return 1; }
     5430
     5431#endif
     5432int
     5433main ()
     5434{
     5435$cfuncdaxpy()
     5436  ;
     5437  return 0;
     5438}
     5439_ACEOF
     5440rm -f conftest.$ac_objext conftest$ac_exeext
     5441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5442  (eval $ac_link) 2>conftest.er1
     5443  ac_status=$?
     5444  grep -v '^ *+' conftest.er1 >conftest.err
     5445  rm -f conftest.er1
     5446  cat conftest.err >&5
     5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5448  (exit $ac_status); } &&
     5449         { ac_try='test -z "$ac_c_werror_flag"
     5450                         || test ! -s conftest.err'
     5451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5452  (eval $ac_try) 2>&5
     5453  ac_status=$?
     5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5455  (exit $ac_status); }; } &&
     5456         { ac_try='test -s conftest$ac_exeext'
     5457  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5458  (eval $ac_try) 2>&5
     5459  ac_status=$?
     5460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5461  (exit $ac_status); }; }; then
     5462  LIBS="$flink_save_libs"
     5463                     coin_need_flibs=yes
     5464                     if test $coin_need_flibs = yes ; then
     5465                         use_blas="$use_blas $FLIBS"
     5466                       fi
     5467                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5468echo "${ECHO_T}yes: $use_blas" >&6
     5469
     5470else
     5471  echo "$as_me: failed program was:" >&5
     5472sed 's/^/| /' conftest.$ac_ext >&5
     5473
     5474LIBS="$flink_save_libs"
     5475                     echo "$as_me:$LINENO: result: no" >&5
     5476echo "${ECHO_T}no" >&6
     5477                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5478echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5479   { (exit 1); exit 1; }; }
     5480fi
     5481rm -f conftest.err conftest.$ac_objext \
     5482      conftest$ac_exeext conftest.$ac_ext
     5483      else
     5484        echo "$as_me:$LINENO: result: no" >&5
     5485echo "${ECHO_T}no" >&6
     5486                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5487echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5488   { (exit 1); exit 1; }; }
     5489      fi
     5490    fi
     5491    ;;
     5492esac
     5493
     5494    LIBS="$coin_save_LIBS"
     5495  fi
     5496else
     5497# Try to autodetect the library for blas based on build system
     5498  #AC_MSG_CHECKING([default locations for BLAS])
     5499  skip_lblas_check=no
     5500  case $build in
     5501    *-sgi-*)
     5502      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
     5503echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     5504      coin_need_flibs=no
     5505      coin_save_LIBS="$LIBS"
     5506      LIBS="-lcomplib.sgimath $LIBS"
     5507      case $ac_ext in
     5508  f)
     5509    cat >conftest.$ac_ext <<_ACEOF
     5510/* confdefs.h.  */
     5511_ACEOF
     5512cat confdefs.h >>conftest.$ac_ext
     5513cat >>conftest.$ac_ext <<_ACEOF
     5514/* end confdefs.h.  */
     5515
     5516#ifdef F77_DUMMY_MAIN
     5517
     5518#  ifdef __cplusplus
     5519     extern "C"
     5520#  endif
     5521   int F77_DUMMY_MAIN() { return 1; }
     5522
     5523#endif
     5524int
     5525main ()
     5526{
     5527      call daxpy
     5528  ;
     5529  return 0;
     5530}
     5531_ACEOF
     5532rm -f conftest.$ac_objext conftest$ac_exeext
     5533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5534  (eval $ac_link) 2>conftest.er1
     5535  ac_status=$?
     5536  grep -v '^ *+' conftest.er1 >conftest.err
     5537  rm -f conftest.er1
     5538  cat conftest.err >&5
     5539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5540  (exit $ac_status); } &&
     5541         { ac_try='test -z "$ac_c_werror_flag"
     5542                         || test ! -s conftest.err'
     5543  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5544  (eval $ac_try) 2>&5
     5545  ac_status=$?
     5546  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5547  (exit $ac_status); }; } &&
     5548         { ac_try='test -s conftest$ac_exeext'
     5549  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5550  (eval $ac_try) 2>&5
     5551  ac_status=$?
     5552  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5553  (exit $ac_status); }; }; then
     5554  use_blas="-lcomplib.sgimath"
     5555                         if test $coin_need_flibs = yes ; then
     5556                           use_blas="$use_blas $FLIBS"
     5557                         fi
     5558                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5559echo "${ECHO_T}yes: $use_blas" >&6
     5560
     5561else
     5562  echo "$as_me: failed program was:" >&5
     5563sed 's/^/| /' conftest.$ac_ext >&5
     5564
     5565echo "$as_me:$LINENO: result: no" >&5
     5566echo "${ECHO_T}no" >&6
     5567fi
     5568rm -f conftest.err conftest.$ac_objext \
     5569      conftest$ac_exeext conftest.$ac_ext
     5570    ;;
     5571  c)
     5572    ac_ext=f
     5573ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5574ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5575ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5576case $ac_cv_f77_mangling in
     5577  upper*) ac_val="DAXPY" ;;
     5578  lower*) ac_val="daxpy" ;;
     5579  *)      ac_val="unknown" ;;
     5580esac
     5581case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5582
     5583cfuncdaxpy="$ac_val"
     5584
     5585ac_ext=c
     5586ac_cpp='$CPP $CPPFLAGS'
     5587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5589ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5590
     5591    if test x"$coin_need_flibs" = xyes; then
     5592      flink_try=no;
     5593    else
     5594      cat >conftest.$ac_ext <<_ACEOF
     5595/* confdefs.h.  */
     5596_ACEOF
     5597cat confdefs.h >>conftest.$ac_ext
     5598cat >>conftest.$ac_ext <<_ACEOF
     5599/* end confdefs.h.  */
     5600void $cfuncdaxpy();
     5601#ifdef F77_DUMMY_MAIN
     5602
     5603#  ifdef __cplusplus
     5604     extern "C"
     5605#  endif
     5606   int F77_DUMMY_MAIN() { return 1; }
     5607
     5608#endif
     5609int
     5610main ()
     5611{
     5612$cfuncdaxpy()
     5613  ;
     5614  return 0;
     5615}
     5616_ACEOF
     5617rm -f conftest.$ac_objext conftest$ac_exeext
     5618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5619  (eval $ac_link) 2>conftest.er1
     5620  ac_status=$?
     5621  grep -v '^ *+' conftest.er1 >conftest.err
     5622  rm -f conftest.er1
     5623  cat conftest.err >&5
     5624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5625  (exit $ac_status); } &&
     5626         { ac_try='test -z "$ac_c_werror_flag"
     5627                         || test ! -s conftest.err'
     5628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5629  (eval $ac_try) 2>&5
     5630  ac_status=$?
     5631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5632  (exit $ac_status); }; } &&
     5633         { ac_try='test -s conftest$ac_exeext'
     5634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5635  (eval $ac_try) 2>&5
     5636  ac_status=$?
     5637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5638  (exit $ac_status); }; }; then
     5639  flink_try=yes
     5640else
     5641  echo "$as_me: failed program was:" >&5
     5642sed 's/^/| /' conftest.$ac_ext >&5
     5643
     5644flink_try=no
     5645fi
     5646rm -f conftest.err conftest.$ac_objext \
     5647      conftest$ac_exeext conftest.$ac_ext
     5648    fi
     5649    if test $flink_try = yes; then
     5650      use_blas="-lcomplib.sgimath"
     5651                         if test $coin_need_flibs = yes ; then
     5652                           use_blas="$use_blas $FLIBS"
     5653                         fi
     5654                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5655echo "${ECHO_T}yes: $use_blas" >&6
     5656
     5657    else
     5658      if test x"$FLIBS" != x; then
     5659        flink_save_libs="$LIBS"
     5660        LIBS="$LIBS $FLIBS"
     5661        cat >conftest.$ac_ext <<_ACEOF
     5662/* confdefs.h.  */
     5663_ACEOF
     5664cat confdefs.h >>conftest.$ac_ext
     5665cat >>conftest.$ac_ext <<_ACEOF
     5666/* end confdefs.h.  */
     5667void $cfuncdaxpy();
     5668#ifdef F77_DUMMY_MAIN
     5669
     5670#  ifdef __cplusplus
     5671     extern "C"
     5672#  endif
     5673   int F77_DUMMY_MAIN() { return 1; }
     5674
     5675#endif
     5676int
     5677main ()
     5678{
     5679$cfuncdaxpy()
     5680  ;
     5681  return 0;
     5682}
     5683_ACEOF
     5684rm -f conftest.$ac_objext conftest$ac_exeext
     5685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5686  (eval $ac_link) 2>conftest.er1
     5687  ac_status=$?
     5688  grep -v '^ *+' conftest.er1 >conftest.err
     5689  rm -f conftest.er1
     5690  cat conftest.err >&5
     5691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5692  (exit $ac_status); } &&
     5693         { ac_try='test -z "$ac_c_werror_flag"
     5694                         || test ! -s conftest.err'
     5695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5696  (eval $ac_try) 2>&5
     5697  ac_status=$?
     5698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5699  (exit $ac_status); }; } &&
     5700         { ac_try='test -s conftest$ac_exeext'
     5701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5702  (eval $ac_try) 2>&5
     5703  ac_status=$?
     5704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5705  (exit $ac_status); }; }; then
     5706  LIBS="$flink_save_libs"
     5707                     coin_need_flibs=yes
     5708                     use_blas="-lcomplib.sgimath"
     5709                         if test $coin_need_flibs = yes ; then
     5710                           use_blas="$use_blas $FLIBS"
     5711                         fi
     5712                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5713echo "${ECHO_T}yes: $use_blas" >&6
     5714
     5715
     5716else
     5717  echo "$as_me: failed program was:" >&5
     5718sed 's/^/| /' conftest.$ac_ext >&5
     5719
     5720LIBS="$flink_save_libs"
     5721                     echo "$as_me:$LINENO: result: no" >&5
     5722echo "${ECHO_T}no" >&6
     5723fi
     5724rm -f conftest.err conftest.$ac_objext \
     5725      conftest$ac_exeext conftest.$ac_ext
     5726      else
     5727        echo "$as_me:$LINENO: result: no" >&5
     5728echo "${ECHO_T}no" >&6
     5729      fi
     5730    fi
     5731    ;;
     5732  cc|cpp)
     5733    ac_ext=f
     5734ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5735ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5736ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5737case $ac_cv_f77_mangling in
     5738  upper*) ac_val="DAXPY" ;;
     5739  lower*) ac_val="daxpy" ;;
     5740  *)      ac_val="unknown" ;;
     5741esac
     5742case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5743
     5744cfuncdaxpy="$ac_val"
     5745
     5746ac_ext=c
     5747ac_cpp='$CPP $CPPFLAGS'
     5748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5750ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5751
     5752    if test x"$coin_need_flibs" = xyes; then
     5753      flink_try=no;
     5754    else
     5755      cat >conftest.$ac_ext <<_ACEOF
     5756/* confdefs.h.  */
     5757_ACEOF
     5758cat confdefs.h >>conftest.$ac_ext
     5759cat >>conftest.$ac_ext <<_ACEOF
     5760/* end confdefs.h.  */
     5761extern "C" {void $cfuncdaxpy();}
     5762#ifdef F77_DUMMY_MAIN
     5763
     5764#  ifdef __cplusplus
     5765     extern "C"
     5766#  endif
     5767   int F77_DUMMY_MAIN() { return 1; }
     5768
     5769#endif
     5770int
     5771main ()
     5772{
     5773$cfuncdaxpy()
     5774  ;
     5775  return 0;
     5776}
     5777_ACEOF
     5778rm -f conftest.$ac_objext conftest$ac_exeext
     5779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5780  (eval $ac_link) 2>conftest.er1
     5781  ac_status=$?
     5782  grep -v '^ *+' conftest.er1 >conftest.err
     5783  rm -f conftest.er1
     5784  cat conftest.err >&5
     5785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5786  (exit $ac_status); } &&
     5787         { ac_try='test -z "$ac_c_werror_flag"
     5788                         || test ! -s conftest.err'
     5789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5790  (eval $ac_try) 2>&5
     5791  ac_status=$?
     5792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5793  (exit $ac_status); }; } &&
     5794         { ac_try='test -s conftest$ac_exeext'
     5795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5796  (eval $ac_try) 2>&5
     5797  ac_status=$?
     5798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5799  (exit $ac_status); }; }; then
     5800  flink_try=yes
     5801else
     5802  echo "$as_me: failed program was:" >&5
     5803sed 's/^/| /' conftest.$ac_ext >&5
     5804
     5805flink_try=no
     5806fi
     5807rm -f conftest.err conftest.$ac_objext \
     5808      conftest$ac_exeext conftest.$ac_ext
     5809    fi
     5810    if test $flink_try = yes; then
     5811      use_blas="-lcomplib.sgimath"
     5812                         if test $coin_need_flibs = yes ; then
     5813                           use_blas="$use_blas $FLIBS"
     5814                         fi
     5815                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5816echo "${ECHO_T}yes: $use_blas" >&6
     5817
     5818    else
     5819      if test x"$FLIBS" != x; then
     5820        flink_save_libs="$LIBS"
     5821        LIBS="$LIBS $FLIBS"
     5822        cat >conftest.$ac_ext <<_ACEOF
     5823/* confdefs.h.  */
     5824_ACEOF
     5825cat confdefs.h >>conftest.$ac_ext
     5826cat >>conftest.$ac_ext <<_ACEOF
     5827/* end confdefs.h.  */
     5828extern "C" {void $cfuncdaxpy();}
     5829#ifdef F77_DUMMY_MAIN
     5830
     5831#  ifdef __cplusplus
     5832     extern "C"
     5833#  endif
     5834   int F77_DUMMY_MAIN() { return 1; }
     5835
     5836#endif
     5837int
     5838main ()
     5839{
     5840$cfuncdaxpy()
     5841  ;
     5842  return 0;
     5843}
     5844_ACEOF
     5845rm -f conftest.$ac_objext conftest$ac_exeext
     5846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5847  (eval $ac_link) 2>conftest.er1
     5848  ac_status=$?
     5849  grep -v '^ *+' conftest.er1 >conftest.err
     5850  rm -f conftest.er1
     5851  cat conftest.err >&5
     5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5853  (exit $ac_status); } &&
     5854         { ac_try='test -z "$ac_c_werror_flag"
     5855                         || test ! -s conftest.err'
     5856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5857  (eval $ac_try) 2>&5
     5858  ac_status=$?
     5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5860  (exit $ac_status); }; } &&
     5861         { ac_try='test -s conftest$ac_exeext'
     5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5863  (eval $ac_try) 2>&5
     5864  ac_status=$?
     5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5866  (exit $ac_status); }; }; then
     5867  LIBS="$flink_save_libs"
     5868                     coin_need_flibs=yes
     5869                     use_blas="-lcomplib.sgimath"
     5870                         if test $coin_need_flibs = yes ; then
     5871                           use_blas="$use_blas $FLIBS"
     5872                         fi
     5873                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5874echo "${ECHO_T}yes: $use_blas" >&6
     5875
     5876
     5877else
     5878  echo "$as_me: failed program was:" >&5
     5879sed 's/^/| /' conftest.$ac_ext >&5
     5880
     5881LIBS="$flink_save_libs"
     5882                     echo "$as_me:$LINENO: result: no" >&5
     5883echo "${ECHO_T}no" >&6
     5884fi
     5885rm -f conftest.err conftest.$ac_objext \
     5886      conftest$ac_exeext conftest.$ac_ext
     5887      else
     5888        echo "$as_me:$LINENO: result: no" >&5
     5889echo "${ECHO_T}no" >&6
     5890      fi
     5891    fi
     5892    ;;
     5893esac
     5894
     5895      LIBS="$coin_save_LIBS"
     5896      ;;
     5897
     5898# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
     5899# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
     5900# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
     5901# that CC and cc will understand -library in Studio 13. The main extra
     5902# function of -xlic_lib and -library is to arrange for the Fortran run-time
     5903# libraries to be linked for C++ and C. We can arrange that explicitly.
     5904    *-*-solaris*)
     5905      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
     5906echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
     5907      coin_need_flibs=no
     5908      coin_save_LIBS="$LIBS"
     5909      LIBS="-lsunperf $FLIBS $LIBS"
     5910      case $ac_ext in
     5911  f)
     5912    cat >conftest.$ac_ext <<_ACEOF
     5913/* confdefs.h.  */
     5914_ACEOF
     5915cat confdefs.h >>conftest.$ac_ext
     5916cat >>conftest.$ac_ext <<_ACEOF
     5917/* end confdefs.h.  */
     5918
     5919#ifdef F77_DUMMY_MAIN
     5920
     5921#  ifdef __cplusplus
     5922     extern "C"
     5923#  endif
     5924   int F77_DUMMY_MAIN() { return 1; }
     5925
     5926#endif
     5927int
     5928main ()
     5929{
     5930      call daxpy
     5931  ;
     5932  return 0;
     5933}
     5934_ACEOF
     5935rm -f conftest.$ac_objext conftest$ac_exeext
     5936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5937  (eval $ac_link) 2>conftest.er1
     5938  ac_status=$?
     5939  grep -v '^ *+' conftest.er1 >conftest.err
     5940  rm -f conftest.er1
     5941  cat conftest.err >&5
     5942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5943  (exit $ac_status); } &&
     5944         { ac_try='test -z "$ac_c_werror_flag"
     5945                         || test ! -s conftest.err'
     5946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5947  (eval $ac_try) 2>&5
     5948  ac_status=$?
     5949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5950  (exit $ac_status); }; } &&
     5951         { ac_try='test -s conftest$ac_exeext'
     5952  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5953  (eval $ac_try) 2>&5
     5954  ac_status=$?
     5955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5956  (exit $ac_status); }; }; then
     5957  use_blas='-lsunperf'
     5958                         if test $coin_need_flibs = yes ; then
     5959                           use_blas="$use_blas $FLIBS"
     5960                         fi
     5961                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5962echo "${ECHO_T}yes: $use_blas" >&6
     5963
     5964else
     5965  echo "$as_me: failed program was:" >&5
     5966sed 's/^/| /' conftest.$ac_ext >&5
     5967
     5968echo "$as_me:$LINENO: result: no" >&5
     5969echo "${ECHO_T}no" >&6
     5970fi
     5971rm -f conftest.err conftest.$ac_objext \
     5972      conftest$ac_exeext conftest.$ac_ext
     5973    ;;
     5974  c)
     5975    ac_ext=f
     5976ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5977ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5978ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5979case $ac_cv_f77_mangling in
     5980  upper*) ac_val="DAXPY" ;;
     5981  lower*) ac_val="daxpy" ;;
     5982  *)      ac_val="unknown" ;;
     5983esac
     5984case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5985
     5986cfuncdaxpy="$ac_val"
     5987
     5988ac_ext=c
     5989ac_cpp='$CPP $CPPFLAGS'
     5990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5992ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5993
     5994    if test x"$coin_need_flibs" = xyes; then
     5995      flink_try=no;
     5996    else
     5997      cat >conftest.$ac_ext <<_ACEOF
     5998/* confdefs.h.  */
     5999_ACEOF
     6000cat confdefs.h >>conftest.$ac_ext
     6001cat >>conftest.$ac_ext <<_ACEOF
     6002/* end confdefs.h.  */
     6003void $cfuncdaxpy();
     6004#ifdef F77_DUMMY_MAIN
     6005
     6006#  ifdef __cplusplus
     6007     extern "C"
     6008#  endif
     6009   int F77_DUMMY_MAIN() { return 1; }
     6010
     6011#endif
     6012int
     6013main ()
     6014{
     6015$cfuncdaxpy()
     6016  ;
     6017  return 0;
     6018}
     6019_ACEOF
     6020rm -f conftest.$ac_objext conftest$ac_exeext
     6021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6022  (eval $ac_link) 2>conftest.er1
     6023  ac_status=$?
     6024  grep -v '^ *+' conftest.er1 >conftest.err
     6025  rm -f conftest.er1
     6026  cat conftest.err >&5
     6027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6028  (exit $ac_status); } &&
     6029         { ac_try='test -z "$ac_c_werror_flag"
     6030                         || test ! -s conftest.err'
     6031  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6032  (eval $ac_try) 2>&5
     6033  ac_status=$?
     6034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6035  (exit $ac_status); }; } &&
     6036         { ac_try='test -s conftest$ac_exeext'
     6037  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6038  (eval $ac_try) 2>&5
     6039  ac_status=$?
     6040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6041  (exit $ac_status); }; }; then
     6042  flink_try=yes
     6043else
     6044  echo "$as_me: failed program was:" >&5
     6045sed 's/^/| /' conftest.$ac_ext >&5
     6046
     6047flink_try=no
     6048fi
     6049rm -f conftest.err conftest.$ac_objext \
     6050      conftest$ac_exeext conftest.$ac_ext
     6051    fi
     6052    if test $flink_try = yes; then
     6053      use_blas='-lsunperf'
     6054                         if test $coin_need_flibs = yes ; then
     6055                           use_blas="$use_blas $FLIBS"
     6056                         fi
     6057                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6058echo "${ECHO_T}yes: $use_blas" >&6
     6059
     6060    else
     6061      if test x"$FLIBS" != x; then
     6062        flink_save_libs="$LIBS"
     6063        LIBS="$LIBS $FLIBS"
     6064        cat >conftest.$ac_ext <<_ACEOF
     6065/* confdefs.h.  */
     6066_ACEOF
     6067cat confdefs.h >>conftest.$ac_ext
     6068cat >>conftest.$ac_ext <<_ACEOF
     6069/* end confdefs.h.  */
     6070void $cfuncdaxpy();
     6071#ifdef F77_DUMMY_MAIN
     6072
     6073#  ifdef __cplusplus
     6074     extern "C"
     6075#  endif
     6076   int F77_DUMMY_MAIN() { return 1; }
     6077
     6078#endif
     6079int
     6080main ()
     6081{
     6082$cfuncdaxpy()
     6083  ;
     6084  return 0;
     6085}
     6086_ACEOF
     6087rm -f conftest.$ac_objext conftest$ac_exeext
     6088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6089  (eval $ac_link) 2>conftest.er1
     6090  ac_status=$?
     6091  grep -v '^ *+' conftest.er1 >conftest.err
     6092  rm -f conftest.er1
     6093  cat conftest.err >&5
     6094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6095  (exit $ac_status); } &&
     6096         { ac_try='test -z "$ac_c_werror_flag"
     6097                         || test ! -s conftest.err'
     6098  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6099  (eval $ac_try) 2>&5
     6100  ac_status=$?
     6101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6102  (exit $ac_status); }; } &&
     6103         { ac_try='test -s conftest$ac_exeext'
     6104  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6105  (eval $ac_try) 2>&5
     6106  ac_status=$?
     6107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6108  (exit $ac_status); }; }; then
     6109  LIBS="$flink_save_libs"
     6110                     coin_need_flibs=yes
     6111                     use_blas='-lsunperf'
     6112                         if test $coin_need_flibs = yes ; then
     6113                           use_blas="$use_blas $FLIBS"
     6114                         fi
     6115                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6116echo "${ECHO_T}yes: $use_blas" >&6
     6117
     6118
     6119else
     6120  echo "$as_me: failed program was:" >&5
     6121sed 's/^/| /' conftest.$ac_ext >&5
     6122
     6123LIBS="$flink_save_libs"
     6124                     echo "$as_me:$LINENO: result: no" >&5
     6125echo "${ECHO_T}no" >&6
     6126fi
     6127rm -f conftest.err conftest.$ac_objext \
     6128      conftest$ac_exeext conftest.$ac_ext
     6129      else
     6130        echo "$as_me:$LINENO: result: no" >&5
     6131echo "${ECHO_T}no" >&6
     6132      fi
     6133    fi
     6134    ;;
     6135  cc|cpp)
     6136    ac_ext=f
     6137ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6138ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6139ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6140case $ac_cv_f77_mangling in
     6141  upper*) ac_val="DAXPY" ;;
     6142  lower*) ac_val="daxpy" ;;
     6143  *)      ac_val="unknown" ;;
     6144esac
     6145case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6146
     6147cfuncdaxpy="$ac_val"
     6148
     6149ac_ext=c
     6150ac_cpp='$CPP $CPPFLAGS'
     6151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6153ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6154
     6155    if test x"$coin_need_flibs" = xyes; then
     6156      flink_try=no;
     6157    else
     6158      cat >conftest.$ac_ext <<_ACEOF
     6159/* confdefs.h.  */
     6160_ACEOF
     6161cat confdefs.h >>conftest.$ac_ext
     6162cat >>conftest.$ac_ext <<_ACEOF
     6163/* end confdefs.h.  */
     6164extern "C" {void $cfuncdaxpy();}
     6165#ifdef F77_DUMMY_MAIN
     6166
     6167#  ifdef __cplusplus
     6168     extern "C"
     6169#  endif
     6170   int F77_DUMMY_MAIN() { return 1; }
     6171
     6172#endif
     6173int
     6174main ()
     6175{
     6176$cfuncdaxpy()
     6177  ;
     6178  return 0;
     6179}
     6180_ACEOF
     6181rm -f conftest.$ac_objext conftest$ac_exeext
     6182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6183  (eval $ac_link) 2>conftest.er1
     6184  ac_status=$?
     6185  grep -v '^ *+' conftest.er1 >conftest.err
     6186  rm -f conftest.er1
     6187  cat conftest.err >&5
     6188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6189  (exit $ac_status); } &&
     6190         { ac_try='test -z "$ac_c_werror_flag"
     6191                         || test ! -s conftest.err'
     6192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6193  (eval $ac_try) 2>&5
     6194  ac_status=$?
     6195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6196  (exit $ac_status); }; } &&
     6197         { ac_try='test -s conftest$ac_exeext'
     6198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6199  (eval $ac_try) 2>&5
     6200  ac_status=$?
     6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6202  (exit $ac_status); }; }; then
     6203  flink_try=yes
     6204else
     6205  echo "$as_me: failed program was:" >&5
     6206sed 's/^/| /' conftest.$ac_ext >&5
     6207
     6208flink_try=no
     6209fi
     6210rm -f conftest.err conftest.$ac_objext \
     6211      conftest$ac_exeext conftest.$ac_ext
     6212    fi
     6213    if test $flink_try = yes; then
     6214      use_blas='-lsunperf'
     6215                         if test $coin_need_flibs = yes ; then
     6216                           use_blas="$use_blas $FLIBS"
     6217                         fi
     6218                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6219echo "${ECHO_T}yes: $use_blas" >&6
     6220
     6221    else
     6222      if test x"$FLIBS" != x; then
     6223        flink_save_libs="$LIBS"
     6224        LIBS="$LIBS $FLIBS"
     6225        cat >conftest.$ac_ext <<_ACEOF
     6226/* confdefs.h.  */
     6227_ACEOF
     6228cat confdefs.h >>conftest.$ac_ext
     6229cat >>conftest.$ac_ext <<_ACEOF
     6230/* end confdefs.h.  */
     6231extern "C" {void $cfuncdaxpy();}
     6232#ifdef F77_DUMMY_MAIN
     6233
     6234#  ifdef __cplusplus
     6235     extern "C"
     6236#  endif
     6237   int F77_DUMMY_MAIN() { return 1; }
     6238
     6239#endif
     6240int
     6241main ()
     6242{
     6243$cfuncdaxpy()
     6244  ;
     6245  return 0;
     6246}
     6247_ACEOF
     6248rm -f conftest.$ac_objext conftest$ac_exeext
     6249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6250  (eval $ac_link) 2>conftest.er1
     6251  ac_status=$?
     6252  grep -v '^ *+' conftest.er1 >conftest.err
     6253  rm -f conftest.er1
     6254  cat conftest.err >&5
     6255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6256  (exit $ac_status); } &&
     6257         { ac_try='test -z "$ac_c_werror_flag"
     6258                         || test ! -s conftest.err'
     6259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6260  (eval $ac_try) 2>&5
     6261  ac_status=$?
     6262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6263  (exit $ac_status); }; } &&
     6264         { ac_try='test -s conftest$ac_exeext'
     6265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6266  (eval $ac_try) 2>&5
     6267  ac_status=$?
     6268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6269  (exit $ac_status); }; }; then
     6270  LIBS="$flink_save_libs"
     6271                     coin_need_flibs=yes
     6272                     use_blas='-lsunperf'
     6273                         if test $coin_need_flibs = yes ; then
     6274                           use_blas="$use_blas $FLIBS"
     6275                         fi
     6276                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6277echo "${ECHO_T}yes: $use_blas" >&6
     6278
     6279
     6280else
     6281  echo "$as_me: failed program was:" >&5
     6282sed 's/^/| /' conftest.$ac_ext >&5
     6283
     6284LIBS="$flink_save_libs"
     6285                     echo "$as_me:$LINENO: result: no" >&5
     6286echo "${ECHO_T}no" >&6
     6287fi
     6288rm -f conftest.err conftest.$ac_objext \
     6289      conftest$ac_exeext conftest.$ac_ext
     6290      else
     6291        echo "$as_me:$LINENO: result: no" >&5
     6292echo "${ECHO_T}no" >&6
     6293      fi
     6294    fi
     6295    ;;
     6296esac
     6297
     6298      LIBS="$coin_save_LIBS"
     6299      ;;
     6300
     6301    *-cygwin* | *-mingw*)
     6302# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
     6303# library will want to link with cygwin, hence won't run standalone in DOS.
     6304      if test "$enable_doscompile" = mingw; then
     6305        skip_lblas_check=yes
     6306      fi
     6307      case "$CC" in
     6308        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     6309          coin_save_LIBS="$LIBS"
     6310          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
     6311echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
     6312          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
     6313          case $ac_ext in
     6314  f)
     6315    cat >conftest.$ac_ext <<_ACEOF
     6316/* confdefs.h.  */
     6317_ACEOF
     6318cat confdefs.h >>conftest.$ac_ext
     6319cat >>conftest.$ac_ext <<_ACEOF
     6320/* end confdefs.h.  */
     6321
     6322#ifdef F77_DUMMY_MAIN
     6323
     6324#  ifdef __cplusplus
     6325     extern "C"
     6326#  endif
     6327   int F77_DUMMY_MAIN() { return 1; }
     6328
     6329#endif
     6330int
     6331main ()
     6332{
     6333      call daxpy
     6334  ;
     6335  return 0;
     6336}
     6337_ACEOF
     6338rm -f conftest.$ac_objext conftest$ac_exeext
     6339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6340  (eval $ac_link) 2>conftest.er1
     6341  ac_status=$?
     6342  grep -v '^ *+' conftest.er1 >conftest.err
     6343  rm -f conftest.er1
     6344  cat conftest.err >&5
     6345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6346  (exit $ac_status); } &&
     6347         { ac_try='test -z "$ac_c_werror_flag"
     6348                         || test ! -s conftest.err'
     6349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6350  (eval $ac_try) 2>&5
     6351  ac_status=$?
     6352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6353  (exit $ac_status); }; } &&
     6354         { ac_try='test -s conftest$ac_exeext'
     6355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6356  (eval $ac_try) 2>&5
     6357  ac_status=$?
     6358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6359  (exit $ac_status); }; }; then
     6360  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6361                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6362echo "${ECHO_T}yes: $use_blas" >&6
     6363
     6364else
     6365  echo "$as_me: failed program was:" >&5
     6366sed 's/^/| /' conftest.$ac_ext >&5
     6367
     6368echo "$as_me:$LINENO: result: no" >&5
     6369echo "${ECHO_T}no" >&6
     6370fi
     6371rm -f conftest.err conftest.$ac_objext \
     6372      conftest$ac_exeext conftest.$ac_ext
     6373    ;;
     6374  c)
     6375    ac_ext=f
     6376ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6377ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6378ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6379case $ac_cv_f77_mangling in
     6380  upper*) ac_val="DAXPY" ;;
     6381  lower*) ac_val="daxpy" ;;
     6382  *)      ac_val="unknown" ;;
     6383esac
     6384case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6385
     6386cfuncdaxpy="$ac_val"
     6387
     6388ac_ext=c
     6389ac_cpp='$CPP $CPPFLAGS'
     6390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6392ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6393
     6394    if test x"$coin_need_flibs" = xyes; then
     6395      flink_try=no;
     6396    else
     6397      cat >conftest.$ac_ext <<_ACEOF
     6398/* confdefs.h.  */
     6399_ACEOF
     6400cat confdefs.h >>conftest.$ac_ext
     6401cat >>conftest.$ac_ext <<_ACEOF
     6402/* end confdefs.h.  */
     6403void $cfuncdaxpy();
     6404#ifdef F77_DUMMY_MAIN
     6405
     6406#  ifdef __cplusplus
     6407     extern "C"
     6408#  endif
     6409   int F77_DUMMY_MAIN() { return 1; }
     6410
     6411#endif
     6412int
     6413main ()
     6414{
     6415$cfuncdaxpy()
     6416  ;
     6417  return 0;
     6418}
     6419_ACEOF
     6420rm -f conftest.$ac_objext conftest$ac_exeext
     6421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6422  (eval $ac_link) 2>conftest.er1
     6423  ac_status=$?
     6424  grep -v '^ *+' conftest.er1 >conftest.err
     6425  rm -f conftest.er1
     6426  cat conftest.err >&5
     6427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6428  (exit $ac_status); } &&
     6429         { ac_try='test -z "$ac_c_werror_flag"
     6430                         || test ! -s conftest.err'
     6431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6432  (eval $ac_try) 2>&5
     6433  ac_status=$?
     6434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6435  (exit $ac_status); }; } &&
     6436         { ac_try='test -s conftest$ac_exeext'
     6437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6438  (eval $ac_try) 2>&5
     6439  ac_status=$?
     6440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6441  (exit $ac_status); }; }; then
     6442  flink_try=yes
     6443else
     6444  echo "$as_me: failed program was:" >&5
     6445sed 's/^/| /' conftest.$ac_ext >&5
     6446
     6447flink_try=no
     6448fi
     6449rm -f conftest.err conftest.$ac_objext \
     6450      conftest$ac_exeext conftest.$ac_ext
     6451    fi
     6452    if test $flink_try = yes; then
     6453      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6454                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6455echo "${ECHO_T}yes: $use_blas" >&6
     6456
     6457    else
     6458      if test x"$FLIBS" != x; then
     6459        flink_save_libs="$LIBS"
     6460        LIBS="$LIBS $FLIBS"
     6461        cat >conftest.$ac_ext <<_ACEOF
     6462/* confdefs.h.  */
     6463_ACEOF
     6464cat confdefs.h >>conftest.$ac_ext
     6465cat >>conftest.$ac_ext <<_ACEOF
     6466/* end confdefs.h.  */
     6467void $cfuncdaxpy();
     6468#ifdef F77_DUMMY_MAIN
     6469
     6470#  ifdef __cplusplus
     6471     extern "C"
     6472#  endif
     6473   int F77_DUMMY_MAIN() { return 1; }
     6474
     6475#endif
     6476int
     6477main ()
     6478{
     6479$cfuncdaxpy()
     6480  ;
     6481  return 0;
     6482}
     6483_ACEOF
     6484rm -f conftest.$ac_objext conftest$ac_exeext
     6485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6486  (eval $ac_link) 2>conftest.er1
     6487  ac_status=$?
     6488  grep -v '^ *+' conftest.er1 >conftest.err
     6489  rm -f conftest.er1
     6490  cat conftest.err >&5
     6491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6492  (exit $ac_status); } &&
     6493         { ac_try='test -z "$ac_c_werror_flag"
     6494                         || test ! -s conftest.err'
     6495  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6496  (eval $ac_try) 2>&5
     6497  ac_status=$?
     6498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6499  (exit $ac_status); }; } &&
     6500         { ac_try='test -s conftest$ac_exeext'
     6501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6502  (eval $ac_try) 2>&5
     6503  ac_status=$?
     6504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6505  (exit $ac_status); }; }; then
     6506  LIBS="$flink_save_libs"
     6507                     coin_need_flibs=yes
     6508                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6509                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6510echo "${ECHO_T}yes: $use_blas" >&6
     6511
     6512
     6513else
     6514  echo "$as_me: failed program was:" >&5
     6515sed 's/^/| /' conftest.$ac_ext >&5
     6516
     6517LIBS="$flink_save_libs"
     6518                     echo "$as_me:$LINENO: result: no" >&5
     6519echo "${ECHO_T}no" >&6
     6520fi
     6521rm -f conftest.err conftest.$ac_objext \
     6522      conftest$ac_exeext conftest.$ac_ext
     6523      else
     6524        echo "$as_me:$LINENO: result: no" >&5
     6525echo "${ECHO_T}no" >&6
     6526      fi
     6527    fi
     6528    ;;
     6529  cc|cpp)
     6530    ac_ext=f
     6531ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6532ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6533ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6534case $ac_cv_f77_mangling in
     6535  upper*) ac_val="DAXPY" ;;
     6536  lower*) ac_val="daxpy" ;;
     6537  *)      ac_val="unknown" ;;
     6538esac
     6539case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6540
     6541cfuncdaxpy="$ac_val"
     6542
     6543ac_ext=c
     6544ac_cpp='$CPP $CPPFLAGS'
     6545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6547ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6548
     6549    if test x"$coin_need_flibs" = xyes; then
     6550      flink_try=no;
     6551    else
     6552      cat >conftest.$ac_ext <<_ACEOF
     6553/* confdefs.h.  */
     6554_ACEOF
     6555cat confdefs.h >>conftest.$ac_ext
     6556cat >>conftest.$ac_ext <<_ACEOF
     6557/* end confdefs.h.  */
     6558extern "C" {void $cfuncdaxpy();}
     6559#ifdef F77_DUMMY_MAIN
     6560
     6561#  ifdef __cplusplus
     6562     extern "C"
     6563#  endif
     6564   int F77_DUMMY_MAIN() { return 1; }
     6565
     6566#endif
     6567int
     6568main ()
     6569{
     6570$cfuncdaxpy()
     6571  ;
     6572  return 0;
     6573}
     6574_ACEOF
     6575rm -f conftest.$ac_objext conftest$ac_exeext
     6576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6577  (eval $ac_link) 2>conftest.er1
     6578  ac_status=$?
     6579  grep -v '^ *+' conftest.er1 >conftest.err
     6580  rm -f conftest.er1
     6581  cat conftest.err >&5
     6582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6583  (exit $ac_status); } &&
     6584         { ac_try='test -z "$ac_c_werror_flag"
     6585                         || test ! -s conftest.err'
     6586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6587  (eval $ac_try) 2>&5
     6588  ac_status=$?
     6589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6590  (exit $ac_status); }; } &&
     6591         { ac_try='test -s conftest$ac_exeext'
     6592  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6593  (eval $ac_try) 2>&5
     6594  ac_status=$?
     6595  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6596  (exit $ac_status); }; }; then
     6597  flink_try=yes
     6598else
     6599  echo "$as_me: failed program was:" >&5
     6600sed 's/^/| /' conftest.$ac_ext >&5
     6601
     6602flink_try=no
     6603fi
     6604rm -f conftest.err conftest.$ac_objext \
     6605      conftest$ac_exeext conftest.$ac_ext
     6606    fi
     6607    if test $flink_try = yes; then
     6608      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6609                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6610echo "${ECHO_T}yes: $use_blas" >&6
     6611
     6612    else
     6613      if test x"$FLIBS" != x; then
     6614        flink_save_libs="$LIBS"
     6615        LIBS="$LIBS $FLIBS"
     6616        cat >conftest.$ac_ext <<_ACEOF
     6617/* confdefs.h.  */
     6618_ACEOF
     6619cat confdefs.h >>conftest.$ac_ext
     6620cat >>conftest.$ac_ext <<_ACEOF
     6621/* end confdefs.h.  */
     6622extern "C" {void $cfuncdaxpy();}
     6623#ifdef F77_DUMMY_MAIN
     6624
     6625#  ifdef __cplusplus
     6626     extern "C"
     6627#  endif
     6628   int F77_DUMMY_MAIN() { return 1; }
     6629
     6630#endif
     6631int
     6632main ()
     6633{
     6634$cfuncdaxpy()
     6635  ;
     6636  return 0;
     6637}
     6638_ACEOF
     6639rm -f conftest.$ac_objext conftest$ac_exeext
     6640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6641  (eval $ac_link) 2>conftest.er1
     6642  ac_status=$?
     6643  grep -v '^ *+' conftest.er1 >conftest.err
     6644  rm -f conftest.er1
     6645  cat conftest.err >&5
     6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6647  (exit $ac_status); } &&
     6648         { ac_try='test -z "$ac_c_werror_flag"
     6649                         || test ! -s conftest.err'
     6650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6651  (eval $ac_try) 2>&5
     6652  ac_status=$?
     6653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6654  (exit $ac_status); }; } &&
     6655         { ac_try='test -s conftest$ac_exeext'
     6656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6657  (eval $ac_try) 2>&5
     6658  ac_status=$?
     6659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6660  (exit $ac_status); }; }; then
     6661  LIBS="$flink_save_libs"
     6662                     coin_need_flibs=yes
     6663                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6664                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6665echo "${ECHO_T}yes: $use_blas" >&6
     6666
     6667
     6668else
     6669  echo "$as_me: failed program was:" >&5
     6670sed 's/^/| /' conftest.$ac_ext >&5
     6671
     6672LIBS="$flink_save_libs"
     6673                     echo "$as_me:$LINENO: result: no" >&5
     6674echo "${ECHO_T}no" >&6
     6675fi
     6676rm -f conftest.err conftest.$ac_objext \
     6677      conftest$ac_exeext conftest.$ac_ext
     6678      else
     6679        echo "$as_me:$LINENO: result: no" >&5
     6680echo "${ECHO_T}no" >&6
     6681      fi
     6682    fi
     6683    ;;
     6684esac
     6685
     6686          LIBS="$coin_save_LIBS"
     6687
     6688          if test "x$use_blas" = x ; then
     6689            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
     6690echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
     6691            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
     6692            case $ac_ext in
     6693  f)
     6694    cat >conftest.$ac_ext <<_ACEOF
     6695/* confdefs.h.  */
     6696_ACEOF
     6697cat confdefs.h >>conftest.$ac_ext
     6698cat >>conftest.$ac_ext <<_ACEOF
     6699/* end confdefs.h.  */
     6700
     6701#ifdef F77_DUMMY_MAIN
     6702
     6703#  ifdef __cplusplus
     6704     extern "C"
     6705#  endif
     6706   int F77_DUMMY_MAIN() { return 1; }
     6707
     6708#endif
     6709int
     6710main ()
     6711{
     6712      call daxpy
     6713  ;
     6714  return 0;
     6715}
     6716_ACEOF
     6717rm -f conftest.$ac_objext conftest$ac_exeext
     6718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6719  (eval $ac_link) 2>conftest.er1
     6720  ac_status=$?
     6721  grep -v '^ *+' conftest.er1 >conftest.err
     6722  rm -f conftest.er1
     6723  cat conftest.err >&5
     6724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6725  (exit $ac_status); } &&
     6726         { ac_try='test -z "$ac_c_werror_flag"
     6727                         || test ! -s conftest.err'
     6728  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6729  (eval $ac_try) 2>&5
     6730  ac_status=$?
     6731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6732  (exit $ac_status); }; } &&
     6733         { ac_try='test -s conftest$ac_exeext'
     6734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6735  (eval $ac_try) 2>&5
     6736  ac_status=$?
     6737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6738  (exit $ac_status); }; }; then
     6739  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6740                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6741echo "${ECHO_T}yes: $use_blas" >&6
     6742
     6743else
     6744  echo "$as_me: failed program was:" >&5
     6745sed 's/^/| /' conftest.$ac_ext >&5
     6746
     6747echo "$as_me:$LINENO: result: no" >&5
     6748echo "${ECHO_T}no" >&6
     6749fi
     6750rm -f conftest.err conftest.$ac_objext \
     6751      conftest$ac_exeext conftest.$ac_ext
     6752    ;;
     6753  c)
     6754    ac_ext=f
     6755ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6756ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6757ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6758case $ac_cv_f77_mangling in
     6759  upper*) ac_val="DAXPY" ;;
     6760  lower*) ac_val="daxpy" ;;
     6761  *)      ac_val="unknown" ;;
     6762esac
     6763case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6764
     6765cfuncdaxpy="$ac_val"
     6766
     6767ac_ext=c
     6768ac_cpp='$CPP $CPPFLAGS'
     6769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6771ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6772
     6773    if test x"$coin_need_flibs" = xyes; then
     6774      flink_try=no;
     6775    else
     6776      cat >conftest.$ac_ext <<_ACEOF
     6777/* confdefs.h.  */
     6778_ACEOF
     6779cat confdefs.h >>conftest.$ac_ext
     6780cat >>conftest.$ac_ext <<_ACEOF
     6781/* end confdefs.h.  */
     6782void $cfuncdaxpy();
     6783#ifdef F77_DUMMY_MAIN
     6784
     6785#  ifdef __cplusplus
     6786     extern "C"
     6787#  endif
     6788   int F77_DUMMY_MAIN() { return 1; }
     6789
     6790#endif
     6791int
     6792main ()
     6793{
     6794$cfuncdaxpy()
     6795  ;
     6796  return 0;
     6797}
     6798_ACEOF
     6799rm -f conftest.$ac_objext conftest$ac_exeext
     6800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6801  (eval $ac_link) 2>conftest.er1
     6802  ac_status=$?
     6803  grep -v '^ *+' conftest.er1 >conftest.err
     6804  rm -f conftest.er1
     6805  cat conftest.err >&5
     6806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6807  (exit $ac_status); } &&
     6808         { ac_try='test -z "$ac_c_werror_flag"
     6809                         || test ! -s conftest.err'
     6810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6811  (eval $ac_try) 2>&5
     6812  ac_status=$?
     6813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6814  (exit $ac_status); }; } &&
     6815         { ac_try='test -s conftest$ac_exeext'
     6816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6817  (eval $ac_try) 2>&5
     6818  ac_status=$?
     6819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6820  (exit $ac_status); }; }; then
     6821  flink_try=yes
     6822else
     6823  echo "$as_me: failed program was:" >&5
     6824sed 's/^/| /' conftest.$ac_ext >&5
     6825
     6826flink_try=no
     6827fi
     6828rm -f conftest.err conftest.$ac_objext \
     6829      conftest$ac_exeext conftest.$ac_ext
     6830    fi
     6831    if test $flink_try = yes; then
     6832      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6833                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6834echo "${ECHO_T}yes: $use_blas" >&6
     6835
     6836    else
     6837      if test x"$FLIBS" != x; then
     6838        flink_save_libs="$LIBS"
     6839        LIBS="$LIBS $FLIBS"
     6840        cat >conftest.$ac_ext <<_ACEOF
     6841/* confdefs.h.  */
     6842_ACEOF
     6843cat confdefs.h >>conftest.$ac_ext
     6844cat >>conftest.$ac_ext <<_ACEOF
     6845/* end confdefs.h.  */
     6846void $cfuncdaxpy();
     6847#ifdef F77_DUMMY_MAIN
     6848
     6849#  ifdef __cplusplus
     6850     extern "C"
     6851#  endif
     6852   int F77_DUMMY_MAIN() { return 1; }
     6853
     6854#endif
     6855int
     6856main ()
     6857{
     6858$cfuncdaxpy()
     6859  ;
     6860  return 0;
     6861}
     6862_ACEOF
     6863rm -f conftest.$ac_objext conftest$ac_exeext
     6864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6865  (eval $ac_link) 2>conftest.er1
     6866  ac_status=$?
     6867  grep -v '^ *+' conftest.er1 >conftest.err
     6868  rm -f conftest.er1
     6869  cat conftest.err >&5
     6870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6871  (exit $ac_status); } &&
     6872         { ac_try='test -z "$ac_c_werror_flag"
     6873                         || test ! -s conftest.err'
     6874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6875  (eval $ac_try) 2>&5
     6876  ac_status=$?
     6877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6878  (exit $ac_status); }; } &&
     6879         { ac_try='test -s conftest$ac_exeext'
     6880  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6881  (eval $ac_try) 2>&5
     6882  ac_status=$?
     6883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6884  (exit $ac_status); }; }; then
     6885  LIBS="$flink_save_libs"
     6886                     coin_need_flibs=yes
     6887                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6888                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6889echo "${ECHO_T}yes: $use_blas" >&6
     6890
     6891
     6892else
     6893  echo "$as_me: failed program was:" >&5
     6894sed 's/^/| /' conftest.$ac_ext >&5
     6895
     6896LIBS="$flink_save_libs"
     6897                     echo "$as_me:$LINENO: result: no" >&5
     6898echo "${ECHO_T}no" >&6
     6899fi
     6900rm -f conftest.err conftest.$ac_objext \
     6901      conftest$ac_exeext conftest.$ac_ext
     6902      else
     6903        echo "$as_me:$LINENO: result: no" >&5
     6904echo "${ECHO_T}no" >&6
     6905      fi
     6906    fi
     6907    ;;
     6908  cc|cpp)
     6909    ac_ext=f
     6910ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6911ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6912ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6913case $ac_cv_f77_mangling in
     6914  upper*) ac_val="DAXPY" ;;
     6915  lower*) ac_val="daxpy" ;;
     6916  *)      ac_val="unknown" ;;
     6917esac
     6918case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6919
     6920cfuncdaxpy="$ac_val"
     6921
     6922ac_ext=c
     6923ac_cpp='$CPP $CPPFLAGS'
     6924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6926ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6927
     6928    if test x"$coin_need_flibs" = xyes; then
     6929      flink_try=no;
     6930    else
     6931      cat >conftest.$ac_ext <<_ACEOF
     6932/* confdefs.h.  */
     6933_ACEOF
     6934cat confdefs.h >>conftest.$ac_ext
     6935cat >>conftest.$ac_ext <<_ACEOF
     6936/* end confdefs.h.  */
     6937extern "C" {void $cfuncdaxpy();}
     6938#ifdef F77_DUMMY_MAIN
     6939
     6940#  ifdef __cplusplus
     6941     extern "C"
     6942#  endif
     6943   int F77_DUMMY_MAIN() { return 1; }
     6944
     6945#endif
     6946int
     6947main ()
     6948{
     6949$cfuncdaxpy()
     6950  ;
     6951  return 0;
     6952}
     6953_ACEOF
     6954rm -f conftest.$ac_objext conftest$ac_exeext
     6955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6956  (eval $ac_link) 2>conftest.er1
     6957  ac_status=$?
     6958  grep -v '^ *+' conftest.er1 >conftest.err
     6959  rm -f conftest.er1
     6960  cat conftest.err >&5
     6961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6962  (exit $ac_status); } &&
     6963         { ac_try='test -z "$ac_c_werror_flag"
     6964                         || test ! -s conftest.err'
     6965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6966  (eval $ac_try) 2>&5
     6967  ac_status=$?
     6968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6969  (exit $ac_status); }; } &&
     6970         { ac_try='test -s conftest$ac_exeext'
     6971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6972  (eval $ac_try) 2>&5
     6973  ac_status=$?
     6974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6975  (exit $ac_status); }; }; then
     6976  flink_try=yes
     6977else
     6978  echo "$as_me: failed program was:" >&5
     6979sed 's/^/| /' conftest.$ac_ext >&5
     6980
     6981flink_try=no
     6982fi
     6983rm -f conftest.err conftest.$ac_objext \
     6984      conftest$ac_exeext conftest.$ac_ext
     6985    fi
     6986    if test $flink_try = yes; then
     6987      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6988                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6989echo "${ECHO_T}yes: $use_blas" >&6
     6990
     6991    else
     6992      if test x"$FLIBS" != x; then
     6993        flink_save_libs="$LIBS"
     6994        LIBS="$LIBS $FLIBS"
     6995        cat >conftest.$ac_ext <<_ACEOF
     6996/* confdefs.h.  */
     6997_ACEOF
     6998cat confdefs.h >>conftest.$ac_ext
     6999cat >>conftest.$ac_ext <<_ACEOF
     7000/* end confdefs.h.  */
     7001extern "C" {void $cfuncdaxpy();}
     7002#ifdef F77_DUMMY_MAIN
     7003
     7004#  ifdef __cplusplus
     7005     extern "C"
     7006#  endif
     7007   int F77_DUMMY_MAIN() { return 1; }
     7008
     7009#endif
     7010int
     7011main ()
     7012{
     7013$cfuncdaxpy()
     7014  ;
     7015  return 0;
     7016}
     7017_ACEOF
     7018rm -f conftest.$ac_objext conftest$ac_exeext
     7019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7020  (eval $ac_link) 2>conftest.er1
     7021  ac_status=$?
     7022  grep -v '^ *+' conftest.er1 >conftest.err
     7023  rm -f conftest.er1
     7024  cat conftest.err >&5
     7025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7026  (exit $ac_status); } &&
     7027         { ac_try='test -z "$ac_c_werror_flag"
     7028                         || test ! -s conftest.err'
     7029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7030  (eval $ac_try) 2>&5
     7031  ac_status=$?
     7032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7033  (exit $ac_status); }; } &&
     7034         { ac_try='test -s conftest$ac_exeext'
     7035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7036  (eval $ac_try) 2>&5
     7037  ac_status=$?
     7038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7039  (exit $ac_status); }; }; then
     7040  LIBS="$flink_save_libs"
     7041                     coin_need_flibs=yes
     7042                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     7043                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7044echo "${ECHO_T}yes: $use_blas" >&6
     7045
     7046
     7047else
     7048  echo "$as_me: failed program was:" >&5
     7049sed 's/^/| /' conftest.$ac_ext >&5
     7050
     7051LIBS="$flink_save_libs"
     7052                     echo "$as_me:$LINENO: result: no" >&5
     7053echo "${ECHO_T}no" >&6
     7054fi
     7055rm -f conftest.err conftest.$ac_objext \
     7056      conftest$ac_exeext conftest.$ac_ext
     7057      else
     7058        echo "$as_me:$LINENO: result: no" >&5
     7059echo "${ECHO_T}no" >&6
     7060      fi
     7061    fi
     7062    ;;
     7063esac
     7064
     7065            LIBS="$coin_save_LIBS"
     7066          fi
     7067          ;;
     7068      esac
     7069      ;;
     7070
     7071     *-darwin*)
     7072      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
     7073echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
     7074      coin_need_flibs=no
     7075      coin_save_LIBS="$LIBS"
     7076      LIBS="-framework vecLib $LIBS"
     7077      case $ac_ext in
     7078  f)
     7079    cat >conftest.$ac_ext <<_ACEOF
     7080/* confdefs.h.  */
     7081_ACEOF
     7082cat confdefs.h >>conftest.$ac_ext
     7083cat >>conftest.$ac_ext <<_ACEOF
     7084/* end confdefs.h.  */
     7085
     7086#ifdef F77_DUMMY_MAIN
     7087
     7088#  ifdef __cplusplus
     7089     extern "C"
     7090#  endif
     7091   int F77_DUMMY_MAIN() { return 1; }
     7092
     7093#endif
     7094int
     7095main ()
     7096{
     7097      call daxpy
     7098  ;
     7099  return 0;
     7100}
     7101_ACEOF
     7102rm -f conftest.$ac_objext conftest$ac_exeext
     7103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7104  (eval $ac_link) 2>conftest.er1
     7105  ac_status=$?
     7106  grep -v '^ *+' conftest.er1 >conftest.err
     7107  rm -f conftest.er1
     7108  cat conftest.err >&5
     7109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7110  (exit $ac_status); } &&
     7111         { ac_try='test -z "$ac_c_werror_flag"
     7112                         || test ! -s conftest.err'
     7113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7114  (eval $ac_try) 2>&5
     7115  ac_status=$?
     7116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7117  (exit $ac_status); }; } &&
     7118         { ac_try='test -s conftest$ac_exeext'
     7119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7120  (eval $ac_try) 2>&5
     7121  ac_status=$?
     7122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7123  (exit $ac_status); }; }; then
     7124  use_blas='-framework vecLib'
     7125                         if test $coin_need_flibs = yes ; then
     7126                           use_blas="$use_blas $FLIBS"
     7127                         fi
     7128                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7129echo "${ECHO_T}yes: $use_blas" >&6
     7130
     7131else
     7132  echo "$as_me: failed program was:" >&5
     7133sed 's/^/| /' conftest.$ac_ext >&5
     7134
     7135echo "$as_me:$LINENO: result: no" >&5
     7136echo "${ECHO_T}no" >&6
     7137fi
     7138rm -f conftest.err conftest.$ac_objext \
     7139      conftest$ac_exeext conftest.$ac_ext
     7140    ;;
     7141  c)
     7142    ac_ext=f
     7143ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7144ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7145ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7146case $ac_cv_f77_mangling in
     7147  upper*) ac_val="DAXPY" ;;
     7148  lower*) ac_val="daxpy" ;;
     7149  *)      ac_val="unknown" ;;
     7150esac
     7151case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7152
     7153cfuncdaxpy="$ac_val"
     7154
     7155ac_ext=c
     7156ac_cpp='$CPP $CPPFLAGS'
     7157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7159ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7160
     7161    if test x"$coin_need_flibs" = xyes; then
     7162      flink_try=no;
     7163    else
     7164      cat >conftest.$ac_ext <<_ACEOF
     7165/* confdefs.h.  */
     7166_ACEOF
     7167cat confdefs.h >>conftest.$ac_ext
     7168cat >>conftest.$ac_ext <<_ACEOF
     7169/* end confdefs.h.  */
     7170void $cfuncdaxpy();
     7171#ifdef F77_DUMMY_MAIN
     7172
     7173#  ifdef __cplusplus
     7174     extern "C"
     7175#  endif
     7176   int F77_DUMMY_MAIN() { return 1; }
     7177
     7178#endif
     7179int
     7180main ()
     7181{
     7182$cfuncdaxpy()
     7183  ;
     7184  return 0;
     7185}
     7186_ACEOF
     7187rm -f conftest.$ac_objext conftest$ac_exeext
     7188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7189  (eval $ac_link) 2>conftest.er1
     7190  ac_status=$?
     7191  grep -v '^ *+' conftest.er1 >conftest.err
     7192  rm -f conftest.er1
     7193  cat conftest.err >&5
     7194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7195  (exit $ac_status); } &&
     7196         { ac_try='test -z "$ac_c_werror_flag"
     7197                         || test ! -s conftest.err'
     7198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7199  (eval $ac_try) 2>&5
     7200  ac_status=$?
     7201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7202  (exit $ac_status); }; } &&
     7203         { ac_try='test -s conftest$ac_exeext'
     7204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7205  (eval $ac_try) 2>&5
     7206  ac_status=$?
     7207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7208  (exit $ac_status); }; }; then
     7209  flink_try=yes
     7210else
     7211  echo "$as_me: failed program was:" >&5
     7212sed 's/^/| /' conftest.$ac_ext >&5
     7213
     7214flink_try=no
     7215fi
     7216rm -f conftest.err conftest.$ac_objext \
     7217      conftest$ac_exeext conftest.$ac_ext
     7218    fi
     7219    if test $flink_try = yes; then
     7220      use_blas='-framework vecLib'
     7221                         if test $coin_need_flibs = yes ; then
     7222                           use_blas="$use_blas $FLIBS"
     7223                         fi
     7224                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7225echo "${ECHO_T}yes: $use_blas" >&6
     7226
     7227    else
     7228      if test x"$FLIBS" != x; then
     7229        flink_save_libs="$LIBS"
     7230        LIBS="$LIBS $FLIBS"
     7231        cat >conftest.$ac_ext <<_ACEOF
     7232/* confdefs.h.  */
     7233_ACEOF
     7234cat confdefs.h >>conftest.$ac_ext
     7235cat >>conftest.$ac_ext <<_ACEOF
     7236/* end confdefs.h.  */
     7237void $cfuncdaxpy();
     7238#ifdef F77_DUMMY_MAIN
     7239
     7240#  ifdef __cplusplus
     7241     extern "C"
     7242#  endif
     7243   int F77_DUMMY_MAIN() { return 1; }
     7244
     7245#endif
     7246int
     7247main ()
     7248{
     7249$cfuncdaxpy()
     7250  ;
     7251  return 0;
     7252}
     7253_ACEOF
     7254rm -f conftest.$ac_objext conftest$ac_exeext
     7255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7256  (eval $ac_link) 2>conftest.er1
     7257  ac_status=$?
     7258  grep -v '^ *+' conftest.er1 >conftest.err
     7259  rm -f conftest.er1
     7260  cat conftest.err >&5
     7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7262  (exit $ac_status); } &&
     7263         { ac_try='test -z "$ac_c_werror_flag"
     7264                         || test ! -s conftest.err'
     7265  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7266  (eval $ac_try) 2>&5
     7267  ac_status=$?
     7268  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7269  (exit $ac_status); }; } &&
     7270         { ac_try='test -s conftest$ac_exeext'
     7271  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7272  (eval $ac_try) 2>&5
     7273  ac_status=$?
     7274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7275  (exit $ac_status); }; }; then
     7276  LIBS="$flink_save_libs"
     7277                     coin_need_flibs=yes
     7278                     use_blas='-framework vecLib'
     7279                         if test $coin_need_flibs = yes ; then
     7280                           use_blas="$use_blas $FLIBS"
     7281                         fi
     7282                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7283echo "${ECHO_T}yes: $use_blas" >&6
     7284
     7285
     7286else
     7287  echo "$as_me: failed program was:" >&5
     7288sed 's/^/| /' conftest.$ac_ext >&5
     7289
     7290LIBS="$flink_save_libs"
     7291                     echo "$as_me:$LINENO: result: no" >&5
     7292echo "${ECHO_T}no" >&6
     7293fi
     7294rm -f conftest.err conftest.$ac_objext \
     7295      conftest$ac_exeext conftest.$ac_ext
     7296      else
     7297        echo "$as_me:$LINENO: result: no" >&5
     7298echo "${ECHO_T}no" >&6
     7299      fi
     7300    fi
     7301    ;;
     7302  cc|cpp)
     7303    ac_ext=f
     7304ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7305ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7306ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7307case $ac_cv_f77_mangling in
     7308  upper*) ac_val="DAXPY" ;;
     7309  lower*) ac_val="daxpy" ;;
     7310  *)      ac_val="unknown" ;;
     7311esac
     7312case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7313
     7314cfuncdaxpy="$ac_val"
     7315
     7316ac_ext=c
     7317ac_cpp='$CPP $CPPFLAGS'
     7318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7320ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7321
     7322    if test x"$coin_need_flibs" = xyes; then
     7323      flink_try=no;
     7324    else
     7325      cat >conftest.$ac_ext <<_ACEOF
     7326/* confdefs.h.  */
     7327_ACEOF
     7328cat confdefs.h >>conftest.$ac_ext
     7329cat >>conftest.$ac_ext <<_ACEOF
     7330/* end confdefs.h.  */
     7331extern "C" {void $cfuncdaxpy();}
     7332#ifdef F77_DUMMY_MAIN
     7333
     7334#  ifdef __cplusplus
     7335     extern "C"
     7336#  endif
     7337   int F77_DUMMY_MAIN() { return 1; }
     7338
     7339#endif
     7340int
     7341main ()
     7342{
     7343$cfuncdaxpy()
     7344  ;
     7345  return 0;
     7346}
     7347_ACEOF
     7348rm -f conftest.$ac_objext conftest$ac_exeext
     7349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7350  (eval $ac_link) 2>conftest.er1
     7351  ac_status=$?
     7352  grep -v '^ *+' conftest.er1 >conftest.err
     7353  rm -f conftest.er1
     7354  cat conftest.err >&5
     7355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7356  (exit $ac_status); } &&
     7357         { ac_try='test -z "$ac_c_werror_flag"
     7358                         || test ! -s conftest.err'
     7359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7360  (eval $ac_try) 2>&5
     7361  ac_status=$?
     7362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7363  (exit $ac_status); }; } &&
     7364         { ac_try='test -s conftest$ac_exeext'
     7365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7366  (eval $ac_try) 2>&5
     7367  ac_status=$?
     7368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7369  (exit $ac_status); }; }; then
     7370  flink_try=yes
     7371else
     7372  echo "$as_me: failed program was:" >&5
     7373sed 's/^/| /' conftest.$ac_ext >&5
     7374
     7375flink_try=no
     7376fi
     7377rm -f conftest.err conftest.$ac_objext \
     7378      conftest$ac_exeext conftest.$ac_ext
     7379    fi
     7380    if test $flink_try = yes; then
     7381      use_blas='-framework vecLib'
     7382                         if test $coin_need_flibs = yes ; then
     7383                           use_blas="$use_blas $FLIBS"
     7384                         fi
     7385                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7386echo "${ECHO_T}yes: $use_blas" >&6
     7387
     7388    else
     7389      if test x"$FLIBS" != x; then
     7390        flink_save_libs="$LIBS"
     7391        LIBS="$LIBS $FLIBS"
     7392        cat >conftest.$ac_ext <<_ACEOF
     7393/* confdefs.h.  */
     7394_ACEOF
     7395cat confdefs.h >>conftest.$ac_ext
     7396cat >>conftest.$ac_ext <<_ACEOF
     7397/* end confdefs.h.  */
     7398extern "C" {void $cfuncdaxpy();}
     7399#ifdef F77_DUMMY_MAIN
     7400
     7401#  ifdef __cplusplus
     7402     extern "C"
     7403#  endif
     7404   int F77_DUMMY_MAIN() { return 1; }
     7405
     7406#endif
     7407int
     7408main ()
     7409{
     7410$cfuncdaxpy()
     7411  ;
     7412  return 0;
     7413}
     7414_ACEOF
     7415rm -f conftest.$ac_objext conftest$ac_exeext
     7416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7417  (eval $ac_link) 2>conftest.er1
     7418  ac_status=$?
     7419  grep -v '^ *+' conftest.er1 >conftest.err
     7420  rm -f conftest.er1
     7421  cat conftest.err >&5
     7422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7423  (exit $ac_status); } &&
     7424         { ac_try='test -z "$ac_c_werror_flag"
     7425                         || test ! -s conftest.err'
     7426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7427  (eval $ac_try) 2>&5
     7428  ac_status=$?
     7429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7430  (exit $ac_status); }; } &&
     7431         { ac_try='test -s conftest$ac_exeext'
     7432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7433  (eval $ac_try) 2>&5
     7434  ac_status=$?
     7435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7436  (exit $ac_status); }; }; then
     7437  LIBS="$flink_save_libs"
     7438                     coin_need_flibs=yes
     7439                     use_blas='-framework vecLib'
     7440                         if test $coin_need_flibs = yes ; then
     7441                           use_blas="$use_blas $FLIBS"
     7442                         fi
     7443                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7444echo "${ECHO_T}yes: $use_blas" >&6
     7445
     7446
     7447else
     7448  echo "$as_me: failed program was:" >&5
     7449sed 's/^/| /' conftest.$ac_ext >&5
     7450
     7451LIBS="$flink_save_libs"
     7452                     echo "$as_me:$LINENO: result: no" >&5
     7453echo "${ECHO_T}no" >&6
     7454fi
     7455rm -f conftest.err conftest.$ac_objext \
     7456      conftest$ac_exeext conftest.$ac_ext
     7457      else
     7458        echo "$as_me:$LINENO: result: no" >&5
     7459echo "${ECHO_T}no" >&6
     7460      fi
     7461    fi
     7462    ;;
     7463esac
     7464
     7465      LIBS="$coin_save_LIBS"
     7466      ;;
     7467  esac
     7468
     7469  if test -z "$use_blas" && test $skip_lblas_check = no; then
     7470    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
     7471echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
     7472    coin_need_flibs=no
     7473    coin_save_LIBS="$LIBS"
     7474    LIBS="-lblas $LIBS"
     7475    case $ac_ext in
     7476  f)
     7477    cat >conftest.$ac_ext <<_ACEOF
     7478/* confdefs.h.  */
     7479_ACEOF
     7480cat confdefs.h >>conftest.$ac_ext
     7481cat >>conftest.$ac_ext <<_ACEOF
     7482/* end confdefs.h.  */
     7483
     7484#ifdef F77_DUMMY_MAIN
     7485
     7486#  ifdef __cplusplus
     7487     extern "C"
     7488#  endif
     7489   int F77_DUMMY_MAIN() { return 1; }
     7490
     7491#endif
     7492int
     7493main ()
     7494{
     7495      call daxpy
     7496  ;
     7497  return 0;
     7498}
     7499_ACEOF
     7500rm -f conftest.$ac_objext conftest$ac_exeext
     7501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7502  (eval $ac_link) 2>conftest.er1
     7503  ac_status=$?
     7504  grep -v '^ *+' conftest.er1 >conftest.err
     7505  rm -f conftest.er1
     7506  cat conftest.err >&5
     7507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7508  (exit $ac_status); } &&
     7509         { ac_try='test -z "$ac_c_werror_flag"
     7510                         || test ! -s conftest.err'
     7511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7512  (eval $ac_try) 2>&5
     7513  ac_status=$?
     7514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7515  (exit $ac_status); }; } &&
     7516         { ac_try='test -s conftest$ac_exeext'
     7517  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7518  (eval $ac_try) 2>&5
     7519  ac_status=$?
     7520  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7521  (exit $ac_status); }; }; then
     7522  use_blas='-lblas'
     7523                       if test $coin_need_flibs = yes ; then
     7524                         use_blas="$use_blas $FLIBS"
     7525                       fi
     7526                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7527echo "${ECHO_T}yes: $use_blas" >&6
     7528
     7529else
     7530  echo "$as_me: failed program was:" >&5
     7531sed 's/^/| /' conftest.$ac_ext >&5
     7532
     7533echo "$as_me:$LINENO: result: no" >&5
     7534echo "${ECHO_T}no" >&6
     7535fi
     7536rm -f conftest.err conftest.$ac_objext \
     7537      conftest$ac_exeext conftest.$ac_ext
     7538    ;;
     7539  c)
     7540    ac_ext=f
     7541ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7542ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7543ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7544case $ac_cv_f77_mangling in
     7545  upper*) ac_val="DAXPY" ;;
     7546  lower*) ac_val="daxpy" ;;
     7547  *)      ac_val="unknown" ;;
     7548esac
     7549case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7550
     7551cfuncdaxpy="$ac_val"
     7552
     7553ac_ext=c
     7554ac_cpp='$CPP $CPPFLAGS'
     7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7558
     7559    if test x"$coin_need_flibs" = xyes; then
     7560      flink_try=no;
     7561    else
     7562      cat >conftest.$ac_ext <<_ACEOF
     7563/* confdefs.h.  */
     7564_ACEOF
     7565cat confdefs.h >>conftest.$ac_ext
     7566cat >>conftest.$ac_ext <<_ACEOF
     7567/* end confdefs.h.  */
     7568void $cfuncdaxpy();
     7569#ifdef F77_DUMMY_MAIN
     7570
     7571#  ifdef __cplusplus
     7572     extern "C"
     7573#  endif
     7574   int F77_DUMMY_MAIN() { return 1; }
     7575
     7576#endif
     7577int
     7578main ()
     7579{
     7580$cfuncdaxpy()
     7581  ;
     7582  return 0;
     7583}
     7584_ACEOF
     7585rm -f conftest.$ac_objext conftest$ac_exeext
     7586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7587  (eval $ac_link) 2>conftest.er1
     7588  ac_status=$?
     7589  grep -v '^ *+' conftest.er1 >conftest.err
     7590  rm -f conftest.er1
     7591  cat conftest.err >&5
     7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7593  (exit $ac_status); } &&
     7594         { ac_try='test -z "$ac_c_werror_flag"
     7595                         || test ! -s conftest.err'
     7596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7597  (eval $ac_try) 2>&5
     7598  ac_status=$?
     7599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7600  (exit $ac_status); }; } &&
     7601         { ac_try='test -s conftest$ac_exeext'
     7602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7603  (eval $ac_try) 2>&5
     7604  ac_status=$?
     7605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7606  (exit $ac_status); }; }; then
     7607  flink_try=yes
     7608else
     7609  echo "$as_me: failed program was:" >&5
     7610sed 's/^/| /' conftest.$ac_ext >&5
     7611
     7612flink_try=no
     7613fi
     7614rm -f conftest.err conftest.$ac_objext \
     7615      conftest$ac_exeext conftest.$ac_ext
     7616    fi
     7617    if test $flink_try = yes; then
     7618      use_blas='-lblas'
     7619                       if test $coin_need_flibs = yes ; then
     7620                         use_blas="$use_blas $FLIBS"
     7621                       fi
     7622                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7623echo "${ECHO_T}yes: $use_blas" >&6
     7624
     7625    else
     7626      if test x"$FLIBS" != x; then
     7627        flink_save_libs="$LIBS"
     7628        LIBS="$LIBS $FLIBS"
     7629        cat >conftest.$ac_ext <<_ACEOF
     7630/* confdefs.h.  */
     7631_ACEOF
     7632cat confdefs.h >>conftest.$ac_ext
     7633cat >>conftest.$ac_ext <<_ACEOF
     7634/* end confdefs.h.  */
     7635void $cfuncdaxpy();
     7636#ifdef F77_DUMMY_MAIN
     7637
     7638#  ifdef __cplusplus
     7639     extern "C"
     7640#  endif
     7641   int F77_DUMMY_MAIN() { return 1; }
     7642
     7643#endif
     7644int
     7645main ()
     7646{
     7647$cfuncdaxpy()
     7648  ;
     7649  return 0;
     7650}
     7651_ACEOF
     7652rm -f conftest.$ac_objext conftest$ac_exeext
     7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7654  (eval $ac_link) 2>conftest.er1
     7655  ac_status=$?
     7656  grep -v '^ *+' conftest.er1 >conftest.err
     7657  rm -f conftest.er1
     7658  cat conftest.err >&5
     7659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7660  (exit $ac_status); } &&
     7661         { ac_try='test -z "$ac_c_werror_flag"
     7662                         || test ! -s conftest.err'
     7663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7664  (eval $ac_try) 2>&5
     7665  ac_status=$?
     7666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7667  (exit $ac_status); }; } &&
     7668         { ac_try='test -s conftest$ac_exeext'
     7669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7670  (eval $ac_try) 2>&5
     7671  ac_status=$?
     7672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7673  (exit $ac_status); }; }; then
     7674  LIBS="$flink_save_libs"
     7675                     coin_need_flibs=yes
     7676                     use_blas='-lblas'
     7677                       if test $coin_need_flibs = yes ; then
     7678                         use_blas="$use_blas $FLIBS"
     7679                       fi
     7680                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7681echo "${ECHO_T}yes: $use_blas" >&6
     7682
     7683
     7684else
     7685  echo "$as_me: failed program was:" >&5
     7686sed 's/^/| /' conftest.$ac_ext >&5
     7687
     7688LIBS="$flink_save_libs"
     7689                     echo "$as_me:$LINENO: result: no" >&5
     7690echo "${ECHO_T}no" >&6
     7691fi
     7692rm -f conftest.err conftest.$ac_objext \
     7693      conftest$ac_exeext conftest.$ac_ext
     7694      else
     7695        echo "$as_me:$LINENO: result: no" >&5
     7696echo "${ECHO_T}no" >&6
     7697      fi
     7698    fi
     7699    ;;
     7700  cc|cpp)
     7701    ac_ext=f
     7702ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7703ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7704ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7705case $ac_cv_f77_mangling in
     7706  upper*) ac_val="DAXPY" ;;
     7707  lower*) ac_val="daxpy" ;;
     7708  *)      ac_val="unknown" ;;
     7709esac
     7710case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7711
     7712cfuncdaxpy="$ac_val"
     7713
     7714ac_ext=c
     7715ac_cpp='$CPP $CPPFLAGS'
     7716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7718ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7719
     7720    if test x"$coin_need_flibs" = xyes; then
     7721      flink_try=no;
     7722    else
     7723      cat >conftest.$ac_ext <<_ACEOF
     7724/* confdefs.h.  */
     7725_ACEOF
     7726cat confdefs.h >>conftest.$ac_ext
     7727cat >>conftest.$ac_ext <<_ACEOF
     7728/* end confdefs.h.  */
     7729extern "C" {void $cfuncdaxpy();}
     7730#ifdef F77_DUMMY_MAIN
     7731
     7732#  ifdef __cplusplus
     7733     extern "C"
     7734#  endif
     7735   int F77_DUMMY_MAIN() { return 1; }
     7736
     7737#endif
     7738int
     7739main ()
     7740{
     7741$cfuncdaxpy()
     7742  ;
     7743  return 0;
     7744}
     7745_ACEOF
     7746rm -f conftest.$ac_objext conftest$ac_exeext
     7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7748  (eval $ac_link) 2>conftest.er1
     7749  ac_status=$?
     7750  grep -v '^ *+' conftest.er1 >conftest.err
     7751  rm -f conftest.er1
     7752  cat conftest.err >&5
     7753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7754  (exit $ac_status); } &&
     7755         { ac_try='test -z "$ac_c_werror_flag"
     7756                         || test ! -s conftest.err'
     7757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7758  (eval $ac_try) 2>&5
     7759  ac_status=$?
     7760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7761  (exit $ac_status); }; } &&
     7762         { ac_try='test -s conftest$ac_exeext'
     7763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7764  (eval $ac_try) 2>&5
     7765  ac_status=$?
     7766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7767  (exit $ac_status); }; }; then
     7768  flink_try=yes
     7769else
     7770  echo "$as_me: failed program was:" >&5
     7771sed 's/^/| /' conftest.$ac_ext >&5
     7772
     7773flink_try=no
     7774fi
     7775rm -f conftest.err conftest.$ac_objext \
     7776      conftest$ac_exeext conftest.$ac_ext
     7777    fi
     7778    if test $flink_try = yes; then
     7779      use_blas='-lblas'
     7780                       if test $coin_need_flibs = yes ; then
     7781                         use_blas="$use_blas $FLIBS"
     7782                       fi
     7783                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7784echo "${ECHO_T}yes: $use_blas" >&6
     7785
     7786    else
     7787      if test x"$FLIBS" != x; then
     7788        flink_save_libs="$LIBS"
     7789        LIBS="$LIBS $FLIBS"
     7790        cat >conftest.$ac_ext <<_ACEOF
     7791/* confdefs.h.  */
     7792_ACEOF
     7793cat confdefs.h >>conftest.$ac_ext
     7794cat >>conftest.$ac_ext <<_ACEOF
     7795/* end confdefs.h.  */
     7796extern "C" {void $cfuncdaxpy();}
     7797#ifdef F77_DUMMY_MAIN
     7798
     7799#  ifdef __cplusplus
     7800     extern "C"
     7801#  endif
     7802   int F77_DUMMY_MAIN() { return 1; }
     7803
     7804#endif
     7805int
     7806main ()
     7807{
     7808$cfuncdaxpy()
     7809  ;
     7810  return 0;
     7811}
     7812_ACEOF
     7813rm -f conftest.$ac_objext conftest$ac_exeext
     7814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7815  (eval $ac_link) 2>conftest.er1
     7816  ac_status=$?
     7817  grep -v '^ *+' conftest.er1 >conftest.err
     7818  rm -f conftest.er1
     7819  cat conftest.err >&5
     7820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7821  (exit $ac_status); } &&
     7822         { ac_try='test -z "$ac_c_werror_flag"
     7823                         || test ! -s conftest.err'
     7824  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7825  (eval $ac_try) 2>&5
     7826  ac_status=$?
     7827  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7828  (exit $ac_status); }; } &&
     7829         { ac_try='test -s conftest$ac_exeext'
     7830  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7831  (eval $ac_try) 2>&5
     7832  ac_status=$?
     7833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7834  (exit $ac_status); }; }; then
     7835  LIBS="$flink_save_libs"
     7836                     coin_need_flibs=yes
     7837                     use_blas='-lblas'
     7838                       if test $coin_need_flibs = yes ; then
     7839                         use_blas="$use_blas $FLIBS"
     7840                       fi
     7841                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7842echo "${ECHO_T}yes: $use_blas" >&6
     7843
     7844
     7845else
     7846  echo "$as_me: failed program was:" >&5
     7847sed 's/^/| /' conftest.$ac_ext >&5
     7848
     7849LIBS="$flink_save_libs"
     7850                     echo "$as_me:$LINENO: result: no" >&5
     7851echo "${ECHO_T}no" >&6
     7852fi
     7853rm -f conftest.err conftest.$ac_objext \
     7854      conftest$ac_exeext conftest.$ac_ext
     7855      else
     7856        echo "$as_me:$LINENO: result: no" >&5
     7857echo "${ECHO_T}no" >&6
     7858      fi
     7859    fi
     7860    ;;
     7861esac
     7862
     7863    LIBS="$coin_save_LIBS"
     7864  fi
     7865
     7866  # If we have no other ideas, consider building BLAS.
     7867  if test -z "$use_blas" ; then
     7868    use_blas=BUILD
     7869  fi
     7870fi
     7871
     7872if test "x$use_blas" = xBUILD ; then
     7873
     7874echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
     7875echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
     7876
     7877coin_has_blas=notGiven
     7878
     7879# check if user wants to skip package in any case
     7880if test x"$COIN_SKIP_PROJECTS" != x; then
     7881  for dir in $COIN_SKIP_PROJECTS; do
     7882    if test $dir = "Blas"; then
     7883      coin_has_blas=skipping
     7884    fi
     7885  done
     7886fi
     7887
     7888if test "$coin_has_blas" != skipping; then
     7889
     7890# Check whether --with-m4_tolower(Blas) or --without-m4_tolower(Blas) was given.
     7891if test "${with_blas+set}" = set; then
     7892  withval="$with_blas"
     7893  if test "$withval" = no ; then
     7894       coin_has_blas=skipping
     7895     fi
     7896
     7897fi;
     7898fi
     7899
     7900BLAS_LIBS=
     7901BLAS_CFLAGS=
     7902BLAS_DATA=
     7903BLAS_DEPENDENCIES=
     7904BLAS_PCLIBS=
     7905BLAS_PCREQUIRES=
     7906BLAS_DATA=
     7907
     7908
     7909
     7910
     7911
     7912
     7913
     7914
     7915
     7916
     7917
     7918
     7919
     7920
     7921
     7922
     7923
     7924#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     7925if test $coin_has_blas != skipping; then
     7926
     7927# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     7928if test "${with_blas_lib+set}" = set; then
     7929  withval="$with_blas_lib"
     7930  if test "$withval" = no ; then
     7931       coin_has_blas=skipping
     7932     else
     7933       coin_has_blas=yes
     7934       BLAS_LIBS="$withval"
     7935       BLAS_PCLIBS="$withval"
     7936
     7937         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
     7938         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
     7939
     7940       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     7941       if test -z "$PKG_CONFIG" ; then
     7942         BLAS_LIBS_INSTALLED="$withval"
     7943         LAPACKLIB_LIBS_INSTALLED="$withval $LAPACKLIB_LIBS_INSTALLED"
     7944       fi
     7945     fi
     7946
     7947fi;
     7948fi
     7949
     7950if test $coin_has_blas != skipping; then
     7951
     7952# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     7953if test "${with_blas_incdir+set}" = set; then
     7954  withval="$with_blas_incdir"
     7955  if test "$withval" = no ; then
     7956       coin_has_blas=skipping
     7957     else
     7958       coin_has_blas=yes
     7959       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
     7960       LAPACKLIB_CFLAGS="-I`${CYGPATH_W} $withval` $LAPACKLIB_CFLAGS"
     7961       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     7962       if test -z "$PKG_CONFIG" ; then
     7963         BLAS_CFLAGS_INSTALLED="$BLAS_CFLAGS"
     7964         LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS $LAPACKLIB_CFLAGS_INSTALLED"
     7965       fi
     7966     fi
     7967
     7968fi;
     7969fi
     7970
     7971if test $coin_has_blas != skipping; then
     7972
     7973# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     7974if test "${with_blas_datadir+set}" = set; then
     7975  withval="$with_blas_datadir"
     7976  if test "$withval" = no ; then
     7977       coin_has_blas=skipping
     7978     else
     7979       coin_has_blas=yes
     7980       BLAS_DATA="$withval"
     7981       # if project flags are given by user and we build without pkg-config, then we need to setup the _INSTALLED variables
     7982       if test -z "$PKG_CONFIG" ; then
     7983         BLAS_DATA_INSTALLED="$withval"
     7984       fi
     7985     fi
     7986
     7987fi;
     7988fi
     7989
     7990if test $coin_has_blas = notGiven; then
     7991  if test -n "$PKG_CONFIG" ; then
     7992    # set search path for pkg-config
     7993    # need to export variable to be sure that the following pkg-config gets these values
     7994    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     7995    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     7996    export PKG_CONFIG_PATH
     7997
     7998    # let pkg-config do it's magic
     7999
     8000
     8001
     8002if test -n "$PKG_CONFIG" ; then
     8003  if $PKG_CONFIG --exists "coinblas"; then
     8004    BLAS_VERSIONS="`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | sed -n -e "1h;2,\\$H;\\${g;s/\n/ /g;p}"`"
     8005     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
     8006    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     8007        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     8008        # but only do this if is not trivial
     8009    if test "$CYGPATH_W" != "echo" ; then
     8010      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     8011      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     8012    fi
     8013    BLAS_CFLAGS="$cflags"
     8014    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
     8015    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
     8016     coin_has_blas=yes
     8017        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
     8018echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
     8019
     8020        # adjust linker flags for (i)cl compiler
     8021        # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl)
     8022        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     8023        then
     8024          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     8025        fi
     8026        BLAS_PCREQUIRES="coinblas"
     8027
     8028        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
     8029
     8030          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
     8031          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
     8032          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     8033
     8034
     8035
     8036  else
     8037    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
     8038      coin_has_blas=notGiven
     8039        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
     8040echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
     8041
     8042  fi
     8043else
     8044  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
     8045echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
     8046   { (exit 1); exit 1; }; }
     8047fi
     8048
     8049
     8050
     8051
     8052    # reset PKG_CONFIG_PATH variable
     8053    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     8054    export PKG_CONFIG_PATH
     8055
     8056  else
     8057    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     8058echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     8059
     8060echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
     8061echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
     8062
     8063coin_has_blas=notGiven
     8064BLAS_LIBS=
     8065BLAS_LIBS_INSTALLED=
     8066BLAS_CFLAGS=
     8067BLAS_CFLAGS_INSTALLED=
     8068BLAS_DATA=
     8069BLAS_DATA_INSTALLED=
     8070BLAS_PCLIBS=
     8071BLAS_PCREQUIRES=
     8072
     8073# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x, != x)
     8074projtoprocess="coinblas"
     8075
     8076# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     8077# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     8078# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     8079# also, we setup the DATA variable
     8080allproj=""
     8081allpcfiles=""
     8082allpcifiles=""
     8083while test "x$projtoprocess" != x ; do
     8084
     8085  for proj in $projtoprocess ; do
     8086    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     8087    pcfile=""
     8088    save_IFS="$IFS"
     8089    IFS=":"
     8090    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     8091      # the base directory configure should have setup coin_subdirs.txt in a way that it does not contain projects that should be skipped, so we do not need to test this here again
     8092      if test -r "$dir/${proj}-uninstalled.pc" ; then
     8093        pcfile="$dir/$proj-uninstalled.pc"
     8094        if test -r "$dir/${proj}.pc" ; then
     8095          pcifile="$dir/${proj}.pc"
     8096        else
     8097          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     8098echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     8099          pcifile=
     8100        fi
     8101        break
     8102      fi
     8103    done
     8104    IFS="$save_IFS"
     8105
     8106    if test "x$pcfile" != x ; then
     8107      # read dependencies from $pcfile and filter it
     8108      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     8109
     8110      # add projrequires to the front of the list of projects that have to be processed next
     8111      # at the same time, remove $proj from this list
     8112      projtoprocess=`echo $projtoprocess | sed -e "s/$proj/$projrequires/"`
     8113
     8114      # read DATA from $pcfile, if _DATA is still empty
     8115      if test "x$BLAS_DATA" = x ; then
     8116        projdatadir=
     8117        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     8118        eval `sh -c "$pcfilemod"`
     8119        BLAS_DATA="$projdatadir"
     8120      fi
     8121
     8122      allproj="$allproj $proj"
     8123      allpcfiles="$pcfile:$allpcfiles"
     8124
     8125    else
     8126      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     8127echo "${ECHO_T}no, dependency $proj not available" >&6
     8128      allproj=fail
     8129      break 2
     8130    fi
     8131
     8132    if test "x$pcifile" != x ; then
     8133      allpcifiles="$pcifile:$allpcifiles"
     8134
     8135      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     8136      if test "x$BLAS_DATA_INSTALLED" = x ; then
     8137        projdatadir=
     8138        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     8139        eval `sh -c "$pcifilemod"`
     8140        if test "${CYGPATH_W}" != "echo"; then
     8141          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     8142        fi
     8143        BLAS_DATA_INSTALLED="$projdatadir"
     8144      fi
     8145
     8146    fi
     8147
     8148    break
     8149  done
     8150
     8151  # remove spaces on begin of $projtoprocess
     8152  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     8153
     8154done
     8155
     8156if test "$allproj" != fail ; then
     8157
     8158  # now go through the list of .pc files and assemble compiler and linker flags
     8159  # important is here to obey the reverse order that has been setup before,
     8160  # since then libraries that are required by several others should be after these other libraries
     8161  pcfilesprocessed=""
     8162
     8163  save_IFS="$IFS"
     8164  IFS=":"
     8165  for pcfile in $allpcfiles ; do
     8166
     8167    # if $pcfile has been processed already, skip this round
     8168    if test "x$pcfilesprocessed" != x ; then
     8169      for pcfiledone in $pcfilesprocessed ; do
     8170        if test "$pcfiledone" = "$pcfile" ; then
     8171          continue 2
     8172        fi
     8173      done
     8174    fi
     8175
     8176    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     8177    #   replace "Libs:" by "echo projlibs="
     8178    #   replace "Cflags:" by "echo projcflags="
     8179    #   remove every line starting with <some word>:
     8180    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
     8181
     8182    # set projcflags and projlibs variables by running $pcfilemod
     8183    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
     8184    projcflags=
     8185    projlibs=
     8186    IFS="$save_IFS"
     8187    eval `sh -c "$pcfilemod"`
     8188    IFS=":"
     8189
     8190    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     8191    if test "${CYGPATH_W}" != "echo"; then
     8192      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     8193    fi
     8194    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
     8195
     8196    # set LIBS variable
     8197    BLAS_LIBS="$projlibs $BLAS_LIBS"
     8198
     8199    # remember that we have processed $pcfile
     8200    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     8201
     8202  done
     8203  IFS="$save_IFS"
     8204
     8205
     8206  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     8207  # important is here again to obey the reverse order that has been setup before,
     8208  # since then libraries that are required by several others should be after these other libraries
     8209  pcfilesprocessed=""
     8210
     8211  save_IFS="$IFS"
     8212  IFS=":"
     8213  for pcfile in $allpcifiles ; do
     8214
     8215    # if $pcfile has been processed already, skip this round
     8216    if test "x$pcfilesprocessed" != x ; then
     8217      for pcfiledone in $pcfilesprocessed ; do
     8218        if test "$pcfiledone" = "$pcfile" ; then
     8219          continue 2
     8220        fi
     8221      done
     8222    fi
     8223
     8224    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     8225    #   replace "Libs:" by "echo projlibs="
     8226    #   replace "Cflags:" by "echo projcflags="
     8227    #   remove every line starting with <some word>:
     8228    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/^[a-zA-Z]*:/d' $pcfile`
     8229
     8230    # set projcflags and projlibs variables by running $pcfilemod
     8231    # under mingw, the current IFS seem to make the : in the paths of the gfortran libs go away, so we temporarily set IFS back to its default
     8232    projcflags=
     8233    projlibs=
     8234    IFS="$save_IFS"
     8235    eval `sh -c "$pcfilemod"`
     8236    IFS=":"
     8237
     8238    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     8239    if test "${CYGPATH_W}" != "echo"; then
     8240      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     8241    fi
     8242    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
     8243
     8244    # set LIBS variable
     8245    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
     8246
     8247    # remember that we have processed $pcfile
     8248    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     8249
     8250  done
     8251  IFS="$save_IFS"
     8252
     8253
     8254  # finish up
     8255  coin_has_blas=yes
     8256  echo "$as_me:$LINENO: result: yes" >&5
     8257echo "${ECHO_T}yes" >&6
     8258
     8259cat >>confdefs.h <<\_ACEOF
     8260#define COIN_HAS_BLAS 1
     8261_ACEOF
     8262
     8263
     8264  # adjust linker flags for (i)cl compiler
     8265  # for the LIBS, we replace everything of the form "/somepath/name.lib" by "`$(CYGPATH_W) /somepath/`name.lib | sed -e s|\|/|g" (where we have to use excessive many \ to get the \ into the command line for cl),
     8266  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     8267  #    everything of the form "-lname" by "libname.lib", and
     8268  #    everything of the form "-Lpath" by "-libpath:`$(CYGPATH_W) path`
     8269  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     8270  then
     8271    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     8272    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g' -e 's/ -L\([^ ]*\)/ -libpath:\`$(CYGPATH_W) \1\`/g'`
     8273  fi
     8274
     8275  BLAS_PCREQUIRES="coinblas"
     8276
     8277    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
     8278    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
     8279    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     8280    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
     8281    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
     8282
     8283
     8284fi
     8285
     8286
     8287
     8288if test $coin_has_blas != notGiven &&
     8289                test $coin_has_blas != skipping; then
     8290  COIN_HAS_BLAS_TRUE=
     8291  COIN_HAS_BLAS_FALSE='#'
     8292else
     8293  COIN_HAS_BLAS_TRUE='#'
     8294  COIN_HAS_BLAS_FALSE=
     8295fi
     8296
     8297
     8298
     8299  fi
     8300
     8301else
     8302  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     8303echo "${ECHO_T}$coin_has_blas" >&6
     8304fi
     8305
     8306if test $coin_has_blas != skipping &&
     8307   test $coin_has_blas != notGiven ; then
     8308
     8309cat >>confdefs.h <<\_ACEOF
     8310#define COIN_HAS_BLAS 1
     8311_ACEOF
     8312
     8313
     8314  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     8315if test "${enable_interpackage_dependencies+set}" = set; then
     8316  enableval="$enable_interpackage_dependencies"
     8317
     8318else
     8319  enable_interpackage_dependencies=yes
     8320fi;
     8321
     8322  if test $enable_interpackage_dependencies = yes ; then
     8323     # construct dependencies variables from LIBS variables
     8324     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     8325     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     8326     # then remove everything of the form -xxx
     8327     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     8328     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     8329
     8330       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     8331
     8332  fi
     8333
     8334  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     8335    if test -n "$BLAS_CFLAGS" ; then
     8336      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     8337echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     8338    fi
     8339    if test -n "$BLAS_LIBS" ; then
     8340      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     8341echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
     8342    fi
     8343    if test -n "$BLAS_DEPENDENCIES" ; then
     8344      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
     8345echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
     8346    fi
     8347    if test -n "$BLAS_DATA" ; then
     8348      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     8349echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
     8350    fi
     8351    if test -n "$BLAS_PCLIBS" ; then
     8352      { echo "$as_me:$LINENO: Blas PCLIBS are $BLAS_PCLIBS" >&5
     8353echo "$as_me: Blas PCLIBS are $BLAS_PCLIBS" >&6;}
     8354    fi
     8355    if test -n "$BLAS_PCREQUIRES" ; then
     8356      { echo "$as_me:$LINENO: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&5
     8357echo "$as_me: Blas PCREQUIRES are $BLAS_PCREQUIRES" >&6;}
     8358    fi
     8359
     8360      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
     8361echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
     8362      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
     8363echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
     8364      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
     8365echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
     8366
     8367  fi
     8368fi
     8369
     8370# Define the Makefile conditional
     8371
     8372
     8373if test $coin_has_blas != notGiven &&
     8374                test $coin_has_blas != skipping; then
     8375  COIN_HAS_BLAS_TRUE=
     8376  COIN_HAS_BLAS_FALSE='#'
     8377else
     8378  COIN_HAS_BLAS_TRUE='#'
     8379  COIN_HAS_BLAS_FALSE=
     8380fi
     8381
     8382
     8383
     8384
     8385elif test "x$use_blas" != x && test "$use_blas" != no; then
     8386  coin_has_blas=yes
     8387
     8388
     8389if test 0 = 0; then
     8390  COIN_HAS_BLAS_TRUE=
     8391  COIN_HAS_BLAS_FALSE='#'
     8392else
     8393  COIN_HAS_BLAS_TRUE='#'
     8394  COIN_HAS_BLAS_FALSE=
     8395fi
     8396
     8397
     8398cat >>confdefs.h <<\_ACEOF
     8399#define COIN_HAS_BLAS 1
     8400_ACEOF
     8401
     8402  BLAS_LIBS="$use_blas"
     8403  BLAS_CFLAGS=
     8404  BLAS_DATA=
     8405
     8406
     8407
     8408
     8409    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
     8410    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     8411    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
     8412
     8413
     8414else
     8415  coin_has_blas=no
     8416
     8417
     8418if test 0 = 1; then
     8419  COIN_HAS_BLAS_TRUE=
     8420  COIN_HAS_BLAS_FALSE='#'
     8421else
     8422  COIN_HAS_BLAS_TRUE='#'
     8423  COIN_HAS_BLAS_FALSE=
     8424fi
     8425
     8426fi
     8427
     8428
     8429
     8430
     8431
     8432
     8433
     8434
     8435if test $coin_has_blas != yes; then
     8436  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
     8437echo "$as_me: error: Required package BLAS not found." >&2;}
     8438   { (exit 1); exit 1; }; }
     8439fi
     8440
     8441# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
     8442LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
    49818443
    49828444# Take care that optimization is disbled for DLAMCH.F
     
    51008562 EGREP=$ac_cv_prog_egrep
    51018563
     8564
     8565echo "$as_me:$LINENO: checking whether ln -s works" >&5
     8566echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
     8567LN_S=$as_ln_s
     8568if test "$LN_S" = "ln -s"; then
     8569  echo "$as_me:$LINENO: result: yes" >&5
     8570echo "${ECHO_T}yes" >&6
     8571else
     8572  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
     8573echo "${ECHO_T}no, using $LN_S" >&6
     8574fi
    51028575
    51038576am__api_version="1.9"
     
    54308903
    54318904
     8905
    54328906# AC_MSG_NOTICE([Beginning automake initialisation.])
    54338907# Stuff for automake
     
    59639437
    59649438
    5965   # Check if we have an Externals file
    5966   if test -r $srcdir/Externals; then
     9439  # Check if we have an Dependencies file
     9440  if test -r $srcdir/Dependencies; then
    59679441    coin_have_externals=yes
    59689442  fi
     
    60379511        { { echo "$as_me:$LINENO: error: Cannot find the BuildTools directory" >&5
    60389512echo "$as_me: error: Cannot find the BuildTools directory" >&2;}
    6039    { (exit 1); exit 1; }; }
     9513   { (exit better disable maintainer mode.); exit better disable maintainer mode.; }; }
    60409514      fi
    60419515    fi
    60429516  fi
    60439517
     9518
     9519  # for running automake by make, we need to have Makemain.inc available at the place where it usually can be found during run_autotools
     9520  if test "$BUILDTOOLSDIR" != "$srcdir/BuildTools" ; then
     9521    $LN_S `cd $BUILDTOOLSDIR; pwd` "$srcdir/BuildTools"
     9522  fi
    60449523
    60459524  # The following variable is set to the name of the directory where
     
    64099888NM="$lt_cv_path_NM"
    64109889
    6411 echo "$as_me:$LINENO: checking whether ln -s works" >&5
    6412 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
    6413 LN_S=$as_ln_s
    6414 if test "$LN_S" = "ln -s"; then
    6415   echo "$as_me:$LINENO: result: yes" >&5
    6416 echo "${ECHO_T}yes" >&6
    6417 else
    6418   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
    6419 echo "${ECHO_T}no, using $LN_S" >&6
    6420 fi
    6421 
    64229890echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
    64239891echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
     
    664510113*-*-irix6*)
    664610114  # Find out which ABI we are using.
    6647   echo '#line 6647 "configure"' > conftest.$ac_ext
     10115  echo '#line 10115 "configure"' > conftest.$ac_ext
    664810116  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    664910117  (eval $ac_compile) 2>&5
     
    912212590   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    912312591   -e 's:$: $lt_compiler_flag:'`
    9124    (eval echo "\"\$as_me:9124: $lt_compile\"" >&5)
     12592   (eval echo "\"\$as_me:12592: $lt_compile\"" >&5)
    912512593   (eval "$lt_compile" 2>conftest.err)
    912612594   ac_status=$?
    912712595   cat conftest.err >&5
    9128    echo "$as_me:9128: \$? = $ac_status" >&5
     12596   echo "$as_me:12596: \$? = $ac_status" >&5
    912912597   if (exit $ac_status) && test -s "$ac_outfile"; then
    913012598     # The compiler can only warn and ignore the option if not recognized
     
    939012858   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    939112859   -e 's:$: $lt_compiler_flag:'`
    9392    (eval echo "\"\$as_me:9392: $lt_compile\"" >&5)
     12860   (eval echo "\"\$as_me:12860: $lt_compile\"" >&5)
    939312861   (eval "$lt_compile" 2>conftest.err)
    939412862   ac_status=$?
    939512863   cat conftest.err >&5
    9396    echo "$as_me:9396: \$? = $ac_status" >&5
     12864   echo "$as_me:12864: \$? = $ac_status" >&5
    939712865   if (exit $ac_status) && test -s "$ac_outfile"; then
    939812866     # The compiler can only warn and ignore the option if not recognized
     
    949412962   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    949512963   -e 's:$: $lt_compiler_flag:'`
    9496    (eval echo "\"\$as_me:9496: $lt_compile\"" >&5)
     12964   (eval echo "\"\$as_me:12964: $lt_compile\"" >&5)
    949712965   (eval "$lt_compile" 2>out/conftest.err)
    949812966   ac_status=$?
    949912967   cat out/conftest.err >&5
    9500    echo "$as_me:9500: \$? = $ac_status" >&5
     12968   echo "$as_me:12968: \$? = $ac_status" >&5
    950112969   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    950212970   then
     
    1191115379  lt_status=$lt_dlunknown
    1191215380  cat > conftest.$ac_ext <<EOF
    11913 #line 11913 "configure"
     15381#line 15381 "configure"
    1191415382#include "confdefs.h"
    1191515383
     
    1201115479  lt_status=$lt_dlunknown
    1201215480  cat > conftest.$ac_ext <<EOF
    12013 #line 12013 "configure"
     15481#line 15481 "configure"
    1201415482#include "confdefs.h"
    1201515483
     
    1437117839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1437217840   -e 's:$: $lt_compiler_flag:'`
    14373    (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
     17841   (eval echo "\"\$as_me:17841: $lt_compile\"" >&5)
    1437417842   (eval "$lt_compile" 2>conftest.err)
    1437517843   ac_status=$?
    1437617844   cat conftest.err >&5
    14377    echo "$as_me:14377: \$? = $ac_status" >&5
     17845   echo "$as_me:17845: \$? = $ac_status" >&5
    1437817846   if (exit $ac_status) && test -s "$ac_outfile"; then
    1437917847     # The compiler can only warn and ignore the option if not recognized
     
    1447517943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1447617944   -e 's:$: $lt_compiler_flag:'`
    14477    (eval echo "\"\$as_me:14477: $lt_compile\"" >&5)
     17945   (eval echo "\"\$as_me:17945: $lt_compile\"" >&5)
    1447817946   (eval "$lt_compile" 2>out/conftest.err)
    1447917947   ac_status=$?
    1448017948   cat out/conftest.err >&5
    14481    echo "$as_me:14481: \$? = $ac_status" >&5
     17949   echo "$as_me:17949: \$? = $ac_status" >&5
    1448217950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1448317951   then
     
    1604519513   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1604619514   -e 's:$: $lt_compiler_flag:'`
    16047    (eval echo "\"\$as_me:16047: $lt_compile\"" >&5)
     19515   (eval echo "\"\$as_me:19515: $lt_compile\"" >&5)
    1604819516   (eval "$lt_compile" 2>conftest.err)
    1604919517   ac_status=$?
    1605019518   cat conftest.err >&5
    16051    echo "$as_me:16051: \$? = $ac_status" >&5
     19519   echo "$as_me:19519: \$? = $ac_status" >&5
    1605219520   if (exit $ac_status) && test -s "$ac_outfile"; then
    1605319521     # The compiler can only warn and ignore the option if not recognized
     
    1614919617   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1615019618   -e 's:$: $lt_compiler_flag:'`
    16151    (eval echo "\"\$as_me:16151: $lt_compile\"" >&5)
     19619   (eval echo "\"\$as_me:19619: $lt_compile\"" >&5)
    1615219620   (eval "$lt_compile" 2>out/conftest.err)
    1615319621   ac_status=$?
    1615419622   cat out/conftest.err >&5
    16155    echo "$as_me:16155: \$? = $ac_status" >&5
     19623   echo "$as_me:19623: \$? = $ac_status" >&5
    1615619624   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1615719625   then
     
    1835621824   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1835721825   -e 's:$: $lt_compiler_flag:'`
    18358    (eval echo "\"\$as_me:18358: $lt_compile\"" >&5)
     21826   (eval echo "\"\$as_me:21826: $lt_compile\"" >&5)
    1835921827   (eval "$lt_compile" 2>conftest.err)
    1836021828   ac_status=$?
    1836121829   cat conftest.err >&5
    18362    echo "$as_me:18362: \$? = $ac_status" >&5
     21830   echo "$as_me:21830: \$? = $ac_status" >&5
    1836321831   if (exit $ac_status) && test -s "$ac_outfile"; then
    1836421832     # The compiler can only warn and ignore the option if not recognized
     
    1862422092   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1862522093   -e 's:$: $lt_compiler_flag:'`
    18626    (eval echo "\"\$as_me:18626: $lt_compile\"" >&5)
     22094   (eval echo "\"\$as_me:22094: $lt_compile\"" >&5)
    1862722095   (eval "$lt_compile" 2>conftest.err)
    1862822096   ac_status=$?
    1862922097   cat conftest.err >&5
    18630    echo "$as_me:18630: \$? = $ac_status" >&5
     22098   echo "$as_me:22098: \$? = $ac_status" >&5
    1863122099   if (exit $ac_status) && test -s "$ac_outfile"; then
    1863222100     # The compiler can only warn and ignore the option if not recognized
     
    1872822196   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1872922197   -e 's:$: $lt_compiler_flag:'`
    18730    (eval echo "\"\$as_me:18730: $lt_compile\"" >&5)
     22198   (eval echo "\"\$as_me:22198: $lt_compile\"" >&5)
    1873122199   (eval "$lt_compile" 2>out/conftest.err)
    1873222200   ac_status=$?
    1873322201   cat out/conftest.err >&5
    18734    echo "$as_me:18734: \$? = $ac_status" >&5
     22202   echo "$as_me:22202: \$? = $ac_status" >&5
    1873522203   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1873622204   then
     
    2172625194  fi
    2172725195
     25196  # On AIX, the default sed cannot deal with somewhat long sed commands executed by config.status.
     25197  # So we reduce the hardcoded number of commands given to sed from 48 to 5 in config.status, hoping this will suffice.
     25198
     25199
    2172825200  cat >confcache <<\_ACEOF
    2172925201# This file is a shell script that caches the results of configure
     
    2186625338Usually this means the macro was only invoked conditionally." >&5
    2186725339echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     25340Usually this means the macro was only invoked conditionally." >&2;}
     25341   { (exit 1); exit 1; }; }
     25342fi
     25343if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25344  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25345Usually this means the macro was only invoked conditionally." >&5
     25346echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25347Usually this means the macro was only invoked conditionally." >&2;}
     25348   { (exit 1); exit 1; }; }
     25349fi
     25350if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25351  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25352Usually this means the macro was only invoked conditionally." >&5
     25353echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25354Usually this means the macro was only invoked conditionally." >&2;}
     25355   { (exit 1); exit 1; }; }
     25356fi
     25357if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25358  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25359Usually this means the macro was only invoked conditionally." >&5
     25360echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25361Usually this means the macro was only invoked conditionally." >&2;}
     25362   { (exit 1); exit 1; }; }
     25363fi
     25364if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25365  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25366Usually this means the macro was only invoked conditionally." >&5
     25367echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    2186825368Usually this means the macro was only invoked conditionally." >&2;}
    2186925369   { (exit 1); exit 1; }; }
     
    2244525945s,@build_vendor@,$build_vendor,;t t
    2244625946s,@build_os@,$build_os,;t t
    22447 s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
    22448 s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
    2244925947s,@CDEFS@,$CDEFS,;t t
    2245025948s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t
     
    2245925957s,@EXEEXT@,$EXEEXT,;t t
    2246025958s,@OBJEXT@,$OBJEXT,;t t
     25959s,@COIN_CC_IS_CL_TRUE@,$COIN_CC_IS_CL_TRUE,;t t
     25960s,@COIN_CC_IS_CL_FALSE@,$COIN_CC_IS_CL_FALSE,;t t
    2246125961s,@MPICC@,$MPICC,;t t
    2246225962s,@ADD_FFLAGS@,$ADD_FFLAGS,;t t
     
    2246425964s,@OPT_FFLAGS@,$OPT_FFLAGS,;t t
    2246525965s,@F77@,$F77,;t t
     25966s,@ac_ct_F77@,$ac_ct_F77,;t t
    2246625967s,@FFLAGS@,$FFLAGS,;t t
    22467 s,@ac_ct_F77@,$ac_ct_F77,;t t
    2246825968s,@MPIF77@,$MPIF77,;t t
    2246925969s,@FLIBS@,$FLIBS,;t t
     
    2247425974s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2247525975s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
    22476 s,@LAPACK_PCLIBS@,$LAPACK_PCLIBS,;t t
     25976s,@BLAS_LIBS@,$BLAS_LIBS,;t t
     25977s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
     25978s,@BLAS_DATA@,$BLAS_DATA,;t t
     25979s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
     25980s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
     25981s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
     25982s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
     25983s,@LAPACKLIB_CFLAGS@,$LAPACKLIB_CFLAGS,;t t
     25984s,@LAPACKLIB_LIBS@,$LAPACKLIB_LIBS,;t t
     25985s,@LAPACKLIB_PCLIBS@,$LAPACKLIB_PCLIBS,;t t
     25986s,@LAPACKLIB_PCREQUIRES@,$LAPACKLIB_PCREQUIRES,;t t
     25987s,@LAPACKLIB_DEPENDENCIES@,$LAPACKLIB_DEPENDENCIES,;t t
     25988s,@LAPACKLIB_CFLAGS_INSTALLED@,$LAPACKLIB_CFLAGS_INSTALLED,;t t
     25989s,@LAPACKLIB_LIBS_INSTALLED@,$LAPACKLIB_LIBS_INSTALLED,;t t
     25990s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
     25991s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    2247725992s,@DLAMCH_FFLAGS@,$DLAMCH_FFLAGS,;t t
    2247825993s,@EGREP@,$EGREP,;t t
     25994s,@LN_S@,$LN_S,;t t
    2247925995s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
    2248025996s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
     
    2252726043s,@host_vendor@,$host_vendor,;t t
    2252826044s,@host_os@,$host_os,;t t
    22529 s,@LN_S@,$LN_S,;t t
    2253026045s,@ECHO@,$ECHO,;t t
    2253126046s,@AR@,$AR,;t t
     
    2313826653
    2313926654
     26655    case $build in
     26656      *-aix*)
     26657        { echo "$as_me:$LINENO: patching config.status to reduce ac_max_sed_lines to 5" >&5
     26658echo "$as_me: patching config.status to reduce ac_max_sed_lines to 5" >&6;}
     26659        sed -e 's/ac_max_sed_lines=48/ac_max_sed_lines=5/g' config.status > config.status.tmp
     26660        mv config.status.tmp config.status
     26661      ;;
     26662    esac
     26663
     26664
    2314026665# configure is writing to config.log, and then calls config.status.
    2314126666# config.status does its own redirection, appending to config.log.
     
    2321426739  fi
    2321526740
     26741  { echo "$as_me:$LINENO: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
     26742echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
    2321626743  if test x$coin_projectdir = xyes; then
    2321726744    { echo "$as_me:$LINENO: Configuration of $PACKAGE_NAME successful" >&5
  • ThirdParty/Lapack/stable/1.3/configure.ac

    r2024 r2313  
    5050AC_COIN_PROG_F77
    5151
    52 # Get the linker flags (FLIBS) that are required for linking against this blas library
     52# Get the linker flags (FLIBS) that are required for linking against this library
    5353AC_COIN_F77_WRAPPERS
    5454
    55 # Check if pkg-config is available (to setup addlibs file)
    56 AC_COIN_HAS_PKGCONFIG
     55# Check for Blas
     56AC_COIN_CHECK_PACKAGE_BLAS(LapackLib)
     57if test $coin_has_blas != yes; then
     58  AC_MSG_ERROR([Required package BLAS not found.])
     59fi
    5760
    58 # Add FLIBS to LAPACK_PCLIBS, so that they get into the .pc files
    59 LAPACK_PCLIBS="$FLIBS"
    60 AC_SUBST(LAPACK_PCLIBS)
     61# FLIBS will be needed to link against this library, so add them to LAPACKLIB_PCLIBS
     62LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
    6163
    6264# Take care that optimization is disbled for DLAMCH.F
Note: See TracChangeset for help on using the changeset viewer.