This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: autoconf usage : -DHAVE_GSL ?


On Sat, Sep 08, 2001 at 10:47:43AM +0100, Brian Gough wrote:
> Peter Teuben writes:
>  >  My question is about the kludgie looking -DHAVE_GSL. I wanted to
>  > use something like
>  >  AC_CHECK_LIB(gsl,gsl_version)
>  >  but that fails, gsl_version seems to needs -lgslcblas! (which is
>  > actually odd, if I look at the output of nm..... -static will fix
>  > that dependancy, but AC_CHECK_LIB does not do that) I'd like to
>  > know which function/static would be the one that doesn't need
>  > another library. 
> 
> Function 'main' -- standard autoconf trick.

Actually, I'd term it a "misuse". The fact that the library exists
doesn't mean you should link against it. You should first AC_TRY_FUNC
because it might already be in $LIBS.

-- 
albert chin (china@thewrittenword.com)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]