Commit | Line | Data |
---|---|---|
959f3c4c JH |
1 | ?RCS: $Id$ |
2 | ?RCS: | |
3 | ?RCS: Copyright (c) 1998 Jarkko Hietaniemi | |
4 | ?RCS: | |
5 | ?RCS: You may distribute under the terms of either the GNU General Public | |
6 | ?RCS: License or the Artistic License, as specified in the README file. | |
7 | ?RCS: | |
edd6115f | 8 | ?MAKE:usemultiplicity: useithreads Myread Oldconfig Setvar |
959f3c4c JH |
9 | ?MAKE: -pick add $@ %< |
10 | ?Y:TOP | |
11 | ?S:usemultiplicity: | |
12 | ?S: This variable conditionally defines the MULTIPLICITY symbol, | |
13 | ?S: and indicates that Perl should be built to use multiplicity. | |
14 | ?S:. | |
15 | ?C:MULTIPLICITY: | |
16 | ?C: This symbol, if defined, indicates that Perl should | |
17 | ?C: be built to use multiplicity. | |
18 | ?C:. | |
d088635c | 19 | ?H:?%<:#ifndef MULTIPLICITY |
a38738d1 JH |
20 | ?H:?%<:#$usemultiplicity MULTIPLICITY /**/ |
21 | ?H:?%<:#endif | |
959f3c4c JH |
22 | ?H:. |
23 | ?LINT:set usemultiplicity | |
24 | ?INIT:: set usemultiplicity on the Configure command line to enable multiplicity. | |
25 | ?X: We should really have some explanatory text here, and some | |
26 | ?X: automatic setting of sensible defaults. | |
27 | cat <<EOM | |
28 | ||
29 | Perl can be built so that multiple Perl interpreters can coexist | |
edd6115f JH |
30 | within the same Perl executable. |
31 | EOM | |
959f3c4c | 32 | |
edd6115f JH |
33 | case "$useithreads" in |
34 | $define) | |
35 | cat <<EOM | |
36 | This multiple interpreter support is required for interpreter-based threads. | |
959f3c4c | 37 | EOM |
edd6115f JH |
38 | val="$define" |
39 | ;; | |
635fdf3e | 40 | *) case "$usemultiplicity" in |
edd6115f JH |
41 | $define|true|[yY]*) dflt='y';; |
42 | *) dflt='n';; | |
43 | esac | |
0fdea05a | 44 | echo " " |
635fdf3e | 45 | echo "If this doesn't make any sense to you, just accept the default '$dflt'." |
edd6115f JH |
46 | rp='Build Perl for multiplicity?' |
47 | . ./myread | |
48 | case "$ans" in | |
49 | y|Y) val="$define" ;; | |
50 | *) val="$undef" ;; | |
51 | esac | |
52 | ;; | |
959f3c4c JH |
53 | esac |
54 | set usemultiplicity | |
edd6115f | 55 | eval $setvar |
959f3c4c | 56 |