summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-04-17 17:09:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-17 17:09:16 +0000
commit7a8675bc7c355f062650f283996d25b47996007d (patch)
treed9d812f1046a6a8fe5e955aa425273e71c9f21fa /Configure
parentd2e84f4c6d50974396b5eb49a584da41841a6138 (diff)
downloadperl-7a8675bc7c355f062650f283996d25b47996007d.tar.gz
Implement -Dnoextensions=... and -Donlyextensions=...
p4raw-id: //depot/perl@19253
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure42
1 files changed, 41 insertions, 1 deletions
diff --git a/Configure b/Configure
index 14bba08a6a..5099566284 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 Thu Apr 17 18:50:57 EET DST 2003 [metaconfig 3.0 PL70]
+# Generated on Thu Apr 17 20:57:08 EET DST 2003 [metaconfig 3.0 PL70]
# (with additional metaconfig patches by perlbug@perl.org)
cat >c1$$ <<EOF
@@ -20200,6 +20200,46 @@ set X $dynamic_ext $static_ext $nonxs_ext
shift
extensions="$*"
+case "$onlyextensions" in
+'') ;;
+*) keepextensions=''
+ echo "You have requested that only certains extensions be included..." >&4
+ for i in $onlyextensions; do
+ case " $extensions " in
+ *" $i "*)
+ echo "Keeping extension $i."
+ keepextensions="$keepextensions $i"
+ ;;
+ *) echo "Ignoring extension $i." ;;
+ esac
+ done
+ extensions="$keepextensions"
+ ;;
+esac
+
+case "$noextensions" in
+'') ;;
+*) keepextensions=''
+ echo "You have requested that certain extensions be ignored..." >&4
+ for i in $extensions; do
+ case " $i " in
+ " $noextensions ") echo "Ignoring extension $i." ;;
+ *) echo "Keeping extension $i.";
+ keepextensions="$keepextensions $i"
+ ;;
+ esac
+ done
+ extensions="$keepextensions"
+ ;;
+esac
+
+case "$extensions" in
+*"_File "*" Fcntl "*" IO "*) ;;
+*) echo "WARNING: Extensions DB_File or *DBM_File, Fcntl, and IO not configured." >&4
+ echo "WARNING: The Perl you are building will be quite crippled." >& 4
+ ;;
+esac
+
: Remove libraries needed only for extensions
: The appropriate ext/Foo/Makefile.PL will add them back in, if necessary.
: The exception is SunOS 4.x, which needs them.