X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=configure.ac;h=590845adaf09819ca0a2451f6738b2604e7b2d76;hb=HEAD;hp=188d1fe64f9968cb30510613f687c0a4520299ac;hpb=f21268c5ec0607dadc42775d186b27704c18a399;p=movit diff --git a/configure.ac b/configure.ac index 188d1fe..590845a 100644 --- a/configure.ac +++ b/configure.ac @@ -12,24 +12,21 @@ PKG_CHECK_MODULES([Eigen3], [eigen3]) PKG_CHECK_MODULES([epoxy], [epoxy]) PKG_CHECK_MODULES([FFTW3], [fftw3]) -# Needed for unit tests and the demo app. We prefer SDL2 if possible, -# but can also use classic SDL. -with_SDL2=no +CXXFLAGS="$CXXFLAGS -std=gnu++14" + +# Needed for unit tests and the demo app. with_demo_app=yes -PKG_CHECK_MODULES([SDL2], [sdl2], [with_SDL2=yes], [ - PKG_CHECK_MODULES([SDL], [sdl]) -]) - -# These are only needed for the demo app. -if test $with_SDL2 = "yes"; then - PKG_CHECK_MODULES([SDL2_image], [SDL2_image], [], [with_demo_app=no; AC_MSG_WARN([SDL2_image not found, demo program will not be built])]) -else - PKG_CHECK_MODULES([SDL_image], [SDL_image], [], [with_demo_app=no; AC_MSG_WARN([SDL_image not found, demo program will not be built])]) -fi +PKG_CHECK_MODULES([SDL2], [sdl2]) + +# This is only needed for the demo app. +PKG_CHECK_MODULES([SDL2_image], [SDL2_image], [], [with_demo_app=no; AC_MSG_WARN([SDL2_image not found, demo program will not be built])]) PKG_CHECK_MODULES([libpng], [libpng], [], [with_demo_app=no; AC_MSG_WARN([libpng not found, demo program will not be built])]) +# This is only needed for microbenchmarks, so optional. +PKG_CHECK_MODULES([benchmark], [benchmark], [with_benchmark=yes], [with_benchmark=no; AC_MSG_WARN([Google microbenchmark framework not found, microbenchmarks will not be built])]) + AC_SUBST([with_demo_app]) -AC_SUBST([with_SDL2]) +AC_SUBST([with_benchmark]) with_coverage=no AC_ARG_ENABLE([coverage], [ --enable-coverage build with information needed to compute test coverage], [with_coverage=yes])