diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-09-19 21:01:03 +0300 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-09-26 09:28:06 +0000 |
commit | 5e366f6500f4020d35e7c5fd9163363b1042ab5a (patch) | |
tree | f3aed16dbc3fb31b80c9bde681c1a2a95b593a4f /Configure | |
parent | 93189314521460c01625b05f7cfa81ac855affa9 (diff) | |
download | perl-5e366f6500f4020d35e7c5fd9163363b1042ab5a.tar.gz |
defuse installusrbinperl
Message-ID: <20020919150103.GI208696@lyta.hut.fi>
p4raw-id: //depot/perl@17926
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 32 |
1 files changed, 26 insertions, 6 deletions
@@ -7433,13 +7433,33 @@ echo " " if $test -d /usr/bin -a "X$installbin" != X/usr/bin; then $cat <<EOM Many scripts expect perl to be installed as /usr/bin/perl. -I can install the perl you are about to compile also as /usr/bin/perl -(in addition to $installbin/perl). + +If you want to, I can install the perl you are about to compile +as /usr/bin/perl (in addition to $bin/perl). EOM - case "$installusrbinperl" in - "$undef"|[nN]*) dflt='n';; - *) dflt='y';; - esac + if test -f /usr/bin/perl; then + $cat <<EOM + +However, please note that because you already have a /usr/bin/perl, +overwriting that with a new Perl would very probably cause problems. +Therefore I'm assuming you don't want to do that (unless you insist). + +EOM + case "$installusrbinperl" in + "$define"|[yY]*) dflt='y';; + *) dflt='n';; + esac + else + $cat <<EOM + +Since you don't have a /usr/bin/perl I'm assuming creating one is okay. + +EOM + case "$installusrbinperl" in + "$undef"|[nN]*) dflt='n';; + *) dflt='y';; + esac + fi rp="Do you want to install perl as /usr/bin/perl?" . ./myread case "$ans" in |