Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 966:0f0320cb3650
prev964:f2f3c7612d06
next977:8514fb4bc101
author nkeynes
date Mon Jan 26 07:26:24 2009 +0000 (15 years ago)
permissions -rw-r--r--
last change Add read_byte_for_write mem function for correct implementation of AND.B and friends
with TLB enabled.
Add read_byte and read_long MMIO stubs to do correct sign extension of IO reads
file annotate diff log raw
1.1 --- a/configure.in Thu Jan 15 04:15:11 2009 +0000
1.2 +++ b/configure.in Mon Jan 26 07:26:24 2009 +0000
1.3 @@ -25,7 +25,9 @@
1.4
1.5 AC_ARG_ENABLE( strict-warn,
1.6 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),
1.7 - [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])
1.8 + [if test "$enableval" == "yes"; then
1.9 + enable_strictwarn=yes
1.10 + fi] )
1.11 AC_ARG_ENABLE( translator,
1.12 AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),
1.13 [true], [enable_translator=yes] )
1.14 @@ -77,10 +79,11 @@
1.15
1.16 if test "x$enable_optimized" = "xyes"; then
1.17 CFLAGS="$CFLAGS $CCOPT"
1.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"
1.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
1.20 if test "x$enable_profiled" != "xyes"; then
1.21 dnl -fomit-frame-pointer can't be used with -pg
1.22 CFLAGS="$CFLAGS -fomit-frame-pointer"
1.23 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
1.24 fi
1.25 else
1.26 CFLAGS="$CFLAGS -g3"
1.27 @@ -93,6 +96,11 @@
1.28 OBJCFLAGS="$OBJCFLAGS -pg";
1.29 fi
1.30
1.31 +if test "x$enable_strictwarn" = "xyes"; then
1.32 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
1.33 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
1.34 +fi
1.35 +
1.36 AC_CHECK_FASTCALL([
1.37 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
1.38 ])
.