diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-01-08 14:03:11 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-01-08 14:07:54 -0500 |
commit | 448621e0261712984c784e6b10ba940891060a3a (patch) | |
tree | 0dbb9a85f8cb20ef8521ff8c679a006e14383c34 /configure.ac | |
parent | f95ca5ef3b2890abfac73e7a0d59695442b1e37a (diff) | |
download | lighttpd-git-448621e0261712984c784e6b10ba940891060a3a.tar.gz |
[build] collect Sun-specific headers and funcs
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 31e92d9c..dec28535 100644 --- a/configure.ac +++ b/configure.ac @@ -99,15 +99,12 @@ AC_CHECK_HEADERS([\ inttypes.h \ malloc.h \ poll.h \ - port.h \ pwd.h \ stdlib.h \ stdint.h \ strings.h \ - sys/devpoll.h \ sys/epoll.h \ sys/event.h \ - sys/filio.h \ sys/inotify.h \ sys/loadavg.h \ sys/mman.h \ @@ -1451,7 +1448,6 @@ AC_CHECK_FUNCS([\ mmap \ pipe2 \ poll \ - port_create \ pread \ preadv \ pwrite \ @@ -1470,8 +1466,16 @@ AC_CHECK_FUNCS([\ ]) AC_CHECK_HEADERS([sys/random.h], [AC_CHECK_FUNCS([getentropy])]) AC_CHECK_HEADERS([linux/random.h], [AC_CHECK_FUNCS([getrandom])]) + case "$host_os" in -*sunos*|*solaris* ) AC_CHECK_HEADERS([priv.h], [AC_CHECK_FUNCS([setpflags])]) ;; +*sunos*|*solaris* ) + AC_CHECK_HEADERS([priv.h], [AC_CHECK_FUNCS([setpflags])]) + AC_CHECK_HEADERS([port.h], [AC_CHECK_FUNCS([port_create])]) + AC_CHECK_HEADERS([\ + sys/devpoll.h \ + sys/filio.h \ + ]) + ;; * ) ;; esac |