Ticket #2636: The various MC config placements.

Added configure option --enable-homedir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-11-07 16:34:20 +03:00
parent b4fb7b0c74
commit cb49ca477c
2 changed files with 29 additions and 0 deletions

View File

@ -405,6 +405,30 @@ linux*)
esac esac
dnl
dnl Where config files should be placed
dnl
AC_ARG_WITH([homedir],
AS_HELP_STRING([--enable-homedir], [Choose any place of user settings relative to home dir, or XDG for respect XDG standards @<:@XDG@:>@]),
[
if test "x$withval" = "xXDG"; then
with_homedir=XDG
else
with_homedir=$withval
fi
],
[with_homedir=XDG])
if test x$with_homedir = xXDG; then
AC_DEFINE(MC_HOMEDIR_XDG, 1,
[Define to enable XDG standard support])
else
AC_DEFINE_UNQUOTED([MC_USERCONF_DIR], ["$with_homedir"], [Where configs will be placed relative to $HOME])
fi
dnl Support for background operations dnl Support for background operations
AC_ARG_ENABLE([background], AC_ARG_ENABLE([background],
[ --enable-background Support for background file operations [[yes]]]) [ --enable-background Support for background file operations [[yes]]])

View File

@ -138,6 +138,11 @@ incomplete, use `configure --help' to get the full list):
default. Background code is known to be less stable than the rest default. Background code is known to be less stable than the rest
of the code, so you may want to disable it at the compile time. of the code, so you may want to disable it at the compile time.
`--with-homedir'
This option allow users to place user config directories in any
place. By default value is 'XDG', this mean, mc will respect XDG
standards. If other value will specified, this will used as directory
name (relative to $HOME).
VFS options: VFS options:
- - - - - - - - - - - -