if ‘-DMKSH_ASSUME_UTF8’, default HAVE_SETLOCALE_CTYPE to 0 since it’s

unused then anyway, to save two followup mirtoconf checks and headers
This commit is contained in:
tg 2008-11-11 21:52:51 +00:00
parent 6c02c37e52
commit f4f4f64492
1 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.369 2008/11/10 20:25:04 tg Exp $'
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.370 2008/11/11 21:52:51 tg Exp $'
#-
# Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
# CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NOPWNAM MKSH_NOVI
@ -378,6 +378,14 @@ UWIN*)
;;
esac
case " $CPPFLAGS " in
*\ -DMKSH_ASSUME_UTF8=0\ *)
;;
*\ -DMKSH_ASSUME_UTF8*)
: ${HAVE_SETLOCALE_CTYPE=0}
;;
esac
if test -n "$warn"; then
echo "Warning: mksh has not yet been ported to or tested on your" >&2
echo "operating system '$TARGET_OS'$warn. If you can provide" >&2