1 AC_INIT(lightmediascanner, 0.1.0.1, gustavo.barbieri@openbossa.org)
3 AC_CONFIG_SRCDIR(configure.ac)
8 AM_INIT_AUTOMAKE(1.6 dist-bzip2)
9 AM_CONFIG_HEADER(config.h)
10 AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
19 define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
22 VMAJ=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $1);}'`
23 VMIN=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $2);}'`
24 VMIC=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $3);}'`
25 SNAP=`echo $PACKAGE_VERSION | awk -F. '{printf("%s", $4);}'`
26 version_info=`expr $VMAJ + $VMIN`":$VMIC:$VMIN"
27 AC_SUBST(version_info)
29 pluginsdir="${libdir}/lightmediascanner/plugins"
32 AS_AC_EXPAND(PLUGINSDIR, $pluginsdir)
33 AC_DEFINE_UNQUOTED(PLUGINSDIR, ["$PLUGINSDIR"], [Where plugins are installed.])
35 AC_CHECK_FUNCS(realpath)
38 PKG_CHECK_MODULES(SQLITE3, [sqlite3 >= 3.3])
42 AM_CONDITIONAL(HAVE_VORBIS, false)
43 define([CHECK_MODULE_OGG],
45 AC_LMS_CHECK_PKG(VORBIS, vorbis, [], [OGG=false])
48 AM_CONDITIONAL(HAVE_MP4V2, false)
49 define([CHECK_MODULE_MP4],
51 AC_CHECK_LIB(mp4v2, MP4Read, [MP4=true], [MP4=false])
56 AM_CONDITIONAL(HAVE_FLAC, false)
57 define([CHECK_MODULE_FLAC],
59 AC_LMS_CHECK_PKG(FLAC, flac, [], [FLAC=false])
62 # plugins declarations
63 AC_LMS_OPTIONAL_MODULE([dummy], true)
64 AC_LMS_OPTIONAL_MODULE([jpeg], true)
65 AC_LMS_OPTIONAL_MODULE([png], true)
66 AC_LMS_OPTIONAL_MODULE([video-dummy], true)
67 AC_LMS_OPTIONAL_MODULE([audio-dummy], true)
68 AC_LMS_OPTIONAL_MODULE([m3u], true)
69 AC_LMS_OPTIONAL_MODULE([ogg], true, [CHECK_MODULE_OGG])
70 AC_LMS_OPTIONAL_MODULE([pls], true)
71 AC_LMS_OPTIONAL_MODULE([asf], true)
72 AC_LMS_OPTIONAL_MODULE([rm], true)
73 AC_LMS_OPTIONAL_MODULE([mp4], true, [CHECK_MODULE_MP4])
74 AC_LMS_OPTIONAL_MODULE([id3], true)
75 AC_LMS_OPTIONAL_MODULE([flac], true, [CHECK_MODULE_FLAC])
85 src/plugins/dummy/Makefile
86 src/plugins/jpeg/Makefile
87 src/plugins/png/Makefile
88 src/plugins/video-dummy/Makefile
89 src/plugins/audio-dummy/Makefile
90 src/plugins/m3u/Makefile
91 src/plugins/ogg/Makefile
92 src/plugins/pls/Makefile
93 src/plugins/asf/Makefile
94 src/plugins/rm/Makefile
95 src/plugins/mp4/Makefile
96 src/plugins/id3/Makefile
97 src/plugins/flac/Makefile
103 echo "[$]@" | sed -e 's/^[[ \t]]*\([[^ \t]]*\)[[ \t]]*$/\1/g'
107 for mod in $OPTIONAL_MODULES; do
108 MODS="$MODS ${COLOR_HGREEN}+$mod${COLOR_END}"
110 MODS=$(txt_strip $MODS)
113 for mod in $UNUSED_OPTIONAL_MODULES; do
114 UNUSED_MODS="$UNUSED_MODS ${COLOR_HRED}-$mod${COLOR_END}"
116 UNUSED_MODS=$(txt_strip $UNUSED_MODS)
121 * project........: $PACKAGE $VERSION
122 * prefix.........: $(txt_strip $prefix)
123 * CFLAGS.........: $(txt_strip $CFLAGS)
126 echo -e " * modules........: $MODS $UNUSED_MODS"