try setting the include path
--without-local-dir \
--enable-gui=no \
--enable-cscope \
+ --ncurses-libraries=$PREFIX/lib \
+ --ncurses-includes=$PREFIX/include \
--enable-pythoninterp=yes || { cat src/auto/config.log; exit 1; }
make
