autoconf
[Top][All Lists]
Advanced

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

Re: detect if fortran compiler is available


From: Eric Blake
Subject: Re: detect if fortran compiler is available
Date: Thu, 09 Jul 2009 21:49:22 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.6.666

-----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             address@hidden
-----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-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]