avahi: fix build with libintl but without locale support in toolchain
authorPeter Korsgaard <jacmet@sunsite.dk>
Tue, 10 Mar 2009 22:47:21 +0000 (22:47 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 10 Mar 2009 22:47:21 +0000 (22:47 -0000)
package/avahi/avahi.mk

index e4b34a072ec8a072003928b3fa74ba97167faadd..77f4f36019fe031ecdac111b942a6c569b0814ef 100644 (file)
@@ -92,7 +92,7 @@ AVAHI_CONF_OPT = --localstatedir=/var \
                --with-autoipd-user=default \
                --with-autoipd-group=default
 
-AVAHI_DEPENDENCIES = $(if $(BR2_ENABLE_LOCALE),gettext libintl)
+AVAHI_DEPENDENCIES = $(if $(BR2_PACKAGE_GETTEXT),gettext)
 
 ifneq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_AVAHI_AUTOIPD),)
 AVAHI_DEPENDENCIES += libdaemon
@@ -113,7 +113,8 @@ else
 AVAHI_CONF_OPT += --disable-dbus
 endif
 
-ifeq ($(BR2_ENABLE_LOCALE),y)
+ifeq ($(BR2_PACKAGE_LIBINTL),y)
+AVAHI_DEPENDENCIES += libintl
 AVAHI_MAKE_OPT = LIBS=-lintl
 endif