1 XCOMM platform: $XFree86: xc/config/cf/OpenBSD.cf,v 3.100 2004/01/08 22:51:41 herrb Exp $
2 XCOMM $XdotOrg: xc/config/cf/OpenBSD.cf,v 1.11 2005/06/15 20:03:51 idr Exp $
6 #define OSName DefaultOSName OSBinaryType
9 #define OSMajorVersion DefaultOSMajorVersion
11 #ifndef OSMinorVersion
12 #define OSMinorVersion DefaultOSMinorVersion
14 #ifndef OSTeenyVersion
15 #define OSTeenyVersion DefaultOSTeenyVersion
21 XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVersion)
25 #define BinDir /usr/local/bin
26 #define LibDir /usr/local/lib/X11
27 #define UsrLibDir /usr/local/lib
28 #define ManDirectoryRoot /usr/local/man
29 #define FontDir /usr/local/lib/X11/fonts
30 #define FontEncDir /usr/local/lib/X11/fonts/encodings
31 #define LdPreLib -L/usr/X11R6/lib -L/usr/local/lib
32 #define XpmLibDir /usr/X11R6/lib
33 #define XpmIncDir /usr/X11R6/include
34 #define ConfigDir /usr/X11R6/lib/X11/config
35 #define IncRoot /usr/local/include
36 #define TopXInclude -I/usr/X11R6/include
37 #define ImakeCmd imake -DPorts
38 #define DocDir /usr/local/share/doc
39 #define BuildHtmlManPages NO
49 #define HasSnprintf YES
50 #if OSMajorVersion == 2 && OSMinorVersion >= 4 || OSMajorVersion >= 3
51 # define HasStrlcat YES
53 #define HasBSD44Sockets YES
54 #define Malloc0ReturnsNull NO
55 #define SetTtyGroup YES
56 #define DBMLibrary /**/
57 #define HasLibCrypt NO
59 #define HasWChar32 YES
60 #define HasMkstemp YES
61 #define HasSetProcTitle YES
67 # if OSMajorVersion == 2 || OSMajorVersion == 3 && OSMinorVersion < 3
69 # if OSMajorVersion == 2 && OSMinorVersion <= 8
70 # define KrbIVLibraries -lkrb -lkafs -ldes
73 /* Kerberos IV was removed after OpenBSD 3.3 */
77 #define HasUsableFileMmap YES
78 #define HasShadowPasswd NO
79 #define IPv6SocketsAlsoIPv4 NO
81 #define HasArc4Random YES
83 #define HasNCurses YES
84 #define NCursesLibName -lcurses
85 #if defined(TermcapLibrary)
88 #define TermcapLibrary -lcurses
92 #define VarLibDir VarDbDirectory
94 #define InstallXloadSetGID NO
97 # if (OSMajorVersion >= 2)
98 # define HasIssetugid YES
103 # if (OSMajorVersion > 2) || (OSMajorVersion == 2 && OSMinorVersion >= 1)
104 # define HasMktemp YES
106 # define HasMktemp NO
110 /* OpenBSD >= 2.7 has getifaddrs() */
111 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 7)
112 #define HasGetIfAddrs YES
115 /* OpenBSD >= 2.8 has setusercontext() */
116 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 7)
117 #define HasSetUserContext YES
120 /* OpenBSD after 2.9 has BSD authentication */
121 #if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 9)
122 # define HasBSDAuth YES
125 #define HasXdmAuth YES
127 /* OpenBSD 3.0 and later has getpeereid() */
128 #if OSMajorVersion >= 3
129 # define HasGetpeereid YES
132 /* OpenBSD 3.0 has APM with kqueue interface */
133 #if OSMajorVersion >= 3
134 # define HasApmKqueue YES
137 /* OpenBSD 3.0 has libusb, next versions have libusbhid */
138 #if OSMajorVersion >= 3
139 # define HasLibUsb YES
140 # ifndef HasLibUsbHid
141 # if OSMajorVersion == 3 && OSMinorVersion > 0 || OSMajorVersion > 3
142 # define HasLibUsbHid YES
143 # define UsbHidLib -lusbhid
145 # define HasLibUsbHid NO
146 # define UsbHidLib -lusb
154 #ifndef HasGcc2ForCplusplus
155 #define HasGcc2ForCplusplus YES
157 #define GccUsesGas YES
161 #define UseGnuMalloc NO
163 #define NeedConstPrototypes YES
164 #define NeedFunctionPrototypes YES
165 #define NeedNestedPrototypes YES
166 #define NeedVarargsPrototypes YES
167 #define NeedWidePrototypes NO
169 #define MkdirHierCmd mkdir -p
172 #define CppCmd /usr/libexec/cpp -traditional
174 #define StandardCppOptions -traditional
175 #define PreProcessCmd CppCmd
176 #define PreIncDir DefaultGccIncludeDir
178 #if OSMajorVersion > 6 || (OSMajorVersion == 6 && OSMinorVersion >= 2)
180 #define CplusplusCmd c++
181 #define CppArgs -Wno-invalid-pp-token
184 #define CplusplusCmd g++
188 #ifndef StandardCppDefines
189 #define StandardCppDefines -traditional CppArgs
193 #define AsCmd cc -c -x assembler
195 #ifndef DefaultCCOptions
196 #if defined(UseInstalled)
197 /* conform to OpenBSD's habits */
198 # define DefaultCCOptions $(COPTS)
200 # ifdef PpcArchitecture
201 # define DefaultCCOptions -pipe -fsigned-char GccWarningOptions
203 # define DefaultCCOptions -pipe GccWarningOptions
208 #define GccGasOption -DGCCUSESGAS
209 #define AsmDefines -DUSE_GAS
211 /* UseElfFormat defaults to YES if __ELF__ set */
214 # undef __ELF__ /* other imake files shouldn't care */
215 # define UseElfFormat YES
217 # define UseElfFormat NO
222 * Increment shared libraries major numbers if using Gcc Stack Protector
223 * (This introduces an ABI change)
225 #ifndef OverrideShlibRevs
226 # define OverrideShlibRevs ProPoliceSupport
229 #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
232 #define AdmDir /var/log
236 /* OpenBSD doesn't have gperf in the base install */
237 #define DontRebuildGperfOutput YES
240 * Make & install Features
243 #define HasBsdMake YES
245 #define BuildCyrillicFonts YES
246 #define GzipFontCompression YES
247 #define DefaultUserPath /bin:/usr/bin:/usr/local/bin:$(BINDIR)
248 #define DefaultSystemPath /sbin:/usr/sbin:/bin:/usr/bin:$(BINDIR)
250 #define InstUidFlags -m 4755
254 # define InstallCmd /usr/bin/install
257 #ifndef ExtraFilesToClean
258 # define ExtraFilesToClean *.core
262 * Documentation formatting
265 # define NroffCmd /usr/local/bin/nroff -Tascii -c
266 # define TroffCmd /usr/local/bin/nroff -Tps
267 # define HTMLroffCmd /usr/local/bin/nroff -Thtml
268 # define NeqnCmd /usr/local/bin/neqn -Tascii
269 # define EqnCmd /usr/local/bin/eqn -Tps
270 # define TblCmd /usr/local/bin/tbl
272 # define NroffCmd mandoc
273 # define TroffCmd mandoc -Tps
274 # define HTMLroffCmd mandoc -Thtml
280 #define M4Cmd /usr/bin/m4
284 #ifndef HasCookieMaker
285 # define HasCookieMaker YES
286 # define MkCookieCmd \
287 'dd if=/dev/urandom bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"'
292 * Man pages need to be formatted when installed, so override the default
296 #define FileManSuffix 5
300 #define ManSourcePath $(MANPATH)/cat
302 #define InstallManPageLongBase(file,destdir,dest) @@\
305 file.0:: file.$(MANNEWSUFFIX) @@\
306 @if [ -f file.$(MANNEWSUFFIX) ]; \ @@\
308 cat file.$(MANNEWSUFFIX) | $(NEQN) | $(TBL) | \ @@\
309 $(NROFF) $(MANMACROS) | $(COL) > file.0; \ @@\
313 MakeDir($(DESTDIR)destdir) @@\
314 -@if [ -f file.0 ]; \ @@\
316 $(INSTALL) -c $(INSTMANFLAGS) file.0 $(DESTDIR)destdir/dest.0; \@@\
322 #define InstallManPageLong(file,destdir,dest) @@\
323 BuildInstallHtmlManPage(file,dest,$(MANSUFFIX)) @@\
325 CppManTarget(file, $(EXTRAMANDEFS)) @@\
327 InstallManPageLongBase(file,destdir,dest)
329 #define InstallGenManPageLong(file,destdir,dest,suffix) @@\
330 BuildInstallHtmlManPage(file,dest,suffix) @@\
332 CppManTarget(file, $(EXTRAMANDEFS)) @@\
334 InstallManPageLongBase(file,destdir,dest)
336 #define InstallMultipleMan(list,dest) @@\
338 MakeDir($(DESTDIR)dest) @@\
339 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
340 for i in list; do \ @@\
341 (MNAME=`echo $$i | cut -f1 -d.`; \ @@\
343 cat $$i | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) \ @@\
344 | $(COL) > $${MNAME}.0; \ @@\
345 $(INSTALL) -c $(INSTMANFLAGS) $${MNAME}.0 \ @@\
346 $(DESTDIR)dest/$${MNAME}.0; \ @@\
347 $(RM) $${MNAME}.0); \ @@\
350 #define InstallMultipleManSuffix(list,dest,suff) @@\
352 MakeDir($(DESTDIR)dest) @@\
353 case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
354 for i in list; do \ @@\
356 cat $$i.suff | $(NEQN) | $(TBL) | $(NROFF) $(MANMACROS) \ @@\
357 | $(COL) > $$i.0; \ @@\
358 $(INSTALL) -c $(INSTMANFLAGS) $$i.0 \ @@\
359 $(DESTDIR)dest/$$i.0; \ @@\
363 #define InstallManPageAliasesBase(file,destdir,aliases) @@\
365 @case '${MFLAGS}' in *[i]*) set +e;; esac; \ @@\
366 for i in aliases; do \ @@\
368 $(RM) $(DESTDIR)destdir/$$i.0;\ @@\
369 (cd $(DESTDIR)/destdir; $(LN) file.0 $$i.0);\ @@\
375 #define InstallManPageAliasesBase(file,destdir,aliases) @@\
377 @SUFFIX=${MANSUFFIX}; \ @@\
378 for i in aliases; do \ @@\
380 $(RM) $(DESTDIR)destdir/$$i.*; \ @@\
381 (cd $(DESTDIR)destdir; $(LN) file.$${SUFFIX} \ @@\
382 $$i.$${SUFFIX})); \ @@\
387 #define InstallManPageAliases(file,destdir,aliases) @@\
388 InstallHtmlManPageAliases(file,aliases,$(MANSUFFIX)) @@\
390 InstallManPageAliasesBase(file,destdir,aliases)
392 #define InstallGenManPageAliases(file,destdir,suffix,aliases) @@\
393 InstallHtmlManPageAliases(file,aliases,suffix) @@\
395 InstallManPageAliasesBase(file,destdir,aliases)
399 * InstallFontAliases - generate rules to install font aliases
400 * databases without comments for X11R5 servers
402 #ifndef InstallFontAliasesNoComment
403 #define InstallFontAliasesNoComment(dest) @@\
404 install:: fonts.alias @@\
405 $(RM) _fonts.alias @@\
406 sed -e '/^!/d' -e '/^$$/d' < fonts.alias > _fonts.alias @@\
407 MakeDir($(DESTDIR)dest) @@\
408 $(INSTALL) $(INSTALLFLAGS) $(INSTALLDATFLAGS) _fonts.alias \ @@\
409 $(DESTDIR)dest/fonts.alias @@\
411 #endif /* InstallFontAliasesNoComment */
414 * OpenBSD specific Imake Config files
416 #ifndef LocalConfigFiles
417 #define LocalConfigFiles \
418 OpenBSDLib.rules OpenBSDLib.tmpl
422 * Architecture specific sections - put all architecture dependent
423 * options and setting here into the correct section
428 * Definitions for the alpha architecture
430 #ifdef AlphaArchitecture
432 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
433 # define HasWeakSymbols YES
436 /* XXX Xvfb currently causes a linker error: */
437 /* XXX crtbegin.c(.fini+0x10): relocation truncated to fit: BRADDR text */
438 # ifdef XVirtualFramebufferServer
439 # undef XVirtualFramebufferServer
441 # define XVirtualFramebufferServer NO
445 # define XnestServer NO
447 # if (OSMajorVersion < 3)
448 # define HasSharedLibraries NO
452 # if OSMajorVersion == 3 && OSMinorVersion >= 2 || OSMajorVersion > 3
453 # define XorgServer YES
455 # define XorgServer NO
459 /* Definitions for building the XFree86 server */
461 # ifndef HasNetBSDApertureDriver
462 # define HasNetBSDApertureDriver YES
464 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
465 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
466 # define ServerExtraSysLibs -lalpha
467 # ifndef DoLoadableServer
468 # define DoLoadableServer YES
470 # define XF86OSCardDrivers wsfb
471 # ifndef XFree86ConsoleDefines
472 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
474 # define UseMatroxHal NO /* Matrox HAL is i386 only */
476 # endif /* XorgServer */
479 #endif /* AlphaArchitecture */
482 * Definitions for the AMD64 architecture
484 #ifdef AMD64Architecture
486 # define HasWeakSymbols YES
488 # define XorgServer YES
490 # ifndef DoLoadableServer
491 # define DoLoadableServer YES
494 # ifndef HasNetBSDApertureDriver
495 # define HasNetBSDApertureDriver YES
498 # define HasAgpGart YES
500 # ifndef DefaultGcc2i386Opt
501 # define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
503 # ifndef OptimizedCDebugFlags
504 # define OptimizedCDebugFlags DefaultGcc2i386Opt
507 # define LdPostLib -L/usr/X11R6/lib -L/usr/local/lib
509 # define ServerExtraSysLibs -lamd64
510 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
512 # ifndef XFree86ConsoleDefines
513 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
516 # ifndef HasMMXSupport
517 # define HasMMXSupport YES
520 # ifndef HasX86Support
521 # define HasX86Support YES
524 /* For DtHelp TIFF processing routines. */
525 #define LSBBitOrder YES
527 #endif /* AMD64Architecture */
530 * Definitions for the i386 architecture
532 #ifdef i386Architecture
534 # ifndef DoLoadableServer
535 # define DoLoadableServer YES
538 /* Direct rendering (OpenBSD 3.3 and up). */
539 # if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 2)
540 # ifndef BuildXF86DRI
541 # define BuildXF86DRI NO
545 # define HasWeakSymbols YES
547 /* To use the NetBSD Aperture driver */
548 # ifndef HasNetBSDApertureDriver
549 # define HasNetBSDApertureDriver YES
552 /* 2.7 and later have support for setting MTRRs */
553 # ifndef HasMTRRSupport
554 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 6)
555 # define HasMTRRSupport YES
557 # define HasMTRRSupport NO
562 * agpgart support (OpenBSD 3.2 and up)
564 # if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion > 1)
566 # define HasAgpGart YES
571 # ifndef DefaultGcc2i386Opt
572 # if (OSMajorVersion == 2 && OSMinorVersion >= 3) || OSMajorVersion > 2
573 /* The GCC strength-reduce bug is fixed for OpenBSD 2.3 and later */
574 # define DefaultGcc2i386Opt -O2 -fno-strict-aliasing
577 # ifndef OptimizedCDebugFlags
578 # define OptimizedCDebugFlags DefaultGcc2i386Opt
580 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
581 # define ServerExtraSysLibs -li386
582 # define LdPostLib -L/usr/X11R6/lib -L/usr/local/lib
583 # define ServerExtraDefines GccGasOption XFree86ServerDefines
584 # ifndef XFree86ConsoleDefines
585 # define XFree86ConsoleDefines -DWSCONS_SUPPORT -DPCVT_SUPPORT
588 # define JoystickSupport NO
590 /* A hack to work around an optimization problem with gcc 2.95.2 */
591 # if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 6)
592 # define GccOptBug295
595 /* No MMX support in OpenBSD/a.out gas */
596 # ifndef HasMMXSupport
597 # define HasMMXSupport UseElfFormat
601 # ifndef HasX86Support
602 # define HasX86Support UseElfFormat
605 /* For DtHelp TIFF processing routines. */
606 #define LSBBitOrder YES
609 #endif /* i386Architecture */
613 * Definitions for the m68k architecture (currently amiga, hp300,
614 * mac68k, mvme68k, sun3)
616 #ifdef Mc68020Architecture
619 * Function CSE makes gas -k not recognize external function calls as lazily
620 * resolvable symbols, thus sometimes making ld.so report undefined symbol
621 * errors on symbols found in shared library members that would never be
622 * called. Ask niklas@openbsd.org for details.
625 # define PositionIndependentCFlags -fpic -fno-function-cse
626 # define BuildGlxExt NO
627 # define BuildGLXLibrary YES
629 #endif /* Mc68020Architecture */
633 * Definitions for the amiga architecture
635 #ifdef AmigaArchitecture
638 # define BuildServer NO
641 # define ServerExtraDefines -DXFree86Server
644 #endif /* AmigaArchitecture */
648 * Definitions for the hp300 architecture
650 #ifdef Hp300Architecture
653 # define BuildServer NO
655 /* For the X11R5 server */
656 # define CompressAllFonts NO
657 # define InstallFontAliases InstallFontAliasesNoComment
658 # define UseRgbTxt NO
661 # define ServerExtraDefines -DXFree86Server
664 #endif /* Hp300Architecture */
668 * Definitions for the mac68k architecture
670 #ifdef Mac68kArchitecture
673 # define BuildServer NO
676 # define ServerExtraDefines -DXFree86Server
679 #endif /* mac68kArchitecture */
683 * Definitions for the mvme68k architecture
685 #ifdef Mvme68kArchitecture
688 # define BuildServer NO
691 # define ServerExtraDefines -DXFree86Server
694 #endif /* Mvme68kArchitecture */
698 * Definitions for the sun3 architecture
700 #ifdef Sun3Architecture
702 # include <xf86.rules>
704 # define ServerOSDefines -DDDXOSINIT
705 # define BootstrapCFlags -Dsun3
706 # define UnalignedReferencesAllowed YES /* changes _XtCopyArgs() */
707 # define ServerExtraDefines GccGasOption -Dmc68000 -Dmc68020 \
708 -DXFree86Server -DINCLUDE_CG2_HEADER
710 # ifndef Xsun24Server
711 # define Xsun24Server NO
714 # define XsunServer YES
716 # ifndef XsunMonoServer
717 # define XsunMonoServer NO
720 #define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
722 #endif /* Sun3Architecture */
726 * Definitions for the mips architecture (currently sgi)
728 #ifdef MipsArchitecture
730 # define HasWeakSymbols YES
732 # define XorgServer YES
735 # ifndef DoLoadableServer
736 # define DoLoadableServer YES
738 # define XF86CardDrivers wsfb
739 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
743 #endif /* MipsArchitecture */
747 * Definitions for the PowerPC architecture
749 #ifdef PpcArchitecture
751 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
752 # ifndef XFree86ConsoleDefines
753 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
756 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
757 # define HasWeakSymbols YES
759 # ifndef GccWarningOptions
760 # if defined(XFree86Devel) && XFree86Devel
761 # define GccWarningOptions -Wall -Wpointer-arith -Wstrict-prototypes \
762 -Wmissing-prototypes -Wmissing-declarations \
765 # define GccWarningOptions -Wall -Wpointer-arith
770 # define XorgServer YES
773 /* Definitions for building the X server */
775 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
776 # define ServerExtraDefines GccGasOption XFree86ServerDefines
777 # ifndef DoLoadableServer
778 # define DoLoadableServer YES
780 # define XF86OSCardDrivers wsfb
781 # ifndef XF86CardDrivers
782 # define XF86CardDrivers ati mga glint s3virge sis savage\
785 XF86OSCardDrivers XF86ExtraCardDrivers
787 # ifndef DevelDrivers
788 # define DevelDrivers nv
791 # endif /* XorgServer */
794 #endif /* PpcArchitecture */
797 * Definitions for the sparc architecture
799 #ifdef SparcArchitecture
801 # define BuildXF86MiscExt NO
802 # define BuildMITMiscExt NO
804 # if OSMajorVersion > 3 || OSMajorVersion == 3 && OSMinorVersion >= 2
805 # define HasWeakSymbols YES
808 # if OSMajorVersion == 2 || OSMajorVersion == 3 && OSMinorVersion < 2
809 # define ServerOSDefines -DDDXOSINIT
810 # define ServerExtraDefines -DAVOID_GLYPHBLT -DPIXPRIV -DXFree86Server \
811 DebugDefines -DINCLUDE_CG2_HEADER \
812 -DX_BYTE_ORDER=$(X_BYTE_ORDER)
813 # define XOrgServer NO
815 # define XorgServer YES
820 # ifndef Xsun24Server
821 # define Xsun24Server YES
824 # define XsunServer YES
826 # ifndef XsunMonoServer
827 # define XsunMonoServer YES
829 # ifndef InstallXserverSetUID
830 # define InstallXserverSetUID NO
833 # else /* XF86Server */
835 # ifndef Xsun24Server
836 # define Xsun24Server NO
839 # define XsunServer NO
841 # ifndef XsunMonoServer
842 # define XsunMonoServer NO
844 # ifndef DoLoadableServer
845 # define DoLoadableServer YES
848 # define XF86CardDrivers wsfb
849 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
850 # define BuildXInputExt YES
851 # define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DDDXOSINIT
852 # define ServerExtraDefines GccGasOption XFree86ServerDefines
856 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
858 # define BuildXF86VidModeExt NO
859 # define BuildXF86DGA NO
860 # ifndef BuildXInputExt
861 # define BuildXInputExt NO
864 #endif /* SparcArchitecture */
867 * Definitions for the sparc64 architecture
870 #ifdef Sparc64Architecture
872 # if OSMajorVersion == 3 && OSMinorVersion > 1 || OSMajorVersion > 3
873 # define HasWeakSymbols YES
877 # define XorgServer YES
880 # define ServerExtraDefines GccGasOption -D_XSERVER64 XFree86ServerDefines
881 # define ServerOSDefines XFree86ServerOSDefines -DDDXOSINIT
882 # define XkbServerDefines -DXKB_ALWAYS_USES_SOFT_REPEAT
885 # ifndef DoLoadableServer
886 # define DoLoadableServer YES
888 # define XF86OSCardDrivers wsfb
889 # define XFree86ConsoleDefines -DWSCONS_SUPPORT
893 #endif /* Sparc64Architecture */
896 * Definitions for the vax architecture
898 #ifdef VaxArchitecture
901 # define BuildServer NO
904 /* For the X11R5 server */
905 # define CompressAllFonts NO
906 # define InstallFontAliases InstallFontAliasesNoComment
907 # define UseRgbTxt NO
910 # define ServerExtraDefines -DXFree86Server
911 # define UnalignedReferencesAllowed YES
912 # define HasSharedLibraries NO
913 # define HasDlopen NO
915 # define BuildGlxExt NO
916 # define BuildGLXLibrary NO
919 #endif /* VaxArchitecture */
921 /* End or architecture specific section */
924 * Generic settings for all architectures
925 * which can be overridden by architecture specific sections above
928 #ifdef HasGcc2ForCplusplus
929 CXXDEPENDINCLUDE != CcCmd -v -x c++ /dev/null -fsyntax-only \
930 2>&1 | sed -n 's/^ \(\/.*[cg]++.*\)/-I\1/p'
931 #define CplusplusDependIncludes $(CXXDEPENDINCLUDE)
934 #ifndef StandardDefines
935 # define StandardDefines -DCSRG_BASED
938 #ifndef StandardIncludes
939 # define StandardIncludes -I/usr/X11R6/include -I/usr/local/include
942 #ifndef TopMotifInclude
943 # define TopMotifInclude /usr/local/include
946 #if !defined(OptimizedCDebugFlags)
947 # define OptimizedCDebugFlags -O2
950 #ifndef ServerOSDefines
951 # define ServerOSDefines /**/
954 #ifndef ServerExtraDefines
955 # define ServerExtraDefines GccGasOption
958 #ifndef HasWeakSymbols
959 # define HasWeakSymbols NO
963 * Multi-thread safe libs
965 /* #if HasWeakSymbols == YES && (OSMajorVersion == 2 && OSMinorVersion >= 6 || OSMajorVersion >= 3)
966 # define HasPosixThreads YES
967 # define ThreadedX YES
968 # define NeedUIThrStubs YES
969 # define ThreadsCompileFlag -pthread
970 # define ThreadsLibraries -pthread
971 # define SystemMTDefines -D_REENTRANT
973 # define ThreadedX NO
977 /* Set this to YES when getpwuid_r is added to libc_r */
978 #define HasThreadSafeAPI NO
980 #ifndef ExtraLibraries
981 # define ExtraLibraries /**/
984 #ifndef DoLoadableServer
985 #define DoLoadableServer NO
988 #ifndef XVirtualFramebufferServer
990 # define BuildServer YES
991 # define XVirtualFramebufferServer YES
996 # define BuildServer YES
997 # define XnestServer YES
1000 #ifndef BuildScreenSaverLibrary
1001 # define BuildScreenSaverLibrary YES
1004 #ifndef CompressAllFonts
1005 # define CompressAllFonts YES
1008 #ifndef SharedLibXdmGreet
1009 # define SharedLibXdmGreet NO
1012 #define HasFreetype2 NO
1014 #define BuildXterm BuildClients
1017 * XFree86 uses its own (more portable) database routines to speed up
1018 * the RGB database lookups
1019 * However, if you want to use ndbm anyway, you can set that to NO in
1023 # define UseRgbTxt YES
1026 #ifndef OSBinaryType
1028 # define OSBinaryType [ELF]
1030 # define OSBinaryType /**/
1035 # define HasDlopen YES
1040 # if (OSMajorVersion < 3 || OSMajorVersion == 3 && OSMinorVersion == 0)
1041 # define DlLibrary -ldl
1043 # define DlLibrary -Wl,--export-dynamic
1046 # define DlLibrary /**/
1050 /* Suppress warnings dependant from compiler versions */
1051 #if !defined(GccWarningOptions)
1052 # if (defined __clang__)
1053 # define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch -Wno-unused-result
1055 # define GccWarningOptions -Wpointer-arith -Wno-unused -Wno-write-strings -Wno-switch
1059 #define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
1060 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
1062 #define CplusplusLibC -lstdc++
1063 #ifndef CplusplusOptions
1064 #define CplusplusOptions GccWarningOptions
1066 #ifndef LibraryCplusplusOptions
1067 #define LibraryCplusplusOptions GccWarningOptions
1070 #define DependFileName .depend
1072 #define ArchitectureDefines -DOPENBSD_ARCHITECTURE
1074 #define BuildLibPathVar LD_LIBRARY_PATH
1075 ICONVSYSLIB != if test -f /usr/local/include/iconv.h; then echo -liconv; else echo; fi
1078 #define KornShell /usr/local/bin/ksh93
1082 #define DtKornShell /usr/local/dt/bin/dtksh
1085 #define AvoidNullMakeCommand YES
1087 /* This must come last */
1088 #include <bsdLib.rules>