Mercurial > mplayer.hg
comparison configure @ 10266:db0c6834b6db
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)
author | arpi |
---|---|
date | Mon, 09 Jun 2003 12:09:39 +0000 |
parents | c2b52956a30c |
children | 7b0bc557987b |
comparison
equal
deleted
inserted
replaced
10265:c2b52956a30c | 10266:db0c6834b6db |
---|---|
1965 else | 1965 else |
1966 _def_mman='#undef HAVE_SYS_MMAN_H' | 1966 _def_mman='#undef HAVE_SYS_MMAN_H' |
1967 fi | 1967 fi |
1968 echores "$_mman" | 1968 echores "$_mman" |
1969 | 1969 |
1970 if ppc && test "$_altivec" = "yes" ; then | |
1971 echocheck "altivec.h" | |
1972 cat > $TMPC << EOF | |
1973 #include <altivec.h> | |
1974 int main(void) { return 0; } | |
1975 EOF | |
1976 _altivec=no | |
1977 cc_check && _altivec=yes | |
1978 if test "$_altivec" = yes ; then | |
1979 _def_altivec_h='#define HAVE_ALTIVEC_H 1' | |
1980 else | |
1981 _def_altivec_h='#undef HAVE_ALTIVEC_H' | |
1982 fi | |
1983 echores "$_altivec" | |
1984 else | |
1985 _def_altivec_h='#undef HAVE_ALTIVEC_H' | |
1986 fi | |
1970 | 1987 |
1971 echocheck "dynamic loader" | 1988 echocheck "dynamic loader" |
1972 cat > $TMPC << EOF | 1989 cat > $TMPC << EOF |
1973 #include <dlfcn.h> | 1990 #include <dlfcn.h> |
1974 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } | 1991 int main(void) { dlopen(0, 0); dlclose(0); dlsym(0, 0); return 0; } |
5667 byte first (like Motorola and SPARC, unlike Intel and VAX). */ | 5684 byte first (like Motorola and SPARC, unlike Intel and VAX). */ |
5668 $_def_words_endian | 5685 $_def_words_endian |
5669 | 5686 |
5670 $_def_arch | 5687 $_def_arch |
5671 | 5688 |
5689 /* libmpeg2 wants ARCH_PPC and the rest of mplayer use ARCH_POWERPC, | |
5690 * define ARCH_PPC if ARCH_POWERPC is set to cope with that. | |
5691 */ | |
5692 #ifdef ARCH_POWERPC | |
5693 #define ARCH_PPC 1 | |
5694 #endif | |
5695 | |
5672 /* Define this for Cygwin build for win32 */ | 5696 /* Define this for Cygwin build for win32 */ |
5673 $_def_confwin32 | 5697 $_def_confwin32 |
5674 | 5698 |
5675 /* Define this to any prefered value from 386 up to infinity with step 100 */ | 5699 /* Define this to any prefered value from 386 up to infinity with step 100 */ |
5676 #define __CPU__ $iproc | 5700 #define __CPU__ $iproc |
5811 $_def_altivec // only define if you have Altivec (G4) | 5835 $_def_altivec // only define if you have Altivec (G4) |
5812 | 5836 |
5813 #ifdef HAVE_MMX | 5837 #ifdef HAVE_MMX |
5814 #define USE_MMX_IDCT 1 | 5838 #define USE_MMX_IDCT 1 |
5815 #endif | 5839 #endif |
5840 | |
5841 $_def_altivec_h // enables usage of altivec.h | |
5842 | |
5816 | 5843 |
5817 $_def_mlib // Sun mediaLib, available only on solaris | 5844 $_def_mlib // Sun mediaLib, available only on solaris |
5818 | 5845 |
5819 /* libmpeg2 uses a different feature test macro for mediaLib */ | 5846 /* libmpeg2 uses a different feature test macro for mediaLib */ |
5820 #ifdef HAVE_MLIB | 5847 #ifdef HAVE_MLIB |