Problems compiling GSL on a Mac OS X

Brian Gough bjg@network-theory.co.uk
Sun Jun 8 17:17:00 GMT 2003


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 



More information about the Gsl-discuss mailing list