Browse Source

Add --enable-png configure flag.

legacy
Sam Hocevar 7 years ago
parent
commit
3e26164dc9
2 changed files with 7 additions and 3 deletions
  1. +5
    -3
      build/autotools/m4/lol-conf.m4
  2. +2
    -0
      configure.ac

+ 5
- 3
build/autotools/m4/lol-conf.m4 View File

@@ -128,9 +128,11 @@ AM_CONDITIONAL(LOL_USE_EGL, test "${ac_cv_my_have_egl}" != "no")

dnl Use libpng? (replacement for SDL_image)
ac_cv_my_have_libpng="no"
PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
if test "${ac_cv_my_have_libpng}" != "no"; then
AC_DEFINE(LOL_USE_LIBPNG, 1, Define to 1 to use libpng)
if test "${enable_png}" != "no"; then
PKG_CHECK_MODULES(LIBPNG, libpng, [ac_cv_my_have_libpng="yes"], [:])
if test "${ac_cv_my_have_libpng}" != "no"; then
AC_DEFINE(LOL_USE_LIBPNG, 1, Define to 1 to use libpng)
fi
fi
AM_CONDITIONAL(LOL_USE_LIBPNG, test "${ac_cv_my_have_libpng}" != "no")



+ 2
- 0
configure.ac View File

@@ -88,6 +88,8 @@ AC_ARG_ENABLE(sdl,
[ --enable-sdl build using SDL (default autodetected)])
AC_ARG_ENABLE(imlib2,
[ --enable-imlib2 build using Imlib2 (default autodetected)])
AC_ARG_ENABLE(png,
[ --enable-png build using libpng (default autodetected)])

AC_ARG_ENABLE(test,
[ --enable-test build test suite (default yes)])


Loading…
Cancel
Save