This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add a Configure question for mad (Misc Attribute Decoration)
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 8 Mar 2006 08:06:53 +0000 (08:06 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Wed, 8 Mar 2006 08:06:53 +0000 (08:06 +0000)
Backport for #27407

p4raw-id: //depot/metaconfig@27409

U/perl/mad.U [new file with mode: 0644]

diff --git a/U/perl/mad.U b/U/perl/mad.U
new file mode 100644 (file)
index 0000000..5e748ea
--- /dev/null
@@ -0,0 +1,44 @@
+?RCS: $Id: mad.U,v $
+?RCS:
+?RCS: Copyright (c) 2006 H.Merijn Brand, Nicholas Clark
+?RCS:
+?RCS: You may distribute under the terms of either the GNU General Public
+?RCS: License or the Artistic License, as specified in the README file.
+?RCS:
+?RCS: $Log: mad.U,v $
+?RCS:
+?MAKE:mad: Myread Setvar
+?MAKE: -pick add $@ %<
+?S:mad:
+?S:    This variable indicates that the Misc Attribute Definition code is to
+?S:    be compiled.
+?S:.
+?C:PERL_MAD:
+?C:    This symbol, if defined, indicates that the Misc Attribution
+?C:    Declaration code should be conditionally compiled.
+?C:.
+?H:#$mad       PERL_MAD                /**/
+?H:.
+?LINT:set mad
+
+case "$mad" in
+$define|true|[yY]*)    dflt='y' ;;
+*)                     dflt='n' ;;
+esac
+cat <<EOM
+
+Would you like to build with Misc Attribute Decoration? This is development
+work leading to a Perl 5 to Perl 6 convertor, which imposes a space and speed
+overhead on the interpreter.
+
+If this doesn't make any sense to you, just accept the default '$dflt'.
+EOM
+rp='Build Perl with MAD?'
+. ./myread
+case "$ans" in
+y|Y)   val="$define" ;;
+*)     val="$undef"  ;;
+esac
+set mad
+eval $setvar
+