[MPlayer-dev-eng] [PATCH] fix configure script for non-bash shells
Götz Waschk
waschk at informatik.uni-rostock.de
Tue May 20 14:23:24 CEST 2003
Am Dienstag, 20. Mai 2003, 14:21:36 Uhr MET, schrieb Arpi:
> > this patch fixes configure for the /bin/sh from Solaris 7 and possibly
> > others.
> > if darwin ; then.
> > - if [[ $(sysctl -n hw.vectorunit) == 1 ]]; then.
> > + if [[ `sysctl -n hw.vectorunit` == 1 ]]; then.
> > _altivec=yes.
> > fi.
> hmm, this 'code' isn't even executed on non-darwin systems, so what's the
> prob? or do solaris pre-compile or syntax-check shellscripts?
That's right, doesn't execute, but the syntax check fails, as /bin/sh
on Solaris doesn't know the $( ) syntax for command substitution:
/users/ra04/waschk/cvs/MPlayer -> ./configure
Detected operating system: SunOS
Detected host architecture: sparc
Checking for gcc version ... 2.95.2, ok
./configure: syntax error at line 872: `(' unexpected
--
What difference does it make to the dead, the orphans and the
homeless, whether the mad destruction is wrought under the name of
totalitarianism or the holy name of liberty or democracy?
Mahatma Gandhi (1869 - 1948), "Non-Violence in Peace and War"
More information about the MPlayer-dev-eng
mailing list