chiark / gitweb /
Fix edit menu (and simplify its implementation a bit).
[disorder] / configure.ac
index f7956fda8fd609b25e128dab45e024b5d3348d88..44ca4b2683252fa622181ce6ba255f4116c38138 100644 (file)
@@ -46,6 +46,13 @@ AC_PROG_CC
 AC_SET_MAKE
 if test "x$GCC" = xyes; then
   gcc_werror=-Werror
+  case "$CC" in
+  *-std=* )
+    ;;
+  * )
+    CC="${CC} -std=gnu99"
+    ;;
+  esac
 else
   AC_MSG_ERROR([GNU C is required to build this program])
   gcc_werror=""