/*
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)
#define SetTtyGroup YES
#define CcCmd gcc -g -pipe
-#define CplusplusCmd g++ -g -pipe -fpermissive
+#define CplusplusCmd g++ -g -pipe -fpermissive
#define AsCmd as
#define LdCmd ld
#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
# 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
#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
#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 ArchitectureDefines -DLINUX_ARCHITECTURE
-#define TtClientLibs $(TTLIB) $(XTOOLLIB) $(XLIB)
+#define TtClientLibs $(TTLIB) $(TIRPCLIB) $(XTOOLLIB) $(XLIB)
#define TtClientDepLibs $(DEPTTLIB) $(DEPXTOOLLIB) $(DEPXLIB)
#include <lnxLib.rules>