Jean-Marc Lasgouttes wrote: >>> 2/ lzma is deprecated by the almost equivalent but gnu .xz format. >> >> i know and tried both. there was no difference in compression ratio >> and xz didn't looked to be supported by autotools yet. also except >> arch, distros seems to accept lzma better. > > Support for xz and lzma have been added at the same time in automake.
are you sure? my 1.10.3 generated makefile knows dist-lzma, but not dist-xz target. after hard fight i forced gentoo automake wrapper to choose 1.11.1 and dist-xz appeared. > Recent GNU software is distributed as xz now. requiring 1.11 is not too much? i belive people start to scream and we need this only for people wanting make dist, which is me and Juergen later on... and finally - hold your hat - when using the attached patch for xz i got tarball half mega bigger then lzma, because autotools set -9 compression level for lzma, but not for xz :/ any way how to set it up? pavel
diff --git a/autogen.sh b/autogen.sh index da8b6aa..49eebdb 100755 --- a/autogen.sh +++ b/autogen.sh @@ -15,13 +15,14 @@ test "$automake_version" != "" && { exit 1 } +echo $automake_version case $automake_version in - *' '1.[8-9]*|*' '1.1[01]*) + *' '1.11*) ;; *) echo "This automake version is not supported by LyX." - echo "LyX only supports automake 1.8 to 1.11." + echo "LyX only supports automake 1.11(.1)" exit 1 ;; esac diff --git a/configure.ac b/configure.ac index 76c87bd..b9d01b9 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ fi AM_MAINTAINER_MODE save_PACKAGE=$PACKAGE -AM_INIT_AUTOMAKE([foreign dist-lzma no-define 1.8]) +AM_INIT_AUTOMAKE([foreign dist-xz no-define 1.11]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) PACKAGE=$save_PACKAGE