Changeset 1827 for stable/0.6/coin.m4
- Timestamp:
- Nov 13, 2010 7:45:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
stable/0.6/coin.m4
r1824 r1827 2915 2915 AC_TRY_LINK([void $cfunc$1();],[$cfunc$1()], 2916 2916 [LIBS="$flink_save_libs" 2917 coin_need_flibs=yes 2917 2918 $2 2918 coin_need_flibs=yes],2919 ], 2919 2920 [LIBS="$flink_save_libs" 2920 2921 $3]) … … 2940 2941 AC_TRY_LINK([extern "C" {void $cfunc$1();}],[$cfunc$1()], 2941 2942 [LIBS="$flink_save_libs" 2943 coin_need_flibs=yes 2942 2944 $2 2943 coin_need_flibs=yes],2945 ], 2944 2946 [LIBS="$flink_save_libs" 2945 2947 $3]) … … 4244 4246 elif test "$use_blas" != "no"; then 4245 4247 AC_MSG_CHECKING([whether user supplied BLASLIB=\"$use_blas\" works]) 4248 coin_need_flibs=no 4246 4249 coin_save_LIBS="$LIBS" 4247 4250 LIBS="$use_blas $LIBS" 4248 4251 AC_COIN_TRY_FLINK([daxpy], 4249 [AC_MSG_RESULT([yes])], 4252 [if test $coin_need_flibs = yes ; then 4253 use_blas="$use_blas $FLIBS" 4254 fi 4255 AC_MSG_RESULT([yes: $use_blas])], 4250 4256 [AC_MSG_RESULT([no]) 4251 4257 AC_MSG_ERROR([user supplied BLAS library \"$use_blas\" does not work])]) … … 4259 4265 *-sgi-*) 4260 4266 AC_MSG_CHECKING([whether -lcomplib.sgimath has BLAS]) 4267 coin_need_flibs=no 4261 4268 coin_save_LIBS="$LIBS" 4262 4269 LIBS="-lcomplib.sgimath $LIBS" 4263 4270 AC_COIN_TRY_FLINK([daxpy], 4264 [AC_MSG_RESULT([yes]) 4265 use_blas="-lcomplib.sgimath"], 4271 [use_blas="-lcomplib.sgimath" 4272 if test $coin_need_flibs = yes ; then 4273 use_blas="$use_blas $FLIBS" 4274 fi 4275 AC_MSG_RESULT([yes: $use_blas]) 4276 ], 4266 4277 [AC_MSG_RESULT([no])]) 4267 4278 LIBS="$coin_save_LIBS" … … 4276 4287 *-*-solaris*) 4277 4288 AC_MSG_CHECKING([for BLAS in libsunperf]) 4289 coin_need_flibs=no 4278 4290 coin_save_LIBS="$LIBS" 4279 4291 LIBS="-lsunperf $FLIBS $LIBS" 4280 4292 AC_COIN_TRY_FLINK([daxpy], 4281 [AC_MSG_RESULT([yes]) 4282 use_blas='-lsunperf' 4283 coin_need_flibs=yes], 4293 [use_blas='-lsunperf' 4294 if test $coin_need_flibs = yes ; then 4295 use_blas="$use_blas $FLIBS" 4296 fi 4297 AC_MSG_RESULT([yes: $use_blas]) 4298 ], 4284 4299 [AC_MSG_RESULT([no])]) 4285 4300 LIBS="$coin_save_LIBS" … … 4289 4304 # library will want to link with cygwin, hence won't run standalone in DOS. 4290 4305 if test "$enable_doscompile" = mingw; then 4291 4306 skip_lblas_check=yes 4292 4307 fi 4293 4308 case "$CC" in … … 4297 4312 LIBS="mkl_intel_c.lib mkl_sequential.lib mkl_core.lib $LIBS" 4298 4313 AC_COIN_TRY_FLINK([daxpy], 4299 [AC_MSG_RESULT([yes]) 4300 use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib'], 4314 [use_blas='mkl_intel_c.lib mkl_sequential.lib mkl_core.lib' 4315 AC_MSG_RESULT([yes: $use_blas]) 4316 ], 4301 4317 [AC_MSG_RESULT([no])]) 4302 4318 LIBS="$coin_save_LIBS" … … 4308 4324 if test -z "$use_blas" && test $skip_lblas_check = no; then 4309 4325 AC_MSG_CHECKING([whether -lblas has BLAS]) 4326 coin_need_flibs=no 4310 4327 coin_save_LIBS="$LIBS" 4311 4328 LIBS="-lblas $LIBS" 4312 4329 AC_COIN_TRY_FLINK([daxpy], 4313 [AC_MSG_RESULT([yes]) 4314 use_blas='-lblas'], 4315 [AC_MSG_RESULT([no])]) 4330 [AC_MSG_RESULT([yes]) 4331 use_blas='-lblas' 4332 if test $coin_need_flibs = yes ; then 4333 use_blas="$use_blas $FLIBS" 4334 fi 4335 ], 4336 [AC_MSG_RESULT([no])]) 4316 4337 LIBS="$coin_save_LIBS" 4317 4338 fi 4318 4339 4319 4340 # If we have no other ideas, consider building BLAS. 4320 4341 if test -z "$use_blas" ; then … … 4377 4398 [specify LAPACK library (or BUILD for compilation)]), 4378 4399 [use_lapack=$withval], [use_lapack=]) 4379 4400 4380 4401 #if user specified --with-lapack-lib, then we should give COIN_HAS_PACKAGE preference 4381 4402 AC_ARG_WITH([lapack-lib],,[use_lapack=BUILD]) … … 4388 4409 elif test "$use_lapack" != no; then 4389 4410 AC_MSG_CHECKING([whether user supplied LAPACKLIB=\"$use_lapack\" works]) 4411 coin_need_flibs=no 4412 use_lapack="$use_lapack $BLAS_LIBS" 4390 4413 coin_save_LIBS="$LIBS" 4391 LIBS="$use_lapack $ BLAS_LIBS $LIBS"4414 LIBS="$use_lapack $LIBS" 4392 4415 AC_COIN_TRY_FLINK([dsyev], 4393 [AC_MSG_RESULT([yes])], 4416 [if test $coin_need_flibs = yes ; then 4417 use_lapack="$use_lapack $FLIBS" 4418 fi 4419 AC_MSG_RESULT([yes: $use_lapack]) 4420 ], 4394 4421 [AC_MSG_RESULT([no]) 4395 4422 AC_MSG_ERROR([user supplied LAPACK library \"$use_lapack\" does not work])]) … … 4401 4428 AC_MSG_CHECKING([whether LAPACK is already available with BLAS library]) 4402 4429 coin_save_LIBS="$LIBS" 4430 coin_need_flibs=no 4403 4431 LIBS="$BLAS_LIBS $LIBS" 4404 4432 AC_COIN_TRY_FLINK([dsyev], 4405 [AC_MSG_RESULT([yes]); use_lapack="$BLAS_LIBS"], 4433 [use_lapack="$BLAS_LIBS" 4434 if test $coin_need_flibs = yes ; then 4435 use_lapack="$use_lapack $FLIBS" 4436 fi 4437 AC_MSG_RESULT([yes: $use_lapack]) 4438 ], 4406 4439 [AC_MSG_RESULT([no])]) 4407 4440 LIBS="$coin_save_LIBS" … … 4414 4447 AC_MSG_CHECKING([whether -lcomplib.sgimath has LAPACK]) 4415 4448 coin_save_LIBS="$LIBS" 4449 coin_need_flibs=no 4416 4450 LIBS="-lcomplib.sgimath $BLAS_LIBS $LIBS" 4417 4451 AC_COIN_TRY_FLINK([dsyev], 4418 [AC_MSG_RESULT([yes]) 4419 use_lapack="-lcomplib.sgimath;"], 4452 [use_lapack="-lcomplib.sgimath $BLAS_LIBS" 4453 if test $coin_need_flibs = yes ; then 4454 use_lapack="$use_lapack $FLIBS" 4455 fi 4456 AC_MSG_RESULT([yes: $use_lapack]) 4457 ], 4420 4458 [AC_MSG_RESULT([no])]) 4421 4459 LIBS="$coin_save_LIBS" … … 4425 4463 *-*-solaris*) 4426 4464 AC_MSG_CHECKING([for LAPACK in libsunperf]) 4465 coin_need_flibs=no 4427 4466 coin_save_LIBS="$LIBS" 4428 4467 LIBS="-lsunperf $BLAS_LIBS $FLIBS $LIBS" 4429 4468 AC_COIN_TRY_FLINK([dsyev], 4430 [AC_MSG_RESULT([yes]) 4431 use_lapack='-lsunperf' 4432 coin_need_flibs=yes], 4469 [use_lapack='-lsunperf $BLAS_LIBS' 4470 if test $coin_need_flibs = yes ; then 4471 use_lapack="$use_lapack $FLIBS" 4472 fi 4473 AC_MSG_RESULT([yes: $use_lapack]) 4474 ], 4433 4475 [AC_MSG_RESULT([no])]) 4434 4476 LIBS="$coin_save_LIBS" … … 4446 4488 if test -z "$use_lapack" && test $skip_llapack_check = no; then 4447 4489 AC_MSG_CHECKING([whether -llapack has LAPACK]) 4490 coin_need_flibs=no 4448 4491 coin_save_LIBS="$LIBS" 4449 4492 LIBS="-llapack $BLAS_LIBS $LIBS" 4450 4493 AC_COIN_TRY_FLINK([dsyev], 4451 [AC_MSG_RESULT([yes]) 4452 use_lapack='-llapack'], 4453 [AC_MSG_RESULT([no])]) 4494 [use_lapack='-llapack' 4495 if test $coin_need_flibs = yes ; then 4496 use_lapack="$use_lapack $FLIBS" 4497 fi 4498 AC_MSG_RESULT([yes: $use_lapack]) 4499 ], 4500 [AC_MSG_RESULT([no])]) 4454 4501 LIBS="$coin_save_LIBS" 4455 4502 fi … … 4463 4510 if test "x$use_lapack" = xBUILD ; then 4464 4511 AC_COIN_CHECK_PACKAGE(Lapack, [coinlapack], [$1]) 4465 4512 4466 4513 elif test "x$use_lapack" != x && test "$use_lapack" != no; then 4467 4514 coin_has_lapack=yes
Note: See TracChangeset
for help on using the changeset viewer.