diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-06-05 11:00:43 +0200 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-06-05 11:00:43 +0200 |
commit | 1a857fc4e64e4ad9d7ceae0797e8d9f260ad7398 (patch) | |
tree | 9ed2343862a96c6fde7d111e7fd2572082bc0d3e /plugins | |
parent | dd1382d87cebe299b06b0c011501af10fd056db0 (diff) |
flac: disable oggedit if libogg is not available
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/flac/Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/flac/Makefile.am b/plugins/flac/Makefile.am index 02e594d3..cc5ecf28 100644 --- a/plugins/flac/Makefile.am +++ b/plugins/flac/Makefile.am @@ -4,6 +4,11 @@ pkglib_LTLIBRARIES = flac.la flac_la_SOURCES = flac.c flac_la_LDFLAGS = -module -avoid-version -flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) ../liboggedit/liboggedit.a -AM_CFLAGS = $(CFLAGS) $(FLAC_CFLAGS) -std=c99 +if HAVE_OGG +oggedit_def = -DUSE_OGGEDIT=1 +oggedit_lib = ../liboggedit/liboggedit.a +endif + +flac_la_LIBADD = $(LDADD) $(FLAC_LIBS) $(oggedit_lib) +AM_CFLAGS = $(CFLAGS) $(FLAC_CFLAGS) $(oggedit_def) -std=c99 endif |