/* $Id: linux.cf,v 1.10 1999/05/25 08:58:14 cernsoft Exp $ * * $Log: linux.cf,v $ * Revision 1.10 1999/05/25 08:58:14 cernsoft * Remove code to build with/without Motif depending on environment variable * * Revision 1.9 1998/08/25 12:15:10 mclareni * Add QMGLIBC flag * * Revision 1.8 1998/02/10 10:48:59 mclareni * To compile herwig59 and mathlib tests need -fugly-complex option to allow REAL(DOUBLE COMPLEX arg) * * Revision 1.7 1998/01/15 14:44:01 mclareni * Prevent adding 2 underscores, mainly for Comis * * Revision 1.6 1997/12/15 16:20:44 mclareni * Changes for the Portland Group f77 compiler, inside ifdef HasPgf77 * * Revision 1.5 1997/07/04 17:00:28 mclareni * The gcc default for backslash is required for Cernlib * * Revision 1.4 1997/07/04 16:31:44 mclareni * There is an official shift version for Linux * * Revision 1.3 1996/12/16 15:12:05 cernlib * By default inhibit Motif on Linux; can be changed via environment * * Revision 1.2 1996/11/13 13:23:15 cernlib * Add cernlib options for fortran etc.. * * Revision 1.1.1.1 1995/12/20 15:26:45 cernlib * X11R6 config files unmodified * * */ XCOMM platform: $XConsortium: linux.cf,v 1.11 95/01/23 18:32:03 kaleb Exp $ #define OSName Linux #define OSVendor /**/ #define OSMajorVersion 2 #define OSMinorVersion 0 #define OSTeenyVersion 33 #undef unix /* GF. this is not needed anywhere */ #ifndef UseElfFormat #define UseElfFormat NO #endif #define HasGcc YES #define HasGcc2 YES #define HasGcc2ForCplusplus YES #define GccUsesGas YES #define UseGas YES #define GnuCpp YES #define HasShadowPasswd NO #ifndef HasLibCrypt # define HasLibCrypt NO #endif #define HasPutenv YES #define HasShm YES #define HasSockets YES #define AvoidNullMakeCommand YES #define StripInstalledPrograms YES #define CompressAllFonts YES #define Malloc0ReturnsNull YES #define NeedConstPrototypes YES #define NeedFunctionPrototypes YES #define NeedNestedPrototypes YES #define NeedVarargsPrototypes YES #define NeedWidePrototypes NO #if UseElfFormat #define CcCmd gcc -b i486-linuxelf #define AsCmd /usr/i486-linuxelf/bin/as #define LdCmd ld -m elf_i386 #define AsmDefines -D__ELF__ #define CplusplusCmd g++ -b i486-linuxelf #else #define CcCmd gcc #define AsCmd as #define LdCmd ld #define AsmDefines -DUSE_GAS #endif #define CppCmd /lib/cpp #define YaccCmd bison -y #define LexCmd flex -l #define LexLib -lfl #define PreProcessCmd CcCmd -E #define PostIncDir `CcCmd --print-libgcc-file-name | sed 's/libgcc.a/include/'` #define LdCombineFlags -r #define OptimizedCDebugFlags -O2 -m486 -fno-strength-reduce\ -fomit-frame-pointer #define StandardDefines -Dlinux -D__i386__ -D_POSIX_SOURCE \ -D_BSD_SOURCE -D_GNU_SOURCE -DX_LOCALE #define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC #define HasWChar32 YES #define StandardCppDefines -traditional StandardDefines #define ServerOSDefines XFree86ServerOSDefines -DDDXTIME #define ExtensionOSDefines -DXTESTEXT1 #define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines #define ConnectionFlags -DUNIXCONN -DTCPCONN #define InstUidFlags -s -m 4755 /* Some of these man page defaults are overriden in the above OS sections */ #ifndef ManSuffix # define ManSuffix 1x #endif #ifndef ManDir # define ManDir $(MANSOURCEPATH)1 #endif #ifndef LibManSuffix # define LibManSuffix 3x #endif #ifndef LibmanDir # define LibmanDir $(MANSOURCEPATH)3 #endif #ifndef FileManSuffix # define FileManSuffix 5x #endif #ifndef FileManDir # define FileManDir $(MANSOURCEPATH)5 #endif #include #include #ifdef HasPgf77 #define f2cFortran YES #define FortranCmd pgf77 /* #define FortranDoesCpp NO #define FortranCppCmd /lib/cpp -traditional -C */ #define XargsCmd xargs #define FortranSaveFlags -Msave #define OptimisedFortranFlags -O2 -Munroll -tp p6 #define DefaultFCOptions -Minfo -Mbackslash -Munixlogical -pc 64 #define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QFPGF77 #else /* Start CERNLIB changes A.Waananen 15. Apr. 1996 */ /* Adapted to CERN style GF. 20-Sep-96 */ #define f2cFortran YES #define FortranCmd g77 #define XargsCmd xargs #define FortranSaveFlags /* */ /* Everything static !? */ #define DefaultFCOptions -fno-automatic -fno-second-underscore -fugly-complex #define CernlibSystem -DCERNLIB_LINUX -DCERNLIB_UNIX -DCERNLIB_LNX -DCERNLIB_QMGLIBC #endif #define CERNLIB_LINUX #define CERNLIB_UNIX #define CERNLIB_LNX #define CERNLIB_QMGLIBC #define X11Includes -I/usr/X11R6/include /* * Create a Make Variable to allow building with/out Motif */ /* End CERNLIB changes */