]> git.sesse.net Git - vlc/commitdiff
configure: extract top_srcdir from Makefile at external of quotes
authorKO Myung-Hun <komh@chollian.net>
Wed, 30 Jul 2014 03:28:39 +0000 (12:28 +0900)
committerRafaël Carré <funman@videolan.org>
Tue, 12 Aug 2014 08:01:47 +0000 (10:01 +0200)
This fixes the following error on pdksh v5.2.14.

-----
sed: -e expression #1, char 1: unknown command: `"'
-----

Signed-off-by: Rafaël Carré <funman@videolan.org>
configure.ac

index 4852f2c92e1802b3d5db3fabdfe258df7ede7cee..3699c617a44ca59b9aa0fbdb22fe2c07dc2ac3dc 100644 (file)
@@ -4273,11 +4273,12 @@ if test -n $SHELL; then
   SHELL=${CONFIG_SHELL-/bin/sh}
 fi
 rm -f compile
+compile_top_srcdir=`sed -ne "s/^top_srcdir *= *//p" < Makefile`
 echo "#! $SHELL
 rm -f .error\$\$
 ERROR=0
 export PATH=\"$PATH\" LANG=C
-($MAKE V=1 \$@ 2>&1 || touch .error\$\$)| `sed -ne \"s/^top_srcdir *= *//p\" < Makefile`/extras/buildsystem/make.pl
+($MAKE V=1 \$@ 2>&1 || touch .error\$\$)| $compile_top_srcdir/extras/buildsystem/make.pl
 test -f .error\$\$ && ERROR=1
 rm -f .error\$\$
 exit \$ERROR" >compile