[MPlayer-dev-eng] [PATCH] configure avoid test getting an empty parameter

Reimar Doeffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sun May 13 02:03:30 CEST 2007


Hello,
I was wondering why Solaris sh simply aborted in the middle of
configure.
While I still don't have an explanation besides "Solaris default
toolchain sucks - to the extreme", I have a patch (attached) that fixes
it and is correct anyway since test might be called incorrectly without
it.

Greetings,
Reimar Doeffinger
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 23304)
+++ configure	(working copy)
@@ -1504,7 +1504,7 @@
                            -e s/xmm/sse/ -e s/kni/sse/`
 
   for ext in $pparam ; do
-    eval test \$_$ext = auto 2>/dev/null && eval _$ext=kernel_check
+    eval test \"\$_$ext\" = auto 2>/dev/null && eval _$ext=kernel_check
   done
 
   # SSE implies MMX2, but not all SSE processors report the mmxext CPU flag.


More information about the MPlayer-dev-eng mailing list