From: Dominic L. <ma...@us...> - 2005-04-12 19:24:01
|
Update of /cvsroot/robotflow/RobotFlow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv376 Modified Files: configure.in Log Message: added detection of OpenCV Index: configure.in =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/configure.in,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** configure.in 2 Jan 2005 14:43:54 -0000 1.49 --- configure.in 12 Apr 2005 19:22:51 -0000 1.50 *************** *** 205,213 **** fi #AC_SUBST(ACE_LIBS) #AC_SUBST(ACE_INCLUDES) AC_SUBST(MARIE_LIBS) AC_SUBST(MARIE_INCLUDES) ! VERSION=$ROBOTFLOW_VERSION --- 205,228 ---- fi + + dnl detection of OpenCV image library + OPENCV_INCLUDES=`pkg-config --cflags opencv --silence-errors` + OPENCV_LIBS=`pkg-config --libs opencv --silence-errors` + OPENCV_FOUND="" + if test -n "$OPENCV_INCLUDES"; then + AC_MSG_RESULT([Using OpenCV lib : $OPENCV_LIBS]) + AM_CONDITIONAL(WITH_OPENCV,true) + OPENCV_FOUND="yes" + else + AC_MSG_RESULT([OpenCV not found, disabled]) + AM_CONDITIONAL(WITH_OPENCV,false) + fi + #AC_SUBST(ACE_LIBS) #AC_SUBST(ACE_INCLUDES) AC_SUBST(MARIE_LIBS) AC_SUBST(MARIE_INCLUDES) ! AC_SUBST(OPENCV_INCLUDES) ! AC_SUBST(OPENCV_LIBS) VERSION=$ROBOTFLOW_VERSION *************** *** 325,328 **** --- 340,349 ---- fi + if test "$OPENCV_FOUND" = "yes"; then + AC_MSG_RESULT([$PACKAGE will build OpenCV based blocks]) + else + AC_MSG_RESULT([$PACKAGE will NOT build OpenCV based blocks (forgot to modify PKG_CONFIG_PATH environment variable?)]) + fi + AC_MSG_RESULT([$PACKAGE will be installed in : $prefix]) |