Fix for ncurses-cflags.

music@linuxconsole.org music@linuxconsole.org
Mon Apr 18 08:08:00 GMT 2011


Hi,

My ncurses is into a secret place, and only ncurses5-config knows it 
path !

Yann Le Doaré.
-------------- next part --------------
--- ./kconfig/lxdialog/check-lxdialog.sh.orig	2011-03-27 11:44:16.000000000 +0200
+++ ./kconfig/lxdialog/check-lxdialog.sh	2011-03-27 11:44:41.000000000 +0200
@@ -25,6 +25,8 @@
 		echo '-I/usr/include/ncurses -DCURSES_LOC="<ncurses/curses.h>"'
 	elif [ -f /usr/include/ncurses.h ]; then
 		echo '-DCURSES_LOC="<ncurses.h>"'
+	elif [ `which ncurses5-config` ]; then
+		echo -n '-DCURSES_LOC="<ncurses/curses.h>"' && ncurses5-config --cflags
 	else
 		echo '-DCURSES_LOC="<curses.h>"'
 	fi
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list