]>
Commit | Line | Data |
---|---|---|
f7deaa1a | 1 | dnl |
75bd9771 | 2 | dnl "$Id: cups-dnssd.m4 7585 2008-05-16 23:13:47Z mike $" |
f7deaa1a | 3 | dnl |
4 | dnl DNS Service Discovery (aka Bonjour) stuff for the Common UNIX Printing System (CUPS). | |
5 | dnl | |
6 | dnl http://www.dns-sd.org | |
7 | dnl http://www.multicastdns.org/ | |
8 | dnl http://developer.apple.com/networking/bonjour/ | |
9 | dnl | |
5bd77a73 | 10 | dnl Copyright 2007-2008 by Apple Inc. |
f7deaa1a | 11 | dnl |
bc44d920 | 12 | dnl These coded instructions, statements, and computer programs are the |
13 | dnl property of Apple Inc. and are protected by Federal copyright | |
14 | dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
15 | dnl which should have been included with this file. If this file is | |
16 | dnl file is missing or damaged, see the license at "http://www.cups.org/". | |
f7deaa1a | 17 | dnl |
18 | ||
09a101d6 | 19 | AC_ARG_ENABLE(dnssd, [ --enable-dnssd turn on DNS Service Discovery support, default=yes]) |
20 | AC_ARG_WITH(dnssd-libs, [ --with-dnssd-libs set directory for DNS Service Discovery library], | |
f7deaa1a | 21 | LDFLAGS="-L$withval $LDFLAGS" |
22 | DSOFLAGS="-L$withval $DSOFLAGS",) | |
09a101d6 | 23 | AC_ARG_WITH(dnssd-includes, [ --with-dnssd-includes set directory for DNS Service Discovery includes], |
f7deaa1a | 24 | CFLAGS="-I$withval $CFLAGS" |
f7deaa1a | 25 | CPPFLAGS="-I$withval $CPPFLAGS",) |
26 | ||
27 | DNSSDLIBS="" | |
7a14d768 | 28 | MDNS="" |
f7deaa1a | 29 | |
30 | if test x$enable_dnssd != xno; then | |
31 | AC_CHECK_HEADER(dns_sd.h, [ | |
f7deaa1a | 32 | case "$uname" in |
33 | Darwin*) | |
34 | # Darwin and MacOS X... | |
35 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
cc0d019f | 36 | AC_DEFINE(HAVE_DNSSD) |
f7deaa1a | 37 | AC_DEFINE(HAVE_COREFOUNDATION) |
38 | AC_DEFINE(HAVE_SYSTEMCONFIGURATION) | |
7a14d768 | 39 | MDNS="mdns" |
f7deaa1a | 40 | ;; |
41 | *) | |
42 | # All others... | |
5eb9da71 | 43 | AC_CHECK_LIB(dns_sd,TXTRecordGetValuePtr, |
cc0d019f MS |
44 | AC_DEFINE(HAVE_DNSSD) |
45 | DNSSDLIBS="-ldns_sd") | |
f7deaa1a | 46 | ;; |
47 | esac | |
48 | ]) | |
49 | fi | |
50 | ||
51 | AC_SUBST(DNSSDLIBS) | |
7a14d768 | 52 | AC_SUBST(MDNS) |
f7deaa1a | 53 | |
54 | dnl | |
75bd9771 | 55 | dnl End of "$Id: cups-dnssd.m4 7585 2008-05-16 23:13:47Z mike $". |
f7deaa1a | 56 | dnl |