| 1 | case $PERL_CONFIG_SH in
|
|---|
| 2 | '') . ./config.sh ;;
|
|---|
| 3 | esac
|
|---|
| 4 | echo "Extracting Policy.sh (with variable substitutions)"
|
|---|
| 5 | $spitshell <<!GROK!THIS! >Policy.sh
|
|---|
| 6 | $startsh
|
|---|
| 7 | #
|
|---|
| 8 | # This file was produced by running the Policy_sh.SH script, which
|
|---|
| 9 | # gets its values from config.sh, which is generally produced by
|
|---|
| 10 | # running Configure.
|
|---|
| 11 | #
|
|---|
| 12 | # The idea here is to distill in one place the common site-wide
|
|---|
| 13 | # "policy" answers (such as installation directories) that are
|
|---|
| 14 | # to be "sticky". If you keep the file Policy.sh around in
|
|---|
| 15 | # the same directory as you are building Perl, then Configure will
|
|---|
| 16 | # (by default) load up the Policy.sh file just before the
|
|---|
| 17 | # platform-specific hints file and rewrite it at the end.
|
|---|
| 18 | #
|
|---|
| 19 | # The sequence of events is as follows:
|
|---|
| 20 | # A: If you are NOT re-using an old config.sh:
|
|---|
| 21 | # 1. At start-up, Configure loads up the defaults from the
|
|---|
| 22 | # os-specific hints/osname_osvers.sh file and any previous
|
|---|
| 23 | # Policy.sh file.
|
|---|
| 24 | # 2. At the end, Configure runs Policy_sh.SH, which creates
|
|---|
| 25 | # Policy.sh, overwriting a previous Policy.sh if necessary.
|
|---|
| 26 | #
|
|---|
| 27 | # B: If you are re-using an old config.sh:
|
|---|
| 28 | # 1. At start-up, Configure loads up the defaults from config.sh,
|
|---|
| 29 | # ignoring any previous Policy.sh file.
|
|---|
| 30 | # 2. At the end, Configure runs Policy_sh.SH, which creates
|
|---|
| 31 | # Policy.sh, overwriting a previous Policy.sh if necessary.
|
|---|
| 32 | #
|
|---|
| 33 | # Thus the Policy.sh file gets overwritten each time
|
|---|
| 34 | # Configure is run. Any variables you add to Policy.sh will be lost
|
|---|
| 35 | # unless you copy Policy.sh somewhere else before running Configure.
|
|---|
| 36 | #
|
|---|
| 37 | # Allow Configure command-line overrides; usually these won't be
|
|---|
| 38 | # needed, but something like -Dprefix=/test/location can be quite
|
|---|
| 39 | # useful for testing out new versions.
|
|---|
| 40 |
|
|---|
| 41 | #Site-specific values:
|
|---|
| 42 |
|
|---|
| 43 | case "\$perladmin" in
|
|---|
| 44 | '') perladmin='$perladmin' ;;
|
|---|
| 45 | esac
|
|---|
| 46 |
|
|---|
| 47 | # Installation prefixes. Allow a Configure -D override. You
|
|---|
| 48 | # may wish to reinstall perl under a different prefix, perhaps
|
|---|
| 49 | # in order to test a different configuration.
|
|---|
| 50 | # For an explanation of the installation directories, see the
|
|---|
| 51 | # INSTALL file section on "Installation Directories".
|
|---|
| 52 | case "\$prefix" in
|
|---|
| 53 | '') prefix='$prefix' ;;
|
|---|
| 54 | esac
|
|---|
| 55 |
|
|---|
| 56 | # By default, the next three are the same as \$prefix.
|
|---|
| 57 | # If the user changes \$prefix, and previously \$siteprefix was the
|
|---|
| 58 | # same as \$prefix, then change \$siteprefix as well.
|
|---|
| 59 | # Use similar logic for \$vendorprefix and \$installprefix.
|
|---|
| 60 |
|
|---|
| 61 | case "\$siteprefix" in
|
|---|
| 62 | '') if test "$siteprefix" = "$prefix"; then
|
|---|
| 63 | siteprefix="\$prefix"
|
|---|
| 64 | else
|
|---|
| 65 | siteprefix='$siteprefix'
|
|---|
| 66 | fi
|
|---|
| 67 | ;;
|
|---|
| 68 | esac
|
|---|
| 69 | case "\$vendorprefix" in
|
|---|
| 70 | '') if test "$vendorprefix" = "$prefix"; then
|
|---|
| 71 | vendorprefix="\$prefix"
|
|---|
|
|---|