This is the mail archive of the
mailing list for the GSL project.
Re: Stupid question...
- From: "Andrew W. Steiner" <awsteiner at gmail dot com>
- To: "Robert G. Brown" <rgb at phy dot duke dot edu>
- Cc: GSL Discussion list <gsl-discuss at sources dot redhat dot com>
- Date: Sun, 11 Oct 2009 13:41:54 -0400
- Subject: Re: Stupid question...
- References: <alpine.LFD.2.00.0910110947130.7810@lilith>
I looked at the configure.ac file I use, and the code below looks
similar, except that I use AC_CHECK_LIB's optional arguments.
Have you looked at the config.log file to see why it fails? Also, which platform
is this for?
On Sun, Oct 11, 2009 at 9:52 AM, Robert G. Brown <firstname.lastname@example.org> 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).
> The following lines are what I've got. ?I don't quite understand either
> why the gsl check fails or why the gslcblas succeeds. ?I've tried lots
> of different functions (including [main]) in the gsl check, but they all
> return no. ?I've tried including an argument such as gsl_sf_gamma(1.0),
> no go. ?Is there a simple one liner solution to this somebody could
> contribute, or is somebody enough of an expert with autoconf that they
> can tell me why this works/doesn't work?
> # Checks for libraries, and headers.
> AC_CHECK_HEADER([gsl/gsl_sf_gamma.h],,[AC_MSG_ERROR([Couldn't find GSL
> headers! Please install gsl-devel.])])
> # FIXME: Replace `main' with a function in `-lgslcblas':
> AC_CHECK_LIB([gslcblas], [main])
> checking gsl/gsl_sf_gamma.h usability... yes
> checking gsl/gsl_sf_gamma.h presence... yes
> checking for gsl/gsl_sf_gamma.h... yes
> checking for gsl_sf_gamma in -lgsl... no
> checking for main in -lgslcblas... yes
> ? rgb
> Robert G. Brown ? ? ? ? ? ? ? ? ? ? ? ?http://www.phy.duke.edu/~rgb/
> Duke University Dept. of Physics, Box 90305
> Durham, N.C. 27708-0305
> Phone: 1-919-660-2567 ?Fax: 919-660-2525 ? ? email:email@example.com