5 possible_kinds="4 8 10 16"
8 for k in $possible_kinds; do
9 echo " real (kind=$k) :: x" > tmp$$.f90
10 echo " x = 1.0_$k" >> tmp$$.f90
11 echo " end" >> tmp$$.f90
12 if $compile -S tmp$$.f90 > /dev/null 2>&1; then
19 echo " integer, parameter :: c = $c"
20 echo " type (real_info), parameter :: real_infos(c) = (/ &"
24 # echo -n is not portable
25 str=" real_info ($k, precision(0.0_$k), range(0.0_$k), radix(0.0_$k))"
27 if [ $i -lt $c ]; then