summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-07-30 01:32:02 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-30 01:32:02 +0000
commit6fcddf3b8cfbfc09f45f150bd53438e0f01ec73f (patch)
treee4201dc99a0f2b3d09a88441858a7a8ba16f4678 /Configure
parentaa8b85def9003d4bba549b6080f6f4864f347f13 (diff)
downloadperl-6fcddf3b8cfbfc09f45f150bd53438e0f01ec73f.tar.gz
Add the support of asking for extra modules or bundles of modules
to be fetched from the CPAN and installed as a part of the Perl build process. None of this installation is yet really done; only the list is asked, and saved away in extras.lst for the build and installation process to worry about later. p4raw-id: //depot/perl@11490
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure55
1 files changed, 54 insertions, 1 deletions
diff --git a/Configure b/Configure
index 7dc8022d1a..8c86068ce1 100755
--- a/Configure
+++ b/Configure
@@ -20,7 +20,7 @@
# $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $
#
-# Generated on Sun Jul 29 20:50:18 EET DST 2001 [metaconfig 3.0 PL70]
+# Generated on Mon Jul 30 05:31:00 EET DST 2001 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -178,6 +178,7 @@ nonxs_ext=''
static_ext=''
useopcode=''
useposix=''
+extras=''
d_bsd=''
d_eunice=''
d_xenix=''
@@ -6764,6 +6765,57 @@ else
installbin="$binexp"
fi
+echo " "
+echo "Any extra modules..." >&4
+case "$extras" in
+'') dflt='y';;
+*) dflt='n';;
+esac
+cat <<EOM
+Perl can be built with extra modules or bundles of modules which
+will be fetched from the CPAN and installed alongside Perl.
+
+Notice that you will need access to the CPAN; either via the Internet,
+or a local copy, for example a CD-ROM or a local CPAN mirror. (You will
+be asked later to configure the CPAN.pm module which will in turn do
+the installation of the rest of the extra modules or bundles.)
+
+Notice also that if the modules require any external software such as
+libraries (the libz library for the Compress::Zlib module, for example)
+you *NEED* to have any such external software already installed, this
+configuration process will not install such things for you.
+
+If this doesn't make any sense to you, just accept the default '$dflt'.
+EOM
+rp='Install any extra modules (y or n) ?'
+. ./myread
+case "$ans" in
+y|Y)
+ cat <<EOM
+
+Please list any extra modules or bundles to be installed from CPAN,
+with spaces between the names. The names can be in any format the
+'install' command of CPAN.pm will understand. (Answer 'none' the
+quotes, to install no extra modules or bundles.)
+EOM
+ rp='Extras?'
+ dflt="$extras"
+ . ./myread
+ extras="$ans"
+esac
+case "$extras" in
+''|'none')
+ val=''
+ $rm -f ../extras.lst
+ ;;
+*) echo "(Saving the list of extras for later...)"
+ echo $extras > ../extras.lst
+ ;;
+esac
+set extras
+eval $setvar
+echo " "
+
: Find perl5.005 or later.
echo "Looking for a previously installed perl5.005 or later... "
case "$perl5" in
@@ -16976,6 +17028,7 @@ eunicefix='$eunicefix'
exe_ext='$exe_ext'
expr='$expr'
extensions='$extensions'
+extras='$extras'
fflushNULL='$fflushNULL'
fflushall='$fflushall'
find='$find'