* configure.ac (targ_archs): Use standard autoconf check for

"struct stat.st_blocks" instead of rolling our own.
* configure: Regenerated.
* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): Remove undef.
* config.in: Regenerated.
This commit is contained in:
Mark Kettenis
2005-01-21 11:53:23 +00:00
parent 0794d25a98
commit 666ec76f41
5 changed files with 132 additions and 81 deletions

View File

@@ -420,25 +420,18 @@ AC_CHECK_HEADERS(term.h, [], [],
# unconditionally, so what's the point in checking these?
AC_CHECK_HEADERS(ctype.h time.h)
dnl Check for struct stat with an st_blocks member
AC_MSG_CHECKING(for member st_blocks in struct stat)
AC_CACHE_VAL(gdb_cv_have_struct_stat_with_st_blocks_member,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/stat.h>],
[struct stat st; (void) st.st_blocks;],
gdb_cv_have_struct_stat_with_st_blocks_member=yes,
gdb_cv_have_struct_stat_with_st_blocks_member=no)])
AC_MSG_RESULT($gdb_cv_have_struct_stat_with_st_blocks_member)
if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then
AC_DEFINE(HAVE_STRUCT_STAT_ST_BLOCKS)
fi
# ------------------------- #
# Checks for declarations. #
# ------------------------- #
gcc_AC_CHECK_DECLS(getopt)
# ----------------------- #
# Checks for structures. #
# ----------------------- #
AC_CHECK_MEMBERS([struct stat.st_blocks])
# ------------------ #
# Checks for types. #
# ------------------ #