summaryrefslogtreecommitdiff
path: root/lang/see/patches/patch-ab
blob: d4f60718f85f0a2e4f92a698de5fe4737e2f1d10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$NetBSD: patch-ab,v 1.3 2013/01/26 23:15:44 wiz Exp $

First chunk: automake-1.13 compat.
Rest: ?

--- configure.ac.orig	2008-02-10 10:31:33.000000000 +0000
+++ configure.ac
@@ -5,7 +5,7 @@ AC_INIT([see],
 	[leonard@users.sourceforge.net])
 AC_PREREQ(2.52)
 AM_INIT_AUTOMAKE
-AM_CONFIG_HEADER(include/config.h)
+AC_CONFIG_HEADERS(include/config.h)
 AC_CONFIG_FILES([Makefile
 		 include/Makefile
 		 include/see/Makefile
@@ -206,11 +206,12 @@ SEE_ARG_ENABLE(longjmperror,[yes],
         [Define if you want SEE to catch longjmp corruption])
 ])
 
-SEE_ARG_ENABLE(native-dtoa,[auto],
+SEE_ARG_ENABLE(native-dtoa,[no],
     [dtoa from libc],
-    [enable_native_dtoa=yes
-     AC_CHECK_FUNCS([strtod dtoa freedtoa],,[enable_native_dtoa=no])
-])
+    [],
+    [enable_native_dtoa=yes],
+    [enable_native_dtoa=no]
+)
 AM_CONDITIONAL(NATIVE_DTOA, test x"$enable_native_dtoa" = x"yes")
 
 
@@ -333,6 +334,10 @@ AC_CHECK_FUNCS([isnan _isnan],[have_isna
 AC_CHECK_FUNCS([finite _finite isfinite],[have_finite=yes])
 AC_CHECK_FUNCS([copysign _copysign],[have_copysign=yes])
 
+if test $have_isnan = no; then
+    AC_CHECK_DECLS([isnan],[have_isnan=yes],,[#include <math.h>])
+fi
+
 dnl -- when using double isnan/finite must be available
 if test $ac_cv_sizeof_float -ne 8; then
     test $have_isnan = no && missing_funcs="$missing_funcs isnan";