[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [E-devel] using -std=gnu99 when available in imlib2

On Monday 06 November 2006 10:17, Mike Frysinger wrote:
> any qualms with me adding some logic to imlib2's configure to add
> -std=gnu99 to CPPFLAGS if the compiler supports ?

proposed patch attached

Attachment: pgp7p2541LYxv.pgp
Description: PGP signature

Index: configure.in
RCS file: /cvs/e/e17/libs/imlib2/configure.in,v
retrieving revision 1.133
diff -u -p -r1.133 configure.in
--- configure.in	25 Oct 2006 04:45:08 -0000	1.133
+++ configure.in	6 Nov 2006 15:35:41 -0000
@@ -39,6 +39,15 @@ m4_defun([AC_PROG_F77],[])
+dnl See if the compiler supports -std=gnu99 since some math
+dnl functions need it (aka round())
+AC_MSG_CHECKING(whether $CC accepts -std=gnu99)
+CPPFLAGS="$CPPFLAGS -std=gnu99"
 if test "x${bindir}" = 'x${exec_prefix}/bin'; then
   if test "x${exec_prefix}" = "xNONE"; then
     if test "x${prefix}" = "xNONE"; then