diff options
Diffstat (limited to 'lib/Automake/Config.in')
-rw-r--r-- | lib/Automake/Config.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/Automake/Config.in b/lib/Automake/Config.in index fe6ef9d29..885e74e5d 100644 --- a/lib/Automake/Config.in +++ b/lib/Automake/Config.in @@ -33,7 +33,14 @@ our $PACKAGE_BUGREPORT = '@PACKAGE_BUGREPORT@'; our $VERSION = '@VERSION@'; our $RELEASE_YEAR = '@RELEASE_YEAR@'; our $libdir = '@datadir@/@PACKAGE@-@APIVERSION@'; -our $perl_threads = @PERL_THREADS@; + +our $perl_threads = 0; +# We need at least this version for CLONE support. +if (eval { require 5.007_002; }) + { + use Config; + $perl_threads = $Config{useithreads}; + } 1; |