1
1

Ticket #2636: The various MC config placements.

Added configure option --enable-homedir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Этот коммит содержится в:
Slava Zanko 2011-11-07 16:34:20 +03:00
родитель b4fb7b0c74
Коммит cb49ca477c
2 изменённых файлов: 29 добавлений и 0 удалений

Просмотреть файл

@ -405,6 +405,30 @@ linux*)
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
AC_ARG_ENABLE([background],
[ --enable-background Support for background file operations [[yes]]])

Просмотреть файл

@ -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
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:
- - - - - -