Mercurial > octave-nkf
comparison configure.ac @ 10721:4906ccf5d95e
use F77_INTEGER8_FLAG in BLAS checking as well as ALL_FFLAGS in mkoctfile
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 23 Jun 2010 11:21:51 +0200 |
parents | f35903fa42ed |
children | 229675bb7647 |
comparison
equal
deleted
inserted
replaced
10720:998d7ba68009 | 10721:4906ccf5d95e |
---|---|
940 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" | 940 XTRA_CRUFT_SH_LDFLAGS="-Wl,-def:cruft.def" |
941 fi | 941 fi |
942 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS) | 942 AC_SUBST(XTRA_CRUFT_SH_LDFLAGS) |
943 | 943 |
944 ### Checks for BLAS and LAPACK libraries: | 944 ### Checks for BLAS and LAPACK libraries: |
945 | |
946 ## Need to adjust FFLAGS to include correct integer size. | |
947 save_FFLAGS="$FFLAGS" | |
948 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG" | |
949 | |
945 ACX_BLAS_WITH_F77_FUNC([:], [:]) | 950 ACX_BLAS_WITH_F77_FUNC([:], [:]) |
946 ACX_LAPACK([:], [:]) | 951 ACX_LAPACK([:], [:]) |
947 | 952 |
953 ## Restore FFLAGS. | |
954 FFLAGS="$save_FFLAGS" | |
955 | |
956 if test "x$acx_blas_f77_func_ok" = "xno"; then | |
957 if $USE_64_BIT_IDX_T && test "$acx_blas_integer_size_ok" = "no" ; then | |
958 ## Attempt to be more informative. | |
959 AC_MSG_ERROR([BLAS doesn't seem to support 64-bit integers. This is incompatible with --enable-64.]) | |
960 else | |
961 AC_MSG_ERROR([A BLAS library was detected but found incompatible with your Fortran 77 compiler settings.]) | |
962 fi | |
963 fi | |
964 | |
948 if test x$acx_blas_ok = xno || test x$acx_lapack_ok = xno; then | 965 if test x$acx_blas_ok = xno || test x$acx_lapack_ok = xno; then |
949 AC_MSG_ERROR([You are required to have BLAS and LAPACK libraries]) | 966 AC_MSG_ERROR([You are required to have BLAS and LAPACK libraries]) |
950 fi | 967 fi |
951 | 968 |
952 if test "x$acx_blas_f77_func_ok" = "xno"; then | 969 ### Check for the qrupdate library |
953 AC_MSG_ERROR([A BLAS library was detected but found incompatible with your Fortran 77 compiler]) | 970 ## No need to adjust FFLAGS because only link is attempted. |
954 fi | 971 ## Must supply proper LIBS, however. |
955 | |
956 # Check for the qrupdate library | |
957 | 972 |
958 save_LIBS="$LIBS" | 973 save_LIBS="$LIBS" |
959 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" | 974 LIBS="$LAPACK_LIBS $BLAS_LIBS $FLIBS $LIBS" |
960 OCTAVE_CHECK_LIBRARY(qrupdate, qrupdate, | 975 OCTAVE_CHECK_LIBRARY(qrupdate, qrupdate, |
961 [qrupdate not found. The QR & Cholesky updating functions will be slow.], | 976 [qrupdate not found. The QR & Cholesky updating functions will be slow.], |