Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 401985 | Differences between
and this patch

Collapse All | Expand All

(-)configure.in (-7 / +7 lines)
Lines 5616-5635 Link Here
5616
                     [MOZ_NATIVE_LIBVPX_DEC_TEST=1],
5616
                     [MOZ_NATIVE_LIBVPX_DEC_TEST=1],
5617
                     ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found]))
5617
                     ([--with-system-libvpx requested but symbol vpx_codec_dec_init_ver not found]))
5618
        if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then
5618
        if test -n "$MOZ_NATIVE_LIBVPX_DEC_TEST" ; then
5619
            AC_MSG_CHECKING([for libvpx version >= v0.9.7])
5619
            AC_MSG_CHECKING([for libvpx version >= v1.0.0])
5620
            dnl We need at least v0.9.7 to fix several crash bugs (for which we
5620
            dnl We need at least v1.0.0 to fix several crash bugs (for which we
5621
            dnl had local patches prior to v0.9.7).
5621
            dnl had local patches prior to v1.0.0).
5622
            dnl
5622
            dnl
5623
            dnl This is a terrible test for the library version, but we don't
5623
            dnl This is a terrible test for the library version, but we don't
5624
            dnl have a good one. There is no version number in a public header,
5624
            dnl have a good one. There is no version number in a public header,
5625
            dnl and testing the headers still doesn't guarantee we link against
5625
            dnl and testing the headers still doesn't guarantee we link against
5626
            dnl the right version. While we could call vpx_codec_version() at
5626
            dnl the right version. While we could call vpx_codec_version() at
5627
            dnl run-time, that would break cross-compiling. There are no
5627
            dnl run-time, that would break cross-compiling. There are no
5628
            dnl additional exported symbols between the v0.9.7 release and the
5628
            dnl additional exported decoder symbols between the v1.0.0 release
5629
            dnl v0.9.6 one to check for.
5629
            dnl and the v0.9.7 one to check for.
5630
            AC_TRY_COMPILE([
5630
            AC_TRY_COMPILE([
5631
                #include <vpx/vpx_decoder.h>
5631
                #include <vpx/vpx_decoder.h>
5632
                #if !defined(VPX_CODEC_USE_INPUT_PARTITION)
5632
                #if !defined(VPX_CODEC_USE_INPUT_FRAGMENTS)
5633
                    #error "test failed."
5633
                    #error "test failed."
5634
                #endif
5634
                #endif
5635
                ],
5635
                ],
Lines 5639-5645 Link Here
5639
                 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include"
5639
                 MOZ_LIBVPX_INCLUDES="-I${LIBVPX_DIR}/include"
5640
                 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"],
5640
                 MOZ_LIBVPX_LIBS="-L${LIBVPX_DIR}/lib -lvpx"],
5641
                [AC_MSG_RESULT([no])
5641
                [AC_MSG_RESULT([no])
5642
                 AC_MSG_ERROR([--with-system-libvpx requested but it is not v0.9.7 or later])])
5642
                 AC_MSG_ERROR([--with-system-libvpx requested but it is not v1.0.0 or later])])
5643
        fi
5643
        fi
5644
        CFLAGS=$_SAVE_CFLAGS
5644
        CFLAGS=$_SAVE_CFLAGS
5645
        LDFLAGS=$_SAVE_LDFLAGS
5645
        LDFLAGS=$_SAVE_LDFLAGS

Return to bug 401985