]> git.kaiwu.me - nginx.git/commitdiff
Configure: fix tests with multi-level relative build directory.
authorRuslan Ermilov <ru@nginx.com>
Wed, 17 Jun 2015 11:15:27 +0000 (14:15 +0300)
committerRuslan Ermilov <ru@nginx.com>
Wed, 17 Jun 2015 11:15:27 +0000 (14:15 +0300)
Based on a patch by Piotr Sikora.

auto/unix

index 595f905cfd2b3648eb880a0e63ed807dd61fdbae..b7b7a25a5a4601fc45487acb8d334880cca73be6 100755 (executable)
--- a/auto/unix
+++ b/auto/unix
@@ -505,14 +505,7 @@ ngx_param=NGX_PTR_SIZE; ngx_value=$ngx_size; . auto/types/value
 
 # POSIX types
 
-case "$NGX_AUTO_CONFIG_H" in
-    /*)
-        NGX_INCLUDE_AUTO_CONFIG_H="#include \"$NGX_AUTO_CONFIG_H\""
-    ;;
-    *)
-        NGX_INCLUDE_AUTO_CONFIG_H="#include \"../$NGX_AUTO_CONFIG_H\""
-    ;;
-esac
+NGX_INCLUDE_AUTO_CONFIG_H="#include \"ngx_auto_config.h\""
 
 ngx_type="uint64_t"; ngx_types="u_int64_t"; . auto/types/typedef