mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-22 06:10:06 +00:00
btrfs-progs: autoconf: add --disable-backtrace
It's better to use ./configure than manually edit Makefile. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
67b1307955
commit
a22c3a0dcf
@ -82,10 +82,6 @@ BUILDDIRS = $(patsubst %,build-%,$(SUBDIRS))
|
||||
INSTALLDIRS = $(patsubst %,install-%,$(SUBDIRS))
|
||||
CLEANDIRS = $(patsubst %,clean-%,$(SUBDIRS))
|
||||
|
||||
ifeq ($(DISABLE_BACKTRACE),1)
|
||||
CFLAGS += -DBTRFS_DISABLE_BACKTRACE
|
||||
endif
|
||||
|
||||
ifneq ($(DISABLE_DOCUMENTATION),1)
|
||||
BUILDDIRS += build-Documentation
|
||||
INSTALLDIRS += install-Documentation
|
||||
|
10
configure.ac
10
configure.ac
@ -56,6 +56,16 @@ AC_DEFUN([PKG_STATIC], [
|
||||
fi
|
||||
])
|
||||
|
||||
|
||||
AC_ARG_ENABLE([backtrace],
|
||||
AS_HELP_STRING([--disable-backtrace], [disable btrfs backtrace]),
|
||||
[], [enable_backtrace=yes]
|
||||
)
|
||||
|
||||
AS_IF([test "x$enable_backtrace" = xno], [
|
||||
AC_DEFINE([BTRFS_DISABLE_BACKTRACE], [1], [disable backtrace stuff in kerncompat.h ])
|
||||
])
|
||||
|
||||
dnl Define <NAME>_LIBS= and <NAME>_CFLAGS= by pkg-config
|
||||
dnl
|
||||
dnl The default PKG_CHECK_MODULES() action-if-not-found is end the
|
||||
|
Loading…
Reference in New Issue
Block a user