1 dnl Process this file with autoconf to produce a configure script
3 m4_esyscmd([./git-version-gen .tarball-version]),
4 [authors@their.domains])
6 AM_INIT_AUTOMAKE([dist-bzip2])
8 AC_CONFIG_MACRO_DIR([m4])
10 dnl kernel style compile messages
11 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
13 dnl checks for programs
20 dnl checks for header files
23 dnl Checks for typedefs, structures and compiler characteristics
33 AM_CONDITIONAL(HAVE_WINDOWS, test x"$have_windows" = x"yes")
35 dnl checks for libraries
39 [Disable building gui]
41 [enable_gui=$enableval], [enable_gui="yes"])
42 if test x"$enable_gui" = x"yes"
44 PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.0, , enable_gui=no)
46 AM_CONDITIONAL(ENABLE_GUI, test x"$enable_gui" = x"yes")
50 AC_ARG_ENABLE(graphicsmagick,
52 [--disable-graphicsmagick],
53 [Disable building graphicsmagick]
55 [enable_graphicsmagick=$enableval], [enable_graphicsmagick="yes"])
56 if test x"$enable_graphicsmagick" = x"yes"
58 PKG_CHECK_MODULES(GRAPHICSMAGICK, GraphicsMagick >= 1.3.16, , enable_graphicsmagick=no)
60 if test x"$enable_graphicsmagick" = x"yes"
65 AC_ARG_ENABLE(imagemagick,
67 [--disable-imagemagick],
68 [Disable building imagemagick]
70 [enable_imagemagick=$enableval], [enable_imagemagick="yes"])
71 if test x"$enable_imagemagick" = x"yes"
73 PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick >= 6.0.0, , enable_imagemagick=no)
75 if test x"$enable_imagemagick" = x"yes"
80 AM_CONDITIONAL(ENABLE_MAGICK, test x"$somethingmagick" = x"yes")
85 [Disable building opencv]
87 [enable_opencv=$enableval], [enable_opencv="yes"])
88 if test x"$enable_opencv" = x"yes"
90 PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.1, , enable_opencv=no)
92 AM_CONDITIONAL(ENABLE_OPENCV, test x"$enable_opencv" = x"yes")
102 AS_IF([test "x$have_windows" == xno],[AC_MSG_NOTICE( Compiling for Unix )],[AC_MSG_NOTICE([ Compiling for Windows ])])
104 AS_IF([test "x$enable_gui" == xyes],[AC_MSG_NOTICE( Compiled with GTK (GUI) )],[AC_MSG_NOTICE([
106 ** Not compiled with GTK (GUI) support **
108 In order to use GUI, GTK+ 2.0 or higher must be installed.
111 AS_IF([test "x$somethingmagick" == xyes],[AC_MSG_NOTICE( Compiled with ImageMagick or GraphicsMagick )],[AC_MSG_NOTICE([
113 ** Not compiled with GraphicsMagick and ImageMagick support **
115 Only PPM image files can be loaded and saved.
118 AS_IF([test "x$enable_opencv" == xyes],[AC_MSG_NOTICE( Compiled with OpenCV )],[AC_MSG_NOTICE([
120 ** Not compiled with OpenCV support **
122 It will not be possible to calculate motion flow vectors to improve colorization of moving objects.
125 AS_IF([test "x$with_debug_algo" == xyes],[AC_MSG_NOTICE( Compiled with debugging )],[])