From: Yitzchak Scott-Thoennes Date: Tue, 6 Aug 2002 04:28:15 +0000 (+0000) Subject: [perl #16000] Configure -Dstatic_ext=foo builds foo as both static and dynamic X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=736accd3cd04ba6a7a2bd59103c2b280027984c6;p=p5sagit%2Fp5-mst-13.2.git [perl #16000] Configure -Dstatic_ext=foo builds foo as both static and dynamic From: Yitzchak Scott-Thoennes (via RT) Message-id: p4raw-id: //depot/perl@17698 --- diff --git a/Configure b/Configure index 5468749..03b4c7d 100755 --- a/Configure +++ b/Configure @@ -19424,7 +19424,19 @@ Note that DynaLoader is always built and need not be mentioned here. EOM case "$dynamic_ext" in - '') dflt="$avail_ext" ;; + '') + : Exclude those listed in static_ext + dflt='' + for xxx in $avail_ext; do + case " $static_ext " in + *" $xxx "*) ;; + *) dflt="$dflt $xxx" ;; + esac + done + set X $dflt + shift + dflt="$*" + ;; *) dflt="$dynamic_ext" # Perhaps we are reusing an old out-of-date config.sh. case "$hint" in