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 -mike
pgpk138u0fJp3.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],[])
AM_PROG_LIBTOOL
+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)
+cc_supports_gnu99="yes"
+save_CPPFLAGS="$CPPFLAGS"
+CPPFLAGS="$CPPFLAGS -std=gnu99"
+AC_TRY_COMPILE(,,,[cc_supports_gnu99="no";CPPFLAGS="$save_CPPFLAGS"])
+AC_MSG_RESULT($cc_supports_gnu99)
+
if test "x${bindir}" = 'x${exec_prefix}/bin'; then
if test "x${exec_prefix}" = "xNONE"; then
if test "x${prefix}" = "xNONE"; then
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
