Respect non-standard install paths for web interface files

This commit is contained in:
Mukund Sivaraman 2008-08-14 10:35:11 +00:00
parent 50dcfb2ba0
commit b6791332cd
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
AM_CPPFLAGS = -I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ -D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS)
AM_CPPFLAGS = \
-I. -I$(top_srcdir) -I$(top_srcdir)/third-party/ \
-D__TRANSMISSION__ $(LIBEVENT_CPPFLAGS) \
-DPACKAGE_DATA_DIR=\""$(datadir)"\"
AM_CFLAGS = $(LIBCURL_CFLAGS) $(OPENSSL_CFLAGS) $(PTHREAD_CFLAGS)
noinst_LIBRARIES = libtransmission.a

View File

@ -563,7 +563,7 @@ tr_getClutchDir( const tr_session * session UNUSED )
/* XDG_DATA_DIRS are the backup directories */
s = getenv( "XDG_DATA_DIRS" );
if( !s || !*s )
s = "/usr/local/share/:/usr/share/";
s = PACKAGE_DATA_DIR ":/usr/local/share/:/usr/share/";
while( s && *s ) {
char * end = strchr( s, ':' );
if( end ) {