configure.ac: Test harness libhostname library will not be built for Windows.
runtests.pl: LD_PRELOAD mechanism will not be used to load libhostname
library on operating systems which lack LD_PRELOAD support.
CURL_CHECK_LIB_ARES
AM_CONDITIONAL(USE_EMBEDDED_ARES, test x$embedded_ares = xyes)
-if test "x$enable_shared" = "xyes"; then
+if test "x$ac_cv_native_windows" != "xyes" &&
+ test "x$enable_shared" = "xyes"; then
build_libhostname=yes
else
build_libhostname=no
delete $ENV{$var} if($ENV{$var});
}
else {
- if(($var =~ /^LD_PRELOAD/) &&
- ($debug_build || ($has_shared ne "yes"))) {
- # print "Skipping LD_PRELOAD due to no release shared build\n";
- next;
+ if($var =~ /^LD_PRELOAD/) {
+ if(exe_ext() && (exe_ext() eq '.exe')) {
+ # print "Skipping LD_PRELOAD due to lack of OS support\n";
+ next;
+ }
+ if($debug_build || ($has_shared ne "yes")) {
+ # print "Skipping LD_PRELOAD due to no release shared build\n";
+ next;
+ }
}
$ENV{$var} = "$content";
}