Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXvwP-0007kc-GC for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:15:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXvwK-0007i0-8Y for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:15:12 -0500 Received: from [199.232.76.173] (port=42748 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXvwK-0007hs-5o for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:15:08 -0500 Received: from lo.gmane.org ([80.91.229.12]:37582) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXvwJ-00023S-NW for qemu-devel@nongnu.org; Thu, 21 Jan 2010 07:15:08 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NXvwD-0003CT-Sa for qemu-devel@nongnu.org; Thu, 21 Jan 2010 13:15:01 +0100 Received: from unicorn.mansr.com ([78.86.181.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2010 13:15:01 +0100 Received: from mans by unicorn.mansr.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 21 Jan 2010 13:15:01 +0100 From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Date: Thu, 21 Jan 2010 12:14:40 +0000 Message-ID: References: <20100119101119.GA11358@bee.dooz.org> <20100119114750.GB11613@bee.dooz.org> <20100120113741.GA31679@pig.zood.org> <20100120134940.GA547@pig.zood.org> <20100120165103.GA3303@pig.zood.org> <20100121084406.GA3644@bee.dooz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: news Subject: [Qemu-devel] Re: Stop using "which" in ./configure List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Juan Quintela writes: > Loïc Minier wrote: >> On Wed, Jan 20, 2010, Måns Rullgård wrote: >>> If you make that IFS=${local_ifs:-$(printf ' \t\n')} it should be safe. >>> Likewise if you set the value first. >> >> Ok; see attached patches > > I still think that path_of is a complication that we don't really need. > > "type" command exist in posix, and althought its output is not defined, > if the output of a real command don't show the path that we need (in > this case /usr/bin/install), then type is pretty wrong in my humble > opinion. I think that entire test is wrong, in fact. It is perfectly possible for someone on Solaris to install a working "install" command in /usr/bin. It is better, if possible, to test whatever "install" command is in the path, and complain only if it actually fails. -- Måns Rullgård mans@mansr.com