| 88 |
exit 1 |
exit 1 |
| 89 |
fi |
fi |
| 90 |
|
|
| 91 |
# Find which optional facilities are available |
# Find which optional facilities are available. In some Windows environments |
| 92 |
|
# the output of pcretest -C has CRLF at the end of each line, but the shell |
| 93 |
|
# strips only linefeeds from the output of a `backquoted` command. Hence the |
| 94 |
|
# alternative patterns. |
| 95 |
|
|
| 96 |
case `$sim ./pcretest -C | $sim ./pcregrep 'Internal link size'` in |
case `$sim ./pcretest -C | $sim ./pcregrep 'Internal link size'` in |
| 97 |
*2) link_size=2;; |
*2|*2[[:space:]]) link_size=2;; |
| 98 |
*3) link_size=3;; |
*3|*3[[:space:]]) link_size=3;; |
| 99 |
*4) link_size=4;; |
*4|*4[[:space:]]) link_size=4;; |
| 100 |
*) echo "Failed to find internal link size"; exit 1;; |
*) echo "Failed to find internal link size"; exit 1;; |
| 101 |
esac |
esac |
| 102 |
|
|
| 297 |
fi |
fi |
| 298 |
done |
done |
| 299 |
else |
else |
| 300 |
echo "Cannot test locale-specific features - neither the 'fr_FR' nor the" |
echo "Cannot test locale-specific features - none of the 'fr_FR', 'fr' or" |
| 301 |
echo "'french' locale exists, or the \"locale\" command is not available" |
echo "'french' locales exist, or the \"locale\" command is not available" |
| 302 |
echo "to check for them." |
echo "to check for them." |
| 303 |
echo " " |
echo " " |
| 304 |
fi |
fi |