X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fconfigure.ac;h=a6bb3c4de2eb790189fd68531234f49afd50ccd6;hb=8cb672e948624db0c4a2a38dd947c8e82f3e8492;hp=0d2c62eb29d8bf3415f5e13b0817272a8321ce0e;hpb=7ceb22004d967afe1742b3105f586349c42118be;p=synfig.git diff --git a/synfig-core/trunk/configure.ac b/synfig-core/trunk/configure.ac index 0d2c62e..a6bb3c4 100644 --- a/synfig-core/trunk/configure.ac +++ b/synfig-core/trunk/configure.ac @@ -255,23 +255,20 @@ if test $with_libavcodec = "yes" ; then { ) if test $with_libswscale != "no" ; then { - AC_CHECK_LIB(swscale, sws_getContext, [], [echo no; with_libswscale="no"], []) + PKG_CHECK_MODULES(LIBSWSCALE, [libswscale], [], [echo no; with_libswscale="no"]) } ; fi if test $with_libswscale = "yes" ; then { - LIBAVCODEC_LIBS="$LIBAVCODEC_LIBS -lswscale" - AM_CONDITIONAL(HAVE_LIBSWSCALE, true) + AC_DEFINE(WITH_LIBSWSCALE, [], [enable libswscale support]) } else { - AM_CONDITIONAL(HAVE_LIBSWSCALE, false) AC_CHECK_LIB(avcodec, img_convert, [AC_MSG_RESULT([ *** Using deprecated function img_convert.])], [AC_MSG_FAILURE([Neither libswscale nor function img_convert was found.])], [] ) } ; fi -} else { - AM_CONDITIONAL(HAVE_LIBSWSCALE, false) } ; fi +AM_CONDITIONAL(WITH_LIBSWSCALE, test "x$with_libswscale" = "xyes") # FREETYPE2 CHECK--------------------