Received: from eggs.gnu.org ([2001:4830:134:3::10]:55520) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1kSy-0002g5-0u for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:49:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1kSv-0007uA-0V for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:49:55 -0400 Received: from usindpps03.hds.com ([207.126.252.16]:60694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1kSu-0007rk-Ok for qemu-devel@nongnu.org; Tue, 23 Jul 2013 17:49:52 -0400 From: Tomoki Sekiyama Date: Tue, 23 Jul 2013 21:49:43 +0000 Message-ID: In-Reply-To: <20130722205306.16294.66057@loki> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v7 01/10] configure: Support configuring C++ compiler List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Roth , "qemu-devel@nongnu.org" Cc: "libaiqing@huawei.com" , "ghammer@redhat.com" , "stefanha@gmail.com" , "lcapitulino@redhat.com" , "vrozenfe@redhat.com" , "pbonzini@redhat.com" , Seiji Aguchi , Laszlo Ersek , "areis@redhat.com" Hi Michael, Thanks for your review. On 7/22/13 16:53 , "Michael Roth" wrote: >Quoting Tomoki Sekiyama (2013-07-15 11:20:29) >> Add configuration for C++ compiler in configure and Makefiles. >> The C++ compiler is choosed as following: >> - ${CXX}, if it is specified. >> - ${cross_prefix}g++, if ${cross_prefix} is specified. >> - Otherwise, c++ is used. >>=20 >> Currently, usage of C++ language is only for access to Windows VSS >> using COM+ services in qemu-guest-agent for Windows. >>=20 >> Signed-off-by: Tomoki Sekiyama >> Reviewed-by: Laszlo Ersek >> --- >> configure | 13 +++++++++++++ >> rules.mak | 9 ++++++++- >> 2 files changed, 21 insertions(+), 1 deletion(-) >>=20 >> diff --git a/configure b/configure >> index cb0f870..6923b65 100755 >> --- a/configure >> +++ b/configure >> @@ -251,6 +251,8 @@ for opt do >> ;; >> --cc=3D*) CC=3D"$optarg" >> ;; >> + --cxx=3D*) CXX=3D"$optarg" >> + ;; >> --source-path=3D*) source_path=3D"$optarg" >> ;; >> --cpu=3D*) cpu=3D"$optarg" >> @@ -281,6 +283,12 @@ else >> cc=3D"${CC-${cross_prefix}gcc}" >> fi >>=20 >> +if test -z "${CXX}${cross_prefix}"; then >> + cxx=3D"c++" >> +else >> + cxx=3D"${CXX-${cross_prefix}g++}" >> +fi >> + >> ar=3D"${AR-${cross_prefix}ar}" >> as=3D"${AS-${cross_prefix}as}" >> cpp=3D"${CPP-$cc -E}" >> @@ -621,6 +629,8 @@ for opt do >> ;; >> --host-cc=3D*) host_cc=3D"$optarg" >> ;; >> + --cxx=3D*) cxx=3D"$optarg" >> + ;; > >Since we've already determined cxx in the first pass (overriding other >defaults --cxx argument if it's present), I think re-assigning here >is unecessary. > >Otherwise looks good. OK, I will remove the assignment. Thanks, Tomoki Sekiyama