autotools & Fortran

Anton Shterenlikht as at cmplx.uk
Mon Aug 6 15:46:49 UTC 2018


Hello

I've several questions on using autotools
in Fortran projects. Perhaps somebody can
answer here or point to existing examples.

1. I have something like this right now:

use, intrinsic :: iso_fortran_env
integer, parameter :: fk = real32

What I want is to set fk to "real32", "real64" or "real128"
via autotools, so that I can build with 3 different
real kinds via a command line option.

Ideally I want to avoid preprocessing.

Is this feasible?

Thanks

Anton


More information about the freebsd-fortran mailing list