summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-11-06 21:06:01 +0100
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2008-11-06 21:41:21 +0100
commitbb9dfbde44523d07a840f02e966f299568ad07f3 (patch)
tree4b508661220fd1f5833472b0bc4180cb65800687 /configure
parentd016ef1e5d42bce1775b7b39e3dab89f392f27d7 (diff)
downloadautomake-bb9dfbde44523d07a840f02e966f299568ad07f3.tar.gz
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 <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure
index 9452a620f..73994bd03 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