changeset 4484:925df071b0c7

Imported and cleaned up some missing pieces of functionality from old configure.ac.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Apr 2008 06:55:02 +0300
parents 06e98465cffa
children 1f0aa82891a5
files configure.ac
diffstat 1 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/configure.ac	Mon Apr 21 06:53:58 2008 +0300
+++ b/configure.ac	Mon Apr 21 06:55:02 2008 +0300
@@ -447,6 +447,23 @@
 
 
 ### ---------------------------------------------------------------------------
+dnl XXX Work around some autoconf bugs.
+if test "x$prefix" = "xNONE"; then
+        prefix="${ac_default_prefix}"
+fi
+
+if test -z "$datadir"; then
+	datadir="${prefix}/share"
+fi
+
+localedir="$datadir/locale"
+AC_SUBST([localedir])
+
+AUDACIOUS_DEFINES="$CFLAGS -DDATA_DIR=\\\"$datadir/audacious\\\" -DPLUGIN_DIR=\\\"$plugindir\\\" -DPLUGINSUBS=$pluginsubs -DLOCALEDIR=\\\"$localedir\\\""
+AC_SUBST([AUDACIOUS_DEFINES])
+
+
+### ---------------------------------------------------------------------------
 dnl Output configuration files
 dnl ==========================
 AC_CONFIG_FILES([