Mercurial > gnulib
annotate m4/strtod.m4 @ 17363:5a51fb7777a9
sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
Problem reported by Marco Atzeri in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
* lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
Simply delegate to the system <sys/select.h> in this case too.
Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
be needed on Solaris either.
* lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
Simply delgate to the system <sys/time.h> in this case.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 19 Mar 2013 09:08:47 -0700 |
parents | e542fd46ad6f |
children | 344018b6e5d7 |
rev | line source |
---|---|
16810
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
1 # strtod.m4 serial 22 |
17249
e542fd46ad6f
maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents:
16810
diff
changeset
|
2 dnl Copyright (C) 2002-2003, 2006-2013 Free Software Foundation, Inc. |
5611
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4691
diff
changeset
|
3 dnl This file is free software; the Free Software Foundation |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4691
diff
changeset
|
4 dnl gives unlimited permission to copy and/or distribute it, |
87c42e194f4a
Use an all-permissive copyright notice, recommended by RMS.
Paul Eggert <eggert@cs.ucla.edu>
parents:
4691
diff
changeset
|
5 dnl with or without modifications, as long as this notice is preserved. |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
6 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
7 AC_DEFUN([gl_FUNC_STRTOD], |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
8 [ |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
9 AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) |
14616
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
10 m4_ifdef([gl_FUNC_STRTOD_OBSOLETE], [ |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
11 dnl Test whether strtod is declared. |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
12 dnl Don't call AC_FUNC_STRTOD, because it does not have the right guess |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
13 dnl when cross-compiling. |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
14 dnl Don't call AC_CHECK_FUNCS([strtod]) because it would collide with the |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
15 dnl ac_cv_func_strtod variable set by the AC_FUNC_STRTOD macro. |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
16 AC_CHECK_DECLS_ONCE([strtod]) |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
17 if test $ac_cv_have_decl_strtod != yes; then |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
18 HAVE_STRTOD=0 |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
19 fi |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
20 ]) |
ffa170f6f764
strtod: Remove check for strtod, unless supporting old platforms.
Bruno Haible <bruno@clisp.org>
parents:
14079
diff
changeset
|
21 if test $HAVE_STRTOD = 1; then |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
22 AC_CACHE_CHECK([whether strtod obeys C99], [gl_cv_func_strtod_works], |
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
23 [AC_RUN_IFELSE([AC_LANG_PROGRAM([[ |
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
24 #include <stdlib.h> |
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
25 #include <math.h> |
11210 | 26 #include <errno.h> |
9929
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
27 /* Compare two numbers with ==. |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
28 This is a separate function because IRIX 6.5 "cc -O" miscompiles an |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
29 'x == x' test. */ |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
30 static int |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
31 numeric_equal (double x, double y) |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
32 { |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
33 return x == y; |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
34 } |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
35 ]], [[ |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
36 int result = 0; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
37 { |
13425
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
38 /* In some old versions of Linux (2000 or before), strtod mis-parses |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
39 strings with leading '+'. */ |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
40 const char *string = " +69"; |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
41 char *term; |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
42 double value = strtod (string, &term); |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
43 if (value != 69 || term != (string + 4)) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
44 result |= 1; |
13425
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
45 } |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
46 { |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
47 /* Under Solaris 2.4, strtod returns the wrong value for the |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
48 terminating character under some conditions. */ |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
49 const char *string = "NaN"; |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
50 char *term; |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
51 strtod (string, &term); |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
52 if (term != string && *(term - 1) == 0) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
53 result |= 2; |
13425
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
54 } |
e2b2ba442532
strtod: Stop using AC_FUNC_STRTOD.
Bruno Haible <bruno@clisp.org>
parents:
13149
diff
changeset
|
55 { |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
56 /* Older glibc and Cygwin mis-parse "-0x". */ |
9871
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
57 const char *string = "-0x"; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
58 char *term; |
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
59 double value = strtod (string, &term); |
9898
02bfc9acab82
Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents:
9871
diff
changeset
|
60 double zero = 0.0; |
02bfc9acab82
Work around Solaris 10 math.h bug.
Eric Blake <ebb9@byu.net>
parents:
9871
diff
changeset
|
61 if (1.0 / value != -1.0 / zero || term != (string + 2)) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
62 result |= 4; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
63 } |
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
64 { |
9871
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
65 /* Many platforms do not parse hex floats. */ |
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
66 const char *string = "0XaP+1"; |
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
67 char *term; |
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
68 double value = strtod (string, &term); |
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
69 if (value != 20.0 || term != (string + 6)) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
70 result |= 8; |
9871
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
71 } |
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
72 { |
11210 | 73 /* Many platforms do not parse infinities. HP-UX 11.31 parses inf, |
74 but mistakenly sets errno. */ | |
9871
faf4392efa56
Improve strtod bug detection check.
Eric Blake <ebb9@byu.net>
parents:
9821
diff
changeset
|
75 const char *string = "inf"; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
76 char *term; |
11212
8233c503d99e
strtod: avoid C99 decl-after-statement
Gary V. Vaughan <gary@gnu.org>
parents:
11210
diff
changeset
|
77 double value; |
11210 | 78 errno = 0; |
11212
8233c503d99e
strtod: avoid C99 decl-after-statement
Gary V. Vaughan <gary@gnu.org>
parents:
11210
diff
changeset
|
79 value = strtod (string, &term); |
11210 | 80 if (value != HUGE_VAL || term != (string + 3) || errno) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
81 result |= 16; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
82 } |
9929
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
83 { |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
84 /* glibc 2.7 and cygwin 1.5.24 misparse "nan()". */ |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
85 const char *string = "nan()"; |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
86 char *term; |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
87 double value = strtod (string, &term); |
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
88 if (numeric_equal (value, value) || term != (string + 5)) |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
89 result |= 32; |
9929
357b15084942
Adjust strtod detection to catch glibc 2.7 bug.
Eric Blake <ebb9@byu.net>
parents:
9898
diff
changeset
|
90 } |
12247 | 91 { |
92 /* darwin 10.6.1 misparses "nan(". */ | |
93 const char *string = "nan("; | |
94 char *term; | |
95 double value = strtod (string, &term); | |
96 if (numeric_equal (value, value) || term != (string + 3)) | |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
97 result |= 64; |
12247 | 98 } |
13918
d5a74c6ec06b
Put more information about failed tests into the test return codes.
Bruno Haible <bruno@clisp.org>
parents:
13885
diff
changeset
|
99 return result; |
9821
18bab9955c43
Document various strtod bugs, with some fixes.
Eric Blake <ebb9@byu.net>
parents:
7942
diff
changeset
|
100 ]])], |
12421
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12247
diff
changeset
|
101 [gl_cv_func_strtod_works=yes], |
e8d2c6fc33ad
Use spaces for indentation, not tabs.
Bruno Haible <bruno@clisp.org>
parents:
12247
diff
changeset
|
102 [gl_cv_func_strtod_works=no], |
13427
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
103 [dnl The last known bugs in glibc strtod(), as of this writing, |
15338
03e2cd1cbbe8
maint: indent with spaces, not TABs, and add a rule to check this
Jim Meyering <meyering@redhat.com>
parents:
15113
diff
changeset
|
104 dnl were fixed in version 2.8 |
13427
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
105 AC_EGREP_CPP([Lucky user], |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
106 [ |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
107 #include <features.h> |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
108 #ifdef __GNU_LIBRARY__ |
13885 | 109 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8) || (__GLIBC__ > 2)) \ |
110 && !defined __UCLIBC__ | |
13427
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
111 Lucky user |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
112 #endif |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
113 #endif |
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
114 ], |
16810
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
115 [gl_cv_func_strtod_works="guessing yes"], |
13427
727e17a1e8b3
strtod: Assume strtod() works when cross-compiling to new-enough glibc.
Ben Pfaff <blp@cs.stanford.edu>
parents:
13426
diff
changeset
|
116 [gl_cv_func_strtod_works="guessing no"])])]) |
16810
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
117 case "$gl_cv_func_strtod_works" in |
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
118 *yes) ;; |
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
119 *) |
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
120 REPLACE_STRTOD=1 |
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
121 ;; |
ca49e9a6643d
Say "guessing yes" or "guessing no" when cross-compiling.
Bruno Haible <bruno@clisp.org>
parents:
16201
diff
changeset
|
122 esac |
4107
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
123 fi |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
124 ]) |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
125 |
7c1a6b73f48e
An autoconf macro for its associated module.
Bruno Haible <bruno@clisp.org>
parents:
diff
changeset
|
126 # Prerequisites of lib/strtod.c. |
13456
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
127 AC_DEFUN([gl_PREREQ_STRTOD], [ |
13462
88292c519d86
Unify tests that set gl_cv_func_ldexp_no_libm.
Bruno Haible <bruno@clisp.org>
parents:
13456
diff
changeset
|
128 AC_REQUIRE([gl_CHECK_LDEXP_NO_LIBM]) |
13456
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
129 if test $gl_cv_func_ldexp_no_libm = yes; then |
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
130 AC_DEFINE([HAVE_LDEXP_IN_LIBC], [1], |
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
131 [Define if the ldexp function is available in libc.]) |
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
132 fi |
fd291325b6d5
strtod: make it more-accurate typically, and don't require libm
Paul R. Eggert <eggert@cs.ucla.edu>
parents:
13427
diff
changeset
|
133 ]) |