[PATCH 1 of 2] Configure: fix tests with multi-level relative build directory

Piotr Sikora piotr at cloudflare.com
Thu Jun 11 10:43:55 UTC 2015


Hey Ruslan,

> How's this instead?
>
> diff --git a/auto/unix b/auto/unix
> --- a/auto/unix
> +++ b/auto/unix
> @@ -505,14 +505,7 @@ ngx_param=NGX_PTR_SIZE; ngx_value=$ngx_s
>
>  # 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

Works for me :)

Best regards,
Piotr Sikora



More information about the nginx-devel mailing list