add symbols-nerd fonts
[oi-userland.git] / components / sysutils / sysstat / patches / 01-configure.patch
bloba05b6f71d3dfec047757dbf77fed8e494645ab28
1 --- a/configure 2015-10-12 21:30:47.000000000 +0200
2 +++ b/configure 2016-10-30 14:46:56.143484807 +0100
3 @@ -47,6 +47,12 @@
4 -n : to prevent overwriting of an existing mkrules file
5 --cc <cc> :
6 -c <cc> : to set the C compiler
7 +--BITS <BITS> :
8 +-m <BITS> : to set the built binaries bitness
9 +--PROC <PROC> :
10 +-P <PROC> : to set the processor name for userland
11 +--KPROC <KPROC>:
12 +-K <KPROC> : to set the processor name for kernelland
14 env ksh -c builtin 1>&- 2>&-
15 ksh93=$?
16 @@ -57,20 +63,26 @@
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]
24 else
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'
29 else
30 - USAGE=$':c:dp:hn'
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
46 @@ -80,6 +92,9 @@
47 x=$(( $OPTIND - 2))
48 case $opt in
49 c) CC="$OPTARG";;
50 + m) BITS="$OPTARG";;
51 + P) PROC="$OPTARG";;
52 + K) KERNEL="$OPTARG";;
53 d) debug=1 ;;
54 p) prefix="$OPTARG";;
55 n) nooverwrite=1;;
56 @@ -251,7 +266,7 @@
57 CC = $CC
58 DEFS = $defs -DSOLARIS=$solaris
59 INCDIRS = $incdirs
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
63 PROC = $PROC
64 KPROC = $KERNEL