aboutsummaryrefslogtreecommitdiffstats
path: root/m4/macros/struct_mnttab.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/macros/struct_mnttab.m4')
-rw-r--r--m4/macros/struct_mnttab.m421
1 files changed, 21 insertions, 0 deletions
diff --git a/m4/macros/struct_mnttab.m4 b/m4/macros/struct_mnttab.m4
new file mode 100644
index 000000000000..ed1cb5635ae0
--- /dev/null
+++ b/m4/macros/struct_mnttab.m4
@@ -0,0 +1,21 @@
+dnl ######################################################################
+dnl Find if struct mnttab exists anywhere in mount.h or mnttab.h headers
+AC_DEFUN([AMU_STRUCT_MNTTAB],
+[
+AC_CACHE_CHECK(for struct mnttab,
+ac_cv_have_struct_mnttab,
+[
+# try to compile a program which may have a definition for the structure
+AC_TRY_COMPILE(
+AMU_MOUNT_HEADERS
+,
+[
+struct mnttab mt;
+], ac_cv_have_struct_mnttab=yes, ac_cv_have_struct_mnttab=no)
+])
+if test "$ac_cv_have_struct_mnttab" = yes
+then
+ AC_DEFINE(HAVE_STRUCT_MNTTAB)
+fi
+])
+dnl ======================================================================