| @@ -1,16 +1,16 @@ | | | @@ -1,16 +1,16 @@ |
1 | #! /bin/sh | | 1 | #! /bin/sh |
2 | | | 2 | |
3 | # $NetBSD: bootstrap,v 1.260 2018/11/15 22:08:30 sevan Exp $ | | 3 | # $NetBSD: bootstrap,v 1.261 2019/02/06 17:38:54 triaxx Exp $ |
4 | # | | 4 | # |
5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> | | 5 | # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> |
6 | # All rights reserved. | | 6 | # All rights reserved. |
7 | # | | 7 | # |
8 | # Redistribution and use in source and binary forms, with or without | | 8 | # Redistribution and use in source and binary forms, with or without |
9 | # modification, are permitted provided that the following conditions | | 9 | # modification, are permitted provided that the following conditions |
10 | # are met: | | 10 | # are met: |
11 | # 1. Redistributions of source code must retain the above copyright | | 11 | # 1. Redistributions of source code must retain the above copyright |
12 | # notice, this list of conditions and the following disclaimer. | | 12 | # notice, this list of conditions and the following disclaimer. |
13 | # 2. Redistributions in binary form must reproduce the above copyright | | 13 | # 2. Redistributions in binary form must reproduce the above copyright |
14 | # notice, this list of conditions and the following disclaimer in the | | 14 | # notice, this list of conditions and the following disclaimer in the |
15 | # documentation and/or other materials provided with the distribution. | | 15 | # documentation and/or other materials provided with the distribution. |
16 | # | | 16 | # |
| @@ -964,28 +964,30 @@ fi | | | @@ -964,28 +964,30 @@ fi |
964 | mkdir_p_early ${wrkdir} | | 964 | mkdir_p_early ${wrkdir} |
965 | if touch ${wrkdir}/.writeable; then | | 965 | if touch ${wrkdir}/.writeable; then |
966 | : | | 966 | : |
967 | else | | 967 | else |
968 | die "\"${wrkdir}\" is not writeable. Try $0 -h" | | 968 | die "\"${wrkdir}\" is not writeable. Try $0 -h" |
969 | fi | | 969 | fi |
970 | echo "Working directory is: ${wrkdir}" | | 970 | echo "Working directory is: ${wrkdir}" |
971 | | | 971 | |
972 | if [ "$compiler" = "" ] && [ x"$check_compiler" = x"yes" ]; then | | 972 | if [ "$compiler" = "" ] && [ x"$check_compiler" = x"yes" ]; then |
973 | get_compiler | | 973 | get_compiler |
974 | # Clang pretends to be GCC, so we have to check it first. | | 974 | # Clang pretends to be GCC, so we have to check it first. |
975 | if [ $compiler_is_clang -gt 0 ]; then | | 975 | if [ $compiler_is_clang -gt 0 ]; then |
976 | compiler="clang" | | 976 | compiler="clang" |
| | | 977 | test -n "$CC" || CC=clang |
977 | elif [ $compiler_is_gnu -gt 0 ]; then | | 978 | elif [ $compiler_is_gnu -gt 0 ]; then |
978 | compiler="gcc" | | 979 | compiler="gcc" |
| | | 980 | test -n "$CC" || CC=gcc |
979 | else | | 981 | else |
980 | case "$opsys" in | | 982 | case "$opsys" in |
981 | IRIX) | | 983 | IRIX) |
982 | if [ `uname -r` -ge 6 ]; then | | 984 | if [ `uname -r` -ge 6 ]; then |
983 | compiler="mipspro" | | 985 | compiler="mipspro" |
984 | else | | 986 | else |
985 | compiler="ido" | | 987 | compiler="ido" |
986 | fi | | 988 | fi |
987 | test -n "$CC" || CC=cc | | 989 | test -n "$CC" || CC=cc |
988 | ;; | | 990 | ;; |
989 | SunOS) compiler="sunpro" | | 991 | SunOS) compiler="sunpro" |
990 | test -n "$CC" || CC=cc | | 992 | test -n "$CC" || CC=cc |
991 | ;; | | 993 | ;; |