1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-06-30 21:02:21 +03:00
gmenu2x/configure.in
Maarten ter Huurne 7aeb7a4f0a PNG: Use libpng directly instead of via SDL_image.
This eliminates the build-time dependency on SDL_image and the run-time
dependencies on all libraries used by SDL_image except SDL and libpng.

In addition we now let libpng convert to ARGB format while decoding the
image, rather than letting SDL convert the surface afterwards.
2011-06-05 05:58:47 +02:00

28 lines
612 B
Plaintext

AC_INIT(configure.in)
AM_INIT_AUTOMAKE(gmenu2x, 0.1)
AC_ISC_POSIX
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_CXXCPP
AC_LANG_CPLUSPLUS
# Check for SDL
SDL_VERSION=1.2.8
AM_PATH_SDL($SDL_VERSION, :,
AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
AC_ARG_WITH(sdl-gfx-prefix,
[ --with-sdl-gfx-prefix=DIR specify where SDL_gfx library is installed],
[SDL_GFX_PREFIX="$withval"])
AC_CHECK_LIB(SDL_gfx, rotozoomSurfaceXY,,check_sdl_gfx="no")
# Check for libpng
AC_CHECK_LIB(png, png_read_image,,check_png="no")
AC_OUTPUT(Makefile src/Makefile)