diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-09 12:09:39 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-06-09 12:09:39 +0000 |
commit | 3b377a458b75a12b78473b5a5bcd1f3061f04d18 (patch) | |
tree | abd3a54ac353709c93609c91f4de179722f9528f /configure | |
parent | 1045b4d5050fa354b3ab19e247065895141a048d (diff) | |
download | mpv-3b377a458b75a12b78473b5a5bcd1f3061f04d18.tar.bz2 mpv-3b377a458b75a12b78473b5a5bcd1f3061f04d18.tar.xz |
libmpeg2-altivec patch by Magnus Damm <damm@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)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10267 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -1967,6 +1967,23 @@ else 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_words_endian $_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 @@ -5814,6 +5838,9 @@ $_def_altivec // only define if you have Altivec (G4) #define USE_MMX_IDCT 1 #endif +$_def_altivec_h // enables usage of altivec.h + + $_def_mlib // Sun mediaLib, available only on solaris /* libmpeg2 uses a different feature test macro for mediaLib */ |