Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 899:18e0cdea76aa
prev882:ada7d14a8ad9
next902:408568dc97d5
author nkeynes
date Sat Oct 25 12:36:42 2008 +0000 (10 years ago)
permissions -rw-r--r--
last change Add --enable-optimized flag (on by default).
When optimized, add -fomit-frame-pointer -fexceptions on non-Mac x86 (Unwinding doesn't seem to work correctly on Mac)
file annotate diff log raw
1.1 --- a/configure.in Sun Oct 19 11:07:10 2008 +0000
1.2 +++ b/configure.in Sat Oct 25 12:36:42 2008 +0000
1.3 @@ -23,8 +23,11 @@
1.4 AS_HELP_STRING( [--enable-strict-warn], [Enable strict compilation warnings]),
1.5 [CFLAGS="$CFLAGS -Werror -Wall -Wno-unused"], [])
1.6 AC_ARG_ENABLE( translator,
1.7 - AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enable by default)]),
1.8 + AS_HELP_STRING( [--disable-translator], [Disable the SH4 translator (Enabled by default)]),
1.9 [true], [enable_translator=yes] )
1.10 +AC_ARG_ENABLE( optimized,
1.11 + AS_HELP_STRING( [--disable-optimized], [Disable compile-time optimizations (Enabled by default)]),
1.12 + [true], [enable_optimized=yes] )
1.13 AC_ARG_ENABLE( trace,
1.14 AS_HELP_STRING( [--enable-trace], [Enable generation of IO traces (warning: hurts performance)]),
1.15 [if test "$enableval" == "yes"; then
1.16 @@ -52,10 +55,16 @@
1.17
1.18 dnl ------------
1.19
1.20 +if test "x$enable_optimized" = "xyes"; then
1.21 + CFLAGS="-g -O2"
1.22 +else
1.23 + CFLAGS="-g3"
1.24 +fi
1.25 if test "x$GCC" = "xyes"; then
1.26 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.27 fi
1.28
1.29 +
1.30 dnl ------------ Check if we're building on Darwin --------------
1.31
1.32 dnl For starters, do we have a working objective-c compiler?
1.33 @@ -82,6 +91,10 @@
1.34 if test "x$HAVE_COCOA" = 'xyes' -a "x$with_gtk" = "xno"; then
1.35 AC_DEFINE(OSX_BUNDLE, [1], [Generating a bundled application])
1.36 fi
1.37 +if test "x$enable_optimized" = "xyes" -a "x$APPLE_BUILD" != "xyes"; then
1.38 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.39 + AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.40 +fi
1.41
1.42 dnl ----------- Check for mandatory dependencies --------------
1.43 dnl Check for libpng (required)
.