Type uint64_t required but not found

Hi John,

configure still exits, when checking for uint64_t. I've attached a patch, that properly will fix it. Either uint64_t or u_int64_t will succeed:

Index: configure.ac

diff.txt (604 Bytes)

Henrik Bach wrote:
} Hi John,
}
} configure still exits, when checking for uint64_t. I've attached a patch,
} that properly will fix it. Either uint64_t or u_int64_t will succeed:
}
} Index: configure.ac
} ===================================================================
} RCS file: /var/cvs/llvm/llvm/autoconf/configure.ac,v
} retrieving revision 1.106
} diff -u -r1.106 configure.ac
} — configure.ac 2 Sep 2004 18:44:44 -0000 1.106
} +++ configure.ac 2 Sep 2004 20:13:17 -0000
} @@ -315,7 +315,7 @@
} AC_TYPE_PID_T
} AC_TYPE_SIZE_T
} AC_CHECK_TYPES([int64_t],AC_MSG_ERROR([Type int64_t required but not
} found]))
} -AC_CHECK_TYPES([uint64_t],AC_MSG_ERROR([Type uint64_t required but not
} found]))
} +AC_CHECK_TYPES([uint64_t])
} AC_CHECK_TYPES([u_int64_t])
} AC_HEADER_TIME
} AC_STRUCT_TM
}
Maybe instead of just assuming one will be there you can do something
like this:

AC_CHECK_TYPES([uint64_t],
               AC_CHECK_TYPES([u_int64_t],
                              AC_MSG_ERROR([Type uint64_t or u_int64_t …])))

I know I just jumped into the middle of this discussion, but at least
this will error out if something drastic happens. :slight_smile:

-bw

Bill/Henrik,

I've committed Bill's suggestion which is a little safer.

Reid.

Bill Wendling wrote: