aboutsummaryrefslogtreecommitdiff
path: root/bfd/configure.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2003-08-27 17:43:39 +0000
committerIan Lance Taylor <ian@airs.com>2003-08-27 17:43:39 +0000
commitec317fb15734bd40e97f49c0f4718a5e316f5a22 (patch)
tree062b90283c965fecc23c0125dbb761142da9c67c /bfd/configure.in
parentba058b661774f984d1ac3d6563a323e098ff92b6 (diff)
downloadgdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.zip
gdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.tar.gz
gdb-ec317fb15734bd40e97f49c0f4718a5e316f5a22.tar.bz2
* configure.in: Define and substitute BFD_HOST_LONG_LONG.
* bfd-in.h: Define BFD_HOST_LONG_LONG. Test it rather than __GNUC__ when deciding whether to use long long for BFD_HOST_64_BIT. * configure, Makefile.in, doc/Makefile.in, bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/configure.in')
-rw-r--r--bfd/configure.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/configure.in b/bfd/configure.in
index 04ccf0a..f92ef8d 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -113,6 +113,7 @@ AC_SUBST(HDEFINES)
AC_PROG_INSTALL
BFD_HOST_64BIT_LONG=0
+BFD_HOST_LONG_LONG=0
BFD_HOST_64_BIT_DEFINED=0
BFD_HOST_64_BIT=
BFD_HOST_U_64_BIT=
@@ -123,7 +124,19 @@ elif test "x${HOST_64BIT_TYPE}" != "x"; then
BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
fi
+
+AC_MSG_CHECKING([for long long])
+AC_CACHE_VAL(bfd_cv_has_long_long,
+[AC_TRY_COMPILE(,
+[unsigned long long ll = 18446744073709551615ULL;],
+bfd_cv_has_long_long=yes, bfd_cv_has_long_long=no)])
+AC_MSG_RESULT($bfd_cv_has_long_long)
+if test $bfd_cv_has_long_long = yes; then
+ BFD_HOST_LONG_LONG=1
+fi
+
AC_SUBST(BFD_HOST_64BIT_LONG)
+AC_SUBST(BFD_HOST_LONG_LONG)
AC_SUBST(BFD_HOST_64_BIT_DEFINED)
AC_SUBST(BFD_HOST_64_BIT)
AC_SUBST(BFD_HOST_U_64_BIT)