-diff -urN xc.orig/Makefile xc/Makefile
---- xc.orig/Makefile Mon Dec 30 15:54:17 2002
-+++ xc/Makefile Mon Dec 30 16:02:13 2002
-@@ -8,10 +8,10 @@
+diff -Nru xc.orig/Makefile xc/Makefile
+--- xc.orig/Makefile 2003-11-02 05:38:01.000000000 +0100
++++ xc/Makefile 2003-12-23 12:09:12.071230112 +0100
+@@ -8,7 +8,7 @@
# or add "MAKE = make" to this file.
RELEASE = "Release 6.6"
+SHELL = /bin/sh -e
RM = rm -f
MV = mv
--WORLDOPTS = -k
-+WORLDOPTS =
- WIN32WORLDOPTS = -i
- TOP = .
- CURRENT_DIR = .
-diff -urN xc.orig/config/cf/Imake.cf xc/config/cf/Imake.cf
---- xc.orig/config/cf/Imake.cf Mon Dec 30 15:52:30 2002
-+++ xc/config/cf/Imake.cf Mon Dec 30 16:02:13 2002
-@@ -723,6 +723,10 @@
+ WORLDOPTS =
+diff -Nru xc.orig/config/cf/Imake.cf xc/config/cf/Imake.cf
+--- xc.orig/config/cf/Imake.cf 2003-12-19 05:40:33.000000000 +0100
++++ xc/config/cf/Imake.cf 2003-12-23 12:09:11.983243488 +0100
+@@ -784,6 +784,10 @@
# define s390Architecture
# undef __s390__
# endif /* s390 */
# ifdef __alpha
# define AlphaArchitecture
# undef __alpha
-diff -urN xc.orig/config/cf/Imake.tmpl xc/config/cf/Imake.tmpl
---- xc.orig/config/cf/Imake.tmpl Mon Dec 30 15:52:30 2002
-+++ xc/config/cf/Imake.tmpl Mon Dec 30 16:02:13 2002
-@@ -253,7 +253,7 @@
+diff -Nru xc.orig/config/cf/Imake.tmpl xc/config/cf/Imake.tmpl
+--- xc.orig/config/cf/Imake.tmpl 2003-11-21 06:55:02.000000000 +0100
++++ xc/config/cf/Imake.tmpl 2003-12-23 12:09:11.992242120 +0100
+@@ -261,7 +261,7 @@
#ifndef BuildHtmlManPages
#ifdef RmanCmd
#else
#define BuildHtmlManPages NO
#endif
-@@ -833,11 +833,7 @@
+@@ -854,11 +854,7 @@
#define LintlibDir $(USRLIBDIR)/lint
#endif
#ifndef SystemManDirectory
#endif
#ifndef ManDirectoryRoot
#ifdef ProjectRoot
-@@ -974,7 +970,7 @@
+@@ -998,7 +994,7 @@
#define NoRConst NO /* YES if const for structs of funcs is bad */
#endif
#ifndef InstPgmFlags
#endif
#ifndef InstBinFlags
#define InstBinFlags -m 0755
-@@ -1112,7 +1108,7 @@
+@@ -1140,7 +1136,7 @@
#define CppCmd /LibDirName/cpp
#endif
#ifndef RawCppCmd
#endif
#ifndef CppNoLineInfoOption
#define CppNoLineInfoOption /**/
-diff -urN xc.orig/config/cf/X11.tmpl xc/config/cf/X11.tmpl
---- xc.orig/config/cf/X11.tmpl Mon Dec 30 15:52:30 2002
-+++ xc/config/cf/X11.tmpl Mon Dec 30 16:02:13 2002
-@@ -1256,8 +1256,12 @@
+diff -Nru xc.orig/config/cf/X11.tmpl xc/config/cf/X11.tmpl
+--- xc.orig/config/cf/X11.tmpl 2003-12-19 05:41:17.000000000 +0100
++++ xc/config/cf/X11.tmpl 2003-12-23 12:09:12.042234520 +0100
+@@ -1262,8 +1262,12 @@
# define UsbMouseSupport NO
#endif
#endif
/* X-TrueType settings */
-@@ -1380,7 +1384,7 @@
+@@ -1389,7 +1393,7 @@
#define ConfigDir $(LIBDIR)/config
#endif
#ifndef DocDir
#endif
#ifndef DocHtmlDir
#define DocHtmlDir $(DOCDIR)/html
-@@ -1389,31 +1393,31 @@
- #define DocPsDir $(DOCDIR)/PostScript
+@@ -1401,31 +1405,31 @@
+ #define DocPdfDir $(DOCDIR)/PDF
#endif
#ifndef FontDir
-#define FontDir $(LIBDIR)/fonts
#endif
#ifndef NlsDir
#define NlsDir $(LIBDIR)/nls
-@@ -1425,23 +1429,20 @@
- #define PexApiDir $(LIBDIR)/PEX
+@@ -1434,23 +1438,20 @@
+ #define XLocaleDir $(LIBDIR)/locale
#endif
#ifndef LbxproxyDir
-#define LbxproxyDir $(LIBDIR)/lbxproxy
#ifndef InstallSecurityConfig
#define InstallSecurityConfig YES /* Install sample security policy */
#endif
-@@ -1473,10 +1474,10 @@
+@@ -1482,10 +1483,10 @@
#define OsNameDefines /* as nothing */
#endif
#ifndef DefaultUserPath /* for xdm */
#endif
#ifndef DefaultSystemShell /* for xdm to set in SHELL */
#define DefaultSystemShell BourneShell
-@@ -1603,7 +1604,7 @@
+@@ -1614,7 +1615,7 @@
HTMLINDEXCMD = HtmlIndexCmd
CLIENTSRC = $(TOP)/clients
DEMOSRC = $(TOP)/demos
XDOCMACROS = $(DOCUTILSRC)/macros.t
-@@ -1617,7 +1618,7 @@
+@@ -1628,7 +1629,7 @@
SERVERSRC = $(XTOP)/programs/Xserver
CONTRIBSRC = ContribDir
UNSUPPORTEDSRC = UnsupportedDir
RGBSRC = $(XTOP)/programs/rgb
BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
-diff -urN xc.orig/config/cf/linux.cf xc/config/cf/linux.cf
---- xc.orig/config/cf/linux.cf Mon Dec 30 15:52:31 2002
-+++ xc/config/cf/linux.cf Mon Dec 30 16:20:00 2002
-@@ -320,7 +320,7 @@
+diff -Nru xc.orig/config/cf/linux.cf xc/config/cf/linux.cf
+--- xc.orig/config/cf/linux.cf 2003-12-19 05:41:59.000000000 +0100
++++ xc/config/cf/linux.cf 2003-12-23 12:09:12.008239688 +0100
+@@ -333,7 +333,7 @@
*/
#if BuildXF86DRI
# if defined(i386Architecture)
# endif
#endif
-@@ -333,7 +333,7 @@
- # if defined(i386Architecture) || defined(ia64Architecture) || defined(SparcArchitecture) || defined(AlphaArchitecture) || defined(x86_64Architecture)
- # if OSMajorVersion == 2
- /* Only tested for Linux 2.2.0 through 2.2.12 */
--# if OSMinorVersion == 2 && OSTeenyVersion <= 12
-+# if OSMinorVersion == 2
- # define BuildXF86DRM YES
- # else
- /* Only tested for Linux 2.3.0 through 2.3.18 */
-@@ -721,7 +721,7 @@
+@@ -720,7 +720,7 @@
#define HasVarRun YES
#ifndef VarDbDirectory
#endif
#ifndef XF86OSCardDrivers
-@@ -936,10 +936,10 @@
- #endif
-
- #ifndef LinkGLToUsrLib
--# define LinkGLToUsrLib YES
-+# define LinkGLToUsrLib NO
- #endif
- # ifndef LinkGLToUsrInclude
--# define LinkGLToUsrInclude YES
-+# define LinkGLToUsrInclude NO
- #endif
-
-
-diff -urN xc.orig/config/cf/site.def xc/config/cf/site.def
---- xc.orig/config/cf/site.def Mon Dec 30 15:52:31 2002
-+++ xc/config/cf/site.def Mon Dec 30 16:02:13 2002
+diff -Nru xc.orig/config/cf/site.def xc/config/cf/site.def
+--- xc.orig/config/cf/site.def 2002-02-27 01:51:12.000000000 +0100
++++ xc/config/cf/site.def 2003-12-23 12:09:12.014238776 +0100
@@ -119,10 +119,14 @@
#define HasSentinel YES
*/
/* You do NOT need SetUID if you only run the server under xdm */
-diff -urN xc.orig/config/cf/xf86site.def xc/config/cf/xf86site.def
---- xc.orig/config/cf/xf86site.def Mon Dec 30 15:52:31 2002
-+++ xc/config/cf/xf86site.def Mon Dec 30 16:28:24 2002
-@@ -234,8 +234,8 @@
+diff -Nru xc.orig/config/cf/xf86site.def xc/config/cf/xf86site.def
+--- xc.orig/config/cf/xf86site.def 2003-09-10 13:00:03.000000000 +0200
++++ xc/config/cf/xf86site.def 2003-12-23 12:09:12.050233304 +0100
+@@ -260,8 +260,8 @@
/*
* To not build/install the Cyrillic fonts, uncomment the following
*
/*
* To not install the local font directory, uncomment the following
-@@ -281,27 +281,26 @@
+@@ -307,27 +307,26 @@
* HasGlide2 to YES and set the Glide2IncDir variable.
* HasGlide2 is per default NO.
*
/*
-@@ -403,8 +402,8 @@
+@@ -429,8 +428,8 @@
* Some Linux releases don't have a libtermcap. In this case you may need
* to uncomment the following
*
*/
+#define TermcapLibrary -lncurses
- /*
- * If you have Tk (which is required to build XF86Setup), uncomment this
-@@ -413,8 +412,8 @@
- * default.
- * - XF86Setup is not built or supported with XFree86 4.x
- *
--#define HasTk YES
- */
-+#define HasTk YES
-
- /*
- * Set the paths and names for your Tk library if they don't match the
-@@ -427,25 +426,25 @@
- *
- * Some Linux releases need TkLibDir set to /usr/X11R6/lib
- *
--#define TkLibDir /usr/local/lib
--#define TkIncDir /usr/local/include
--#define TkLibName tk
- */
-+#define TkLibDir /usr/lib
-+#define TkIncDir /usr/include
-+#define TkLibName tk
-
- /*
- * By default, XF86Setup is linked with a static Tk library. To change
- * that, uncomment the following line.
- *
--#define XF86SetupUsesStaticTk NO
- */
-+#define XF86SetupUsesStaticTk NO
-
- /*
- * If you have Tcl (which is required to build XF86Setup), uncomment this
- * Note: version 7.4 or 7.5 is required, and XF86Setup links it statically by
- * default.
- *
--#define HasTcl YES
- */
-+#define HasTcl YES
-
- /*
- * Set the paths and names for your Tcl library if they don't match the
-@@ -455,17 +454,17 @@
- *
- * Some Linux releases need TclIncDir set to /usr/include/tcl.
- *
--#define TclLibDir /usr/local/lib
--#define TclIncDir /usr/local/include
--#define TclLibName tcl
- */
-+#define TclLibDir /usr/lib
-+#define TclIncDir /usr/include
-+#define TclLibName tcl
-
- /*
- * By default, XF86Setup is linked with a static Tcl library. To change
- * that, uncomment the following line.
- *
--#define XF86SetupUsesStaticTcl NO
- */
-+#define XF86SetupUsesStaticTcl NO
-
/*
* Build a server that dynamically loads the modules by setting
-@@ -677,8 +676,8 @@
+@@ -605,8 +604,8 @@
* To forceably build static libraries in addition to shared libraries,
* uncomment this.
*
/*
* Uncomment this if your default tools (eg, gcc, ld, as, etc) are
-diff -urN xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
---- xc.orig/config/cf/xfree86.cf Mon Dec 30 15:52:31 2002
-+++ xc/config/cf/xfree86.cf Mon Dec 30 16:02:13 2002
-@@ -107,7 +107,7 @@
+diff -Nru xc.orig/config/cf/xfree86.cf xc/config/cf/xfree86.cf
+--- xc.orig/config/cf/xfree86.cf 2003-11-21 06:55:07.000000000 +0100
++++ xc/config/cf/xfree86.cf 2003-12-23 12:09:12.055232544 +0100
+@@ -128,7 +128,7 @@
#define XConfigFile XF86Config
#endif
#ifndef XConfigDir
#endif
#ifndef XLogFile
#define XLogFile XFree86
-@@ -877,7 +877,7 @@
- /* Pure PCI drivers should go first */
+@@ -760,7 +760,7 @@
+
# ifndef XF86CardDrivers
- # define XF86CardDrivers ati mga glint s3 s3virge sis savage\
-- trident chips tdfx fbdev \
-+ trident chips fbdev \
- DevelDrivers vga \
+ # define XF86CardDrivers mga glint nv s3 s3virge sis savage \
+- trident chips tdfx fbdev ati \
++ trident chips fbdev ati \
+ DevelDrivers newport \
XF86OSCardDrivers XF86ExtraCardDrivers
# endif
-diff -urN xc.orig/config/imake/imake.c xc/config/imake/imake.c
---- xc.orig/config/imake/imake.c Mon Dec 30 15:52:31 2002
-+++ xc/config/imake/imake.c Mon Dec 30 16:02:13 2002
+diff -Nru xc.orig/config/imake/imake.c xc/config/imake/imake.c
+--- xc.orig/config/imake/imake.c 2003-04-10 13:00:03.000000000 +0200
++++ xc/config/imake/imake.c 2003-12-23 12:09:12.060231784 +0100
@@ -1057,6 +1057,7 @@
static char* suse = "/etc/SuSE-release";
static char* redhat = "/etc/redhat-release";
/* what's the definitive way to tell what any particular distribution is? */
fprintf (inFile, "%s\n", "#define DefaultLinuxDistribution LinuxUnknown");
-diff -urN xc.orig/programs/Xserver/hw/xfree86/XF86Setup/Imakefile xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile
---- xc.orig/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Mon Dec 30 15:53:38 2002
-+++ xc/programs/Xserver/hw/xfree86/XF86Setup/Imakefile Mon Dec 30 16:02:13 2002
-@@ -118,7 +118,7 @@
-
- XCONFIG_DEFINES = $(EXT_DEFINES) -DXF86SETUP \
- '-DPROJECTROOT="$(PROJECTROOT)"' \
-- '-DSERVER_CONFIG_FILE="$(LIBDIR)/$(XCONFIGFILE)"' \
-+ '-DSERVER_CONFIG_FILE="/etc/X11/$(XCONFIGFILE)"' \
- $(SITE_FONT_PATH) $(SITE_RGB_DB) \
- -DNO_WRAPPERS
-
-diff -urN xc.orig/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl
---- xc.orig/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Mon Dec 30 15:53:38 2002
-+++ xc/programs/Xserver/hw/xfree86/XF86Setup/phase5.tcl Mon Dec 30 16:02:13 2002
-@@ -38,7 +38,7 @@
- set devid [lindex $DeviceIDs $idx]
- global Device_$devid
- set server [set Device_${devid}(Server)]
-- set linkname $Xwinhome/bin/X
-+ set linkname /etc/X11/X
- set lastlink $linkname
- for {set nlinks 0} \
- {[file exists $linkname] && [file type $linkname]=="link" \
-@@ -74,7 +74,7 @@
- set CWD [pwd]
- cd $linkdir
- catch "unlink X" ret
-- if [catch "link $Xwinhome/bin/XF86_$server X" ret] {
-+ if [catch "link ../../usr/X11R6/bin/XF86_$server X" ret] {
- mesg $messages(phase5.4) okay
- } else {
- mesg $messages(phase5.5) okay
-diff -urN xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile
---- xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Mon Dec 30 15:53:56 2002
-+++ xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile Mon Dec 30 16:02:13 2002
-@@ -93,7 +93,7 @@
+diff -Nru xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile
+--- xc.orig/programs/Xserver/hw/xfree86/xf86cfg/Imakefile 2003-12-19 05:48:39.000000000 +0100
++++ xc/programs/Xserver/hw/xfree86/xf86cfg/Imakefile 2003-12-23 12:09:12.000000000 +0100
+@@ -107,7 +107,7 @@
#if HasNCurses
CURSESLIB = NCursesLibName
#endif
XF86CONFIGFILE = XConfigFile
-diff -urN xc.orig/programs/xdm/config/Xres.cpp xc/programs/xdm/config/Xres.cpp
---- xc.orig/programs/xdm/config/Xres.cpp Mon Dec 30 15:54:07 2002
-+++ xc/programs/xdm/config/Xres.cpp Mon Dec 30 16:02:13 2002
-@@ -70,10 +70,10 @@
- #endif /* XPM */
- /**/#endif
+diff -Nru xc.orig/programs/xdm/config/Xres.cpp xc/programs/xdm/config/Xres.cpp
+--- xc.orig/programs/xdm/config/Xres.cpp 2003-11-21 07:01:06.000000000 +0100
++++ xc/programs/xdm/config/Xres.cpp 2003-12-23 12:09:12.000000000 +0100
+@@ -71,9 +71,9 @@
+ XHASHendif
#ifdef XPM
--/**/#if PLANES >= 8
+-XHASHif PLANES >= 8
-xlogin*logoFileName: BITMAPDIR/**//XDM_PIXMAP
-+/**/#if PLANES >= 15
++XHASHif PLANES > 8
+xlogin*logoFileName: BITMAPDIR/**//xdm-pld-logo.xpm
- /**/#else
+ XHASHelse
-xlogin*logoFileName: BITMAPDIR/**//XDM_BWPIXMAP
+xlogin*logoFileName: BITMAPDIR/**//xdm-pld-logo-bw.xpm
- /**/#endif
+ XHASHendif
xlogin*useShape: true
xlogin*logoPadding: 10
-diff -urN xc.orig/programs/xdm/resource.c xc/programs/xdm/resource.c
---- xc.orig/programs/xdm/resource.c Mon Dec 30 15:54:06 2002
-+++ xc/programs/xdm/resource.c Mon Dec 30 16:02:13 2002
-@@ -73,31 +73,31 @@
- * if it is server-specific). DO NOT CHANGE THESE DEFINITIONS!
+diff -Nru xc.orig/programs/xdm/resource.c xc/programs/xdm/resource.c
+--- xc.orig/programs/xdm/resource.c 2003-09-25 13:06:32.000000000 +0200
++++ xc/programs/xdm/resource.c 2003-12-23 12:09:12.000000000 +0100
+@@ -84,31 +84,31 @@
*/
+ #ifndef __EMX__
#ifndef DEF_SERVER_LINE
-#define DEF_SERVER_LINE ":0 local /usr/bin/X11/X :0"
+#define DEF_SERVER_LINE ":0 local /usr/X11R6/bin/X :0"
#endif
#ifndef DEF_AUTH_NAME
#ifdef HASXDMAUTH
-@@ -107,7 +107,7 @@
+@@ -118,7 +118,7 @@
#endif
#endif
#ifndef DEF_AUTH_DIR
#endif
#ifndef DEF_USER_AUTH_DIR
#define DEF_USER_AUTH_DIR "/tmp"
-diff -urN xc.orig/programs/xinit/Imakefile xc/programs/xinit/Imakefile
---- xc.orig/programs/xinit/Imakefile Mon Dec 30 15:54:10 2002
-+++ xc/programs/xinit/Imakefile Mon Dec 30 16:31:27 2002
-@@ -39,11 +39,12 @@
- InstallNamedProg(startx,startx,$(BINDIR))
+diff -Nru xc.orig/programs/xinit/Imakefile xc/programs/xinit/Imakefile
+--- xc.orig/programs/xinit/Imakefile 2003-11-21 07:01:12.000000000 +0100
++++ xc/programs/xinit/Imakefile 2003-12-23 12:09:12.000000000 +0100
+@@ -46,11 +46,12 @@
+ #endif
InstallManPage(startx,$(MANDIR))
-#if InstallXinitConfig
LinkConfDirectory(xinit,.,xinit,.)
-diff -urN xc.orig/programs/xterm/Imakefile xc/programs/xterm/Imakefile
---- xc.orig/programs/xterm/Imakefile Mon Dec 30 15:54:16 2002
-+++ xc/programs/xterm/Imakefile Mon Dec 30 16:35:55 2002
+diff -Nru xc.orig/programs/xterm/Imakefile xc/programs/xterm/Imakefile
+--- xc.orig/programs/xterm/Imakefile 2003-12-19 05:51:51.000000000 +0100
++++ xc/programs/xterm/Imakefile 2003-12-23 12:11:05.000000000 +0100
@@ -36,6 +36,10 @@
#define XkbClientLibs /**/
#endif
#if defined(NetBSDArchitecture) || defined(OpenBSDArchitecture) || \
(defined(LinuxArchitecture) && \
(LinuxCLibMajorVersion == 6) && (LinuxCLibMinorVersion < 1))
-@@ -110,7 +116,7 @@
- MISC_DEFINES = /* -DALLOWLOGGING -DALLOWLOGFILEEXEC */
+@@ -116,7 +122,7 @@
XKB_DEFINES = XkbClientDefines
PATH_DEFINES = -DPROJECTROOT=$(PROJECTROOT)
-- DEFINES = -I. $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
-+ DEFINES = -I. -I/usr/include/ncurses $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
- INCLUDES = $(XRFINCLUDES)
+ DEFINES = $(XKB_DEFINES) $(TERMCAPDEFINES) $(FEATURE_DEFINES) $(SCROLLBAR_RIGHT) $(UTF8_OPTION) $(XRFDEF) $(PATH_DEFINES) $(TRACEDEF)
+- INCLUDES = -I. $(XRFINCLUDES)
++ INCLUDES = -I. -I/usr/include/ncurses $(XRFINCLUDES)
#ifdef OS2Architecture
-diff -urN xc.orig/programs/xterm/xterm.h xc/programs/xterm/xterm.h
---- xc.orig/programs/xterm/xterm.h Mon Dec 30 15:54:16 2002
-+++ xc/programs/xterm/xterm.h Mon Dec 30 16:02:13 2002
-@@ -73,7 +73,7 @@
- #endif
-
- #ifndef DFT_TERMTYPE
--#define DFT_TERMTYPE "xterm"
-+#define DFT_TERMTYPE "xterm-color"
- #endif
-
- #ifndef X_NOT_POSIX
+ MAINSRC = os2main.c