This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Make Configure support PERL_BINCOMPAT_5005.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 29 Jul 1999 21:04:02 +0000 (21:04 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 29 Jul 1999 21:04:02 +0000 (21:04 +0000)
p4raw-id: //depot/metaconfig@3835

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

diff --git a/U/perl/bincompat5005.U b/U/perl/bincompat5005.U
new file mode 100644 (file)
index 0000000..0de4ee9
--- /dev/null
@@ -0,0 +1,60 @@
+?RCS: Copyright (c) 1996, Chip Salzenberg
+?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:
+?MAKE:bincompat5005 d_bincompat5005: Oldconfig Myread Setvar cat \
+       usethreads usemultiplicity
+?MAKE: -pick add $@ %<
+?Y:TOP
+?S:bincompat5005:
+?S:    This variable contains y if Perl 5.006 should be binary-compatible
+?S:    with Perl 5.005.
+?S:.
+?S:d_bincompat5005:
+?S:    This variable conditionally defines BINCOMPAT5005 so that embed.h
+?S:    can take special action if Perl 5.006 should be binary-compatible
+?S:    with Perl 5.005.  This is impossible for builds that use features
+?S:    like threads and multiplicity it is always $undef for those versions.
+?S:.
+?C:PERL_BINCOMPAT_5005:
+?C:    This symbol, if defined, indicates that Perl 5.006 should be
+?C:    binary-compatible with Perl 5.005.  This is impossible for builds
+?C:    that use features like threads and multiplicity it is always $undef
+?C:    for those versions.
+?C:.
+?H:#$d_bincompat5005 PERL_BINCOMPAT_5005                       /**/
+?H:.
+?LINT: set d_bincompat5005
+
+: Binary compatibility with 5.005 is not possible for builds
+: with advanced features
+case "$usethreads$usemultiplicity" in
+*define*) bincompat5005="$undef" ;;
+*)     $cat <<EOM
+
+Perl 5.006 can be compiled for binary compatibility with 5.005.
+If you decide to do so, you will be able to continue using most
+of the extensions that were compiled for Perl 5.005.
+
+EOM
+       case "$d_bincompat5005" in
+       "$undef") dflt=n ;;
+       *) dflt=y ;;
+       esac
+       rp='Binary compatibility with Perl 5.005?'
+       . ./myread
+       case "$ans" in
+       y*) val="$define" ;;
+       *)  val="$undef" ;;
+       esac
+       set d_bincompat5005
+       eval $setvar
+       case "$d_bincompat5005" in
+       "$define") bincompat5005="$define" ;;
+       *) bincompat5005="$undef" ;;
+       esac
+       ;;
+esac
+
+