diff options
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 9 |
1 files changed, 6 insertions, 3 deletions
| @@ -145,7 +145,7 @@ case "$1" in | |||
| 145 | --sysconfdir=*) echo "ignored option: --sysconfdir" | tee -a configure.log; shift ;; | 145 | --sysconfdir=*) echo "ignored option: --sysconfdir" | tee -a configure.log; shift ;; |
| 146 | --localstatedir=*) echo "ignored option: --localstatedir" | tee -a configure.log; shift ;; | 146 | --localstatedir=*) echo "ignored option: --localstatedir" | tee -a configure.log; shift ;; |
| 147 | -c* | --const) zconst=1; shift ;; | 147 | -c* | --const) zconst=1; shift ;; |
| 148 | -w* | --warn) warn=1; shift ;; | 148 | -w* | --warn) warn=$((warn + 1)); shift ;; |
| 149 | -d* | --debug) debug=1; shift ;; | 149 | -d* | --debug) debug=1; shift ;; |
| 150 | --sanitize) address=1; shift ;; | 150 | --sanitize) address=1; shift ;; |
| 151 | --address) address=1; shift ;; | 151 | --address) address=1; shift ;; |
| @@ -251,11 +251,14 @@ if test "$gcc" -eq 1 && ($cc -c $test.c) >> configure.log 2>&1; then | |||
| 251 | CFLAGS="${CFLAGS} -m64" | 251 | CFLAGS="${CFLAGS} -m64" |
| 252 | SFLAGS="${SFLAGS} -m64" | 252 | SFLAGS="${SFLAGS} -m64" |
| 253 | fi | 253 | fi |
| 254 | if test "$warn" -eq 1; then | 254 | if test "$warn" -ge 1; then |
| 255 | CFLAGS="${CFLAGS} -Wall -Wextra" | 255 | CFLAGS="${CFLAGS} -Wall -Wextra" |
| 256 | if test "$warn" -ge 2; then | ||
| 257 | CFLAGS="${CFLAGS} -Wconversion -Wshadow -Wundef" | ||
| 258 | fi | ||
| 256 | fi | 259 | fi |
| 257 | if test "$zconst" -eq 1; then | 260 | if test "$zconst" -eq 1; then |
| 258 | if test "$warn" -eq 1; then | 261 | if test "$warn" -ge 1; then |
| 259 | CFLAGS="${CFLAGS} -Wcast-qual" | 262 | CFLAGS="${CFLAGS} -Wcast-qual" |
| 260 | fi | 263 | fi |
| 261 | CFLAGS="${CFLAGS} -DZLIB_CONST" | 264 | CFLAGS="${CFLAGS} -DZLIB_CONST" |
