This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[UTIL] Perl system does not default to $_
[metaconfig.git] / dist / U / Unix.U
1 ?RCS: $Id$
2 ?RCS:
3 ?RCS: Copyright (c) 1996, Andy Dougherty
4 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: 
6 ?RCS: You may redistribute only under the terms of the Artistic License,
7 ?RCS: as specified in the README file that comes with the distribution.
8 ?RCS: You may reuse parts of this distribution only within the terms of
9 ?RCS: that same Artistic License; a copy of which may be found at the root
10 ?RCS: of the source tree for dist 4.0.
11 ?RCS:
12 ?RCS: $Log: Unix.U,v $
13 ?RCS: Revision 3.0.1.1  1997/02/28  15:20:06  ram
14 ?RCS: patch61: created
15 ?RCS:
16 ?X:
17 ?X: The purpose of this unit is to define things that are common accross all
18 ?X: known UNIX platforms. If Configure is ported/used on a non-UNIX
19 ?X: environment, then some of the following variables can be redefined in hint
20 ?X: files.
21 ?X:
22 ?MAKE:Unix _a _o firstmakefile archobjs: Oldconfig
23 ?MAKE:  -pick add $@ %<
24 ?S:_a (lib_ext):
25 ?S:     This variable defines the extension used for ordinary libraries.
26 ?S:     For unix, it is '.a'.  The '.' is included.  Other possible
27 ?S:     values include '.lib'.
28 ?S:.
29 ?S:_o (obj_ext):
30 ?S:     This variable defines the extension used for object files.
31 ?S:     For unix, it is '.o'.  The '.' is included.  Other possible
32 ?S:     values include '.obj'.
33 ?S:.
34 ?S:firstmakefile:
35 ?S:     This variable defines the first file searched by make.  On unix,
36 ?S:     it is makefile (then Makefile).  On case-insensitive systems,
37 ?S:     it might be something else.  This is only used to deal with
38 ?S:     convoluted make depend tricks.
39 ?S:.
40 ?S:archobjs:
41 ?S:     This variable defines any additional objects that must be linked
42 ?S:     in with the program on this architecture.  On unix, it is usually
43 ?S:     empty.  It is typically used to include emulations of unix calls
44 ?S:     or other facilities.  For perl on OS/2, for example, this would
45 ?S:     include os2/os2.obj.
46 ?S:.
47 ?INIT:: Extra object files, if any, needed on this platform.
48 ?INIT:archobjs=''
49 : Define several unixisms.
50 : Hints files or command line option can be used to override them.
51 case "$_a" in
52 '') _a='.a';;
53 esac
54 case "$_o" in
55 '') _o='.o';;
56 esac
57
58 @if firstmakefile
59 : Which makefile gets called first.  This is used by make depend.
60 case "$firstmakefile" in
61 '') firstmakefile='makefile';;
62 esac
63
64 @end