diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-14 18:38:31 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-07-14 18:38:31 +0200 |
commit | c08068901f025912c8bd442f9e167546b8805753 (patch) | |
tree | 0bb4b6460fcc34d4b3ff45918c54af0e37569d9c /configure.ac | |
parent | 19d4b87d970e316a7e13c8895ed0ffe62df5f00e (diff) | |
download | automake-c08068901f025912c8bd442f9e167546b8805753.tar.gz |
configure: ${#param} must be supported by the shell for the testsuite
This will be required at least by the Automake-NG branch.
* configure.ac: Require the $AM_TEST_RUNNER_SHELL supports ${#param} as
a way to obtain the length of the expansion of the variable $param.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d49da6c61..a8db0614e 100644 --- a/configure.ac +++ b/configure.ac @@ -297,6 +297,14 @@ AC_DEFUN([_AM_CHECK_CANDIDATE_SHELL], [], [am_score=1; break]) _AM_CHECK_SHELL_FEATURE([$1], + [supports \${@%:@var}], + [zero='' one='x' twelve=' foobar baz!' \ + && test ${@%:@zero} -eq 0 \ + && test ${@%:@one} -eq 1 \ + && test ${@%:@twelve} -eq 12], + [], [am_score=1; break]) + + _AM_CHECK_SHELL_FEATURE([$1], [supports \${var@%:@glob} and \${var%glob}], [v=a/b/c \ && test ${v@%:@*/} = b/c \ |