Search
lxdream.org :: lxdream/configure.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename configure.in
changeset 913:edc494bde24b
prev909:b4a21af8ce8c
next923:13ac59a786f4
author nkeynes
date Sat Nov 08 00:12:14 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Fix compile of testsh4x86
file annotate diff log raw
1.1 --- a/configure.in Thu Oct 30 23:56:59 2008 +0000
1.2 +++ b/configure.in Sat Nov 08 00:12:14 2008 +0000
1.3 @@ -29,7 +29,7 @@
1.4 AS_HELP_STRING( [--disable-optimized], [Disable compile-time optimizations (Enabled by default)]),
1.5 [true], [enable_optimized=yes] )
1.6 AC_ARG_ENABLE( profiled,
1.7 - AS_HELP_STRING( [--enable-profiled], [Enable profiling build (implies disable-optimized)]),
1.8 + AS_HELP_STRING( [--enable-profiled], [Enable profiling build]),
1.9 [if test "$enableval" == "yes"; then
1.10 enable_profiled=yes;
1.11 fi] )
1.12 @@ -60,17 +60,23 @@
1.13
1.14 dnl ------------
1.15
1.16 -if test "x$enable_profiled" = "xyes"; then
1.17 - CFLAGS="-g -pg -fprofile-arcs"
1.18 - LDFLAGS="$LDFLAGS -pg";
1.19 -elif test "x$enable_optimized" = "xyes"; then
1.20 - CFLAGS="-g -O2 -fexceptions -fomit-frame-pointer"
1.21 - AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.22 +if test "x$enable_optimized" = "xyes"; then
1.23 + CFLAGS="-g -O2 -msse2 -mfpmath=sse"
1.24 + if test "x$enable_profiled" != "xyes"; then
1.25 + dnl -fomit-frame-pointer can't be used with -pg
1.26 + CFLAGS="$CFLAGS -fexceptions -fomit-frame-pointer"
1.27 + AC_DEFINE(HAVE_EXCEPTIONS, [1], [Have exception stack-frame information])
1.28 + fi
1.29 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
1.30 else
1.31 CFLAGS="-g3"
1.32 fi
1.33
1.34 +if test "x$enable_profiled" = "xyes"; then
1.35 + CFLAGS="$CFLAGS -pg"
1.36 + LDFLAGS="$LDFLAGS -pg";
1.37 +fi
1.38 +
1.39 if test "x$GCC" = "xyes"; then
1.40 CFLAGS="$CFLAGS -fno-strict-aliasing"
1.41 fi
.