Changeset 2088
- Timestamp:
- Jan 15, 2011 7:37:45 AM (10 years ago)
- Location:
- ThirdParty/Lapack/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Lapack/trunk/Makefile.in
r2083 r2088 132 132 AUX_DIR = @AUX_DIR@ 133 133 AWK = @AWK@ 134 BLAS_CFLAGS = @BLAS_CFLAGS@ 135 BLAS_CFLAGS_INSTALLED = @BLAS_CFLAGS_INSTALLED@ 136 BLAS_DATA = @BLAS_DATA@ 137 BLAS_DATA_INSTALLED = @BLAS_DATA_INSTALLED@ 138 BLAS_DEPENDENCIES = @BLAS_DEPENDENCIES@ 139 BLAS_LIBS = @BLAS_LIBS@ 140 BLAS_LIBS_INSTALLED = @BLAS_LIBS_INSTALLED@ 134 141 BUILDTOOLSDIR = @BUILDTOOLSDIR@ 135 142 CC = @CC@ … … 139 146 COIN_CC_IS_CL_FALSE = @COIN_CC_IS_CL_FALSE@ 140 147 COIN_CC_IS_CL_TRUE = @COIN_CC_IS_CL_TRUE@ 148 COIN_HAS_BLAS_FALSE = @COIN_HAS_BLAS_FALSE@ 149 COIN_HAS_BLAS_TRUE = @COIN_HAS_BLAS_TRUE@ 141 150 COIN_HAS_PKGCONFIG_FALSE = @COIN_HAS_PKGCONFIG_FALSE@ 142 151 COIN_HAS_PKGCONFIG_TRUE = @COIN_HAS_PKGCONFIG_TRUE@ … … 170 179 INSTALL_SCRIPT = @INSTALL_SCRIPT@ 171 180 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 172 LAPACK_PCLIBS = @LAPACK_PCLIBS@ 181 LAPACKLIB_CFLAGS = @LAPACKLIB_CFLAGS@ 182 LAPACKLIB_CFLAGS_INSTALLED = @LAPACKLIB_CFLAGS_INSTALLED@ 183 LAPACKLIB_DEPENDENCIES = @LAPACKLIB_DEPENDENCIES@ 184 LAPACKLIB_LIBS = @LAPACKLIB_LIBS@ 185 LAPACKLIB_LIBS_INSTALLED = @LAPACKLIB_LIBS_INSTALLED@ 186 LAPACKLIB_PCLIBS = @LAPACKLIB_PCLIBS@ 187 LAPACKLIB_PCREQUIRES = @LAPACKLIB_PCREQUIRES@ 173 188 LAPACK_SVN_REV = @LAPACK_SVN_REV@ 174 189 LDFLAGS = @LDFLAGS@ -
ThirdParty/Lapack/trunk/coinlapack-uninstalled.pc.in
r2054 r2088 6 6 URL: https://projects.coin-or.org/BuildTools 7 7 Version: @PACKAGE_VERSION@ 8 Libs: ${libdir}/libcoinlapack.la @LAPACK _PCLIBS@8 Libs: ${libdir}/libcoinlapack.la @LAPACKLIB_PCLIBS@ 9 9 Cflags: 10 Requires: @LAPACKLIB_PCREQUIRES@ -
ThirdParty/Lapack/trunk/coinlapack.pc.in
r2054 r2088 7 7 URL: https://projects.coin-or.org/BuildTools 8 8 Version: @PACKAGE_VERSION@ 9 Libs: -L${libdir} -lcoinlapack @LAPACK _PCLIBS@9 Libs: -L${libdir} -lcoinlapack @LAPACKLIB_PCLIBS@ 10 10 Cflags: 11 Requires: @LAPACKLIB_PCREQUIRES@ -
ThirdParty/Lapack/trunk/configure
r2054 r2088 473 473 #endif" 474 474 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_PCLIBSDLAMCH_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'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 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' 476 476 ac_subst_files='' 477 477 … … 1087 1087 when not mentioned: disabled. 1088 1088 --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) 1089 1092 --enable-static[=PKGS] 1090 1093 build static libraries [default=no] … … 1105 1108 --with-lapack-checklevel 1106 1109 specify the sanity check level for project Lapack 1110 --with-blas specify BLAS library (or BUILD to enforce use of 1111 ThirdParty/Blas) 1112 1107 1113 --with-coin-instdir prefix of installation directory for precompiled 1108 1114 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 1109 1118 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1110 1119 --with-pic try to use only PIC/non-PIC objects [default=use … … 3381 3390 3382 3391 # Provide some information about the compiler. 3383 echo "$as_me:33 83:" \3392 echo "$as_me:3392:" \ 3384 3393 "checking for Fortran 77 compiler version" >&5 3385 3394 ac_compiler=`set X $ac_compile; echo $2` … … 3898 3907 3899 3908 3900 # Get the linker flags (FLIBS) that are required for linking against this blaslibrary3909 # Get the linker flags (FLIBS) that are required for linking against this library 3901 3910 ac_ext=f 3902 3911 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' … … 3950 3959 ac_save_FFLAGS=$FFLAGS 3951 3960 FFLAGS="$FFLAGS $ac_verb" 3952 (eval echo $as_me:39 52: \"$ac_link\") >&53961 (eval echo $as_me:3961: \"$ac_link\") >&5 3953 3962 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 3954 3963 echo "$ac_f77_v_output" >&5 … … 4028 4037 ac_save_FFLAGS=$FFLAGS 4029 4038 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 4030 (eval echo $as_me:403 0: \"$ac_link\") >&54039 (eval echo $as_me:4039: \"$ac_link\") >&5 4031 4040 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 4032 4041 echo "$ac_f77_v_output" >&5 … … 4779 4788 4780 4789 4781 # Check if pkg-config is available (to setup addlibs file)4790 # Check for Blas 4782 4791 4783 4792 … … 4976 4985 4977 4986 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. 4989 if test "${with_blas+set}" = set; then 4990 withval="$with_blas" 4991 use_blas="$withval" 4992 else 4993 use_blas= 4994 fi; 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. 5000 if test "${with_blas_lib+set}" = set; then 5001 withval="$with_blas_lib" 5002 use_blas=BUILD 5003 fi; 5004 5005 # Check if user supplied option makes sense 5006 if 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 5012 echo $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 5021 cat confdefs.h >>conftest.$ac_ext 5022 cat >>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 5033 int 5034 main () 5035 { 5036 call daxpy 5037 ; 5038 return 0; 5039 } 5040 _ACEOF 5041 rm -f conftest.$ac_objext conftest$ac_exeext 5042 if { (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 5067 echo "${ECHO_T}yes: $use_blas" >&6 5068 else 5069 echo "$as_me: failed program was:" >&5 5070 sed 's/^/| /' conftest.$ac_ext >&5 5071 5072 echo "$as_me:$LINENO: result: no" >&5 5073 echo "${ECHO_T}no" >&6 5074 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 5075 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 5076 { (exit 1); exit 1; }; } 5077 fi 5078 rm -f conftest.err conftest.$ac_objext \ 5079 conftest$ac_exeext conftest.$ac_ext 5080 ;; 5081 c) 5082 ac_ext=f 5083 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5084 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5085 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5086 case $ac_cv_f77_mangling in 5087 upper*) ac_val="DAXPY" ;; 5088 lower*) ac_val="daxpy" ;; 5089 *) ac_val="unknown" ;; 5090 esac 5091 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 5092 5093 cfuncdaxpy="$ac_val" 5094 5095 ac_ext=c 5096 ac_cpp='$CPP $CPPFLAGS' 5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5099 ac_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 5107 cat confdefs.h >>conftest.$ac_ext 5108 cat >>conftest.$ac_ext <<_ACEOF 5109 /* end confdefs.h. */ 5110 void $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 5119 int 5120 main () 5121 { 5122 $cfuncdaxpy() 5123 ; 5124 return 0; 5125 } 5126 _ACEOF 5127 rm -f conftest.$ac_objext conftest$ac_exeext 5128 if { (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 5150 else 5151 echo "$as_me: failed program was:" >&5 5152 sed 's/^/| /' conftest.$ac_ext >&5 5153 5154 flink_try=no 5155 fi 5156 rm -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 5164 echo "${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 5172 cat confdefs.h >>conftest.$ac_ext 5173 cat >>conftest.$ac_ext <<_ACEOF 5174 /* end confdefs.h. */ 5175 void $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 5184 int 5185 main () 5186 { 5187 $cfuncdaxpy() 5188 ; 5189 return 0; 5190 } 5191 _ACEOF 5192 rm -f conftest.$ac_objext conftest$ac_exeext 5193 if { (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 5220 echo "${ECHO_T}yes: $use_blas" >&6 5221 5222 else 5223 echo "$as_me: failed program was:" >&5 5224 sed 's/^/| /' conftest.$ac_ext >&5 5225 5226 LIBS="$flink_save_libs" 5227 echo "$as_me:$LINENO: result: no" >&5 5228 echo "${ECHO_T}no" >&6 5229 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 5230 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 5231 { (exit 1); exit 1; }; } 5232 fi 5233 rm -f conftest.err conftest.$ac_objext \ 5234 conftest$ac_exeext conftest.$ac_ext 5235 else 5236 echo "$as_me:$LINENO: result: no" >&5 5237 echo "${ECHO_T}no" >&6 5238 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 5239 echo "$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 5246 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5247 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5248 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5249 case $ac_cv_f77_mangling in 5250 upper*) ac_val="DAXPY" ;; 5251 lower*) ac_val="daxpy" ;; 5252 *) ac_val="unknown" ;; 5253 esac 5254 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 5255 5256 cfuncdaxpy="$ac_val" 5257 5258 ac_ext=c 5259 ac_cpp='$CPP $CPPFLAGS' 5260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5262 ac_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 5270 cat confdefs.h >>conftest.$ac_ext 5271 cat >>conftest.$ac_ext <<_ACEOF 5272 /* end confdefs.h. */ 5273 extern "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 5282 int 5283 main () 5284 { 5285 $cfuncdaxpy() 5286 ; 5287 return 0; 5288 } 5289 _ACEOF 5290 rm -f conftest.$ac_objext conftest$ac_exeext 5291 if { (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 5313 else 5314 echo "$as_me: failed program was:" >&5 5315 sed 's/^/| /' conftest.$ac_ext >&5 5316 5317 flink_try=no 5318 fi 5319 rm -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 5327 echo "${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 5335 cat confdefs.h >>conftest.$ac_ext 5336 cat >>conftest.$ac_ext <<_ACEOF 5337 /* end confdefs.h. */ 5338 extern "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 5347 int 5348 main () 5349 { 5350 $cfuncdaxpy() 5351 ; 5352 return 0; 5353 } 5354 _ACEOF 5355 rm -f conftest.$ac_objext conftest$ac_exeext 5356 if { (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 5383 echo "${ECHO_T}yes: $use_blas" >&6 5384 5385 else 5386 echo "$as_me: failed program was:" >&5 5387 sed 's/^/| /' conftest.$ac_ext >&5 5388 5389 LIBS="$flink_save_libs" 5390 echo "$as_me:$LINENO: result: no" >&5 5391 echo "${ECHO_T}no" >&6 5392 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 5393 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 5394 { (exit 1); exit 1; }; } 5395 fi 5396 rm -f conftest.err conftest.$ac_objext \ 5397 conftest$ac_exeext conftest.$ac_ext 5398 else 5399 echo "$as_me:$LINENO: result: no" >&5 5400 echo "${ECHO_T}no" >&6 5401 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 5402 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 5403 { (exit 1); exit 1; }; } 5404 fi 5405 fi 5406 ;; 5407 esac 5408 5409 LIBS="$coin_save_LIBS" 5410 fi 5411 else 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 5418 echo $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 5427 cat confdefs.h >>conftest.$ac_ext 5428 cat >>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 5439 int 5440 main () 5441 { 5442 call daxpy 5443 ; 5444 return 0; 5445 } 5446 _ACEOF 5447 rm -f conftest.$ac_objext conftest$ac_exeext 5448 if { (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 5474 echo "${ECHO_T}yes: $use_blas" >&6 5475 5476 else 5477 echo "$as_me: failed program was:" >&5 5478 sed 's/^/| /' conftest.$ac_ext >&5 5479 5480 echo "$as_me:$LINENO: result: no" >&5 5481 echo "${ECHO_T}no" >&6 5482 fi 5483 rm -f conftest.err conftest.$ac_objext \ 5484 conftest$ac_exeext conftest.$ac_ext 5485 ;; 5486 c) 5487 ac_ext=f 5488 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5489 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5490 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5491 case $ac_cv_f77_mangling in 5492 upper*) ac_val="DAXPY" ;; 5493 lower*) ac_val="daxpy" ;; 5494 *) ac_val="unknown" ;; 5495 esac 5496 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 5497 5498 cfuncdaxpy="$ac_val" 5499 5500 ac_ext=c 5501 ac_cpp='$CPP $CPPFLAGS' 5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5504 ac_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 5512 cat confdefs.h >>conftest.$ac_ext 5513 cat >>conftest.$ac_ext <<_ACEOF 5514 /* end confdefs.h. */ 5515 void $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 5524 int 5525 main () 5526 { 5527 $cfuncdaxpy() 5528 ; 5529 return 0; 5530 } 5531 _ACEOF 5532 rm -f conftest.$ac_objext conftest$ac_exeext 5533 if { (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 5555 else 5556 echo "$as_me: failed program was:" >&5 5557 sed 's/^/| /' conftest.$ac_ext >&5 5558 5559 flink_try=no 5560 fi 5561 rm -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 5570 echo "${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 5579 cat confdefs.h >>conftest.$ac_ext 5580 cat >>conftest.$ac_ext <<_ACEOF 5581 /* end confdefs.h. */ 5582 void $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 5591 int 5592 main () 5593 { 5594 $cfuncdaxpy() 5595 ; 5596 return 0; 5597 } 5598 _ACEOF 5599 rm -f conftest.$ac_objext conftest$ac_exeext 5600 if { (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 5628 echo "${ECHO_T}yes: $use_blas" >&6 5629 5630 5631 else 5632 echo "$as_me: failed program was:" >&5 5633 sed 's/^/| /' conftest.$ac_ext >&5 5634 5635 LIBS="$flink_save_libs" 5636 echo "$as_me:$LINENO: result: no" >&5 5637 echo "${ECHO_T}no" >&6 5638 fi 5639 rm -f conftest.err conftest.$ac_objext \ 5640 conftest$ac_exeext conftest.$ac_ext 5641 else 5642 echo "$as_me:$LINENO: result: no" >&5 5643 echo "${ECHO_T}no" >&6 5644 fi 5645 fi 5646 ;; 5647 cc|cpp) 5648 ac_ext=f 5649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5652 case $ac_cv_f77_mangling in 5653 upper*) ac_val="DAXPY" ;; 5654 lower*) ac_val="daxpy" ;; 5655 *) ac_val="unknown" ;; 5656 esac 5657 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 5658 5659 cfuncdaxpy="$ac_val" 5660 5661 ac_ext=c 5662 ac_cpp='$CPP $CPPFLAGS' 5663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5665 ac_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 5673 cat confdefs.h >>conftest.$ac_ext 5674 cat >>conftest.$ac_ext <<_ACEOF 5675 /* end confdefs.h. */ 5676 extern "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 5685 int 5686 main () 5687 { 5688 $cfuncdaxpy() 5689 ; 5690 return 0; 5691 } 5692 _ACEOF 5693 rm -f conftest.$ac_objext conftest$ac_exeext 5694 if { (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 5716 else 5717 echo "$as_me: failed program was:" >&5 5718 sed 's/^/| /' conftest.$ac_ext >&5 5719 5720 flink_try=no 5721 fi 5722 rm -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 5731 echo "${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 5740 cat confdefs.h >>conftest.$ac_ext 5741 cat >>conftest.$ac_ext <<_ACEOF 5742 /* end confdefs.h. */ 5743 extern "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 5752 int 5753 main () 5754 { 5755 $cfuncdaxpy() 5756 ; 5757 return 0; 5758 } 5759 _ACEOF 5760 rm -f conftest.$ac_objext conftest$ac_exeext 5761 if { (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 5789 echo "${ECHO_T}yes: $use_blas" >&6 5790 5791 5792 else 5793 echo "$as_me: failed program was:" >&5 5794 sed 's/^/| /' conftest.$ac_ext >&5 5795 5796 LIBS="$flink_save_libs" 5797 echo "$as_me:$LINENO: result: no" >&5 5798 echo "${ECHO_T}no" >&6 5799 fi 5800 rm -f conftest.err conftest.$ac_objext \ 5801 conftest$ac_exeext conftest.$ac_ext 5802 else 5803 echo "$as_me:$LINENO: result: no" >&5 5804 echo "${ECHO_T}no" >&6 5805 fi 5806 fi 5807 ;; 5808 esac 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 5821 echo $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 5830 cat confdefs.h >>conftest.$ac_ext 5831 cat >>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 5842 int 5843 main () 5844 { 5845 call daxpy 5846 ; 5847 return 0; 5848 } 5849 _ACEOF 5850 rm -f conftest.$ac_objext conftest$ac_exeext 5851 if { (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 5877 echo "${ECHO_T}yes: $use_blas" >&6 5878 5879 else 5880 echo "$as_me: failed program was:" >&5 5881 sed 's/^/| /' conftest.$ac_ext >&5 5882 5883 echo "$as_me:$LINENO: result: no" >&5 5884 echo "${ECHO_T}no" >&6 5885 fi 5886 rm -f conftest.err conftest.$ac_objext \ 5887 conftest$ac_exeext conftest.$ac_ext 5888 ;; 5889 c) 5890 ac_ext=f 5891 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 5892 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5893 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 5894 case $ac_cv_f77_mangling in 5895 upper*) ac_val="DAXPY" ;; 5896 lower*) ac_val="daxpy" ;; 5897 *) ac_val="unknown" ;; 5898 esac 5899 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 5900 5901 cfuncdaxpy="$ac_val" 5902 5903 ac_ext=c 5904 ac_cpp='$CPP $CPPFLAGS' 5905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5907 ac_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 5915 cat confdefs.h >>conftest.$ac_ext 5916 cat >>conftest.$ac_ext <<_ACEOF 5917 /* end confdefs.h. */ 5918 void $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 5927 int 5928 main () 5929 { 5930 $cfuncdaxpy() 5931 ; 5932 return 0; 5933 } 5934 _ACEOF 5935 rm -f conftest.$ac_objext conftest$ac_exeext 5936 if { (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 5958 else 5959 echo "$as_me: failed program was:" >&5 5960 sed 's/^/| /' conftest.$ac_ext >&5 5961 5962 flink_try=no 5963 fi 5964 rm -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 5973 echo "${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 5982 cat confdefs.h >>conftest.$ac_ext 5983 cat >>conftest.$ac_ext <<_ACEOF 5984 /* end confdefs.h. */ 5985 void $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 5994 int 5995 main () 5996 { 5997 $cfuncdaxpy() 5998 ; 5999 return 0; 6000 } 6001 _ACEOF 6002 rm -f conftest.$ac_objext conftest$ac_exeext 6003 if { (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 6031 echo "${ECHO_T}yes: $use_blas" >&6 6032 6033 6034 else 6035 echo "$as_me: failed program was:" >&5 6036 sed 's/^/| /' conftest.$ac_ext >&5 6037 6038 LIBS="$flink_save_libs" 6039 echo "$as_me:$LINENO: result: no" >&5 6040 echo "${ECHO_T}no" >&6 6041 fi 6042 rm -f conftest.err conftest.$ac_objext \ 6043 conftest$ac_exeext conftest.$ac_ext 6044 else 6045 echo "$as_me:$LINENO: result: no" >&5 6046 echo "${ECHO_T}no" >&6 6047 fi 6048 fi 6049 ;; 6050 cc|cpp) 6051 ac_ext=f 6052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6055 case $ac_cv_f77_mangling in 6056 upper*) ac_val="DAXPY" ;; 6057 lower*) ac_val="daxpy" ;; 6058 *) ac_val="unknown" ;; 6059 esac 6060 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 6061 6062 cfuncdaxpy="$ac_val" 6063 6064 ac_ext=c 6065 ac_cpp='$CPP $CPPFLAGS' 6066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6068 ac_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 6076 cat confdefs.h >>conftest.$ac_ext 6077 cat >>conftest.$ac_ext <<_ACEOF 6078 /* end confdefs.h. */ 6079 extern "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 6088 int 6089 main () 6090 { 6091 $cfuncdaxpy() 6092 ; 6093 return 0; 6094 } 6095 _ACEOF 6096 rm -f conftest.$ac_objext conftest$ac_exeext 6097 if { (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 6119 else 6120 echo "$as_me: failed program was:" >&5 6121 sed 's/^/| /' conftest.$ac_ext >&5 6122 6123 flink_try=no 6124 fi 6125 rm -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 6134 echo "${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 6143 cat confdefs.h >>conftest.$ac_ext 6144 cat >>conftest.$ac_ext <<_ACEOF 6145 /* end confdefs.h. */ 6146 extern "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 6155 int 6156 main () 6157 { 6158 $cfuncdaxpy() 6159 ; 6160 return 0; 6161 } 6162 _ACEOF 6163 rm -f conftest.$ac_objext conftest$ac_exeext 6164 if { (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 6192 echo "${ECHO_T}yes: $use_blas" >&6 6193 6194 6195 else 6196 echo "$as_me: failed program was:" >&5 6197 sed 's/^/| /' conftest.$ac_ext >&5 6198 6199 LIBS="$flink_save_libs" 6200 echo "$as_me:$LINENO: result: no" >&5 6201 echo "${ECHO_T}no" >&6 6202 fi 6203 rm -f conftest.err conftest.$ac_objext \ 6204 conftest$ac_exeext conftest.$ac_ext 6205 else 6206 echo "$as_me:$LINENO: result: no" >&5 6207 echo "${ECHO_T}no" >&6 6208 fi 6209 fi 6210 ;; 6211 esac 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 6226 echo $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 6233 cat confdefs.h >>conftest.$ac_ext 6234 cat >>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 6245 int 6246 main () 6247 { 6248 call daxpy 6249 ; 6250 return 0; 6251 } 6252 _ACEOF 6253 rm -f conftest.$ac_objext conftest$ac_exeext 6254 if { (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 6277 echo "${ECHO_T}yes: $use_blas" >&6 6278 6279 else 6280 echo "$as_me: failed program was:" >&5 6281 sed 's/^/| /' conftest.$ac_ext >&5 6282 6283 echo "$as_me:$LINENO: result: no" >&5 6284 echo "${ECHO_T}no" >&6 6285 fi 6286 rm -f conftest.err conftest.$ac_objext \ 6287 conftest$ac_exeext conftest.$ac_ext 6288 ;; 6289 c) 6290 ac_ext=f 6291 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6292 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6293 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6294 case $ac_cv_f77_mangling in 6295 upper*) ac_val="DAXPY" ;; 6296 lower*) ac_val="daxpy" ;; 6297 *) ac_val="unknown" ;; 6298 esac 6299 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 6300 6301 cfuncdaxpy="$ac_val" 6302 6303 ac_ext=c 6304 ac_cpp='$CPP $CPPFLAGS' 6305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6307 ac_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 6315 cat confdefs.h >>conftest.$ac_ext 6316 cat >>conftest.$ac_ext <<_ACEOF 6317 /* end confdefs.h. */ 6318 void $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 6327 int 6328 main () 6329 { 6330 $cfuncdaxpy() 6331 ; 6332 return 0; 6333 } 6334 _ACEOF 6335 rm -f conftest.$ac_objext conftest$ac_exeext 6336 if { (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 6358 else 6359 echo "$as_me: failed program was:" >&5 6360 sed 's/^/| /' conftest.$ac_ext >&5 6361 6362 flink_try=no 6363 fi 6364 rm -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 6370 echo "${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 6379 cat confdefs.h >>conftest.$ac_ext 6380 cat >>conftest.$ac_ext <<_ACEOF 6381 /* end confdefs.h. */ 6382 void $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 6391 int 6392 main () 6393 { 6394 $cfuncdaxpy() 6395 ; 6396 return 0; 6397 } 6398 _ACEOF 6399 rm -f conftest.$ac_objext conftest$ac_exeext 6400 if { (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 6425 echo "${ECHO_T}yes: $use_blas" >&6 6426 6427 6428 else 6429 echo "$as_me: failed program was:" >&5 6430 sed 's/^/| /' conftest.$ac_ext >&5 6431 6432 LIBS="$flink_save_libs" 6433 echo "$as_me:$LINENO: result: no" >&5 6434 echo "${ECHO_T}no" >&6 6435 fi 6436 rm -f conftest.err conftest.$ac_objext \ 6437 conftest$ac_exeext conftest.$ac_ext 6438 else 6439 echo "$as_me:$LINENO: result: no" >&5 6440 echo "${ECHO_T}no" >&6 6441 fi 6442 fi 6443 ;; 6444 cc|cpp) 6445 ac_ext=f 6446 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6447 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6448 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6449 case $ac_cv_f77_mangling in 6450 upper*) ac_val="DAXPY" ;; 6451 lower*) ac_val="daxpy" ;; 6452 *) ac_val="unknown" ;; 6453 esac 6454 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 6455 6456 cfuncdaxpy="$ac_val" 6457 6458 ac_ext=c 6459 ac_cpp='$CPP $CPPFLAGS' 6460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6462 ac_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 6470 cat confdefs.h >>conftest.$ac_ext 6471 cat >>conftest.$ac_ext <<_ACEOF 6472 /* end confdefs.h. */ 6473 extern "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 6482 int 6483 main () 6484 { 6485 $cfuncdaxpy() 6486 ; 6487 return 0; 6488 } 6489 _ACEOF 6490 rm -f conftest.$ac_objext conftest$ac_exeext 6491 if { (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 6513 else 6514 echo "$as_me: failed program was:" >&5 6515 sed 's/^/| /' conftest.$ac_ext >&5 6516 6517 flink_try=no 6518 fi 6519 rm -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 6525 echo "${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 6534 cat confdefs.h >>conftest.$ac_ext 6535 cat >>conftest.$ac_ext <<_ACEOF 6536 /* end confdefs.h. */ 6537 extern "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 6546 int 6547 main () 6548 { 6549 $cfuncdaxpy() 6550 ; 6551 return 0; 6552 } 6553 _ACEOF 6554 rm -f conftest.$ac_objext conftest$ac_exeext 6555 if { (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 6580 echo "${ECHO_T}yes: $use_blas" >&6 6581 6582 6583 else 6584 echo "$as_me: failed program was:" >&5 6585 sed 's/^/| /' conftest.$ac_ext >&5 6586 6587 LIBS="$flink_save_libs" 6588 echo "$as_me:$LINENO: result: no" >&5 6589 echo "${ECHO_T}no" >&6 6590 fi 6591 rm -f conftest.err conftest.$ac_objext \ 6592 conftest$ac_exeext conftest.$ac_ext 6593 else 6594 echo "$as_me:$LINENO: result: no" >&5 6595 echo "${ECHO_T}no" >&6 6596 fi 6597 fi 6598 ;; 6599 esac 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 6605 echo $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 6612 cat confdefs.h >>conftest.$ac_ext 6613 cat >>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 6624 int 6625 main () 6626 { 6627 call daxpy 6628 ; 6629 return 0; 6630 } 6631 _ACEOF 6632 rm -f conftest.$ac_objext conftest$ac_exeext 6633 if { (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 6656 echo "${ECHO_T}yes: $use_blas" >&6 6657 6658 else 6659 echo "$as_me: failed program was:" >&5 6660 sed 's/^/| /' conftest.$ac_ext >&5 6661 6662 echo "$as_me:$LINENO: result: no" >&5 6663 echo "${ECHO_T}no" >&6 6664 fi 6665 rm -f conftest.err conftest.$ac_objext \ 6666 conftest$ac_exeext conftest.$ac_ext 6667 ;; 6668 c) 6669 ac_ext=f 6670 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6671 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6672 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6673 case $ac_cv_f77_mangling in 6674 upper*) ac_val="DAXPY" ;; 6675 lower*) ac_val="daxpy" ;; 6676 *) ac_val="unknown" ;; 6677 esac 6678 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 6679 6680 cfuncdaxpy="$ac_val" 6681 6682 ac_ext=c 6683 ac_cpp='$CPP $CPPFLAGS' 6684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6686 ac_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 6694 cat confdefs.h >>conftest.$ac_ext 6695 cat >>conftest.$ac_ext <<_ACEOF 6696 /* end confdefs.h. */ 6697 void $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 6706 int 6707 main () 6708 { 6709 $cfuncdaxpy() 6710 ; 6711 return 0; 6712 } 6713 _ACEOF 6714 rm -f conftest.$ac_objext conftest$ac_exeext 6715 if { (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 6737 else 6738 echo "$as_me: failed program was:" >&5 6739 sed 's/^/| /' conftest.$ac_ext >&5 6740 6741 flink_try=no 6742 fi 6743 rm -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 6749 echo "${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 6758 cat confdefs.h >>conftest.$ac_ext 6759 cat >>conftest.$ac_ext <<_ACEOF 6760 /* end confdefs.h. */ 6761 void $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 6770 int 6771 main () 6772 { 6773 $cfuncdaxpy() 6774 ; 6775 return 0; 6776 } 6777 _ACEOF 6778 rm -f conftest.$ac_objext conftest$ac_exeext 6779 if { (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 6804 echo "${ECHO_T}yes: $use_blas" >&6 6805 6806 6807 else 6808 echo "$as_me: failed program was:" >&5 6809 sed 's/^/| /' conftest.$ac_ext >&5 6810 6811 LIBS="$flink_save_libs" 6812 echo "$as_me:$LINENO: result: no" >&5 6813 echo "${ECHO_T}no" >&6 6814 fi 6815 rm -f conftest.err conftest.$ac_objext \ 6816 conftest$ac_exeext conftest.$ac_ext 6817 else 6818 echo "$as_me:$LINENO: result: no" >&5 6819 echo "${ECHO_T}no" >&6 6820 fi 6821 fi 6822 ;; 6823 cc|cpp) 6824 ac_ext=f 6825 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 6826 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6827 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 6828 case $ac_cv_f77_mangling in 6829 upper*) ac_val="DAXPY" ;; 6830 lower*) ac_val="daxpy" ;; 6831 *) ac_val="unknown" ;; 6832 esac 6833 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 6834 6835 cfuncdaxpy="$ac_val" 6836 6837 ac_ext=c 6838 ac_cpp='$CPP $CPPFLAGS' 6839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6841 ac_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 6849 cat confdefs.h >>conftest.$ac_ext 6850 cat >>conftest.$ac_ext <<_ACEOF 6851 /* end confdefs.h. */ 6852 extern "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 6861 int 6862 main () 6863 { 6864 $cfuncdaxpy() 6865 ; 6866 return 0; 6867 } 6868 _ACEOF 6869 rm -f conftest.$ac_objext conftest$ac_exeext 6870 if { (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 6892 else 6893 echo "$as_me: failed program was:" >&5 6894 sed 's/^/| /' conftest.$ac_ext >&5 6895 6896 flink_try=no 6897 fi 6898 rm -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 6904 echo "${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 6913 cat confdefs.h >>conftest.$ac_ext 6914 cat >>conftest.$ac_ext <<_ACEOF 6915 /* end confdefs.h. */ 6916 extern "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 6925 int 6926 main () 6927 { 6928 $cfuncdaxpy() 6929 ; 6930 return 0; 6931 } 6932 _ACEOF 6933 rm -f conftest.$ac_objext conftest$ac_exeext 6934 if { (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 6959 echo "${ECHO_T}yes: $use_blas" >&6 6960 6961 6962 else 6963 echo "$as_me: failed program was:" >&5 6964 sed 's/^/| /' conftest.$ac_ext >&5 6965 6966 LIBS="$flink_save_libs" 6967 echo "$as_me:$LINENO: result: no" >&5 6968 echo "${ECHO_T}no" >&6 6969 fi 6970 rm -f conftest.err conftest.$ac_objext \ 6971 conftest$ac_exeext conftest.$ac_ext 6972 else 6973 echo "$as_me:$LINENO: result: no" >&5 6974 echo "${ECHO_T}no" >&6 6975 fi 6976 fi 6977 ;; 6978 esac 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 6988 echo $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 6997 cat confdefs.h >>conftest.$ac_ext 6998 cat >>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 7009 int 7010 main () 7011 { 7012 call daxpy 7013 ; 7014 return 0; 7015 } 7016 _ACEOF 7017 rm -f conftest.$ac_objext conftest$ac_exeext 7018 if { (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 7044 echo "${ECHO_T}yes: $use_blas" >&6 7045 7046 else 7047 echo "$as_me: failed program was:" >&5 7048 sed 's/^/| /' conftest.$ac_ext >&5 7049 7050 echo "$as_me:$LINENO: result: no" >&5 7051 echo "${ECHO_T}no" >&6 7052 fi 7053 rm -f conftest.err conftest.$ac_objext \ 7054 conftest$ac_exeext conftest.$ac_ext 7055 ;; 7056 c) 7057 ac_ext=f 7058 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7059 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7060 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7061 case $ac_cv_f77_mangling in 7062 upper*) ac_val="DAXPY" ;; 7063 lower*) ac_val="daxpy" ;; 7064 *) ac_val="unknown" ;; 7065 esac 7066 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 7067 7068 cfuncdaxpy="$ac_val" 7069 7070 ac_ext=c 7071 ac_cpp='$CPP $CPPFLAGS' 7072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7074 ac_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 7082 cat confdefs.h >>conftest.$ac_ext 7083 cat >>conftest.$ac_ext <<_ACEOF 7084 /* end confdefs.h. */ 7085 void $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 7094 int 7095 main () 7096 { 7097 $cfuncdaxpy() 7098 ; 7099 return 0; 7100 } 7101 _ACEOF 7102 rm -f conftest.$ac_objext conftest$ac_exeext 7103 if { (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 7125 else 7126 echo "$as_me: failed program was:" >&5 7127 sed 's/^/| /' conftest.$ac_ext >&5 7128 7129 flink_try=no 7130 fi 7131 rm -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 7140 echo "${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 7149 cat confdefs.h >>conftest.$ac_ext 7150 cat >>conftest.$ac_ext <<_ACEOF 7151 /* end confdefs.h. */ 7152 void $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 7161 int 7162 main () 7163 { 7164 $cfuncdaxpy() 7165 ; 7166 return 0; 7167 } 7168 _ACEOF 7169 rm -f conftest.$ac_objext conftest$ac_exeext 7170 if { (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 7198 echo "${ECHO_T}yes: $use_blas" >&6 7199 7200 7201 else 7202 echo "$as_me: failed program was:" >&5 7203 sed 's/^/| /' conftest.$ac_ext >&5 7204 7205 LIBS="$flink_save_libs" 7206 echo "$as_me:$LINENO: result: no" >&5 7207 echo "${ECHO_T}no" >&6 7208 fi 7209 rm -f conftest.err conftest.$ac_objext \ 7210 conftest$ac_exeext conftest.$ac_ext 7211 else 7212 echo "$as_me:$LINENO: result: no" >&5 7213 echo "${ECHO_T}no" >&6 7214 fi 7215 fi 7216 ;; 7217 cc|cpp) 7218 ac_ext=f 7219 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7220 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7221 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7222 case $ac_cv_f77_mangling in 7223 upper*) ac_val="DAXPY" ;; 7224 lower*) ac_val="daxpy" ;; 7225 *) ac_val="unknown" ;; 7226 esac 7227 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 7228 7229 cfuncdaxpy="$ac_val" 7230 7231 ac_ext=c 7232 ac_cpp='$CPP $CPPFLAGS' 7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7235 ac_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 7243 cat confdefs.h >>conftest.$ac_ext 7244 cat >>conftest.$ac_ext <<_ACEOF 7245 /* end confdefs.h. */ 7246 extern "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 7255 int 7256 main () 7257 { 7258 $cfuncdaxpy() 7259 ; 7260 return 0; 7261 } 7262 _ACEOF 7263 rm -f conftest.$ac_objext conftest$ac_exeext 7264 if { (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 7286 else 7287 echo "$as_me: failed program was:" >&5 7288 sed 's/^/| /' conftest.$ac_ext >&5 7289 7290 flink_try=no 7291 fi 7292 rm -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 7301 echo "${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 7310 cat confdefs.h >>conftest.$ac_ext 7311 cat >>conftest.$ac_ext <<_ACEOF 7312 /* end confdefs.h. */ 7313 extern "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 7322 int 7323 main () 7324 { 7325 $cfuncdaxpy() 7326 ; 7327 return 0; 7328 } 7329 _ACEOF 7330 rm -f conftest.$ac_objext conftest$ac_exeext 7331 if { (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 7359 echo "${ECHO_T}yes: $use_blas" >&6 7360 7361 7362 else 7363 echo "$as_me: failed program was:" >&5 7364 sed 's/^/| /' conftest.$ac_ext >&5 7365 7366 LIBS="$flink_save_libs" 7367 echo "$as_me:$LINENO: result: no" >&5 7368 echo "${ECHO_T}no" >&6 7369 fi 7370 rm -f conftest.err conftest.$ac_objext \ 7371 conftest$ac_exeext conftest.$ac_ext 7372 else 7373 echo "$as_me:$LINENO: result: no" >&5 7374 echo "${ECHO_T}no" >&6 7375 fi 7376 fi 7377 ;; 7378 esac 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 7386 echo $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 7395 cat confdefs.h >>conftest.$ac_ext 7396 cat >>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 7407 int 7408 main () 7409 { 7410 call daxpy 7411 ; 7412 return 0; 7413 } 7414 _ACEOF 7415 rm -f conftest.$ac_objext conftest$ac_exeext 7416 if { (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 7442 echo "${ECHO_T}yes: $use_blas" >&6 7443 7444 else 7445 echo "$as_me: failed program was:" >&5 7446 sed 's/^/| /' conftest.$ac_ext >&5 7447 7448 echo "$as_me:$LINENO: result: no" >&5 7449 echo "${ECHO_T}no" >&6 7450 fi 7451 rm -f conftest.err conftest.$ac_objext \ 7452 conftest$ac_exeext conftest.$ac_ext 7453 ;; 7454 c) 7455 ac_ext=f 7456 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7457 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7458 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7459 case $ac_cv_f77_mangling in 7460 upper*) ac_val="DAXPY" ;; 7461 lower*) ac_val="daxpy" ;; 7462 *) ac_val="unknown" ;; 7463 esac 7464 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 7465 7466 cfuncdaxpy="$ac_val" 7467 7468 ac_ext=c 7469 ac_cpp='$CPP $CPPFLAGS' 7470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7472 ac_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 7480 cat confdefs.h >>conftest.$ac_ext 7481 cat >>conftest.$ac_ext <<_ACEOF 7482 /* end confdefs.h. */ 7483 void $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 7492 int 7493 main () 7494 { 7495 $cfuncdaxpy() 7496 ; 7497 return 0; 7498 } 7499 _ACEOF 7500 rm -f conftest.$ac_objext conftest$ac_exeext 7501 if { (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 7523 else 7524 echo "$as_me: failed program was:" >&5 7525 sed 's/^/| /' conftest.$ac_ext >&5 7526 7527 flink_try=no 7528 fi 7529 rm -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 7538 echo "${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 7547 cat confdefs.h >>conftest.$ac_ext 7548 cat >>conftest.$ac_ext <<_ACEOF 7549 /* end confdefs.h. */ 7550 void $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 7559 int 7560 main () 7561 { 7562 $cfuncdaxpy() 7563 ; 7564 return 0; 7565 } 7566 _ACEOF 7567 rm -f conftest.$ac_objext conftest$ac_exeext 7568 if { (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 7596 echo "${ECHO_T}yes: $use_blas" >&6 7597 7598 7599 else 7600 echo "$as_me: failed program was:" >&5 7601 sed 's/^/| /' conftest.$ac_ext >&5 7602 7603 LIBS="$flink_save_libs" 7604 echo "$as_me:$LINENO: result: no" >&5 7605 echo "${ECHO_T}no" >&6 7606 fi 7607 rm -f conftest.err conftest.$ac_objext \ 7608 conftest$ac_exeext conftest.$ac_ext 7609 else 7610 echo "$as_me:$LINENO: result: no" >&5 7611 echo "${ECHO_T}no" >&6 7612 fi 7613 fi 7614 ;; 7615 cc|cpp) 7616 ac_ext=f 7617 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 7618 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7619 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 7620 case $ac_cv_f77_mangling in 7621 upper*) ac_val="DAXPY" ;; 7622 lower*) ac_val="daxpy" ;; 7623 *) ac_val="unknown" ;; 7624 esac 7625 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 7626 7627 cfuncdaxpy="$ac_val" 7628 7629 ac_ext=c 7630 ac_cpp='$CPP $CPPFLAGS' 7631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7633 ac_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 7641 cat confdefs.h >>conftest.$ac_ext 7642 cat >>conftest.$ac_ext <<_ACEOF 7643 /* end confdefs.h. */ 7644 extern "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 7653 int 7654 main () 7655 { 7656 $cfuncdaxpy() 7657 ; 7658 return 0; 7659 } 7660 _ACEOF 7661 rm -f conftest.$ac_objext conftest$ac_exeext 7662 if { (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 7684 else 7685 echo "$as_me: failed program was:" >&5 7686 sed 's/^/| /' conftest.$ac_ext >&5 7687 7688 flink_try=no 7689 fi 7690 rm -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 7699 echo "${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 7708 cat confdefs.h >>conftest.$ac_ext 7709 cat >>conftest.$ac_ext <<_ACEOF 7710 /* end confdefs.h. */ 7711 extern "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 7720 int 7721 main () 7722 { 7723 $cfuncdaxpy() 7724 ; 7725 return 0; 7726 } 7727 _ACEOF 7728 rm -f conftest.$ac_objext conftest$ac_exeext 7729 if { (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 7757 echo "${ECHO_T}yes: $use_blas" >&6 7758 7759 7760 else 7761 echo "$as_me: failed program was:" >&5 7762 sed 's/^/| /' conftest.$ac_ext >&5 7763 7764 LIBS="$flink_save_libs" 7765 echo "$as_me:$LINENO: result: no" >&5 7766 echo "${ECHO_T}no" >&6 7767 fi 7768 rm -f conftest.err conftest.$ac_objext \ 7769 conftest$ac_exeext conftest.$ac_ext 7770 else 7771 echo "$as_me:$LINENO: result: no" >&5 7772 echo "${ECHO_T}no" >&6 7773 fi 7774 fi 7775 ;; 7776 esac 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 7785 fi 7786 7787 if test "x$use_blas" = xBUILD ; then 7788 7789 echo "$as_me:$LINENO: checking for COIN-OR package Blas" >&5 7790 echo $ECHO_N "checking for COIN-OR package Blas... $ECHO_C" >&6 7791 7792 coin_has_blas=notGiven 7793 7794 # check if user wants to skip package in any case 7795 if 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 7801 fi 7802 7803 BLAS_LIBS= 7804 BLAS_CFLAGS= 7805 BLAS_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 7824 if test $coin_has_blas != skipping; then 7825 7826 # Check whether --with-m4_tolower(Blas)-lib or --without-m4_tolower(Blas)-lib was given. 7827 if 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 7840 fi; 7841 fi 7842 7843 if test $coin_has_blas != skipping; then 7844 7845 # Check whether --with-m4_tolower(Blas)-incdir or --without-m4_tolower(Blas)-incdir was given. 7846 if 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 7856 fi; 7857 fi 7858 7859 if test $coin_has_blas != skipping; then 7860 7861 # Check whether --with-m4_tolower(Blas)-datadir or --without-m4_tolower(Blas)-datadir was given. 7862 if 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 7871 fi; 7872 fi 7873 7874 if 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 7886 if 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 7902 echo "${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 7923 echo "${ECHO_T}not given: $BLAS_PKG_ERRORS" >&6 7924 7925 fi 7926 else 7927 { { echo "$as_me:$LINENO: error: \"Cannot check for existance of module Blas without pkg-config\"" >&5 7928 echo "$as_me: error: \"Cannot check for existance of module Blas without pkg-config\"" >&2;} 7929 { (exit 1); exit 1; }; } 7930 fi 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 7941 echo "${ECHO_T}skipped check via pkg-config, redirect to fallback" >&6 7942 7943 echo "$as_me:$LINENO: checking for COIN-OR package Blas (fallback)" >&5 7944 echo $ECHO_N "checking for COIN-OR package Blas (fallback)... $ECHO_C" >&6 7945 7946 coin_has_blas=notGiven 7947 BLAS_LIBS= 7948 BLAS_LIBS_INSTALLED= 7949 BLAS_CFLAGS= 7950 BLAS_CFLAGS_INSTALLED= 7951 BLAS_DATA= 7952 BLAS_DATA_INSTALLED= 7953 7954 # initial list of dependencies is "coinblas", but we need to filter out version number specifications (= x, <= x, >= x) 7955 projtoprocess="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 7961 allproj="" 7962 allpcfiles="" 7963 allpcifiles="" 7964 while 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 7979 echo "$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 8008 echo "${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 8035 done 8036 8037 if 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 8132 echo "${ECHO_T}yes" >&6 8133 8134 cat >>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 8158 fi 8159 8160 8161 8162 if test $coin_has_blas != notGiven && 8163 test $coin_has_blas != skipping; then 8164 COIN_HAS_BLAS_TRUE= 8165 COIN_HAS_BLAS_FALSE='#' 8166 else 8167 COIN_HAS_BLAS_TRUE='#' 8168 COIN_HAS_BLAS_FALSE= 8169 fi 8170 8171 8172 8173 fi 8174 8175 else 8176 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 8177 echo "${ECHO_T}$coin_has_blas" >&6 8178 fi 8179 8180 if test $coin_has_blas != skipping && 8181 test $coin_has_blas != notGiven ; then 8182 8183 cat >>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. 8189 if test "${enable_interpackage_dependencies+set}" = set; then 8190 enableval="$enable_interpackage_dependencies" 8191 8192 else 8193 enable_interpackage_dependencies=yes 8194 fi; 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 8211 echo "$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 8215 echo "$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 8219 echo "$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 8223 echo "$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 8227 echo "$as_me: Blas CFLAGS are $BLAS_CFLAGS" >&6;} 8228 fi 8229 8230 { echo "$as_me:$LINENO: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&5 8231 echo "$as_me: LapackLib CFLAGS are $LAPACKLIB_CFLAGS" >&6;} 8232 { echo "$as_me:$LINENO: LapackLib LIBS are $LAPACKLIB_LIBS" >&5 8233 echo "$as_me: LapackLib LIBS are $LAPACKLIB_LIBS" >&6;} 8234 { echo "$as_me:$LINENO: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&5 8235 echo "$as_me: LapackLib DEPENDENCIES are $LAPACKLIB_DEPENDENCIES" >&6;} 8236 8237 fi 8238 fi 8239 8240 # Define the Makefile conditional 8241 8242 8243 if test $coin_has_blas != notGiven && 8244 test $coin_has_blas != skipping; then 8245 COIN_HAS_BLAS_TRUE= 8246 COIN_HAS_BLAS_FALSE='#' 8247 else 8248 COIN_HAS_BLAS_TRUE='#' 8249 COIN_HAS_BLAS_FALSE= 8250 fi 8251 8252 8253 8254 8255 elif test "x$use_blas" != x && test "$use_blas" != no; then 8256 coin_has_blas=yes 8257 8258 8259 if test 0 = 0; then 8260 COIN_HAS_BLAS_TRUE= 8261 COIN_HAS_BLAS_FALSE='#' 8262 else 8263 COIN_HAS_BLAS_TRUE='#' 8264 COIN_HAS_BLAS_FALSE= 8265 fi 8266 8267 8268 cat >>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 8284 else 8285 coin_has_blas=no 8286 8287 8288 if test 0 = 1; then 8289 COIN_HAS_BLAS_TRUE= 8290 COIN_HAS_BLAS_FALSE='#' 8291 else 8292 COIN_HAS_BLAS_TRUE='#' 8293 COIN_HAS_BLAS_FALSE= 8294 fi 8295 8296 fi 8297 8298 8299 8300 8301 8302 8303 8304 8305 if test $coin_has_blas != yes; then 8306 { { echo "$as_me:$LINENO: error: Required package BLAS not found." >&5 8307 echo "$as_me: error: Required package BLAS not found." >&2;} 8308 { (exit 1); exit 1; }; } 8309 fi 8310 8311 # FLIBS will be needed to link against lapack library, so add them to LAPACKLIB_PCLIBS 8312 LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS" 4981 8313 4982 8314 # Take care that optimization is disbled for DLAMCH.F … … 6645 9977 *-*-irix6*) 6646 9978 # Find out which ABI we are using. 6647 echo '#line 6647"configure"' > conftest.$ac_ext9979 echo '#line 9979 "configure"' > conftest.$ac_ext 6648 9980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6649 9981 (eval $ac_compile) 2>&5 … … 9122 12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9123 12455 -e 's:$: $lt_compiler_flag:'` 9124 (eval echo "\"\$as_me: 9124: $lt_compile\"" >&5)12456 (eval echo "\"\$as_me:12456: $lt_compile\"" >&5) 9125 12457 (eval "$lt_compile" 2>conftest.err) 9126 12458 ac_status=$? 9127 12459 cat conftest.err >&5 9128 echo "$as_me: 9128: \$? = $ac_status" >&512460 echo "$as_me:12460: \$? = $ac_status" >&5 9129 12461 if (exit $ac_status) && test -s "$ac_outfile"; then 9130 12462 # The compiler can only warn and ignore the option if not recognized … … 9390 12722 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9391 12723 -e 's:$: $lt_compiler_flag:'` 9392 (eval echo "\"\$as_me: 9392: $lt_compile\"" >&5)12724 (eval echo "\"\$as_me:12724: $lt_compile\"" >&5) 9393 12725 (eval "$lt_compile" 2>conftest.err) 9394 12726 ac_status=$? 9395 12727 cat conftest.err >&5 9396 echo "$as_me: 9396: \$? = $ac_status" >&512728 echo "$as_me:12728: \$? = $ac_status" >&5 9397 12729 if (exit $ac_status) && test -s "$ac_outfile"; then 9398 12730 # The compiler can only warn and ignore the option if not recognized … … 9494 12826 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9495 12827 -e 's:$: $lt_compiler_flag:'` 9496 (eval echo "\"\$as_me: 9496: $lt_compile\"" >&5)12828 (eval echo "\"\$as_me:12828: $lt_compile\"" >&5) 9497 12829 (eval "$lt_compile" 2>out/conftest.err) 9498 12830 ac_status=$? 9499 12831 cat out/conftest.err >&5 9500 echo "$as_me: 9500: \$? = $ac_status" >&512832 echo "$as_me:12832: \$? = $ac_status" >&5 9501 12833 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9502 12834 then … … 11911 15243 lt_status=$lt_dlunknown 11912 15244 cat > conftest.$ac_ext <<EOF 11913 #line 1 1913"configure"15245 #line 15245 "configure" 11914 15246 #include "confdefs.h" 11915 15247 … … 12011 15343 lt_status=$lt_dlunknown 12012 15344 cat > conftest.$ac_ext <<EOF 12013 #line 1 2013"configure"15345 #line 15345 "configure" 12014 15346 #include "confdefs.h" 12015 15347 … … 14371 17703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14372 17704 -e 's:$: $lt_compiler_flag:'` 14373 (eval echo "\"\$as_me:1 4373: $lt_compile\"" >&5)17705 (eval echo "\"\$as_me:17705: $lt_compile\"" >&5) 14374 17706 (eval "$lt_compile" 2>conftest.err) 14375 17707 ac_status=$? 14376 17708 cat conftest.err >&5 14377 echo "$as_me:1 4377: \$? = $ac_status" >&517709 echo "$as_me:17709: \$? = $ac_status" >&5 14378 17710 if (exit $ac_status) && test -s "$ac_outfile"; then 14379 17711 # The compiler can only warn and ignore the option if not recognized … … 14475 17807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14476 17808 -e 's:$: $lt_compiler_flag:'` 14477 (eval echo "\"\$as_me:1 4477: $lt_compile\"" >&5)17809 (eval echo "\"\$as_me:17809: $lt_compile\"" >&5) 14478 17810 (eval "$lt_compile" 2>out/conftest.err) 14479 17811 ac_status=$? 14480 17812 cat out/conftest.err >&5 14481 echo "$as_me:1 4481: \$? = $ac_status" >&517813 echo "$as_me:17813: \$? = $ac_status" >&5 14482 17814 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14483 17815 then … … 16045 19377 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16046 19378 -e 's:$: $lt_compiler_flag:'` 16047 (eval echo "\"\$as_me:1 6047: $lt_compile\"" >&5)19379 (eval echo "\"\$as_me:19379: $lt_compile\"" >&5) 16048 19380 (eval "$lt_compile" 2>conftest.err) 16049 19381 ac_status=$? 16050 19382 cat conftest.err >&5 16051 echo "$as_me:1 6051: \$? = $ac_status" >&519383 echo "$as_me:19383: \$? = $ac_status" >&5 16052 19384 if (exit $ac_status) && test -s "$ac_outfile"; then 16053 19385 # The compiler can only warn and ignore the option if not recognized … … 16149 19481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 16150 19482 -e 's:$: $lt_compiler_flag:'` 16151 (eval echo "\"\$as_me:1 6151: $lt_compile\"" >&5)19483 (eval echo "\"\$as_me:19483: $lt_compile\"" >&5) 16152 19484 (eval "$lt_compile" 2>out/conftest.err) 16153 19485 ac_status=$? 16154 19486 cat out/conftest.err >&5 16155 echo "$as_me:1 6155: \$? = $ac_status" >&519487 echo "$as_me:19487: \$? = $ac_status" >&5 16156 19488 if (exit $ac_status) && test -s out/conftest2.$ac_objext 16157 19489 then … … 18356 21688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18357 21689 -e 's:$: $lt_compiler_flag:'` 18358 (eval echo "\"\$as_me: 18358: $lt_compile\"" >&5)21690 (eval echo "\"\$as_me:21690: $lt_compile\"" >&5) 18359 21691 (eval "$lt_compile" 2>conftest.err) 18360 21692 ac_status=$? 18361 21693 cat conftest.err >&5 18362 echo "$as_me: 18362: \$? = $ac_status" >&521694 echo "$as_me:21694: \$? = $ac_status" >&5 18363 21695 if (exit $ac_status) && test -s "$ac_outfile"; then 18364 21696 # The compiler can only warn and ignore the option if not recognized … … 18624 21956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18625 21957 -e 's:$: $lt_compiler_flag:'` 18626 (eval echo "\"\$as_me: 18626: $lt_compile\"" >&5)21958 (eval echo "\"\$as_me:21958: $lt_compile\"" >&5) 18627 21959 (eval "$lt_compile" 2>conftest.err) 18628 21960 ac_status=$? 18629 21961 cat conftest.err >&5 18630 echo "$as_me: 18630: \$? = $ac_status" >&521962 echo "$as_me:21962: \$? = $ac_status" >&5 18631 21963 if (exit $ac_status) && test -s "$ac_outfile"; then 18632 21964 # The compiler can only warn and ignore the option if not recognized … … 18728 22060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 18729 22061 -e 's:$: $lt_compiler_flag:'` 18730 (eval echo "\"\$as_me: 18730: $lt_compile\"" >&5)22062 (eval echo "\"\$as_me:22062: $lt_compile\"" >&5) 18731 22063 (eval "$lt_compile" 2>out/conftest.err) 18732 22064 ac_status=$? 18733 22065 cat out/conftest.err >&5 18734 echo "$as_me: 18734: \$? = $ac_status" >&522066 echo "$as_me:22066: \$? = $ac_status" >&5 18735 22067 if (exit $ac_status) && test -s out/conftest2.$ac_objext 18736 22068 then … … 21866 25198 Usually this means the macro was only invoked conditionally." >&5 21867 25199 echo "$as_me: error: conditional \"COIN_HAS_PKGCONFIG\" was never defined. 25200 Usually this means the macro was only invoked conditionally." >&2;} 25201 { (exit 1); exit 1; }; } 25202 fi 25203 if 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. 25205 Usually this means the macro was only invoked conditionally." >&5 25206 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 25207 Usually this means the macro was only invoked conditionally." >&2;} 25208 { (exit 1); exit 1; }; } 25209 fi 25210 if 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. 25212 Usually this means the macro was only invoked conditionally." >&5 25213 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 25214 Usually this means the macro was only invoked conditionally." >&2;} 25215 { (exit 1); exit 1; }; } 25216 fi 25217 if 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. 25219 Usually this means the macro was only invoked conditionally." >&5 25220 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 25221 Usually this means the macro was only invoked conditionally." >&2;} 25222 { (exit 1); exit 1; }; } 25223 fi 25224 if 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. 25226 Usually this means the macro was only invoked conditionally." >&5 25227 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 21868 25228 Usually this means the macro was only invoked conditionally." >&2;} 21869 25229 { (exit 1); exit 1; }; } … … 22474 25834 s,@COIN_PKG_CONFIG_PATH@,$COIN_PKG_CONFIG_PATH,;t t 22475 25835 s,@COIN_PKG_CONFIG_PATH_UNINSTALLED@,$COIN_PKG_CONFIG_PATH_UNINSTALLED,;t t 22476 s,@LAPACK_PCLIBS@,$LAPACK_PCLIBS,;t t 25836 s,@BLAS_LIBS@,$BLAS_LIBS,;t t 25837 s,@BLAS_CFLAGS@,$BLAS_CFLAGS,;t t 25838 s,@BLAS_DATA@,$BLAS_DATA,;t t 25839 s,@BLAS_DEPENDENCIES@,$BLAS_DEPENDENCIES,;t t 25840 s,@BLAS_LIBS_INSTALLED@,$BLAS_LIBS_INSTALLED,;t t 25841 s,@BLAS_CFLAGS_INSTALLED@,$BLAS_CFLAGS_INSTALLED,;t t 25842 s,@BLAS_DATA_INSTALLED@,$BLAS_DATA_INSTALLED,;t t 25843 s,@LAPACKLIB_CFLAGS@,$LAPACKLIB_CFLAGS,;t t 25844 s,@LAPACKLIB_LIBS@,$LAPACKLIB_LIBS,;t t 25845 s,@LAPACKLIB_PCLIBS@,$LAPACKLIB_PCLIBS,;t t 25846 s,@LAPACKLIB_PCREQUIRES@,$LAPACKLIB_PCREQUIRES,;t t 25847 s,@LAPACKLIB_DEPENDENCIES@,$LAPACKLIB_DEPENDENCIES,;t t 25848 s,@LAPACKLIB_CFLAGS_INSTALLED@,$LAPACKLIB_CFLAGS_INSTALLED,;t t 25849 s,@LAPACKLIB_LIBS_INSTALLED@,$LAPACKLIB_LIBS_INSTALLED,;t t 25850 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t 25851 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t 22477 25852 s,@DLAMCH_FFLAGS@,$DLAMCH_FFLAGS,;t t 22478 25853 s,@EGREP@,$EGREP,;t t -
ThirdParty/Lapack/trunk/configure.ac
r2026 r2088 50 50 AC_COIN_PROG_F77 51 51 52 # Get the linker flags (FLIBS) that are required for linking against this blaslibrary52 # Get the linker flags (FLIBS) that are required for linking against this library 53 53 AC_COIN_F77_WRAPPERS 54 54 55 # Check if pkg-config is available (to setup addlibs file) 56 AC_COIN_HAS_PKGCONFIG 55 # Check for Blas 56 AC_COIN_CHECK_PACKAGE_BLAS(LapackLib) 57 if test $coin_has_blas != yes; then 58 AC_MSG_ERROR([Required package BLAS not found.]) 59 fi 57 60 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 62 LAPACKLIB_PCLIBS="$LAPACKLIB_PCLIBS $FLIBS" 61 63 62 64 # Take care that optimization is disbled for DLAMCH.F
Note: See TracChangeset
for help on using the changeset viewer.