diff options
author | Michael Chastain <mec@google.com> | 2003-02-26 15:10:47 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2003-02-26 15:10:47 +0000 |
commit | 27ca5dad5fc5de0668347e801686ceb579a7c150 (patch) | |
tree | 9f4963300861a96c072c4f15f90dd7eeded7fb40 /gdb/configure.in | |
parent | 6f88d630226e1c92c8fdaef7ba08e5b13d03205c (diff) | |
download | gdb-27ca5dad5fc5de0668347e801686ceb579a7c150.zip gdb-27ca5dad5fc5de0668347e801686ceb579a7c150.tar.gz gdb-27ca5dad5fc5de0668347e801686ceb579a7c150.tar.bz2 |
2003-02-26 Michael Chastain <mec@shout.net>
* configure.in: New variable HAVE_UINTPTR_T.
* configure, config.in: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 63f2daa..07aab35 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -511,6 +511,18 @@ 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)]) +AC_MSG_RESULT($gdb_cv_have_uintptr_t) +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 BFD_NEED_DECLARATION(malloc) BFD_NEED_DECLARATION(realloc) |