diff options
author | Pedro Giffuni <pfg@apache.org> | 2011-11-02 15:41:27 +0000 |
---|---|---|
committer | Pedro Giffuni <pfg@apache.org> | 2011-11-02 15:41:27 +0000 |
commit | 3010206ae4c00c6dd915255cafa1fb4424ddadf7 (patch) | |
tree | f43ff2101a994dc902d3276b9e993f96478af592 /configure.in | |
parent | 8c70009b33e1175366c7a5daab6225b10c740bbf (diff) |
Accept BSDtar as an alternative to GNU tar. Based on a a patch by Baptiste Darousin.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.in b/configure.in index d8d4f2469d3e..5ed537cf31ed 100644 --- a/configure.in +++ b/configure.in @@ -1654,11 +1654,11 @@ fi AC_SUBST(GNUMAKE) dnl =================================================================== -dnl Search all the common names for GNU tar +dnl Search all the common names for GNU or BSD tar dnl =================================================================== -AC_MSG_CHECKING([for GNU tar]) -for a in $GNUTAR gtar gnutar tar; do - $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null +AC_MSG_CHECKING([for GNU or BSD compatible tar]) +for a in $GNUTAR gtar gnutar bsdtar tar; do + $a --version 2> /dev/null | egrep "GNU|libarchive" 2>&1 > /dev/null if test $? -eq 0; then GNUTAR=$a break |