1 AC_CONFIG_MACRO_DIR([m4])
6 AC_CONFIG_SRCDIR(effect.cpp)
11 PKG_CHECK_MODULES([Eigen3], [eigen3])
12 PKG_CHECK_MODULES([epoxy], [epoxy])
13 PKG_CHECK_MODULES([FFTW3], [fftw3])
15 # Needed for unit tests and the demo app. We prefer SDL2 if possible,
16 # but can also use classic SDL.
19 PKG_CHECK_MODULES([SDL2], [sdl2], [with_SDL2=yes], [
20 PKG_CHECK_MODULES([SDL], [sdl])
23 # These are only needed for the demo app.
24 if test $with_SDL2 = "yes"; then
25 PKG_CHECK_MODULES([SDL2_image], [SDL2_image], [], [with_demo_app=no; AC_MSG_WARN([SDL2_image not found, demo program will not be built])])
27 PKG_CHECK_MODULES([SDL_image], [SDL_image], [], [with_demo_app=no; AC_MSG_WARN([SDL_image not found, demo program will not be built])])
29 PKG_CHECK_MODULES([libpng], [libpng12], [], [with_demo_app=no; AC_MSG_WARN([libpng12 not found, demo program will not be built])])
31 AC_SUBST([with_demo_app])
35 AC_ARG_ENABLE([coverage], [ --enable-coverage build with information needed to compute test coverage], [with_coverage=yes])
36 AC_SUBST([with_coverage])
38 AC_CONFIG_FILES([Makefile movit.pc])