diff options
author | Peter Powell <petpow@saberuk.com> | 2018-07-03 15:52:40 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-07-04 10:10:05 +0100 |
commit | 0864bc3e74a62dd05e9ab10e3e22fef2c6a059ef (patch) | |
tree | a323492fad5754f0271378ab3bed0bd429778b8a /configure | |
parent | 584cbe80152ed3bb8cdbedc41c43d63cd10ca799 (diff) |
Fix the configure checks for eventfd(), <stdint.h>, and strlcpy().
Closes #1503.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -368,8 +368,8 @@ $has_epoll = test_compile('epoll'); print $has_epoll ? "yes\n" : "no\n"; printf "Checking for eventfd support... "; -$config{HAS_EVENTFD} = test_compile('eventfd') ? 'true' : 'false'; -print $config{HAS_EVENTFD} eq 'true' ? "yes\n" : "no\n"; +$config{HAS_EVENTFD} = test_compile('eventfd'); +print $config{HAS_EVENTFD} ? "yes\n" : "no\n"; printf "Checking if Solaris I/O completion ports are available... "; $has_ports = 0; @@ -873,13 +873,13 @@ print FILEHANDLE "#define MAXBUF " . ($config{MAXBUF}+2) . "\n"; if ($config{GCCVER} >= 3) { print FILEHANDLE "#define GCC3\n"; } - if ($config{HAS_STRLCPY} eq "true") { + if ($config{HAS_STRLCPY}) { print FILEHANDLE "#define HAS_STRLCPY\n"; } - if ($config{HAS_STDINT} eq "true") { + if ($config{HAS_STDINT}) { print FILEHANDLE "#define HAS_STDINT\n"; } - if ($config{HAS_EVENTFD} eq 'true') { + if ($config{HAS_EVENTFD}) { print FILEHANDLE "#define HAS_EVENTFD\n"; } if ($config{OSNAME} !~ /DARWIN/i) { |