[x264-devel] Fix configure file in r671

jonathan.chen at sunplusct.com jonathan.chen at sunplusct.com
Tue Aug 21 17:22:14 CEST 2007


Hi,

In r671, make command is malfunction as the following output messages:
 
$ make
./configure 
./configure: 177: Syntax error: Bad substitution
make: *** [config.mak] Error 2
 
It is probably due  to the regular expression need to be fixed in 
configure (using sh shell default).

Possible solution:

Index: configure
===================================================================
--- configure   (revision 671)
+++ configure   (working copy)
@@ -174,9 +174,9 @@
 host=`./config.sub $host`
 
 # split $host
-host_cpu="${host/-*}"
+host_cpu="${host%%-*}"
 host="${host#*-}"
-host_vendor="${host/-*}"
+host_vendor="${host%%-*}"
 host_os="${host#*-}"
 
 case $host_os in


BR,
Jonathan Chen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20070821/4abe6dc4/attachment.htm 
-------------- next part --------------
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


More information about the x264-devel mailing list