summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorLuca Bigliardi <[email protected]>2009-07-09 15:40:27 (GMT)
committer Luca Bigliardi <[email protected]>2009-07-09 15:40:27 (GMT)
commite68059e5880c3697b00b505dbd01fffda33cb898 (patch)
treeb344cae9d051672bb14919563dd5b9ec85fdb213 /configure.ac
parenteb2c60f6354748f15327bf5a53dab588470ffc6e (diff)
configure refinements (2)
- Print informations about not-found libraries in the summary
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac29
1 files changed, 13 insertions, 16 deletions
diff --git a/configure.ac b/configure.ac
index 7ce34ea..44ce0ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,18 +71,6 @@ if test x$have_cpuflags = xyes; then
fi
fi
-
-HAVE_OPENCV=false
-PKG_CHECK_MODULES(OPENCV, opencv >= 1.0.0, [HAVE_OPENCV=true], [true])
-if test x$HAVE_OPENCV = xfalse; then
- AC_MSG_WARN([*** opencv >= 1.0.0 not found - this program enables optional plugin with the Open Source Computer Vision library >= 1.0.0 http://opencvlibrary.sourceforge.net/ ***])
-else
- OPENCV_CFLAGS="$OPENCV_CFLAGS -DOPENCV_PREFIX=`pkg-config opencv --variable=prefix`"
-fi
-AM_CONDITIONAL([HAVE_OPENCV], [test x$HAVE_OPENCV = xtrue])
-
-
-
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([float.h inttypes.h limits.h stdlib.h string.h])
@@ -96,12 +84,15 @@ AC_C_INLINE
AC_FUNC_MALLOC
AC_CHECK_FUNCS([floor memset pow sqrt])
+HAVE_OPENCV=false
+PKG_CHECK_MODULES(OPENCV, opencv >= 1.0.0, [HAVE_OPENCV=true], [true])
+AM_CONDITIONAL([HAVE_OPENCV], [test x$HAVE_OPENCV = xtrue])
+if test x$HAVE_OPENCV = xtrue; then
+ OPENCV_CFLAGS="$OPENCV_CFLAGS -DOPENCV_PREFIX=`pkg-config opencv --variable=prefix`"
+fi
+
HAVE_GAVL=false
PKG_CHECK_MODULES(GAVL, gavl >= 0.2.3, [HAVE_GAVL=true], [true])
-if test x$HAVE_GAVL = xfalse; then
- AC_MSG_WARN([*** gavl >= 0.2.3 not found - this program enables optional plugin with the gmerlin audio
- video library >= 0.2.3 http://gmerlin.sourceforge.net/ ***])
-fi
AM_CONDITIONAL([HAVE_GAVL], [test x$HAVE_GAVL = xtrue])
AC_CONFIG_FILES([
@@ -131,12 +122,18 @@ if test x$HAVE_OPENCV = xtrue; then
echo " - opencv: YES"
else
echo " - opencv: NO"
+echo " opencv >= 1.0.0 not found - this program enables optional"
+echo " plugin with the Open Source Computer Vision library >= 1.0.0"
+echo " http://opencvlibrary.sourceforge.net/"
fi
if test x$HAVE_GAVL = xtrue; then
echo " - gavl: YES"
else
echo " - gavl: NO"
+echo " gavl >= 0.2.3 not found - this program enables optional"
+echo " plugin with the gmerlin audio video library >= 0.2.3"
+echo " http://gmerlin.sourceforge.net/"
fi
echo