diff mbox series

[FFmpeg-devel] configure: add OpenVino v.2022.x support

Message ID PH7PR11MB5887027AF6937DA80DB24F7EDAE29@PH7PR11MB5887.namprd11.prod.outlook.com
State New
Headers show
Series [FFmpeg-devel] configure: add OpenVino v.2022.x support | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Saliev, Rafik F Dec. 12, 2022, 2:39 p.m. UTC
Since OpenVino release 2022.1, the C API library filename changed from
'libinference_engine_c_api.so' to 'libopenvino_c.so'.
This commit reflects such rename in the 'configure' script.

Signed-off-by: Rafik Saliev <rafik.f.saliev@intel.com>
---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/configure b/configure
index f4eedfc207..92cd2cbdfb 100755
--- a/configure
+++ b/configure
@@ -6635,7 +6635,8 @@  enabled libopenh264       && require_pkg_config libopenh264 openh264 wels/codec_
 enabled libopenjpeg       && { check_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version ||
                                { require_pkg_config libopenjpeg "libopenjp2 >= 2.1.0" openjpeg.h opj_version -DOPJ_STATIC && add_cppflags -DOPJ_STATIC; } }
 enabled libopenmpt        && require_pkg_config libopenmpt "libopenmpt >= 0.2.6557" libopenmpt/libopenmpt.h openmpt_module_create -lstdc++ && append libopenmpt_extralibs "-lstdc++"
-enabled libopenvino       && require libopenvino c_api/ie_c_api.h ie_c_api_version -linference_engine_c_api
+enabled libopenvino       && { check_lib libopenvino c_api/ie_c_api.h ie_c_api_version -linference_engine_c_api ||
+                                 require libopenvino c_api/ie_c_api.h ie_c_api_version -lopenvino_c; }
 enabled libopus           && {
     enabled libopus_decoder && {
         require_pkg_config libopus opus opus_multistream.h opus_multistream_decoder_create