Index: /trunk/Ohana/configure.tcsh
===================================================================
--- /trunk/Ohana/configure.tcsh	(revision 39396)
+++ /trunk/Ohana/configure.tcsh	(revision 39397)
@@ -16,4 +16,5 @@
 set use_gnu99 = 0
 set no_largefiles = 0
+set extra_safety_checks = 0
 
 set prefix  = ""
@@ -80,4 +81,7 @@
    set sanitize_address = 1
    breaksw;
+  case --extra-safety-checks
+   set extra_safety_checks = 1
+   breaksw;
   case --enable-memcheck
    set memcheck = 1
@@ -200,4 +204,5 @@
 if ($optimize) set CFLAGS = "-O2"
 
+# other temp flags:
 # profiler code
 if ($profile) set CFLAGS = "$CFLAGS -pg"
@@ -224,4 +229,9 @@
   set CPPFLAGS = ""
 endif  
+
+# other temp flags
+if ($extra_safety_checks) then
+  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2"
+endif
 
 if ($pedantic) set CPPFLAGS = "$CPPFLAGS -Wall -Werror"
