# HG changeset patch # User alex # Date 1006188121 0 # Node ID fff5d8446467af03de6f34ffcee4dffedfe2a44d # Parent b3b423a0392110b22ffd081b9c3eda0f3b7fd702 added termios detection support (no termios on qnx) diff -r b3b423a03921 -r fff5d8446467 configure --- a/configure Mon Nov 19 16:37:29 2001 +0000 +++ b/configure Mon Nov 19 16:42:01 2001 +0000 @@ -666,6 +666,7 @@ _lirc=auto _gui=no _termcap=auto +_termios=auto _3dfx=no _tdfxfb=no _largefiles=no @@ -758,6 +759,8 @@ --disable-gui) _gui=no ;; --enable-termcap) _termcap=yes ;; --disable-termcap) _termcap=no ;; + --enable-termios) _termios=yes ;; + --disable-termios) _termios=no ;; --enable-3dfx) _3dfx=yes ;; --disable-3dfx) _3dfx=no ;; --enable-tdfxfb) _tdfxfb=yes ;; @@ -1135,10 +1138,30 @@ echores "$_termcap" +echocheck "termios" +if test "$_termios" = auto ; then + _termios=no + cat > $TMPC < +int main(void) { return 0; } +EOF + cc_check && _termios=yes +else + _termios=no +fi +if test "$_termios" = yes ; then + _def_termios='#define USE_TERMIOS 1' + else + _def_termios='#undef USE_TERMIOS' +fi +echores "$_termios" + + echocheck "shm" if test "$_shm" = auto ; then _shm=no cat > $TMPC << EOF +#include #include int main(void) { shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0); return 0; } EOF @@ -2554,6 +2577,9 @@ /* termcap flag for getch2.c */ $_def_termcap +/* termios flag for getch2.c */ +$_def_termios + /* enable PNG support */ $_def_png