diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -293,6 +293,7 @@ Installation directories: Optional features: --disable-encoding disable encoding functionality [enable] --disable-libguess disable libguess [autodetect] + --enable-terminfo use terminfo database for key codes [autodetect] --enable-termcap use termcap database for key codes [autodetect] --enable-termios use termios database for key codes [autodetect] --disable-iconv disable iconv for encoding conversion [autodetect] @@ -464,6 +465,7 @@ _libguess=auto _joystick=no _lirc=auto _lircc=auto +_terminfo=auto _termcap=auto _termios=auto _shm=auto @@ -668,6 +670,8 @@ for ac_option do --disable-lirc) _lirc=no ;; --enable-lircc) _lircc=yes ;; --disable-lircc) _lircc=no ;; + --enable-terminfo) _terminfo=yes ;; + --disable-terminfo) _terminfo=no ;; --enable-termcap) _termcap=yes ;; --disable-termcap) _termcap=no ;; --enable-termios) _termios=yes ;; @@ -1409,6 +1413,27 @@ header_check sys/videoio.h && sys_videoio_h=yes && echores "$sys_videoio_h" +echocheck "terminfo" +if test "$_terminfo" = auto ; then + _terminfo=no + for _ld_tmp in "-lncurses" "-lncursesw"; do + statement_check term.h 'setupterm(NULL, 1, NULL)' $_ld_tmp && + libs_mplayer="$libs_mplayer $_ld_tmp" && _terminfo=yes && break + done +fi +if test "$_terminfo" = yes ; then + def_terminfo='#define HAVE_TERMINFO 1' + test $_ld_tmp && res_comment="using $_ld_tmp" + + if test "$_termcap" = auto ; then + _termcap=yes # terminfo provides termcap + fi +else + def_terminfo='#undef HAVE_TERMINFO' +fi +echores "$_terminfo" + + echocheck "termcap" if test "$_termcap" = auto ; then _termcap=no @@ -3098,6 +3123,7 @@ $def_posix_select $def_select $def_setmode $def_shm +$def_terminfo $def_termcap $def_termios |