This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crosstool-ng libncurses check in configure


On Mon, 11 May 2009, Yann E. MORIN wrote:
> > 	lib="$( echo lib{ncursesw,ncurses,curses}.{so,a,dylib} )"
> No. ./configure *shall* be a POSIX compliant script. The real solution is
> to fix ./configure to use POSIX-only syntax. I can do that, but I would
> appreciate a patch ;-)

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)"

?  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.

Actually, if the order matters you need to swap the for lines around, but 
again I don't suppose it does.

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]