From owner-freebsd-hackers@FreeBSD.ORG Sun May 25 16:09:20 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D8AD9106566B for ; Sun, 25 May 2008 16:09:20 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id A0C258FC16 for ; Sun, 25 May 2008 16:09:20 +0000 (UTC) (envelope-from jhein@timing.com) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id m4PF6oXF069151; Sun, 25 May 2008 09:06:50 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.2/8.14.2) with ESMTP id m4PF6maf087639; Sun, 25 May 2008 09:06:48 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.2/8.14.2/Submit) id m4PF6l9O087636; Sun, 25 May 2008 09:06:47 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18489.32903.477434.465037@gromit.timing.com> Date: Sun, 25 May 2008 09:06:47 -0600 From: John E Hein To: Stefan Farfeleder In-Reply-To: <20080516141307.GB1032@lizard.fafoe.narf.at> References: <20080309152712.42752293@bhuda.mired.org> <20080516074433.GA1032@lizard.fafoe.narf.at> <20080516101143.3545937c@bhuda.mired.org> <20080516141307.GB1032@lizard.fafoe.narf.at> X-Mailer: VM 7.19 under Emacs 22.1.1 X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean Cc: hackers@freebsd.org, Mike Meyer Subject: Re: Why doesn't autoconf like our /bin/sh? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2008 16:09:20 -0000 Stefan Farfeleder wrote at 16:13 +0200 on May 16, 2008: > On Fri, May 16, 2008 at 10:11:43AM -0400, Mike Meyer wrote: > > On Fri, 16 May 2008 09:44:33 +0200 > > Stefan Farfeleder wrote: > > > > > On Sun, Mar 09, 2008 at 03:27:12PM -0400, Mike Meyer wrote: > > > > I've stumbled on to an obscure problem with autoconf 2.61, and I'm not > > > > sure quite what to do with it. I've already sent mail to the autoconf > > > > folks, but I'd like to understand what's going on. > > > > > > > > The problem is that, on a FreeBSD system with only /bin/sh and the > > > > ports zsh as installed shells, if you have SHELL set to zsh when > > > > invoking the autoconf-generated configure script, the script produces > > > > a broken Makefile. It doesn't generate an error, it just complains > > > > that: > > > > > > Can you please retry? /bin/sh now supports expanding $LINENO which was > > > often the reason for configure not liking it. > > > > Which branch, and how recently? > > HEAD and yesterday. FWIW, it seems bash and sh report line number differently. # grep -n ^ ~/tmp/ln 1:#!/bin/sh 2:echo f line: $LINENO 3:f() 4:{ 5:echo f line: $LINENO 6:} 7: 8:f 9:echo main line: $LINENO 10:f # /bin/sh ~/tmp/ln f line: 2 f line: 3 main line: 9 f line: 3 # bash ~/tmp/ln f line: 2 f line: 5 main line: 9 f line: 5