annotate configure.ac @ 4577:c2d739b4c84d

revert DBus removals
author mf0102 <0102@gmx.at>
date Wed, 21 May 2008 15:50:36 +0200
parents 956272f5935d
children 714bc6fa7c40
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
1 dnl ***
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
2 dnl *** Process this file with autoconf to produce a configure script.
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
3 dnl ***
3648
5bea21b52a06 Fix installation of Audacious desktop icon.
William Pitcock <nenolod@atheme.org>
parents: 3641
diff changeset
4
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
5 dnl Require autoconf 2.59 or later
1420
0aa4bee03747 [svn] - ok, move this fix down a little
nenolod
parents: 1419
diff changeset
6 AC_PREREQ([2.59])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
7
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
8 dnl Initialize
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
9 AC_INIT([audacious], [1.9.0], [bugs+audacious@atheme.org])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
10 AC_COPYRIGHT([(C) 2005-2008 Audacious Development Team])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
11 AC_CANONICAL_HOST
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
12 AC_CANONICAL_TARGET
4459
fcd559cfae89 Add AC_GNU_SOURCE, because the newer m4-macros want it.
Matti Hamalainen <ccr@tnsp.org>
parents: 4443
diff changeset
13 AC_GNU_SOURCE
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
14 AC_CONFIG_HEADERS([config.h])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
15 PKG_PROG_PKG_CONFIG
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
16
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
17
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
18 dnl buildsystem bootstrap
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
19 dnl =====================
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
20 dnl XXX kludge for FreeBSD
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
21 if test -d "/usr/X11R6/include"; then
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
22 CPPFLAGS="$CPPFLAGS -I/usr/X11R6/include"
38
4e0397865a31 [svn] Regenerate a bunch of stuff :)
nenolod
parents: 33
diff changeset
23 fi
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
24
2324
2ab9ef1e9544 [svn] - remove leftover remnants of automake from buildsystem
nenolod
parents: 2323
diff changeset
25 AC_SUBST([PACKAGE], [AC_PACKAGE_TARNAME])
2ab9ef1e9544 [svn] - remove leftover remnants of automake from buildsystem
nenolod
parents: 2323
diff changeset
26 AC_SUBST([VERSION], [AC_PACKAGE_VERSION])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
27 AC_DEFINE_UNQUOTED([PACKAGE], "$PACKAGE", [Name of package])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
28 AC_DEFINE_UNQUOTED([VERSION], "$VERSION", [Version number of package])
2324
2ab9ef1e9544 [svn] - remove leftover remnants of automake from buildsystem
nenolod
parents: 2323
diff changeset
29
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
30 BUILDSYS_PROG_IMPLIB
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
31 BUILDSYS_SHARED_LIB
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
32 IMPLIB_LIBS=""
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
33 AC_SUBST([IMPLIB_LIBS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
34
4524
a5377b724505 Cleaned up some accidentally left in duplicated checks.
Matti Hamalainen <ccr@tnsp.org>
parents: 4499
diff changeset
35
a5377b724505 Cleaned up some accidentally left in duplicated checks.
Matti Hamalainen <ccr@tnsp.org>
parents: 4499
diff changeset
36 dnl Plugin stuff
a5377b724505 Cleaned up some accidentally left in duplicated checks.
Matti Hamalainen <ccr@tnsp.org>
parents: 4499
diff changeset
37 dnl ========================
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
38 SHARED_SUFFIX="$PLUGIN_SUFFIX"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
39 AC_SUBST([SHARED_SUFFIX])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
40 AC_DEFINE_UNQUOTED([SHARED_SUFFIX], "${SHARED_SUFFIX}",
4524
a5377b724505 Cleaned up some accidentally left in duplicated checks.
Matti Hamalainen <ccr@tnsp.org>
parents: 4499
diff changeset
41 [Define the shared module suffix extension on your platform.])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
42
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
43 AC_MSG_CHECKING([if you are running Apple-GCC])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
44 case "$target" in
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
45 *-apple-*)
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
46 AC_MSG_RESULT([yes, sorry you poor bastard])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
47 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework CoreServices -framework Carbon"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
48 ;;
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
49 *)
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
50 AC_MSG_RESULT([no])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
51 ;;
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
52 esac
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
53
756
97f5ebf52a3d [svn] put AM_INIT_AUTOMAKE back
nenolod
parents: 751
diff changeset
54
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
55 dnl GNU gettext
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
56 dnl ===========
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
57 AM_GNU_GETTEXT
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
58 AM_GNU_GETTEXT_VERSION([0.14.0])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
59
4540
956272f5935d Synchronized acinclude common macros with upcoming audacious-plugins autoconf cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents: 4533
diff changeset
60 dnl Checks common for core and plugins
956272f5935d Synchronized acinclude common macros with upcoming audacious-plugins autoconf cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents: 4533
diff changeset
61 dnl ==================================
956272f5935d Synchronized acinclude common macros with upcoming audacious-plugins autoconf cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents: 4533
diff changeset
62 AUD_COMMON_PROGS
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
63
750
5fe9bafc1895 [svn] more stuff
nenolod
parents: 743
diff changeset
64
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
65 dnl Check for headers and functions
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
66 dnl ===============================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
67 AC_CHECK_HEADERS([unistd.h fcntl.h sys/ioctl.h fnmatch.h limits.h wchar.h fts.h execinfo.h])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
68 AC_CHECK_FUNCS([mkdtemp getmntinfo statvfs strtoul lrintf])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
69
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
70
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
71 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
72 dnl Path settings
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
73 dnl =============
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
74 AC_PATH_PROG([AUDACIOUS_PATH], [audacious], [no])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
75
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
76 AUD_ARG_ENABLE([one-plugin-dir], [no],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
77 [ --enable-one-plugin-dir Use a single plugin dir (def: no)])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
78
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
79
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
80 AUD_ARG_ENABLE([user-plugin-dir], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
81 [ --disable-user-plugin-dir Disable per-user plugin dir (def: enabled)])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
82
4480
28863634a2da Properly define DISABLE_USER_PLUGIN_DIR if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4476
diff changeset
83 if test "x$enable_user_plugin_dir" = "xno"; then
28863634a2da Properly define DISABLE_USER_PLUGIN_DIR if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4476
diff changeset
84 AC_DEFINE([DISABLE_USER_PLUGIN_DIR], 1, [Define to disable per user plugin directory])
28863634a2da Properly define DISABLE_USER_PLUGIN_DIR if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4476
diff changeset
85 fi
28863634a2da Properly define DISABLE_USER_PLUGIN_DIR if needed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4476
diff changeset
86
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
87
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
88 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
89 dnl Chardet support
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
90 dnl ===============
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
91 AUD_ARG_ENABLE([chardet], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
92 [ --disable-chardet Disable charset detection support (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
93 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
94 AC_DEFINE([USE_CHARDET], 1, [Define if character set detection enabled])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
95 AC_CHECK_LIB([udet_c], [detectCharset], [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
96 AC_DEFINE([HAVE_UDET], 1, [Define if the system has Mozilla universal character detector library])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
97 CHARDET_LIBS="$CHARDET_LIBS -ludet -ludet_c"
4481
25730d90d916 USE_CHARDET is now substituted in AUD_CONDITIONAL.
Matti Hamalainen <ccr@tnsp.org>
parents: 4480
diff changeset
98 AC_SUBST([CHARDET_LIBS])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
99 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
100 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
101 AUD_CONDITIONAL([USE_CHARDET], [enable_chardet])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
102
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents: 2692
diff changeset
103
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
104 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
105 dnl D-Bus support
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
106 dnl =============
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
107 AUD_ARG_ENABLE([dbus], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
108 [ --enable-dbus Enable D-Bus support (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
109 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
110 PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0],
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
111 [enable_dbus=yes],
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
112 [enable_dbus=no])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
113
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
114 AC_PATH_PROG([DBUS_BINDING_TOOL], [dbus-binding-tool], [no])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
115 AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal], [no])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
116 if test "x$DBUS_BINDING_TOOL" = "xno" || test "x$GLIB_GENMARSHAL" = "xno" || test "x$enable_dbus" = "xno" ; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
117 enable_dbus="no"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
118 else
4533
6fd552b6e5db Add depencies to dbus-1 and dbus-glib-1 in audacious.pc during configure, if DBus
Matti Hamalainen <ccr@tnsp.org>
parents: 4524
diff changeset
119 ADD_PC_REQUIRES([dbus-1 >= 0.60])
6fd552b6e5db Add depencies to dbus-1 and dbus-glib-1 in audacious.pc during configure, if DBus
Matti Hamalainen <ccr@tnsp.org>
parents: 4524
diff changeset
120 ADD_PC_REQUIRES([dbus-glib-1 >= 0.60])
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
121 AC_DEFINE([USE_DBUS], 1, [Define if D-Bus support enabled])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
122 AC_DEFINE([DBUS_SERVICES_DIR], "$datadir/dbus-1/services",
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
123 [Location of D-Bus services directory])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
124 LIBAUDCLIENT_LDFLAGS="-laudclient"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
125 AC_SUBST([DBUS_CFLAGS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
126 AC_SUBST([DBUS_LIBS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
127 AC_SUBST([DBUS_SERVICES_DIR])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
128 AC_SUBST([DBUS_BINDING_TOOL])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
129 AC_SUBST([LIBAUDCLIENT_LDFLAGS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
130 fi
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
131 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
132 AUD_CONDITIONAL([USE_DBUS], [enable_dbus])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
133
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents: 2692
diff changeset
134
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
135 ### ---------------------------------------------------------------------------
2538
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
136 dnl libsamplerate support
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
137 dnl =====================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
138 AUD_ARG_ENABLE([samplerate], [no],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
139 [ --enable-samplerate Enable libsamplerate support (def: disabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
140 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
141 AUD_CHECK_MODULE([SAMPLERATE], [samplerate],, [libsamplerate])
4482
1884c4a9d84f We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4481
diff changeset
142 aud_save_LIBS="$LIBS"
1884c4a9d84f We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4481
diff changeset
143 AC_CHECK_LIB([samplerate], [src_process],[
1884c4a9d84f We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4481
diff changeset
144 SAMPLERATE_LIBS="-lsamplerate"
1884c4a9d84f We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4481
diff changeset
145 ], [
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
146 AC_MSG_ERROR([*** Unable to link with libsamplerate!])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
147 ])
4482
1884c4a9d84f We don't want libsamplerate check to add -lsamplerate global LIBS, fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4481
diff changeset
148 LIBS="$aud_save_LIBS"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
149 AC_DEFINE([USE_SAMPLERATE], 1, [Define if libsamplerate enabled])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
150 AC_SUBST([USE_SAMPLERATE])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
151 AC_SUBST([SAMPLERATE_CFLAGS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
152 AC_SUBST([SAMPLERATE_LIBS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
153 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
154
2538
719e0898ff3c [svn] - Patch to use libsamplerate for high-quality interpolated upsampling,
nenolod
parents: 2535
diff changeset
155
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
156 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
157 dnl xspf playlist support
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
158 dnl =====================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
159 AUD_ARG_ENABLE([xspf], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
160 [ --disable-xspf Disable XSPF support (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
161 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
162 AM_PATH_XML2([2.0.0],, [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
163 AC_MSG_WARN([*** libxml2 is not installed. XSPF playlist support will not be built. ***])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
164 enable_xspf="no"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
165 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
166 if test "x$enable_xspf" = "xyes"; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
167 AC_DEFINE([HAVE_XSPF_PLAYLIST], 1, [Define if XSPF playlists are available.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
168 fi
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
169 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
170
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
171
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
172 ### ---------------------------------------------------------------------------
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
173 dnl regex support (gnu/oniguruma/pcre)
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
174 dnl ==================================
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
175 REGEX_LIBS=
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
176 REGEX_CFLAGS=
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
177 AC_ARG_WITH([regexlib],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
178 [[ --with-regexlib[=gnu/oniguruma/pcre] use the chosen regex library (def: gnu)]],
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
179 [
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
180 case $withval in
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
181 pcre)
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
182 AUD_CHECK_MODULE([LIBPCRE], [libpcre], [>= 6.7], [PCRE])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
183 AC_DEFINE([USE_REGEX_PCRE], 1, [If this macro is defined, use PCRE regex library.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
184 REGEX_LIBS="-lpcreposix $LIBPCRE_LIBS"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
185 REGEX_CFLAGS=$LIBPCRE_CFLAGS
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
186 ;;
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
187 oniguruma)
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
188 AC_CHECK_LIB([onig], [onig_new],
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
189 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
190 AC_DEFINE([USE_REGEX_ONIGURUMA], 1, [If this macro is defined, use Oniguruma regex library.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
191 REGEX_LIBS=['-lonig']
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
192 ],[
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
193 AC_MSG_ERROR([Cannot find Oniguruma])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
194 ])
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
195 ;;
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
196 *)
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
197 AC_DEFINE([USE_REGEX_GNU], 1, [If this macro is defined, use GNU regex library.])
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
198 ;;
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
199 esac
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
200 ],[
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
201 AC_DEFINE([USE_REGEX_GNU], 1, [If this macro is defined, use GNU regex library.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
202 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
203 AC_SUBST([REGEX_LIBS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
204 AC_SUBST([REGEX_CFLAGS])
2168
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
205
caaf4b1a8487 [svn] - allow user to choose a regex library between gnu (default), oniguruma, pcre (experimental); oniguruma and pcre support utf-8 encoding
giacomo
parents: 2106
diff changeset
206
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
207 ### ---------------------------------------------------------------------------
4233
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
208 dnl SSE2 support
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
209 dnl ============
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
210 AUD_ARG_ENABLE([sse2], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
211 [ --disable-sse2 Disable SSE2 support (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
212 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
213 AC_MSG_CHECKING([SSE2 support])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
214 aud_my_save_CFLAGS="$CFLAGS"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
215 CFLAGS="-msse2"
4493
a3566b1f5222 Test for SSE2 was quoted one level too much, thus causing the source to be borked and compilation to fail. Fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4486
diff changeset
216 AC_TRY_RUN([
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
217 #include <emmintrin.h>
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
218 int main()
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
219 {
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
220 _mm_setzero_pd();
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
221 return 0;
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
222 }
4493
a3566b1f5222 Test for SSE2 was quoted one level too much, thus causing the source to be borked and compilation to fail. Fixed.
Matti Hamalainen <ccr@tnsp.org>
parents: 4486
diff changeset
223 ],[
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
224 AC_MSG_RESULT([yes])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
225 AC_DEFINE([HAVE_SSE2], 1, [Define to 1 if your system has SSE2 support])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
226 SIMD_CFLAGS="-msse2"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
227 ],[
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
228 AC_MSG_RESULT([no])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
229 enable_sse2="no"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
230 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
231 AC_SUBST([SIMD_CFLAGS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
232 CFLAGS="$aud_my_save_CFLAGS"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
233 ])
4233
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
234
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
235
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
236 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
237 dnl AltiVec support
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
238 dnl ===============
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
239 AUD_ARG_ENABLE([altivec], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
240 [ --disable-altivec Disable AltiVec support (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
241 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
242 AC_CHECK_HEADERS([altivec.h],
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
243 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
244 AC_DEFINE([HAVE_ALTIVEC], 1, [Define to 1 if your system has AltiVec.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
245 AC_DEFINE([HAVE_ALTIVEC_H], 1, [Define to 1 if your system has an altivec.h file.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
246 AC_DEFINE([ARCH_POWERPC], 1, [Define to 1 if your system is a PowerPC.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
247 SIMD_CFLAGS=-maltivec
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
248 AC_SUBST([SIMD_CFLAGS])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
249 ],[
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
250 enable_altivec="no"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
251 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
252 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
253
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
254
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
255 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
256 dnl Session management support
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
257 dnl ==========================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
258 AS_AC_EXPAND([desktop_file], "${datadir}/applications/audacious.desktop")
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
259 AC_DEFINE_UNQUOTED([AUDACIOUS_DESKTOP_FILE], "${desktop_file}", [Location of the desktop file])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
260
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
261 AUD_ARG_ENABLE([sm], [yes],
4496
4e78a3958166 Show default settings for options in --help.
Matti Hamalainen <ccr@tnsp.org>
parents: 4493
diff changeset
262 [ --disable-sm Disable session management (def: enabled)],
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
263 [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
264 PKG_CHECK_MODULES([SM], [sm >= 1.0], [
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
265 AC_DEFINE([USE_EGGSM], 1, [Define if session management should be used.])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
266 enable_sm="yes"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
267 ],[
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
268 enable_sm="no"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
269 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
270 ])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
271 AUD_CONDITIONAL([USE_EGGSM], [enable_sm])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
272
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
273
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
274 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
275 dnl Ugly system checks
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
276 dnl ==================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
277 AC_MSG_CHECKING([if __ELF__ is defined])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
278 AC_EGREP_CPP([yes],
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
279 [#ifdef __ELF__
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
280 yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
281 #endif
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
282 ],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
283 [is_elf=yes],
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
284 [is_elf=no]
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
285 )
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
286 AC_MSG_RESULT([$is_elf])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
287
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
288 have_solaris=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
289 have_sun=no
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
290 ARCH_DEFINES=""
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
291 case $host in
2018
58ea18909fe7 [svn] - MirBSD support from <bsiegert -at- gmx.de>
nenolod
parents: 2005
diff changeset
292 *-*-openbsd* | *-*-netbsd* | *-*-mirbsd*)
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
293 have_sun=yes
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
294 if test "x${is_elf}" = "xno"; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
295 AC_DEFINE([SYMBOL_PREFIX], "_", [Define to symbol prefix, if any])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
296 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
297 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
298 *-*-darwin*)
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
299 AC_DEFINE([SYMBOL_PREFIX], "_", [Define to symbol prefix, if any])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
300 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
301 *-hpux-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
302 ARCH_DEFINES="-DHPUX"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
303 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
304 *-*-solaris* | *-*-sunos*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
305 have_solaris=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
306 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
307 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
308
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
309 arch_type=other
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
310 x86_asm=no
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
311 case $host in
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
312 i386-*-* | i486-*-* | i586-*-* | i686-*-* | i86pc-*-*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
313 arch_type=ix86
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
314 case $host in
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
315 *-*-netbsd* | *-*openbsd*)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
316 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
317 *)
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
318 ARCH_DEFINES="-DI386_ASSEM"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
319 x86_asm=yes
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
320 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
321 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
322 ;;
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
323 esac
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
324
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
325 AC_SUBST([ARCH_DEFINES])
1518
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
326
0c5dc8ffcc42 [svn] - hook up paranormal -- client interface code doesn't exist yet though
nenolod
parents: 1503
diff changeset
327 dnl XXX delete ASAP -nenolod
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
328 AUD_CONDITIONAL([ARCH_X86], [arch_type], [ix86])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
329 AUD_CONDITIONAL([USE_X86ASM], [x86_asm])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
330 AUD_CONDITIONAL([HAVE_SOLARIS], [have_solaris])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
331 AUD_CONDITIONAL([HAVE_SUN], [have_sun])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
332
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
333
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
334 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
335 dnl Define plugin directories
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
336 dnl =========================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
337 plugindir="$libdir/audacious"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
338 AC_SUBST([plugindir])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
339 AC_SUBST([pluginsubs])
1418
0d6d938bc936 [svn] - work around a possible autoconf bug causing datadir to be blank
nenolod
parents: 1408
diff changeset
340
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
341 AUD_DEFINE_PLUGIN_DIR([Input])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
342 AUD_DEFINE_PLUGIN_DIR([Output])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
343 AUD_DEFINE_PLUGIN_DIR([Effect])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
344 AUD_DEFINE_PLUGIN_DIR([General])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
345 AUD_DEFINE_PLUGIN_DIR([Visualization])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
346 AUD_DEFINE_PLUGIN_DIR([Container])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
347 AUD_DEFINE_PLUGIN_DIR([Transport])
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
348 AUD_DEFINE_PLUGIN_DIR([Discovery])
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
349
1747
44ed31f63ee4 [svn] - add back a test for libxml2, that way we'll still use xspf as default if available
nenolod
parents: 1746
diff changeset
350
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
351 ### ---------------------------------------------------------------------------
4484
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
352 dnl XXX Work around some autoconf bugs.
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
353 if test "x$prefix" = "xNONE"; then
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
354 prefix="${ac_default_prefix}"
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
355 fi
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
356
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
357 if test -z "$datadir"; then
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
358 datadir="${prefix}/share"
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
359 fi
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
360
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
361 localedir="$datadir/locale"
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
362 AC_SUBST([localedir])
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
363
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
364 AUDACIOUS_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
365 AC_SUBST([AUDACIOUS_DEFINES])
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
366
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
367
925df071b0c7 Imported and cleaned up some missing pieces of functionality from old configure.ac.
Matti Hamalainen <ccr@tnsp.org>
parents: 4483
diff changeset
368 ### ---------------------------------------------------------------------------
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
369 dnl Output configuration files
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
370 dnl ==========================
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
371 AC_CONFIG_FILES([
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
372 audacious.pc
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
373 audclient.pc
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
374 buildsys.mk
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
375 extra.mk
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
376 man/audtool.1
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
377 man/audacious.1
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
378 applications/audacious.desktop
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
379 po/Makefile.in
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
380 ])
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
381
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
382 AC_OUTPUT
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
383
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
384
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
385 ### ---------------------------------------------------------------------------
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
386 dnl Print out the results
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
387 dnl =====================
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
388 echo ""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
389 echo "Configuration:"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
390 echo ""
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
391 echo " Install path: $prefix"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
392
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
393 if test "x$AUDACIOUS_PATH" != "xno"; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
394 echo " Current Audacious executable: $AUDACIOUS_PATH"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
395 fi
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
396
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
397 echo " Use one plugin dir: $enable_one_plugin_dir"
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
398 echo " Allow user plugin dir: $enable_user_plugin_dir"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
399 echo ""
2692
6abffd68fa59 [svn] - make --enable-chardet default.
yaz
parents: 2661
diff changeset
400 echo " Automatic character code detection: $enable_chardet"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
401 echo " Sample rate conversion: $enable_samplerate"
2694
c2b82432c1b6 [svn] Added basic DBus support, disabled by default with a configuration option to enable it. The general and playback information/manipulation methods are currently the only ones implemented. That is version, play, pause, stop, playing, paused, stopped, status, and seek. There are stubs for many unimplemented methods.
magma
parents: 2692
diff changeset
402 echo " D-Bus support: $enable_dbus"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
403 echo " Session management (eggsm) $enable_sm"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
404 echo " XSPF playlists $enable_xspf"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
405 echo ""
4233
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
406 echo " SSE2: $enable_sse2"
74c6f3d3cf1d it buids successfully :)
Eugene Zagidullin <e.asphyx@gmail.com>
parents: 3993
diff changeset
407 echo " AltiVec: $enable_altivec"
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
408 echo ""
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
409
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
410 if test "x$AUDACIOUS_PATH" != "xno" && test "x$prefix/bin/audacious" != "x$AUDACIOUS_PATH"; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
411 audlocation=`dirname $AUDACIOUS_PATH`
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
412 echo "**"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
413 echo "** NOTICE! Configure has discovered that you already have Audacious installed"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
414 echo "** and it does not match with the given --prefix. You have Audacious installed"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
415 echo "** in ${audlocation} and you chose ${prefix}/bin."
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
416 echo "**"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
417 echo "** If you don't want two copies of Audacious installed, rerun configure with"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
418 echo "** the --prefix option set to the location of the old Audacious, or uninstall"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
419 echo "** the old Audacious."
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
420 echo "**"
0
cb178e5ad177 [svn] Import audacious source.
nenolod
parents:
diff changeset
421 fi
4476
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
422
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
423 if test "x$enable_dbus" != "xyes"; then
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
424 echo "**"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
425 echo "** WARNING! DBUS support is disabled. This means that various features"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
426 echo "** the user might expect (such as remotely adding files to session via"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
427 echo "** commandline) will not work!"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
428 echo "**"
1ff0224469a8 Beginnings of a configure/builsystem cleanup (and partial refactoring).
Matti Hamalainen <ccr@tnsp.org>
parents: 4465
diff changeset
429 fi