Lines 892-898
Link Here
|
892 |
# For the terminfo module |
892 |
# For the terminfo module |
893 |
|
893 |
|
894 |
if test "$withcurses" = "yes"; then |
894 |
if test "$withcurses" = "yes"; then |
895 |
for libs in "" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do |
895 |
ncurseslibs="" |
|
|
896 |
if pkg-config --exists ncurses 2>/dev/null; then |
897 |
ncurseslibs=`pkg-config --libs ncurses` |
898 |
fi |
899 |
for libs in "${ncurseslibs}" "-lcurses" "-ltermcap" "-lcurses -ltermcap" "-lncurses"; do |
896 |
if sh ./hasgot $libs tgetent tgetstr tgetnum tputs; then |
900 |
if sh ./hasgot $libs tgetent tgetstr tgetnum tputs; then |
897 |
echo "termcap functions found (with libraries '$libs')" |
901 |
echo "termcap functions found (with libraries '$libs')" |
898 |
echo "#define HAS_TERMCAP" >> s.h |
902 |
echo "#define HAS_TERMCAP" >> s.h |