462
463
464
465
466
467
468
469
470
471
472
473
474
475
|
AC_CHECK_FUNC(gmtime_r, [
AC_DEFINE(HAVE_GMTIME_R, 1, [Whether we have gmtime_r])
])
AC_CHECK_FUNC(localtime_r, [
AC_DEFINE(HAVE_LOCALTIME_R, 1, [Whether we have localtime_r])
])
AC_CHECK_HEADER(poll.h, [
AC_DEFINE(HAVE_POLL_H, 1, [Whether we have poll.h])
AC_SUBST(OFSTREAMOBSERVER_POLL_M, "OFStreamObserver_poll.m")
])
AC_CHECK_HEADERS(sys/select.h, [
AC_DEFINE(OF_HAVE_SYS_SELECT_H, 1, [Whether we have sys/select.h])
AC_SUBST(OFSTREAMOBSERVER_SELECT_M, "OFStreamObserver_select.m")
|
>
>
>
>
|
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
|
AC_CHECK_FUNC(gmtime_r, [
AC_DEFINE(HAVE_GMTIME_R, 1, [Whether we have gmtime_r])
])
AC_CHECK_FUNC(localtime_r, [
AC_DEFINE(HAVE_LOCALTIME_R, 1, [Whether we have localtime_r])
])
AC_CHECK_FUNC(kqueue, [
AC_DEFINE(HAVE_KQUEUE, 1, [Whether we have kqueue])
AC_SUBST(OFSTREAMOBSERVER_KQUEUE_M, "OFStreamObserver_kqueue.m")
])
AC_CHECK_HEADER(poll.h, [
AC_DEFINE(HAVE_POLL_H, 1, [Whether we have poll.h])
AC_SUBST(OFSTREAMOBSERVER_POLL_M, "OFStreamObserver_poll.m")
])
AC_CHECK_HEADERS(sys/select.h, [
AC_DEFINE(OF_HAVE_SYS_SELECT_H, 1, [Whether we have sys/select.h])
AC_SUBST(OFSTREAMOBSERVER_SELECT_M, "OFStreamObserver_select.m")
|