[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS |
Date: |
Mon, 3 Aug 2009 14:46:05 +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 d3f999e..fb16eb0 100644
--- a/Makefile
+++ b/Makefile
@@ -167,6 +167,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 2074daf..03467cd 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 01/81] strip binary is not used anywhere, (continued)
- [Qemu-devel] [PATCH 01/81] strip binary is not used anywhere, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 03/81] Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 02/81] oss variable don't exist anymore, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 04/81] move cpu command line setting to the beggining, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 05/81] move check_linker_flags sooner than starting of printing variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 07/81] move checks for bswap32/bswap_32 sooner than starting of printing variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 06/81] remove not needed rt variable, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 09/81] We want to add options at the beggining, not at the end of variables, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 08/81] move general CFLAGS/LDFLAGS definitions after last $cc run, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 11/81] move EXTRA_CFLAGS/LDFLAGS to the very beginning, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 14/81] Add CURL_CFLAGS,
Juan Quintela <=
- [Qemu-devel] [PATCH 10/81] Remove OS_{CFLAGS, LDFLAGS} and ARCH_{LDFLAGS, CFLAGS}, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 12/81] create compile_object/compile_prog functions, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 13/81] remove unused temporal files, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 15/81] __sparc_*__ is defined through -D__sparc_*__, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 16/81] move mingw32 code after selection of OS, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 18/81] refactor kqemu selection for both mingw32, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 19/81] move sparc_cpu arg parsing to the begining, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 17/81] This variables can't be set here, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 20/81] refactor sparc_cpu code to be in a single place, Juan Quintela, 2009/08/03
- [Qemu-devel] [PATCH 21/81] refactor $cpu selection in various places, Juan Quintela, 2009/08/03