projects
/
platform
/
upstream
/
automake.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d4b87
)
configure: ${#param} must be supported by the shell for the testsuite
author
Stefano Lattarini
<stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 16:38:31 +0000
(18:38 +0200)
committer
Stefano Lattarini
<stefano.lattarini@gmail.com>
Sat, 14 Jul 2012 16:38:31 +0000
(18:38 +0200)
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>
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index
d49da6c
..
a8db061
100644
(file)
--- 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 \