Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Dev

Checking for "usemultiplicity xor usethreads"

 

 

ModPerl dev RSS feed   Index | Next | Previous | View Threaded


torsten.foertsch at gmx

Aug 31, 2010, 9:26 AM

Post #1 of 2 (617 views)
Permalink
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 [at] perl
For additional commands, e-mail: dev-help [at] perl


pgollucci at p6m7g8

Aug 31, 2010, 4:40 PM

Post #2 of 2 (561 views)
Permalink
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 [at] p6m7g8) 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 [at] perl
For additional commands, e-mail: dev-help [at] perl

ModPerl dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.