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>
This commit is contained in:
Eric Anholt 2017-03-31 17:33:52 -07:00
parent f81343dd2f
commit da27ca84b4
5 changed files with 9 additions and 9 deletions

View File

@ -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])

View File

@ -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");

View File

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

View File

@ -180,7 +180,7 @@
#undef __VENDORDWEBSUPPORT__
/* Location of configuration file */
#undef __XCONFIGFILE__
#undef XCONFIGFILE
/* Name of X server */
#undef __XSERVERNAME__

View File

@ -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' \