Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
d4a96074
Commit
d4a96074
authored
26 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Added check for struct statvfs member f_basetype (missing on Debian/Sparc).
Rev: src/modules/files/configure.in:1.36
parent
d66467c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/modules/files/configure.in
+76
-0
76 additions, 0 deletions
src/modules/files/configure.in
with
76 additions
and
0 deletions
src/modules/files/configure.in
+
76
−
0
View file @
d4a96074
...
@@ -130,6 +130,82 @@ fi
...
@@ -130,6 +130,82 @@ fi
else :; fi
else :; fi
if test x$ac_cv_func_statvfs = xyes ; then
AC_MSG_CHECKING(if the struct statvfs exists)
AC_CACHE_VAL(pike_cv_struct_statvfs, [
AC_TRY_COMPILE([
#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SYSPROTO_H
#include <sys/sysproto.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
], [
struct statfs st;
], [ pike_cv_struct_statvfs=yes
], [ pike_cv_struct_statvfs=no
])
])
AC_MSG_RESULT($pike_cv_struct_statvfs)
if test x$pike_cv_struct_statvfs = xyes; then
AC_DEFINE(HAVE_STRUCT_STATVFS)
AC_MSG_CHECKING(if the struct statvfs has the member f_basetype)
AC_CACHE_VAL(pike_cv_struct_statvfs_f_basetype, [
AC_TRY_COMPILE([
#ifndef POSIX_SOURCE
#define POSIX_SOURCE
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_SYSPROTO_H
#include <sys/sysproto.h>
#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#include <sys/stat.h>
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
], [
struct statvfs st;
st.f_basetype = 0;
], [ pike_cv_struct_statvfs_f_basetype=yes
], [ pike_cv_struct_statvfs_f_basetype=no
])
])
AC_MSG_RESULT($pike_cv_struct_statvfs_f_basetype)
if test x$pike_cv_struct_statfs_f_bavail = xyes; then
AC_DEFINE(HAVE_STATVFS_F_BASETYPE)
else :; fi
else :; fi
else :; fi
if test x$ac_cv_func_statfs = xyes ; then
if test x$ac_cv_func_statfs = xyes ; then
AC_MSG_CHECKING(if statfs takes 2(BSD) or 4(SysV) arguments)
AC_MSG_CHECKING(if statfs takes 2(BSD) or 4(SysV) arguments)
AC_CACHE_VAL(pike_cv_func_sysv_statfs, [
AC_CACHE_VAL(pike_cv_func_sysv_statfs, [
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment