Changeset 4692


Ignore:
Timestamp:
Oct 16, 2010, 11:52:51 PM (9 years ago)
Author:
Sam Hocevar
Message:

Look for highgui.h in addition to the opencv package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/configure.ac

    r3626 r4692  
    122122ac_cv_my_have_opencv="no"
    123123OPENCV="no"
    124 PKG_CHECK_MODULES(OPENCV, opencv, [ac_cv_my_have_opencv="yes"], [:])
     124#FIXME: check for highgui, too.
     125PKG_CHECK_MODULES(OPENCV, opencv,
     126 [save_CPPFLAGS="${CPPFLAGS}"
     127  CPPFLAGS="${CPPFLAGS} ${OPENCV_CFLAGS}"
     128  AC_CHECK_HEADERS(highgui.h,
     129   [ac_cv_my_have_opencv="yes"],
     130   [:])
     131  CPPFLAGS="${save_CPPFLAGS}"],
     132 [:])
    125133if test "${ac_cv_my_have_opencv}" != "no"; then
    126134  AC_DEFINE(USE_OPENCV, 1, Define to 1 to use OpenCV)
Note: See TracChangeset for help on using the changeset viewer.