mirror of
https://github.com/curl/curl.git
synced 2025-09-29 15:36:53 +03:00
renamed generated config.h to curl_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h (missing bits)
This commit is contained in:
parent
38b88b5892
commit
6dade671ad
|
@ -566,14 +566,14 @@ else {
|
||||||
mydie "no curlbuild.h created/found";
|
mydie "no curlbuild.h created/found";
|
||||||
}
|
}
|
||||||
|
|
||||||
logit_spaced "display lib/config$confsuffix.h";
|
logit_spaced "display lib/curl_config$confsuffix.h";
|
||||||
open(F, "lib/config$confsuffix.h") or die "lib/config$confsuffix.h: $!";
|
open(F, "lib/curl_config$confsuffix.h") or die "lib/curl_config$confsuffix.h: $!";
|
||||||
while (<F>) {
|
while (<F>) {
|
||||||
print if /^ *#/;
|
print if /^ *#/;
|
||||||
}
|
}
|
||||||
close(F);
|
close(F);
|
||||||
|
|
||||||
if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
|
if (grepfile("define USE_ARES", "lib/curl_config$confsuffix.h")) {
|
||||||
print "\n";
|
print "\n";
|
||||||
logit "setup to build ares";
|
logit "setup to build ares";
|
||||||
|
|
||||||
|
@ -602,8 +602,8 @@ if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
|
||||||
mydie "no ares_build.h created/found";
|
mydie "no ares_build.h created/found";
|
||||||
}
|
}
|
||||||
|
|
||||||
logit_spaced "display ares/config$confsuffix.h";
|
logit_spaced "display ares/ares_config$confsuffix.h";
|
||||||
if(open(F, "ares/config$confsuffix.h")) {
|
if(open(F, "ares/ares_config$confsuffix.h")) {
|
||||||
while (<F>) {
|
while (<F>) {
|
||||||
print if /^ *#/;
|
print if /^ *#/;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user