public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: John D Lamb <J.D.Lamb@btinternet.com>
To: GSL Discussion list <gsl-discuss@sources.redhat.com>
Subject: Re: Stupid question...
Date: Sun, 11 Oct 2009 16:49:00 -0000	[thread overview]
Message-ID: <1255279772.5903.3.camel@balta> (raw)
In-Reply-To: <alpine.LFD.2.00.0910110947130.7810@lilith>

On Sun, 2009-10-11 at 09:52 -0400, Robert G. Brown wrote:
> I'm trying to get gsl to be correctly detected in a configure.ac
> (something that has never quite worked, for reasons I don't understand).

Here’s the version I use.

use_atlas=yes
AC_CHECK_LIB([atlas],[main],[],[use_atlas=no])
if test x$use_atlas = xyes; then
AC_CHECK_LIB([f77blas],[main],[],[use_atlas=no])
fi
if test x$use_atlas = xyes; then
AC_CHECK_LIB([cblas],[main],[],[use_atlas=no])
fi
if test x$use_atlas = xyes; then
AC_CHECK_LIB([lapack],[main],[],[use_atlas=no])
fi
if test x$use_atlas = xno; then
AC_CHECK_LIB([gslcblas],[main],[],[
echo \
"------------------------------------------------------------------------
ERROR: Could not find a CBLAS implementation.
Tried both ATLAS cblas and gslcblas.
------------------------------------------------------------------------"
exit
])
fi
AC_CHECK_LIB([gsl],[main],[],[
echo \
"------------------------------------------------------------------------
ERROR: libgsl appears to be missing. You cannot sanely try to build
this code without libgsl, the GNU Scientific Library. It is available
from
http://www.gnu.org/ and compiles readily on most systems.
------------------------------------------------------------------------"
exit
],[-lgslcblas])

dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([gsl/gsl_version.h],[],[
echo \
"------------------------------------------------------------------------
ERROR: libgsl is present, but the header files appear not to have been
installed. If the GNU Scientific Library was installed as an RPM or
similar, make sure you also include the -devel package. Otherwise, you
can
obtain the GNU Scientific Library from http://www.gnu.org.
------------------------------------------------------------------------"
exit
])

-- 
JDL

  parent reply	other threads:[~2009-10-11 16:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-11 13:52 Robert G. Brown
2009-10-11 14:06 ` Robert G. Brown
2009-10-11 16:49 ` John D Lamb [this message]
2009-10-11 17:42 ` Andrew W. Steiner
  -- strict thread matches above, loose matches on Subject: below --
2001-12-19 13:20 stupid question Matthew J. Doller
2001-11-19 10:26 ` Matthew J. Doller
2001-12-19 13:20 ` Achim Gaedke
2001-11-20  2:00   ` Achim Gaedke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1255279772.5903.3.camel@balta \
    --to=j.d.lamb@btinternet.com \
    --cc=gsl-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).