aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorJonathan Gray2004-03-04 22:44:10 +0000
committerJonathan Gray2004-03-04 22:44:10 +0000
commit355e59ad6b6865afb9a0dd415b18e21d0722c30b (patch)
treeda960aff35389a3884d46bda02c1c18557a7b4c0 /configure
parentaf2f29f55cb5ae611b0c9e83474b1f0f14b33508 (diff)
downloadscummvm-rg350-355e59ad6b6865afb9a0dd415b18e21d0722c30b.tar.gz
scummvm-rg350-355e59ad6b6865afb9a0dd415b18e21d0722c30b.tar.bz2
scummvm-rg350-355e59ad6b6865afb9a0dd415b18e21d0722c30b.zip
add function to provide echo -n behaviour for the echo -n less solaris users
svn-id: r13191
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 13 insertions, 5 deletions
diff --git a/configure b/configure
index f105a0aec5..4d327571ae 100755
--- a/configure
+++ b/configure
@@ -62,7 +62,7 @@ cc_check() {
}
echocheck () {
- echo -n "Checking for $@... "
+ echo_n "Checking for $@... "
}
#
@@ -121,6 +121,14 @@ find_sdlconfig()
}
#
+# Function to provide echo -n for bourne shells that don't have it
+#
+echo_n()
+{
+ printf "$@"
+}
+
+#
# Determine a data type with the given length
#
find_type_with_size ()
@@ -533,7 +541,7 @@ EOF
#
# Check whether memory alignment is required
#
- echo -n "Alignment required... "
+ echo_n "Alignment required... "
cat > $TMPC << EOF
#include <stdlib.h>
#include <signal.h>
@@ -763,7 +771,7 @@ if test "$_build_sky" = yes ; then
echo " Beneath a Steel Sky"
fi
if test "$_build_sword1" = yes ; then
- echo -n " Broken Sword I"
+ echo_n " Broken Sword I"
if test "$_mpeg2" = yes ; then
echo " (w/ mpeg2 cutscenes)"
else
@@ -771,7 +779,7 @@ if test "$_build_sword1" = yes ; then
fi
fi
if test "$_build_sword2" = yes ; then
- echo -n " Broken Sword II"
+ echo_n " Broken Sword II"
if test "$_mpeg2" = yes ; then
echo " (w/ mpeg2 cutscenes)"
else
@@ -783,7 +791,7 @@ if test "$_build_queen" = yes ; then
fi
echo
-echo -n "Backend... "
+echo_n "Backend... "
echo "$_backend"
#