1 ?RCS: $Id: d_dbl_dig.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: Original Author: Andy Dougherty <doughera@lafcol.lafayette.edu>
13 ?RCS: $Log: d_dbl_dig.U,v $
14 ?RCS: Revision 3.0.1.1 1994/08/29 16:07:28 ram
15 ?RCS: patch32: created by ADO
17 ?MAKE:d_dbl_dig: Myread contains cat rm Setvar i_limits i_float \
18 cppstdin cppflags cppminus
19 ?MAKE: -pick add $@ %<
21 ?S: This variable conditionally defines d_dbl_dig if this system's
22 ?S: header files provide DBL_DIG, which is the number of significant
23 ?S: digits in a double precision number.
26 ?C: This symbol, if defined, indicates that this system's <float.h>
27 ?C: or <limits.h> defines the symbol DBL_DIG, which is the number
28 ?C: of significant digits in a double precision number. If this
29 ?C: symbol is not defined, a guess of 15 is usually pretty good.
31 ?H:#$d_dbl_dig HAS_DBL_DIG /**/
35 : See if number of significant digits in a double precision number is known
47 printf("Contains DBL_DIG");
50 $cppstdin $cppflags $cppminus < dbl_dig.c >dbl_dig.E 2>/dev/null
51 if $contains 'DBL_DIG' dbl_dig.E >/dev/null 2>&1; then
52 echo "DBL_DIG found." >&4
55 echo "DBL_DIG NOT found." >&4