Revision e0b7a42b configure
b/configure | ||
---|---|---|
1099 | 1099 |
# curses probe |
1100 | 1100 |
|
1101 | 1101 |
if test "$curses" = "yes" ; then |
1102 |
curses=no |
|
1103 |
ncurses=no |
|
1104 | 1102 |
cat > $TMPC << EOF |
1105 | 1103 |
#include <curses.h> |
1106 | 1104 |
#ifdef __OpenBSD__ |
... | ... | |
1109 | 1107 |
int main(void) { resize_term(0, 0); return curses_version(); } |
1110 | 1108 |
EOF |
1111 | 1109 |
if $cc $ARCH_CFLAGS -o $TMPE $TMPC -lncurses > /dev/null 2> /dev/null ; then |
1112 |
curses=yes |
|
1113 |
ncurses=yes |
|
1110 |
curses_libs="-lncurses" |
|
1114 | 1111 |
elif $cc $ARCH_CFLAGS -o $TMPE $TMPC -lcurses > /dev/null 2> /dev/null ; then |
1115 |
curses=yes |
|
1112 |
curses_libs="-lcurses" |
|
1113 |
else |
|
1114 |
curses=no |
|
1116 | 1115 |
fi |
1117 | 1116 |
fi # test "$curses" |
1118 | 1117 |
|
... | ... | |
1654 | 1653 |
if test "$curses" = "yes" ; then |
1655 | 1654 |
echo "#define CONFIG_CURSES 1" >> $config_host_h |
1656 | 1655 |
echo "CONFIG_CURSES=y" >> $config_host_mak |
1657 |
if test "$ncurses" = "yes" ; then |
|
1658 |
echo "CURSES_LIBS=-lncurses" >> $config_host_mak |
|
1659 |
else |
|
1660 |
echo "CURSES_LIBS=-lcurses" >> $config_host_mak |
|
1661 |
fi |
|
1656 |
echo "CURSES_LIBS=$curses_libs" >> $config_host_mak |
|
1662 | 1657 |
fi |
1663 | 1658 |
if test "$atfile" = "yes" ; then |
1664 | 1659 |
echo "#define CONFIG_ATFILE 1" >> $config_host_h |
Also available in: Unified diff