comparison m4/acinclude.m4 @ 24336:0771ce2d30ef stable

build: Fix compiling OCTAVE_ARPACK_OK_2 Fortran code (bug #52425). * m4/acinclude.m4 (OCTAVE_ARPACK_OK_2): Save FFLAGS. Add $F77_INTEGER_8_FLAG to FFLAGS for compilation of test Fortran code. Restore FFLAGS.
author Rik <rik@octave.org>
date Wed, 29 Nov 2017 13:43:58 -0800
parents f52d91f6ef80
children 999b167e5b4a
comparison
equal deleted inserted replaced
24329:740c6a7db92a 24336:0771ce2d30ef
946 dnl See bug #52425. 946 dnl See bug #52425.
947 dnl 947 dnl
948 AC_DEFUN([OCTAVE_CHECK_LIB_ARPACK_OK_2], [ 948 AC_DEFUN([OCTAVE_CHECK_LIB_ARPACK_OK_2], [
949 AC_CACHE_CHECK([whether the arpack library is free of bugs], 949 AC_CACHE_CHECK([whether the arpack library is free of bugs],
950 [octave_cv_lib_arpack_ok_2], 950 [octave_cv_lib_arpack_ok_2],
951 [AC_LANG_PUSH(Fortran 77) 951 [save_FFLAGS="$FFLAGS"
952 FFLAGS="$FFLAGS $F77_INTEGER_8_FLAG"
953 AC_LANG_PUSH(Fortran 77)
952 AC_RUN_IFELSE([[ 954 AC_RUN_IFELSE([[
953 program bug_52425 955 program bug_52425
954 c 956 c
955 integer maxn, maxnev, maxncv, ldv 957 integer maxn, maxnev, maxncv, ldv
956 parameter (maxn=256, maxnev=10, maxncv=25, 958 parameter (maxn=256, maxnev=10, maxncv=25,
1061 end 1063 end
1062 ]], 1064 ]],
1063 octave_cv_lib_arpack_ok_2=yes, 1065 octave_cv_lib_arpack_ok_2=yes,
1064 octave_cv_lib_arpack_ok_2=no, 1066 octave_cv_lib_arpack_ok_2=no,
1065 octave_cv_lib_arpack_ok_2=yes) 1067 octave_cv_lib_arpack_ok_2=yes)
1068 ## Restore FFLAGS.
1069 FFLAGS="$save_FFLAGS"
1066 AC_LANG_POP(Fortran 77) 1070 AC_LANG_POP(Fortran 77)
1067 ]) 1071 ])
1068 if test $octave_cv_lib_arpack_ok_2 = yes; then 1072 if test $octave_cv_lib_arpack_ok_2 = yes; then
1069 $1 1073 $1
1070 : 1074 :