--- configure.orig 2016-02-01 01:52:15.000000000 +0100 +++ configure 2017-02-05 21:38:23.511273000 +0100 @@ -324,7 +324,7 @@ --extra-cxxflags=ECFLAGS add ECFLAGS to CXXFLAGS [$CXXFLAGS] --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS] --extra-ldexeflags=ELDFLAGS add ELDFLAGS to LDEXEFLAGS [$LDEXEFLAGS] - --extra-ldlibflags=ELDFLAGS add ELDFLAGS to LDLIBFLAGS [$LDLIBFLAGS] + --extraibflags=ELDFLAGS add ELDFLAGS to LDLIBFLAGS [$LDLIBFLAGS] --extra-libs=ELIBS add ELIBS [$ELIBS] --extra-version=STRING version string suffix [] --optflags=OPTFLAGS override optimization-related compiler flags @@ -2886,12 +2886,7 @@ host_os=$target_os_default # machine -if test "$target_os_default" = aix; then - arch_default=$(uname -p) - strip_default="strip -X32_64" -else - arch_default=$(uname -m) -fi +arch_default=$(uname -p) cpu="generic" intrinsics="none" @@ -3072,7 +3067,7 @@ --extra-ldexeflags=*) add_ldexeflags $optval ;; - --extra-ldlibflags=*) + --extraibflags=*) add_ldlibflags $optval ;; --extra-libs=*) @@ -4315,6 +4310,8 @@ dragonfly) disable symver ;; + bsdsunix) + ;; freebsd) ;; bsd/os) @@ -5003,8 +5000,8 @@ if check_func dlopen; then ldl= -elif check_func dlopen -ldl; then - ldl=-ldl +elif check_func dlopen ; then + ldl= fi frei0r_filter_extralibs='$ldl' @@ -5169,9 +5166,9 @@ elif check_func pthread_join -pthreads && check_func pthread_create -pthreads; then add_cflags -pthreads add_extralibs -pthreads - elif check_func pthread_join -ldl -pthread && check_func pthread_create -ldl -pthread; then - add_cflags -ldl -pthread - add_extralibs -ldl -pthread + elif check_func pthread_join -pthread && check_func pthread_create -ldl -pthread; then + add_cflags -pthread + add_extralibs -pthread elif check_func pthread_join -lpthreadGC2 && check_func pthread_create -lpthreadGC2; then add_extralibs -lpthreadGC2 elif check_lib pthread.h pthread_join -lpthread && check_lib pthread.h pthread_create -lpthread; then @@ -5208,7 +5205,7 @@ enabled avfoundation_indev && { check_lib2 CoreGraphics/CoreGraphics.h CGGetActiveDisplayList -framework CoreGraphics || check_lib2 ApplicationServices/ApplicationServices.h CGGetActiveDisplayList -framework ApplicationServices; } enabled avisynth && { { check_lib2 "windows.h" LoadLibrary; } || - { check_lib2 "dlfcn.h" dlopen -ldl; } || + { check_lib2 "dlfcn.h" dlopen ; } || die "ERROR: LoadLibrary/dlopen not found for avisynth"; } enabled decklink && { check_header DeckLinkAPI.h || die "ERROR: DeckLinkAPI.h header not found"; } enabled frei0r && { check_header frei0r.h || die "ERROR: frei0r.h header not found"; } @@ -5236,7 +5233,7 @@ enabled libfreetype && require_libfreetype enabled libfribidi && require_pkg_config fribidi fribidi.h fribidi_version_info enabled libgme && require libgme gme/gme.h gme_new_emu -lgme -lstdc++ -enabled libgsm && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do +enabled libgsm && { for gsm_hdr in "gsm.h" "gsm.h"; do check_lib "${gsm_hdr}" gsm_create -lgsm && break; done || die "ERROR: libgsm not found"; } enabled libilbc && require libilbc ilbc.h WebRtcIlbcfix_InitDecode -lilbc @@ -5247,7 +5244,7 @@ enabled libnut && require libnut libnut.h nut_demuxer_init -lnut enabled libopencore_amrnb && require libopencore_amrnb opencore-amrnb/interf_dec.h Decoder_Interface_init -lopencore-amrnb enabled libopencore_amrwb && require libopencore_amrwb opencore-amrwb/dec_if.h D_IF_init -lopencore-amrwb -enabled libopencv && require_pkg_config opencv opencv/cxcore.h cvCreateImageHeader +enabled libopencv && require_pkg_config opencv-core opencv2/core/core_c.h cvCreateImageHeader enabled libopenh264 && require_pkg_config openh264 wels/codec_api.h WelsGetCodecVersion enabled libopenjpeg && { check_lib openjpeg.h opj_version -lopenmj2 -DOPJ_STATIC || check_lib openjpeg-1.5/openjpeg.h opj_version -lopenjpeg -DOPJ_STATIC || @@ -6013,7 +6010,7 @@ SRC_PATH:=\$(SRC_PATH:.%=..%) endif CC_IDENT=$cc_ident -ARCH=$arch +FFMPEG_ARCH=$arch INTRINSICS=$intrinsics CC=$cc CXX=$cxx @@ -6094,7 +6091,7 @@ CFLAGS-ffplay=$sdl_cflags ZLIB=$($ldflags_filter -lz) LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD -EXTRALIBS=$extralibs +EXTRALIBS=-L/usr/local/lib $extralibs COMPAT_OBJS=$compat_objs EXEOBJS=$exeobjs INSTALL=$install @@ -6227,7 +6224,7 @@ libdir=$libdir includedir=$incdir -Name: $name +Name: ${name}${build_suffix} Description: $comment Version: $version Requires: $(enabled shared || echo $requires) @@ -6241,10 +6238,10 @@ mkdir -p doc/examples/pc-uninstalled includedir=${source_path} [ "$includedir" = . ] && includedir="\${pcfiledir}/../../.." - cat < doc/examples/pc-uninstalled/$name.pc + cat < doc/examples/pc-uninstalled/${name}${build_suffix}.pc prefix= exec_prefix= -libdir=\${pcfiledir}/../../../$name +libdir=\${pcfiledir}/../../../${name}${build_suffix} includedir=${includedir} Name: $name