Hi all!

The following patch changes lib/configure.m4 and lyx_main.C
in order to allow automatic detection if a path_prefix is needed
(mainly for MacOSX, but should also work for other systems
which have ':' as path separator -- others usually don't support
shell scripts either)

The idea is to try  a hardcoded list of additional directories
(currently /usr/local/bin, /opt/local/bin, /sw/bin
and /usr/local/teTeX/bin/powerpc-darwin-current)
if some executable is not found in the normal path.
If this succeeds, the corrseponding directory is included in the
path_prefix and later written to lyxrc.default.

The change in lyx_main.C just uses this entry in the system
defaults if the user didn't provide an path_prefix in their own
preferences.

Corresponding Changelog entries:

lib/Changelog:

2005-02-25  Andreas Vox  <[EMAIL PROTECTED]>

        * configure.m4: try additional directories in SEARCH_BINARY and
        include them in path_prefix

src/Changelog:

2005-02-05  Andreas Vox  <[EMAIL PROTECTED]>

* lyx_main.C (init): if lyxrc.path_prefix is empty but system_lyxrc.path_prefix
is not, prependEnvPath by system_lyxrc.path_prefix



Attachment: configure_path_prefix.diff
Description: Binary data

Reply via email to