-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·42 lines (32 loc) · 964 Bytes
/
configure
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/usr/bin/env sh
cat <<EOF > test-f03.f90
module mod_test
implicit none
type t_test
integer :: test_field
contains
procedure :: set_test_field
end type t_test
contains
subroutine set_test_field(this, val)
class(t_test) :: this
integer :: val
this%test_field = val
end subroutine set_test_field
end module mod_test
program test
use mod_test
implicit none
type(t_test) :: test_var
call test_var%set_test_field(0)
end program test
EOF
if ! "${R_HOME}"/bin/R CMD SHLIB test-f03.f90; then
echo "*********************************************************************************"
echo "Your Fortran compiler does not appear to support all features of the 2003"
echo "standard. Please install a compatible compiler, set this in your ~/.R/Makevars"
echo "and try again."
echo "*********************************************************************************"
exit 1
fi
rm -f test-f03.* mod_test.*