This is the mail archive of the
gsl-discuss@sourceware.org
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.
http://o2scl.svn.sourceforge.net/viewvc/o2scl/trunk/configure.ac?revision=43&view=markup
Have you looked at the config.log file to see why it fails? Also, which platform
is this for?
Take care,
Andrew
On Sun, Oct 11, 2009 at 9:52 AM, Robert G. Brown <rgb@phy.duke.edu> 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.])])
> AC_CHECK_LIB([gsl],[gsl_sf_gamma])
> # 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
>
>
> TIA,
>
> ? 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:rgb@phy.duke.edu
>
>
>