[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#3626) res_query and Mac OS X



Full_Name: Finlay Dobbie
Version: 2.2.24
OS: Mac OS X v10.3
URL: ftp://ftp.openldap.org/incoming/finlay-configure.in.patch
Submission from: (NULL) (212.159.112.151)


At the indicated URL is a patch which resolves the issue referred to in the FAQ
at <http://www.openldap.org/faq/data/cache/1191.html>.

Mac OS X v10.3 (Darwin 8) and later ship with both the BIND 8 and BIND 9 APIs.
The BIND 8 API is in libSystem, and thus is picked up by autoconf's check for
res_query. However, resolv.h defaults to the BIND 9 API, which is provided by
libresolv. The workaround is either to #define BIND_8_COMPAT or add -lresolv to
the LDFLAGS.

The attached patch uses AC_TRY_LINK to attempt to link a small program which
attempts to call res_query, and if it fails, tries again with -lresolv.