X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=configure.in;h=a99ea2f26a1f90bac4716c9aeffac7131084e6e6;hp=a7b608e18678df78c6282e54962a2baf6770685b;hb=e4a8bde40a6d8319d1b28e054e1a419ba3df2363;hpb=5a7167e93a7975616f2f3fb4bc48b3fbd8080672 diff --git a/configure.in b/configure.in index a7b608e..a99ea2f 100644 --- a/configure.in +++ b/configure.in @@ -299,13 +299,22 @@ if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then AC_MSG_ERROR(You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs) fi +dnl +dnl Try to use ext2_fs.h header from libext2fs instead of from the kernel +dnl +AC_CHECK_HEADERS(ext2fs/ext2_fs.h) + dnl dnl Check for ext2_ino_t type dnl AC_MSG_CHECKING(for ext2_ino_t type in libext2fs headers) AC_TRY_COMPILE([#include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include -#include ], +#endif +#include ], [ext2_ino_t ino = 0;], [AC_DEFINE(HAVE_EXT2_INO_T) AC_MSG_RESULT(yes)], AC_MSG_RESULT(no)) @@ -315,7 +324,11 @@ dnl Check for s_journal_inum field in ext2_super_block struct dnl AC_MSG_CHECKING(for s_journal_inum field in ext2_super_block struct) AC_TRY_COMPILE([#include +#ifdef HAVE_EXT2FS_EXT2_FS_H +#include +#else #include +#endif #include ], [struct ext2_super_block es; es.s_journal_inum = 0;], [AC_DEFINE(HAVE_EXT2_JOURNAL_INUM) AC_MSG_RESULT(yes)],