1 |
/* |
/* |
2 |
* Copyright (C) 2007-2015 Andreas Persson |
* Copyright (C) 2007-2017 Andreas Persson |
3 |
* |
* |
4 |
* This program is free software; you can redistribute it and/or |
* This program is free software; you can redistribute it and/or |
5 |
* modify it under the terms of the GNU General Public License as |
* modify it under the terms of the GNU General Public License as |
147 |
// under the same dir as the gigedit dylib is installed in. |
// under the same dir as the gigedit dylib is installed in. |
148 |
Dl_info info; |
Dl_info info; |
149 |
if (dladdr((void*)&init_app, &info)) { |
if (dladdr((void*)&init_app, &info)) { |
150 |
|
#ifdef CONFIG_FORCE_GTK_LIBDIR |
151 |
|
std::string libdir = CONFIG_FORCE_GTK_LIBDIR; |
152 |
|
#else |
153 |
std::string libdir = Glib::path_get_dirname(info.dli_fname); |
std::string libdir = Glib::path_get_dirname(info.dli_fname); |
154 |
|
#endif |
155 |
|
|
156 |
if (Glib::getenv("PANGO_SYSCONFDIR") == "" && |
if (Glib::getenv("PANGO_SYSCONFDIR") == "" && |
157 |
Glib::file_test(Glib::build_filename(libdir, |
Glib::file_test(Glib::build_filename(libdir, |