Sha256: 0963a0da53f764eb4d91368060d8ba9f3fd48aba172d99d205724450d88673e1

Contents?: true

Size: 1.97 KB

Versions: 9

Compression:

Stored size: 1.97 KB

Contents

if ! test -f "$ngx_addon_dir/../common/libpassenger_common.a" || \
   ! test -f "$ngx_addon_dir/../common/libboost_oxt.a"; then
    echo "*** The Phusion Passenger support files are not yet compiled. Compiling them for you... ***"
    echo "*** Running 'rake nginx RELEASE=yes' in $ngx_addon_dir... ***"
    old_dir=`pwd`
    if ! cd $ngx_addon_dir; then
        exit 1
    fi
    if ! rake nginx RELEASE=yes; then
        exit 1
    fi
    cd "$old_dir"
    echo "*** Phusion Passenger support files have been successfully compiled. ***"
fi

ngx_feature="Math library"
ngx_feature_name=
ngx_feature_run=no
ngx_feature_incs="#include <math.h>"
ngx_feature_path=
ngx_feature_libs="-lm"
ngx_feature_test="pow(1, 2)"
. auto/feature
if [ $ngx_found = yes ]; then
    CORE_LIBS="$CORE_LIBS -lm"
fi

ngx_addon_name=ngx_http_passenger_module
HTTP_MODULES="$HTTP_MODULES ngx_http_passenger_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
    ${ngx_addon_dir}/ngx_http_passenger_module.c \
    ${ngx_addon_dir}/Configuration.c \
    ${ngx_addon_dir}/ContentHandler.c \
    ${ngx_addon_dir}/StaticContentHandler.c"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS \
    ${ngx_addon_dir}/Configuration.h \
    ${ngx_addon_dir}/ContentHandler.h \
    ${ngx_addon_dir}/StaticContentHandler.h \
    ${ngx_addon_dir}/ngx_http_passenger_module.h \
    ${ngx_addon_dir}/../common/Constants.h"
CORE_LIBS="$CORE_LIBS  \
    ${ngx_addon_dir}/../common/libpassenger_common.a \
    ${ngx_addon_dir}/../common/libboost_oxt.a \
    -lstdc++ -lpthread"

nginx_version=`grep 'NGINX_VERSION ' src/core/nginx.h | awk '{ print $3 }' | sed 's/"//g'`

nginx_major_version=`echo "$nginx_version" | cut -d . -f 1`
have=PASSENGER_NGINX_MAJOR_VERSION value="$nginx_major_version"
. auto/define

nginx_minor_version=`echo "$nginx_version" | cut -d . -f 2`
have=PASSENGER_NGINX_MINOR_VERSION value="$nginx_minor_version"
. auto/define

nginx_micro_version=`echo "$nginx_version" | cut -d . -f 3`
have=PASSENGER_NGINX_MICRO_VERSION value="$nginx_micro_version"
. auto/define

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
passenger-3.0.9 ext/nginx/config
passenger-3.0.8 ext/nginx/config
passenger-3.0.7 ext/nginx/config
passenger-3.0.6 ext/nginx/config
passenger-3.0.5 ext/nginx/config
passenger-3.0.4 ext/nginx/config
passenger-3.0.3 ext/nginx/config
railsware-passenger-3.0.2.1 ext/nginx/config
passenger-3.0.2 ext/nginx/config