Add a resource tool

This lets you poke at resources in elf files and
standalone resource bundles. So far, only listing
and extracting resources is supported. The support
for elf files requires libelf.
This commit is contained in:
Matthias Clasen
2012-01-22 02:39:11 -05:00
parent b6a8dec558
commit 716cf35585
4 changed files with 703 additions and 1 deletions

View File

@@ -1819,6 +1819,17 @@ dnl failure. try libattr
fi
AC_SUBST(XATTR_LIBS)
dnl ************************
dnl *** check for libelf ***
dnl ************************
AC_CHECK_LIB([elf], [elf_begin], have_libelf=yes, have_libelf=no)
if test $have_libelf = yes; then
AC_DEFINE(HAVE_LIBELF, 1, [Define if libelf is available])
ELF_LIBS=-lelf
fi
AC_SUBST(ELF_LIBS)
dnl ****************************************
dnl *** platform dependent source checks ***
dnl ****************************************