diff options
author | Theodore Ts'o <tytso@mit.edu> | 2000-02-11 05:04:44 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2000-02-11 05:04:44 +0000 |
commit | 8f3f29d383f9301395d5d7b4411d62a35d077175 (patch) | |
tree | a78ee615fd51344d68d3be03ef58f3afcc320d83 /configure.in | |
parent | e1a0a3e304229a625c37f0e845c0c9fff117c8c1 (diff) | |
download | e2fsprogs-8f3f29d383f9301395d5d7b4411d62a35d077175.tar.gz |
ChangeLog, configure, configure.in:
configure.in: Define HAVE_EXT2_IOCTLS based solely on the OS type,
instead of basising on whether a test program compiles. This was
screwing up on some Linux kernel header files, and we know the Hurd
doesn't support the ext2 ioctls anyway.
types.h:
Add newline at end of file.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/configure.in b/configure.in index d31881e5..7a9b4f68 100644 --- a/configure.in +++ b/configure.in @@ -462,19 +462,13 @@ if test $ac_cv_have_optreset = yes; then AC_DEFINE(HAVE_OPTRESET) fi dnl -dnl See if using the EXT2 ioctls causes a compile-time barf (as on the Hurd). -dnl -AC_MSG_CHECKING(whether the ext2 ioctls compile) -AC_CACHE_VAL(e2fsprogs_cv_ioctl_ext2, - AC_TRY_COMPILE([#include <linux/ext2_fs.h> -#include <sys/ioctl.h>], - [ioctl (0, EXT2_IOC_SETVERSION, 0);], - [e2fsprogs_cv_ioctl_ext2=yes], - [e2fsprogs_cv_ioctl_ext2=no])) -AC_MSG_RESULT($e2fsprogs_cv_ioctl_ext2) -if test "$e2fsprogs_cv_ioctl_ext2" = yes; then - AC_DEFINE(HAVE_EXT2_IOCTLS) -fi +dnl We use the EXT2 ioctls only under Linux +dnl +case "$host_os" in +linux*) + AC_DEFINE(HAVE_EXT2_IOCTLS) + ;; +esac dnl dnl Linux and Hurd places root files in the / by default dnl |