Test for presens of rt and socket libraries

darcs-hash:20051007095938-ac50b-16b91ab68ae069d569dc07fdf50a3dceb0f81cb9.gz
This commit is contained in:
axel 2005-10-07 19:59:38 +10:00
parent bfcb3ecca7
commit b11aa09142

View file

@ -73,7 +73,8 @@ AC_CHECK_FILE([/usr/pkg/include],[AC_SUBST(INCLUDEDIR,[-I/usr/pkg/include])])
AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth] ) AC_CHECK_FUNCS( [wprintf futimes wcwidth wcswidth] )
AC_CHECK_HEADERS([getopt.h termio.h]) AC_CHECK_HEADERS([getopt.h termio.h])
AC_CHECK_LIB(socket, connect)
AC_CHECK_LIB(rt, nanosleep)
# Check if we have ncurses, and use it rather than curses if possible. # Check if we have ncurses, and use it rather than curses if possible.
AC_CHECK_HEADERS([ncurses.h],[AC_SUBST(CURSESLIB,[ncurses]) AC_DEFINE(HAVE_NCURSES_H)],[AC_SUBST(CURSESLIB,[curses])]) AC_CHECK_HEADERS([ncurses.h],[AC_SUBST(CURSESLIB,[ncurses]) AC_DEFINE(HAVE_NCURSES_H)],[AC_SUBST(CURSESLIB,[curses])])