From: Ondrej Kozina Date: Tue, 5 Feb 2013 18:11:14 +0000 (+0100) Subject: - add configuration option --enable-xattrs X-Git-Tag: v0.1.3~18^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8956041792ebcf8e766d7738ec4ba8de90c3c4d4;p=thirdparty%2Fsnapper.git - add configuration option --enable-xattrs --- diff --git a/configure.in b/configure.in index af98f5ae..ca55d622 100644 --- a/configure.in +++ b/configure.in @@ -96,6 +96,15 @@ AM_CONDITIONAL(HAVE_ZYPP, [test "$with_zypp" != "no"]) AC_CHECK_LIB(btrfs, btrfs_read_and_process_send_stream) +AC_ARG_ENABLE([xattrs], AC_HELP_STRING([--enable-xattrs],[Enable extended attributes support in diff, status and undochange commands]), + [with_xattrs=$enableval],[with_xattrs=no]) + +AM_CONDITIONAL(HAVE_XATTRS, [test "x$with_xattrs" != "xno"]) + +if test "x$with_xattrs" != "xno"; then + AC_DEFINE(ENABLE_XATTRS, 1, [Enable extended attributes support]) +fi + PKG_CHECK_MODULES(DBUS, dbus-1) AC_SUBST(VERSION) diff --git a/snapper/Makefile.am b/snapper/Makefile.am index a32e4ea2..1ea31e8b 100644 --- a/snapper/Makefile.am +++ b/snapper/Makefile.am @@ -8,6 +8,10 @@ INCLUDES = -I/usr/include/libxml2 lib_LTLIBRARIES = libsnapper.la +if HAVE_XATTRS +TMP_XA = XAttributes.cc Xattributes.h +endif HAVE_XATTRS + libsnapper_la_SOURCES = \ Factory.cc Factory.h \ Snapper.cc Snapper.h \ @@ -25,11 +29,13 @@ libsnapper_la_SOURCES = \ SystemCmd.cc SystemCmd.h \ AsciiFile.cc AsciiFile.h \ Regex.cc Regex.h \ - XAttributes.cc Xattributes.h \ Exception.h \ SnapperTmpl.h \ SnapperTypes.h \ - SnapperDefines.h + SnapperDefines.h \ + $(TMP_XA) + + if ENABLE_BTRFS libsnapper_la_SOURCES += \