Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
7f79ca66
Commit
7f79ca66
authored
Apr 20, 2004
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* configure.ac:
+ Check for <altivec.h>. + Test for -maltivec -mabi=altivec in addition to -fvec.
parent
a5ee53f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
configure.ac
configure.ac
+19
-9
No files found.
configure.ac
View file @
7f79ca66
...
@@ -572,7 +572,7 @@ AC_CHECK_HEADERS(signal.h time.h errno.h stdint.h stdbool.h getopt.h strings.h i
...
@@ -572,7 +572,7 @@ AC_CHECK_HEADERS(signal.h time.h errno.h stdint.h stdbool.h getopt.h strings.h i
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h)
AC_CHECK_HEADERS(sys/sockio.h fcntl.h sys/types.h sys/time.h sys/times.h sys/ioctl.h sys/stat.h)
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
AC_CHECK_HEADERS(arpa/inet.h net/if.h netinet/in.h sys/socket.h)
if test "${SYS}" != "mingw32"; then
if test "${SYS}" != "mingw32"; then
AC_CHECK_HEADERS(machine/param.h sys/shm.h)
AC_CHECK_HEADERS(machine/param.h sys/shm.h
altivec.h
)
AC_CHECK_HEADERS(linux/version.h)
AC_CHECK_HEADERS(linux/version.h)
fi # end "${SYS}" != "mingw32"
fi # end "${SYS}" != "mingw32"
...
@@ -991,6 +991,7 @@ if test "${ac_cv_altivec_inline}" != "no"; then
...
@@ -991,6 +991,7 @@ if test "${ac_cv_altivec_inline}" != "no"; then
AX_ADD_CFLAGS([idctaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([idctaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([motionaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([motionaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([memcpyaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([memcpyaltivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([i420_yuy2_altivec],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([vlc],[${ac_cv_altivec_inline}])
AX_ADD_CFLAGS([vlc],[${ac_cv_altivec_inline}])
fi
fi
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
ACCEL_MODULES="${ACCEL_MODULES} ${ALTIVEC_MODULES}"
...
@@ -998,14 +999,23 @@ fi
...
@@ -998,14 +999,23 @@ fi
AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
AC_CACHE_CHECK([if \$CC groks AltiVec C extensions],
[ac_cv_c_altivec],
[ac_cv_c_altivec],
[CFLAGS="${CFLAGS_save} -faltivec"
[# Darwin test
# Darwin test
CFLAGS="${CFLAGS_save} -faltivec"
AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));],
AC_TRY_COMPILE([],
ac_cv_c_altivec=-faltivec, [
[vec_mtvscr((vector unsigned int)(0));],
# Linux/PPC test
[ac_cv_c_altivec="-faltivec"],
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -fvec"
[# Linux/PPC test
AC_TRY_COMPILE(,[vec_mtvscr((vector unsigned int)(0));],
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -maltivec -mabi=altivec"
[ac_cv_c_altivec="-fvec"], ac_cv_c_altivec=no)
AC_TRY_COMPILE([],
[vec_mtvscr((vector unsigned int)(0));],
[ac_cv_c_altivec="-maltivec -mabi=altivec"],
[# Linux/PPC test (old GCC versions)
CFLAGS="${CFLAGS_save} ${CFLAGS_idctaltivec} -fvec"
AC_TRY_COMPILE([#include <altivec.h>],
[vec_mtvscr((vector unsigned int)(0));],
[ac_cv_c_altivec="-fvec"],
[ac_cv_c_altivec=no])
])
])
])
CFLAGS="${CFLAGS_save}"])
CFLAGS="${CFLAGS_save}"])
if test "${ac_cv_c_altivec}" != "no"; then
if test "${ac_cv_c_altivec}" != "no"; then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment