diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 13ccb1a..9ee41b8 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ SDL_VERSION=2.0 AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], sdl_prefix="$withval", sdl_prefix="") -DEPS_CFLAGS="" +DEPS_CPPFLAGS="" DEPS_LIBS="" AS_IF([test "x$sdl_prefix" = x], [ @@ -20,22 +20,32 @@ AS_IF([test "x$sdl_prefix" = x], [ sdl_config="$sdl_prefix/bin/sdl2-config" SDL_CFLAGS=`"$sdl_config" --prefix="$sdl_prefix" --cflags` SDL_LIBS=`"$sdl_config" --prefix="$sdl_prefix" --libs` - # TODO: check if sdl is present, check version + dnl TODO: check if sdl is present, check version ]) -DEPS_CFLAGS="$SDL_CFLAGS $DEPS_CFLAGS" +DEPS_CPPFLAGS="$SDL_CFLAGS $DEPS_CPPFLAGS" DEPS_LIBS="$SDL_LIBS $DEPS_LIBS" AC_CANONICAL_HOST AS_IF([test "$host_os" != mingw32], [ PKG_CHECK_MODULES([NCURSES], [ncurses]) - DEPS_CFLAGS="$NCURSES_CFLAGS $DEPS_CFLAGS" + DEPS_CPPFLAGS="$NCURSES_CFLAGS $DEPS_CPPFLAGS" DEPS_LIBS="$NCURSES_LIBS $DEPS_LIBS" AC_DEFINE([ENABLE_NCURSES], [], [Enable ncurses]) ]) -AC_SUBST(DEPS_CFLAGS) +AC_SUBST(DEPS_CPPFLAGS) AC_SUBST(DEPS_LIBS) +TESTS_DEPS_CPPFLAGS="" +TESTS_DEPS_LIBS="" + +PKG_CHECK_MODULES([CRITERION], [criterion >= 1.8.1]) +TESTS_DEPS_CPPFLAGS="$CRITERION_CFLAGS $TESTS_DEPS_CPPFLAGS" +TESTS_DEPS_LIBS="$CRITERION_LIBS $TESTS_DEPS_LIBS" + +AC_SUBST(TESTS_DEPS_CPPFLAGS) +AC_SUBST(TESTS_DEPS_LIBS) + AC_PROG_CXX AC_TYPE_UINT32_T AC_CHECK_FUNCS([floor setlocale]) |