add support for $PULSEAUDIO_SOURCES which when set in configure.ac changes the pulsea...
authorLennart Poettering <lennart@lambda.(none)>
Tue, 4 Sep 2007 19:51:48 +0000 (4 21:51 +0200)
committerLennart Poettering <lennart@lambda.(none)>
Tue, 4 Sep 2007 19:51:48 +0000 (4 21:51 +0200)
configure.ac

index af311ad..d4a815e 100644 (file)
@@ -71,7 +71,11 @@ fi
 
 PKG_PROG_PKG_CONFIG
 
-if test -d ../pulseaudio ; then
+if test x"$PULSEAUDIO_SOURCES" != x ; then
+   PULSE_CFLAGS="-I${PULSEAUDIO_SOURCES}/src"
+   PULSE_LIBS="-L${PULSEAUDIO_SOURCES}/src/.libs -lpulse"
+   echo "*** Using manually configured PA instance in ${PULSEAUDIO_SOURCES} ***"
+elif test -d ../pulseaudio ; then
    PULSE_CFLAGS='-I$(top_srcdir)/../pulseaudio/src'
    PULSE_LIBS='-L$(top_srcdir)/../pulseaudio/src/.libs -lpulse'
    echo "*** Found pulseaudio in ../pulseaudio, using that version ***"