aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2007-01-14 02:08:03 +0000
committerEric Wong <normalperson@yhbt.net>2007-01-14 02:08:03 +0000
commit8cc1048d72092154b9ef946d3d18a2bc405e5431 (patch)
tree8144f5a86115cc868992413a4b890ffb51bbaa56 /configure.ac
parent5d79aced8cc587b8b8889647b7cb9da79d500d64 (diff)
downloadmpd-8cc1048d72092154b9ef946d3d18a2bc405e5431.tar.gz
mpd-8cc1048d72092154b9ef946d3d18a2bc405e5431.tar.xz
mpd-8cc1048d72092154b9ef946d3d18a2bc405e5431.zip
configure.ac: shell portability fix (test -a)
-a and -o flags for 'test' are not consistently supported across many platforms and not specified by POSIX git-svn-id: https://svn.musicpd.org/mpd/trunk@5240 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--configure.ac10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index c2869c461..2296ec903 100644
--- a/configure.ac
+++ b/configure.ac
@@ -588,11 +588,13 @@ if test x$enable_mod = xyes; then
fi
fi
-if test x$with_zeroconf != xno -a \
- x$with_zeroconf != xavahi -a \
- x$with_zeroconf != xbonjour; then
+case $with_zeroconf in
+no|avahi|bonjour)
+ ;;
+*)
with_zeroconf=auto
-fi
+ ;;
+esac
if test x$with_zeroconf != xno; then
if test x$with_zeroconf = xauto; then