Mailing List Archive

Checking for "usemultiplicity xor usethreads"
As a follow-up to a suggestion by theory on IRC:

Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 987852)
+++ Makefile.PL (working copy)
@@ -540,6 +540,17 @@
"Upgrade to Perl 5.8.0 or higher";
exit 1;
}
+
+ if ($Config{usemultiplicity} xor $Config{usethreads}) {
+ if ($build->mpm_is_threaded()) {
+ error "Please recompile Perl with -Duseithreads and ".
+ "-Dusemultiplicity";
+ } else {
+ error "Please recompile Perl with either -Duseithreads and ".
+ "-Dusemultiplicity or -Uuseithreads and -Uusemultiplicity";
+ }
+ exit 1;
+ }
}

sub system_sanity_check {

Is that worth committing?

Torsten Förtsch

--
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: Checking for "usemultiplicity xor usethreads" [ In reply to ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/31/10 16:26, Torsten Förtsch wrote:
> As a follow-up to a suggestion by theory on IRC:
>
> Index: Makefile.PL
> ===================================================================
> --- Makefile.PL (revision 987852)
> +++ Makefile.PL (working copy)
> @@ -540,6 +540,17 @@
> "Upgrade to Perl 5.8.0 or higher";
> exit 1;
> }
> +
> + if ($Config{usemultiplicity} xor $Config{usethreads}) {
> + if ($build->mpm_is_threaded()) {
> + error "Please recompile Perl with -Duseithreads and ".
> + "-Dusemultiplicity";
> + } else {
> + error "Please recompile Perl with either -Duseithreads and ".
> + "-Dusemultiplicity or -Uuseithreads and -Uusemultiplicity";
> + }
> + exit 1;
> + }
> }
>
> sub system_sanity_check {
>
> Is that worth committing?

absolutely. Its not the 1st time the question has come up.



- --
- ------------------------------------------------------------------------
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70 3F8C 75B8 8FFB DB9B 8C1C
Philip M. Gollucci (pgollucci@p6m7g8.com) c: 703.336.9354
VP Apache Infrastructure; Member, Apache Software Foundation
Committer, FreeBSD Foundation
Consultant, P6M7G8 Inc.
Sr. System Admin, Ridecharge Inc.

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iD8DBQFMfZMAdbiP+9ubjBwRAkblAJ9OuJl1C3bS32krJc2VTKvI8h10iwCgjonk
HQILrQ3BUTzseBVX8tzmbAk=
=/afM
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org