Diego Biurrun
871b4f3654
configure: Check for xcb as well as xcb-shape before enabling libxcb
...
Newer versions of libxcb have xcb-foo pkg-config files that do not declare
their xcb dependency so that required linker flags will not be generated.
2017-02-15 10:33:34 +01:00
Diego Biurrun
c546147db0
configure: Correctly recurse in do_check_deps()
...
Fixes all sorts of configuration problems introducec by dad7a9c7c0
on non-Linux or non-vanilla configs. Also removes a line made redundant
in that commit.
2017-02-08 21:23:41 +01:00
Diego Biurrun
dad7a9c7c0
configure: Rework dependency handling for conflicting components
...
This makes the feature more visible and obvious.
2017-02-07 19:06:04 +01:00
Diego Biurrun
9127ac5ebc
configure: Add name parameter to require_pkg_config() helper function
...
This allows distinguishing between the internal variable name for
external libraries and the pkg-config package name. Having both
names available avoids special-casing outside the helper function
when the two identifiers do not match.
2017-02-07 19:06:02 +01:00
Diego Biurrun
a25dac976a
Use bitstream_init8() where appropriate
2017-02-07 18:27:21 +01:00
Diego Biurrun
71a49fe25f
configure: Use cppflags check helper functions where appropriate
2017-02-06 15:43:56 +01:00
Diego Biurrun
0ce3761c78
configure: Add stdlib.h #include to CPPFLAGS check helper functions
...
This ensures that added CPPFLAGS are validated against libc headers.
2017-02-06 15:43:56 +01:00
Diego Biurrun
7abdd026df
asm: Consistently uppercase SECTION markers
2017-02-03 11:37:53 +01:00
Diego Biurrun
740b0bf03b
build: Ignore generated .version files
2017-02-03 11:37:53 +01:00
Diego Biurrun
bcaedef118
configure: Add require_cpp_condition() convenience function
...
Simplifies checking for conditions in external library headers and
aborting if said conditions are not met.
2017-02-02 17:49:51 +01:00
Diego Biurrun
aba7fdcc8b
configure: Add require_header() convenience function
...
Simplifies checking for external library headers and aborting if
the external library support was requested, but is not available.
2017-02-02 17:49:51 +01:00
Diego Biurrun
a97563c889
configure: Simplify libxcb check
2017-02-02 17:38:50 +01:00
Diego Biurrun
acfa7a2178
configure: Drop weak dependencies on external libraries for webm muxer
...
Weak dependencies on external libraries do not obviate having to
explicitly enable these libraries, so the weak dependency does not
simplify the configure command line nor have any real effect.
2017-02-02 14:35:44 +01:00
Diego Biurrun
6698832079
configure: Add proper weak dependency of drawtext filter on libfontconfig
2017-02-02 14:35:44 +01:00
Diego Biurrun
24d5680bbc
configure: Simplify inline asm check with appropriate helper function
2017-02-02 14:34:05 +01:00
Diego Biurrun
b3825723dc
configure: Merge compiler/libc/os hacks sections
2017-02-02 14:34:05 +01:00
Diego Biurrun
d4c2103bd3
golomb: Convert to the new bitstream reader
2017-01-31 17:46:19 +01:00
Diego Biurrun
ab87af4163
configure: Add proper weak dependency of avformat on network
2017-01-31 15:50:20 +01:00
Diego Biurrun
ba6a49e60b
configure: Clean up temporary files on interrupt
2017-01-29 20:17:46 +01:00
Diego Biurrun
2bbb5abd87
build: Map -Wall compiler flag to -W3 for MSVC and -Wextra to -W4
...
These are more appropriate warning level equivalents.
2017-01-26 11:53:02 +01:00
Diego Biurrun
6151e9128c
build: Detect blocks C language extension and add it as VDA dependency
...
Newer versions of OS X use the blocks extension in VDA-related headers.
Some compilers, like current gcc, do not support the blocks extension
and fail to compile code using those headers.
2017-01-26 11:53:02 +01:00
Diego Biurrun
9bf262f4c6
configure: Use proper compiler-specific speed flags for hostcc
2017-01-25 13:25:02 +01:00
Diego Biurrun
bf38959a30
configure: Move optflags checks to a more sensible place
2017-01-25 12:01:02 +01:00
Diego Biurrun
2e0e150144
magicyuv: Convert to the new bitstream reader
2017-01-25 10:38:43 +01:00
Diego Biurrun
b061f298f7
truemotion2rt: Convert to the new bitstream reader
2017-01-25 09:55:36 +01:00
Diego Biurrun
b83aea7340
des-test: Pass the proper types to av_des_*() functions
...
Fixes a number of incompatible pointer type warnings.
2017-01-24 13:25:53 +01:00
Diego Biurrun
5c0e2b13eb
swscale-test: const correctness for pointer variable
...
libswscale/swscale-test.c:369:20: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type [-Wincompatible-pointer-types]
libswscale/swscale.h:207:5: note: expected ‘const uint8_t * const* {aka const unsigned char * const*}’ but argument is of type ‘uint8_t ** {aka unsigned char **}’
2017-01-24 13:03:57 +01:00
Diego Biurrun
122de16dd8
Replace cmdutils_common_opts.h by a macro
2017-01-12 11:42:21 +01:00
Diego Biurrun
2a2889e130
build: Remove stray duplicate conditional variable declaration
2017-01-12 10:55:09 +01:00
Diego Biurrun
00b6a76543
hmac: Explicitly convert types at function pointer assignment
...
Fixes a number of warnings of the type
libavutil/hmac.c:61:21: warning: assignment from incompatible pointer type
2017-01-09 15:18:16 +01:00
Diego Biurrun
e435beb1ea
crypto: consistently use size_t as type for length parameters
...
size_t is the correct type to use for sizes.
2017-01-09 15:17:43 +01:00
Diego Biurrun
ee164727dd
configure: Fix typo in incdir variable written to config.sh
...
This fixes includedir lines in pkg-config files broken after 92db508307 .
2016-12-30 14:30:52 +01:00
Diego Biurrun
8a34f36593
build: Add version numbers to "Requires" entries in pkg-config files
...
The (required) version numbers disappeared after edb4348732 .
2016-12-28 17:41:54 +01:00
Diego Biurrun
53618054b6
parser: Add missing #include for printing ISO C99 conversion specifiers
2016-12-25 13:22:50 +01:00
Diego Biurrun
0b77a59336
Use correct printf conversion specifiers for POSIX integer types
2016-12-23 19:30:00 +01:00
Diego Biurrun
92db508307
build: Generate pkg-config files from Make and not from configure
...
This moves work from the configure to the Make stage where it can
be parallelized and ensures that pkgconfig files are updated when
library versions change.
Bug-Id: 449
2016-12-22 12:30:54 +01:00
Diego Biurrun
edb4348732
build: Store library version numbers in .version files
...
This moves work from the configure to the Make stage where it can
be parallelized and ensures that shared libraries are built with
the right version number in the filename.
2016-12-22 12:17:37 +01:00
Diego Biurrun
11a9320de5
build: Move build-system-related helper files to a separate subdirectory
...
This unclutters the top-level directory and groups related files together.
2016-12-22 11:07:50 +01:00
Diego Biurrun
f9edc734e0
ratecontrol: Drop xvid-rc-related struct members unused after a6901b9c6
2016-12-21 11:13:20 +01:00
Diego Biurrun
ee480790c7
build: Add name parameter to check_lib() helper function
...
This allows enabling or disabling the library-related variables from
within the function instead of doing it manually outside of it.
2016-12-16 13:39:22 +01:00
Diego Biurrun
1faffe7e8f
configure: Disentangle vfw32 and user32 lib handling
...
Check for and link against user32 instead, which also fixes
the missing dependency of dxva2 on user32 with MSVC.
2016-12-16 13:37:33 +01:00
Diego Biurrun
05a603a94e
ppc: Merge types_altivec.h into util_altivec.h
...
There is no point in keeping the two separate.
2016-12-14 14:08:43 +01:00
Diego Biurrun
ea7ee4b4e3
ppc: Centralize compiler-specific altivec.h #include handling in one place
...
Also move #includes into canonical order where appropriate.
2016-12-14 14:08:43 +01:00
Diego Biurrun
39929e55eb
ppc: hevcdsp: Use shorthands for vector types
...
This is more consistent and fixes compilation with clang.
2016-12-14 14:08:43 +01:00
Diego Biurrun
554e55bbf0
decode.h: Add missing headers to fix standalone compilation
2016-12-14 14:08:43 +01:00
Diego Biurrun
6aa4ba7131
dxva2: Keep code shared between dxva2 and d3d11va under the correct #if
...
This partially reverts commit ac648bb835 .
2016-12-12 13:44:25 +01:00
Diego Biurrun
fc368497f2
configure: Add missing dxva2 dependency for dxva2_lib
2016-12-12 00:15:38 +01:00
Diego Biurrun
f1248fae90
configure: Handle dxva2 optional components in the standard way
2016-12-11 09:27:40 +01:00
Diego Biurrun
a6901b9c6b
Drop libxvid rate control support for mpegvideo encoding
...
The feature has outlived is usefulness and complicates the code.
2016-12-11 09:27:40 +01:00
Diego Biurrun
ac648bb835
dxva2: Simplify some ifdefs
2016-12-11 09:27:40 +01:00
Diego Biurrun
f8a1ead0ae
build: Add -D_XOPEN_SOURCE=600 to CPPFLAGS on Cygwin
...
This is required to make certain math defines visible on modern Cygwin.
2016-12-10 16:14:25 +01:00
Diego Biurrun
39fbcf8f76
configure: Fix _libs vs. _extralibs oversight
2016-12-10 15:06:34 +01:00
Diego Biurrun
be2d555c98
build: Use _extralibs variable names instead of _libs everywhere
...
This makes naming more consistent and simplifies extralibs-related changes.
2016-12-09 18:57:03 +01:00
Diego Biurrun
0507cd5b9f
build: Rename host_libs/HOSTLIBS variables to host_extralibs/HOSTEXTRALIBS
...
This is more in line with the other related variable names.
2016-12-09 18:51:23 +01:00
Diego Biurrun
a7101eb40e
configure: Simplify some library checks via check_lib()
2016-12-09 18:40:47 +01:00
Diego Biurrun
1818a640cf
build: Fix dependencies for alsa/jack/sndio support
...
These components should depend on the availability of the respective
libraries, not just on the availability of the respective headers.
2016-12-09 08:42:34 +01:00
Diego Biurrun
af451ac0de
configure: Drop redundant and partly bogus vaapi/vdpau header checks
...
These are taken care of more correctly by the library checks.
2016-12-09 08:42:08 +01:00
Diego Biurrun
932cc6496e
vdpau: Do not #include vdpau_x11.h from the main vdpau header
...
That header should only be included in the special bits that use X11 code.
2016-12-09 08:41:53 +01:00
Diego Biurrun
92e6b31c3b
dxva2: Adjust multiple inclusion guard names to follow convention
2016-12-09 08:41:52 +01:00
Diego Biurrun
d5759701a8
libkvazaar: Add missing header #includes
...
This fixes compilation after the next version bump.
2016-12-08 21:34:30 +01:00
Diego Biurrun
892acc7010
configure: Fail if cuda was enabled and is not available
...
This is the standard behavior for external libraries.
2016-12-08 20:12:24 +01:00
Diego Biurrun
f55c0a64ae
build: Drop stray golomb dependencies
2016-12-08 20:12:24 +01:00
Diego Biurrun
fbec58daa2
build: Add an internal component for hevc_ps code
...
This allows expressing dependencies in a more correct way.
2016-12-08 20:12:23 +01:00
Diego Biurrun
f912fd767e
Add missing #includes for standalone spherical-information-related headers
2016-12-08 20:12:23 +01:00
Diego Biurrun
624aa8ab22
build: Add missing Makefile entries and ifdefs for QSV hwaccels
2016-12-07 15:46:57 +01:00
Diego Biurrun
c833c2034f
build: Ensure that the "all" target appears before all Makefile includes
...
Otherwise builds without explicit target result in silent no-ops.
2016-12-07 15:46:57 +01:00
Diego Biurrun
6bd9590b33
build: Have old H.264/HEVC nvenc encoders select their new counterparts
...
This makes sense and takes care of missing build dependencies.
2016-12-07 12:13:23 +01:00
Diego Biurrun
3e105d0884
build: Move entries related to building TOOLS to a subdirectory Makefile
2016-12-07 11:02:31 +01:00
Diego Biurrun
4104cc5622
build: Warn that reconfiguration is necessary if version.h files changed
...
The library versions are stored in the config.mak file and are used
to derive shared library names.
2016-12-07 11:02:31 +01:00
Diego Biurrun
404cb74793
configure: Pass CFLAGS_HEADERS through the right CFLAGS filter
...
The generic parameter names used for CFLAGS in configure must be filtered
for each compiler and replaced by the equivalent flag for that compiler.
2016-12-06 17:49:05 +01:00
Diego Biurrun
9265364bec
build: Separate avisynth and avxsynth support
...
This simplifies the code.
2016-12-06 17:49:05 +01:00
Diego Biurrun
3d6135eacf
configure: Simplify OMX check
2016-12-06 08:33:08 +01:00
Diego Biurrun
601f8dde13
configure: Move COMPONENT_LIST to the bottom of CONFIG_LIST
...
This ensures that dependencies are resolved correctly. COMPONENT_LIST
can contain parts that depend on previous entries of CONFIG_LIST.
2016-12-06 08:33:07 +01:00
Diego Biurrun
29d2e03ed9
configure: Simplify and fix avfoundation indev handling
...
Handle extralibs in the standard way, add missing pthreads dependency.
Also globally check for -fobj-arc with Objective-C compilers since
that option is useful for other Objective-C code as well.
2016-12-05 18:07:24 +01:00
Diego Biurrun
5d45fe7da9
build: Add EXTRALIBS to TOOLS linker command
...
EXTRALIBS contains general and platform-specific extra libraries
that should be part of all linker commands.
2016-12-05 16:39:52 +01:00
Diego Biurrun
2a09644076
configure: Separate package name and version requirements in helper functions
...
The unadorned package name is needed to derive package-related variable names.
2016-12-05 16:37:55 +01:00
Diego Biurrun
ffb9025f39
configure: Simplify MMAL check
2016-12-05 16:15:40 +01:00
Diego Biurrun
660470cd62
build: Add missing audio_frame_queue dependency for libwavpack encoder
2016-12-05 16:13:05 +01:00
Diego Biurrun
e1dc5358af
build: Create a component for MPEG audio header decoding
...
Fixes standalone compilation of the libmp3lame encoder.
2016-12-05 16:13:05 +01:00
Diego Biurrun
0fdc9f81a0
build: Add missing hevc_ps dependency for QSV HEVC encoder
2016-12-05 16:13:04 +01:00
Diego Biurrun
6ef3360a38
configure: Add misssing qpeldsp dependency to mss2 decoder
2016-12-03 14:06:36 +01:00
Diego Biurrun
14bba44fb2
build: Drop support for configuring library name suffixes
...
It is of doubtful utility, adds complexity and no known users exist.
2016-12-03 09:15:01 +01:00
Diego Biurrun
1ea77aae92
configure: Drop bogus xcb_event variables
2016-12-03 09:15:01 +01:00
Diego Biurrun
3794062ab1
Remove Plan 9 support
...
Supporting the system was a nice joke for the 9 release, but it has
run its course. Nowadays Plan 9 receives no testing and has no
practical usefulness.
2016-12-03 09:15:01 +01:00
Diego Biurrun
4a1ef54398
build: Drop support for old versions of libdc1394
...
The libdc1394 API transition was finished close to a decade ago.
2016-12-03 09:15:01 +01:00
Diego Biurrun
2575b1917b
build: Add separate flags for checkheaders targets
...
This allows filtering out some warning noise.
2016-12-03 08:00:33 +01:00
Diego Biurrun
984e50e74b
build: Add -Wpedantic and -Wextra to extra warning flags
...
Also drop -Winline from set of warning flags as it only produces noise.
2016-12-03 08:00:33 +01:00
Diego Biurrun
0a35f128f3
cabac: x86: Give optimizations header a more meaningful name
2016-12-01 08:23:54 +01:00
Diego Biurrun
e4382a4ab4
hevc: Eliminate pointless variable indirection
2016-11-30 14:11:44 +01:00
Diego Biurrun
5c89022542
hevc: Drop pointless av_unused attribute
2016-11-30 14:11:43 +01:00
Diego Biurrun
0983f9117f
metasound: Drop unused tables
2016-11-30 13:44:05 +01:00
Diego Biurrun
c21d78a903
configure: Integrate X11 checks into vaapi/vdpau checks
2016-11-29 19:14:07 +01:00
Diego Biurrun
8b56dbe743
configure: Do not add newlines in filter()/filter_out() functions
2016-11-29 18:43:05 +01:00
Diego Biurrun
9254344e11
configure: Move hardware-accelerated codec deps out of hwaccel section
2016-11-29 15:10:58 +01:00
Diego Biurrun
d4f2a681cb
configure: MMAL-related decoders should depend on, not select, mmal
2016-11-29 15:10:58 +01:00
Diego Biurrun
212c6a1d70
mjpegdec: Check return values of functions that may fail
2016-11-29 13:13:35 +01:00
Diego Biurrun
3ee5f25d37
dxva2: Adjust printf length modifiers where appropriate
2016-11-29 13:13:35 +01:00
Diego Biurrun
239d02eff3
avisynth: Cast to the right type when loading avisynth library functions
...
Fixes a number of related warnings.
2016-11-29 13:13:35 +01:00
Diego Biurrun
eb135516e6
ac3enc: Avoid unnecessary macro indirections
2016-11-28 17:19:30 +01:00
Diego Biurrun
f0d3e43bd7
ac3enc: Reshuffle functions to avoid forward declarations
2016-11-28 17:19:30 +01:00