mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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:
@@ -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. #
|
||||
# ------------------ #
|
||||
|
||||
Reference in New Issue
Block a user