Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K77Ou-0000ur-H9 for qemu-devel@nongnu.org; Fri, 13 Jun 2008 07:25:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K77Ot-0000uc-2d for qemu-devel@nongnu.org; Fri, 13 Jun 2008 07:25:00 -0400 Received: from [199.232.76.173] (port=37731 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K77Ot-0000uV-01 for qemu-devel@nongnu.org; Fri, 13 Jun 2008 07:24:59 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:31636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K77Os-0006TR-V7 for qemu-devel@nongnu.org; Fri, 13 Jun 2008 07:24:59 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m5DBOu6i010686 for ; Fri, 13 Jun 2008 04:24:56 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1K77Ok-0006Eb-CT for qemu-devel@nongnu.org; Fri, 13 Jun 2008 12:24:50 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18514.22786.380135.669836@mariner.uk.xensource.com> Date: Fri, 13 Jun 2008 12:24:50 +0100 Subject: Re: [Qemu-devel] [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT In-Reply-To: <48516D87.4030407@codemonkey.ws> References: <18513.23522.456324.983289@mariner.uk.xensource.com> <48516D87.4030407@codemonkey.ws> From: Ian Jackson Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori writes ("Re: [Qemu-devel] [PATCH] Do not redefine DEFAULT_NETWORK_{, DOWN_}SCRIPT"): > This is a good idea, but I think it should be something that is > specified in ./configure. In the attached patch, you can specify this as an argument to ./configure, --network-scripts=ifup,ifdown. You need my previous patch too to avoid redefinition. Signed-off-by: Ian Jackson --- configure | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/configure b/configure index c1ab850..0b9cbb2 100755 --- a/configure +++ b/configure @@ -331,6 +331,10 @@ for opt do ;; --disable-curses) curses="no" ;; + --network-scripts=*) network_scripts="$optarg" + ;; + --network-script-ifup=*) network_script_ifup="$optarg" + ;; *) echo "ERROR: unknown option $opt"; show_help="yes" ;; esac @@ -430,6 +434,7 @@ echo " --enable-linux-user enable all linux usermode emulation targets" echo " --disable-linux-user disable all linux usermode emulation targets" echo " --enable-darwin-user enable all darwin usermode emulation targets" echo " --disable-darwin-user disable all darwin usermode emulation targets" +echo " --network-scripts=IFUP,IFDOWN use IFUP, IFDOWN for networking setup" echo " --fmod-lib path to FMOD library" echo " --fmod-inc path to FMOD includes" echo " --enable-uname-release=R Return R for uname -r in usermode emulation" @@ -1100,6 +1105,15 @@ if [ "$bsd" = "yes" ] ; then echo "#define _BSD 1" >> $config_h fi +if [ "x$network_scripts" != x ]; then + cat >>$config_h <>$config_h "/* DEFAULT_NETWORK_[DOWN_]SCRIPT not set */" +fi + echo "#define CONFIG_UNAME_RELEASE \"$uname_release\"" >> $config_h tools= -- 1.4.4.4