diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2012-02-16 02:36:54 +0100 |
---|---|---|
committer | Andreas Gruenbacher <agruen@linbit.com> | 2012-02-16 02:38:00 +0100 |
commit | 611e4b1be3f4517dbb74b965b05b802d12f11249 (patch) | |
tree | a72b59a3e1828f9abb7e912aab64aaa8852dde15 | |
parent | 228caf2bb29d7407b44a95f668c899adbfc0a0a1 (diff) | |
download | quilt-611e4b1be3f4517dbb74b965b05b802d12f11249.tar.gz |
Relax the bash version requirement to version 3.0
Apparently bash versions older than 3.2 are still in use. Reinstate the
configure check for the quoting bug in bash 3.1 which broke quilt.
-rw-r--r-- | configure.ac | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 77e7ddd..09969c0 100644 --- a/configure.ac +++ b/configure.ac @@ -50,13 +50,25 @@ QUILT_COMPAT_PROG_PATH(BASH, bash) # though the result /could/ be available to us directly as $BASH_VERSION we # don't want to use, or trust it, incase the user is specifying a different # bash executable. -if `$BASH -c '[[ "$BASH_VERSION" \< "3.2" ]]'` ; then +if `$BASH -c '[[ "$BASH_VERSION" \< "3.0" ]]'` ; then AC_MSG_ERROR([ -$PACKAGE_NAME requires at least version 3.2 of bash, you can download a current +$PACKAGE_NAME requires at least version 3.0 of bash, you can download a current version of bash from ftp.gnu.org ]) fi +AC_MSG_CHECKING(whether $BASH quoting works) +if test `$BASH -c "echo \"\\\$(set -- \\\$'a b'; echo \\\$#)\"" 2>/dev/null` = "1"; then + AC_MSG_RESULT(yes) +else + AC_MSG_RESULT(no) + AC_MSG_ERROR([ +You have a version of `bash' which suffers from a quoting bug. +This is a known bug of bash 3.1, which was fixed by patch bash31-011. +You can get this patch at ftp://ftp.gnu.org/gnu/bash/ +]) +fi + QUILT_COMPAT_PROG_PATH(CP, cp, [gcp cp]) QUILT_COMPAT_PROG_PATH(DATE, date, [gdate date]) |