diff options
author | Bruno Haible <bruno@clisp.org> | 2007-03-26 10:24:24 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-03-26 10:24:24 +0000 |
commit | ff139a52812db1c77d80b8d19beb6216527e6a68 (patch) | |
tree | 88600cc556706837f30031a7d44f9897af25d7f4 /m4 | |
parent | af7308e5e6af8afd55c64386f23977070f8aa657 (diff) | |
download | gnulib-ff139a52812db1c77d80b8d19beb6216527e6a68.tar.gz |
Don't use unportable shell statement.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/vasnprintf.m4 | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/m4/vasnprintf.m4 b/m4/vasnprintf.m4 index a225c1c478..7cd758943a 100644 --- a/m4/vasnprintf.m4 +++ b/m4/vasnprintf.m4 @@ -66,12 +66,14 @@ AC_DEFUN([gl_PREREQ_VASNPRINTF], AC_DEFUN([gl_PREREQ_VASNPRINTF_DIRECTIVE_A], [ AC_REQUIRE([gl_PRINTF_DIRECTIVE_A]) - if ! expr "$gl_cv_func_printf_directive_a" : ".*yes" > /dev/null; then - AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, - [Define if the vasnprintf implementation needs special code for - the 'a' and 'A' directives.]) - AC_CHECK_FUNCS([nl_langinfo]) - fi + case "$gl_cv_func_printf_directive_a" in + *yes) + AC_DEFINE([NEED_PRINTF_DIRECTIVE_A], 1, + [Define if the vasnprintf implementation needs special code for + the 'a' and 'A' directives.]) + AC_CHECK_FUNCS([nl_langinfo]) + ;; + esac ]) # Prerequisites of lib/asnprintf.c. |