aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-01-21 11:53:23 +0000
committerMark Kettenis <kettenis@gnu.org>2005-01-21 11:53:23 +0000
commit666ec76f414cd10124107b16e44a5a3f4f63d69c (patch)
tree29f9f45b935c52dbe648a2abf5d18cdebf0b4c19 /gdb/configure.ac
parent0794d25a981ff0ec42fc1b6a8db2b6dedc0e31eb (diff)
downloadgdb-666ec76f414cd10124107b16e44a5a3f4f63d69c.zip
gdb-666ec76f414cd10124107b16e44a5a3f4f63d69c.tar.gz
gdb-666ec76f414cd10124107b16e44a5a3f4f63d69c.tar.bz2
* 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.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac19
1 files changed, 6 insertions, 13 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index c079ac0..82c8bbe 100644
--- a/gdb/configure.ac
+++ b/gdb/configure.ac
@@ -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. #
# ------------------ #