Changeset 1411 for ThirdParty/Blas/trunk/configure
- Timestamp:
- Sep 13, 2009 2:24:20 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ThirdParty/Blas/trunk/configure
r1396 r1411 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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS BLASSRCDIR BLASOBJDIR BLASDOCDIR COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE LIBEXT VPATH_DISTCLEANFILES 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 ADDLIBS FADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE build build_cpu build_vendor build_os CDEFS ADD_CFLAGS DBG_CFLAGS OPT_CFLAGS sol_cc_compiler CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MPICC ADD_FFLAGS DBG_FFLAGS OPT_FFLAGS F77 FFLAGS ac_ct_F77 MPIF77 EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake have_svn BUILDTOOLSDIR AUX_DIR abs_source_dir abs_lib_dir abs_include_dir abs_bin_dir HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP LIBTOOL ac_c_preproc_warn_flag ac_cxx_preproc_warn_flag RPATH_FLAGS LT_LDFLAGS FLIBS COIN_HAS_BLAS_TRUE COIN_HAS_BLAS_FALSE COIN_BUILD_BLAS_TRUE COIN_BUILD_BLAS_FALSE MAKEOKFILE SKIPMAKE_TRUE SKIPMAKE_FALSE LIBEXT VPATH_DISTCLEANFILES LIBOBJS LTLIBOBJS' 476 476 ac_subst_files='' 477 477 … … 1100 1100 --with-tags[=TAGS] 1101 1101 include additional configurations [automatic] 1102 --with-blas specify BLAS library (or BUILD for compilation) 1102 1103 1103 1104 Some influential environment variables: … … 3291 3292 3292 3293 # Provide some information about the compiler. 3293 echo "$as_me:329 3:" \3294 echo "$as_me:3294:" \ 3294 3295 "checking for Fortran 77 compiler version" >&5 3295 3296 ac_compiler=`set X $ac_compile; echo $2` … … 5440 5441 *-*-irix6*) 5441 5442 # Find out which ABI we are using. 5442 echo '#line 544 2"configure"' > conftest.$ac_ext5443 echo '#line 5443 "configure"' > conftest.$ac_ext 5443 5444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5444 5445 (eval $ac_compile) 2>&5 … … 7869 7870 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7870 7871 -e 's:$: $lt_compiler_flag:'` 7871 (eval echo "\"\$as_me:787 1: $lt_compile\"" >&5)7872 (eval echo "\"\$as_me:7872: $lt_compile\"" >&5) 7872 7873 (eval "$lt_compile" 2>conftest.err) 7873 7874 ac_status=$? 7874 7875 cat conftest.err >&5 7875 echo "$as_me:787 5: \$? = $ac_status" >&57876 echo "$as_me:7876: \$? = $ac_status" >&5 7876 7877 if (exit $ac_status) && test -s "$ac_outfile"; then 7877 7878 # The compiler can only warn and ignore the option if not recognized … … 8137 8138 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8138 8139 -e 's:$: $lt_compiler_flag:'` 8139 (eval echo "\"\$as_me:81 39: $lt_compile\"" >&5)8140 (eval echo "\"\$as_me:8140: $lt_compile\"" >&5) 8140 8141 (eval "$lt_compile" 2>conftest.err) 8141 8142 ac_status=$? 8142 8143 cat conftest.err >&5 8143 echo "$as_me:814 3: \$? = $ac_status" >&58144 echo "$as_me:8144: \$? = $ac_status" >&5 8144 8145 if (exit $ac_status) && test -s "$ac_outfile"; then 8145 8146 # The compiler can only warn and ignore the option if not recognized … … 8241 8242 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8242 8243 -e 's:$: $lt_compiler_flag:'` 8243 (eval echo "\"\$as_me:824 3: $lt_compile\"" >&5)8244 (eval echo "\"\$as_me:8244: $lt_compile\"" >&5) 8244 8245 (eval "$lt_compile" 2>out/conftest.err) 8245 8246 ac_status=$? 8246 8247 cat out/conftest.err >&5 8247 echo "$as_me:824 7: \$? = $ac_status" >&58248 echo "$as_me:8248: \$? = $ac_status" >&5 8248 8249 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8249 8250 then … … 10586 10587 lt_status=$lt_dlunknown 10587 10588 cat > conftest.$ac_ext <<EOF 10588 #line 1058 8"configure"10589 #line 10589 "configure" 10589 10590 #include "confdefs.h" 10590 10591 … … 10686 10687 lt_status=$lt_dlunknown 10687 10688 cat > conftest.$ac_ext <<EOF 10688 #line 1068 8"configure"10689 #line 10689 "configure" 10689 10690 #include "confdefs.h" 10690 10691 … … 13030 13031 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13031 13032 -e 's:$: $lt_compiler_flag:'` 13032 (eval echo "\"\$as_me:1303 2: $lt_compile\"" >&5)13033 (eval echo "\"\$as_me:13033: $lt_compile\"" >&5) 13033 13034 (eval "$lt_compile" 2>conftest.err) 13034 13035 ac_status=$? 13035 13036 cat conftest.err >&5 13036 echo "$as_me:1303 6: \$? = $ac_status" >&513037 echo "$as_me:13037: \$? = $ac_status" >&5 13037 13038 if (exit $ac_status) && test -s "$ac_outfile"; then 13038 13039 # The compiler can only warn and ignore the option if not recognized … … 13134 13135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 13135 13136 -e 's:$: $lt_compiler_flag:'` 13136 (eval echo "\"\$as_me:1313 6: $lt_compile\"" >&5)13137 (eval echo "\"\$as_me:13137: $lt_compile\"" >&5) 13137 13138 (eval "$lt_compile" 2>out/conftest.err) 13138 13139 ac_status=$? 13139 13140 cat out/conftest.err >&5 13140 echo "$as_me:1314 0: \$? = $ac_status" >&513141 echo "$as_me:13141: \$? = $ac_status" >&5 13141 13142 if (exit $ac_status) && test -s out/conftest2.$ac_objext 13142 13143 then … … 14704 14705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14705 14706 -e 's:$: $lt_compiler_flag:'` 14706 (eval echo "\"\$as_me:1470 6: $lt_compile\"" >&5)14707 (eval echo "\"\$as_me:14707: $lt_compile\"" >&5) 14707 14708 (eval "$lt_compile" 2>conftest.err) 14708 14709 ac_status=$? 14709 14710 cat conftest.err >&5 14710 echo "$as_me:1471 0: \$? = $ac_status" >&514711 echo "$as_me:14711: \$? = $ac_status" >&5 14711 14712 if (exit $ac_status) && test -s "$ac_outfile"; then 14712 14713 # The compiler can only warn and ignore the option if not recognized … … 14808 14809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14809 14810 -e 's:$: $lt_compiler_flag:'` 14810 (eval echo "\"\$as_me:1481 0: $lt_compile\"" >&5)14811 (eval echo "\"\$as_me:14811: $lt_compile\"" >&5) 14811 14812 (eval "$lt_compile" 2>out/conftest.err) 14812 14813 ac_status=$? 14813 14814 cat out/conftest.err >&5 14814 echo "$as_me:1481 4: \$? = $ac_status" >&514815 echo "$as_me:14815: \$? = $ac_status" >&5 14815 14816 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14816 14817 then … … 17015 17016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17016 17017 -e 's:$: $lt_compiler_flag:'` 17017 (eval echo "\"\$as_me:1701 7: $lt_compile\"" >&5)17018 (eval echo "\"\$as_me:17018: $lt_compile\"" >&5) 17018 17019 (eval "$lt_compile" 2>conftest.err) 17019 17020 ac_status=$? 17020 17021 cat conftest.err >&5 17021 echo "$as_me:1702 1: \$? = $ac_status" >&517022 echo "$as_me:17022: \$? = $ac_status" >&5 17022 17023 if (exit $ac_status) && test -s "$ac_outfile"; then 17023 17024 # The compiler can only warn and ignore the option if not recognized … … 17283 17284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17284 17285 -e 's:$: $lt_compiler_flag:'` 17285 (eval echo "\"\$as_me:1728 5: $lt_compile\"" >&5)17286 (eval echo "\"\$as_me:17286: $lt_compile\"" >&5) 17286 17287 (eval "$lt_compile" 2>conftest.err) 17287 17288 ac_status=$? 17288 17289 cat conftest.err >&5 17289 echo "$as_me:172 89: \$? = $ac_status" >&517290 echo "$as_me:17290: \$? = $ac_status" >&5 17290 17291 if (exit $ac_status) && test -s "$ac_outfile"; then 17291 17292 # The compiler can only warn and ignore the option if not recognized … … 17387 17388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17388 17389 -e 's:$: $lt_compiler_flag:'` 17389 (eval echo "\"\$as_me:173 89: $lt_compile\"" >&5)17390 (eval echo "\"\$as_me:17390: $lt_compile\"" >&5) 17390 17391 (eval "$lt_compile" 2>out/conftest.err) 17391 17392 ac_status=$? 17392 17393 cat out/conftest.err >&5 17393 echo "$as_me:1739 3: \$? = $ac_status" >&517394 echo "$as_me:17394: \$? = $ac_status" >&5 17394 17395 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17395 17396 then … … 20289 20290 } 20290 20291 20291 echo "$as_me:$LINENO: checking for COIN project Blas" >&5 20292 echo $ECHO_N "checking for COIN project Blas... $ECHO_C" >&6 20293 20294 # First check, if the sub-project is actually available (ToDo: allow 20295 # other locations) 20296 20297 coin_has_blas=unavailable 20298 if test x"$COIN_SKIP_PROJECTS" != x; then 20299 for dir in $COIN_SKIP_PROJECTS; do 20300 if test $dir = Blas; then 20301 coin_has_blas=skipping 20292 # Check if Blas is already available on the system or provided by user 20293 ac_ext=f 20294 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20295 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20296 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20297 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5 20298 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6 20299 if test "${ac_cv_prog_f77_v+set}" = set; then 20300 echo $ECHO_N "(cached) $ECHO_C" >&6 20301 else 20302 cat >conftest.$ac_ext <<_ACEOF 20303 program main 20304 20305 end 20306 _ACEOF 20307 rm -f conftest.$ac_objext 20308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20309 (eval $ac_compile) 2>conftest.er1 20310 ac_status=$? 20311 grep -v '^ *+' conftest.er1 >conftest.err 20312 rm -f conftest.er1 20313 cat conftest.err >&5 20314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20315 (exit $ac_status); } && 20316 { ac_try='test -z "$ac_f77_werror_flag" 20317 || test ! -s conftest.err' 20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20319 (eval $ac_try) 2>&5 20320 ac_status=$? 20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20322 (exit $ac_status); }; } && 20323 { ac_try='test -s conftest.$ac_objext' 20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20325 (eval $ac_try) 2>&5 20326 ac_status=$? 20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20328 (exit $ac_status); }; }; then 20329 ac_cv_prog_f77_v= 20330 # Try some options frequently used verbose output 20331 for ac_verb in -v -verbose --verbose -V -\#\#\#; do 20332 cat >conftest.$ac_ext <<_ACEOF 20333 program main 20334 20335 end 20336 _ACEOF 20337 20338 # Compile and link our simple test program by passing a flag (argument 20339 # 1 to this macro) to the Fortran compiler in order to get 20340 # "verbose" output that we can then parse for the Fortran linker 20341 # flags. 20342 ac_save_FFLAGS=$FFLAGS 20343 FFLAGS="$FFLAGS $ac_verb" 20344 (eval echo $as_me:20344: \"$ac_link\") >&5 20345 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20346 echo "$ac_f77_v_output" >&5 20347 FFLAGS=$ac_save_FFLAGS 20348 20349 rm -f conftest* 20350 20351 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20352 # /foo, /bar, and /baz are search directories for the Fortran linker. 20353 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20354 ac_f77_v_output="`echo $ac_f77_v_output | 20355 grep 'LPATH is:' | 20356 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20357 20358 case $ac_f77_v_output in 20359 # If we are using xlf then replace all the commas with spaces. 20360 *xlfentry*) 20361 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20362 20363 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20364 # $LIBS confuse us, and the libraries appear later in the output anyway). 20365 *mGLOB_options_string*) 20366 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20367 20368 # If we are using Cray Fortran then delete quotes. 20369 # Use "\"" instead of '"' for font-lock-mode. 20370 # FIXME: a more general fix for quoted arguments with spaces? 20371 *cft90*) 20372 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20373 esac 20374 20375 20376 # look for -l* and *.a constructs in the output 20377 for ac_arg in $ac_f77_v_output; do 20378 case $ac_arg in 20379 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*) 20380 ac_cv_prog_f77_v=$ac_verb 20381 break 2 ;; 20382 esac 20383 done 20384 done 20385 if test -z "$ac_cv_prog_f77_v"; then 20386 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5 20387 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;} 20388 fi 20389 else 20390 echo "$as_me: failed program was:" >&5 20391 sed 's/^/| /' conftest.$ac_ext >&5 20392 20393 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5 20394 echo "$as_me: WARNING: compilation failed" >&2;} 20395 fi 20396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20397 20398 fi 20399 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5 20400 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6 20401 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5 20402 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6 20403 if test "${ac_cv_f77_libs+set}" = set; then 20404 echo $ECHO_N "(cached) $ECHO_C" >&6 20405 else 20406 if test "x$FLIBS" != "x"; then 20407 ac_cv_f77_libs="$FLIBS" # Let the user override the test. 20408 else 20409 20410 cat >conftest.$ac_ext <<_ACEOF 20411 program main 20412 20413 end 20414 _ACEOF 20415 20416 # Compile and link our simple test program by passing a flag (argument 20417 # 1 to this macro) to the Fortran compiler in order to get 20418 # "verbose" output that we can then parse for the Fortran linker 20419 # flags. 20420 ac_save_FFLAGS=$FFLAGS 20421 FFLAGS="$FFLAGS $ac_cv_prog_f77_v" 20422 (eval echo $as_me:20422: \"$ac_link\") >&5 20423 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'` 20424 echo "$ac_f77_v_output" >&5 20425 FFLAGS=$ac_save_FFLAGS 20426 20427 rm -f conftest* 20428 20429 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where 20430 # /foo, /bar, and /baz are search directories for the Fortran linker. 20431 # Here, we change these into -L/foo -L/bar -L/baz (and put it first): 20432 ac_f77_v_output="`echo $ac_f77_v_output | 20433 grep 'LPATH is:' | 20434 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output" 20435 20436 case $ac_f77_v_output in 20437 # If we are using xlf then replace all the commas with spaces. 20438 *xlfentry*) 20439 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;; 20440 20441 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted 20442 # $LIBS confuse us, and the libraries appear later in the output anyway). 20443 *mGLOB_options_string*) 20444 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;; 20445 20446 # If we are using Cray Fortran then delete quotes. 20447 # Use "\"" instead of '"' for font-lock-mode. 20448 # FIXME: a more general fix for quoted arguments with spaces? 20449 *cft90*) 20450 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;; 20451 esac 20452 20453 20454 20455 ac_cv_f77_libs= 20456 20457 # Save positional arguments (if any) 20458 ac_save_positional="$@" 20459 20460 set X $ac_f77_v_output 20461 while test $# != 1; do 20462 shift 20463 ac_arg=$1 20464 case $ac_arg in 20465 [\\/]*.a | ?:[\\/]*.a) 20466 ac_exists=false 20467 for ac_i in $ac_cv_f77_libs; do 20468 if test x"$ac_arg" = x"$ac_i"; then 20469 ac_exists=true 20470 break 20302 20471 fi 20303 20472 done 20304 fi 20305 20306 if test $coin_has_blas != skipping; then 20307 if test $PACKAGE_TARNAME = blas; then 20308 coin_has_blas=. 20473 20474 if test x"$ac_exists" = xtrue; then 20475 : 20476 else 20477 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20478 fi 20479 20480 ;; 20481 -bI:*) 20482 ac_exists=false 20483 for ac_i in $ac_cv_f77_libs; do 20484 if test x"$ac_arg" = x"$ac_i"; then 20485 ac_exists=true 20486 break 20487 fi 20488 done 20489 20490 if test x"$ac_exists" = xtrue; then 20491 : 20492 else 20493 if test "$ac_compiler_gnu" = yes; then 20494 for ac_link_opt in $ac_arg; do 20495 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20496 done 20497 else 20498 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20499 fi 20500 fi 20501 20502 ;; 20503 # Ignore these flags. 20504 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*) 20505 ;; 20506 -lkernel32) 20507 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20508 ;; 20509 -[LRuY]) 20510 # These flags, when seen by themselves, take an argument. 20511 # We remove the space between option and argument and re-iterate 20512 # unless we find an empty arg or a new option (starting with -) 20513 case $2 in 20514 "" | -*);; 20515 *) 20516 ac_arg="$ac_arg$2" 20517 shift; shift 20518 set X $ac_arg "$@" 20519 ;; 20520 esac 20521 ;; 20522 -YP,*) 20523 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do 20524 ac_exists=false 20525 for ac_i in $ac_cv_f77_libs; do 20526 if test x"$ac_j" = x"$ac_i"; then 20527 ac_exists=true 20528 break 20529 fi 20530 done 20531 20532 if test x"$ac_exists" = xtrue; then 20533 : 20534 else 20535 ac_arg="$ac_arg $ac_j" 20536 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j" 20537 fi 20538 20539 done 20540 ;; 20541 -[lLR]*) 20542 ac_exists=false 20543 for ac_i in $ac_cv_f77_libs; do 20544 if test x"$ac_arg" = x"$ac_i"; then 20545 ac_exists=true 20546 break 20547 fi 20548 done 20549 20550 if test x"$ac_exists" = xtrue; then 20551 : 20552 else 20553 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg" 20554 fi 20555 20556 ;; 20557 # Ignore everything else. 20558 esac 20559 done 20560 # restore positional arguments 20561 set X $ac_save_positional; shift 20562 20563 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen, 20564 # then we insist that the "run path" must be an absolute path (i.e. it 20565 # must begin with a "/"). 20566 case `(uname -sr) 2>/dev/null` in 20567 "SunOS 5"*) 20568 ac_ld_run_path=`echo $ac_f77_v_output | 20569 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'` 20570 test "x$ac_ld_run_path" != x && 20571 if test "$ac_compiler_gnu" = yes; then 20572 for ac_link_opt in $ac_ld_run_path; do 20573 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt" 20574 done 20575 else 20576 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path" 20577 fi 20578 ;; 20579 esac 20580 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x" 20581 20582 fi 20583 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5 20584 echo "${ECHO_T}$ac_cv_f77_libs" >&6 20585 FLIBS="$ac_cv_f77_libs" 20586 20587 20588 ac_ext=c 20589 ac_cpp='$CPP $CPPFLAGS' 20590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20592 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20593 20594 ac_ext=f 20595 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20596 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20597 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20598 20599 echo "$as_me:$LINENO: checking for dummy main to link with Fortran libraries" >&5 20600 echo $ECHO_N "checking for dummy main to link with Fortran libraries... $ECHO_C" >&6 20601 if test "${ac_cv_f77_dummy_main+set}" = set; then 20602 echo $ECHO_N "(cached) $ECHO_C" >&6 20603 else 20604 ac_f77_dm_save_LIBS=$LIBS 20605 LIBS="$LIBS $FLIBS" 20606 ac_fortran_dm_var=F77_DUMMY_MAIN 20607 ac_ext=c 20608 ac_cpp='$CPP $CPPFLAGS' 20609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20611 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20612 20613 # First, try linking without a dummy main: 20614 cat >conftest.$ac_ext <<_ACEOF 20615 /* confdefs.h. */ 20616 _ACEOF 20617 cat confdefs.h >>conftest.$ac_ext 20618 cat >>conftest.$ac_ext <<_ACEOF 20619 /* end confdefs.h. */ 20620 20621 #ifdef F77_DUMMY_MAIN 20622 20623 # ifdef __cplusplus 20624 extern "C" 20625 # endif 20626 int F77_DUMMY_MAIN() { return 1; } 20627 20628 #endif 20629 int 20630 main () 20631 { 20632 20633 ; 20634 return 0; 20635 } 20636 _ACEOF 20637 rm -f conftest.$ac_objext conftest$ac_exeext 20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20639 (eval $ac_link) 2>conftest.er1 20640 ac_status=$? 20641 grep -v '^ *+' conftest.er1 >conftest.err 20642 rm -f conftest.er1 20643 cat conftest.err >&5 20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20645 (exit $ac_status); } && 20646 { ac_try='test -z "$ac_c_werror_flag" 20647 || test ! -s conftest.err' 20648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20649 (eval $ac_try) 2>&5 20650 ac_status=$? 20651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20652 (exit $ac_status); }; } && 20653 { ac_try='test -s conftest$ac_exeext' 20654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20655 (eval $ac_try) 2>&5 20656 ac_status=$? 20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20658 (exit $ac_status); }; }; then 20659 ac_cv_fortran_dummy_main=none 20660 else 20661 echo "$as_me: failed program was:" >&5 20662 sed 's/^/| /' conftest.$ac_ext >&5 20663 20664 ac_cv_fortran_dummy_main=unknown 20665 fi 20666 rm -f conftest.err conftest.$ac_objext \ 20667 conftest$ac_exeext conftest.$ac_ext 20668 20669 if test $ac_cv_fortran_dummy_main = unknown; then 20670 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do 20671 cat >conftest.$ac_ext <<_ACEOF 20672 /* confdefs.h. */ 20673 _ACEOF 20674 cat confdefs.h >>conftest.$ac_ext 20675 cat >>conftest.$ac_ext <<_ACEOF 20676 /* end confdefs.h. */ 20677 #define $ac_fortran_dm_var $ac_func 20678 #ifdef F77_DUMMY_MAIN 20679 20680 # ifdef __cplusplus 20681 extern "C" 20682 # endif 20683 int F77_DUMMY_MAIN() { return 1; } 20684 20685 #endif 20686 int 20687 main () 20688 { 20689 20690 ; 20691 return 0; 20692 } 20693 _ACEOF 20694 rm -f conftest.$ac_objext conftest$ac_exeext 20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20696 (eval $ac_link) 2>conftest.er1 20697 ac_status=$? 20698 grep -v '^ *+' conftest.er1 >conftest.err 20699 rm -f conftest.er1 20700 cat conftest.err >&5 20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20702 (exit $ac_status); } && 20703 { ac_try='test -z "$ac_c_werror_flag" 20704 || test ! -s conftest.err' 20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20706 (eval $ac_try) 2>&5 20707 ac_status=$? 20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20709 (exit $ac_status); }; } && 20710 { ac_try='test -s conftest$ac_exeext' 20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20712 (eval $ac_try) 2>&5 20713 ac_status=$? 20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20715 (exit $ac_status); }; }; then 20716 ac_cv_fortran_dummy_main=$ac_func; break 20717 else 20718 echo "$as_me: failed program was:" >&5 20719 sed 's/^/| /' conftest.$ac_ext >&5 20720 20721 fi 20722 rm -f conftest.err conftest.$ac_objext \ 20723 conftest$ac_exeext conftest.$ac_ext 20724 done 20725 fi 20726 ac_ext=f 20727 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20728 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20729 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20730 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main 20731 rm -f conftest* 20732 LIBS=$ac_f77_dm_save_LIBS 20733 20734 fi 20735 echo "$as_me:$LINENO: result: $ac_cv_f77_dummy_main" >&5 20736 echo "${ECHO_T}$ac_cv_f77_dummy_main" >&6 20737 F77_DUMMY_MAIN=$ac_cv_f77_dummy_main 20738 if test "$F77_DUMMY_MAIN" != unknown; then 20739 if test $F77_DUMMY_MAIN != none; then 20740 20741 cat >>confdefs.h <<_ACEOF 20742 #define F77_DUMMY_MAIN $F77_DUMMY_MAIN 20743 _ACEOF 20744 20745 if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then 20746 20747 cat >>confdefs.h <<\_ACEOF 20748 #define FC_DUMMY_MAIN_EQ_F77 1 20749 _ACEOF 20750 20751 fi 20752 fi 20753 else 20754 { { echo "$as_me:$LINENO: error: linking to Fortran libraries from C fails 20755 See \`config.log' for more details." >&5 20756 echo "$as_me: error: linking to Fortran libraries from C fails 20757 See \`config.log' for more details." >&2;} 20758 { (exit 1); exit 1; }; } 20759 fi 20760 20761 20762 ac_ext=c 20763 ac_cpp='$CPP $CPPFLAGS' 20764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20766 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20767 20768 ac_ext=f 20769 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20770 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20771 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20772 echo "$as_me:$LINENO: checking for Fortran name-mangling scheme" >&5 20773 echo $ECHO_N "checking for Fortran name-mangling scheme... $ECHO_C" >&6 20774 if test "${ac_cv_f77_mangling+set}" = set; then 20775 echo $ECHO_N "(cached) $ECHO_C" >&6 20776 else 20777 cat >conftest.$ac_ext <<_ACEOF 20778 subroutine foobar() 20779 return 20780 end 20781 subroutine foo_bar() 20782 return 20783 end 20784 _ACEOF 20785 rm -f conftest.$ac_objext 20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20787 (eval $ac_compile) 2>conftest.er1 20788 ac_status=$? 20789 grep -v '^ *+' conftest.er1 >conftest.err 20790 rm -f conftest.er1 20791 cat conftest.err >&5 20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20793 (exit $ac_status); } && 20794 { ac_try='test -z "$ac_f77_werror_flag" 20795 || test ! -s conftest.err' 20796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20797 (eval $ac_try) 2>&5 20798 ac_status=$? 20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20800 (exit $ac_status); }; } && 20801 { ac_try='test -s conftest.$ac_objext' 20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20803 (eval $ac_try) 2>&5 20804 ac_status=$? 20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20806 (exit $ac_status); }; }; then 20807 mv conftest.$ac_objext cfortran_test.$ac_objext 20808 20809 ac_save_LIBS=$LIBS 20810 LIBS="cfortran_test.$ac_objext $LIBS $FLIBS" 20811 20812 ac_ext=c 20813 ac_cpp='$CPP $CPPFLAGS' 20814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20816 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20817 ac_success=no 20818 for ac_foobar in foobar FOOBAR; do 20819 for ac_underscore in "" "_"; do 20820 ac_func="$ac_foobar$ac_underscore" 20821 cat >conftest.$ac_ext <<_ACEOF 20822 /* confdefs.h. */ 20823 _ACEOF 20824 cat confdefs.h >>conftest.$ac_ext 20825 cat >>conftest.$ac_ext <<_ACEOF 20826 /* end confdefs.h. */ 20827 20828 /* Override any gcc2 internal prototype to avoid an error. */ 20829 #ifdef __cplusplus 20830 extern "C" 20831 #endif 20832 /* We use char because int might match the return type of a gcc2 20833 builtin and then its argument prototype would still apply. */ 20834 char $ac_func (); 20835 #ifdef F77_DUMMY_MAIN 20836 20837 # ifdef __cplusplus 20838 extern "C" 20839 # endif 20840 int F77_DUMMY_MAIN() { return 1; } 20841 20842 #endif 20843 int 20844 main () 20845 { 20846 $ac_func (); 20847 ; 20848 return 0; 20849 } 20850 _ACEOF 20851 rm -f conftest.$ac_objext conftest$ac_exeext 20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20853 (eval $ac_link) 2>conftest.er1 20854 ac_status=$? 20855 grep -v '^ *+' conftest.er1 >conftest.err 20856 rm -f conftest.er1 20857 cat conftest.err >&5 20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20859 (exit $ac_status); } && 20860 { ac_try='test -z "$ac_c_werror_flag" 20861 || test ! -s conftest.err' 20862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20863 (eval $ac_try) 2>&5 20864 ac_status=$? 20865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20866 (exit $ac_status); }; } && 20867 { ac_try='test -s conftest$ac_exeext' 20868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20869 (eval $ac_try) 2>&5 20870 ac_status=$? 20871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20872 (exit $ac_status); }; }; then 20873 ac_success=yes; break 2 20874 else 20875 echo "$as_me: failed program was:" >&5 20876 sed 's/^/| /' conftest.$ac_ext >&5 20877 20878 fi 20879 rm -f conftest.err conftest.$ac_objext \ 20880 conftest$ac_exeext conftest.$ac_ext 20881 done 20882 done 20883 ac_ext=f 20884 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20885 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20886 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20887 20888 if test "$ac_success" = "yes"; then 20889 case $ac_foobar in 20890 foobar) 20891 ac_case=lower 20892 ac_foo_bar=foo_bar 20893 ;; 20894 FOOBAR) 20895 ac_case=upper 20896 ac_foo_bar=FOO_BAR 20897 ;; 20898 esac 20899 20900 ac_ext=c 20901 ac_cpp='$CPP $CPPFLAGS' 20902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20904 ac_compiler_gnu=$ac_cv_c_compiler_gnu 20905 ac_success_extra=no 20906 for ac_extra in "" "_"; do 20907 ac_func="$ac_foo_bar$ac_underscore$ac_extra" 20908 cat >conftest.$ac_ext <<_ACEOF 20909 /* confdefs.h. */ 20910 _ACEOF 20911 cat confdefs.h >>conftest.$ac_ext 20912 cat >>conftest.$ac_ext <<_ACEOF 20913 /* end confdefs.h. */ 20914 20915 /* Override any gcc2 internal prototype to avoid an error. */ 20916 #ifdef __cplusplus 20917 extern "C" 20918 #endif 20919 /* We use char because int might match the return type of a gcc2 20920 builtin and then its argument prototype would still apply. */ 20921 char $ac_func (); 20922 #ifdef F77_DUMMY_MAIN 20923 20924 # ifdef __cplusplus 20925 extern "C" 20926 # endif 20927 int F77_DUMMY_MAIN() { return 1; } 20928 20929 #endif 20930 int 20931 main () 20932 { 20933 $ac_func (); 20934 ; 20935 return 0; 20936 } 20937 _ACEOF 20938 rm -f conftest.$ac_objext conftest$ac_exeext 20939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20940 (eval $ac_link) 2>conftest.er1 20941 ac_status=$? 20942 grep -v '^ *+' conftest.er1 >conftest.err 20943 rm -f conftest.er1 20944 cat conftest.err >&5 20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20946 (exit $ac_status); } && 20947 { ac_try='test -z "$ac_c_werror_flag" 20948 || test ! -s conftest.err' 20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20950 (eval $ac_try) 2>&5 20951 ac_status=$? 20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20953 (exit $ac_status); }; } && 20954 { ac_try='test -s conftest$ac_exeext' 20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20956 (eval $ac_try) 2>&5 20957 ac_status=$? 20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20959 (exit $ac_status); }; }; then 20960 ac_success_extra=yes; break 20961 else 20962 echo "$as_me: failed program was:" >&5 20963 sed 's/^/| /' conftest.$ac_ext >&5 20964 20965 fi 20966 rm -f conftest.err conftest.$ac_objext \ 20967 conftest$ac_exeext conftest.$ac_ext 20968 done 20969 ac_ext=f 20970 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 20971 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20972 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 20973 20974 if test "$ac_success_extra" = "yes"; then 20975 ac_cv_f77_mangling="$ac_case case" 20976 if test -z "$ac_underscore"; then 20977 ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore" 20978 else 20979 ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore" 20980 fi 20981 if test -z "$ac_extra"; then 20982 ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore" 20983 else 20984 ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore" 20985 fi 20986 else 20987 ac_cv_f77_mangling="unknown" 20988 fi 20309 20989 else 20310 if test -d $srcdir/../Blas; then 20311 coin_has_blas=../Blas 20990 ac_cv_f77_mangling="unknown" 20991 fi 20992 20993 LIBS=$ac_save_LIBS 20994 rm -f cfortran_test* conftest* 20995 else 20996 echo "$as_me: failed program was:" >&5 20997 sed 's/^/| /' conftest.$ac_ext >&5 20998 20999 { { echo "$as_me:$LINENO: error: cannot compile a simple Fortran program 21000 See \`config.log' for more details." >&5 21001 echo "$as_me: error: cannot compile a simple Fortran program 21002 See \`config.log' for more details." >&2;} 21003 { (exit 1); exit 1; }; } 21004 fi 21005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21006 21007 fi 21008 echo "$as_me:$LINENO: result: $ac_cv_f77_mangling" >&5 21009 echo "${ECHO_T}$ac_cv_f77_mangling" >&6 21010 21011 ac_ext=c 21012 ac_cpp='$CPP $CPPFLAGS' 21013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21015 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21016 21017 if test "$PACKAGE_NAME" = ThirdPartyBlas || test "$PACKAGE_NAME" = ThirdPartyLapack || test "$PACKAGE_NAME" = ThirdPartyMumps; then 21018 coin_blasobjdir=../Blas 21019 else 21020 coin_blasobjdir=../ThirdParty/Blas 21021 fi 21022 coin_blassrcdir=$srcdir/$coin_blasobjdir 21023 21024 21025 # Check whether --with-blas or --without-blas was given. 21026 if test "${with_blas+set}" = set; then 21027 withval="$with_blas" 21028 use_blas=$withval 21029 else 21030 use_blas= 21031 fi; 21032 21033 MAKEOKFILE=.MakeOk 21034 # Check if user supplied option makes sense 21035 if test x"$use_blas" != x; then 21036 if test "$use_blas" = "BUILD"; then 21037 # Don't check for course code if this is executed in ThirdParty/Blas 21038 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 21039 if test -r $coin_blasobjdir/.MakeOk; then :; else 21040 { { echo "$as_me:$LINENO: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&5 21041 echo "$as_me: error: option \"BUILD\" specified for Blas, but $coin_blasobjdir directory is not properly configured" >&2;} 21042 { (exit 1); exit 1; }; } 21043 fi 21044 fi 21045 elif test "$use_blas" != no ; then 21046 echo "$as_me:$LINENO: checking whether user supplied BLASLIB=\"$use_blas\" works" >&5 21047 echo $ECHO_N "checking whether user supplied BLASLIB=\"$use_blas\" works... $ECHO_C" >&6 21048 LIBS="$use_blas $LIBS" 21049 ADDLIBS="$use_blas $ADDLIBS" 21050 case $ac_ext in 21051 f) 21052 cat >conftest.$ac_ext <<_ACEOF 21053 /* confdefs.h. */ 21054 _ACEOF 21055 cat confdefs.h >>conftest.$ac_ext 21056 cat >>conftest.$ac_ext <<_ACEOF 21057 /* end confdefs.h. */ 21058 21059 int 21060 main () 21061 { 21062 call daxpy 21063 ; 21064 return 0; 21065 } 21066 _ACEOF 21067 rm -f conftest.$ac_objext conftest$ac_exeext 21068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21069 (eval $ac_link) 2>conftest.er1 21070 ac_status=$? 21071 grep -v '^ *+' conftest.er1 >conftest.err 21072 rm -f conftest.er1 21073 cat conftest.err >&5 21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21075 (exit $ac_status); } && 21076 { ac_try='test -z "$ac_c_werror_flag" 21077 || test ! -s conftest.err' 21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21079 (eval $ac_try) 2>&5 21080 ac_status=$? 21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21082 (exit $ac_status); }; } && 21083 { ac_try='test -s conftest$ac_exeext' 21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21085 (eval $ac_try) 2>&5 21086 ac_status=$? 21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21088 (exit $ac_status); }; }; then 21089 echo "$as_me:$LINENO: result: yes" >&5 21090 echo "${ECHO_T}yes" >&6 21091 else 21092 echo "$as_me: failed program was:" >&5 21093 sed 's/^/| /' conftest.$ac_ext >&5 21094 21095 echo "$as_me:$LINENO: result: no" >&5 21096 echo "${ECHO_T}no" >&6 21097 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21098 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21099 { (exit 1); exit 1; }; } 21100 fi 21101 rm -f conftest.err conftest.$ac_objext \ 21102 conftest$ac_exeext conftest.$ac_ext 21103 ;; 21104 c) 21105 ac_ext=f 21106 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21107 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21108 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21109 case $ac_cv_f77_mangling in 21110 upper*) ac_val="DAXPY" ;; 21111 lower*) ac_val="daxpy" ;; 21112 *) ac_val="unknown" ;; 21113 esac 21114 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21115 21116 cfuncdaxpy="$ac_val" 21117 21118 ac_ext=c 21119 ac_cpp='$CPP $CPPFLAGS' 21120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21121 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21122 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21123 21124 if test x"$coin_need_flibs" = xyes; then 21125 flink_try=no; 21126 else 21127 cat >conftest.$ac_ext <<_ACEOF 21128 /* confdefs.h. */ 21129 _ACEOF 21130 cat confdefs.h >>conftest.$ac_ext 21131 cat >>conftest.$ac_ext <<_ACEOF 21132 /* end confdefs.h. */ 21133 void $cfuncdaxpy(); 21134 #ifdef F77_DUMMY_MAIN 21135 21136 # ifdef __cplusplus 21137 extern "C" 21138 # endif 21139 int F77_DUMMY_MAIN() { return 1; } 21140 21141 #endif 21142 int 21143 main () 21144 { 21145 $cfuncdaxpy() 21146 ; 21147 return 0; 21148 } 21149 _ACEOF 21150 rm -f conftest.$ac_objext conftest$ac_exeext 21151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21152 (eval $ac_link) 2>conftest.er1 21153 ac_status=$? 21154 grep -v '^ *+' conftest.er1 >conftest.err 21155 rm -f conftest.er1 21156 cat conftest.err >&5 21157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21158 (exit $ac_status); } && 21159 { ac_try='test -z "$ac_c_werror_flag" 21160 || test ! -s conftest.err' 21161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21162 (eval $ac_try) 2>&5 21163 ac_status=$? 21164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21165 (exit $ac_status); }; } && 21166 { ac_try='test -s conftest$ac_exeext' 21167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21168 (eval $ac_try) 2>&5 21169 ac_status=$? 21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21171 (exit $ac_status); }; }; then 21172 flink_try=yes 21173 else 21174 echo "$as_me: failed program was:" >&5 21175 sed 's/^/| /' conftest.$ac_ext >&5 21176 21177 flink_try=no 21178 fi 21179 rm -f conftest.err conftest.$ac_objext \ 21180 conftest$ac_exeext conftest.$ac_ext 21181 fi 21182 if test $flink_try = yes; then 21183 echo "$as_me:$LINENO: result: yes" >&5 21184 echo "${ECHO_T}yes" >&6 21185 else 21186 if test x"$FLIBS" != x; then 21187 flink_save_libs="$LIBS" 21188 LIBS="$LIBS $FLIBS" 21189 cat >conftest.$ac_ext <<_ACEOF 21190 /* confdefs.h. */ 21191 _ACEOF 21192 cat confdefs.h >>conftest.$ac_ext 21193 cat >>conftest.$ac_ext <<_ACEOF 21194 /* end confdefs.h. */ 21195 void $cfuncdaxpy(); 21196 #ifdef F77_DUMMY_MAIN 21197 21198 # ifdef __cplusplus 21199 extern "C" 21200 # endif 21201 int F77_DUMMY_MAIN() { return 1; } 21202 21203 #endif 21204 int 21205 main () 21206 { 21207 $cfuncdaxpy() 21208 ; 21209 return 0; 21210 } 21211 _ACEOF 21212 rm -f conftest.$ac_objext conftest$ac_exeext 21213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21214 (eval $ac_link) 2>conftest.er1 21215 ac_status=$? 21216 grep -v '^ *+' conftest.er1 >conftest.err 21217 rm -f conftest.er1 21218 cat conftest.err >&5 21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21220 (exit $ac_status); } && 21221 { ac_try='test -z "$ac_c_werror_flag" 21222 || test ! -s conftest.err' 21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21224 (eval $ac_try) 2>&5 21225 ac_status=$? 21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21227 (exit $ac_status); }; } && 21228 { ac_try='test -s conftest$ac_exeext' 21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21230 (eval $ac_try) 2>&5 21231 ac_status=$? 21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21233 (exit $ac_status); }; }; then 21234 LIBS="$flink_save_libs" 21235 echo "$as_me:$LINENO: result: yes" >&5 21236 echo "${ECHO_T}yes" >&6 21237 coin_need_flibs=yes 21238 else 21239 echo "$as_me: failed program was:" >&5 21240 sed 's/^/| /' conftest.$ac_ext >&5 21241 21242 LIBS="$flink_save_libs" 21243 echo "$as_me:$LINENO: result: no" >&5 21244 echo "${ECHO_T}no" >&6 21245 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21246 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21247 { (exit 1); exit 1; }; } 21248 fi 21249 rm -f conftest.err conftest.$ac_objext \ 21250 conftest$ac_exeext conftest.$ac_ext 21251 else 21252 echo "$as_me:$LINENO: result: no" >&5 21253 echo "${ECHO_T}no" >&6 21254 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21255 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21256 { (exit 1); exit 1; }; } 21257 fi 21258 fi 21259 ;; 21260 cc|cpp) 21261 ac_ext=f 21262 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21263 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21264 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21265 case $ac_cv_f77_mangling in 21266 upper*) ac_val="DAXPY" ;; 21267 lower*) ac_val="daxpy" ;; 21268 *) ac_val="unknown" ;; 21269 esac 21270 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21271 21272 cfuncdaxpy="$ac_val" 21273 21274 ac_ext=c 21275 ac_cpp='$CPP $CPPFLAGS' 21276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21278 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21279 21280 if test x"$coin_need_flibs" = xyes; then 21281 flink_try=no; 21282 else 21283 cat >conftest.$ac_ext <<_ACEOF 21284 /* confdefs.h. */ 21285 _ACEOF 21286 cat confdefs.h >>conftest.$ac_ext 21287 cat >>conftest.$ac_ext <<_ACEOF 21288 /* end confdefs.h. */ 21289 extern "C" {void $cfuncdaxpy();} 21290 #ifdef F77_DUMMY_MAIN 21291 21292 # ifdef __cplusplus 21293 extern "C" 21294 # endif 21295 int F77_DUMMY_MAIN() { return 1; } 21296 21297 #endif 21298 int 21299 main () 21300 { 21301 $cfuncdaxpy() 21302 ; 21303 return 0; 21304 } 21305 _ACEOF 21306 rm -f conftest.$ac_objext conftest$ac_exeext 21307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21308 (eval $ac_link) 2>conftest.er1 21309 ac_status=$? 21310 grep -v '^ *+' conftest.er1 >conftest.err 21311 rm -f conftest.er1 21312 cat conftest.err >&5 21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21314 (exit $ac_status); } && 21315 { ac_try='test -z "$ac_c_werror_flag" 21316 || test ! -s conftest.err' 21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21318 (eval $ac_try) 2>&5 21319 ac_status=$? 21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21321 (exit $ac_status); }; } && 21322 { ac_try='test -s conftest$ac_exeext' 21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21324 (eval $ac_try) 2>&5 21325 ac_status=$? 21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21327 (exit $ac_status); }; }; then 21328 flink_try=yes 21329 else 21330 echo "$as_me: failed program was:" >&5 21331 sed 's/^/| /' conftest.$ac_ext >&5 21332 21333 flink_try=no 21334 fi 21335 rm -f conftest.err conftest.$ac_objext \ 21336 conftest$ac_exeext conftest.$ac_ext 21337 fi 21338 if test $flink_try = yes; then 21339 echo "$as_me:$LINENO: result: yes" >&5 21340 echo "${ECHO_T}yes" >&6 21341 else 21342 if test x"$FLIBS" != x; then 21343 flink_save_libs="$LIBS" 21344 LIBS="$LIBS $FLIBS" 21345 cat >conftest.$ac_ext <<_ACEOF 21346 /* confdefs.h. */ 21347 _ACEOF 21348 cat confdefs.h >>conftest.$ac_ext 21349 cat >>conftest.$ac_ext <<_ACEOF 21350 /* end confdefs.h. */ 21351 extern "C" {void $cfuncdaxpy();} 21352 #ifdef F77_DUMMY_MAIN 21353 21354 # ifdef __cplusplus 21355 extern "C" 21356 # endif 21357 int F77_DUMMY_MAIN() { return 1; } 21358 21359 #endif 21360 int 21361 main () 21362 { 21363 $cfuncdaxpy() 21364 ; 21365 return 0; 21366 } 21367 _ACEOF 21368 rm -f conftest.$ac_objext conftest$ac_exeext 21369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21370 (eval $ac_link) 2>conftest.er1 21371 ac_status=$? 21372 grep -v '^ *+' conftest.er1 >conftest.err 21373 rm -f conftest.er1 21374 cat conftest.err >&5 21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21376 (exit $ac_status); } && 21377 { ac_try='test -z "$ac_c_werror_flag" 21378 || test ! -s conftest.err' 21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21380 (eval $ac_try) 2>&5 21381 ac_status=$? 21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21383 (exit $ac_status); }; } && 21384 { ac_try='test -s conftest$ac_exeext' 21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21386 (eval $ac_try) 2>&5 21387 ac_status=$? 21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21389 (exit $ac_status); }; }; then 21390 LIBS="$flink_save_libs" 21391 echo "$as_me:$LINENO: result: yes" >&5 21392 echo "${ECHO_T}yes" >&6 21393 coin_need_flibs=yes 21394 else 21395 echo "$as_me: failed program was:" >&5 21396 sed 's/^/| /' conftest.$ac_ext >&5 21397 21398 LIBS="$flink_save_libs" 21399 echo "$as_me:$LINENO: result: no" >&5 21400 echo "${ECHO_T}no" >&6 21401 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21402 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21403 { (exit 1); exit 1; }; } 21404 fi 21405 rm -f conftest.err conftest.$ac_objext \ 21406 conftest$ac_exeext conftest.$ac_ext 21407 else 21408 echo "$as_me:$LINENO: result: no" >&5 21409 echo "${ECHO_T}no" >&6 21410 { { echo "$as_me:$LINENO: error: user supplied BLAS library \"$use_blas\" does not work" >&5 21411 echo "$as_me: error: user supplied BLAS library \"$use_blas\" does not work" >&2;} 21412 { (exit 1); exit 1; }; } 21413 fi 21414 fi 21415 ;; 21416 esac 21417 21418 fi 21419 else 21420 # Try to autodetect the library for blas based on build system 21421 #AC_MSG_CHECKING([default locations for BLAS]) 21422 skip_lblas_check=no 21423 case $build in 21424 *-sgi-*) 21425 SAVE_LIBS="$LIBS" 21426 echo "$as_me:$LINENO: checking whether -lcomplib.sgimath has BLAS" >&5 21427 echo $ECHO_N "checking whether -lcomplib.sgimath has BLAS... $ECHO_C" >&6 21428 LIBS="-lcomplib.sgimath $LIBS" 21429 case $ac_ext in 21430 f) 21431 cat >conftest.$ac_ext <<_ACEOF 21432 /* confdefs.h. */ 21433 _ACEOF 21434 cat confdefs.h >>conftest.$ac_ext 21435 cat >>conftest.$ac_ext <<_ACEOF 21436 /* end confdefs.h. */ 21437 21438 #ifdef F77_DUMMY_MAIN 21439 21440 # ifdef __cplusplus 21441 extern "C" 21442 # endif 21443 int F77_DUMMY_MAIN() { return 1; } 21444 21445 #endif 21446 int 21447 main () 21448 { 21449 call daxpy 21450 ; 21451 return 0; 21452 } 21453 _ACEOF 21454 rm -f conftest.$ac_objext conftest$ac_exeext 21455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21456 (eval $ac_link) 2>conftest.er1 21457 ac_status=$? 21458 grep -v '^ *+' conftest.er1 >conftest.err 21459 rm -f conftest.er1 21460 cat conftest.err >&5 21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21462 (exit $ac_status); } && 21463 { ac_try='test -z "$ac_c_werror_flag" 21464 || test ! -s conftest.err' 21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21466 (eval $ac_try) 2>&5 21467 ac_status=$? 21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21469 (exit $ac_status); }; } && 21470 { ac_try='test -s conftest$ac_exeext' 21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21472 (eval $ac_try) 2>&5 21473 ac_status=$? 21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21475 (exit $ac_status); }; }; then 21476 echo "$as_me:$LINENO: result: yes" >&5 21477 echo "${ECHO_T}yes" >&6 21478 use_blas=-lcomplib.sgimath; 21479 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21480 else 21481 echo "$as_me: failed program was:" >&5 21482 sed 's/^/| /' conftest.$ac_ext >&5 21483 21484 echo "$as_me:$LINENO: result: no" >&5 21485 echo "${ECHO_T}no" >&6 21486 SAVE_LIBS="$LIBS" 21487 fi 21488 rm -f conftest.err conftest.$ac_objext \ 21489 conftest$ac_exeext conftest.$ac_ext 21490 ;; 21491 c) 21492 ac_ext=f 21493 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21494 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21495 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21496 case $ac_cv_f77_mangling in 21497 upper*) ac_val="DAXPY" ;; 21498 lower*) ac_val="daxpy" ;; 21499 *) ac_val="unknown" ;; 21500 esac 21501 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21502 21503 cfuncdaxpy="$ac_val" 21504 21505 ac_ext=c 21506 ac_cpp='$CPP $CPPFLAGS' 21507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21509 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21510 21511 if test x"$coin_need_flibs" = xyes; then 21512 flink_try=no; 21513 else 21514 cat >conftest.$ac_ext <<_ACEOF 21515 /* confdefs.h. */ 21516 _ACEOF 21517 cat confdefs.h >>conftest.$ac_ext 21518 cat >>conftest.$ac_ext <<_ACEOF 21519 /* end confdefs.h. */ 21520 void $cfuncdaxpy(); 21521 #ifdef F77_DUMMY_MAIN 21522 21523 # ifdef __cplusplus 21524 extern "C" 21525 # endif 21526 int F77_DUMMY_MAIN() { return 1; } 21527 21528 #endif 21529 int 21530 main () 21531 { 21532 $cfuncdaxpy() 21533 ; 21534 return 0; 21535 } 21536 _ACEOF 21537 rm -f conftest.$ac_objext conftest$ac_exeext 21538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21539 (eval $ac_link) 2>conftest.er1 21540 ac_status=$? 21541 grep -v '^ *+' conftest.er1 >conftest.err 21542 rm -f conftest.er1 21543 cat conftest.err >&5 21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21545 (exit $ac_status); } && 21546 { ac_try='test -z "$ac_c_werror_flag" 21547 || test ! -s conftest.err' 21548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21549 (eval $ac_try) 2>&5 21550 ac_status=$? 21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21552 (exit $ac_status); }; } && 21553 { ac_try='test -s conftest$ac_exeext' 21554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21555 (eval $ac_try) 2>&5 21556 ac_status=$? 21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21558 (exit $ac_status); }; }; then 21559 flink_try=yes 21560 else 21561 echo "$as_me: failed program was:" >&5 21562 sed 's/^/| /' conftest.$ac_ext >&5 21563 21564 flink_try=no 21565 fi 21566 rm -f conftest.err conftest.$ac_objext \ 21567 conftest$ac_exeext conftest.$ac_ext 21568 fi 21569 if test $flink_try = yes; then 21570 echo "$as_me:$LINENO: result: yes" >&5 21571 echo "${ECHO_T}yes" >&6 21572 use_blas=-lcomplib.sgimath; 21573 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21574 else 21575 if test x"$FLIBS" != x; then 21576 flink_save_libs="$LIBS" 21577 LIBS="$LIBS $FLIBS" 21578 cat >conftest.$ac_ext <<_ACEOF 21579 /* confdefs.h. */ 21580 _ACEOF 21581 cat confdefs.h >>conftest.$ac_ext 21582 cat >>conftest.$ac_ext <<_ACEOF 21583 /* end confdefs.h. */ 21584 void $cfuncdaxpy(); 21585 #ifdef F77_DUMMY_MAIN 21586 21587 # ifdef __cplusplus 21588 extern "C" 21589 # endif 21590 int F77_DUMMY_MAIN() { return 1; } 21591 21592 #endif 21593 int 21594 main () 21595 { 21596 $cfuncdaxpy() 21597 ; 21598 return 0; 21599 } 21600 _ACEOF 21601 rm -f conftest.$ac_objext conftest$ac_exeext 21602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21603 (eval $ac_link) 2>conftest.er1 21604 ac_status=$? 21605 grep -v '^ *+' conftest.er1 >conftest.err 21606 rm -f conftest.er1 21607 cat conftest.err >&5 21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21609 (exit $ac_status); } && 21610 { ac_try='test -z "$ac_c_werror_flag" 21611 || test ! -s conftest.err' 21612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21613 (eval $ac_try) 2>&5 21614 ac_status=$? 21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616 (exit $ac_status); }; } && 21617 { ac_try='test -s conftest$ac_exeext' 21618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21619 (eval $ac_try) 2>&5 21620 ac_status=$? 21621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21622 (exit $ac_status); }; }; then 21623 LIBS="$flink_save_libs" 21624 echo "$as_me:$LINENO: result: yes" >&5 21625 echo "${ECHO_T}yes" >&6 21626 use_blas=-lcomplib.sgimath; 21627 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21628 coin_need_flibs=yes 21629 else 21630 echo "$as_me: failed program was:" >&5 21631 sed 's/^/| /' conftest.$ac_ext >&5 21632 21633 LIBS="$flink_save_libs" 21634 echo "$as_me:$LINENO: result: no" >&5 21635 echo "${ECHO_T}no" >&6 21636 SAVE_LIBS="$LIBS" 21637 fi 21638 rm -f conftest.err conftest.$ac_objext \ 21639 conftest$ac_exeext conftest.$ac_ext 21640 else 21641 echo "$as_me:$LINENO: result: no" >&5 21642 echo "${ECHO_T}no" >&6 21643 SAVE_LIBS="$LIBS" 21644 fi 21645 fi 21646 ;; 21647 cc|cpp) 21648 ac_ext=f 21649 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21650 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21651 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21652 case $ac_cv_f77_mangling in 21653 upper*) ac_val="DAXPY" ;; 21654 lower*) ac_val="daxpy" ;; 21655 *) ac_val="unknown" ;; 21656 esac 21657 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21658 21659 cfuncdaxpy="$ac_val" 21660 21661 ac_ext=c 21662 ac_cpp='$CPP $CPPFLAGS' 21663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21665 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21666 21667 if test x"$coin_need_flibs" = xyes; then 21668 flink_try=no; 21669 else 21670 cat >conftest.$ac_ext <<_ACEOF 21671 /* confdefs.h. */ 21672 _ACEOF 21673 cat confdefs.h >>conftest.$ac_ext 21674 cat >>conftest.$ac_ext <<_ACEOF 21675 /* end confdefs.h. */ 21676 extern "C" {void $cfuncdaxpy();} 21677 #ifdef F77_DUMMY_MAIN 21678 21679 # ifdef __cplusplus 21680 extern "C" 21681 # endif 21682 int F77_DUMMY_MAIN() { return 1; } 21683 21684 #endif 21685 int 21686 main () 21687 { 21688 $cfuncdaxpy() 21689 ; 21690 return 0; 21691 } 21692 _ACEOF 21693 rm -f conftest.$ac_objext conftest$ac_exeext 21694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21695 (eval $ac_link) 2>conftest.er1 21696 ac_status=$? 21697 grep -v '^ *+' conftest.er1 >conftest.err 21698 rm -f conftest.er1 21699 cat conftest.err >&5 21700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21701 (exit $ac_status); } && 21702 { ac_try='test -z "$ac_c_werror_flag" 21703 || test ! -s conftest.err' 21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21705 (eval $ac_try) 2>&5 21706 ac_status=$? 21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21708 (exit $ac_status); }; } && 21709 { ac_try='test -s conftest$ac_exeext' 21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21711 (eval $ac_try) 2>&5 21712 ac_status=$? 21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21714 (exit $ac_status); }; }; then 21715 flink_try=yes 21716 else 21717 echo "$as_me: failed program was:" >&5 21718 sed 's/^/| /' conftest.$ac_ext >&5 21719 21720 flink_try=no 21721 fi 21722 rm -f conftest.err conftest.$ac_objext \ 21723 conftest$ac_exeext conftest.$ac_ext 21724 fi 21725 if test $flink_try = yes; then 21726 echo "$as_me:$LINENO: result: yes" >&5 21727 echo "${ECHO_T}yes" >&6 21728 use_blas=-lcomplib.sgimath; 21729 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21730 else 21731 if test x"$FLIBS" != x; then 21732 flink_save_libs="$LIBS" 21733 LIBS="$LIBS $FLIBS" 21734 cat >conftest.$ac_ext <<_ACEOF 21735 /* confdefs.h. */ 21736 _ACEOF 21737 cat confdefs.h >>conftest.$ac_ext 21738 cat >>conftest.$ac_ext <<_ACEOF 21739 /* end confdefs.h. */ 21740 extern "C" {void $cfuncdaxpy();} 21741 #ifdef F77_DUMMY_MAIN 21742 21743 # ifdef __cplusplus 21744 extern "C" 21745 # endif 21746 int F77_DUMMY_MAIN() { return 1; } 21747 21748 #endif 21749 int 21750 main () 21751 { 21752 $cfuncdaxpy() 21753 ; 21754 return 0; 21755 } 21756 _ACEOF 21757 rm -f conftest.$ac_objext conftest$ac_exeext 21758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21759 (eval $ac_link) 2>conftest.er1 21760 ac_status=$? 21761 grep -v '^ *+' conftest.er1 >conftest.err 21762 rm -f conftest.er1 21763 cat conftest.err >&5 21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21765 (exit $ac_status); } && 21766 { ac_try='test -z "$ac_c_werror_flag" 21767 || test ! -s conftest.err' 21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21769 (eval $ac_try) 2>&5 21770 ac_status=$? 21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21772 (exit $ac_status); }; } && 21773 { ac_try='test -s conftest$ac_exeext' 21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21775 (eval $ac_try) 2>&5 21776 ac_status=$? 21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21778 (exit $ac_status); }; }; then 21779 LIBS="$flink_save_libs" 21780 echo "$as_me:$LINENO: result: yes" >&5 21781 echo "${ECHO_T}yes" >&6 21782 use_blas=-lcomplib.sgimath; 21783 ADDLIBS="-lcomplib.sgimath $ADDLIBS" 21784 coin_need_flibs=yes 21785 else 21786 echo "$as_me: failed program was:" >&5 21787 sed 's/^/| /' conftest.$ac_ext >&5 21788 21789 LIBS="$flink_save_libs" 21790 echo "$as_me:$LINENO: result: no" >&5 21791 echo "${ECHO_T}no" >&6 21792 SAVE_LIBS="$LIBS" 21793 fi 21794 rm -f conftest.err conftest.$ac_objext \ 21795 conftest$ac_exeext conftest.$ac_ext 21796 else 21797 echo "$as_me:$LINENO: result: no" >&5 21798 echo "${ECHO_T}no" >&6 21799 SAVE_LIBS="$LIBS" 21800 fi 21801 fi 21802 ;; 21803 esac 21804 21805 ;; 21806 21807 # Ideally, we'd use -library=sunperf, but it's an imperfect world. Studio 21808 # cc doesn't recognise -library, it wants -xlic_lib. Studio 12 CC doesn't 21809 # recognise -xlic_lib. Libtool doesn't like -xlic_lib anyway. Sun claims 21810 # that CC and cc will understand -library in Studio 13. The main extra 21811 # function of -xlic_lib and -library is to arrange for the Fortran run-time 21812 # libraries to be linked for C++ and C. We can arrange that explicitly. 21813 *-*-solaris*) 21814 SAVE_LIBS="$LIBS" 21815 echo "$as_me:$LINENO: checking for BLAS in libsunperf" >&5 21816 echo $ECHO_N "checking for BLAS in libsunperf... $ECHO_C" >&6 21817 LIBS="-lsunperf $FLIBS $LIBS" 21818 case $ac_ext in 21819 f) 21820 cat >conftest.$ac_ext <<_ACEOF 21821 /* confdefs.h. */ 21822 _ACEOF 21823 cat confdefs.h >>conftest.$ac_ext 21824 cat >>conftest.$ac_ext <<_ACEOF 21825 /* end confdefs.h. */ 21826 21827 #ifdef F77_DUMMY_MAIN 21828 21829 # ifdef __cplusplus 21830 extern "C" 21831 # endif 21832 int F77_DUMMY_MAIN() { return 1; } 21833 21834 #endif 21835 int 21836 main () 21837 { 21838 call daxpy 21839 ; 21840 return 0; 21841 } 21842 _ACEOF 21843 rm -f conftest.$ac_objext conftest$ac_exeext 21844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21845 (eval $ac_link) 2>conftest.er1 21846 ac_status=$? 21847 grep -v '^ *+' conftest.er1 >conftest.err 21848 rm -f conftest.er1 21849 cat conftest.err >&5 21850 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21851 (exit $ac_status); } && 21852 { ac_try='test -z "$ac_c_werror_flag" 21853 || test ! -s conftest.err' 21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21855 (eval $ac_try) 2>&5 21856 ac_status=$? 21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21858 (exit $ac_status); }; } && 21859 { ac_try='test -s conftest$ac_exeext' 21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21861 (eval $ac_try) 2>&5 21862 ac_status=$? 21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21864 (exit $ac_status); }; }; then 21865 echo "$as_me:$LINENO: result: yes" >&5 21866 echo "${ECHO_T}yes" >&6 21867 use_blas='-lsunperf' 21868 ADDLIBS="-lsunperf $ADDLIBS" 21869 coin_need_flibs=yes 21870 else 21871 echo "$as_me: failed program was:" >&5 21872 sed 's/^/| /' conftest.$ac_ext >&5 21873 21874 echo "$as_me:$LINENO: result: no" >&5 21875 echo "${ECHO_T}no" >&6 21876 LIBS="$SAVE_LIBS" 21877 fi 21878 rm -f conftest.err conftest.$ac_objext \ 21879 conftest$ac_exeext conftest.$ac_ext 21880 ;; 21881 c) 21882 ac_ext=f 21883 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21884 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21885 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21886 case $ac_cv_f77_mangling in 21887 upper*) ac_val="DAXPY" ;; 21888 lower*) ac_val="daxpy" ;; 21889 *) ac_val="unknown" ;; 21890 esac 21891 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 21892 21893 cfuncdaxpy="$ac_val" 21894 21895 ac_ext=c 21896 ac_cpp='$CPP $CPPFLAGS' 21897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21899 ac_compiler_gnu=$ac_cv_c_compiler_gnu 21900 21901 if test x"$coin_need_flibs" = xyes; then 21902 flink_try=no; 21903 else 21904 cat >conftest.$ac_ext <<_ACEOF 21905 /* confdefs.h. */ 21906 _ACEOF 21907 cat confdefs.h >>conftest.$ac_ext 21908 cat >>conftest.$ac_ext <<_ACEOF 21909 /* end confdefs.h. */ 21910 void $cfuncdaxpy(); 21911 #ifdef F77_DUMMY_MAIN 21912 21913 # ifdef __cplusplus 21914 extern "C" 21915 # endif 21916 int F77_DUMMY_MAIN() { return 1; } 21917 21918 #endif 21919 int 21920 main () 21921 { 21922 $cfuncdaxpy() 21923 ; 21924 return 0; 21925 } 21926 _ACEOF 21927 rm -f conftest.$ac_objext conftest$ac_exeext 21928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21929 (eval $ac_link) 2>conftest.er1 21930 ac_status=$? 21931 grep -v '^ *+' conftest.er1 >conftest.err 21932 rm -f conftest.er1 21933 cat conftest.err >&5 21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21935 (exit $ac_status); } && 21936 { ac_try='test -z "$ac_c_werror_flag" 21937 || test ! -s conftest.err' 21938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21939 (eval $ac_try) 2>&5 21940 ac_status=$? 21941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21942 (exit $ac_status); }; } && 21943 { ac_try='test -s conftest$ac_exeext' 21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21945 (eval $ac_try) 2>&5 21946 ac_status=$? 21947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21948 (exit $ac_status); }; }; then 21949 flink_try=yes 21950 else 21951 echo "$as_me: failed program was:" >&5 21952 sed 's/^/| /' conftest.$ac_ext >&5 21953 21954 flink_try=no 21955 fi 21956 rm -f conftest.err conftest.$ac_objext \ 21957 conftest$ac_exeext conftest.$ac_ext 21958 fi 21959 if test $flink_try = yes; then 21960 echo "$as_me:$LINENO: result: yes" >&5 21961 echo "${ECHO_T}yes" >&6 21962 use_blas='-lsunperf' 21963 ADDLIBS="-lsunperf $ADDLIBS" 21964 coin_need_flibs=yes 21965 else 21966 if test x"$FLIBS" != x; then 21967 flink_save_libs="$LIBS" 21968 LIBS="$LIBS $FLIBS" 21969 cat >conftest.$ac_ext <<_ACEOF 21970 /* confdefs.h. */ 21971 _ACEOF 21972 cat confdefs.h >>conftest.$ac_ext 21973 cat >>conftest.$ac_ext <<_ACEOF 21974 /* end confdefs.h. */ 21975 void $cfuncdaxpy(); 21976 #ifdef F77_DUMMY_MAIN 21977 21978 # ifdef __cplusplus 21979 extern "C" 21980 # endif 21981 int F77_DUMMY_MAIN() { return 1; } 21982 21983 #endif 21984 int 21985 main () 21986 { 21987 $cfuncdaxpy() 21988 ; 21989 return 0; 21990 } 21991 _ACEOF 21992 rm -f conftest.$ac_objext conftest$ac_exeext 21993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21994 (eval $ac_link) 2>conftest.er1 21995 ac_status=$? 21996 grep -v '^ *+' conftest.er1 >conftest.err 21997 rm -f conftest.er1 21998 cat conftest.err >&5 21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22000 (exit $ac_status); } && 22001 { ac_try='test -z "$ac_c_werror_flag" 22002 || test ! -s conftest.err' 22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22004 (eval $ac_try) 2>&5 22005 ac_status=$? 22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22007 (exit $ac_status); }; } && 22008 { ac_try='test -s conftest$ac_exeext' 22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22010 (eval $ac_try) 2>&5 22011 ac_status=$? 22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22013 (exit $ac_status); }; }; then 22014 LIBS="$flink_save_libs" 22015 echo "$as_me:$LINENO: result: yes" >&5 22016 echo "${ECHO_T}yes" >&6 22017 use_blas='-lsunperf' 22018 ADDLIBS="-lsunperf $ADDLIBS" 22019 coin_need_flibs=yes 22020 coin_need_flibs=yes 22021 else 22022 echo "$as_me: failed program was:" >&5 22023 sed 's/^/| /' conftest.$ac_ext >&5 22024 22025 LIBS="$flink_save_libs" 22026 echo "$as_me:$LINENO: result: no" >&5 22027 echo "${ECHO_T}no" >&6 22028 LIBS="$SAVE_LIBS" 22029 fi 22030 rm -f conftest.err conftest.$ac_objext \ 22031 conftest$ac_exeext conftest.$ac_ext 22032 else 22033 echo "$as_me:$LINENO: result: no" >&5 22034 echo "${ECHO_T}no" >&6 22035 LIBS="$SAVE_LIBS" 22036 fi 22037 fi 22038 ;; 22039 cc|cpp) 22040 ac_ext=f 22041 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22042 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22043 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22044 case $ac_cv_f77_mangling in 22045 upper*) ac_val="DAXPY" ;; 22046 lower*) ac_val="daxpy" ;; 22047 *) ac_val="unknown" ;; 22048 esac 22049 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22050 22051 cfuncdaxpy="$ac_val" 22052 22053 ac_ext=c 22054 ac_cpp='$CPP $CPPFLAGS' 22055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22057 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22058 22059 if test x"$coin_need_flibs" = xyes; then 22060 flink_try=no; 22061 else 22062 cat >conftest.$ac_ext <<_ACEOF 22063 /* confdefs.h. */ 22064 _ACEOF 22065 cat confdefs.h >>conftest.$ac_ext 22066 cat >>conftest.$ac_ext <<_ACEOF 22067 /* end confdefs.h. */ 22068 extern "C" {void $cfuncdaxpy();} 22069 #ifdef F77_DUMMY_MAIN 22070 22071 # ifdef __cplusplus 22072 extern "C" 22073 # endif 22074 int F77_DUMMY_MAIN() { return 1; } 22075 22076 #endif 22077 int 22078 main () 22079 { 22080 $cfuncdaxpy() 22081 ; 22082 return 0; 22083 } 22084 _ACEOF 22085 rm -f conftest.$ac_objext conftest$ac_exeext 22086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22087 (eval $ac_link) 2>conftest.er1 22088 ac_status=$? 22089 grep -v '^ *+' conftest.er1 >conftest.err 22090 rm -f conftest.er1 22091 cat conftest.err >&5 22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22093 (exit $ac_status); } && 22094 { ac_try='test -z "$ac_c_werror_flag" 22095 || test ! -s conftest.err' 22096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22097 (eval $ac_try) 2>&5 22098 ac_status=$? 22099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22100 (exit $ac_status); }; } && 22101 { ac_try='test -s conftest$ac_exeext' 22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22103 (eval $ac_try) 2>&5 22104 ac_status=$? 22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22106 (exit $ac_status); }; }; then 22107 flink_try=yes 22108 else 22109 echo "$as_me: failed program was:" >&5 22110 sed 's/^/| /' conftest.$ac_ext >&5 22111 22112 flink_try=no 22113 fi 22114 rm -f conftest.err conftest.$ac_objext \ 22115 conftest$ac_exeext conftest.$ac_ext 22116 fi 22117 if test $flink_try = yes; then 22118 echo "$as_me:$LINENO: result: yes" >&5 22119 echo "${ECHO_T}yes" >&6 22120 use_blas='-lsunperf' 22121 ADDLIBS="-lsunperf $ADDLIBS" 22122 coin_need_flibs=yes 22123 else 22124 if test x"$FLIBS" != x; then 22125 flink_save_libs="$LIBS" 22126 LIBS="$LIBS $FLIBS" 22127 cat >conftest.$ac_ext <<_ACEOF 22128 /* confdefs.h. */ 22129 _ACEOF 22130 cat confdefs.h >>conftest.$ac_ext 22131 cat >>conftest.$ac_ext <<_ACEOF 22132 /* end confdefs.h. */ 22133 extern "C" {void $cfuncdaxpy();} 22134 #ifdef F77_DUMMY_MAIN 22135 22136 # ifdef __cplusplus 22137 extern "C" 22138 # endif 22139 int F77_DUMMY_MAIN() { return 1; } 22140 22141 #endif 22142 int 22143 main () 22144 { 22145 $cfuncdaxpy() 22146 ; 22147 return 0; 22148 } 22149 _ACEOF 22150 rm -f conftest.$ac_objext conftest$ac_exeext 22151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22152 (eval $ac_link) 2>conftest.er1 22153 ac_status=$? 22154 grep -v '^ *+' conftest.er1 >conftest.err 22155 rm -f conftest.er1 22156 cat conftest.err >&5 22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22158 (exit $ac_status); } && 22159 { ac_try='test -z "$ac_c_werror_flag" 22160 || test ! -s conftest.err' 22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22162 (eval $ac_try) 2>&5 22163 ac_status=$? 22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22165 (exit $ac_status); }; } && 22166 { ac_try='test -s conftest$ac_exeext' 22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22168 (eval $ac_try) 2>&5 22169 ac_status=$? 22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22171 (exit $ac_status); }; }; then 22172 LIBS="$flink_save_libs" 22173 echo "$as_me:$LINENO: result: yes" >&5 22174 echo "${ECHO_T}yes" >&6 22175 use_blas='-lsunperf' 22176 ADDLIBS="-lsunperf $ADDLIBS" 22177 coin_need_flibs=yes 22178 coin_need_flibs=yes 22179 else 22180 echo "$as_me: failed program was:" >&5 22181 sed 's/^/| /' conftest.$ac_ext >&5 22182 22183 LIBS="$flink_save_libs" 22184 echo "$as_me:$LINENO: result: no" >&5 22185 echo "${ECHO_T}no" >&6 22186 LIBS="$SAVE_LIBS" 22187 fi 22188 rm -f conftest.err conftest.$ac_objext \ 22189 conftest$ac_exeext conftest.$ac_ext 22190 else 22191 echo "$as_me:$LINENO: result: no" >&5 22192 echo "${ECHO_T}no" >&6 22193 LIBS="$SAVE_LIBS" 22194 fi 22195 fi 22196 ;; 22197 esac 22198 22199 ;; 22200 *-cygwin* | *-mingw*) 22201 # On cygwin, consider -lblas only if doscompile is disabled. The prebuilt 22202 # library will want to link with cygwin, hence won't run standalone in DOS. 22203 if test "$enable_doscompile" = mingw; then 22204 skip_lblas_check=yes 22205 fi 22206 case "$CC" in 22207 cl* | */cl* | CL* | */CL* | icl* | */icl* | ICL* | */ICL*) 22208 SAVE_LIBS="$LIBS" 22209 echo "$as_me:$LINENO: checking for BLAS in MKL" >&5 22210 echo $ECHO_N "checking for BLAS in MKL... $ECHO_C" >&6 22211 LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS" 22212 case $ac_ext in 22213 f) 22214 cat >conftest.$ac_ext <<_ACEOF 22215 /* confdefs.h. */ 22216 _ACEOF 22217 cat confdefs.h >>conftest.$ac_ext 22218 cat >>conftest.$ac_ext <<_ACEOF 22219 /* end confdefs.h. */ 22220 22221 #ifdef F77_DUMMY_MAIN 22222 22223 # ifdef __cplusplus 22224 extern "C" 22225 # endif 22226 int F77_DUMMY_MAIN() { return 1; } 22227 22228 #endif 22229 int 22230 main () 22231 { 22232 call daxpy 22233 ; 22234 return 0; 22235 } 22236 _ACEOF 22237 rm -f conftest.$ac_objext conftest$ac_exeext 22238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22239 (eval $ac_link) 2>conftest.er1 22240 ac_status=$? 22241 grep -v '^ *+' conftest.er1 >conftest.err 22242 rm -f conftest.er1 22243 cat conftest.err >&5 22244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22245 (exit $ac_status); } && 22246 { ac_try='test -z "$ac_c_werror_flag" 22247 || test ! -s conftest.err' 22248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22249 (eval $ac_try) 2>&5 22250 ac_status=$? 22251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22252 (exit $ac_status); }; } && 22253 { ac_try='test -s conftest$ac_exeext' 22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22255 (eval $ac_try) 2>&5 22256 ac_status=$? 22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22258 (exit $ac_status); }; }; then 22259 echo "$as_me:$LINENO: result: yes" >&5 22260 echo "${ECHO_T}yes" >&6 22261 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22262 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22263 else 22264 echo "$as_me: failed program was:" >&5 22265 sed 's/^/| /' conftest.$ac_ext >&5 22266 22267 echo "$as_me:$LINENO: result: no" >&5 22268 echo "${ECHO_T}no" >&6 22269 LIBS="$SAVE_LIBS" 22270 fi 22271 rm -f conftest.err conftest.$ac_objext \ 22272 conftest$ac_exeext conftest.$ac_ext 22273 ;; 22274 c) 22275 ac_ext=f 22276 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22277 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22278 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22279 case $ac_cv_f77_mangling in 22280 upper*) ac_val="DAXPY" ;; 22281 lower*) ac_val="daxpy" ;; 22282 *) ac_val="unknown" ;; 22283 esac 22284 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22285 22286 cfuncdaxpy="$ac_val" 22287 22288 ac_ext=c 22289 ac_cpp='$CPP $CPPFLAGS' 22290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22292 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22293 22294 if test x"$coin_need_flibs" = xyes; then 22295 flink_try=no; 22296 else 22297 cat >conftest.$ac_ext <<_ACEOF 22298 /* confdefs.h. */ 22299 _ACEOF 22300 cat confdefs.h >>conftest.$ac_ext 22301 cat >>conftest.$ac_ext <<_ACEOF 22302 /* end confdefs.h. */ 22303 void $cfuncdaxpy(); 22304 #ifdef F77_DUMMY_MAIN 22305 22306 # ifdef __cplusplus 22307 extern "C" 22308 # endif 22309 int F77_DUMMY_MAIN() { return 1; } 22310 22311 #endif 22312 int 22313 main () 22314 { 22315 $cfuncdaxpy() 22316 ; 22317 return 0; 22318 } 22319 _ACEOF 22320 rm -f conftest.$ac_objext conftest$ac_exeext 22321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22322 (eval $ac_link) 2>conftest.er1 22323 ac_status=$? 22324 grep -v '^ *+' conftest.er1 >conftest.err 22325 rm -f conftest.er1 22326 cat conftest.err >&5 22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22328 (exit $ac_status); } && 22329 { ac_try='test -z "$ac_c_werror_flag" 22330 || test ! -s conftest.err' 22331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22332 (eval $ac_try) 2>&5 22333 ac_status=$? 22334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22335 (exit $ac_status); }; } && 22336 { ac_try='test -s conftest$ac_exeext' 22337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22338 (eval $ac_try) 2>&5 22339 ac_status=$? 22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22341 (exit $ac_status); }; }; then 22342 flink_try=yes 22343 else 22344 echo "$as_me: failed program was:" >&5 22345 sed 's/^/| /' conftest.$ac_ext >&5 22346 22347 flink_try=no 22348 fi 22349 rm -f conftest.err conftest.$ac_objext \ 22350 conftest$ac_exeext conftest.$ac_ext 22351 fi 22352 if test $flink_try = yes; then 22353 echo "$as_me:$LINENO: result: yes" >&5 22354 echo "${ECHO_T}yes" >&6 22355 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22356 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22357 else 22358 if test x"$FLIBS" != x; then 22359 flink_save_libs="$LIBS" 22360 LIBS="$LIBS $FLIBS" 22361 cat >conftest.$ac_ext <<_ACEOF 22362 /* confdefs.h. */ 22363 _ACEOF 22364 cat confdefs.h >>conftest.$ac_ext 22365 cat >>conftest.$ac_ext <<_ACEOF 22366 /* end confdefs.h. */ 22367 void $cfuncdaxpy(); 22368 #ifdef F77_DUMMY_MAIN 22369 22370 # ifdef __cplusplus 22371 extern "C" 22372 # endif 22373 int F77_DUMMY_MAIN() { return 1; } 22374 22375 #endif 22376 int 22377 main () 22378 { 22379 $cfuncdaxpy() 22380 ; 22381 return 0; 22382 } 22383 _ACEOF 22384 rm -f conftest.$ac_objext conftest$ac_exeext 22385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22386 (eval $ac_link) 2>conftest.er1 22387 ac_status=$? 22388 grep -v '^ *+' conftest.er1 >conftest.err 22389 rm -f conftest.er1 22390 cat conftest.err >&5 22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22392 (exit $ac_status); } && 22393 { ac_try='test -z "$ac_c_werror_flag" 22394 || test ! -s conftest.err' 22395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22396 (eval $ac_try) 2>&5 22397 ac_status=$? 22398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22399 (exit $ac_status); }; } && 22400 { ac_try='test -s conftest$ac_exeext' 22401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22402 (eval $ac_try) 2>&5 22403 ac_status=$? 22404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22405 (exit $ac_status); }; }; then 22406 LIBS="$flink_save_libs" 22407 echo "$as_me:$LINENO: result: yes" >&5 22408 echo "${ECHO_T}yes" >&6 22409 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22410 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22411 coin_need_flibs=yes 22412 else 22413 echo "$as_me: failed program was:" >&5 22414 sed 's/^/| /' conftest.$ac_ext >&5 22415 22416 LIBS="$flink_save_libs" 22417 echo "$as_me:$LINENO: result: no" >&5 22418 echo "${ECHO_T}no" >&6 22419 LIBS="$SAVE_LIBS" 22420 fi 22421 rm -f conftest.err conftest.$ac_objext \ 22422 conftest$ac_exeext conftest.$ac_ext 22423 else 22424 echo "$as_me:$LINENO: result: no" >&5 22425 echo "${ECHO_T}no" >&6 22426 LIBS="$SAVE_LIBS" 22427 fi 22428 fi 22429 ;; 22430 cc|cpp) 22431 ac_ext=f 22432 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22433 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22434 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22435 case $ac_cv_f77_mangling in 22436 upper*) ac_val="DAXPY" ;; 22437 lower*) ac_val="daxpy" ;; 22438 *) ac_val="unknown" ;; 22439 esac 22440 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22441 22442 cfuncdaxpy="$ac_val" 22443 22444 ac_ext=c 22445 ac_cpp='$CPP $CPPFLAGS' 22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22448 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22449 22450 if test x"$coin_need_flibs" = xyes; then 22451 flink_try=no; 22452 else 22453 cat >conftest.$ac_ext <<_ACEOF 22454 /* confdefs.h. */ 22455 _ACEOF 22456 cat confdefs.h >>conftest.$ac_ext 22457 cat >>conftest.$ac_ext <<_ACEOF 22458 /* end confdefs.h. */ 22459 extern "C" {void $cfuncdaxpy();} 22460 #ifdef F77_DUMMY_MAIN 22461 22462 # ifdef __cplusplus 22463 extern "C" 22464 # endif 22465 int F77_DUMMY_MAIN() { return 1; } 22466 22467 #endif 22468 int 22469 main () 22470 { 22471 $cfuncdaxpy() 22472 ; 22473 return 0; 22474 } 22475 _ACEOF 22476 rm -f conftest.$ac_objext conftest$ac_exeext 22477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22478 (eval $ac_link) 2>conftest.er1 22479 ac_status=$? 22480 grep -v '^ *+' conftest.er1 >conftest.err 22481 rm -f conftest.er1 22482 cat conftest.err >&5 22483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22484 (exit $ac_status); } && 22485 { ac_try='test -z "$ac_c_werror_flag" 22486 || test ! -s conftest.err' 22487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22488 (eval $ac_try) 2>&5 22489 ac_status=$? 22490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22491 (exit $ac_status); }; } && 22492 { ac_try='test -s conftest$ac_exeext' 22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22494 (eval $ac_try) 2>&5 22495 ac_status=$? 22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22497 (exit $ac_status); }; }; then 22498 flink_try=yes 22499 else 22500 echo "$as_me: failed program was:" >&5 22501 sed 's/^/| /' conftest.$ac_ext >&5 22502 22503 flink_try=no 22504 fi 22505 rm -f conftest.err conftest.$ac_objext \ 22506 conftest$ac_exeext conftest.$ac_ext 22507 fi 22508 if test $flink_try = yes; then 22509 echo "$as_me:$LINENO: result: yes" >&5 22510 echo "${ECHO_T}yes" >&6 22511 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22512 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22513 else 22514 if test x"$FLIBS" != x; then 22515 flink_save_libs="$LIBS" 22516 LIBS="$LIBS $FLIBS" 22517 cat >conftest.$ac_ext <<_ACEOF 22518 /* confdefs.h. */ 22519 _ACEOF 22520 cat confdefs.h >>conftest.$ac_ext 22521 cat >>conftest.$ac_ext <<_ACEOF 22522 /* end confdefs.h. */ 22523 extern "C" {void $cfuncdaxpy();} 22524 #ifdef F77_DUMMY_MAIN 22525 22526 # ifdef __cplusplus 22527 extern "C" 22528 # endif 22529 int F77_DUMMY_MAIN() { return 1; } 22530 22531 #endif 22532 int 22533 main () 22534 { 22535 $cfuncdaxpy() 22536 ; 22537 return 0; 22538 } 22539 _ACEOF 22540 rm -f conftest.$ac_objext conftest$ac_exeext 22541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22542 (eval $ac_link) 2>conftest.er1 22543 ac_status=$? 22544 grep -v '^ *+' conftest.er1 >conftest.err 22545 rm -f conftest.er1 22546 cat conftest.err >&5 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); } && 22549 { ac_try='test -z "$ac_c_werror_flag" 22550 || test ! -s conftest.err' 22551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22552 (eval $ac_try) 2>&5 22553 ac_status=$? 22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22555 (exit $ac_status); }; } && 22556 { ac_try='test -s conftest$ac_exeext' 22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22558 (eval $ac_try) 2>&5 22559 ac_status=$? 22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22561 (exit $ac_status); }; }; then 22562 LIBS="$flink_save_libs" 22563 echo "$as_me:$LINENO: result: yes" >&5 22564 echo "${ECHO_T}yes" >&6 22565 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 22566 ADDLIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $ADDLIBS" 22567 coin_need_flibs=yes 22568 else 22569 echo "$as_me: failed program was:" >&5 22570 sed 's/^/| /' conftest.$ac_ext >&5 22571 22572 LIBS="$flink_save_libs" 22573 echo "$as_me:$LINENO: result: no" >&5 22574 echo "${ECHO_T}no" >&6 22575 LIBS="$SAVE_LIBS" 22576 fi 22577 rm -f conftest.err conftest.$ac_objext \ 22578 conftest$ac_exeext conftest.$ac_ext 22579 else 22580 echo "$as_me:$LINENO: result: no" >&5 22581 echo "${ECHO_T}no" >&6 22582 LIBS="$SAVE_LIBS" 22583 fi 22584 fi 22585 ;; 22586 esac 22587 22588 ;; 22589 esac 22590 ;; 22591 esac 22592 22593 if test -z "$use_blas" && test $skip_lblas_check = no; then 22594 SAVE_LIBS="$LIBS" 22595 echo "$as_me:$LINENO: checking whether -lblas has BLAS" >&5 22596 echo $ECHO_N "checking whether -lblas has BLAS... $ECHO_C" >&6 22597 LIBS="-lblas $LIBS" 22598 case $ac_ext in 22599 f) 22600 cat >conftest.$ac_ext <<_ACEOF 22601 /* confdefs.h. */ 22602 _ACEOF 22603 cat confdefs.h >>conftest.$ac_ext 22604 cat >>conftest.$ac_ext <<_ACEOF 22605 /* end confdefs.h. */ 22606 22607 #ifdef F77_DUMMY_MAIN 22608 22609 # ifdef __cplusplus 22610 extern "C" 22611 # endif 22612 int F77_DUMMY_MAIN() { return 1; } 22613 22614 #endif 22615 int 22616 main () 22617 { 22618 call daxpy 22619 ; 22620 return 0; 22621 } 22622 _ACEOF 22623 rm -f conftest.$ac_objext conftest$ac_exeext 22624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22625 (eval $ac_link) 2>conftest.er1 22626 ac_status=$? 22627 grep -v '^ *+' conftest.er1 >conftest.err 22628 rm -f conftest.er1 22629 cat conftest.err >&5 22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22631 (exit $ac_status); } && 22632 { ac_try='test -z "$ac_c_werror_flag" 22633 || test ! -s conftest.err' 22634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22635 (eval $ac_try) 2>&5 22636 ac_status=$? 22637 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22638 (exit $ac_status); }; } && 22639 { ac_try='test -s conftest$ac_exeext' 22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22641 (eval $ac_try) 2>&5 22642 ac_status=$? 22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22644 (exit $ac_status); }; }; then 22645 echo "$as_me:$LINENO: result: yes" >&5 22646 echo "${ECHO_T}yes" >&6 22647 ADDLIBS="-lblas $ADDLIBS" 22648 use_blas='-lblas' 22649 else 22650 echo "$as_me: failed program was:" >&5 22651 sed 's/^/| /' conftest.$ac_ext >&5 22652 22653 echo "$as_me:$LINENO: result: no" >&5 22654 echo "${ECHO_T}no" >&6 22655 LIBS="$SAVE_LIBS" 22656 fi 22657 rm -f conftest.err conftest.$ac_objext \ 22658 conftest$ac_exeext conftest.$ac_ext 22659 ;; 22660 c) 22661 ac_ext=f 22662 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22663 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22664 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22665 case $ac_cv_f77_mangling in 22666 upper*) ac_val="DAXPY" ;; 22667 lower*) ac_val="daxpy" ;; 22668 *) ac_val="unknown" ;; 22669 esac 22670 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22671 22672 cfuncdaxpy="$ac_val" 22673 22674 ac_ext=c 22675 ac_cpp='$CPP $CPPFLAGS' 22676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22678 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22679 22680 if test x"$coin_need_flibs" = xyes; then 22681 flink_try=no; 22682 else 22683 cat >conftest.$ac_ext <<_ACEOF 22684 /* confdefs.h. */ 22685 _ACEOF 22686 cat confdefs.h >>conftest.$ac_ext 22687 cat >>conftest.$ac_ext <<_ACEOF 22688 /* end confdefs.h. */ 22689 void $cfuncdaxpy(); 22690 #ifdef F77_DUMMY_MAIN 22691 22692 # ifdef __cplusplus 22693 extern "C" 22694 # endif 22695 int F77_DUMMY_MAIN() { return 1; } 22696 22697 #endif 22698 int 22699 main () 22700 { 22701 $cfuncdaxpy() 22702 ; 22703 return 0; 22704 } 22705 _ACEOF 22706 rm -f conftest.$ac_objext conftest$ac_exeext 22707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22708 (eval $ac_link) 2>conftest.er1 22709 ac_status=$? 22710 grep -v '^ *+' conftest.er1 >conftest.err 22711 rm -f conftest.er1 22712 cat conftest.err >&5 22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22714 (exit $ac_status); } && 22715 { ac_try='test -z "$ac_c_werror_flag" 22716 || test ! -s conftest.err' 22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22718 (eval $ac_try) 2>&5 22719 ac_status=$? 22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22721 (exit $ac_status); }; } && 22722 { ac_try='test -s conftest$ac_exeext' 22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22724 (eval $ac_try) 2>&5 22725 ac_status=$? 22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22727 (exit $ac_status); }; }; then 22728 flink_try=yes 22729 else 22730 echo "$as_me: failed program was:" >&5 22731 sed 's/^/| /' conftest.$ac_ext >&5 22732 22733 flink_try=no 22734 fi 22735 rm -f conftest.err conftest.$ac_objext \ 22736 conftest$ac_exeext conftest.$ac_ext 22737 fi 22738 if test $flink_try = yes; then 22739 echo "$as_me:$LINENO: result: yes" >&5 22740 echo "${ECHO_T}yes" >&6 22741 ADDLIBS="-lblas $ADDLIBS" 22742 use_blas='-lblas' 22743 else 22744 if test x"$FLIBS" != x; then 22745 flink_save_libs="$LIBS" 22746 LIBS="$LIBS $FLIBS" 22747 cat >conftest.$ac_ext <<_ACEOF 22748 /* confdefs.h. */ 22749 _ACEOF 22750 cat confdefs.h >>conftest.$ac_ext 22751 cat >>conftest.$ac_ext <<_ACEOF 22752 /* end confdefs.h. */ 22753 void $cfuncdaxpy(); 22754 #ifdef F77_DUMMY_MAIN 22755 22756 # ifdef __cplusplus 22757 extern "C" 22758 # endif 22759 int F77_DUMMY_MAIN() { return 1; } 22760 22761 #endif 22762 int 22763 main () 22764 { 22765 $cfuncdaxpy() 22766 ; 22767 return 0; 22768 } 22769 _ACEOF 22770 rm -f conftest.$ac_objext conftest$ac_exeext 22771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22772 (eval $ac_link) 2>conftest.er1 22773 ac_status=$? 22774 grep -v '^ *+' conftest.er1 >conftest.err 22775 rm -f conftest.er1 22776 cat conftest.err >&5 22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22778 (exit $ac_status); } && 22779 { ac_try='test -z "$ac_c_werror_flag" 22780 || test ! -s conftest.err' 22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22782 (eval $ac_try) 2>&5 22783 ac_status=$? 22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22785 (exit $ac_status); }; } && 22786 { ac_try='test -s conftest$ac_exeext' 22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22788 (eval $ac_try) 2>&5 22789 ac_status=$? 22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22791 (exit $ac_status); }; }; then 22792 LIBS="$flink_save_libs" 22793 echo "$as_me:$LINENO: result: yes" >&5 22794 echo "${ECHO_T}yes" >&6 22795 ADDLIBS="-lblas $ADDLIBS" 22796 use_blas='-lblas' 22797 coin_need_flibs=yes 22798 else 22799 echo "$as_me: failed program was:" >&5 22800 sed 's/^/| /' conftest.$ac_ext >&5 22801 22802 LIBS="$flink_save_libs" 22803 echo "$as_me:$LINENO: result: no" >&5 22804 echo "${ECHO_T}no" >&6 22805 LIBS="$SAVE_LIBS" 22806 fi 22807 rm -f conftest.err conftest.$ac_objext \ 22808 conftest$ac_exeext conftest.$ac_ext 22809 else 22810 echo "$as_me:$LINENO: result: no" >&5 22811 echo "${ECHO_T}no" >&6 22812 LIBS="$SAVE_LIBS" 22813 fi 22814 fi 22815 ;; 22816 cc|cpp) 22817 ac_ext=f 22818 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 22819 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22820 ac_compiler_gnu=$ac_cv_f77_compiler_gnu 22821 case $ac_cv_f77_mangling in 22822 upper*) ac_val="DAXPY" ;; 22823 lower*) ac_val="daxpy" ;; 22824 *) ac_val="unknown" ;; 22825 esac 22826 case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac 22827 22828 cfuncdaxpy="$ac_val" 22829 22830 ac_ext=c 22831 ac_cpp='$CPP $CPPFLAGS' 22832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22834 ac_compiler_gnu=$ac_cv_c_compiler_gnu 22835 22836 if test x"$coin_need_flibs" = xyes; then 22837 flink_try=no; 22838 else 22839 cat >conftest.$ac_ext <<_ACEOF 22840 /* confdefs.h. */ 22841 _ACEOF 22842 cat confdefs.h >>conftest.$ac_ext 22843 cat >>conftest.$ac_ext <<_ACEOF 22844 /* end confdefs.h. */ 22845 extern "C" {void $cfuncdaxpy();} 22846 #ifdef F77_DUMMY_MAIN 22847 22848 # ifdef __cplusplus 22849 extern "C" 22850 # endif 22851 int F77_DUMMY_MAIN() { return 1; } 22852 22853 #endif 22854 int 22855 main () 22856 { 22857 $cfuncdaxpy() 22858 ; 22859 return 0; 22860 } 22861 _ACEOF 22862 rm -f conftest.$ac_objext conftest$ac_exeext 22863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22864 (eval $ac_link) 2>conftest.er1 22865 ac_status=$? 22866 grep -v '^ *+' conftest.er1 >conftest.err 22867 rm -f conftest.er1 22868 cat conftest.err >&5 22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22870 (exit $ac_status); } && 22871 { ac_try='test -z "$ac_c_werror_flag" 22872 || test ! -s conftest.err' 22873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22874 (eval $ac_try) 2>&5 22875 ac_status=$? 22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22877 (exit $ac_status); }; } && 22878 { ac_try='test -s conftest$ac_exeext' 22879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22880 (eval $ac_try) 2>&5 22881 ac_status=$? 22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22883 (exit $ac_status); }; }; then 22884 flink_try=yes 22885 else 22886 echo "$as_me: failed program was:" >&5 22887 sed 's/^/| /' conftest.$ac_ext >&5 22888 22889 flink_try=no 22890 fi 22891 rm -f conftest.err conftest.$ac_objext \ 22892 conftest$ac_exeext conftest.$ac_ext 22893 fi 22894 if test $flink_try = yes; then 22895 echo "$as_me:$LINENO: result: yes" >&5 22896 echo "${ECHO_T}yes" >&6 22897 ADDLIBS="-lblas $ADDLIBS" 22898 use_blas='-lblas' 22899 else 22900 if test x"$FLIBS" != x; then 22901 flink_save_libs="$LIBS" 22902 LIBS="$LIBS $FLIBS" 22903 cat >conftest.$ac_ext <<_ACEOF 22904 /* confdefs.h. */ 22905 _ACEOF 22906 cat confdefs.h >>conftest.$ac_ext 22907 cat >>conftest.$ac_ext <<_ACEOF 22908 /* end confdefs.h. */ 22909 extern "C" {void $cfuncdaxpy();} 22910 #ifdef F77_DUMMY_MAIN 22911 22912 # ifdef __cplusplus 22913 extern "C" 22914 # endif 22915 int F77_DUMMY_MAIN() { return 1; } 22916 22917 #endif 22918 int 22919 main () 22920 { 22921 $cfuncdaxpy() 22922 ; 22923 return 0; 22924 } 22925 _ACEOF 22926 rm -f conftest.$ac_objext conftest$ac_exeext 22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22928 (eval $ac_link) 2>conftest.er1 22929 ac_status=$? 22930 grep -v '^ *+' conftest.er1 >conftest.err 22931 rm -f conftest.er1 22932 cat conftest.err >&5 22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22934 (exit $ac_status); } && 22935 { ac_try='test -z "$ac_c_werror_flag" 22936 || test ! -s conftest.err' 22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22938 (eval $ac_try) 2>&5 22939 ac_status=$? 22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22941 (exit $ac_status); }; } && 22942 { ac_try='test -s conftest$ac_exeext' 22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22944 (eval $ac_try) 2>&5 22945 ac_status=$? 22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22947 (exit $ac_status); }; }; then 22948 LIBS="$flink_save_libs" 22949 echo "$as_me:$LINENO: result: yes" >&5 22950 echo "${ECHO_T}yes" >&6 22951 ADDLIBS="-lblas $ADDLIBS" 22952 use_blas='-lblas' 22953 coin_need_flibs=yes 22954 else 22955 echo "$as_me: failed program was:" >&5 22956 sed 's/^/| /' conftest.$ac_ext >&5 22957 22958 LIBS="$flink_save_libs" 22959 echo "$as_me:$LINENO: result: no" >&5 22960 echo "${ECHO_T}no" >&6 22961 LIBS="$SAVE_LIBS" 22962 fi 22963 rm -f conftest.err conftest.$ac_objext \ 22964 conftest$ac_exeext conftest.$ac_ext 22965 else 22966 echo "$as_me:$LINENO: result: no" >&5 22967 echo "${ECHO_T}no" >&6 22968 LIBS="$SAVE_LIBS" 22969 fi 22970 fi 22971 ;; 22972 esac 22973 22974 fi 22975 22976 # If we have no other ideas, consider building BLAS. 22977 if test -z "$use_blas"; then 22978 if test "$PACKAGE_NAME" != ThirdPartyBlas; then 22979 if test -r $coin_blasobjdir/.MakeOk; then 22980 use_blas=BUILD 22981 fi 20312 22982 fi 20313 22983 fi 20314 22984 fi 20315 22985 20316 if test $coin_has_blas != unavailable && 20317 test $coin_has_blas != skipping; then 20318 # Set the #define if the component is available 22986 if test "$use_blas" = BUILD; then 22987 coin_need_flibs=yes 22988 fi 22989 22990 22991 22992 if test x"$use_blas" != x; then 22993 COIN_HAS_BLAS_TRUE= 22994 COIN_HAS_BLAS_FALSE='#' 22995 else 22996 COIN_HAS_BLAS_TRUE='#' 22997 COIN_HAS_BLAS_FALSE= 22998 fi 22999 23000 23001 23002 if test "$use_blas" = BUILD; then 23003 COIN_BUILD_BLAS_TRUE= 23004 COIN_BUILD_BLAS_FALSE='#' 23005 else 23006 COIN_BUILD_BLAS_TRUE='#' 23007 COIN_BUILD_BLAS_FALSE= 23008 fi 23009 23010 23011 if test x"$use_blas" = x || test "$use_blas" = no; then 23012 coin_has_blas=no 23013 else 23014 coin_has_blas=yes 20319 23015 20320 23016 cat >>confdefs.h <<\_ACEOF … … 20322 23018 _ACEOF 20323 23019 20324 20325 # Set the variables for source and object code location 20326 20327 BLASSRCDIR=`cd $srcdir/$coin_has_blas; pwd` 20328 20329 BLASOBJDIR=`pwd`/$coin_has_blas 20330 20331 BLASDOCDIR=$abs_lib_dir/../share/doc/coin/Blas 20332 fi 20333 20334 # Define the Makefile conditional 20335 20336 20337 if test $coin_has_blas != unavailable && 20338 test $coin_has_blas != skipping; then 20339 COIN_HAS_BLAS_TRUE= 20340 COIN_HAS_BLAS_FALSE='#' 20341 else 20342 COIN_HAS_BLAS_TRUE='#' 20343 COIN_HAS_BLAS_FALSE= 20344 fi 20345 20346 echo "$as_me:$LINENO: result: $coin_has_blas" >&5 20347 echo "${ECHO_T}$coin_has_blas" >&6 20348 20349 20350 # Check if Blas is already available on the system or provided by user 20351 #AC_COIN_HAS_BLAS 20352 #MAKEOKFILE=.MakeOk 20353 #if test $coin_has_blas = yes && test "$use_blas" != BUILD; then 20354 # rm -f $MAKEOKFILE 20355 # AC_MSG_NOTICE([The Blas sources don't need to be compiled]) 20356 # MAKEOKFILE= 20357 #else 20358 # touch $MAKEOKFILE 20359 #fi 20360 #AC_SUBST(MAKEOKFILE) 20361 #AM_CONDITIONAL(SKIPMAKE, test -z "$MAKEOKFILE") 20362 20363 ac_config_files="$ac_config_files Makefile blas_addlibs.txt blas.pc blas-uninstalled.pc" 23020 fi 23021 23022 MAKEOKFILE=.MakeOk 23023 if test $coin_has_blas = yes && test "$use_blas" != BUILD; then 23024 rm -f $MAKEOKFILE 23025 { echo "$as_me:$LINENO: The Blas sources don't need to be compiled" >&5 23026 echo "$as_me: The Blas sources don't need to be compiled" >&6;} 23027 MAKEOKFILE= 23028 else 23029 touch $MAKEOKFILE 23030 fi 23031 23032 23033 23034 if test -z "$MAKEOKFILE"; then 23035 SKIPMAKE_TRUE= 23036 SKIPMAKE_FALSE='#' 23037 else 23038 SKIPMAKE_TRUE='#' 23039 SKIPMAKE_FALSE= 23040 fi 23041 23042 23043 ac_config_files="$ac_config_files Makefile" 20364 23044 20365 23045 … … 20589 23269 Usually this means the macro was only invoked conditionally." >&5 20590 23270 echo "$as_me: error: conditional \"COIN_HAS_BLAS\" was never defined. 23271 Usually this means the macro was only invoked conditionally." >&2;} 23272 { (exit 1); exit 1; }; } 23273 fi 23274 if test -z "${COIN_BUILD_BLAS_TRUE}" && test -z "${COIN_BUILD_BLAS_FALSE}"; then 23275 { { echo "$as_me:$LINENO: error: conditional \"COIN_BUILD_BLAS\" was never defined. 23276 Usually this means the macro was only invoked conditionally." >&5 23277 echo "$as_me: error: conditional \"COIN_BUILD_BLAS\" was never defined. 23278 Usually this means the macro was only invoked conditionally." >&2;} 23279 { (exit 1); exit 1; }; } 23280 fi 23281 if test -z "${SKIPMAKE_TRUE}" && test -z "${SKIPMAKE_FALSE}"; then 23282 { { echo "$as_me:$LINENO: error: conditional \"SKIPMAKE\" was never defined. 23283 Usually this means the macro was only invoked conditionally." >&5 23284 echo "$as_me: error: conditional \"SKIPMAKE\" was never defined. 20591 23285 Usually this means the macro was only invoked conditionally." >&2;} 20592 23286 { (exit 1); exit 1; }; } … … 21032 23726 # Handling of arguments. 21033 23727 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21034 "blas_addlibs.txt" ) CONFIG_FILES="$CONFIG_FILES blas_addlibs.txt" ;;21035 "blas.pc" ) CONFIG_FILES="$CONFIG_FILES blas.pc" ;;21036 "blas-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES blas-uninstalled.pc" ;;21037 23728 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21038 23729 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 … … 21218 23909 s,@RPATH_FLAGS@,$RPATH_FLAGS,;t t 21219 23910 s,@LT_LDFLAGS@,$LT_LDFLAGS,;t t 21220 s,@BLASSRCDIR@,$BLASSRCDIR,;t t 21221 s,@BLASOBJDIR@,$BLASOBJDIR,;t t 21222 s,@BLASDOCDIR@,$BLASDOCDIR,;t t 23911 s,@FLIBS@,$FLIBS,;t t 21223 23912 s,@COIN_HAS_BLAS_TRUE@,$COIN_HAS_BLAS_TRUE,;t t 21224 23913 s,@COIN_HAS_BLAS_FALSE@,$COIN_HAS_BLAS_FALSE,;t t 23914 s,@COIN_BUILD_BLAS_TRUE@,$COIN_BUILD_BLAS_TRUE,;t t 23915 s,@COIN_BUILD_BLAS_FALSE@,$COIN_BUILD_BLAS_FALSE,;t t 23916 s,@MAKEOKFILE@,$MAKEOKFILE,;t t 23917 s,@SKIPMAKE_TRUE@,$SKIPMAKE_TRUE,;t t 23918 s,@SKIPMAKE_FALSE@,$SKIPMAKE_FALSE,;t t 21225 23919 s,@LIBEXT@,$LIBEXT,;t t 21226 23920 s,@VPATH_DISTCLEANFILES@,$VPATH_DISTCLEANFILES,;t t
Note: See TracChangeset
for help on using the changeset viewer.