Patch #25823 to control library dependency by Bernard Caffarelli

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28067 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-03-12 10:06:06 +00:00
parent c14d95bfe0
commit 1666cb0a26
3 changed files with 7318 additions and 7422 deletions

View file

@ -1,3 +1,8 @@
2009-03-12 Bernard Cafferelli <voyageursp@gmail.com>
* configure.ac: Add --disable-zeroconf option to control whether
NSNetServices (and a dependency on libdns_sd) is enabled.
2009-03-10 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/Additions/GNUstepBase/GSIArray.h:

14719
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -1664,12 +1664,18 @@ AC_SUBST(HAVE_GNUTLS)
# Check for NSNetServices
#--------------------------------------------------------------------
HAVE_MDNS=0
AC_CHECK_HEADERS(dns_sd.h, have_mdns=yes, have_mdns=no)
if test "$have_mdns" = "yes"; then
AC_CHECK_LIB(dns_sd, DNSServiceBrowse, have_mdns=yes, have_mdns=no)
AC_ARG_ENABLE(zeroconf,
[ --disable-zeroconf Disable NSNetServices support],,
enable_zeroconf=yes)
if test $enable_zeroconf = yes; then
AC_CHECK_HEADERS(dns_sd.h, have_mdns=yes, have_mdns=no)
if test "$have_mdns" = "yes"; then
LIBS="-ldns_sd $LIBS"
HAVE_MDNS=1
AC_CHECK_LIB(dns_sd, DNSServiceBrowse, have_mdns=yes, have_mdns=no)
if test "$have_mdns" = "yes"; then
LIBS="-ldns_sd $LIBS"
HAVE_MDNS=1
fi
fi
fi
AC_SUBST(HAVE_MDNS)