1.1 --- a/configure Fri Sep 14 19:30:56 2007 +0000
1.2 +++ b/configure Mon Sep 17 21:52:37 2007 +0000
1.3 @@ -123,8 +123,8 @@
1.4
1.5 # Check bash is present, and at least version 3.0
1.6 [ -x /bin/bash ] || do_error "bash 3.0 or above was not found in /bin/bash"
1.7 -bash_version=$(/bin/bash --version |sed -r -e '2,$d' -e 's/.* version ([[:digit:]]+).*/\1/;')
1.8 -bash_major=${bash_version%%.*}
1.9 +bash_version=$(/bin/bash -c 'echo ${BASH_VERSION}')
1.10 +bash_major=$(/bin/bash -c 'echo ${BASH_VERSINFO[0]}')
1.11 [ ${bash_major} -ge 3 ] || do_error "bash 3.0 or above is needed (found ${bash_version})"
1.12
1.13 sed -r -e "s,@@BINDIR@@,${BINDIR},g;" \