From 3b29752ffd9efdc60cdbb4a970f60644f33df467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Mon, 2 Jun 1997 01:31:01 +0200 Subject: [PATCH] Added some more checks. Rev: src/modules/files/configure.in:1.22 --- src/modules/files/configure.in | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/modules/files/configure.in b/src/modules/files/configure.in index 96d80ac949..63a1cde860 100644 --- a/src/modules/files/configure.in +++ b/src/modules/files/configure.in @@ -3,8 +3,9 @@ AC_CONFIG_HEADER(file_machine.h) sinclude(../module_configure.in) -AC_HAVE_HEADERS(arpa/inet.h sys/socketvar.h netinet/in.h sys/mount.h ustat.h\ - sys/socket.h sys/stream.h sys/protosw.h netdb.h sys/statvfs.h sys/vfs.h) +AC_HAVE_HEADERS(arpa/inet.h sys/socketvar.h netinet/in.h \ + sys/mount.h ustat.h sys/statfs.h sys/statvfs.h sys/vfs.h \ + sys/socket.h sys/stream.h sys/protosw.h netdb.h ) AC_HEADER_DIRENT AC_CHECK_LIB(bind, __inet_ntoa) AC_CHECK_LIB(socket, socket) @@ -115,6 +116,9 @@ if test x$ac_cv_func_statfs = xyes ; then #ifdef HAVE_SYS_STATFS_H #include <sys/statfs.h> #endif +#ifdef HAVE_SYS_VFS_H +#include <sys/vfs.h> +#endif int main() { @@ -134,7 +138,13 @@ int main() AC_MSG_CHECKING(if the struct statfs has the member f_bavail) AC_CACHE_VAL(pike_cv_struct_statfs_f_bavail, [ + echo ------- + cat confdefs.h + echo ------- AC_TRY_COMPILE([ +#ifdef HAVE_SYS_TYPES_H +#include <sys/types.h> +#endif #include <sys/stat.h> #ifdef HAVE_SYS_MOUNT_H #include <sys/mount.h> @@ -143,14 +153,11 @@ int main() #include <sys/statfs.h> #endif ], [ - int main(int argc, char **argv) - { - struct statfs st; - st.f_bavail = 0; - return(st.f_bavail); - } - ], [ pike_cv_struct_statfs_f_bavail=yes ], - [ pike_cv_struct_statfs_f_bavail=no ]) + struct statfs st; + st.f_bavail = 0; + ], [ pike_cv_struct_statfs_f_bavail=yes + ], [ pike_cv_struct_statfs_f_bavail=no + ]) ]) AC_MSG_RESULT($pike_cv_struct_statfs_f_bavail) if test x$pike_cv_struct_statfs_f_bavail = xyes; then -- GitLab