alanc@alf:/export/alanc/X.org/head/cvs-rw/xc [7:40pm - 628] head -14
ChangeLog include xorg-config.h for modular build Adjust XF86CONFIG defines for modular build Fixes for modular build: - include modular server config headers - change default XCONFIGFILE to xorg.conf - define XKB_RULES_DIR if not defined by Imake
This commit is contained in:
		
							parent
							
								
									256fa24945
								
							
						
					
					
						commit
						0531c4be2f
					
				| 
						 | 
					@ -29,6 +29,10 @@
 | 
				
			||||||
 * $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/config.h,v 1.21 2004/02/13 23:58:52 dawes Exp $
 | 
					 * $XFree86: xc/programs/Xserver/hw/xfree86/xf86cfg/config.h,v 1.21 2004/02/13 23:58:52 dawes Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef HAVE_CONFIG_H
 | 
				
			||||||
 | 
					# include "xorg-config.h"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <X11/IntrinsicP.h>
 | 
					#include <X11/IntrinsicP.h>
 | 
				
			||||||
#include <X11/StringDefs.h>
 | 
					#include <X11/StringDefs.h>
 | 
				
			||||||
#include <X11/Xmu/SysUtil.h>
 | 
					#include <X11/Xmu/SysUtil.h>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,4 @@
 | 
				
			||||||
 | 
					/* $XdotOrg: $ */
 | 
				
			||||||
/*
 | 
					/*
 | 
				
			||||||
 * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
 | 
					 * Copyright (c) 2000 by Conectiva S.A. (http://www.conectiva.com)
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
| 
						 | 
					@ -528,18 +529,13 @@ main(int argc, char *argv[])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (!config_set && startedx) {
 | 
					    if (!config_set && startedx) {
 | 
				
			||||||
	XtFree(XF86Config_path);
 | 
						XtFree(XF86Config_path);
 | 
				
			||||||
#ifdef XF86CONFIG
 | 
					#ifndef XF86CONFIG
 | 
				
			||||||
# ifdef XF86CONFIGDIR
 | 
					# define XF86CONFIG __XCONFIGFILE__
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef XF86CONFIGDIR
 | 
				
			||||||
	XF86Config_path = XtNewString(XF86CONFIGDIR "/" XF86CONFIG);
 | 
						XF86Config_path = XtNewString(XF86CONFIGDIR "/" XF86CONFIG);
 | 
				
			||||||
# else
 | 
					 | 
				
			||||||
	XF86Config_path = XtNewString("/etc/X11/" XF86CONFIG);
 | 
					 | 
				
			||||||
# endif
 | 
					 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
# ifdef XF86CONFIGDIR
 | 
						XF86Config_path = XtNewString("/etc/X11/" XF86CONFIG);
 | 
				
			||||||
	XF86Config_path = XtNewString(XF86CONFIGDIR "/"__XCONFIGFILE__);
 | 
					 | 
				
			||||||
# else
 | 
					 | 
				
			||||||
	XF86Config_path = XtNewString("/etc/X11/"__XCONFIGFILE__);
 | 
					 | 
				
			||||||
# endif
 | 
					 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    XtAppMainLoop(appcon);
 | 
					    XtAppMainLoop(appcon);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -96,6 +96,11 @@
 | 
				
			||||||
/* $XConsortium: xf86config.c /main/21 1996/10/28 05:43:57 kaleb $ */
 | 
					/* $XConsortium: xf86config.c /main/21 1996/10/28 05:43:57 kaleb $ */
 | 
				
			||||||
/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c,v 1.14 2005/05/28 00:08:03 alanc Exp $ */
 | 
					/* $XdotOrg: xc/programs/Xserver/hw/xfree86/xf86config/xorgconfig.c,v 1.14 2005/05/28 00:08:03 alanc Exp $ */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef HAVE_CONFIG_H
 | 
				
			||||||
 | 
					# include "xorg-server.h"
 | 
				
			||||||
 | 
					# include "xkb-config.h"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdlib.h>
 | 
					#include <stdlib.h>
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
| 
						 | 
					@ -176,7 +181,7 @@ static int getuid() { return 0; }
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef XCONFIGFILE
 | 
					#ifndef XCONFIGFILE
 | 
				
			||||||
#define XCONFIGFILE		"XF86Config"
 | 
					#define XCONFIGFILE		"xorg.conf"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
#define CONFIGNAME		XCONFIGFILE
 | 
					#define CONFIGNAME		XCONFIGFILE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -728,6 +733,10 @@ keyboard_configuration(void)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef XKB_RULES_DIR
 | 
				
			||||||
 | 
					# define XKB_RULES_DIR XKB_BASE_DIRECTORY "/rules"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
						
 | 
				
			||||||
#ifdef XFREE98_XKB
 | 
					#ifdef XFREE98_XKB
 | 
				
			||||||
	config_xkbrules = "xfree98";	/* static */
 | 
						config_xkbrules = "xfree98";	/* static */
 | 
				
			||||||
        rulesfile = XKB_RULES_DIR "/xfree98";
 | 
					        rulesfile = XKB_RULES_DIR "/xfree98";
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue