namespace {
-// These next three functions contain the stuff that is substituted at
+// These next functions contain the stuff that is substituted at
// configuration-time.
-string const top_srcdir()
-{
- static string const dir("@TOP_SRCDIR@");
- return dir;
-}
-
-
string const hardcoded_localedir()
{
return string("@LOCALEDIR@");
} // namespace anon
-string const & Package::top_srcdir() const
+string const & Package::top_srcdir()
{
static string const dir("@TOP_SRCDIR@");
return dir;
if (!fileSearch(build_support_dir, "Makefile").empty()) {
// Try and find "chkconfig.ltx".
string const system_support_dir =
- addPath(top_srcdir(), "lib");
+ addPath(Package::top_srcdir(), "lib");
if (!fileSearch(system_support_dir, "chkconfig.ltx").empty()) {
lyxerr[Debug::INIT] << check_text << " yes"
/** The top of the LyX source code tree.
*/
- std::string const & top_srcdir() const;
+ static std::string const & top_srcdir();
/** The path to the system-level support files
* we're actually going to use.