Update of /cvsroot/xine/xine-lib
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv6454

Modified Files:
        configure.ac 
Log Message:
Fix the checks for flags to avoid displaying the quotes, by using the proper M4 
quotes.
Also add as an extra check -Werror-implicit-function-declaration to avoid 
having implicit declarations in form of int foo(...) that can easily break on 
64-bit arches if the function is supposed to return a pointer.


Index: configure.ac
===================================================================
RCS file: /cvsroot/xine/xine-lib/configure.ac,v
retrieving revision 1.460
retrieving revision 1.461
diff -u -r1.460 -r1.461
--- configure.ac        15 Feb 2007 15:19:33 -0000      1.460
+++ configure.ac        19 Feb 2007 23:50:56 -0000      1.461
@@ -2590,16 +2590,19 @@
 dnl Important warnings we _don't_ want to skip
 dnl Don't put these under conditional for optimisations, because these
 dnl need always to be enabled.
-AC_TRY_CFLAGS("-Wformat", wformat="-Wformat")
-AC_TRY_CFLAGS("-Wformat=2", wformat="-Wformat=2")
+AC_TRY_CFLAGS([-Wformat], [wformat="-Wformat"])
+AC_TRY_CFLAGS([-Wformat=2], [wformat="-Wformat=2"])
 if test "x$wformat" != "x"; then
-   AC_TRY_CFLAGS("-Wno-format-zero-length", wformat="$wformat 
-Wno-format-zero-length")
+   AC_TRY_CFLAGS([-Wno-format-zero-length], [wformat="$wformat 
-Wno-format-zero-length"])
 fi
-AC_TRY_CFLAGS("-Wmissing-format-attribute", wformat="$wformat 
-Wmissing-format-attribute")
+AC_TRY_CFLAGS([-Wmissing-format-attribute], [wformat="$wformat 
-Wmissing-format-attribute"])
 CFLAGS="$CFLAGS $wformat"
 
-AC_TRY_CFLAGS("-Wstrict-aliasing", wsa="-Wstrict-aliasing")
-AC_TRY_CFLAGS("-Wstrict-aliasing=2", wsa="-Wstrict-aliasing=2")
+dnl This has to be stay at the end as it can break some autoconf tests.
+AC_TRY_CFLAGS([-Werror-implicit-function-declaration], [CFLAGS="$CFLAGS 
-Werror-implicit-function-declaration"])
+
+AC_TRY_CFLAGS([-Wstrict-aliasing], [wsa="-Wstrict-aliasing"])
+AC_TRY_CFLAGS([-Wstrict-aliasing=2], [wsa="-Wstrict-aliasing=2"])
 CFLAGS="$CFLAGS $wsa"
 
 dnl disabled "-Wl,-z,defs": it breaks compilation for vidix drivers.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to