Messages in this thread | | | Date | Wed, 11 Jan 2006 19:11:54 +0100 (MET) | From | Jan Engelhardt <> | Subject | Re: [PATCH 01/11] kconfig: factor out ncurses check in a shell script |
| |
>+ 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/
| |