From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6123 invoked by alias); 11 Oct 2009 17:42:01 -0000 Received: (qmail 6114 invoked by uid 22791); 11 Oct 2009 17:42:00 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-ew0-f223.google.com (HELO mail-ew0-f223.google.com) (209.85.219.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Oct 2009 17:41:57 +0000 Received: by ewy23 with SMTP id 23so8676875ewy.26 for ; Sun, 11 Oct 2009 10:41:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.90.1 with SMTP id d1mr1632065wef.136.1255282914066; Sun, 11 Oct 2009 10:41:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 11 Oct 2009 17:42:00 -0000 Message-ID: <63c059b10910111041x6360a64y80d5ca693c909107@mail.gmail.com> Subject: Re: Stupid question... From: "Andrew W. Steiner" To: "Robert G. Brown" Cc: GSL Discussion list Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact gsl-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gsl-discuss-owner@sourceware.org X-SW-Source: 2009-q4/txt/msg00015.txt.bz2 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= =3D43&view=3Dmarkup Have you looked at the config.log file to see why it fails? Also, which pla= tform is this for? Take care, Andrew On Sun, Oct 11, 2009 at 9:52 AM, 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). > > The following lines are what I've got. =A0I don't quite understand either > why the gsl check fails or why the gslcblas succeeds. =A0I've tried lots > of different functions (including [main]) in the gsl check, but they all > return no. =A0I've tried including an argument such as gsl_sf_gamma(1.0), > no go. =A0Is 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? > > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > # Checks for libraries, and headers. > #=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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, > > =A0 rgb > > Robert G. Brown =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0http://www= .phy.duke.edu/~rgb/ > Duke University Dept. of Physics, Box 90305 > Durham, N.C. 27708-0305 > Phone: 1-919-660-2567 =A0Fax: 919-660-2525 =A0 =A0 email:rgb@phy.duke.edu > > >