|
|
@ -7174,35 +7174,44 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran SAME_TYPE_AS" >&5
|
|
|
|
# Optional features
|
|
|
|
$as_echo_n "checking support for Fortran SAME_TYPE_AS... " >&6; }
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran VOLATILE" >&5
|
|
|
|
|
|
|
|
$as_echo_n "checking support for Fortran VOLATILE... " >&6; }
|
|
|
|
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
program stt
|
|
|
|
integer, volatile :: i, j
|
|
|
|
type foo
|
|
|
|
end program conftest
|
|
|
|
integer :: i
|
|
|
|
|
|
|
|
end type foo
|
|
|
|
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
|
|
|
|
integer :: j
|
|
|
|
|
|
|
|
end type new_foo
|
|
|
|
|
|
|
|
type(foo) :: foov
|
|
|
|
|
|
|
|
type(new_foo) :: nfv1, nfv2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write(*,*) 'foov == nfv1? ', same_type_as(foov,nfv1)
|
|
|
|
|
|
|
|
write(*,*) 'nfv2 == nfv1? ', same_type_as(nfv2,nfv1)
|
|
|
|
|
|
|
|
end program stt
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_VOLATILE $FDEFINES"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
as_fn_error $? "Sorry, cannot build PSBLAS without support for SAME_TYPE_AS.
|
|
|
|
|
|
|
|
Please get a Fortran compiler that supports it, e.g. GNU Fortran 4.8." "$LINENO" 5
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -7214,31 +7223,30 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test GENERIC interfaces" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran EXTENDS_TYPE_OF" >&5
|
|
|
|
$as_echo_n "checking test GENERIC interfaces... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran EXTENDS_TYPE_OF... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
module conftest
|
|
|
|
program xtt
|
|
|
|
|
|
|
|
type foo
|
|
|
|
interface foo
|
|
|
|
integer :: i
|
|
|
|
subroutine i_sub_foo(v)
|
|
|
|
end type foo
|
|
|
|
integer, intent(inout) :: v(:)
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
end subroutine i_sub_foo
|
|
|
|
integer :: j
|
|
|
|
end interface foo
|
|
|
|
end type new_foo
|
|
|
|
|
|
|
|
type(foo) :: foov
|
|
|
|
interface bar
|
|
|
|
type(new_foo) :: nfv1, nfv2
|
|
|
|
procedure i_sub_foo
|
|
|
|
|
|
|
|
end interface bar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end module conftest
|
|
|
|
write(*,*) 'nfv1 extends foov? ', extends_type_of(nfv1,foov)
|
|
|
|
|
|
|
|
end program xtt
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
@ -7249,7 +7257,8 @@ else
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_BUGGY_GENERICS $FDEFINES"
|
|
|
|
as_fn_error $? "Sorry, cannot build PSBLAS without support for EXTENDS_TYPE_OF.
|
|
|
|
|
|
|
|
Please get a Fortran compiler that supports it, e.g. GNU Fortran 4.8." "$LINENO" 5
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -7261,8 +7270,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FLUSH statement" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran MOLD= allocation" >&5
|
|
|
|
$as_echo_n "checking support for Fortran FLUSH statement... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran MOLD= allocation... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
@ -7273,23 +7282,32 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
program xtt
|
|
|
|
integer :: iunit=10
|
|
|
|
type foo
|
|
|
|
open(10)
|
|
|
|
integer :: i
|
|
|
|
write(10,*) 'Test '
|
|
|
|
end type foo
|
|
|
|
flush(10)
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
close(10)
|
|
|
|
integer :: j
|
|
|
|
end program conftest
|
|
|
|
end type new_foo
|
|
|
|
|
|
|
|
class(foo), allocatable :: fooab
|
|
|
|
|
|
|
|
type(new_foo) :: nfv
|
|
|
|
|
|
|
|
integer :: info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
allocate(fooab, mold=nfv, stat=info)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end program xtt
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FLUSH_STMT $FDEFINES"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
as_fn_error $? "Sorry, cannot build PSBLAS without support for MOLD= allocation.
|
|
|
|
|
|
|
|
Please get a Fortran compiler that supports it, e.g. GNU Fortran 4.8." "$LINENO" 5
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -7301,26 +7319,30 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ISO_FORTRAN_ENV" >&5
|
|
|
|
#
|
|
|
|
$as_echo_n "checking support for ISO_FORTRAN_ENV... " >&6; }
|
|
|
|
# Optional features
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran VOLATILE" >&5
|
|
|
|
|
|
|
|
$as_echo_n "checking support for Fortran VOLATILE... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program test
|
|
|
|
program conftest
|
|
|
|
use iso_fortran_env
|
|
|
|
integer, volatile :: i, j
|
|
|
|
end program test
|
|
|
|
end program conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_ISO_FORTRAN_ENV $FDEFINES"
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_VOLATILE $FDEFINES"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
@ -7337,46 +7359,42 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FINAL" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test GENERIC interfaces" >&5
|
|
|
|
$as_echo_n "checking support for Fortran FINAL... " >&6; }
|
|
|
|
$as_echo_n "checking test GENERIC interfaces... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
ac_exeext=''
|
|
|
|
ac_exeext=''
|
|
|
|
ac_ext='f90'
|
|
|
|
ac_ext='F90'
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
module conftest_mod
|
|
|
|
module conftest
|
|
|
|
type foo
|
|
|
|
|
|
|
|
integer :: i
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
final :: destroy_foo
|
|
|
|
|
|
|
|
end type foo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private destroy_foo
|
|
|
|
interface foo
|
|
|
|
contains
|
|
|
|
subroutine i_sub_foo(v)
|
|
|
|
subroutine destroy_foo(a)
|
|
|
|
integer, intent(inout) :: v(:)
|
|
|
|
type(foo) :: a
|
|
|
|
end subroutine i_sub_foo
|
|
|
|
! Just a test
|
|
|
|
end interface foo
|
|
|
|
end subroutine destroy_foo
|
|
|
|
|
|
|
|
end module conftest_mod
|
|
|
|
interface bar
|
|
|
|
program conftest
|
|
|
|
procedure i_sub_foo
|
|
|
|
use conftest_mod
|
|
|
|
end interface bar
|
|
|
|
type(foo) :: foovar
|
|
|
|
|
|
|
|
end program conftest
|
|
|
|
end module conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FINAL $FDEFINES"
|
|
|
|
:
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
echo "configure: failed program was:" >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
cat conftest.$ac_ext >&5
|
|
|
|
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_BUGGY_GENERICS $FDEFINES"
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
|
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
|
|
|
@ -7388,8 +7406,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran SAME_TYPE_AS" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FLUSH statement" >&5
|
|
|
|
$as_echo_n "checking support for Fortran SAME_TYPE_AS... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran FLUSH statement... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
@ -7400,25 +7418,18 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program stt
|
|
|
|
program conftest
|
|
|
|
type foo
|
|
|
|
integer :: iunit=10
|
|
|
|
integer :: i
|
|
|
|
open(10)
|
|
|
|
end type foo
|
|
|
|
write(10,*) 'Test '
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
flush(10)
|
|
|
|
integer :: j
|
|
|
|
close(10)
|
|
|
|
end type new_foo
|
|
|
|
end program conftest
|
|
|
|
type(foo) :: foov
|
|
|
|
|
|
|
|
type(new_foo) :: nfv1, nfv2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write(*,*) 'foov == nfv1? ', same_type_as(foov,nfv1)
|
|
|
|
|
|
|
|
write(*,*) 'nfv2 == nfv1? ', same_type_as(nfv2,nfv1)
|
|
|
|
|
|
|
|
end program stt
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_SAME_TYPE_AS $FDEFINES"
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FLUSH_STMT $FDEFINES"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
@ -7435,8 +7446,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran EXTENDS_TYPE_OF" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for ISO_FORTRAN_ENV" >&5
|
|
|
|
$as_echo_n "checking support for Fortran EXTENDS_TYPE_OF... " >&6; }
|
|
|
|
$as_echo_n "checking support for ISO_FORTRAN_ENV... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
@ -7447,23 +7458,14 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program xtt
|
|
|
|
program test
|
|
|
|
type foo
|
|
|
|
use iso_fortran_env
|
|
|
|
integer :: i
|
|
|
|
end program test
|
|
|
|
end type foo
|
|
|
|
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
|
|
|
|
integer :: j
|
|
|
|
|
|
|
|
end type new_foo
|
|
|
|
|
|
|
|
type(foo) :: foov
|
|
|
|
|
|
|
|
type(new_foo) :: nfv1, nfv2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
write(*,*) 'nfv1 extends foov? ', extends_type_of(nfv1,foov)
|
|
|
|
|
|
|
|
end program xtt
|
|
|
|
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_EXTENDS_TYPE_OF $FDEFINES"
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_ISO_FORTRAN_ENV $FDEFINES"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
@ -7480,8 +7482,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran MOLD= allocation" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking support for Fortran FINAL" >&5
|
|
|
|
$as_echo_n "checking support for Fortran MOLD= allocation... " >&6; }
|
|
|
|
$as_echo_n "checking support for Fortran FINAL... " >&6; }
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_ext=${ac_fc_srcext-f}
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
|
ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
|
|
|
@ -7492,25 +7494,29 @@ ac_compiler_gnu=$ac_cv_fc_compiler_gnu
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
ac_fc=${MPIFC-$FC};
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
cat > conftest.$ac_ext <<_ACEOF
|
|
|
|
|
|
|
|
|
|
|
|
program xtt
|
|
|
|
module conftest_mod
|
|
|
|
type foo
|
|
|
|
type foo
|
|
|
|
integer :: i
|
|
|
|
integer :: i
|
|
|
|
|
|
|
|
contains
|
|
|
|
|
|
|
|
final :: destroy_foo
|
|
|
|
end type foo
|
|
|
|
end type foo
|
|
|
|
type, extends(foo) :: new_foo
|
|
|
|
|
|
|
|
integer :: j
|
|
|
|
|
|
|
|
end type new_foo
|
|
|
|
|
|
|
|
class(foo), allocatable :: fooab
|
|
|
|
|
|
|
|
type(new_foo) :: nfv
|
|
|
|
|
|
|
|
integer :: info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
allocate(fooab, mold=nfv, stat=info)
|
|
|
|
private destroy_foo
|
|
|
|
|
|
|
|
contains
|
|
|
|
end program xtt
|
|
|
|
subroutine destroy_foo(a)
|
|
|
|
|
|
|
|
type(foo) :: a
|
|
|
|
|
|
|
|
! Just a test
|
|
|
|
|
|
|
|
end subroutine destroy_foo
|
|
|
|
|
|
|
|
end module conftest_mod
|
|
|
|
|
|
|
|
program conftest
|
|
|
|
|
|
|
|
use conftest_mod
|
|
|
|
|
|
|
|
type(foo) :: foovar
|
|
|
|
|
|
|
|
end program conftest
|
|
|
|
_ACEOF
|
|
|
|
_ACEOF
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
if ac_fn_fc_try_compile "$LINENO"; then :
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
$as_echo "yes" >&6; }
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_MOLD $FDEFINES"
|
|
|
|
FDEFINES="$psblas_cv_define_prepend-DHAVE_FINAL $FDEFINES"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
|
|
|
|
$as_echo "no" >&6; }
|
|
|
|
$as_echo "no" >&6; }
|
|
|
@ -7527,6 +7533,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|
# Additional pathname stuff (yes, it is redundant and confusing...)
|
|
|
|
# Additional pathname stuff (yes, it is redundant and confusing...)
|
|
|
|
###############################################################################
|
|
|
|
###############################################################################
|
|
|
|