Add checks to configure.ac for pselect() and ppoll().

This commit is contained in:
Roland Jax
2014-11-21 19:10:02 +01:00
parent 3ddd829dc7
commit 6b19680b61
3 changed files with 119 additions and 10 deletions
+6 -2
View File
@@ -10,11 +10,15 @@ AC_CHECK_HEADERS([arpa/inet.h \
poll.h \
pthread.h \
sys/ioctl.h \
sys/select.h \
termios.h])
AC_CHECK_LIB([pthread], [pthread_setname_np],
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], ["Define to 1 if pthread has pthread_setname_np"]),
AC_MSG_RESULT([Could not find pthread_setname_np in pthread]))
AC_DEFINE([HAVE_PTHREAD_SETNAME_NP], [1], ["Define to 1 if pthread has pthread_setname_np."]),
AC_MSG_RESULT([Could not find pthread_setname_np in pthread.]))
AC_CHECK_FUNC([pselect], [AC_DEFINE(HAVE_PSELECT, [1], [Define to 1 if pselect() is available.])])
AC_CHECK_FUNC([ppoll], [AC_DEFINE(HAVE_PPOLL, [1], [Define to 1 if ppoll() is available.])])
AC_CONFIG_AUX_DIR([build])
AC_CONFIG_SRCDIR([src/ebusd/ebusd.cpp])