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:
parent
6c02c37e52
commit
f4f4f64492
10
Build.sh
10
Build.sh
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user