Changeset 2952 for trunk/m4/yat_cblas.m4
- Timestamp:
- Jan 11, 2013, 7:01:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/m4/yat_cblas.m4
r2919 r2952 1 1 ## $Id$ 2 3 # 4 # serial 1 (yat 0.11) 5 # 2 6 3 7 # SYNOPSIS … … 16 20 # COPYLEFT 17 21 # 18 # Copyright (C) 2009, 2012 Peter Johansson22 # Copyright (C) 2009, 2012, 2013 Peter Johansson 19 23 # 20 24 # This file is part of the yat library, http://dev.thep.lu.se/yat … … 38 42 # written by Steven G. Johnson <stevenj@alum.mit.edu> 39 43 40 #41 # serial 042 #43 44 44 45 45 AC_DEFUN([YAT_LIB_CBLAS], [ 46 AC_DEFUN([YAT_LIB_CBLAS], 47 [ 46 48 AC_PREREQ([2.60]) dnl we use AS_CASE 47 49 yat_cblas_ok=no; … … 73 75 # CBLAS in ATLAS library? (http://math-atlas.sourceforge.net/) 74 76 if test $yat_cblas_ok = no; then 75 AC_SEARCH_LIBS([ATL_xerbla], [atlas], 77 AC_SEARCH_LIBS([ATL_xerbla], [atlas], 76 78 [AC_SEARCH_LIBS([cblas_sgemm], [cblas], 77 [yat_cblas_ok=yes; 79 [yat_cblas_ok=yes; 78 80 CBLAS_LIB="-lcblas -latlas"])]) 79 81 LIBS=$save_LIBS; … … 84 86 fi 85 87 88 # Openblas available from http://xianyi.github.com/OpenBLAS/ 89 if test $yat_cblas_ok = no; then 90 AC_CHECK_LIB([opencblas], [cblas_sgemm], 91 [yat_cblas_ok=yes; CBLAS_LIB="-lopencblas";]) 92 fi 93 86 94 # CBLAS in Intel MKL library? 87 95 if test $yat_cblas_ok = no; then 88 AC_CHECK_LIB([mkl_core], [cblas_sgemm], 96 AC_CHECK_LIB([mkl_core], [cblas_sgemm], 89 97 [acx_blas_ok=yes; CBLAS_LIBS="-lmkl_core"]) 90 98 fi … … 95 103 fi 96 104 97 # E execute ACTION-IF-FOUND or ACTION-IF-NOT-FOUND98 AS_IF([test x"$yat_cblas_ok" = xyes], 105 # Execute ACTION-IF-FOUND or ACTION-IF-NOT-FOUND 106 AS_IF([test x"$yat_cblas_ok" = xyes], 99 107 [m4_default([$1], [:])], 100 108 [yat_cblas_ok=no; m4_default([$2], [:])])
Note: See TracChangeset
for help on using the changeset viewer.