chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1f868ca
)
Force -std=gnu99. If we're going to require GCC anyway we might as
author
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Jun 2008 19:51:50 +0000
(20:51 +0100)
committer
Richard Kettlewell
<rjk@greenend.org.uk>
Sun, 8 Jun 2008 19:51:50 +0000
(20:51 +0100)
well get the full benefit.
configure.ac
patch
|
blob
|
blame
|
history
diff --git
a/configure.ac
b/configure.ac
index f7956fda8fd609b25e128dab45e024b5d3348d88..44ca4b2683252fa622181ce6ba255f4116c38138 100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-46,6
+46,13
@@
AC_PROG_CC
AC_SET_MAKE
if test "x$GCC" = xyes; then
gcc_werror=-Werror
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=""
else
AC_MSG_ERROR([GNU C is required to build this program])
gcc_werror=""