X-Git-Url: http://git.shiar.net/netris.git/blobdiff_plain/dad72a6bf82c2f6d9f857499711827e425e1e279..HEAD:/configure diff --git a/configure b/configure index c3a63dc..6ae80bb 100755 --- a/configure +++ b/configure @@ -55,6 +55,10 @@ while [ $# -ge 1 ]; do --curses-hack) CURSES_HACK=true ;; + --lang) + lang="$1" + shift + ;; *) cat << "END" Usage: ./configure [options...] @@ -65,6 +69,7 @@ Usage: ./configure [options...] --cextra : Set extra C flags --lextra : Set extra linker flags --curses-hack: Disable scroll-optimization for broken curses + --lang : Preferred interface language (default "en") END exit 1 ;; @@ -135,6 +140,13 @@ fi rm -f test.c test.o a.out +test -z "$lang" && lang=en +MSG_FILE=msg.$lang.h +if [ ! -f $MSG_FILE ]; then + echo "Error: $MSG_FILE not found" + exit +fi + echo "Creating config.mak" cat > config.mak << END ### Automatically generated by ./configure ### @@ -145,6 +157,7 @@ CEXTRA = $CEXTRA LEXTRA = $LEXTRA LFLAGS = $LEXTRA $LFLAGS CFLAGS = \$(CEXTRA) \$(COPT) +MSG_FILE = $MSG_FILE END echo "Creating config.h"