🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
937 B

  1. dnl Process this file with autoconf to produce a configure script.
  2. AC_INIT
  3. AC_CONFIG_SRCDIR([unittest/testquit.c])
  4. dnl Detect the canonical build and host environments
  5. AC_CONFIG_AUX_DIR([../build-scripts])
  6. AC_CANONICAL_HOST
  7. dnl Check for tools
  8. AC_PROG_CC
  9. dnl Figure out which math or extra library to use
  10. case "$host" in
  11. *-*-cygwin* | *-*-mingw*)
  12. EXE=".exe"
  13. EXTRALIB="-lshlwapi"
  14. ;;
  15. *)
  16. EXE=""
  17. EXTRALIB=""
  18. ;;
  19. esac
  20. AC_SUBST(EXE)
  21. dnl Check for SDL
  22. SDL_VERSION=2.0.0
  23. AM_PATH_SDL2($SDL_VERSION,
  24. :,
  25. AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!])
  26. )
  27. CFLAGS="$CFLAGS $SDL_CFLAGS"
  28. LIBS="$LIBS -lSDL2_test $SDL_LIBS $EXTRALIB"
  29. PKG_CHECK_MODULES(LIBUNWIND, libunwind, have_libunwind=yes, have_libunwind=no)
  30. if test x$have_libunwind = xyes ; then
  31. LIBS="$LIBS $LIBUNWIND_LIBS"
  32. fi
  33. dnl Finally create all the generated files
  34. AC_CONFIG_FILES([Makefile])
  35. AC_OUTPUT