aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-28 16:17:18 +0200
committerMax Kellermann <max@duempel.org>2009-07-28 16:17:18 +0200
commit9322f04529659a01ccf313f2883f79d1525de99c (patch)
tree173a66db5800d1187c5308d87f0302dbce92803c /Makefile.am
parent884201b9190946f157f2b4e2aadb5131051cbb5f (diff)
downloadmpd-9322f04529659a01ccf313f2883f79d1525de99c.tar.gz
mpd-9322f04529659a01ccf313f2883f79d1525de99c.tar.xz
mpd-9322f04529659a01ccf313f2883f79d1525de99c.zip
cmdline: obey $(sysconfdir) for default mpd.conf location
Instead of hard-coding the path "/etc/mpd.conf", use the configured $(sysconfdir) path. This can be set with: ./configure --sysconfdir=/etc Note that this changes the default path to "/usr/local/etc/mpd.conf", given the default prefix "/usr/local". This is actually more correct than the old default.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 0367c78ed..d2f6d6531 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,6 +3,8 @@ AUTOMAKE_OPTIONS = foreign 1.10 dist-bzip2
AM_CPPFLAGS = -I$(srcdir)/src $(GLIB_CFLAGS)
+AM_CPPFLAGS += -DSYSTEM_CONFIG_FILE_LOCATION='"$(sysconfdir)/mpd.conf"'
+
bin_PROGRAMS = src/mpd
src_mpd_CFLAGS = $(AM_CFLAGS) $(MPD_CFLAGS)