From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15262 invoked by alias); 11 May 2009 18:13:36 -0000 Received: (qmail 15247 invoked by uid 22791); 11 May 2009 18:13:35 -0000 X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_38,RCVD_IN_JMF_BL X-Spam-Check-By: sourceware.org Received: from smtp2f.orange.fr (HELO smtp2f.orange.fr) (80.12.242.152) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 May 2009 18:13:25 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2f24.orange.fr (SMTP Server) with ESMTP id 7F48080000B7; Mon, 11 May 2009 20:13:22 +0200 (CEST) Received: from r-lnx-leminkainen.bzh.lan (ARennes-252-1-56-202.w83-195.abo.wanadoo.fr [83.195.247.202]) by mwinf2f24.orange.fr (SMTP Server) with ESMTP id 28AA080000B4; Mon, 11 May 2009 20:13:22 +0200 (CEST) From: "Yann E. MORIN" To: Michael Abbott Subject: Re: crosstool-ng libncurses check in configure Date: Mon, 11 May 2009 18:13:00 -0000 User-Agent: KMail/1.9.9 Cc: crossgcc@sourceware.org, Joachim Nilsson References: <4A06E511.70507@vmlinux.org> <200905111903.03033.yann.morin.1998@anciens.enib.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_+qGCKz1C9C5VW37" Message-Id: <200905112013.18558.yann.morin.1998@anciens.enib.fr> X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00034.txt.bz2 --Boundary-00=_+qGCKz1C9C5VW37 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 1459 Michael, Joachim, All, On Monday 11 May 2009 19:26:54 Michael Abbott wrote: > Not a patch ... but how about: > lib="$( > for l in ncursesw ncurses curses; do > for x in so a dylib; do > echo -n "lib$l.$x " > done > done)" Yeah! Nice. See attached patch. Will be comitted soonish. > ? You probably don't need the -n (then you don't need the "... " either), > but I'm not actually looking at the useage here, just the one line. See The Open Group Base Specifications Issue 7: http://www.opengroup.org/onlinepubs/9699919799/utilities/echo.html OK, seems clear enough: echo has *not* option! Will be using printf instead, which is strongly recommended in the "Application Usage" section. > Actually, if the order matters you need to swap the for lines around, but > again I don't suppose it does. Yes, the order matters (we prefer ncursesw, then ncurses, then curses), but you got it right! :-) Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +0/33 662376056 | Software Designer | \ / CAMPAIGN | ___ | | --==< ^_^ >==-- `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | `------------------------------^-------^------------------^--------------------' --Boundary-00=_+qGCKz1C9C5VW37 Content-Type: text/x-diff; charset="iso 8859-15"; name="configure-POSIX-compliance.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="configure-POSIX-compliance.patch" Content-length: 912 Index: ct-ng.trunk/configure =================================================================== --- ct-ng.trunk/configure (revision 1515) +++ ct-ng.trunk/configure (working copy) @@ -350,7 +350,13 @@ has_or_abort inc="ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h" \ err="'ncurses' headers files were not found" -has_or_abort lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )" \ +ncurses_libs="$( for l in ncursesw ncurses curses; do \ + for x in so a dylib; do \ + printf "lib$l.$x "; \ + done; \ + done \ + )" +has_or_abort lib="${ncurses_libs}" \ err="'ncurses' library was not found" #--------------------------------------------------------------------- --Boundary-00=_+qGCKz1C9C5VW37 Content-Type: text/plain; charset=us-ascii Content-length: 71 -- For unsubscribe information see http://sourceware.org/lists.html#faq --Boundary-00=_+qGCKz1C9C5VW37--