linux.cf: add libtirpc support. Disabled by default.
[oweals/cde.git] / cde / config / cf / linux.cf
index c48196a8c0c1f4be898f1854fd5fe5b606873114..7b246eb187b11f22c915448bfa216bc301684e6c 100644 (file)
@@ -1,5 +1,10 @@
 XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
 
+/* To reduce the number of warnings generated by X11 and Motif headers that
+   dislike -ansi and -pedantic we can include them with -isystem instead of
+   -I, this tells GCC to treat them as system includes out of our control */
+#define TopXInclude -isystem$(TOP)/imports/x11/include
+
 #ifndef OSName
 #define OSName                 DefaultOSName
 #endif
@@ -18,7 +23,7 @@ XCOMM platform:  $TOG: linux.cf /main/47 1998/04/17 11:32:51 mgreess $
 /*
   Add "#define LinuxDistribution Linux<mumble>" to your site.def or host.def.
   Currently only LinuxSuSE will be figured out automatically.
-  Valid values are (from the list at www.linux.org in Oct. '97):
+  Valid values are (from the list at www.linux.org in Oct. 1997):
     LinuxUnknown    (0)
     LinuxSuSE       (1)
     LinuxCaldera    (2)
@@ -85,8 +90,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define NeedWidePrototypes     NO
 #define SetTtyGroup            YES
 
-#define CcCmd                  gcc -pipe
-#define CplusplusCmd           g++ -pipe -fpermissive 
+#define CcCmd                  gcc -g -pipe
+#define CplusplusCmd           g++ -g -pipe -fpermissive
 #define AsCmd                  as
 #define LdCmd                  ld
 
@@ -112,6 +117,22 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 
 #define LinuxLocaleDefines     /**/
 
+XCOMM If you have the tirpc library on your system, and you have the
+XCOMM libtirpc-dev installed, then define HasTIRPCLib to YES in either
+XCOMM your host.def or site.def file.  Using the tirpc lib should
+XCOMM allow running rpcbind in secure mode (ie: without the -i option).
+XCOMM The default is NO.
+
+#ifndef HasTIRPCLib
+# define HasTIRPCLib NO
+#endif
+
+#if HasTIRPCLib
+TIRPCLIB = -ltirpc
+#else
+TIRPCLIB = 
+#endif
+
 #if LinuxCLibMajorVersion < 6
 # define LinuxSourceDefines    -D_POSIX_SOURCE \
                                -D_BSD_SOURCE -D_SVID_SOURCE LinuxLocaleDefines
@@ -123,8 +144,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 # define LinuxSourceDefines    -D_POSIX_C_SOURCE=199309L \
                                -D_POSIX_SOURCE \
                                -D_BSD_SOURCE -D_SVID_SOURCE -D_XOPEN_SOURCE \
-                                -D__NO_STRING_INLINES -D__NO_MATH_INLINES \
-                                LinuxLocaleDefines
+                               -D__NO_STRING_INLINES -D__NO_MATH_INLINES \
+                               LinuxLocaleDefines
 # define HasPosixThreads       YES
 # define ThreadedX             YES
 # define HasThreadSafeAPI      YES
@@ -135,6 +156,25 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 # endif
 #endif
 
+#ifdef SparcArchitecture
+#define LinuxMachineDefines -Dsparc
+
+#if UseElfFormat
+#define HasPlugin               YES
+#define VendorHasX11R6_3libXext YES     /* XC or XFree86 3.3.1 */
+#endif
+#endif /* SparcArchitecture */
+
+#ifdef ARMArchitecture
+#define LinuxMachineDefines -D__arm__
+#define LSBBitOrder             YES
+
+#if UseElfFormat
+#define HasPlugin               YES
+#define VendorHasX11R6_3libXext YES     /* XC or XFree86 3.3.1 */
+#endif 
+#endif /* ARMArchitecture */
+
 #ifdef i386Architecture
 #define OptimizedCDebugFlags   DefaultGcc2i386Opt
 #define LinuxMachineDefines    -D__i386__
@@ -145,6 +185,8 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define HasPlugin              YES
 #define VendorHasX11R6_3libXext        YES     /* XC or XFree86 3.3.1 */
 #endif
+/* add this to void screenfuls of warnings from makedepend */
+#define DependFlags -I/usr/include/i386-linux-gnu
 #endif /* i386Architecture */
 
 #ifdef AMD64Architecture
@@ -157,8 +199,15 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #define HasPlugin              YES
 #define VendorHasX11R6_3libXext        YES     /* XC or XFree86 3.3.1 */
 #endif
+/* add this to void screenfuls of warnings from makedepend */
+#define DependFlags -I/usr/include/x86_64-linux-gnu
 #endif /* AMD64Architecture */
 
+#ifdef PpcArchitecture
+#define OptimizedCDebugFlags    -O2
+#define LinuxMachineDefines     -D__powerpc__
+#endif /* PpcArchitecture */
+
 #ifdef AlphaArchitecture
 #define OptimizedCDebugFlags   -O2
 #define LinuxMachineDefines    -D__alpha__
@@ -199,7 +248,7 @@ XCOMM This is needed for CDE currently
 
 #define ArchitectureDefines    -DLINUX_ARCHITECTURE
 
-#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
+#define TtClientLibs $(TTLIB) $(TIRPCLIB) $(XTOOLLIB) $(XLIB)
 #define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
 
 #include <lnxLib.rules>