Index: /branches/eam_branches/ohana.20160226/configure.tcsh
===================================================================
--- /branches/eam_branches/ohana.20160226/configure.tcsh	(revision 39426)
+++ /branches/eam_branches/ohana.20160226/configure.tcsh	(revision 39427)
@@ -211,6 +211,10 @@
 if ($sanitize_address) set CFLAGS = "$CFLAGS -fsanitize=address"
 
+# gnu c99 fails due to missing flockfile prototype
+# we are forced to used gnu99 
+# -std=gnu89 fails with -pedantic tests because we use VA_ARGS in macros (allowed by gnu but not C89)
+
 # use_gnu99
-if ($use_gnu99) then
+if ($use_gnu99 || $extra_safety_checks) then
     set CFLAGS = "$CFLAGS -std=gnu99"
 else
@@ -232,5 +236,7 @@
 # other temp flags
 if ($extra_safety_checks) then
-  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -Wextra -pedantic"
+  set CPPFLAGS = "$CPPFLAGS -fstack-check -fstack-protector-all -D_FORTIFY_SOURCE=2 -Wstrict-aliasing=2 -fno-strict-aliasing -pedantic"
+  set CPPFLAGS = "$CPPFLAGS -Wclobbered -Wempty-body -Wignored-qualifiers -Wmissing-field-initializers -Wmissing-parameter-type -Wold-style-declaration -Woverride-init -Wtype-limits -Wuninitialized -Wunused-parameter -Wunused-but-set-parameter"
+  set CPPFLAGS = "$CPPFLAGS -Wsign-compare"
 endif
 
@@ -717,9 +723,12 @@
   --enable-profile          enable 
   --enable-sanitize-address enable 
+  --extra-safety-checks     enable extra gcc safety checks
   --enable-memcheck         enable ohana memory tests
+  --enable-debug-build      enable debug build
   --pedantic                include -Wall -Werror on compilation
   --use-tcmalloc            use the alternate tcmalloc from Google
   --use-gnu99               use gnu99 flags to ensure C99 compatibility
   --no-largefiles           skip large file compatibility
+  --enable-no-as-needed     pass --no-as-needed flag to linker
 
 Installation directories:
@@ -745,4 +754,8 @@
   --no-create
   --no-recursion
+  --disable-shared
+  --enable-shared
+  --disable-static
+  --enable-static
   --sbindir
   --libexecdir
