# for TIZEN-maru
maru="no"
shm="no"
-libav="no"
+libav=""
libpng="no"
-dxva2="no"
-vaapi="no"
+dxva2=""
+vaapi=""
qt="no"
qtabi="5.0"
#
;;
--enable-dxva2) dxva2="yes"
;;
+ --disable-dxva2) dxva2="no"
+ ;;
--enable-vaapi) vaapi="yes"
;;
+ --disable-vaapi) vaapi="no"
+ ;;
--disable-qt) qt="no"
;;
--enable-qt) qt="yes"
--disable-libav disable libav library
--enable-libpng enable png library
--enable-dxva2 enable dxva2 support
- --enable-vaapi enable vaapi support
+ --disable-dxva2 disable dxva2 support
+ --ensable-vaapi enable vaapi support
+ --disable-vaapi disable vaapi support
NOTE: The object files are built at the place where configure is launched
EOF
}
-if test "$dxva2" != "no" ; then
- if test "$mingw32" != "no" ; then
+if test "$dxva2" = "yes" ; then
+ if test "$mingw32" = "yes" ; then
check_dxva2
if test "$dxva2" != "yes" ; then
feature_not_found "dxva2"
error_exit "DXVA2 is supported only on Windows"
fi
else
- check_dxva2
+ if test "$dxva2" != "no" ; then
+ check_dxva2
+ fi
fi
########################################
}
-if test "$vaapi" != "no" ; then
- if test "$linux" != "no" ; then
+if test "$vaapi" = "yes" ; then
+ if test "$linux" = "yes" ; then
check_vaapi
if test "$vaapi" != "yes" ; then
feature_not_found "vaapi"
error_exit "VAAPI is supported only on Linux"
fi
else
- check_vappi
+ if test "$vaapi" != "no" ; then
+ check_vaapi
+ fi
fi
##########################################
libavresample_version="1.0.1"
check_libav() {
-echo "check $1"
+# echo "check $1"
if $pkg_config --exists "$1 >= $2" ; then
libav_cflags=`$pkg_config --cflags $1`
}
-if test "$libav" != "no"; then
+if test "$libav" = "yes"; then
check_libav $libavcodec_package $libavcodec_version
if test "$libav" != "yes"; then
feature_not_found "libav"
feature_not_found "libav"
fi
else
- check_libav $libavcodec_package $libavcodec_version
+ if test "$libav" != "no"; then
+ check_libav $libavcodec_package $libavcodec_version
- check_libav $libavformat_package $libavformat_version
+ check_libav $libavformat_package $libavformat_version
- check_libav $libavutil_package $libavutil_version
+ check_libav $libavutil_package $libavutil_version
- check_libav $libavresample_package $libavresample_version
+ check_libav $libavresample_package $libavresample_version
+ fi
fi
##########################################