Diab Jerius
2015-05-11 15:59:03 UTC
I'm trying to determine the version of GNU Fortran by parsing the
compiler's standard output when passed the --version option.
I cannot use AC_COMPILE_IFELSE, as the compiler doesn't generate an
object file when passed --version, and AC_COMPILE_IFELSE requires that
for success.
I've resorted to using the _AC_CC macro to get the name of the
compiler so that I can execute it directly, but that's not good
practice.
Is there a public macro which provides the compiler for a given language?
Thanks,
Diab
compiler's standard output when passed the --version option.
I cannot use AC_COMPILE_IFELSE, as the compiler doesn't generate an
object file when passed --version, and AC_COMPILE_IFELSE requires that
for success.
I've resorted to using the _AC_CC macro to get the name of the
compiler so that I can execute it directly, but that's not good
practice.
Is there a public macro which provides the compiler for a given language?
Thanks,
Diab