diff options
-rwxr-xr-x | Configure | 94 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | NetWare/config.wc | 1 | ||||
-rw-r--r-- | Porting/Glossary | 4 | ||||
-rw-r--r-- | Porting/config.sh | 1 | ||||
-rwxr-xr-x | config_h.SH | 6 | ||||
-rw-r--r-- | configure.com | 1 | ||||
-rw-r--r-- | plan9/config_sh.sample | 1 | ||||
-rw-r--r-- | symbian/config.sh | 1 | ||||
-rw-r--r-- | uconfig.h | 10 | ||||
-rw-r--r-- | uconfig.sh | 1 | ||||
-rw-r--r-- | uconfig64.sh | 1 | ||||
-rw-r--r-- | win32/config.ce | 1 | ||||
-rw-r--r-- | win32/config.gc | 1 | ||||
-rw-r--r-- | win32/config.vc | 1 |
15 files changed, 123 insertions, 2 deletions
@@ -957,6 +957,7 @@ d_pwgecos='' d_pwpasswd='' d_pwquota='' i_pwd='' +i_quadmath='' i_shadow='' i_socks='' i_stdbool='' @@ -15683,6 +15684,98 @@ EOCP esac +: check for fpclassify +echo " " +echo "Checking to see if you have fpclassify..." >&4 +$cat >try.c <<EOCP +#$i_math I_MATH +#ifdef I_MATH +#include <math.h> +#endif +int main() { return fpclassify(1.0) == FP_NORMAL ? 0 : 1; } +EOCP +set try +if eval $compile; then + val="$define" + echo "You have fpclassify." +else + val="$undef" + echo "You do not have fpclassify." +fi +$rm_try +set d_fpclassify +eval $setvar + +: check for isfinite +echo " " +echo "Checking to see if you have isfinite..." >&4 +$cat >try.c <<EOCP +#$i_math I_MATH +#ifdef I_MATH +#include <math.h> +#endif +int main() { return isfinite(0.0); } +EOCP +set try +if eval $compile; then + val="$define" + echo "You have isfinite." +else + val="$undef" + echo "You do not have isfinite." +fi +$rm_try +set d_isfinite +eval $setvar + +: check for isinf +echo " " +echo "Checking to see if you have isinf..." >&4 +$cat >try.c <<EOCP +#$i_math I_MATH +#ifdef I_MATH +#include <math.h> +#endif +int main() { return isinf(0.0); } +EOCP +set try +if eval $compile; then + val="$define" + echo "You have isinf." +else + val="$undef" + echo "You do not have isinf." +fi +$rm_try +set d_isinf +eval $setvar + +: check for isnan +echo " " +echo "Checking to see if you have isnan..." >&4 +$cat >try.c <<EOCP +#$i_math I_MATH +#ifdef I_MATH +#include <math.h> +#endif +int main() { return isnan(0.0); } +EOCP +set try +if eval $compile; then + val="$define" + echo "You have isnan." +else + val="$undef" + echo "You do not have isnan." +fi +$rm_try +set d_isnan +eval $setvar + +: see if this is a quadmath.h system +set quadmath.h i_quadmath +eval $inhdr + : see if link exists set link d_link eval $inlibc @@ -23869,6 +23962,7 @@ i_poll='$i_poll' i_prot='$i_prot' i_pthread='$i_pthread' i_pwd='$i_pwd' +i_quadmath='$i_quadmath' i_rpcsvcdbm='$i_rpcsvcdbm' i_sgtty='$i_sgtty' i_shadow='$i_shadow' diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index b3c8aa968e..ab05e84e93 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -693,6 +693,7 @@ i_poll='define' i_prot='undef' i_pthread='define' i_pwd='define' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='define' diff --git a/NetWare/config.wc b/NetWare/config.wc index b9c7943346..9ad270c4a1 100644 --- a/NetWare/config.wc +++ b/NetWare/config.wc @@ -675,6 +675,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='define' i_sgtty='undef' i_shadow='undef' diff --git a/Porting/Glossary b/Porting/Glossary index 2e8542b080..4ef88730d5 100644 --- a/Porting/Glossary +++ b/Porting/Glossary @@ -3255,6 +3255,10 @@ i_pwd (i_pwd.U): This variable conditionally defines I_PWD, which indicates to the C program that it should include <pwd.h>. +i_quadmath (i_quadmath.U): + This variable conditionally defines I_QUADMATH, which indicates + to the C program that it should include <quadmath.h>. + i_rpcsvcdbm (i_dbm.U): This variable conditionally defines the I_RPCSVC_DBM symbol, which indicates to the C program that <rpcsvc/dbm.h> exists and should diff --git a/Porting/config.sh b/Porting/config.sh index e00e50a445..8cd2971db4 100644 --- a/Porting/config.sh +++ b/Porting/config.sh @@ -708,6 +708,7 @@ i_poll='define' i_prot='undef' i_pthread='define' i_pwd='define' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='define' diff --git a/config_h.SH b/config_h.SH index 1af5d4c254..948a156542 100755 --- a/config_h.SH +++ b/config_h.SH @@ -2882,6 +2882,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un #$d_pwgecos PWGECOS /**/ #$d_pwpasswd PWPASSWD /**/ +/* I_QUADMATH: + * This symbol, if defined, indicates to the C program that it should + * include <quadmath.h>. + */ +#$i_quadmath I_QUADMATH /**/ + /* I_SYS_ACCESS: * This symbol, if defined, indicates to the C program that it should * include <sys/access.h>. diff --git a/configure.com b/configure.com index 5d732450e0..9a19f42ff9 100644 --- a/configure.com +++ b/configure.com @@ -6449,6 +6449,7 @@ $ WC "i_poll='" + i_poll + "'" $ WC "i_prot='undef'" $ WC "i_pthread='define'" $ WC "i_pwd='undef'" +$ WC "i_quadmath='undef'" $ WC "i_rpcsvcdbm='undef'" $ WC "i_sgtty='undef'" $ WC "i_shadow='" + i_shadow + "'" diff --git a/plan9/config_sh.sample b/plan9/config_sh.sample index 180584b765..2a77ee4155 100644 --- a/plan9/config_sh.sample +++ b/plan9/config_sh.sample @@ -687,6 +687,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='define' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' diff --git a/symbian/config.sh b/symbian/config.sh index 8229f171cc..17ffb7b140 100644 --- a/symbian/config.sh +++ b/symbian/config.sh @@ -614,6 +614,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='define' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' @@ -2847,6 +2847,12 @@ /*#define PWGECOS / **/ /*#define PWPASSWD / **/ +/* I_QUADMATH: + * This symbol, if defined, indicates to the C program that it should + * include <quadmath.h>. + */ +/*#define I_QUADMATH / **/ + /* I_SYS_ACCESS: * This symbol, if defined, indicates to the C program that it should * include <sys/access.h>. @@ -4851,6 +4857,6 @@ #endif /* Generated from: - * 8d61fec9ecb01eecea08d68eef7ee547e6ec951a411600e1e178c1270ba17d89 config_h.SH - * 6039ef141e931b6582a919f2049d2e4d68a5f977e2cf27b898966e83d5f3ed62 uconfig.sh + * 8efb374b21480cf581be7abbe612d8fe38e1648e146cc8c19e16d9b533257b24 config_h.SH + * b42f107a4c0dff0588550e034bef79028c4ac588dfda1fffcc777c3ce3adf867 uconfig.sh * ex: set ro: */ diff --git a/uconfig.sh b/uconfig.sh index 7589c0b245..98b6021d20 100644 --- a/uconfig.sh +++ b/uconfig.sh @@ -600,6 +600,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' diff --git a/uconfig64.sh b/uconfig64.sh index 6c5445d23f..17e326e7be 100644 --- a/uconfig64.sh +++ b/uconfig64.sh @@ -601,6 +601,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' diff --git a/win32/config.ce b/win32/config.ce index d6ff63d80a..957699d338 100644 --- a/win32/config.ce +++ b/win32/config.ce @@ -671,6 +671,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' diff --git a/win32/config.gc b/win32/config.gc index 6d7b9d31d8..d4a5cb733e 100644 --- a/win32/config.gc +++ b/win32/config.gc @@ -683,6 +683,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' diff --git a/win32/config.vc b/win32/config.vc index 0c0d82997d..71ceda72b1 100644 --- a/win32/config.vc +++ b/win32/config.vc @@ -682,6 +682,7 @@ i_poll='undef' i_prot='undef' i_pthread='undef' i_pwd='undef' +i_quadmath='undef' i_rpcsvcdbm='undef' i_sgtty='undef' i_shadow='undef' |