diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 01:44:43 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-07-24 01:44:43 +0200 |
commit | b45fd8dd0a8dabba7e8cba99e8c13e84d93ba858 (patch) | |
tree | 51f5c3c30d449b30c958aca39ccaa00f45b2bbf8 /m4/ax_blas.m4 | |
parent | 7f44296a6683be232d6f945f03cecf50ce1ca641 (diff) | |
download | autoconf-archive-b45fd8dd0a8dabba7e8cba99e8c13e84d93ba858.tar.gz |
Replace obsolete AC_TRY_LINK_FUNCTION macros
Autoconf 2.50 introduced new macros in favor of the AC_TRY_FOO. Since
Autoconf 2.55 the AC_TRY_LINK_FUNC macro has been additionally marked
as obsolete and suggested to be replaced with AC_LINK_IFELSE and
AC_LANG_CALL.
Refs:
- http://git.savannah.gnu.org/cgit/autoconf.git/tree/NEWS
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
Diffstat (limited to 'm4/ax_blas.m4')
-rw-r--r-- | m4/ax_blas.m4 | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/m4/ax_blas.m4 b/m4/ax_blas.m4 index bf9f29c..06c2024 100644 --- a/m4/ax_blas.m4 +++ b/m4/ax_blas.m4 @@ -63,11 +63,11 @@ # modified version of the Autoconf Macro, you may extend this special # exception to the GPL to apply to your modified version as well. -#serial 15 +#serial 16 AU_ALIAS([ACX_BLAS], [AX_BLAS]) AC_DEFUN([AX_BLAS], [ -AC_PREREQ(2.50) +AC_PREREQ([2.55]) AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS]) AC_REQUIRE([AC_CANONICAL_HOST]) ax_blas_ok=no @@ -93,7 +93,7 @@ if test $ax_blas_ok = no; then if test "x$BLAS_LIBS" != x; then save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" AC_MSG_CHECKING([for $sgemm in $BLAS_LIBS]) - AC_TRY_LINK_FUNC($sgemm, [ax_blas_ok=yes], [BLAS_LIBS=""]) + AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes], [BLAS_LIBS=""]) AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi @@ -103,7 +103,7 @@ fi if test $ax_blas_ok = no; then save_LIBS="$LIBS"; LIBS="$LIBS" AC_MSG_CHECKING([if $sgemm is being linked in already]) - AC_TRY_LINK_FUNC($sgemm, [ax_blas_ok=yes]) + AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes]) AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi @@ -174,7 +174,7 @@ fi if test $ax_blas_ok = no; then save_LIBS="$LIBS"; LIBS="-framework vecLib $LIBS" AC_MSG_CHECKING([for $sgemm in -framework vecLib]) - AC_TRY_LINK_FUNC($sgemm, [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"]) + AC_LINK_IFELSE([AC_LANG_CALL([], [$sgemm])], [ax_blas_ok=yes;BLAS_LIBS="-framework vecLib"]) AC_MSG_RESULT($ax_blas_ok) LIBS="$save_LIBS" fi |