Revision 04369ff2 configure
b/configure | ||
---|---|---|
11 | 11 |
TMPDIR1="/tmp" |
12 | 12 |
fi |
13 | 13 |
|
14 |
TMPC="${TMPDIR1}/qemacs-conf-${RANDOM}-$$-${RANDOM}.c"
|
|
15 |
TMPO="${TMPDIR1}/qemacs-conf-${RANDOM}-$$-${RANDOM}.o"
|
|
16 |
TMPE="${TMPDIR1}/qemacs-conf-${RANDOM}-$$-${RANDOM}"
|
|
17 |
TMPS="${TMPDIR1}/qemacs-conf-${RANDOM}-$$-${RANDOM}.S"
|
|
18 |
TMPH="${TMPDIR1}/qemacs-conf-${RANDOM}-$$-${RANDOM}.h"
|
|
14 |
TMPC="${TMPDIR1}/gemu-conf-${RANDOM}-$$-${RANDOM}.c"
|
|
15 |
TMPO="${TMPDIR1}/gemu-conf-${RANDOM}-$$-${RANDOM}.o"
|
|
16 |
TMPE="${TMPDIR1}/gemu-conf-${RANDOM}-$$-${RANDOM}"
|
|
17 |
TMPS="${TMPDIR1}/gemu-conf-${RANDOM}-$$-${RANDOM}.S"
|
|
18 |
TMPH="${TMPDIR1}/gemu-conf-${RANDOM}-$$-${RANDOM}.h"
|
|
19 | 19 |
|
20 | 20 |
# default parameters |
21 | 21 |
prefix="/usr/local" |
... | ... | |
144 | 144 |
fi |
145 | 145 |
|
146 | 146 |
# check gcc version |
147 |
cat > $TMPC <<EOF |
|
148 |
int main(void) { |
|
149 |
#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2) |
|
150 |
return 0; |
|
151 |
#else |
|
152 |
#error gcc < 3.2 |
|
153 |
#endif |
|
154 |
} |
|
155 |
EOF |
|
156 |
|
|
147 | 157 |
gcc_major="2" |
148 |
gcc_version="$($cc -v 2>&1 | grep version | cut -d ' ' -f3-)" |
|
149 |
case "$gcc_version" in |
|
150 |
3.*) gcc_major="3"; |
|
151 |
;; |
|
152 |
esac |
|
158 |
if $cc -o $TMPO $TMPC 2> /dev/null ; then |
|
159 |
gcc_major="3" |
|
160 |
fi |
|
153 | 161 |
|
154 | 162 |
if test x"$1" = x"-h" -o x"$1" = x"--help" ; then |
155 | 163 |
cat << EOF |
... | ... | |
201 | 209 |
elif test "$cpu" = "armv4l" ; then |
202 | 210 |
echo "ARCH=arm" >> config.mak |
203 | 211 |
elif test "$cpu" = "powerpc" ; then |
204 |
echo "ARCH=ppc" > config.mak |
|
212 |
echo "ARCH=ppc" >> config.mak
|
|
205 | 213 |
elif test "$cpu" = "mips" ; then |
206 |
echo "ARCH=mips" > config.mak |
|
214 |
echo "ARCH=mips" >> config.mak
|
|
207 | 215 |
else |
208 | 216 |
echo "Unsupported CPU" |
209 | 217 |
exit 1 |
Also available in: Unified diff