⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 atlas.m4

📁 LAPACK++ (Linear Algebra PACKage in C++) is a software library for numerical linear algebra that sol
💻 M4
字号:
# $Id: atlas.m4,v 1.2 2004/04/29 08:36:16 cstim Exp $# (c) 2004 Martin Preuss<martin@libchipcard.de># This function checks if ATLAS is wanted and locates itAC_DEFUN([AQ_CHECK_ATLAS],[dnl PREREQUISITES:dnl   nothingdnl IN: dnl   nothingdnl OUT:dnl   Variables:dnl     atlas_libraries: Path to the ATLAS libraries (subst)dnl     atlas_lib: ATLAS libraries to link against (subst)dnl     atlas_available: "yes" if ATLAS is availablednl   Defines:dnl check if atlas is desiredAC_MSG_CHECKING(if ATLAS should be used)AC_ARG_ENABLE(atlas,  [  --enable-atlas             enable ATLAS (default=yes)],  enable_atlas="$enableval",  enable_atlas="yes")AC_MSG_RESULT($enable_atlas)atlas_bad=noif test "$enable_atlas" != "no"; thenAC_ARG_WITH(atlas-libs, [  --with-atlas-libs=DIR  adds ATLAS library path],  [atlas_search_lib_dirs="$withval"],  [atlas_search_lib_dirs="/usr/lib \		       /usr/local/lib \		       /usr/lib/atlas/lib \		       /usr/local/atlas/lib \		       /lib"])dnl ******* atlas lib ***********AC_MSG_CHECKING(for ATLAS library)atlas_search_lib_names="libatlas.so \                        libatlas.so.* \                        libatlas.a"dnl search for atlas libsfor d in $atlas_search_lib_dirs; do  AQ_SEARCH_FILES("$d",$atlas_search_lib_names)  if test -n "$found_file" ; then     case "$found_file" in        *a)         atlas_lib="$d/$found_file"         ;;       *)         atlas_libraries="-L$d"         atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'`"         ;;       esac     AC_MSG_RESULT($d ($found_file))     break  fidoneif test -z "atlas_lib"; then  atlas_bad=yes  AC_MSG_WARN(not found)fidnl *******  lib ***********AC_MSG_CHECKING(for f77blas library)atlas_search_lib_names="libf77blas.so \                        libf77blas.so.* \                        libf77blas.a"dnl search for atlas libsAQ_SEARCH_FILES("$d",$atlas_search_lib_names)if test -n "$found_file" ; then   case "$found_file" in      *a)       atlas_lib="$d/$found_file $atlas_lib "       ;;     *)       atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'` $atlas_lib"       ;;   esac   AC_MSG_RESULT($d ($found_file))else  atlas_bad=yes  AC_MSG_WARN(not found)fidnl *******  lib ***********AC_MSG_CHECKING(for cblas library)atlas_search_lib_names="libcblas.so \                        libcblas.so.* \                        libcblas.a"dnl search for atlas libsAQ_SEARCH_FILES("$d",$atlas_search_lib_names)if test -n "$found_file" ; then   case "$found_file" in      *a)       atlas_lib="$d/$found_file $atlas_lib"       ;;     *)       atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'` $atlas_lib"       ;;   esac   AC_MSG_RESULT($d ($found_file))else  atlas_bad=yes  AC_MSG_WARN(not found)fiAC_MSG_CHECKING(whether ATLAS is usable)if test -z "$atlas_lib" -o "$atlas_bad" = "yes"; then    atlas_available="no"    AC_MSG_WARN(no)else    atlas_available="yes"    AC_MSG_RESULT(yes)fi# end of "if enable-atlas"fiAC_SUBST(atlas_libraries)AC_SUBST(atlas_lib)])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -