forked from mheily/libkqueue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
29 lines (24 loc) · 919 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_INIT([libkqueue], [2.1.0])
LT_INIT
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
# When building as submodule allow selection of noinst targets
AC_ARG_ENABLE([libkqueue-install],
[AS_HELP_STRING([--disable-libkqueue-install],
[Disable install rules and build noinst libtool library])],,
[enable_libkqueue_install=yes]
)
AM_CONDITIONAL([INSTALL],[test "x$enable_libkqueue_install" != "xno"])
AC_CHECK_HEADER([sys/event.h])
AC_CHECK_DECL([EPOLLRDHUP], [], [], [[#include <sys/epoll.h>]])
AC_CHECK_DECL([ppoll], [], [], [[
#define _GNU_SOURCE
#include <poll.h>
]])
AC_CHECK_HEADERS([sys/epoll.h sys/inotify.h sys/signalfd.h sys/timerfd.h sys/eventfd.h])
AC_CONFIG_FILES([Makefile libkqueue.pc])
AC_OUTPUT