The ::reads and ::writes were generating warnings
[qt-netbsd.git] / config.tests / mac / xarch.test
blob08322a96cfa2b5230871ee6c435fe621f36bfa2a
1 #!/bin/sh
3 XARCH_SUPPORT=no
4 COMPILER=$1
5 VERBOSE=$2
6 WORKDIR=$3
8 touch xarch.c
10 if "$COMPILER" -c xarch.c -Xarch_i386 -mmmx 2>/dev/null 1>&2; then
11 if "$COMPILER" -c xarch.c -Xarch_i386 -mmmx 2>&1 | grep "unrecognized" >/dev/null ; then
12 true
13 else
14 XARCH_SUPPORT=yes
17 rm -f xarch.c xarch.o
19 # done
20 if [ "$XARCH_SUPPORT" != "yes" ]; then
21 [ "$VERBOSE" = "yes" ] && echo "Xarch is not supported"
22 exit 0
23 else
24 [ "$VERBOSE" = "yes" ] && echo "Xarch support detected"
25 exit 1