changeset 17976:437e51a0c25d

Assume yes for ax_blas_f77_func_ok when cross-compiling. * configure.ac: Pass 3rd argument to use when cross-compling to AX_BLAS_WITH_F77_FUNC. * m4/ax_blas_f77_func.m4 (AX_BLAS_WITH_F77_FUNC): Pass on optional 3rd argument used when cross-compiling to internal macro AX_BLAS_F77_FUNC.
author Rik <rik@octave.org>
date Thu, 21 Nov 2013 11:07:05 -0800
parents 542be31e0ccc
children acdee77299e1
files configure.ac m4/ax_blas_f77_func.m4
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Thu Nov 21 20:37:53 2013 +0100
+++ b/configure.ac	Thu Nov 21 11:07:05 2013 -0800
@@ -1291,7 +1291,9 @@
 save_FFLAGS="$FFLAGS"
 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG"
 
-AX_BLAS_WITH_F77_FUNC([:], [:])
+AX_BLAS_WITH_F77_FUNC([:], [:],
+  [ax_blas_f77_func_ok=yes
+   AC_MSG_RESULT([yes assumed for cross compilation])])
 AX_LAPACK([:], [:])
 
 ## Restore FFLAGS.
--- a/m4/ax_blas_f77_func.m4	Thu Nov 21 20:37:53 2013 +0100
+++ b/m4/ax_blas_f77_func.m4	Thu Nov 21 11:07:05 2013 -0800
@@ -196,7 +196,8 @@
 if test x$ax_blas_ok = xyes ; then
 	AX_BLAS_F77_FUNC(
 	[ifelse([$1],,AC_DEFINE(HAVE_BLAS,1,[Define if you have a BLAS library.]),[$1])],
-	[ax_blas_ok=no; BLAS_LIBS=])
+	[ax_blas_ok=no; BLAS_LIBS=],
+  [$3])
 fi
 if test x$ax_blas_ok = xno ; then
 	$2