Fix for 586150 breaks platforms without -lresolv/-lbind
Submitted by mat..@..et.net
Link to original bug (#672493)
Description
Created attachment 210199 Allow systems without -lresolv/-lbind to pass configure.
The fix for bug 586150 causes platforms without -lresolv and -lbind (they rely solely on -lsocket) to fail configure.
As it appears that the intended behavior is for configure to fail if the resolver is not available, I have patched configure.ac to do just that. A simpler patch would have been simply to make the test non-fatal, but the assumption I worked off of was that it was made fatal on purpose (i.e. a resolver is required).
This should still work properly on OS X, but I am unable to test on that platform at this time. I can confirm that it still works correctly on Linux and at least three BSDs (one of which is ancient and not supported by glib). This test now also works on QNX.
I posted this on IRC with a bit of this supplementary information and got no negative feedback (well, no feedback at all...), so hopefully that means that someone tested it and found no bugs. ;)
Patch 210199, "Allow systems without -lresolv/-lbind to pass configure.":
fix-for-586150.patch
Version: 2.31.x