diff options
author | Eric Anholt <eric@anholt.net> | 2017-03-31 17:33:52 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2017-04-25 15:01:23 -0700 |
commit | da27ca84b4324b68037d6ec19a73b9e0a5ef10bc (patch) | |
tree | 75a86c77b547550bd2c515517fedc8b5e2662cce | |
parent | f81343dd2fff49c70f53e3efdd40f8f89a38e460 (diff) |
xorg: Change __XCONFIGFILE__ to XCONFIGFILE (and DIR) to fix scan.c.
parser/scan.c was checking for #ifdef XCONFIGFILE and XCONFIGDIR and
defaulting to "xorg.conf", and "xorg.conf.d", so if you had changed
__XCONFIGFILE__ to anything else, it would have got out of sync.
Settle on the name without gratuitous underscores.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | hw/xfree86/common/xf86Init.c | 6 | ||||
-rw-r--r-- | include/xorg-config.h.in | 4 | ||||
-rw-r--r-- | include/xorg-server.h.in | 2 | ||||
-rw-r--r-- | manpages.am | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac index 07c552094..4ee43d2d0 100644 --- a/configure.ac +++ b/configure.ac @@ -2024,9 +2024,9 @@ if test "x$XORG" = xyes; then AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs]) AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions]) AC_DEFINE(__XSERVERNAME__, "Xorg", [Name of X server]) - AC_DEFINE_DIR(__XCONFIGFILE__, XF86CONFIGFILE, [Name of configuration file]) + AC_DEFINE_DIR(XCONFIGFILE, XF86CONFIGFILE, [Name of configuration file]) AC_DEFINE_DIR(XF86CONFIGFILE, XF86CONFIGFILE, [Name of configuration file]) - AC_DEFINE_DIR(__XCONFIGDIR__, XF86CONFIGDIR, [Name of configuration directory]) + AC_DEFINE_DIR(XCONFIGDIR, XF86CONFIGDIR, [Name of configuration directory]) AC_DEFINE_DIR(DEFAULT_MODULE_PATH, moduledir, [Default module search path]) AC_DEFINE_DIR(DEFAULT_LIBRARY_PATH, libdir, [Default library install path]) AC_DEFINE_DIR(DEFAULT_LOGDIR, logdir, [Default log location]) diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 88f99ac5e..d3c7c47b0 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -1359,17 +1359,17 @@ ddxUseMsg(void) ErrorF("-modulepath paths specify the module search path\n"); ErrorF("-logfile file specify a log file name\n"); ErrorF("-configure probe for devices and write an " - __XCONFIGFILE__ "\n"); + XCONFIGFILE "\n"); ErrorF ("-showopts print available options for all installed drivers\n"); } ErrorF ("-config file specify a configuration file, relative to the\n"); - ErrorF(" " __XCONFIGFILE__ + ErrorF(" " XCONFIGFILE " search path, only root can use absolute\n"); ErrorF ("-configdir dir specify a configuration directory, relative to the\n"); - ErrorF(" " __XCONFIGDIR__ + ErrorF(" " XCONFIGDIR " search path, only root can use absolute\n"); ErrorF("-verbose [n] verbose startup messages\n"); ErrorF("-logverbose [n] verbose log messages\n"); diff --git a/include/xorg-config.h.in b/include/xorg-config.h.in index a7d80b5af..b8d6a87a3 100644 --- a/include/xorg-config.h.in +++ b/include/xorg-config.h.in @@ -34,10 +34,10 @@ #undef XF86CONFIGFILE /* Path to configuration file. */ -#undef __XCONFIGFILE__ +#undef XCONFIGFILE /* Name of configuration directory. */ -#undef __XCONFIGDIR__ +#undef XCONFIGDIR /* Path to loadable modules. */ #undef DEFAULT_MODULE_PATH diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in index dafc27f4a..570893e34 100644 --- a/include/xorg-server.h.in +++ b/include/xorg-server.h.in @@ -180,7 +180,7 @@ #undef __VENDORDWEBSUPPORT__ /* Location of configuration file */ -#undef __XCONFIGFILE__ +#undef XCONFIGFILE /* Name of X server */ #undef __XSERVERNAME__ diff --git a/manpages.am b/manpages.am index 648210b4e..124bb5575 100644 --- a/manpages.am +++ b/manpages.am @@ -22,7 +22,7 @@ MAN_SUBSTS += -e 's|__logdir__|$(logdir)|g' \ -e 's|__datadir__|$(datadir)|g' \ -e 's|__mandir__|$(mandir)|g' \ -e 's|__sysconfdir__|$(sysconfdir)|g' \ - -e 's|__xconfigdir__|$(__XCONFIGDIR__)|g' \ + -e 's|__xconfigdir__|$(XCONFIGDIR)|g' \ -e 's|__xkbdir__|$(XKB_BASE_DIRECTORY)|g' \ -e 's|__XKB_DFLT_RULES__|$(XKB_DFLT_RULES)|g' \ -e 's|__XKB_DFLT_MODEL__|$(XKB_DFLT_MODEL)|g' \ |