diff options
author | Eli Zaretskii <eliz@gnu.org> | 2003-12-30 10:33:37 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2003-12-30 10:33:37 +0000 |
commit | 40a7debcab36f2181ba00919a961246d691a2215 (patch) | |
tree | d24739577a615de86760a11c5a68c7c8cfd29e47 /gdb/configure.in | |
parent | b0f0a30e296012e61e6b80787fa6a3b6add66d51 (diff) | |
download | gdb-40a7debcab36f2181ba00919a961246d691a2215.zip gdb-40a7debcab36f2181ba00919a961246d691a2215.tar.gz gdb-40a7debcab36f2181ba00919a961246d691a2215.tar.bz2 |
* configure.in: Check for st_blocks member in struct stat and
define HAVE_STRUCT_STAT_ST_BLOCKS accordingly.
* acconfig.h (HAVE_STRUCT_STAT_ST_BLOCKS): New undef.
* 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 d27470c..72599be 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -383,6 +383,18 @@ AC_CHECK_HEADERS(curses.h ncurses.h 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. # # ------------------------- # |