diff --git a/ChangeLog b/ChangeLog index 49355a0ef..b0984a5de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-06-28 Paul Giblock + + * configure.in: + * src/core/config_mgr.cpp: + * src/core/ladspa_manager.cpp: + Search LIBDIR before any other directories + + * acinclude.m4: + Search $QTDIR before any other directories + 2008-06-28 Tobias Doerffel * src/core/song.cpp: diff --git a/acinclude.m4 b/acinclude.m4 index ae1e4ea95..09bde010a 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -55,7 +55,7 @@ fi # Search for available Qt translations AH_TEMPLATE(QT_TRANSLATIONS_DIR, [Define to Qt translations directory]) AC_MSG_CHECKING([Qt translations]) -QT_TRANSLATIONS_SEARCH="/usr/share/qt4 /usr/local/qt /usr/local/Trolltech/Qt-4.3.0 /usr/local/Trolltech/Qt-4.3.1" +QT_TRANSLATIONS_SEARCH="$QTDIR /usr/share/qt4 /usr/local/qt /usr/local/Trolltech/Qt-4.3.0 /usr/local/Trolltech/Qt-4.3.1" for i in $QT_TRANSLATIONS_SEARCH ; do if test -d $i/translations -a x$QT_TRANSLATIONS = x ; then QT_TRANSLATIONS=$i/translations diff --git a/configure.in b/configure.in index 40d0bc0e6..0442097e3 100644 --- a/configure.in +++ b/configure.in @@ -18,7 +18,7 @@ AM_PROG_LIBTOOL if ! test -z "${prefix}" -o "${prefix}" = "NONE" ; then CFLAGS="$CFLAGS -I${prefix}/include" - CPPFLAGS="$CPPFLAGS -I${prefix}/include" + CPPFLAGS="$CPPFLAGS -I${prefix}/include -DLIBDIR='\"${libdir}\"'" LDFLAGS="$LDFLAGS -L${prefix}/bin" fi diff --git a/src/core/config_mgr.cpp b/src/core/config_mgr.cpp index 366191794..94a03130b 100644 --- a/src/core/config_mgr.cpp +++ b/src/core/config_mgr.cpp @@ -53,13 +53,12 @@ configManager::configManager( void ) : #endif ), m_artworkDir( defaultArtworkDir() ), - m_pluginDir( qApp->applicationDirPath() #ifdef LMMS_BUILD_WIN32 - + QDir::separator() + "plugins" + QDir::separator() + m_pluginDir( qApp->applicationDirPath() + + QDir::separator() + "plugins" + QDir::separator() ), #else - .section( '/', 0, -2 ) + "/lib/lmms/" + m_pluginDir( QString( LIBDIR ) + "/lmms/" ), #endif - ), m_vstDir( QDir::home().absolutePath() ), m_flDir( QDir::home().absolutePath() ) { @@ -329,7 +328,7 @@ bool configManager::loadConfigFile( void ) #ifdef LMMS_BUILD_WIN32 m_ladDir = m_pluginDir + "ladspa" + QDir::separator(); #else - m_ladDir = "/usr/lib/ladspa/:/usr/local/lib/ladspa/"; + m_ladDir = QString(LIBDIR) + "/ladspa/:/usr/lib/ladspa/:/usr/local/lib/ladspa/"; #endif } diff --git a/src/core/ladspa_manager.cpp b/src/core/ladspa_manager.cpp index 39af510bf..0f28de069 100644 --- a/src/core/ladspa_manager.cpp +++ b/src/core/ladspa_manager.cpp @@ -42,6 +42,8 @@ ladspaManager::ladspaManager( void ) ladspaDirectories += configManager::inst()->ladspaDir().split( ':' ); #ifndef LMMS_BUILD_WIN32 + ladspaDirectories.push_back( QString( LIBDIR ) + "/lmms/ladspa" ); + ladspaDirectories.push_back( QString( LIBDIR ) + "/ladspa" ); ladspaDirectories.push_back( "/usr/lib/lmms/ladspa" ); ladspaDirectories.push_back( "/usr/local/lib/lmms/ladspa" ); ladspaDirectories.push_back( "/usr/lib/ladspa" );