1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
|
ENV_CFLAGS=$CFLAGS
AC_PREREQ(2.59)
dnl Update it right before new releases
AC_INIT([Gimmix], 0.5.7.1, [priyankmg@gmail.com], gimmix)
AC_CONFIG_SRCDIR([src/gimmix.c])
AC_LANG(C)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_SYSTEM
AC_PROG_INTLTOOL([0.21])
AC_PROG_LIBTOOL
AM_INIT_AUTOMAKE
dnl Host dependant flags
case "${host}" in
*-*-cygwin*)
ENV_CFLAGS="$ENV_CFLAGS -DCYGWIN"
;;
esac
AC_PROG_CC
AC_HEADER_STDC
AC_CHECK_HEADERS([locale.h stdlib.h string.h sys/ioctl.h unistd.h])
AC_ARG_ENABLE( tageditor,
AC_HELP_STRING([--disable-tageditor], [Disable id3 tag editing support]),
[tageditor=${enableval}],
[tageditor="yes"])
dnl Check for id3 tag editing support
AC_MSG_CHECKING(whether id3 tag editing support is enabled)
if test "$tageditor" = "yes"; then
enable_tageditor=yes
AC_MSG_RESULT(yes)
pkg_modules="taglib_c >= 1.4"
CFLAGS="${CFLAGS} -DHAVE_TAGEDITOR"
AC_DEFINE(HAVE_TAGEDITOR, 1, [building gimmix with id3 tag editing support])
else
pkg_modules=""
enable_tageditor=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_TAGEDITOR, test "x$enable_tageditor" = "xyes")
dnl Lyrics support
AC_ARG_ENABLE( lyrics,
AC_HELP_STRING([--disable-lyrics], [Disable lyrics plugin]),
[lyrics=${enableval}],
[lyrics="yes"])
dnl Check for Lyrics plugin support
AC_MSG_CHECKING(whether lyrics plugin is enabled)
if test "$lyrics" = "yes"; then
enable_lyrics=yes
AC_MSG_RESULT(yes)
pkg_modules="${pkg_modules} nxml libcurl"
CFLAGS="${CFLAGS} -DHAVE_LYRICS"
AC_DEFINE(HAVE_LYRICS, 1, [building gimmix with lyrics support])
else
enable_lyrics=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_LYRICS, test "x$enable_lyrics" = "xyes")
AC_ARG_ENABLE( cover,
AC_HELP_STRING([--disable-cover], [Disable Amazon cover fetcher plugin]),
[cover=${enableval}],
[cover="yes"])
dnl Check for Amazon cover fetcher plugin support
AC_MSG_CHECKING(whether amazon cover fetcher plugin is enabled)
if test "$cover" = "yes"; then
enable_cover=yes
AC_MSG_RESULT(yes)
if test "x$enable_lyrics" = "xno" ; then
pkg_modules="${pkg_modules} nxml libcurl"
fi
CFLAGS="${CFLAGS} -DHAVE_COVER_PLUGIN"
AC_DEFINE(HAVE_COVER_PLUGIN, 1, [building gimmix with cover plugin support])
else
enable_cover=no
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(HAVE_COVER_PLUGIN, test "x$enable_cover" = "xyes")
if test "${GCC}" = "yes"
then
CFLAGS="${CFLAGS} -pipe"
CFLAGS="${CFLAGS} -Wall"
fi
ALL_LINGUAS="de fr sv tr zh_TW"
GETTEXT_PACKAGE=gimmix
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [needed for bindtextdomain() and textdomain()])
AM_GLIB_GNU_GETTEXT
AM_GLIB_DEFINE_LOCALEDIR(LOCALEDIR)
AC_MSG_CHECKING(for flying pigs)
AC_MSG_RESULT([ooh, there's one!])
pkg_modules="${pkg_modules} gtk+-2.0 >= 2.6.0 \
libmpd >= 0.17.0 \
libglade-2.0 >= 2.6.0 \
gthread-2.0 \
x11"
PKG_CHECK_MODULES([GIMMIX], [$pkg_modules])
CFLAGS="${CFLAGS}"
dnl ==========================================================================
AC_OUTPUT([
src/Makefile
po/Makefile.in
Makefile
])
echo "
gimmix $VERSION configuration summary:
prefix : ${prefix}
source code location : ${srcdir}
compiler : ${CC}
compiler flags : ${CFLAGS}
lyrics support : ${enable_lyrics}
covers support : ${enable_cover}
id3 tag editing support : ${enable_tageditor}
"
|