summaryrefslogtreecommitdiff
path: root/FreeBSD.cf
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:26:55 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:26:55 +0000
commitea2a0b7d5958a702bdbcecc17c9c4dea8ce6def5 (patch)
treefd868165c6da4b6f2ad504733f27803878a9d9bb /FreeBSD.cf
parent272f68b2bffd736cede856a96231afe237261c8d (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
Diffstat (limited to 'FreeBSD.cf')
-rw-r--r--FreeBSD.cf174
1 files changed, 51 insertions, 123 deletions
diff --git a/FreeBSD.cf b/FreeBSD.cf
index 24c054c..eff8ac2 100644
--- a/FreeBSD.cf
+++ b/FreeBSD.cf
@@ -2,7 +2,7 @@ XCOMM platform: $Xorg: FreeBSD.cf,v 1.3 2000/08/17 19:41:45 cpqbld Exp $
XCOMM
XCOMM
XCOMM
-XCOMM platform: $XFree86: xc/config/cf/FreeBSD.cf,v 3.128 2003/01/15 02:52:12 dawes Exp $
+XCOMM platform: $XFree86: xc/config/cf/FreeBSD.cf,v 3.144 2003/11/21 04:58:54 dawes Exp $
#ifndef UseElfFormat
#define UseElfFormat DefaultToElfFormat
@@ -46,6 +46,14 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#define HasNdbm YES
#define HasPutenv YES
#define HasSnprintf YES
+#if OSMajorVersion == 3 && OSMinorVersion >= 3 || OSMajorVersion > 3
+# define HasStrlcat YES
+#endif
+#if OSMajorVersion == 4 && OSMinorVersion >= 2 || OSMajorVersion > 4
+# define HasBasename YES
+#else
+# define HasBasename NO
+#endif
#define HasBSD44Sockets YES
#define HasDlopen YES
#if ((OSRelVersion >= 410002) && OSRelVersion < 500000) || (OSRelVersion >= 500012)
@@ -72,12 +80,23 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#define HasGetIfAddrs YES
#endif
+/* All versions define AF_INET6. 3.x and earlier don't have IPv6 support. */
+#if OSMajorVersion < 4
+#ifndef BuildIPv6
+#define BuildIPv6 NO
+#endif
+#endif
+
+#define IPv6SocketsAlsoIPv4 NO
+
#if (OSMajorVersion > 1)
#define InstallXloadSetGID NO
#else
#define InstallXloadSetGID YES
#endif
+#define HasWeakSymbols UseElfFormat
+
/*
* Multi-thread safe libs
*/
@@ -111,10 +130,15 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
# define ThreadsLibraries -pthread
# endif
# define SharedX11Reqs $(LDPRELIB) $(XTHRSTUBLIB)
-# define SharedXtReqs $(LDPRELIB) $(XLIBONLY) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
+# define SharedXtReqs $(LDPRELIB) $(XONLYLIB) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
# endif
#endif
+/* This fixes linking C programs against libGLU on FreeBSD 3.x */
+#if (OSMajorVersion == 3)
+#define SharedGLUReqs $(LDPRELIB) $(XLIB) $(GLXLIB) -lstdc++ -lgcc
+#endif
+
#define AvoidNullMakeCommand YES
#define StripInstalledPrograms YES
#define CompressAllFonts YES
@@ -177,7 +201,13 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#if defined(UseInstalled)
#define DefaultCCOptions /**/
#else
-#define DefaultCCOptions -ansi -pedantic -Dasm=__asm GccWarningOptions
+#if defined(HasGcc3) && HasGcc3
+#define NoSystemWarn -Wno-system-headers
+#else
+#define NoSystemWarn
+#endif
+#define DefaultCCOptions -ansi -pedantic NoSystemWarn -Dasm=__asm \
+ GccWarningOptions
#endif
#endif
#ifndef ExtraLibraries
@@ -228,20 +258,24 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#endif
/*
- * 4.1/i386 and 5.0/i386 have the AGP driver.
+ * 4.1/i386 and 5.0/i386,alpha,ia64,amd64 have the AGP driver.
*/
#ifndef HasAgpGart
#if defined(i386Architecture) && \
(OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 1))
#define HasAgpGart YES
#endif
+#if (defined(AlphaArchitecture) || defined(ia64Architecture) || \
+ defined(AMD64Architecture)) && (OSMajorVersion >= 5)
+#define HasAgpGart YES
+#endif
#endif
/*
* SSE and 3DNow will be autodetected, so binutils is the only
* requirement for enabling this. By 4.2 they were all supported.
*/
-#if defined(i386Architecture) && \
+#if defined(AMD64Architecture) || defined(i386Architecture) && \
(OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 2))
# define HasX86Support YES
# define HasMMXSupport YES
@@ -290,7 +324,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion >= 2)
#ifndef ExtraLoadFlags
#if UseElfFormat
-#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH)
+#define ExtraLoadFlags -Wl,-rpath,$(USRLIBDIRPATH) -Wl,-rpath-link,$(BUILDLIBDIR)
#else
#define ExtraLoadFlags -Wl,-R,$(USRLIBDIRPATH)
#endif
@@ -324,117 +358,6 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#endif
#endif
-/*
- * For FreeBSD 2.2.5 and later don't make any assumptions about the version
- * of Tcl in the base OS.
- *
- * Note the static libs in some versions of the FreeBSD packages are
- * broken. The symptom of this is unresolved symbols when linking
- * XF86Setup. If you run into this problem, either build your own
- * static libs from the standard Tcl and Tk source, or change the
- * definitions of XF86SetupUsesStatic{Tcl,Tk}. The latter is not
- * recommended for binaries that are going to be redistributed.
- */
-
-#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 2) || \
- (OSMajorVersion == 2 && OSMinorVersion == 2 && OSTeenyVersion > 5)
-/*
- * For 2.2.6, 3.0 and later the defaults assume that the tcl-8.0 and tk-8.0
- * packages have been installed. XF86Setup is much faster with 8.x than
- * with earlier versions.
- *
- */
-
-#ifndef TkLibName
-#define TkLibName tk80
-#endif
-#ifndef TkIncDir
-#define TkIncDir /usr/local/include/tk8.0
-#endif
-#ifndef TclLibName
-#define TclLibName tcl80
-#endif
-#ifndef TclIncDir
-#define TclIncDir /usr/local/include/tcl8.0
-#endif
-
-#elif OSMajorVersion == 2 && OSMinorVersion == 2 && OSTeenyVersion > 2
-/*
- * For 2.2.5, the defaults assume that the tcl-7.6 and tk-4.2
- * packages have been installed.
- */
-
-#ifndef TkLibName
-#define TkLibName tk42
-#endif
-#ifndef TkIncDir
-#define TkIncDir /usr/local/include/tk4.2
-#endif
-#ifndef TclLibName
-#define TclLibName tcl76
-#endif
-#ifndef TclIncDir
-#define TclIncDir /usr/local/include/tcl7.6
-#endif
-
-#elif OSMajorVersion == 2 && OSMinorVersion == 2
-/*
- * FreeBSD 2.2 prior to 2.2.5
- *
- * tcl is part of the base OS.
- *
- * Note: the tk-4.1 package for FreeBSD doesn't have the static lib, so
- * you'll have to build it yourself, or change the definition of
- * XF86SetupUsesStaticTk.
- */
-#ifndef TkLibName
-#define TkLibName tk41
-#endif
-#ifndef TclLibName
-#define TclLibName tcl
-#endif
-#ifndef TclLibDir
-#define TclLibDir /usr/lib
-#endif
-#ifndef TclIncDir
-#define TclIncDir /usr/include
-#endif
-/* FreeBSD 2.2 has libtcl in the base system */
-#ifndef XF86SetupUsesStaticTcl
-#define XF86SetupUsesStaticTcl NO
-#endif
-
-#else /* ! 2.2 or later */
-
-#if OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 6
-
-/*
- * 2.1.x with x >=6 has tk 4.1 and tcl 7.5 in the packages collection.
- * Neither packages include the static libs, so you either need to build
- * them yourself or set XF86SetupUsesStaticTcl and XF86SetupUsesStaticTk
- * to NO. This isn't the default because we don't want the XFree86
- * binaries to have these packages as a dependency.
- */
-
-#ifndef TkLibName
-#define TkLibName tk41
-#endif
-#ifndef TclLibName
-#define TclLibName tcl75
-#endif
-
-#else /* ! 2.1.6 or later */
-
-#ifndef TkLibName
-#define TkLibName tk40
-#endif
-#ifndef TclLibName
-#define TclLibName tcl74
-#endif
-
-#endif
-#endif
-
#undef InstallCmd
#define InstallCmd /usr/bin/install
@@ -455,11 +378,13 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
#ifdef i386Architecture
#define ServerExtraDefines GccGasOption XFree86ServerDefines
#endif
-#ifdef AlphaArchitecture
+#if defined(AlphaArchitecture) || defined(Sparc64Architecture) || \
+ defined(ia64Architecture) || defined(AMD64Architecture)
#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
#endif
#ifdef Sparc64Architecture
-#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
+#define AsVISOption -Av9a
+#define AsOutputArchSize 64
#endif
#define StandardDefines -DCSRG_BASED
@@ -485,7 +410,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
/* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
#ifndef DefaultGcc2i386Opt
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
-#define DefaultGcc2i386Opt -O2
+#define DefaultGcc2i386Opt -O2 GccAliasingArgs
#endif
#endif
@@ -564,10 +489,13 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
*/
#if UseElfFormat
#ifndef PreloadFontSetup
-#define PreloadFontSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo libXfont*.so.?)`"
+#define PreloadFontSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(XFONTPRELOADPATTERN))`"
+#endif
+#ifndef PreloadFreetypeSetup
+#define PreloadFreetypeSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN))`"
#endif
#ifndef PreloadXFTSetup
-#define PreloadXFTSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo libfreetype.so.? libXft.so.? libXrender.so.? libfontconfig.so.?)`"
+#define PreloadXFTSetup LD_PRELOAD="`(cd $(XENVLIBDIR); echo $(FT2PRELOADPATTERN) $(XFTPRELOADPATTERN) $(XRENDERPRELOADPATTERN) $(FCPRELOADPATTERN))`"
#endif
#endif
@@ -585,7 +513,7 @@ XCOMM operating system: OSName (OSMajorVersion./**/OSMinorVersion./**/OSTeenyVe
/*
* A hack to work around an optimization problem with gcc 2.95.2 - 2.95.4
*/
-#if OSMajorVersion == 4
+#if (GccMajorVersion == 2 && GccMinorVersion == 95)
#define GccOptBug295
#endif