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.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.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.29 AC_DEFINE(HAVE_FASTCALL, [1], [Use fast register-passing calling conventions])
1.34 +if test "x$enable_profiled" = "xyes"; then
1.35 + CFLAGS="$CFLAGS -pg"
1.36 + LDFLAGS="$LDFLAGS -pg";
1.39 if test "x$GCC" = "xyes"; then
1.40 CFLAGS="$CFLAGS -fno-strict-aliasing"