[Mplayer-cvslog] CVS: main configure,1.610,1.611

Michael Niedermayer CVS michael at mplayerhq.hu
Sat Nov 23 12:01:24 CET 2002


Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv26711

Modified Files:
	configure 
Log Message:
check for -Wall support & use it if available patch by (Dominik Mierzejewski <dominik at rangers dot eu dot org>)
arpi, feel free to reverse if u dont like -Wall 


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.610
retrieving revision 1.611
diff -u -r1.610 -r1.611
--- configure	22 Nov 2002 10:14:37 -0000	1.610
+++ configure	23 Nov 2002 11:01:21 -0000	1.611
@@ -2164,6 +2164,19 @@
 fi
 echores "$_sys_sysinfo"
 
+echocheck "-Wall option"
+cat > $TMPC << EOF
+int main(void) { return 0; }
+EOF
+_wall=no
+cc_check -Wall && _wall=yes
+if test "$_wall" = yes ; then
+  _ld_wall='-Wall'
+else
+  _ld_wall=''
+fi
+echores "$_wall"
+
 
 #########
 # VIDEO #
@@ -4390,9 +4403,9 @@
   _stripbinaries=no
 elif test -z "$CFLAGS" ; then
   if test "$host_arch" != "mips" ; then
-    CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer"
+    CFLAGS="-O4 $_march $_mcpu -pipe -ffast-math -fomit-frame-pointer $_ld_wall"
   else
-    CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer"
+    CFLAGS="-O4 $_march $_mcpu -ffast-math -fomit-frame-pointer $_ld_wall"
   fi
   # always compile with '-g' if .developer:
   if test -f ".developer" ; then




More information about the MPlayer-cvslog mailing list