#BEGIN { $^W = 1; }
use vars qw($version $fixed $infixed $CURLDIR $git $pwd $build $buildlog
- $buildlogname $configurebuild $targetos $confsuffix $binext
+ $buildlogname $configurebuild $targetos $confheader $binext
$libext);
use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
$timestamp);
# version of this script
-$version='2010-10-10';
+$version='2010-08-20';
$fixed=0;
# Determine if we're running from git or a canned copy of curl,
# Do the platform-specific stuff here
$configurebuild = 1;
-$confsuffix = '';
+$confheader = 'curl_config.h';
$binext = '';
$libext = '.la'; # .la since both libcurl and libcares are made with libtool
if ($^O eq 'MSWin32' || $targetos) {
# Set these things only when building ON Windows and for Win32 platform.
# FOR Windows since we might be cross-compiling on another system. Non-
- # Windows builds still default to configure-style builds with no confsuffix.
+ # Windows builds still default to configure-style builds with curl_config.h.
$configurebuild = 0;
- $confsuffix = '-win32';
+ $confheader = 'config-win32.h';
}
$ENV{LC_ALL}="C" if (($ENV{LC_ALL}) && ($ENV{LC_ALL} !~ /^C$/));
mydie "no curlbuild.h created/found";
}
-logit_spaced "display lib/curl_config$confsuffix.h";
-open(F, "lib/curl_config$confsuffix.h") or die "lib/curl_config$confsuffix.h: $!";
+logit_spaced "display lib/$confheader";
+open(F, "lib/$confheader") or die "lib/$confheader: $!";
while (<F>) {
print if /^ *#/;
}
close(F);
-if (grepfile("^#define USE_ARES", "lib/curl_config$confsuffix.h")) {
+if (grepfile("^#define USE_ARES", "lib/$confheader")) {
print "\n";
logit "setup to build ares";
mydie "no ares_build.h created/found";
}
- logit_spaced "display ares/ares_config$confsuffix.h";
- if(open(F, "ares/ares_config$confsuffix.h")) {
+ $confheader =~ s/curl/ares/;
+ logit_spaced "display ares/$confheader";
+ if(open(F, "ares/$confheader")) {
while (<F>) {
print if /^ *#/;
}