Re: detect if fortran compiler is available

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Peter Johansson on 5/11/2009 10:30 AM:
> Hello,

Hello, and sorry for a delayed reply,

> I wonder if there is an easy way to test if there is a Fortran compiler
> available.
> 
> We are using GSL, which needs to be linked with a cblas library. To test
> which cblas library to use, we employ the ACX_BLAS macro
> (http://autoconf-archive.cryp.to/acx_blas.html) and if nothing is found
> we fall back on libgslcblas provided with GSL. The problem is that
> ACX_BLAS exits with error when there is no fortran compiler available
> due to a call to AC_F77_LIBRARY_LDFLAGS. Therefore, we'd like to test if
> fortran is available and if not avoid calling fortran related things. If
> possible, we'd prefer to avoid adding fortran as an requirement for our
> package and instead when fortran is not available for example fall back
> on libgslcblas which is completely independent of fortran code. Is there
> a macro available within Autoconf or Autoconf Archive that I'm missing?

I'm not very familiar with Fortran myself, but I know that libtool has
tricks for conditionally using fortran when available; maybe you may have
more success asking on the libtool lists for ideas.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpWukIACgkQ84KuGfSFAYCYEwCgvLmDNnxaJ2sEGQ2FsfRctBSq
sPoAoIO4mXujqYKko66yU9YlceMSsYdM
=ql7B
-----END PGP SIGNATURE-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux