chiark / gitweb /
Merge the Disobedience rewrite.
[disorder] / configure.ac
index 03ba3844c58fafdfe9a44caaf05b33a9285742fc..2522f453433301c88ceb73e4987be4963ae3dc06 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=""