mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-16 16:02:54 +02:00
cpu: drop MacOS PPC support
This requires MacOS 10.5 or less, which was dropped in VLC 2.1.0.
This commit is contained in:
parent
62d0a8825a
commit
06ab28f823
10
configure.ac
10
configure.ac
@ -1742,16 +1742,6 @@ AS_IF([test "${enable_altivec}" = "yes"], [
|
||||
have_altivec="yes"
|
||||
])
|
||||
AC_CHECK_HEADERS([altivec.h])
|
||||
|
||||
VLC_SAVE_FLAGS
|
||||
LDFLAGS="${LDFLAGS} -Wl,-framework,vecLib"
|
||||
AC_CACHE_CHECK([if linker needs -framework vecLib],
|
||||
[ac_cv_ld_altivec],
|
||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[ac_cv_ld_altivec=yes],[ac_cv_ld_altivec=no])])
|
||||
VLC_RESTORE_FLAGS
|
||||
AS_IF([test "${ac_cv_ld_altivec}" != "no"], [
|
||||
VLC_ADD_LIBS([libvlccore],[-Wl,-framework,vecLib])
|
||||
])
|
||||
])
|
||||
AC_SUBST([ALTIVEC_CFLAGS])
|
||||
AM_CONDITIONAL([HAVE_ALTIVEC], [test "$have_altivec" = "yes"])
|
||||
|
@ -215,12 +215,8 @@ out:
|
||||
#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __powerpc64__ ) \
|
||||
|| defined( __ppc64__ )
|
||||
|
||||
# if defined(__APPLE__) || defined(__OpenBSD__)
|
||||
# if defined(__OpenBSD__)
|
||||
int selectors[2] = { CTL_MACHDEP, CPU_ALTIVEC };
|
||||
# else
|
||||
int selectors[2] = { CTL_HW, HW_VECTORUNIT };
|
||||
# endif
|
||||
int i_has_altivec = 0;
|
||||
size_t i_length = sizeof( i_has_altivec );
|
||||
int i_error = sysctl( selectors, 2, &i_has_altivec, &i_length, NULL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user