We don't need it (any more).
Also add AM_PROG_CC_C_O as we seem to need it..
AC_INIT([linux nfs-utils],[1.0.11],[nfs@lists.sf.net],[nfs-utils])
AC_CANONICAL_BUILD([])
AC_CANONICAL_HOST([])
-AC_CONFIG_SRCDIR(tools/getiversion/getiversion.c)
AC_CONFIG_MACRO_DIR(aclocal)
AM_INIT_AUTOMAKE
AC_PREREQ(2.59)
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_LIBTOOL
+AM_PROG_CC_C_O
if test "x$cross_compiling" = "xno"; then
CC_FOR_BUILD=${CC_FOR_BUILD-${CC-gcc}}
support/misc/Makefile
support/nfs/Makefile
tools/Makefile
- tools/getiversion/Makefile
tools/locktest/Makefile
tools/nlmtest/Makefile
tools/rpcdebug/Makefile
## Process this file with automake to produce Makefile.in
-SUBDIRS = getiversion locktest rpcdebug rpcgen nlmtest
+SUBDIRS = locktest rpcdebug rpcgen nlmtest
MAINTAINERCLEANFILES = Makefile.in
+++ /dev/null
-## Process this file with automake to produce Makefile.in
-
-CC=$(CC_FOR_BUILD)
-LIBTOOL = @LIBTOOL@ --tag=CC
-
-noinst_PROGRAMS = getiversion
-getiversion_SOURCES = getiversion.c
-getiversion_CFLAGS=$(CFLAGS_FOR_BUILD)
-getiversion_CPPFLAGS=$(CPPFLAGS_FOR_BUILD) -I$(top_srcdir)/support/include
-getiversion_LDFLAGS=$(LDFLAGS_FOR_BUILD)
-
-MAINTAINERCLEANFILES = Makefile.in
+++ /dev/null
-/*
- * getiversion
- *
- * Get version number for an inode on an ext2 file system.
- */
-
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#ifdef HAVE_SYS_IOCTL_H
-#include <sys/ioctl.h>
-#endif
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
-
-#include <stdio.h>
-#include <sys/fs/ext2fs.h>
-
-int
-main(int argc, char **argv)
-{
- int i, fd;
- u_int32_t vers;
-
- if (argc <= 1) {
- fprintf(stderr, "usage: getiversion file ...\n");
- return 1;
- }
-
- for (i = 1; i < argc; i++) {
- if ((fd = open(argv[i], O_RDONLY)) < 0
- || ioctl(fd, EXT2_IOC_GETVERSION, &vers) < 0) {
- perror(argv[i]);
- continue;
- } else {
- printf("%-20s %d\n", argv[i], vers);
- }
- close(fd);
- }
- return 0;
-}