From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26679 invoked by alias); 11 Oct 2009 13:52:53 -0000 Received: (qmail 26669 invoked by uid 22791); 11 Oct 2009 13:52:52 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail.phy.duke.edu (HELO mail.phy.duke.edu) (152.3.182.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Oct 2009 13:52:48 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.phy.duke.edu (Postfix) with ESMTP id 0069778096 for ; Sun, 11 Oct 2009 09:52:48 -0400 (EDT) Received: from mail.phy.duke.edu ([127.0.0.1]) by localhost (mail.phy.duke.edu [127.0.0.1]) (amavisd-new, port 10026) with LMTP id Y3egYqs7eVSY for ; Sun, 11 Oct 2009 09:52:47 -0400 (EDT) Received: from lilith.rgb.private.net (client212-5.dsl.intrex.net [209.42.212.5]) by mail.phy.duke.edu (Postfix) with ESMTP id 9CDEB7807F for ; Sun, 11 Oct 2009 09:52:47 -0400 (EDT) Date: Sun, 11 Oct 2009 13:52:00 -0000 From: "Robert G. Brown" To: GSL Discussion list Subject: Stupid question... Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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/msg00012.txt.bz2 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