1 From: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2 Subject: [PATCH] libplayer: Fix handling of cflags in configure.
4 The cflags returned by pkg-config or another config script may consist
5 of several arguments for the compiler. These should not be quoted together
6 into a single argument.
8 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
10 Sent upstream to devel@geexbox.org on July 11, 2012.
12 diff -rup libplayer-2.0.1.orig/configure libplayer-2.0.1/configure
13 --- libplayer-2.0.1.orig/configure 2010-10-03 19:26:11.000000000 +0200
14 +++ libplayer-2.0.1/configure 2012-07-10 23:33:02.783701852 +0200
15 @@ -342,7 +342,7 @@ check_libconfig(){
17 if `which "$config" 1>/dev/null 2>&1`; then
18 cflags=`$config $ccflags`
19 - [ -n "$cflags" ] && check_cflags "$cflags"
20 + [ -n "$cflags" ] && check_cflags $cflags
22 if [ -n "$libs" ]; then
23 temp_extralibs "$libs"
24 @@ -364,7 +364,7 @@ check_libconfig_exists(){
26 if `which "$config" 1>/dev/null 2>&1`; then
27 cflags=`$config $ccflags`
28 - [ -n "$cflags" ] && temp_cflags "$cflags"
29 + [ -n "$cflags" ] && temp_cflags $cflags
31 if [ -n "$libs" ]; then
32 temp_extralibs "$libs"
33 @@ -386,7 +386,7 @@ check_pkgconfig(){
35 if `which pkg-config 1>/dev/null 2>&1`; then
36 cflags=`pkg-config $pkg $ccflags`
37 - [ -n "$cflags" ] && check_cflags "$cflags"
38 + [ -n "$cflags" ] && check_cflags $cflags
39 libs=`pkg-config $pkg $clibs`
40 if [ -n "$libs" ]; then
41 temp_extralibs "$libs"