LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File love.mpg123.patch of Package love (Project openSUSE:Leap:15.0:Update)

--- a/configure.ac
+++ b/configure.ac
@@ -87,11 +87,12 @@ AS_VAR_IF([luaheaders_found], [yes], [],
 # mpg123, treated seperately because it can be disabled (default on)
 # also not pkg-config because of the FILE_OFFSET_BITS.. bit
 AC_ARG_ENABLE([mpg123], AC_HELP_STRING([--disable-mpg123], [Disable mp3 support, for patent-free builds]), [], [enable_mpg123=yes])
+PKG_CHECK_MODULES([mpg123], [libmpg123], [enable_mpg123=yes], [enable_mpg123=no])
 AS_VAR_IF([enable_mpg123], [no],
 	  AC_DEFINE([LOVE_NOMPG123], [], [Build without mpg123]),
 	  # else
 	  AC_SEARCH_LIBS([mpg123_open_feed], [mpg123], [],
-					 [LOVE_MSG_ERROR([libmpg123])])
+					 [])
 	  AC_SEARCH_LIBS([mpg123_seek_64], [mpg123],
 					 AC_SUBST([FILE_OFFSET],[-D_FILE_OFFSET_BITS=64]),
 					 AC_SUBST([FILE_OFFSET],[])))