Commit | Line | Data |
---|---|---|
288a643f FF |
1 | res_mkquery is not needed by the newdns branch? |
2 | ||
3 | diff -u -r ../mtr-66de3ecbab28b054b868a73fbb57f30549d770ac/configure.ac ./configure.ac | |
4 | --- ../mtr-66de3ecbab28b054b868a73fbb57f30549d770ac/configure.ac 2016-05-03 05:01:11.000000000 -0400 | |
5 | +++ ./configure.ac 2016-06-21 10:07:34.430019831 -0400 | |
6 | @@ -86,43 +86,6 @@ | |
7 | # AC_CHECK_LIB(resolv, res_mkquery, , | |
8 | # AC_CHECK_LIB(resolv, __res_mkquery, , AC_MSG_ERROR(No resolver library found))))) | |
9 | ||
10 | -# See if a library is needed for res_mkquery and if so put it in RESOLV_LIBS | |
11 | -RESOLV_LIBS= | |
12 | -AC_SUBST(RESOLV_LIBS) | |
13 | -AC_DEFUN([LIBRESOLVTEST_SRC], [ | |
14 | -AC_LANG_PROGRAM([[ | |
15 | -#include <netinet/in.h> | |
16 | -#include <resolv.h> | |
17 | -]], [[ | |
18 | -int (*res_mkquery_func)(int,...) = (int (*)(int,...))res_mkquery; | |
19 | -(void)(*res_mkquery_func)(0); | |
20 | -]])]) | |
21 | -AC_MSG_CHECKING([whether library required for res_mkquery]) | |
22 | -RESOLV_LIB_NONE= | |
23 | -AC_LINK_IFELSE([LIBRESOLVTEST_SRC], | |
24 | - [AC_MSG_RESULT([no]) | |
25 | - RESOLV_LIB_NONE=yes], | |
26 | - [AC_MSG_RESULT([yes])]) | |
27 | -if test "x$RESOLV_LIB_NONE" = "x"; then | |
28 | - AC_MSG_CHECKING([for res_mkquery in -lbind]) | |
29 | - STASH_LIBS="$LIBS" | |
30 | - LIBS="$STASH_LIBS -lbind" | |
31 | - AC_LINK_IFELSE([LIBRESOLVTEST_SRC], | |
32 | - [AC_MSG_RESULT([yes]) | |
33 | - RESOLV_LIBS=-lbind], | |
34 | - [AC_MSG_RESULT([no])]) | |
35 | - if test "x$RESOLV_LIBS" = "x"; then | |
36 | - AC_MSG_CHECKING([for res_mkquery in -lresolv]) | |
37 | - LIBS="$STASH_LIBS -lresolv" | |
38 | - AC_LINK_IFELSE([LIBRESOLVTEST_SRC], | |
39 | - [AC_MSG_RESULT([yes]) | |
40 | - RESOLV_LIBS=-lresolv], | |
41 | - [AC_MSG_RESULT([no]) | |
42 | - AC_MSG_ERROR(No resolver library found)]) | |
43 | - fi | |
44 | - LIBS="$STASH_LIBS" | |
45 | -fi | |
46 | - | |
47 | AC_CHECK_FUNC(herror, , AC_DEFINE(NO_HERROR, 1, [Define if you don't have the herror() function available.])) | |
48 | AC_CHECK_FUNC(strerror, , AC_DEFINE(NO_STRERROR, 1, [Define if you don't have the strerror() function available.])) | |
49 |