Add AC_DEFINE_IF macro
Introduce ncurses/--enable-tty-support