[tor-commits] [torsocks/master] Fix build on systems that export res_query a strange way
hoganrobert at torproject.org
hoganrobert at torproject.org
Tue Feb 22 20:30:18 UTC 2011
commit 638e9bed2ce080ac081cc0a68778720ecd767a1b
Author: Robert Hogan <robert at roberthogan.net>
Date: Tue Feb 22 20:29:16 2011 +0000
Fix build on systems that export res_query a strange way
Reported by starslights.
---
configure.in | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index 69d2efb..113b09b 100644
--- a/configure.in
+++ b/configure.in
@@ -519,7 +519,9 @@ AC_SUBST(SPECIALLIBS)
LIBS=${SIMPLELIBS}
AC_SEARCH_LIBS(dlopen, [dl])
-AC_SEARCH_LIBS(res_query, [resolv])
+# Required to compile on machines that export res_query with a double underscore.
+# Sourced from gnupg configure via cvsnt.
+AC_SEARCH_LIBS(res_query,resolv bind,,AC_SEARCH_LIBS(__res_query,resolv bind))
TESTLDFLAGS="$LDFLAGS"
More information about the tor-commits
mailing list