From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25432 invoked by alias); 11 Oct 2009 16:49:40 -0000 Received: (qmail 25423 invoked by uid 22791); 11 Oct 2009 16:49:39 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp828.mail.ird.yahoo.com (HELO smtp828.mail.ird.yahoo.com) (217.146.189.242) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sun, 11 Oct 2009 16:49:36 +0000 Received: (qmail 18682 invoked from network); 11 Oct 2009 16:49:33 -0000 Received: from unknown (HELO ?192.168.1.68?) (J.D.Lamb@86.132.1.139 with login) by smtp828.mail.ird.yahoo.com with SMTP; 11 Oct 2009 16:49:33 -0000 X-Yahoo-SMTP: JZbAg.mswBB_Gi0PV4OUE3JLAV6tW8wto0VeC9C940Sqrz6C Subject: Re: Stupid question... From: John D Lamb To: GSL Discussion list In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Sun, 11 Oct 2009 16:49:00 -0000 Message-Id: <1255279772.5903.3.camel@balta> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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/msg00014.txt.bz2 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