]> Pileus Git - ~andy/fetchmail/commitdiff
Check for dn_skipname() when checking res_search() to resolve µClibc compile failures.
authorMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jun 2007 08:51:36 +0000 (08:51 -0000)
committerMatthias Andree <matthias.andree@gmx.de>
Sun, 10 Jun 2007 08:51:36 +0000 (08:51 -0000)
This works by disabling the DNS alias detection feature,
which is however deprecated anyways.

svn path=/branches/BRANCH_6-3/; revision=5106

NEWS
TODO.txt
configure.ac

diff --git a/NEWS b/NEWS
index 7254aea38ec596305a91465a81637f442f61ea80..8ff95f4d77ba15d87060c3f97652f0b9dd485931 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -44,6 +44,15 @@ be removed from a 6.4.0 or newer release.)
 
 fetchmail 6.3.X (not yet released, may become .8.1 or .9):
 
+# FIXES:
+* The configure script will additionally check for 'dn_skipname', to fix build
+  failures with µClibc. The new check still recognizes the resolver libraries on
+  Ubuntu 7.04, openSUSE 10.2, Solaris 8, NetBSD 3.0 and FreeBSD 6.2.
+  Fixes Gentoo bug #134187.
+  NOTE: this is a bit of a hack, since we twist the HAVE_RES_SEARCH result, but
+  res_search() and dn_skipname() are only used together and scheduled for
+  removal in future versions, so this is probably fine.
+
 # TRANSLATION UPDATES:
 * Polish (Jakub Bogusz)
 * Japanese (Takeshi Hamasaki)
index f34970caf233857098b10fc4105493ecea15d7b2..2fe555c417d900eedb0ea9629ce2c4c7a5655932 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -2,8 +2,6 @@ soon:
 - mark fetchmail -vvv in the FAQ
 - find a solution for the "invalid header" discards message problem
   (escape headers and stuff reminder into body)
-- use workaround for µClibc issue (extend configure.ac check)
-  https://bugs.gentoo.org/show_bug.cgi?id=134187
 - https://bugzilla.novell.com/show_bug.cgi?id=247233
   (same as http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=421446)
   might be our fallback of setting sslproto to ""? But what triggers it?
index db381db31a23d1307dafcf0b9d537905ef9adac2..efb6ba15fcf89de8eb3b0c317b197179a90df6be 100644 (file)
@@ -195,10 +195,10 @@ for lib in '' -lresolv; do
 #include <resolv.h>
 #endif
 extern int res_search();
-]], [[res_search(0, 0, 0, 0, 0);]])],
+]], [[res_search(0, 0, 0, 0, 0); dn_skipname(0,0);]])],
     [AC_MSG_RESULT([found])
      AC_DEFINE(HAVE_RES_SEARCH, [1],
-              [Define to 1 if you have the 'res_search' function.])
+              [Define to 1 if you have the 'res_search' and 'dn_skipname' functions.])
      break], [AC_MSG_RESULT([not found])])
      LIBS=$old_LIBS
 done