[Mplayer-cvslog] CVS: main configure,1.721,1.722

Arpi of Ize arpi at mplayerhq.hu
Mon Jun 9 14:10:14 CEST 2003


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

Modified Files:
	configure 
Log Message:
libmpeg2-altivec patch by Magnus Damm <damm at opensource.se>:
  Check for altivec.h and set HAVE_ALTIVEC_H
  This is required for the new libmpeg2 files and for
  the updated ffmpeg code
  make sure ARCH_POWERPC gets set
  (I choosed this instead of mpeg2_internal)


Index: configure
===================================================================
RCS file: /cvsroot/mplayer/main/configure,v
retrieving revision 1.721
retrieving revision 1.722
diff -u -r1.721 -r1.722
--- configure	9 Jun 2003 10:44:34 -0000	1.721
+++ configure	9 Jun 2003 12:09:39 -0000	1.722
@@ -1967,6 +1967,23 @@
 fi
 echores "$_mman"
 
+if ppc && test "$_altivec" = "yes" ; then
+echocheck "altivec.h"
+cat > $TMPC << EOF
+#include <altivec.h>
+int main(void) { return 0; }
+EOF
+_altivec=no
+cc_check && _altivec=yes
+if test "$_altivec" = yes ; then
+  _def_altivec_h='#define HAVE_ALTIVEC_H 1'
+else
+  _def_altivec_h='#undef HAVE_ALTIVEC_H'
+fi
+echores "$_altivec"
+else
+  _def_altivec_h='#undef HAVE_ALTIVEC_H'
+fi
 
 echocheck "dynamic loader"
 cat > $TMPC << EOF
@@ -5669,6 +5686,13 @@
 
 $_def_arch
 
+/* libmpeg2 wants ARCH_PPC and the rest of mplayer use ARCH_POWERPC,
+ * define ARCH_PPC if ARCH_POWERPC is set to cope with that.
+ */
+#ifdef ARCH_POWERPC
+#define ARCH_PPC 1
+#endif
+
 /* Define this for Cygwin build for win32 */
 $_def_confwin32
 
@@ -5813,6 +5837,9 @@
 #ifdef HAVE_MMX
 #define USE_MMX_IDCT 1
 #endif
+
+$_def_altivec_h	// enables usage of altivec.h
+
 
 $_def_mlib  // Sun mediaLib, available only on solaris
 



More information about the MPlayer-cvslog mailing list