From 35abc53f0d9a18a0c509092c7222ca123ed01dfb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Remko=20Tron=C3=A7on?= <git@el-tramo.be>
Date: Thu, 22 Apr 2010 22:37:48 +0200
Subject: Check for Avahi support.


diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct
index 1735073..72e989e 100644
--- a/BuildTools/SCons/SConstruct
+++ b/BuildTools/SCons/SConstruct
@@ -256,6 +256,10 @@ if conf.CheckCHeader("idna.h") and conf.CheckLib("idn") :
 else :
 	env["LIBIDN_BUNDLED"] = 1
 
+# Avahi
+if conf.CheckCHeader("avahi-client/client.h") and conf.CheckLib("avahi-client") :
+	env["HAVE_AVAHI"] = True
+	env["AVAHI_FLAGS"] = { "LIBS": ["avahi"] }
 
 conf.Finish()
 
-- 
cgit v0.10.2-6-g49f6