home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / usr / lib / X11 / config / sco5.cf < prev    next >
Encoding:
Text File  |  2006-12-20  |  9.5 KB  |  381 lines

  1. XCOMM $XFree86: xc/config/cf/sco5.cf,v 3.15 2003/12/19 02:05:37 dawes Exp $
  2. XCOMM $XdotOrg: util/cf/sco5.cf,v 1.8 2005/11/21 01:16:18 jkj Exp $
  3.  
  4. /*
  5.  * This is for SCO Open Server 5.0.6A or later. You must have the
  6.  * Execution Environment update (OSS646) installed on 5.0.6 (it
  7.  * ships standard in 5.0.7 and later), as well as the Graphics,
  8.  * Web and X11 (gwxlibs) package OSS631 installed, which also ships
  9.  * standard with 5.0.7 and later.
  10.  *
  11.  * It is suggested that you use the GNU Development Tools for compiling
  12.  * XFree86. Almost no testing has been done with the native development
  13.  * system.
  14.  */
  15.  
  16. #ifndef OSName
  17. #define OSName            UNIX System V/386 Open Server Release 5
  18. #endif
  19. #ifndef OSVendor
  20. #define OSVendor        SCO-Group
  21. #endif
  22. #ifndef OSMajorVersion
  23. #define OSMajorVersion        5
  24. #endif
  25. #ifndef OSMinorVersion
  26. #define OSMinorVersion        0
  27. #endif
  28. #ifndef OSTeenyVersion
  29. #define OSTeenyVersion        7
  30. #endif
  31.  
  32. /*
  33.  * Note: We define FD_SETSIZE here (as opposed to in ConnectionFlags) to
  34.  * guarantee that the same FD_SETSIZE is used. Havoc abounds if we do not
  35.  * do this, as some files which include sys/socket.h and sys/types.h will
  36.  * have different values for FD_SETSIZE.
  37.  *
  38.  * Note 2: We also define _SVID3, as this seems to enable more Streams
  39.  * based options which are closer to the "desired" state for X11. A by-
  40.  * product of this is that we get better signals too.
  41.  */
  42.  
  43. #ifndef HasGcc2
  44. # define HasGcc2        YES
  45. #endif
  46. #ifndef HasGcc3
  47. # define HasGcc3        NO
  48. #endif
  49. #ifndef HasGcc2ForCplusplus
  50. # define HasGcc2ForCplusplus    YES
  51. #endif
  52.  
  53. #ifndef HasGcc
  54. # if HasGcc2 || HasGcc3
  55. #  define HasGcc        YES
  56. # endif
  57. #endif
  58.  
  59. /*
  60.  * Although OpenServer does not currently have threads, there are plans
  61.  * for it in the near future, and libc/libsocket are already thread
  62.  * safe, so use -D_REENTRANT when compiling libraries so that if an
  63.  * app that has either the new forthcoming threads, or one that uses
  64.  * GNU PTH or FSU pthreads is linked against X, that the libraries are
  65.  * safe at least with regards to things like errno and various _r functions.
  66.  */
  67. #ifndef LibraryCCOptions
  68. # define LibraryCCOptions    -D_REENTRANT -DFD_SETSIZE=11000 -D_NO_STATIC -DMAXPATHLEN=1024
  69. #endif
  70.  
  71. #ifndef UseExportLists
  72. # define UseExportLists        NO
  73. #endif
  74.  
  75. #define StandardDefines        -DSYSV -Di386 -DSCO325 -D__SCO__
  76. #if HasGcc
  77. # define DefaultCCOptions    GccWarningOptions
  78. # ifndef CcCmd
  79. #  define CcCmd            gcc
  80. # endif
  81. # ifndef DefaultCDebugFlags
  82. #  define DefaultCDebugFlags    -O6 -fomit-frame-pointer -march=i586 -mcpu=i586
  83. # endif
  84. # ifndef OptimizedCDebugFlags
  85. #  define OptimizedCDebugFlags    -O6 -fomit-frame-pointer -march=i586 -mcpu=i586
  86. # endif
  87. #else
  88. # ifndef CcCmd
  89. #  define CcCmd            cc -belf
  90. # endif
  91. # define DefaultCCOptions    -dy
  92. # ifndef DefaultCDebugFlags
  93. #  define DefaultCDebugFlags    -O2
  94. # endif
  95. # ifndef OptimizedCDebugFlags
  96. #  define OptimizedCDebugFlags    -O2
  97. # endif
  98. #endif
  99.  
  100. #define BuildLibPathVar        LD_LIBRARY_PATH
  101.  
  102. #ifndef HasNCurses
  103. # define HasNCurses        YES
  104. #endif
  105. #ifndef NCursesLibName
  106. # define NCursesLibName        -lcurses
  107. #endif
  108. #ifndef TermcapLibrary
  109. # define TermcapLibrary        -lcurses
  110. #endif
  111.  
  112. #ifndef BuildXterm
  113. # define BuildXterm        BuildClients
  114. #endif
  115.  
  116. #ifndef UseDeprecatedKeyboardDriver
  117. #define UseDeprecatedKeyboardDriver    NO
  118. #endif
  119.  
  120. #ifndef SCOHasGWXLIBS
  121. # define SCOHasGWXLIBS        YES
  122. #endif
  123.  
  124. #ifndef LogDirectory
  125. # define LogDirectory        /var/adm
  126. #endif
  127.  
  128. #ifndef DoLoadableServer
  129. # define DoLoadableServer    YES
  130. #endif
  131.  
  132. #if DoLoadableServer
  133. # if HasGcc
  134. #  define SCODynamicFlags    -rdynamic
  135. # else
  136. #  define SCODynamicFlags    -Wl,-Bexport
  137. # endif
  138. #else
  139. # define SCODynamicFlags    /**/
  140. #endif
  141.  
  142. #ifndef BuildFreetypeDlModule
  143. # define BuildFreetypeDlModule    NO
  144. #endif
  145.  
  146. #ifndef AsmDefines
  147. # define AsmDefines        -D__ELF__ -D__PIC__
  148. #endif
  149.  
  150. #ifndef XawI18nDefines
  151. # define XawI18nDefines        -DHAS_WCHAR_H -DHAS_WCTYPE_H -DHAS_ISW_FUNCS
  152. #endif
  153.  
  154. #ifndef ServerExtraSysLibs
  155. # define ServerExtraSysLibs    $(CBRT) -lm SCODynamicFlags
  156. #endif
  157.  
  158. #ifndef ExtraLibraries
  159. # define ExtraLibraries        -lsocket
  160. #endif
  161.  
  162. #ifndef NeedWidePrototypes
  163. # define NeedWidePrototypes    YES
  164. #endif
  165.  
  166. #define SCOBuildFlags        -DFD_SETSIZE=11000 -DMAXPATHLEN=1024 -DPATH_MAX=1024
  167.  
  168. #define ServerExtraDefines    -D_REENTRANT SCOBuildFlags -DDDXTIME XFree86ServerDefines
  169.  
  170. #ifndef ThreadedX
  171. # define ThreadedX        NO
  172. #endif
  173.  
  174. #ifndef HasThreadSafeAPI
  175. # define HasThreadSafeAPI    NO
  176. #endif
  177.  
  178. #define HasNdbm            YES
  179. #define HasVFork        YES
  180. #define HasPutenv        YES
  181. #define HasSnprintf        NO
  182. #define ToolkitStringsABIOptions -intelabi
  183. #define HasSetenv        NO
  184. #define HasMkstemp        YES
  185. #define ExecableScripts        YES
  186. #define HasShadowPasswd         YES
  187.  
  188. #define HasSymLinks        YES
  189. #define HasDlopen        YES
  190. #define HasShm            YES
  191. #define HasStrcasecmp        YES
  192. #define HasLdRunPath        YES
  193. #define HasPoll            YES
  194.  
  195. #ifndef HasGnuMake
  196. # define HasGnuMake        YES
  197. #endif
  198.  
  199. #if SCOHasGWXLIBS
  200. # define HasExpat        YES
  201. # define HasFreetype2        YES
  202. # define HasLibpng        YES
  203. # define HasZlib        YES
  204. # define HasFontconfig        YES
  205. #endif
  206.  
  207. #define InstallHardcopyDocs    NO
  208.  
  209. #define HasPerl            YES
  210. #define HasPerl5        YES
  211.  
  212. #ifndef ManSourcePath
  213. # define ManSourcePath        $(MANPATH)/man
  214. #endif
  215.  
  216. #define Malloc0ReturnsNull    YES
  217. #define RemoveDSDENroffMacros    NO
  218.  
  219. #ifndef CompressManPages
  220. # define CompressManPages    NO
  221. #endif
  222.  
  223. #ifndef HasLibCrypt
  224. # define HasLibCrypt        YES
  225. # define SpecialLibCrypt    -lcrypt
  226. #endif
  227.  
  228. #ifndef PosixLibraries
  229. # define PosixLibraries          /**/
  230. #endif
  231.  
  232. #ifndef ForceNormalLib
  233. # define ForceNormalLib        NO 
  234. #endif
  235.  
  236. #define SharedLibXmu        YES
  237. #define SystemV            YES
  238. #define LdCombineFlags        -r 
  239.  
  240. #define AvoidNullMakeCommand    YES
  241. #define PatheticCpp        YES
  242.  
  243. #define MesaUseX86Asm        NO
  244.  
  245. #define MakeNamedTargetSubdir(dir,flags,subname)\
  246.     $(MAKE) -C dir $(MFLAGS) $(PARALLELMFLAGS) flags subname
  247.  
  248. #define ArCmdBase        ar
  249.  
  250. #ifndef AsCmd
  251. # define AsCmd            CcCmd
  252. #endif
  253.  
  254. #ifndef CppCmd
  255. # define CppCmd            /lib/cpp
  256. #endif
  257.  
  258. #ifndef PreProcessCmd
  259. # define PreProcessCmd        CppCmd
  260. #endif
  261.  
  262. #ifndef RawCppCmd
  263. # define RawCppCmd        CppCmd
  264. #endif
  265.  
  266. #ifndef LdCmd
  267. # define LdCmd            CcCmd
  268. #endif
  269.  
  270. #ifdef HasGcc2
  271. # ifndef SharedLibraryLoadFlags
  272. #  define SharedLibraryLoadFlags -shared
  273. # endif
  274. # undef LdCombineFlags
  275. # define LdCombineFlags        -nostdlib -r
  276. #endif
  277.  
  278. #ifndef LexCmd
  279. # define LexCmd            /usr/gnu/bin/flex
  280. #endif
  281.  
  282. #ifndef MakeCmd
  283. # define MakeCmd                /usr/gnu/bin/gmake
  284. #endif
  285.  
  286. #ifndef YaccCmd
  287. # define YaccCmd        /usr/gnu/bin/bison -y
  288. #endif
  289.  
  290. #ifndef InstallCmd
  291. # define InstallCmd        /usr/gnu/bin/ginstall
  292. #endif
  293.  
  294. #ifndef UseSeparateConfDir
  295. # define UseSeparateConfDir    NO
  296. #endif
  297.  
  298. #ifndef BuildHtmlManPages
  299. # define BuildHtmlManPages    NO
  300. #endif
  301.  
  302. #ifndef DefaultUserPath
  303. # define DefaultUserPath    /bin:/usr/bin:$(BINDIR):/usr/bin/X11:/usr/gnu/bin:/usr/local/bin:/etc
  304. #endif
  305.  
  306. #ifndef DefaultSystemPath
  307. # define DefaultSystemPath    /etc:/bin:/usr/bin:$(BINDIR):/usr/bin/X11
  308. #endif
  309.  
  310. #define ConnectionFlags        -DLOCALCONN -DTCPCONN -DUNIXCONN 
  311.  
  312. #define ExportListGenSource    elistgen.usl
  313. #define ShlibExportListOpt(filename)    Concat(-Bexport:,filename)
  314.  
  315. /*
  316.  * These settings control the interdependence of the shared libraries.
  317.  * Mostly borrowed from darwinLib.tmpl.
  318.  */
  319. #ifndef FixupLibReferences
  320. #define FixupLibReferences()                        @@\
  321. XMULIBONLY = -lXmu                            @@\
  322. XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
  323. #endif
  324.  
  325. #ifndef XawClientLibs
  326. #define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
  327. #endif
  328.  
  329. #define SharedXlibi18nReqs    $(LDPRELIB) $(XLIBONLY)
  330.  
  331. #define SharedXfontReqs        $(LDPRELIB) $(FONTSTUBLIB) GzipLibrary $(FREETYPE2LIB) $(XLIB)
  332. #define SharedFontencReqs    $(LDPRELIB) GzipLibrary
  333. #define SharedGLReqs        $(LDPRELIB) $(XLIB)
  334. #define SharedGLUReqs        $(LDPRELIB) $(XLIB) $(GLXLIB)
  335. #define SharedOSMesaReqs    $(LDPRELIB) $(XLIB) $(GLXLIB)
  336. #define SharedSMReqs        $(LDPRELIB) $(ICELIB)
  337. #define SharedX11Reqs        $(LDPRELIB) -lsocket
  338. #define SharedXawReqs        $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWREQS) $(XLIB)
  339. #define SharedXaw7Reqs        $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XPMLIB) $(XLIB)
  340. #define SharedXaw6Reqs        $(LDPRELIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  341. #define SharedXcursorReqs    $(LDPRELIB) $(XRENDERLIB) $(XLIB)
  342. #define SharedXextReqs        $(LDPRELIB) $(XONLYLIB)
  343. #define SharedXiReqs        $(LDPRELIB) $(XLIB)
  344. #define SharedXmuReqs        $(LDPRELIB) $(XTOOLLIB) $(XLIB)
  345. #define SharedXmuuReqs        $(LDPRELIB) $(XONLYLIB)
  346. #define SharedXpReqs        $(LDPRELIB) $(XLIB)
  347. #define SharedXpmReqs        $(LDPRELIB) $(XLIB)
  348. #define SharedXrandrReqs    $(LDPRELIB) $(XRENDERLIB) $(XLIB)
  349. #define SharedXrenderReqs    $(LDPRELIB) $(XLIB)
  350. #define SharedXtReqs        $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB)
  351. #define SharedXtstReqs        $(LDPRELIB) $(XLIB)
  352. #define SharedXvReqs        $(LDPRELIB) $(XLIB)
  353. #define SharedDPSReqs        $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
  354. #define SharedDPSTKReqs        $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(DPSLIB) $(XLIB)
  355. #define SharedOldXReqs        $(LDPRELIB) $(XONLYLIB)
  356. #define SharedpsresReqs        $(LDPRELIB) $(SMLIB) $(ICELIB) $(XTOOLLIB) $(XLIB)
  357. #define SharedXResReqs        $(LDPRELIB) $(XLIB)
  358. #define SharedXfontcacheReqs    $(LDPRELIB) $(XLIB)
  359. #define SharedXineramaReqs    $(LDPRELIB) $(XLIB)
  360. #define SharedXssReqs        $(LDPRELIB) $(XLIB)
  361. #define SharedXvMCReqs        $(LDPRELIB) $(XLIB)
  362. #define SharedXxf86miscReqs    $(LDPRELIB) $(XLIB)
  363. #define SharedXxf86vmReqs    $(LDPRELIB) $(XLIB)
  364. #define SharedxkbfileReqs    $(LDPRELIB) $(XONLYLIB)
  365. #define SharedxkbuiReqs        $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
  366. #define SharedXReqs        $(XTOOLLIB) $(XPLIB) $(XLIB)
  367. #define SharedXmReqs        $(LDPRELIB) SharedXReqs
  368. #define SharedMrmReqs        $(LDPRELIB) $(XMLIB) SharedXReqs
  369. #define SharedUilReqs        $(LDPRELIB) $(XMLIB) SharedXReqs
  370.  
  371. #define ObjectFromAsmSource(src,flags)                    @@\
  372.                                     @@\
  373. src.o: src.S                                @@\
  374.     RemoveFile(src.o)                        @@\
  375.     $(CC) -c AsmDefines $(DEFINES) $(INCLUDES) flags src.S
  376.  
  377. #include <scoLib.rules>        /* minor changes to sv4Lib.rules */
  378. #include <sv4Lib.rules>
  379.  
  380. #include <xorg.cf>
  381.