summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-19 14:05:41 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-19 14:05:41 +0100
commit4116151a4bf35cffd2b55b028e714bb2c383c86f (patch)
tree7c27376f37acef2ec4e908cd9275578e69e665ba /configure
parentfdbb6164a208df6d2665453da6d18d2cda13189b (diff)
parent1c5805521c3e406886341d752ebf38f8d41e1d13 (diff)
downloadffmpeg-streaming-4116151a4bf35cffd2b55b028e714bb2c383c86f.zip
ffmpeg-streaming-4116151a4bf35cffd2b55b028e714bb2c383c86f.tar.gz
Merge commit '1c5805521c3e406886341d752ebf38f8d41e1d13'
* commit '1c5805521c3e406886341d752ebf38f8d41e1d13': PGS subtitles: Set AVSubtitle pts value configure: Refactor CPPFLAGS settings for glibc/uclibc configure: add basic support for ARM AArch64 build: set -U__STRICT_ANSI__ for newlib Conflicts: configure libavcodec/pgssubdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure23
1 files changed, 19 insertions, 4 deletions
diff --git a/configure b/configure
index 03d2156..28df15e 100755
--- a/configure
+++ b/configure
@@ -1199,6 +1199,7 @@ THREADS_LIST='
'
ARCH_LIST='
+ aarch64
alpha
arm
avr32
@@ -2738,6 +2739,9 @@ fi
# Deal with common $arch aliases
case "$arch" in
+ aarch64|arm64)
+ arch="aarch64"
+ ;;
arm*|iPad*)
arch="arm"
;;
@@ -2935,6 +2939,17 @@ elif enabled avr32; then
;;
esac
+elif enabled aarch64; then
+
+ case $cpu in
+ armv*)
+ cpuflags="-march=$cpu"
+ ;;
+ *)
+ cpuflags="-mcpu=$cpu"
+ ;;
+ esac
+
fi
add_cflags $cpuflags
@@ -3148,7 +3163,6 @@ case $target_os in
SHFLAGS='-shared -Wl,--out-implib,$(SUBDIR)lib$(FULLNAME).dll.a'
objformat="win32"
enable dos_paths
- add_cppflags -U__STRICT_ANSI__
;;
*-dos|freedos|opendos)
network_extralibs="-lsocket"
@@ -3157,7 +3171,6 @@ case $target_os in
add_cppflags -U__STRICT_ANSI__
;;
linux)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
enable dv1394
;;
irix*)
@@ -3190,10 +3203,9 @@ case $target_os in
enable_weak os2threads
;;
gnu/kfreebsd)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
+ add_cppflags -D_BSD_SOURCE
;;
gnu)
- add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
;;
qnx)
add_cppflags -D_QNX_SOURCE
@@ -3241,8 +3253,10 @@ esac
if check_cpp_condition features.h "defined __UCLIBC__"; then
libc_type=uclibc
+ add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_cpp_condition features.h "defined __GLIBC__"; then
libc_type=glibc
+ add_cppflags -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600
elif check_header _mingw.h; then
libc_type=mingw
check_cpp_condition _mingw.h \
@@ -3256,6 +3270,7 @@ elif check_header _mingw.h; then
fi
elif check_cpp_condition newlib.h "defined _NEWLIB_VERSION"; then
libc_type=newlib
+ add_cppflags -U__STRICT_ANSI__
elif check_func_headers stdlib.h _get_doserrno; then
libc_type=msvcrt
add_compat strtod.o strtod=avpriv_strtod
OpenPOWER on IntegriCloud