Whamcloud - gitweb
Decouple --without-libarchive and HAVE_ARCHIVE_H
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Tue, 3 Sep 2024 11:15:33 +0000 (13:15 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 2 Dec 2024 13:07:33 +0000 (08:07 -0500)
commitecfd4dd1217a4145f7e4f07207c083fc16c63747
tree08f5a3a1d81e424a3f5fbadf928604da49566d08
parentc8befcd0327c8c6637f7dab77b0563a56f09e145
Decouple --without-libarchive and HAVE_ARCHIVE_H

To aid bootstrapping, it would be useful to be able to build e2fsprogs
without archive.h as otherwise there is a build dependency loop with
libarchive. If archive.h is not present, add the missing forward
declarations (as opaque structs) and preprocessor definitions and
typedefs. Since this allows building e2fsprogs with libarchive support
even without the archive.h header present on the system, we cannot check
HAVE_ARCHIVE_H anymore to decide whether to build with libarchive
support or not. So if --without-libarchive is passed to ./configure,
CONFIG_DISABLE_LIBARCHIVE gets set and later checked to decide about
libarchive support.

Addresses-Debian-Bug: #1078693
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
configure
configure.ac
debian/control
lib/config.h.in
misc/create_inode_libarchive.c