aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-06-13 21:59:38 +0000
committerMark Kettenis <kettenis@gnu.org>2005-06-13 21:59:38 +0000
commit3be60c3d274d8a95d1e3c579c26140177b711d74 (patch)
tree0731ba7df624a82c962bbbff0618a73de7179f97 /gdb/configure.ac
parentf9f87d2ca62abfc2102be8574167cb6aa6928a9e (diff)
downloadfsf-binutils-gdb-3be60c3d274d8a95d1e3c579c26140177b711d74.zip
fsf-binutils-gdb-3be60c3d274d8a95d1e3c579c26140177b711d74.tar.gz
fsf-binutils-gdb-3be60c3d274d8a95d1e3c579c26140177b711d74.tar.bz2
* configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.
* configure, config.in: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac13
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 0032d41..e77fc9e 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -436,6 +436,7 @@ AC_CHECK_TYPES(socklen_t, [], [],
[#include <sys/types.h>
#include <sys/socket.h>
])
+AC_CHECK_TYPES(uintptr_t, [], [], [#include <stdint.h>])
# ------------------------------------- #
# Checks for compiler characteristics. #
@@ -668,18 +669,6 @@ if test $gdb_cv_have_pt_getxmmregs = yes; then
AC_DEFINE(HAVE_PT_GETXMMREGS)
fi
-# See if stdint.h provides the uintptr_t type.
-# Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this.
-AC_CACHE_CHECK([for uintptr_t in stdint.h], gdb_cv_have_uintptr_t,
- [AC_TRY_COMPILE(
- [#include <stdint.h>],
- [uintptr_t foo = 0;],
- gdb_cv_have_uintptr_t=yes,
- gdb_cv_have_uintptr_t=no)])
-if test $gdb_cv_have_uintptr_t = yes; then
- AC_DEFINE(HAVE_UINTPTR_T, 1, [Define if <stdint.h> provides the uintptr_t type.])
-fi
-
# If we are configured native on GNU/Linux, work around problems with
# sys/procfs.h
# Also detect which type of /proc is in use, such as for Unixware or Solaris.