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 # disabled due to problems with api compatibilty with imagemagick
51 #AC_ARG_ENABLE(graphicsmagick,
53 # [--disable-graphicsmagick],
54 # [Disable building graphicsmagick]
56 # [enable_graphicsmagick=$enableval], [enable_graphicsmagick="yes"])
57 #if test x"$enable_graphicsmagick" = x"yes"
59 # PKG_CHECK_MODULES(GRAPHICSMAGICK, GraphicsMagick >= 1.3.16, , enable_graphicsmagick=no)
61 #if test x"$enable_graphicsmagick" = x"yes"
66 AC_ARG_ENABLE(imagemagick,
68 [--disable-imagemagick],
69 [Disable building imagemagick]
71 [enable_imagemagick=$enableval], [enable_imagemagick="yes"])
72 if test x"$enable_imagemagick" = x"yes"
74 PKG_CHECK_MODULES(IMAGEMAGICK, ImageMagick >= 6.0.0, , enable_imagemagick=no)
76 if test x"$enable_imagemagick" = x"yes"
81 AM_CONDITIONAL(ENABLE_MAGICK, test x"$somethingmagick" = x"yes")
86 [Disable building opencv]
88 [enable_opencv=$enableval], [enable_opencv="yes"])
89 if test x"$enable_opencv" = x"yes"
91 PKG_CHECK_MODULES(OPENCV, opencv >= 2.3.1, , enable_opencv=no)
93 AM_CONDITIONAL(ENABLE_OPENCV, test x"$enable_opencv" = x"yes")
104 AS_IF([test "x$have_windows" == xno],[AC_MSG_NOTICE( Compiling for Unix )],[AC_MSG_NOTICE([ Compiling for Windows ])])
106 AS_IF([test "x$enable_gui" == xyes],[AC_MSG_NOTICE( Compiling with GTK (GUI) )],[AC_MSG_NOTICE([
108 ** Not compiling with GTK (GUI) support **
110 In order to use GUI, GTK+ 2.0 or higher must be installed.
113 AS_IF([test "x$somethingmagick" == xyes],[AC_MSG_NOTICE( Compiling with ImageMagick )],[AC_MSG_NOTICE([
115 ** Not compiling with ImageMagick support **
117 Only PPM image files can be loaded and saved.
120 AS_IF([test "x$enable_opencv" == xyes],[AC_MSG_NOTICE( Compiling with OpenCV )],[AC_MSG_NOTICE([
122 ** Not compiling with OpenCV support **
124 It will not be possible to calculate motion flow vectors to improve colorization of moving objects.
127 AS_IF([test "x$with_debug_algo" == xyes],[AC_MSG_NOTICE( Compiling with debugging )],[])