diff options
author | Paul Fertser <fercerpav@gmail.com> | 2014-06-15 10:20:45 +0400 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-06-22 09:25:45 +0000 |
commit | e3be699f51f11e54f8478e65367b90e3283eaf69 (patch) | |
tree | df8153d5dc7dfae286b4af5b9ae7ab616feafd63 /configure.ac | |
parent | 8ae66d0d6f97485be980744ee75ee971eab8a533 (diff) | |
download | riscv-openocd-e3be699f51f11e54f8478e65367b90e3283eaf69.zip riscv-openocd-e3be699f51f11e54f8478e65367b90e3283eaf69.tar.gz riscv-openocd-e3be699f51f11e54f8478e65367b90e3283eaf69.tar.bz2 |
configure: fix formatting when "echo -n" is not supported
The -n option is non-standard and is unavailable on some systems
(e.g. OS X's shell builtin).
Change-Id: Ia2fed186dee5fa6da543944873d67ebee1d9354e
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2172
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 9943beb..7745bbf 100644 --- a/configure.ac +++ b/configure.ac @@ -1318,16 +1318,16 @@ echo echo OpenOCD configuration summary echo -------------------------------------------------- m4_foreach([adapter], [USB1_ADAPTERS, USB_ADAPTERS, USB0_ADAPTERS, HIDAPI_ADAPTERS], - [echo -n m4_format(["%-40s"], ADAPTER_DESC([adapter])) + [s=m4_format(["%-40s"], ADAPTER_DESC([adapter])) case $ADAPTER_VAR([adapter]) in auto) - echo yes '(auto)' + echo "$s"yes '(auto)' ;; yes) - echo yes + echo "$s"yes ;; no) - echo no + echo "$s"no ;; esac ]) |