1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Die when curlbuild.h is not created or available

This commit is contained in:
Yang Tse 2008-08-11 00:15:20 +00:00
parent c57285d199
commit 3a1d28379a

View File

@ -501,12 +501,18 @@ if ($configurebuild) {
}
}
logit "display include/curl/curlbuild.h";
if(open(F, "include/curl/curlbuild.h")) {
while (<F>) {
print if (($1 =~ /^ *#define/) && ($1 !~ /^ *#define.*__CURL_CURLBUILD_H/));
if(-f "./include/curl/curlbuild.h") {
logit "display include/curl/curlbuild.h";
if(open(F, "<./include/curl/curlbuild.h")) {
while(<F>) {
my $ll = $_;
print $ll if(($ll =~ /^ *# *define/) && ($ll !~ /__CURL_CURLBUILD_H/));
}
close(F);
}
close(F);
}
else {
mydie "no curlbuild.h created/found";
}
logit "display lib/config$confsuffix.h";