Mercurial > hg > octave-nkf
changeset 15361:01c4f5d8a656
configure.ac: Cache results for QRUPDATE_LUU autoconf test.
* configure.ac: Cache results for QRUPDATE_LUU autoconf test.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 12 Sep 2012 11:36:35 -0700 |
parents | 4b82664f526b |
children | 48cb1a5bb64d |
files | configure.ac |
diffstat | 1 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.ac +++ b/configure.ac @@ -1231,16 +1231,17 @@ [Fortran 77], [don't use qrupdate, disable QR & Cholesky updating functions]) if test "$octave_cv_lib_qrupdate" = yes; then - LIBS="$LIBS $QRUPDATE_LIBS" - AC_LANG_PUSH([Fortran 77]) - AC_MSG_CHECKING([for slup1up in $QRUPDATE_LIBS]) - octave_qrupdate_luu=no - AC_LINK_IFELSE([AC_LANG_CALL([], [slup1up])], [octave_qrupdate_luu=yes]) - AC_MSG_RESULT([$octave_qrupdate_luu]) - if test "$octave_qrupdate_luu" = yes; then + AC_CACHE_CHECK([for slup1up in $QRUPDATE_LIBS], + [octave_cv_func_slup1up], + [LIBS="$LIBS $QRUPDATE_LIBS" + AC_LANG_PUSH([Fortran 77]) + AC_LINK_IFELSE([AC_LANG_CALL([], [slup1up])], + octave_cv_func_slup1up=yes, octave_cv_func_slup1up=no) + AC_LANG_POP([Fortran 77]) + ]) + if test $octave_cv_func_slup1up = yes; then AC_DEFINE(HAVE_QRUPDATE_LUU, 1, [Define to 1 if qrupdate supports LU updates.]) fi - AC_LANG_POP([Fortran 77]) fi LIBS="$save_LIBS"