aboutsummaryrefslogtreecommitdiff
path: root/configure.sh
diff options
context:
space:
mode:
authorGavin Howard <gavin@yzena.com>2022-07-23 05:37:44 -0600
committerGavin Howard <gavin@yzena.com>2022-07-23 05:37:44 -0600
commit8d8935e44bba15e96e8db83536ba54cd1deab398 (patch)
tree2f9ff103ee9b064f066cda5d0a80ae689d7eb11c /configure.sh
parent6035d39a68e6078f578823fe407892930fe0d955 (diff)
downloadbc-8d8935e44bba15e96e8db83536ba54cd1deab398.tar.gz
Make sure the warning is not printed if NLS is disabled
Signed-off-by: Gavin Howard <gavin@yzena.com>
Diffstat (limited to 'configure.sh')
-rwxr-xr-xconfigure.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.sh b/configure.sh
index 36d81da5..56f2e7c6 100755
--- a/configure.sh
+++ b/configure.sh
@@ -1872,7 +1872,7 @@ printf 'dc.digit_clamp=%s\n' "$dc_default_digit_clamp"
# default prefix is used, as well, so as not to panic users just installing by
# hand. I believe this will be okay because NLSPATH is usually in /usr and the
# default prefix is /usr/local, so they'll be close that way.
-if [ "${NLSPATH#$PREFIX}" = "${NLSPATH}" ] && [ "$defprefix" -eq 0 ]; then
+if [ "$nls" -ne 0 ] && [ "${NLSPATH#$PREFIX}" = "${NLSPATH}" ] && [ "$defprefix" -eq 0 ]; then
printf '\n********************************************************************************\n\n'
printf 'WARNING: Locales will *NOT* be installed in $PREFIX (%s).\n' "$PREFIX"
printf '\n'