mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:33:31 +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.
This commit is contained in:
parent
100f6b7703
commit
f671d0513c
33 changed files with 68 additions and 68 deletions
|
|
@ -6,7 +6,7 @@ function(SETUP_TEST TEST_NAME) # ARGN are the files in the test
|
|||
|
||||
include_directories(
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "setup_once.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "config.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
|
||||
${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ AUTOMAKE_OPTIONS = foreign nostdinc
|
|||
#
|
||||
# $(top_builddir)/include is for libcurl's generated curl/curlbuild.h file
|
||||
# $(top_srcdir)/include is for libcurl's external include files
|
||||
# $(top_builddir)/lib is for libcurl's generated lib/config.h file
|
||||
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
|
||||
# $(top_srcdir)/lib is for libcurl's lib/setup.h and other "borrowed" files
|
||||
# $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
|
||||
# $(top_srcdir)/ares is for in-tree c-ares's external include files
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
*/
|
||||
|
||||
/* Now include the setup.h file from libcurl's private libdir (the source
|
||||
version, but that might include "config.h" from the build dir so we need
|
||||
both of them in the include path), so that we get good in-depth knowledge
|
||||
about the system we're building this on */
|
||||
version, but that might include "curl_config.h" from the build dir so we
|
||||
need both of them in the include path), so that we get good in-depth
|
||||
knowledge about the system we're building this on */
|
||||
|
||||
#include "setup.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -1614,8 +1614,8 @@ sub checksystem {
|
|||
die "couldn't get curl's version";
|
||||
}
|
||||
|
||||
if(-r "../lib/config.h") {
|
||||
open(CONF, "<../lib/config.h");
|
||||
if(-r "../lib/curl_config.h") {
|
||||
open(CONF, "<../lib/curl_config.h");
|
||||
while(<CONF>) {
|
||||
if($_ =~ /^\#define HAVE_GETRLIMIT/) {
|
||||
$has_getrlimit = 1;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ Makefile.in
|
|||
sws
|
||||
.deps
|
||||
stamp-h*
|
||||
config.h
|
||||
curl_config.h
|
||||
Makefile
|
||||
getpart
|
||||
sockfilt
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ function(SETUP_EXECUTABLE TEST_NAME) # ARGN are the files in the test
|
|||
|
||||
include_directories(
|
||||
${CURL_SOURCE_DIR}/lib # To be able to reach "setup_once.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "config.h"
|
||||
${CURL_BINARY_DIR}/lib # To be able to reach "curl_config.h"
|
||||
${CURL_BINARY_DIR}/include # To be able to reach "curl/curlbuild.h"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ AUTOMAKE_OPTIONS = foreign nostdinc
|
|||
#
|
||||
# $(top_builddir)/include is for libcurl's generated curl/curlbuild.h file
|
||||
# $(top_srcdir)/include is for libcurl's external include files
|
||||
# $(top_builddir)/lib is for libcurl's generated lib/config.h file
|
||||
# $(top_builddir)/lib is for libcurl's generated lib/curl_config.h file
|
||||
# $(top_srcdir)/lib is for libcurl's lib/setup.h and other "borrowed" files
|
||||
# $(top_builddir)/ares is for in-tree c-ares's generated ares_build.h file
|
||||
# $(top_srcdir)/ares is for in-tree c-ares's external include files
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ sub mydie($){
|
|||
|
||||
sub get_host_triplet {
|
||||
my $triplet;
|
||||
my $configfile = "$pwd/$build/lib/config.h";
|
||||
my $configfile = "$pwd/$build/lib/curl_config.h";
|
||||
|
||||
if(-f $configfile && -s $configfile && open(LIBCONFIGH, "<$configfile")) {
|
||||
while(<LIBCONFIGH>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue