From: Tom Yu Date: Fri, 10 Jun 1994 20:06:05 +0000 (+0000) Subject: moving stuff out of site.def that shouldn't be there X-Git-Tag: krb5-1.0-beta4~122 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ddc241b97d663a1a25fa1a7da00732a9043e9427;p=krb5.git moving stuff out of site.def that shouldn't be there git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3731 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/config/Project.tmpl b/src/config/Project.tmpl index edbc8935b..d493376a1 100644 --- a/src/config/Project.tmpl +++ b/src/config/Project.tmpl @@ -6,6 +6,14 @@ #define ProjectKRB 5 +#ifndef BuildGssapi +#if HasGcc +#define BuildGssapi YES +#else +#define BuildGssapi NO +#endif +#endif + #ifndef TouchCmd #define TouchCmd touch #endif @@ -184,8 +192,12 @@ #ifndef TclIncludes #define TclIncludes /**/ #endif +/* With gcc, use -g -O. Otherwise use the default (-O). */ +#if !defined(DefaultCDebugFlags) && HasGcc +#define DefaultCDebugFlags OptimizedCDebugFlags DebuggableCDebugFlags +#endif + /* Hack around sun cpp bug */ - PEPSY_WARNING_STRING = \ @echo '***Ignore the warning message "Warning: Can'"'"'t find UNIV.ph failed"' diff --git a/src/config/site.def b/src/config/site.def index 0ae8cdfb0..ba72da146 100644 --- a/src/config/site.def +++ b/src/config/site.def @@ -35,78 +35,13 @@ */ /* - * 1. HasLargeTmp - if your /tmp space is less than a 1meg, you should + * HasLargeTmp - if your /tmp space is less than a 1meg, you should * probably set this to NO */ #ifndef HasLargeTmp #define HasLargeTmp YES #endif -/* - * 2. Man page locations & suffixes. - */ -/* AdminManSuffix: man page suffix for administrative programs */ -#ifndef AdminManSuffix -#define AdminManSuffix 8 -#endif -/* AdminMandir: manual page directory for administrative man pages */ -#ifndef AdminMandir -#define AdminMandir $(KRB5ROOT)/man/man$(ADMIN_MANSUFFIX) -#endif - -/* ServerManSuffix: man page suffix for server programs */ -#ifndef ServerManSuffix -#define ServerManSuffix 8 -#endif -/* ServerMandir: manual page directory for server man pages */ -#ifndef ServerMandir -#define ServerMandir $(KRB5ROOT)/man/man$(SERVER_MANSUFFIX) -#endif - -/* ClientManSuffix: man page suffix for client programs */ -#ifndef ClientManSuffix -#define ClientManSuffix 1 -#endif -/* ClientMandir: manual page directory for client man pages */ -#ifndef ClientMandir -#define ClientMandir $(KRB5ROOT)/man/man$(CLIENT_MANSUFFIX) -#endif - -/* FileManSuffix: man page suffix for files */ -#ifndef FileManSuffix -#define FileManSuffix 5 -#endif -/* FileMandir: manual page directory for file man pages */ -#ifndef FileMandir -#define FileMandir $(KRB5ROOT)/man/man$(FILE_MANSUFFIX) -#endif - -/* - * 3. Binary program install areas. - */ -/* AdminBindir: binary install directory for administrative programs */ -#ifndef AdminBindir -#define AdminBindir $(KRB5ROOT)/admin -#endif - -/* ServerBindir: binary install directory for server programs */ -#ifndef ServerBindir -#define ServerBindir $(KRB5ROOT)/sbin -#endif - -/* ClientBindir: binary install directory for client programs */ -#ifndef ClientBindir -#define ClientBindir $(KRB5ROOT)/bin -#endif - -/* Libdir: install directory for kerberos libraries */ -#ifndef Krb5Libdir -#define Krb5Libdir $(KRB5ROOT)/lib -#endif - -#ifndef Krb5Incdir -#define Krb5Incdir $(KRB5ROOT)/include -#endif /***************************************************************************** * * * Build Parameters * @@ -143,11 +78,6 @@ #endif #endif -/* With gcc, use -g -O. Otherwise use the default (-O). */ -#if !defined(DefaultCDebugFlags) && HasGcc -#define DefaultCDebugFlags OptimizedCDebugFlags DebuggableCDebugFlags -#endif - /* If you have the Hesiod software and libraries installed, and want to use it in some application programs, then turn these on. If they're not turned on, they are left empty in Project.tmpl */ @@ -205,19 +135,6 @@ #define Krb4LibList /usr/athena/lib/libkrb.a $(KLIBLOC) -l$(DES425LIB) #define Krb4KdbList /usr/athena/lib/libkdb.a -/* the following might want to be put into a specific architecture - definition file */ - -/* #define HasVfprintf -- turn on if you have vfprintf/vsprintf in libc - (might want to be in the architecture-specific - configuration file) */ -/* #define HasVsyslog -- turn on if you have vsyslog in libc - (might want to be in the architecture-specific - configuration file) */ -/* #define HasStrdup -- turn on if you have strdup() in libc - (might want to be in the architecture-specific - configuration file) */ - /* If you have the Hash library it will enable the GSSAPI validation code. It will make the GSSAPI library more robust, but it is not strictly necessary. */ @@ -268,14 +185,7 @@ #endif /* HasGcc */ #endif - -#if defined(VaxArchitecture) && defined(UltrixArchitecture) -#undef STDCTopIncludes -#undef CcCmd -#define CcCmd gcc -pedantic -pipe -Wall -fpcc-struct-return -#define OptimizedCDebugFlags -O3 -#define DefaultCDebugFlags OptimizedCDebugFlags -g -#endif +/* Define these appropriately if you have tcl installed */ #define HasTcl YES #define TclIncludes -I/u1/tcl/include #define TclLibs -L/u1/tcl/lib -ltcl -lm diff --git a/src/config/site.def.example b/src/config/site.def.example index 9f4adc243..7219e82ba 100644 --- a/src/config/site.def.example +++ b/src/config/site.def.example @@ -40,78 +40,13 @@ #define Krb5Root /krb5 /* - * 1. HasLargeTmp - if your /tmp space is less than a 1meg, you should + * HasLargeTmp - if your /tmp space is less than a 1meg, you should * probably set this to NO */ #ifndef HasLargeTmp #define HasLargeTmp YES #endif -/* - * 2. Man page locations & suffixes. - */ -/* AdminManSuffix: man page suffix for administrative programs */ -#ifndef AdminManSuffix -#define AdminManSuffix 8 -#endif -/* AdminMandir: manual page directory for administrative man pages */ -#ifndef AdminMandir -#define AdminMandir $(KRB5ROOT)/man/man$(ADMIN_MANSUFFIX) -#endif - -/* ServerManSuffix: man page suffix for server programs */ -#ifndef ServerManSuffix -#define ServerManSuffix 8 -#endif -/* ServerMandir: manual page directory for server man pages */ -#ifndef ServerMandir -#define ServerMandir $(KRB5ROOT)/man/man$(SERVER_MANSUFFIX) -#endif - -/* ClientManSuffix: man page suffix for client programs */ -#ifndef ClientManSuffix -#define ClientManSuffix 1 -#endif -/* ClientMandir: manual page directory for client man pages */ -#ifndef ClientMandir -#define ClientMandir $(KRB5ROOT)/man/man$(CLIENT_MANSUFFIX) -#endif - -/* FileManSuffix: man page suffix for files */ -#ifndef FileManSuffix -#define FileManSuffix 5 -#endif -/* FileMandir: manual page directory for file man pages */ -#ifndef FileMandir -#define FileMandir $(KRB5ROOT)/man/man$(FILE_MANSUFFIX) -#endif - -/* - * 3. Binary program install areas. - */ -/* AdminBindir: binary install directory for administrative programs */ -#ifndef AdminBindir -#define AdminBindir $(KRB5ROOT)/admin -#endif - -/* ServerBindir: binary install directory for server programs */ -#ifndef ServerBindir -#define ServerBindir $(KRB5ROOT)/sbin -#endif - -/* ClientBindir: binary install directory for client programs */ -#ifndef ClientBindir -#define ClientBindir $(KRB5ROOT)/bin -#endif - -/* Libdir: install directory for kerberos libraries */ -#ifndef Krb5Libdir -#define Krb5Libdir $(KRB5ROOT)/lib -#endif - -#ifndef Krb5Incdir -#define Krb5Incdir $(KRB5ROOT)/include -#endif /***************************************************************************** * * * Build Parameters * @@ -130,16 +65,12 @@ */ #undef Use_VPATH -/* With gcc, use -g -O. Otherwise use the default (-O). */ -#if !defined(DefaultCDebugFlags) && HasGcc -#define DefaultCDebugFlags OptimizedCDebugFlags DebuggableCDebugFlags -#endif - /* If you have the Hesiod software and libraries installed, and want to use it in some application programs, then turn these on. If they're not turned on, they are left empty in Project.tmpl */ #define HesiodDefines -DHESIOD #define HesiodLibs /usr/athena/lib/libhesiod.a +#define HesiodIncludes -I/usr/athena/include #if 0 /* not yet in use, but maybe someday... */ @@ -170,8 +101,8 @@ #define PepsyCmd IsodeDir/@sys/bin/pepsy -#define UseImakeInstalled /* -- turn on if you have imake installed */ -#define UseMakedependInstalled /* -- turn on if you have makedepend installed */ +/* #define UseImakeInstalled -- /* turn on if you have imake installed */ +/* #define UseMakedependInstalled -- /* turn on if you have makedepend installed */ /* #define Krb4ApplCompat /* turn this on if you want selected applications to work with both v4 & v5 code */ @@ -191,36 +122,6 @@ /* the following might want to be put into a specific architecture definition file */ -/* - * If yes, you have vfprintf/vsprintf in libc (might want to be in the - * architecture-specific configuration file) - */ -/* #define HasVfprintf YES */ - -/* - * If yes, you have vsyslog in libc (might want to be in the - * architecture-specific configuration file) - */ -/* #define HasVsyslog YES */ - -/* - * If yes, you have strdup in libc (might want to be in the - * architecture-specific configuration file) - */ -/* #define HasStrdup YES */ - -/* - * If yes, you have strerror in libc (might want to be in the - * architecture-specific configuration file) - */ -/* #define HasStrerror YES */ - -/* - * If yes, you have memmove in libc (might want to be in the - * architecture-specific configuration file) - */ -/* #define HasMemmove YES */ - /* * If you have the Hash library it will enable the GSSAPI validation code. * It will make the GSSAPI library more robust, but it is not strictly @@ -254,26 +155,17 @@ /* Define BuildGssapi to be YES if you want to build GSSAPI. Note: GSSAPI doesn't build with C compilers that don't support full ANSI C. - For example, the Ultrix C compiler. GCC, however, does work. */ + For example, the Ultrix C compiler. GCC, however, does work. + Project.tmpl defines BuildGssapi to be YES if HasGcc is YES. */ -#if HasGcc -#define BuildGssapi YES -#else -#define BuildGssapi NO -#endif +/* #define BuildGssapi YES */ /* Define this if you are building for multiple architectures or operating systems. This tells the build where to look for the sources. */ #ifndef UseInstalled /* #define SourceTop /u1/krb5/sandbox/build */ #endif - -#if defined(VaxArchitecture) && defined(UltrixArchitecture) -#undef STDCTopIncludes -#undef CcCmd -#define CcCmd gcc -pedantic -pipe -Wall -fpcc-struct-return -#define OptimizedCDebugFlags -O3 -#define DefaultCDebugFlags OptimizedCDebugFlags -g -#endif - - +/* Define these appropriately if you have tcl installed */ +/* #define HasTcl YES */ +/* #define TclIncludes -I/u1/tcl/include */ +/* #define TclLibs -L/u1/tcl/lib -ltcl -lm */ diff --git a/src/config/ultrix.cf b/src/config/ultrix.cf index 46b756ce7..7b20de7cb 100644 --- a/src/config/ultrix.cf +++ b/src/config/ultrix.cf @@ -48,6 +48,11 @@ #define UnalignedReferencesAllowed YES /* if arbitrary deref is okay */ #define HasSaberC YES #define DesDefines -DBIG -DLSBFIRST +#undef STDCTopIncludes +#undef CcCmd +#define CcCmd gcc -pedantic -pipe -Wall -fpcc-struct-return +#define OptimizedCDebugFlags -O3 +#define DefaultCDebugFlags OptimizedCDebugFlags -g #endif #ifdef MipsArchitecture