|
@@ -121,7 +121,15 @@ AM_CONDITIONAL(USE_SDL, test "${ac_cv_my_have_sdl}" = "yes") |
|
|
# Use OpenCV? |
|
|
# Use OpenCV? |
|
|
ac_cv_my_have_opencv="no" |
|
|
ac_cv_my_have_opencv="no" |
|
|
OPENCV="no" |
|
|
OPENCV="no" |
|
|
PKG_CHECK_MODULES(OPENCV, opencv, [ac_cv_my_have_opencv="yes"], [:]) |
|
|
|
|
|
|
|
|
#FIXME: check for highgui, too. |
|
|
|
|
|
PKG_CHECK_MODULES(OPENCV, opencv, |
|
|
|
|
|
[save_CPPFLAGS="${CPPFLAGS}" |
|
|
|
|
|
CPPFLAGS="${CPPFLAGS} ${OPENCV_CFLAGS}" |
|
|
|
|
|
AC_CHECK_HEADERS(highgui.h, |
|
|
|
|
|
[ac_cv_my_have_opencv="yes"], |
|
|
|
|
|
[:]) |
|
|
|
|
|
CPPFLAGS="${save_CPPFLAGS}"], |
|
|
|
|
|
[:]) |
|
|
if test "${ac_cv_my_have_opencv}" != "no"; then |
|
|
if test "${ac_cv_my_have_opencv}" != "no"; then |
|
|
AC_DEFINE(USE_OPENCV, 1, Define to 1 to use OpenCV) |
|
|
AC_DEFINE(USE_OPENCV, 1, Define to 1 to use OpenCV) |
|
|
fi |
|
|
fi |
|
|