94 |
FreeBSD) |
FreeBSD) |
95 |
bsd="yes" |
bsd="yes" |
96 |
oss="yes" |
oss="yes" |
97 |
|
if [ "$cpu" = "i386" ] ; then |
98 |
|
kqemu="yes" |
99 |
|
fi |
100 |
;; |
;; |
101 |
NetBSD) |
NetBSD) |
102 |
bsd="yes" |
bsd="yes" |
113 |
*) |
*) |
114 |
oss="yes" |
oss="yes" |
115 |
linux="yes" |
linux="yes" |
116 |
if [ "$cpu" = "i386" ] ; then |
if [ "$cpu" = "i386" -o "$cpu" = "x86_64" ] ; then |
117 |
kqemu="yes" |
kqemu="yes" |
118 |
fi |
fi |
119 |
;; |
;; |
201 |
EXESUF=".exe" |
EXESUF=".exe" |
202 |
gdbstub="no" |
gdbstub="no" |
203 |
oss="no" |
oss="no" |
204 |
kqemu="no" |
if [ "$cpu" = "i386" ] ; then |
205 |
|
kqemu="yes" |
206 |
|
fi |
207 |
fi |
fi |
208 |
|
|
209 |
if test -z "$target_list" ; then |
if test -z "$target_list" ; then |
355 |
bindir="$prefix/bin" |
bindir="$prefix/bin" |
356 |
fi |
fi |
357 |
|
|
358 |
# kernel module support |
# kqemu support |
359 |
if test $kqemu = "yes" ; then |
if test $kqemu = "yes" ; then |
360 |
# test if the source code is installed |
# test if the source code is installed |
361 |
if test '!' -f "kqemu/Makefile" ; then |
if test '!' -f "kqemu/Makefile" ; then |
363 |
fi |
fi |
364 |
fi |
fi |
365 |
|
|
366 |
if test $kqemu = "yes" ; then |
# Linux specific kqemu configuration |
367 |
|
if test $kqemu = "yes" -a $linux = "yes" ; then |
368 |
# find the kernel path |
# find the kernel path |
369 |
if test -z "$kernel_path" ; then |
if test -z "$kernel_path" ; then |
370 |
kernel_version=`uname -r` |
kernel_version=`uname -r` |
394 |
|
|
395 |
fi # kqemu |
fi # kqemu |
396 |
|
|
397 |
fi # kqemu |
fi # kqemu and linux |
398 |
|
|
399 |
|
|
400 |
echo "Install prefix $prefix" |
echo "Install prefix $prefix" |
424 |
echo -n " (lib='$fmod_lib' include='$fmod_inc')" |
echo -n " (lib='$fmod_lib' include='$fmod_inc')" |
425 |
fi |
fi |
426 |
echo "" |
echo "" |
427 |
if test $kqemu = "yes" ; then |
echo "kqemu support $kqemu" |
428 |
|
if test $kqemu = "yes" -a $linux = "yes" ; then |
429 |
echo "" |
echo "" |
430 |
echo "KQEMU module configuration:" |
echo "KQEMU Linux module configuration:" |
431 |
echo "kernel sources $kernel_path" |
echo "kernel sources $kernel_path" |
432 |
echo -n "kbuild type " |
echo -n "kbuild type " |
433 |
if test $kbuild26 = "yes"; then |
if test $kbuild26 = "yes"; then |
624 |
echo "TARGET_ARCH=i386" >> $config_mak |
echo "TARGET_ARCH=i386" >> $config_mak |
625 |
echo "#define TARGET_ARCH \"i386\"" >> $config_h |
echo "#define TARGET_ARCH \"i386\"" >> $config_h |
626 |
echo "#define TARGET_I386 1" >> $config_h |
echo "#define TARGET_I386 1" >> $config_h |
627 |
if test $kqemu = "yes" -a "$target_softmmu" = "yes" ; then |
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "i386" ; then |
628 |
echo "#define USE_KQEMU 1" >> $config_h |
echo "#define USE_KQEMU 1" >> $config_h |
629 |
fi |
fi |
630 |
elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then |
elif test "$target_cpu" = "arm" -o "$target_cpu" = "armeb" ; then |
649 |
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h |
echo "#define TARGET_ARCH \"x86_64\"" >> $config_h |
650 |
echo "#define TARGET_I386 1" >> $config_h |
echo "#define TARGET_I386 1" >> $config_h |
651 |
echo "#define TARGET_X86_64 1" >> $config_h |
echo "#define TARGET_X86_64 1" >> $config_h |
652 |
|
if test $kqemu = "yes" -a "$target_softmmu" = "yes" -a $cpu = "x86_64" ; then |
653 |
|
echo "#define USE_KQEMU 1" >> $config_h |
654 |
|
fi |
655 |
else |
else |
656 |
echo "Unsupported target CPU" |
echo "Unsupported target CPU" |
657 |
exit 1 |
exit 1 |