aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/configure.in
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-24 18:39:41 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-24 18:39:41 +0000
commit1f362c96c335d3dd6bf9baee8b5e672fcbba1814 (patch)
tree013a9c5c1e297821d1678f5fc8214756cfef5143 /sim/ppc/configure.in
parent00937274d339416c6fb6690b3cb4d7c1501d0176 (diff)
downloadgdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.zip
gdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.tar.gz
gdb-1f362c96c335d3dd6bf9baee8b5e672fcbba1814.tar.bz2
2004-09-24 Ian Lance Taylor <ian@wasabisystems.com>
Committed by Andrew Cagney. * configure.in: Check for sys/mount.h, sys/vfs.h, sys/statfs.h. Check for struct statfs. * emul_netbsd.c: If not HAVE_STRUCT_STATFS, #undef HAVE_FSTATFS. * configure, config.in: Regenerate.
Diffstat (limited to 'sim/ppc/configure.in')
-rw-r--r--sim/ppc/configure.in26
1 files changed, 25 insertions, 1 deletions
diff --git a/sim/ppc/configure.in b/sim/ppc/configure.in
index 1f0693c..7884a411 100644
--- a/sim/ppc/configure.in
+++ b/sim/ppc/configure.in
@@ -585,7 +585,7 @@ AC_TYPE_UID_T
AC_CHECK_FUNCS(access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink)
-AC_CHECK_HEADERS(fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h)
+AC_CHECK_HEADERS(fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h)
AC_HEADER_DIRENT
dnl Figure out what type of termio/termios support there is
@@ -658,6 +658,30 @@ else
ac_cv_termio_cline=no
fi
+dnl Check for struct statfs
+AC_MSG_CHECKING(for struct statfs)
+AC_CACHE_VAL(ac_cv_struct_statfs,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+#ifdef HAVE_SYS_MOUNT_H
+#include <sys/mount.h>
+#endif
+#ifdef HAVE_SYS_VFS_H
+#include <sys/vfs.h>
+#endif
+#ifdef HAVE_SYS_STATFS_H
+#include <sys/statfs.h>
+#endif],
+[static struct statfs s;],
+ac_cv_struct_statfs=yes, ac_cv_struct_statfs=no)])
+AC_MSG_RESULT($ac_cv_struct_statfs)
+if test $ac_cv_struct_statfs = yes; then
+ AC_DEFINE(HAVE_STRUCT_STATFS, 1,
+ [Define if struct statfs is defined in <sys/mount.h>])
+fi
+
dnl Figure out if /dev/zero exists or not
sim_devzero=""
AC_MSG_CHECKING(for /dev/zero)