Commit 3149d1ab authored by Max Kellermann's avatar Max Kellermann

configure.ac: eliminate bashism "echo -n"

Use "printf" instead.
parent 59a417fc
...@@ -1495,23 +1495,23 @@ dnl --------------------------------------------------------------------------- ...@@ -1495,23 +1495,23 @@ dnl ---------------------------------------------------------------------------
echo '' echo ''
echo '########### MPD CONFIGURATION ############' echo '########### MPD CONFIGURATION ############'
echo -ne '\nArchive support:\n\t' printf '\nArchive support:\n\t'
results(bzip2,[bzip2]) results(bzip2,[bzip2])
results(iso9660,[ISO9660]) results(iso9660,[ISO9660])
results(zzip,[ZIP]) results(zzip,[ZIP])
if test x$with_zeroconf != xno; then if test x$with_zeroconf != xno; then
echo -ne '\nAutodiscovery support:\n\t' printf '\nAutodiscovery support:\n\t'
results(avahi, [Avahi]) results(avahi, [Avahi])
results(bonjour, [Bonjour]) results(bonjour, [Bonjour])
fi fi
echo -ne '\nClient support:\n\t' printf '\nClient support:\n\t'
results(ipv6, "IPv6") results(ipv6, "IPv6")
results(tcp, "TCP") results(tcp, "TCP")
results(un,[UNIX Domain Sockets]) results(un,[UNIX Domain Sockets])
echo -ne '\nFile format support:\n\t' printf '\nFile format support:\n\t'
results(aac, [AAC]) results(aac, [AAC])
results(sidplay, [C64 SID]) results(sidplay, [C64 SID])
results(ffmpeg, [FFMPEG]) results(ffmpeg, [FFMPEG])
...@@ -1519,7 +1519,7 @@ results(flac, [FLAC]) ...@@ -1519,7 +1519,7 @@ results(flac, [FLAC])
results(fluidsynth, [FluidSynth]) results(fluidsynth, [FluidSynth])
results(gme, [GME]) results(gme, [GME])
results(sndfile, [libsndfile]) results(sndfile, [libsndfile])
echo -ne '\n\t' printf '\n\t'
results(mikmod, [MikMod]) results(mikmod, [MikMod])
results(modplug, [MODPLUG]) results(modplug, [MODPLUG])
results(mad, [MAD]) results(mad, [MAD])
...@@ -1527,23 +1527,23 @@ results(mpg123, [MPG123]) ...@@ -1527,23 +1527,23 @@ results(mpg123, [MPG123])
results(mp4, [MP4]) results(mp4, [MP4])
results(mpc, [Musepack]) results(mpc, [Musepack])
results(oggflac, [OggFLAC], flac) results(oggflac, [OggFLAC], flac)
echo -ne '\n\t' printf '\n\t'
results(tremor, [OggTremor]) results(tremor, [OggTremor])
results(vorbis, [OggVorbis]) results(vorbis, [OggVorbis])
results(audiofile, [WAVE]) results(audiofile, [WAVE])
results(wavpack, [WavPack]) results(wavpack, [WavPack])
results(wildmidi, [WildMidi]) results(wildmidi, [WildMidi])
echo -en '\nOther features:\n\t' printf '\nOther features:\n\t'
results(lsr, [libsamplerate]) results(lsr, [libsamplerate])
results(inotify, [inotify]) results(inotify, [inotify])
results(sqlite, [SQLite]) results(sqlite, [SQLite])
echo -en '\nMetadata support:\n\t' printf '\nMetadata support:\n\t'
results(cue,[cue]) results(cue,[cue])
results(id3,[ID3]) results(id3,[ID3])
echo -en '\nPlayback support:\n\t' printf '\nPlayback support:\n\t'
results(alsa,ALSA) results(alsa,ALSA)
results(ffado,FFADO) results(ffado,FFADO)
results(fifo,FIFO) results(fifo,FIFO)
...@@ -1552,14 +1552,14 @@ results(httpd_output,[HTTP Daemon]) ...@@ -1552,14 +1552,14 @@ results(httpd_output,[HTTP Daemon])
results(jack,[JACK]) results(jack,[JACK])
results(ao,[libao]) results(ao,[libao])
results(oss,[OSS]) results(oss,[OSS])
echo -ne '\n\t' printf '\n\t'
results(openal,[OpenAL]) results(openal,[OpenAL])
results(osx, [OS X]) results(osx, [OS X])
results(pipe_output, [Pipeline]) results(pipe_output, [Pipeline])
results(pulse, [PulseAudio]) results(pulse, [PulseAudio])
results(mvp, [Media MVP]) results(mvp, [Media MVP])
results(shout, [SHOUTcast]) results(shout, [SHOUTcast])
echo -ne '\n\t' printf '\n\t'
results(solaris, [Solaris]) results(solaris, [Solaris])
results(winmm_output, [WinMM]) results(winmm_output, [WinMM])
...@@ -1567,7 +1567,7 @@ if ...@@ -1567,7 +1567,7 @@ if
test x$enable_shout = xyes || test x$enable_shout = xyes ||
test x$enable_recorder = xyes || test x$enable_recorder = xyes ||
test x$enable_httpd_output = xyes; then test x$enable_httpd_output = xyes; then
echo -en '\nStreaming encoder support:\n\t' printf '\nStreaming encoder support:\n\t'
results(flac_encoder, [FLAC]) results(flac_encoder, [FLAC])
results(lame_encoder, [LAME]) results(lame_encoder, [LAME])
results(vorbis_encoder, [Ogg Vorbis]) results(vorbis_encoder, [Ogg Vorbis])
...@@ -1575,19 +1575,19 @@ if ...@@ -1575,19 +1575,19 @@ if
results(wave_encoder, [WAVE]) results(wave_encoder, [WAVE])
fi fi
echo -en '\nStreaming support:\n\t' printf '\nStreaming support:\n\t'
results(curl,[CURL]) results(curl,[CURL])
results(lastfm,[Last.FM]) results(lastfm,[Last.FM])
results(mms,[MMS]) results(mms,[MMS])
echo -ne '\n\n##########################################\n\n' printf '\n\n##########################################\n\n'
if test x$enable_sndfile = xyes && test x$enable_modplug = xyes; then if test x$enable_sndfile = xyes && test x$enable_modplug = xyes; then
AC_MSG_WARN([compilation may fail, because libmodplug conflicts with libsndfile]) AC_MSG_WARN([compilation may fail, because libmodplug conflicts with libsndfile])
AC_MSG_WARN([libmodplug ships modplug/sndfile.h, which hides libsndfile's sndfile.h]) AC_MSG_WARN([libmodplug ships modplug/sndfile.h, which hides libsndfile's sndfile.h])
fi fi
echo -ne 'Generating files needed for compilation\n' echo 'Generating files needed for compilation'
dnl --------------------------------------------------------------------------- dnl ---------------------------------------------------------------------------
dnl Generate files dnl Generate files
......
...@@ -7,13 +7,13 @@ AC_DEFUN([results], [ ...@@ -7,13 +7,13 @@ AC_DEFUN([results], [
var="`echo '$'enable_$1`" var="`echo '$'enable_$1`"
fi fi
echo -n '(' printf '('
if eval "test x$var = xyes"; then if eval "test x$var = xyes"; then
echo -n '+' printf '+'
elif test -n "$3" && eval "test x$var = x$3"; then elif test -n "$3" && eval "test x$var = x$3"; then
echo -n '+' printf '+'
else else
echo -n '-' printf '-'
fi fi
echo -n "$2) " printf '%s) ' "$2"
]) ])
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment