comparison configure.ac @ 4657:52d8b00cfe13

Simplify AUD_ARG_* even more.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 16 Jun 2008 19:19:09 +0300
parents 60910362ecf2
children cd1e4d4aa0b9
comparison
equal deleted inserted replaced
4655:60910362ecf2 4657:52d8b00cfe13
74 dnl Path settings 74 dnl Path settings
75 dnl ============= 75 dnl =============
76 AC_PATH_PROG([AUDACIOUS_PATH], [audacious], [no]) 76 AC_PATH_PROG([AUDACIOUS_PATH], [audacious], [no])
77 77
78 AUD_ARG_ENABLE([user-plugin-dir], [yes], 78 AUD_ARG_ENABLE([user-plugin-dir], [yes],
79 [Disable per-user plugin dir]) 79 [per-user plugin dir])
80 80
81 if test "x$enable_user_plugin_dir" = "xno"; then 81 if test "x$enable_user_plugin_dir" = "xno"; then
82 AC_DEFINE([DISABLE_USER_PLUGIN_DIR], 1, [Define to disable per user plugin directory]) 82 AC_DEFINE([DISABLE_USER_PLUGIN_DIR], 1, [Define to disable per user plugin directory])
83 fi 83 fi
84 84
85 85
86 ### --------------------------------------------------------------------------- 86 ### ---------------------------------------------------------------------------
87 dnl Chardet support 87 dnl Chardet support
88 dnl =============== 88 dnl ===============
89 AUD_ARG_ENABLE([chardet], [yes], 89 AUD_ARG_ENABLE([chardet], [yes],
90 [Disable charset detection support], 90 [charset detection support],
91 [ 91 [
92 AC_DEFINE([USE_CHARDET], 1, [Define if character set detection enabled]) 92 AC_DEFINE([USE_CHARDET], 1, [Define if character set detection enabled])
93 AC_CHECK_LIB([udet_c], [detectCharset], [ 93 AC_CHECK_LIB([udet_c], [detectCharset], [
94 AC_DEFINE([HAVE_UDET], 1, [Define if the system has Mozilla universal character detector library]) 94 AC_DEFINE([HAVE_UDET], 1, [Define if the system has Mozilla universal character detector library])
95 CHARDET_LIBS="$CHARDET_LIBS -ludet -ludet_c" 95 CHARDET_LIBS="$CHARDET_LIBS -ludet -ludet_c"
101 101
102 ### --------------------------------------------------------------------------- 102 ### ---------------------------------------------------------------------------
103 dnl D-Bus support 103 dnl D-Bus support
104 dnl ============= 104 dnl =============
105 AUD_ARG_ENABLE([dbus], [yes], 105 AUD_ARG_ENABLE([dbus], [yes],
106 [Enable D-Bus support], 106 [D-Bus support],
107 [ 107 [
108 PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0], 108 PKG_CHECK_MODULES([DBUS], [dbus-1 >= 0.60 dbus-glib-1 >= 0.60 gthread-2.0],
109 [enable_dbus=yes], 109 [enable_dbus=yes],
110 [enable_dbus=no]) 110 [enable_dbus=no])
111 111
132 132
133 ### --------------------------------------------------------------------------- 133 ### ---------------------------------------------------------------------------
134 dnl libsamplerate support 134 dnl libsamplerate support
135 dnl ===================== 135 dnl =====================
136 AUD_ARG_ENABLE([samplerate], [no], 136 AUD_ARG_ENABLE([samplerate], [no],
137 [Enable libsamplerate support], 137 [libsamplerate support],
138 [ 138 [
139 AUD_CHECK_MODULE([SAMPLERATE], [samplerate],, [libsamplerate]) 139 AUD_CHECK_MODULE([SAMPLERATE], [samplerate],, [libsamplerate])
140 aud_save_LIBS="$LIBS" 140 aud_save_LIBS="$LIBS"
141 AC_CHECK_LIB([samplerate], [src_process],[ 141 AC_CHECK_LIB([samplerate], [src_process],[
142 SAMPLERATE_LIBS="-lsamplerate" 142 SAMPLERATE_LIBS="-lsamplerate"
153 153
154 ### --------------------------------------------------------------------------- 154 ### ---------------------------------------------------------------------------
155 dnl xspf playlist support 155 dnl xspf playlist support
156 dnl ===================== 156 dnl =====================
157 AUD_ARG_ENABLE([xspf], [yes], 157 AUD_ARG_ENABLE([xspf], [yes],
158 [Disable XSPF support], 158 [XSPF support],
159 [ 159 [
160 AM_PATH_XML2([2.0.0],, [ 160 AM_PATH_XML2([2.0.0],, [
161 AC_MSG_WARN([*** libxml2 is not installed. XSPF playlist support will not be built. ***]) 161 AC_MSG_WARN([*** libxml2 is not installed. XSPF playlist support will not be built. ***])
162 enable_xspf="no" 162 enable_xspf="no"
163 ]) 163 ])
207 dnl ========================== 207 dnl ==========================
208 AS_AC_EXPAND([desktop_file], "${datadir}/applications/audacious.desktop") 208 AS_AC_EXPAND([desktop_file], "${datadir}/applications/audacious.desktop")
209 AC_DEFINE_UNQUOTED([AUDACIOUS_DESKTOP_FILE], "${desktop_file}", [Location of the desktop file]) 209 AC_DEFINE_UNQUOTED([AUDACIOUS_DESKTOP_FILE], "${desktop_file}", [Location of the desktop file])
210 210
211 AUD_ARG_ENABLE([sm], [yes], 211 AUD_ARG_ENABLE([sm], [yes],
212 [Disable session management], 212 [session management],
213 [ 213 [
214 PKG_CHECK_MODULES([SM], [sm >= 1.0], [ 214 PKG_CHECK_MODULES([SM], [sm >= 1.0], [
215 AC_DEFINE([USE_EGGSM], 1, [Define if session management should be used.]) 215 AC_DEFINE([USE_EGGSM], 1, [Define if session management should be used.])
216 enable_sm="yes" 216 enable_sm="yes"
217 ],[ 217 ],[