Commit Graph
100 Commits
Author SHA1 Message Date
Yang Tse afb0533d1d NetWare seems to have writev() 2008-09-16 18:18:14 +00:00
Yang Tse 1a9795b401 rearrange to allow internal/private use of ares_writev to any system
that lacks the writev function.
2008-09-16 16:42:48 +00:00
Yang Tse 25d9912b38 NetWare CLIB target has stricmp() and strnicmp() 2008-09-15 17:31:34 +00:00
Yang Tse f2582d6949 include header file only when available 2008-09-15 17:14:29 +00:00
Yang Tse 746f3e2942 rearrange to allow internal/private use of ares_strcasecmp to any system that
lacks the strcasecmp function.
2008-09-15 15:28:26 +00:00
Yang Tse b6e5b752fe improve detection of:
strcasecmp()
  strcmpi()
  stricmp()
  strncasecmp()
  strncmpi()
  strnicmp()
2008-09-15 00:31:42 +00:00
Yang Tse 0cd952f7c2 *** empty log message *** 2008-09-13 01:35:15 +00:00
Yang Tse 4f4bbc63a6 change CRLF into LF line endings 2008-09-12 05:08:18 +00:00
Yang Tse 797372b0f4 strdup() clone for systems/configurations which lack it 2008-09-11 04:02:49 +00:00
Yang Tse 2cb5cbba34 move inclusion of ares_private.h last 2008-09-11 03:46:47 +00:00
Yang Tse 9a36d5718d icc adjustments 2008-09-10 17:35:22 +00:00
Yang Tse 34cc272d98 icc adjustments 2008-09-09 12:19:16 +00:00
Yang Tse 6e781eb2c4 Select strict ANSI C89 conformance for icc 2008-09-08 16:48:58 +00:00
Yang Tse f33bd94c05 remove unnecessary typecasting of malloc() 2008-09-06 05:29:05 +00:00
Yang Tse 5d2ace75a3 remove unnecessary typecasting of realloc() 2008-09-06 04:28:43 +00:00
Yang Tse b487ac8f70 Don't abort configuration if recvfrom() is not available. 2008-08-27 00:25:03 +00:00
Yang Tse c035f2d3a4 Functionality only possible if recvfrom() is available. 2008-08-26 03:08:27 +00:00
Yang Tse 2b838e85e7 George Neill's fix acountry sample application compilation failure. 2008-08-25 03:44:43 +00:00
Yang Tse 09d10cb5c5 Brad House's validation that DNS response address matches the request address 2008-08-25 03:34:50 +00:00
Yang Tse a5b66d3293 fix the output name 2008-08-21 00:13:48 +00:00
Yang Tse c64329b7b1 Get rid of ENABLE_64BIT symbol definition and usage.
Improve HAVE_LONGLONG symbol description.
2008-08-21 00:06:16 +00:00
Yang Tse 5e9322f450 Export 'ares_process_fd' too. 2008-08-20 23:38:36 +00:00
Yang Tse d23952ffdf Fix: Remove now this SIZEOF_CURL_OFF_T symbol definition.
This should have been done with the initial 64-bit curl_off_t patch.
2008-08-10 00:39:45 +00:00
Yang Tse bad5e6f6ae Improve CURL_CHECK_DEF 2008-08-09 17:26:24 +00:00
Yang Tse 0a44b62ea1 Fix IBM C and DEC/Compaq C compiler detection 2008-08-09 17:01:17 +00:00
Yang Tse bcca6b4a47 Initial support of curlbuild.h and curlrules.h which allows
to have a curl_off_t data type no longer gated to off_t.
2008-08-07 00:29:08 +00:00
Yang Tse 088ac83df4 The minimum autoconf version required for this file is 2.50
Avoid dot notation in aclocal serial file number, use a single number now.
2008-08-05 09:08:43 +00:00
Yang Tse 5c5e64b2f5 Autoconf 2.62 has changed the behaviour of the AC_AIX macro which we use.
Prior versions of autoconf defined _ALL_SOURCE if _AIX was defined. But,
autoconf 2.62 version of AC_AIX defines _ALL_SOURCE along with other four
preprocessor symbols no matter if the system is AIX or not. To keep the
traditional behaviour, as well as an uniform one, across autoconf versions
AC_AIX is replaced with our own internal macro.
2008-08-04 06:48:11 +00:00
Yang Tse abf47388f9 Adjust DEC/Compaq C compiler settings. 2008-08-03 03:14:05 +00:00
Yang Tse 10ebec6364 Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
Proper definition of HAVE_function if function is found deeper.
2008-08-01 19:29:05 +00:00
Yang Tse e09327a51a Sync up with reality 2008-08-01 03:10:54 +00:00
Yang Tse 43ab062fa5 Rename reentrant.m4 to avoid filename clash. 2008-08-01 02:48:00 +00:00
Yang Tse 638b4279e9 Add file version serial number that might be used by 'aclocal' and others.
Keep the '#' character as the first one on the line.
2008-07-30 12:09:35 +00:00
Yang Tse 94c7de4661 Update copyright year. 2008-07-30 08:27:02 +00:00
Yang Tse 836b11511b Sync comment with reality. 2008-07-30 08:21:25 +00:00
Yang Tse f82c7080a8 Reinstate the 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4' way of
including our local m4/reentrant.m4 file. This even takes care of including the
file in the distribution tarball.
2008-07-30 03:10:03 +00:00
Yang Tse 14aede8eac Add quoting for the AC_DEFINE arguments. 2008-07-29 18:23:11 +00:00
Yang Tse 0d2c15a28b Also remove the whitespace. 2008-07-29 18:01:29 +00:00
Yang Tse 64b75e2ec6 Also remove the extra quoting. 2008-07-29 17:45:33 +00:00
Yang Tse 22f8a875a1 Replace some '@%:@' quadigraphs by its actual representation '#'.
This quadigraph used before a C preprocessor 'define' directive could
be fooling M4, when processing this file, and make it think that the
line contains a pure M4 'define' macro.
2008-07-29 16:29:34 +00:00
Yang Tse d20656e947 Tests done using 'aclocal -I m4' in buildconf and 'ACLOCAL_AMFLAGS = -I m4
in top Makefile.am triggered a problem that prevented aclocal from running
successfully on SunOS 5.10 with GNU m4 1.4.5 and GNU Autoconf 2.61

A tarball which reproduces mentioned problem is the one dated July-28-2008
http://cool.haxx.se/curl-daily/curl-7.19.0-20080728.tar.gz

We actually don't need all the bells and whistles that the above mechanism
provides. We only need to include our m4/reentrant.m4 file in acinclude.m4
so here we go with this simpler mechanism.
2008-07-29 02:26:21 +00:00
Yang Tse d79fe5cde0 for debugging purposes show ACLOCAL_FLAGS 2008-07-28 15:13:31 +00:00
Yang Tse cf37a2bed6 These lines were unintentionally removed in previous commit 2008-07-27 23:43:53 +00:00
Yang Tse bf7a169de7 Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf. 2008-07-27 22:25:07 +00:00
Yang Tse 4cbfa7f36d Assert that SED and GREP are set 2008-07-27 21:47:22 +00:00
Yang Tse 9620e56c53 Require autoconf 2.57 or newer 2008-07-27 20:29:04 +00:00
Yang Tse c783e17368 When calling aclocal, user defined ACLOCAL_FLAGS will now precede ours. 2008-07-27 18:10:54 +00:00
Yang Tse bb30f43e48 move ACLOCAL_AMFLAGS after AUTOMAKE_OPTIONS 2008-07-27 16:37:02 +00:00
Yang Tse b94e960ed3 setup.h handles definition of _REENTRANT based on NEED_REENTRANT
definition which might be defined in config.h or config-*.h files
2008-07-27 03:16:37 +00:00
Yang Tse ad84e84e1c Remove explicit inclusion of our m4 files first. It was interesting as a test,
but it breaks aclocal execution on some systems, with the following error:

Can't locate object method "rel2abs" via package "File::Spec" at /usr/local/bin/aclocal line 256.
2008-07-27 02:41:13 +00:00
Yang Tse 736e46d730 Another step towards detecting if _REENTRANT is already defined or actually
needed, and being able to define it if appropriate for further configure tests
as well as for the generated config file.
2008-07-27 01:36:37 +00:00
Yang Tse fd2d11e6b3 Explicitly include our m4 files first. This might minimize the impact
that other package's underquoted m4 function definitions have on ours.
2008-07-26 14:45:16 +00:00
Yang Tse 839f18584d Add a 3 argument check for getprotobyname_r 2008-07-26 01:24:50 +00:00
Yang Tse 28d3b4af6a move reentrant.m4 to the m4 subdirectory to avoid infinite loop inclusion problem 2008-07-25 13:21:14 +00:00
Yang Tse 71416199cf add checks for strtok_r and getprotobyname_r 2008-07-24 18:02:44 +00:00
Yang Tse df6373a9e6 Another step towards detecting if _REENTRANT is already defined or actually
needed, and being able to define it if appropriate for further configure tests
as well as for the generated config file.

Introduced reentrant.m4 intended for our reentrant related autotools/m4 macros.
2008-07-24 15:20:35 +00:00
Yang Tse e4113d5786 reorder argument number detection for getservbyport_r to
actually verify if the test is properly working
2008-07-23 04:20:39 +00:00
Yang Tse d105ed6d59 Make sure that configure process tests are done with the same _REENTRANT
setting as the one actually used when finally building the library.
2008-07-22 19:04:16 +00:00
Yang Tse dfcd806a8b Change recvfrom's sixth argument data type to the 'historically standard' 'int'
data type for systems where this sixth argument is prototyped as a void pointer.

Start of thread: http://curl.haxx.se/mail/lib-2008-07/0153.html
2008-07-21 18:24:32 +00:00
Yang Tse 14cb127954 use prototypes to improve getservbyport_r detection 2008-07-21 14:01:46 +00:00
Yang Tse d7c09173d3 Adjust recvfrom's sixth arg data type definition for NetWare (LIBC) 2008-07-21 03:50:02 +00:00
Yang Tse 1faffd7a7e Use the sreadfrom() wrapper to replace recvfrom() in our code. 2008-07-21 03:06:08 +00:00
Yang Tse 44ae9e4697 when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID
or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate.
2008-07-21 00:36:55 +00:00
Yang Tse 4ef94e065f Adjust DEC/Compaq C compiler settings 2008-07-20 17:18:29 +00:00
Yang Tse abbde56a86 Added "pointer to void" as another data type to check for the sixth argument of
function recvfrom as a result of the info additionally logged when running on a
Solaris system.

The compiler error showed that the prototype being used on Solaris was the one
declared in line 427 of "/usr/include/sys/socket.h" as:

function(int,
         pointer to void,
         unsigned int,
         int,
         pointer to struct sockaddr,
         pointer to void) returning int
2008-07-20 09:46:52 +00:00
Yang Tse 7b0adfa38d Adjust DEC/Compaq C compiler settings 2008-07-19 11:27:45 +00:00
Yang Tse 2aeb0314f5 RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
to the data type pointed by its respective argument and not the pointer type.
2008-07-17 03:07:54 +00:00
Yang Tse 7dd6d7cbe1 Configure process now checks availability of recvfrom() socket function and
finds out its return type and the types of its arguments. Added definitions
for non-configure systems config files, and introduced macro sreadfrom which
will be used on udp sockets as a recvfrom() wrapper.
2008-07-16 19:16:41 +00:00
Yang Tse 6b84d9ff24 Initial DEC/Compaq C compiler detection and flags 2008-07-16 14:17:56 +00:00
Yang Tse b95f5e5bed Improved configure detection of number of arguments for getservbyport_r 2008-07-16 12:26:09 +00:00
Yang Tse e5e2cd5659 Allow --enable-largefile and --disable-largefile configurations.
Configure process no longer needs nor checks size of curl_off_t.
Library will now be built with _REENTRANT symbol defined.
2008-07-15 16:43:39 +00:00
Yang Tse 2265b9281c fix compiler warning 2008-07-10 08:21:48 +00:00
Yang Tse 8ee63e432d since Jun 30 2008 MAXHOSTNAMELEN define is no longer used 2008-07-09 16:38:55 +00:00
Yang Tse 371f63f73a fix c-ares version reported in generated libcares.pc file when building
from CVS tree.
2008-07-07 02:11:21 +00:00
Yang Tse 13f4c3ea54 egrep and ar are also mandatory 2008-07-04 04:03:56 +00:00
Yang Tse daa25aa705 The configure process will now halt when sed or grep are unavailable 2008-07-02 17:42:08 +00:00
Yang Tse cd1f1d080c fallback to gettimeofday when monotonic clock is unavailable at run-time 2008-07-02 03:04:56 +00:00
Yang Tse 3e04944084 IBM C/C++ compiler predefined macro check 2008-07-01 10:29:25 +00:00
Yang Tse 83b7feb146 set earlier in configure process IBM compilers optimization flags 2008-07-01 00:30:46 +00:00
Yang Tse 84e9cedf45 make check message wording more precise 2008-06-30 14:10:27 +00:00
Yang Tse e4ac0f9347 fix C style comment 2008-06-29 11:08:52 +00:00
Yang Tse 08d3bc37aa John Lightsey filed bug report #1999181: "CLOCK_MONOTONIC always fails on
some systems" (http://curl.haxx.se/bug/view.cgi?id=1999181). The problem was
that the configure script did not use the _POSIX_MONOTONIC_CLOCK feature test
macro when checking monotonic clock availability. This is now fixed and the
monotonic clock will not be used unless the feature test macro is defined
with a value greater than zero indicating always supported.
2008-06-29 03:19:21 +00:00
Yang Tse 8dc7f22b9a Modified configuration script to actually verify if the compiler is good
enough at detecting compilation errors or at least it has been properly
configured to do so. Configuration heavily depends on this capability, so
if this compiler sanity check fails the configuration process will now fail.
2008-06-20 18:09:48 +00:00
Yang Tse c6148bcad5 No longer break out of a shell "for" statement from inside
AC_FOO_IFELSE macros, otherwise temp files are not removed.

Identation adjustment.
2008-06-18 04:39:29 +00:00
Yang Tse 4ccd0a85b1 fix pkg-config reporting of private libraries needed for static linking 2008-06-09 01:06:48 +00:00
Yang Tse f953ff981c MSVC does build Windows native targets 2008-06-06 18:44:40 +00:00
Yang Tse 9191dc5c33 Brad House fixed a missing header file inclusion in adig sample program 2008-05-30 15:26:42 +00:00
Yang Tse 940b551d2a fix compiler warning: unreferenced formal parameter 2008-05-26 13:52:25 +00:00
Yang Tse 9db5e3476a MSVC6+ clean-up targets must also remove acountry.exe 2008-05-22 16:10:57 +00:00
Yang Tse b7701a257c sync with reality 2008-05-22 15:31:06 +00:00
Yang Tse 9220e0984a fix: [action-if-found] part of AC_CHECK_TYPE macro cannot be quoted when empty 2008-05-21 18:24:09 +00:00
Yang Tse 41b0e80a3f fix: remove need and definition of HAVE_SOCKLEN_T symbol 2008-05-21 14:04:14 +00:00
Yang Tse e842c9ca3b fix: socklen_t definition comment 2008-05-21 13:57:51 +00:00
Yang Tse d3bad80edd update several macros using AC_TRY_LINK with AC_LINK_IFELSE 2008-05-20 15:55:31 +00:00
Yang Tse 6783b29432 fix underquoting of AC_LANG_PROGRAM arguments 2008-05-20 04:23:31 +00:00
Yang Tse 0129767bf9 if'def out private function ares__tvdiff(), it is not in use yet. 2008-05-20 01:24:19 +00:00
Yang Tse c31375137d update several macros using AC_TRY_LINK with AC_LINK_IFELSE 2008-05-20 01:04:13 +00:00
Yang Tse 822c0e1498 fix socklen_t equivalent detection when cross compiling Windows target 2008-05-19 12:31:12 +00:00
Yang Tse f209547d0f if WINSOCK2 API is used link with 'ws2_32', else
if WINSOCK API is used under WinCE link with 'winsock', else

if WINSOCK API is used link with 'wsock32'.
2008-05-19 02:50:29 +00:00
Yang Tse 0458805686 on winsock systems linking is done using library 'ws2_32' when
winsock2.h is available, and library 'winsock' is used when only
winsock.h is available.
2008-05-18 20:13:13 +00:00