diff options
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -602,18 +602,21 @@ if sh ./hasgot truncate ftruncate; then echo "#define HAS_TRUNCATE" >> s.h fi +select_include='' +if sh ./hasgot -i sys/types.h -i sys/select.h; then + echo "sys/select.h found." + echo "#define HAS_SYS_SELECT_H" >> s.h + select_include='-i sys/select.h' +fi + has_select=no -if sh ./hasgot select; then +if sh ./hasgot select && \ + sh ./hasgot -i sys/types.h $select_include -t fd_set ; then echo "select() found." echo "#define HAS_SELECT" >> s.h has_select=yes fi -if sh ./hasgot -i sys/types.h -i sys/select.h; then - echo "sys/select.h found." - echo "#define HAS_SYS_SELECT_H" >> s.h -fi - if sh ./hasgot symlink readlink lstat; then echo "symlink() found." echo "#define HAS_SYMLINK" >> s.h |