[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/42] Add CURL_CFLAGS
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 14/42] Add CURL_CFLAGS |
Date: |
Thu, 30 Jul 2009 04:07:09 +0200 |
Signed-off-by: Juan Quintela <address@hidden>
---
Makefile | 1 +
configure | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Makefile b/Makefile
index c510ff3..ca569b0 100644
--- a/Makefile
+++ b/Makefile
@@ -160,6 +160,7 @@ LIBS+=$(VDE_LIBS)
obj-$(CONFIG_XEN) += xen_backend.o xen_devconfig.o
obj-$(CONFIG_XEN) += xen_console.o xenfb.o xen_disk.o xen_nic.o
+CPPFLAGS+=$(CURL_CFLAGS)
LIBS+=$(CURL_LIBS)
cocoa.o: cocoa.m
diff --git a/configure b/configure
index 697f767..d43bbc6 100755
--- a/configure
+++ b/configure
@@ -1107,8 +1107,9 @@ if test "$curl" = "yes" ; then
#include <curl/curl.h>
int main(void) { return curl_easy_init(); }
EOF
+ curl_cflags=`curl-config --cflags 2>/dev/null`
curl_libs=`curl-config --libs 2>/dev/null`
- if compile_prog "" "$curl_libs" ; then
+ if compile_prog "$curl_cflags" "$curl_libs" ; then
curl=yes
fi
fi # test "$curl"
@@ -1695,6 +1696,7 @@ if test "$bswap_h" = "yes" ; then
fi
if test "$curl" = "yes" ; then
echo "CONFIG_CURL=y" >> $config_host_mak
+ echo "CURL_CFLAGS=$curl_cflags" >> $config_host_mak
echo "CURL_LIBS=$curl_libs" >> $config_host_mak
fi
if test "$brlapi" = "yes" ; then
--
1.6.2.5
- [Qemu-devel] [PATCH 03/42] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet, (continued)
- [Qemu-devel] [PATCH 03/42] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 05/42] move check_linker_flags sooner than starting of printing variables, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 04/42] move cpu command line setting to the beggining, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 06/42] remove not needed rt variable, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 07/42] move checks for bswap32/bswap_32 sooner than starting of printing variables, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 09/42] We want to add options at the beggining, not at the end of variables, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 08/42] move general CFLAGS/LDFLAGS definitions after last $cc run, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 10/42] Remove OS_{CFLAGS, LDFLAGS} and ARCH_{LDFLAGS, CFLAGS}, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 11/42] move EXTRA_CFLAGS/LDFLAGS to the very beginning, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 13/42] remove unused temporal files, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 14/42] Add CURL_CFLAGS,
Juan Quintela <=
- [Qemu-devel] [PATCH 16/42] move mingw32 code after selection of OS, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 15/42] __sparc_*__ is defined through -D__sparc_*__, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 12/42] create compile_object/compile_prog functions, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 18/42] refactor kqemu selection for both mingw32, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 17/42] This variables can't be set here, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 19/42] move sparc_cpu arg parsing to the begining, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 20/42] refactor sparc_cpu code to be in a single place, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 22/42] reindent Operating System selection configure, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 23/42] We use -lz for all binaries, Juan Quintela, 2009/07/29
- [Qemu-devel] [PATCH 24/42] We want to pass LIB through configuration files now, Juan Quintela, 2009/07/29