Search
lxdream.org :: lxdream :: r966:0f0320cb3650
lxdream 0.9.1
released Jun 29
Download Now
changeset966:0f0320cb3650
parent965:fc39a6608851
child967:ef93b08e2166
authornkeynes
dateThu Jan 15 11:16:48 2009 +0000 (11 years ago)
Make --enable-strict-warn work again
configure
configure.in
1.1 --- a/configure Thu Jan 15 07:21:34 2009 +0000
1.2 +++ b/configure Thu Jan 15 11:16:48 2009 +0000
1.3 @@ -7126,7 +7126,9 @@
1.4
1.5 # Check whether --enable-strict-warn was given.
1.6 if test "${enable_strict_warn+set}" = set; then
1.7 - enableval=$enable_strict_warn; CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"
1.8 + enableval=$enable_strict_warn; if test "$enableval" == "yes"; then
1.9 + enable_strictwarn=yes
1.10 + fi
1.11 fi
1.12
1.13 # Check whether --enable-translator was given.
1.14 @@ -7264,9 +7266,10 @@
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 CFLAGS="$CFLAGS -fomit-frame-pointer"
1.22 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
1.23 fi
1.24 else
1.25 CFLAGS="$CFLAGS -g3"
1.26 @@ -7279,6 +7282,11 @@
1.27 OBJCFLAGS="$OBJCFLAGS -pg";
1.28 fi
1.29
1.30 +if test "x$enable_strictwarn" = "xyes"; then
1.31 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
1.32 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
1.33 +fi
1.34 +
1.35
1.36 { $as_echo "$as_me:$LINENO: checking support for fastcall calling conventions" >&5
1.37 $as_echo_n "checking support for fastcall calling conventions... " >&6; };
2.1 --- a/configure.in Thu Jan 15 07:21:34 2009 +0000
2.2 +++ b/configure.in Thu Jan 15 11:16:48 2009 +0000
2.3 @@ -25,7 +25,9 @@
2.4
2.5 AC_ARG_ENABLE( strict-warn,
2.6 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),
2.7 - [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])
2.8 + [if test "$enableval" == "yes"; then
2.9 + enable_strictwarn=yes
2.10 + fi] )
2.11 AC_ARG_ENABLE( translator,
2.12 AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),
2.13 [true], [enable_translator=yes] )
2.14 @@ -77,10 +79,11 @@
2.15
2.16 if test "x$enable_optimized" = "xyes"; then
2.17 CFLAGS="$CFLAGS $CCOPT"
2.18 - OBJCFLAGS="$OBJCFLAGS $CCOPT"
2.19 + OBJCFLAGS="$OBJCFLAGS $OBJCOPT"
2.20 if test "x$enable_profiled" != "xyes"; then
2.21 dnl -fomit-frame-pointer can't be used with -pg
2.22 CFLAGS="$CFLAGS -fomit-frame-pointer"
2.23 + OBJCFLAGS="$OBJCFLAGS -fomit-frame-pointer"
2.24 fi
2.25 else
2.26 CFLAGS="$CFLAGS -g3"
2.27 @@ -93,6 +96,11 @@
2.28 OBJCFLAGS="$OBJCFLAGS -pg";
2.29 fi
2.30
2.31 +if test "x$enable_strictwarn" = "xyes"; then
2.32 + CFLAGS="$CFLAGS -Wall -Werror -Wno-unused"
2.33 + OBJCFLAGS="$OBJCFLAGS -Wall -Werror -Wno-unused"
2.34 +fi
2.35 +
2.36 AC_CHECK_FASTCALL([
2.37 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
2.38 ])
.