1 From fd9885fe5fef5826034547ca6be7299863f99769 Mon Sep 17 00:00:00 2001
2 From: Martin Bark <martin@barkynet.com>
3 Date: Fri, 6 May 2016 14:48:49 +0100
4 Subject: [PATCH] auto/lib/libgd/conf: use pkg-config
6 Change to using pkg-config to find the path to libgd and its
9 Signed-off-by: Martin Bark <martin@barkynet.com>
11 auto/lib/libgd/conf | 4 ++--
12 1 file changed, 2 insertions(+), 2 deletions(-)
14 diff --git a/auto/lib/libgd/conf b/auto/lib/libgd/conf
15 index 6e4e91c..1c536a2 100644
16 --- a/auto/lib/libgd/conf
17 +++ b/auto/lib/libgd/conf
21 ngx_feature_incs="#include <gd.h>"
23 - ngx_feature_libs="-lgd"
24 + ngx_feature_path="$(${GDLIB_CONFIG:=gdlib-config} --includedir)"
25 + ngx_feature_libs="$(${GDLIB_CONFIG:=gdlib-config} --libs)"
26 ngx_feature_test="gdImagePtr img = gdImageCreateFromGifPtr(1, NULL);"