lkml.org 
[lkml]   [2006]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2006-01-11 19:14    [W:0.932 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site