equal
deleted
inserted
replaced
553 $CC -dumpspecs |grep -A 1 'cross_compile'|grep -q 1 |
553 $CC -dumpspecs |grep -A 1 'cross_compile'|grep -q 1 |
554 if (( $? )); then |
554 if (( $? )); then |
555 SUB_PREFIX=/usr/local |
555 SUB_PREFIX=/usr/local |
556 echo "Not cross-compiling. Will install in $SUB_PREFIX"; |
556 echo "Not cross-compiling. Will install in $SUB_PREFIX"; |
557 else |
557 else |
558 SUB_PREFIX=/usr/`$CC -dumpmachine` |
558 SUB_PREFIX=/usr/`$CC -dumpmachine | tr -d '\r\n'` |
559 echo "This is a cross-compiler. Will install in $SUB_PREFIX"; |
559 echo "This is a cross-compiler. Will install in $SUB_PREFIX"; |
560 fi |
560 fi |
561 fi |
561 fi |
562 |
562 |
563 echo "Using prefix: ${SUB_PREFIX}" |
563 echo "Using prefix: ${SUB_PREFIX}" |