3 Nov
2005
3 Nov
'05
10:57 a.m.
On Wed, Nov 02, 2005 at 10:12:11PM +0100, Alex Beregszaszi wrote:
- if [ `sysctl -n hw.vectorunit` -eq 1 ]; then - _altivec=yes - elif [ "`sysctl -n hw.optional.altivec 2>/dev/null`" = 1 ]; then + if [ `sysctl -n hw.vectorunit` -eq 1 -o + "`sysctl -n hw.optional.altivec 2>/dev/null`" -eq 1 ]; then _altivec=yes
I'm not really familiar with shell scripting, but -o means fallback or what?
Yes. It's the same as an OR relationship in logic.
Because originally it tried hw.vectorunit first, later hw.optional.altivec as this changing in some MacOSX version.
It still does. The semantics have not changed, just the syntax.
Or we are not going to support old OSX releases?
Dunno if MPlayer compiles/runs on Mac OS X < 10.3. Diego