make install location autodetection work for executables compressed with (latest version of) UPX under Linux (patch 1565357)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-22 14:19:50 +00:00
parent 85fa9d60c4
commit 3abcfa9b7f
2 changed files with 52 additions and 25 deletions

View File

@@ -19,6 +19,10 @@
class WXDLLIMPEXP_BASE wxStandardPaths : public wxStandardPathsBase
{
public:
// tries to determine the installation prefix automatically (Linux only right
// now) and returns /usr/local if it failed
void DetectPrefix();
// set the program installation directory which is /usr/local by default
//
// under some systems (currently only Linux) the program directory can be
@@ -29,8 +33,7 @@ public:
// get the program installation prefix
//
// if the prefix had been previously by SetInstallPrefix, returns that
// value, otherwise tries to determine it automatically (Linux only right
// now) and returns /usr/local if it failed
// value, otherwise calls DetectPrefix()
wxString GetInstallPrefix() const;