diff options
Diffstat (limited to 'U')
-rw-r--r-- | U/Loc_sed.U | 22 | ||||
-rw-r--r-- | U/Myinit.U | 9 | ||||
-rw-r--r-- | U/d_byacc.U | 26 | ||||
-rw-r--r-- | U/d_csh.U | 48 | ||||
-rw-r--r-- | U/d_group.U | 3 | ||||
-rw-r--r-- | U/d_passwd.U | 3 | ||||
-rw-r--r-- | U/dist.patch | 73 | ||||
-rw-r--r-- | U/i_sysstat.U | 21 |
8 files changed, 197 insertions, 8 deletions
diff --git a/U/Loc_sed.U b/U/Loc_sed.U index 96341408db..88cec902dc 100644 --- a/U/Loc_sed.U +++ b/U/Loc_sed.U @@ -1,14 +1,26 @@ ?RCS: $Id: Loc_sed.U,v $ ?RCS: ?X: This is used in perl.c. -?MAKE:Loc_sed: sed +?MAKE:full_sed: sed ?MAKE: -pick add $@ %< -?X: Fool metalint: -?LINT:use sed -?LINT:extern sed +?S:full_sed: +?S: This variable contains the full pathname to 'sed', whether or +?S: not the user has specified 'portability'. This is only used +?S: in the compiled C program, and we assume that all systems which +?S: can share this executable will have the same full pathname to +?S: 'sed.' +?S:. +?X: Yes, I know about the C symbol PORTABLE, but I think sed +?X: is unlikely to move, and I'm too lazy to add all the +?X: #ifdef PORTABLE sections to the perl source. +?X: ?C:LOC_SED: ?C: This symbol holds the complete pathname to the sed program. ?C:. -?H:#define LOC_SED "$sed" /**/ +?H:#define LOC_SED "$full_sed" /**/ ?H:. +?LINT:use sed +?LINT:extern sed +: Store the full pathname to the sed program for use in the C program +full_sed=$sed diff --git a/U/Myinit.U b/U/Myinit.U index 885f07afaf..15c757c97e 100644 --- a/U/Myinit.U +++ b/U/Myinit.U @@ -25,18 +25,21 @@ ?S: search. The order is chosen to pick up the c library ?S: ahead of ucb or bsd libraries for SVR4. ?S:. -?LINT:extern usevfork glibpth -?LINT:change usevfork glibpth +?LINT:extern usevfork glibpth d_portable +?LINT:change usevfork glibpth d_portable : List of libraries we want. ?X: Put crypt here, even though I should really fix d_crypt.U to look ?X: for it correctly, including possible shared library versions. libswanted='net socket inet nsl nm ndbm gdbm dbm db malloc dl' libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" libswanted="$libswanted ucb bsd BSD PW x" -: We want to search /usr/shlib before most other libraries. +: We probably want to search /usr/shlib before most other libraries. : This is only used by ext/util/extliblist glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` glibpth="/usr/shlib $glibpth" : Do not use vfork unless overridden by a hint file. usevfork=false +: We might as well always be portable. It makes no difference for +: perl5, and makes people happy. +d_portable=define diff --git a/U/d_byacc.U b/U/d_byacc.U new file mode 100644 index 0000000000..a4498c85dd --- /dev/null +++ b/U/d_byacc.U @@ -0,0 +1,26 @@ +?RCS: $Id: d_byacc.U $ +?RCS: +?RCS: $Log: d_byacc.U,v $ +?RCS: +?MAKE:d_byacc: byacc Setvar +?MAKE: -pick add $@ %< +?LINT:extern byacc +?S:d_byacc: +?S: This variable indicates whether byacc is available. +?S: If the user has specified 'portability', then Makefile.SH +?S: sees $byacc='byacc' whether or not the user actually has +?S: byacc. This variable allows us to determine in a makefile +?S: if we really have byacc. +?S:. +?X: We want byacc for perl because the perly.fixer script assumes it. +?X: We need to patch up yacc-generated parsers to allow dynamic +?X: allocation of the stack. +?LINT:set d_byacc +: Check if we really have byacc +case "$byacc" in +''|'byacc') val="$undef" ;; +*) val="$define" ;; +esac +set d_byacc +eval $setvar + diff --git a/U/d_csh.U b/U/d_csh.U new file mode 100644 index 0000000000..eb737b80b2 --- /dev/null +++ b/U/d_csh.U @@ -0,0 +1,48 @@ +?RCS: $Id: d_csh.U,v 3.0 1993/08/18 12:05:53 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_csh.U,v $ +?RCS: Revision 3.0 1993/08/18 12:05:53 ram +?RCS: Baseline for dist 3.0 netwide release. +?RCS: +?MAKE:d_csh full_csh: csh Setvar +?MAKE: -pick add $@ %< +?LINT:extern csh +?S:d_csh: +?S: This variable conditionally defines the CSH symbol, which +?S: indicates to the C program that the C-shell exists. +?S:. +?S:full_csh: +?S: This variable contains the full pathname to 'csh', whether or +?S: not the user has specified 'portability'. This is only used +?S: in the compiled C program, and we assume that all systems whic +?S: can share this executable will have the same full pathname to +?S: 'csh.' +?S:. +?X: Yes, I know about the C symbol PORTABLE, but I think csh +?X: is unlikely to move, and I'm too lazy to add all the +?X: #ifdef PORTABLE sections to the perl source. +?X: +?C:CSH: +?C: This symbol, if defined, indicates that the C-shell exists. +?C: If defined, contains the full pathname of csh. +?C:. +?H:#$d_csh CSH "$full_csh" /**/ +?H:. +?LINT:set d_csh +: get csh whereabouts +case "$csh" in +'csh') val="$undef" ;; +*) val="$define" ;; +esac +set d_csh +eval $setvar +full_csh=$csh + diff --git a/U/d_group.U b/U/d_group.U new file mode 100644 index 0000000000..52a48eac0c --- /dev/null +++ b/U/d_group.U @@ -0,0 +1,3 @@ +?X: Deliberately empty file to fool metaconfig. I don't want +?X: the standard d_group since it's useless. (I wrote it, so I know :-). +?X:?RCS: $Id: d_group.U,v 3.0.1.1 1994/08/29 16:07:48 ram Exp $ diff --git a/U/d_passwd.U b/U/d_passwd.U new file mode 100644 index 0000000000..7bb5b3091d --- /dev/null +++ b/U/d_passwd.U @@ -0,0 +1,3 @@ +?X: Deliberately empty file to fool metaconfig. I don't want +?X: the standard d_passwd since it's useless. (I wrote it, so I know :-). +?X:?RCS: $Id: d_passwd.U,v 3.0.1.1 1994/08/29 16:09:51 ram Exp $ diff --git a/U/dist.patch b/U/dist.patch new file mode 100644 index 0000000000..555695b746 --- /dev/null +++ b/U/dist.patch @@ -0,0 +1,73 @@ +This file contains two minor updates to dist3 PL50 that were used +to generage Configure. + --Andy Dougherty doughera@lafcol.lafayette.edu + + +Index: Oldconfig.U +Prereq: 3.0.1.6 +*** /home2/doughera/lib/dist/U/Oldconfig.U Tue Jan 31 10:31:26 1995 +--- Oldconfig.U Thu Feb 2 14:33:32 1995 +*************** +*** 180,192 **** + + case "$1" in + aix) osname=aix + tmp=`( (oslevel) 2>/dev/null || echo "not found") 2>&1` + case "$tmp" in +! 'not found') osvers=3.2.0 ;; + '<3240'|'<>3240') osvers=3.2.0 ;; + '=3240'|'>3240'|'<3250'|'<>3250') osvers=3.2.4 ;; + '=3250'|'>3250') osvers=3.2.5 ;; +! *) osvers='' ;; + esac + ;; + dnix) osname=dnix +--- 180,198 ---- + + case "$1" in + aix) osname=aix ++ ?X: aix 4.1 uname -a output looks like ++ ?X: AIX foo 1 4 000123456789 ++ ?X: where $4 is the major release number and $3 is the (minor) version. ++ ?X: More detail on the version is available with the oslevel command. ++ ?X: in 3.2.x, it output a string (see case statements below). In 4.1, ++ ?X: it puts out something like 4.1.1.0 + tmp=`( (oslevel) 2>/dev/null || echo "not found") 2>&1` + case "$tmp" in +! 'not found') osvers="$4"."$3" ;; + '<3240'|'<>3240') osvers=3.2.0 ;; + '=3240'|'>3240'|'<3250'|'<>3250') osvers=3.2.4 ;; + '=3250'|'>3250') osvers=3.2.5 ;; +! *) osvers=$tmp;; + esac + ;; + dnix) osname=dnix +Index: mansrc.U +Prereq: 3.0.1.6 +*** /home2/doughera/lib/dist/U/mansrc.U Tue Jan 31 10:31:56 1995 +--- mansrc.U Thu Feb 2 14:34:36 1995 +*************** +*** 1,5 **** + ?RCS: $Id: mansrc.U,v 3.0.1.6 1995/01/30 14:39:34 ram Exp $ +- ?RCS: + ?RCS: Copyright (c) 1991-1993, Raphael Manfredi + ?RCS: + ?RCS: You may redistribute only under the terms of the Artistic Licence, +--- 1,4 ---- +*************** +*** 74,80 **** + '') + lookpath="$prefixexp/man/man1 $prefixexp/man/u_man/man1" + lookpath="$lookpath $prefixexp/man/l_man/man1" +! lookpath="$lookpath /usr/local/man/man1 /usr/local/man/man1 /usr/man/manl" + lookpath="$lookpath /usr/man/local/man1 /usr/man/l_man/man1" + lookpath="$lookpath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1" + lookpath="$lookpath /usr/man/man.L" +--- 73,79 ---- + '') + lookpath="$prefixexp/man/man1 $prefixexp/man/u_man/man1" + lookpath="$lookpath $prefixexp/man/l_man/man1" +! lookpath="$lookpath /usr/local/man/man1 /opt/man/man1 /usr/man/manl" + lookpath="$lookpath /usr/man/local/man1 /usr/man/l_man/man1" + lookpath="$lookpath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1" + lookpath="$lookpath /usr/man/man.L" diff --git a/U/i_sysstat.U b/U/i_sysstat.U new file mode 100644 index 0000000000..e607898ed8 --- /dev/null +++ b/U/i_sysstat.U @@ -0,0 +1,21 @@ +?RCS: $Id: i_sysstat.U,v $ +?RCS: +?RCS: $Log: i_sysstat.U,v $ +?RCS: +?MAKE:i_sysstat: Inhdr +?MAKE: -pick add $@ %< +?S:i_sysstat: +?S: This variable conditionally defines the I_SYS_STAT symbol, +?S: and indicates whether a C program should include <sys/stat.h>. +?S:. +?C:I_SYS_STAT (I_SYSSTAT): +?C: This symbol, if defined, indicates to the C program that it should +?C: include <sys/stat.h>. +?C:. +?H:#$i_sysstat I_SYS_STAT /**/ +?H:. +?LINT:set i_sysstat +: see if sys/stat.h is available +set sys/stat.h i_sysstat +eval $inhdr + |