This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Problems compiling GSL on a Mac OS X
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Daniel T Konkle <daniel dot konkle at dynetics dot com>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Sun, 8 Jun 2003 18:17:45 +0100
- Subject: Re: Problems compiling GSL on a Mac OS X
- References: <5.2.1.1.2.20030604100644.032d0450@mailhub.dynetics.com>
Daniel T Konkle writes:
> I'm in the process of trying to get the GSL libraries to compile & run on
> an PowerMac G4 running Mac OS X 10.2.6
> During compilation, I get this error message & I was hoping someone could
> tell me what to do to fix this warning message.
> /usr/include/architecture/ppc/math.h:106: warning: redefinition of macro isinf
> ../config.h:192: warning: this is the location of the previous definition
> /usr/include/architecture/ppc/math.h:111: warning: redefinition of macro isnan
> ../config.h:196: warning: this is the location of the previous definition
The configure script looks for isinf(). If it doesn't find it, it can
get confused and tries to #define isinf(x) gsl_isinf(x). Here is what
is currently in configure.in:
AC_TRY_COMPILE([#define isinf /* */
#include <math.h>],[{}],[],[
AC_CHECK_FUNCS(isinf, ,[
AC_MSG_CHECKING([for isinf with <math.h>])
AC_TRY_LINK([#include <math.h>], [float f = 0.0; isinf(f)],[
AC_MSG_RESULT(yes)
AC_DEFINE(HAVE_ISINF)],
AC_MSG_RESULT(no))])])
--
Brian