diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-09-10 12:08:30 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-10 12:08:30 +0000 |
| commit | 908194edddde7ca0d691a7ac402784c5fd74fa87 (patch) | |
| tree | 762088f4463d2a974bf5c35056e9b9db09c56921 | |
| parent | 3e751480b2deaa171e319da5f068eb22389a7aa7 (diff) | |
| download | nginx-908194edddde7ca0d691a7ac402784c5fd74fa87.tar.gz nginx-908194edddde7ca0d691a7ac402784c5fd74fa87.tar.bz2 | |
fail if no file aio was found
| -rw-r--r-- | auto/os/features | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/auto/os/features b/auto/os/features index 72ad534c3..7262baa85 100644 --- a/auto/os/features +++ b/auto/os/features @@ -277,6 +277,7 @@ fi if [ $NGX_FILE_AIO = YES ]; then + ngx_feature="kqueue AIO support" ngx_feature_name="NGX_HAVE_FILE_AIO" ngx_feature_run=no @@ -290,27 +291,35 @@ if [ $NGX_FILE_AIO = YES ]; then if [ $ngx_found = yes ]; then CORE_SRCS="$CORE_SRCS $FILE_AIO_SRCS" - fi -fi + elif [ $ngx_found = no ]; then -if [ $NGX_FILE_AIO = YES ]; then - ngx_feature="Linux AIO support" - ngx_feature_name="NGX_HAVE_FILE_AIO" - ngx_feature_run=no - ngx_feature_incs="#include <linux/aio_abi.h> - #include <sys/syscall.h>" - ngx_feature_path= - ngx_feature_libs= - ngx_feature_test="int n = SYS_eventfd; - struct iocb iocb; - iocb.aio_lio_opcode = IOCB_CMD_PREAD; - iocb.aio_flags = IOCB_FLAG_RESFD; - iocb.aio_resfd = -1;" - . auto/feature + ngx_feature="Linux AIO support" + ngx_feature_name="NGX_HAVE_FILE_AIO" + ngx_feature_run=no + ngx_feature_incs="#include <linux/aio_abi.h> + #include <sys/syscall.h>" + ngx_feature_path= + ngx_feature_libs= + ngx_feature_test="int n = SYS_eventfd; + struct iocb iocb; + iocb.aio_lio_opcode = IOCB_CMD_PREAD; + iocb.aio_flags = IOCB_FLAG_RESFD; + iocb.aio_resfd = -1;" + . auto/feature - if [ $ngx_found = yes ]; then - have=NGX_HAVE_EVENTFD . auto/have - CORE_SRCS="$CORE_SRCS $LINUX_AIO_SRCS" + if [ $ngx_found = yes ]; then + have=NGX_HAVE_EVENTFD . auto/have + CORE_SRCS="$CORE_SRCS $LINUX_AIO_SRCS" + + else + cat << END + +$0: no supported file AIO was found +Currently file AIO is supported on FreeBSD 4.3+ and Linux 2.6.22+ only + +END + exit 1 + fi fi fi |
