summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2006-09-20 13:15:55 +0000
committerSimon Howard2006-09-20 13:15:55 +0000
commit16c643057cef3a49a6713090ffa6e5f8aba2ad0a (patch)
tree968dfaed7fad83386fe9d0910899c83d2152334f
parent0ef3db9af6b98e70658c3d6f997493dcc680c63f (diff)
downloadchocolate-doom-16c643057cef3a49a6713090ffa6e5f8aba2ad0a.tar.gz
chocolate-doom-16c643057cef3a49a6713090ffa6e5f8aba2ad0a.tar.bz2
chocolate-doom-16c643057cef3a49a6713090ffa6e5f8aba2ad0a.zip
Change the default optimisation level to -O2 and add
--enable-penis-extension to configure.in. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 634
-rw-r--r--configure.in13
1 files changed, 12 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index a515fcca..94a42109 100644
--- a/configure.in
+++ b/configure.in
@@ -6,9 +6,20 @@ orig_CFLAGS="$CFLAGS"
AC_PROG_CC
AC_PROG_RANLIB
+OPT_LEVEL=2
+
+# Engine room, we need more speed!
+
+AC_ARG_ENABLE(penis-extension,
+[ --enable-penis-extension Enable counterproductive compiler optimisations ],
+[ OPT_LEVEL=3 ])
+
+# If this is gcc, we have some options we'd like to turn on. Turn on
+# optimisation and debugging symbols.
+
if test "$GCC" = "yes"
then
- CFLAGS="-O3 -g -Wall $orig_CFLAGS"
+ CFLAGS="-O$OPT_LEVEL -g -Wall $orig_CFLAGS"
fi
AM_PATH_SDL(1.1.3)