Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbWAKSMA (ORCPT ); Wed, 11 Jan 2006 13:12:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932422AbWAKSL4 (ORCPT ); Wed, 11 Jan 2006 13:11:56 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:23943 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S932420AbWAKSLz (ORCPT ); Wed, 11 Jan 2006 13:11:55 -0500 Date: Wed, 11 Jan 2006 19:11:54 +0100 (MET) From: Jan Engelhardt To: Sam Ravnborg cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] kconfig: factor out ncurses check in a shell script In-Reply-To: <20060111165513.GA18184@mars.ravnborg.org> Message-ID: References: <11368426843316@foobar.com> <20060111165513.GA18184@mars.ravnborg.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 743 Lines: 31 >+ echo "main() {}" | $compiler -lncursesw -xc - 2> /dev/null >+ if [ $? -eq 0 ]; then >+ echo '-lncursesw' >+ exit >+ fi >+ echo "main() {}" | $compiler -lncurses -xc - 2> /dev/null >+ if [ $? -eq 0 ]; then > echo '-lncurses' >+ exit >+ fi >+ echo "main() {}" | $compiler -lcurses -xc - 2> /dev/null >+ if [ $? -eq 0 ]; then >+ echo '-lcurses' >+ exit > fi >+ exit 1 You forget to remove a.out, or whatever the compiler produces. I suggest $compiler -o /dev/null Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/