[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-
From: |
Ralf Wildenhues |
Subject: |
[Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-220-gbb9dfbd |
Date: |
Thu, 06 Nov 2008 20:41:51 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".
http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=bb9dfbde44523d07a840f02e966f299568ad07f3
The branch, master has been updated
via bb9dfbde44523d07a840f02e966f299568ad07f3 (commit)
from d016ef1e5d42bce1775b7b39e3dab89f392f27d7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bb9dfbde44523d07a840f02e966f299568ad07f3
Author: Ralf Wildenhues <address@hidden>
Date: Thu Nov 6 21:06:01 2008 +0100
Cope with absent Perl modules threads and Thread::Queue.
* automake.in: Instead of `use threads', use `require threads;
import threads' inside a BEGIN section. Likewise for
Thread::Queue.
* lib/Automake/ChannelDefs.pm (Automake::ChannelDefs): Likewise.
* lib/Automake/tests/Condition-t.pl: Likewise.
* lib/Automake/tests/DisjConditions-t.pl: Likewise.
* configure.ac: Likewise, use `require' and `import'.
Report by Eric Blake, fix suggested by Ben Pfaff.
Signed-off-by: Ralf Wildenhues <address@hidden>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 12 ++++++++++++
automake.in | 15 ++++++++++-----
configure | 6 ++++--
configure.ac | 6 ++++--
lib/Automake/ChannelDefs.pm | 12 ++++++++----
lib/Automake/tests/Condition-t.pl | 3 ++-
lib/Automake/tests/DisjConditions-t.pl | 3 ++-
7 files changed, 42 insertions(+), 15 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c5ed954..abbe035 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2008-11-06 Ralf Wildenhues <address@hidden>
+
+ Cope with absent Perl modules threads and Thread::Queue.
+ * automake.in: Instead of `use threads', use `require threads;
+ import threads' inside a BEGIN section. Likewise for
+ Thread::Queue.
+ * lib/Automake/ChannelDefs.pm (Automake::ChannelDefs): Likewise.
+ * lib/Automake/tests/Condition-t.pl: Likewise.
+ * lib/Automake/tests/DisjConditions-t.pl: Likewise.
+ * configure.ac: Likewise, use `require' and `import'.
+ Report by Eric Blake, fix suggested by Ben Pfaff.
+
2008-11-04 Ralf Wildenhues <address@hidden>
Multiple 'make uninstall' should not fail even for TEXINFOS.
diff --git a/automake.in b/automake.in
index 147c4c3..5ae09c7 100755
--- a/automake.in
+++ b/automake.in
@@ -128,11 +128,16 @@ package Automake;
use strict;
use Automake::Config;
-if ($perl_threads)
- {
- use threads;
- use Thread::Queue;
- }
+BEGIN
+{
+ if ($perl_threads)
+ {
+ require threads;
+ import threads;
+ require Thread::Queue;
+ import Thread::Queue;
+ }
+}
use Automake::General;
use Automake::XFile;
use Automake::Channels;
diff --git a/configure b/configure
index 9452a62..73994bd 100755
--- a/configure
+++ b/configure
@@ -2390,8 +2390,10 @@ else
use Config;
if ($Config{useithreads})
{
- use threads;
- use Thread::Queue;
+ require threads;
+ import threads;
+ require Thread::Queue;
+ import Thread::Queue;
exit 0;
}
exit 1;' >&5 2>&1
diff --git a/configure.ac b/configure.ac
index 2bec317..664a260 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,8 +67,10 @@ AC_CACHE_CHECK([whether $PERL supports ithreads],
[am_cv_prog_PERL_ithreads],
use Config;
if ($Config{useithreads})
{
- use threads;
- use Thread::Queue;
+ require threads;
+ import threads;
+ require Thread::Queue;
+ import Thread::Queue;
exit 0;
}
exit 1;' >&AS_MESSAGE_LOG_FD 2>&1
diff --git a/lib/Automake/ChannelDefs.pm b/lib/Automake/ChannelDefs.pm
index afd701e..15362b5 100644
--- a/lib/Automake/ChannelDefs.pm
+++ b/lib/Automake/ChannelDefs.pm
@@ -16,10 +16,14 @@
package Automake::ChannelDefs;
use Automake::Config;
-if ($perl_threads)
- {
- use threads;
- }
+BEGIN
+{
+ if ($perl_threads)
+ {
+ require threads;
+ import threads;
+ }
+}
use Automake::Channels;
=head1 NAME
diff --git a/lib/Automake/tests/Condition-t.pl
b/lib/Automake/tests/Condition-t.pl
index 8b632fa..eb93396 100644
--- a/lib/Automake/tests/Condition-t.pl
+++ b/lib/Automake/tests/Condition-t.pl
@@ -20,7 +20,8 @@ BEGIN {
if (eval { require 5.007_002; } # for CLONE support
&& $Config{useithreads})
{
- use threads;
+ require threads;
+ import threads;
}
else
{
diff --git a/lib/Automake/tests/DisjConditions-t.pl
b/lib/Automake/tests/DisjConditions-t.pl
index 2b8ca3e..c30b5e2 100644
--- a/lib/Automake/tests/DisjConditions-t.pl
+++ b/lib/Automake/tests/DisjConditions-t.pl
@@ -20,7 +20,8 @@ BEGIN {
if (eval { require 5.007_002; } # for CLONE support
&& $Config{useithreads})
{
- use threads;
+ require threads;
+ import threads;
}
else
{
hooks/post-receive
--
GNU Automake
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Automake-commit] [SCM] GNU Automake branch, master, updated. Release-1-10-220-gbb9dfbd,
Ralf Wildenhues <=