cf: Disable swig if shared libraries are disabled
[openafs.git] / src / afsinstall / lib / InstallGuides / sgi_64 / bldkernel
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 # An InstallGuide for static AFS kernel libraries
9 # For SGI systems running IRIX 6.3
10 #
11
12 sub bldkernel {
13 my ($nfs, $libafs);
14 &ErrorsAreFatal(1);
15
16 # NFS support
17 if ($Configuration{"NFSEXTENSIONS"}) {
18   $nfs = ""; }
19 else {
20   $nfs = ".nonfs"; };
21
22 # From the above, put together the name of the kernel library to use
23 $libafs = "libafs$nfs.a";
24
25 &CreateDir("/usr/vice/etc/sgiload");
26 &ErrorsAreFatal(0);
27
28 &Copy("root.client/bin/$libafs", "/var/sysgen/boot/afs.a");
29 &Copy("root.client/usr/vice/etc/sgiload/afs",    "/usr/vice/etc/sgiload");
30 &Copy("root.client/usr/vice/etc/sgiload/afs.rc", "/usr/vice/etc/sgiload");
31 &Copy("root.client/usr/vice/etc/sgiload/afs.sm", "/usr/vice/etc/sgiload");
32
33 &Copy("root.client/usr/vice/etc/afsd", "/usr/vice/etc");
34 &Chmod(0744, "/usr/vice/etc/afsd");
35 &Copy("bin/fs", "/usr/vice/etc/fs");
36 system("/etc/chkconfig -f afsml off");
37 }