From: Alexandre Duret-Lutz Date: Sun, 6 Jun 2004 20:42:14 +0000 (+0000) Subject: * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a X-Git-Tag: v1.10.2~530 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b9ac42a49fbff45fa00250c5432289280e92dc8;p=platform%2Fupstream%2Fautomake.git * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a bug in NetBSD /bin/sh. Report from Nicolas Joly. --- diff --git a/ChangeLog b/ChangeLog index 6ce8791..7468ea9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-06-06 Alexandre Duret-Lutz + + * m4/tar.m4 (_AM_PROG_TAR): Introduce $_am_tools to work around a + bug in NetBSD /bin/sh. + Report from Nicolas Joly. + 2004-06-03 Alexandre Duret-Lutz * tests/defs.in (required=icc): Use `-V -help' instead of diff --git a/m4/tar.m4 b/m4/tar.m4 index 7f93e02..c7d7137 100644 --- a/m4/tar.m4 +++ b/m4/tar.m4 @@ -42,7 +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. -for _am_tool in ${am_cv_prog_tar_$1-gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none} +_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 `-'. +for _am_tool in $_am_tools do case $_am_tool in gnutar)