X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fconfigure.ac;h=d54d490547e7dcd79c14b83353fd1d7cc010454b;hb=b55798fc64eee00c6fab3b4763e791befb7275f9;hp=4fe5c0f00c12ae664999e0f20b97fba8d556056c;hpb=667ff598ae2a94f48c7056aee1d77d7cde39066b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/configure.ac b/cinelerra-5.1/configure.ac index 4fe5c0f0..d54d4905 100644 --- a/cinelerra-5.1/configure.ac +++ b/cinelerra-5.1/configure.ac @@ -9,7 +9,13 @@ AC_LANG_C AC_PROG_CXX CFG_CFLAGS+=" -fno-omit-frame-pointer -fno-math-errno -fno-signed-zeros" -CFG_CFLAGS+=" -pthread -Wall -Wno-unused-result -Wno-format-truncation" +CFG_CFLAGS+=" -pthread -Wall" +# misguided pedantic warnings +CFG_CFLAGS+=" -Wno-unused-result" +CFG_CFLAGS+=" -Wno-stringop-truncation" +CFG_CFLAGS+=" -Wno-stringop-overflow" +CFG_CFLAGS+=" -Wno-format-truncation" +CFG_CFLAGS+=" -Wno-format-overflow" CFG_CFLAGS+=" -D__STDC_CONSTANT_MACROS" CFG_CFLAGS+=" -D__STDC_LIMIT_MACROS" CFG_CFLAGS+=" -DPNG_SKIP_SETJMP_CHECK=1" @@ -126,7 +132,7 @@ PKG_3RD([fdk],[auto], [ libAACdec/include libAACenc/include libSYS/include ]) PKG_3RD([ffmpeg],[yes], - [ffmpeg-3.3.4], + [ffmpeg-3.4.1], [ libavutil/libavutil.a \ libavcodec/libavcodec.a \ libpostproc/libpostproc.a \ @@ -142,7 +148,7 @@ if test "x$WANT_GIT_FFMPEG" != "xno" ; then fi PKG_3RD([fftw],[auto], - [fftw-3.3.6-pl2], + [fftw-3.3.7], [ .libs/libfftw3.a \ libbench2/libbench2.a \ rdft/scalar/r2cb/.libs/librdft_scalar_r2cb.a \ @@ -156,8 +162,7 @@ PKG_3RD([fftw],[auto], dft/scalar/.libs/libdft_scalar.a \ dft/.libs/libdft.a \ kernel/.libs/libkernel.a \ - simd-support/.libs/libsimd_support.a \ - simd-support/.libs/libsimd_sse2_nonportable.a ], + simd-support/.libs/libsimd_support.a ], [ api ]) PKG_3RD([flac],[auto], @@ -178,7 +183,7 @@ PKG_3RD([giflib],[yes], [ lib ]) PKG_3RD([ilmbase],[auto], - [ilmbase-2.2.0], + [ilmbase-2.2.1], [ Iex/.libs/libIex.a \ IexMath/.libs/libIexMath.a \ Half/.libs/libHalf.a \ @@ -189,7 +194,7 @@ PKG_3RD([ilmbase],[auto], PKG_DEF([ladspa], [ladspa-0.4.17], [], []) PKG_3RD([lame],[auto], - [lame-3.99.5], + [lame-3.100], [ libmp3lame/.libs/libmp3lame.a \ mpglib/.libs/libmpgdecoder.a ], [ include ]) @@ -223,6 +228,11 @@ PKG_3RD([libjpeg],[auto], simd/.libs/libsimd.a ], [ . ]) +PKG_3RD([opus],[auto], + [opus-1.2.1], + [ .libs/libopus.a ], + [ include ]) + PKG_3RD([openjpeg],[auto], [openjpeg-2.1.0-20160221], [ bin/libopenjp2.a ], @@ -272,7 +282,7 @@ PKG_3RD([mjpegtools],[yes], [ . lavtools utils ]) PKG_3RD([openexr],[auto], - [openexr-2.2.0], + [openexr-2.2.1], [ IlmImf/.libs/libIlmImf.a \ IlmImfUtil/.libs/libIlmImfUtil.a ], [ IlmImf config ]) @@ -287,7 +297,7 @@ PKG_3RD([openexr],[auto], # []) # PKG_3RD([tiff],[auto], - [tiff-4.0.6], + [tiff-4.0.9], [ libtiff/.libs/libtiff.a \ libtiff/.libs/libtiffxx.a \ port/.libs/libport.a ],[ @@ -299,12 +309,12 @@ PKG_3RD([twolame],[auto], [ libtwolame ]) PKG_3RD([x264],[auto], - [x264-snapshot-20170426-2245], + [x264-snapshot-20180118-2245], [ libx264.a ], [ . ]) PKG_3RD([x265],[auto], - [x265_2.5], + [x265_v2.6], [ libx265.a ], [ . source ]) @@ -323,7 +333,6 @@ AC_ARG_ENABLE([$1], CHECK_ENABLE([static-build], [STATIC_BUILD], [build static], [auto]) CHECK_ENABLE([x264_hidepth], [X264_HIDEPTH], [build x264 10bit], [no]) -CHECK_ENABLE([x265_hidepth], [X265_HIDEPTH], [build x265 10/12bit], [no]) test "x$WANT_STATIC_BUILD" = "xauto" && WANT_STATIC_BUILD=$WANT_CINBIN_BUILD @@ -349,6 +358,19 @@ fi CHECK_PROG(PACTL, [pactl]) WANT_PACTL=$PROG_PACTL +# libx264 nasm fix +AC_MSG_CHECKING([nasm x264 compatible]) +echo "vmovdqa32 [[eax]]{k1}{z}, zmm0" > conftest.asm +nasm conftest.asm -o conftest.o > /dev/null 2>&1 +if test $? != 0 ; then + AC_MSG_RESULT([no]) + AC_MSG_WARN([libx264 built without assembly code]) + X264_CFG_PARAMS="$X264_CFG_PARAMS --disable-asm" +else + AC_MSG_RESULT([yes]) +fi +rm -f conftest.asm conftest.o + AC_CHECK_DECL([X_HAVE_UTF8_STRING],,[no_utf=yes],[#include ]) if test "$no_utf" = "yes"; then AC_MSG_ERROR([Cinelerra requires utf8 support in X Windows.]) @@ -453,8 +475,6 @@ CHECK_LIB([fdk], [fdk-aac], [faacDecInit]) CHECK_HEADERS([fdk], [fdk headers], [fdk-aac/genericStds.h]) CHECK_LIB([jbig], [jbig], [jbg_dec_init]) CHECK_LIB([vdpau], [vdpau], [vdp_device_create_x11]) -CHECK_LIB([opus], [opus], [opus_multistream_decoder_create]) -CHECK_HEADERS([opus], [libopus headers], [opus/opus_multistream.h]) #if test "x$HAVE_mjpegtools" = "xyes"; then #CFG_CFLAGS+=" -I/usr/include/mjpegtools" @@ -524,6 +544,10 @@ CHECK_WANT([ESOUND], [no], [use esd], [ CHECK_LIB([audiofile], [audiofile], [afOpenFile]) CHECK_HEADERS([audiofile], [audiofile headers], [audiofile.h])]) +CHECK_WANT([LIBOPUS], [auto], [use libopus], [ + CHECK_LIB([opus], [opus], [opus_multistream_decoder_create]) + CHECK_HEADERS([opus], [libopus headers], [opus/opus_multistream.h])]) + CHECK_WANT([DL], [auto], [system has libdl], [ CHECK_LIB([DL], [dl], [dlopen])]) @@ -540,7 +564,7 @@ CHECK_WANT([OPENEXR], [auto], [use openexr], [ saved_LIBS="$LIBS" saved_CXXFLAGS="$CXXFLAGS" # ilmbase libs - LIBS=" -lIlmImf -lIlmThread -lIex" + LIBS=" -lIlmImf -lIlmThread -lIex -lpthread" CXXFLAGS="-I/usr/include/OpenEXR" AC_LANG_PUSH(C++) AC_LINK_IFELSE([AC_LANG_PROGRAM([[ @@ -660,6 +684,7 @@ PKG_PROVIDE([twolame]) PKG_PROVIDE([x264]) PKG_PROVIDE([x265]) PKG_PROVIDE([libvpx]) +PKG_PROVIDE([opus], [$WANT_OPUS]) AC_SUBST(STATIC_BLDS) AC_SUBST(SHARED_LIBS) @@ -721,7 +746,6 @@ fi AC_SUBST(EXTRA_LIBS) AC_SUBST(FFMPEG_EXTRA_CFG) AC_SUBST(WANT_X264_HIDEPTH) -AC_SUBST(WANT_X265_HIDEPTH) AC_SUBST(CFG_CFLAGS) AC_SUBST(CFG_CXXFLAGS) @@ -779,10 +803,7 @@ for flg in $CFG_CXXFLAGS; do echo "CXXFLAGS += $flg"; done echo "" if test $WANT_X264_HIDEPTH = "yes" ; then - echo "x264.cfg_params := --enable-static --bit-depth=10" -fi -if test $WANT_X265_HIDEPTH = "yes" ; then - echo "x265.cfg_params := -DENABLE_SHARED=no -DHIGH_BIT_DEPTH:BOOL=ON" # -DMAIN12:BOOL=ON" + X264_CFG_PARAMS="$X264_CFG_PARAMS --bit-depth=10" fi for pkg in $STATIC_PKGS; do @@ -847,3 +868,6 @@ fi if test "x$HAVE_opus" = "xyes"; then echo 'ffmpeg.cflags+=" -I/usr/include/opus"' fi +if test "x$X264_CFG_PARAMS" != "x" ; then + echo "x264.cfg_params :=$X264_CFG_PARAMS --enable-static --enable-pic" +fi