- (dtucker) [configure.ac] Bug #867: Additional tests for res_query in
libresolv, fixes problems detecting it on some platforms (eg Linux/x86-64). From Kurt Roeckx via Debian, ok mouring@
This commit is contained in:
parent
c0796d7676
commit
8e968a596a
|
@ -1,4 +1,9 @@
|
||||||
20050502
|
20040513
|
||||||
|
- (dtucker) [configure.ac] Bug #867: Additional tests for res_query in
|
||||||
|
libresolv, fixes problems detecting it on some platforms
|
||||||
|
(eg Linux/x86-64). From Kurt Roeckx via Debian, ok mouring@
|
||||||
|
|
||||||
|
20040502
|
||||||
- (dtucker) OpenBSD CVS Sync
|
- (dtucker) OpenBSD CVS Sync
|
||||||
- djm@cvs.openbsd.org 2004/04/22 11:56:57
|
- djm@cvs.openbsd.org 2004/04/22 11:56:57
|
||||||
[moduli.c]
|
[moduli.c]
|
||||||
|
@ -1073,4 +1078,4 @@
|
||||||
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
|
||||||
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.3341 2004/05/02 23:19:03 dtucker Exp $
|
$Id: ChangeLog,v 1.3342 2004/05/13 01:56:16 dtucker Exp $
|
||||||
|
|
21
configure.ac
21
configure.ac
|
@ -1,4 +1,4 @@
|
||||||
# $Id: configure.ac,v 1.216 2004/04/23 08:53:10 dtucker Exp $
|
# $Id: configure.ac,v 1.217 2004/05/13 01:56:17 dtucker Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 1999-2004 Damien Miller
|
# Copyright (c) 1999-2004 Damien Miller
|
||||||
#
|
#
|
||||||
|
@ -2156,6 +2156,25 @@ AC_SEARCH_LIBS(getrrsetbyname, resolv,
|
||||||
# Needed by our getrrsetbyname()
|
# Needed by our getrrsetbyname()
|
||||||
AC_SEARCH_LIBS(res_query, resolv)
|
AC_SEARCH_LIBS(res_query, resolv)
|
||||||
AC_SEARCH_LIBS(dn_expand, resolv)
|
AC_SEARCH_LIBS(dn_expand, resolv)
|
||||||
|
AC_MSG_CHECKING(if res_query will link)
|
||||||
|
AC_TRY_LINK_FUNC(res_query, AC_MSG_RESULT(yes),
|
||||||
|
[AC_MSG_RESULT(no)
|
||||||
|
saved_LIBS="$LIBS"
|
||||||
|
LIBS="$LIBS -lresolv"
|
||||||
|
AC_MSG_CHECKING(for res_query in -lresolv)
|
||||||
|
AC_LINK_IFELSE([
|
||||||
|
#include <resolv.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
res_query (0, 0, 0, 0, 0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[LIBS="$LIBS -lresolv"
|
||||||
|
AC_MSG_RESULT(yes)],
|
||||||
|
[LIBS="$saved_LIBS"
|
||||||
|
AC_MSG_RESULT(no)])
|
||||||
|
])
|
||||||
AC_CHECK_FUNCS(_getshort _getlong)
|
AC_CHECK_FUNCS(_getshort _getlong)
|
||||||
AC_CHECK_MEMBER(HEADER.ad,
|
AC_CHECK_MEMBER(HEADER.ad,
|
||||||
[AC_DEFINE(HAVE_HEADER_AD)],,
|
[AC_DEFINE(HAVE_HEADER_AD)],,
|
||||||
|
|
Loading…
Reference in New Issue