Index: trunk/Ohana/configure.tcsh
===================================================================
--- trunk/Ohana/configure.tcsh	(revision 39406)
+++ trunk/Ohana/configure.tcsh	(revision 39457)
@@ -14,5 +14,5 @@
 set memcheck = 0
 set use_tcmalloc = 0
-set use_gnu99 = 0
+set use_gnu89 = 0
 set no_largefiles = 0
 set extra_safety_checks = 0
@@ -90,6 +90,7 @@
    set use_tcmalloc = 1
    breaksw;
-  case --use-gnu99
-   set use_gnu99 = 1
+  case --use-gnu89
+   set use_gnu89 = 1
+   echo "---- warning : gnu89 is now deprecated"
    breaksw;
   case --no-largefiles
@@ -211,9 +212,13 @@
 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_gnu89 && ($extra_safety_checks == 0)) then
+    set CFLAGS = "$CFLAGS -std=gnu89"
+else
     set CFLAGS = "$CFLAGS -std=gnu99"
-else
-    set CFLAGS = "$CFLAGS -std=gnu89"
 endif
 
@@ -232,5 +237,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 +724,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
+  --use-gnu89               use gnu89 for possible backwards compatibility (probably will not work)
   --no-largefiles           skip large file compatibility
+  --enable-no-as-needed     pass --no-as-needed flag to linker
 
 Installation directories:
@@ -745,4 +755,8 @@
   --no-create
   --no-recursion
+  --disable-shared
+  --enable-shared
+  --disable-static
+  --enable-static
   --sbindir
   --libexecdir
