Skip to content

Commit

Permalink
check libresolv
Browse files Browse the repository at this point in the history
  • Loading branch information
clowwindy committed Jul 29, 2014
1 parent 46a470e commit 6c9bee1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ AC_PROG_CC
AC_PROG_INSTALL

# Checks for libraries.
# FIXME: Replace `main' with a function in `-lresolv':
AC_CHECK_LIB([resolv], [main])
AC_CHECK_LIB(resolv, res_query, [],
[AC_CHECK_LIB(resolv, __res_query, [],
[AC_MSG_ERROR([libresolv not found.])])])

# Checks for header files.
AC_HEADER_RESOLV
Expand Down
2 changes: 0 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
bin_PROGRAMS = chinadns

chinadns_SOURCES = chinadns.c

chinadns_LDADD = -lresolv

0 comments on commit 6c9bee1

Please sign in to comment.