Yang Tse
898e10bd60
improve detection of getservbyport_r()
16 years ago
Yang Tse
8c3c805269
On Linux Intel's icc uses gcc's header files, so
...
we select ANSI C89 dialect plus GNU extensions.
16 years ago
Yang Tse
fe11cb41ec
improve detection of gethostname()
16 years ago
Yang Tse
1a9795b401
rearrange to allow internal/private use of ares_writev to any system
...
that lacks the writev function.
16 years ago
Yang Tse
b6e5b752fe
improve detection of:
...
strcasecmp()
strcmpi()
stricmp()
strncasecmp()
strncmpi()
strnicmp()
16 years ago
Yang Tse
797372b0f4
strdup() clone for systems/configurations which lack it
16 years ago
Yang Tse
9a36d5718d
icc adjustments
16 years ago
Yang Tse
34cc272d98
icc adjustments
16 years ago
Yang Tse
6e781eb2c4
Select strict ANSI C89 conformance for icc
16 years ago
Yang Tse
c64329b7b1
Get rid of ENABLE_64BIT symbol definition and usage.
...
Improve HAVE_LONGLONG symbol description.
17 years ago
Yang Tse
0a44b62ea1
Fix IBM C and DEC/Compaq C compiler detection
17 years ago
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.
17 years ago
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.
17 years ago
Yang Tse
abf47388f9
Adjust DEC/Compaq C compiler settings.
17 years ago
Yang Tse
10ebec6364
Another AC_TRY_LINK conversion to AC_LINK_IFELSE.
...
Proper definition of HAVE_function if function is found deeper.
17 years ago
Yang Tse
cf37a2bed6
These lines were unintentionally removed in previous commit
17 years ago
Yang Tse
bf7a169de7
Partially undo change that prevented SED, GREP, EGREP and AR from being changed by libtool or autoconf.
17 years ago
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.
17 years ago
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.
17 years ago
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.
17 years ago
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.
17 years ago
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.
17 years ago
Yang Tse
4ef94e065f
Adjust DEC/Compaq C compiler settings
17 years ago
Yang Tse
7b0adfa38d
Adjust DEC/Compaq C compiler settings
17 years ago
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.
17 years ago
Yang Tse
6b84d9ff24
Initial DEC/Compaq C compiler detection and flags
17 years ago
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.
17 years ago
Yang Tse
371f63f73a
fix c-ares version reported in generated libcares.pc file when building
...
from CVS tree.
17 years ago
Yang Tse
13f4c3ea54
egrep and ar are also mandatory
17 years ago
Yang Tse
daa25aa705
The configure process will now halt when sed or grep are unavailable
17 years ago
Yang Tse
3e04944084
IBM C/C++ compiler predefined macro check
17 years ago
Yang Tse
83b7feb146
set earlier in configure process IBM compilers optimization flags
17 years ago
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.
17 years ago
Yang Tse
4ccd0a85b1
fix pkg-config reporting of private libraries needed for static linking
17 years ago
Yang Tse
d3bad80edd
update several macros using AC_TRY_LINK with AC_LINK_IFELSE
17 years ago
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'.
17 years ago
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.
17 years ago
Yang Tse
9fe8db39d1
minor change for wince-cegcc and wince-mingw32ce support
17 years ago
Yang Tse
7b24a70d51
skip checks for Windows specific header files
...
when build target is not a native Windows one
17 years ago
Yang Tse
d57416b7f5
skip libtool C++ preprocessor compiler and linker checks
17 years ago
Yang Tse
e8603c5bee
configure script will now define HAVE_CLOCK_GETTIME_MONOTONIC symbol only
...
when function clock_gettime() is available and the monotonic timer is
also available. Otherwise, in some cases, librt or libposix4 could be used
for linking even when finally not using the clock_gettime() function due
to lack of the monotonic clock.
17 years ago
Yang Tse
22e6a8199f
Add library checking for clock_gettime() support
17 years ago
Yang Tse
0848b4fdaa
Use monotonic time source if available.
17 years ago
Daniel Stenberg
fd5fdecf30
Removed AC_PROG_CC_STDC again. It enforces C99/gnu99 stdandard which is too
...
liberal for me. Also, autoconf 2.61 and earlier doesn't work with icc 10.1
for this macro. (2.62 confirmed to work though). See discusson on the mailing
list starting here:
http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2008-05/0001.shtml
17 years ago
Daniel Stenberg
7829b79768
check for strings.h in configure and use it for the strcasecmp() proto
17 years ago
Daniel Stenberg
3994a0be7f
- Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
...
autoconf 2.57 usage (which is the version you have specified as the minimum
version). It's a minor change but it does clean up some warnings with newer
autoconf (specifically 2.62).
17 years ago
Yang Tse
ad046ba239
Force AIX xlc to fail and not generate object code if the source code has
...
compiled with errors. This behaviour is needed for autoconf macros which
rely on the ability to compile with or without errors, and is safer than
xlc's default of failing only upon severe errors.
17 years ago
Daniel Stenberg
03431e22b2
when building
17 years ago
Daniel Stenberg
dc0e93d89e
Brad Spencer fixed the configure script to assume that there's no
...
/dev/urandom when built cross-compiled as then the script cannot check for
it.
17 years ago
Daniel Stenberg
e13018f437
Remove the check for libdl since that isn't actually used and it causes
...
warnings. Pointed out by Robin Cornelius.
17 years ago