[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: how to detect int64?
From: |
Jay K |
Subject: |
RE: how to detect int64? |
Date: |
Mon, 19 Jul 2010 21:30:52 +0000 |
> Which version of autoconf generated the configure that produced the
> output you are questioning?
It is xz-4.999.9beta.tar.gz from http://tukaani.org/xz/.
I was using gcc 4.2, but now 4.3 and I haven't retried with 4.3.5 yet.
configure says:
# Generated by GNU Autoconf 2.64 for XZ Utils 4.999.9beta.
"For XZ Utils" sounds to me like maybe custom.
configure, and I think this helpful part, says:
# ac_fn_c_find_uintX_t LINENO BITS VAR
# ------------------------------------
# Finds an unsigned integer type with width BITS, setting cache variable VAR
# accordingly.
ac_fn_c_find_uintX_t ()
{
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
$as_echo_n "checking for uint$2_t... " >&6; }
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
$as_echo_n "(cached) " >&6
else
eval "$3=no"
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
int
main ()
{
static int test_array [1 - 2 * !(($ac_type) -1 >> ($2 - 1) == 1)];
test_array [0] = 0
;
return 0;
}
_ACEOF
,,,
> And am I correct that this was on:
> > Target: alpha-dec-osf4.0g
Yes.
> Did the configure.ac use the documented AC_TYPE_INT64_T and
> AC_TYPE_UINT64_T macros, or is it using a home-brewed approach?
configure.ac says:
AC_TYPE_UINT8_T
AC_TYPE_UINT16_T
AC_TYPE_INT32_T
AC_TYPE_UINT32_T
AC_TYPE_INT64_T
AC_TYPE_UINT64_T
AC_TYPE_UINTPTR_T
I can try regenerating the configure file, later (might be a while, machine
owner going on vacation and powering off I believe).
btw: if you were to check for long long first, then long, then int, that'd
help, right?
Thanks,
- Jay