Fix for file injection is broken on centos computes with Cirros images LP #1587960
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / gnuplot / 0002-use-gdlib-config-properly.patch
1 Fix usage of gdlib-config
2
3 gnuplot configure.in script properly takes care of finding
4 gdlib-config using AC_PATH_PROG... but then directly uses gdlib-config
5 instead of going through the GDLIB_CONFIG variable that AC_PATH_PROG
6 has defined. Which means that whenever a gdlib-config binary not in
7 the PATH is being used, it does not use it.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
11 Index: b/configure.in
12 ===================================================================
13 --- a/configure.in
14 +++ b/configure.in
15 @@ -537,9 +537,9 @@
16  if test "$with_gd" != no; then
17    AC_PATH_PROG([GDLIB_CONFIG], [gdlib-config])
18    if test -n "$GDLIB_CONFIG"; then
19 -    libgd_CPPFLAGS=`gdlib-config --cflags`
20 -    libgd_LDFLAGS=`gdlib-config --ldflags`
21 -    libgd_LIBS=`gdlib-config --libs`
22 +    libgd_CPPFLAGS=`$GDLIB_CONFIG --cflags`
23 +    libgd_LDFLAGS=`$GDLIB_CONFIG --ldflags`
24 +    libgd_LIBS=`$GDLIB_CONFIG --libs`
25    elif test -d "$with_gd"; then
26      libgd_CPPFLAGS="-I$with_gd/include"
27      libgd_LDFLAGS="-L$with_gd/lib"