From ab5d3166e505581da668eae12a825adf25cd4371 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 22 Jul 2024 23:44:14 +0200 Subject: [PATCH] Enabled Linux file attributes in GNU xorriso build system --- xorriso/configure_ac.txt | 20 +++++++++++++++++++- xorriso/xorriso_timestamp.h | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/xorriso/configure_ac.txt b/xorriso/configure_ac.txt index 33346410..3d051f23 100644 --- a/xorriso/configure_ac.txt +++ b/xorriso/configure_ac.txt @@ -1,6 +1,6 @@ # configure.ac stems from xorriso/configure_ac.txt and leads to ./configure -# Copyright (c) 2007 - 2023 Thomas Schmitt +# Copyright (c) 2007 - 2024 Thomas Schmitt # Provided under GPL version 2 or later. AC_INIT([xorriso], [1.5.7], [http://libburnia-project.org]) @@ -353,6 +353,24 @@ else echo "disabled local processing of extended file attributes" fi +dnl ts C40722 +AH_TEMPLATE([Libisofs_with_aaip_lfa_flagS], + [Define to use Linux chattr capabilities]) +LFA_DEF= +AC_ARG_ENABLE(linux-attr-flags, +[ --enable-linux-attr-flags Enable processing of Linux chattr(1) flags, default=yes], + , linux_attr_flags=yes) +if test x"$linux_attr_flags" = xyes; then + AC_CHECK_HEADER(linux/fs.h, LFA_DEF="-DLibisofs_with_aaip_lfa_flagS", + LFA_DEF=) +fi +if test x"$LFA_DEF" = x-DLibisofs_with_aaip_lfa_flagS +then + AC_DEFINE([Libisofs_with_aaip_lfa_flagS], []) + echo "enabled Linux chattr(1) flags" +else + echo "disabled Linux chattr(1) flags" +fi AH_TEMPLATE([Libisofs_with_zliB], [Define to use compression via zlib]) AH_TEMPLATE([LIBJTE_WITH_ZLIB], [Allow libjte to use zlib]) diff --git a/xorriso/xorriso_timestamp.h b/xorriso/xorriso_timestamp.h index 7af277d5..d2ae4601 100644 --- a/xorriso/xorriso_timestamp.h +++ b/xorriso/xorriso_timestamp.h @@ -1 +1 @@ -#define Xorriso_timestamP "2024.07.22.124121" +#define Xorriso_timestamP "2024.07.22.214318"