[pulseaudio-commits] r1066 - /trunk/configure.ac

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu Jul 13 08:51:50 PDT 2006


Author: lennart
Date: Thu Jul 13 17:51:49 2006
New Revision: 1066

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1066&root=pulseaudio&view=rev
Log:
check for avahi in configure.ac

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/configure.ac?rev=1066&root=pulseaudio&r1=1065&r2=1066&view=diff
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Thu Jul 13 17:51:49 2006
@@ -510,6 +510,37 @@
 AC_SUBST(HAVE_HOWL)
 AM_CONDITIONAL([HAVE_HOWL], [test "x$HAVE_HOWL" = x1])
 
+#### Avahi support (optional) ####
+
+AC_ARG_ENABLE([avahi], 
+    AC_HELP_STRING([--disable-avahi], [Disable optional Avahi support]), 
+        [
+            case "${enableval}" in
+                yes) avahi=yes ;;
+                no) avahi=no ;;
+                *) AC_MSG_ERROR(bad value ${enableval} for --disable-avahi) ;;
+            esac
+        ],
+        [avahi=auto])
+
+if test "x${avahi}" != xno ; then
+    PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.0 ],
+        HAVE_AVAHI=1,
+        [
+                HAVE_AVAHI=0
+                if test "x$avahi" = xyes ; then
+                        AC_MSG_ERROR([*** Avahi support not found])
+                fi
+        ])
+else
+    HAVE_AVAHI=0
+fi
+
+AC_SUBST(AVAHI_CFLAGS)
+AC_SUBST(AVAHI_LIBS)
+AC_SUBST(HAVE_AVAHI)
+AM_CONDITIONAL([HAVE_AVAHI], [test "x$HAVE_AVAHI" = x1])
+
 ### LIBOIL ####
 
 PKG_CHECK_MODULES(LIBOIL, [ liboil-0.3 >= 0.3.0 ])




More information about the pulseaudio-commits mailing list