diff --git a/adm_local/unix/config_files/check_OpenCV.m4 b/adm_local/unix/config_files/check_OpenCV.m4 index 02b9e4861..93cd5a6a1 100644 --- a/adm_local/unix/config_files/check_OpenCV.m4 +++ b/adm_local/unix/config_files/check_OpenCV.m4 @@ -46,8 +46,8 @@ if test "$with_opencv" != "no" ; then fi if test "$OPENCV_HOME" == "" ; then - if test "x$OPENCVHOME" != "x" ; then - OPENCV_HOME=$OPENCVHOME + if test "x$OPENCV_INSTALL_DIR" != "x" ; then + OPENCV_HOME=$OPENCV_INSTALL_DIR fi fi