0003-configure-ac-use-pkg-config-to-find-id3tag.patch 904 B

1234567891011121314151617181920212223
  1. configure.ac: use pkg-config to find id3tag
  2. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. diff -durN madplay-0.15.2b-orig/configure.ac madplay-0.15.2b/configure.ac
  4. --- madplay-0.15.2b-orig/configure.ac 2019-02-14 21:34:01.507212449 +0100
  5. +++ madplay-0.15.2b/configure.ac 2019-02-15 23:24:00.079876087 +0100
  6. @@ -182,12 +182,13 @@
  7. *** environment variable to specify its installed location, e.g. -L<dir>.])
  8. ])
  9. -AC_CHECK_LIB(id3tag, id3_tag_parse, :, [
  10. +PKG_CHECK_MODULES(ID3TAG, id3tag, [
  11. + CFLAGS="$CFLAGS $ID3TAG_CFLAGS" LIBS="$LIBS $ID3TAG_LIBS"], [
  12. AC_MSG_ERROR([libid3tag was not found
  13. *** You must first install libid3tag before you can build this package.
  14. *** If libid3tag is already installed, you may need to use the LDFLAGS
  15. *** environment variable to specify its installed location, e.g. -L<dir>.])
  16. -], [-lz])
  17. +])
  18. AC_FUNC_VPRINTF
  19. AC_CHECK_FUNCS(madvise localeconv)