2 # Copyright (C) Igor Sysoev
3 # Copyright (C) Nginx, Inc.
6 ngx_feature="GD library"
9 ngx_feature_incs="#include <gd.h>"
11 ngx_feature_libs="-lgd"
12 ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"
16 if [ $ngx_found = no ]; then
20 ngx_feature="GD library in /usr/local/"
21 ngx_feature_path="/usr/local/include"
23 if [ $NGX_RPATH = YES ]; then
24 ngx_feature_libs="-R/usr/local/lib -L/usr/local/lib -lgd"
26 ngx_feature_libs="-L/usr/local/lib -lgd"
33 if [ $ngx_found = no ]; then
37 ngx_feature="GD library in /usr/pkg/"
38 ngx_feature_path="/usr/pkg/include"
40 if [ $NGX_RPATH = YES ]; then
41 ngx_feature_libs="-R/usr/pkg/lib -L/usr/pkg/lib -lgd"
43 ngx_feature_libs="-L/usr/pkg/lib -lgd"
50 if [ $ngx_found = no ]; then
54 ngx_feature="GD library in /opt/local/"
55 ngx_feature_path="/opt/local/include"
57 if [ $NGX_RPATH = YES ]; then
58 ngx_feature_libs="-R/opt/local/lib -L/opt/local/lib -lgd"
60 ngx_feature_libs="-L/opt/local/lib -lgd"
67 if [ $ngx_found = yes ]; then
69 CORE_INCS="$CORE_INCS $ngx_feature_path"
70 CORE_LIBS="$CORE_LIBS $ngx_feature_libs"
76 $0: error: the HTTP image filter module requires the GD library.
77 You can either do not enable the module or install the libraries.