27 |
# SUCH DAMAGE. |
# SUCH DAMAGE. |
28 |
# |
# |
29 |
# |
# |
30 |
# $Id: configure,v 1.132 2005/06/04 12:05:50 debug Exp $ |
# $Id: configure,v 1.134 2005/06/11 20:59:10 debug Exp $ |
31 |
# |
# |
32 |
# This is a minimal configure script, hardcoded for GXemul. This script |
# This is a minimal configure script, hardcoded for GXemul. This script |
33 |
# figures out which compiler flags will work, and creates Makefiles in |
# figures out which compiler flags will work, and creates Makefiles in |
71 |
NOX11=YES |
NOX11=YES |
72 |
else if [ z$a = z--always32 ]; then |
else if [ z$a = z--always32 ]; then |
73 |
ALWAYS32=YES |
ALWAYS32=YES |
74 |
|
else if [ z$a = z--tracenull ]; then |
75 |
|
TRACENULL=YES |
76 |
else if [ z$a = z--disable-bintrans ]; then |
else if [ z$a = z--disable-bintrans ]; then |
77 |
NOBINTRANS=YES |
NOBINTRANS=YES |
78 |
else if [ z$a = z--enable-bintrans ]; then |
else if [ z$a = z--enable-bintrans ]; then |
127 |
echo " --always32 enable" \ |
echo " --always32 enable" \ |
128 |
"ALWAYS_SIGNEXTEND_32 (for hunting down" |
"ALWAYS_SIGNEXTEND_32 (for hunting down" |
129 |
echo " 32/64-bit bugs)" |
echo " 32/64-bit bugs)" |
130 |
|
echo " --tracenull enable" \ |
131 |
|
"TRACE_NULL_CRASHES (for bug hunting)" |
132 |
printf "\nGeneral options:\n" |
printf "\nGeneral options:\n" |
133 |
echo " --disable-bintrans configure without" \ |
echo " --disable-bintrans configure without" \ |
134 |
"bintrans, even if the host supports it" |
"bintrans, even if the host supports it" |
172 |
"available options." |
"available options." |
173 |
exit |
exit |
174 |
fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi |
fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi |
175 |
fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi |
fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi |
176 |
done |
done |
177 |
fi |
fi |
178 |
|
|
281 |
fi |
fi |
282 |
|
|
283 |
|
|
284 |
# Instruction delay/latency emulation: |
# Development option: ALWAYS_SIGNEXTEND_32 |
285 |
if [ z$ALWAYS32 = zYES ]; then |
if [ z$ALWAYS32 = zYES ]; then |
286 |
echo 'Enabling ALWAYS_SIGNEXTEND_32. (NOTE:' \ |
echo 'Enabling ALWAYS_SIGNEXTEND_32. (NOTE:' \ |
287 |
'This slows down everything.)' |
'This slows down everything.)' |
289 |
fi |
fi |
290 |
|
|
291 |
|
|
292 |
|
# Development option: TRACE_NULL_CRASHES |
293 |
|
if [ z$TRACENULL = zYES ]; then |
294 |
|
echo 'Enabling TRACE_NULL_CRASHES. (NOTE:' \ |
295 |
|
'This slows down the emulator.)' |
296 |
|
printf "#define TRACE_NULL_CRASHES\n" >> config.h |
297 |
|
fi |
298 |
|
|
299 |
|
|
300 |
# Cache emulation: |
# Cache emulation: |
301 |
if [ z$CACHES = zYES ]; then |
if [ z$CACHES = zYES ]; then |
302 |
echo 'Enabling Cache emulation. (EXPERIMENTAL)' |
echo 'Enabling Cache emulation. (EXPERIMENTAL)' |