This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
[PATCH] gsl-1.4.0: 64bit fixes
- From: Thierry Vignaud <tvignaud at mandrakesoft dot com>
- To: gsl-discuss at sources dot redhat dot com, bjg at network-theory dot co dot uk
- Date: Tue, 07 Oct 2003 12:46:18 +0000
- Subject: [PATCH] gsl-1.4.0: 64bit fixes
- Organization: MandrakeSoft
the following patch fix gsl build for amd64:
--- gsl-1.4/configure.ac.amd64 2003-08-14 13:38:44.000000000 +0200
+++ gsl-1.4/configure.ac 2003-09-03 19:36:44.000000000 +0200
@@ -118,9 +118,12 @@ if test "x$LIBS" = "x" ; then
AC_CHECK_LIB(m, cos)
fi
+dnl [gb] <fenv.h> requires _ISOC99_SOURCE defined for feenableexcept()
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
+
dnl Remember to put a definition in acconfig.h for each of these
-AC_CHECK_DECLS(feenableexcept,,,[#include <math.h>])
-AC_CHECK_DECLS(fesettrapenable,,,[#include <math.h>])
+AC_CHECK_DECLS(feenableexcept,,,[#include <fenv.h>])
+AC_CHECK_DECLS(fesettrapenable,,,[#include <fenv.h>])
AC_CHECK_DECLS(hypot,,,[#include <math.h>])
AC_CHECK_DECLS(expm1,,,[#include <math.h>])
AC_CHECK_DECLS(acosh,,,[#include <math.h>])
@@ -180,7 +183,10 @@ AC_CACHE_CHECK([for extended floating po
*68k*-*-*)
ac_cv_c_extended_fp=yes
;;
- *86*-*-*)
+ *86-*-*)
+ ac_cv_c_extended_fp=yes
+ ;;
+ x86_64-*-*)
ac_cv_c_extended_fp=yes
;;
*)
(patch by Gwenole Beauchesne <gbeauchesne@mandrakesoft.com>)