From 371472d9fb6a936149b105a6563a0550d35bdf1a Mon Sep 17 00:00:00 2001 From: Manoj Srivastava Date: Mon, 1 Dec 2003 17:11:15 +0000 Subject: Initial import of upstream branch Initial import of upstream branch git-archimport-id: srivasta@debian.org--2003-primary/dist--upstream--3.70--base-0 --- mcon/files/Internal.U | 20 +++++++++++++++ mcon/files/README | 6 +++++ mcon/files/d_function.U | 31 ++++++++++++++++++++++ mcon/files/dir.U | 47 ++++++++++++++++++++++++++++++++++ mcon/files/file.U | 47 ++++++++++++++++++++++++++++++++++ mcon/files/i_include.U | 32 +++++++++++++++++++++++ mcon/files/keyword.U | 54 +++++++++++++++++++++++++++++++++++++++ mcon/files/locate.U | 47 ++++++++++++++++++++++++++++++++++ mcon/files/question.U | 58 +++++++++++++++++++++++++++++++++++++++++ mcon/files/rcshead.U | 15 +++++++++++ mcon/files/shell.U | 68 +++++++++++++++++++++++++++++++++++++++++++++++++ mcon/files/type.U | 47 ++++++++++++++++++++++++++++++++++ 12 files changed, 472 insertions(+) create mode 100644 mcon/files/Internal.U create mode 100644 mcon/files/README create mode 100644 mcon/files/d_function.U create mode 100644 mcon/files/dir.U create mode 100644 mcon/files/file.U create mode 100644 mcon/files/i_include.U create mode 100644 mcon/files/keyword.U create mode 100644 mcon/files/locate.U create mode 100644 mcon/files/question.U create mode 100644 mcon/files/rcshead.U create mode 100644 mcon/files/shell.U create mode 100644 mcon/files/type.U (limited to 'mcon/files') diff --git a/mcon/files/Internal.U b/mcon/files/Internal.U new file mode 100644 index 0000000..2c356f7 --- /dev/null +++ b/mcon/files/Internal.U @@ -0,0 +1,20 @@ +?RCS: $Id: Internal.U,v 3.0 1993/08/18 12:10:04 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: Internal.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:04 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?X: +?X: This unit does this and that. +?X: +?MAKE:<^INTERNAL>: Myinit +?MAKE: -pick add $@ %< + diff --git a/mcon/files/README b/mcon/files/README new file mode 100644 index 0000000..cdbc905 --- /dev/null +++ b/mcon/files/README @@ -0,0 +1,6 @@ +This directory contains unit templates. + +It is hoped metaconfig will have a tool to generate "standard" units based +on some well-known templates. + +For now, it has a documentary-only value. diff --git a/mcon/files/d_function.U b/mcon/files/d_function.U new file mode 100644 index 0000000..3132094 --- /dev/null +++ b/mcon/files/d_function.U @@ -0,0 +1,31 @@ +?RCS: $Id: d_function.U,v 3.0 1993/08/18 12:10:05 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: d_function.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:05 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:d_: Inlibc +?MAKE: -pick add $@ %< +?S:d_: +?S: This variable conditionally defines HAS_<%FUNCTION> if () is +?S: available to ... +?S:. +?C:HAS_<%FUNCTION>: +?C: This symbol, if defined, indicates that the () routine is +?C: available to ... +?C:. +?H:#$d_ HAS_<%FUNCTION> /**/ +?H:. +?LINT:set d_ +: see if exists +set d_ +eval $inlibc + diff --git a/mcon/files/dir.U b/mcon/files/dir.U new file mode 100644 index 0000000..d941ac6 --- /dev/null +++ b/mcon/files/dir.U @@ -0,0 +1,47 @@ +?RCS: $Id: dir.U,v 3.0 1993/08/18 12:10:06 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: dir.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:06 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE: exp: Oldconfig Getfile +?MAKE: -pick add $@ %< +?S:: +?S: Where files are located. The name may have ~ on the front. +?S:. +?S:exp: +?S: This is the same as the variable, but is filename expanded +?S: so that later Configure units can look at the directory if desired. +?S:. +?C:<%DIR>: +?C: The directory where files are located. The name may have ~ on +?C: the front so the C program must be prepared to do ~ expansion. +?C:. +?C:<%DIR>_EXP: +?C: The same as , but ~name expantion has been done by Configure. +?C:. +?H:#define <%DIR> "$" /**/ +?H:#define <%DIR>_EXP "$exp" /**/ +?H:. +: locate directory +echo " " +case "$" in +'') + dflt= + ;; +*) dflt="$";; +esac +fn=d~ +rp='Where is the directory?' +. getfile +="$ans" +exp="$ansexp" + diff --git a/mcon/files/file.U b/mcon/files/file.U new file mode 100644 index 0000000..b89f5fc --- /dev/null +++ b/mcon/files/file.U @@ -0,0 +1,47 @@ +?RCS: $Id: file.U,v 3.0 1993/08/18 12:10:06 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: file.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:06 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE: exp: Oldconfig Getfile +?MAKE: -pick add $@ %< +?S:: +?S: The name of the file. The name may have ~ on the front. +?S:. +?S:exp: +?S: This is the same as the variable, but is filename expanded +?S: so that later Configure units can look at the file if desired. +?S:. +?C:<%FILE>: +?C: The name of the file. The name may have ~ on the front so the +?C: program must be prepared to do filename expansion. +?C:. +?C:<%FILE>_EXP: +?C: The same as but ~name expansion has been done by Configure. +?C:. +?H:#define <%FILE> "$" /**/ +?H:#define <%FILE>_EXP "$exp" /**/ +?H:. +: locate file +echo " " +case "$" in +'') + dflt= + ;; +*) dflt="$";; +esac +fn=f~ +rp='Where is the file?' +. getfile +="$ans" +exp="$ansexp" + diff --git a/mcon/files/i_include.U b/mcon/files/i_include.U new file mode 100644 index 0000000..a845651 --- /dev/null +++ b/mcon/files/i_include.U @@ -0,0 +1,32 @@ +?RCS: $Id: i_include.U,v 3.0 1993/08/18 12:10:07 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: i_include.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:07 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:i_: Inhdr +?MAKE: -pick add $@ %< +?S:i_: +?S: This variable conditionally defines the I_<%INCLUDE> symbol, which +?S: indicates to the C program that <.h> exists and should +?S: be included. +?S:. +?C:I_<%INCLUDE>: +?C: This symbol, if defined, indicates that <.h> exists and should +?C: be included. +?C:. +?H:#$i_ I_<%INCLUDE> /**/ +?H:. +?LINT:set i_ +: see if .h is available +set .h i_ +eval $inhdr + diff --git a/mcon/files/keyword.U b/mcon/files/keyword.U new file mode 100644 index 0000000..1623264 --- /dev/null +++ b/mcon/files/keyword.U @@ -0,0 +1,54 @@ +?RCS: $Id: keyword.U,v 3.0 1993/08/18 12:10:08 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: keyword.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:08 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:d_const: cat cc ccflags Setvar +?MAKE: -pick add $@ %< +?S:d_: +?S: This variable conditionally defines the HASCONST symbol, which +?S: indicates to the C program that this C compiler knows about the +?S: type. +?S:. +?C:HAS<%KEY> ~ %<: +?C: This symbol, if defined, indicates that this C compiler knows about +?C: the type. There is no need to actually test for that symbol +?C: within your programs. The mere use of the "" keyword will +?C: trigger the necessary tests. +?C:. +?H:?%<:#$d_ HAS<%KEY> /**/ +?H:?%<:#ifndef HAS<%KEY> +?H:?%<:#define +?H:?%<:#endif +?H:. +?W:%<: +?LINT:set d_ +?LINT:known +: check for keyword +echo " " +echo 'Checking to see if your C compiler knows about ""...' +$cat >.c <<'EOCP' +main() +{ + char *foo; +} +EOCP +if $cc -c $ccflags .c >/dev/null 2>&1 ; then + val="$define" + echo "Yup, it does." +else + val="$undef" + echo "Nope, it doesn't." +fi +set d_ +eval $setvar + diff --git a/mcon/files/locate.U b/mcon/files/locate.U new file mode 100644 index 0000000..93d7948 --- /dev/null +++ b/mcon/files/locate.U @@ -0,0 +1,47 @@ +?RCS: $Id: locate.U,v 3.0 1993/08/18 12:10:08 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: locate.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:08 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE: exp: Oldconfig Getfile +?MAKE: -pick add $@ %< +?S:: +?S: The name of the file. The name may have ~ on the front. +?S:. +?S:exp: +?S: This is the same as the variable, but is filename expanded +?S: so that later Configure units can look at the file if desired. +?S:. +?C:<%FILE>: +?C: The name of the file. The name may have ~ on the front so the +?C: program must be prepared to do filename expansion. +?C:. +?C:<%FILE>_EXP: +?C: The same as but ~name expansion has been done by Configure. +?C:. +?H:#define <%FILE> "$" /**/ +?H:#define <%FILE>_EXP "$exp" /**/ +?H:. +: locate file +echo " " +case "$" in +'') + dflt= + ;; +*) dflt="$";; +esac +fn=l~: +rp='Where is the file?' +. getfile +="$ans" +exp="$ansexp" + diff --git a/mcon/files/question.U b/mcon/files/question.U new file mode 100644 index 0000000..dbc9b19 --- /dev/null +++ b/mcon/files/question.U @@ -0,0 +1,58 @@ +?RCS: $Id: question.U,v 3.0 1993/08/18 12:10:09 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: question.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:09 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:d_scorfl: cat Myread Oldconfig nametype Setvar +?MAKE: -pick add $@ %< +?S:d_scorfl: +?S: This variable conditionally defines the SCOREFULL symbol, which +?S: indicates to the C program that any scoreboard kept by the program +?S: should be kept on the basis of the user's full name as opposed to +?S: the user's login name. +?S:. +?C:SCOREFULL: +?C: This symbol, if defined, indicates that any scoreboard kept by the +?C: program should be kept on the basis of the user's full name as opposed +?C: to the user's login name. If the user can change his full name he +?C: can enter multiple scores if this is defined. +?C:. +?H:#$d_scorfl SCOREFULL /**/ +?H:. +?LINT:set d_scorfl +: see how they want the scoreboard kept +case "$d_scorfl" in +"$define") dflt=y ;; +*) dflt=n ;; +esac +case "$nametype" in +other) val="$undef" ;; +*) + $cat <<'EOM' + +The scoreboard can be kept with one score per login name, or one score per full +name. If users can change their full name, or if there is more than one person +on your system with the same full name, you should keep the score by login name +(the full name is still printed). + +EOM + rp='Do you want the scoreboard kept by full name?' + . myread + case "$ans" in + y*) val="$define" ;; + *) val="$undef" ;; + esac + ;; +esac +set d_scorfl +eval $setvar + diff --git a/mcon/files/rcshead.U b/mcon/files/rcshead.U new file mode 100644 index 0000000..2952d38 --- /dev/null +++ b/mcon/files/rcshead.U @@ -0,0 +1,15 @@ +?RCS: $Id: rcshead.U,v 3.0 1993/08/18 12:10:10 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: rcshead.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:10 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: + diff --git a/mcon/files/shell.U b/mcon/files/shell.U new file mode 100644 index 0000000..cc906c6 --- /dev/null +++ b/mcon/files/shell.U @@ -0,0 +1,68 @@ +?RCS: $Id: shell.U,v 3.0 1993/08/18 12:10:10 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: shell.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:10 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:cc: cat contains sysman +large Mcc Myread Guess Oldconfig Loc +?MAKE: -pick add $@ %< +?DEF:cc=cc +?S:cc: +?S: This variable holds the name of a command to execute a C compiler which +?S: can resolve multiple global references that happen to have the same +?S: name. Usual values are "cc", "Mcc", "cc -M", and "gcc". +?S:. +: see if we need a special compiler +echo " " +if usg; then + case "$cc" in + '') case "$Mcc" in + /*) dflt='Mcc';; + *) case "$large" in + -M*) dflt='cc';; + *) if $contains '\-M' $sysman/cc.1 >/dev/null 2>&1 ; then + if $contains '\-M' $sysman/cpp.1 >/dev/null 2>&1; then + dflt='cc' + else + dflt='cc -M' + fi + else + dflt='cc' + fi;; + esac;; + esac;; + *) dflt="$cc";; + esac + $cat <<'EOM' +On some systems the default C compiler will not resolve multiple global +references that happen to have the same name. On some such systems the "Mcc" +command may be used to force these to be resolved. On other systems a "cc -M" +command is required. (Note that the -M flag on other systems indicates a +memory model to use!) If you have the Gnu C compiler, you might wish to use +that instead. + +EOM + rp="What command will force resolution on this system?" + . myread + cc="$ans" +else + case "$cc" in + '') dflt=cc;; + *) dflt="$cc";; + esac + rp="Use which C compiler?" + . myread + cc="$ans" +fi +case "$cc" in +gcc*) cpp=`loc gcc-cpp $cpp $pth`;; +esac + diff --git a/mcon/files/type.U b/mcon/files/type.U new file mode 100644 index 0000000..0a63b49 --- /dev/null +++ b/mcon/files/type.U @@ -0,0 +1,47 @@ +?RCS: $Id: type.U,v 3.0 1993/08/18 12:10:11 ram Exp $ +?RCS: +?RCS: Copyright (c) 1991-1993, Raphael Manfredi +?RCS: +?RCS: You may redistribute only under the terms of the Artistic Licence, +?RCS: as specified in the README file that comes with the distribution. +?RCS: You may reuse parts of this distribution only within the terms of +?RCS: that same Artistic Licence; a copy of which may be found at the root +?RCS: of the source tree for dist 3.0. +?RCS: +?RCS: $Log: type.U,v $ +?RCS: Revision 3.0 1993/08/18 12:10:11 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:uidtype: Myread Oldconfig contains usrinc +?MAKE: -pick add $@ %< +?S:uidtype: +?S: This variable defines UIDTYPE to be something like uid_t, int, +?S: ushort, or whatever type is used to declare user ids in the kernel. +?S:. +?C:Uid_t (UIDTYPE): +?C: This symbol holds the type used to declare user ids in the kernel. +?C: It can be int, ushort, uid_t, etc... It may be necessary to include +?C: to get any typedef'ed information. +?C:. +?H:#define Uid_t $uidtype /* UID type */ +?H:. +: see what type uids are declared as in the kernel +case "$uidtype" in +'') + if $contains 'uid_t;' $usrinc/sys/types.h >/dev/null 2>&1 ; then + dflt='uid_t'; + else + set `grep '_ruid;' $usrinc/sys/user.h 2>/dev/null` unsigned short + case $1 in + unsigned) dflt="$1 $2" ;; + *) dflt="$1" ;; + esac + fi + ;; +*) dflt="$uidtype";; +esac +echo " " +rp="What type are user ids on this system declared as?" +. myread +uidtype="$ans" + -- cgit v1.2.3