| @@ -1,20 +1,18 @@ | | | @@ -1,20 +1,18 @@ |
1 | # $NetBSD: install_threads.tmpl,v 1.1 2005/08/12 19:59:03 jlam Exp $ | | 1 | # $NetBSD: install_threads.tmpl,v 1.2 2016/12/12 16:08:00 wiz Exp $ |
2 | # | | 2 | # |
3 | # Require the presence of a pkgsrc Perl installation that supports threads | | 3 | # Require the presence of a pkgsrc Perl installation that supports threads |
4 | # during the PRE-INSTALL stage, otherwise we bail out. | | 4 | # during the PRE-INSTALL stage, otherwise we bail out. |
5 | | | 5 | |
6 | PERL5="@PERL5@" | | | |
7 | | | | |
8 | case ${STAGE} in | | 6 | case ${STAGE} in |
9 | PRE-INSTALL) | | 7 | PRE-INSTALL) |
10 | if [ ! -x "${PERL5}" ]; then | | 8 | if [ ! -x "${PERL5}" ]; then |
11 | ${ECHO} "==> ${PERL5} does not exist." 1>&2 | | 9 | ${ECHO} "==> ${PERL5} does not exist." 1>&2 |
12 | exit 1 | | 10 | exit 1 |
13 | fi | | 11 | fi |
14 | eval `${PERL5} -V:usethreads` | | 12 | eval `${PERL5} -V:usethreads` |
15 | case $usethreads in | | 13 | case $usethreads in |
16 | define*|true|[yY]*) # possible "yes" values in Perl Config.pm | | 14 | define*|true|[yY]*) # possible "yes" values in Perl Config.pm |
17 | # We found what we were looking for (a threaded perl) so | | 15 | # We found what we were looking for (a threaded perl) so |
18 | # do nothing. | | 16 | # do nothing. |
19 | ;; | | 17 | ;; |
20 | *) | | 18 | *) |