home *** CD-ROM | disk | FTP | other *** search
- From: Raphael Manfredi <ram@acri.fr>
- Newsgroups: comp.sources.misc
- Subject: v43i009: dist-3.0 - Configure script generator and related tools, Patch27
- Date: 8 Jun 1994 14:39:09 -0500
- Organization: Advanced Computer Research Institute, Lyon, France
- Sender: kent@sparky.sterling.com
- Approved: kent@sparky.sterling.com
- Message-ID: <2t56ot$c9b@sparky.sterling.com>
- X-Md4-Signature: c8d19b40cd86f6c164092f07242482aa
-
- Submitted-by: Raphael Manfredi <ram@acri.fr>
- Posting-number: Volume 43, Issue 9
- Archive-name: dist-3.0/patch27
- Environment: UNIX, Perl, RCS
- Patch-To: dist-3.0: Volume 39, Issue 5-32
-
- [The latest patch for dist version 3.0 is #29.]
-
- System: dist version 3.0
- Patch #: 27
- Priority: HIGH
- Subject: added byacc to the trylist (ADO)
- Subject: lint lines reformatted (ADO)
- Subject: added new symbol HAS_SHMAT_PROTOTYPE (ADO)
- Subject: now uses new macro support for cleaner Strerror def
- Subject: modified to avoid spurious Whoa warnings (ADO)
- Subject: added lint hint
- Subject: new variable direntrytype for proper type setting (ADO)
- Subject: undone ADO's fix in previous patch since it was useless
- Subject: this unit now supersedes old i_stdarg.U and i_varargs.U
- Subject: fixed a typo (libpth -> glibpth)
- Subject: added byacc case (ADO)
- Subject: made conformant to its gidtype.U companion
- Subject: question now explicitely mentions getuid()
- Subject: added byacc as another alternative (ADO)
- Subject: now understands macro definitions in ?H: lines
- Date: Fri May 13 17:29:31 MET DST 1994
- From: Raphael Manfredi <ram@acri.fr>
-
- Description:
-
- Undone ADO's fix in previous patch for i_termio.U since it was
- useless. There is no need to tie up C symbols to the unit name.
- If the user does not uses a symbol, it does not make it to the
- config.h file, that's plain simple!
-
- The i_varhdr.U unit now supersedes old i_stdarg.U and i_varargs.U.
- Actually, those two old units should be removed after the patch
- has been applied.
-
- Fixed a typo (libpth -> glibpth) in libpth.U which actually
- prevented it to do anything useful on many platforms...
-
- Made uidtype.U conformant to its gidtype.U companion. The
- question now explicitely mentions getuid() for uid type
- determination.
-
- Metaconfig now understands macro definitions in ?H: lines.
- Actually, this macro support was added to enable a cleaner
- Strerror definition in d_strerror.U.
-
- Integrated new fixes from Andy Dougherty
- <doughera@lafcol.lafayette.edu>:
-
- Loc.U
- added byacc to trylist (right after bison). As a side-effect, I
- reformatted some of the lines which were now rather long.
-
- d_shmat.U
- Added new symbol HAS_SHMAT_PROTOTYPE. I'm not sure about this one.
- It seems to work, but I didn't find an analogous unit, so maybe
- there's a better solution.
- The problem is that some vendors include a prototype for shmat() in
- <sys/shm.h>, but others don't. To make it worse, some systems use
- shmat(int, char *, int), while others use shmat(int, void *, int),
- so a guess can get you into trouble. A good guess would be that if
- the vendor supplies a prototype, we don't need to.
- Thus, I'd use something like the following:
- #ifndef HAS_SHMAT_PROTOTYPE
- extern Shmat_t shmat _((int, Shmat_t, int));
- #endif
-
- d_vfork.U
- Running Configure -d twice produced a Whoa if vfork was found but
- then not used.
-
- i_dirent.U
- Added a check to see whether to use struct direct or struct dirent.
- I've had a report that NeXT has it backwards, and uses struct direct
- in <dirent.h> and struct dirent in <sys/dir.h>.
-
- i_memory.U
- Running Configure -d twice produced a Whoa if <memory.h> was found
- but then not used.
-
- i_varhdr.U
- Running Configure -d twice produced a Whoa if <stdarg.h> was found
- but not used. (I'm not sure why I didn't notice this before.)
- I suggest that i_stdarg.U and i_varargs.U be removed and that
- i_varhdr.U be patched by the enclosed patch. Essentially, it
- doesn't call $setvar until the final decision is made which header
- will be used.
-
- libpth.U
- Fixed typo for glibpth.
-
- libyacc.U
- Added byacc case.
-
- yacc.U
- Added byacc as another alternative.
-
- Thanks Andy!
-
-
- Fix: From rn, say "| patch -p -N -d DIR", where DIR is your dist source
- directory. Outside of rn, say "cd DIR; patch -p -N <thisarticle".
- If you don't have the patch program, apply the following by hand,
- or get patch (version 2.0, latest patchlevel).
-
- After patching:
- *** DO NOTHING--INSTALL ALL PATCHES UP THROUGH #28 FIRST ***
-
- If patch indicates that patchlevel is the wrong version, you may need
- to apply one or more previous patches, or the patch may already
- have been applied. See the patchlevel.h file to find out what has or
- has not been applied. In any event, don't continue with the patch.
-
- If you are missing previous patches they can be obtained from me:
-
- Raphael Manfredi <ram@acri.fr>
-
- If you send a mail message of the following form it will greatly speed
- processing:
-
- Subject: Command
- @SH mailpatch PATH dist 3.0 LIST
- ^ note the c
-
- where PATH is a return path FROM ME TO YOU either in Internet notation,
- or in bang notation from some well-known host, and LIST is the number
- of one or more patches you need, separated by spaces, commas, and/or
- hyphens. Saying 35- says everything from 35 to the end.
-
- To get some more detailed instructions, send me the following mail:
-
- Subject: Command
- @SH mailhelp PATH
-
-
- Index: patchlevel.h
- Prereq: 26
- 4c4
- < #define PATCHLEVEL 26
- ---
- > #define PATCHLEVEL 27
-
- Index: mcon/U/i_varhdr.U
- Prereq: 3.0
- *** mcon/U/i_varhdr.U.old Fri May 13 17:29:23 1994
- --- mcon/U/i_varhdr.U Fri May 13 17:29:23 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: i_varhdr.U,v 3.0 1993/08/18 12:08:49 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: i_varhdr.U,v 3.0.1.1 1994/05/13 15:26:05 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,25 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_varhdr.U,v $
- ?RCS: Revision 3.0 1993/08/18 12:08:49 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:i_varhdr: cat +cc +ccflags rm i_stdarg i_varargs
- ?MAKE: -pick add $@ %<
- ?S:i_varhdr:
- ?S: Contains the name of the header to be included to get va_dcl definition.
- ?S: Typically one of varargs.h or stdarg.h.
- ?S:.
- ?W:%<:va_dcl
- ! ?LINT:change i_stdarg i_varargs
- : set up the varargs testing programs
- $cat > varargs.c <<EOP
- #ifdef I_STDARG
- --- 9,79 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_varhdr.U,v $
- + ?RCS: Revision 3.0.1.1 1994/05/13 15:26:05 ram
- + ?RCS: patch27: this unit now supersedes old i_stdarg.U and i_varargs.U
- + ?RCS: patch27: modified to avoid spurious Whoa warnings (ADO)
- + ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:08:49 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:i_stdarg i_varargs i_varhdr: cat +cc +ccflags rm test Setvar Findhdr
- ?MAKE: -pick add $@ %<
- + ?S:i_stdarg:
- + ?S: This variable conditionally defines the I_STDARG symbol, which
- + ?S: indicates to the C program that <stdarg.h> exists and should
- + ?S: be included.
- + ?S:.
- + ?S:i_varargs:
- + ?S: This variable conditionally defines I_VARARGS, which indicates
- + ?S: to the C program that it should include <varargs.h>.
- + ?S:.
- ?S:i_varhdr:
- ?S: Contains the name of the header to be included to get va_dcl definition.
- ?S: Typically one of varargs.h or stdarg.h.
- ?S:.
- + ?C:I_STDARG:
- + ?C: This symbol, if defined, indicates that <stdarg.h> exists and should
- + ?C: be included.
- + ?C:.
- + ?C:I_VARARGS:
- + ?C: This symbol, if defined, indicates to the C program that it should
- + ?C: include <varargs.h>.
- + ?C:.
- + ?H:#$i_stdarg I_STDARG /**/
- + ?H:#$i_varargs I_VARARGS /**/
- + ?H:.
- ?W:%<:va_dcl
- ! ?T:valstd
- ! ?LINT:set i_stdarg i_varargs
- ! ?X:
- ! ?X: Don't use setvar because the varags test below might override these.
- ! ?X: Actually, the messages here are just informative. We don't wish to set
- ! ?X: i_varargs or i_stdarg to their final value before knowing which of the
- ! ?X: two we'll include.
- ! ?X:
- ! : see if stdarg is available
- ! echo " "
- ! if $test `./findhdr stdarg.h`; then
- ! echo "<stdarg.h> found." >&4
- ! valstd="$define"
- ! else
- ! echo "<stdarg.h> NOT found." >&4
- ! valstd="$undef"
- ! fi
- !
- ! : see if varags is available
- ! echo " "
- ! if $test `./findhdr varargs.h`; then
- ! echo "<varargs.h> found." >&4
- ! else
- ! echo "<varargs.h> NOT found, but that's ok (I hope)." >&4
- ! fi
- !
- ! ?X:
- ! ?X: if you have stdarg.h, you need to support prototypes to actually use it;
- ! ?X: but if stdarg.h exists and the compiler doesn't support prototypes (for some
- ! ?X: bizarre reason), we'll fall back to varargs.h anyway so it's not so bad.
- ! ?X:
- : set up the varargs testing programs
- $cat > varargs.c <<EOP
- #ifdef I_STDARG
- ***************
- *** 29,37 ****
- #include <varargs.h>
- #endif
-
- - ?X: if you have stdarg.h, you need to support prototypes to actually use it;
- - ?X: but if stdarg.h exists and the compiler doesn't support prototypes (for some
- - ?X: bizarre reason), we'll fall back to varargs.h anyway so it's not so bad.
- #ifdef I_STDARG
- int f(char *p, ...)
- #else
- --- 83,88 ----
- ***************
- *** 65,91 ****
- : now check which varargs header should be included
- echo " "
- i_varhdr=''
- ! case "$i_stdarg" in
- "$define")
- if `./varargs I_STDARG`; then
- ! i_varhdr='stdarg.h'
- ! i_varargs="$undef"
- elif `./varargs I_VARARGS`; then
- ! i_varhdr='varargs.h'
- ! i_stdarg="$undef"
- fi
- ;;
- *)
- if `./varargs I_VARARGS`; then
- ! i_varhdr='varargs.h'
- fi
- ;;
- esac
- ! case "$i_varhdr" in
- '')
- echo "I could not find the definition for va_dcl... You have problems..." >&4
- ;;
- ! *) echo "We'll include <$i_varhdr> to get va_dcl definition." >&4;;
- esac
- $rm -f varargs*
-
- --- 116,155 ----
- : now check which varargs header should be included
- echo " "
- i_varhdr=''
- ! case "$valstd" in
- "$define")
- if `./varargs I_STDARG`; then
- ! val='stdarg.h'
- elif `./varargs I_VARARGS`; then
- ! val='varargs.h'
- fi
- ;;
- *)
- if `./varargs I_VARARGS`; then
- ! val='varargs.h'
- fi
- ;;
- esac
- ! case "$val" in
- '')
- echo "I could not find the definition for va_dcl... You have problems..." >&4
- + val="$undef"; set i_stdarg; eval $setvar
- + val="$undef"; set i_varargs; eval $setvar
- ;;
- ! *)
- ! set i_varhdr
- ! eval $setvar
- ! case "$i_varhdr" in
- ! stdarg.h)
- ! val="$define"; set i_stdarg; eval $setvar
- ! val="$undef"; set i_varargs; eval $setvar
- ! ;;
- ! varargs.h)
- ! val="$undef"; set i_stdarg; eval $setvar
- ! val="$define"; set i_varargs; eval $setvar
- ! ;;
- ! esac
- ! echo "We'll include <$i_varhdr> to get va_dcl definition." >&4;;
- esac
- $rm -f varargs*
-
-
- Index: mcon/U/d_strerror.U
- Prereq: 3.0.1.2
- *** mcon/U/d_strerror.U.old Fri May 13 17:29:19 1994
- --- mcon/U/d_strerror.U Fri May 13 17:29:19 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: d_strerror.U,v 3.0.1.2 1994/05/06 14:58:26 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: d_strerror.U,v 3.0.1.3 1994/05/13 15:20:27 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: d_strerror.U,v $
- + ?RCS: Revision 3.0.1.3 1994/05/13 15:20:27 ram
- + ?RCS: patch27: now uses new macro support for cleaner Strerror def
- + ?RCS:
- ?RCS: Revision 3.0.1.2 1994/05/06 14:58:26 ram
- ?RCS: patch23: renamed strerror into Strerror to protect name space (ADO)
- ?RCS:
- ***************
- *** 34,41 ****
- ?S: is available to translate error numbers to the symbolic name.
- ?S:.
- ?S:d_strerrm:
- ! ?S: This variable conditionally defines strerrr as a macro if the
- ! ?S: sys_errlist[] array is defined.
- ?S:.
- ?C:HAS_STRERROR (STRERROR):
- ?C: This symbol, if defined, indicates that the strerror routine is
- --- 37,46 ----
- ?S: is available to translate error numbers to the symbolic name.
- ?S:.
- ?S:d_strerrm:
- ! ?S: This variable holds what Strerrr is defined as to translate an error
- ! ?S: code condition into an error message string. It could be 'strerror'
- ! ?S: or a more complex macro emulating strrror with sys_errlist[], or the
- ! ?S: "unknown" string when both strerror and sys_errlist are missing.
- ?S:.
- ?C:HAS_STRERROR (STRERROR):
- ?C: This symbol, if defined, indicates that the strerror routine is
- ***************
- *** 60,70 ****
- ?H:#$d_strerror HAS_STRERROR /**/
- ?H:#$d_syserrlst HAS_SYS_ERRLIST /**/
- ?H:#$d_sysernlst HAS_SYS_ERRNOLIST /**/
- ! ?H:?%<:#ifdef HAS_STRERROR
- ! ?H:?%<:#define Strerror strerror
- ! ?H:?%<:#else
- ! ?H:#$d_strerrm Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/
- ! ?H:?%<:#endif
- ?H:.
- ?D:d_sysernlst=''
- ?T:xxx val
- --- 65,71 ----
- ?H:#$d_strerror HAS_STRERROR /**/
- ?H:#$d_syserrlst HAS_SYS_ERRLIST /**/
- ?H:#$d_sysernlst HAS_SYS_ERRNOLIST /**/
- ! ?H:#define Strerror(e) $d_strerrm
- ?H:.
- ?D:d_sysernlst=''
- ?T:xxx val
- ***************
- *** 73,79 ****
- if set strerror val -f d_strerror; eval $csym; $val; then
- echo 'strerror() found.' >&4
- d_strerror="$define"
- ! d_strerrm="$undef"
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(You also have sys_errlist[], so we could roll our own strerror.)"
- d_syserrlst="$define"
- --- 74,80 ----
- if set strerror val -f d_strerror; eval $csym; $val; then
- echo 'strerror() found.' >&4
- d_strerror="$define"
- ! d_strerrm='strerror(e)'
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(You also have sys_errlist[], so we could roll our own strerror.)"
- d_syserrlst="$define"
- ***************
- *** 85,91 ****
- $contains '#[ ]*define.*strerror' "$xxx" >/dev/null 2>&1; then
- echo 'strerror() found in string header.' >&4
- d_strerror="$define"
- ! d_strerrm="$undef"
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(Most probably, strerror() uses sys_errlist[] for descriptions.)"
- d_syserrlst="$define"
- --- 86,92 ----
- $contains '#[ ]*define.*strerror' "$xxx" >/dev/null 2>&1; then
- echo 'strerror() found in string header.' >&4
- d_strerror="$define"
- ! d_strerrm='strerror(e)'
- if set sys_errlist val -a d_syserrlst; eval $csym; $val; then
- echo "(Most probably, strerror() uses sys_errlist[] for descriptions.)"
- d_syserrlst="$define"
- ***************
- *** 97,108 ****
- echo "strerror() not found, but you have sys_errlist[] so we'll use that." >&4
- d_strerror="$undef"
- d_syserrlst="$define"
- ! d_strerrm="$define"
- else
- echo 'strerror() and sys_errlist[] NOT found.' >&4
- d_strerror="$undef"
- d_syserrlst="$undef"
- ! d_strerrm="$undef"
- fi
- @if d_sysernlst || HAS_SYS_ERRNOLIST
- if set sys_errnolist val -a d_sysernlst; eval $csym; $val; then
- --- 98,109 ----
- echo "strerror() not found, but you have sys_errlist[] so we'll use that." >&4
- d_strerror="$undef"
- d_syserrlst="$define"
- ! d_strerrm='((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e])'
- else
- echo 'strerror() and sys_errlist[] NOT found.' >&4
- d_strerror="$undef"
- d_syserrlst="$undef"
- ! d_strerrm='"unknown"'
- fi
- @if d_sysernlst || HAS_SYS_ERRNOLIST
- if set sys_errnolist val -a d_sysernlst; eval $csym; $val; then
-
- Index: mcon/U/Loc.U
- Prereq: 3.0.1.3
- *** mcon/U/Loc.U.old Fri May 13 17:29:17 1994
- --- mcon/U/Loc.U Fri May 13 17:29:17 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: Loc.U,v 3.0.1.3 1994/01/24 14:01:44 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: Loc.U,v 3.0.1.4 1994/05/13 15:18:15 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,18 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: Loc.U,v $
- + ?RCS: Revision 3.0.1.4 1994/05/13 15:18:15 ram
- + ?RCS: patch27: added byacc to the trylist (ADO)
- + ?RCS: patch27: lint lines reformatted (ADO)
- + ?RCS:
- ?RCS: Revision 3.0.1.3 1994/01/24 14:01:44 ram
- ?RCS: patch16: added metalint hint on changed PATH variable
- ?RCS:
- ***************
- *** 35,51 ****
- ?X: I put startsh at the end of the dependency list, in order to avoid the
- ?X: loading of the spitshell unit before the instructions.
- ?X:
- ! ?MAKE:Loc Mcc awk bash bison cat chgrp chmod chown compress cp cpio cpp csh \
- ! date echo egrep emacs expr flex gcc grep inews ksh less line lint ln lp \
- ! lpr ls mail mailx make mkdir more mv nroff perl pg pmake pr rm rmail sed \
- ! sendmail sh shar sleep smail sort submit tail tar tbl test touch tr \
- ! troff uname uniq uuname vi zcat: eunicefix n c Instruct Myread startsh
- ?MAKE: -pick weed $@ %<
- ! ?LINT:describe Loc Mcc awk bash bison cat chgrp chmod chown compress cp cpio \
- ! cpp csh date echo egrep emacs expr flex gcc grep inews ksh less line lint \
- ! ln lp lpr ls mail mailx make mkdir more mv nroff perl pg pmake pr rm \
- ! rmail sed sendmail sh shar sleep smail sort submit tail tar tbl test \
- ! touch tr troff uname uniq uuname vi zcat
- ?V::pth loclist trylist
- ?T:thing xxx dir file say _test
- ?LINT:change PATH
- --- 39,58 ----
- ?X: I put startsh at the end of the dependency list, in order to avoid the
- ?X: loading of the spitshell unit before the instructions.
- ?X:
- ! ?MAKE:Loc Mcc awk bash bison byacc cat chgrp chmod chown \
- ! compress cp cpio cpp csh date echo egrep emacs expr flex gcc \
- ! grep inews ksh less line lint ln lp lpr ls mail mailx make \
- ! mkdir more mv nroff perl pg pmake pr rm rmail sed sendmail sh \
- ! shar sleep smail sort submit tail tar tbl test touch tr troff \
- ! uname uniq uuname vi zcat: eunicefix n c Instruct Myread \
- ! startsh
- ?MAKE: -pick weed $@ %<
- ! ?LINT:describe Loc Mcc awk bash bison byacc cat chgrp chmod chown \
- ! compress cp cpio cpp csh date echo egrep emacs expr flex gcc \
- ! grep inews ksh less line lint ln lp lpr ls mail mailx make \
- ! mkdir more mv nroff perl pg pmake pr rm rmail sed sendmail sh \
- ! shar sleep smail sort submit tail tar tbl test touch tr troff \
- ! uname uniq uuname vi zcat
- ?V::pth loclist trylist
- ?T:thing xxx dir file say _test
- ?LINT:change PATH
- ***************
- *** 114,119 ****
- --- 121,127 ----
- ?Mcc:Mcc
- ?bash:bash
- ?bison:bison
- + ?byacc:byacc
- ?compress:compress
- ?cpio:cpio
- ?cpp:cpp
- ***************
- *** 153,163 ****
- ?vi:vi
- ?zcat:zcat
- "
- ! ?LINT:set Loc Mcc awk bash bison cat chgrp chmod chown compress cp cpio cpp \
- ! csh date echo egrep emacs expr flex gcc grep inews ksh less line lint ln \
- ! lp lpr ls mail mailx make mkdir more mv nroff perl pg pmake pr rm rmail \
- ! sed sendmail sh shar sleep smail sort submit tail tar tbl test touch tr \
- ! troff uname uniq uuname vi zcat
- pth=`echo $PATH | sed -e 's/:/ /g'`
- pth="$pth /lib /usr/lib"
- for file in $loclist; do
- --- 161,172 ----
- ?vi:vi
- ?zcat:zcat
- "
- ! ?LINT:set Loc Mcc awk bash bison byacc cat chgrp chmod chown \
- ! compress cp cpio cpp csh date echo egrep emacs expr flex gcc \
- ! grep inews ksh less line lint ln lp lpr ls mail mailx make \
- ! mkdir more mv nroff perl pg pmake pr rm rmail sed sendmail sh \
- ! shar sleep smail sort submit tail tar tbl test touch tr troff \
- ! uname uniq uuname vi zcat
- pth=`echo $PATH | sed -e 's/:/ /g'`
- pth="$pth /lib /usr/lib"
- for file in $loclist; do
-
- Index: mcon/U/i_dirent.U
- Prereq: 3.0.1.1
- *** mcon/U/i_dirent.U.old Fri May 13 17:29:21 1994
- --- mcon/U/i_dirent.U Fri May 13 17:29:21 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: i_dirent.U,v 3.0.1.1 1994/01/24 14:11:15 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: i_dirent.U,v 3.0.1.2 1994/05/13 15:22:37 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_dirent.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:22:37 ram
- + ?RCS: patch27: new variable direntrytype for proper type setting (ADO)
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/01/24 14:11:15 ram
- ?RCS: patch16: added new Direntry_t pseudo-type for directory entries
- ?RCS:
- ***************
- *** 16,24 ****
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ?X:
- ! ?X: This unit looks wether there is a dirent system or not
- ?X:
- ! ?MAKE:i_dirent d_dirnamlen: test contains Setvar Findhdr
- ?MAKE: -pick add $@ %<
- ?S:i_dirent:
- ?S: This variable conditionally defines I_DIRENT, which indicates
- --- 19,28 ----
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ?X:
- ! ?X: This unit looks whether there is a dirent system or not
- ?X:
- ! ?MAKE:i_dirent d_dirnamlen direntrytype: test contains Setvar \
- ! Findhdr cppstdin cppflags cppminus rm
- ?MAKE: -pick add $@ %<
- ?S:i_dirent:
- ?S: This variable conditionally defines I_DIRENT, which indicates
- ***************
- *** 29,34 ****
- --- 33,43 ----
- ?S: to the C program that the length of directory entry names is
- ?S: provided by a d_namelen field.
- ?S:.
- + ?S:direntrytype:
- + ?S: This symbol is set to 'struct direct' or 'struct dirent' depending on
- + ?S: whether dirent is available or not. You should use this pseudo type to
- + ?S: portably declare your directory entries.
- + ?S:.
- ?C:I_DIRENT:
- ?C: This symbol, if defined, indicates to the C program that it should
- ?C: include <dirent.h>. Using this symbol also triggers the definition
- ***************
- *** 47,62 ****
- ?C:.
- ?H:#$i_dirent I_DIRENT /**/
- ?H:#$d_dirnamlen DIRNAMLEN /**/
- ! ?H:?%<:@if I_DIRENT
- ! ?H:?%<:#ifdef I_DIRENT
- ! ?H:?%<:#define Direntry_t struct dirent
- ! ?H:?%<:#else
- ! ?H:?%<:#define Direntry_t struct direct
- ! ?H:?%<:#endif
- ?H:?%<:@end
- ?H:.
- ?T:xinc
- ! ?LINT:set i_dirent d_dirnamlen
- : see if this is a dirent system
- echo " "
- if xinc=`./findhdr dirent.h`; $test "$xinc"; then
- --- 56,67 ----
- ?C:.
- ?H:#$i_dirent I_DIRENT /**/
- ?H:#$d_dirnamlen DIRNAMLEN /**/
- ! ?H:?%<:@if I_DIRENT && Direntry_t
- ! ?H:?%<:#define Direntry_t $direntrytype
- ?H:?%<:@end
- ?H:.
- ?T:xinc
- ! ?LINT:set i_dirent d_dirnamlen direntrytype
- : see if this is a dirent system
- echo " "
- if xinc=`./findhdr dirent.h`; $test "$xinc"; then
- ***************
- *** 75,80 ****
- --- 80,112 ----
- set i_dirent
- eval $setvar
-
- + ?X: Use struct dirent or struct direct? If we're using dirent.h,
- + ?X: it's probably struct dirent, but apparently not always.
- + ?X: Assume $xinc still contains the name of the header file we're using.
- + @if direntrytype || Direntry_t
- + : Look for type of directory structure.
- + echo " "
- + $cppstdin $cppflags $cppminus < "$xinc" > try.c
- + case "$i_dirent" in
- + $define)
- + if $contains 'struct dirent' try.c >/dev/null 2>&1; then
- + direntrytype='struct dirent'
- + else
- + direntrytype='struct direct'
- + fi
- + ;;
- + *)
- + if $contains 'struct direct' try.c >/dev/null 2>&1; then
- + direntrytype='struct direct'
- + else
- + direntrytype='struct dirent'
- + fi
- + ;;
- + esac
- + $rm -f try.c
- + echo "Your directory entries are of type $direntrytype." >&4
- +
- + @end
- @if d_dirnamlen || DIRNAMLEN
- : see if the directory entry stores field length
- echo " "
-
- Index: mcon/U/d_shmat.U
- Prereq: 3.0.1.1
- *** mcon/U/d_shmat.U.old Fri May 13 17:29:18 1994
- --- mcon/U/d_shmat.U Fri May 13 17:29:19 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: d_shmat.U,v 3.0.1.1 1994/05/06 14:54:18 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: d_shmat.U,v 3.0.1.2 1994/05/13 15:18:56 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,21 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: d_shmat.U,v $
- ?RCS: Revision 3.0.1.1 1994/05/06 14:54:18 ram
- ?RCS: patch23: new Shmat_t symbol to declare return type of shmat()
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:07:18 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:d_shmat shmattype: Inlibc cat +cc +ccflags rm
- ?MAKE: -pick add $@ %<
- ?S:d_shmat:
- ?S: This variable conditionally defines the HAS_SHMAT symbol, which
- --- 9,25 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: d_shmat.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:18:56 ram
- + ?RCS: patch27: added new symbol HAS_SHMAT_PROTOTYPE (ADO)
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/05/06 14:54:18 ram
- ?RCS: patch23: new Shmat_t symbol to declare return type of shmat()
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:07:18 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:d_shmat shmattype d_shmatprototype: Inlibc cat +cc +ccflags \
- ! rm cppstdin cppflags cppminus usrinc Setvar contains
- ?MAKE: -pick add $@ %<
- ?S:d_shmat:
- ?S: This variable conditionally defines the HAS_SHMAT symbol, which
- ***************
- *** 25,30 ****
- --- 29,39 ----
- ?S: This symbol contains the type of pointer returned by shmat().
- ?S: It can be 'void *' or 'char *'.
- ?S:.
- + ?S:d_shmatprototype:
- + ?S: This variable conditionally defines the HAS_SHMAT_PROTOTYPE
- + ?S: symbol, which indicates that sys/shm.h has a prototype for
- + ?S: shmat.
- + ?S:.
- ?C:HAS_SHMAT:
- ?C: This symbol, if defined, indicates that the shmat() routine is
- ?C: available to attach a shared memory segment to the process space.
- ***************
- *** 33,42 ****
- ?C: This symbol holds the return type of the shmat() system call.
- ?C: Usually set to 'void *' or 'char *'.
- ?C:.
- ?H:#$d_shmat HAS_SHMAT /**/
- ?H:#define Shmat_t $shmattype /**/
- ?H:.
- ! ?LINT:set d_shmat
- : see if shmat exists
- set shmat d_shmat
- eval $inlibc
- --- 42,59 ----
- ?C: This symbol holds the return type of the shmat() system call.
- ?C: Usually set to 'void *' or 'char *'.
- ?C:.
- + ?C:HAS_SHMAT_PROTOTYPE:
- + ?C: This symbol, if defined, indicates that the sys/shm.h includes
- + ?C: a prototype for shmat(). Otherwise, it is up to the program to
- + ?C: guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
- + ?C: but not always right so it should be emitted by the program only
- + ?C: when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
- + ?C:.
- ?H:#$d_shmat HAS_SHMAT /**/
- ?H:#define Shmat_t $shmattype /**/
- + ?H:#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
- ?H:.
- ! ?LINT:set d_shmat d_shmatprototype
- : see if shmat exists
- set shmat d_shmat
- eval $inlibc
- ***************
- *** 52,59 ****
- else
- shmattype='char *'
- fi
- - $rm -f shmat.[co]
- echo "and it returns ($shmattype)." >&4
- ! ;;
- esac
-
- --- 69,88 ----
- else
- shmattype='char *'
- fi
- echo "and it returns ($shmattype)." >&4
- ! : see if a prototype for shmat is available
- ! $cppstdin $cppflags $cppminus < $usrinc/sys/shm.h > shmat.c 2>/dev/null
- ! if $contains 'shmat.*(' shmat.c >/dev/null 2>&1; then
- ! val="$define"
- ! else
- ! val="$undef"
- ! fi
- ! $rm -f shmat.[co]
- ! ;;
- ! *)
- ! val="$undef"
- ! ;;
- esac
- + set d_shmatprototype
- + eval $setvar
-
-
- Index: mcon/U/i_termio.U
- Prereq: 3.0.1.1
- *** mcon/U/i_termio.U.old Fri May 13 17:29:22 1994
- --- mcon/U/i_termio.U Fri May 13 17:29:22 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: i_termio.U,v 3.0.1.1 1994/05/06 15:05:23 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: i_termio.U,v 3.0.1.2 1994/05/13 15:25:03 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,28 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_termio.U,v $
- ?RCS: Revision 3.0.1.1 1994/05/06 15:05:23 ram
- ?RCS: patch23: now include all three defines in config.h (ADO)
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:08:44 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- - ?X:
- - ?X: Include all three (possible) definitions in config_h.SH.
- - ?X: There are enough implementations of posix <termios.h> out
- - ?X: there that do not work well with other system headers or are
- - ?X: incomplete. This makes it easier for the user to back off
- - ?X: and try <sgtty.h> or <termio.h> instead. This is achieved by
- - ?X: tying all three symbols to %<.
- - ?X:
- ?MAKE:i_termio i_sgtty i_termios: test Inlibc Cppsym Guess Setvar Findhdr
- ?MAKE: -pick add $@ %<
- ?S:i_termio:
- --- 9,23 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_termio.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:25:03 ram
- + ?RCS: patch27: undone ADO's fix in previous patch since it was useless
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/05/06 15:05:23 ram
- ?RCS: patch23: now include all three defines in config.h (ADO)
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:08:44 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ?MAKE:i_termio i_sgtty i_termios: test Inlibc Cppsym Guess Setvar Findhdr
- ?MAKE: -pick add $@ %<
- ?S:i_termio:
- ***************
- *** 40,57 ****
- ?S: indicates to the C program that it should include <sgtty.h> rather
- ?S: than <termio.h>.
- ?S:.
- ! ?C:I_TERMIO ~ %<:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: <termio.h> rather than <sgtty.h>. There are also differences in
- ?C: the ioctl() calls that depend on the value of this symbol.
- ?C:.
- ! ?C:I_TERMIOS ~ %<:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: the POSIX termios.h rather than sgtty.h or termio.h.
- ?C: There are also differences in the ioctl() calls that depend on the
- ?C: value of this symbol.
- ?C:.
- ! ?C:I_SGTTY ~ %<:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: <sgtty.h> rather than <termio.h>. There are also differences in
- ?C: the ioctl() calls that depend on the value of this symbol.
- --- 35,52 ----
- ?S: indicates to the C program that it should include <sgtty.h> rather
- ?S: than <termio.h>.
- ?S:.
- ! ?C:I_TERMIO:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: <termio.h> rather than <sgtty.h>. There are also differences in
- ?C: the ioctl() calls that depend on the value of this symbol.
- ?C:.
- ! ?C:I_TERMIOS:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: the POSIX termios.h rather than sgtty.h or termio.h.
- ?C: There are also differences in the ioctl() calls that depend on the
- ?C: value of this symbol.
- ?C:.
- ! ?C:I_SGTTY:
- ?C: This symbol, if defined, indicates that the program should include
- ?C: <sgtty.h> rather than <termio.h>. There are also differences in
- ?C: the ioctl() calls that depend on the value of this symbol.
-
- Index: mcon/U/i_memory.U
- Prereq: 3.0.1.1
- *** mcon/U/i_memory.U.old Fri May 13 17:29:21 1994
- --- mcon/U/i_memory.U Fri May 13 17:29:21 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: i_memory.U,v 3.0.1.1 1994/05/06 15:02:25 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: i_memory.U,v 3.0.1.2 1994/05/13 15:23:56 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,21 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_memory.U,v $
- ?RCS: Revision 3.0.1.1 1994/05/06 15:02:25 ram
- ?RCS: patch23: avoid conflicts with <string.h>
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:08:22 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:i_memory: Inhdr strings cppstdin cppflags cppminus contains rm
- ?MAKE: -pick add $@ %<
- ?S:i_memory:
- ?S: This variable conditionally defines the I_MEMORY symbol, and indicates
- --- 9,24 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: i_memory.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:23:56 ram
- + ?RCS: patch27: modified to avoid spurious Whoa warnings (ADO)
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/05/06 15:02:25 ram
- ?RCS: patch23: avoid conflicts with <string.h>
- ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:08:22 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:i_memory: Inhdr strings cppstdin cppflags cppminus contains rm Setvar
- ?MAKE: -pick add $@ %<
- ?S:i_memory:
- ?S: This variable conditionally defines the I_MEMORY symbol, and indicates
- ***************
- *** 34,43 ****
- ?X: <string.h> contains memcpy, then we don't need memory.h
- ?X:
- : see if memory.h is available.
- ! set memory.h i_memory
- eval $inhdr
- : See if it conflicts with string.h
- ! case "$i_memory" in
- $define)
- case "$strings" in
- '') ;;
- --- 37,48 ----
- ?X: <string.h> contains memcpy, then we don't need memory.h
- ?X:
- : see if memory.h is available.
- ! val=''
- ! set memory.h val
- eval $inhdr
- +
- : See if it conflicts with string.h
- ! case "$val" in
- $define)
- case "$strings" in
- '') ;;
- ***************
- *** 45,54 ****
- $cppstdin $cppflags $cppminus < $strings > mem.h
- if $contains 'memcpy' mem.h >/dev/null 2>&1; then
- echo "We won't be including <memory.h>."
- ! i_memory="$undef"
- fi
- $rm -f mem.h
- ;;
- esac
- esac
-
- --- 50,62 ----
- $cppstdin $cppflags $cppminus < $strings > mem.h
- if $contains 'memcpy' mem.h >/dev/null 2>&1; then
- echo "We won't be including <memory.h>."
- ! val="$undef"
- fi
- $rm -f mem.h
- ;;
- esac
- esac
- +
- + set i_memory
- + eval $setvar
-
-
- Index: mcon/U/d_vfork.U
- Prereq: 3.0.1.3
- *** mcon/U/d_vfork.U.old Fri May 13 17:29:20 1994
- --- mcon/U/d_vfork.U Fri May 13 17:29:20 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: d_vfork.U,v 3.0.1.3 1994/05/06 14:59:09 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: d_vfork.U,v 3.0.1.4 1994/05/13 15:20:56 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: d_vfork.U,v $
- + ?RCS: Revision 3.0.1.4 1994/05/13 15:20:56 ram
- + ?RCS: patch27: modified to avoid spurious Whoa warnings (ADO)
- + ?RCS:
- ?RCS: Revision 3.0.1.3 1994/05/06 14:59:09 ram
- ?RCS: patch23: now explicitely ask whether vfork() should be used (ADO)
- ?RCS:
- ***************
- *** 22,28 ****
- ?RCS: Revision 3.0 1993/08/18 12:07:55 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:d_vfork usevfork: Inlibc Myread Oldconfig
- ?MAKE: -pick add $@ %<
- ?S:d_vfork:
- ?S: This variable conditionally defines the HAS_VFORK symbol, which
- --- 25,31 ----
- ?RCS: Revision 3.0 1993/08/18 12:07:55 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:d_vfork usevfork: Inlibc Myread Oldconfig Setvar
- ?MAKE: -pick add $@ %<
- ?S:d_vfork:
- ?S: This variable conditionally defines the HAS_VFORK symbol, which
- ***************
- *** 54,65 ****
- fi
- ?X:==========================
- : see if there is a vfork
- ! set vfork d_vfork
- eval $inlibc
-
- : Ok, but do we want to use it. vfork is reportedly unreliable in
- : perl on Solaris 2.x, and probably elsewhere.
- ! case "$d_vfork" in
- $define)
- echo " "
- case "$usevfork" in
- --- 57,69 ----
- fi
- ?X:==========================
- : see if there is a vfork
- ! val=''
- ! set vfork val
- eval $inlibc
-
- : Ok, but do we want to use it. vfork is reportedly unreliable in
- : perl on Solaris 2.x, and probably elsewhere.
- ! case "$val" in
- $define)
- echo " "
- case "$usevfork" in
- ***************
- *** 72,78 ****
- y|Y) usevfork='true';;
- *)
- echo "Ok, we won't use vfork()."
- ! d_vfork="$undef"
- usevfork='false'
- ;;
- esac
- --- 76,82 ----
- y|Y) usevfork='true';;
- *)
- echo "Ok, we won't use vfork()."
- ! val="$undef"
- usevfork='false'
- ;;
- esac
- ***************
- *** 81,84 ****
- --- 85,92 ----
- usevfork='false'
- ;;
- esac
- +
- + ?X: Only set it when final value is known to avoid spurious Whoas
- + set d_vfork
- + eval $setvar
-
-
- Index: mcon/U/yacc.U
- Prereq: 3.0
- *** mcon/U/yacc.U.old Fri May 13 17:29:25 1994
- --- mcon/U/yacc.U Fri May 13 17:29:25 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: yacc.U,v 3.0 1993/08/18 12:10:03 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: yacc.U,v 3.0.1.1 1994/05/13 15:28:48 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,27 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: yacc.U,v $
- ?RCS: Revision 3.0 1993/08/18 12:10:03 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:yacc yaccflags: Guess Myread Oldconfig bison cat test
- ?MAKE: -pick add $@ %<
- ?S:yacc:
- ?S: This variable holds the name of the compiler compiler we
- ! ?S: want to use in the Makefile. It can be yacc or bison -y.
- ?S:.
- ?S:yaccflags:
- ?S: This variable contains any additional yacc flags desired by the
- ?S: user. It is up to the Makefile to use this.
- ?S:.
- : determine compiler compiler
- case "$yacc" in
- '')
- --- 9,31 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: yacc.U,v $
- + ?RCS: Revision 3.0.1.1 1994/05/13 15:28:48 ram
- + ?RCS: patch27: added byacc as another alternative (ADO)
- + ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:10:03 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:yacc yaccflags: Guess Myread Oldconfig byacc bison cat test
- ?MAKE: -pick add $@ %<
- ?S:yacc:
- ?S: This variable holds the name of the compiler compiler we
- ! ?S: want to use in the Makefile. It can be yacc, byacc, or bison -y.
- ?S:.
- ?S:yaccflags:
- ?S: This variable contains any additional yacc flags desired by the
- ?S: user. It is up to the Makefile to use this.
- ?S:.
- + ?T:comp
- : determine compiler compiler
- case "$yacc" in
- '')
- ***************
- *** 30,40 ****
- dflt="$yacc";;
- esac
- echo " "
- if $test -f "$bison"; then
- ! rp='Which compiler compiler (yacc or bison -y) shall I use?'
- ! else
- ! rp='Which compiler compiler shall I use?'
- fi
- . ./myread
- yacc="$ans"
- case "$yacc" in
- --- 34,48 ----
- dflt="$yacc";;
- esac
- echo " "
- + comp='yacc'
- + if $test -f "$byacc"; then
- + dflt="$byacc"
- + comp="byacc or $comp"
- + fi
- if $test -f "$bison"; then
- ! comp="$comp or bison -y"
- fi
- + rp="Which compiler compiler ($comp) shall I use?"
- . ./myread
- yacc="$ans"
- case "$yacc" in
-
- Index: mcon/U/uidtype.U
- Prereq: 3.0
- *** mcon/U/uidtype.U.old Fri May 13 17:29:24 1994
- --- mcon/U/uidtype.U Fri May 13 17:29:24 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: uidtype.U,v 3.0 1993/08/18 12:09:56 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: uidtype.U,v 3.0.1.1 1994/05/13 15:28:27 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,18 ****
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: uidtype.U,v $
- ?RCS: Revision 3.0 1993/08/18 12:09:56 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:uidtype: Myread Oldconfig contains Findhdr
- ?MAKE: -pick add $@ %<
- ?S:uidtype:
- ?S: This variable defines UIDTYPE to be something like uid_t, int,
- --- 9,22 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: uidtype.U,v $
- + ?RCS: Revision 3.0.1.1 1994/05/13 15:28:27 ram
- + ?RCS: patch27: made conformant to its gidtype.U companion
- + ?RCS: patch27: question now explicitely mentions getuid()
- + ?RCS:
- ?RCS: Revision 3.0 1993/08/18 12:09:56 ram
- ?RCS: Baseline for dist 3.0 netwide release.
- ?RCS:
- ! ?MAKE:uidtype: Myread Oldconfig contains Findhdr Setvar
- ?MAKE: -pick add $@ %<
- ?S:uidtype:
- ?S: This variable defines UIDTYPE to be something like uid_t, int,
- ***************
- *** 26,31 ****
- --- 30,36 ----
- ?H:#define Uid_t $uidtype /* UID type */
- ?H:.
- ?T:xxx
- + ?LINT:set uidtype
- : see what type uids are declared as in the kernel
- case "$uidtype" in
- '')
- ***************
- *** 43,49 ****
- *) dflt="$uidtype";;
- esac
- echo " "
- ! rp="What type are user ids on this system declared as?"
- . ./myread
- ! uidtype="$ans"
-
- --- 48,56 ----
- *) dflt="$uidtype";;
- esac
- echo " "
- ! rp="What is the type for user ids returned by getuid()?"
- . ./myread
- ! val="$ans"
- ! set uidtype
- ! eval $setvar
-
-
- Index: mcon/man/mconfig.SH
- Prereq: 3.0.1.7
- *** mcon/man/mconfig.SH.old Fri May 13 17:29:28 1994
- --- mcon/man/mconfig.SH Fri May 13 17:29:29 1994
- ***************
- *** 20,26 ****
- .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
- ''' @(#) Manual page for metaconfig
- '''
- ! ''' $Id: mconfig.SH,v 3.0.1.7 1994/05/06 15:19:25 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- --- 20,26 ----
- .TH METACONFIG $manext "Version $VERSION PL$PATCHLEVEL"
- ''' @(#) Manual page for metaconfig
- '''
- ! ''' $Id: mconfig.SH,v 3.0.1.8 1994/05/13 15:29:16 ram Exp $
- '''
- ''' Copyright (c) 1991-1993, Raphael Manfredi
- '''
- ***************
- *** 31,36 ****
- --- 31,39 ----
- ''' of the source tree for dist 3.0.
- '''
- ''' $Log: mconfig.SH,v $
- + ''' Revision 3.0.1.8 1994/05/13 15:29:16 ram
- + ''' patch27: now understands macro definitions in ?H: lines
- + '''
- ''' Revision 3.0.1.7 1994/05/06 15:19:25 ram
- ''' patch23: documented the new 'p' option in Getfile.U
- '''
- ***************
- *** 1084,1089 ****
- --- 1087,1098 ----
- ?H:#define \fIVAR\fR [\fIoptional text\fR]
- Always defines the \fIVAR\fR C symbol to some value. Implies a '?\fIVAR\fR:'
- guarding condition. An automatic shell dependency is made to the unit itself.
- + .TP
- + ?H:#define \fIVAR(x,y,z)\fR \fI\$var\fR
- + Always defines the macro \fIVAR\fR to be the value of the \fI\$var\fR variable.
- + It is up to the unit to ensure \fI\$var\fR holds a sensible value. An
- + automatic dependency between the C macro \fIVAR\fR and the shell variable
- + is established, and the whole line is guarded by an implicit '?\fIVAR\fR:'.
- .TP
- ?H:#\fI\$d_var VAR\fR
- Conditionally defines \fIVAR\fR if \fI\$d_var\fR is set to '\fIdefine\fR'.
-
- Index: mcon/U/libpth.U
- Prereq: 3.0.1.1
- *** mcon/U/libpth.U.old Fri May 13 17:29:23 1994
- --- mcon/U/libpth.U Fri May 13 17:29:23 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: libpth.U,v 3.0.1.1 1994/05/06 15:07:53 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: libpth.U,v 3.0.1.2 1994/05/13 15:26:57 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: libpth.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:26:57 ram
- + ?RCS: patch27: fixed a typo (libpth -> glibpth)
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/05/06 15:07:53 ram
- ?RCS: patch23: now asks for library directories to be searched (ADO)
- ?RCS:
- ***************
- *** 35,42 ****
- ?INIT:
- ?INIT:: general looking path for locating libraries
- ?INIT:glibpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
- ! ?INIT:glibpth="$libpth /usr/lib/small /lib/small"
- ! ?INIT:glibpth="$libpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
- ?INIT:
- ?INIT:: Private path used by Configure to find libraries. Its value
- ?INIT:: is prepended to libpth. This variable takes care of special
- --- 38,45 ----
- ?INIT:
- ?INIT:: general looking path for locating libraries
- ?INIT:glibpth="/usr/lib/large /lib /usr/lib $xlibpth /lib/large"
- ! ?INIT:glibpth="$glibpth /usr/lib/small /lib/small"
- ! ?INIT:glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
- ?INIT:
- ?INIT:: Private path used by Configure to find libraries. Its value
- ?INIT:: is prepended to libpth. This variable takes care of special
-
- Index: mcon/pl/common.pl
- Prereq: 3.0.1.2
- *** mcon/pl/common.pl.old Fri May 13 17:29:26 1994
- --- mcon/pl/common.pl Fri May 13 17:29:26 1994
- ***************
- *** 1,4 ****
- ! ;# $Id: common.pl,v 3.0.1.2 1994/01/24 14:22:54 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- --- 1,4 ----
- ! ;# $Id: common.pl,v 3.0.1.3 1994/05/13 15:29:04 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ;# of the source tree for dist 3.0.
- ;#
- ;# $Log: common.pl,v $
- + ;# Revision 3.0.1.3 1994/05/13 15:29:04 ram
- + ;# patch27: now understands macro definitions in ?H: lines
- + ;#
- ;# Revision 3.0.1.2 1994/01/24 14:22:54 ram
- ;# patch16: can now define "internal use only" variables on ?MAKE: lines
- ;#
- ***************
- *** 212,217 ****
- --- 215,226 ----
- print " ?H: ($constraint) #\$$1 $2 \"\$$3\"\n" if $opt_d;
- $cmaster{$2} = undef;
- $cwanted{$2} = "$1\n$3";
- + } elsif (m|^#define\s+(\w+)\((.*)\)\s+\$(\w+)|) {
- + # Case: #define VAR(x) $var
- + $constraint = $1 unless $constraint;
- + print " ?H: ($constraint) #define $1($2) \$$3\n" if $opt_d;
- + $cmaster{$1} = undef;
- + $cwanted{$1} = $3;
- } elsif (m|^#\$define\s+(\w+)|) {
- # Case: #$define VAR
- $constraint = $1 unless $constraint;
-
- Index: mcon/pl/lint.pl
- Prereq: 3.0.1.5
- *** mcon/pl/lint.pl.old Fri May 13 17:29:27 1994
- --- mcon/pl/lint.pl Fri May 13 17:29:27 1994
- ***************
- *** 1,4 ****
- ! ;# $Id: lint.pl,v 3.0.1.5 1994/05/06 15:27:48 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- --- 1,4 ----
- ! ;# $Id: lint.pl,v 3.0.1.6 1994/05/13 15:29:09 ram Exp $
- ;#
- ;# Copyright (c) 1991-1993, Raphael Manfredi
- ;#
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ;# of the source tree for dist 3.0.
- ;#
- ;# $Log: lint.pl,v $
- + ;# Revision 3.0.1.6 1994/05/13 15:29:09 ram
- + ;# patch27: now understands macro definitions in ?H: lines
- + ;#
- ;# Revision 3.0.1.5 1994/05/06 15:27:48 ram
- ;# patch23: now warns for units ending with non-blank line
- ;# patch23: warn for units where last line is not new-line terminated
- ***************
- *** 240,245 ****
- --- 243,252 ----
- # Case: #$d_var VAR "$var"
- warn "$where: symbol '$2' was already defined.\n" if $hcsym{$2}++;
- &check_definition("$1");
- + &check_definition("$3");
- + } elsif (m|^#define\s+(\w+)\((.*)\)\s+\$(\w+)|) {
- + # Case: #define VAR(x) $var
- + warn "$where: symbol '$1' was already defined.\n" if $hcsym{$1}++;
- &check_definition("$3");
- } elsif (m|^#\$define\s+(\w+)|) {
- # Case: #$define VAR
-
- Index: mcon/U/gidtype.U
- Prereq: 3.0.1.1
- *** mcon/U/gidtype.U.old Fri May 13 17:29:20 1994
- --- mcon/U/gidtype.U Fri May 13 17:29:20 1994
- ***************
- *** 1,4 ****
- ! ?RCS: $Id: gidtype.U,v 3.0.1.1 1994/05/06 15:01:51 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- --- 1,4 ----
- ! ?RCS: $Id: gidtype.U,v 3.0.1.2 1994/05/13 15:21:07 ram Exp $
- ?RCS:
- ?RCS: Copyright (c) 1991-1993, Raphael Manfredi
- ?RCS:
- ***************
- *** 9,14 ****
- --- 9,17 ----
- ?RCS: of the source tree for dist 3.0.
- ?RCS:
- ?RCS: $Log: gidtype.U,v $
- + ?RCS: Revision 3.0.1.2 1994/05/13 15:21:07 ram
- + ?RCS: patch27: added lint hint
- + ?RCS:
- ?RCS: Revision 3.0.1.1 1994/05/06 15:01:51 ram
- ?RCS: patch23: protected gidtype setting via setvar (ADO)
- ?RCS: patch23: made Gid_t comment more explicit (ADO)
- ***************
- *** 33,38 ****
- --- 36,42 ----
- ?H:#define Gid_t $gidtype /* Type for getgid(), etc... */
- ?H:.
- ?T:xxx
- + ?LINT:set gidtype
- : see what type gids are declared as in the kernel
- case "$gidtype" in
- '')
-
- *** End of Patch 27 ***
-
- exit 0 # Just in case...
-