Changeset 2088


Ignore:
Timestamp:
Jan 15, 2011 7:37:45 AM (9 years ago)
Author:
stefan
Message:

lapack depends on Blas, so check for blas and add into dependencies

Location:
ThirdParty/Lapack/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Lapack/trunk/Makefile.in

    r2083 r2088  
    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@
  • ThirdParty/Lapack/trunk/coinlapack-uninstalled.pc.in

    r2054 r2088  
    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/trunk/coinlapack.pc.in

    r2054 r2088  
    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/trunk/configure

    r2054 r2088  
    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 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 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 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'
    476476ac_subst_files=''
    477477
     
    10871087                          when not mentioned: disabled.
    10881088  --enable-pkg-config     use pkg-config if available (default is yes)
     1089  --enable-interpackage-dependencies
     1090                          whether to deduce Makefile dependencies from package
     1091                          linker flags (default: yes)
    10891092  --enable-static[=PKGS]
    10901093                          build static libraries [default=no]
     
    11051108  --with-lapack-checklevel
    11061109                          specify the sanity check level for project Lapack
     1110  --with-blas             specify BLAS library (or BUILD to enforce use of
     1111                          ThirdParty/Blas)
     1112
    11071113  --with-coin-instdir     prefix of installation directory for precompiled
    11081114                          COIN packages
     1115  --with-blas-lib linker flags for using package Blas
     1116  --with-blas-incdir directory with header files for using package Blas
     1117  --with-blas-datadir directory with data files for using package Blas
    11091118  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
    11101119  --with-pic              try to use only PIC/non-PIC objects [default=use
     
    33813390
    33823391# Provide some information about the compiler.
    3383 echo "$as_me:3383:" \
     3392echo "$as_me:3392:" \
    33843393     "checking for Fortran 77 compiler version" >&5
    33853394ac_compiler=`set X $ac_compile; echo $2`
     
    38983907
    38993908
    3900 # Get the linker flags (FLIBS) that are required for linking against this blas library
     3909# Get the linker flags (FLIBS) that are required for linking against this library
    39013910ac_ext=f
    39023911ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     
    39503959ac_save_FFLAGS=$FFLAGS
    39513960FFLAGS="$FFLAGS $ac_verb"
    3952 (eval echo $as_me:3952: \"$ac_link\") >&5
     3961(eval echo $as_me:3961: \"$ac_link\") >&5
    39533962ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    39543963echo "$ac_f77_v_output" >&5
     
    40284037ac_save_FFLAGS=$FFLAGS
    40294038FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
    4030 (eval echo $as_me:4030: \"$ac_link\") >&5
     4039(eval echo $as_me:4039: \"$ac_link\") >&5
    40314040ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
    40324041echo "$ac_f77_v_output" >&5
     
    47794788
    47804789
    4781 # Check if pkg-config is available (to setup addlibs file)
     4790# Check for Blas
    47824791
    47834792
     
    49764985
    49774986
    4978 # Add FLIBS to LAPACK_PCLIBS, so that they get into the .pc files
    4979 LAPACK_PCLIBS="$FLIBS"
    4980 
     4987
     4988# Check whether --with-blas or --without-blas was given.
     4989if test "${with_blas+set}" = set; then
     4990  withval="$with_blas"
     4991  use_blas="$withval"
     4992else
     4993  use_blas=
     4994fi;
     4995
     4996# if user specified --with-blas-lib, then we should give COIN_CHECK_PACKAGE
     4997# preference
     4998
     4999# Check whether --with-blas-lib or --without-blas-lib was given.
     5000if test "${with_blas_lib+set}" = set; then
     5001  withval="$with_blas_lib"
     5002  use_blas=BUILD
     5003fi;
     5004
     5005# Check if user supplied option makes sense
     5006if test x"$use_blas" != x; then
     5007  if test "$use_blas" = "BUILD"; then
     5008    # we come to this later
     5009    :
     5010  elif test "$use_blas" != "no"; then
     5011    echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5
     5012echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6
     5013    coin_need_flibs=no
     5014    coin_save_LIBS="$LIBS"
     5015    LIBS="$use_blas $LIBS"
     5016    case $ac_ext in
     5017  f)
     5018    cat >conftest.$ac_ext <<_ACEOF
     5019/* confdefs.h.  */
     5020_ACEOF
     5021cat confdefs.h >>conftest.$ac_ext
     5022cat >>conftest.$ac_ext <<_ACEOF
     5023/* end confdefs.h.  */
     5024
     5025#ifdef F77_DUMMY_MAIN
     5026
     5027#  ifdef __cplusplus
     5028     extern "C"
     5029#  endif
     5030   int F77_DUMMY_MAIN() { return 1; }
     5031
     5032#endif
     5033int
     5034main ()
     5035{
     5036      call daxpy
     5037  ;
     5038  return 0;
     5039}
     5040_ACEOF
     5041rm -f conftest.$ac_objext conftest$ac_exeext
     5042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5043  (eval $ac_link) 2>conftest.er1
     5044  ac_status=$?
     5045  grep -v '^ *+' conftest.er1 >conftest.err
     5046  rm -f conftest.er1
     5047  cat conftest.err >&5
     5048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5049  (exit $ac_status); } &&
     5050         { ac_try='test -z "$ac_c_werror_flag"
     5051                         || test ! -s conftest.err'
     5052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5053  (eval $ac_try) 2>&5
     5054  ac_status=$?
     5055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5056  (exit $ac_status); }; } &&
     5057         { ac_try='test -s conftest$ac_exeext'
     5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5059  (eval $ac_try) 2>&5
     5060  ac_status=$?
     5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5062  (exit $ac_status); }; }; then
     5063  if test $coin_need_flibs = yes ; then
     5064                         use_blas="$use_blas $FLIBS"
     5065                       fi
     5066                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5067echo "${ECHO_T}yes: $use_blas" >&6
     5068else
     5069  echo "$as_me: failed program was:" >&5
     5070sed 's/^/| /' conftest.$ac_ext >&5
     5071
     5072echo "$as_me:$LINENO: result: no" >&5
     5073echo "${ECHO_T}no" >&6
     5074                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5075echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5076   { (exit 1); exit 1; }; }
     5077fi
     5078rm -f conftest.err conftest.$ac_objext \
     5079      conftest$ac_exeext conftest.$ac_ext
     5080    ;;
     5081  c)
     5082    ac_ext=f
     5083ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5084ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5085ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5086case $ac_cv_f77_mangling in
     5087  upper*) ac_val="DAXPY" ;;
     5088  lower*) ac_val="daxpy" ;;
     5089  *)      ac_val="unknown" ;;
     5090esac
     5091case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5092
     5093cfuncdaxpy="$ac_val"
     5094
     5095ac_ext=c
     5096ac_cpp='$CPP $CPPFLAGS'
     5097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5099ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5100
     5101    if test x"$coin_need_flibs" = xyes; then
     5102      flink_try=no;
     5103    else
     5104      cat >conftest.$ac_ext <<_ACEOF
     5105/* confdefs.h.  */
     5106_ACEOF
     5107cat confdefs.h >>conftest.$ac_ext
     5108cat >>conftest.$ac_ext <<_ACEOF
     5109/* end confdefs.h.  */
     5110void $cfuncdaxpy();
     5111#ifdef F77_DUMMY_MAIN
     5112
     5113#  ifdef __cplusplus
     5114     extern "C"
     5115#  endif
     5116   int F77_DUMMY_MAIN() { return 1; }
     5117
     5118#endif
     5119int
     5120main ()
     5121{
     5122$cfuncdaxpy()
     5123  ;
     5124  return 0;
     5125}
     5126_ACEOF
     5127rm -f conftest.$ac_objext conftest$ac_exeext
     5128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5129  (eval $ac_link) 2>conftest.er1
     5130  ac_status=$?
     5131  grep -v '^ *+' conftest.er1 >conftest.err
     5132  rm -f conftest.er1
     5133  cat conftest.err >&5
     5134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5135  (exit $ac_status); } &&
     5136         { ac_try='test -z "$ac_c_werror_flag"
     5137                         || test ! -s conftest.err'
     5138  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5139  (eval $ac_try) 2>&5
     5140  ac_status=$?
     5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5142  (exit $ac_status); }; } &&
     5143         { ac_try='test -s conftest$ac_exeext'
     5144  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5145  (eval $ac_try) 2>&5
     5146  ac_status=$?
     5147  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5148  (exit $ac_status); }; }; then
     5149  flink_try=yes
     5150else
     5151  echo "$as_me: failed program was:" >&5
     5152sed 's/^/| /' conftest.$ac_ext >&5
     5153
     5154flink_try=no
     5155fi
     5156rm -f conftest.err conftest.$ac_objext \
     5157      conftest$ac_exeext conftest.$ac_ext
     5158    fi
     5159    if test $flink_try = yes; then
     5160      if test $coin_need_flibs = yes ; then
     5161                         use_blas="$use_blas $FLIBS"
     5162                       fi
     5163                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5164echo "${ECHO_T}yes: $use_blas" >&6
     5165    else
     5166      if test x"$FLIBS" != x; then
     5167        flink_save_libs="$LIBS"
     5168        LIBS="$LIBS $FLIBS"
     5169        cat >conftest.$ac_ext <<_ACEOF
     5170/* confdefs.h.  */
     5171_ACEOF
     5172cat confdefs.h >>conftest.$ac_ext
     5173cat >>conftest.$ac_ext <<_ACEOF
     5174/* end confdefs.h.  */
     5175void $cfuncdaxpy();
     5176#ifdef F77_DUMMY_MAIN
     5177
     5178#  ifdef __cplusplus
     5179     extern "C"
     5180#  endif
     5181   int F77_DUMMY_MAIN() { return 1; }
     5182
     5183#endif
     5184int
     5185main ()
     5186{
     5187$cfuncdaxpy()
     5188  ;
     5189  return 0;
     5190}
     5191_ACEOF
     5192rm -f conftest.$ac_objext conftest$ac_exeext
     5193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5194  (eval $ac_link) 2>conftest.er1
     5195  ac_status=$?
     5196  grep -v '^ *+' conftest.er1 >conftest.err
     5197  rm -f conftest.er1
     5198  cat conftest.err >&5
     5199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5200  (exit $ac_status); } &&
     5201         { ac_try='test -z "$ac_c_werror_flag"
     5202                         || test ! -s conftest.err'
     5203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5204  (eval $ac_try) 2>&5
     5205  ac_status=$?
     5206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5207  (exit $ac_status); }; } &&
     5208         { ac_try='test -s conftest$ac_exeext'
     5209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5210  (eval $ac_try) 2>&5
     5211  ac_status=$?
     5212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5213  (exit $ac_status); }; }; then
     5214  LIBS="$flink_save_libs"
     5215                     coin_need_flibs=yes
     5216                     if test $coin_need_flibs = yes ; then
     5217                         use_blas="$use_blas $FLIBS"
     5218                       fi
     5219                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5220echo "${ECHO_T}yes: $use_blas" >&6
     5221
     5222else
     5223  echo "$as_me: failed program was:" >&5
     5224sed 's/^/| /' conftest.$ac_ext >&5
     5225
     5226LIBS="$flink_save_libs"
     5227                     echo "$as_me:$LINENO: result: no" >&5
     5228echo "${ECHO_T}no" >&6
     5229                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5230echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5231   { (exit 1); exit 1; }; }
     5232fi
     5233rm -f conftest.err conftest.$ac_objext \
     5234      conftest$ac_exeext conftest.$ac_ext
     5235      else
     5236        echo "$as_me:$LINENO: result: no" >&5
     5237echo "${ECHO_T}no" >&6
     5238                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5239echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5240   { (exit 1); exit 1; }; }
     5241      fi
     5242    fi
     5243    ;;
     5244  cc|cpp)
     5245    ac_ext=f
     5246ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5247ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5248ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5249case $ac_cv_f77_mangling in
     5250  upper*) ac_val="DAXPY" ;;
     5251  lower*) ac_val="daxpy" ;;
     5252  *)      ac_val="unknown" ;;
     5253esac
     5254case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5255
     5256cfuncdaxpy="$ac_val"
     5257
     5258ac_ext=c
     5259ac_cpp='$CPP $CPPFLAGS'
     5260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5262ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5263
     5264    if test x"$coin_need_flibs" = xyes; then
     5265      flink_try=no;
     5266    else
     5267      cat >conftest.$ac_ext <<_ACEOF
     5268/* confdefs.h.  */
     5269_ACEOF
     5270cat confdefs.h >>conftest.$ac_ext
     5271cat >>conftest.$ac_ext <<_ACEOF
     5272/* end confdefs.h.  */
     5273extern "C" {void $cfuncdaxpy();}
     5274#ifdef F77_DUMMY_MAIN
     5275
     5276#  ifdef __cplusplus
     5277     extern "C"
     5278#  endif
     5279   int F77_DUMMY_MAIN() { return 1; }
     5280
     5281#endif
     5282int
     5283main ()
     5284{
     5285$cfuncdaxpy()
     5286  ;
     5287  return 0;
     5288}
     5289_ACEOF
     5290rm -f conftest.$ac_objext conftest$ac_exeext
     5291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5292  (eval $ac_link) 2>conftest.er1
     5293  ac_status=$?
     5294  grep -v '^ *+' conftest.er1 >conftest.err
     5295  rm -f conftest.er1
     5296  cat conftest.err >&5
     5297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5298  (exit $ac_status); } &&
     5299         { ac_try='test -z "$ac_c_werror_flag"
     5300                         || test ! -s conftest.err'
     5301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5302  (eval $ac_try) 2>&5
     5303  ac_status=$?
     5304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5305  (exit $ac_status); }; } &&
     5306         { ac_try='test -s conftest$ac_exeext'
     5307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5308  (eval $ac_try) 2>&5
     5309  ac_status=$?
     5310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5311  (exit $ac_status); }; }; then
     5312  flink_try=yes
     5313else
     5314  echo "$as_me: failed program was:" >&5
     5315sed 's/^/| /' conftest.$ac_ext >&5
     5316
     5317flink_try=no
     5318fi
     5319rm -f conftest.err conftest.$ac_objext \
     5320      conftest$ac_exeext conftest.$ac_ext
     5321    fi
     5322    if test $flink_try = yes; then
     5323      if test $coin_need_flibs = yes ; then
     5324                         use_blas="$use_blas $FLIBS"
     5325                       fi
     5326                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5327echo "${ECHO_T}yes: $use_blas" >&6
     5328    else
     5329      if test x"$FLIBS" != x; then
     5330        flink_save_libs="$LIBS"
     5331        LIBS="$LIBS $FLIBS"
     5332        cat >conftest.$ac_ext <<_ACEOF
     5333/* confdefs.h.  */
     5334_ACEOF
     5335cat confdefs.h >>conftest.$ac_ext
     5336cat >>conftest.$ac_ext <<_ACEOF
     5337/* end confdefs.h.  */
     5338extern "C" {void $cfuncdaxpy();}
     5339#ifdef F77_DUMMY_MAIN
     5340
     5341#  ifdef __cplusplus
     5342     extern "C"
     5343#  endif
     5344   int F77_DUMMY_MAIN() { return 1; }
     5345
     5346#endif
     5347int
     5348main ()
     5349{
     5350$cfuncdaxpy()
     5351  ;
     5352  return 0;
     5353}
     5354_ACEOF
     5355rm -f conftest.$ac_objext conftest$ac_exeext
     5356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5357  (eval $ac_link) 2>conftest.er1
     5358  ac_status=$?
     5359  grep -v '^ *+' conftest.er1 >conftest.err
     5360  rm -f conftest.er1
     5361  cat conftest.err >&5
     5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5363  (exit $ac_status); } &&
     5364         { ac_try='test -z "$ac_c_werror_flag"
     5365                         || test ! -s conftest.err'
     5366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5367  (eval $ac_try) 2>&5
     5368  ac_status=$?
     5369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5370  (exit $ac_status); }; } &&
     5371         { ac_try='test -s conftest$ac_exeext'
     5372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5373  (eval $ac_try) 2>&5
     5374  ac_status=$?
     5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5376  (exit $ac_status); }; }; then
     5377  LIBS="$flink_save_libs"
     5378                     coin_need_flibs=yes
     5379                     if test $coin_need_flibs = yes ; then
     5380                         use_blas="$use_blas $FLIBS"
     5381                       fi
     5382                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5383echo "${ECHO_T}yes: $use_blas" >&6
     5384
     5385else
     5386  echo "$as_me: failed program was:" >&5
     5387sed 's/^/| /' conftest.$ac_ext >&5
     5388
     5389LIBS="$flink_save_libs"
     5390                     echo "$as_me:$LINENO: result: no" >&5
     5391echo "${ECHO_T}no" >&6
     5392                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5393echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5394   { (exit 1); exit 1; }; }
     5395fi
     5396rm -f conftest.err conftest.$ac_objext \
     5397      conftest$ac_exeext conftest.$ac_ext
     5398      else
     5399        echo "$as_me:$LINENO: result: no" >&5
     5400echo "${ECHO_T}no" >&6
     5401                       { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5
     5402echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;}
     5403   { (exit 1); exit 1; }; }
     5404      fi
     5405    fi
     5406    ;;
     5407esac
     5408
     5409    LIBS="$coin_save_LIBS"
     5410  fi
     5411else
     5412# Try to autodetect the library for blas based on build system
     5413  #AC_MSG_CHECKING([default locations for BLAS])
     5414  skip_lblas_check=no
     5415  case $build in
     5416    *-sgi-*)
     5417      echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5
     5418echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6
     5419      coin_need_flibs=no
     5420      coin_save_LIBS="$LIBS"
     5421      LIBS="-lcomplib.sgimath $LIBS"
     5422      case $ac_ext in
     5423  f)
     5424    cat >conftest.$ac_ext <<_ACEOF
     5425/* confdefs.h.  */
     5426_ACEOF
     5427cat confdefs.h >>conftest.$ac_ext
     5428cat >>conftest.$ac_ext <<_ACEOF
     5429/* end confdefs.h.  */
     5430
     5431#ifdef F77_DUMMY_MAIN
     5432
     5433#  ifdef __cplusplus
     5434     extern "C"
     5435#  endif
     5436   int F77_DUMMY_MAIN() { return 1; }
     5437
     5438#endif
     5439int
     5440main ()
     5441{
     5442      call daxpy
     5443  ;
     5444  return 0;
     5445}
     5446_ACEOF
     5447rm -f conftest.$ac_objext conftest$ac_exeext
     5448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5449  (eval $ac_link) 2>conftest.er1
     5450  ac_status=$?
     5451  grep -v '^ *+' conftest.er1 >conftest.err
     5452  rm -f conftest.er1
     5453  cat conftest.err >&5
     5454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5455  (exit $ac_status); } &&
     5456         { ac_try='test -z "$ac_c_werror_flag"
     5457                         || test ! -s conftest.err'
     5458  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5459  (eval $ac_try) 2>&5
     5460  ac_status=$?
     5461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5462  (exit $ac_status); }; } &&
     5463         { ac_try='test -s conftest$ac_exeext'
     5464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5465  (eval $ac_try) 2>&5
     5466  ac_status=$?
     5467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5468  (exit $ac_status); }; }; then
     5469  use_blas="-lcomplib.sgimath"
     5470                         if test $coin_need_flibs = yes ; then
     5471                           use_blas="$use_blas $FLIBS"
     5472                         fi
     5473                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5474echo "${ECHO_T}yes: $use_blas" >&6
     5475
     5476else
     5477  echo "$as_me: failed program was:" >&5
     5478sed 's/^/| /' conftest.$ac_ext >&5
     5479
     5480echo "$as_me:$LINENO: result: no" >&5
     5481echo "${ECHO_T}no" >&6
     5482fi
     5483rm -f conftest.err conftest.$ac_objext \
     5484      conftest$ac_exeext conftest.$ac_ext
     5485    ;;
     5486  c)
     5487    ac_ext=f
     5488ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5489ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5490ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5491case $ac_cv_f77_mangling in
     5492  upper*) ac_val="DAXPY" ;;
     5493  lower*) ac_val="daxpy" ;;
     5494  *)      ac_val="unknown" ;;
     5495esac
     5496case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5497
     5498cfuncdaxpy="$ac_val"
     5499
     5500ac_ext=c
     5501ac_cpp='$CPP $CPPFLAGS'
     5502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5504ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5505
     5506    if test x"$coin_need_flibs" = xyes; then
     5507      flink_try=no;
     5508    else
     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.  */
     5515void $cfuncdaxpy();
     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$cfuncdaxpy()
     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  flink_try=yes
     5555else
     5556  echo "$as_me: failed program was:" >&5
     5557sed 's/^/| /' conftest.$ac_ext >&5
     5558
     5559flink_try=no
     5560fi
     5561rm -f conftest.err conftest.$ac_objext \
     5562      conftest$ac_exeext conftest.$ac_ext
     5563    fi
     5564    if test $flink_try = yes; then
     5565      use_blas="-lcomplib.sgimath"
     5566                         if test $coin_need_flibs = yes ; then
     5567                           use_blas="$use_blas $FLIBS"
     5568                         fi
     5569                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5570echo "${ECHO_T}yes: $use_blas" >&6
     5571
     5572    else
     5573      if test x"$FLIBS" != x; then
     5574        flink_save_libs="$LIBS"
     5575        LIBS="$LIBS $FLIBS"
     5576        cat >conftest.$ac_ext <<_ACEOF
     5577/* confdefs.h.  */
     5578_ACEOF
     5579cat confdefs.h >>conftest.$ac_ext
     5580cat >>conftest.$ac_ext <<_ACEOF
     5581/* end confdefs.h.  */
     5582void $cfuncdaxpy();
     5583#ifdef F77_DUMMY_MAIN
     5584
     5585#  ifdef __cplusplus
     5586     extern "C"
     5587#  endif
     5588   int F77_DUMMY_MAIN() { return 1; }
     5589
     5590#endif
     5591int
     5592main ()
     5593{
     5594$cfuncdaxpy()
     5595  ;
     5596  return 0;
     5597}
     5598_ACEOF
     5599rm -f conftest.$ac_objext conftest$ac_exeext
     5600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5601  (eval $ac_link) 2>conftest.er1
     5602  ac_status=$?
     5603  grep -v '^ *+' conftest.er1 >conftest.err
     5604  rm -f conftest.er1
     5605  cat conftest.err >&5
     5606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5607  (exit $ac_status); } &&
     5608         { ac_try='test -z "$ac_c_werror_flag"
     5609                         || test ! -s conftest.err'
     5610  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5611  (eval $ac_try) 2>&5
     5612  ac_status=$?
     5613  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5614  (exit $ac_status); }; } &&
     5615         { ac_try='test -s conftest$ac_exeext'
     5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5617  (eval $ac_try) 2>&5
     5618  ac_status=$?
     5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5620  (exit $ac_status); }; }; then
     5621  LIBS="$flink_save_libs"
     5622                     coin_need_flibs=yes
     5623                     use_blas="-lcomplib.sgimath"
     5624                         if test $coin_need_flibs = yes ; then
     5625                           use_blas="$use_blas $FLIBS"
     5626                         fi
     5627                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5628echo "${ECHO_T}yes: $use_blas" >&6
     5629
     5630
     5631else
     5632  echo "$as_me: failed program was:" >&5
     5633sed 's/^/| /' conftest.$ac_ext >&5
     5634
     5635LIBS="$flink_save_libs"
     5636                     echo "$as_me:$LINENO: result: no" >&5
     5637echo "${ECHO_T}no" >&6
     5638fi
     5639rm -f conftest.err conftest.$ac_objext \
     5640      conftest$ac_exeext conftest.$ac_ext
     5641      else
     5642        echo "$as_me:$LINENO: result: no" >&5
     5643echo "${ECHO_T}no" >&6
     5644      fi
     5645    fi
     5646    ;;
     5647  cc|cpp)
     5648    ac_ext=f
     5649ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5650ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5651ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5652case $ac_cv_f77_mangling in
     5653  upper*) ac_val="DAXPY" ;;
     5654  lower*) ac_val="daxpy" ;;
     5655  *)      ac_val="unknown" ;;
     5656esac
     5657case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5658
     5659cfuncdaxpy="$ac_val"
     5660
     5661ac_ext=c
     5662ac_cpp='$CPP $CPPFLAGS'
     5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5666
     5667    if test x"$coin_need_flibs" = xyes; then
     5668      flink_try=no;
     5669    else
     5670      cat >conftest.$ac_ext <<_ACEOF
     5671/* confdefs.h.  */
     5672_ACEOF
     5673cat confdefs.h >>conftest.$ac_ext
     5674cat >>conftest.$ac_ext <<_ACEOF
     5675/* end confdefs.h.  */
     5676extern "C" {void $cfuncdaxpy();}
     5677#ifdef F77_DUMMY_MAIN
     5678
     5679#  ifdef __cplusplus
     5680     extern "C"
     5681#  endif
     5682   int F77_DUMMY_MAIN() { return 1; }
     5683
     5684#endif
     5685int
     5686main ()
     5687{
     5688$cfuncdaxpy()
     5689  ;
     5690  return 0;
     5691}
     5692_ACEOF
     5693rm -f conftest.$ac_objext conftest$ac_exeext
     5694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5695  (eval $ac_link) 2>conftest.er1
     5696  ac_status=$?
     5697  grep -v '^ *+' conftest.er1 >conftest.err
     5698  rm -f conftest.er1
     5699  cat conftest.err >&5
     5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5701  (exit $ac_status); } &&
     5702         { ac_try='test -z "$ac_c_werror_flag"
     5703                         || test ! -s conftest.err'
     5704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5705  (eval $ac_try) 2>&5
     5706  ac_status=$?
     5707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5708  (exit $ac_status); }; } &&
     5709         { ac_try='test -s conftest$ac_exeext'
     5710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5711  (eval $ac_try) 2>&5
     5712  ac_status=$?
     5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5714  (exit $ac_status); }; }; then
     5715  flink_try=yes
     5716else
     5717  echo "$as_me: failed program was:" >&5
     5718sed 's/^/| /' conftest.$ac_ext >&5
     5719
     5720flink_try=no
     5721fi
     5722rm -f conftest.err conftest.$ac_objext \
     5723      conftest$ac_exeext conftest.$ac_ext
     5724    fi
     5725    if test $flink_try = yes; then
     5726      use_blas="-lcomplib.sgimath"
     5727                         if test $coin_need_flibs = yes ; then
     5728                           use_blas="$use_blas $FLIBS"
     5729                         fi
     5730                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5731echo "${ECHO_T}yes: $use_blas" >&6
     5732
     5733    else
     5734      if test x"$FLIBS" != x; then
     5735        flink_save_libs="$LIBS"
     5736        LIBS="$LIBS $FLIBS"
     5737        cat >conftest.$ac_ext <<_ACEOF
     5738/* confdefs.h.  */
     5739_ACEOF
     5740cat confdefs.h >>conftest.$ac_ext
     5741cat >>conftest.$ac_ext <<_ACEOF
     5742/* end confdefs.h.  */
     5743extern "C" {void $cfuncdaxpy();}
     5744#ifdef F77_DUMMY_MAIN
     5745
     5746#  ifdef __cplusplus
     5747     extern "C"
     5748#  endif
     5749   int F77_DUMMY_MAIN() { return 1; }
     5750
     5751#endif
     5752int
     5753main ()
     5754{
     5755$cfuncdaxpy()
     5756  ;
     5757  return 0;
     5758}
     5759_ACEOF
     5760rm -f conftest.$ac_objext conftest$ac_exeext
     5761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5762  (eval $ac_link) 2>conftest.er1
     5763  ac_status=$?
     5764  grep -v '^ *+' conftest.er1 >conftest.err
     5765  rm -f conftest.er1
     5766  cat conftest.err >&5
     5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5768  (exit $ac_status); } &&
     5769         { ac_try='test -z "$ac_c_werror_flag"
     5770                         || test ! -s conftest.err'
     5771  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5772  (eval $ac_try) 2>&5
     5773  ac_status=$?
     5774  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5775  (exit $ac_status); }; } &&
     5776         { ac_try='test -s conftest$ac_exeext'
     5777  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5778  (eval $ac_try) 2>&5
     5779  ac_status=$?
     5780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5781  (exit $ac_status); }; }; then
     5782  LIBS="$flink_save_libs"
     5783                     coin_need_flibs=yes
     5784                     use_blas="-lcomplib.sgimath"
     5785                         if test $coin_need_flibs = yes ; then
     5786                           use_blas="$use_blas $FLIBS"
     5787                         fi
     5788                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5789echo "${ECHO_T}yes: $use_blas" >&6
     5790
     5791
     5792else
     5793  echo "$as_me: failed program was:" >&5
     5794sed 's/^/| /' conftest.$ac_ext >&5
     5795
     5796LIBS="$flink_save_libs"
     5797                     echo "$as_me:$LINENO: result: no" >&5
     5798echo "${ECHO_T}no" >&6
     5799fi
     5800rm -f conftest.err conftest.$ac_objext \
     5801      conftest$ac_exeext conftest.$ac_ext
     5802      else
     5803        echo "$as_me:$LINENO: result: no" >&5
     5804echo "${ECHO_T}no" >&6
     5805      fi
     5806    fi
     5807    ;;
     5808esac
     5809
     5810      LIBS="$coin_save_LIBS"
     5811      ;;
     5812
     5813# Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio
     5814# cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't
     5815# recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims
     5816# that CC and cc will understand -library in Studio 13. The main extra
     5817# function of -xlic_lib and -library is to arrange for the Fortran run-time
     5818# libraries to be linked for C++ and C. We can arrange that explicitly.
     5819    *-*-solaris*)
     5820      echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5
     5821echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6
     5822      coin_need_flibs=no
     5823      coin_save_LIBS="$LIBS"
     5824      LIBS="-lsunperf $FLIBS $LIBS"
     5825      case $ac_ext in
     5826  f)
     5827    cat >conftest.$ac_ext <<_ACEOF
     5828/* confdefs.h.  */
     5829_ACEOF
     5830cat confdefs.h >>conftest.$ac_ext
     5831cat >>conftest.$ac_ext <<_ACEOF
     5832/* end confdefs.h.  */
     5833
     5834#ifdef F77_DUMMY_MAIN
     5835
     5836#  ifdef __cplusplus
     5837     extern "C"
     5838#  endif
     5839   int F77_DUMMY_MAIN() { return 1; }
     5840
     5841#endif
     5842int
     5843main ()
     5844{
     5845      call daxpy
     5846  ;
     5847  return 0;
     5848}
     5849_ACEOF
     5850rm -f conftest.$ac_objext conftest$ac_exeext
     5851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     5852  (eval $ac_link) 2>conftest.er1
     5853  ac_status=$?
     5854  grep -v '^ *+' conftest.er1 >conftest.err
     5855  rm -f conftest.er1
     5856  cat conftest.err >&5
     5857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5858  (exit $ac_status); } &&
     5859         { ac_try='test -z "$ac_c_werror_flag"
     5860                         || test ! -s conftest.err'
     5861  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5862  (eval $ac_try) 2>&5
     5863  ac_status=$?
     5864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5865  (exit $ac_status); }; } &&
     5866         { ac_try='test -s conftest$ac_exeext'
     5867  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     5868  (eval $ac_try) 2>&5
     5869  ac_status=$?
     5870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     5871  (exit $ac_status); }; }; then
     5872  use_blas='-lsunperf'
     5873                         if test $coin_need_flibs = yes ; then
     5874                           use_blas="$use_blas $FLIBS"
     5875                         fi
     5876                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5877echo "${ECHO_T}yes: $use_blas" >&6
     5878
     5879else
     5880  echo "$as_me: failed program was:" >&5
     5881sed 's/^/| /' conftest.$ac_ext >&5
     5882
     5883echo "$as_me:$LINENO: result: no" >&5
     5884echo "${ECHO_T}no" >&6
     5885fi
     5886rm -f conftest.err conftest.$ac_objext \
     5887      conftest$ac_exeext conftest.$ac_ext
     5888    ;;
     5889  c)
     5890    ac_ext=f
     5891ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     5892ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5893ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     5894case $ac_cv_f77_mangling in
     5895  upper*) ac_val="DAXPY" ;;
     5896  lower*) ac_val="daxpy" ;;
     5897  *)      ac_val="unknown" ;;
     5898esac
     5899case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     5900
     5901cfuncdaxpy="$ac_val"
     5902
     5903ac_ext=c
     5904ac_cpp='$CPP $CPPFLAGS'
     5905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     5906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     5907ac_compiler_gnu=$ac_cv_c_compiler_gnu
     5908
     5909    if test x"$coin_need_flibs" = xyes; then
     5910      flink_try=no;
     5911    else
     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.  */
     5918void $cfuncdaxpy();
     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$cfuncdaxpy()
     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  flink_try=yes
     5958else
     5959  echo "$as_me: failed program was:" >&5
     5960sed 's/^/| /' conftest.$ac_ext >&5
     5961
     5962flink_try=no
     5963fi
     5964rm -f conftest.err conftest.$ac_objext \
     5965      conftest$ac_exeext conftest.$ac_ext
     5966    fi
     5967    if test $flink_try = yes; then
     5968      use_blas='-lsunperf'
     5969                         if test $coin_need_flibs = yes ; then
     5970                           use_blas="$use_blas $FLIBS"
     5971                         fi
     5972                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     5973echo "${ECHO_T}yes: $use_blas" >&6
     5974
     5975    else
     5976      if test x"$FLIBS" != x; then
     5977        flink_save_libs="$LIBS"
     5978        LIBS="$LIBS $FLIBS"
     5979        cat >conftest.$ac_ext <<_ACEOF
     5980/* confdefs.h.  */
     5981_ACEOF
     5982cat confdefs.h >>conftest.$ac_ext
     5983cat >>conftest.$ac_ext <<_ACEOF
     5984/* end confdefs.h.  */
     5985void $cfuncdaxpy();
     5986#ifdef F77_DUMMY_MAIN
     5987
     5988#  ifdef __cplusplus
     5989     extern "C"
     5990#  endif
     5991   int F77_DUMMY_MAIN() { return 1; }
     5992
     5993#endif
     5994int
     5995main ()
     5996{
     5997$cfuncdaxpy()
     5998  ;
     5999  return 0;
     6000}
     6001_ACEOF
     6002rm -f conftest.$ac_objext conftest$ac_exeext
     6003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6004  (eval $ac_link) 2>conftest.er1
     6005  ac_status=$?
     6006  grep -v '^ *+' conftest.er1 >conftest.err
     6007  rm -f conftest.er1
     6008  cat conftest.err >&5
     6009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6010  (exit $ac_status); } &&
     6011         { ac_try='test -z "$ac_c_werror_flag"
     6012                         || test ! -s conftest.err'
     6013  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6014  (eval $ac_try) 2>&5
     6015  ac_status=$?
     6016  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6017  (exit $ac_status); }; } &&
     6018         { ac_try='test -s conftest$ac_exeext'
     6019  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6020  (eval $ac_try) 2>&5
     6021  ac_status=$?
     6022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6023  (exit $ac_status); }; }; then
     6024  LIBS="$flink_save_libs"
     6025                     coin_need_flibs=yes
     6026                     use_blas='-lsunperf'
     6027                         if test $coin_need_flibs = yes ; then
     6028                           use_blas="$use_blas $FLIBS"
     6029                         fi
     6030                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6031echo "${ECHO_T}yes: $use_blas" >&6
     6032
     6033
     6034else
     6035  echo "$as_me: failed program was:" >&5
     6036sed 's/^/| /' conftest.$ac_ext >&5
     6037
     6038LIBS="$flink_save_libs"
     6039                     echo "$as_me:$LINENO: result: no" >&5
     6040echo "${ECHO_T}no" >&6
     6041fi
     6042rm -f conftest.err conftest.$ac_objext \
     6043      conftest$ac_exeext conftest.$ac_ext
     6044      else
     6045        echo "$as_me:$LINENO: result: no" >&5
     6046echo "${ECHO_T}no" >&6
     6047      fi
     6048    fi
     6049    ;;
     6050  cc|cpp)
     6051    ac_ext=f
     6052ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6053ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6054ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6055case $ac_cv_f77_mangling in
     6056  upper*) ac_val="DAXPY" ;;
     6057  lower*) ac_val="daxpy" ;;
     6058  *)      ac_val="unknown" ;;
     6059esac
     6060case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6061
     6062cfuncdaxpy="$ac_val"
     6063
     6064ac_ext=c
     6065ac_cpp='$CPP $CPPFLAGS'
     6066ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6067ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6068ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6069
     6070    if test x"$coin_need_flibs" = xyes; then
     6071      flink_try=no;
     6072    else
     6073      cat >conftest.$ac_ext <<_ACEOF
     6074/* confdefs.h.  */
     6075_ACEOF
     6076cat confdefs.h >>conftest.$ac_ext
     6077cat >>conftest.$ac_ext <<_ACEOF
     6078/* end confdefs.h.  */
     6079extern "C" {void $cfuncdaxpy();}
     6080#ifdef F77_DUMMY_MAIN
     6081
     6082#  ifdef __cplusplus
     6083     extern "C"
     6084#  endif
     6085   int F77_DUMMY_MAIN() { return 1; }
     6086
     6087#endif
     6088int
     6089main ()
     6090{
     6091$cfuncdaxpy()
     6092  ;
     6093  return 0;
     6094}
     6095_ACEOF
     6096rm -f conftest.$ac_objext conftest$ac_exeext
     6097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6098  (eval $ac_link) 2>conftest.er1
     6099  ac_status=$?
     6100  grep -v '^ *+' conftest.er1 >conftest.err
     6101  rm -f conftest.er1
     6102  cat conftest.err >&5
     6103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6104  (exit $ac_status); } &&
     6105         { ac_try='test -z "$ac_c_werror_flag"
     6106                         || test ! -s conftest.err'
     6107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6108  (eval $ac_try) 2>&5
     6109  ac_status=$?
     6110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6111  (exit $ac_status); }; } &&
     6112         { ac_try='test -s conftest$ac_exeext'
     6113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6114  (eval $ac_try) 2>&5
     6115  ac_status=$?
     6116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6117  (exit $ac_status); }; }; then
     6118  flink_try=yes
     6119else
     6120  echo "$as_me: failed program was:" >&5
     6121sed 's/^/| /' conftest.$ac_ext >&5
     6122
     6123flink_try=no
     6124fi
     6125rm -f conftest.err conftest.$ac_objext \
     6126      conftest$ac_exeext conftest.$ac_ext
     6127    fi
     6128    if test $flink_try = yes; then
     6129      use_blas='-lsunperf'
     6130                         if test $coin_need_flibs = yes ; then
     6131                           use_blas="$use_blas $FLIBS"
     6132                         fi
     6133                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6134echo "${ECHO_T}yes: $use_blas" >&6
     6135
     6136    else
     6137      if test x"$FLIBS" != x; then
     6138        flink_save_libs="$LIBS"
     6139        LIBS="$LIBS $FLIBS"
     6140        cat >conftest.$ac_ext <<_ACEOF
     6141/* confdefs.h.  */
     6142_ACEOF
     6143cat confdefs.h >>conftest.$ac_ext
     6144cat >>conftest.$ac_ext <<_ACEOF
     6145/* end confdefs.h.  */
     6146extern "C" {void $cfuncdaxpy();}
     6147#ifdef F77_DUMMY_MAIN
     6148
     6149#  ifdef __cplusplus
     6150     extern "C"
     6151#  endif
     6152   int F77_DUMMY_MAIN() { return 1; }
     6153
     6154#endif
     6155int
     6156main ()
     6157{
     6158$cfuncdaxpy()
     6159  ;
     6160  return 0;
     6161}
     6162_ACEOF
     6163rm -f conftest.$ac_objext conftest$ac_exeext
     6164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6165  (eval $ac_link) 2>conftest.er1
     6166  ac_status=$?
     6167  grep -v '^ *+' conftest.er1 >conftest.err
     6168  rm -f conftest.er1
     6169  cat conftest.err >&5
     6170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6171  (exit $ac_status); } &&
     6172         { ac_try='test -z "$ac_c_werror_flag"
     6173                         || test ! -s conftest.err'
     6174  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6175  (eval $ac_try) 2>&5
     6176  ac_status=$?
     6177  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6178  (exit $ac_status); }; } &&
     6179         { ac_try='test -s conftest$ac_exeext'
     6180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6181  (eval $ac_try) 2>&5
     6182  ac_status=$?
     6183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6184  (exit $ac_status); }; }; then
     6185  LIBS="$flink_save_libs"
     6186                     coin_need_flibs=yes
     6187                     use_blas='-lsunperf'
     6188                         if test $coin_need_flibs = yes ; then
     6189                           use_blas="$use_blas $FLIBS"
     6190                         fi
     6191                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6192echo "${ECHO_T}yes: $use_blas" >&6
     6193
     6194
     6195else
     6196  echo "$as_me: failed program was:" >&5
     6197sed 's/^/| /' conftest.$ac_ext >&5
     6198
     6199LIBS="$flink_save_libs"
     6200                     echo "$as_me:$LINENO: result: no" >&5
     6201echo "${ECHO_T}no" >&6
     6202fi
     6203rm -f conftest.err conftest.$ac_objext \
     6204      conftest$ac_exeext conftest.$ac_ext
     6205      else
     6206        echo "$as_me:$LINENO: result: no" >&5
     6207echo "${ECHO_T}no" >&6
     6208      fi
     6209    fi
     6210    ;;
     6211esac
     6212
     6213      LIBS="$coin_save_LIBS"
     6214      ;;
     6215
     6216    *-cygwin* | *-mingw*)
     6217# On cygwin, consider -lblas only if doscompile is disabled. The prebuilt
     6218# library will want to link with cygwin, hence won't run standalone in DOS.
     6219      if test "$enable_doscompile" = mingw; then
     6220        skip_lblas_check=yes
     6221      fi
     6222      case "$CC" in
     6223        cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*)
     6224          coin_save_LIBS="$LIBS"
     6225          echo "$as_me:$LINENO: checking for BLAS in MKL (32bit)" >&5
     6226echo $ECHO_N "checking for BLAS in MKL (32bit)... $ECHO_C" >&6
     6227          LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS"
     6228          case $ac_ext in
     6229  f)
     6230    cat >conftest.$ac_ext <<_ACEOF
     6231/* confdefs.h.  */
     6232_ACEOF
     6233cat confdefs.h >>conftest.$ac_ext
     6234cat >>conftest.$ac_ext <<_ACEOF
     6235/* end confdefs.h.  */
     6236
     6237#ifdef F77_DUMMY_MAIN
     6238
     6239#  ifdef __cplusplus
     6240     extern "C"
     6241#  endif
     6242   int F77_DUMMY_MAIN() { return 1; }
     6243
     6244#endif
     6245int
     6246main ()
     6247{
     6248      call daxpy
     6249  ;
     6250  return 0;
     6251}
     6252_ACEOF
     6253rm -f conftest.$ac_objext conftest$ac_exeext
     6254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6255  (eval $ac_link) 2>conftest.er1
     6256  ac_status=$?
     6257  grep -v '^ *+' conftest.er1 >conftest.err
     6258  rm -f conftest.er1
     6259  cat conftest.err >&5
     6260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6261  (exit $ac_status); } &&
     6262         { ac_try='test -z "$ac_c_werror_flag"
     6263                         || test ! -s conftest.err'
     6264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6265  (eval $ac_try) 2>&5
     6266  ac_status=$?
     6267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6268  (exit $ac_status); }; } &&
     6269         { ac_try='test -s conftest$ac_exeext'
     6270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6271  (eval $ac_try) 2>&5
     6272  ac_status=$?
     6273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6274  (exit $ac_status); }; }; then
     6275  use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6276                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6277echo "${ECHO_T}yes: $use_blas" >&6
     6278
     6279else
     6280  echo "$as_me: failed program was:" >&5
     6281sed 's/^/| /' conftest.$ac_ext >&5
     6282
     6283echo "$as_me:$LINENO: result: no" >&5
     6284echo "${ECHO_T}no" >&6
     6285fi
     6286rm -f conftest.err conftest.$ac_objext \
     6287      conftest$ac_exeext conftest.$ac_ext
     6288    ;;
     6289  c)
     6290    ac_ext=f
     6291ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6292ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6293ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6294case $ac_cv_f77_mangling in
     6295  upper*) ac_val="DAXPY" ;;
     6296  lower*) ac_val="daxpy" ;;
     6297  *)      ac_val="unknown" ;;
     6298esac
     6299case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6300
     6301cfuncdaxpy="$ac_val"
     6302
     6303ac_ext=c
     6304ac_cpp='$CPP $CPPFLAGS'
     6305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6307ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6308
     6309    if test x"$coin_need_flibs" = xyes; then
     6310      flink_try=no;
     6311    else
     6312      cat >conftest.$ac_ext <<_ACEOF
     6313/* confdefs.h.  */
     6314_ACEOF
     6315cat confdefs.h >>conftest.$ac_ext
     6316cat >>conftest.$ac_ext <<_ACEOF
     6317/* end confdefs.h.  */
     6318void $cfuncdaxpy();
     6319#ifdef F77_DUMMY_MAIN
     6320
     6321#  ifdef __cplusplus
     6322     extern "C"
     6323#  endif
     6324   int F77_DUMMY_MAIN() { return 1; }
     6325
     6326#endif
     6327int
     6328main ()
     6329{
     6330$cfuncdaxpy()
     6331  ;
     6332  return 0;
     6333}
     6334_ACEOF
     6335rm -f conftest.$ac_objext conftest$ac_exeext
     6336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6337  (eval $ac_link) 2>conftest.er1
     6338  ac_status=$?
     6339  grep -v '^ *+' conftest.er1 >conftest.err
     6340  rm -f conftest.er1
     6341  cat conftest.err >&5
     6342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6343  (exit $ac_status); } &&
     6344         { ac_try='test -z "$ac_c_werror_flag"
     6345                         || test ! -s conftest.err'
     6346  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6347  (eval $ac_try) 2>&5
     6348  ac_status=$?
     6349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6350  (exit $ac_status); }; } &&
     6351         { ac_try='test -s conftest$ac_exeext'
     6352  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6353  (eval $ac_try) 2>&5
     6354  ac_status=$?
     6355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6356  (exit $ac_status); }; }; then
     6357  flink_try=yes
     6358else
     6359  echo "$as_me: failed program was:" >&5
     6360sed 's/^/| /' conftest.$ac_ext >&5
     6361
     6362flink_try=no
     6363fi
     6364rm -f conftest.err conftest.$ac_objext \
     6365      conftest$ac_exeext conftest.$ac_ext
     6366    fi
     6367    if test $flink_try = yes; then
     6368      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6369                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6370echo "${ECHO_T}yes: $use_blas" >&6
     6371
     6372    else
     6373      if test x"$FLIBS" != x; then
     6374        flink_save_libs="$LIBS"
     6375        LIBS="$LIBS $FLIBS"
     6376        cat >conftest.$ac_ext <<_ACEOF
     6377/* confdefs.h.  */
     6378_ACEOF
     6379cat confdefs.h >>conftest.$ac_ext
     6380cat >>conftest.$ac_ext <<_ACEOF
     6381/* end confdefs.h.  */
     6382void $cfuncdaxpy();
     6383#ifdef F77_DUMMY_MAIN
     6384
     6385#  ifdef __cplusplus
     6386     extern "C"
     6387#  endif
     6388   int F77_DUMMY_MAIN() { return 1; }
     6389
     6390#endif
     6391int
     6392main ()
     6393{
     6394$cfuncdaxpy()
     6395  ;
     6396  return 0;
     6397}
     6398_ACEOF
     6399rm -f conftest.$ac_objext conftest$ac_exeext
     6400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6401  (eval $ac_link) 2>conftest.er1
     6402  ac_status=$?
     6403  grep -v '^ *+' conftest.er1 >conftest.err
     6404  rm -f conftest.er1
     6405  cat conftest.err >&5
     6406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6407  (exit $ac_status); } &&
     6408         { ac_try='test -z "$ac_c_werror_flag"
     6409                         || test ! -s conftest.err'
     6410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6411  (eval $ac_try) 2>&5
     6412  ac_status=$?
     6413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6414  (exit $ac_status); }; } &&
     6415         { ac_try='test -s conftest$ac_exeext'
     6416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6417  (eval $ac_try) 2>&5
     6418  ac_status=$?
     6419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6420  (exit $ac_status); }; }; then
     6421  LIBS="$flink_save_libs"
     6422                     coin_need_flibs=yes
     6423                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6424                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6425echo "${ECHO_T}yes: $use_blas" >&6
     6426
     6427
     6428else
     6429  echo "$as_me: failed program was:" >&5
     6430sed 's/^/| /' conftest.$ac_ext >&5
     6431
     6432LIBS="$flink_save_libs"
     6433                     echo "$as_me:$LINENO: result: no" >&5
     6434echo "${ECHO_T}no" >&6
     6435fi
     6436rm -f conftest.err conftest.$ac_objext \
     6437      conftest$ac_exeext conftest.$ac_ext
     6438      else
     6439        echo "$as_me:$LINENO: result: no" >&5
     6440echo "${ECHO_T}no" >&6
     6441      fi
     6442    fi
     6443    ;;
     6444  cc|cpp)
     6445    ac_ext=f
     6446ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6447ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6448ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6449case $ac_cv_f77_mangling in
     6450  upper*) ac_val="DAXPY" ;;
     6451  lower*) ac_val="daxpy" ;;
     6452  *)      ac_val="unknown" ;;
     6453esac
     6454case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6455
     6456cfuncdaxpy="$ac_val"
     6457
     6458ac_ext=c
     6459ac_cpp='$CPP $CPPFLAGS'
     6460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6462ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6463
     6464    if test x"$coin_need_flibs" = xyes; then
     6465      flink_try=no;
     6466    else
     6467      cat >conftest.$ac_ext <<_ACEOF
     6468/* confdefs.h.  */
     6469_ACEOF
     6470cat confdefs.h >>conftest.$ac_ext
     6471cat >>conftest.$ac_ext <<_ACEOF
     6472/* end confdefs.h.  */
     6473extern "C" {void $cfuncdaxpy();}
     6474#ifdef F77_DUMMY_MAIN
     6475
     6476#  ifdef __cplusplus
     6477     extern "C"
     6478#  endif
     6479   int F77_DUMMY_MAIN() { return 1; }
     6480
     6481#endif
     6482int
     6483main ()
     6484{
     6485$cfuncdaxpy()
     6486  ;
     6487  return 0;
     6488}
     6489_ACEOF
     6490rm -f conftest.$ac_objext conftest$ac_exeext
     6491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6492  (eval $ac_link) 2>conftest.er1
     6493  ac_status=$?
     6494  grep -v '^ *+' conftest.er1 >conftest.err
     6495  rm -f conftest.er1
     6496  cat conftest.err >&5
     6497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6498  (exit $ac_status); } &&
     6499         { ac_try='test -z "$ac_c_werror_flag"
     6500                         || test ! -s conftest.err'
     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); }; } &&
     6506         { ac_try='test -s conftest$ac_exeext'
     6507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6508  (eval $ac_try) 2>&5
     6509  ac_status=$?
     6510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6511  (exit $ac_status); }; }; then
     6512  flink_try=yes
     6513else
     6514  echo "$as_me: failed program was:" >&5
     6515sed 's/^/| /' conftest.$ac_ext >&5
     6516
     6517flink_try=no
     6518fi
     6519rm -f conftest.err conftest.$ac_objext \
     6520      conftest$ac_exeext conftest.$ac_ext
     6521    fi
     6522    if test $flink_try = yes; then
     6523      use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6524                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6525echo "${ECHO_T}yes: $use_blas" >&6
     6526
     6527    else
     6528      if test x"$FLIBS" != x; then
     6529        flink_save_libs="$LIBS"
     6530        LIBS="$LIBS $FLIBS"
     6531        cat >conftest.$ac_ext <<_ACEOF
     6532/* confdefs.h.  */
     6533_ACEOF
     6534cat confdefs.h >>conftest.$ac_ext
     6535cat >>conftest.$ac_ext <<_ACEOF
     6536/* end confdefs.h.  */
     6537extern "C" {void $cfuncdaxpy();}
     6538#ifdef F77_DUMMY_MAIN
     6539
     6540#  ifdef __cplusplus
     6541     extern "C"
     6542#  endif
     6543   int F77_DUMMY_MAIN() { return 1; }
     6544
     6545#endif
     6546int
     6547main ()
     6548{
     6549$cfuncdaxpy()
     6550  ;
     6551  return 0;
     6552}
     6553_ACEOF
     6554rm -f conftest.$ac_objext conftest$ac_exeext
     6555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6556  (eval $ac_link) 2>conftest.er1
     6557  ac_status=$?
     6558  grep -v '^ *+' conftest.er1 >conftest.err
     6559  rm -f conftest.er1
     6560  cat conftest.err >&5
     6561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6562  (exit $ac_status); } &&
     6563         { ac_try='test -z "$ac_c_werror_flag"
     6564                         || test ! -s conftest.err'
     6565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6566  (eval $ac_try) 2>&5
     6567  ac_status=$?
     6568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6569  (exit $ac_status); }; } &&
     6570         { ac_try='test -s conftest$ac_exeext'
     6571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6572  (eval $ac_try) 2>&5
     6573  ac_status=$?
     6574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6575  (exit $ac_status); }; }; then
     6576  LIBS="$flink_save_libs"
     6577                     coin_need_flibs=yes
     6578                     use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'
     6579                             echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6580echo "${ECHO_T}yes: $use_blas" >&6
     6581
     6582
     6583else
     6584  echo "$as_me: failed program was:" >&5
     6585sed 's/^/| /' conftest.$ac_ext >&5
     6586
     6587LIBS="$flink_save_libs"
     6588                     echo "$as_me:$LINENO: result: no" >&5
     6589echo "${ECHO_T}no" >&6
     6590fi
     6591rm -f conftest.err conftest.$ac_objext \
     6592      conftest$ac_exeext conftest.$ac_ext
     6593      else
     6594        echo "$as_me:$LINENO: result: no" >&5
     6595echo "${ECHO_T}no" >&6
     6596      fi
     6597    fi
     6598    ;;
     6599esac
     6600
     6601          LIBS="$coin_save_LIBS"
     6602
     6603          if test "x$use_blas" = x ; then
     6604            echo "$as_me:$LINENO: checking for BLAS in MKL (64bit)" >&5
     6605echo $ECHO_N "checking for BLAS in MKL (64bit)... $ECHO_C" >&6
     6606            LIBS="mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib $LIBS"
     6607            case $ac_ext in
     6608  f)
     6609    cat >conftest.$ac_ext <<_ACEOF
     6610/* confdefs.h.  */
     6611_ACEOF
     6612cat confdefs.h >>conftest.$ac_ext
     6613cat >>conftest.$ac_ext <<_ACEOF
     6614/* end confdefs.h.  */
     6615
     6616#ifdef F77_DUMMY_MAIN
     6617
     6618#  ifdef __cplusplus
     6619     extern "C"
     6620#  endif
     6621   int F77_DUMMY_MAIN() { return 1; }
     6622
     6623#endif
     6624int
     6625main ()
     6626{
     6627      call daxpy
     6628  ;
     6629  return 0;
     6630}
     6631_ACEOF
     6632rm -f conftest.$ac_objext conftest$ac_exeext
     6633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6634  (eval $ac_link) 2>conftest.er1
     6635  ac_status=$?
     6636  grep -v '^ *+' conftest.er1 >conftest.err
     6637  rm -f conftest.er1
     6638  cat conftest.err >&5
     6639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6640  (exit $ac_status); } &&
     6641         { ac_try='test -z "$ac_c_werror_flag"
     6642                         || test ! -s conftest.err'
     6643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6644  (eval $ac_try) 2>&5
     6645  ac_status=$?
     6646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6647  (exit $ac_status); }; } &&
     6648         { ac_try='test -s conftest$ac_exeext'
     6649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6650  (eval $ac_try) 2>&5
     6651  ac_status=$?
     6652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6653  (exit $ac_status); }; }; then
     6654  use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6655                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6656echo "${ECHO_T}yes: $use_blas" >&6
     6657
     6658else
     6659  echo "$as_me: failed program was:" >&5
     6660sed 's/^/| /' conftest.$ac_ext >&5
     6661
     6662echo "$as_me:$LINENO: result: no" >&5
     6663echo "${ECHO_T}no" >&6
     6664fi
     6665rm -f conftest.err conftest.$ac_objext \
     6666      conftest$ac_exeext conftest.$ac_ext
     6667    ;;
     6668  c)
     6669    ac_ext=f
     6670ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6671ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6672ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6673case $ac_cv_f77_mangling in
     6674  upper*) ac_val="DAXPY" ;;
     6675  lower*) ac_val="daxpy" ;;
     6676  *)      ac_val="unknown" ;;
     6677esac
     6678case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6679
     6680cfuncdaxpy="$ac_val"
     6681
     6682ac_ext=c
     6683ac_cpp='$CPP $CPPFLAGS'
     6684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6686ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6687
     6688    if test x"$coin_need_flibs" = xyes; then
     6689      flink_try=no;
     6690    else
     6691      cat >conftest.$ac_ext <<_ACEOF
     6692/* confdefs.h.  */
     6693_ACEOF
     6694cat confdefs.h >>conftest.$ac_ext
     6695cat >>conftest.$ac_ext <<_ACEOF
     6696/* end confdefs.h.  */
     6697void $cfuncdaxpy();
     6698#ifdef F77_DUMMY_MAIN
     6699
     6700#  ifdef __cplusplus
     6701     extern "C"
     6702#  endif
     6703   int F77_DUMMY_MAIN() { return 1; }
     6704
     6705#endif
     6706int
     6707main ()
     6708{
     6709$cfuncdaxpy()
     6710  ;
     6711  return 0;
     6712}
     6713_ACEOF
     6714rm -f conftest.$ac_objext conftest$ac_exeext
     6715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6716  (eval $ac_link) 2>conftest.er1
     6717  ac_status=$?
     6718  grep -v '^ *+' conftest.er1 >conftest.err
     6719  rm -f conftest.er1
     6720  cat conftest.err >&5
     6721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6722  (exit $ac_status); } &&
     6723         { ac_try='test -z "$ac_c_werror_flag"
     6724                         || test ! -s conftest.err'
     6725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6726  (eval $ac_try) 2>&5
     6727  ac_status=$?
     6728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6729  (exit $ac_status); }; } &&
     6730         { ac_try='test -s conftest$ac_exeext'
     6731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6732  (eval $ac_try) 2>&5
     6733  ac_status=$?
     6734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6735  (exit $ac_status); }; }; then
     6736  flink_try=yes
     6737else
     6738  echo "$as_me: failed program was:" >&5
     6739sed 's/^/| /' conftest.$ac_ext >&5
     6740
     6741flink_try=no
     6742fi
     6743rm -f conftest.err conftest.$ac_objext \
     6744      conftest$ac_exeext conftest.$ac_ext
     6745    fi
     6746    if test $flink_try = yes; then
     6747      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6748                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6749echo "${ECHO_T}yes: $use_blas" >&6
     6750
     6751    else
     6752      if test x"$FLIBS" != x; then
     6753        flink_save_libs="$LIBS"
     6754        LIBS="$LIBS $FLIBS"
     6755        cat >conftest.$ac_ext <<_ACEOF
     6756/* confdefs.h.  */
     6757_ACEOF
     6758cat confdefs.h >>conftest.$ac_ext
     6759cat >>conftest.$ac_ext <<_ACEOF
     6760/* end confdefs.h.  */
     6761void $cfuncdaxpy();
     6762#ifdef F77_DUMMY_MAIN
     6763
     6764#  ifdef __cplusplus
     6765     extern "C"
     6766#  endif
     6767   int F77_DUMMY_MAIN() { return 1; }
     6768
     6769#endif
     6770int
     6771main ()
     6772{
     6773$cfuncdaxpy()
     6774  ;
     6775  return 0;
     6776}
     6777_ACEOF
     6778rm -f conftest.$ac_objext conftest$ac_exeext
     6779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6780  (eval $ac_link) 2>conftest.er1
     6781  ac_status=$?
     6782  grep -v '^ *+' conftest.er1 >conftest.err
     6783  rm -f conftest.er1
     6784  cat conftest.err >&5
     6785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6786  (exit $ac_status); } &&
     6787         { ac_try='test -z "$ac_c_werror_flag"
     6788                         || test ! -s conftest.err'
     6789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6790  (eval $ac_try) 2>&5
     6791  ac_status=$?
     6792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6793  (exit $ac_status); }; } &&
     6794         { ac_try='test -s conftest$ac_exeext'
     6795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6796  (eval $ac_try) 2>&5
     6797  ac_status=$?
     6798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6799  (exit $ac_status); }; }; then
     6800  LIBS="$flink_save_libs"
     6801                     coin_need_flibs=yes
     6802                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6803                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6804echo "${ECHO_T}yes: $use_blas" >&6
     6805
     6806
     6807else
     6808  echo "$as_me: failed program was:" >&5
     6809sed 's/^/| /' conftest.$ac_ext >&5
     6810
     6811LIBS="$flink_save_libs"
     6812                     echo "$as_me:$LINENO: result: no" >&5
     6813echo "${ECHO_T}no" >&6
     6814fi
     6815rm -f conftest.err conftest.$ac_objext \
     6816      conftest$ac_exeext conftest.$ac_ext
     6817      else
     6818        echo "$as_me:$LINENO: result: no" >&5
     6819echo "${ECHO_T}no" >&6
     6820      fi
     6821    fi
     6822    ;;
     6823  cc|cpp)
     6824    ac_ext=f
     6825ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     6826ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6827ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     6828case $ac_cv_f77_mangling in
     6829  upper*) ac_val="DAXPY" ;;
     6830  lower*) ac_val="daxpy" ;;
     6831  *)      ac_val="unknown" ;;
     6832esac
     6833case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     6834
     6835cfuncdaxpy="$ac_val"
     6836
     6837ac_ext=c
     6838ac_cpp='$CPP $CPPFLAGS'
     6839ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     6840ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     6841ac_compiler_gnu=$ac_cv_c_compiler_gnu
     6842
     6843    if test x"$coin_need_flibs" = xyes; then
     6844      flink_try=no;
     6845    else
     6846      cat >conftest.$ac_ext <<_ACEOF
     6847/* confdefs.h.  */
     6848_ACEOF
     6849cat confdefs.h >>conftest.$ac_ext
     6850cat >>conftest.$ac_ext <<_ACEOF
     6851/* end confdefs.h.  */
     6852extern "C" {void $cfuncdaxpy();}
     6853#ifdef F77_DUMMY_MAIN
     6854
     6855#  ifdef __cplusplus
     6856     extern "C"
     6857#  endif
     6858   int F77_DUMMY_MAIN() { return 1; }
     6859
     6860#endif
     6861int
     6862main ()
     6863{
     6864$cfuncdaxpy()
     6865  ;
     6866  return 0;
     6867}
     6868_ACEOF
     6869rm -f conftest.$ac_objext conftest$ac_exeext
     6870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6871  (eval $ac_link) 2>conftest.er1
     6872  ac_status=$?
     6873  grep -v '^ *+' conftest.er1 >conftest.err
     6874  rm -f conftest.er1
     6875  cat conftest.err >&5
     6876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6877  (exit $ac_status); } &&
     6878         { ac_try='test -z "$ac_c_werror_flag"
     6879                         || test ! -s conftest.err'
     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); }; } &&
     6885         { ac_try='test -s conftest$ac_exeext'
     6886  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6887  (eval $ac_try) 2>&5
     6888  ac_status=$?
     6889  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6890  (exit $ac_status); }; }; then
     6891  flink_try=yes
     6892else
     6893  echo "$as_me: failed program was:" >&5
     6894sed 's/^/| /' conftest.$ac_ext >&5
     6895
     6896flink_try=no
     6897fi
     6898rm -f conftest.err conftest.$ac_objext \
     6899      conftest$ac_exeext conftest.$ac_ext
     6900    fi
     6901    if test $flink_try = yes; then
     6902      use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6903                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6904echo "${ECHO_T}yes: $use_blas" >&6
     6905
     6906    else
     6907      if test x"$FLIBS" != x; then
     6908        flink_save_libs="$LIBS"
     6909        LIBS="$LIBS $FLIBS"
     6910        cat >conftest.$ac_ext <<_ACEOF
     6911/* confdefs.h.  */
     6912_ACEOF
     6913cat confdefs.h >>conftest.$ac_ext
     6914cat >>conftest.$ac_ext <<_ACEOF
     6915/* end confdefs.h.  */
     6916extern "C" {void $cfuncdaxpy();}
     6917#ifdef F77_DUMMY_MAIN
     6918
     6919#  ifdef __cplusplus
     6920     extern "C"
     6921#  endif
     6922   int F77_DUMMY_MAIN() { return 1; }
     6923
     6924#endif
     6925int
     6926main ()
     6927{
     6928$cfuncdaxpy()
     6929  ;
     6930  return 0;
     6931}
     6932_ACEOF
     6933rm -f conftest.$ac_objext conftest$ac_exeext
     6934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     6935  (eval $ac_link) 2>conftest.er1
     6936  ac_status=$?
     6937  grep -v '^ *+' conftest.er1 >conftest.err
     6938  rm -f conftest.er1
     6939  cat conftest.err >&5
     6940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6941  (exit $ac_status); } &&
     6942         { ac_try='test -z "$ac_c_werror_flag"
     6943                         || test ! -s conftest.err'
     6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6945  (eval $ac_try) 2>&5
     6946  ac_status=$?
     6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6948  (exit $ac_status); }; } &&
     6949         { ac_try='test -s conftest$ac_exeext'
     6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     6951  (eval $ac_try) 2>&5
     6952  ac_status=$?
     6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     6954  (exit $ac_status); }; }; then
     6955  LIBS="$flink_save_libs"
     6956                     coin_need_flibs=yes
     6957                     use_blas='mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib'
     6958                               echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     6959echo "${ECHO_T}yes: $use_blas" >&6
     6960
     6961
     6962else
     6963  echo "$as_me: failed program was:" >&5
     6964sed 's/^/| /' conftest.$ac_ext >&5
     6965
     6966LIBS="$flink_save_libs"
     6967                     echo "$as_me:$LINENO: result: no" >&5
     6968echo "${ECHO_T}no" >&6
     6969fi
     6970rm -f conftest.err conftest.$ac_objext \
     6971      conftest$ac_exeext conftest.$ac_ext
     6972      else
     6973        echo "$as_me:$LINENO: result: no" >&5
     6974echo "${ECHO_T}no" >&6
     6975      fi
     6976    fi
     6977    ;;
     6978esac
     6979
     6980            LIBS="$coin_save_LIBS"
     6981          fi
     6982          ;;
     6983      esac
     6984      ;;
     6985
     6986     *-darwin*)
     6987      echo "$as_me:$LINENO: checking for BLAS in Veclib" >&5
     6988echo $ECHO_N "checking for BLAS in Veclib... $ECHO_C" >&6
     6989      coin_need_flibs=no
     6990      coin_save_LIBS="$LIBS"
     6991      LIBS="-framework vecLib $LIBS"
     6992      case $ac_ext in
     6993  f)
     6994    cat >conftest.$ac_ext <<_ACEOF
     6995/* confdefs.h.  */
     6996_ACEOF
     6997cat confdefs.h >>conftest.$ac_ext
     6998cat >>conftest.$ac_ext <<_ACEOF
     6999/* end confdefs.h.  */
     7000
     7001#ifdef F77_DUMMY_MAIN
     7002
     7003#  ifdef __cplusplus
     7004     extern "C"
     7005#  endif
     7006   int F77_DUMMY_MAIN() { return 1; }
     7007
     7008#endif
     7009int
     7010main ()
     7011{
     7012      call daxpy
     7013  ;
     7014  return 0;
     7015}
     7016_ACEOF
     7017rm -f conftest.$ac_objext conftest$ac_exeext
     7018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7019  (eval $ac_link) 2>conftest.er1
     7020  ac_status=$?
     7021  grep -v '^ *+' conftest.er1 >conftest.err
     7022  rm -f conftest.er1
     7023  cat conftest.err >&5
     7024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7025  (exit $ac_status); } &&
     7026         { ac_try='test -z "$ac_c_werror_flag"
     7027                         || test ! -s conftest.err'
     7028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7029  (eval $ac_try) 2>&5
     7030  ac_status=$?
     7031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7032  (exit $ac_status); }; } &&
     7033         { ac_try='test -s conftest$ac_exeext'
     7034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7035  (eval $ac_try) 2>&5
     7036  ac_status=$?
     7037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7038  (exit $ac_status); }; }; then
     7039  use_blas='-framework vecLib'
     7040                         if test $coin_need_flibs = yes ; then
     7041                           use_blas="$use_blas $FLIBS"
     7042                         fi
     7043                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7044echo "${ECHO_T}yes: $use_blas" >&6
     7045
     7046else
     7047  echo "$as_me: failed program was:" >&5
     7048sed 's/^/| /' conftest.$ac_ext >&5
     7049
     7050echo "$as_me:$LINENO: result: no" >&5
     7051echo "${ECHO_T}no" >&6
     7052fi
     7053rm -f conftest.err conftest.$ac_objext \
     7054      conftest$ac_exeext conftest.$ac_ext
     7055    ;;
     7056  c)
     7057    ac_ext=f
     7058ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7059ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7060ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7061case $ac_cv_f77_mangling in
     7062  upper*) ac_val="DAXPY" ;;
     7063  lower*) ac_val="daxpy" ;;
     7064  *)      ac_val="unknown" ;;
     7065esac
     7066case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7067
     7068cfuncdaxpy="$ac_val"
     7069
     7070ac_ext=c
     7071ac_cpp='$CPP $CPPFLAGS'
     7072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7074ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7075
     7076    if test x"$coin_need_flibs" = xyes; then
     7077      flink_try=no;
     7078    else
     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.  */
     7085void $cfuncdaxpy();
     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$cfuncdaxpy()
     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  flink_try=yes
     7125else
     7126  echo "$as_me: failed program was:" >&5
     7127sed 's/^/| /' conftest.$ac_ext >&5
     7128
     7129flink_try=no
     7130fi
     7131rm -f conftest.err conftest.$ac_objext \
     7132      conftest$ac_exeext conftest.$ac_ext
     7133    fi
     7134    if test $flink_try = yes; then
     7135      use_blas='-framework vecLib'
     7136                         if test $coin_need_flibs = yes ; then
     7137                           use_blas="$use_blas $FLIBS"
     7138                         fi
     7139                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7140echo "${ECHO_T}yes: $use_blas" >&6
     7141
     7142    else
     7143      if test x"$FLIBS" != x; then
     7144        flink_save_libs="$LIBS"
     7145        LIBS="$LIBS $FLIBS"
     7146        cat >conftest.$ac_ext <<_ACEOF
     7147/* confdefs.h.  */
     7148_ACEOF
     7149cat confdefs.h >>conftest.$ac_ext
     7150cat >>conftest.$ac_ext <<_ACEOF
     7151/* end confdefs.h.  */
     7152void $cfuncdaxpy();
     7153#ifdef F77_DUMMY_MAIN
     7154
     7155#  ifdef __cplusplus
     7156     extern "C"
     7157#  endif
     7158   int F77_DUMMY_MAIN() { return 1; }
     7159
     7160#endif
     7161int
     7162main ()
     7163{
     7164$cfuncdaxpy()
     7165  ;
     7166  return 0;
     7167}
     7168_ACEOF
     7169rm -f conftest.$ac_objext conftest$ac_exeext
     7170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7171  (eval $ac_link) 2>conftest.er1
     7172  ac_status=$?
     7173  grep -v '^ *+' conftest.er1 >conftest.err
     7174  rm -f conftest.er1
     7175  cat conftest.err >&5
     7176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7177  (exit $ac_status); } &&
     7178         { ac_try='test -z "$ac_c_werror_flag"
     7179                         || test ! -s conftest.err'
     7180  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7181  (eval $ac_try) 2>&5
     7182  ac_status=$?
     7183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7184  (exit $ac_status); }; } &&
     7185         { ac_try='test -s conftest$ac_exeext'
     7186  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7187  (eval $ac_try) 2>&5
     7188  ac_status=$?
     7189  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7190  (exit $ac_status); }; }; then
     7191  LIBS="$flink_save_libs"
     7192                     coin_need_flibs=yes
     7193                     use_blas='-framework vecLib'
     7194                         if test $coin_need_flibs = yes ; then
     7195                           use_blas="$use_blas $FLIBS"
     7196                         fi
     7197                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7198echo "${ECHO_T}yes: $use_blas" >&6
     7199
     7200
     7201else
     7202  echo "$as_me: failed program was:" >&5
     7203sed 's/^/| /' conftest.$ac_ext >&5
     7204
     7205LIBS="$flink_save_libs"
     7206                     echo "$as_me:$LINENO: result: no" >&5
     7207echo "${ECHO_T}no" >&6
     7208fi
     7209rm -f conftest.err conftest.$ac_objext \
     7210      conftest$ac_exeext conftest.$ac_ext
     7211      else
     7212        echo "$as_me:$LINENO: result: no" >&5
     7213echo "${ECHO_T}no" >&6
     7214      fi
     7215    fi
     7216    ;;
     7217  cc|cpp)
     7218    ac_ext=f
     7219ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7220ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7221ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7222case $ac_cv_f77_mangling in
     7223  upper*) ac_val="DAXPY" ;;
     7224  lower*) ac_val="daxpy" ;;
     7225  *)      ac_val="unknown" ;;
     7226esac
     7227case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7228
     7229cfuncdaxpy="$ac_val"
     7230
     7231ac_ext=c
     7232ac_cpp='$CPP $CPPFLAGS'
     7233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7235ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7236
     7237    if test x"$coin_need_flibs" = xyes; then
     7238      flink_try=no;
     7239    else
     7240      cat >conftest.$ac_ext <<_ACEOF
     7241/* confdefs.h.  */
     7242_ACEOF
     7243cat confdefs.h >>conftest.$ac_ext
     7244cat >>conftest.$ac_ext <<_ACEOF
     7245/* end confdefs.h.  */
     7246extern "C" {void $cfuncdaxpy();}
     7247#ifdef F77_DUMMY_MAIN
     7248
     7249#  ifdef __cplusplus
     7250     extern "C"
     7251#  endif
     7252   int F77_DUMMY_MAIN() { return 1; }
     7253
     7254#endif
     7255int
     7256main ()
     7257{
     7258$cfuncdaxpy()
     7259  ;
     7260  return 0;
     7261}
     7262_ACEOF
     7263rm -f conftest.$ac_objext conftest$ac_exeext
     7264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7265  (eval $ac_link) 2>conftest.er1
     7266  ac_status=$?
     7267  grep -v '^ *+' conftest.er1 >conftest.err
     7268  rm -f conftest.er1
     7269  cat conftest.err >&5
     7270  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7271  (exit $ac_status); } &&
     7272         { ac_try='test -z "$ac_c_werror_flag"
     7273                         || test ! -s conftest.err'
     7274  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7275  (eval $ac_try) 2>&5
     7276  ac_status=$?
     7277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7278  (exit $ac_status); }; } &&
     7279         { ac_try='test -s conftest$ac_exeext'
     7280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7281  (eval $ac_try) 2>&5
     7282  ac_status=$?
     7283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7284  (exit $ac_status); }; }; then
     7285  flink_try=yes
     7286else
     7287  echo "$as_me: failed program was:" >&5
     7288sed 's/^/| /' conftest.$ac_ext >&5
     7289
     7290flink_try=no
     7291fi
     7292rm -f conftest.err conftest.$ac_objext \
     7293      conftest$ac_exeext conftest.$ac_ext
     7294    fi
     7295    if test $flink_try = yes; then
     7296      use_blas='-framework vecLib'
     7297                         if test $coin_need_flibs = yes ; then
     7298                           use_blas="$use_blas $FLIBS"
     7299                         fi
     7300                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7301echo "${ECHO_T}yes: $use_blas" >&6
     7302
     7303    else
     7304      if test x"$FLIBS" != x; then
     7305        flink_save_libs="$LIBS"
     7306        LIBS="$LIBS $FLIBS"
     7307        cat >conftest.$ac_ext <<_ACEOF
     7308/* confdefs.h.  */
     7309_ACEOF
     7310cat confdefs.h >>conftest.$ac_ext
     7311cat >>conftest.$ac_ext <<_ACEOF
     7312/* end confdefs.h.  */
     7313extern "C" {void $cfuncdaxpy();}
     7314#ifdef F77_DUMMY_MAIN
     7315
     7316#  ifdef __cplusplus
     7317     extern "C"
     7318#  endif
     7319   int F77_DUMMY_MAIN() { return 1; }
     7320
     7321#endif
     7322int
     7323main ()
     7324{
     7325$cfuncdaxpy()
     7326  ;
     7327  return 0;
     7328}
     7329_ACEOF
     7330rm -f conftest.$ac_objext conftest$ac_exeext
     7331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7332  (eval $ac_link) 2>conftest.er1
     7333  ac_status=$?
     7334  grep -v '^ *+' conftest.er1 >conftest.err
     7335  rm -f conftest.er1
     7336  cat conftest.err >&5
     7337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7338  (exit $ac_status); } &&
     7339         { ac_try='test -z "$ac_c_werror_flag"
     7340                         || test ! -s conftest.err'
     7341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7342  (eval $ac_try) 2>&5
     7343  ac_status=$?
     7344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7345  (exit $ac_status); }; } &&
     7346         { ac_try='test -s conftest$ac_exeext'
     7347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7348  (eval $ac_try) 2>&5
     7349  ac_status=$?
     7350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7351  (exit $ac_status); }; }; then
     7352  LIBS="$flink_save_libs"
     7353                     coin_need_flibs=yes
     7354                     use_blas='-framework vecLib'
     7355                         if test $coin_need_flibs = yes ; then
     7356                           use_blas="$use_blas $FLIBS"
     7357                         fi
     7358                         echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7359echo "${ECHO_T}yes: $use_blas" >&6
     7360
     7361
     7362else
     7363  echo "$as_me: failed program was:" >&5
     7364sed 's/^/| /' conftest.$ac_ext >&5
     7365
     7366LIBS="$flink_save_libs"
     7367                     echo "$as_me:$LINENO: result: no" >&5
     7368echo "${ECHO_T}no" >&6
     7369fi
     7370rm -f conftest.err conftest.$ac_objext \
     7371      conftest$ac_exeext conftest.$ac_ext
     7372      else
     7373        echo "$as_me:$LINENO: result: no" >&5
     7374echo "${ECHO_T}no" >&6
     7375      fi
     7376    fi
     7377    ;;
     7378esac
     7379
     7380      LIBS="$coin_save_LIBS"
     7381      ;;
     7382  esac
     7383
     7384  if test -z "$use_blas" && test $skip_lblas_check = no; then
     7385    echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5
     7386echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6
     7387    coin_need_flibs=no
     7388    coin_save_LIBS="$LIBS"
     7389    LIBS="-lblas $LIBS"
     7390    case $ac_ext in
     7391  f)
     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.  */
     7398
     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      call daxpy
     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  use_blas='-lblas'
     7438                       if test $coin_need_flibs = yes ; then
     7439                         use_blas="$use_blas $FLIBS"
     7440                       fi
     7441                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7442echo "${ECHO_T}yes: $use_blas" >&6
     7443
     7444else
     7445  echo "$as_me: failed program was:" >&5
     7446sed 's/^/| /' conftest.$ac_ext >&5
     7447
     7448echo "$as_me:$LINENO: result: no" >&5
     7449echo "${ECHO_T}no" >&6
     7450fi
     7451rm -f conftest.err conftest.$ac_objext \
     7452      conftest$ac_exeext conftest.$ac_ext
     7453    ;;
     7454  c)
     7455    ac_ext=f
     7456ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7457ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7458ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7459case $ac_cv_f77_mangling in
     7460  upper*) ac_val="DAXPY" ;;
     7461  lower*) ac_val="daxpy" ;;
     7462  *)      ac_val="unknown" ;;
     7463esac
     7464case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7465
     7466cfuncdaxpy="$ac_val"
     7467
     7468ac_ext=c
     7469ac_cpp='$CPP $CPPFLAGS'
     7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7473
     7474    if test x"$coin_need_flibs" = xyes; then
     7475      flink_try=no;
     7476    else
     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.  */
     7483void $cfuncdaxpy();
     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$cfuncdaxpy()
     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  flink_try=yes
     7523else
     7524  echo "$as_me: failed program was:" >&5
     7525sed 's/^/| /' conftest.$ac_ext >&5
     7526
     7527flink_try=no
     7528fi
     7529rm -f conftest.err conftest.$ac_objext \
     7530      conftest$ac_exeext conftest.$ac_ext
     7531    fi
     7532    if test $flink_try = yes; then
     7533      use_blas='-lblas'
     7534                       if test $coin_need_flibs = yes ; then
     7535                         use_blas="$use_blas $FLIBS"
     7536                       fi
     7537                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7538echo "${ECHO_T}yes: $use_blas" >&6
     7539
     7540    else
     7541      if test x"$FLIBS" != x; then
     7542        flink_save_libs="$LIBS"
     7543        LIBS="$LIBS $FLIBS"
     7544        cat >conftest.$ac_ext <<_ACEOF
     7545/* confdefs.h.  */
     7546_ACEOF
     7547cat confdefs.h >>conftest.$ac_ext
     7548cat >>conftest.$ac_ext <<_ACEOF
     7549/* end confdefs.h.  */
     7550void $cfuncdaxpy();
     7551#ifdef F77_DUMMY_MAIN
     7552
     7553#  ifdef __cplusplus
     7554     extern "C"
     7555#  endif
     7556   int F77_DUMMY_MAIN() { return 1; }
     7557
     7558#endif
     7559int
     7560main ()
     7561{
     7562$cfuncdaxpy()
     7563  ;
     7564  return 0;
     7565}
     7566_ACEOF
     7567rm -f conftest.$ac_objext conftest$ac_exeext
     7568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7569  (eval $ac_link) 2>conftest.er1
     7570  ac_status=$?
     7571  grep -v '^ *+' conftest.er1 >conftest.err
     7572  rm -f conftest.er1
     7573  cat conftest.err >&5
     7574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7575  (exit $ac_status); } &&
     7576         { ac_try='test -z "$ac_c_werror_flag"
     7577                         || test ! -s conftest.err'
     7578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7579  (eval $ac_try) 2>&5
     7580  ac_status=$?
     7581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7582  (exit $ac_status); }; } &&
     7583         { ac_try='test -s conftest$ac_exeext'
     7584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7585  (eval $ac_try) 2>&5
     7586  ac_status=$?
     7587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7588  (exit $ac_status); }; }; then
     7589  LIBS="$flink_save_libs"
     7590                     coin_need_flibs=yes
     7591                     use_blas='-lblas'
     7592                       if test $coin_need_flibs = yes ; then
     7593                         use_blas="$use_blas $FLIBS"
     7594                       fi
     7595                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7596echo "${ECHO_T}yes: $use_blas" >&6
     7597
     7598
     7599else
     7600  echo "$as_me: failed program was:" >&5
     7601sed 's/^/| /' conftest.$ac_ext >&5
     7602
     7603LIBS="$flink_save_libs"
     7604                     echo "$as_me:$LINENO: result: no" >&5
     7605echo "${ECHO_T}no" >&6
     7606fi
     7607rm -f conftest.err conftest.$ac_objext \
     7608      conftest$ac_exeext conftest.$ac_ext
     7609      else
     7610        echo "$as_me:$LINENO: result: no" >&5
     7611echo "${ECHO_T}no" >&6
     7612      fi
     7613    fi
     7614    ;;
     7615  cc|cpp)
     7616    ac_ext=f
     7617ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
     7618ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7619ac_compiler_gnu=$ac_cv_f77_compiler_gnu
     7620case $ac_cv_f77_mangling in
     7621  upper*) ac_val="DAXPY" ;;
     7622  lower*) ac_val="daxpy" ;;
     7623  *)      ac_val="unknown" ;;
     7624esac
     7625case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
     7626
     7627cfuncdaxpy="$ac_val"
     7628
     7629ac_ext=c
     7630ac_cpp='$CPP $CPPFLAGS'
     7631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
     7632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
     7633ac_compiler_gnu=$ac_cv_c_compiler_gnu
     7634
     7635    if test x"$coin_need_flibs" = xyes; then
     7636      flink_try=no;
     7637    else
     7638      cat >conftest.$ac_ext <<_ACEOF
     7639/* confdefs.h.  */
     7640_ACEOF
     7641cat confdefs.h >>conftest.$ac_ext
     7642cat >>conftest.$ac_ext <<_ACEOF
     7643/* end confdefs.h.  */
     7644extern "C" {void $cfuncdaxpy();}
     7645#ifdef F77_DUMMY_MAIN
     7646
     7647#  ifdef __cplusplus
     7648     extern "C"
     7649#  endif
     7650   int F77_DUMMY_MAIN() { return 1; }
     7651
     7652#endif
     7653int
     7654main ()
     7655{
     7656$cfuncdaxpy()
     7657  ;
     7658  return 0;
     7659}
     7660_ACEOF
     7661rm -f conftest.$ac_objext conftest$ac_exeext
     7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7663  (eval $ac_link) 2>conftest.er1
     7664  ac_status=$?
     7665  grep -v '^ *+' conftest.er1 >conftest.err
     7666  rm -f conftest.er1
     7667  cat conftest.err >&5
     7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7669  (exit $ac_status); } &&
     7670         { ac_try='test -z "$ac_c_werror_flag"
     7671                         || test ! -s conftest.err'
     7672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7673  (eval $ac_try) 2>&5
     7674  ac_status=$?
     7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7676  (exit $ac_status); }; } &&
     7677         { ac_try='test -s conftest$ac_exeext'
     7678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7679  (eval $ac_try) 2>&5
     7680  ac_status=$?
     7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7682  (exit $ac_status); }; }; then
     7683  flink_try=yes
     7684else
     7685  echo "$as_me: failed program was:" >&5
     7686sed 's/^/| /' conftest.$ac_ext >&5
     7687
     7688flink_try=no
     7689fi
     7690rm -f conftest.err conftest.$ac_objext \
     7691      conftest$ac_exeext conftest.$ac_ext
     7692    fi
     7693    if test $flink_try = yes; then
     7694      use_blas='-lblas'
     7695                       if test $coin_need_flibs = yes ; then
     7696                         use_blas="$use_blas $FLIBS"
     7697                       fi
     7698                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7699echo "${ECHO_T}yes: $use_blas" >&6
     7700
     7701    else
     7702      if test x"$FLIBS" != x; then
     7703        flink_save_libs="$LIBS"
     7704        LIBS="$LIBS $FLIBS"
     7705        cat >conftest.$ac_ext <<_ACEOF
     7706/* confdefs.h.  */
     7707_ACEOF
     7708cat confdefs.h >>conftest.$ac_ext
     7709cat >>conftest.$ac_ext <<_ACEOF
     7710/* end confdefs.h.  */
     7711extern "C" {void $cfuncdaxpy();}
     7712#ifdef F77_DUMMY_MAIN
     7713
     7714#  ifdef __cplusplus
     7715     extern "C"
     7716#  endif
     7717   int F77_DUMMY_MAIN() { return 1; }
     7718
     7719#endif
     7720int
     7721main ()
     7722{
     7723$cfuncdaxpy()
     7724  ;
     7725  return 0;
     7726}
     7727_ACEOF
     7728rm -f conftest.$ac_objext conftest$ac_exeext
     7729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
     7730  (eval $ac_link) 2>conftest.er1
     7731  ac_status=$?
     7732  grep -v '^ *+' conftest.er1 >conftest.err
     7733  rm -f conftest.er1
     7734  cat conftest.err >&5
     7735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7736  (exit $ac_status); } &&
     7737         { ac_try='test -z "$ac_c_werror_flag"
     7738                         || test ! -s conftest.err'
     7739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7740  (eval $ac_try) 2>&5
     7741  ac_status=$?
     7742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7743  (exit $ac_status); }; } &&
     7744         { ac_try='test -s conftest$ac_exeext'
     7745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
     7746  (eval $ac_try) 2>&5
     7747  ac_status=$?
     7748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
     7749  (exit $ac_status); }; }; then
     7750  LIBS="$flink_save_libs"
     7751                     coin_need_flibs=yes
     7752                     use_blas='-lblas'
     7753                       if test $coin_need_flibs = yes ; then
     7754                         use_blas="$use_blas $FLIBS"
     7755                       fi
     7756                       echo "$as_me:$LINENO: result: yes: $use_blas" >&5
     7757echo "${ECHO_T}yes: $use_blas" >&6
     7758
     7759
     7760else
     7761  echo "$as_me: failed program was:" >&5
     7762sed 's/^/| /' conftest.$ac_ext >&5
     7763
     7764LIBS="$flink_save_libs"
     7765                     echo "$as_me:$LINENO: result: no" >&5
     7766echo "${ECHO_T}no" >&6
     7767fi
     7768rm -f conftest.err conftest.$ac_objext \
     7769      conftest$ac_exeext conftest.$ac_ext
     7770      else
     7771        echo "$as_me:$LINENO: result: no" >&5
     7772echo "${ECHO_T}no" >&6
     7773      fi
     7774    fi
     7775    ;;
     7776esac
     7777
     7778    LIBS="$coin_save_LIBS"
     7779  fi
     7780
     7781  # If we have no other ideas, consider building BLAS.
     7782  if test -z "$use_blas" ; then
     7783    use_blas=BUILD
     7784  fi
     7785fi
     7786
     7787if test "x$use_blas" = xBUILD ; then
     7788
     7789echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5
     7790echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6
     7791
     7792coin_has_blas=notGiven
     7793
     7794# check if user wants to skip package in any case
     7795if test x"$COIN_SKIP_PROJECTS" != x; then
     7796  for dir in $COIN_SKIP_PROJECTS; do
     7797    if test $dir = "Blas"; then
     7798      coin_has_blas=skipping
     7799    fi
     7800  done
     7801fi
     7802
     7803BLAS_LIBS=
     7804BLAS_CFLAGS=
     7805BLAS_DATA=
     7806
     7807
     7808
     7809
     7810
     7811
     7812
     7813
     7814
     7815
     7816
     7817
     7818
     7819
     7820
     7821
     7822
     7823#check if user provided LIBS, CFLAGS, or DATA for package or disables use of package
     7824if test $coin_has_blas != skipping; then
     7825
     7826# Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given.
     7827if test "${with_blas_lib+set}" = set; then
     7828  withval="$with_blas_lib"
     7829  if test "$withval" = no ; then
     7830       coin_has_blas=skipping
     7831     else
     7832       coin_has_blas=yes
     7833       BLAS_LIBS="$withval"
     7834
     7835         LAPACKLIB_PCLIBS="$withval $LAPACKLIB_PCLIBS"
     7836         LAPACKLIB_LIBS="$withval $LAPACKLIB_LIBS"
     7837
     7838     fi
     7839
     7840fi;
     7841fi
     7842
     7843if test $coin_has_blas != skipping; then
     7844
     7845# Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given.
     7846if test "${with_blas_incdir+set}" = set; then
     7847  withval="$with_blas_incdir"
     7848  if test "$withval" = no ; then
     7849       coin_has_blas=skipping
     7850     else
     7851       coin_has_blas=yes
     7852       BLAS_CFLAGS="-I`${CYGPATH_W} $withval`"
     7853       LAPACKLIB_CFLAGS="$withval $LAPACKLIB_CFLAGS"
     7854     fi
     7855
     7856fi;
     7857fi
     7858
     7859if test $coin_has_blas != skipping; then
     7860
     7861# Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given.
     7862if test "${with_blas_datadir+set}" = set; then
     7863  withval="$with_blas_datadir"
     7864  if test "$withval" = no ; then
     7865       coin_has_blas=skipping
     7866     else
     7867       coin_has_blas=yes
     7868       BLAS_DATA="$withval"
     7869     fi
     7870
     7871fi;
     7872fi
     7873
     7874if test $coin_has_blas = notGiven; then
     7875  if test -n "$PKG_CONFIG" ; then
     7876    # set search path for pkg-config
     7877    # need to export variable to be sure that the following pkg-config gets these values
     7878    coin_save_PKG_CONFIG_PATH="$PKG_CONFIG_PATH"
     7879    PKG_CONFIG_PATH="$COIN_PKG_CONFIG_PATH:$COIN_PKG_CONFIG_PATH_UNINSTALLED"
     7880    export PKG_CONFIG_PATH
     7881
     7882    # let pkg-config do it's magic
     7883
     7884
     7885
     7886if test -n "$PKG_CONFIG" ; then
     7887  if $PKG_CONFIG --exists "coinblas"; then
     7888    BLAS_VERSIONS="`$PKG_CONFIG --modversion "coinblas" 2>/dev/null | tr '\n' ' '`"
     7889     cflags=`$PKG_CONFIG --cflags "coinblas" 2>/dev/null`
     7890    # pkg-config cannot handle spaces, so CYGPATH_W cannot be put into .pc files
     7891        # thus, we modify the cflags extracted from pkg-config by putting CYGPATH_W behind -I's
     7892        # but only do this if is not trivial
     7893    if test "$CYGPATH_W" != "echo" ; then
     7894      # need to put into brackets since otherwise autoconf replaces the brackets in the sed command
     7895      cflags=`echo $cflags | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     7896    fi
     7897    BLAS_CFLAGS="$cflags"
     7898    BLAS_LIBS=`$PKG_CONFIG --libs "coinblas" 2>/dev/null`
     7899    BLAS_DATA=`$PKG_CONFIG --variable=datadir "coinblas" 2>/dev/null`
     7900     coin_has_blas=yes
     7901        echo "$as_me:$LINENO: result: yes: $BLAS_VERSIONS" >&5
     7902echo "${ECHO_T}yes: $BLAS_VERSIONS" >&6
     7903
     7904        # adjust linker flags for (i)cl compiler
     7905        # 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)
     7906        if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     7907        then
     7908          BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     7909        fi
     7910
     7911        # augment X_PCREQUIRES, X_CFLAGS, and X_LIBS for each build target X in LapackLib
     7912
     7913          LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
     7914          LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
     7915          LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     7916
     7917
     7918
     7919  else
     7920    BLAS_PKG_ERRORS=`$PKG_CONFIG $pkg_short_errors --errors-to-stdout --print-errors "coinblas"`
     7921      coin_has_blas=notGiven
     7922        echo "$as_me:$LINENO: result: not given: $BLAS_PKG_ERRORS" >&5
     7923echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6
     7924
     7925  fi
     7926else
     7927  { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5
     7928echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;}
     7929   { (exit 1); exit 1; }; }
     7930fi
     7931
     7932
     7933
     7934
     7935    # reset PKG_CONFIG_PATH variable
     7936    PKG_CONFIG_PATH="$coin_save_PKG_CONFIG_PATH"
     7937    export PKG_CONFIG_PATH
     7938
     7939  else
     7940    echo "$as_me:$LINENO: result: skipped check via pkg-config, redirect to fallback" >&5
     7941echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6
     7942
     7943echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5
     7944echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6
     7945
     7946coin_has_blas=notGiven
     7947BLAS_LIBS=
     7948BLAS_LIBS_INSTALLED=
     7949BLAS_CFLAGS=
     7950BLAS_CFLAGS_INSTALLED=
     7951BLAS_DATA=
     7952BLAS_DATA_INSTALLED=
     7953
     7954# initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x)
     7955projtoprocess="coinblas"
     7956
     7957# we first expand the list of projects to process by adding all dependencies just behind the project which depends on it
     7958# further, we collect the list of corresponding .pc files, but do this in reverse order, because we need this order afterwards
     7959# the latter we also do with .pc files corresponding to the installed projects, which will be needed to setup Makefiles for examples
     7960# also, we setup the DATA variable
     7961allproj=""
     7962allpcfiles=""
     7963allpcifiles=""
     7964while test "x$projtoprocess" != x ; do
     7965
     7966  for proj in $projtoprocess ; do
     7967    # if $proj is available and configured, then a project-uninstalled.pc file should have been created, so search for it
     7968    pcfile=""
     7969    save_IFS="$IFS"
     7970    IFS=":"
     7971    for dir in $COIN_PKG_CONFIG_PATH_UNINSTALLED ; do
     7972      # 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
     7973      if test -r "$dir/${proj}-uninstalled.pc" ; then
     7974        pcfile="$dir/$proj-uninstalled.pc"
     7975        if test -r "$dir/${proj}.pc" ; then
     7976          pcifile="$dir/${proj}.pc"
     7977        else
     7978          { echo "$as_me:$LINENO: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&5
     7979echo "$as_me: WARNING: Found $pcfile, but $dir/${proj}.pc is not available. This may break Makefile's of examples." >&2;}
     7980          pcifile=
     7981        fi
     7982        break
     7983      fi
     7984    done
     7985    IFS="$save_IFS"
     7986
     7987    if test "x$pcfile" != x ; then
     7988      # read dependencies from $pcfile and filter it
     7989      projrequires=`sed -n -e 's/Requires://gp' "$pcfile" | sed -e 's/<\{0,1\}>\{0,1\}=[        ]\{0,\}[^       ]\{1,\}//g'`
     7990
     7991      # add projrequires to the front of the list of projects that have to be processed next
     7992      # at the same time, remove $proj from this list
     7993      projtoprocess=${projtoprocess/$proj/$projrequires}
     7994
     7995      # read DATA from $pcfile, if _DATA is still empty
     7996      if test "x$BLAS_DATA" = x ; then
     7997        projdatadir=
     7998        pcfilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcfile`
     7999        eval `sh -c "$pcfilemod"`
     8000        BLAS_DATA="$projdatadir"
     8001      fi
     8002
     8003      allproj="$allproj $proj"
     8004      allpcfiles="$pcfile:$allpcfiles"
     8005
     8006    else
     8007      echo "$as_me:$LINENO: result: no, dependency $proj not available" >&5
     8008echo "${ECHO_T}no, dependency $proj not available" >&6
     8009      allproj=fail
     8010      break 2
     8011    fi
     8012
     8013    if test "x$pcifile" != x ; then
     8014      allpcifiles="$pcifile:$allpcifiles"
     8015
     8016      # read DATA_INSTALLED from $pcifile, if _DATA_INSTALLED is still empty
     8017      if test "x$BLAS_DATA_INSTALLED" = x ; then
     8018        projdatadir=
     8019        pcifilemod=`sed -e '/[a-zA-Z]:/d' -e 's/datadir=\(.*\)/echo projdatadir=\\\\"\1\\\\"/g' $pcifile`
     8020        eval `sh -c "$pcifilemod"`
     8021        if test "${CYGPATH_W}" != "echo"; then
     8022          projdatadir="\`\$(CYGPATH_W) ${projdatadir} | sed -e 's/\\\\\\\\/\\\\\\\\\\\\\\\\/g'\`"
     8023        fi
     8024        BLAS_DATA_INSTALLED="$projdatadir"
     8025      fi
     8026
     8027    fi
     8028
     8029    break
     8030  done
     8031
     8032  # remove spaces on begin of $projtoprocess
     8033  projtoprocess=`echo $projtoprocess | sed -e 's/^ *//'`
     8034
     8035done
     8036
     8037if test "$allproj" != fail ; then
     8038
     8039  # now go through the list of .pc files and assemble compiler and linker flags
     8040  # important is here to obey the reverse order that has been setup before,
     8041  # since then libraries that are required by several others should be after these other libraries
     8042  pcfilesprocessed=""
     8043
     8044  save_IFS="$IFS"
     8045  IFS=":"
     8046  for pcfile in $allpcfiles ; do
     8047
     8048    # if $pcfile has been processed already, skip this round
     8049    if test "x$pcfilesprocessed" != x ; then
     8050      for pcfiledone in $pcfilesprocessed ; do
     8051        if test "$pcfiledone" = "$pcfile" ; then
     8052          continue 2
     8053        fi
     8054      done
     8055    fi
     8056
     8057    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     8058    #   replace "Libs:" by "echo projlibs="
     8059    #   replace "Cflags:" by "echo projcflags="
     8060    #   remove every line starting with <some word>:
     8061    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     8062
     8063    # set projcflags and projlibs variables by running $pcfilemod
     8064    projcflags=
     8065    projlibs=
     8066    eval `sh -c "$pcfilemod"`
     8067
     8068    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     8069    if test "${CYGPATH_W}" != "echo"; then
     8070      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     8071    fi
     8072    BLAS_CFLAGS="$projcflags $BLAS_CFLAGS"
     8073
     8074    # set LIBS variable
     8075    BLAS_LIBS="$projlibs $BLAS_LIBS"
     8076
     8077    # remember that we have processed $pcfile
     8078    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     8079
     8080  done
     8081  IFS="$save_IFS"
     8082
     8083
     8084  # now go through the list of .pc files for installed projects and assemble compiler and linker flags
     8085  # important is here again to obey the reverse order that has been setup before,
     8086  # since then libraries that are required by several others should be after these other libraries
     8087  pcfilesprocessed=""
     8088
     8089  save_IFS="$IFS"
     8090  IFS=":"
     8091  for pcfile in $allpcifiles ; do
     8092
     8093    # if $pcfile has been processed already, skip this round
     8094    if test "x$pcfilesprocessed" != x ; then
     8095      for pcfiledone in $pcfilesprocessed ; do
     8096        if test "$pcfiledone" = "$pcfile" ; then
     8097          continue 2
     8098        fi
     8099      done
     8100    fi
     8101
     8102    # modify .pc file to a shell script that prints shell commands for setting the compiler and library flags:
     8103    #   replace "Libs:" by "echo projlibs="
     8104    #   replace "Cflags:" by "echo projcflags="
     8105    #   remove every line starting with <some word>:
     8106    pcfilemod=`sed -e 's/Libs:\(.*\)$/echo projlibs=\\\\"\1\\\\"/g' -e 's/Cflags:\(.*\)/echo projcflags=\\\\"\1\\\\"/g' -e '/[a-zA-Z]:/d' $pcfile`
     8107
     8108    # set projcflags and projlibs variables by running $pcfilemod
     8109    projcflags=
     8110    projlibs=
     8111    eval `sh -c "$pcfilemod"`
     8112
     8113    # add CYGPATH_W cludge into include flags and set CFLAGS variable
     8114    if test "${CYGPATH_W}" != "echo"; then
     8115      projcflags=`echo "$projcflags" | sed -e 's/-I\([^ ]*\)/-I\`${CYGPATH_W} \1\`/g'`
     8116    fi
     8117    BLAS_CFLAGS_INSTALLED="$projcflags $BLAS_CFLAGS_INSTALLED"
     8118
     8119    # set LIBS variable
     8120    BLAS_LIBS_INSTALLED="$projlibs $BLAS_LIBS_INSTALLED"
     8121
     8122    # remember that we have processed $pcfile
     8123    pcfilesprocessed="$pcfilesprocessed:$pcfile"
     8124
     8125  done
     8126  IFS="$save_IFS"
     8127
     8128
     8129  # finish up
     8130  coin_has_blas=yes
     8131  echo "$as_me:$LINENO: result: yes" >&5
     8132echo "${ECHO_T}yes" >&6
     8133
     8134cat >>confdefs.h <<\_ACEOF
     8135#define COIN_HAS_BLAS 1
     8136_ACEOF
     8137
     8138
     8139  # adjust linker flags for (i)cl compiler
     8140  # 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),
     8141  # for the LIBS_INSTALLED, we replace everything of the form "/somepath/" by "`$(CYGPATH_W) /somepath/`",
     8142  #    everything of the form "-Lpath" by "/libpath:`$(CYGPATH_W) path`, and
     8143  #    everything of the form "-lname" by "libname.lib"
     8144  if test x$coin_cxx_is_cl = xtrue || test x$coin_cc_is_cl = xtrue ;
     8145  then
     8146    BLAS_LIBS=`echo " $BLAS_LIBS " | sed -e 's/ \(\/[^ ]*\/\)\([^ ]*\)\.lib / \`$(CYGPATH_W) \1 | sed -e "s|\\\\\\\\\\\\\\\\\\\\|\/|g"\`\2.lib /g'`
     8147    BLAS_LIBS_INSTALLED=`echo " $BLAS_LIBS_INSTALLED" | sed -e 's/ \(\/[^ ]*\/\)/ \`$(CYGPATH_W) \1\`/g' -e 's/ -L\([^ ]*\)/ \/libpath:\`$(CYGPATH_W) \1\`/g' -e 's/ -l\([^ ]*\)/ lib\1.lib/g'`
     8148  fi
     8149
     8150
     8151    LAPACKLIB_PCREQUIRES="coinblas $LAPACKLIB_PCREQUIRES"
     8152    LAPACKLIB_CFLAGS="$BLAS_CFLAGS $LAPACKLIB_CFLAGS"
     8153    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     8154    LAPACKLIB_CFLAGS_INSTALLED="$BLAS_CFLAGS_INSTALLED $LAPACKLIB_CFLAGS_INSTALLED"
     8155    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS_INSTALLED $LAPACKLIB_LIBS_INSTALLED"
     8156
     8157
     8158fi
     8159
     8160
     8161
     8162if test $coin_has_blas != notGiven &&
     8163                test $coin_has_blas != skipping; then
     8164  COIN_HAS_BLAS_TRUE=
     8165  COIN_HAS_BLAS_FALSE='#'
     8166else
     8167  COIN_HAS_BLAS_TRUE='#'
     8168  COIN_HAS_BLAS_FALSE=
     8169fi
     8170
     8171
     8172
     8173  fi
     8174
     8175else
     8176  echo "$as_me:$LINENO: result: $coin_has_blas" >&5
     8177echo "${ECHO_T}$coin_has_blas" >&6
     8178fi
     8179
     8180if test $coin_has_blas != skipping &&
     8181   test $coin_has_blas != notGiven ; then
     8182
     8183cat >>confdefs.h <<\_ACEOF
     8184#define COIN_HAS_BLAS 1
     8185_ACEOF
     8186
     8187
     8188  # Check whether --enable-interpackage-dependencies or --disable-interpackage-dependencies was given.
     8189if test "${enable_interpackage_dependencies+set}" = set; then
     8190  enableval="$enable_interpackage_dependencies"
     8191
     8192else
     8193  enable_interpackage_dependencies=yes
     8194fi;
     8195
     8196  if test $enable_interpackage_dependencies = yes ; then
     8197     # construct dependencies variables from LIBS variables
     8198     # we add an extra space in LIBS so we can substitute out everything starting with " -"
     8199     # remove everything of the form -framework xxx as used on Mac and mklxxx as used on Windows
     8200     # then remove everything of the form -xxx
     8201     # also remove everything of the form `xxx`yyy (may have been added for cygwin/cl)
     8202     BLAS_DEPENDENCIES=`echo " $BLAS_LIBS" | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     8203
     8204       LAPACKLIB_DEPENDENCIES=`echo " $LAPACKLIB_LIBS " | sed -e 's/ mkl[^ ]*//g' -e 's/ -framework  *[^ ]*//g' -e 's/ -[^ ]*//g' -e 's/\`[^\`]*\`[^ ]* //g'`
     8205
     8206  fi
     8207
     8208  if test 1 = 0 ; then  #change this test to enable a bit of debugging output
     8209    if test -n "$BLAS_CFLAGS" ; then
     8210      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     8211echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     8212    fi
     8213    if test -n "$BLAS_LIBS" ; then
     8214      { echo "$as_me:$LINENO: Blas LIBS   are $BLAS_LIBS" >&5
     8215echo "$as_me: Blas LIBS   are $BLAS_LIBS" >&6;}
     8216    fi
     8217    if test -n "$BLAS_DEPENDENCIES" ; then
     8218      { echo "$as_me:$LINENO: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&5
     8219echo "$as_me: Blas DEPENDENCIES are $BLAS_DEPENDENCIES" >&6;}
     8220    fi
     8221    if test -n "$BLAS_DATA" ; then
     8222      { echo "$as_me:$LINENO: Blas DATA   is  $BLAS_DATA" >&5
     8223echo "$as_me: Blas DATA   is  $BLAS_DATA" >&6;}
     8224    fi
     8225    if test -n "$BLAS_CFLAGS" ; then
     8226      { echo "$as_me:$LINENO: Blas CFLAGS are $BLAS_CFLAGS" >&5
     8227echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;}
     8228    fi
     8229
     8230      { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5
     8231echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;}
     8232      { echo "$as_me:$LINENO: LapackLib LIBS   are $LAPACKLIB_LIBS" >&5
     8233echo "$as_me: LapackLib LIBS   are $LAPACKLIB_LIBS" >&6;}
     8234      { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5
     8235echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;}
     8236
     8237  fi
     8238fi
     8239
     8240# Define the Makefile conditional
     8241
     8242
     8243if test $coin_has_blas != notGiven &&
     8244                test $coin_has_blas != skipping; then
     8245  COIN_HAS_BLAS_TRUE=
     8246  COIN_HAS_BLAS_FALSE='#'
     8247else
     8248  COIN_HAS_BLAS_TRUE='#'
     8249  COIN_HAS_BLAS_FALSE=
     8250fi
     8251
     8252
     8253
     8254
     8255elif test "x$use_blas" != x && test "$use_blas" != no; then
     8256  coin_has_blas=yes
     8257
     8258
     8259if test 0 = 0; then
     8260  COIN_HAS_BLAS_TRUE=
     8261  COIN_HAS_BLAS_FALSE='#'
     8262else
     8263  COIN_HAS_BLAS_TRUE='#'
     8264  COIN_HAS_BLAS_FALSE=
     8265fi
     8266
     8267
     8268cat >>confdefs.h <<\_ACEOF
     8269#define COIN_HAS_BLAS 1
     8270_ACEOF
     8271
     8272  BLAS_LIBS="$use_blas"
     8273  BLAS_CFLAGS=
     8274  BLAS_DATA=
     8275
     8276
     8277
     8278
     8279    LAPACKLIB_PCLIBS="$BLAS_LIBS $LAPACKLIB_PCLIBS"
     8280    LAPACKLIB_LIBS="$BLAS_LIBS $LAPACKLIB_LIBS"
     8281    LAPACKLIB_LIBS_INSTALLED="$BLAS_LIBS $LAPACKLIB_LIBS_INSTALLED"
     8282
     8283
     8284else
     8285  coin_has_blas=no
     8286
     8287
     8288if test 0 = 1; then
     8289  COIN_HAS_BLAS_TRUE=
     8290  COIN_HAS_BLAS_FALSE='#'
     8291else
     8292  COIN_HAS_BLAS_TRUE='#'
     8293  COIN_HAS_BLAS_FALSE=
     8294fi
     8295
     8296fi
     8297
     8298
     8299
     8300
     8301
     8302
     8303
     8304
     8305if test $coin_has_blas != yes; then
     8306  { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5
     8307echo "$as_me: error: Required package BLAS not found." >&2;}
     8308   { (exit 1); exit 1; }; }
     8309fi
     8310
     8311# FLIBS will be needed to link against lapack library, so add them to LAPACKLIB_PCLIBS
     8312LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS"
    49818313
    49828314# Take care that optimization is disbled for DLAMCH.F
     
    66459977*-*-irix6*)
    66469978  # Find out which ABI we are using.
    6647   echo '#line 6647 "configure"' > conftest.$ac_ext
     9979  echo '#line 9979 "configure"' > conftest.$ac_ext
    66489980  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
    66499981  (eval $ac_compile) 2>&5
     
    912212454   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    912312455   -e 's:$: $lt_compiler_flag:'`
    9124    (eval echo "\"\$as_me:9124: $lt_compile\"" >&5)
     12456   (eval echo "\"\$as_me:12456: $lt_compile\"" >&5)
    912512457   (eval "$lt_compile" 2>conftest.err)
    912612458   ac_status=$?
    912712459   cat conftest.err >&5
    9128    echo "$as_me:9128: \$? = $ac_status" >&5
     12460   echo "$as_me:12460: \$? = $ac_status" >&5
    912912461   if (exit $ac_status) && test -s "$ac_outfile"; then
    913012462     # The compiler can only warn and ignore the option if not recognized
     
    939012722   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    939112723   -e 's:$: $lt_compiler_flag:'`
    9392    (eval echo "\"\$as_me:9392: $lt_compile\"" >&5)
     12724   (eval echo "\"\$as_me:12724: $lt_compile\"" >&5)
    939312725   (eval "$lt_compile" 2>conftest.err)
    939412726   ac_status=$?
    939512727   cat conftest.err >&5
    9396    echo "$as_me:9396: \$? = $ac_status" >&5
     12728   echo "$as_me:12728: \$? = $ac_status" >&5
    939712729   if (exit $ac_status) && test -s "$ac_outfile"; then
    939812730     # The compiler can only warn and ignore the option if not recognized
     
    949412826   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    949512827   -e 's:$: $lt_compiler_flag:'`
    9496    (eval echo "\"\$as_me:9496: $lt_compile\"" >&5)
     12828   (eval echo "\"\$as_me:12828: $lt_compile\"" >&5)
    949712829   (eval "$lt_compile" 2>out/conftest.err)
    949812830   ac_status=$?
    949912831   cat out/conftest.err >&5
    9500    echo "$as_me:9500: \$? = $ac_status" >&5
     12832   echo "$as_me:12832: \$? = $ac_status" >&5
    950112833   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    950212834   then
     
    1191115243  lt_status=$lt_dlunknown
    1191215244  cat > conftest.$ac_ext <<EOF
    11913 #line 11913 "configure"
     15245#line 15245 "configure"
    1191415246#include "confdefs.h"
    1191515247
     
    1201115343  lt_status=$lt_dlunknown
    1201215344  cat > conftest.$ac_ext <<EOF
    12013 #line 12013 "configure"
     15345#line 15345 "configure"
    1201415346#include "confdefs.h"
    1201515347
     
    1437117703   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1437217704   -e 's:$: $lt_compiler_flag:'`
    14373    (eval echo "\"\$as_me:14373: $lt_compile\"" >&5)
     17705   (eval echo "\"\$as_me:17705: $lt_compile\"" >&5)
    1437417706   (eval "$lt_compile" 2>conftest.err)
    1437517707   ac_status=$?
    1437617708   cat conftest.err >&5
    14377    echo "$as_me:14377: \$? = $ac_status" >&5
     17709   echo "$as_me:17709: \$? = $ac_status" >&5
    1437817710   if (exit $ac_status) && test -s "$ac_outfile"; then
    1437917711     # The compiler can only warn and ignore the option if not recognized
     
    1447517807   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1447617808   -e 's:$: $lt_compiler_flag:'`
    14477    (eval echo "\"\$as_me:14477: $lt_compile\"" >&5)
     17809   (eval echo "\"\$as_me:17809: $lt_compile\"" >&5)
    1447817810   (eval "$lt_compile" 2>out/conftest.err)
    1447917811   ac_status=$?
    1448017812   cat out/conftest.err >&5
    14481    echo "$as_me:14481: \$? = $ac_status" >&5
     17813   echo "$as_me:17813: \$? = $ac_status" >&5
    1448217814   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1448317815   then
     
    1604519377   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1604619378   -e 's:$: $lt_compiler_flag:'`
    16047    (eval echo "\"\$as_me:16047: $lt_compile\"" >&5)
     19379   (eval echo "\"\$as_me:19379: $lt_compile\"" >&5)
    1604819380   (eval "$lt_compile" 2>conftest.err)
    1604919381   ac_status=$?
    1605019382   cat conftest.err >&5
    16051    echo "$as_me:16051: \$? = $ac_status" >&5
     19383   echo "$as_me:19383: \$? = $ac_status" >&5
    1605219384   if (exit $ac_status) && test -s "$ac_outfile"; then
    1605319385     # The compiler can only warn and ignore the option if not recognized
     
    1614919481   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1615019482   -e 's:$: $lt_compiler_flag:'`
    16151    (eval echo "\"\$as_me:16151: $lt_compile\"" >&5)
     19483   (eval echo "\"\$as_me:19483: $lt_compile\"" >&5)
    1615219484   (eval "$lt_compile" 2>out/conftest.err)
    1615319485   ac_status=$?
    1615419486   cat out/conftest.err >&5
    16155    echo "$as_me:16155: \$? = $ac_status" >&5
     19487   echo "$as_me:19487: \$? = $ac_status" >&5
    1615619488   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1615719489   then
     
    1835621688   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1835721689   -e 's:$: $lt_compiler_flag:'`
    18358    (eval echo "\"\$as_me:18358: $lt_compile\"" >&5)
     21690   (eval echo "\"\$as_me:21690: $lt_compile\"" >&5)
    1835921691   (eval "$lt_compile" 2>conftest.err)
    1836021692   ac_status=$?
    1836121693   cat conftest.err >&5
    18362    echo "$as_me:18362: \$? = $ac_status" >&5
     21694   echo "$as_me:21694: \$? = $ac_status" >&5
    1836321695   if (exit $ac_status) && test -s "$ac_outfile"; then
    1836421696     # The compiler can only warn and ignore the option if not recognized
     
    1862421956   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1862521957   -e 's:$: $lt_compiler_flag:'`
    18626    (eval echo "\"\$as_me:18626: $lt_compile\"" >&5)
     21958   (eval echo "\"\$as_me:21958: $lt_compile\"" >&5)
    1862721959   (eval "$lt_compile" 2>conftest.err)
    1862821960   ac_status=$?
    1862921961   cat conftest.err >&5
    18630    echo "$as_me:18630: \$? = $ac_status" >&5
     21962   echo "$as_me:21962: \$? = $ac_status" >&5
    1863121963   if (exit $ac_status) && test -s "$ac_outfile"; then
    1863221964     # The compiler can only warn and ignore the option if not recognized
     
    1872822060   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
    1872922061   -e 's:$: $lt_compiler_flag:'`
    18730    (eval echo "\"\$as_me:18730: $lt_compile\"" >&5)
     22062   (eval echo "\"\$as_me:22062: $lt_compile\"" >&5)
    1873122063   (eval "$lt_compile" 2>out/conftest.err)
    1873222064   ac_status=$?
    1873322065   cat out/conftest.err >&5
    18734    echo "$as_me:18734: \$? = $ac_status" >&5
     22066   echo "$as_me:22066: \$? = $ac_status" >&5
    1873522067   if (exit $ac_status) && test -s out/conftest2.$ac_objext
    1873622068   then
     
    2186625198Usually this means the macro was only invoked conditionally." >&5
    2186725199echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined.
     25200Usually this means the macro was only invoked conditionally." >&2;}
     25201   { (exit 1); exit 1; }; }
     25202fi
     25203if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25204  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25205Usually this means the macro was only invoked conditionally." >&5
     25206echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25207Usually this means the macro was only invoked conditionally." >&2;}
     25208   { (exit 1); exit 1; }; }
     25209fi
     25210if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25211  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25212Usually this means the macro was only invoked conditionally." >&5
     25213echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25214Usually this means the macro was only invoked conditionally." >&2;}
     25215   { (exit 1); exit 1; }; }
     25216fi
     25217if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25218  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25219Usually this means the macro was only invoked conditionally." >&5
     25220echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25221Usually this means the macro was only invoked conditionally." >&2;}
     25222   { (exit 1); exit 1; }; }
     25223fi
     25224if test -z "${COIN_HAS_BLAS_TRUE}" && test -z "${COIN_HAS_BLAS_FALSE}"; then
     25225  { { echo "$as_me:$LINENO: error: conditional \"COIN_HAS_BLAS\" was never defined.
     25226Usually this means the macro was only invoked conditionally." >&5
     25227echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined.
    2186825228Usually this means the macro was only invoked conditionally." >&2;}
    2186925229   { (exit 1); exit 1; }; }
     
    2247425834s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t
    2247525835s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t
    22476 s,@LAPACK_PCLIBS@,$LAPACK_PCLIBS,;t t
     25836s,@BLAS_LIBS@,$BLAS_LIBS,;t t
     25837s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t
     25838s,@BLAS_DATA@,$BLAS_DATA,;t t
     25839s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t
     25840s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t
     25841s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t
     25842s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t
     25843s,@LAPACKLIB_CFLAGS@,$LAPACKLIB_CFLAGS,;t t
     25844s,@LAPACKLIB_LIBS@,$LAPACKLIB_LIBS,;t t
     25845s,@LAPACKLIB_PCLIBS@,$LAPACKLIB_PCLIBS,;t t
     25846s,@LAPACKLIB_PCREQUIRES@,$LAPACKLIB_PCREQUIRES,;t t
     25847s,@LAPACKLIB_DEPENDENCIES@,$LAPACKLIB_DEPENDENCIES,;t t
     25848s,@LAPACKLIB_CFLAGS_INSTALLED@,$LAPACKLIB_CFLAGS_INSTALLED,;t t
     25849s,@LAPACKLIB_LIBS_INSTALLED@,$LAPACKLIB_LIBS_INSTALLED,;t t
     25850s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t
     25851s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t
    2247725852s,@DLAMCH_FFLAGS@,$DLAMCH_FFLAGS,;t t
    2247825853s,@EGREP@,$EGREP,;t t
  • ThirdParty/Lapack/trunk/configure.ac

    r2026 r2088  
    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.