summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-04-28 18:44:15 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-04-28 18:44:15 +0000
commit3b777bb48ecd6a599e86393b690784822a7a696f (patch)
tree116536d1a09aa36f161654b95c270e6c6c52e6a5 /Configure
parentdf0deb90068dea6e06bd6632928a2926975901ce (diff)
downloadperl-3b777bb48ecd6a599e86393b690784822a7a696f.tar.gz
support additional library locations via $Config{otherlibdirs}
(from Andy Dougherty) p4raw-id: //depot/perl@6001
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure39
1 files changed, 39 insertions, 0 deletions
diff --git a/Configure b/Configure
index 7c5c134069..a271f8c904 100755
--- a/Configure
+++ b/Configure
@@ -779,6 +779,8 @@ hostcat=''
passcat=''
orderlib=''
ranlib=''
+d_perl_otherlibdirs=''
+otherlibdirs=''
package=''
spackage=''
pager=''
@@ -5370,6 +5372,41 @@ else
installvendorarch="$vendorarchexp"
fi
+: Final catch-all directories to search
+$cat <<EOM
+
+Lastly, you can have perl look in other directories for extensions and
+modules in addition to those already specified.
+These directories will be searched after
+ $sitearch
+ $sitelib
+EOM
+test X"$vendorlib" != "X" && echo ' ' $vendorlib
+test X"$vendorarch" != "X" && echo ' ' $vendorarch
+echo ' '
+case "$otherlibdirs" in
+''|' ') dflt='none' ;;
+*) dflt="$otherlibdirs" ;;
+esac
+$cat <<EOM
+Enter a colon-separated set of extra paths to include in perl's @INC
+search path, or enter 'none' for no extra paths.
+
+EOM
+
+rp='Colon-separated list of additional directories for perl to search?'
+. ./myread
+case "$ans" in
+' '|''|none) otherlibdirs=' ' ;;
+*) otherlibdirs="$ans" ;;
+esac
+case "$otherlibdirs" in
+' ') val=$undef ;;
+*) val=$define ;;
+esac
+set d_perl_otherlibdirs
+eval $setvar
+
: Cruising for prototypes
echo " "
echo "Checking out function prototypes..." >&4
@@ -15303,6 +15340,7 @@ d_oldsock='$d_oldsock'
d_open3='$d_open3'
d_pathconf='$d_pathconf'
d_pause='$d_pause'
+d_perl_otherlibdirs='$d_perl_otherlibdirs'
d_phostname='$d_phostname'
d_pipe='$d_pipe'
d_poll='$d_poll'
@@ -15661,6 +15699,7 @@ optimize='$optimize'
orderlib='$orderlib'
osname='$osname'
osvers='$osvers'
+otherlibdirs='$otherlibdirs'
package='$package'
pager='$pager'
passcat='$passcat'