2 # micro version (aka day) is 90+ means developers release
3 m4_define([package_major_version], [11])
4 m4_define([package_minor_version], [8])
5 m4_define([package_micro_version], [90])
6 m4_define([package_version], [package_major_version.package_minor_version.package_micro_version])
8 AC_INIT([gmpc],[11.8.90],[qball@gmpclient.org])
11 m4_define([package_tagline], "All hail the Greg")
12 m4_define([package_website], "http://gmpclient.org")
13 m4_define([package_copyright], "Copyright 2003-2011 Qball Cow")
14 m4_define([package_bugtracker], "http://gmpc.wikia.com/wiki/GMPC_HELP")
18 AC_CONFIG_HEADERS([config.h])
19 AC_CONFIG_MACRO_DIR([m4])
25 #Make version and variables available in config.h
26 #AC_DEFINE(GMPC_MAJOR_VERSION, package_major_version, ["Major version of gmpc"])
27 #AC_DEFINE(GMPC_MINOR_VERSION, package_minor_version, ["Minor version of gmpc"])
28 #AC_DEFINE(GMPC_MICRO_VERSION, package_micro_version, ["Micro version of gmpc"])
29 # This makes sure the right substitution is done
30 [GMPC_MAJOR_VERSION]=package_major_version
31 [GMPC_MINOR_VERSION]=package_minor_version
32 [GMPC_MICRO_VERSION]=package_micro_version
33 AC_SUBST([GMPC_MAJOR_VERSION])
34 AC_SUBST([GMPC_MINOR_VERSION])
35 AC_SUBST([GMPC_MICRO_VERSION])
36 AC_DEFINE(GMPC_TAGLINE, package_tagline, ["Gmpc's tagline"])
37 AC_DEFINE(GMPC_WEBSITE, package_website, ["Gmpc's website"])
38 AC_DEFINE(GMPC_BUGTRACKER, package_bugtracker, ["Gmpc's bugtracker"])
39 AC_DEFINE(GMPC_COPYRIGHT, package_copyright, ["Gmpc's Copyright"])
43 # Remove the check for c++ and fortran compiler
45 LT_LANG([Windows Resource])
46 m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
47 m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
48 AC_REPLACE_FUNCS(strndup)
51 #intltool, libtool. Check for CC compiler
52 IT_PROG_INTLTOOL([0.21])
54 # Check for intltool version, needed for make dist.
55 AM_CONDITIONAL([INTLTOOL_HIGHER_04000], [test ${INTLTOOL_APPLIED_VERSION_AS_INT} -ge 4000])
63 AC_CHECK_LIB([m],[floor])
67 AC_CHECK_LIB(z, inflate,zlib=1,zlib=0)
68 AM_CONDITIONAL(HAVE_ZLIB, test x$zlib = x1)
69 if test "x$zlib" != "x1"
71 AC_MSG_ERROR([GMPC plugin requires zlib])
79 PKG_CHECK_MODULES([libglyr], libglyr)
80 AC_SUBST(libglyr_LIBS)
81 AC_SUBST(libglyr_CFLAGS)
84 AC_ARG_ENABLE([unique],
85 [--enable-unique Use unique.],
86 [case "${enableval}" in
87 yes) enable_unique=true;;
88 no) enable_unique=false;;
89 *) AC_MSG_ERROR([bad value ${enableval} for --enable-unique]);;
97 AC_ARG_ENABLE([libxspf],
98 [--enable-libxspf Use libxspf.],
99 [case "${enableval}" in
100 yes) enable_libxspf=true;;
101 no) enable_libxspf=false;;
102 *) AC_MSG_ERROR([bad value ${enableval} for --enable-libxspf]);;
104 [enable_libxspf=detect])
105 if test "x$enable_libxspf" = "xdetect"; then
106 PKG_CHECK_MODULES([libxspf], xspf, enable_libxspf=true, enable_libxspf=false)
108 if test "x$enable_libxspf" = "xtrue"; then
109 PKG_CHECK_MODULES([libxspf], xspf)
110 AC_SUBST(libxspf_LIBS)
111 AC_SUBST(libxspf_CFLAGS)
113 AC_DEFINE([XSPF], 1, [Use xspf])
116 AC_ARG_ENABLE(libspiff,
117 [ --enable-libspiff Use libspiff to parse spiff playlists.],
118 [ case "${enableval}" in
119 yes) enable_libspiff=yes;;
120 no) enable_libspiff=no;;
121 *) AC_MSG_ERROR([bad value ${enableval} for --enable-libspiff]);;
123 [enable_libspiff=auto])
125 if test "x${enable_libspiff}" != xno; then
126 AC_CHECK_HEADER(spiff/spiff_c.h, AC_CHECK_LIB(spiff, spiff_parse,libspiff=1,libspiff=0),libspiff=0)
127 if test "x${libspiff}" = "x1";
129 AC_DEFINE(SPIFF,1,["Use or don't use libspiff"])
133 if test "x${enable_libspiff}" = "xyes"; then
134 AC_MSG_ERROR([libspiff not found])
140 # Checking for libunique.
141 if test "x$enable_unique" = "xtrue"; then
142 PKG_CHECK_MODULES([unique], unique-1.0)
143 AC_SUBST(unique_LIBS)
144 AC_SUBST(unique_CFLAGS)
146 AC_DEFINE([HAVE_UNIQUE], 1, [Use libunique])
148 AM_CONDITIONAL(HAVE_UNIQUE, test "x$unique" = "xtrue")
149 # Checks for header files.
151 AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
153 # Checks for typedefs, structures, and compiler characteristics.
156 # Checks for libraries.
157 AC_SUBST(GLIB_REQUIRED)
158 AC_SUBST(GTK_REQUIRED)
166 AC_ARG_ENABLE([timing],
167 [--enable-timing Print timing debug output.],
168 [case "${enableval}" in
169 yes) enable_timing=true;;
170 no) enable_timing=false;;
171 *) AC_MSG_ERROR([bad value ${enableval} for --enable-timing]);;
173 [enable_timing=false])
175 if test x${enable_timing} = xtrue; then
176 # Add DEBUG_ENABLE define to config.h
177 AC_DEFINE(DEBUG_TIMING, 1, [Enable timing output])
181 AC_ARG_ENABLE([test],
182 [--enable-test Enable tests],
183 [case "${enableval}" in
184 yes) test_mode=true;;
185 no) test_mode=false;;
186 *) AC_MSG_ERROR([bad value ${enableval} for --enable-test]);;
190 AM_CONDITIONAL([ENABLE_TEST], [test x$test_mode = xtrue])
193 AC_ARG_WITH([extra-version],
194 [--with-extra-version=revision Specify extra version.],
195 with_extra_version=${withval})
196 if test x"${with_extra_version}" != x; then
197 AM_CONDITIONAL([EXTRA_VERSION], [true])
198 EXTRA_VERSION="${with_extra_version}";
199 AC_SUBST(EXTRA_VERSION)
201 AM_CONDITIONAL([EXTRA_VERSION], [false])
206 # Split this out, because pkgconfig macro doesn't return nicely what is missing
209 PKG_CHECK_MODULES([glib], glib-2.0 >= 2.16)
211 AC_SUBST(glib_CFLAGS)
214 PKG_CHECK_MODULES([gobject], gobject-2.0 >= 2.4)
215 AC_SUBST(gobject_LIBS)
216 AC_SUBST(gobject_CFLAGS)
219 PKG_CHECK_MODULES([gtk], gtk+-2.0 >= 2.18)
224 PKG_CHECK_MODULES([gmodule], gmodule-2.0 >= 2.4)
225 AC_SUBST(gmodule_LIBS)
226 AC_SUBST(gmodule_CFLAGS)
229 PKG_CHECK_MODULES([libmpd], libmpd >= 0.20.95)
230 AC_SUBST(libmpd_LIBS)
231 AC_SUBST(libmpd_CFLAGS)
235 PKG_CHECK_MODULES([gthread], gthread-2.0)
236 AC_SUBST(gthread_LIBS)
237 AC_SUBST(gthread_CFLAGS)
240 PKG_CHECK_MODULES([libsoup], libsoup-2.4)
241 AC_SUBST(libsoup_LIBS)
242 AC_SUBST(libsoup_CFLAGS)
245 PKG_CHECK_MODULES([libgio], gio-2.0)
246 AC_SUBST(libgio_LIBS)
247 AC_SUBST(libgio_CFLAGS)
251 PKG_CHECK_MODULES([sqlite3], sqlite3)
252 AC_SUBST(sqlite3_LIBS)
253 AC_SUBST(sqlite3_CFLAGS)
257 PKG_CHECK_MODULES([libxml2], libxml-2.0)
258 AC_SUBST(libxml2_LIBS)
259 AC_SUBST(libxml2_CFLAGS)
263 AC_MSG_CHECKING(prefix)
265 if test "x${prefix}" = "xNONE"; then
266 PACKAGE_PREFIX="${ac_default_prefix}"
268 PACKAGE_PREFIX="${prefix}"
270 AC_MSG_RESULT($PACKAGE_PREFIX)
273 dnl please keep them in alphabetical order
274 ALL_LINGUAS="ar bg bn bs cs da de el et en_CA en_GB es fi fr gl he hi hu hy id it ja jv lv ml ms nb ne nl oc pl pt pt_BR ro ru sq sv th tr zh_CN zh_TW"
279 AC_SUBST(GETTEXT_PACKAGE)
280 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",[GMPC gettext package])
282 if test x$gt_cv_have_gettext != "xyes"; then
284 echo "Translations support is required."
288 #AM_GNU_GETTEXT([external])
289 # setting correct paths
290 PACKAGE_LOCALE_DIR="${PACKAGE_PREFIX}/${DATADIRNAME}/locale"
291 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR,"$PACKAGE_LOCALE_DIR",[The package's locale path for gettext])
294 AC_SUBST(PACKAGE_LOCALE_DIR)
295 AC_SUBST(PACKAGE_LIBS)
299 #Win32 compile support
305 EXTRA_CFLAGS="-Wmissing-prototypes -Wmissing-declarations"
312 *-*-mingw32* | *-*-windows)
314 EXTRA_CFLAGS="$EXTRA_CFLAGS -mwindows -mms-bitfields"
315 EXTRA_LDFLAGS="-export-all-symbols -mwindows -mms-bitfields" ;;
318 EXTRA_LDFLAGS="-export-all-symbols -mms-bitfields" ;;
320 EXTRA_LDFLAGS="-framework Carbon"
323 AM_CONDITIONAL(WIN32, test x$win32 = xyes)
324 AM_CONDITIONAL(OSX, test x$macosx = xyes)
326 AM_CONDITIONAL(PLATFORM_WIN32, test x$win32 = xyes)
327 AM_CONDITIONAL(PLATFORM_OSX, test x$macosx = xyes)
330 # These depend on if we are or are not on windows or osX
334 if test x$macosx = xno && test x$win32 = xno ; then
336 AC_ARG_ENABLE([mmkeys],
337 [ --disable-mmkeys Disable multimedia keys support.],
338 [ case "${enableval}" in
339 yes) enable_mmkeys=yes;;
340 no) enable_mmkeys=no;;
341 *) AC_MSG_ERROR([bad value ${enableval} for --disable--mmkeys]);;
344 if test x${enable_mmkeys} = xyes; then
345 AC_DEFINE(ENABLE_MMKEYS, 1, [Enable multimedia support])
349 PKG_CHECK_MODULES([libx11], x11)
350 AC_SUBST(libx11_LIBS)
351 AC_SUBST(libx11_CFLAGS)
357 AC_SUBST(EXTRA_CFLAGS)
358 AC_SUBST(EXTRA_LDFLAGS)
362 # Make the gob2 check fatal
363 if test x${GOB2} = x""; then
367 AM_PROG_VALAC([0.14.0])
369 if test x${VALAC} = x""; then
373 APPINDICATOR_REQUIRED=0.3
375 AC_ARG_ENABLE(appindicator,
376 AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
377 [enable_appindicator=$enableval],
378 [enable_appindicator="auto"])
380 if test x$enable_appindicator = xauto ; then
381 PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],
382 enable_appindicator="yes",
383 enable_appindicator="no")
386 if test x$enable_appindicator = xyes ; then
387 PKG_CHECK_EXISTS([appindicator-0.1 >= $APPINDICATOR_REQUIRED],,
388 AC_MSG_ERROR([appindicator-0.1 is not installed]))
389 PKG_CHECK_MODULES(APP_INDICATOR,
390 appindicator-0.1 >= $APPINDICATOR_REQUIRED)
391 AC_SUBST(APP_INDICATOR_CFLAGS)
392 AC_SUBST(APP_INDICATOR_LIBS)
393 AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
395 AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
397 AC_ARG_ENABLE([shave],
398 [ --disable-shave Use shave output cleaner when building.],
399 [ case "${enableval}" in
400 yes) enable_shave=yes;;
401 no) enable_shave=no;;
402 *) AC_MSG_ERROR([bad value ${enableval} for --disable-shave]);;
405 if test x$enable_shave = xyes; then
409 GNOME_DOC_INIT([0.18.0], [have_gdu=yes], [have_gdu=no])
426 pixmaps/icons/Makefile
427 pixmaps/icons/hicolor/Makefile
428 pixmaps/icons/hicolor/16x16/Makefile
429 pixmaps/icons/hicolor/16x16/actions/Makefile
430 pixmaps/icons/hicolor/16x16/status/Makefile
431 pixmaps/icons/hicolor/16x16/apps/Makefile
432 pixmaps/icons/hicolor/22x22/Makefile
433 pixmaps/icons/hicolor/22x22/actions/Makefile
434 pixmaps/icons/hicolor/22x22/status/Makefile
435 pixmaps/icons/hicolor/22x22/apps/Makefile
436 pixmaps/icons/hicolor/32x32/Makefile
437 pixmaps/icons/hicolor/32x32/actions/Makefile
438 pixmaps/icons/hicolor/32x32/status/Makefile
439 pixmaps/icons/hicolor/32x32/apps/Makefile
440 pixmaps/icons/hicolor/48x48/Makefile
441 pixmaps/icons/hicolor/48x48/actions/Makefile
442 pixmaps/icons/hicolor/48x48/apps/Makefile
443 pixmaps/icons/hicolor/48x48/status/Makefile
444 pixmaps/icons/hicolor/64x64/Makefile
445 pixmaps/icons/hicolor/64x64/apps/Makefile
446 pixmaps/icons/hicolor/64x64/status/Makefile
447 pixmaps/icons/hicolor/72x72/Makefile
448 pixmaps/icons/hicolor/72x72/apps/Makefile
449 pixmaps/icons/hicolor/72x72/status/Makefile
450 pixmaps/icons/hicolor/96x96/Makefile
451 pixmaps/icons/hicolor/96x96/apps/Makefile
452 pixmaps/icons/hicolor/96x96/status/Makefile
453 pixmaps/icons/hicolor/128x128/Makefile
454 pixmaps/icons/hicolor/128x128/apps/Makefile
455 pixmaps/icons/hicolor/128x128/status/Makefile
456 pixmaps/icons/hicolor/128x128/categories/Makefile
457 pixmaps/icons/hicolor/scalable/Makefile
458 pixmaps/icons/hicolor/scalable/actions/Makefile
459 pixmaps/icons/hicolor/scalable/status/Makefile
460 pixmaps/icons/hicolor/scalable/apps/Makefile
461 pixmaps/icons/hicolor/scalable/categories/Makefile
462 pixmaps/icons/Humanity/16x16/Makefile
463 pixmaps/icons/Humanity/16x16/actions/Makefile
464 pixmaps/icons/Humanity/16x16/status/Makefile
465 pixmaps/icons/Humanity/16x16/apps/Makefile
466 pixmaps/icons/Humanity/22x22/Makefile
467 pixmaps/icons/Humanity/22x22/actions/Makefile
468 pixmaps/icons/Humanity/22x22/status/Makefile
469 pixmaps/icons/Humanity/22x22/apps/Makefile
470 pixmaps/icons/Humanity/24x24/Makefile
471 pixmaps/icons/Humanity/24x24/actions/Makefile
472 pixmaps/icons/Humanity/24x24/status/Makefile
473 pixmaps/icons/Humanity/24x24/categories/Makefile
474 pixmaps/icons/Humanity/24x24/apps/Makefile
475 pixmaps/icons/Humanity/32x32/Makefile
476 pixmaps/icons/Humanity/32x32/actions/Makefile
477 pixmaps/icons/Humanity/32x32/status/Makefile
478 pixmaps/icons/Humanity/32x32/apps/Makefile
479 pixmaps/icons/Humanity/48x48/Makefile
480 pixmaps/icons/Humanity/48x48/actions/Makefile
481 pixmaps/icons/Humanity/48x48/apps/Makefile
482 pixmaps/icons/Humanity/48x48/status/Makefile
483 pixmaps/icons/Humanity/64x64/Makefile
484 pixmaps/icons/Humanity/64x64/apps/Makefile
485 pixmaps/icons/Humanity/64x64/status/Makefile
486 pixmaps/icons/Humanity/64x64/actions/Makefile
487 pixmaps/icons/Humanity/72x72/Makefile
488 pixmaps/icons/Humanity/72x72/apps/Makefile
489 pixmaps/icons/Humanity/72x72/status/Makefile
490 pixmaps/icons/Humanity/72x72/actions/Makefile
491 pixmaps/icons/Humanity/96x96/Makefile
492 pixmaps/icons/Humanity/96x96/apps/Makefile
493 pixmaps/icons/Humanity/96x96/status/Makefile
494 pixmaps/icons/Humanity/96x96/actions/Makefile
495 pixmaps/icons/Humanity/128x128/Makefile
496 pixmaps/icons/Humanity/128x128/apps/Makefile
497 pixmaps/icons/Humanity/128x128/status/Makefile
498 pixmaps/icons/Humanity/128x128/categories/Makefile
499 pixmaps/icons/Humanity/128x128/actions/Makefile
500 pixmaps/icons/Humanity/Makefile
501 pixmaps/icons/Humanity/scalable/Makefile
502 pixmaps/icons/Humanity/scalable/actions/Makefile
503 pixmaps/icons/Humanity/scalable/status/Makefile
504 pixmaps/icons/Humanity/scalable/apps/Makefile
505 pixmaps/icons/Humanity/scalable/categories/Makefile
508 test/MpdDataModel/Makefile
509 test/GmpcEasyDownload/Makefile
510 test/MetaDataCache/Makefile
511 test/PixbufCache/Makefile
512 test/AsyncImage/Makefile
514 test/DiscoGS/Makefile
520 echo "------------------ Status ------------------"
521 if test x$enable_timing = xtrue; then
522 echo "Debug timing output is: enabled"
524 echo "Debug timing output is: disabled"
526 if test x${enable_mmkeys} = xyes; then
527 echo "Multimedia keys support is: enabled"
529 echo "Multimedia keys support is: disabled"
531 if test x"$enable_appindicator" = xyes; then
532 echo "AppIndicator Support is: enabled"
534 echo "AppIndicator Support is: disabled"
536 if test "x$libspiff" = "x1"; then
537 echo "Use libspiff library: enabled"
539 echo "Use libspiff library: disabled"
541 if test "x$libxspf" = "x1"; then
542 echo "Use libxspf library: enabled"
544 echo "Use libxspf library: disabled"
546 if test "x$unique" = "xtrue"; then
547 echo "Use unique library: enabled"
549 echo "Use unique library: disabled"
551 if test "x$have_gdu" = "xyes"; then
552 echo "Use Gnome Documentation: enabled"
554 echo "Use Gnome Documentation: disabled"
557 echo "Now type make to build"
558 if test x$enable_shave = xyes; then
559 echo "Building is done with reduced output. (shave";
560 echo "use --disable-shave to get all (old) output back";