configure.in
changeset 351 bc4fa7896225
parent 347 56ce50a62241
child 353 7adb20841f11
--- a/configure.in	Thu Jul 18 05:51:25 2002 +0000
+++ b/configure.in	Sat Jul 20 00:19:53 2002 +0000
@@ -103,6 +103,19 @@
   AC_DEFINE([PHYSFS_HAVE_LLSEEK], 1, [define if we have llseek])
 fi
 
+dnl BSD systems use sys/ucred.h for getting mounted volumes.
+dnl Linux and others use mntent.h.
+AC_CHECK_HEADER(sys/ucred.h, have_ucred_hdr=yes)
+if test x$have_ucred_hdr = xyes; then
+  AC_DEFINE([PHYSFS_HAVE_SYS_UCRED_H], 1, [define if we have sys/ucred.h])
+fi
+
+AC_CHECK_HEADER(mntent.h, have_mntent_hdr=yes)
+if test x$have_mntent_hdr = xyes; then
+  AC_DEFINE([PHYSFS_HAVE_MNTENT_H], 1, [define if we have mntent.h])
+fi
+
+
 require_zlib="no"
 
 dnl Check for zip archiver inclusion...