| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | QMKSPEC=$1
|
|---|
| 4 | VERBOSE=$2
|
|---|
| 5 | SRCDIR=$3
|
|---|
| 6 | OUTDIR=$4
|
|---|
| 7 |
|
|---|
| 8 | # debuggery
|
|---|
| 9 | [ "$VERBOSE" = "yes" ] && echo "Determining floating point word-order... ($*)"
|
|---|
| 10 |
|
|---|
| 11 | # build and run a test program
|
|---|
| 12 | test -d "$OUTDIR/config.tests/unix/doubleformat" || mkdir -p "$OUTDIR/config.tests/unix/doubleformat"
|
|---|
| 13 | "$OUTDIR/bin/qmake" -nocache -spec "$QMKSPEC" "$SRCDIR/config.tests/unix/doubleformat/doubleformattest.pro" -o "$OUTDIR/config.tests/unix/doubleformat/Makefile" >/dev/null 2>&1
|
|---|
| 14 | cd "$OUTDIR/config.tests/unix/doubleformat"
|
|---|
| 15 |
|
|---|
| 16 | DOUBLEFORMAT="UNKNOWN"
|
|---|
| 17 | [ "$VERBOSE" = "yes" ] && make || make >/dev/null 2>&1
|
|---|
| 18 |
|
|---|
| 19 | if [ -f ./doubleformattest ]; then
|
|---|
| 20 | : # nop
|
|---|
| 21 | else
|
|---|
| 22 | [ "$VERBOSE" = "yes" ] && echo "Unknown floating point format!"
|
|---|
|
|---|