From: Alexandre Duret-Lutz Date: Mon, 7 Jun 2004 06:04:40 +0000 (+0000) Subject: * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools X-Git-Tag: Release-1-8d~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18ff16521e7c1c892663b71c8fd34c076b18e2a7;p=thirdparty%2Fautomake.git * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools so it works with Solaris and Tru64 /bin/sh. Report from Nicolas Joly. --- diff --git a/ChangeLog b/ChangeLog index 7468ea905..66aa647f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-07 Alexandre Duret-Lutz + + * m4/tar.m4 (_AM_PROG_TAR): Split the definition of $_am_tools + so it works with Solaris and Tru64 /bin/sh. + Report from Nicolas Joly. + 2004-06-06 Alexandre Duret-Lutz * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a diff --git a/m4/tar.m4 b/m4/tar.m4 index c7d713773..aac53d09d 100644 --- a/m4/tar.m4 +++ b/m4/tar.m4 @@ -42,9 +42,10 @@ m4_if([$1], [v7], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. -_am_tools=${am_cv_prog_tar_$1-gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none} -# Do not replace $_am_tools by its definition on the `for' line, NetBSD 2.0F -# /bin/sh will not perform IFS splitting on the right side of `-'. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in