This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h.SH
135 lines (112 loc) · 3.56 KB
/
config.h.SH
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
:
# $Id: config.h.SH,v 2.0 90/09/19 19:37:01 paul Rel $
#
# Creates config.h file for getty distribution
#
# $Log: config.h.SH,v $
# Revision 2.0 90/09/19 19:37:01 paul
# Initial 2.0 release
#
#
case $CONFIG in
'')
if test ! -f config.sh; then
ln ../config.sh . || \
ln ../../config.sh . || \
ln ../../../config.sh . || \
(echo "Can't find config.sh."; exit 1)
fi
. config.sh
;;
esac
case "$0" in
*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
esac
case "$d_phostname" in
$define) phostname='\"$phostname\"' ;;
$undef) phostname='' ;;
esac
echo "Extracting config.h (with variable substitutions)"
$spitshell >config.h <<!GROK!THIS!
/*
** config.h
**
** Getty configuration.
*/
/*
** Copyright 1989,1990 by Paul Sutcliffe Jr.
**
** Permission is hereby granted to copy, reproduce, redistribute,
** or otherwise use this software as long as: there is no monetary
** profit gained specifically from the use or reproduction or this
** software, it is not sold, rented, traded or otherwise marketed,
** and this copyright notice is included prominently in any copy
** made.
**
** The author make no claims as to the fitness or correctness of
** this software for any use whatsoever, and it is provided as is.
** Any use of this software is at the user's own risk.
*/
#include "tune.h" /* defs needed below */
/* These are set by config.sh.
* If you change them here, they will be reset
* the next time you run Configure.
*/
#$d_portable PORTABLE /* compile for more than one site */
#$d_getutent GETUTENT /* we have getutent() and friends */
#$d_strdup STRDUP /* we have strdup() */
#$d_putenv PUTENV /* we have putenv() */
#$d_ttytype TTYTYPE "$ttytype" /* file used to identify terminals */
#$define GETTYTAB "$gettytab" /* file used for speed/termio table */
#$define STDCHAR $stdchar /* signed or unsigned chars in stdio */
#$define UIDTYPE $uidtype /* storage type of UID's */
#$define GIDTYPE $gidtype /* storage type of GID's */
#$d_fcntl FCNTL /* include fcntl.h? */
#$d_ioctl IOCTL /* include sys/ioctl.h? */
#$i_pwd PWD /* include pwd.h? */
#$i_time I_TIME /* include time.h? */
#$i_systime I_SYSTIME /* include sys/time.h? */
#$d_systimekernel SYSTIMEKERNEL
#$d_varargs VARARGS /* include varargs.h? */
#$d_index index strchr /* use these instead */
#$d_index rindex strrchr
#$d_voidsig VOIDSIG /* you have 'void (*signal)()' */
#ifdef VOIDSIG /* define sig_t appropriately */
typedef void sig_t;
#else /* VOIDSIG */
typedef int sig_t;
#endif /* VOIDSIG */
#ifndef VOIDUSED
#$define VOIDUSED $defvoidused
#endif /* VOIDUSED */
#$define VOIDFLAGS $voidflags
#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
#$define void int /* is void to be avoided? */
#$define M_VOID /* Xenix strikes again */
#endif /* VOIDFLAGS & VOIDUSED */
#ifndef PORTABLE
#$define HOSTNAME "$hostname" /* compile node name in */
#else /* PORTABLE */
#$d_douname DOUNAME /* use uname() to get node name */
#$d_phostname PHOSTNAME $phostname /* get node name from this command */
#endif /* PORTABLE */
#ifndef UTMP_FILE
#$define UTMP_FILE "$utmp" /* name of the utmp file */
#endif /* UTMP_FILE */
#ifdef LOGUTMP
#ifndef WTMP_FILE
#$define WTMP_FILE "$wtmp" /* name of the wtmp file */
#endif /* WTMP_FILE */
#endif /* LOGUTMP */
#ifdef TRYMAIL
#$define MAILER "$mailer" /* mail agent */
#endif /* TRYMAIL */
#ifdef UUGETTY
#$d_asciipid ASCIIPID /* PID stored in ASCII in lock file */
#$define LOCK "$lock/LCK..%s" /* lock file name */
#$define UUCPID $uucpid /* uid of UUCP account */
#endif /* UUGETTY */
/* end of config.h */
!GROK!THIS!
chmod 644 config.h
$eunicefix config.h