libfsimage: add ext4 support for CentOS 5.x
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 14 Sep 2012 09:02:47 +0000 (10:02 +0100)
committerRoger Pau Monne <roger.pau@citrix.com>
Fri, 14 Sep 2012 09:02:47 +0000 (10:02 +0100)
commit19459d56f493b380e2df30e06822cc7b01183186
tree9b397d655903efa89e6522badd7e33489f6d41d0
parent393a6e75afb627fe126bfc8050bd53b9e086e1dc
libfsimage: add ext4 support for CentOS 5.x

CentOS 5.x forked e2fs ext4 support into a different package called
e4fs, and so headers and library names changed from ext2fs to ext4fs.
Check if ext4fs/ext2fs.h and -lext4fs work, and use that instead of
ext2fs to build libfsimage. This patch assumes that if the ext4fs
library is present it should always be used instead of ext2fs.

This patch includes a rework of the ext2fs check, a new ext4fs check
and a minor modification in libfsimage to use the correct library.

Signed-off-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
config/Tools.mk.in
tools/config.h.in
tools/configure
tools/configure.ac
tools/libfsimage/Makefile
tools/libfsimage/ext2fs-lib/Makefile
tools/libfsimage/ext2fs-lib/ext2fs-lib.c
tools/m4/extfs.m4 [new file with mode: 0644]