summaryrefslogtreecommitdiff
path: root/macros/gnome-fileutils.m4
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-06-24 18:51:25 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-06-24 18:51:25 +0000
commit38a3a02b61e7818bf5a46f3015ea96ec02f233c3 (patch)
treeeb51fa30f82095fcbf9caa881ba0b7943285b17a /macros/gnome-fileutils.m4
parent1ced68f213ad221773eb5594163cda710b7ed7b2 (diff)
downloadshared-mime-info-38a3a02b61e7818bf5a46f3015ea96ec02f233c3.tar.gz
New check. (vprintf): New check. (ftruncate.c): Remove check. This needs
* gnome-fileutils.m4 (AM_FUNC_ERROR_AT_LINE): New check. (vprintf): New check. (ftruncate.c): Remove check. This needs to be further cleaned up to only list what is needed for gdiskfree. * Makefile.am (MACROS): Add gnome-fileutils.m4. svn path=/trunk/; revision=258
Diffstat (limited to 'macros/gnome-fileutils.m4')
-rw-r--r--macros/gnome-fileutils.m429
1 files changed, 2 insertions, 27 deletions
diff --git a/macros/gnome-fileutils.m4 b/macros/gnome-fileutils.m4
index df69d34f..249f8dfc 100644
--- a/macros/gnome-fileutils.m4
+++ b/macros/gnome-fileutils.m4
@@ -10,9 +10,10 @@ AC_CHECK_HEADERS(fcntl.h sys/param.h sys/statfs.h sys/fstyp.h \
mnttab.h mntent.h sys/statvfs.h sys/vfs.h sys/mount.h \
sys/filsys.h sys/fs_types.h sys/fs/s5param.h)
+AM_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS(bcopy endgrent endpwent fchdir ftime ftruncate \
getcwd getmntinfo gettimeofday isascii lchown \
-listmntent memcpy mkfifo strchr strerror strrchr)
+listmntent memcpy mkfifo strchr strerror strrchr vprintf)
# Determine how to get the list of mounted filesystems.
list_mounted_fs=
@@ -369,32 +370,6 @@ LIBOBJS="$LIBOBJS fsusage.o"
LIBOBJS="$LIBOBJS mountlist.o"
fi
-AC_CHECK_FUNCS(ftruncate, , [ftruncate_missing=yes])
-
-if test "$ftruncate_missing" = yes; then
-AC_MSG_CHECKING([fcntl emulation of ftruncate])
-AC_CACHE_VAL(fu_cv_sys_ftruncate_emulation,
-[AC_TRY_LINK([
-#include <sys/types.h>
-#include <fcntl.h>], [
-#if !defined(F_CHSIZE) && !defined(F_FREESP)
-chsize();
-#endif
-],
-fu_cv_sys_ftruncate_emulation=yes,
-fu_cv_sys_ftruncate_emulation=no)])
-AC_MSG_RESULT($fu_cv_sys_ftruncate_emulation)
-if test $fu_cv_sys_ftruncate_emulation = yes; then
-LIBOBJS="$LIBOBJS ftruncate.o"
-fi
-fi
-
-case "$LIBOBJS" in
-*rename.o*)
-MVDIR_PROG="mvdir"
-;;
-esac
-
# Check for SunOS statfs brokenness wrt partitions 2GB and larger.
# If <sys/vfs.h> exists and struct statfs has a member named f_spare,
# enable the work-around code in fsusage.c.