diff options
author | Po Lu <luangruo@yahoo.com> | 2023-04-26 04:57:31 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-26 04:57:31 +0200 |
commit | 3ef794d11bcbea3b8ae57767772a3255b669b8ce (patch) | |
tree | 8a9c6350de418fd421083955d4be7c3e538ff797 /gnulib-tool | |
parent | 446cbd49a361d875b602d68979c8983d3b32c512 (diff) | |
download | gnulib-3ef794d11bcbea3b8ae57767772a3255b669b8ce.tar.gz |
gnulib-tool: For conditional dependencies, generate portable sh code.
* gnulib-tool (func_emit_autoconf_snippets): Avoid sh syntax
'if ! variable', that does not work with Solaris /bin/sh.
* pygnulib/GLEmiter.py (GLEmiter.autoconfSnippets): Likewise.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-x | gnulib-tool | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnulib-tool b/gnulib-tool index 5373333f74..74c395d9a4 100755 --- a/gnulib-tool +++ b/gnulib-tool @@ -4731,7 +4731,7 @@ func_emit_autoconf_snippets () func_module_shellvar_name "$module" echo " $shellfunc ()" echo ' {' - echo " if ! \$$shellvar; then" + echo " if \$$shellvar; then :; else" func_emit_autoconf_snippet " " echo " $shellvar=true" deps=`func_get_dependencies $module | sed -e "$sed_dependencies_without_conditions"` |