summaryrefslogtreecommitdiff
path: root/autoconf
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-02 21:38:24 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-02 21:38:24 +0000
commite2c6f51e2b461b5cfca302927b43312bf91eb00e (patch)
treecbd3728476ba5a8f8905ce9bbe416e7044f16543 /autoconf
parent70619fae28414db54e00be2f9052a66cd245a9c8 (diff)
downloadllvm-e2c6f51e2b461b5cfca302927b43312bf91eb00e.tar.gz
llvm-e2c6f51e2b461b5cfca302927b43312bf91eb00e.tar.bz2
llvm-e2c6f51e2b461b5cfca302927b43312bf91eb00e.tar.xz
Don't just assume that either uint64_t or u_int64_t is available. Instead,
give preference to uint64_t if it exists. If not, check for u_int64_t. If that doesn't exist either, then error out. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16149 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r--autoconf/configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac
index 7cf02a197e..6d968e72dd 100644
--- a/autoconf/configure.ac
+++ b/autoconf/configure.ac
@@ -315,8 +315,9 @@ dnl Check for types
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([u_int64_t])
+AC_CHECK_TYPES([uint64_t],,
+ AC_CHECK_TYPES([u_int64_t],,
+ AC_MSG_ERROR([Type uint64_t or u_int64_t required but not found])))
AC_HEADER_TIME
AC_STRUCT_TM