X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=configure.ac;h=25efcc8e56e49df6e67c259255d94c0c649cf089;hp=427e67d8499d23c8758c06f546a830535094269f;hb=b9da5758dedda56a1e2616647ebae129edb0c2db;hpb=dce0f4f2b6d57aa02f2074fdb3925c756d2a96ba diff --git a/configure.ac b/configure.ac index 427e67d..25efcc8 100644 --- a/configure.ac +++ b/configure.ac @@ -14,20 +14,12 @@ 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 +# 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. @@ -35,7 +27,6 @@ PKG_CHECK_MODULES([benchmark], [benchmark], [with_benchmark=yes], [with_benchmar AC_SUBST([with_demo_app]) AC_SUBST([with_benchmark]) -AC_SUBST([with_SDL2]) with_coverage=no AC_ARG_ENABLE([coverage], [ --enable-coverage build with information needed to compute test coverage], [with_coverage=yes])