From: <mar...@us...> - 2007-01-17 21:13:38
|
Revision: 9894 http://svn.sourceforge.net/gphoto/?rev=9894&view=rev Author: marcusmeissner Date: 2007-01-17 13:13:39 -0800 (Wed, 17 Jan 2007) Log Message: ----------- checks for statfs + headers Modified Paths: -------------- trunk/libgphoto2/configure.ac Modified: trunk/libgphoto2/configure.ac =================================================================== --- trunk/libgphoto2/configure.ac 2007-01-17 21:13:15 UTC (rev 9893) +++ trunk/libgphoto2/configure.ac 2007-01-17 21:13:39 UTC (rev 9894) @@ -291,7 +291,7 @@ AC_TYPE_SIZE_T dnl Checks for library functions. -AC_CHECK_FUNCS([getopt getopt_long mkdir strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r]) +AC_CHECK_FUNCS([getopt getopt_long mkdir strdup strncpy strcpy snprintf sprintf vsnprintf gmtime_r statfs]) dnl Find out how to get struct tm AC_STRUCT_TM @@ -313,7 +313,36 @@ AC_MSG_RESULT(no) ]) +AC_CHECK_HEADERS([sys/mount.h sys/statfs.h sys/user.h sys/vfs.h],,,[ +#include <sys/types.h> +#if HAVE_SYS_PARAM_H +# include <sys/param.h> +#endif +]) +dnl Check for statfs members +AC_CHECK_MEMBERS([struct statfs.f_bfree, struct statfs.f_bavail, struct statfs.f_favail],,,[ +#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 +]) + +AC_CHECK_MEMBERS([struct statvfs.f_blocks],,,[ +#ifdef HAVE_SYS_STATVFS_H +# include <sys/statvfs.h> +#endif +]) + dnl Create a stdint.h-like file containing size-specific integer definitions dnl that will always be available AX_NEED_STDINT_H([libgphoto2/_stdint.h]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |