added check for __uint128_t into configure.ac

This commit is contained in:
hyunghwan.chung
2016-10-06 18:31:29 +00:00
parent 711663255b
commit 835919c4fe
4 changed files with 53 additions and 1 deletions

40
stix/configure vendored
View File

@ -18893,6 +18893,40 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
# This bug is HP SR number 8606223364.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __uint128_t" >&5
$as_echo_n "checking size of __uint128_t... " >&6; }
if ${ac_cv_sizeof___uint128_t+:} false; then :
$as_echo_n "(cached) " >&6
else
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__uint128_t))" "ac_cv_sizeof___uint128_t" "
"; then :
else
if test "$ac_cv_type___uint128_t" = yes; then
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error 77 "cannot compute sizeof (__uint128_t)
See \`config.log' for more details" "$LINENO" 5; }
else
ac_cv_sizeof___uint128_t=0
fi
fi
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___uint128_t" >&5
$as_echo "$ac_cv_sizeof___uint128_t" >&6; }
cat >>confdefs.h <<_ACEOF
#define SIZEOF___UINT128_T $ac_cv_sizeof___uint128_t
_ACEOF
# The cast to long int works around a bug in the HP C Compiler
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
@ -19257,6 +19291,7 @@ else
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
ac_cv_sizeof___int128_t=0
ac_cv_sizeof___uint128_t=0
fi
@ -19476,6 +19511,11 @@ cat >>confdefs.h <<_ACEOF
_ACEOF
cat >>confdefs.h <<_ACEOF
#define STIX_SIZEOF___UINT128_T ${ac_cv_sizeof___uint128_t}
_ACEOF
cat >>confdefs.h <<_ACEOF
#define STIX_SIZEOF_VOID_P ${ac_cv_sizeof_void_p}
_ACEOF