diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-07 15:38:32 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:43 +1000 |
commit | 0d34e811734f4f154a81100462b263f1300cc03b (patch) | |
tree | e541f4eefda5b174636fd3daf2ba5758c1149b21 /lib/replace/wscript | |
parent | 5d39ac84d1ed4adb6021ecb0fd74f32580981741 (diff) | |
download | samba-0d34e811734f4f154a81100462b263f1300cc03b.tar.gz samba-0d34e811734f4f154a81100462b263f1300cc03b.tar.bz2 samba-0d34e811734f4f154a81100462b263f1300cc03b.zip |
build: more config checks
Diffstat (limited to 'lib/replace/wscript')
-rw-r--r-- | lib/replace/wscript | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/replace/wscript b/lib/replace/wscript index 8990240316..b5a01d6a81 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -117,10 +117,10 @@ def configure(conf): conf.CHECK_FUNCS('strtouq strtoll __strtoll strtoq memmem printf memset memcpy') conf.CHECK_FUNCS('connect gethostbyname if_nametoindex socketpair') conf.CHECK_FUNCS('inet_ntoa inet_aton inet_ntop inet_pton') - conf.CHECK_FUNCS('dirfd getdirentries getdents syslog epoll getaddrinfo') + conf.CHECK_FUNCS('dirfd getdirentries getdents syslog getaddrinfo') conf.CHECK_FUNCS('timegm getifaddrs freeifaddrs mmap setgroups setsid') conf.CHECK_FUNCS('getgrent_r getgrgid_r getgrnam_r getgrouplist getpagesize') - conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r') + conf.CHECK_FUNCS('getpwent_r getpwnam_r getpwuid_r epoll_create') conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl') @@ -140,6 +140,9 @@ def configure(conf): conf.CHECK_SIZEOF('char int "long long" long off_t short size_t ssize_t') conf.CHECK_SIZEOF('void*', define='SIZEOF_VOID_P') + if conf.CONFIG_SET('HAVE_EPOLL_CREATE') and conf.CONFIG_SET('HAVE_SYS_EPOLL_H'): + conf.define('HAVE_EPOLL', 1) + conf.check_cc(fragment=''' #include <stdarg.h> va_list ap1,ap2; |