* configure.ac: Use AC_CHECK_TYPES to check for uintptr_t.

* configure, config.in: Regenerate.
This commit is contained in:
Mark Kettenis
2005-06-13 21:59:38 +00:00
parent f9f87d2ca6
commit 3be60c3d27
4 changed files with 71 additions and 76 deletions

View File

@ -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.