mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
configure: Add option to specify global defaults directory.
Previously, this was only (partially) possible by redefining the macro GLOBAL_DEFAULTS_SUBDIR. This told Window Maker to look for the global config files in a particular subdirectory of SYSCONFDIR. However: * This is undocumented. * GLOBAL_DEFAULTS_SUBDIR is ignored when installing the config files. They are always installed to SYSCONFDIR/WindowMaker. To solve these issues, we add a "--with-defsdatadir" option to configure which allows a user to specify the global defaults directory.
This commit is contained in:
committed by
Carlos R. Mafra
parent
ac92f1a844
commit
6fa1c0c009
15
configure.ac
15
configure.ac
@@ -867,6 +867,21 @@ AS_IF([test "x$with_gnustepdir" = "x"],
|
||||
AC_SUBST([wprefs_datadir])dnl
|
||||
AC_SUBST([wprefs_bindir])dnl
|
||||
|
||||
dnl Support for DEFSDATADIR option
|
||||
dnl ============================
|
||||
AC_ARG_WITH([defsdatadir],
|
||||
[AS_HELP_STRING([--with-defsdatadir=PATH], [specify where global defaults are located [SYSCONFDIR/WindowMaker]])],
|
||||
[AS_CASE([$withval],
|
||||
[yes|no], [AC_MSG_ERROR([bad value '$withval' for --with-defsdatadir, expected a path]) ],
|
||||
[/*], [], dnl Absolute path, ok
|
||||
[\$*], [], dnl Assumes it starts with a reference to $prefix or a similar variable, ok
|
||||
[AC_MSG_ERROR([bad path '$withval' for defsdatadir, expecting an absolute path])])],
|
||||
[with_defsdatadir=""])
|
||||
|
||||
AS_IF([test "x$with_defsdatadir" != "x"],
|
||||
[defsdatadir="$with_defsdatadir"],
|
||||
[defsdatadir='${sysconfdir}/WindowMaker'])
|
||||
AC_SUBST([defsdatadir])dnl
|
||||
|
||||
dnl Enable User Defined Menu thing
|
||||
dnl ==============================
|
||||
|
||||
Reference in New Issue
Block a user