stamp? please?
authorMark Eichin <eichin@mit.edu>
Wed, 10 Aug 1994 02:11:34 +0000 (02:11 +0000)
committerMark Eichin <eichin@mit.edu>
Wed, 10 Aug 1994 02:11:34 +0000 (02:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4111 dc483132-0cff-0310-8789-dd5450dbe970

12 files changed:
src/config/ibmLib.rules [deleted file]
src/config/imake.c [deleted file]
src/config/imake.man [deleted file]
src/config/imakemdep.h [deleted file]
src/config/linux.cf [deleted file]
src/config/next.cf [deleted file]
src/config/site.def [deleted file]
src/config/site.def.example [deleted file]
src/config/sun.cf [deleted file]
src/config/tahoebsd.cf [deleted file]
src/config/ultrix.cf [deleted file]
src/config/vaxbsd.cf [deleted file]

diff --git a/src/config/ibmLib.rules b/src/config/ibmLib.rules
deleted file mode 100644 (file)
index 26c22f1..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/* Rules to generate an AIX 3 shared library.  */
-
-/* Generate a null rule for libfoo.a so that "make libfoo.a" will work
-   on all systems to bring libfoo.a up to date (BSD systems would run
-   ranlib).  */
-
-#define        IBMSharedLibraryTarget(tdeps,libname,ldeps)                     @@\
-lib/**/libname.a::                                                     @@\
-libname.o: tdeps                                                       @@\
-       $(RM) libname.o                                                 @@\
-       ld -o libname.o lib/**/libname.a -H512 -T512 -bM\:SRE -bE\:$(SRCDIR)exports.libname ldeps -lc @@\
-       $(RM) shared/lib/**/libname.a                                   @@\
-       $(ARADD) shared/lib/**/libname.a libname.o                      @@\
-clean::                                                                        @@\
-       $(RM) lib/**/libname.a shared/lib/**/libname.a libname.o
-
-#define        RanlibLibraryTarget(libname,deps)                               @@\
-AllTarget(lib/**/libname.a)                                            @@\
-IBMSharedLibraryTarget(foo/**/libname,libname,deps)
-
-#define        AdditiveLibraryTarget(libname,objlist,deps)                     @@\
-AllTarget(lib/**/libname.a)                                            @@\
-AllTarget(libname.o)                                                   @@\
-AllTarget(foo/**/libname)                                              @@\
-DependTarget()                                                         @@\
-                                                                       @@\
-foo/**/libname: objlist                                                        @@\
-       $(ARADD) lib/**/libname.a objlist                               @@\
-       $(TOUCH) foo/**/libname                                         @@\
-IBMSharedLibraryTarget(lib/**/libname.a,libname,deps)                  @@\
-clean::                                                                        @@\
-       $(RM_CMD) foo/**/libname
-
-
-#define        SharedLibraryTarget(libname,ldeps)                              @@\
-IBMSharedLibraryTarget(lib/**/libname.a,libname,ldeps)
-
diff --git a/src/config/imake.c b/src/config/imake.c
deleted file mode 100644 (file)
index 7baa5ce..0000000
+++ /dev/null
@@ -1,784 +0,0 @@
-/*****************************************************************************\
- *                                                                           *
- *                                Porting Note                               *
- *                                                                           *
- * Add the value of BOOTSTRAPCFLAGS to the cpp_argv table so that it will be *
- * passed to the template file.                                              *
- *                                                                           *
-\*****************************************************************************/
-
-
-
-/*
- * 
- * Copyright 1985, 1986, 1987 by the Massachusetts Institute of Technology
- * 
- * Permission to use, copy, modify, and distribute this
- * software and its documentation for any purpose and without
- * fee is hereby granted, provided that the above copyright
- * notice appear in all copies and that both that copyright
- * notice and this permission notice appear in supporting
- * documentation, and that the name of M.I.T. not be used in
- * advertising or publicity pertaining to distribution of the
- * software without specific, written prior permission.
- * M.I.T. makes no representations about the suitability of
- * this software for any purpose.  It is provided "as is"
- * without express or implied warranty.
- * 
- * $XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $
- * $Locker$
- *
- * Author:
- *     Todd Brunhoff
- *     Tektronix, inc.
- *     While a guest engineer at Project Athena, MIT
- *
- * imake: the include-make program.
- *
- * Usage: imake [-Idir] [-Ddefine] [-T] [-f imakefile ] [-s] [-e] [-v] [make flags]
- *
- * Imake takes a template makefile (Imake.tmpl) and runs cpp on it
- * producing a temporary makefile in /tmp.  It then runs make on
- * this pre-processed makefile.
- * Options:
- *             -D      define.  Same as cpp -D argument.
- *             -I      Include directory.  Same as cpp -I argument.
- *             -T      template.  Designate a template other
- *                     than Imake.tmpl
- *             -s[F]   show.  Show the produced makefile on the standard
- *                     output.  Make is not run is this case.  If a file
- *                     argument is provided, the output is placed there.
- *              -e[F]   execute instead of show; optionally name Makefile F
- *             -v      verbose.  Show the make command line executed.
- *
- * Environment variables:
- *             
- *             IMAKEINCLUDE    Include directory to use in addition to "."
- *             IMAKECPP        Cpp to use instead of /lib/cpp
- *             IMAKEMAKE       make program to use other than what is
- *                             found by searching the $PATH variable.
- * Other features:
- *     imake reads the entire cpp output into memory and then scans it
- *     for occurences of "@@".  If it encounters them, it replaces it with
- *     a newline.  It also trims any trailing white space on output lines
- *     (because make gets upset at them).  This helps when cpp expands
- *     multi-line macros but you want them to appear on multiple lines.
- *
- *     The macros MAKEFILE and MAKE are provided as macros
- *     to make.  MAKEFILE is set to imake's makefile (not the constructed,
- *     preprocessed one) and MAKE is set to argv[0], i.e. the name of
- *     the imake program.
- *
- * Theory of operation:
- *   1. Determine the name of the imakefile from the command line (-f)
- *     or from the content of the current directory (Imakefile or imakefile).
- *     Call this <imakefile>.  This gets added to the arguments for
- *     make as MAKEFILE=<imakefile>.
- *   2. Determine the name of the template from the command line (-T)
- *     or the default, Imake.tmpl.  Call this <template>
- *   3. Start up cpp an provide it with three lines of input:
- *             #define IMAKE_TEMPLATE          " <template> "
- *             #define INCLUDE_IMAKEFILE       < <imakefile> >
- *             #include IMAKE_TEMPLATE
- *     Note that the define for INCLUDE_IMAKEFILE is intended for
- *     use in the template file.  This implies that the imake is
- *     useless unless the template file contains at least the line
- *             #include INCLUDE_IMAKEFILE
- *   4. Gather the output from cpp, and clean it up, expanding @@ to
- *     newlines, stripping trailing white space, cpp control lines,
- *     and extra blank lines.  This cleaned output is placed in a
- *     temporary file.  Call this <makefile>.
- *   5. Start up make specifying <makefile> as its input.
- *
- * The design of the template makefile should therefore be:
- *     <set global macros like CFLAGS, etc.>
- *     <include machine dependent additions>
- *     #include INCLUDE_IMAKEFILE
- *     <add any global targets like 'clean' and long dependencies>
- */
-#include       <stdio.h>
-#include       <ctype.h>
-#include       <sys/types.h>
-#include       <sys/param.h>
-#ifdef SYSV
-#ifndef macII                  /* mac will get the stuff out of file.h */
-#include       <fcntl.h>
-#endif
-#else  /* !SYSV */
-#include       <sys/wait.h>
-#endif /* !SYSV */
-#include       <sys/file.h>
-#include       <signal.h>
-#include       <sys/stat.h>
-#include "imakemdep.h"
-
-
-#define        TRUE            1
-#define        FALSE           0
-
-#ifdef FIXUP_CPP_WHITESPACE
-int    InRule = FALSE;
-#endif
-
-/*
- * Some versions of cpp reduce all tabs in macro expansion to a single
- * space.  In addition, the escaped newline may be replaced with a
- * space instead of being deleted.  Blech.
- */
-#ifndef FIXUP_CPP_WHITESPACE
-#define KludgeOutputLine(arg)
-#define KludgeResetRule()
-#endif
-
-typedef        unsigned char   boolean;
-
-#ifndef DEFAULT_CPP
-#define DEFAULT_CPP "/lib/cpp"
-#endif
-
-char *cpp = DEFAULT_CPP;
-
-char   *tmpMakefile    = "/tmp/Imf.XXXXXX";
-char   *tmpImakefile    = "/tmp/IIf.XXXXXX";
-char   *make_argv[ ARGUMENTS ] = { "make" };
-
-int    make_argindex;
-int    cpp_argindex;
-char   *make = NULL;
-char   *Imakefile = NULL;
-char   *Makefile = "Makefile";
-char   *Template = "Imake.tmpl";
-char   *program;
-char   *FindImakefile();
-char   *ReadLine();
-char   *CleanCppInput();
-char   *strdup();
-
-boolean        verbose = FALSE;
-boolean        show = TRUE;
-extern int     errno;
-extern char    *Emalloc();
-extern char    *realloc();
-extern char    *getenv();
-extern char    *mktemp();
-
-main(argc, argv)
-       int     argc;
-       char    **argv;
-{
-       FILE    *tmpfd;
-       char    makeMacro[ BUFSIZ ];
-       char    makefileMacro[ BUFSIZ ];
-
-       init();
-       SetOpts(argc, argv);
-
-       Imakefile = FindImakefile(Imakefile);
-       if (Makefile)
-               tmpMakefile = Makefile;
-       else
-               tmpMakefile = mktemp(strdup(tmpMakefile));
-       AddMakeArg("-f");
-       AddMakeArg( tmpMakefile );
-       sprintf(makeMacro, "MAKE=%s", program);
-       AddMakeArg( makeMacro );
-       sprintf(makefileMacro, "MAKEFILE=%s", Imakefile);
-       AddMakeArg( makefileMacro );
-
-       if ((tmpfd = fopen(tmpMakefile, "w+")) == NULL)
-               LogFatal("Cannot create temporary file %s.", tmpMakefile);
-
-       cppit(Imakefile, Template, tmpfd, tmpMakefile);
-
-       if (show) {
-               if (Makefile == NULL)
-                       showit(tmpfd);
-       } else
-               makeit();
-       wrapup();
-       exit(0);
-}
-
-showit(fd)
-       FILE    *fd;
-{
-       char    buf[ BUFSIZ ];
-       int     red;
-
-       fseek(fd, 0, 0);
-       while ((red = fread(buf, 1, BUFSIZ, fd)) > 0)
-               fwrite(buf, red, 1, stdout);
-       if (red < 0)
-               LogFatal("Cannot write stdout.", "");
-}
-
-wrapup()
-{
-       if (tmpMakefile != Makefile)
-               unlink(tmpMakefile);
-       unlink(tmpImakefile);
-}
-
-#if SIGNALRETURNSINT
-int
-#else
-void
-#endif
-catch(sig)
-       int     sig;
-{
-       errno = 0;
-       LogFatalI("Signal %d.", sig);
-}
-
-/*
- * Initialize some variables.
- */
-init()
-{
-       char    *p;
-
-       make_argindex=0;
-       while (make_argv[ make_argindex ] != NULL)
-               make_argindex++;
-       cpp_argindex = 0;
-       while (cpp_argv[ cpp_argindex ] != NULL)
-               cpp_argindex++;
-
-       /*
-        * See if the standard include directory is different than
-        * the default.  Or if cpp is not the default.  Or if the make
-        * found by the PATH variable is not the default.
-        */
-       if (p = getenv("IMAKEINCLUDE")) {
-               if (*p != '-' || *(p+1) != 'I')
-                       LogFatal("Environment var IMAKEINCLUDE %s\n",
-                               "must begin with -I");
-               AddCppArg(p);
-               for (; *p; p++)
-                       if (*p == ' ') {
-                               *p++ = '\0';
-                               AddCppArg(p);
-                       }
-       }
-       if (p = getenv("IMAKECPP"))
-               cpp = p;
-       if (p = getenv("IMAKEMAKE"))
-               make = p;
-
-       if (signal(SIGINT, SIG_IGN) != SIG_IGN)
-               signal(SIGINT, catch);
-}
-
-AddMakeArg(arg)
-       char    *arg;
-{
-       errno = 0;
-       if (make_argindex >= ARGUMENTS-1)
-               LogFatal("Out of internal storage.", "");
-       make_argv[ make_argindex++ ] = arg;
-       make_argv[ make_argindex ] = NULL;
-}
-
-AddCppArg(arg)
-       char    *arg;
-{
-       errno = 0;
-       if (cpp_argindex >= ARGUMENTS-1)
-               LogFatal("Out of internal storage.", "");
-       cpp_argv[ cpp_argindex++ ] = arg;
-       cpp_argv[ cpp_argindex ] = NULL;
-}
-
-SetOpts(argc, argv)
-       int     argc;
-       char    **argv;
-{
-       errno = 0;
-       /*
-        * Now gather the arguments for make
-        */
-       program = argv[0];
-       for(argc--, argv++; argc; argc--, argv++) {
-           /*
-            * We intercept these flags.
-            */
-           if (argv[0][0] == '-') {
-               if (argv[0][1] == 'D') {
-                   AddCppArg(argv[0]);
-               } else if (argv[0][1] == 'I') {
-                   AddCppArg(argv[0]);
-               } else if (argv[0][1] == 'f') {
-                   if (argv[0][2])
-                       Imakefile = argv[0]+2;
-                   else {
-                       argc--, argv++;
-                       if (! argc)
-                           LogFatal("No description arg after -f flag\n", "");
-                       Imakefile = argv[0];
-                   }
-               } else if (argv[0][1] == 's') {
-                   if (argv[0][2])
-                       Makefile = (argv[0][2] == '-') ? NULL : argv[0]+2;
-                   else if (argc > 1 && argv[1][0] != '-') {
-                       argc--, argv++;
-                       Makefile = argv[0];
-                   }
-                   show = TRUE;
-               } else if (argv[0][1] == 'e') {
-                  Makefile = (argv[0][2] ? argv[0]+2 : NULL);
-                  show = FALSE;
-               } else if (argv[0][1] == 'T') {
-                   if (argv[0][2])
-                       Template = argv[0]+2;
-                   else {
-                       argc--, argv++;
-                       if (! argc)
-                           LogFatal("No description arg after -T flag\n", "");
-                       Template = argv[0];
-                   }
-               } else if (argv[0][1] == 'v') {
-                   verbose = TRUE;
-               } else
-                   AddMakeArg(argv[0]);
-           } else
-               AddMakeArg(argv[0]);
-       }
-}
-
-char *FindImakefile(Imakefile)
-       char    *Imakefile;
-{
-       int     fd;
-
-       if (Imakefile) {
-               if ((fd = open(Imakefile, O_RDONLY)) < 0)
-                       LogFatal("Cannot open %s.", Imakefile);
-       } else {
-               if ((fd = open("Imakefile", O_RDONLY)) < 0)
-                       if ((fd = open("imakefile", O_RDONLY)) < 0)
-                               LogFatal("No description file.", "");
-                       else
-                               Imakefile = "imakefile";
-               else
-                       Imakefile = "Imakefile";
-       }
-       close (fd);
-       return(Imakefile);
-}
-
-LogFatalI(s, i)
-       char *s;
-       int i;
-{
-       /*NOSTRICT*/
-       LogFatal(s, (char *)i);
-}
-
-LogFatal(x0,x1)
-       char *x0, *x1;
-{
-       extern char     *sys_errlist[];
-       static boolean  entered = FALSE;
-
-       if (entered)
-               return;
-       entered = TRUE;
-
-       fprintf(stderr, "%s: ", program);
-       if (errno)
-               fprintf(stderr, "%s: ", sys_errlist[ errno ]);
-       fprintf(stderr, x0,x1);
-       fprintf(stderr, "  Stop.\n");
-       wrapup();
-       exit(1);
-}
-
-showargs(argv)
-       char    **argv;
-{
-       for (; *argv; argv++)
-               fprintf(stderr, "%s ", *argv);
-       fprintf(stderr, "\n");
-}
-
-cppit(Imakefile, template, outfd, outfname)
-       char    *Imakefile;
-       char    *template;
-       FILE    *outfd;
-       char    *outfname;
-{
-       FILE    *pipeFile;
-       int     pid, pipefd[2];
-#ifdef SYSV
-       int     status;
-#else  /* !SYSV */
-       union wait      status;
-#endif /* !SYSV */
-       char    *cleanedImakefile;
-
-       /*
-        * Get a pipe.
-        */
-       if (pipe(pipefd) < 0)
-               LogFatal("Cannot make a pipe.", "");
-
-       /*
-        * Fork and exec cpp
-        */
-       pid = fork();
-       if (pid < 0)
-               LogFatal("Cannot fork.", "");
-       if (pid) {      /* parent */
-               close(pipefd[0]);
-               cleanedImakefile = CleanCppInput(Imakefile);
-               if ((pipeFile = fdopen(pipefd[1], "w")) == NULL)
-                       LogFatalI("Cannot fdopen fd %d for output.", pipefd[1]);
-               fprintf(pipeFile, "#define IMAKE_TEMPLATE\t\"%s\"\n",
-                       template);
-               fprintf(pipeFile, "#define INCLUDE_IMAKEFILE\t<%s>\n",
-                       cleanedImakefile);
-               fprintf(pipeFile, "#include IMAKE_TEMPLATE\n");
-               fclose(pipeFile);
-               while (wait(&status) > 0) {
-                       errno = 0;
-#ifdef SYSV
-                       if ((status >> 8) & 0xff)
-                               LogFatalI("Signal %d.", (status >> 8) & 0xff);
-                       if (status & 0xff)
-                               LogFatalI("Exit code %d.", status & 0xff);
-#else  /* !SYSV */
-                       if (status.w_termsig)
-                               LogFatalI("Signal %d.", status.w_termsig);
-                       if (status.w_retcode)
-                               LogFatalI("Exit code %d.", status.w_retcode);
-#endif /* !SYSV */
-               }
-               CleanCppOutput(outfd, outfname);
-       } else {        /* child... dup and exec cpp */
-               if (verbose)
-                       showargs(cpp_argv);
-               dup2(pipefd[0], 0);
-               dup2(fileno(outfd), 1);
-               close(pipefd[1]);
-               execv(cpp, cpp_argv);
-               LogFatal("Cannot exec %s.", cpp);
-       }
-}
-
-makeit()
-{
-       int     pid;
-#ifdef SYSV
-       int     status;
-#else  /* !SYSV */
-       union wait      status;
-#endif /* !SYSV */
-
-       /*
-        * Fork and exec make
-        */
-       pid = fork();
-       if (pid < 0)
-               LogFatal("Cannot fork.", "");
-       if (pid) {      /* parent... simply wait */
-               while (wait(&status) > 0) {
-                       errno = 0;
-#ifdef SYSV
-                       if ((status >> 8) & 0xff)
-                               LogFatalI("Signal %d.", (status >> 8) & 0xff);
-                       if (status & 0xff)
-                               LogFatalI("Exit code %d.", status & 0xff);
-#else  /* !SYSV */
-                       if (status.w_termsig)
-                               LogFatalI("Signal %d.", status.w_termsig);
-                       if (status.w_retcode)
-                               LogFatalI("Exit code %d.", status.w_retcode);
-#endif /* !SYSV */
-               }
-       } else {        /* child... dup and exec cpp */
-               if (verbose)
-                       showargs(make_argv);
-               if (make)
-                       execv(make, make_argv);
-               else
-                       execvp("make", make_argv);
-               LogFatal("Cannot exec %s.", cpp);
-       }
-}
-
-char *CleanCppInput(Imakefile)
-       char    *Imakefile;
-{
-       FILE    *outFile = NULL;
-       int     infd;
-       char    *buf,           /* buffer for file content */
-               *pbuf,          /* walking pointer to buf */
-               *punwritten,    /* pointer to unwritten portion of buf */
-               *cleanedImakefile = Imakefile,  /* return value */
-               *ptoken,        /* pointer to # token */
-               *pend,          /* pointer to end of # token */
-               savec;          /* temporary character holder */
-       struct stat     st;
-
-       /*
-        * grab the entire file.
-        */
-       if ((infd = open(Imakefile, O_RDONLY)) < 0)
-               LogFatal("Cannot open %s for input.", Imakefile);
-       fstat(infd, &st);
-       buf = Emalloc(st.st_size+1);
-       if (read(infd, buf, st.st_size) != st.st_size)
-               LogFatal("Cannot read all of %s:", Imakefile);
-       close(infd);
-       buf[ st.st_size ] = '\0';
-
-       punwritten = pbuf = buf;
-       while (*pbuf) {
-           /* pad make comments for cpp */
-           if (*pbuf == '#' && (pbuf == buf || pbuf[-1] == '\n')) {
-
-               ptoken = pbuf+1;
-               while (*ptoken == ' ' || *ptoken == '\t')
-                       ptoken++;
-               pend = ptoken;
-               while (*pend && *pend != ' ' && *pend != '\t' && *pend != '\n')
-                       pend++;
-               savec = *pend;
-               *pend = '\0';
-               if (strcmp(ptoken, "include")
-                && strcmp(ptoken, "define")
-                && strcmp(ptoken, "undef")
-                && strcmp(ptoken, "ifdef")
-                && strcmp(ptoken, "ifndef")
-                && strcmp(ptoken, "else")
-                && strcmp(ptoken, "endif")
-                && strcmp(ptoken, "if")) {
-                   if (outFile == NULL) {
-                       tmpImakefile = mktemp(strdup(tmpImakefile));
-                       cleanedImakefile = tmpImakefile;
-                       outFile = fopen(tmpImakefile, "w");
-                       if (outFile == NULL)
-                           LogFatal("Cannot open %s for write.\n",
-                               tmpImakefile);
-                   }
-                   fwrite(punwritten, sizeof(char), pbuf-punwritten, outFile);
-                   fputs("/**/", outFile);
-                   punwritten = pbuf;
-               }
-               *pend = savec;
-           }
-           pbuf++;
-       }
-       if (outFile) {
-           fwrite(punwritten, sizeof(char), pbuf-punwritten, outFile);
-           fclose(outFile); /* also closes the pipe */
-       }
-
-       return(cleanedImakefile);
-}
-
-CleanCppOutput(tmpfd, tmpfname)
-       FILE    *tmpfd;
-       char    *tmpfname;
-{
-       char    *input;
-       int     blankline = 0;
-
-       while(input = ReadLine(tmpfd, tmpfname)) {
-               if (isempty(input)) {
-                       if (blankline++)
-                               continue;
-                       KludgeResetRule();
-               } else {
-                       blankline = 0;
-                       KludgeOutputLine(&input);
-                       fputs(input, tmpfd);
-               }
-               putc('\n', tmpfd);
-       }
-       fflush(tmpfd);
-#ifdef NFS_STDOUT_BUG
-       /*
-        * On some systems, NFS seems to leave a large number of nulls at
-        * the end of the file.  Ralph Swick says that this kludge makes the
-        * problem go away.
-        */
-       ftruncate (fileno(tmpfd), (off_t)ftell(tmpfd));
-#endif
-}
-
-/*
- * Determine of a line has nothing in it.  As a side effect, we trim white
- * space from the end of the line.  Cpp magic cookies are also thrown away.
- */
-isempty(line)
-       char    *line;
-{
-       char    *pend;
-
-       /*
-        * Check for lines of the form
-        *      # n "...
-        * or
-        *      # line n "...
-        */
-       if (*line == '#') {
-               pend = line+1;
-               if (*pend == ' ')
-                       pend++;
-               if (strncmp(pend, "line ", 5) == 0)
-                       pend += 5;
-               if (isdigit(*pend)) {
-                       while (isdigit(*pend))
-                               pend++;
-                       if (*pend++ == ' ' && *pend == '"')
-                               return(TRUE);
-               }
-       }
-
-       /*
-        * Find the end of the line and then walk back.
-        */
-       for (pend=line; *pend; pend++) ;
-
-       pend--;
-       while (pend >= line && (*pend == ' ' || *pend == '\t'))
-               pend--;
-       *++pend = '\0';
-       return (*line == '\0');
-}
-
-/*ARGSUSED*/
-char *ReadLine(tmpfd, tmpfname)
-       FILE    *tmpfd;
-       char    *tmpfname;
-{
-       static boolean  initialized = FALSE;
-       static char     *buf, *pline, *end;
-       char    *p1, *p2;
-
-       if (! initialized) {
-               int     total_red;
-               struct stat     st;
-
-               /*
-                * Slurp it all up.
-                */
-               fseek(tmpfd, 0, 0);
-               fstat(fileno(tmpfd), &st);
-               pline = buf = Emalloc(st.st_size+1);
-               total_red = read(fileno(tmpfd), buf, st.st_size);
-               if (total_red != st.st_size)
-                       LogFatal("cannot read %s\n", tmpMakefile);
-               end = buf + st.st_size;
-               *end = '\0';
-               lseek(fileno(tmpfd), 0, 0);
-#ifdef SYSV
-               freopen(tmpfname, "w+", tmpfd);
-#else  /* !SYSV */
-               ftruncate(fileno(tmpfd), 0);
-#endif /* !SYSV */
-               initialized = TRUE;
-           fprintf (tmpfd, "# Makefile generated by imake - do not edit!\n");
-           fprintf (tmpfd, "# %s\n",
-               "$XConsortium: imake.c,v 1.51 89/12/12 12:37:30 jim Exp $");
-
-#ifdef FIXUP_CPP_WHITESPACE
-           {
-               static char *cpp_warning[] = {
-"#",
-"# The cpp used on this machine replaces all newlines and multiple tabs and",
-"# spaces in a macro expansion with a single space.  Imake tries to compensate",
-"# for this, but is not always successful.",
-"#",
-NULL };
-               char **cpp;
-
-               for (cpp = cpp_warning; *cpp; cpp++) {
-                   fprintf (tmpfd, "%s\n", *cpp);
-               }
-           }
-#endif /* FIXUP_CPP_WHITESPACE */
-       }
-
-       for (p1 = pline; p1 < end; p1++) {
-               if (*p1 == '@' && *(p1+1) == '@') { /* soft EOL */
-                       *p1++ = '\0';
-                       p1++; /* skip over second @ */
-                       break;
-               }
-               else if (*p1 == '\n') { /* real EOL */
-                       *p1++ = '\0';
-                       break;
-               }
-       }
-
-       /*
-        * return NULL at the end of the file.
-        */
-       p2 = (pline == p1 ? NULL : pline);
-       pline = p1;
-       return(p2);
-}
-
-writetmpfile(fd, buf, cnt)
-       FILE    *fd;
-       int     cnt;
-       char    *buf;
-{
-       errno = 0;
-       if (fwrite(buf, cnt, 1, fd) != 1)
-               LogFatal("Cannot write to %s.", tmpMakefile);
-}
-
-char *Emalloc(size)
-       int     size;
-{
-       char    *p, *malloc();
-
-       if ((p = malloc(size)) == NULL)
-               LogFatalI("Cannot allocate %d bytes\n", size);
-       return(p);
-}
-
-#ifdef FIXUP_CPP_WHITESPACE
-KludgeOutputLine(pline)
-       char    **pline;
-{
-       char    *p = *pline;
-
-       switch (*p) {
-           case '#':   /*Comment - ignore*/
-               break;
-           case '\t':  /*Already tabbed - ignore it*/
-               break;
-           case ' ':   /*May need a tab*/
-           default:
-               for (; *p; p++) if (p[0] == ':' && 
-                                   p > *pline && p[-1] != '\\') {
-                   if (**pline == ' ')
-                       (*pline)++;
-                   InRule = TRUE;
-                   break;
-               }
-               if (InRule && **pline == ' ')
-                   **pline = '\t';
-               break;
-       }
-}
-
-KludgeResetRule()
-{
-       InRule = FALSE;
-}
-#endif /* FIXUP_CPP_WHITESPACE */
-
-char *strdup(cp)
-       register char *cp;
-{
-       register char *new = Emalloc(strlen(cp) + 1);
-
-       strcpy(new, cp);
-       return new;
-}
diff --git a/src/config/imake.man b/src/config/imake.man
deleted file mode 100644 (file)
index c6e10e4..0000000
+++ /dev/null
@@ -1,179 +0,0 @@
-.TH IMAKE 1 "Release 4" "X Version 11"
-.SH NAME
-imake \- C preprocessor interface to the make utility
-.SH SYNOPSIS
-\fBimake \fP[-D\fIdefine\fP] [-I\fIdir\fP] [-T\fItemplate\fP]
-[-f \fIfilename\fP] [-s \fIfilename\fP] [-e] [-v]
-.SH DESCRIPTION
-.I Imake
-is used to 
-generate \fIMakefiles\fP from a template, a set of \fIcpp\fP macro functions,
-and a per-directory input file called an \fIImakefile\fP.  This allows machine
-dependencies (such has compiler options, alternate command names, and special
-\fImake\fP rules) to be kept separate from the descriptions of the
-various items to be built.
-.SH OPTIONS
-The following command line options may be passed to \fIimake\fP:
-.TP 8
-.B \-D\fIdefine\fP
-This option is passed directly to \fIcpp\fP.  It is typically used to set
-directory-specific variables.  For example, the X Window System uses this
-flag to set \fITOPDIR\fP to the name of the directory containing the top
-of the core distribution and \fICURDIR\fP to the name of the current 
-directory, relative to the top.
-.TP 8
-.B \-I\fIdirectory\fP
-This option is passed directly to \fIcpp\fP.  It is typically used to 
-indicate the directory in which the \fIimake\fP template and configuration
-files may be found.
-.TP 8
-.B \-T\fItemplate\fP
-This option specifies the name of the master template file (which is usually
-located in the directory specified with \fI\-I\fP) used by \fIcpp\fP.
-The default is \fIImake.tmpl\fP.
-.TP 8
-.B \-f \fIfilename\fP
-This option specifies the name of the per-directory input file.  The default
-is \fIImakefile\fP.
-.TP 8
-.B \-s \fIfilename\fP
-This option specifies the name of the \fImake\fP description file to be 
-generated but \fImake\fP should not be invoked.
-If the \fIfilename\fP is a dash (-), the 
-output is written to \fIstdout\fP.  The default is to generate, but
-not execute, a \fIMakefile\fP.
-.TP 8
-.B \-e
-This option indicates the \fIimake\fP should execute the generated
-\fIMakefile\fP.  The default is to leave this to the user.
-.TP 8
-.B \-v
-This option indicates that \fIimake\fP should print the \fIcpp\fP command line 
-that it is using to generate the \fIMakefile\fP.
-.SH "HOW IT WORKS"
-\fIImake\fP invokes \fIcpp\fP with any \fI\-I\fP or \fI-D\fP flags passed
-on the command line and passes it the following 3 lines:
-.sp
-.nf
-               #define IMAKE_TEMPLATE "Imake.tmpl"
-               #define INCLUDE_IMAKEFILE "Imakefile"
-               #include IMAKE_TEMPLATE
-.fi
-.sp
-where \fIImake.tmpl\fP and \fIImakefile\fP may be overridden by the 
-\fI\-T\fP and \fI\-f\fP command options, respectively.  If the 
-\fIImakefile\fP contains any lines beginning with a '#' character
-that is not followed by a \fIcpp\fP directive (\fB#include\fP,
-\fB#define\fP, \fB#undef\fP, \fB#ifdef\fP, \fB#else\fP, \fB#endif\fP,
-or \fB#if\fP), \fIimake\fP will make a temporary \fImakefile\fP in
-which the '#' lines are prepended with the string ``/**/'' (so that
-\fIcpp\fP will copy the line into the \fIMakefile\fP as a comment).
-.PP
-The \fIImakefile\fP reads in file containing machine-dependent parameters 
-(specified as \fIcpp\fP symbols), a site-specific parameters file, a file
-containing \fIcpp\fP macro functions for generating \fImake\fP rules, and
-finally the \fIImakefile\fP (specified by INCLUDE_IMAKEFILE) in the current 
-directory.  The \fIImakefile\fP uses the macro functions to indicate what
-targets should be built; \fIimake\fP takes care of generating the appropriate
-rules.
-.PP
-The rules file (usually named \fIImake.rules\fP in the configuration
-directory) contains a variety of \fIcpp\fP macro functions that are
-configured according to the current platform.  \fIImake\fP replaces 
-any occurrences of the string ``@@'' with a newline to allow macros that
-generate more than one line of \fImake\fP rules.  
-For example, the macro
-.ta .8i 1.6i 5i
-.nf
-
-#define        program_target(program, objlist)        @@\e
-program:       objlist         @@\e
-       $(CC) -o $@ objlist $(LDFLAGS)
-
-.fi
-when called with
-.I "program_target(foo, foo1.o foo2.o)"
-will expand to
-.nf
-
-foo:   foo1.o foo2.o
-       $(CC) -o $@ foo1.o foo2.o $(LDFLAGS)
-
-.fi
-.PP
-On systems whose \fIcpp\fP reduces multiple tabs and spaces to a single
-space, \fIimake\fP attempts to put back any necessary tabs (\fImake\fP is
-very picky about the difference between tabs and spaces).  For this reason,
-colons (:) in command lines must be preceded by a backslash (\\).
-.SH "USE WITH THE X WINDOW SYSTEM"
-The X Window System uses \fIimake\fP extensively, for both full builds within
-the source tree and external software.  As mentioned above, two special
-variables, \fITOPDIR\fP and \fICURDIR\fP set to make referencing files
-using relative path names easier.  For example, the following command is
-generated automatically to build the \fIMakefile\fP in the directory
-\fIlib/X/\fP (relative to the top of the sources):
-.sp
-.nf
-       %  ../.././config/imake  -I../.././config \\
-               -DTOPDIR=../../. -DCURDIR=./lib/X
-.fi
-.sp
-When building X programs outside the source tree, a special symbol
-\fIUseInstalled\fP is defined and \fITOPDIR\fP and
-\fICURDIR\fP are omitted.  If the configuration files have been
-properly installed, the script \fIxmkmf(1)\fP may be used to specify
-the proper options:
-.sp
-.nf
-       %  xmkmf
-.fi
-.sp
-The command \fImake Makefiles\fP can then be used to generate \fIMakefiles\fP
-in any subdirectories.
-.SH FILES
-.ta 3i
-/usr/tmp/tmp-imake.\fInnnnnn\fP        temporary input file for cpp
-.br
-/usr/tmp/tmp-make.\fInnnnnn\fP temporary input file for make
-.br
-/lib/cpp       default C preprocessor
-.DT
-.SH "SEE ALSO"
-make(1)
-.br
-S. I. Feldman
-.I
-Make \- A Program for Maintaining Computer Programs
-.SH "ENVIRONMENT VARIABLES"
-The following environment variables may be set, however their use is not
-recommended as they introduce dependencies that are not readily apparent
-when \fIimake\fP is run:
-.TP 5
-.B IMAKEINCLUDE
-If defined, this should be a valid include argument for the
-C preprocessor.  E.g. ``-I/usr/include/local''.
-Actually, any valid
-.I cpp
-argument will work here.
-.TP 5
-.B IMAKECPP
-If defined, this should be a valid path to a preprocessor program.
-E.g. ``/usr/local/cpp''.
-By default,
-.I imake
-will use /lib/cpp.
-.TP 5
-.B IMAKEMAKE
-If defined, this should be a valid path to a make program.
-E.g. ``/usr/local/make''.
-By default,
-.I imake
-will use whatever
-.I make
-program is found using
-.I execvp(3).
-.SH "BUGS"
-Comments should be preceded by ``/**/#'' to protect them from \fIcpp\fP.
-.SH "AUTHOR"
-Todd Brunhoff, Tektronix and MIT Project Athena; Jim Fulton, MIT X Consortium
-
diff --git a/src/config/imakemdep.h b/src/config/imakemdep.h
deleted file mode 100644 (file)
index 6b26fbb..0000000
+++ /dev/null
@@ -1,203 +0,0 @@
-/*
- * $XConsortium: imakemdep.h,v 1.10 89/12/18 16:56:38 jim Exp $
- * 
- * This file contains machine-dependent constants for the imake utility.  When
- * porting imake, read each of the steps below and add in any necessary
- * definitions.  Do *not* edit ccimake.c or imake.c!
- */
-
-#ifdef CCIMAKE
-/*
- * Step 1:  imake_ccflags
- *     Define any special flags that will be needed to get imake.c to compile.
- *     These will be passed to the compile along with the contents of the
- *     make variable BOOTSTRAPCFLAGS.
- */
-#ifdef hpux
-#define imake_ccflags "-Wc,-Nd4000,-Ns3000 -DSYSV"
-#endif
-
-#ifdef macII
-#define imake_ccflags "-DSYSV"
-#endif
-
-#ifdef stellar
-#define imake_ccflags "-DSYSV"
-#endif
-
-#ifdef att
-#define imake_ccflags "-DSYSV -DUSG"
-#endif
-
-#ifdef CRAY
-#define imake_ccflags "-DSYSV -DUSG"
-#endif
-
-#ifdef aix
-#define imake_ccflags "-Daix -DSYSV"
-#endif
-
-#ifdef umips
-#ifdef SYSTYPE_SYSV
-#define imake_ccflags "-DSYSV -I../../lib/X/mips -I/usr/include/bsd ../../lib/X/mips/mipssysvc.c -lbsd"
-#endif
-#endif
-
-#else /* not CCIMAKE */
-#ifndef MAKEDEPEND
-/*
- * Step 2:  dup2
- *     If your OS doesn't have a dup2() system call to duplicate one file
- *     descriptor onto another, define such a mechanism here (if you don't
- *     already fall under the existing category(ies).
- */
-#if defined(SYSV) && !defined(CRAY)
-#define        dup2(fd1,fd2)   ((fd1 == fd2) ? fd1 : (close(fd2), \
-                                              fcntl(fd1, F_DUPFD, fd2)))
-#endif
-
-
-/*
- * Step 3:  FIXUP_CPP_WHITESPACE
- *     If your cpp collapses tabs macro expansions into a single space and
- *     replaces escaped newlines with a space, define this symbol.  This will
- *     cause imake to attempt to patch up the generated Makefile by looking
- *     for lines that have colons in them (this is why the rules file escapes
- *     all colons).  One way to tell if you need this is to see whether or not
- *     your Makefiles have no tabs in them and lots of @@ strings.
- */
-#if defined(sun) || defined(SYSV)
-#define FIXUP_CPP_WHITESPACE
-#endif
-
-
-/*
- * Step 4:  DEFAULT_CPP
- *     If the C preprocessor does not live in /lib/cpp, set this symbol to 
- *     the appropriate location.
- */
-#ifdef apollo
-#define DEFAULT_CPP "/usr/lib/cpp"
-#endif
-
-
-/*
- * Step 5:  cpp_argv
- *     The following table contains the cpp flags that should be passed to 
- *     cpp whenever a Makefile is being generated.  If your preprocessor 
- *     doesn't predefine any unique symbols, choose one and add it to the
- *     end of this table.  Then, do the following:
- * 
- *         a.  Use this symbol at the top of Imake.tmpl when setting MacroFile.
- *         b.  Put this symbol in the definition of BootstrapCFlags in your
- *             <platform>.cf file.
- *         c.  When doing a make World, always add "BOOTSTRAPCFLAGS=-Dsymbol" 
- *             to the end of the command line.
- * 
- *     Note that you may define more than one symbols (useful for platforms 
- *     that support multiple operating systems).
- */
-
-#define        ARGUMENTS 50    /* number of arguments in various arrays */
-char *cpp_argv[ARGUMENTS] = {
-       "cpp",          /* replaced by the actual cpp program to exec */
-       "-I.",          /* add current directory to include path */
-#ifdef unix
-       "-Uunix",       /* remove unix symbol so that filename unix.c okay */
-#endif
-#ifdef M4330
-       "-DM4330",      /* Tektronix */
-#endif
-#ifdef M4310
-       "-DM4310",      /* Tektronix */
-#endif
-#ifdef macII
-       "-DmacII",      /* Apple A/UX */
-#endif
-#ifdef att
-       "-Datt",        /* AT&T products */
-#endif
-#ifdef aix
-       "-Daix",        /* AIX instead of AOS */
-#ifndef ibm
-#define ibm            /* allow BOOTSTRAPCFLAGS="-Daix" */
-#endif
-#endif
-#ifdef ibm
-       "-Dibm",        /* IBM PS/2 and RT under both AOS and AIX */
-#endif
-};
-#else /* else MAKEDEPEND */
-/*
- * Step 6:  predefs
- *     If your compiler and/or preprocessor define any specific symbols, add
- *     them to the the following table.  The definition of struct symtab is
- *     in util/makedepend/main.c.
- */
-struct symtab  predefs[] = {
-#ifdef apollo
-       {"apollo", "1"},
-#endif
-#ifdef ibm032
-       {"ibm032", "1"},
-#endif
-#ifdef ibm
-       {"ibm", "1"},
-#endif
-#ifdef aix
-       {"aix", "1"},
-#endif
-#ifdef sun
-       {"sun", "1"},
-#endif
-#ifdef hpux
-       {"hpux", "1"},
-#endif
-#ifdef vax
-       {"vax", "1"},
-#endif
-#ifdef VMS
-       {"VMS", "1"},
-#endif
-#ifdef cray
-       {"cray", "1"},
-#endif
-#ifdef CRAY
-       {"CRAY", "1"},
-#endif
-#ifdef att
-       {"att", "1"},
-#endif
-#ifdef mips
-       {"mips", "1"},
-#endif
-#ifdef ultrix
-       {"ultrix", "1"},
-#endif
-#ifdef stellar
-       {"stellar", "1"},
-#endif
-#ifdef mc68000
-       {"mc68000", "1"},
-#endif
-#ifdef mc68020
-       {"mc68020", "1"},
-#endif
-#ifdef __GNUC__
-       {"__GNUC__", "1"},
-#endif
-#ifdef __STDC__
-       {"__STDC__", "1"},
-#endif
-#ifdef __HIGHC__
-       {"__HIGHC__", "1"},
-#endif
-#ifdef CMU
-       {"CMU", "1"},
-#endif
-       /* add any additional symbols before this line */
-       {NULL, NULL}
-};
-
-#endif /* MAKEDEPEND */
-#endif /* CCIMAKE */
diff --git a/src/config/linux.cf b/src/config/linux.cf
deleted file mode 100644 (file)
index 453152a..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
- */
-
-#define OSName            Linux 0.99
-#define OS_Linux         1
-#define OS_TelnetName     Linux  /* see appl/telnet/Config.generic
-                                    to select the name for this */
-#define OSMajorVersion    0
-#define OSMinorVersion    99
-#define SystemV NO
-#define HasVoidSignalReturn YES
-#define HasPosixTermios YES
-#define HasPosixFileLocks YES
-#define HasPosixTypes YES
-#define HasStringH YES
-#define HasStdlibH 2
-#define HasInet YES
-#define HasPutenv YES
-#define HasBsearch YES
-#define        HasAnsiStdio    YES
-#define        HasUnistdH      YES
-#define IsPOSIX                YES
-#define        WantPrototypes  YES
-#define Bitsize32
-#define        HasVfprintf     YES
-#define        HasStrerror     YES
-
-/* #define StandardCppDefines -DPOSIX -D_POSIX_SOURCE */
-/* Saber bug doesn't allow deref through const *'s */
-/* #define SaberDefines -DPOSIX -Dconst= */
-/* #define StandardDefines -YPOSIX -D_POSIX_SOURCE */
-/* makedepend won't understand -YPOSIX also implies -DPOSIX... */
-/* #define MakeDependFlags -DPOSIX */
-
-#define DependFlags -I/usr/lib/gcc-lib/i486-linux/`gcc -v 2>&1 | sed -ne "s/gcc version //p"`/include
-
-#undef HasGcc
-#define HasGcc YES
-
-#undef CcCmd
-#define CcCmd gcc -pedantic -pipe -Wall -fpcc-struct-return
-#define        OptimizedCDebugFlags -O3
-#define DefaultCDebugFlags OptimizedCDebugFlags
-
-/* #undef HasNdbm */
-#define HasNdbm YES
-#define DbmLib -ldbm
-
-#define UnalignedReferencesAllowed YES        /* if arbitrary deref is okay */
-#define HasSaberC NO
-#define DesDefines -DBIG -DLSBFIRST
-
-#define        UseVolatile YES
-#define        UseVoid YES
-#define        NoNestedPrototypes
-#define        UseStdarg YES
-#define UseSysTimeH
-
-#define        ArCmd ar cru
-#define LintLibFlag -o
-
diff --git a/src/config/next.cf b/src/config/next.cf
deleted file mode 100644 (file)
index 41c5d74..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/* Douglas Scott -- U.C. Santa Barbara */
-/* doug@foxtrot.ccmrc.ucsb.edu  */
-
-#define OSName            NeXT Release 3.0
-#define OSMajorVersion    3
-#define OSMinorVersion    0
-#define OS_TelnetName     next1.0  /* see appl/telnet/config.generic
-                                      to select the name for this */
-
-#define InstKmemFlags -m 2755 -g kmem
-
-#define HasSaberC        NO
-#define HasNdbm                  YES
-#define SetTtyGroup      YES
-#define HasBsearch       YES   /* changed by DAS -- is available on NeXT */
-
-#define NeedConstPrototypes            YES
-#define NeedVarargsPrototypes          YES
-#define NeedFunctionPrototypes          YES
-#define NeedWidePrototypes              NO
-
-#if HasGcc
-#define CcCmd gcc -Wno-import  /* dont use -fpcc-struct-return on NeXT */
-#if defined(HasGcc2) 
-#define OptimizedCDebugFlags -O2
-/* Leave Alone XXX */
-#else 
-#define OptimizedCDebugFlags -O
-#endif
-#endif
-
-#ifndef NeXT
-#define NeXT   /* Define needed for Imakefiles */
-#endif
-
-#define BuildExamples     NO
-
-#define StandardDefines -DX_NOT_POSIX -DX_NOT_STDC_ENV -DX_LOCALE
-
-#define HasVoidSignalReturn YES                /* NO when compiling with -bsd */
-
-/* this next part added for makedepend under 3.0 -- DAS */
-
-#if OSMajorVersion == 3        
-#ifndef DependFlags
-#define DependFlags -I/usr/include/ansi -I/usr/include/bsd -I/usr/include/bsd/sys
-#endif
-#endif
-
-#ifndef LnCmd
-#define LnCmd ln -s
-#endif
-
-#ifndef InstallCmd
-#define InstallCmd     install -u      /* unlink old */
-#endif
-
-#ifndef RanlibCmd
-#define RanlibCmd      ranlib -c -s
-#endif
-
-#define ServerCDebugFlags -g -O2       /* debug server for now */
-
-#define SystemV                        NO
-#define HasVoidSignalReturn    YES
-#define        HasPosixTermios         NO
-#define        HasPosixFileLocks       NO
-#define HasPosixTypes          YES
-#define        HasStringH              YES
-#define        HasStdlibH              YES
-#define        HasMemmove              YES
-#define        HasInet                 YES
-#define HasPutenv              YES
-#define HasBsearch             YES
-#define        HasGCC                  NO
-#define        UseSysTimeH             YES
-#undef UseStdarg
-#define IsPOSIX                        NO
-#define        Bitsize32               YES
-#define HasVfprintf            YES
-#define HasStrerror            YES
-#define HasVsyslog             YES
-
-#define        ArCmd                   ar cru
-#define LintLibFlag            -o
-
-#define DesDefines             -DBIG -DMUSTALIGN -DMSBFIRST
diff --git a/src/config/site.def b/src/config/site.def
deleted file mode 100644 (file)
index ba72da1..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/**/# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
-
-/*****************************************************************************
- *                                                                           *
- *                        SITE-SPECIFIC DEFINITIONS                         *
- *                                                                           *
- * Override any of the defaults in *.tmpl here.                              *
- *                                                                           *
- *                                                                           *
- * Make sure you check the following parameters:                             *
- *                                                                           *
- *     1.  HasLargeTmp                                                       *
- *     2.  All the manpage locations & suffixes                              *
- *     3.  All the binary install locations                                  *
- *                                                                           *
- * Note on using DESTDIR:  If you want to install into a scratch directory   *
- * but will eventually move the tree back to the root, compile with DESTDIR  *
- * blank and install with "make install DESTDIR=directory".                  *
- *                                                                           *
- *****************************************************************************/
-
-
-/* General */
-#define InstKmemFlag   -g kmem -m 2755
-#define StripInstalledPrograms YES
-#define InstUidFlags   -o root -m 4755
-
-/*
- * SET THESE PARAMETERS FIRST !!!
- */
-
-/*
- * HasLargeTmp - if your /tmp space is less than a 1meg, you should
- * probably set this to NO
- */
-#ifndef HasLargeTmp
-#define HasLargeTmp YES
-#endif
-
-/*****************************************************************************
- *                                                                           *
- *                            Build Parameters                              *
- *                                                                           *
- *****************************************************************************/
-
-/*
- * If you want to use GCC, set HasGcc in the appropriate .cf files.
- */
-#ifndef HasGcc
-#define HasGcc NO
-#endif
-
-#ifdef SunArchitecture
-#define        CcCmd cc -pipe
-#endif
-
-/*
- * If you want to use VPATH to do makefile building, set it here.
- */
-#undef Use_VPATH
-
-/* The -Z flag is a special loader flag at Athena to unmap page zero on
-   some architectures that normally allow p0 references, e.g. VAX BSD.
-
-   -T0x400000 has a similar effect on AIX 1.2
-
-   Symbolic debugging is difficult on RT and PS/2 when this option is used. */
-#if defined(AIXArchitecture) && OSMajorVersion == 1
-#define        ExtraLoadFlags -T0x400000
-#else
-#if !defined(UltrixArchitecture) && !defined(AIXArchitecture) && !defined(SunArchitecture) && !defined(LinuxArchitecture)
-#define ExtraLoadFlags -Z
-#endif
-#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... */
-/* If you have the Zephyr 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.
-
-   NOTE:  You must have Kerberos v4 in order to use Zephyr.
- */
-#define ZephyrDefines -DZEPHYR
-#define ZephyrLibs -lzephyr
-#endif
-
-#ifndef PS2Architecture
-/* define IsodeLib to be what you pass to the loader to find the ISODE
-   library.  This might want to be -lisode if you have it installed.
-   IsodeDir is put into the 'make' variable ISODE. */
-
-/* Work around bug in gld; it doesn't like the at-sign in @sys */
-
-#define IsodeDir /mit/isode/isode-7.0
-#define IsodeLib -L/mit/isode/isode-7.0/gld-bug-sys/lib -lisode
-#define IsodeIncls /mit/isode/isode-7.0/gld-bug-sys/include
-
-/*
- * #define ISODE 7 only if you are using ISODE 7.0 or later.
- */
-#define ISODE7
-
-/* Re-define PepsyCmd if pepsy isn't in your search path. */
-
-#define PepsyCmd IsodeDir/@sys/bin/pepsy
-#endif
-
-/* #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 */
-#define Krb4KDCCompat /* turn this on if you want the KDC to provide v4
-                        tickets from a v5 database */
-/* #define Krb4Includes <empty>        -- If you don't want to use our copy of the
-                                  Kerberos V4 include files, set this to
-                                  an empty name, by using the /**/
-/*                                trick */
-/* #define Krb4LibList -lquux  -- If -lkrb -ldes is NOT the right thing
-                                 to get V4 libraries, define it here
-                                 to something else */
-
-#define Krb4LibList /usr/athena/lib/libkrb.a $(KLIBLOC) -l$(DES425LIB)
-#define Krb4KdbList /usr/athena/lib/libkdb.a
-
-/* 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. */
-#define HasHashLibrary NO
-
-#if 0
-/* alternate library search paths, if needed for some system libraries */
-#define LdLibLocations -L/usr/athena/lib
-#endif
-
-/* additional include paths, if needed, such as those needed
-   to get special include files, like <ss/ss.h> or <com_err.h>,
-   or Kerberos V4 include files */
-#ifdef notdef
-#define        StandardIncludes -I/usr/athena/include
-#endif
-
-#if defined(AIXArchitecture) && OSMajorVersion == 3
-#define        StandardDefines -D_ALL_SOURCE
-/* For all its flaws, gmake has one advantage over AIX make: it supports
-   VPATH in the way the Kerberos config files want.   WARNING: if you combine
-   RCS and VPATH with gmake will will probably lose.  */
-#define MakeCmd gmake
-.SUFFIXES:
-.SUFFIXES: .et .c .h .o
-
-#undef LdLibLocations
-#define LdLibLocations -L/usr/athena/lib/shared -L/mit/krb5/rsaix/lib/shared
-#endif
-
-#define        AthenaEnv YES           /* Define this if you are in the
-                                  athena environment.
-                                  No one else should define this.  */
-
-/* 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(RtArchitecture)
-#if HasGcc
-#ifdef SourceTop
-#define        STDCTopIncludes -I$(SRCTOP)/include/stdc-incl
-#else
-#define        STDCTopIncludes -I$(TOP)/include/stdc-incl
-#endif
-#endif /* HasGcc */
-#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
deleted file mode 100644 (file)
index 7219e82..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/**/# site:  $XConsortium: site.def,v 1.21 89/12/06 11:46:50 jim Exp $
-
-/*****************************************************************************
- *                                                                           *
- *                        SITE-SPECIFIC DEFINITIONS                         *
- *                                                                           *
- * Override any of the defaults in *.tmpl here.                              *
- *                                                                           *
- *                                                                           *
- * Make sure you check the following parameters:                             *
- *                                                                           *
- *     1.  HasLargeTmp                                                       *
- *     2.  All the manpage locations & suffixes                              *
- *     3.  All the binary install locations                                  *
- *                                                                           *
- * Note on using DESTDIR:  If you want to install into a scratch directory   *
- * but will eventually move the tree back to the root, compile with DESTDIR  *
- * blank and install with "make install DESTDIR=directory".                  *
- *                                                                           *
- *****************************************************************************/
-
-
-/* General */
-#define InstKmemFlag   -g kmem -m 2755
-#define StripInstalledPrograms YES
-#define InstUidFlags   -o root -m 4755
-
-/*
- * SET THESE PARAMETERS FIRST !!!
- */
-
-/*
- * Krb5Root --- where the root of the Kerberos 5 tree should be
- */
-#define Krb5Root       /krb5
-
-/*
- * HasLargeTmp - if your /tmp space is less than a 1meg, you should
- * probably set this to NO
- */
-#ifndef HasLargeTmp
-#define HasLargeTmp YES
-#endif
-
-/*****************************************************************************
- *                                                                           *
- *                            Build Parameters                              *
- *                                                                           *
- *****************************************************************************/
-
-/*
- * If you want to use GCC, set HasGcc in the appropriate .cf files.
- */
-#ifndef HasGcc
-#define HasGcc NO
-#endif
-
-/*
- * If you want to use VPATH to do makefile building, set it here.
- */
-#undef Use_VPATH
-
-/* 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... */
-/* If you have the Zephyr 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.
-
-   NOTE:  You must have Kerberos v4 in order to use Zephyr.
- */
-#define ZephyrDefines -DZEPHYR
-#define ZephyrLibs -lzephyr
-#endif
-
-/* define IsodeLib to be what you pass to the loader to find the ISODE
-   library.  This might want to be -lisode if you have it installed.
-   IsodeDir is put into the 'make' variable ISODE. */
-
-#define IsodeDir /mit/isode/isode-7.0
-#define IsodeLib /mit/isode/isode-7.0/@sys/lib/libisode.a
-#define IsodeIncls /mit/isode/isode-7.0/@sys/include
-
-/*
- * #define ISODE 7 only if you are using ISODE 7.0 or later.
- */
-#define ISODE7
-
-/* Re-define PepsyCmd if pepsy isn't in your search path. */
-
-#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 Krb4ApplCompat /* turn this on if you want selected applications to
-                         work with both v4 & v5 code */
-/* #define Krb4KDCCompat /* turn this on if you want the KDC to provide v4
-                        tickets from a v5 database */
-/* #define Krb4Includes <empty>        -- If you don't want to use our copy of the
-                                  Kerberos V4 include files, set this to
-                                  an empty name, by using the /**/
-/*                                trick */
-/* #define Krb4LibList -lquux  -- If -lkrb -ldes is NOT the right thing
-                                 to get V4 libraries, define it here
-                                 to something else */
-
-/* #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 */
-
-/* 
- * 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.
- */
-#define HasHashLibrary NO
-
-/* alternate library search paths, if needed for some system libraries */
-/* #define LdLibLocations -L/usr/athena/lib */
-
-/* additional include paths, if needed, such as those needed
-   to get special include files, like Kerberos V4 include files */
-/* #define     StandardIncludes -I/usr/athena/include */
-
-#if defined(AIXArchitecture) && OSMajorVersion == 3
-#define        StandardDefines -D_ALL_SOURCE
-/* For all its flaws, gmake has one advantage over AIX make: it supports
-   VPATH in the way the Kerberos config files want.   WARNING: if you combine
-   RCS and VPATH with gmake will will probably lose.  */
-#define MakeCmd gmake
-.SUFFIXES:
-.SUFFIXES: .et .c .h .o
-
-#undef LdLibLocations
-#define LdLibLocations -L/usr/athena/lib/shared -L/mit/krb5/rsaix/lib/shared
-#endif
-
-#define        AthenaEnv NO            /* Define this if you are in the
-                                  athena environment.
-                                  No one else should define this.  */
-
-/* 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.
-   Project.tmpl defines BuildGssapi to be YES if HasGcc is YES. */
-
-/* #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
-/* 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/sun.cf b/src/config/sun.cf
deleted file mode 100644 (file)
index 4a714a3..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/*
- * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
- */
-/*
- * This file was used for a SPARC running SunOS 4.1 and SunOS 4.0.3.
- * It has not been tested under any other architecture,
- * but I would guess it should work for Sun 3's as well.
- * Older versions of SunOS will probably require some changes.
- */
-/*
- * Some random notes for the SUN build:
- *
- *     There are some warnings in the ss and comerr directories.
- *     They aren't too important, so ignore them for now.
- *
- */
-
-#define OSName                 SunOS 4.1
-#define OS_SunOS4              1
-#define OSMajorVersion         4
-#define OSMinorVersion         1
-#define OS_TelnetName           sun4.1 /* see appl/telnet/config.generic
-                                         to select the name for this */
-#define SystemV                        NO
-#define HasVoidSignalReturn    YES
-#define        HasPosixTermios         NO
-#define        HasPosixFileLocks       NO
-#define HasPosixTypes          YES
-#define        HasStringH              YES
-#define        HasStdlibH              YES
-#define        HasInet                 YES
-#define HasPutenv              YES
-#define HaveSetenv             YES
-#define HasBsearch             YES
-#define        HasGcc                  NO
-#define        UseSysTimeH             YES
-#define IsPOSIX                        NO
-#define        Bitsize32               YES
-
-#undef HasNdbm
-#define HasNdbm                        YES
-
-#define        ArCmd                   ar cru
-#define LintLibFlag            -o
-
-#define DesDefines             -DBIG -DMUSTALIGN -DMSBFIRST
-
-#define LnCmd /usr/5bin/ln -sf
-
-#define        UseSedHack
diff --git a/src/config/tahoebsd.cf b/src/config/tahoebsd.cf
deleted file mode 100644 (file)
index 90a3236..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/*
- * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
- *
- * Tahoe 4.4BSD config file
- * K. Fall
- */
-
-#define OSName            BSD 4.4
-#define        OS_BSD            1
-/* #define OS_BSD_TAHOE */
-/* #define OS_BSD_RENO */
-#define OSMajorVersion    4
-#define OSMinorVersion    4
-
-#define HasVoidSignalReturn YES
-#define HasPosixTermios YES
-#define HasPosixFileLocks YES
-#define HasPosixTypes YES
-#define HasStringH YES
-#define HasStdlibH YES
-#define HasInet YES
-#define Bitsize32
-#define        UnalignedReferencesAllowed NO
-#define HasSaberC NO
-#define DesDefines -DBIG -DMUSTALIGN -DMSBFIRST
-#define HasGcc NO
-#define HasPutenv YES
-#define HasNdbm YES
-#define HasBsearch YES
-#define SystemV NO
-#define HasDESLibrary YES
-#define CppCmd /usr/bin/cpp
-
-#define DefaultCDebugFlags OptimizedCDebugFlags
diff --git a/src/config/ultrix.cf b/src/config/ultrix.cf
deleted file mode 100644 (file)
index 7b20de7..0000000
+++ /dev/null
@@ -1,85 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/*
- * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
- */
-
-#define OSName            Ultrix-32 4.2
-#define OS_Ultrix         1
-#define OS_TelnetName     ultrix4.3 /* see appl/telnet/config.generic
-                                      to select the name for this */
-#define OSMajorVersion    4
-#define OSMinorVersion    2
-#define SystemV NO
-#define HasVoidSignalReturn YES
-#define HasPosixTermios YES
-#define HasPosixFileLocks YES
-#define HasPosixTypes YES
-#define HasStringH YES
-#define HasStdlibH 2
-#define HasInet YES
-#define HasPutenv YES
-#define HasBsearch YES
-#define        HasAnsiStdio    YES
-#define        HasUnistdH      YES
-#define IsPOSIX                YES
-#define        WantPrototypes  YES
-#define Bitsize32
-#define        HasVfprintf     YES
-#define        HasStrerror     YES
-#define HasMemmove     YES
-
-/* #define StandardCppDefines -DPOSIX -D_POSIX_SOURCE */
-/* Saber bug doesn't allow deref through const *'s */
-/* #define SaberDefines -DPOSIX -Dconst= */
-/* #define StandardDefines -YPOSIX -D_POSIX_SOURCE */
-/* makedepend won't understand -YPOSIX also implies -DPOSIX... */
-/* #define MakeDependFlags -DPOSIX */
-
-#define DefaultCDebugFlags DebuggableCDebugFlags
-
-/* #undef HasNdbm */
-#define HasNdbm YES
-
-#ifdef VaxArchitecture
-#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
-#define HasSaberC YES
-/*
-#undef HasGcc
-#define HasGcc YES
- */
-
-#define        UseVolatile YES
-#define        UseVoid YES
-#define        NoNestedPrototypes
-#define        UseStdarg YES
-
-#define        ArCmd ar cru
-#define LintLibFlag -o
-
-#ifdef MIPSEL
-#define DesDefines -DBIG -DMUSTALIGN -DLSBFIRST
-#else
-#ifdef MIPSEB
-#define DesDefines -DBIG -DMUSTALIGN -DMSBFIRST
-#else /* not MIPSEB */
- error: you must figure out what endian your MIPS is!
-#endif /* MIPSEB */
-#endif /* MIPSEL */
-#endif
-
-/**/# platform:  $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $
-/**/# operating system:  OSName
diff --git a/src/config/vaxbsd.cf b/src/config/vaxbsd.cf
deleted file mode 100644 (file)
index e0c048a..0000000
+++ /dev/null
@@ -1,75 +0,0 @@
-/**/# $Source$
-/**/# $Author$
-/**/# $Id$
-/**/#
-
-/*
- * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
- */
-
-#define OSName            4.3bsd
-#define        OS_BSD            1
-#define OS_TelnetName     4.3bsd /* see appl/telnet/Config.generic
-                                   to select the name for this */
-/* #define OS_BSD_TAHOE */
-/* #define OS_BSD_RENO */
-#define OSMajorVersion    4
-#define OSMinorVersion    3
-
-/* Saber bug doesn't allow deref through const *'s */
-#ifdef VaxArchitecture
-#define SaberDefines -I/mit/gnu/vaxlib/gcc-include -Dconst=
-#else
-#define SaberDefines -Dconst=
-#endif
-
-#define HasVoidSignalReturn NO
-#define HasPosixTermios NO
-#define HasPosixFileLocks NO
-#define HasPosixTypes NO
-#define HasStringH YES
-#define HasStdlibH NO
-#define HasInet YES
-#define        NeedNarrowPrototypes NO
-#define Bitsize32
-
-#define HasSaberC YES
-
-#ifdef VaxArchitecture
-#define UnalignedReferencesAllowed YES        /* if arbitrary deref is okay */
-#define DesDefines -DBIG -DLSBFIRST
-#undef HasGcc
-#ifdef notdef  /* Added by TYT, for use in doing VAX9000 cross compiles */
-#define HasGcc YES
-#define UltrixCrossCompile
-#endif /* notdef -- TYT */
-#endif
-
-#undef HasNdbm
-#define HasNdbm                YES
-
-#undef AwkCmd
-#define AwkCmd gawk
-
-#if HasGcc
-#define DependDefine '-DGCCINCPATH="/mit/gnu/vaxlib/gcc-include"'
-#define DependFlags -D__STDC__ -I/mit/gnu/vaxlib/gcc-include
-#ifndef CcCmd
-#ifdef UltrixCrossCompile
-#define CcCmd gcc -b vax-bsd -pedantic -fpcc-struct-return -Wall -Dunix -Dvax
-#else
-#define CcCmd gcc2 -pedantic -fpcc-struct-return -Wall -Dunix -Dvax
-#endif
-#define        OptimizedCDebugFlags -O3 
-#define DefaultCDebugFlags OptimizedCDebugFlags -g
-#endif
-#else
-/*
- * I want to see what's going on!
- */
-#define DefaultCDebugFlags -g
-#endif
-
-#ifndef DefaultCDebugFlags
-#define DefaultCDebugFlags OptimizedCDebugFlags
-#endif