Allow the user to specify CFLAGS and LIBS for linking with poll, and test for -lpoll if necessary
This commit is contained in:
committed by
Keith Winstein
parent
44ab7360bc
commit
7a4ef054c3
@@ -125,6 +125,12 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Def
|
||||
|
||||
AC_CHECK_LIB([ncurses], [setupterm])
|
||||
|
||||
AC_ARG_VAR([poll_CFLAGS], [C compiler flags for poll])
|
||||
AC_ARG_VAR([poll_LIBS], [linker flags for poll])
|
||||
if test -z "$poll_LIBS"; then
|
||||
AC_CHECK_LIB([poll], [poll], [poll_LIBS="-lpoll"])
|
||||
fi
|
||||
|
||||
AC_CHECK_DECLS([__builtin_bswap64, __builtin_ctz])
|
||||
|
||||
AC_CHECK_DECL([mach_absolute_time],
|
||||
|
||||
Reference in New Issue
Block a user