s3:configure: fix avahi activation
authorBjörn Jacke <bj@sernet.de>
Sun, 18 Oct 2009 15:01:57 +0000 (17:01 +0200)
committerJeremy Allison <jra@samba.org>
Sun, 18 Oct 2009 17:45:38 +0000 (10:45 -0700)
Avahi was correctly found but not activated since e4a26c942.

source3/configure.in

index 05998642c50488de9fd25d0e1a17a19f026bab1d..8781cce99450d34f2a6a5ca7ee9ff84ac246bbb0 100644 (file)
@@ -6147,12 +6147,12 @@ if test x"$enable_avahi" != x"no"; then
     fi
 
     save_LIBS="$LIBS"
-    AC_CHECK_LIB(avahi-client, avahi_client_new)
-    AC_CHECK_LIB(avahi-common, avahi_strerror)
+    AC_CHECK_LIB(avahi-client, avahi_client_new,[have_avahi_client_new=yes])
+    AC_CHECK_LIB(avahi-common, avahi_strerror,[have_avahi_strerror=yes])
     LIBS="$save_LIBS"
 
-    if test x"$ac_cv_lib_ext_avahi_client_avahi_client_new" != x"yes" -o \
-       x"$ac_cv_lib_ext_avahi_common_avahi_strerror" != x"yes" ; then
+    if test x"$have_avahi_client_new" != x"yes" -o \
+       x"$have_avahi_strerror" != x"yes" ; then
        have_avahi_support=no
     fi