Daniel Stenberg [Sat, 1 Nov 2008 18:35:19 +0000 (18:35 +0000)]
- Carlo Contavalli added support for the glibc "rotate" option, as documented
in man resolv.conf:
causes round robin selection of nameservers from among those listed. This
has the effect of spreading the query load among all listed servers, rather
than having all clients try the first listed server first every time.
You can enable it with ARES_OPT_ROTATE
Yang Tse [Sat, 1 Nov 2008 17:13:10 +0000 (17:13 +0000)]
Adjust WIN32 freeaddrinfo, getaddrinfo and getnameinfo availability
Yang Tse [Sat, 1 Nov 2008 16:52:57 +0000 (16:52 +0000)]
WIN32 availability of freeaddrinfo, getaddrinfo and getnameinfo functions is quite
convoluted, compiler dependant and in some cases even build target dependat.
Yang Tse [Thu, 30 Oct 2008 17:45:47 +0000 (17:45 +0000)]
check for freeaddrinfo() at configuration phase
Yang Tse [Thu, 30 Oct 2008 13:50:15 +0000 (13:50 +0000)]
update aclocal file serial number
Yang Tse [Thu, 30 Oct 2008 12:41:07 +0000 (12:41 +0000)]
remove verification of the freeability of the addrinfo struct pointer members
Yang Tse [Wed, 29 Oct 2008 01:50:56 +0000 (01:50 +0000)]
fix comment
Yang Tse [Wed, 29 Oct 2008 01:45:07 +0000 (01:45 +0000)]
make CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_ADDR
and CHECK_FUNC_GETADDRINFO_UNFREEABLE_AI_CANONNAME
internal to CHECK_FUNC_GETADDRINFO
Yang Tse [Tue, 28 Oct 2008 20:07:40 +0000 (20:07 +0000)]
fix leftover
Yang Tse [Tue, 28 Oct 2008 20:03:22 +0000 (20:03 +0000)]
Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_canonname member ptr.
Yang Tse [Tue, 28 Oct 2008 19:13:25 +0000 (19:13 +0000)]
Initial attempt to detect at configuration time if the getaddrinfo()
function returns an addrinfo with an unfreeable ai_addr member ptr.
Yang Tse [Sat, 25 Oct 2008 04:18:48 +0000 (04:18 +0000)]
icc adjustments:
Select ANSI C89 dialect plus GNU extensions, again.
Yang Tse [Fri, 24 Oct 2008 12:23:24 +0000 (12:23 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Fri, 24 Oct 2008 11:27:09 +0000 (11:27 +0000)]
icc permanent adjustment:
Select precise floating-point model, otherwise doubles are less than 64-bit wide
icc test adjustment:
Select c89 dialect
Yang Tse [Thu, 23 Oct 2008 10:04:06 +0000 (10:04 +0000)]
icc adjustments:
Enable more icc warnings.
Optimization disabling options used only for icc 9.1
Yang Tse [Thu, 23 Oct 2008 00:38:23 +0000 (00:38 +0000)]
#include <stdlib.h> for exit() prototype
Yang Tse [Wed, 22 Oct 2008 13:30:09 +0000 (13:30 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Wed, 22 Oct 2008 11:10:56 +0000 (11:10 +0000)]
remove from configure.ac temporary magic for the icc seg-fault issue
Yang Tse [Tue, 21 Oct 2008 17:54:18 +0000 (17:54 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Tue, 21 Oct 2008 01:58:23 +0000 (01:58 +0000)]
Charles Hardin patch:
- handles the EINPROGRESS for UDP connects
- uses closesocket instead of close on some paths that were noticed
Yang Tse [Mon, 20 Oct 2008 15:56:08 +0000 (15:56 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Sun, 19 Oct 2008 23:50:18 +0000 (23:50 +0000)]
messages initially intended only for debug purposes, now become permanent
since these are extremely useful when compiler rejects a set of options.
Yang Tse [Fri, 17 Oct 2008 19:04:53 +0000 (19:04 +0000)]
fix compiler warning
Yang Tse [Fri, 17 Oct 2008 17:11:11 +0000 (17:11 +0000)]
fix missing double-quotes
Daniel Stenberg [Fri, 17 Oct 2008 11:26:36 +0000 (11:26 +0000)]
Charles Hardin made adig support a regular numerical dotted IP address for the
-s option as well.
Yang Tse [Thu, 16 Oct 2008 01:45:07 +0000 (01:45 +0000)]
some more temporary magic for the icc seg-fault issue
Yang Tse [Wed, 15 Oct 2008 18:10:02 +0000 (18:10 +0000)]
Ensure that shell variable contents which have active meaning
to the shell echo command are not interpreted when trying to
remove extra whitespace from shell variable content.
Yang Tse [Tue, 14 Oct 2008 23:06:39 +0000 (23:06 +0000)]
Adjust Watcom C warnings:
Disable warnings on structure members padding.
Yang Tse [Tue, 14 Oct 2008 18:44:27 +0000 (18:44 +0000)]
With this change Solaris target builds will now be done with _REENTRANT defined.
Yang Tse [Tue, 14 Oct 2008 15:24:02 +0000 (15:24 +0000)]
Adjust Tiny C basic options:
Remove -b from debug-enabled configuration, as Tiny C might have
been built without the memory and bounds checker support.
Yang Tse [Tue, 14 Oct 2008 14:19:34 +0000 (14:19 +0000)]
Adjust GCC warnings:
Better disable following warnings when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers:
-Wmissing-declarations
-Wmissing-prototypes
-Wunused
-Wshadow
Yang Tse [Tue, 14 Oct 2008 04:59:22 +0000 (04:59 +0000)]
fix syntax error
Yang Tse [Tue, 14 Oct 2008 04:09:07 +0000 (04:09 +0000)]
Initial attempt to detect Watcom C compiler
Yang Tse [Mon, 13 Oct 2008 19:32:11 +0000 (19:32 +0000)]
make naming scheme more consistent across whole file
Yang Tse [Mon, 13 Oct 2008 17:06:06 +0000 (17:06 +0000)]
Adjust GCC warnings:
Disable following warnings when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers:
-Wmissing-prototypes
-Wunused
-Wshadow
Yang Tse [Mon, 13 Oct 2008 00:43:30 +0000 (00:43 +0000)]
Adjust GCC --enable-warnings:
Do not enable -pedantic when cross-compiling with a gcc older
than 3.0, to avoid warnings from third party system headers.
Yang Tse [Sun, 12 Oct 2008 22:52:25 +0000 (22:52 +0000)]
adjust SGI MIPSpro C detection
Yang Tse [Sun, 12 Oct 2008 16:57:40 +0000 (16:57 +0000)]
LCC compiler adjustments:
Highest warning level is double -A, next is single -A.
Due to the big number of warnings these trigger on third
party header files it is impratical for us to use any of
them here. If you want them simply define it in CPPFLAGS.
Yang Tse [Sat, 11 Oct 2008 18:04:39 +0000 (18:04 +0000)]
remove extra space
Yang Tse [Sat, 11 Oct 2008 16:59:44 +0000 (16:59 +0000)]
split SGI compiler check. One for MIPS C and another for MIPSpro C
Yang Tse [Sat, 11 Oct 2008 16:19:35 +0000 (16:19 +0000)]
LCC compiler adjustments:
Warning level reduced from double -A to single -A
Yang Tse [Fri, 10 Oct 2008 10:31:16 +0000 (10:31 +0000)]
Initial attempt to detect Tiny C compiler
Yang Tse [Fri, 10 Oct 2008 10:06:25 +0000 (10:06 +0000)]
Initial attempt to detect LCC compiler
Yang Tse [Fri, 10 Oct 2008 09:14:18 +0000 (09:14 +0000)]
1) fix bug in CONVERT_INCLUDE_TO_ISYSTEM
2) Disable SGI remark: controlling expression is constant
Yang Tse [Fri, 10 Oct 2008 05:09:28 +0000 (05:09 +0000)]
simplify SGI C compiler check
Yang Tse [Fri, 10 Oct 2008 02:32:46 +0000 (02:32 +0000)]
HP C adjustments:
Due to the HP-UX socklen_t issue it is insane to use the +w1 warning level.
It generates more than 1100 warnings on socklen_t related statements.
Until the issue is somehow fixed we will just use the +w2 warning level.
Yang Tse [Fri, 10 Oct 2008 00:07:41 +0000 (00:07 +0000)]
Add debug tracing for COMPILER_WORKS_IFELSE
Yang Tse [Thu, 9 Oct 2008 19:55:18 +0000 (19:55 +0000)]
configure will also warn on 'strict compiler warning' rejected options
Yang Tse [Thu, 9 Oct 2008 15:06:20 +0000 (15:06 +0000)]
convert rejected compiler options messages into a warnings
Yang Tse [Thu, 9 Oct 2008 13:11:10 +0000 (13:11 +0000)]
remove extra whitespace from string in SGI C check
Yang Tse [Thu, 9 Oct 2008 03:05:48 +0000 (03:05 +0000)]
oops
Yang Tse [Thu, 9 Oct 2008 03:02:25 +0000 (03:02 +0000)]
Initial attempt to detect SGI C compiler
Yang Tse [Thu, 9 Oct 2008 00:50:50 +0000 (00:50 +0000)]
HP C adjustments:
Disallow run-time dereferencing of null pointers.
Disable some remarks:
#4227: padding struct with n bytes to align member.
#4255: padding size of struct with n bytes to alignment boundary.
Yang Tse [Wed, 8 Oct 2008 19:38:01 +0000 (19:38 +0000)]
improve presentation of accepted/rejected debug/optimizer options
Yang Tse [Wed, 8 Oct 2008 16:12:10 +0000 (16:12 +0000)]
refactoring of COMPILER_BASIC_OPTS
Yang Tse [Wed, 8 Oct 2008 03:50:45 +0000 (03:50 +0000)]
Initial attempt to detect SUN C compiler
Yang Tse [Wed, 8 Oct 2008 02:29:13 +0000 (02:29 +0000)]
Initial attempt to detect HP C compiler
Yang Tse [Tue, 7 Oct 2008 18:44:32 +0000 (18:44 +0000)]
fix compiler warning: 'dot_4' may be used uninitialized in this function
Yang Tse [Tue, 7 Oct 2008 17:37:25 +0000 (17:37 +0000)]
adjust ICC_windows settings
Yang Tse [Tue, 7 Oct 2008 16:53:46 +0000 (16:53 +0000)]
fix VAR_STRIP
Yang Tse [Tue, 7 Oct 2008 13:34:59 +0000 (13:34 +0000)]
Sync up with reality
Yang Tse [Tue, 7 Oct 2008 13:13:34 +0000 (13:13 +0000)]
Initial attempt to support configure's --(dis|en)able-optimize
option to specify dis(activation) of compiler optimizations.
If option is specified, it will be honored independant of the
--(dis|en)able-debug option.
Yang Tse [Thu, 2 Oct 2008 04:27:42 +0000 (04:27 +0000)]
fix comment
Yang Tse [Thu, 2 Oct 2008 03:56:56 +0000 (03:56 +0000)]
Initial attempt to support configure's --(dis|en)able-warnings
option to specify dis(activation) of picky compiler warnings.
If option is specified, it will be honored independant of the
--(dis|en)able-debug option.
If option is not specified, it will follow --(dis|en)able-debug
setting, whose default is disabled if not specified.
Yang Tse [Tue, 30 Sep 2008 17:04:05 +0000 (17:04 +0000)]
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
Yang Tse [Tue, 30 Sep 2008 12:39:54 +0000 (12:39 +0000)]
now compiler warnings are activated for all gcc builds, not only debug ones.
Yang Tse [Tue, 30 Sep 2008 02:59:35 +0000 (02:59 +0000)]
Use CFLAGS for icc linker options instead of LDFLAGS,
otherwise gethostbyname() is not detected.
Yang Tse [Mon, 29 Sep 2008 19:14:52 +0000 (19:14 +0000)]
use ac_cv_compiler and ac_cv_compiler_num to keep compiler ID and version number
Yang Tse [Mon, 29 Sep 2008 16:09:31 +0000 (16:09 +0000)]
Temporary icc adjustment:
Disable floating point optimizations
Yang Tse [Wed, 24 Sep 2008 19:13:01 +0000 (19:13 +0000)]
HAVE_INET_PTON will only be defined when an IPv6 capable working
inet_pton function is available.
Yang Tse [Wed, 24 Sep 2008 16:43:12 +0000 (16:43 +0000)]
HAVE_INET_NTOP will only be defined when an IPv6 capable working
inet_ntop function is available.
Yang Tse [Wed, 24 Sep 2008 12:22:16 +0000 (12:22 +0000)]
ntoa() and inet_ntoa_r() no longer used
Yang Tse [Mon, 22 Sep 2008 18:42:48 +0000 (18:42 +0000)]
icc adjustments for icc 9.0 and prior versions:
Disable remark #279: controlling expression is constant
Remark triggered mostly on va_arg() and FD_ZERO() macros.
Yang Tse [Mon, 22 Sep 2008 00:44:10 +0000 (00:44 +0000)]
attempt to make work the gethostname function
check for winsock build target configurations
Gisle Vanem [Sun, 21 Sep 2008 13:03:07 +0000 (13:03 +0000)]
Added HAVE_NETDB_H, HAVE_ARPA_INET_H, HAVE_STRCASECMP
and HAVE_STRNCASECMP.
Yang Tse [Fri, 19 Sep 2008 15:59:28 +0000 (15:59 +0000)]
icc adjustments:
Disable remark #981: operands are evaluated in unspecified order
Function calls which are triggering this remark, today, do not depend
on the order of evaluation of its arguments.
Disable remark #1469: "cc" clobber ignored
Remark triggered on htons() and ntohs() due to glibc header files.
Yang Tse [Thu, 18 Sep 2008 13:56:56 +0000 (13:56 +0000)]
icc adjustments
Yang Tse [Thu, 18 Sep 2008 02:23:33 +0000 (02:23 +0000)]
fix netdb.h prerequisite inclusion
Yang Tse [Wed, 17 Sep 2008 11:31:37 +0000 (11:31 +0000)]
improve detection of getservbyport_r()
Yang Tse [Wed, 17 Sep 2008 09:37:41 +0000 (09:37 +0000)]
On Linux Intel's icc uses gcc's header files, so
we select ANSI C89 dialect plus GNU extensions.
Yang Tse [Wed, 17 Sep 2008 08:14:00 +0000 (08:14 +0000)]
improve detection of gethostname()
Yang Tse [Wed, 17 Sep 2008 06:59:31 +0000 (06:59 +0000)]
NetWare builds include "nameser.h" from the c-ares subdir
Yang Tse [Wed, 17 Sep 2008 03:25:52 +0000 (03:25 +0000)]
include <strings.h>
Yang Tse [Wed, 17 Sep 2008 01:33:43 +0000 (01:33 +0000)]
Sync up with reality
Yang Tse [Wed, 17 Sep 2008 01:02:57 +0000 (01:02 +0000)]
adjust inclusion of "nameser.h"
Yang Tse [Wed, 17 Sep 2008 00:07:49 +0000 (00:07 +0000)]
reorder some lines in file
Yang Tse [Tue, 16 Sep 2008 18:43:25 +0000 (18:43 +0000)]
code cleanup
Yang Tse [Tue, 16 Sep 2008 18:18:14 +0000 (18:18 +0000)]
NetWare seems to have writev()
Yang Tse [Tue, 16 Sep 2008 16:42:48 +0000 (16:42 +0000)]
rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.
Yang Tse [Mon, 15 Sep 2008 17:31:34 +0000 (17:31 +0000)]
NetWare CLIB target has stricmp() and strnicmp()
Yang Tse [Mon, 15 Sep 2008 17:14:29 +0000 (17:14 +0000)]
include header file only when available
Yang Tse [Mon, 15 Sep 2008 15:28:26 +0000 (15:28 +0000)]
rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
Yang Tse [Mon, 15 Sep 2008 00:31:42 +0000 (00:31 +0000)]
improve detection of:
strcasecmp()
strcmpi()
stricmp()
strncasecmp()
strncmpi()
strnicmp()
Yang Tse [Sat, 13 Sep 2008 01:35:15 +0000 (01:35 +0000)]
*** empty log message ***
Gisle Vanem [Fri, 12 Sep 2008 14:13:36 +0000 (14:13 +0000)]
djgpp does have strdup().
Yang Tse [Fri, 12 Sep 2008 05:08:18 +0000 (05:08 +0000)]
change CRLF into LF line endings
Yang Tse [Thu, 11 Sep 2008 04:02:49 +0000 (04:02 +0000)]
strdup() clone for systems/configurations which lack it
Yang Tse [Thu, 11 Sep 2008 03:46:47 +0000 (03:46 +0000)]
move inclusion of ares_private.h last
Yang Tse [Wed, 10 Sep 2008 17:35:22 +0000 (17:35 +0000)]
icc adjustments
Yang Tse [Tue, 9 Sep 2008 12:19:16 +0000 (12:19 +0000)]
icc adjustments