1 --- a/configure 2015-10-12 21:30:47.000000000 +0200
2 +++ b/configure 2016-10-30 14:46:56.143484807 +0100
4 -n : to prevent overwriting of an existing mkrules file
6 -c <cc> : to set the C compiler
8 +-m <BITS> : to set the built binaries bitness
10 +-P <PROC> : to set the processor name for userland
12 +-K <KPROC> : to set the processor name for kernelland
14 env ksh -c builtin 1>&- 2>&-
17 [d:debug?enable debugging]
18 [p:prefix?set prefix for installation]:[prefix]
19 [c:cc:?set C compiler]:[cc]
20 + [m:BITS:?set custom bitness]:[BITS]
21 + [P:PROC:?set custom PROC name]:[PROC]
22 + [K:KPROC:?set custom KPROC name]:[KERNEL]
25 getopts_out=`getopts "h(help)" xx "--help" 2>&1`
26 if [ "$getopts_out" == "" ]; then
27 - USAGE=$':c:dp:(prefix)h(help)n'
28 + USAGE=$':c:m:P:K:dp:(prefix)h(help)n'
31 - help="Usage: ./configure [-p <prefix-dir>] [-c <cc>] [-d] [-n] [lib]
32 + USAGE=$':c:m:P:K:dp:hn'
33 + help="Usage: ./configure [-p <prefix-dir>] [-c <cc>] [-m <BITS>] [-d] [-n] [lib]
34 <lib> : 'curses' for Sun's libcurses (fallback)
35 'ncurses' for libncurses (default)
36 -p <dir> : to set the installation directory to <dir>
37 -d : to enable debugging
38 -n : to prevent overwriting of an existing mkrules file
39 -c <cc> : to set the C compiler
40 +-m <BITS>: to set the built binaries bitness
41 +-P <PROC> : to set the processor name for userland
42 +-K <KPROC> : to set the processor name for kernelland
52 + K) KERNEL="$OPTARG";;
58 DEFS = $defs -DSOLARIS=$solaris
60 -C_CFLAGS = $cflags \$(DEFS) \$(INCDIRS) $LFS_CFLAGS
61 +C_CFLAGS = $cflags -m$BITS \$(DEFS) \$(INCDIRS) $LFS_CFLAGS
62 D_CFLAGS = $cflags $d_cflags \$(DEFS) $LFS_CFLAGS