diff options
author | Francois Andriot <[email protected]> | 2014-05-01 15:06:19 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2014-05-01 15:06:19 +0200 |
commit | 298da70ab4f6da3780c617a85957a80f2e7ae71b (patch) | |
tree | d7014f83d8d46a7e56d87ee27618e1af12f1f8ea | |
parent | caa0568c57f9f3e79a16cf6680ee14bea05432b9 (diff) | |
download | bibletime-298da70ab4f6da3780c617a85957a80f2e7ae71b.tar.gz bibletime-298da70ab4f6da3780c617a85957a80f2e7ae71b.zip |
Fix FTBFS on Fedora 20
Fix custom-installed Sword detection
-rw-r--r-- | bibletime/backend/clanguagemgr.cpp | 6 | ||||
-rw-r--r-- | sword.m4 | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bibletime/backend/clanguagemgr.cpp b/bibletime/backend/clanguagemgr.cpp index 8f73ec3..ac94790 100644 --- a/bibletime/backend/clanguagemgr.cpp +++ b/bibletime/backend/clanguagemgr.cpp @@ -95,10 +95,10 @@ const CLanguageMgr::LangMap& CLanguageMgr::availableLanguages() { for (ListCSwordModuleInfo::iterator it(mods.begin()); it != end_it; ++it) { // for (CSwordModuleInfo* m = mods.first(); m; m = mods.next()) { - abbrev = (*it)->module()->Lang(); + const char* mod = (*it)->module()->Lang(); - if (abbrev && !abbrevs.contains(abbrev)) { - abbrevs.append( abbrev ); + if (mod && !abbrevs.contains(mod)) { + abbrevs.append( mod ); } }; @@ -28,7 +28,7 @@ AC_ARG_ENABLE(static-sword, dnl try to find Sword library files AC_MSG_CHECKING([for Sword library files]) AC_REQUIRE([AC_FIND_ZLIB]) -ac_sword_library_dirs="$ac_sword_dir/lib $exec_prefix/lib $prefix/lib /usr/lib /usr/lib64 /usr/lib/sword /usr/local/lib /usr/local/lib/sword /usr/local/sword/lib" +ac_sword_library_dirs="$ac_sword_dir/lib64 $ac_sword_dir/lib $exec_prefix/lib $prefix/lib64 $prefix/lib /usr/lib /usr/lib64 /usr/lib/sword /usr/local/lib /usr/local/lib/sword /usr/local/sword/lib" if test "x$ac_static_sword" = "xYES"; then SEARCH_LIBS="libsword.a"; |