path: root/mcon/U/enablenls.U
diff options
Diffstat (limited to 'mcon/U/enablenls.U')
1 files changed, 61 insertions, 0 deletions
diff --git a/mcon/U/enablenls.U b/mcon/U/enablenls.U
new file mode 100644
index 0000000..164a236
--- /dev/null
+++ b/mcon/U/enablenls.U
@@ -0,0 +1,61 @@
+?RCS: $Id: enablenls.U 167 2013-05-08 17:58:00Z rmanfredi $
+?RCS: Copyright (c) 2006, Christian Biere
+?RCS: You may redistribute only under the terms of the Artistic License,
+?RCS: as specified in the README file that comes with the distribution.
+?RCS: You may reuse parts of this distribution only within the terms of
+?RCS: that same Artistic License; a copy of which may be found at the root
+?RCS: of the source tree for dist 4.0.
+?MAKE:enablenls d_enablenls: Myread Setvar cat package d_nls
+?MAKE: -pick add $@ %<
+?S: This variable holds 'true' or 'false' depending on whether we're
+?S: going to enable Native Language Support (NLS).
+?S: This variable conditionally defines ENABLE_NLS.
+?C: This symbol, when defines, indicates that the program should enable
+?C: Native Language Support (NLS) for internationalization (I18N).
+?H:#$d_enablenls ENABLE_NLS /**/
+?LINT:set d_enablenls
+: determine whether to enable NLS
+echo " "
+case "$d_nls" in
+ echo "I won't enable NLS since you don't have that feature." >&4
+ val="$undef"
+ ;;
+ $cat <<EOM
+I can compile $package with Native Language Support (NLS), which
+will enable internationalization of some messages, provided there is
+a suitable translation available.
+ dflt=y
+ case "$d_enablenls" in
+ "$undef") dflt=n;;
+ esac
+ rp='Shall I enable NLS'
+ . ./myread
+ case "$ans" in
+ y) val="$define";;
+ *) val="$undef";;
+ esac
+ ;;
+set d_enablenls
+eval $setvar
+@if enablenls
+case "$d_enablenls" in
+"$define") enablenls=true;;
+"$undef") enablenls=false;;