From: Florian Forster Date: Fri, 21 Nov 2008 16:42:37 +0000 (+0100) Subject: configure.in: Include and when checking for double storage... X-Git-Tag: collectd-4.6.0~157 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=dfc4819ad20c8d959d154e4ad3a3701cc7233f63;p=collectd.git configure.in: Include and when checking for double storage layout. Some systems, for example Solaris 9, don't have and define `uint32_t' via instead. Be more permissive by including both header files when checking how doubles are stored in memory. --- diff --git a/configure.in b/configure.in index 21af0b54..98e9fdea 100644 --- a/configure.in +++ b/configure.in @@ -610,8 +610,13 @@ if test "x$fp_layout_type" = "xunknown"; then [[[[ #include #include -#include #include +#if HAVE_STDINT_H +# include +#endif +#if HAVE_STDBOOL_H +# include +#endif ]]]], [[[[ uint64_t i0; @@ -649,8 +654,13 @@ if test "x$fp_layout_type" = "xunknown"; then [[[[ #include #include -#include #include +#if HAVE_STDINT_H +# include +#endif +#if HAVE_STDBOOL_H +# include +#endif #define endianflip(A) ((((uint64_t)(A) & 0xff00000000000000LL) >> 56) | \ (((uint64_t)(A) & 0x00ff000000000000LL) >> 40) | \ (((uint64_t)(A) & 0x0000ff0000000000LL) >> 24) | \ @@ -696,8 +706,13 @@ if test "x$fp_layout_type" = "xunknown"; then [[[[ #include #include -#include #include +#if HAVE_STDINT_H +# include +#endif +#if HAVE_STDBOOL_H +# include +#endif #define intswap(A) ((((uint64_t)(A) & 0xffffffff00000000LL) >> 32) | \ (((uint64_t)(A) & 0x00000000ffffffffLL) << 32)) ]]]],