]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
configure: replace echo -n with printf
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Jul 2015 09:23:36 +0000 (11:23 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 23 Jul 2015 09:27:16 +0000 (11:27 +0200)
POSIX doesn't require echo to support -n.

configure

index d069c658db8d4e2f41c4e753caad1144b0d27f39..4942722cd349d0d71cc8e16efb451d16e7be707b 100755 (executable)
--- a/configure
+++ b/configure
@@ -41,7 +41,7 @@ test_code () {
   ldflags=$4
   code=$5
 
-  echo -n "Checking for $name : "
+  printf "%s" "Checking for $name : "
 
   (
     for h in $headers; do
@@ -174,12 +174,12 @@ get_features () {
   ff=1
   for f; do
     if [ "$ff" = "0" ]; then
-      echo -n " "
+      printf " "
     fi
     if grep "define FEAT_$f" config.h > /dev/null; then
-      echo -n "+$f"
+      printf "%s" "+$f"
     else
-      echo -n "-$f"
+      printf "%s" "-$f"
     fi
     ff=0
   done