| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.72 for GNU libmicrohttpd 1.0.6. |
| 4 |
# |
| 5 |
# Report bugs to <[email protected]>. |
| 6 |
# |
| 7 |
# |
| 8 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, |
| 9 |
# Inc. |
| 10 |
# |
| 11 |
# |
| 12 |
# This configure script is free software; the Free Software Foundation |
| 13 |
# gives unlimited permission to copy, distribute and modify it. |
| 14 |
## -------------------- ## |
| 15 |
## M4sh Initialization. ## |
| 16 |
## -------------------- ## |
| 17 |
|
| 18 |
# Be more Bourne compatible |
| 19 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 20 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 21 |
then : |
| 22 |
emulate sh |
| 23 |
NULLCMD=: |
| 24 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 |
# is contrary to our usage. Disable this feature. |
| 26 |
alias -g '${1+"$@"}'='"$@"' |
| 27 |
setopt NO_GLOB_SUBST |
| 28 |
else case e in #( |
| 29 |
e) case `(set -o) 2>/dev/null` in #( |
| 30 |
*posix*) : |
| 31 |
set -o posix ;; #( |
| 32 |
*) : |
| 33 |
;; |
| 34 |
esac ;; |
| 35 |
esac |
| 36 |
fi |
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
# Reset variables that may have inherited troublesome values from |
| 41 |
# the environment. |
| 42 |
|
| 43 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 44 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 45 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 46 |
# Quoting is to prevent editors from complaining about space-tab. |
| 47 |
as_nl=' |
| 48 |
' |
| 49 |
export as_nl |
| 50 |
IFS=" "" $as_nl" |
| 51 |
|
| 52 |
PS1='$ ' |
| 53 |
PS2='> ' |
| 54 |
PS4='+ ' |
| 55 |
|
| 56 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 57 |
LC_ALL=C |
| 58 |
export LC_ALL |
| 59 |
LANGUAGE=C |
| 60 |
export LANGUAGE |
| 61 |
|
| 62 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 63 |
# to be unset--not just set to an empty or harmless value--now, to |
| 64 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 65 |
# also avoids known problems related to "unset" and subshell syntax |
| 66 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 67 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 68 |
do eval test \${$as_var+y} \ |
| 69 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 70 |
done |
| 71 |
|
| 72 |
# Ensure that fds 0, 1, and 2 are open. |
| 73 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 74 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 75 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 76 |
|
| 77 |
# The user is always right. |
| 78 |
if ${PATH_SEPARATOR+false} :; then |
| 79 |
PATH_SEPARATOR=: |
| 80 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 81 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 82 |
PATH_SEPARATOR=';' |
| 83 |
} |
| 84 |
fi |
| 85 |
|
| 86 |
|
| 87 |
# Find who we are. Look in the path if we contain no directory separator. |
| 88 |
as_myself= |
| 89 |
case $0 in #(( |
| 90 |
*[\\/]* ) as_myself=$0 ;; |
| 91 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 92 |
for as_dir in $PATH |
| 93 |
do |
| 94 |
IFS=$as_save_IFS |
| 95 |
case $as_dir in #((( |
| 96 |
'') as_dir=./ ;; |
| 97 |
*/) ;; |
| 98 |
*) as_dir=$as_dir/ ;; |
| 99 |
esac |
| 100 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 101 |
done |
| 102 |
IFS=$as_save_IFS |
| 103 |
|
| 104 |
;; |
| 105 |
esac |
| 106 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 107 |
# in which case we are not to be found in the path. |
| 108 |
if test "x$as_myself" = x; then |
| 109 |
as_myself=$0 |
| 110 |
fi |
| 111 |
if test ! -f "$as_myself"; then |
| 112 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 113 |
exit 1 |
| 114 |
fi |
| 115 |
|
| 116 |
|
| 117 |
# Use a proper internal environment variable to ensure we don't fall |
| 118 |
# into an infinite loop, continuously re-executing ourselves. |
| 119 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 120 |
_as_can_reexec=no; export _as_can_reexec; |
| 121 |
# We cannot yet assume a decent shell, so we have to provide a |
| 122 |
# neutralization value for shells without unset; and this also |
| 123 |
# works around shells that cannot unset nonexistent variables. |
| 124 |
# Preserve -v and -x to the replacement shell. |
| 125 |
BASH_ENV=/dev/null |
| 126 |
ENV=/dev/null |
| 127 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 128 |
case $- in # (((( |
| 129 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 130 |
*v* ) as_opts=-v ;; |
| 131 |
*x* ) as_opts=-x ;; |
| 132 |
* ) as_opts= ;; |
| 133 |
esac |
| 134 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 135 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 136 |
# out after a failed 'exec'. |
| 137 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 138 |
exit 255 |
| 139 |
fi |
| 140 |
# We don't want this to propagate to other subprocesses. |
| 141 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 142 |
if test "x$CONFIG_SHELL" = x; then |
| 143 |
as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 144 |
then : |
| 145 |
emulate sh |
| 146 |
NULLCMD=: |
| 147 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 148 |
# is contrary to our usage. Disable this feature. |
| 149 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 150 |
setopt NO_GLOB_SUBST |
| 151 |
else case e in #( |
| 152 |
e) case \`(set -o) 2>/dev/null\` in #( |
| 153 |
*posix*) : |
| 154 |
set -o posix ;; #( |
| 155 |
*) : |
| 156 |
;; |
| 157 |
esac ;; |
| 158 |
esac |
| 159 |
fi |
| 160 |
" |
| 161 |
as_required="as_fn_return () { (exit \$1); } |
| 162 |
as_fn_success () { as_fn_return 0; } |
| 163 |
as_fn_failure () { as_fn_return 1; } |
| 164 |
as_fn_ret_success () { return 0; } |
| 165 |
as_fn_ret_failure () { return 1; } |
| 166 |
|
| 167 |
exitcode=0 |
| 168 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 169 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 170 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 171 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 172 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 173 |
then : |
| 174 |
|
| 175 |
else case e in #( |
| 176 |
e) exitcode=1; echo positional parameters were not saved. ;; |
| 177 |
esac |
| 178 |
fi |
| 179 |
test x\$exitcode = x0 || exit 1 |
| 180 |
blah=\$(echo \$(echo blah)) |
| 181 |
test x\"\$blah\" = xblah || exit 1 |
| 182 |
test -x / || exit 1" |
| 183 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 184 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 185 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 186 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 187 |
test \$(( 1 + 1 )) = 2 || exit 1 |
| 188 |
|
| 189 |
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( |
| 190 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 191 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 192 |
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO |
| 193 |
PATH=/empty FPATH=/empty; export PATH FPATH |
| 194 |
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ |
| 195 |
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
| 196 |
if (eval "$as_required") 2>/dev/null |
| 197 |
then : |
| 198 |
as_have_required=yes |
| 199 |
else case e in #( |
| 200 |
e) as_have_required=no ;; |
| 201 |
esac |
| 202 |
fi |
| 203 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 204 |
then : |
| 205 |
|
| 206 |
else case e in #( |
| 207 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 208 |
as_found=false |
| 209 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 210 |
do |
| 211 |
IFS=$as_save_IFS |
| 212 |
case $as_dir in #((( |
| 213 |
'') as_dir=./ ;; |
| 214 |
*/) ;; |
| 215 |
*) as_dir=$as_dir/ ;; |
| 216 |
esac |
| 217 |
as_found=: |
| 218 |
case $as_dir in #( |
| 219 |
/*) |
| 220 |
for as_base in sh bash ksh sh5; do |
| 221 |
# Try only shells that exist, to save several forks. |
| 222 |
as_shell=$as_dir$as_base |
| 223 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 224 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 225 |
then : |
| 226 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 227 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 228 |
then : |
| 229 |
break 2 |
| 230 |
fi |
| 231 |
fi |
| 232 |
done;; |
| 233 |
esac |
| 234 |
as_found=false |
| 235 |
done |
| 236 |
IFS=$as_save_IFS |
| 237 |
if $as_found |
| 238 |
then : |
| 239 |
|
| 240 |
else case e in #( |
| 241 |
e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 242 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 243 |
then : |
| 244 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 245 |
fi ;; |
| 246 |
esac |
| 247 |
fi |
| 248 |
|
| 249 |
|
| 250 |
if test "x$CONFIG_SHELL" != x |
| 251 |
then : |
| 252 |
export CONFIG_SHELL |
| 253 |
# We cannot yet assume a decent shell, so we have to provide a |
| 254 |
# neutralization value for shells without unset; and this also |
| 255 |
# works around shells that cannot unset nonexistent variables. |
| 256 |
# Preserve -v and -x to the replacement shell. |
| 257 |
BASH_ENV=/dev/null |
| 258 |
ENV=/dev/null |
| 259 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 260 |
case $- in # (((( |
| 261 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 262 |
*v* ) as_opts=-v ;; |
| 263 |
*x* ) as_opts=-x ;; |
| 264 |
* ) as_opts= ;; |
| 265 |
esac |
| 266 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 267 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 268 |
# out after a failed 'exec'. |
| 269 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 270 |
exit 255 |
| 271 |
fi |
| 272 |
|
| 273 |
if test x$as_have_required = xno |
| 274 |
then : |
| 275 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 276 |
printf "%s\n" "$0: the shells that I found on your system." |
| 277 |
if test ${ZSH_VERSION+y} ; then |
| 278 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 279 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 280 |
else |
| 281 |
printf "%s\n" "$0: Please tell [email protected] and |
| 282 |
$0: [email protected] about your system, including any |
| 283 |
$0: error possibly output before this message. Then install |
| 284 |
$0: a modern shell, or manually run the script under such a |
| 285 |
$0: shell if you do have one." |
| 286 |
fi |
| 287 |
exit 1 |
| 288 |
fi ;; |
| 289 |
esac |
| 290 |
fi |
| 291 |
fi |
| 292 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 293 |
export SHELL |
| 294 |
# Unset more variables known to interfere with behavior of common tools. |
| 295 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 296 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 297 |
|
| 298 |
## --------------------- ## |
| 299 |
## M4sh Shell Functions. ## |
| 300 |
## --------------------- ## |
| 301 |
# as_fn_unset VAR |
| 302 |
# --------------- |
| 303 |
# Portably unset VAR. |
| 304 |
as_fn_unset () |
| 305 |
{ |
| 306 |
{ eval $1=; unset $1;} |
| 307 |
} |
| 308 |
as_unset=as_fn_unset |
| 309 |
|
| 310 |
|
| 311 |
# as_fn_set_status STATUS |
| 312 |
# ----------------------- |
| 313 |
# Set $? to STATUS, without forking. |
| 314 |
as_fn_set_status () |
| 315 |
{ |
| 316 |
return $1 |
| 317 |
} # as_fn_set_status |
| 318 |
|
| 319 |
# as_fn_exit STATUS |
| 320 |
# ----------------- |
| 321 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 322 |
as_fn_exit () |
| 323 |
{ |
| 324 |
set +e |
| 325 |
as_fn_set_status $1 |
| 326 |
exit $1 |
| 327 |
} # as_fn_exit |
| 328 |
|
| 329 |
# as_fn_mkdir_p |
| 330 |
# ------------- |
| 331 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 332 |
as_fn_mkdir_p () |
| 333 |
{ |
| 334 |
|
| 335 |
case $as_dir in #( |
| 336 |
-*) as_dir=./$as_dir;; |
| 337 |
esac |
| 338 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 339 |
as_dirs= |
| 340 |
while :; do |
| 341 |
case $as_dir in #( |
| 342 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 343 |
*) as_qdir=$as_dir;; |
| 344 |
esac |
| 345 |
as_dirs="'$as_qdir' $as_dirs" |
| 346 |
as_dir=`$as_dirname -- "$as_dir" || |
| 347 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 348 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 349 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 350 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 351 |
printf "%s\n" X"$as_dir" | |
| 352 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 353 |
s//\1/ |
| 354 |
q |
| 355 |
} |
| 356 |
/^X\(\/\/\)[^/].*/{ |
| 357 |
s//\1/ |
| 358 |
q |
| 359 |
} |
| 360 |
/^X\(\/\/\)$/{ |
| 361 |
s//\1/ |
| 362 |
q |
| 363 |
} |
| 364 |
/^X\(\/\).*/{ |
| 365 |
s//\1/ |
| 366 |
q |
| 367 |
} |
| 368 |
s/.*/./; q'` |
| 369 |
test -d "$as_dir" && break |
| 370 |
done |
| 371 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 372 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 373 |
|
| 374 |
|
| 375 |
} # as_fn_mkdir_p |
| 376 |
|
| 377 |
# as_fn_executable_p FILE |
| 378 |
# ----------------------- |
| 379 |
# Test if FILE is an executable regular file. |
| 380 |
as_fn_executable_p () |
| 381 |
{ |
| 382 |
test -f "$1" && test -x "$1" |
| 383 |
} # as_fn_executable_p |
| 384 |
# as_fn_append VAR VALUE |
| 385 |
# ---------------------- |
| 386 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 387 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 388 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 389 |
# implementations. |
| 390 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 391 |
then : |
| 392 |
eval 'as_fn_append () |
| 393 |
{ |
| 394 |
eval $1+=\$2 |
| 395 |
}' |
| 396 |
else case e in #( |
| 397 |
e) as_fn_append () |
| 398 |
{ |
| 399 |
eval $1=\$$1\$2 |
| 400 |
} ;; |
| 401 |
esac |
| 402 |
fi # as_fn_append |
| 403 |
|
| 404 |
# as_fn_arith ARG... |
| 405 |
# ------------------ |
| 406 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 407 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 408 |
# must be portable across $(()) and expr. |
| 409 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 410 |
then : |
| 411 |
eval 'as_fn_arith () |
| 412 |
{ |
| 413 |
as_val=$(( $* )) |
| 414 |
}' |
| 415 |
else case e in #( |
| 416 |
e) as_fn_arith () |
| 417 |
{ |
| 418 |
as_val=`expr "$@" || test $? -eq 1` |
| 419 |
} ;; |
| 420 |
esac |
| 421 |
fi # as_fn_arith |
| 422 |
|
| 423 |
|
| 424 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 425 |
# ---------------------------------------- |
| 426 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 427 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 428 |
# script with STATUS, using 1 if that was 0. |
| 429 |
as_fn_error () |
| 430 |
{ |
| 431 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 432 |
if test "$4"; then |
| 433 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 434 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 435 |
fi |
| 436 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 437 |
as_fn_exit $as_status |
| 438 |
} # as_fn_error |
| 439 |
|
| 440 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 441 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 442 |
as_expr=expr |
| 443 |
else |
| 444 |
as_expr=false |
| 445 |
fi |
| 446 |
|
| 447 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 448 |
as_basename=basename |
| 449 |
else |
| 450 |
as_basename=false |
| 451 |
fi |
| 452 |
|
| 453 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 454 |
as_dirname=dirname |
| 455 |
else |
| 456 |
as_dirname=false |
| 457 |
fi |
| 458 |
|
| 459 |
as_me=`$as_basename -- "$0" || |
| 460 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 461 |
X"$0" : 'X\(//\)$' \| \ |
| 462 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 463 |
printf "%s\n" X/"$0" | |
| 464 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 465 |
s//\1/ |
| 466 |
q |
| 467 |
} |
| 468 |
/^X\/\(\/\/\)$/{ |
| 469 |
s//\1/ |
| 470 |
q |
| 471 |
} |
| 472 |
/^X\/\(\/\).*/{ |
| 473 |
s//\1/ |
| 474 |
q |
| 475 |
} |
| 476 |
s/.*/./; q'` |
| 477 |
|
| 478 |
# Avoid depending upon Character Ranges. |
| 479 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 480 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 481 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 482 |
as_cr_digits='0123456789' |
| 483 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 484 |
|
| 485 |
|
| 486 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 487 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 488 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 489 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 490 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 491 |
sed -n ' |
| 492 |
p |
| 493 |
/[$]LINENO/= |
| 494 |
' <$as_myself | |
| 495 |
sed ' |
| 496 |
t clear |
| 497 |
:clear |
| 498 |
s/[$]LINENO.*/&-/ |
| 499 |
t lineno |
| 500 |
b |
| 501 |
:lineno |
| 502 |
N |
| 503 |
:loop |
| 504 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 505 |
t loop |
| 506 |
s/-\n.*// |
| 507 |
' >$as_me.lineno && |
| 508 |
chmod +x "$as_me.lineno" || |
| 509 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 510 |
|
| 511 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 512 |
# already done that, so ensure we don't try to do so again and fall |
| 513 |
# in an infinite loop. This has already happened in practice. |
| 514 |
_as_can_reexec=no; export _as_can_reexec |
| 515 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 516 |
# (the dirname of $[0] is not the place where we might find the |
| 517 |
# original and so on. Autoconf is especially sensitive to this). |
| 518 |
. "./$as_me.lineno" |
| 519 |
# Exit status is that of the last command. |
| 520 |
exit |
| 521 |
} |
| 522 |
|
| 523 |
|
| 524 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 525 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 526 |
# for compatibility with existing Makefiles. |
| 527 |
ECHO_C= ECHO_N= ECHO_T= |
| 528 |
case `echo -n x` in #((((( |
| 529 |
-n*) |
| 530 |
case `echo 'xy\c'` in |
| 531 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 532 |
xy) ECHO_C='\c';; |
| 533 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 534 |
ECHO_T=' ';; |
| 535 |
esac;; |
| 536 |
*) |
| 537 |
ECHO_N='-n';; |
| 538 |
esac |
| 539 |
|
| 540 |
# For backward compatibility with old third-party macros, we provide |
| 541 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 542 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 543 |
as_echo='printf %s\n' |
| 544 |
as_echo_n='printf %s' |
| 545 |
|
| 546 |
rm -f conf$$ conf$$.exe conf$$.file |
| 547 |
if test -d conf$$.dir; then |
| 548 |
rm -f conf$$.dir/conf$$.file |
| 549 |
else |
| 550 |
rm -f conf$$.dir |
| 551 |
mkdir conf$$.dir 2>/dev/null |
| 552 |
fi |
| 553 |
if (echo >conf$$.file) 2>/dev/null; then |
| 554 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 555 |
as_ln_s='ln -s' |
| 556 |
# ... but there are two gotchas: |
| 557 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 558 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 559 |
# In both cases, we have to default to 'cp -pR'. |
| 560 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 561 |
as_ln_s='cp -pR' |
| 562 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 563 |
as_ln_s=ln |
| 564 |
else |
| 565 |
as_ln_s='cp -pR' |
| 566 |
fi |
| 567 |
else |
| 568 |
as_ln_s='cp -pR' |
| 569 |
fi |
| 570 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 571 |
rmdir conf$$.dir 2>/dev/null |
| 572 |
|
| 573 |
if mkdir -p . 2>/dev/null; then |
| 574 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 575 |
else |
| 576 |
test -d ./-p && rmdir ./-p |
| 577 |
as_mkdir_p=false |
| 578 |
fi |
| 579 |
|
| 580 |
as_test_x='test -x' |
| 581 |
as_executable_p=as_fn_executable_p |
| 582 |
|
| 583 |
# Sed expression to map a string onto a valid CPP name. |
| 584 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 585 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 586 |
|
| 587 |
# Sed expression to map a string onto a valid variable name. |
| 588 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 589 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 590 |
|
| 591 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 592 |
|
| 593 |
|
| 594 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 595 |
exec 6>&1 |
| 596 |
|
| 597 |
# Name of the host. |
| 598 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 599 |
# so uname gets run too. |
| 600 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 601 |
|
| 602 |
# |
| 603 |
# Initializations. |
| 604 |
# |
| 605 |
ac_default_prefix=/usr/local |
| 606 |
ac_clean_files= |
| 607 |
ac_config_libobj_dir=. |
| 608 |
LIBOBJS= |
| 609 |
cross_compiling=no |
| 610 |
subdirs= |
| 611 |
MFLAGS= |
| 612 |
MAKEFLAGS= |
| 613 |
|
| 614 |
# Identity of this package. |
| 615 |
PACKAGE_NAME='GNU libmicrohttpd' |
| 616 |
PACKAGE_TARNAME='libmicrohttpd' |
| 617 |
PACKAGE_VERSION='1.0.6' |
| 618 |
PACKAGE_STRING='GNU libmicrohttpd 1.0.6' |
| 619 |
PACKAGE_BUGREPORT='[email protected]' |
| 620 |
PACKAGE_URL='https://www.gnu.org/software/libmicrohttpd/' |
| 621 |
|
| 622 |
# Factoring default headers for most tests. |
| 623 |
ac_includes_default="\ |
| 624 |
#include <stddef.h> |
| 625 |
#ifdef HAVE_STDIO_H |
| 626 |
# include <stdio.h> |
| 627 |
#endif |
| 628 |
#ifdef HAVE_STDLIB_H |
| 629 |
# include <stdlib.h> |
| 630 |
#endif |
| 631 |
#ifdef HAVE_STRING_H |
| 632 |
# include <string.h> |
| 633 |
#endif |
| 634 |
#ifdef HAVE_INTTYPES_H |
| 635 |
# include <inttypes.h> |
| 636 |
#endif |
| 637 |
#ifdef HAVE_STDINT_H |
| 638 |
# include <stdint.h> |
| 639 |
#endif |
| 640 |
#ifdef HAVE_STRINGS_H |
| 641 |
# include <strings.h> |
| 642 |
#endif |
| 643 |
#ifdef HAVE_SYS_TYPES_H |
| 644 |
# include <sys/types.h> |
| 645 |
#endif |
| 646 |
#ifdef HAVE_SYS_STAT_H |
| 647 |
# include <sys/stat.h> |
| 648 |
#endif |
| 649 |
#ifdef HAVE_UNISTD_H |
| 650 |
# include <unistd.h> |
| 651 |
#endif" |
| 652 |
|
| 653 |
ac_header_c_list= |
| 654 |
enable_year2038=yes |
| 655 |
ac_subst_vars='am__EXEEXT_FALSE |
| 656 |
am__EXEEXT_TRUE |
| 657 |
LTLIBOBJS |
| 658 |
LIBOBJS |
| 659 |
HAVE_EXPERIMENTAL_FALSE |
| 660 |
HAVE_EXPERIMENTAL_TRUE |
| 661 |
MHD_PLUGIN_INSTALL_PREFIX |
| 662 |
MHD_AUX_DIR |
| 663 |
EMPTY_VAR |
| 664 |
ac_configure_args |
| 665 |
CPPFLAGS_ac |
| 666 |
LDFLAGS_ac |
| 667 |
CFLAGS_ac |
| 668 |
MHD_LIBDEPS_PKGCFG |
| 669 |
MHD_REQ_PRIVATE |
| 670 |
MHD_TLS_LIBDEPS |
| 671 |
MHD_TLS_LIB_LDFLAGS |
| 672 |
MHD_TLS_LIB_CFLAGS |
| 673 |
MHD_TLS_LIB_CPPFLAGS |
| 674 |
MHD_LIBDEPS |
| 675 |
MHD_LIB_LDFLAGS |
| 676 |
MHD_LIB_CFLAGS |
| 677 |
MHD_LIB_CPPFLAGS |
| 678 |
HEAVY_TESTS_NOTPARALLEL |
| 679 |
CPU_COUNT |
| 680 |
TESTS_ENVIRONMENT_ac |
| 681 |
AM_LSAN_OPTIONS |
| 682 |
AM_UBSAN_OPTIONS |
| 683 |
AM_ASAN_OPTIONS |
| 684 |
USE_SANITIZERS_FALSE |
| 685 |
USE_SANITIZERS_TRUE |
| 686 |
FORCE_USE_ZZUF_SOCAT_FALSE |
| 687 |
FORCE_USE_ZZUF_SOCAT_TRUE |
| 688 |
RUN_ZZUF_TESTS_FALSE |
| 689 |
RUN_ZZUF_TESTS_TRUE |
| 690 |
SOCAT |
| 691 |
ZZUF |
| 692 |
MHD_REAL_CPU_COUNT |
| 693 |
USE_COVERAGE_FALSE |
| 694 |
USE_COVERAGE_TRUE |
| 695 |
HAVE_FORK_WAITPID_FALSE |
| 696 |
HAVE_FORK_WAITPID_TRUE |
| 697 |
ENABLE_SHA512_256_FALSE |
| 698 |
ENABLE_SHA512_256_TRUE |
| 699 |
ENABLE_SHA256_EXT_FALSE |
| 700 |
ENABLE_SHA256_EXT_TRUE |
| 701 |
ENABLE_SHA256_FALSE |
| 702 |
ENABLE_SHA256_TRUE |
| 703 |
ENABLE_MD5_EXT_FALSE |
| 704 |
ENABLE_MD5_EXT_TRUE |
| 705 |
ENABLE_MD5_FALSE |
| 706 |
ENABLE_MD5_TRUE |
| 707 |
ENABLE_COOKIE_FALSE |
| 708 |
ENABLE_COOKIE_TRUE |
| 709 |
ENABLE_UPGRADE_FALSE |
| 710 |
ENABLE_UPGRADE_TRUE |
| 711 |
HAVE_ANYAUTH_FALSE |
| 712 |
HAVE_ANYAUTH_TRUE |
| 713 |
ENABLE_DAUTH_FALSE |
| 714 |
ENABLE_DAUTH_TRUE |
| 715 |
ENABLE_BAUTH_FALSE |
| 716 |
ENABLE_BAUTH_TRUE |
| 717 |
USE_UPGRADE_TLS_TESTS_FALSE |
| 718 |
USE_UPGRADE_TLS_TESTS_TRUE |
| 719 |
HAVE_GNUTLS_MTHREAD_BROKEN_FALSE |
| 720 |
HAVE_GNUTLS_MTHREAD_BROKEN_TRUE |
| 721 |
GNUTLS_LDFLAGS |
| 722 |
GNUTLS_CPPFLAGS |
| 723 |
HTTPS_REQUIRE_GCRYPT_FALSE |
| 724 |
HTTPS_REQUIRE_GCRYPT_TRUE |
| 725 |
ENABLE_HTTPS_FALSE |
| 726 |
ENABLE_HTTPS_TRUE |
| 727 |
HAVE_GNUTLS_SNI_FALSE |
| 728 |
HAVE_GNUTLS_SNI_TRUE |
| 729 |
HAVE_GNUTLS_FALSE |
| 730 |
HAVE_GNUTLS_TRUE |
| 731 |
LIBGCRYPT_LIBS |
| 732 |
LIBGCRYPT_CFLAGS |
| 733 |
LIBGCRYPT_CONFIG |
| 734 |
GNUTLS_LIBS |
| 735 |
GNUTLS_CFLAGS |
| 736 |
PKG_CONFIG_LIBDIR |
| 737 |
PKG_CONFIG_PATH |
| 738 |
PKG_CONFIG |
| 739 |
HAVE_POSTPROCESSOR_FALSE |
| 740 |
HAVE_POSTPROCESSOR_TRUE |
| 741 |
HAVE_MESSAGES_FALSE |
| 742 |
HAVE_MESSAGES_TRUE |
| 743 |
MHD_HAVE_LIBMAGIC_FALSE |
| 744 |
MHD_HAVE_LIBMAGIC_TRUE |
| 745 |
RUN_LIBCURL_TESTS_FALSE |
| 746 |
RUN_LIBCURL_TESTS_TRUE |
| 747 |
LIBCURL |
| 748 |
LIBCURL_CPPFLAGS |
| 749 |
_libcurl_config |
| 750 |
HIDDEN_VISIBILITY_CFLAGS |
| 751 |
HAVE_JANSSON_FALSE |
| 752 |
HAVE_JANSSON_TRUE |
| 753 |
HAVE_ZLIB_FALSE |
| 754 |
HAVE_ZLIB_TRUE |
| 755 |
MHD_HAVE_TLS_PLUGIN_FALSE |
| 756 |
MHD_HAVE_TLS_PLUGIN_TRUE |
| 757 |
MHD_HAVE_EPOLL_FALSE |
| 758 |
MHD_HAVE_EPOLL_TRUE |
| 759 |
TESTS_STRESS_OS_FALSE |
| 760 |
TESTS_STRESS_OS_TRUE |
| 761 |
VHEAVY_TESTS_FALSE |
| 762 |
VHEAVY_TESTS_TRUE |
| 763 |
HEAVY_TESTS_FALSE |
| 764 |
HEAVY_TESTS_TRUE |
| 765 |
BUILD_TOOLS_FALSE |
| 766 |
BUILD_TOOLS_TRUE |
| 767 |
BUILD_EXAMPLES_FALSE |
| 768 |
BUILD_EXAMPLES_TRUE |
| 769 |
BUILD_DOC_FALSE |
| 770 |
BUILD_DOC_TRUE |
| 771 |
W32_STATIC_LIB_FALSE |
| 772 |
W32_STATIC_LIB_TRUE |
| 773 |
HAVE_MAKEINFO_BINARY_FALSE |
| 774 |
HAVE_MAKEINFO_BINARY_TRUE |
| 775 |
HAVE_MAKEINFO_BINARY |
| 776 |
HAVE_CURL_BINARY_FALSE |
| 777 |
HAVE_CURL_BINARY_TRUE |
| 778 |
HAVE_CURL_BINARY |
| 779 |
NEED_SYS_FD_SET_SIZE_VALUE_FALSE |
| 780 |
NEED_SYS_FD_SET_SIZE_VALUE_TRUE |
| 781 |
HAVE_LISTEN_SHUTDOWN_FALSE |
| 782 |
HAVE_LISTEN_SHUTDOWN_TRUE |
| 783 |
USE_EXPORT_FILE_FALSE |
| 784 |
USE_EXPORT_FILE_TRUE |
| 785 |
USE_MS_LIB_TOOL_FALSE |
| 786 |
USE_MS_LIB_TOOL_TRUE |
| 787 |
W32_SHARED_LIB_EXP_FALSE |
| 788 |
W32_SHARED_LIB_EXP_TRUE |
| 789 |
HAVE_W32_FALSE |
| 790 |
HAVE_W32_TRUE |
| 791 |
DISABLE_THREADS_FALSE |
| 792 |
DISABLE_THREADS_TRUE |
| 793 |
USE_THREADS_FALSE |
| 794 |
USE_THREADS_TRUE |
| 795 |
USE_W32_THREADS_FALSE |
| 796 |
USE_W32_THREADS_TRUE |
| 797 |
USE_POSIX_THREADS_FALSE |
| 798 |
USE_POSIX_THREADS_TRUE |
| 799 |
HAVE_POSIX_THREADS_FALSE |
| 800 |
HAVE_POSIX_THREADS_TRUE |
| 801 |
PTHREAD_CFLAGS |
| 802 |
PTHREAD_LIBS |
| 803 |
PTHREAD_CXX |
| 804 |
PTHREAD_CC |
| 805 |
ax_pthread_config |
| 806 |
W32CRT |
| 807 |
CYGWIN_TARGET_FALSE |
| 808 |
CYGWIN_TARGET_TRUE |
| 809 |
lt_cv_objdir |
| 810 |
MS_LIB_TOOL |
| 811 |
MHD_USE_SYS_TSEARCH_FALSE |
| 812 |
MHD_USE_SYS_TSEARCH_TRUE |
| 813 |
RC |
| 814 |
LT_SYS_LIBRARY_PATH |
| 815 |
OTOOL64 |
| 816 |
OTOOL |
| 817 |
LIPO |
| 818 |
NMEDIT |
| 819 |
DSYMUTIL |
| 820 |
MANIFEST_TOOL |
| 821 |
RANLIB |
| 822 |
ac_ct_AR |
| 823 |
AR |
| 824 |
FILECMD |
| 825 |
NM |
| 826 |
ac_ct_DUMPBIN |
| 827 |
DUMPBIN |
| 828 |
LD |
| 829 |
EGREP |
| 830 |
SED |
| 831 |
LIBTOOL |
| 832 |
OBJDUMP |
| 833 |
DLLTOOL |
| 834 |
AS |
| 835 |
CPP |
| 836 |
am__fastdepCC_FALSE |
| 837 |
am__fastdepCC_TRUE |
| 838 |
CCDEPMODE |
| 839 |
am__nodep |
| 840 |
AMDEPBACKSLASH |
| 841 |
AMDEP_FALSE |
| 842 |
AMDEP_TRUE |
| 843 |
am__include |
| 844 |
DEPDIR |
| 845 |
OBJEXT |
| 846 |
EXEEXT |
| 847 |
ac_ct_CC |
| 848 |
CPPFLAGS |
| 849 |
LDFLAGS |
| 850 |
CFLAGS |
| 851 |
CC |
| 852 |
host_os |
| 853 |
host_vendor |
| 854 |
host_cpu |
| 855 |
host |
| 856 |
build_os |
| 857 |
build_vendor |
| 858 |
build_cpu |
| 859 |
build |
| 860 |
LN_S |
| 861 |
FGREP |
| 862 |
GREP |
| 863 |
am__xargs_n |
| 864 |
am__rm_f_notfound |
| 865 |
AM_BACKSLASH |
| 866 |
AM_DEFAULT_VERBOSITY |
| 867 |
AM_DEFAULT_V |
| 868 |
AM_V |
| 869 |
CSCOPE |
| 870 |
ETAGS |
| 871 |
CTAGS |
| 872 |
am__untar |
| 873 |
am__tar |
| 874 |
AMTAR |
| 875 |
am__leading_dot |
| 876 |
SET_MAKE |
| 877 |
AWK |
| 878 |
mkdir_p |
| 879 |
MKDIR_P |
| 880 |
INSTALL_STRIP_PROGRAM |
| 881 |
STRIP |
| 882 |
install_sh |
| 883 |
MAKEINFO |
| 884 |
AUTOHEADER |
| 885 |
AUTOMAKE |
| 886 |
AUTOCONF |
| 887 |
ACLOCAL |
| 888 |
VERSION |
| 889 |
PACKAGE |
| 890 |
CYGPATH_W |
| 891 |
am__isrc |
| 892 |
INSTALL_DATA |
| 893 |
INSTALL_SCRIPT |
| 894 |
INSTALL_PROGRAM |
| 895 |
MHD_W32_DLL_SUFF |
| 896 |
PACKAGE_VERSION_SUBMINOR |
| 897 |
PACKAGE_VERSION_MINOR |
| 898 |
PACKAGE_VERSION_MAJOR |
| 899 |
LIB_VERSION_AGE |
| 900 |
LIB_VERSION_REVISION |
| 901 |
LIB_VERSION_CURRENT |
| 902 |
target_alias |
| 903 |
host_alias |
| 904 |
build_alias |
| 905 |
LIBS |
| 906 |
ECHO_T |
| 907 |
ECHO_N |
| 908 |
ECHO_C |
| 909 |
DEFS |
| 910 |
mandir |
| 911 |
localedir |
| 912 |
libdir |
| 913 |
psdir |
| 914 |
pdfdir |
| 915 |
dvidir |
| 916 |
htmldir |
| 917 |
infodir |
| 918 |
docdir |
| 919 |
oldincludedir |
| 920 |
includedir |
| 921 |
runstatedir |
| 922 |
localstatedir |
| 923 |
sharedstatedir |
| 924 |
sysconfdir |
| 925 |
datadir |
| 926 |
datarootdir |
| 927 |
libexecdir |
| 928 |
sbindir |
| 929 |
bindir |
| 930 |
program_transform_name |
| 931 |
prefix |
| 932 |
exec_prefix |
| 933 |
PACKAGE_URL |
| 934 |
PACKAGE_BUGREPORT |
| 935 |
PACKAGE_STRING |
| 936 |
PACKAGE_VERSION |
| 937 |
PACKAGE_TARNAME |
| 938 |
PACKAGE_NAME |
| 939 |
PATH_SEPARATOR |
| 940 |
SHELL |
| 941 |
am__quote' |
| 942 |
ac_subst_files='' |
| 943 |
ac_user_opts=' |
| 944 |
enable_option_checking |
| 945 |
enable_build_type |
| 946 |
enable_silent_rules |
| 947 |
enable_dependency_tracking |
| 948 |
enable_largefile |
| 949 |
enable_shared |
| 950 |
enable_static |
| 951 |
enable_pic |
| 952 |
with_pic |
| 953 |
enable_fast_install |
| 954 |
enable_aix_soname |
| 955 |
with_aix_soname |
| 956 |
with_gnu_ld |
| 957 |
with_sysroot |
| 958 |
enable_libtool_lock |
| 959 |
enable_compact_code |
| 960 |
enable_compiler_hardening |
| 961 |
enable_linker_hardening |
| 962 |
with_threads |
| 963 |
enable_thread_names |
| 964 |
enable_doc |
| 965 |
enable_examples |
| 966 |
enable_tools |
| 967 |
enable_heavy_tests |
| 968 |
enable_poll |
| 969 |
enable_epoll |
| 970 |
enable_itc |
| 971 |
enable_curl |
| 972 |
with_libcurl |
| 973 |
enable_sendfile |
| 974 |
enable_messages |
| 975 |
enable_postprocessor |
| 976 |
enable_https |
| 977 |
with_gnutls |
| 978 |
with_libgcrypt_prefix |
| 979 |
enable_bauth |
| 980 |
enable_dauth |
| 981 |
enable_dauth_def_timeout |
| 982 |
enable_dauth_def_max_nc |
| 983 |
enable_httpupgrade |
| 984 |
enable_cookie |
| 985 |
enable_md5 |
| 986 |
enable_sha256 |
| 987 |
enable_sha512_256 |
| 988 |
enable_coverage |
| 989 |
enable_asserts |
| 990 |
enable_sanitizers |
| 991 |
enable_experimental |
| 992 |
enable_year2038 |
| 993 |
' |
| 994 |
ac_precious_vars='build_alias |
| 995 |
host_alias |
| 996 |
target_alias |
| 997 |
CC |
| 998 |
CFLAGS |
| 999 |
LDFLAGS |
| 1000 |
LIBS |
| 1001 |
CPPFLAGS |
| 1002 |
CPP |
| 1003 |
LT_SYS_LIBRARY_PATH |
| 1004 |
PKG_CONFIG |
| 1005 |
PKG_CONFIG_PATH |
| 1006 |
PKG_CONFIG_LIBDIR |
| 1007 |
GNUTLS_CFLAGS |
| 1008 |
GNUTLS_LIBS' |
| 1009 |
|
| 1010 |
|
| 1011 |
# Initialize some variables set by options. |
| 1012 |
ac_init_help= |
| 1013 |
ac_init_version=false |
| 1014 |
ac_unrecognized_opts= |
| 1015 |
ac_unrecognized_sep= |
| 1016 |
# The variables have the same names as the options, with |
| 1017 |
# dashes changed to underlines. |
| 1018 |
cache_file=/dev/null |
| 1019 |
exec_prefix=NONE |
| 1020 |
no_create= |
| 1021 |
no_recursion= |
| 1022 |
prefix=NONE |
| 1023 |
program_prefix=NONE |
| 1024 |
program_suffix=NONE |
| 1025 |
program_transform_name=s,x,x, |
| 1026 |
silent= |
| 1027 |
site= |
| 1028 |
srcdir= |
| 1029 |
verbose= |
| 1030 |
x_includes=NONE |
| 1031 |
x_libraries=NONE |
| 1032 |
|
| 1033 |
# Installation directory options. |
| 1034 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1035 |
# and all the variables that are supposed to be based on exec_prefix |
| 1036 |
# by default will actually change. |
| 1037 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1038 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1039 |
bindir='${exec_prefix}/bin' |
| 1040 |
sbindir='${exec_prefix}/sbin' |
| 1041 |
libexecdir='${exec_prefix}/libexec' |
| 1042 |
datarootdir='${prefix}/share' |
| 1043 |
datadir='${datarootdir}' |
| 1044 |
sysconfdir='${prefix}/etc' |
| 1045 |
sharedstatedir='${prefix}/com' |
| 1046 |
localstatedir='${prefix}/var' |
| 1047 |
runstatedir='${localstatedir}/run' |
| 1048 |
includedir='${prefix}/include' |
| 1049 |
oldincludedir='/usr/include' |
| 1050 |
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1051 |
infodir='${datarootdir}/info' |
| 1052 |
htmldir='${docdir}' |
| 1053 |
dvidir='${docdir}' |
| 1054 |
pdfdir='${docdir}' |
| 1055 |
psdir='${docdir}' |
| 1056 |
libdir='${exec_prefix}/lib' |
| 1057 |
localedir='${datarootdir}/locale' |
| 1058 |
mandir='${datarootdir}/man' |
| 1059 |
|
| 1060 |
ac_prev= |
| 1061 |
ac_dashdash= |
| 1062 |
for ac_option |
| 1063 |
do |
| 1064 |
# If the previous option needs an argument, assign it. |
| 1065 |
if test -n "$ac_prev"; then |
| 1066 |
eval $ac_prev=\$ac_option |
| 1067 |
ac_prev= |
| 1068 |
continue |
| 1069 |
fi |
| 1070 |
|
| 1071 |
case $ac_option in |
| 1072 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1073 |
*=) ac_optarg= ;; |
| 1074 |
*) ac_optarg=yes ;; |
| 1075 |
esac |
| 1076 |
|
| 1077 |
case $ac_dashdash$ac_option in |
| 1078 |
--) |
| 1079 |
ac_dashdash=yes ;; |
| 1080 |
|
| 1081 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1082 |
ac_prev=bindir ;; |
| 1083 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1084 |
bindir=$ac_optarg ;; |
| 1085 |
|
| 1086 |
-build | --build | --buil | --bui | --bu) |
| 1087 |
ac_prev=build_alias ;; |
| 1088 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1089 |
build_alias=$ac_optarg ;; |
| 1090 |
|
| 1091 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1092 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1093 |
ac_prev=cache_file ;; |
| 1094 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1095 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1096 |
cache_file=$ac_optarg ;; |
| 1097 |
|
| 1098 |
--config-cache | -C) |
| 1099 |
cache_file=config.cache ;; |
| 1100 |
|
| 1101 |
-datadir | --datadir | --datadi | --datad) |
| 1102 |
ac_prev=datadir ;; |
| 1103 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1104 |
datadir=$ac_optarg ;; |
| 1105 |
|
| 1106 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1107 |
| --dataroo | --dataro | --datar) |
| 1108 |
ac_prev=datarootdir ;; |
| 1109 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1110 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1111 |
datarootdir=$ac_optarg ;; |
| 1112 |
|
| 1113 |
-disable-* | --disable-*) |
| 1114 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1115 |
# Reject names that are not valid shell variable names. |
| 1116 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1117 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1118 |
ac_useropt_orig=$ac_useropt |
| 1119 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1120 |
case $ac_user_opts in |
| 1121 |
*" |
| 1122 |
"enable_$ac_useropt" |
| 1123 |
"*) ;; |
| 1124 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1125 |
ac_unrecognized_sep=', ';; |
| 1126 |
esac |
| 1127 |
eval enable_$ac_useropt=no ;; |
| 1128 |
|
| 1129 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1130 |
ac_prev=docdir ;; |
| 1131 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1132 |
docdir=$ac_optarg ;; |
| 1133 |
|
| 1134 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1135 |
ac_prev=dvidir ;; |
| 1136 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1137 |
dvidir=$ac_optarg ;; |
| 1138 |
|
| 1139 |
-enable-* | --enable-*) |
| 1140 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1141 |
# Reject names that are not valid shell variable names. |
| 1142 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1143 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 1144 |
ac_useropt_orig=$ac_useropt |
| 1145 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1146 |
case $ac_user_opts in |
| 1147 |
*" |
| 1148 |
"enable_$ac_useropt" |
| 1149 |
"*) ;; |
| 1150 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1151 |
ac_unrecognized_sep=', ';; |
| 1152 |
esac |
| 1153 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1154 |
|
| 1155 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1156 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1157 |
| --exec | --exe | --ex) |
| 1158 |
ac_prev=exec_prefix ;; |
| 1159 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1160 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1161 |
| --exec=* | --exe=* | --ex=*) |
| 1162 |
exec_prefix=$ac_optarg ;; |
| 1163 |
|
| 1164 |
-gas | --gas | --ga | --g) |
| 1165 |
# Obsolete; use --with-gas. |
| 1166 |
with_gas=yes ;; |
| 1167 |
|
| 1168 |
-help | --help | --hel | --he | -h) |
| 1169 |
ac_init_help=long ;; |
| 1170 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1171 |
ac_init_help=recursive ;; |
| 1172 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1173 |
ac_init_help=short ;; |
| 1174 |
|
| 1175 |
-host | --host | --hos | --ho) |
| 1176 |
ac_prev=host_alias ;; |
| 1177 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1178 |
host_alias=$ac_optarg ;; |
| 1179 |
|
| 1180 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1181 |
ac_prev=htmldir ;; |
| 1182 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1183 |
| --ht=*) |
| 1184 |
htmldir=$ac_optarg ;; |
| 1185 |
|
| 1186 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1187 |
| --includ | --inclu | --incl | --inc) |
| 1188 |
ac_prev=includedir ;; |
| 1189 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1190 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1191 |
includedir=$ac_optarg ;; |
| 1192 |
|
| 1193 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1194 |
ac_prev=infodir ;; |
| 1195 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1196 |
infodir=$ac_optarg ;; |
| 1197 |
|
| 1198 |
-libdir | --libdir | --libdi | --libd) |
| 1199 |
ac_prev=libdir ;; |
| 1200 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1201 |
libdir=$ac_optarg ;; |
| 1202 |
|
| 1203 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1204 |
| --libexe | --libex | --libe) |
| 1205 |
ac_prev=libexecdir ;; |
| 1206 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1207 |
| --libexe=* | --libex=* | --libe=*) |
| 1208 |
libexecdir=$ac_optarg ;; |
| 1209 |
|
| 1210 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1211 |
ac_prev=localedir ;; |
| 1212 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1213 |
localedir=$ac_optarg ;; |
| 1214 |
|
| 1215 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1216 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1217 |
ac_prev=localstatedir ;; |
| 1218 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1219 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1220 |
localstatedir=$ac_optarg ;; |
| 1221 |
|
| 1222 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1223 |
ac_prev=mandir ;; |
| 1224 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1225 |
mandir=$ac_optarg ;; |
| 1226 |
|
| 1227 |
-nfp | --nfp | --nf) |
| 1228 |
# Obsolete; use --without-fp. |
| 1229 |
with_fp=no ;; |
| 1230 |
|
| 1231 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1232 |
| --no-cr | --no-c | -n) |
| 1233 |
no_create=yes ;; |
| 1234 |
|
| 1235 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1236 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1237 |
no_recursion=yes ;; |
| 1238 |
|
| 1239 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1240 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1241 |
| --oldin | --oldi | --old | --ol | --o) |
| 1242 |
ac_prev=oldincludedir ;; |
| 1243 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1244 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1245 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1246 |
oldincludedir=$ac_optarg ;; |
| 1247 |
|
| 1248 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1249 |
ac_prev=prefix ;; |
| 1250 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1251 |
prefix=$ac_optarg ;; |
| 1252 |
|
| 1253 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1254 |
| --program-pre | --program-pr | --program-p) |
| 1255 |
ac_prev=program_prefix ;; |
| 1256 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1257 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1258 |
program_prefix=$ac_optarg ;; |
| 1259 |
|
| 1260 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1261 |
| --program-suf | --program-su | --program-s) |
| 1262 |
ac_prev=program_suffix ;; |
| 1263 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1264 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1265 |
program_suffix=$ac_optarg ;; |
| 1266 |
|
| 1267 |
-program-transform-name | --program-transform-name \ |
| 1268 |
| --program-transform-nam | --program-transform-na \ |
| 1269 |
| --program-transform-n | --program-transform- \ |
| 1270 |
| --program-transform | --program-transfor \ |
| 1271 |
| --program-transfo | --program-transf \ |
| 1272 |
| --program-trans | --program-tran \ |
| 1273 |
| --progr-tra | --program-tr | --program-t) |
| 1274 |
ac_prev=program_transform_name ;; |
| 1275 |
-program-transform-name=* | --program-transform-name=* \ |
| 1276 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1277 |
| --program-transform-n=* | --program-transform-=* \ |
| 1278 |
| --program-transform=* | --program-transfor=* \ |
| 1279 |
| --program-transfo=* | --program-transf=* \ |
| 1280 |
| --program-trans=* | --program-tran=* \ |
| 1281 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1282 |
program_transform_name=$ac_optarg ;; |
| 1283 |
|
| 1284 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1285 |
ac_prev=pdfdir ;; |
| 1286 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1287 |
pdfdir=$ac_optarg ;; |
| 1288 |
|
| 1289 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1290 |
ac_prev=psdir ;; |
| 1291 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1292 |
psdir=$ac_optarg ;; |
| 1293 |
|
| 1294 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1295 |
| -silent | --silent | --silen | --sile | --sil) |
| 1296 |
silent=yes ;; |
| 1297 |
|
| 1298 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1299 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1300 |
| --run | --ru | --r) |
| 1301 |
ac_prev=runstatedir ;; |
| 1302 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1303 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1304 |
| --run=* | --ru=* | --r=*) |
| 1305 |
runstatedir=$ac_optarg ;; |
| 1306 |
|
| 1307 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1308 |
ac_prev=sbindir ;; |
| 1309 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1310 |
| --sbi=* | --sb=*) |
| 1311 |
sbindir=$ac_optarg ;; |
| 1312 |
|
| 1313 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1314 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1315 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1316 |
| --sha | --sh) |
| 1317 |
ac_prev=sharedstatedir ;; |
| 1318 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1319 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1320 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1321 |
| --sha=* | --sh=*) |
| 1322 |
sharedstatedir=$ac_optarg ;; |
| 1323 |
|
| 1324 |
-site | --site | --sit) |
| 1325 |
ac_prev=site ;; |
| 1326 |
-site=* | --site=* | --sit=*) |
| 1327 |
site=$ac_optarg ;; |
| 1328 |
|
| 1329 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1330 |
ac_prev=srcdir ;; |
| 1331 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1332 |
srcdir=$ac_optarg ;; |
| 1333 |
|
| 1334 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1335 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1336 |
ac_prev=sysconfdir ;; |
| 1337 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1338 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1339 |
sysconfdir=$ac_optarg ;; |
| 1340 |
|
| 1341 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1342 |
ac_prev=target_alias ;; |
| 1343 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1344 |
target_alias=$ac_optarg ;; |
| 1345 |
|
| 1346 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1347 |
verbose=yes ;; |
| 1348 |
|
| 1349 |
-version | --version | --versio | --versi | --vers | -V) |
| 1350 |
ac_init_version=: ;; |
| 1351 |
|
| 1352 |
-with-* | --with-*) |
| 1353 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1354 |
# Reject names that are not valid shell variable names. |
| 1355 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1356 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1357 |
ac_useropt_orig=$ac_useropt |
| 1358 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1359 |
case $ac_user_opts in |
| 1360 |
*" |
| 1361 |
"with_$ac_useropt" |
| 1362 |
"*) ;; |
| 1363 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1364 |
ac_unrecognized_sep=', ';; |
| 1365 |
esac |
| 1366 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1367 |
|
| 1368 |
-without-* | --without-*) |
| 1369 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1370 |
# Reject names that are not valid shell variable names. |
| 1371 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1372 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1373 |
ac_useropt_orig=$ac_useropt |
| 1374 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1375 |
case $ac_user_opts in |
| 1376 |
*" |
| 1377 |
"with_$ac_useropt" |
| 1378 |
"*) ;; |
| 1379 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1380 |
ac_unrecognized_sep=', ';; |
| 1381 |
esac |
| 1382 |
eval with_$ac_useropt=no ;; |
| 1383 |
|
| 1384 |
--x) |
| 1385 |
# Obsolete; use --with-x. |
| 1386 |
with_x=yes ;; |
| 1387 |
|
| 1388 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1389 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1390 |
ac_prev=x_includes ;; |
| 1391 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1392 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1393 |
x_includes=$ac_optarg ;; |
| 1394 |
|
| 1395 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1396 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1397 |
ac_prev=x_libraries ;; |
| 1398 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1399 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1400 |
x_libraries=$ac_optarg ;; |
| 1401 |
|
| 1402 |
-*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1403 |
Try '$0 --help' for more information" |
| 1404 |
;; |
| 1405 |
|
| 1406 |
*=*) |
| 1407 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1408 |
# Reject names that are not valid shell variable names. |
| 1409 |
case $ac_envvar in #( |
| 1410 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1411 |
as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1412 |
esac |
| 1413 |
eval $ac_envvar=\$ac_optarg |
| 1414 |
export $ac_envvar ;; |
| 1415 |
|
| 1416 |
*) |
| 1417 |
# FIXME: should be removed in autoconf 3.0. |
| 1418 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1419 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1420 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1421 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1422 |
;; |
| 1423 |
|
| 1424 |
esac |
| 1425 |
done |
| 1426 |
|
| 1427 |
if test -n "$ac_prev"; then |
| 1428 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1429 |
as_fn_error $? "missing argument to $ac_option" |
| 1430 |
fi |
| 1431 |
|
| 1432 |
if test -n "$ac_unrecognized_opts"; then |
| 1433 |
case $enable_option_checking in |
| 1434 |
no) ;; |
| 1435 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1436 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1437 |
esac |
| 1438 |
fi |
| 1439 |
|
| 1440 |
# Check all directory arguments for consistency. |
| 1441 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1442 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1443 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1444 |
libdir localedir mandir runstatedir |
| 1445 |
do |
| 1446 |
eval ac_val=\$$ac_var |
| 1447 |
# Remove trailing slashes. |
| 1448 |
case $ac_val in |
| 1449 |
*/ ) |
| 1450 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1451 |
eval $ac_var=\$ac_val;; |
| 1452 |
esac |
| 1453 |
# Be sure to have absolute directory names. |
| 1454 |
case $ac_val in |
| 1455 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1456 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1457 |
esac |
| 1458 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1459 |
done |
| 1460 |
|
| 1461 |
# There might be people who depend on the old broken behavior: '$host' |
| 1462 |
# used to hold the argument of --host etc. |
| 1463 |
# FIXME: To remove some day. |
| 1464 |
build=$build_alias |
| 1465 |
host=$host_alias |
| 1466 |
target=$target_alias |
| 1467 |
|
| 1468 |
# FIXME: To remove some day. |
| 1469 |
if test "x$host_alias" != x; then |
| 1470 |
if test "x$build_alias" = x; then |
| 1471 |
cross_compiling=maybe |
| 1472 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1473 |
cross_compiling=yes |
| 1474 |
fi |
| 1475 |
fi |
| 1476 |
|
| 1477 |
ac_tool_prefix= |
| 1478 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1479 |
|
| 1480 |
test "$silent" = yes && exec 6>/dev/null |
| 1481 |
|
| 1482 |
|
| 1483 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1484 |
ac_ls_di=`ls -di .` && |
| 1485 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1486 |
as_fn_error $? "working directory cannot be determined" |
| 1487 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1488 |
as_fn_error $? "pwd does not report name of working directory" |
| 1489 |
|
| 1490 |
|
| 1491 |
# Find the source files, if location was not specified. |
| 1492 |
if test -z "$srcdir"; then |
| 1493 |
ac_srcdir_defaulted=yes |
| 1494 |
# Try the directory containing this script, then the parent directory. |
| 1495 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1496 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1497 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1498 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1499 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1500 |
printf "%s\n" X"$as_myself" | |
| 1501 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1502 |
s//\1/ |
| 1503 |
q |
| 1504 |
} |
| 1505 |
/^X\(\/\/\)[^/].*/{ |
| 1506 |
s//\1/ |
| 1507 |
q |
| 1508 |
} |
| 1509 |
/^X\(\/\/\)$/{ |
| 1510 |
s//\1/ |
| 1511 |
q |
| 1512 |
} |
| 1513 |
/^X\(\/\).*/{ |
| 1514 |
s//\1/ |
| 1515 |
q |
| 1516 |
} |
| 1517 |
s/.*/./; q'` |
| 1518 |
srcdir=$ac_confdir |
| 1519 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1520 |
srcdir=.. |
| 1521 |
fi |
| 1522 |
else |
| 1523 |
ac_srcdir_defaulted=no |
| 1524 |
fi |
| 1525 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1526 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1527 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1528 |
fi |
| 1529 |
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1530 |
ac_abs_confdir=`( |
| 1531 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1532 |
pwd)` |
| 1533 |
# When building in place, set srcdir=. |
| 1534 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1535 |
srcdir=. |
| 1536 |
fi |
| 1537 |
# Remove unnecessary trailing slashes from srcdir. |
| 1538 |
# Double slashes in file names in object file debugging info |
| 1539 |
# mess up M-x gdb in Emacs. |
| 1540 |
case $srcdir in |
| 1541 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1542 |
esac |
| 1543 |
for ac_var in $ac_precious_vars; do |
| 1544 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1545 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1546 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1547 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1548 |
done |
| 1549 |
|
| 1550 |
# |
| 1551 |
# Report the --help message. |
| 1552 |
# |
| 1553 |
if test "$ac_init_help" = "long"; then |
| 1554 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1555 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1556 |
cat <<_ACEOF |
| 1557 |
'configure' configures GNU libmicrohttpd 1.0.6 to adapt to many kinds of systems. |
| 1558 |
|
| 1559 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1560 |
|
| 1561 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1562 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1563 |
|
| 1564 |
Defaults for the options are specified in brackets. |
| 1565 |
|
| 1566 |
Configuration: |
| 1567 |
-h, --help display this help and exit |
| 1568 |
--help=short display options specific to this package |
| 1569 |
--help=recursive display the short help of all the included packages |
| 1570 |
-V, --version display version information and exit |
| 1571 |
-q, --quiet, --silent do not print 'checking ...' messages |
| 1572 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1573 |
-C, --config-cache alias for '--cache-file=config.cache' |
| 1574 |
-n, --no-create do not create output files |
| 1575 |
--srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1576 |
|
| 1577 |
Installation directories: |
| 1578 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1579 |
[$ac_default_prefix] |
| 1580 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1581 |
[PREFIX] |
| 1582 |
|
| 1583 |
By default, 'make install' will install all the files in |
| 1584 |
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1585 |
an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1586 |
for instance '--prefix=\$HOME'. |
| 1587 |
|
| 1588 |
For better control, use the options below. |
| 1589 |
|
| 1590 |
Fine tuning of the installation directories: |
| 1591 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1592 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1593 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1594 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1595 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1596 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1597 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1598 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1599 |
--includedir=DIR C header files [PREFIX/include] |
| 1600 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1601 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1602 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1603 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1604 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1605 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1606 |
--docdir=DIR documentation root [DATAROOTDIR/doc/libmicrohttpd] |
| 1607 |
--htmldir=DIR html documentation [DOCDIR] |
| 1608 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1609 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1610 |
--psdir=DIR ps documentation [DOCDIR] |
| 1611 |
_ACEOF |
| 1612 |
|
| 1613 |
cat <<\_ACEOF |
| 1614 |
|
| 1615 |
Program names: |
| 1616 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1617 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1618 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1619 |
|
| 1620 |
System types: |
| 1621 |
--build=BUILD configure for building on BUILD [guessed] |
| 1622 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1623 |
_ACEOF |
| 1624 |
fi |
| 1625 |
|
| 1626 |
if test -n "$ac_init_help"; then |
| 1627 |
case $ac_init_help in |
| 1628 |
short | recursive ) echo "Configuration of GNU libmicrohttpd 1.0.6:";; |
| 1629 |
esac |
| 1630 |
cat <<\_ACEOF |
| 1631 |
|
| 1632 |
Optional Features: |
| 1633 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1634 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1635 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1636 |
--enable-build-type=TYPE |
| 1637 |
enable build TYPE, a set of configuration |
| 1638 |
parameters; individual settings (asserts, |
| 1639 |
sanitizers, compiler and linker flags) can be |
| 1640 |
overridden by additional configure parameters |
| 1641 |
(debug, debugger, neutral, release, release-compact, |
| 1642 |
release-hardened) [neutral] |
| 1643 |
--enable-silent-rules less verbose build output (undo: "make V=1") |
| 1644 |
--disable-silent-rules verbose build output (undo: "make V=0") |
| 1645 |
--enable-dependency-tracking |
| 1646 |
do not reject slow dependency extractors |
| 1647 |
--disable-dependency-tracking |
| 1648 |
speeds up one-time build |
| 1649 |
--disable-largefile omit support for large files |
| 1650 |
--enable-shared[=PKGS] build shared libraries [default=yes] |
| 1651 |
--enable-static[=PKGS] build static libraries [default=yes] |
| 1652 |
--enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use |
| 1653 |
both] |
| 1654 |
--enable-fast-install[=PKGS] |
| 1655 |
optimize for fast installation [default=yes] |
| 1656 |
--enable-aix-soname=aix|svr4|both |
| 1657 |
shared library versioning (aka "SONAME") variant to |
| 1658 |
provide on AIX, [default=aix]. |
| 1659 |
--disable-libtool-lock avoid locking (might break parallel builds) |
| 1660 |
--enable-compact-code enable use of a reduced size version of the code, |
| 1661 |
resulting in smaller binaries with a slight |
| 1662 |
performance hit [auto] |
| 1663 |
--enable-compiler-hardening |
| 1664 |
enable compiler security checks |
| 1665 |
--enable-linker-hardening |
| 1666 |
enable linker security fixups |
| 1667 |
--disable-thread-names do not set names on MHD generated threads [auto] |
| 1668 |
--disable-doc do not build any documentation |
| 1669 |
--disable-examples do not build any examples |
| 1670 |
--disable-tools do not build testing and demo tools |
| 1671 |
--enable-heavy-tests[=SCOPE] |
| 1672 |
use SCOPE of heavy tests in test-suite. WARNING: a |
| 1673 |
dedicated host with minimal number of background |
| 1674 |
processes and no network activity is recommended to |
| 1675 |
enable. (basic, full) |
| 1676 |
--enable-poll[=ARG] enable poll support (yes, no, auto) [auto] |
| 1677 |
--enable-epoll[=ARG] enable epoll support (yes, no, auto) [auto] |
| 1678 |
--enable-itc=TYPE use TYPE of inter-thread communication (pipe, |
| 1679 |
socketpair, eventfd) [auto] |
| 1680 |
--disable-curl disable cURL based testcases |
| 1681 |
--disable-sendfile disable usage of sendfile() for HTTP connections |
| 1682 |
[auto] |
| 1683 |
--disable-messages disable error, warning messages and text bodies for |
| 1684 |
automatic HTTP responses (to reduce the binary size) |
| 1685 |
--disable-postprocessor disable MHD PostProcessor functionality |
| 1686 |
--enable-https enable HTTPS support (yes, no, auto)[auto] |
| 1687 |
--disable-bauth disable HTTP Basic Authentication support |
| 1688 |
--disable-dauth disable HTTP Digest Authentication support |
| 1689 |
--enable-dauth-def-timeout=NNN |
| 1690 |
set default Digest Auth nonce validity time to NNN |
| 1691 |
seconds [90] |
| 1692 |
--enable-dauth-def-max-nc=NNN |
| 1693 |
set default Digest Auth maximum nc (nonce count) |
| 1694 |
value to NNN [1000] |
| 1695 |
--disable-httpupgrade disable HTTP "Upgrade" support |
| 1696 |
--disable-cookie disable HTTP cookie parsing support |
| 1697 |
--enable-md5=TYPE enable TYPE of MD5 hashing code (yes, no, builtin, |
| 1698 |
tlslib) [yes if dauth enabled] |
| 1699 |
--enable-sha256=TYPE enable TYPE of SHA-256 hashing code (yes, no, |
| 1700 |
builtin, tlslib) [yes if dauth enabled] |
| 1701 |
--disable-sha512-256 disable SHA-512/256 hashing support for Digest |
| 1702 |
Authentication |
| 1703 |
--enable-coverage compile the library with code coverage support |
| 1704 |
--enable-asserts enable test build with debug asserts |
| 1705 |
--enable-sanitizers[=address,undefined,leak,user-poison] |
| 1706 |
enable run-time sanitizers, specify the list of |
| 1707 |
types of sanitizers to enable, leave the list empty |
| 1708 |
(or set to "auto") to enable all supported and |
| 1709 |
available sanitizers, or specify "auto-fallback" to |
| 1710 |
use sanitizers even without installed sanitizer |
| 1711 |
run-time library |
| 1712 |
--enable-experimental enable compiling experimental code |
| 1713 |
--disable-year2038 don't support timestamps after 2038 |
| 1714 |
|
| 1715 |
Optional Packages: |
| 1716 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1717 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1718 |
--with-gnu-ld assume the C compiler uses GNU ld [default=no] |
| 1719 |
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the |
| 1720 |
compiler's sysroot if not specified). |
| 1721 |
--with-threads=LIB choose threading library (posix, w32, auto, none) |
| 1722 |
[auto] |
| 1723 |
--with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers |
| 1724 |
in PREFIX/include |
| 1725 |
--with-gnutls[=PFX] use GnuTLS for HTTPS support, optional PFX overrides |
| 1726 |
pkg-config data for GnuTLS headers (PFX/include) and |
| 1727 |
libs (PFX/lib) |
| 1728 |
--with-libgcrypt-prefix=PFX |
| 1729 |
prefix where LIBGCRYPT is installed (optional) |
| 1730 |
|
| 1731 |
Some influential environment variables: |
| 1732 |
CC C compiler command |
| 1733 |
CFLAGS C compiler flags |
| 1734 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1735 |
nonstandard directory <lib dir> |
| 1736 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1737 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1738 |
you have headers in a nonstandard directory <include dir> |
| 1739 |
CPP C preprocessor |
| 1740 |
LT_SYS_LIBRARY_PATH |
| 1741 |
User-defined run-time library search path. |
| 1742 |
PKG_CONFIG path to pkg-config utility |
| 1743 |
PKG_CONFIG_PATH |
| 1744 |
directories to add to pkg-config's search path |
| 1745 |
PKG_CONFIG_LIBDIR |
| 1746 |
path overriding pkg-config's built-in search path |
| 1747 |
GNUTLS_CFLAGS |
| 1748 |
C compiler flags for GNUTLS, overriding pkg-config |
| 1749 |
GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config |
| 1750 |
|
| 1751 |
Use these variables to override the choices made by 'configure' or to help |
| 1752 |
it to find libraries and programs with nonstandard names/locations. |
| 1753 |
|
| 1754 |
Report bugs to <[email protected]>. |
| 1755 |
GNU libmicrohttpd home page: <https://www.gnu.org/software/libmicrohttpd/>. |
| 1756 |
General help using GNU software: <https://www.gnu.org/gethelp/>. |
| 1757 |
_ACEOF |
| 1758 |
ac_status=$? |
| 1759 |
fi |
| 1760 |
|
| 1761 |
if test "$ac_init_help" = "recursive"; then |
| 1762 |
# If there are subdirs, report their specific --help. |
| 1763 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1764 |
test -d "$ac_dir" || |
| 1765 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1766 |
continue |
| 1767 |
ac_builddir=. |
| 1768 |
|
| 1769 |
case "$ac_dir" in |
| 1770 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1771 |
*) |
| 1772 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1773 |
# A ".." for each directory in $ac_dir_suffix. |
| 1774 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1775 |
case $ac_top_builddir_sub in |
| 1776 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1777 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1778 |
esac ;; |
| 1779 |
esac |
| 1780 |
ac_abs_top_builddir=$ac_pwd |
| 1781 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1782 |
# for backward compatibility: |
| 1783 |
ac_top_builddir=$ac_top_build_prefix |
| 1784 |
|
| 1785 |
case $srcdir in |
| 1786 |
.) # We are building in place. |
| 1787 |
ac_srcdir=. |
| 1788 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1789 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1790 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1791 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1792 |
ac_top_srcdir=$srcdir |
| 1793 |
ac_abs_top_srcdir=$srcdir ;; |
| 1794 |
*) # Relative name. |
| 1795 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1796 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1797 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1798 |
esac |
| 1799 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1800 |
|
| 1801 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1802 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1803 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1804 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1805 |
echo && |
| 1806 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1807 |
elif test -f "$ac_srcdir/configure"; then |
| 1808 |
echo && |
| 1809 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1810 |
else |
| 1811 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1812 |
fi || ac_status=$? |
| 1813 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1814 |
done |
| 1815 |
fi |
| 1816 |
|
| 1817 |
test -n "$ac_init_help" && exit $ac_status |
| 1818 |
if $ac_init_version; then |
| 1819 |
cat <<\_ACEOF |
| 1820 |
GNU libmicrohttpd configure 1.0.6 |
| 1821 |
generated by GNU Autoconf 2.72 |
| 1822 |
|
| 1823 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 1824 |
This configure script is free software; the Free Software Foundation |
| 1825 |
gives unlimited permission to copy, distribute and modify it. |
| 1826 |
_ACEOF |
| 1827 |
exit |
| 1828 |
fi |
| 1829 |
|
| 1830 |
## ------------------------ ## |
| 1831 |
## Autoconf initialization. ## |
| 1832 |
## ------------------------ ## |
| 1833 |
|
| 1834 |
# ac_fn_c_try_compile LINENO |
| 1835 |
# -------------------------- |
| 1836 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1837 |
ac_fn_c_try_compile () |
| 1838 |
{ |
| 1839 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1840 |
rm -f conftest.$ac_objext conftest.beam |
| 1841 |
if { { ac_try="$ac_compile" |
| 1842 |
case "(($ac_try" in |
| 1843 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1844 |
*) ac_try_echo=$ac_try;; |
| 1845 |
esac |
| 1846 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1847 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1848 |
(eval "$ac_compile") 2>conftest.err |
| 1849 |
ac_status=$? |
| 1850 |
if test -s conftest.err; then |
| 1851 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1852 |
cat conftest.er1 >&5 |
| 1853 |
mv -f conftest.er1 conftest.err |
| 1854 |
fi |
| 1855 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1856 |
test $ac_status = 0; } && { |
| 1857 |
test -z "$ac_c_werror_flag" || |
| 1858 |
test ! -s conftest.err |
| 1859 |
} && test -s conftest.$ac_objext |
| 1860 |
then : |
| 1861 |
ac_retval=0 |
| 1862 |
else case e in #( |
| 1863 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1864 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1865 |
|
| 1866 |
ac_retval=1 ;; |
| 1867 |
esac |
| 1868 |
fi |
| 1869 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1870 |
as_fn_set_status $ac_retval |
| 1871 |
|
| 1872 |
} # ac_fn_c_try_compile |
| 1873 |
|
| 1874 |
# ac_fn_c_try_cpp LINENO |
| 1875 |
# ---------------------- |
| 1876 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1877 |
ac_fn_c_try_cpp () |
| 1878 |
{ |
| 1879 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1880 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1881 |
case "(($ac_try" in |
| 1882 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1883 |
*) ac_try_echo=$ac_try;; |
| 1884 |
esac |
| 1885 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1886 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1887 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1888 |
ac_status=$? |
| 1889 |
if test -s conftest.err; then |
| 1890 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1891 |
cat conftest.er1 >&5 |
| 1892 |
mv -f conftest.er1 conftest.err |
| 1893 |
fi |
| 1894 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1895 |
test $ac_status = 0; } > conftest.i && { |
| 1896 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1897 |
test ! -s conftest.err |
| 1898 |
} |
| 1899 |
then : |
| 1900 |
ac_retval=0 |
| 1901 |
else case e in #( |
| 1902 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1903 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1904 |
|
| 1905 |
ac_retval=1 ;; |
| 1906 |
esac |
| 1907 |
fi |
| 1908 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1909 |
as_fn_set_status $ac_retval |
| 1910 |
|
| 1911 |
} # ac_fn_c_try_cpp |
| 1912 |
|
| 1913 |
# ac_fn_c_try_link LINENO |
| 1914 |
# ----------------------- |
| 1915 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1916 |
ac_fn_c_try_link () |
| 1917 |
{ |
| 1918 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1919 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1920 |
if { { ac_try="$ac_link" |
| 1921 |
case "(($ac_try" in |
| 1922 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1923 |
*) ac_try_echo=$ac_try;; |
| 1924 |
esac |
| 1925 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1926 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1927 |
(eval "$ac_link") 2>conftest.err |
| 1928 |
ac_status=$? |
| 1929 |
if test -s conftest.err; then |
| 1930 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1931 |
cat conftest.er1 >&5 |
| 1932 |
mv -f conftest.er1 conftest.err |
| 1933 |
fi |
| 1934 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1935 |
test $ac_status = 0; } && { |
| 1936 |
test -z "$ac_c_werror_flag" || |
| 1937 |
test ! -s conftest.err |
| 1938 |
} && test -s conftest$ac_exeext && { |
| 1939 |
test "$cross_compiling" = yes || |
| 1940 |
test -x conftest$ac_exeext |
| 1941 |
} |
| 1942 |
then : |
| 1943 |
ac_retval=0 |
| 1944 |
else case e in #( |
| 1945 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1946 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1947 |
|
| 1948 |
ac_retval=1 ;; |
| 1949 |
esac |
| 1950 |
fi |
| 1951 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1952 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1953 |
# interfere with the next link command; also delete a directory that is |
| 1954 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1955 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1956 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1957 |
as_fn_set_status $ac_retval |
| 1958 |
|
| 1959 |
} # ac_fn_c_try_link |
| 1960 |
|
| 1961 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1962 |
# ------------------------------------------------------- |
| 1963 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 1964 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 1965 |
ac_fn_c_check_header_compile () |
| 1966 |
{ |
| 1967 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1968 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1969 |
printf %s "checking for $2... " >&6; } |
| 1970 |
if eval test \${$3+y} |
| 1971 |
then : |
| 1972 |
printf %s "(cached) " >&6 |
| 1973 |
else case e in #( |
| 1974 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1975 |
/* end confdefs.h. */ |
| 1976 |
$4 |
| 1977 |
#include <$2> |
| 1978 |
_ACEOF |
| 1979 |
if ac_fn_c_try_compile "$LINENO" |
| 1980 |
then : |
| 1981 |
eval "$3=yes" |
| 1982 |
else case e in #( |
| 1983 |
e) eval "$3=no" ;; |
| 1984 |
esac |
| 1985 |
fi |
| 1986 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 1987 |
esac |
| 1988 |
fi |
| 1989 |
eval ac_res=\$$3 |
| 1990 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1991 |
printf "%s\n" "$ac_res" >&6; } |
| 1992 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1993 |
|
| 1994 |
} # ac_fn_c_check_header_compile |
| 1995 |
|
| 1996 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1997 |
# ---------------------------------- |
| 1998 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1999 |
ac_fn_c_check_func () |
| 2000 |
{ |
| 2001 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2003 |
printf %s "checking for $2... " >&6; } |
| 2004 |
if eval test \${$3+y} |
| 2005 |
then : |
| 2006 |
printf %s "(cached) " >&6 |
| 2007 |
else case e in #( |
| 2008 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2009 |
/* end confdefs.h. */ |
| 2010 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2011 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2012 |
#define $2 innocuous_$2 |
| 2013 |
|
| 2014 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2015 |
which can conflict with char $2 (void); below. */ |
| 2016 |
|
| 2017 |
#include <limits.h> |
| 2018 |
#undef $2 |
| 2019 |
|
| 2020 |
/* Override any GCC internal prototype to avoid an error. |
| 2021 |
Use char because int might match the return type of a GCC |
| 2022 |
builtin and then its argument prototype would still apply. */ |
| 2023 |
#ifdef __cplusplus |
| 2024 |
extern "C" |
| 2025 |
#endif |
| 2026 |
char $2 (void); |
| 2027 |
/* The GNU C library defines this for functions which it implements |
| 2028 |
to always fail with ENOSYS. Some functions are actually named |
| 2029 |
something starting with __ and the normal name is an alias. */ |
| 2030 |
#if defined __stub_$2 || defined __stub___$2 |
| 2031 |
choke me |
| 2032 |
#endif |
| 2033 |
|
| 2034 |
int |
| 2035 |
main (void) |
| 2036 |
{ |
| 2037 |
return $2 (); |
| 2038 |
; |
| 2039 |
return 0; |
| 2040 |
} |
| 2041 |
_ACEOF |
| 2042 |
if ac_fn_c_try_link "$LINENO" |
| 2043 |
then : |
| 2044 |
eval "$3=yes" |
| 2045 |
else case e in #( |
| 2046 |
e) eval "$3=no" ;; |
| 2047 |
esac |
| 2048 |
fi |
| 2049 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 2050 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 2051 |
esac |
| 2052 |
fi |
| 2053 |
eval ac_res=\$$3 |
| 2054 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2055 |
printf "%s\n" "$ac_res" >&6; } |
| 2056 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2057 |
|
| 2058 |
} # ac_fn_c_check_func |
| 2059 |
|
| 2060 |
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2061 |
# ------------------------------------------------------------------ |
| 2062 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2063 |
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2064 |
ac_fn_check_decl () |
| 2065 |
{ |
| 2066 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2067 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2069 |
printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2070 |
if eval test \${$3+y} |
| 2071 |
then : |
| 2072 |
printf %s "(cached) " >&6 |
| 2073 |
else case e in #( |
| 2074 |
e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2075 |
eval ac_save_FLAGS=\$$6 |
| 2076 |
as_fn_append $6 " $5" |
| 2077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2078 |
/* end confdefs.h. */ |
| 2079 |
$4 |
| 2080 |
int |
| 2081 |
main (void) |
| 2082 |
{ |
| 2083 |
#ifndef $as_decl_name |
| 2084 |
#ifdef __cplusplus |
| 2085 |
(void) $as_decl_use; |
| 2086 |
#else |
| 2087 |
(void) $as_decl_name; |
| 2088 |
#endif |
| 2089 |
#endif |
| 2090 |
|
| 2091 |
; |
| 2092 |
return 0; |
| 2093 |
} |
| 2094 |
_ACEOF |
| 2095 |
if ac_fn_c_try_compile "$LINENO" |
| 2096 |
then : |
| 2097 |
eval "$3=yes" |
| 2098 |
else case e in #( |
| 2099 |
e) eval "$3=no" ;; |
| 2100 |
esac |
| 2101 |
fi |
| 2102 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2103 |
eval $6=\$ac_save_FLAGS |
| 2104 |
;; |
| 2105 |
esac |
| 2106 |
fi |
| 2107 |
eval ac_res=\$$3 |
| 2108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2109 |
printf "%s\n" "$ac_res" >&6; } |
| 2110 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2111 |
|
| 2112 |
} # ac_fn_check_decl |
| 2113 |
|
| 2114 |
# ac_fn_c_try_run LINENO |
| 2115 |
# ---------------------- |
| 2116 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 2117 |
# executables *can* be run. |
| 2118 |
ac_fn_c_try_run () |
| 2119 |
{ |
| 2120 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2121 |
if { { ac_try="$ac_link" |
| 2122 |
case "(($ac_try" in |
| 2123 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2124 |
*) ac_try_echo=$ac_try;; |
| 2125 |
esac |
| 2126 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2127 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2128 |
(eval "$ac_link") 2>&5 |
| 2129 |
ac_status=$? |
| 2130 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2131 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2132 |
{ { case "(($ac_try" in |
| 2133 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2134 |
*) ac_try_echo=$ac_try;; |
| 2135 |
esac |
| 2136 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2137 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2138 |
(eval "$ac_try") 2>&5 |
| 2139 |
ac_status=$? |
| 2140 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2141 |
test $ac_status = 0; }; } |
| 2142 |
then : |
| 2143 |
ac_retval=0 |
| 2144 |
else case e in #( |
| 2145 |
e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 2146 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2147 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2148 |
|
| 2149 |
ac_retval=$ac_status ;; |
| 2150 |
esac |
| 2151 |
fi |
| 2152 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2153 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2154 |
as_fn_set_status $ac_retval |
| 2155 |
|
| 2156 |
} # ac_fn_c_try_run |
| 2157 |
|
| 2158 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2159 |
# ------------------------------------------- |
| 2160 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2161 |
# variable VAR accordingly. |
| 2162 |
ac_fn_c_check_type () |
| 2163 |
{ |
| 2164 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2166 |
printf %s "checking for $2... " >&6; } |
| 2167 |
if eval test \${$3+y} |
| 2168 |
then : |
| 2169 |
printf %s "(cached) " >&6 |
| 2170 |
else case e in #( |
| 2171 |
e) eval "$3=no" |
| 2172 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2173 |
/* end confdefs.h. */ |
| 2174 |
$4 |
| 2175 |
int |
| 2176 |
main (void) |
| 2177 |
{ |
| 2178 |
if (sizeof ($2)) |
| 2179 |
return 0; |
| 2180 |
; |
| 2181 |
return 0; |
| 2182 |
} |
| 2183 |
_ACEOF |
| 2184 |
if ac_fn_c_try_compile "$LINENO" |
| 2185 |
then : |
| 2186 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2187 |
/* end confdefs.h. */ |
| 2188 |
$4 |
| 2189 |
int |
| 2190 |
main (void) |
| 2191 |
{ |
| 2192 |
if (sizeof (($2))) |
| 2193 |
return 0; |
| 2194 |
; |
| 2195 |
return 0; |
| 2196 |
} |
| 2197 |
_ACEOF |
| 2198 |
if ac_fn_c_try_compile "$LINENO" |
| 2199 |
then : |
| 2200 |
|
| 2201 |
else case e in #( |
| 2202 |
e) eval "$3=yes" ;; |
| 2203 |
esac |
| 2204 |
fi |
| 2205 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2206 |
fi |
| 2207 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2208 |
esac |
| 2209 |
fi |
| 2210 |
eval ac_res=\$$3 |
| 2211 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2212 |
printf "%s\n" "$ac_res" >&6; } |
| 2213 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2214 |
|
| 2215 |
} # ac_fn_c_check_type |
| 2216 |
|
| 2217 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2218 |
# -------------------------------------------- |
| 2219 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2220 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2221 |
# computed |
| 2222 |
ac_fn_c_compute_int () |
| 2223 |
{ |
| 2224 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2225 |
if test "$cross_compiling" = yes; then |
| 2226 |
# Depending upon the size, compute the lo and hi bounds. |
| 2227 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2228 |
/* end confdefs.h. */ |
| 2229 |
$4 |
| 2230 |
int |
| 2231 |
main (void) |
| 2232 |
{ |
| 2233 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2234 |
test_array [0] = 0; |
| 2235 |
return test_array [0]; |
| 2236 |
|
| 2237 |
; |
| 2238 |
return 0; |
| 2239 |
} |
| 2240 |
_ACEOF |
| 2241 |
if ac_fn_c_try_compile "$LINENO" |
| 2242 |
then : |
| 2243 |
ac_lo=0 ac_mid=0 |
| 2244 |
while :; do |
| 2245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2246 |
/* end confdefs.h. */ |
| 2247 |
$4 |
| 2248 |
int |
| 2249 |
main (void) |
| 2250 |
{ |
| 2251 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2252 |
test_array [0] = 0; |
| 2253 |
return test_array [0]; |
| 2254 |
|
| 2255 |
; |
| 2256 |
return 0; |
| 2257 |
} |
| 2258 |
_ACEOF |
| 2259 |
if ac_fn_c_try_compile "$LINENO" |
| 2260 |
then : |
| 2261 |
ac_hi=$ac_mid; break |
| 2262 |
else case e in #( |
| 2263 |
e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2264 |
if test $ac_lo -le $ac_mid; then |
| 2265 |
ac_lo= ac_hi= |
| 2266 |
break |
| 2267 |
fi |
| 2268 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; |
| 2269 |
esac |
| 2270 |
fi |
| 2271 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2272 |
done |
| 2273 |
else case e in #( |
| 2274 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2275 |
/* end confdefs.h. */ |
| 2276 |
$4 |
| 2277 |
int |
| 2278 |
main (void) |
| 2279 |
{ |
| 2280 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2281 |
test_array [0] = 0; |
| 2282 |
return test_array [0]; |
| 2283 |
|
| 2284 |
; |
| 2285 |
return 0; |
| 2286 |
} |
| 2287 |
_ACEOF |
| 2288 |
if ac_fn_c_try_compile "$LINENO" |
| 2289 |
then : |
| 2290 |
ac_hi=-1 ac_mid=-1 |
| 2291 |
while :; do |
| 2292 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2293 |
/* end confdefs.h. */ |
| 2294 |
$4 |
| 2295 |
int |
| 2296 |
main (void) |
| 2297 |
{ |
| 2298 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2299 |
test_array [0] = 0; |
| 2300 |
return test_array [0]; |
| 2301 |
|
| 2302 |
; |
| 2303 |
return 0; |
| 2304 |
} |
| 2305 |
_ACEOF |
| 2306 |
if ac_fn_c_try_compile "$LINENO" |
| 2307 |
then : |
| 2308 |
ac_lo=$ac_mid; break |
| 2309 |
else case e in #( |
| 2310 |
e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2311 |
if test $ac_mid -le $ac_hi; then |
| 2312 |
ac_lo= ac_hi= |
| 2313 |
break |
| 2314 |
fi |
| 2315 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; |
| 2316 |
esac |
| 2317 |
fi |
| 2318 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2319 |
done |
| 2320 |
else case e in #( |
| 2321 |
e) ac_lo= ac_hi= ;; |
| 2322 |
esac |
| 2323 |
fi |
| 2324 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2325 |
esac |
| 2326 |
fi |
| 2327 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2328 |
# Binary search between lo and hi bounds. |
| 2329 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2330 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2331 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2332 |
/* end confdefs.h. */ |
| 2333 |
$4 |
| 2334 |
int |
| 2335 |
main (void) |
| 2336 |
{ |
| 2337 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2338 |
test_array [0] = 0; |
| 2339 |
return test_array [0]; |
| 2340 |
|
| 2341 |
; |
| 2342 |
return 0; |
| 2343 |
} |
| 2344 |
_ACEOF |
| 2345 |
if ac_fn_c_try_compile "$LINENO" |
| 2346 |
then : |
| 2347 |
ac_hi=$ac_mid |
| 2348 |
else case e in #( |
| 2349 |
e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; |
| 2350 |
esac |
| 2351 |
fi |
| 2352 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2353 |
done |
| 2354 |
case $ac_lo in #(( |
| 2355 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2356 |
'') ac_retval=1 ;; |
| 2357 |
esac |
| 2358 |
else |
| 2359 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2360 |
/* end confdefs.h. */ |
| 2361 |
$4 |
| 2362 |
static long int longval (void) { return $2; } |
| 2363 |
static unsigned long int ulongval (void) { return $2; } |
| 2364 |
#include <stdio.h> |
| 2365 |
#include <stdlib.h> |
| 2366 |
int |
| 2367 |
main (void) |
| 2368 |
{ |
| 2369 |
|
| 2370 |
FILE *f = fopen ("conftest.val", "w"); |
| 2371 |
if (! f) |
| 2372 |
return 1; |
| 2373 |
if (($2) < 0) |
| 2374 |
{ |
| 2375 |
long int i = longval (); |
| 2376 |
if (i != ($2)) |
| 2377 |
return 1; |
| 2378 |
fprintf (f, "%ld", i); |
| 2379 |
} |
| 2380 |
else |
| 2381 |
{ |
| 2382 |
unsigned long int i = ulongval (); |
| 2383 |
if (i != ($2)) |
| 2384 |
return 1; |
| 2385 |
fprintf (f, "%lu", i); |
| 2386 |
} |
| 2387 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2388 |
on some platforms. */ |
| 2389 |
return ferror (f) || fclose (f) != 0; |
| 2390 |
|
| 2391 |
; |
| 2392 |
return 0; |
| 2393 |
} |
| 2394 |
_ACEOF |
| 2395 |
if ac_fn_c_try_run "$LINENO" |
| 2396 |
then : |
| 2397 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2398 |
else case e in #( |
| 2399 |
e) ac_retval=1 ;; |
| 2400 |
esac |
| 2401 |
fi |
| 2402 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2403 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2404 |
rm -f conftest.val |
| 2405 |
|
| 2406 |
fi |
| 2407 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2408 |
as_fn_set_status $ac_retval |
| 2409 |
|
| 2410 |
} # ac_fn_c_compute_int |
| 2411 |
|
| 2412 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2413 |
# ---------------------------------------------------- |
| 2414 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2415 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2416 |
ac_fn_c_check_member () |
| 2417 |
{ |
| 2418 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2420 |
printf %s "checking for $2.$3... " >&6; } |
| 2421 |
if eval test \${$4+y} |
| 2422 |
then : |
| 2423 |
printf %s "(cached) " >&6 |
| 2424 |
else case e in #( |
| 2425 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2426 |
/* end confdefs.h. */ |
| 2427 |
$5 |
| 2428 |
int |
| 2429 |
main (void) |
| 2430 |
{ |
| 2431 |
static $2 ac_aggr; |
| 2432 |
if (ac_aggr.$3) |
| 2433 |
return 0; |
| 2434 |
; |
| 2435 |
return 0; |
| 2436 |
} |
| 2437 |
_ACEOF |
| 2438 |
if ac_fn_c_try_compile "$LINENO" |
| 2439 |
then : |
| 2440 |
eval "$4=yes" |
| 2441 |
else case e in #( |
| 2442 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2443 |
/* end confdefs.h. */ |
| 2444 |
$5 |
| 2445 |
int |
| 2446 |
main (void) |
| 2447 |
{ |
| 2448 |
static $2 ac_aggr; |
| 2449 |
if (sizeof ac_aggr.$3) |
| 2450 |
return 0; |
| 2451 |
; |
| 2452 |
return 0; |
| 2453 |
} |
| 2454 |
_ACEOF |
| 2455 |
if ac_fn_c_try_compile "$LINENO" |
| 2456 |
then : |
| 2457 |
eval "$4=yes" |
| 2458 |
else case e in #( |
| 2459 |
e) eval "$4=no" ;; |
| 2460 |
esac |
| 2461 |
fi |
| 2462 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2463 |
esac |
| 2464 |
fi |
| 2465 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 2466 |
esac |
| 2467 |
fi |
| 2468 |
eval ac_res=\$$4 |
| 2469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2470 |
printf "%s\n" "$ac_res" >&6; } |
| 2471 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2472 |
|
| 2473 |
} # ac_fn_c_check_member |
| 2474 |
ac_configure_args_raw= |
| 2475 |
for ac_arg |
| 2476 |
do |
| 2477 |
case $ac_arg in |
| 2478 |
*\'*) |
| 2479 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2480 |
esac |
| 2481 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2482 |
done |
| 2483 |
|
| 2484 |
case $ac_configure_args_raw in |
| 2485 |
*$as_nl*) |
| 2486 |
ac_safe_unquote= ;; |
| 2487 |
*) |
| 2488 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2489 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 2490 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2491 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2492 |
esac |
| 2493 |
|
| 2494 |
cat >config.log <<_ACEOF |
| 2495 |
This file contains any messages produced by compilers while |
| 2496 |
running configure, to aid debugging if configure makes a mistake. |
| 2497 |
|
| 2498 |
It was created by GNU libmicrohttpd $as_me 1.0.6, which was |
| 2499 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 2500 |
|
| 2501 |
$ $0$ac_configure_args_raw |
| 2502 |
|
| 2503 |
_ACEOF |
| 2504 |
exec 5>>config.log |
| 2505 |
{ |
| 2506 |
cat <<_ASUNAME |
| 2507 |
## --------- ## |
| 2508 |
## Platform. ## |
| 2509 |
## --------- ## |
| 2510 |
|
| 2511 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2512 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2513 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2514 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2515 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2516 |
|
| 2517 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2518 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2519 |
|
| 2520 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2521 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2522 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2523 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2524 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2525 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2526 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2527 |
|
| 2528 |
_ASUNAME |
| 2529 |
|
| 2530 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2531 |
for as_dir in $PATH |
| 2532 |
do |
| 2533 |
IFS=$as_save_IFS |
| 2534 |
case $as_dir in #((( |
| 2535 |
'') as_dir=./ ;; |
| 2536 |
*/) ;; |
| 2537 |
*) as_dir=$as_dir/ ;; |
| 2538 |
esac |
| 2539 |
printf "%s\n" "PATH: $as_dir" |
| 2540 |
done |
| 2541 |
IFS=$as_save_IFS |
| 2542 |
|
| 2543 |
} >&5 |
| 2544 |
|
| 2545 |
cat >&5 <<_ACEOF |
| 2546 |
|
| 2547 |
|
| 2548 |
## ----------- ## |
| 2549 |
## Core tests. ## |
| 2550 |
## ----------- ## |
| 2551 |
|
| 2552 |
_ACEOF |
| 2553 |
|
| 2554 |
|
| 2555 |
# Keep a trace of the command line. |
| 2556 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2557 |
# Strip out --silent because we don't want to record it for future runs. |
| 2558 |
# Also quote any args containing shell meta-characters. |
| 2559 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2560 |
ac_configure_args= |
| 2561 |
ac_configure_args0= |
| 2562 |
ac_configure_args1= |
| 2563 |
ac_must_keep_next=false |
| 2564 |
for ac_pass in 1 2 |
| 2565 |
do |
| 2566 |
for ac_arg |
| 2567 |
do |
| 2568 |
case $ac_arg in |
| 2569 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2570 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2571 |
| -silent | --silent | --silen | --sile | --sil) |
| 2572 |
continue ;; |
| 2573 |
*\'*) |
| 2574 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2575 |
esac |
| 2576 |
case $ac_pass in |
| 2577 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2578 |
2) |
| 2579 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2580 |
if test $ac_must_keep_next = true; then |
| 2581 |
ac_must_keep_next=false # Got value, back to normal. |
| 2582 |
else |
| 2583 |
case $ac_arg in |
| 2584 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2585 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2586 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2587 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2588 |
case "$ac_configure_args0 " in |
| 2589 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2590 |
esac |
| 2591 |
;; |
| 2592 |
-* ) ac_must_keep_next=true ;; |
| 2593 |
esac |
| 2594 |
fi |
| 2595 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2596 |
;; |
| 2597 |
esac |
| 2598 |
done |
| 2599 |
done |
| 2600 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2601 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2602 |
|
| 2603 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2604 |
# config.log. We remove comments because anyway the quotes in there |
| 2605 |
# would cause problems or look ugly. |
| 2606 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2607 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2608 |
trap 'exit_status=$? |
| 2609 |
# Sanitize IFS. |
| 2610 |
IFS=" "" $as_nl" |
| 2611 |
# Save into config.log some information that might help in debugging. |
| 2612 |
{ |
| 2613 |
echo |
| 2614 |
|
| 2615 |
printf "%s\n" "## ---------------- ## |
| 2616 |
## Cache variables. ## |
| 2617 |
## ---------------- ##" |
| 2618 |
echo |
| 2619 |
# The following way of writing the cache mishandles newlines in values, |
| 2620 |
( |
| 2621 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2622 |
eval ac_val=\$$ac_var |
| 2623 |
case $ac_val in #( |
| 2624 |
*${as_nl}*) |
| 2625 |
case $ac_var in #( |
| 2626 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2627 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2628 |
esac |
| 2629 |
case $ac_var in #( |
| 2630 |
_ | IFS | as_nl) ;; #( |
| 2631 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2632 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2633 |
esac ;; |
| 2634 |
esac |
| 2635 |
done |
| 2636 |
(set) 2>&1 | |
| 2637 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2638 |
*${as_nl}ac_space=\ *) |
| 2639 |
sed -n \ |
| 2640 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2641 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2642 |
;; #( |
| 2643 |
*) |
| 2644 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2645 |
;; |
| 2646 |
esac | |
| 2647 |
sort |
| 2648 |
) |
| 2649 |
echo |
| 2650 |
|
| 2651 |
printf "%s\n" "## ----------------- ## |
| 2652 |
## Output variables. ## |
| 2653 |
## ----------------- ##" |
| 2654 |
echo |
| 2655 |
for ac_var in $ac_subst_vars |
| 2656 |
do |
| 2657 |
eval ac_val=\$$ac_var |
| 2658 |
case $ac_val in |
| 2659 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2660 |
esac |
| 2661 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2662 |
done | sort |
| 2663 |
echo |
| 2664 |
|
| 2665 |
if test -n "$ac_subst_files"; then |
| 2666 |
printf "%s\n" "## ------------------- ## |
| 2667 |
## File substitutions. ## |
| 2668 |
## ------------------- ##" |
| 2669 |
echo |
| 2670 |
for ac_var in $ac_subst_files |
| 2671 |
do |
| 2672 |
eval ac_val=\$$ac_var |
| 2673 |
case $ac_val in |
| 2674 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2675 |
esac |
| 2676 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2677 |
done | sort |
| 2678 |
echo |
| 2679 |
fi |
| 2680 |
|
| 2681 |
if test -s confdefs.h; then |
| 2682 |
printf "%s\n" "## ----------- ## |
| 2683 |
## confdefs.h. ## |
| 2684 |
## ----------- ##" |
| 2685 |
echo |
| 2686 |
cat confdefs.h |
| 2687 |
echo |
| 2688 |
fi |
| 2689 |
test "$ac_signal" != 0 && |
| 2690 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2691 |
printf "%s\n" "$as_me: exit $exit_status" |
| 2692 |
} >&5 |
| 2693 |
rm -f core *.core core.conftest.* && |
| 2694 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2695 |
exit $exit_status |
| 2696 |
' 0 |
| 2697 |
for ac_signal in 1 2 13 15; do |
| 2698 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2699 |
done |
| 2700 |
ac_signal=0 |
| 2701 |
|
| 2702 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2703 |
rm -f -r conftest* confdefs.h |
| 2704 |
|
| 2705 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2706 |
|
| 2707 |
# Predefined preprocessor variables. |
| 2708 |
|
| 2709 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2710 |
|
| 2711 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2712 |
|
| 2713 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2714 |
|
| 2715 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2716 |
|
| 2717 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2718 |
|
| 2719 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2720 |
|
| 2721 |
|
| 2722 |
# Let the site file select an alternate cache file if it wants to. |
| 2723 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2724 |
if test -n "$CONFIG_SITE"; then |
| 2725 |
ac_site_files="$CONFIG_SITE" |
| 2726 |
elif test "x$prefix" != xNONE; then |
| 2727 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2728 |
else |
| 2729 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2730 |
fi |
| 2731 |
|
| 2732 |
for ac_site_file in $ac_site_files |
| 2733 |
do |
| 2734 |
case $ac_site_file in #( |
| 2735 |
*/*) : |
| 2736 |
;; #( |
| 2737 |
*) : |
| 2738 |
ac_site_file=./$ac_site_file ;; |
| 2739 |
esac |
| 2740 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2742 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2743 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2744 |
. "$ac_site_file" \ |
| 2745 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2746 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2747 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2748 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2749 |
fi |
| 2750 |
done |
| 2751 |
|
| 2752 |
if test -r "$cache_file"; then |
| 2753 |
# Some versions of bash will fail to source /dev/null (special files |
| 2754 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2755 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2756 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2757 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2758 |
case $cache_file in |
| 2759 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2760 |
*) . "./$cache_file";; |
| 2761 |
esac |
| 2762 |
fi |
| 2763 |
else |
| 2764 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2765 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2766 |
>$cache_file |
| 2767 |
fi |
| 2768 |
|
| 2769 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 2770 |
ac_c_conftest_c89_globals=' |
| 2771 |
/* Does the compiler advertise C89 conformance? |
| 2772 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 2773 |
while being otherwise adequately conformant. */ |
| 2774 |
#if !defined __STDC__ |
| 2775 |
# error "Compiler does not advertise C89 conformance" |
| 2776 |
#endif |
| 2777 |
|
| 2778 |
#include <stddef.h> |
| 2779 |
#include <stdarg.h> |
| 2780 |
struct stat; |
| 2781 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2782 |
struct buf { int x; }; |
| 2783 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2784 |
static char *e (char **p, int i) |
| 2785 |
{ |
| 2786 |
return p[i]; |
| 2787 |
} |
| 2788 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2789 |
{ |
| 2790 |
char *s; |
| 2791 |
va_list v; |
| 2792 |
va_start (v,p); |
| 2793 |
s = g (p, va_arg (v,int)); |
| 2794 |
va_end (v); |
| 2795 |
return s; |
| 2796 |
} |
| 2797 |
|
| 2798 |
/* C89 style stringification. */ |
| 2799 |
#define noexpand_stringify(a) #a |
| 2800 |
const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 2801 |
|
| 2802 |
/* C89 style token pasting. Exercises some of the corner cases that |
| 2803 |
e.g. old MSVC gets wrong, but not very hard. */ |
| 2804 |
#define noexpand_concat(a,b) a##b |
| 2805 |
#define expand_concat(a,b) noexpand_concat(a,b) |
| 2806 |
extern int vA; |
| 2807 |
extern int vbee; |
| 2808 |
#define aye A |
| 2809 |
#define bee B |
| 2810 |
int *pvA = &expand_concat(v,aye); |
| 2811 |
int *pvbee = &noexpand_concat(v,bee); |
| 2812 |
|
| 2813 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2814 |
function prototypes and stuff, but not \xHH hex character constants. |
| 2815 |
These do not provoke an error unfortunately, instead are silently treated |
| 2816 |
as an "x". The following induces an error, until -std is added to get |
| 2817 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2818 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 2819 |
that is true only with -std. */ |
| 2820 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2821 |
|
| 2822 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2823 |
inside strings and character constants. */ |
| 2824 |
#define FOO(x) '\''x'\'' |
| 2825 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2826 |
|
| 2827 |
int test (int i, double x); |
| 2828 |
struct s1 {int (*f) (int a);}; |
| 2829 |
struct s2 {int (*f) (double a);}; |
| 2830 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2831 |
int, int);' |
| 2832 |
|
| 2833 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2834 |
ac_c_conftest_c89_main=' |
| 2835 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2836 |
' |
| 2837 |
|
| 2838 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2839 |
ac_c_conftest_c99_globals=' |
| 2840 |
/* Does the compiler advertise C99 conformance? */ |
| 2841 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2842 |
# error "Compiler does not advertise C99 conformance" |
| 2843 |
#endif |
| 2844 |
|
| 2845 |
// See if C++-style comments work. |
| 2846 |
|
| 2847 |
#include <stdbool.h> |
| 2848 |
extern int puts (const char *); |
| 2849 |
extern int printf (const char *, ...); |
| 2850 |
extern int dprintf (int, const char *, ...); |
| 2851 |
extern void *malloc (size_t); |
| 2852 |
extern void free (void *); |
| 2853 |
|
| 2854 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2855 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2856 |
// FILE and stderr. |
| 2857 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2858 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2859 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2860 |
static void |
| 2861 |
test_varargs_macros (void) |
| 2862 |
{ |
| 2863 |
int x = 1234; |
| 2864 |
int y = 5678; |
| 2865 |
debug ("Flag"); |
| 2866 |
debug ("X = %d\n", x); |
| 2867 |
showlist (The first, second, and third items.); |
| 2868 |
report (x>y, "x is %d but y is %d", x, y); |
| 2869 |
} |
| 2870 |
|
| 2871 |
// Check long long types. |
| 2872 |
#define BIG64 18446744073709551615ull |
| 2873 |
#define BIG32 4294967295ul |
| 2874 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2875 |
#if !BIG_OK |
| 2876 |
#error "your preprocessor is broken" |
| 2877 |
#endif |
| 2878 |
#if BIG_OK |
| 2879 |
#else |
| 2880 |
#error "your preprocessor is broken" |
| 2881 |
#endif |
| 2882 |
static long long int bignum = -9223372036854775807LL; |
| 2883 |
static unsigned long long int ubignum = BIG64; |
| 2884 |
|
| 2885 |
struct incomplete_array |
| 2886 |
{ |
| 2887 |
int datasize; |
| 2888 |
double data[]; |
| 2889 |
}; |
| 2890 |
|
| 2891 |
struct named_init { |
| 2892 |
int number; |
| 2893 |
const wchar_t *name; |
| 2894 |
double average; |
| 2895 |
}; |
| 2896 |
|
| 2897 |
typedef const char *ccp; |
| 2898 |
|
| 2899 |
static inline int |
| 2900 |
test_restrict (ccp restrict text) |
| 2901 |
{ |
| 2902 |
// Iterate through items via the restricted pointer. |
| 2903 |
// Also check for declarations in for loops. |
| 2904 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2905 |
continue; |
| 2906 |
return 0; |
| 2907 |
} |
| 2908 |
|
| 2909 |
// Check varargs and va_copy. |
| 2910 |
static bool |
| 2911 |
test_varargs (const char *format, ...) |
| 2912 |
{ |
| 2913 |
va_list args; |
| 2914 |
va_start (args, format); |
| 2915 |
va_list args_copy; |
| 2916 |
va_copy (args_copy, args); |
| 2917 |
|
| 2918 |
const char *str = ""; |
| 2919 |
int number = 0; |
| 2920 |
float fnumber = 0; |
| 2921 |
|
| 2922 |
while (*format) |
| 2923 |
{ |
| 2924 |
switch (*format++) |
| 2925 |
{ |
| 2926 |
case '\''s'\'': // string |
| 2927 |
str = va_arg (args_copy, const char *); |
| 2928 |
break; |
| 2929 |
case '\''d'\'': // int |
| 2930 |
number = va_arg (args_copy, int); |
| 2931 |
break; |
| 2932 |
case '\''f'\'': // float |
| 2933 |
fnumber = va_arg (args_copy, double); |
| 2934 |
break; |
| 2935 |
default: |
| 2936 |
break; |
| 2937 |
} |
| 2938 |
} |
| 2939 |
va_end (args_copy); |
| 2940 |
va_end (args); |
| 2941 |
|
| 2942 |
return *str && number && fnumber; |
| 2943 |
} |
| 2944 |
' |
| 2945 |
|
| 2946 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2947 |
ac_c_conftest_c99_main=' |
| 2948 |
// Check bool. |
| 2949 |
_Bool success = false; |
| 2950 |
success |= (argc != 0); |
| 2951 |
|
| 2952 |
// Check restrict. |
| 2953 |
if (test_restrict ("String literal") == 0) |
| 2954 |
success = true; |
| 2955 |
char *restrict newvar = "Another string"; |
| 2956 |
|
| 2957 |
// Check varargs. |
| 2958 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2959 |
test_varargs_macros (); |
| 2960 |
|
| 2961 |
// Check flexible array members. |
| 2962 |
struct incomplete_array *ia = |
| 2963 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2964 |
ia->datasize = 10; |
| 2965 |
for (int i = 0; i < ia->datasize; ++i) |
| 2966 |
ia->data[i] = i * 1.234; |
| 2967 |
// Work around memory leak warnings. |
| 2968 |
free (ia); |
| 2969 |
|
| 2970 |
// Check named initializers. |
| 2971 |
struct named_init ni = { |
| 2972 |
.number = 34, |
| 2973 |
.name = L"Test wide string", |
| 2974 |
.average = 543.34343, |
| 2975 |
}; |
| 2976 |
|
| 2977 |
ni.number = 58; |
| 2978 |
|
| 2979 |
int dynamic_array[ni.number]; |
| 2980 |
dynamic_array[0] = argv[0][0]; |
| 2981 |
dynamic_array[ni.number - 1] = 543; |
| 2982 |
|
| 2983 |
// work around unused variable warnings |
| 2984 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2985 |
|| dynamic_array[ni.number - 1] != 543); |
| 2986 |
' |
| 2987 |
|
| 2988 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2989 |
ac_c_conftest_c11_globals=' |
| 2990 |
/* Does the compiler advertise C11 conformance? */ |
| 2991 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2992 |
# error "Compiler does not advertise C11 conformance" |
| 2993 |
#endif |
| 2994 |
|
| 2995 |
// Check _Alignas. |
| 2996 |
char _Alignas (double) aligned_as_double; |
| 2997 |
char _Alignas (0) no_special_alignment; |
| 2998 |
extern char aligned_as_int; |
| 2999 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 3000 |
|
| 3001 |
// Check _Alignof. |
| 3002 |
enum |
| 3003 |
{ |
| 3004 |
int_alignment = _Alignof (int), |
| 3005 |
int_array_alignment = _Alignof (int[100]), |
| 3006 |
char_alignment = _Alignof (char) |
| 3007 |
}; |
| 3008 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 3009 |
|
| 3010 |
// Check _Noreturn. |
| 3011 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 3012 |
|
| 3013 |
// Check _Static_assert. |
| 3014 |
struct test_static_assert |
| 3015 |
{ |
| 3016 |
int x; |
| 3017 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 3018 |
"_Static_assert does not work in struct"); |
| 3019 |
long int y; |
| 3020 |
}; |
| 3021 |
|
| 3022 |
// Check UTF-8 literals. |
| 3023 |
#define u8 syntax error! |
| 3024 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 3025 |
|
| 3026 |
// Check duplicate typedefs. |
| 3027 |
typedef long *long_ptr; |
| 3028 |
typedef long int *long_ptr; |
| 3029 |
typedef long_ptr long_ptr; |
| 3030 |
|
| 3031 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 3032 |
struct anonymous |
| 3033 |
{ |
| 3034 |
union { |
| 3035 |
struct { int i; int j; }; |
| 3036 |
struct { int k; long int l; } w; |
| 3037 |
}; |
| 3038 |
int m; |
| 3039 |
} v1; |
| 3040 |
' |
| 3041 |
|
| 3042 |
# Test code for whether the C compiler supports C11 (body of main). |
| 3043 |
ac_c_conftest_c11_main=' |
| 3044 |
_Static_assert ((offsetof (struct anonymous, i) |
| 3045 |
== offsetof (struct anonymous, w.k)), |
| 3046 |
"Anonymous union alignment botch"); |
| 3047 |
v1.i = 2; |
| 3048 |
v1.w.k = 5; |
| 3049 |
ok |= v1.i != 5; |
| 3050 |
' |
| 3051 |
|
| 3052 |
# Test code for whether the C compiler supports C11 (complete). |
| 3053 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3054 |
${ac_c_conftest_c99_globals} |
| 3055 |
${ac_c_conftest_c11_globals} |
| 3056 |
|
| 3057 |
int |
| 3058 |
main (int argc, char **argv) |
| 3059 |
{ |
| 3060 |
int ok = 0; |
| 3061 |
${ac_c_conftest_c89_main} |
| 3062 |
${ac_c_conftest_c99_main} |
| 3063 |
${ac_c_conftest_c11_main} |
| 3064 |
return ok; |
| 3065 |
} |
| 3066 |
" |
| 3067 |
|
| 3068 |
# Test code for whether the C compiler supports C99 (complete). |
| 3069 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3070 |
${ac_c_conftest_c99_globals} |
| 3071 |
|
| 3072 |
int |
| 3073 |
main (int argc, char **argv) |
| 3074 |
{ |
| 3075 |
int ok = 0; |
| 3076 |
${ac_c_conftest_c89_main} |
| 3077 |
${ac_c_conftest_c99_main} |
| 3078 |
return ok; |
| 3079 |
} |
| 3080 |
" |
| 3081 |
|
| 3082 |
# Test code for whether the C compiler supports C89 (complete). |
| 3083 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3084 |
|
| 3085 |
int |
| 3086 |
main (int argc, char **argv) |
| 3087 |
{ |
| 3088 |
int ok = 0; |
| 3089 |
${ac_c_conftest_c89_main} |
| 3090 |
return ok; |
| 3091 |
} |
| 3092 |
" |
| 3093 |
|
| 3094 |
mhd_undef_all_extensions=" |
| 3095 |
#ifdef _GNU_SOURCE |
| 3096 |
#undef _GNU_SOURCE |
| 3097 |
#endif |
| 3098 |
#ifdef _XOPEN_SOURCE |
| 3099 |
#undef _XOPEN_SOURCE |
| 3100 |
#endif |
| 3101 |
#ifdef _XOPEN_SOURCE_EXTENDED |
| 3102 |
#undef _XOPEN_SOURCE_EXTENDED |
| 3103 |
#endif |
| 3104 |
#ifdef _XOPEN_VERSION |
| 3105 |
#undef _XOPEN_VERSION |
| 3106 |
#endif |
| 3107 |
#ifdef _POSIX_C_SOURCE |
| 3108 |
#undef _POSIX_C_SOURCE |
| 3109 |
#endif |
| 3110 |
#ifdef _POSIX_SOURCE |
| 3111 |
#undef _POSIX_SOURCE |
| 3112 |
#endif |
| 3113 |
#ifdef _DEFAULT_SOURCE |
| 3114 |
#undef _DEFAULT_SOURCE |
| 3115 |
#endif |
| 3116 |
#ifdef _BSD_SOURCE |
| 3117 |
#undef _BSD_SOURCE |
| 3118 |
#endif |
| 3119 |
#ifdef _SVID_SOURCE |
| 3120 |
#undef _SVID_SOURCE |
| 3121 |
#endif |
| 3122 |
#ifdef __EXTENSIONS__ |
| 3123 |
#undef __EXTENSIONS__ |
| 3124 |
#endif |
| 3125 |
#ifdef _ALL_SOURCE |
| 3126 |
#undef _ALL_SOURCE |
| 3127 |
#endif |
| 3128 |
#ifdef _TANDEM_SOURCE |
| 3129 |
#undef _TANDEM_SOURCE |
| 3130 |
#endif |
| 3131 |
#ifdef _DARWIN_C_SOURCE |
| 3132 |
#undef _DARWIN_C_SOURCE |
| 3133 |
#endif |
| 3134 |
#ifdef __BSD_VISIBLE |
| 3135 |
#undef __BSD_VISIBLE |
| 3136 |
#endif |
| 3137 |
#ifdef _NETBSD_SOURCE |
| 3138 |
#undef _NETBSD_SOURCE |
| 3139 |
#endif |
| 3140 |
" |
| 3141 |
|
| 3142 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3143 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3144 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3145 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3146 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3147 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3148 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3149 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3150 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3151 |
as_fn_append ac_header_c_list " errno.h errno_h HAVE_ERRNO_H" |
| 3152 |
as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H" |
| 3153 |
as_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H" |
| 3154 |
|
| 3155 |
# Auxiliary files required by this configure script. |
| 3156 |
ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh" |
| 3157 |
|
| 3158 |
# Locations in which to look for auxiliary files. |
| 3159 |
ac_aux_dir_candidates="${srcdir}/build-aux" |
| 3160 |
|
| 3161 |
# Search for a directory containing all of the required auxiliary files, |
| 3162 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3163 |
# If we don't find one directory that contains all the files we need, |
| 3164 |
# we report the set of missing files from the *first* directory in |
| 3165 |
# $ac_aux_dir_candidates and give up. |
| 3166 |
ac_missing_aux_files="" |
| 3167 |
ac_first_candidate=: |
| 3168 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3169 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3170 |
as_found=false |
| 3171 |
for as_dir in $ac_aux_dir_candidates |
| 3172 |
do |
| 3173 |
IFS=$as_save_IFS |
| 3174 |
case $as_dir in #((( |
| 3175 |
'') as_dir=./ ;; |
| 3176 |
*/) ;; |
| 3177 |
*) as_dir=$as_dir/ ;; |
| 3178 |
esac |
| 3179 |
as_found=: |
| 3180 |
|
| 3181 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3182 |
ac_aux_dir_found=yes |
| 3183 |
ac_install_sh= |
| 3184 |
for ac_aux in $ac_aux_files |
| 3185 |
do |
| 3186 |
# As a special case, if "install-sh" is required, that requirement |
| 3187 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3188 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 3189 |
if test x"$ac_aux" = x"install-sh" |
| 3190 |
then |
| 3191 |
if test -f "${as_dir}install-sh"; then |
| 3192 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3193 |
ac_install_sh="${as_dir}install-sh -c" |
| 3194 |
elif test -f "${as_dir}install.sh"; then |
| 3195 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3196 |
ac_install_sh="${as_dir}install.sh -c" |
| 3197 |
elif test -f "${as_dir}shtool"; then |
| 3198 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3199 |
ac_install_sh="${as_dir}shtool install -c" |
| 3200 |
else |
| 3201 |
ac_aux_dir_found=no |
| 3202 |
if $ac_first_candidate; then |
| 3203 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3204 |
else |
| 3205 |
break |
| 3206 |
fi |
| 3207 |
fi |
| 3208 |
else |
| 3209 |
if test -f "${as_dir}${ac_aux}"; then |
| 3210 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3211 |
else |
| 3212 |
ac_aux_dir_found=no |
| 3213 |
if $ac_first_candidate; then |
| 3214 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3215 |
else |
| 3216 |
break |
| 3217 |
fi |
| 3218 |
fi |
| 3219 |
fi |
| 3220 |
done |
| 3221 |
if test "$ac_aux_dir_found" = yes; then |
| 3222 |
ac_aux_dir="$as_dir" |
| 3223 |
break |
| 3224 |
fi |
| 3225 |
ac_first_candidate=false |
| 3226 |
|
| 3227 |
as_found=false |
| 3228 |
done |
| 3229 |
IFS=$as_save_IFS |
| 3230 |
if $as_found |
| 3231 |
then : |
| 3232 |
|
| 3233 |
else case e in #( |
| 3234 |
e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; |
| 3235 |
esac |
| 3236 |
fi |
| 3237 |
|
| 3238 |
|
| 3239 |
# These three variables are undocumented and unsupported, |
| 3240 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3241 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3242 |
# whose full name contains unusual characters. |
| 3243 |
if test -f "${ac_aux_dir}config.guess"; then |
| 3244 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3245 |
fi |
| 3246 |
if test -f "${ac_aux_dir}config.sub"; then |
| 3247 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3248 |
fi |
| 3249 |
if test -f "$ac_aux_dir/configure"; then |
| 3250 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3251 |
fi |
| 3252 |
|
| 3253 |
# Check that the precious variables saved in the cache have kept the same |
| 3254 |
# value. |
| 3255 |
ac_cache_corrupted=false |
| 3256 |
for ac_var in $ac_precious_vars; do |
| 3257 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3258 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 3259 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3260 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 3261 |
case $ac_old_set,$ac_new_set in |
| 3262 |
set,) |
| 3263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 3264 |
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 3265 |
ac_cache_corrupted=: ;; |
| 3266 |
,set) |
| 3267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 3268 |
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 3269 |
ac_cache_corrupted=: ;; |
| 3270 |
,);; |
| 3271 |
*) |
| 3272 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3273 |
# differences in whitespace do not lead to failure. |
| 3274 |
ac_old_val_w=`echo x $ac_old_val` |
| 3275 |
ac_new_val_w=`echo x $ac_new_val` |
| 3276 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 3278 |
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 3279 |
ac_cache_corrupted=: |
| 3280 |
else |
| 3281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 3282 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 3283 |
eval $ac_var=\$ac_old_val |
| 3284 |
fi |
| 3285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 3286 |
printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 3287 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 3288 |
printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 3289 |
fi;; |
| 3290 |
esac |
| 3291 |
# Pass precious variables to config.status. |
| 3292 |
if test "$ac_new_set" = set; then |
| 3293 |
case $ac_new_val in |
| 3294 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3295 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 3296 |
esac |
| 3297 |
case " $ac_configure_args " in |
| 3298 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3299 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3300 |
esac |
| 3301 |
fi |
| 3302 |
done |
| 3303 |
if $ac_cache_corrupted; then |
| 3304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3305 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3307 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3308 |
as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 3309 |
and start over" "$LINENO" 5 |
| 3310 |
fi |
| 3311 |
## -------------------- ## |
| 3312 |
## Main body of script. ## |
| 3313 |
## -------------------- ## |
| 3314 |
|
| 3315 |
ac_ext=c |
| 3316 |
ac_cpp='$CPP $CPPFLAGS' |
| 3317 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3318 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3319 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3320 |
|
| 3321 |
|
| 3322 |
|
| 3323 |
MHD_AUX_DIR='build-aux' # Must be set to the same value as in the previous line |
| 3324 |
ac_config_headers="$ac_config_headers MHD_config.h" |
| 3325 |
|
| 3326 |
|
| 3327 |
|
| 3328 |
LIB_VERSION_CURRENT=74 |
| 3329 |
LIB_VERSION_REVISION=4 |
| 3330 |
LIB_VERSION_AGE=62 |
| 3331 |
|
| 3332 |
|
| 3333 |
|
| 3334 |
|
| 3335 |
|
| 3336 |
PACKAGE_VERSION_MAJOR='1' |
| 3337 |
PACKAGE_VERSION_MINOR='0' |
| 3338 |
PACKAGE_VERSION_SUBMINOR='6' |
| 3339 |
as_fn_arith $LIB_VERSION_CURRENT - $LIB_VERSION_AGE && MHD_W32_DLL_SUFF=$as_val |
| 3340 |
|
| 3341 |
|
| 3342 |
|
| 3343 |
|
| 3344 |
ac_config_files="$ac_config_files src/microhttpd/microhttpd_dll_res.rc" |
| 3345 |
|
| 3346 |
|
| 3347 |
CONF_FINAL_WARNS="" |
| 3348 |
|
| 3349 |
MHD_LIB_CPPFLAGS="" |
| 3350 |
MHD_LIB_CFLAGS="" |
| 3351 |
MHD_LIB_LDFLAGS="" |
| 3352 |
MHD_LIBDEPS="" |
| 3353 |
# for pkg-config |
| 3354 |
MHD_REQ_PRIVATE='' |
| 3355 |
MHD_LIBDEPS_PKGCFG='' |
| 3356 |
|
| 3357 |
if test -z "$CC" && test -z "$CPP" |
| 3358 |
then : |
| 3359 |
|
| 3360 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether z/OS special settings are required" >&5 |
| 3361 |
printf %s "checking whether z/OS special settings are required... " >&6; } |
| 3362 |
if test `uname -s` = "OS/390" |
| 3363 |
then : |
| 3364 |
|
| 3365 |
# configure binaries for z/OS |
| 3366 |
if test -z "$CC" |
| 3367 |
then : |
| 3368 |
CC=`pwd`"/contrib/xcc" |
| 3369 |
chmod +x $CC || true |
| 3370 |
fi |
| 3371 |
if test -z "$CPP" |
| 3372 |
then : |
| 3373 |
CPP="c89 -E" |
| 3374 |
fi |
| 3375 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3376 |
printf "%s\n" "yes" >&6; } |
| 3377 |
|
| 3378 |
else case e in #( |
| 3379 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3380 |
printf "%s\n" "no" >&6; } |
| 3381 |
;; |
| 3382 |
esac |
| 3383 |
fi |
| 3384 |
|
| 3385 |
fi |
| 3386 |
|
| 3387 |
|
| 3388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build type" >&5 |
| 3389 |
printf %s "checking for build type... " >&6; } |
| 3390 |
# Check whether --enable-build-type was given. |
| 3391 |
if test ${enable_build_type+y} |
| 3392 |
then : |
| 3393 |
enableval=$enable_build_type; |
| 3394 |
else case e in #( |
| 3395 |
e) enable_build_type=neutral ;; |
| 3396 |
esac |
| 3397 |
fi |
| 3398 |
|
| 3399 |
if test "x${enable_build_type}" = "x" |
| 3400 |
then : |
| 3401 |
enable_build_type="neutral" |
| 3402 |
fi |
| 3403 |
if test "x$enable_build_type" = x"no" |
| 3404 |
then : |
| 3405 |
enable_build_type="neutral" |
| 3406 |
fi |
| 3407 |
if test "x$enable_build_type" = x"yes" |
| 3408 |
then : |
| 3409 |
as_fn_error $? "Missing TYPE for --enable-build-type=" "$LINENO" 5 |
| 3410 |
fi |
| 3411 |
case ${enable_build_type} in #( |
| 3412 |
debug) : |
| 3413 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debug. Defaults: enable asserts, sanitizers (if any supported), debug information, compiler optimisation for debugging" >&5 |
| 3414 |
printf "%s\n" "debug. Defaults: enable asserts, sanitizers (if any supported), debug information, compiler optimisation for debugging" >&6; } ;; #( |
| 3415 |
debugger) : |
| 3416 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: debugger. Defaults: enable asserts, disable sanitizers, debug information, no compiler optimisation, static lib" >&5 |
| 3417 |
printf "%s\n" "debugger. Defaults: enable asserts, disable sanitizers, debug information, no compiler optimisation, static lib" >&6; } ;; #( |
| 3418 |
neutral) : |
| 3419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neutral. Defaults: use only user-specified compiler and linker flags" >&5 |
| 3420 |
printf "%s\n" "neutral. Defaults: use only user-specified compiler and linker flags" >&6; } ;; #( |
| 3421 |
release) : |
| 3422 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release. Defaults: disable asserts, enable compiler optimisations" >&5 |
| 3423 |
printf "%s\n" "release. Defaults: disable asserts, enable compiler optimisations" >&6; } ;; #( |
| 3424 |
release-compact) : |
| 3425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release-compact. Defaults: disable asserts, enable compiler optimisations for size, enable compact code" >&5 |
| 3426 |
printf "%s\n" "release-compact. Defaults: disable asserts, enable compiler optimisations for size, enable compact code" >&6; } ;; #( |
| 3427 |
release-hardened) : |
| 3428 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release-hardened. Defaults: disable asserts, enable compiler optimisations, enable linker and compiler hardening" >&5 |
| 3429 |
printf "%s\n" "release-hardened. Defaults: disable asserts, enable compiler optimisations, enable linker and compiler hardening" >&6; } ;; #( |
| 3430 |
*) : |
| 3431 |
as_fn_error $? "Unknown build type: ${enable_build_type}" "$LINENO" 5 |
| 3432 |
;; |
| 3433 |
esac |
| 3434 |
if test "x$enable_build_type" = x"neutral" |
| 3435 |
then : |
| 3436 |
: |
| 3437 |
else case e in #( |
| 3438 |
e) |
| 3439 |
# For all non-neutral build types do not use automatic "-g -O2" for CFLAGS |
| 3440 |
if test -z "${CFLAGS}" |
| 3441 |
then : |
| 3442 |
CFLAGS="" |
| 3443 |
fi |
| 3444 |
|
| 3445 |
;; |
| 3446 |
esac |
| 3447 |
fi |
| 3448 |
if test "x$enable_build_type" = x"debugger" |
| 3449 |
then : |
| 3450 |
# Build only static version unless something else is specified by the user |
| 3451 |
if test -z "${enable_static}" || test "x${enable_static}" = "xyes" |
| 3452 |
then : |
| 3453 |
|
| 3454 |
if test -z "${enable_shared}" |
| 3455 |
then : |
| 3456 |
|
| 3457 |
enable_shared="no" |
| 3458 |
enable_static="yes" |
| 3459 |
|
| 3460 |
|
| 3461 |
fi |
| 3462 |
|
| 3463 |
else case e in #( |
| 3464 |
e) |
| 3465 |
case ${enable_static} in #( |
| 3466 |
*libmicrohttpd*) : |
| 3467 |
if test -z "${enable_shared}" |
| 3468 |
then : |
| 3469 |
enable_shared="no" |
| 3470 |
fi ;; #( |
| 3471 |
*) : |
| 3472 |
;; |
| 3473 |
esac |
| 3474 |
|
| 3475 |
;; |
| 3476 |
esac |
| 3477 |
fi |
| 3478 |
|
| 3479 |
|
| 3480 |
fi |
| 3481 |
case ${enable_build_type} in #( |
| 3482 |
debug|debugger) : |
| 3483 |
if test -z "${enable_silent_rules}" |
| 3484 |
then : |
| 3485 |
enable_silent_rules="yes" |
| 3486 |
fi |
| 3487 |
;; #( |
| 3488 |
*) : |
| 3489 |
;; |
| 3490 |
esac |
| 3491 |
|
| 3492 |
am__api_version='1.17' |
| 3493 |
|
| 3494 |
|
| 3495 |
|
| 3496 |
# Find a good install program. We prefer a C program (faster), |
| 3497 |
# so one script is as good as another. But avoid the broken or |
| 3498 |
# incompatible versions: |
| 3499 |
# SysV /etc/install, /usr/sbin/install |
| 3500 |
# SunOS /usr/etc/install |
| 3501 |
# IRIX /sbin/install |
| 3502 |
# AIX /bin/install |
| 3503 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3504 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3505 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3506 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3507 |
# OS/2's system install, which has a completely different semantic |
| 3508 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 3509 |
# Reject install programs that cannot install multiple files. |
| 3510 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3511 |
printf %s "checking for a BSD-compatible install... " >&6; } |
| 3512 |
if test -z "$INSTALL"; then |
| 3513 |
if test ${ac_cv_path_install+y} |
| 3514 |
then : |
| 3515 |
printf %s "(cached) " >&6 |
| 3516 |
else case e in #( |
| 3517 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3518 |
for as_dir in $PATH |
| 3519 |
do |
| 3520 |
IFS=$as_save_IFS |
| 3521 |
case $as_dir in #((( |
| 3522 |
'') as_dir=./ ;; |
| 3523 |
*/) ;; |
| 3524 |
*) as_dir=$as_dir/ ;; |
| 3525 |
esac |
| 3526 |
# Account for fact that we put trailing slashes in our PATH walk. |
| 3527 |
case $as_dir in #(( |
| 3528 |
./ | /[cC]/* | \ |
| 3529 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3530 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3531 |
/usr/ucb/* ) ;; |
| 3532 |
*) |
| 3533 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 3534 |
# Don't use installbsd from OSF since it installs stuff as root |
| 3535 |
# by default. |
| 3536 |
for ac_prog in ginstall scoinst install; do |
| 3537 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3538 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 3539 |
if test $ac_prog = install && |
| 3540 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3541 |
# AIX install. It has an incompatible calling convention. |
| 3542 |
: |
| 3543 |
elif test $ac_prog = install && |
| 3544 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3545 |
# program-specific install script used by HP pwplus--don't use. |
| 3546 |
: |
| 3547 |
else |
| 3548 |
rm -rf conftest.one conftest.two conftest.dir |
| 3549 |
echo one > conftest.one |
| 3550 |
echo two > conftest.two |
| 3551 |
mkdir conftest.dir |
| 3552 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 3553 |
test -s conftest.one && test -s conftest.two && |
| 3554 |
test -s conftest.dir/conftest.one && |
| 3555 |
test -s conftest.dir/conftest.two |
| 3556 |
then |
| 3557 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 3558 |
break 3 |
| 3559 |
fi |
| 3560 |
fi |
| 3561 |
fi |
| 3562 |
done |
| 3563 |
done |
| 3564 |
;; |
| 3565 |
esac |
| 3566 |
|
| 3567 |
done |
| 3568 |
IFS=$as_save_IFS |
| 3569 |
|
| 3570 |
rm -rf conftest.one conftest.two conftest.dir |
| 3571 |
;; |
| 3572 |
esac |
| 3573 |
fi |
| 3574 |
if test ${ac_cv_path_install+y}; then |
| 3575 |
INSTALL=$ac_cv_path_install |
| 3576 |
else |
| 3577 |
# As a last resort, use the slow shell script. Don't cache a |
| 3578 |
# value for INSTALL within a source directory, because that will |
| 3579 |
# break other packages using the cache if that directory is |
| 3580 |
# removed, or if the value is a relative name. |
| 3581 |
INSTALL=$ac_install_sh |
| 3582 |
fi |
| 3583 |
fi |
| 3584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3585 |
printf "%s\n" "$INSTALL" >&6; } |
| 3586 |
|
| 3587 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3588 |
# It thinks the first close brace ends the variable substitution. |
| 3589 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3590 |
|
| 3591 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3592 |
|
| 3593 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3594 |
|
| 3595 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5 |
| 3596 |
printf %s "checking whether sleep supports fractional seconds... " >&6; } |
| 3597 |
if test ${am_cv_sleep_fractional_seconds+y} |
| 3598 |
then : |
| 3599 |
printf %s "(cached) " >&6 |
| 3600 |
else case e in #( |
| 3601 |
e) if sleep 0.001 2>/dev/null |
| 3602 |
then : |
| 3603 |
am_cv_sleep_fractional_seconds=yes |
| 3604 |
else case e in #( |
| 3605 |
e) am_cv_sleep_fractional_seconds=no ;; |
| 3606 |
esac |
| 3607 |
fi |
| 3608 |
;; |
| 3609 |
esac |
| 3610 |
fi |
| 3611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5 |
| 3612 |
printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; } |
| 3613 |
|
| 3614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5 |
| 3615 |
printf %s "checking filesystem timestamp resolution... " >&6; } |
| 3616 |
if test ${am_cv_filesystem_timestamp_resolution+y} |
| 3617 |
then : |
| 3618 |
printf %s "(cached) " >&6 |
| 3619 |
else case e in #( |
| 3620 |
e) # Default to the worst case. |
| 3621 |
am_cv_filesystem_timestamp_resolution=2 |
| 3622 |
|
| 3623 |
# Only try to go finer than 1 sec if sleep can do it. |
| 3624 |
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work, |
| 3625 |
# - 1 sec is not much of a win compared to 2 sec, and |
| 3626 |
# - it takes 2 seconds to perform the test whether 1 sec works. |
| 3627 |
# |
| 3628 |
# Instead, just use the default 2s on platforms that have 1s resolution, |
| 3629 |
# accept the extra 1s delay when using $sleep in the Automake tests, in |
| 3630 |
# exchange for not incurring the 2s delay for running the test for all |
| 3631 |
# packages. |
| 3632 |
# |
| 3633 |
am_try_resolutions= |
| 3634 |
if test "$am_cv_sleep_fractional_seconds" = yes; then |
| 3635 |
# Even a millisecond often causes a bunch of false positives, |
| 3636 |
# so just try a hundredth of a second. The time saved between .001 and |
| 3637 |
# .01 is not terribly consequential. |
| 3638 |
am_try_resolutions="0.01 0.1 $am_try_resolutions" |
| 3639 |
fi |
| 3640 |
|
| 3641 |
# In order to catch current-generation FAT out, we must *modify* files |
| 3642 |
# that already exist; the *creation* timestamp is finer. Use names |
| 3643 |
# that make ls -t sort them differently when they have equal |
| 3644 |
# timestamps than when they have distinct timestamps, keeping |
| 3645 |
# in mind that ls -t prints the *newest* file first. |
| 3646 |
rm -f conftest.ts? |
| 3647 |
: > conftest.ts1 |
| 3648 |
: > conftest.ts2 |
| 3649 |
: > conftest.ts3 |
| 3650 |
|
| 3651 |
# Make sure ls -t actually works. Do 'set' in a subshell so we don't |
| 3652 |
# clobber the current shell's arguments. (Outer-level square brackets |
| 3653 |
# are removed by m4; they're present so that m4 does not expand |
| 3654 |
# <dollar><star>; be careful, easy to get confused.) |
| 3655 |
if ( |
| 3656 |
set X `ls -t conftest.ts[12]` && |
| 3657 |
{ |
| 3658 |
test "$*" != "X conftest.ts1 conftest.ts2" || |
| 3659 |
test "$*" != "X conftest.ts2 conftest.ts1"; |
| 3660 |
} |
| 3661 |
); then :; else |
| 3662 |
# If neither matched, then we have a broken ls. This can happen |
| 3663 |
# if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3664 |
# broken ls alias from the environment. This has actually |
| 3665 |
# happened. Such a system could not be considered "sane". |
| 3666 |
printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5 |
| 3667 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3668 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3669 |
as_fn_error $? "ls -t produces unexpected output. |
| 3670 |
Make sure there is not a broken ls alias in your environment. |
| 3671 |
See 'config.log' for more details" "$LINENO" 5; } |
| 3672 |
fi |
| 3673 |
|
| 3674 |
for am_try_res in $am_try_resolutions; do |
| 3675 |
# Any one fine-grained sleep might happen to cross the boundary |
| 3676 |
# between two values of a coarser actual resolution, but if we do |
| 3677 |
# two fine-grained sleeps in a row, at least one of them will fall |
| 3678 |
# entirely within a coarse interval. |
| 3679 |
echo alpha > conftest.ts1 |
| 3680 |
sleep $am_try_res |
| 3681 |
echo beta > conftest.ts2 |
| 3682 |
sleep $am_try_res |
| 3683 |
echo gamma > conftest.ts3 |
| 3684 |
|
| 3685 |
# We assume that 'ls -t' will make use of high-resolution |
| 3686 |
# timestamps if the operating system supports them at all. |
| 3687 |
if (set X `ls -t conftest.ts?` && |
| 3688 |
test "$2" = conftest.ts3 && |
| 3689 |
test "$3" = conftest.ts2 && |
| 3690 |
test "$4" = conftest.ts1); then |
| 3691 |
# |
| 3692 |
# Ok, ls -t worked. If we're at a resolution of 1 second, we're done, |
| 3693 |
# because we don't need to test make. |
| 3694 |
make_ok=true |
| 3695 |
if test $am_try_res != 1; then |
| 3696 |
# But if we've succeeded so far with a subsecond resolution, we |
| 3697 |
# have one more thing to check: make. It can happen that |
| 3698 |
# everything else supports the subsecond mtimes, but make doesn't; |
| 3699 |
# notably on macOS, which ships make 3.81 from 2006 (the last one |
| 3700 |
# released under GPLv2). https://bugs.gnu.org/68808 |
| 3701 |
# |
| 3702 |
# We test $MAKE if it is defined in the environment, else "make". |
| 3703 |
# It might get overridden later, but our hope is that in practice |
| 3704 |
# it does not matter: it is the system "make" which is (by far) |
| 3705 |
# the most likely to be broken, whereas if the user overrides it, |
| 3706 |
# probably they did so with a better, or at least not worse, make. |
| 3707 |
# https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html |
| 3708 |
# |
| 3709 |
# Create a Makefile (real tab character here): |
| 3710 |
rm -f conftest.mk |
| 3711 |
echo 'conftest.ts1: conftest.ts2' >conftest.mk |
| 3712 |
echo ' touch conftest.ts2' >>conftest.mk |
| 3713 |
# |
| 3714 |
# Now, running |
| 3715 |
# touch conftest.ts1; touch conftest.ts2; make |
| 3716 |
# should touch ts1 because ts2 is newer. This could happen by luck, |
| 3717 |
# but most often, it will fail if make's support is insufficient. So |
| 3718 |
# test for several consecutive successes. |
| 3719 |
# |
| 3720 |
# (We reuse conftest.ts[12] because we still want to modify existing |
| 3721 |
# files, not create new ones, per above.) |
| 3722 |
n=0 |
| 3723 |
make=${MAKE-make} |
| 3724 |
until test $n -eq 3; do |
| 3725 |
echo one > conftest.ts1 |
| 3726 |
sleep $am_try_res |
| 3727 |
echo two > conftest.ts2 # ts2 should now be newer than ts1 |
| 3728 |
if $make -f conftest.mk | grep 'up to date' >/dev/null; then |
| 3729 |
make_ok=false |
| 3730 |
break # out of $n loop |
| 3731 |
fi |
| 3732 |
n=`expr $n + 1` |
| 3733 |
done |
| 3734 |
fi |
| 3735 |
# |
| 3736 |
if $make_ok; then |
| 3737 |
# Everything we know to check worked out, so call this resolution good. |
| 3738 |
am_cv_filesystem_timestamp_resolution=$am_try_res |
| 3739 |
break # out of $am_try_res loop |
| 3740 |
fi |
| 3741 |
# Otherwise, we'll go on to check the next resolution. |
| 3742 |
fi |
| 3743 |
done |
| 3744 |
rm -f conftest.ts? |
| 3745 |
# (end _am_filesystem_timestamp_resolution) |
| 3746 |
;; |
| 3747 |
esac |
| 3748 |
fi |
| 3749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5 |
| 3750 |
printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; } |
| 3751 |
|
| 3752 |
# This check should not be cached, as it may vary across builds of |
| 3753 |
# different projects. |
| 3754 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3755 |
printf %s "checking whether build environment is sane... " >&6; } |
| 3756 |
# Reject unsafe characters in $srcdir or the absolute working directory |
| 3757 |
# name. Accept space and tab only in the latter. |
| 3758 |
am_lf=' |
| 3759 |
' |
| 3760 |
case `pwd` in |
| 3761 |
*[\\\"\#\$\&\'\`$am_lf]*) |
| 3762 |
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
| 3763 |
esac |
| 3764 |
case $srcdir in |
| 3765 |
*[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3766 |
as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
| 3767 |
esac |
| 3768 |
|
| 3769 |
# Do 'set' in a subshell so we don't clobber the current shell's |
| 3770 |
# arguments. Must try -L first in case configure is actually a |
| 3771 |
# symlink; some systems play weird games with the mod time of symlinks |
| 3772 |
# (eg FreeBSD returns the mod time of the symlink's containing |
| 3773 |
# directory). |
| 3774 |
am_build_env_is_sane=no |
| 3775 |
am_has_slept=no |
| 3776 |
rm -f conftest.file |
| 3777 |
for am_try in 1 2; do |
| 3778 |
echo "timestamp, slept: $am_has_slept" > conftest.file |
| 3779 |
if ( |
| 3780 |
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3781 |
if test "$*" = "X"; then |
| 3782 |
# -L didn't work. |
| 3783 |
set X `ls -t "$srcdir/configure" conftest.file` |
| 3784 |
fi |
| 3785 |
test "$2" = conftest.file |
| 3786 |
); then |
| 3787 |
am_build_env_is_sane=yes |
| 3788 |
break |
| 3789 |
fi |
| 3790 |
# Just in case. |
| 3791 |
sleep "$am_cv_filesystem_timestamp_resolution" |
| 3792 |
am_has_slept=yes |
| 3793 |
done |
| 3794 |
|
| 3795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5 |
| 3796 |
printf "%s\n" "$am_build_env_is_sane" >&6; } |
| 3797 |
if test "$am_build_env_is_sane" = no; then |
| 3798 |
as_fn_error $? "newly created file is older than distributed files! |
| 3799 |
Check your system clock" "$LINENO" 5 |
| 3800 |
fi |
| 3801 |
|
| 3802 |
# If we didn't sleep, we still need to ensure time stamps of config.status and |
| 3803 |
# generated files are strictly newer. |
| 3804 |
am_sleep_pid= |
| 3805 |
if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1 |
| 3806 |
then : |
| 3807 |
|
| 3808 |
else case e in #( |
| 3809 |
e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) & |
| 3810 |
am_sleep_pid=$! |
| 3811 |
;; |
| 3812 |
esac |
| 3813 |
fi |
| 3814 |
|
| 3815 |
rm -f conftest.file |
| 3816 |
|
| 3817 |
test "$program_prefix" != NONE && |
| 3818 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3819 |
# Use a double $ so make ignores it. |
| 3820 |
test "$program_suffix" != NONE && |
| 3821 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3822 |
# Double any \ or $. |
| 3823 |
# By default was 's,x,x', remove it if useless. |
| 3824 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3825 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 3826 |
|
| 3827 |
|
| 3828 |
# Expand $ac_aux_dir to an absolute path. |
| 3829 |
am_aux_dir=`cd "$ac_aux_dir" && pwd` |
| 3830 |
|
| 3831 |
|
| 3832 |
if test x"${MISSING+set}" != xset; then |
| 3833 |
MISSING="\${SHELL} '$am_aux_dir/missing'" |
| 3834 |
fi |
| 3835 |
# Use eval to expand $SHELL |
| 3836 |
if eval "$MISSING --is-lightweight"; then |
| 3837 |
am_missing_run="$MISSING " |
| 3838 |
else |
| 3839 |
am_missing_run= |
| 3840 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
| 3841 |
printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} |
| 3842 |
fi |
| 3843 |
|
| 3844 |
if test x"${install_sh+set}" != xset; then |
| 3845 |
case $am_aux_dir in |
| 3846 |
*\ * | *\ *) |
| 3847 |
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3848 |
*) |
| 3849 |
install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3850 |
esac |
| 3851 |
fi |
| 3852 |
|
| 3853 |
# Installed binaries are usually stripped using 'strip' when the user |
| 3854 |
# run "make install-strip". However 'strip' might not be the right |
| 3855 |
# tool to use in cross-compilation environments, therefore Automake |
| 3856 |
# will honor the 'STRIP' environment variable to overrule this program. |
| 3857 |
if test "$cross_compiling" != no; then |
| 3858 |
if test -n "$ac_tool_prefix"; then |
| 3859 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3860 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3862 |
printf %s "checking for $ac_word... " >&6; } |
| 3863 |
if test ${ac_cv_prog_STRIP+y} |
| 3864 |
then : |
| 3865 |
printf %s "(cached) " >&6 |
| 3866 |
else case e in #( |
| 3867 |
e) if test -n "$STRIP"; then |
| 3868 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3869 |
else |
| 3870 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3871 |
for as_dir in $PATH |
| 3872 |
do |
| 3873 |
IFS=$as_save_IFS |
| 3874 |
case $as_dir in #((( |
| 3875 |
'') as_dir=./ ;; |
| 3876 |
*/) ;; |
| 3877 |
*) as_dir=$as_dir/ ;; |
| 3878 |
esac |
| 3879 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3880 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3881 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3882 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3883 |
break 2 |
| 3884 |
fi |
| 3885 |
done |
| 3886 |
done |
| 3887 |
IFS=$as_save_IFS |
| 3888 |
|
| 3889 |
fi ;; |
| 3890 |
esac |
| 3891 |
fi |
| 3892 |
STRIP=$ac_cv_prog_STRIP |
| 3893 |
if test -n "$STRIP"; then |
| 3894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3895 |
printf "%s\n" "$STRIP" >&6; } |
| 3896 |
else |
| 3897 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3898 |
printf "%s\n" "no" >&6; } |
| 3899 |
fi |
| 3900 |
|
| 3901 |
|
| 3902 |
fi |
| 3903 |
if test -z "$ac_cv_prog_STRIP"; then |
| 3904 |
ac_ct_STRIP=$STRIP |
| 3905 |
# Extract the first word of "strip", so it can be a program name with args. |
| 3906 |
set dummy strip; ac_word=$2 |
| 3907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3908 |
printf %s "checking for $ac_word... " >&6; } |
| 3909 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 3910 |
then : |
| 3911 |
printf %s "(cached) " >&6 |
| 3912 |
else case e in #( |
| 3913 |
e) if test -n "$ac_ct_STRIP"; then |
| 3914 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3915 |
else |
| 3916 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3917 |
for as_dir in $PATH |
| 3918 |
do |
| 3919 |
IFS=$as_save_IFS |
| 3920 |
case $as_dir in #((( |
| 3921 |
'') as_dir=./ ;; |
| 3922 |
*/) ;; |
| 3923 |
*) as_dir=$as_dir/ ;; |
| 3924 |
esac |
| 3925 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3926 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3927 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 3928 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3929 |
break 2 |
| 3930 |
fi |
| 3931 |
done |
| 3932 |
done |
| 3933 |
IFS=$as_save_IFS |
| 3934 |
|
| 3935 |
fi ;; |
| 3936 |
esac |
| 3937 |
fi |
| 3938 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3939 |
if test -n "$ac_ct_STRIP"; then |
| 3940 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3941 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 3942 |
else |
| 3943 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3944 |
printf "%s\n" "no" >&6; } |
| 3945 |
fi |
| 3946 |
|
| 3947 |
if test "x$ac_ct_STRIP" = x; then |
| 3948 |
STRIP=":" |
| 3949 |
else |
| 3950 |
case $cross_compiling:$ac_tool_warned in |
| 3951 |
yes:) |
| 3952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3953 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3954 |
ac_tool_warned=yes ;; |
| 3955 |
esac |
| 3956 |
STRIP=$ac_ct_STRIP |
| 3957 |
fi |
| 3958 |
else |
| 3959 |
STRIP="$ac_cv_prog_STRIP" |
| 3960 |
fi |
| 3961 |
|
| 3962 |
fi |
| 3963 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3964 |
|
| 3965 |
|
| 3966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 3967 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
| 3968 |
if test -z "$MKDIR_P"; then |
| 3969 |
if test ${ac_cv_path_mkdir+y} |
| 3970 |
then : |
| 3971 |
printf %s "(cached) " >&6 |
| 3972 |
else case e in #( |
| 3973 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3974 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3975 |
do |
| 3976 |
IFS=$as_save_IFS |
| 3977 |
case $as_dir in #((( |
| 3978 |
'') as_dir=./ ;; |
| 3979 |
*/) ;; |
| 3980 |
*) as_dir=$as_dir/ ;; |
| 3981 |
esac |
| 3982 |
for ac_prog in mkdir gmkdir; do |
| 3983 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3984 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 3985 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3986 |
'mkdir ('*'coreutils) '* | \ |
| 3987 |
*'BusyBox '* | \ |
| 3988 |
'mkdir (fileutils) '4.1*) |
| 3989 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 3990 |
break 3;; |
| 3991 |
esac |
| 3992 |
done |
| 3993 |
done |
| 3994 |
done |
| 3995 |
IFS=$as_save_IFS |
| 3996 |
;; |
| 3997 |
esac |
| 3998 |
fi |
| 3999 |
|
| 4000 |
test -d ./--version && rmdir ./--version |
| 4001 |
if test ${ac_cv_path_mkdir+y}; then |
| 4002 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 4003 |
else |
| 4004 |
# As a last resort, use plain mkdir -p, |
| 4005 |
# in the hope it doesn't have the bugs of ancient mkdir. |
| 4006 |
MKDIR_P='mkdir -p' |
| 4007 |
fi |
| 4008 |
fi |
| 4009 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 4010 |
printf "%s\n" "$MKDIR_P" >&6; } |
| 4011 |
|
| 4012 |
for ac_prog in gawk mawk nawk awk |
| 4013 |
do |
| 4014 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4015 |
set dummy $ac_prog; ac_word=$2 |
| 4016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4017 |
printf %s "checking for $ac_word... " >&6; } |
| 4018 |
if test ${ac_cv_prog_AWK+y} |
| 4019 |
then : |
| 4020 |
printf %s "(cached) " >&6 |
| 4021 |
else case e in #( |
| 4022 |
e) if test -n "$AWK"; then |
| 4023 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4024 |
else |
| 4025 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4026 |
for as_dir in $PATH |
| 4027 |
do |
| 4028 |
IFS=$as_save_IFS |
| 4029 |
case $as_dir in #((( |
| 4030 |
'') as_dir=./ ;; |
| 4031 |
*/) ;; |
| 4032 |
*) as_dir=$as_dir/ ;; |
| 4033 |
esac |
| 4034 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4035 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4036 |
ac_cv_prog_AWK="$ac_prog" |
| 4037 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4038 |
break 2 |
| 4039 |
fi |
| 4040 |
done |
| 4041 |
done |
| 4042 |
IFS=$as_save_IFS |
| 4043 |
|
| 4044 |
fi ;; |
| 4045 |
esac |
| 4046 |
fi |
| 4047 |
AWK=$ac_cv_prog_AWK |
| 4048 |
if test -n "$AWK"; then |
| 4049 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4050 |
printf "%s\n" "$AWK" >&6; } |
| 4051 |
else |
| 4052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4053 |
printf "%s\n" "no" >&6; } |
| 4054 |
fi |
| 4055 |
|
| 4056 |
|
| 4057 |
test -n "$AWK" && break |
| 4058 |
done |
| 4059 |
|
| 4060 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4061 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4062 |
set x ${MAKE-make} |
| 4063 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4064 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 4065 |
then : |
| 4066 |
printf %s "(cached) " >&6 |
| 4067 |
else case e in #( |
| 4068 |
e) cat >conftest.make <<\_ACEOF |
| 4069 |
SHELL = /bin/sh |
| 4070 |
all: |
| 4071 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4072 |
_ACEOF |
| 4073 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 4074 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4075 |
*@@@%%%=?*=@@@%%%*) |
| 4076 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4077 |
*) |
| 4078 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4079 |
esac |
| 4080 |
rm -f conftest.make ;; |
| 4081 |
esac |
| 4082 |
fi |
| 4083 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4084 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4085 |
printf "%s\n" "yes" >&6; } |
| 4086 |
SET_MAKE= |
| 4087 |
else |
| 4088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4089 |
printf "%s\n" "no" >&6; } |
| 4090 |
SET_MAKE="MAKE=${MAKE-make}" |
| 4091 |
fi |
| 4092 |
|
| 4093 |
rm -rf .tst 2>/dev/null |
| 4094 |
mkdir .tst 2>/dev/null |
| 4095 |
if test -d .tst; then |
| 4096 |
am__leading_dot=. |
| 4097 |
else |
| 4098 |
am__leading_dot=_ |
| 4099 |
fi |
| 4100 |
rmdir .tst 2>/dev/null |
| 4101 |
|
| 4102 |
AM_DEFAULT_VERBOSITY=1 |
| 4103 |
# Check whether --enable-silent-rules was given. |
| 4104 |
if test ${enable_silent_rules+y} |
| 4105 |
then : |
| 4106 |
enableval=$enable_silent_rules; |
| 4107 |
fi |
| 4108 |
|
| 4109 |
am_make=${MAKE-make} |
| 4110 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 |
| 4111 |
printf %s "checking whether $am_make supports nested variables... " >&6; } |
| 4112 |
if test ${am_cv_make_support_nested_variables+y} |
| 4113 |
then : |
| 4114 |
printf %s "(cached) " >&6 |
| 4115 |
else case e in #( |
| 4116 |
e) if printf "%s\n" 'TRUE=$(BAR$(V)) |
| 4117 |
BAR0=false |
| 4118 |
BAR1=true |
| 4119 |
V=1 |
| 4120 |
am__doit: |
| 4121 |
@$(TRUE) |
| 4122 |
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then |
| 4123 |
am_cv_make_support_nested_variables=yes |
| 4124 |
else |
| 4125 |
am_cv_make_support_nested_variables=no |
| 4126 |
fi ;; |
| 4127 |
esac |
| 4128 |
fi |
| 4129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 |
| 4130 |
printf "%s\n" "$am_cv_make_support_nested_variables" >&6; } |
| 4131 |
AM_BACKSLASH='\' |
| 4132 |
|
| 4133 |
am__rm_f_notfound= |
| 4134 |
if (rm -f && rm -fr && rm -rf) 2>/dev/null |
| 4135 |
then : |
| 4136 |
|
| 4137 |
else case e in #( |
| 4138 |
e) am__rm_f_notfound='""' ;; |
| 4139 |
esac |
| 4140 |
fi |
| 4141 |
|
| 4142 |
|
| 4143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5 |
| 4144 |
printf %s "checking xargs -n works... " >&6; } |
| 4145 |
if test ${am_cv_xargs_n_works+y} |
| 4146 |
then : |
| 4147 |
printf %s "(cached) " >&6 |
| 4148 |
else case e in #( |
| 4149 |
e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2 |
| 4150 |
3" |
| 4151 |
then : |
| 4152 |
am_cv_xargs_n_works=yes |
| 4153 |
else case e in #( |
| 4154 |
e) am_cv_xargs_n_works=no ;; |
| 4155 |
esac |
| 4156 |
fi ;; |
| 4157 |
esac |
| 4158 |
fi |
| 4159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5 |
| 4160 |
printf "%s\n" "$am_cv_xargs_n_works" >&6; } |
| 4161 |
if test "$am_cv_xargs_n_works" = yes |
| 4162 |
then : |
| 4163 |
am__xargs_n='xargs -n' |
| 4164 |
else case e in #( |
| 4165 |
e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }' |
| 4166 |
;; |
| 4167 |
esac |
| 4168 |
fi |
| 4169 |
|
| 4170 |
if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 4171 |
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 4172 |
# is not polluted with repeated "-I." |
| 4173 |
am__isrc=' -I$(srcdir)' |
| 4174 |
# test to see if srcdir already configured |
| 4175 |
if test -f $srcdir/config.status; then |
| 4176 |
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 4177 |
fi |
| 4178 |
fi |
| 4179 |
|
| 4180 |
# test whether we have cygpath |
| 4181 |
if test -z "$CYGPATH_W"; then |
| 4182 |
if (cygpath --version) >/dev/null 2>/dev/null; then |
| 4183 |
CYGPATH_W='cygpath -w' |
| 4184 |
else |
| 4185 |
CYGPATH_W=echo |
| 4186 |
fi |
| 4187 |
fi |
| 4188 |
|
| 4189 |
|
| 4190 |
# Define the identity of the package. |
| 4191 |
PACKAGE='libmicrohttpd' |
| 4192 |
VERSION='1.0.6' |
| 4193 |
|
| 4194 |
|
| 4195 |
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h |
| 4196 |
|
| 4197 |
|
| 4198 |
printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h |
| 4199 |
|
| 4200 |
# Some tools Automake needs. |
| 4201 |
|
| 4202 |
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 4203 |
|
| 4204 |
|
| 4205 |
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 4206 |
|
| 4207 |
|
| 4208 |
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 4209 |
|
| 4210 |
|
| 4211 |
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 4212 |
|
| 4213 |
|
| 4214 |
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 4215 |
|
| 4216 |
# For better backward compatibility. To be removed once Automake 1.9.x |
| 4217 |
# dies out for good. For more background, see: |
| 4218 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> |
| 4219 |
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> |
| 4220 |
mkdir_p='$(MKDIR_P)' |
| 4221 |
|
| 4222 |
# We need awk for the "check" target (and possibly the TAP driver). The |
| 4223 |
# system "awk" is bad on some platforms. |
| 4224 |
# Always define AMTAR for backward compatibility. Yes, it's still used |
| 4225 |
# in the wild :-( We should find a proper way to deprecate it ... |
| 4226 |
AMTAR='$${TAR-tar}' |
| 4227 |
|
| 4228 |
|
| 4229 |
# We'll loop over all known methods to create a tar archive until one works. |
| 4230 |
_am_tools='gnutar pax cpio none' |
| 4231 |
|
| 4232 |
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' |
| 4233 |
|
| 4234 |
|
| 4235 |
|
| 4236 |
|
| 4237 |
|
| 4238 |
# Variables for tags utilities; see am/tags.am |
| 4239 |
if test -z "$CTAGS"; then |
| 4240 |
CTAGS=ctags |
| 4241 |
fi |
| 4242 |
|
| 4243 |
if test -z "$ETAGS"; then |
| 4244 |
ETAGS=etags |
| 4245 |
fi |
| 4246 |
|
| 4247 |
if test -z "$CSCOPE"; then |
| 4248 |
CSCOPE=cscope |
| 4249 |
fi |
| 4250 |
|
| 4251 |
|
| 4252 |
|
| 4253 |
|
| 4254 |
|
| 4255 |
|
| 4256 |
|
| 4257 |
|
| 4258 |
# Checks for programs. |
| 4259 |
for ac_prog in gawk mawk nawk awk |
| 4260 |
do |
| 4261 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4262 |
set dummy $ac_prog; ac_word=$2 |
| 4263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4264 |
printf %s "checking for $ac_word... " >&6; } |
| 4265 |
if test ${ac_cv_prog_AWK+y} |
| 4266 |
then : |
| 4267 |
printf %s "(cached) " >&6 |
| 4268 |
else case e in #( |
| 4269 |
e) if test -n "$AWK"; then |
| 4270 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 4271 |
else |
| 4272 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4273 |
for as_dir in $PATH |
| 4274 |
do |
| 4275 |
IFS=$as_save_IFS |
| 4276 |
case $as_dir in #((( |
| 4277 |
'') as_dir=./ ;; |
| 4278 |
*/) ;; |
| 4279 |
*) as_dir=$as_dir/ ;; |
| 4280 |
esac |
| 4281 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4282 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4283 |
ac_cv_prog_AWK="$ac_prog" |
| 4284 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4285 |
break 2 |
| 4286 |
fi |
| 4287 |
done |
| 4288 |
done |
| 4289 |
IFS=$as_save_IFS |
| 4290 |
|
| 4291 |
fi ;; |
| 4292 |
esac |
| 4293 |
fi |
| 4294 |
AWK=$ac_cv_prog_AWK |
| 4295 |
if test -n "$AWK"; then |
| 4296 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 4297 |
printf "%s\n" "$AWK" >&6; } |
| 4298 |
else |
| 4299 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4300 |
printf "%s\n" "no" >&6; } |
| 4301 |
fi |
| 4302 |
|
| 4303 |
|
| 4304 |
test -n "$AWK" && break |
| 4305 |
done |
| 4306 |
|
| 4307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 4308 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 4309 |
if test ${ac_cv_path_GREP+y} |
| 4310 |
then : |
| 4311 |
printf %s "(cached) " >&6 |
| 4312 |
else case e in #( |
| 4313 |
e) if test -z "$GREP"; then |
| 4314 |
ac_path_GREP_found=false |
| 4315 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4316 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4317 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4318 |
do |
| 4319 |
IFS=$as_save_IFS |
| 4320 |
case $as_dir in #((( |
| 4321 |
'') as_dir=./ ;; |
| 4322 |
*/) ;; |
| 4323 |
*) as_dir=$as_dir/ ;; |
| 4324 |
esac |
| 4325 |
for ac_prog in grep ggrep |
| 4326 |
do |
| 4327 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4328 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 4329 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 4330 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 4331 |
# Check for GNU $ac_path_GREP |
| 4332 |
case `"$ac_path_GREP" --version 2>&1` in #( |
| 4333 |
*GNU*) |
| 4334 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 4335 |
#( |
| 4336 |
*) |
| 4337 |
ac_count=0 |
| 4338 |
printf %s 0123456789 >"conftest.in" |
| 4339 |
while : |
| 4340 |
do |
| 4341 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4342 |
mv "conftest.tmp" "conftest.in" |
| 4343 |
cp "conftest.in" "conftest.nl" |
| 4344 |
printf "%s\n" 'GREP' >> "conftest.nl" |
| 4345 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4346 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4347 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4348 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 4349 |
# Best one so far, save it but keep looking for a better one |
| 4350 |
ac_cv_path_GREP="$ac_path_GREP" |
| 4351 |
ac_path_GREP_max=$ac_count |
| 4352 |
fi |
| 4353 |
# 10*(2^10) chars as input seems more than enough |
| 4354 |
test $ac_count -gt 10 && break |
| 4355 |
done |
| 4356 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4357 |
esac |
| 4358 |
|
| 4359 |
$ac_path_GREP_found && break 3 |
| 4360 |
done |
| 4361 |
done |
| 4362 |
done |
| 4363 |
IFS=$as_save_IFS |
| 4364 |
if test -z "$ac_cv_path_GREP"; then |
| 4365 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4366 |
fi |
| 4367 |
else |
| 4368 |
ac_cv_path_GREP=$GREP |
| 4369 |
fi |
| 4370 |
;; |
| 4371 |
esac |
| 4372 |
fi |
| 4373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 4374 |
printf "%s\n" "$ac_cv_path_GREP" >&6; } |
| 4375 |
GREP="$ac_cv_path_GREP" |
| 4376 |
|
| 4377 |
|
| 4378 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
| 4379 |
printf %s "checking for fgrep... " >&6; } |
| 4380 |
if test ${ac_cv_path_FGREP+y} |
| 4381 |
then : |
| 4382 |
printf %s "(cached) " >&6 |
| 4383 |
else case e in #( |
| 4384 |
e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
| 4385 |
then ac_cv_path_FGREP="$GREP -F" |
| 4386 |
else |
| 4387 |
if test -z "$FGREP"; then |
| 4388 |
ac_path_FGREP_found=false |
| 4389 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4390 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4391 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4392 |
do |
| 4393 |
IFS=$as_save_IFS |
| 4394 |
case $as_dir in #((( |
| 4395 |
'') as_dir=./ ;; |
| 4396 |
*/) ;; |
| 4397 |
*) as_dir=$as_dir/ ;; |
| 4398 |
esac |
| 4399 |
for ac_prog in fgrep |
| 4400 |
do |
| 4401 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4402 |
ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" |
| 4403 |
as_fn_executable_p "$ac_path_FGREP" || continue |
| 4404 |
# Check for GNU ac_path_FGREP and select it if it is found. |
| 4405 |
# Check for GNU $ac_path_FGREP |
| 4406 |
case `"$ac_path_FGREP" --version 2>&1` in #( |
| 4407 |
*GNU*) |
| 4408 |
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; |
| 4409 |
#( |
| 4410 |
*) |
| 4411 |
ac_count=0 |
| 4412 |
printf %s 0123456789 >"conftest.in" |
| 4413 |
while : |
| 4414 |
do |
| 4415 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4416 |
mv "conftest.tmp" "conftest.in" |
| 4417 |
cp "conftest.in" "conftest.nl" |
| 4418 |
printf "%s\n" 'FGREP' >> "conftest.nl" |
| 4419 |
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4420 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4421 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4422 |
if test $ac_count -gt ${ac_path_FGREP_max-0}; then |
| 4423 |
# Best one so far, save it but keep looking for a better one |
| 4424 |
ac_cv_path_FGREP="$ac_path_FGREP" |
| 4425 |
ac_path_FGREP_max=$ac_count |
| 4426 |
fi |
| 4427 |
# 10*(2^10) chars as input seems more than enough |
| 4428 |
test $ac_count -gt 10 && break |
| 4429 |
done |
| 4430 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4431 |
esac |
| 4432 |
|
| 4433 |
$ac_path_FGREP_found && break 3 |
| 4434 |
done |
| 4435 |
done |
| 4436 |
done |
| 4437 |
IFS=$as_save_IFS |
| 4438 |
if test -z "$ac_cv_path_FGREP"; then |
| 4439 |
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4440 |
fi |
| 4441 |
else |
| 4442 |
ac_cv_path_FGREP=$FGREP |
| 4443 |
fi |
| 4444 |
|
| 4445 |
fi ;; |
| 4446 |
esac |
| 4447 |
fi |
| 4448 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 |
| 4449 |
printf "%s\n" "$ac_cv_path_FGREP" >&6; } |
| 4450 |
FGREP="$ac_cv_path_FGREP" |
| 4451 |
|
| 4452 |
|
| 4453 |
|
| 4454 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 4455 |
printf %s "checking whether ln -s works... " >&6; } |
| 4456 |
LN_S=$as_ln_s |
| 4457 |
if test "$LN_S" = "ln -s"; then |
| 4458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4459 |
printf "%s\n" "yes" >&6; } |
| 4460 |
else |
| 4461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 4462 |
printf "%s\n" "no, using $LN_S" >&6; } |
| 4463 |
fi |
| 4464 |
|
| 4465 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4466 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 4467 |
set x ${MAKE-make} |
| 4468 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 4469 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 4470 |
then : |
| 4471 |
printf %s "(cached) " >&6 |
| 4472 |
else case e in #( |
| 4473 |
e) cat >conftest.make <<\_ACEOF |
| 4474 |
SHELL = /bin/sh |
| 4475 |
all: |
| 4476 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 4477 |
_ACEOF |
| 4478 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 4479 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 4480 |
*@@@%%%=?*=@@@%%%*) |
| 4481 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 4482 |
*) |
| 4483 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 4484 |
esac |
| 4485 |
rm -f conftest.make ;; |
| 4486 |
esac |
| 4487 |
fi |
| 4488 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 4489 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4490 |
printf "%s\n" "yes" >&6; } |
| 4491 |
SET_MAKE= |
| 4492 |
else |
| 4493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4494 |
printf "%s\n" "no" >&6; } |
| 4495 |
SET_MAKE="MAKE=${MAKE-make}" |
| 4496 |
fi |
| 4497 |
|
| 4498 |
|
| 4499 |
|
| 4500 |
# Make sure we can run config.sub. |
| 4501 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 4502 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 4503 |
|
| 4504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4505 |
printf %s "checking build system type... " >&6; } |
| 4506 |
if test ${ac_cv_build+y} |
| 4507 |
then : |
| 4508 |
printf %s "(cached) " >&6 |
| 4509 |
else case e in #( |
| 4510 |
e) ac_build_alias=$build_alias |
| 4511 |
test "x$ac_build_alias" = x && |
| 4512 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 4513 |
test "x$ac_build_alias" = x && |
| 4514 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4515 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 4516 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4517 |
;; |
| 4518 |
esac |
| 4519 |
fi |
| 4520 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4521 |
printf "%s\n" "$ac_cv_build" >&6; } |
| 4522 |
case $ac_cv_build in |
| 4523 |
*-*-*) ;; |
| 4524 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 4525 |
esac |
| 4526 |
build=$ac_cv_build |
| 4527 |
ac_save_IFS=$IFS; IFS='-' |
| 4528 |
set x $ac_cv_build |
| 4529 |
shift |
| 4530 |
build_cpu=$1 |
| 4531 |
build_vendor=$2 |
| 4532 |
shift; shift |
| 4533 |
# Remember, the first character of IFS is used to create $*, |
| 4534 |
# except with old shells: |
| 4535 |
build_os=$* |
| 4536 |
IFS=$ac_save_IFS |
| 4537 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4538 |
|
| 4539 |
|
| 4540 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4541 |
printf %s "checking host system type... " >&6; } |
| 4542 |
if test ${ac_cv_host+y} |
| 4543 |
then : |
| 4544 |
printf %s "(cached) " >&6 |
| 4545 |
else case e in #( |
| 4546 |
e) if test "x$host_alias" = x; then |
| 4547 |
ac_cv_host=$ac_cv_build |
| 4548 |
else |
| 4549 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 4550 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 4551 |
fi |
| 4552 |
;; |
| 4553 |
esac |
| 4554 |
fi |
| 4555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4556 |
printf "%s\n" "$ac_cv_host" >&6; } |
| 4557 |
case $ac_cv_host in |
| 4558 |
*-*-*) ;; |
| 4559 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 4560 |
esac |
| 4561 |
host=$ac_cv_host |
| 4562 |
ac_save_IFS=$IFS; IFS='-' |
| 4563 |
set x $ac_cv_host |
| 4564 |
shift |
| 4565 |
host_cpu=$1 |
| 4566 |
host_vendor=$2 |
| 4567 |
shift; shift |
| 4568 |
# Remember, the first character of IFS is used to create $*, |
| 4569 |
# except with old shells: |
| 4570 |
host_os=$* |
| 4571 |
IFS=$ac_save_IFS |
| 4572 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4573 |
|
| 4574 |
|
| 4575 |
|
| 4576 |
# Find C compiler and compiler options to support |
| 4577 |
# the latest C standard (C11). Fallback to C99 and C89 |
| 4578 |
# if later C versions are not supported. |
| 4579 |
|
| 4580 |
|
| 4581 |
|
| 4582 |
|
| 4583 |
|
| 4584 |
|
| 4585 |
|
| 4586 |
|
| 4587 |
|
| 4588 |
ac_ext=c |
| 4589 |
ac_cpp='$CPP $CPPFLAGS' |
| 4590 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4591 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4592 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4593 |
if test -n "$ac_tool_prefix"; then |
| 4594 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4595 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4597 |
printf %s "checking for $ac_word... " >&6; } |
| 4598 |
if test ${ac_cv_prog_CC+y} |
| 4599 |
then : |
| 4600 |
printf %s "(cached) " >&6 |
| 4601 |
else case e in #( |
| 4602 |
e) if test -n "$CC"; then |
| 4603 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4604 |
else |
| 4605 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4606 |
for as_dir in $PATH |
| 4607 |
do |
| 4608 |
IFS=$as_save_IFS |
| 4609 |
case $as_dir in #((( |
| 4610 |
'') as_dir=./ ;; |
| 4611 |
*/) ;; |
| 4612 |
*) as_dir=$as_dir/ ;; |
| 4613 |
esac |
| 4614 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4615 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4616 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4617 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4618 |
break 2 |
| 4619 |
fi |
| 4620 |
done |
| 4621 |
done |
| 4622 |
IFS=$as_save_IFS |
| 4623 |
|
| 4624 |
fi ;; |
| 4625 |
esac |
| 4626 |
fi |
| 4627 |
CC=$ac_cv_prog_CC |
| 4628 |
if test -n "$CC"; then |
| 4629 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4630 |
printf "%s\n" "$CC" >&6; } |
| 4631 |
else |
| 4632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4633 |
printf "%s\n" "no" >&6; } |
| 4634 |
fi |
| 4635 |
|
| 4636 |
|
| 4637 |
fi |
| 4638 |
if test -z "$ac_cv_prog_CC"; then |
| 4639 |
ac_ct_CC=$CC |
| 4640 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 4641 |
set dummy gcc; ac_word=$2 |
| 4642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4643 |
printf %s "checking for $ac_word... " >&6; } |
| 4644 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4645 |
then : |
| 4646 |
printf %s "(cached) " >&6 |
| 4647 |
else case e in #( |
| 4648 |
e) if test -n "$ac_ct_CC"; then |
| 4649 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4650 |
else |
| 4651 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4652 |
for as_dir in $PATH |
| 4653 |
do |
| 4654 |
IFS=$as_save_IFS |
| 4655 |
case $as_dir in #((( |
| 4656 |
'') as_dir=./ ;; |
| 4657 |
*/) ;; |
| 4658 |
*) as_dir=$as_dir/ ;; |
| 4659 |
esac |
| 4660 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4661 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4662 |
ac_cv_prog_ac_ct_CC="gcc" |
| 4663 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4664 |
break 2 |
| 4665 |
fi |
| 4666 |
done |
| 4667 |
done |
| 4668 |
IFS=$as_save_IFS |
| 4669 |
|
| 4670 |
fi ;; |
| 4671 |
esac |
| 4672 |
fi |
| 4673 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4674 |
if test -n "$ac_ct_CC"; then |
| 4675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4676 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4677 |
else |
| 4678 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4679 |
printf "%s\n" "no" >&6; } |
| 4680 |
fi |
| 4681 |
|
| 4682 |
if test "x$ac_ct_CC" = x; then |
| 4683 |
CC="" |
| 4684 |
else |
| 4685 |
case $cross_compiling:$ac_tool_warned in |
| 4686 |
yes:) |
| 4687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4688 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4689 |
ac_tool_warned=yes ;; |
| 4690 |
esac |
| 4691 |
CC=$ac_ct_CC |
| 4692 |
fi |
| 4693 |
else |
| 4694 |
CC="$ac_cv_prog_CC" |
| 4695 |
fi |
| 4696 |
|
| 4697 |
if test -z "$CC"; then |
| 4698 |
if test -n "$ac_tool_prefix"; then |
| 4699 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4700 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4701 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4702 |
printf %s "checking for $ac_word... " >&6; } |
| 4703 |
if test ${ac_cv_prog_CC+y} |
| 4704 |
then : |
| 4705 |
printf %s "(cached) " >&6 |
| 4706 |
else case e in #( |
| 4707 |
e) if test -n "$CC"; then |
| 4708 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4709 |
else |
| 4710 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4711 |
for as_dir in $PATH |
| 4712 |
do |
| 4713 |
IFS=$as_save_IFS |
| 4714 |
case $as_dir in #((( |
| 4715 |
'') as_dir=./ ;; |
| 4716 |
*/) ;; |
| 4717 |
*) as_dir=$as_dir/ ;; |
| 4718 |
esac |
| 4719 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4720 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4721 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4722 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4723 |
break 2 |
| 4724 |
fi |
| 4725 |
done |
| 4726 |
done |
| 4727 |
IFS=$as_save_IFS |
| 4728 |
|
| 4729 |
fi ;; |
| 4730 |
esac |
| 4731 |
fi |
| 4732 |
CC=$ac_cv_prog_CC |
| 4733 |
if test -n "$CC"; then |
| 4734 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4735 |
printf "%s\n" "$CC" >&6; } |
| 4736 |
else |
| 4737 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4738 |
printf "%s\n" "no" >&6; } |
| 4739 |
fi |
| 4740 |
|
| 4741 |
|
| 4742 |
fi |
| 4743 |
fi |
| 4744 |
if test -z "$CC"; then |
| 4745 |
# Extract the first word of "cc", so it can be a program name with args. |
| 4746 |
set dummy cc; ac_word=$2 |
| 4747 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4748 |
printf %s "checking for $ac_word... " >&6; } |
| 4749 |
if test ${ac_cv_prog_CC+y} |
| 4750 |
then : |
| 4751 |
printf %s "(cached) " >&6 |
| 4752 |
else case e in #( |
| 4753 |
e) if test -n "$CC"; then |
| 4754 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4755 |
else |
| 4756 |
ac_prog_rejected=no |
| 4757 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4758 |
for as_dir in $PATH |
| 4759 |
do |
| 4760 |
IFS=$as_save_IFS |
| 4761 |
case $as_dir in #((( |
| 4762 |
'') as_dir=./ ;; |
| 4763 |
*/) ;; |
| 4764 |
*) as_dir=$as_dir/ ;; |
| 4765 |
esac |
| 4766 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4767 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4768 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4769 |
ac_prog_rejected=yes |
| 4770 |
continue |
| 4771 |
fi |
| 4772 |
ac_cv_prog_CC="cc" |
| 4773 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4774 |
break 2 |
| 4775 |
fi |
| 4776 |
done |
| 4777 |
done |
| 4778 |
IFS=$as_save_IFS |
| 4779 |
|
| 4780 |
if test $ac_prog_rejected = yes; then |
| 4781 |
# We found a bogon in the path, so make sure we never use it. |
| 4782 |
set dummy $ac_cv_prog_CC |
| 4783 |
shift |
| 4784 |
if test $# != 0; then |
| 4785 |
# We chose a different compiler from the bogus one. |
| 4786 |
# However, it has the same basename, so the bogon will be chosen |
| 4787 |
# first if we set CC to just the basename; use the full file name. |
| 4788 |
shift |
| 4789 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 4790 |
fi |
| 4791 |
fi |
| 4792 |
fi ;; |
| 4793 |
esac |
| 4794 |
fi |
| 4795 |
CC=$ac_cv_prog_CC |
| 4796 |
if test -n "$CC"; then |
| 4797 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4798 |
printf "%s\n" "$CC" >&6; } |
| 4799 |
else |
| 4800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4801 |
printf "%s\n" "no" >&6; } |
| 4802 |
fi |
| 4803 |
|
| 4804 |
|
| 4805 |
fi |
| 4806 |
if test -z "$CC"; then |
| 4807 |
if test -n "$ac_tool_prefix"; then |
| 4808 |
for ac_prog in cl.exe |
| 4809 |
do |
| 4810 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4811 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4813 |
printf %s "checking for $ac_word... " >&6; } |
| 4814 |
if test ${ac_cv_prog_CC+y} |
| 4815 |
then : |
| 4816 |
printf %s "(cached) " >&6 |
| 4817 |
else case e in #( |
| 4818 |
e) if test -n "$CC"; then |
| 4819 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4820 |
else |
| 4821 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4822 |
for as_dir in $PATH |
| 4823 |
do |
| 4824 |
IFS=$as_save_IFS |
| 4825 |
case $as_dir in #((( |
| 4826 |
'') as_dir=./ ;; |
| 4827 |
*/) ;; |
| 4828 |
*) as_dir=$as_dir/ ;; |
| 4829 |
esac |
| 4830 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4831 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4832 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4833 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4834 |
break 2 |
| 4835 |
fi |
| 4836 |
done |
| 4837 |
done |
| 4838 |
IFS=$as_save_IFS |
| 4839 |
|
| 4840 |
fi ;; |
| 4841 |
esac |
| 4842 |
fi |
| 4843 |
CC=$ac_cv_prog_CC |
| 4844 |
if test -n "$CC"; then |
| 4845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4846 |
printf "%s\n" "$CC" >&6; } |
| 4847 |
else |
| 4848 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4849 |
printf "%s\n" "no" >&6; } |
| 4850 |
fi |
| 4851 |
|
| 4852 |
|
| 4853 |
test -n "$CC" && break |
| 4854 |
done |
| 4855 |
fi |
| 4856 |
if test -z "$CC"; then |
| 4857 |
ac_ct_CC=$CC |
| 4858 |
for ac_prog in cl.exe |
| 4859 |
do |
| 4860 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4861 |
set dummy $ac_prog; ac_word=$2 |
| 4862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4863 |
printf %s "checking for $ac_word... " >&6; } |
| 4864 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4865 |
then : |
| 4866 |
printf %s "(cached) " >&6 |
| 4867 |
else case e in #( |
| 4868 |
e) if test -n "$ac_ct_CC"; then |
| 4869 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4870 |
else |
| 4871 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4872 |
for as_dir in $PATH |
| 4873 |
do |
| 4874 |
IFS=$as_save_IFS |
| 4875 |
case $as_dir in #((( |
| 4876 |
'') as_dir=./ ;; |
| 4877 |
*/) ;; |
| 4878 |
*) as_dir=$as_dir/ ;; |
| 4879 |
esac |
| 4880 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4881 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4882 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4883 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4884 |
break 2 |
| 4885 |
fi |
| 4886 |
done |
| 4887 |
done |
| 4888 |
IFS=$as_save_IFS |
| 4889 |
|
| 4890 |
fi ;; |
| 4891 |
esac |
| 4892 |
fi |
| 4893 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4894 |
if test -n "$ac_ct_CC"; then |
| 4895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4896 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 4897 |
else |
| 4898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4899 |
printf "%s\n" "no" >&6; } |
| 4900 |
fi |
| 4901 |
|
| 4902 |
|
| 4903 |
test -n "$ac_ct_CC" && break |
| 4904 |
done |
| 4905 |
|
| 4906 |
if test "x$ac_ct_CC" = x; then |
| 4907 |
CC="" |
| 4908 |
else |
| 4909 |
case $cross_compiling:$ac_tool_warned in |
| 4910 |
yes:) |
| 4911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4912 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4913 |
ac_tool_warned=yes ;; |
| 4914 |
esac |
| 4915 |
CC=$ac_ct_CC |
| 4916 |
fi |
| 4917 |
fi |
| 4918 |
|
| 4919 |
fi |
| 4920 |
if test -z "$CC"; then |
| 4921 |
if test -n "$ac_tool_prefix"; then |
| 4922 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 4923 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 4924 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4925 |
printf %s "checking for $ac_word... " >&6; } |
| 4926 |
if test ${ac_cv_prog_CC+y} |
| 4927 |
then : |
| 4928 |
printf %s "(cached) " >&6 |
| 4929 |
else case e in #( |
| 4930 |
e) if test -n "$CC"; then |
| 4931 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4932 |
else |
| 4933 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4934 |
for as_dir in $PATH |
| 4935 |
do |
| 4936 |
IFS=$as_save_IFS |
| 4937 |
case $as_dir in #((( |
| 4938 |
'') as_dir=./ ;; |
| 4939 |
*/) ;; |
| 4940 |
*) as_dir=$as_dir/ ;; |
| 4941 |
esac |
| 4942 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4943 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4944 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 4945 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4946 |
break 2 |
| 4947 |
fi |
| 4948 |
done |
| 4949 |
done |
| 4950 |
IFS=$as_save_IFS |
| 4951 |
|
| 4952 |
fi ;; |
| 4953 |
esac |
| 4954 |
fi |
| 4955 |
CC=$ac_cv_prog_CC |
| 4956 |
if test -n "$CC"; then |
| 4957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4958 |
printf "%s\n" "$CC" >&6; } |
| 4959 |
else |
| 4960 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4961 |
printf "%s\n" "no" >&6; } |
| 4962 |
fi |
| 4963 |
|
| 4964 |
|
| 4965 |
fi |
| 4966 |
if test -z "$ac_cv_prog_CC"; then |
| 4967 |
ac_ct_CC=$CC |
| 4968 |
# Extract the first word of "clang", so it can be a program name with args. |
| 4969 |
set dummy clang; ac_word=$2 |
| 4970 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4971 |
printf %s "checking for $ac_word... " >&6; } |
| 4972 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4973 |
then : |
| 4974 |
printf %s "(cached) " >&6 |
| 4975 |
else case e in #( |
| 4976 |
e) if test -n "$ac_ct_CC"; then |
| 4977 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4978 |
else |
| 4979 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4980 |
for as_dir in $PATH |
| 4981 |
do |
| 4982 |
IFS=$as_save_IFS |
| 4983 |
case $as_dir in #((( |
| 4984 |
'') as_dir=./ ;; |
| 4985 |
*/) ;; |
| 4986 |
*) as_dir=$as_dir/ ;; |
| 4987 |
esac |
| 4988 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4989 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4990 |
ac_cv_prog_ac_ct_CC="clang" |
| 4991 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4992 |
break 2 |
| 4993 |
fi |
| 4994 |
done |
| 4995 |
done |
| 4996 |
IFS=$as_save_IFS |
| 4997 |
|
| 4998 |
fi ;; |
| 4999 |
esac |
| 5000 |
fi |
| 5001 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5002 |
if test -n "$ac_ct_CC"; then |
| 5003 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5004 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 5005 |
else |
| 5006 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5007 |
printf "%s\n" "no" >&6; } |
| 5008 |
fi |
| 5009 |
|
| 5010 |
if test "x$ac_ct_CC" = x; then |
| 5011 |
CC="" |
| 5012 |
else |
| 5013 |
case $cross_compiling:$ac_tool_warned in |
| 5014 |
yes:) |
| 5015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5016 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5017 |
ac_tool_warned=yes ;; |
| 5018 |
esac |
| 5019 |
CC=$ac_ct_CC |
| 5020 |
fi |
| 5021 |
else |
| 5022 |
CC="$ac_cv_prog_CC" |
| 5023 |
fi |
| 5024 |
|
| 5025 |
fi |
| 5026 |
|
| 5027 |
|
| 5028 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5029 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5030 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 5031 |
See 'config.log' for more details" "$LINENO" 5; } |
| 5032 |
|
| 5033 |
# Provide some information about the compiler. |
| 5034 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 5035 |
set X $ac_compile |
| 5036 |
ac_compiler=$2 |
| 5037 |
for ac_option in --version -v -V -qversion -version; do |
| 5038 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 5039 |
case "(($ac_try" in |
| 5040 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5041 |
*) ac_try_echo=$ac_try;; |
| 5042 |
esac |
| 5043 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5044 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5045 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 5046 |
ac_status=$? |
| 5047 |
if test -s conftest.err; then |
| 5048 |
sed '10a\ |
| 5049 |
... rest of stderr output deleted ... |
| 5050 |
10q' conftest.err >conftest.er1 |
| 5051 |
cat conftest.er1 >&5 |
| 5052 |
fi |
| 5053 |
rm -f conftest.er1 conftest.err |
| 5054 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5055 |
test $ac_status = 0; } |
| 5056 |
done |
| 5057 |
|
| 5058 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5059 |
/* end confdefs.h. */ |
| 5060 |
|
| 5061 |
int |
| 5062 |
main (void) |
| 5063 |
{ |
| 5064 |
|
| 5065 |
; |
| 5066 |
return 0; |
| 5067 |
} |
| 5068 |
_ACEOF |
| 5069 |
ac_clean_files_save=$ac_clean_files |
| 5070 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 5071 |
# Try to create an executable without -o first, disregard a.out. |
| 5072 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 5073 |
# of exeext. |
| 5074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 5075 |
printf %s "checking whether the C compiler works... " >&6; } |
| 5076 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 5077 |
|
| 5078 |
# The possible output files: |
| 5079 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 5080 |
|
| 5081 |
ac_rmfiles= |
| 5082 |
for ac_file in $ac_files |
| 5083 |
do |
| 5084 |
case $ac_file in |
| 5085 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 5086 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 5087 |
esac |
| 5088 |
done |
| 5089 |
rm -f $ac_rmfiles |
| 5090 |
|
| 5091 |
if { { ac_try="$ac_link_default" |
| 5092 |
case "(($ac_try" in |
| 5093 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5094 |
*) ac_try_echo=$ac_try;; |
| 5095 |
esac |
| 5096 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5097 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5098 |
(eval "$ac_link_default") 2>&5 |
| 5099 |
ac_status=$? |
| 5100 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5101 |
test $ac_status = 0; } |
| 5102 |
then : |
| 5103 |
# Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 5104 |
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 5105 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 5106 |
# so that the user can short-circuit this test for compilers unknown to |
| 5107 |
# Autoconf. |
| 5108 |
for ac_file in $ac_files '' |
| 5109 |
do |
| 5110 |
test -f "$ac_file" || continue |
| 5111 |
case $ac_file in |
| 5112 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 5113 |
;; |
| 5114 |
[ab].out ) |
| 5115 |
# We found the default executable, but exeext='' is most |
| 5116 |
# certainly right. |
| 5117 |
break;; |
| 5118 |
*.* ) |
| 5119 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 5120 |
then :; else |
| 5121 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5122 |
fi |
| 5123 |
# We set ac_cv_exeext here because the later test for it is not |
| 5124 |
# safe: cross compilers may not add the suffix if given an '-o' |
| 5125 |
# argument, so we may need to know it at that point already. |
| 5126 |
# Even if this section looks crufty: it has the advantage of |
| 5127 |
# actually working. |
| 5128 |
break;; |
| 5129 |
* ) |
| 5130 |
break;; |
| 5131 |
esac |
| 5132 |
done |
| 5133 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 5134 |
|
| 5135 |
else case e in #( |
| 5136 |
e) ac_file='' ;; |
| 5137 |
esac |
| 5138 |
fi |
| 5139 |
if test -z "$ac_file" |
| 5140 |
then : |
| 5141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5142 |
printf "%s\n" "no" >&6; } |
| 5143 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 5144 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5145 |
|
| 5146 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5147 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5148 |
as_fn_error 77 "C compiler cannot create executables |
| 5149 |
See 'config.log' for more details" "$LINENO" 5; } |
| 5150 |
else case e in #( |
| 5151 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5152 |
printf "%s\n" "yes" >&6; } ;; |
| 5153 |
esac |
| 5154 |
fi |
| 5155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 5156 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 5157 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 5158 |
printf "%s\n" "$ac_file" >&6; } |
| 5159 |
ac_exeext=$ac_cv_exeext |
| 5160 |
|
| 5161 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 5162 |
ac_clean_files=$ac_clean_files_save |
| 5163 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 5164 |
printf %s "checking for suffix of executables... " >&6; } |
| 5165 |
if { { ac_try="$ac_link" |
| 5166 |
case "(($ac_try" in |
| 5167 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5168 |
*) ac_try_echo=$ac_try;; |
| 5169 |
esac |
| 5170 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5171 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5172 |
(eval "$ac_link") 2>&5 |
| 5173 |
ac_status=$? |
| 5174 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5175 |
test $ac_status = 0; } |
| 5176 |
then : |
| 5177 |
# If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 5178 |
# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 5179 |
# work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 5180 |
# 'rm'. |
| 5181 |
for ac_file in conftest.exe conftest conftest.*; do |
| 5182 |
test -f "$ac_file" || continue |
| 5183 |
case $ac_file in |
| 5184 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 5185 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5186 |
break;; |
| 5187 |
* ) break;; |
| 5188 |
esac |
| 5189 |
done |
| 5190 |
else case e in #( |
| 5191 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5192 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5193 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 5194 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 5195 |
esac |
| 5196 |
fi |
| 5197 |
rm -f conftest conftest$ac_cv_exeext |
| 5198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 5199 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 5200 |
|
| 5201 |
rm -f conftest.$ac_ext |
| 5202 |
EXEEXT=$ac_cv_exeext |
| 5203 |
ac_exeext=$EXEEXT |
| 5204 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5205 |
/* end confdefs.h. */ |
| 5206 |
#include <stdio.h> |
| 5207 |
int |
| 5208 |
main (void) |
| 5209 |
{ |
| 5210 |
FILE *f = fopen ("conftest.out", "w"); |
| 5211 |
if (!f) |
| 5212 |
return 1; |
| 5213 |
return ferror (f) || fclose (f) != 0; |
| 5214 |
|
| 5215 |
; |
| 5216 |
return 0; |
| 5217 |
} |
| 5218 |
_ACEOF |
| 5219 |
ac_clean_files="$ac_clean_files conftest.out" |
| 5220 |
# Check that the compiler produces executables we can run. If not, either |
| 5221 |
# the compiler is broken, or we cross compile. |
| 5222 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 5223 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 5224 |
if test "$cross_compiling" != yes; then |
| 5225 |
{ { ac_try="$ac_link" |
| 5226 |
case "(($ac_try" in |
| 5227 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5228 |
*) ac_try_echo=$ac_try;; |
| 5229 |
esac |
| 5230 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5231 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5232 |
(eval "$ac_link") 2>&5 |
| 5233 |
ac_status=$? |
| 5234 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5235 |
test $ac_status = 0; } |
| 5236 |
if { ac_try='./conftest$ac_cv_exeext' |
| 5237 |
{ { case "(($ac_try" in |
| 5238 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5239 |
*) ac_try_echo=$ac_try;; |
| 5240 |
esac |
| 5241 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5242 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5243 |
(eval "$ac_try") 2>&5 |
| 5244 |
ac_status=$? |
| 5245 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5246 |
test $ac_status = 0; }; }; then |
| 5247 |
cross_compiling=no |
| 5248 |
else |
| 5249 |
if test "$cross_compiling" = maybe; then |
| 5250 |
cross_compiling=yes |
| 5251 |
else |
| 5252 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5253 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5254 |
as_fn_error 77 "cannot run C compiled programs. |
| 5255 |
If you meant to cross compile, use '--host'. |
| 5256 |
See 'config.log' for more details" "$LINENO" 5; } |
| 5257 |
fi |
| 5258 |
fi |
| 5259 |
fi |
| 5260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 5261 |
printf "%s\n" "$cross_compiling" >&6; } |
| 5262 |
|
| 5263 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 5264 |
conftest.o conftest.obj conftest.out |
| 5265 |
ac_clean_files=$ac_clean_files_save |
| 5266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 5267 |
printf %s "checking for suffix of object files... " >&6; } |
| 5268 |
if test ${ac_cv_objext+y} |
| 5269 |
then : |
| 5270 |
printf %s "(cached) " >&6 |
| 5271 |
else case e in #( |
| 5272 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5273 |
/* end confdefs.h. */ |
| 5274 |
|
| 5275 |
int |
| 5276 |
main (void) |
| 5277 |
{ |
| 5278 |
|
| 5279 |
; |
| 5280 |
return 0; |
| 5281 |
} |
| 5282 |
_ACEOF |
| 5283 |
rm -f conftest.o conftest.obj |
| 5284 |
if { { ac_try="$ac_compile" |
| 5285 |
case "(($ac_try" in |
| 5286 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5287 |
*) ac_try_echo=$ac_try;; |
| 5288 |
esac |
| 5289 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5290 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5291 |
(eval "$ac_compile") 2>&5 |
| 5292 |
ac_status=$? |
| 5293 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5294 |
test $ac_status = 0; } |
| 5295 |
then : |
| 5296 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 5297 |
test -f "$ac_file" || continue; |
| 5298 |
case $ac_file in |
| 5299 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 5300 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 5301 |
break;; |
| 5302 |
esac |
| 5303 |
done |
| 5304 |
else case e in #( |
| 5305 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 5306 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5307 |
|
| 5308 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5309 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5310 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 5311 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 5312 |
esac |
| 5313 |
fi |
| 5314 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 5315 |
esac |
| 5316 |
fi |
| 5317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 5318 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 5319 |
OBJEXT=$ac_cv_objext |
| 5320 |
ac_objext=$OBJEXT |
| 5321 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 5322 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 5323 |
if test ${ac_cv_c_compiler_gnu+y} |
| 5324 |
then : |
| 5325 |
printf %s "(cached) " >&6 |
| 5326 |
else case e in #( |
| 5327 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5328 |
/* end confdefs.h. */ |
| 5329 |
|
| 5330 |
int |
| 5331 |
main (void) |
| 5332 |
{ |
| 5333 |
#ifndef __GNUC__ |
| 5334 |
choke me |
| 5335 |
#endif |
| 5336 |
|
| 5337 |
; |
| 5338 |
return 0; |
| 5339 |
} |
| 5340 |
_ACEOF |
| 5341 |
if ac_fn_c_try_compile "$LINENO" |
| 5342 |
then : |
| 5343 |
ac_compiler_gnu=yes |
| 5344 |
else case e in #( |
| 5345 |
e) ac_compiler_gnu=no ;; |
| 5346 |
esac |
| 5347 |
fi |
| 5348 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5349 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5350 |
;; |
| 5351 |
esac |
| 5352 |
fi |
| 5353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5354 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 5355 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5356 |
|
| 5357 |
if test $ac_compiler_gnu = yes; then |
| 5358 |
GCC=yes |
| 5359 |
else |
| 5360 |
GCC= |
| 5361 |
fi |
| 5362 |
ac_test_CFLAGS=${CFLAGS+y} |
| 5363 |
ac_save_CFLAGS=$CFLAGS |
| 5364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5365 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 5366 |
if test ${ac_cv_prog_cc_g+y} |
| 5367 |
then : |
| 5368 |
printf %s "(cached) " >&6 |
| 5369 |
else case e in #( |
| 5370 |
e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 5371 |
ac_c_werror_flag=yes |
| 5372 |
ac_cv_prog_cc_g=no |
| 5373 |
CFLAGS="-g" |
| 5374 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5375 |
/* end confdefs.h. */ |
| 5376 |
|
| 5377 |
int |
| 5378 |
main (void) |
| 5379 |
{ |
| 5380 |
|
| 5381 |
; |
| 5382 |
return 0; |
| 5383 |
} |
| 5384 |
_ACEOF |
| 5385 |
if ac_fn_c_try_compile "$LINENO" |
| 5386 |
then : |
| 5387 |
ac_cv_prog_cc_g=yes |
| 5388 |
else case e in #( |
| 5389 |
e) CFLAGS="" |
| 5390 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5391 |
/* end confdefs.h. */ |
| 5392 |
|
| 5393 |
int |
| 5394 |
main (void) |
| 5395 |
{ |
| 5396 |
|
| 5397 |
; |
| 5398 |
return 0; |
| 5399 |
} |
| 5400 |
_ACEOF |
| 5401 |
if ac_fn_c_try_compile "$LINENO" |
| 5402 |
then : |
| 5403 |
|
| 5404 |
else case e in #( |
| 5405 |
e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 5406 |
CFLAGS="-g" |
| 5407 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5408 |
/* end confdefs.h. */ |
| 5409 |
|
| 5410 |
int |
| 5411 |
main (void) |
| 5412 |
{ |
| 5413 |
|
| 5414 |
; |
| 5415 |
return 0; |
| 5416 |
} |
| 5417 |
_ACEOF |
| 5418 |
if ac_fn_c_try_compile "$LINENO" |
| 5419 |
then : |
| 5420 |
ac_cv_prog_cc_g=yes |
| 5421 |
fi |
| 5422 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5423 |
esac |
| 5424 |
fi |
| 5425 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5426 |
esac |
| 5427 |
fi |
| 5428 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5429 |
ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 5430 |
esac |
| 5431 |
fi |
| 5432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5433 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 5434 |
if test $ac_test_CFLAGS; then |
| 5435 |
CFLAGS=$ac_save_CFLAGS |
| 5436 |
elif test $ac_cv_prog_cc_g = yes; then |
| 5437 |
if test "$GCC" = yes; then |
| 5438 |
CFLAGS="-g -O2" |
| 5439 |
else |
| 5440 |
CFLAGS="-g" |
| 5441 |
fi |
| 5442 |
else |
| 5443 |
if test "$GCC" = yes; then |
| 5444 |
CFLAGS="-O2" |
| 5445 |
else |
| 5446 |
CFLAGS= |
| 5447 |
fi |
| 5448 |
fi |
| 5449 |
ac_prog_cc_stdc=no |
| 5450 |
if test x$ac_prog_cc_stdc = xno |
| 5451 |
then : |
| 5452 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 5453 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 5454 |
if test ${ac_cv_prog_cc_c11+y} |
| 5455 |
then : |
| 5456 |
printf %s "(cached) " >&6 |
| 5457 |
else case e in #( |
| 5458 |
e) ac_cv_prog_cc_c11=no |
| 5459 |
ac_save_CC=$CC |
| 5460 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5461 |
/* end confdefs.h. */ |
| 5462 |
$ac_c_conftest_c11_program |
| 5463 |
_ACEOF |
| 5464 |
for ac_arg in '' -std=gnu11 |
| 5465 |
do |
| 5466 |
CC="$ac_save_CC $ac_arg" |
| 5467 |
if ac_fn_c_try_compile "$LINENO" |
| 5468 |
then : |
| 5469 |
ac_cv_prog_cc_c11=$ac_arg |
| 5470 |
fi |
| 5471 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5472 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 5473 |
done |
| 5474 |
rm -f conftest.$ac_ext |
| 5475 |
CC=$ac_save_CC ;; |
| 5476 |
esac |
| 5477 |
fi |
| 5478 |
|
| 5479 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 5480 |
then : |
| 5481 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5482 |
printf "%s\n" "unsupported" >&6; } |
| 5483 |
else case e in #( |
| 5484 |
e) if test "x$ac_cv_prog_cc_c11" = x |
| 5485 |
then : |
| 5486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5487 |
printf "%s\n" "none needed" >&6; } |
| 5488 |
else case e in #( |
| 5489 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 5490 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 5491 |
CC="$CC $ac_cv_prog_cc_c11" ;; |
| 5492 |
esac |
| 5493 |
fi |
| 5494 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 5495 |
ac_prog_cc_stdc=c11 ;; |
| 5496 |
esac |
| 5497 |
fi |
| 5498 |
fi |
| 5499 |
if test x$ac_prog_cc_stdc = xno |
| 5500 |
then : |
| 5501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 5502 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 5503 |
if test ${ac_cv_prog_cc_c99+y} |
| 5504 |
then : |
| 5505 |
printf %s "(cached) " >&6 |
| 5506 |
else case e in #( |
| 5507 |
e) ac_cv_prog_cc_c99=no |
| 5508 |
ac_save_CC=$CC |
| 5509 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5510 |
/* end confdefs.h. */ |
| 5511 |
$ac_c_conftest_c99_program |
| 5512 |
_ACEOF |
| 5513 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 5514 |
do |
| 5515 |
CC="$ac_save_CC $ac_arg" |
| 5516 |
if ac_fn_c_try_compile "$LINENO" |
| 5517 |
then : |
| 5518 |
ac_cv_prog_cc_c99=$ac_arg |
| 5519 |
fi |
| 5520 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5521 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 5522 |
done |
| 5523 |
rm -f conftest.$ac_ext |
| 5524 |
CC=$ac_save_CC ;; |
| 5525 |
esac |
| 5526 |
fi |
| 5527 |
|
| 5528 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 5529 |
then : |
| 5530 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5531 |
printf "%s\n" "unsupported" >&6; } |
| 5532 |
else case e in #( |
| 5533 |
e) if test "x$ac_cv_prog_cc_c99" = x |
| 5534 |
then : |
| 5535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5536 |
printf "%s\n" "none needed" >&6; } |
| 5537 |
else case e in #( |
| 5538 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 5539 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 5540 |
CC="$CC $ac_cv_prog_cc_c99" ;; |
| 5541 |
esac |
| 5542 |
fi |
| 5543 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 5544 |
ac_prog_cc_stdc=c99 ;; |
| 5545 |
esac |
| 5546 |
fi |
| 5547 |
fi |
| 5548 |
if test x$ac_prog_cc_stdc = xno |
| 5549 |
then : |
| 5550 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 5551 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 5552 |
if test ${ac_cv_prog_cc_c89+y} |
| 5553 |
then : |
| 5554 |
printf %s "(cached) " >&6 |
| 5555 |
else case e in #( |
| 5556 |
e) ac_cv_prog_cc_c89=no |
| 5557 |
ac_save_CC=$CC |
| 5558 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5559 |
/* end confdefs.h. */ |
| 5560 |
$ac_c_conftest_c89_program |
| 5561 |
_ACEOF |
| 5562 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5563 |
do |
| 5564 |
CC="$ac_save_CC $ac_arg" |
| 5565 |
if ac_fn_c_try_compile "$LINENO" |
| 5566 |
then : |
| 5567 |
ac_cv_prog_cc_c89=$ac_arg |
| 5568 |
fi |
| 5569 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 5570 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5571 |
done |
| 5572 |
rm -f conftest.$ac_ext |
| 5573 |
CC=$ac_save_CC ;; |
| 5574 |
esac |
| 5575 |
fi |
| 5576 |
|
| 5577 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 5578 |
then : |
| 5579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5580 |
printf "%s\n" "unsupported" >&6; } |
| 5581 |
else case e in #( |
| 5582 |
e) if test "x$ac_cv_prog_cc_c89" = x |
| 5583 |
then : |
| 5584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5585 |
printf "%s\n" "none needed" >&6; } |
| 5586 |
else case e in #( |
| 5587 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5588 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 5589 |
CC="$CC $ac_cv_prog_cc_c89" ;; |
| 5590 |
esac |
| 5591 |
fi |
| 5592 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 5593 |
ac_prog_cc_stdc=c89 ;; |
| 5594 |
esac |
| 5595 |
fi |
| 5596 |
fi |
| 5597 |
|
| 5598 |
ac_ext=c |
| 5599 |
ac_cpp='$CPP $CPPFLAGS' |
| 5600 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5601 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5602 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5603 |
|
| 5604 |
|
| 5605 |
ac_ext=c |
| 5606 |
ac_cpp='$CPP $CPPFLAGS' |
| 5607 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5608 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5609 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 |
| 5611 |
printf %s "checking whether $CC understands -c and -o together... " >&6; } |
| 5612 |
if test ${am_cv_prog_cc_c_o+y} |
| 5613 |
then : |
| 5614 |
printf %s "(cached) " >&6 |
| 5615 |
else case e in #( |
| 5616 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5617 |
/* end confdefs.h. */ |
| 5618 |
|
| 5619 |
int |
| 5620 |
main (void) |
| 5621 |
{ |
| 5622 |
|
| 5623 |
; |
| 5624 |
return 0; |
| 5625 |
} |
| 5626 |
_ACEOF |
| 5627 |
# Make sure it works both with $CC and with simple cc. |
| 5628 |
# Following AC_PROG_CC_C_O, we do the test twice because some |
| 5629 |
# compilers refuse to overwrite an existing .o file with -o, |
| 5630 |
# though they will create one. |
| 5631 |
am_cv_prog_cc_c_o=yes |
| 5632 |
for am_i in 1 2; do |
| 5633 |
if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 |
| 5634 |
($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 |
| 5635 |
ac_status=$? |
| 5636 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5637 |
(exit $ac_status); } \ |
| 5638 |
&& test -f conftest2.$ac_objext; then |
| 5639 |
: OK |
| 5640 |
else |
| 5641 |
am_cv_prog_cc_c_o=no |
| 5642 |
break |
| 5643 |
fi |
| 5644 |
done |
| 5645 |
rm -f core conftest* |
| 5646 |
unset am_i ;; |
| 5647 |
esac |
| 5648 |
fi |
| 5649 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 |
| 5650 |
printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } |
| 5651 |
if test "$am_cv_prog_cc_c_o" != yes; then |
| 5652 |
# Losing compiler, so override with the script. |
| 5653 |
# FIXME: It is wrong to rewrite CC. |
| 5654 |
# But if we don't then we get into trouble of one sort or another. |
| 5655 |
# A longer-term fix would be to have automake use am__CC in this case, |
| 5656 |
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5657 |
CC="$am_aux_dir/compile $CC" |
| 5658 |
fi |
| 5659 |
ac_ext=c |
| 5660 |
ac_cpp='$CPP $CPPFLAGS' |
| 5661 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5662 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5663 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5664 |
|
| 5665 |
DEPDIR="${am__leading_dot}deps" |
| 5666 |
|
| 5667 |
ac_config_commands="$ac_config_commands depfiles" |
| 5668 |
|
| 5669 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 |
| 5670 |
printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } |
| 5671 |
cat > confinc.mk << 'END' |
| 5672 |
am__doit: |
| 5673 |
@echo this is the am__doit target >confinc.out |
| 5674 |
.PHONY: am__doit |
| 5675 |
END |
| 5676 |
am__include="#" |
| 5677 |
am__quote= |
| 5678 |
# BSD make does it like this. |
| 5679 |
echo '.include "confinc.mk" # ignored' > confmf.BSD |
| 5680 |
# Other make implementations (GNU, Solaris 10, AIX) do it like this. |
| 5681 |
echo 'include confinc.mk # ignored' > confmf.GNU |
| 5682 |
_am_result=no |
| 5683 |
for s in GNU BSD; do |
| 5684 |
{ echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 |
| 5685 |
(${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 |
| 5686 |
ac_status=$? |
| 5687 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5688 |
(exit $ac_status); } |
| 5689 |
case $?:`cat confinc.out 2>/dev/null` in #( |
| 5690 |
'0:this is the am__doit target') : |
| 5691 |
case $s in #( |
| 5692 |
BSD) : |
| 5693 |
am__include='.include' am__quote='"' ;; #( |
| 5694 |
*) : |
| 5695 |
am__include='include' am__quote='' ;; |
| 5696 |
esac ;; #( |
| 5697 |
*) : |
| 5698 |
;; |
| 5699 |
esac |
| 5700 |
if test "$am__include" != "#"; then |
| 5701 |
_am_result="yes ($s style)" |
| 5702 |
break |
| 5703 |
fi |
| 5704 |
done |
| 5705 |
rm -f confinc.* confmf.* |
| 5706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 |
| 5707 |
printf "%s\n" "${_am_result}" >&6; } |
| 5708 |
|
| 5709 |
# Check whether --enable-dependency-tracking was given. |
| 5710 |
if test ${enable_dependency_tracking+y} |
| 5711 |
then : |
| 5712 |
enableval=$enable_dependency_tracking; |
| 5713 |
fi |
| 5714 |
|
| 5715 |
if test "x$enable_dependency_tracking" != xno; then |
| 5716 |
am_depcomp="$ac_aux_dir/depcomp" |
| 5717 |
AMDEPBACKSLASH='\' |
| 5718 |
am__nodep='_no' |
| 5719 |
fi |
| 5720 |
if test "x$enable_dependency_tracking" != xno; then |
| 5721 |
AMDEP_TRUE= |
| 5722 |
AMDEP_FALSE='#' |
| 5723 |
else |
| 5724 |
AMDEP_TRUE='#' |
| 5725 |
AMDEP_FALSE= |
| 5726 |
fi |
| 5727 |
|
| 5728 |
|
| 5729 |
|
| 5730 |
depcc="$CC" am_compiler_list= |
| 5731 |
|
| 5732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5733 |
printf %s "checking dependency style of $depcc... " >&6; } |
| 5734 |
if test ${am_cv_CC_dependencies_compiler_type+y} |
| 5735 |
then : |
| 5736 |
printf %s "(cached) " >&6 |
| 5737 |
else case e in #( |
| 5738 |
e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5739 |
# We make a subdir and do the tests there. Otherwise we can end up |
| 5740 |
# making bogus files that we don't know about and never remove. For |
| 5741 |
# instance it was reported that on HP-UX the gcc test will end up |
| 5742 |
# making a dummy file named 'D' -- because '-MD' means "put the output |
| 5743 |
# in D". |
| 5744 |
rm -rf conftest.dir |
| 5745 |
mkdir conftest.dir |
| 5746 |
# Copy depcomp to subdir because otherwise we won't find it if we're |
| 5747 |
# using a relative directory. |
| 5748 |
cp "$am_depcomp" conftest.dir |
| 5749 |
cd conftest.dir |
| 5750 |
# We will build objects and dependencies in a subdirectory because |
| 5751 |
# it helps to detect inapplicable dependency modes. For instance |
| 5752 |
# both Tru64's cc and ICC support -MD to output dependencies as a |
| 5753 |
# side effect of compilation, but ICC will put the dependencies in |
| 5754 |
# the current directory while Tru64 will put them in the object |
| 5755 |
# directory. |
| 5756 |
mkdir sub |
| 5757 |
|
| 5758 |
am_cv_CC_dependencies_compiler_type=none |
| 5759 |
if test "$am_compiler_list" = ""; then |
| 5760 |
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5761 |
fi |
| 5762 |
am__universal=false |
| 5763 |
case " $depcc " in #( |
| 5764 |
*\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5765 |
esac |
| 5766 |
|
| 5767 |
for depmode in $am_compiler_list; do |
| 5768 |
# Setup a source with many dependencies, because some compilers |
| 5769 |
# like to wrap large dependency lists on column 80 (with \), and |
| 5770 |
# we should not choose a depcomp mode which is confused by this. |
| 5771 |
# |
| 5772 |
# We need to recreate these files for each test, as the compiler may |
| 5773 |
# overwrite some of them when testing with obscure command lines. |
| 5774 |
# This happens at least with the AIX C compiler. |
| 5775 |
: > sub/conftest.c |
| 5776 |
for i in 1 2 3 4 5 6; do |
| 5777 |
echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5778 |
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with |
| 5779 |
# Solaris 10 /bin/sh. |
| 5780 |
echo '/* dummy */' > sub/conftst$i.h |
| 5781 |
done |
| 5782 |
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5783 |
|
| 5784 |
# We check with '-c' and '-o' for the sake of the "dashmstdout" |
| 5785 |
# mode. It turns out that the SunPro C++ compiler does not properly |
| 5786 |
# handle '-M -o', and we need to detect this. Also, some Intel |
| 5787 |
# versions had trouble with output in subdirs. |
| 5788 |
am__obj=sub/conftest.${OBJEXT-o} |
| 5789 |
am__minus_obj="-o $am__obj" |
| 5790 |
case $depmode in |
| 5791 |
gcc) |
| 5792 |
# This depmode causes a compiler race in universal mode. |
| 5793 |
test "$am__universal" = false || continue |
| 5794 |
;; |
| 5795 |
nosideeffect) |
| 5796 |
# After this tag, mechanisms are not by side-effect, so they'll |
| 5797 |
# only be used when explicitly requested. |
| 5798 |
if test "x$enable_dependency_tracking" = xyes; then |
| 5799 |
continue |
| 5800 |
else |
| 5801 |
break |
| 5802 |
fi |
| 5803 |
;; |
| 5804 |
msvc7 | msvc7msys | msvisualcpp | msvcmsys) |
| 5805 |
# This compiler won't grok '-c -o', but also, the minuso test has |
| 5806 |
# not run yet. These depmodes are late enough in the game, and |
| 5807 |
# so weak that their functioning should not be impacted. |
| 5808 |
am__obj=conftest.${OBJEXT-o} |
| 5809 |
am__minus_obj= |
| 5810 |
;; |
| 5811 |
none) break ;; |
| 5812 |
esac |
| 5813 |
if depmode=$depmode \ |
| 5814 |
source=sub/conftest.c object=$am__obj \ |
| 5815 |
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5816 |
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5817 |
>/dev/null 2>conftest.err && |
| 5818 |
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5819 |
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5820 |
grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5821 |
${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5822 |
# icc doesn't choke on unknown options, it will just issue warnings |
| 5823 |
# or remarks (even with -Werror). So we grep stderr for any message |
| 5824 |
# that says an option was ignored or not supported. |
| 5825 |
# When given -MP, icc 7.0 and 7.1 complain thus: |
| 5826 |
# icc: Command line warning: ignoring option '-M'; no argument required |
| 5827 |
# The diagnosis changed in icc 8.0: |
| 5828 |
# icc: Command line remark: option '-MP' not supported |
| 5829 |
if (grep 'ignoring option' conftest.err || |
| 5830 |
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5831 |
am_cv_CC_dependencies_compiler_type=$depmode |
| 5832 |
break |
| 5833 |
fi |
| 5834 |
fi |
| 5835 |
done |
| 5836 |
|
| 5837 |
cd .. |
| 5838 |
rm -rf conftest.dir |
| 5839 |
else |
| 5840 |
am_cv_CC_dependencies_compiler_type=none |
| 5841 |
fi |
| 5842 |
;; |
| 5843 |
esac |
| 5844 |
fi |
| 5845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5846 |
printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5847 |
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5848 |
|
| 5849 |
if |
| 5850 |
test "x$enable_dependency_tracking" != xno \ |
| 5851 |
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5852 |
am__fastdepCC_TRUE= |
| 5853 |
am__fastdepCC_FALSE='#' |
| 5854 |
else |
| 5855 |
am__fastdepCC_TRUE='#' |
| 5856 |
am__fastdepCC_FALSE= |
| 5857 |
fi |
| 5858 |
|
| 5859 |
|
| 5860 |
|
| 5861 |
|
| 5862 |
# Workaround for libgcrypt |
| 5863 |
if test "x$lt_sysroot" != "x" && test "x$SYSROOT" = "x" |
| 5864 |
then : |
| 5865 |
SYSROOT="$lt_sysroot" |
| 5866 |
fi |
| 5867 |
user_CFLAGS="$CFLAGS" |
| 5868 |
user_LDFLAGS="$LDFLAGS" |
| 5869 |
user_CPPFLAGS="$CPPFLAGS" |
| 5870 |
|
| 5871 |
CFLAGS_ac="" |
| 5872 |
LDFLAGS_ac="" |
| 5873 |
CPPFLAGS_ac="" |
| 5874 |
|
| 5875 |
|
| 5876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 5877 |
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 5878 |
if test ${ac_cv_c_undeclared_builtin_options+y} |
| 5879 |
then : |
| 5880 |
printf %s "(cached) " >&6 |
| 5881 |
else case e in #( |
| 5882 |
e) ac_save_CFLAGS=$CFLAGS |
| 5883 |
ac_cv_c_undeclared_builtin_options='cannot detect' |
| 5884 |
for ac_arg in '' -fno-builtin; do |
| 5885 |
CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 5886 |
# This test program should *not* compile successfully. |
| 5887 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5888 |
/* end confdefs.h. */ |
| 5889 |
|
| 5890 |
int |
| 5891 |
main (void) |
| 5892 |
{ |
| 5893 |
(void) strchr; |
| 5894 |
; |
| 5895 |
return 0; |
| 5896 |
} |
| 5897 |
_ACEOF |
| 5898 |
if ac_fn_c_try_compile "$LINENO" |
| 5899 |
then : |
| 5900 |
|
| 5901 |
else case e in #( |
| 5902 |
e) # This test program should compile successfully. |
| 5903 |
# No library function is consistently available on |
| 5904 |
# freestanding implementations, so test against a dummy |
| 5905 |
# declaration. Include always-available headers on the |
| 5906 |
# off chance that they somehow elicit warnings. |
| 5907 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5908 |
/* end confdefs.h. */ |
| 5909 |
#include <float.h> |
| 5910 |
#include <limits.h> |
| 5911 |
#include <stdarg.h> |
| 5912 |
#include <stddef.h> |
| 5913 |
extern void ac_decl (int, char *); |
| 5914 |
|
| 5915 |
int |
| 5916 |
main (void) |
| 5917 |
{ |
| 5918 |
(void) ac_decl (0, (char *) 0); |
| 5919 |
(void) ac_decl; |
| 5920 |
|
| 5921 |
; |
| 5922 |
return 0; |
| 5923 |
} |
| 5924 |
_ACEOF |
| 5925 |
if ac_fn_c_try_compile "$LINENO" |
| 5926 |
then : |
| 5927 |
if test x"$ac_arg" = x |
| 5928 |
then : |
| 5929 |
ac_cv_c_undeclared_builtin_options='none needed' |
| 5930 |
else case e in #( |
| 5931 |
e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; |
| 5932 |
esac |
| 5933 |
fi |
| 5934 |
break |
| 5935 |
fi |
| 5936 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5937 |
esac |
| 5938 |
fi |
| 5939 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 5940 |
done |
| 5941 |
CFLAGS=$ac_save_CFLAGS |
| 5942 |
;; |
| 5943 |
esac |
| 5944 |
fi |
| 5945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 5946 |
printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } |
| 5947 |
case $ac_cv_c_undeclared_builtin_options in #( |
| 5948 |
'cannot detect') : |
| 5949 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 5950 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 5951 |
as_fn_error $? "cannot make $CC report undeclared builtins |
| 5952 |
See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 5953 |
'none needed') : |
| 5954 |
ac_c_undeclared_builtin_options='' ;; #( |
| 5955 |
*) : |
| 5956 |
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 5957 |
esac |
| 5958 |
|
| 5959 |
ac_ext=c |
| 5960 |
ac_cpp='$CPP $CPPFLAGS' |
| 5961 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5962 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5963 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5965 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 5966 |
# On Suns, sometimes $CPP names a directory. |
| 5967 |
if test -n "$CPP" && test -d "$CPP"; then |
| 5968 |
CPP= |
| 5969 |
fi |
| 5970 |
if test -z "$CPP"; then |
| 5971 |
if test ${ac_cv_prog_CPP+y} |
| 5972 |
then : |
| 5973 |
printf %s "(cached) " >&6 |
| 5974 |
else case e in #( |
| 5975 |
e) # Double quotes because $CC needs to be expanded |
| 5976 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 5977 |
do |
| 5978 |
ac_preproc_ok=false |
| 5979 |
for ac_c_preproc_warn_flag in '' yes |
| 5980 |
do |
| 5981 |
# Use a header file that comes with gcc, so configuring glibc |
| 5982 |
# with a fresh cross-compiler works. |
| 5983 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 5984 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 5985 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5986 |
/* end confdefs.h. */ |
| 5987 |
#include <limits.h> |
| 5988 |
Syntax error |
| 5989 |
_ACEOF |
| 5990 |
if ac_fn_c_try_cpp "$LINENO" |
| 5991 |
then : |
| 5992 |
|
| 5993 |
else case e in #( |
| 5994 |
e) # Broken: fails on valid input. |
| 5995 |
continue ;; |
| 5996 |
esac |
| 5997 |
fi |
| 5998 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 5999 |
|
| 6000 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 6001 |
# can be detected and how. |
| 6002 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6003 |
/* end confdefs.h. */ |
| 6004 |
#include <ac_nonexistent.h> |
| 6005 |
_ACEOF |
| 6006 |
if ac_fn_c_try_cpp "$LINENO" |
| 6007 |
then : |
| 6008 |
# Broken: success on invalid input. |
| 6009 |
continue |
| 6010 |
else case e in #( |
| 6011 |
e) # Passes both tests. |
| 6012 |
ac_preproc_ok=: |
| 6013 |
break ;; |
| 6014 |
esac |
| 6015 |
fi |
| 6016 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 6017 |
|
| 6018 |
done |
| 6019 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6020 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 6021 |
if $ac_preproc_ok |
| 6022 |
then : |
| 6023 |
break |
| 6024 |
fi |
| 6025 |
|
| 6026 |
done |
| 6027 |
ac_cv_prog_CPP=$CPP |
| 6028 |
;; |
| 6029 |
esac |
| 6030 |
fi |
| 6031 |
CPP=$ac_cv_prog_CPP |
| 6032 |
else |
| 6033 |
ac_cv_prog_CPP=$CPP |
| 6034 |
fi |
| 6035 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 6036 |
printf "%s\n" "$CPP" >&6; } |
| 6037 |
ac_preproc_ok=false |
| 6038 |
for ac_c_preproc_warn_flag in '' yes |
| 6039 |
do |
| 6040 |
# Use a header file that comes with gcc, so configuring glibc |
| 6041 |
# with a fresh cross-compiler works. |
| 6042 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 6043 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 6044 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6045 |
/* end confdefs.h. */ |
| 6046 |
#include <limits.h> |
| 6047 |
Syntax error |
| 6048 |
_ACEOF |
| 6049 |
if ac_fn_c_try_cpp "$LINENO" |
| 6050 |
then : |
| 6051 |
|
| 6052 |
else case e in #( |
| 6053 |
e) # Broken: fails on valid input. |
| 6054 |
continue ;; |
| 6055 |
esac |
| 6056 |
fi |
| 6057 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 6058 |
|
| 6059 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 6060 |
# can be detected and how. |
| 6061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6062 |
/* end confdefs.h. */ |
| 6063 |
#include <ac_nonexistent.h> |
| 6064 |
_ACEOF |
| 6065 |
if ac_fn_c_try_cpp "$LINENO" |
| 6066 |
then : |
| 6067 |
# Broken: success on invalid input. |
| 6068 |
continue |
| 6069 |
else case e in #( |
| 6070 |
e) # Passes both tests. |
| 6071 |
ac_preproc_ok=: |
| 6072 |
break ;; |
| 6073 |
esac |
| 6074 |
fi |
| 6075 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 6076 |
|
| 6077 |
done |
| 6078 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 6079 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 6080 |
if $ac_preproc_ok |
| 6081 |
then : |
| 6082 |
|
| 6083 |
else case e in #( |
| 6084 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 6085 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 6086 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 6087 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 6088 |
esac |
| 6089 |
fi |
| 6090 |
|
| 6091 |
ac_ext=c |
| 6092 |
ac_cpp='$CPP $CPPFLAGS' |
| 6093 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6094 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6095 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6096 |
|
| 6097 |
|
| 6098 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdio.h" >&5 |
| 6099 |
printf %s "checking for presence of stdio.h... " >&6; } |
| 6100 |
if test ${mhd_cv_header_stdio_h_present+y} |
| 6101 |
then : |
| 6102 |
printf %s "(cached) " >&6 |
| 6103 |
else case e in #( |
| 6104 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6105 |
#include <stdio.h> |
| 6106 |
_ACEOF |
| 6107 |
if ac_fn_c_try_cpp "$LINENO" |
| 6108 |
then : |
| 6109 |
mhd_cv_header_stdio_h_present="yes" |
| 6110 |
else case e in #( |
| 6111 |
e) mhd_cv_header_stdio_h_present="no" |
| 6112 |
;; |
| 6113 |
esac |
| 6114 |
fi |
| 6115 |
rm -f conftest.err conftest.i |
| 6116 |
rm -f conftest.$ac_ext |
| 6117 |
;; |
| 6118 |
esac |
| 6119 |
fi |
| 6120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdio_h_present" >&5 |
| 6121 |
printf "%s\n" "$mhd_cv_header_stdio_h_present" >&6; } |
| 6122 |
|
| 6123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of wchar.h" >&5 |
| 6124 |
printf %s "checking for presence of wchar.h... " >&6; } |
| 6125 |
if test ${mhd_cv_header_wchar_h_present+y} |
| 6126 |
then : |
| 6127 |
printf %s "(cached) " >&6 |
| 6128 |
else case e in #( |
| 6129 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6130 |
#include <wchar.h> |
| 6131 |
_ACEOF |
| 6132 |
if ac_fn_c_try_cpp "$LINENO" |
| 6133 |
then : |
| 6134 |
mhd_cv_header_wchar_h_present="yes" |
| 6135 |
else case e in #( |
| 6136 |
e) mhd_cv_header_wchar_h_present="no" |
| 6137 |
;; |
| 6138 |
esac |
| 6139 |
fi |
| 6140 |
rm -f conftest.err conftest.i |
| 6141 |
rm -f conftest.$ac_ext |
| 6142 |
;; |
| 6143 |
esac |
| 6144 |
fi |
| 6145 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_wchar_h_present" >&5 |
| 6146 |
printf "%s\n" "$mhd_cv_header_wchar_h_present" >&6; } |
| 6147 |
|
| 6148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdlib.h" >&5 |
| 6149 |
printf %s "checking for presence of stdlib.h... " >&6; } |
| 6150 |
if test ${mhd_cv_header_stdlib_h_present+y} |
| 6151 |
then : |
| 6152 |
printf %s "(cached) " >&6 |
| 6153 |
else case e in #( |
| 6154 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6155 |
#include <stdlib.h> |
| 6156 |
_ACEOF |
| 6157 |
if ac_fn_c_try_cpp "$LINENO" |
| 6158 |
then : |
| 6159 |
mhd_cv_header_stdlib_h_present="yes" |
| 6160 |
else case e in #( |
| 6161 |
e) mhd_cv_header_stdlib_h_present="no" |
| 6162 |
;; |
| 6163 |
esac |
| 6164 |
fi |
| 6165 |
rm -f conftest.err conftest.i |
| 6166 |
rm -f conftest.$ac_ext |
| 6167 |
;; |
| 6168 |
esac |
| 6169 |
fi |
| 6170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdlib_h_present" >&5 |
| 6171 |
printf "%s\n" "$mhd_cv_header_stdlib_h_present" >&6; } |
| 6172 |
|
| 6173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of string.h" >&5 |
| 6174 |
printf %s "checking for presence of string.h... " >&6; } |
| 6175 |
if test ${mhd_cv_header_string_h_present+y} |
| 6176 |
then : |
| 6177 |
printf %s "(cached) " >&6 |
| 6178 |
else case e in #( |
| 6179 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6180 |
#include <string.h> |
| 6181 |
_ACEOF |
| 6182 |
if ac_fn_c_try_cpp "$LINENO" |
| 6183 |
then : |
| 6184 |
mhd_cv_header_string_h_present="yes" |
| 6185 |
else case e in #( |
| 6186 |
e) mhd_cv_header_string_h_present="no" |
| 6187 |
;; |
| 6188 |
esac |
| 6189 |
fi |
| 6190 |
rm -f conftest.err conftest.i |
| 6191 |
rm -f conftest.$ac_ext |
| 6192 |
;; |
| 6193 |
esac |
| 6194 |
fi |
| 6195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_string_h_present" >&5 |
| 6196 |
printf "%s\n" "$mhd_cv_header_string_h_present" >&6; } |
| 6197 |
|
| 6198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of strings.h" >&5 |
| 6199 |
printf %s "checking for presence of strings.h... " >&6; } |
| 6200 |
if test ${mhd_cv_header_strings_h_present+y} |
| 6201 |
then : |
| 6202 |
printf %s "(cached) " >&6 |
| 6203 |
else case e in #( |
| 6204 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6205 |
#include <strings.h> |
| 6206 |
_ACEOF |
| 6207 |
if ac_fn_c_try_cpp "$LINENO" |
| 6208 |
then : |
| 6209 |
mhd_cv_header_strings_h_present="yes" |
| 6210 |
else case e in #( |
| 6211 |
e) mhd_cv_header_strings_h_present="no" |
| 6212 |
;; |
| 6213 |
esac |
| 6214 |
fi |
| 6215 |
rm -f conftest.err conftest.i |
| 6216 |
rm -f conftest.$ac_ext |
| 6217 |
;; |
| 6218 |
esac |
| 6219 |
fi |
| 6220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_strings_h_present" >&5 |
| 6221 |
printf "%s\n" "$mhd_cv_header_strings_h_present" >&6; } |
| 6222 |
|
| 6223 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of stdint.h" >&5 |
| 6224 |
printf %s "checking for presence of stdint.h... " >&6; } |
| 6225 |
if test ${mhd_cv_header_stdint_h_present+y} |
| 6226 |
then : |
| 6227 |
printf %s "(cached) " >&6 |
| 6228 |
else case e in #( |
| 6229 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6230 |
#include <stdint.h> |
| 6231 |
_ACEOF |
| 6232 |
if ac_fn_c_try_cpp "$LINENO" |
| 6233 |
then : |
| 6234 |
mhd_cv_header_stdint_h_present="yes" |
| 6235 |
else case e in #( |
| 6236 |
e) mhd_cv_header_stdint_h_present="no" |
| 6237 |
;; |
| 6238 |
esac |
| 6239 |
fi |
| 6240 |
rm -f conftest.err conftest.i |
| 6241 |
rm -f conftest.$ac_ext |
| 6242 |
;; |
| 6243 |
esac |
| 6244 |
fi |
| 6245 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_stdint_h_present" >&5 |
| 6246 |
printf "%s\n" "$mhd_cv_header_stdint_h_present" >&6; } |
| 6247 |
|
| 6248 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of fcntl.h" >&5 |
| 6249 |
printf %s "checking for presence of fcntl.h... " >&6; } |
| 6250 |
if test ${mhd_cv_header_fcntl_h_present+y} |
| 6251 |
then : |
| 6252 |
printf %s "(cached) " >&6 |
| 6253 |
else case e in #( |
| 6254 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6255 |
#include <fcntl.h> |
| 6256 |
_ACEOF |
| 6257 |
if ac_fn_c_try_cpp "$LINENO" |
| 6258 |
then : |
| 6259 |
mhd_cv_header_fcntl_h_present="yes" |
| 6260 |
else case e in #( |
| 6261 |
e) mhd_cv_header_fcntl_h_present="no" |
| 6262 |
;; |
| 6263 |
esac |
| 6264 |
fi |
| 6265 |
rm -f conftest.err conftest.i |
| 6266 |
rm -f conftest.$ac_ext |
| 6267 |
;; |
| 6268 |
esac |
| 6269 |
fi |
| 6270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_fcntl_h_present" >&5 |
| 6271 |
printf "%s\n" "$mhd_cv_header_fcntl_h_present" >&6; } |
| 6272 |
|
| 6273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of sys/types.h" >&5 |
| 6274 |
printf %s "checking for presence of sys/types.h... " >&6; } |
| 6275 |
if test ${mhd_cv_header_sys_types_h_present+y} |
| 6276 |
then : |
| 6277 |
printf %s "(cached) " >&6 |
| 6278 |
else case e in #( |
| 6279 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6280 |
#include <sys/types.h> |
| 6281 |
_ACEOF |
| 6282 |
if ac_fn_c_try_cpp "$LINENO" |
| 6283 |
then : |
| 6284 |
mhd_cv_header_sys_types_h_present="yes" |
| 6285 |
else case e in #( |
| 6286 |
e) mhd_cv_header_sys_types_h_present="no" |
| 6287 |
;; |
| 6288 |
esac |
| 6289 |
fi |
| 6290 |
rm -f conftest.err conftest.i |
| 6291 |
rm -f conftest.$ac_ext |
| 6292 |
;; |
| 6293 |
esac |
| 6294 |
fi |
| 6295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_sys_types_h_present" >&5 |
| 6296 |
printf "%s\n" "$mhd_cv_header_sys_types_h_present" >&6; } |
| 6297 |
|
| 6298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of time.h" >&5 |
| 6299 |
printf %s "checking for presence of time.h... " >&6; } |
| 6300 |
if test ${mhd_cv_header_time_h_present+y} |
| 6301 |
then : |
| 6302 |
printf %s "(cached) " >&6 |
| 6303 |
else case e in #( |
| 6304 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6305 |
#include <time.h> |
| 6306 |
_ACEOF |
| 6307 |
if ac_fn_c_try_cpp "$LINENO" |
| 6308 |
then : |
| 6309 |
mhd_cv_header_time_h_present="yes" |
| 6310 |
else case e in #( |
| 6311 |
e) mhd_cv_header_time_h_present="no" |
| 6312 |
;; |
| 6313 |
esac |
| 6314 |
fi |
| 6315 |
rm -f conftest.err conftest.i |
| 6316 |
rm -f conftest.$ac_ext |
| 6317 |
;; |
| 6318 |
esac |
| 6319 |
fi |
| 6320 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_time_h_present" >&5 |
| 6321 |
printf "%s\n" "$mhd_cv_header_time_h_present" >&6; } |
| 6322 |
|
| 6323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for presence of unistd.h" >&5 |
| 6324 |
printf %s "checking for presence of unistd.h... " >&6; } |
| 6325 |
if test ${mhd_cv_header_unistd_h_present+y} |
| 6326 |
then : |
| 6327 |
printf %s "(cached) " >&6 |
| 6328 |
else case e in #( |
| 6329 |
e) cat > conftest.$ac_ext <<_ACEOF |
| 6330 |
#include <unistd.h> |
| 6331 |
_ACEOF |
| 6332 |
if ac_fn_c_try_cpp "$LINENO" |
| 6333 |
then : |
| 6334 |
mhd_cv_header_unistd_h_present="yes" |
| 6335 |
else case e in #( |
| 6336 |
e) mhd_cv_header_unistd_h_present="no" |
| 6337 |
;; |
| 6338 |
esac |
| 6339 |
fi |
| 6340 |
rm -f conftest.err conftest.i |
| 6341 |
rm -f conftest.$ac_ext |
| 6342 |
;; |
| 6343 |
esac |
| 6344 |
fi |
| 6345 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_header_unistd_h_present" >&5 |
| 6346 |
printf "%s\n" "$mhd_cv_header_unistd_h_present" >&6; } |
| 6347 |
|
| 6348 |
|
| 6349 |
|
| 6350 |
if test -z "$mhd_basic_headers_includes" |
| 6351 |
then : |
| 6352 |
if test "x$mhd_cv_header_stdio_h_present" = x"yes" |
| 6353 |
then : |
| 6354 |
mhd_basic_headers_includes="\ |
| 6355 |
#include <stdio.h> |
| 6356 |
" |
| 6357 |
else case e in #( |
| 6358 |
e) mhd_basic_headers_includes="" |
| 6359 |
;; |
| 6360 |
esac |
| 6361 |
fi |
| 6362 |
if test "x$mhd_cv_header_sys_types_h_present" = x"yes" |
| 6363 |
then : |
| 6364 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6365 |
#include <sys/types.h> |
| 6366 |
" |
| 6367 |
|
| 6368 |
fi |
| 6369 |
if test "x$mhd_cv_header_wchar_h_present" = x"yes" |
| 6370 |
then : |
| 6371 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6372 |
#include <wchar.h> |
| 6373 |
" |
| 6374 |
|
| 6375 |
fi |
| 6376 |
if test "x$mhd_cv_header_stdlib_h_present" = x"yes" |
| 6377 |
then : |
| 6378 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6379 |
#include <stdlib.h> |
| 6380 |
" |
| 6381 |
|
| 6382 |
fi |
| 6383 |
if test "x$mhd_cv_header_string_h_present" = x"yes" |
| 6384 |
then : |
| 6385 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6386 |
#include <string.h> |
| 6387 |
" |
| 6388 |
|
| 6389 |
fi |
| 6390 |
if test "x$mhd_cv_header_strings_h_present" = x"yes" |
| 6391 |
then : |
| 6392 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6393 |
#include <strings.h> |
| 6394 |
" |
| 6395 |
|
| 6396 |
fi |
| 6397 |
if test "x$mhd_cv_header_stdint_h_present" = x"yes" |
| 6398 |
then : |
| 6399 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6400 |
#include <stdint.h> |
| 6401 |
" |
| 6402 |
|
| 6403 |
fi |
| 6404 |
if test "x$mhd_cv_header_fcntl_h_present" = x"yes" |
| 6405 |
then : |
| 6406 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6407 |
#include <fcntl.h> |
| 6408 |
" |
| 6409 |
|
| 6410 |
fi |
| 6411 |
if test "x$mhd_cv_header_time_h_present" = x"yes" |
| 6412 |
then : |
| 6413 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6414 |
#include <time.h> |
| 6415 |
" |
| 6416 |
|
| 6417 |
fi |
| 6418 |
if test "x$mhd_cv_header_unistd_h_present" = x"yes" |
| 6419 |
then : |
| 6420 |
mhd_basic_headers_includes="${mhd_basic_headers_includes}\ |
| 6421 |
#include <unistd.h> |
| 6422 |
" |
| 6423 |
|
| 6424 |
fi |
| 6425 |
|
| 6426 |
fi |
| 6427 |
|
| 6428 |
mhd_mse_sys_ext_defines="" |
| 6429 |
mhd_mse_sys_ext_flags="" |
| 6430 |
|
| 6431 |
|
| 6432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _GNU_SOURCE is already defined" >&5 |
| 6433 |
printf %s "checking whether _GNU_SOURCE is already defined... " >&6; } |
| 6434 |
if test ${mhd_cv_macro__gnu_source_defined+y} |
| 6435 |
then : |
| 6436 |
printf %s "(cached) " >&6 |
| 6437 |
else case e in #( |
| 6438 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6439 |
/* end confdefs.h. */ |
| 6440 |
|
| 6441 |
${mhd_mse_sys_ext_defines} |
| 6442 |
#ifndef _GNU_SOURCE |
| 6443 |
#error _GNU_SOURCE is not defined |
| 6444 |
choke me now; |
| 6445 |
#endif |
| 6446 |
|
| 6447 |
int |
| 6448 |
main (void) |
| 6449 |
{ |
| 6450 |
|
| 6451 |
; |
| 6452 |
return 0; |
| 6453 |
} |
| 6454 |
|
| 6455 |
_ACEOF |
| 6456 |
if ac_fn_c_try_compile "$LINENO" |
| 6457 |
then : |
| 6458 |
mhd_cv_macro__gnu_source_defined="yes" |
| 6459 |
else case e in #( |
| 6460 |
e) mhd_cv_macro__gnu_source_defined="no" |
| 6461 |
|
| 6462 |
;; |
| 6463 |
esac |
| 6464 |
fi |
| 6465 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6466 |
|
| 6467 |
;; |
| 6468 |
esac |
| 6469 |
fi |
| 6470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__gnu_source_defined" >&5 |
| 6471 |
printf "%s\n" "$mhd_cv_macro__gnu_source_defined" >&6; } |
| 6472 |
if test "x$mhd_cv_macro__gnu_source_defined" = x"yes" |
| 6473 |
then : |
| 6474 |
mhd_cv_macro_add__gnu_source="no" |
| 6475 |
else case e in #( |
| 6476 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _GNU_SOURCE" >&5 |
| 6477 |
printf %s "checking whether headers accept _GNU_SOURCE... " >&6; } |
| 6478 |
if test ${mhd_cv_define__gnu_source_accepted+y} |
| 6479 |
then : |
| 6480 |
printf %s "(cached) " >&6 |
| 6481 |
else case e in #( |
| 6482 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6483 |
/* end confdefs.h. */ |
| 6484 |
|
| 6485 |
${mhd_mse_sys_ext_defines} |
| 6486 |
#define _GNU_SOURCE 1 |
| 6487 |
/* Start of MHD basic test includes */ |
| 6488 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 6489 |
|
| 6490 |
|
| 6491 |
int |
| 6492 |
main (void) |
| 6493 |
{ |
| 6494 |
int i = 1; i++; if(i) return i |
| 6495 |
; |
| 6496 |
return 0; |
| 6497 |
} |
| 6498 |
|
| 6499 |
_ACEOF |
| 6500 |
if ac_fn_c_try_compile "$LINENO" |
| 6501 |
then : |
| 6502 |
mhd_cv_define__gnu_source_accepted="yes" |
| 6503 |
else case e in #( |
| 6504 |
e) mhd_cv_define__gnu_source_accepted="no" |
| 6505 |
;; |
| 6506 |
esac |
| 6507 |
fi |
| 6508 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6509 |
|
| 6510 |
;; |
| 6511 |
esac |
| 6512 |
fi |
| 6513 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__gnu_source_accepted" >&5 |
| 6514 |
printf "%s\n" "$mhd_cv_define__gnu_source_accepted" >&6; } |
| 6515 |
if test "x$mhd_cv_define__gnu_source_accepted" = x"yes" |
| 6516 |
then : |
| 6517 |
mhd_cv_macro_add__gnu_source="yes" |
| 6518 |
else case e in #( |
| 6519 |
e) mhd_cv_macro_add__gnu_source="no" |
| 6520 |
;; |
| 6521 |
esac |
| 6522 |
fi |
| 6523 |
;; |
| 6524 |
esac |
| 6525 |
fi |
| 6526 |
|
| 6527 |
if test "x$mhd_cv_macro_add__gnu_source" = x"yes" |
| 6528 |
then : |
| 6529 |
|
| 6530 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _GNU_SOURCE 1 |
| 6531 |
" |
| 6532 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 6533 |
then : |
| 6534 |
mhd_mse_sys_ext_flags="_GNU_SOURCE" |
| 6535 |
else case e in #( |
| 6536 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _GNU_SOURCE" |
| 6537 |
;; |
| 6538 |
esac |
| 6539 |
fi |
| 6540 |
|
| 6541 |
|
| 6542 |
fi |
| 6543 |
|
| 6544 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try __BSD_VISIBLE macro" >&5 |
| 6545 |
printf %s "checking whether to try __BSD_VISIBLE macro... " >&6; } |
| 6546 |
if test ${mhd_cv_macro_try___bsd_visible+y} |
| 6547 |
then : |
| 6548 |
printf %s "(cached) " >&6 |
| 6549 |
else case e in #( |
| 6550 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6551 |
/* end confdefs.h. */ |
| 6552 |
|
| 6553 |
/* Warning: test with inverted logic! */ |
| 6554 |
#ifdef __FreeBSD__ |
| 6555 |
#error Target FreeBSD |
| 6556 |
choke me now; |
| 6557 |
#endif /* __FreeBSD__ */ |
| 6558 |
|
| 6559 |
#ifdef __ANDROID__ |
| 6560 |
#include <android/api-level.h> |
| 6561 |
#ifndef __ANDROID_API_O__ |
| 6562 |
#error Target is Android NDK before R14 |
| 6563 |
choke me now; |
| 6564 |
#endif /* ! __ANDROID_API_O__ */ |
| 6565 |
#endif /* __ANDROID__ */ |
| 6566 |
|
| 6567 |
int |
| 6568 |
main (void) |
| 6569 |
{ |
| 6570 |
|
| 6571 |
; |
| 6572 |
return 0; |
| 6573 |
} |
| 6574 |
_ACEOF |
| 6575 |
if ac_fn_c_try_compile "$LINENO" |
| 6576 |
then : |
| 6577 |
mhd_cv_macro_try___bsd_visible="no" |
| 6578 |
else case e in #( |
| 6579 |
e) mhd_cv_macro_try___bsd_visible="yes" |
| 6580 |
;; |
| 6581 |
esac |
| 6582 |
fi |
| 6583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6584 |
;; |
| 6585 |
esac |
| 6586 |
fi |
| 6587 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_try___bsd_visible" >&5 |
| 6588 |
printf "%s\n" "$mhd_cv_macro_try___bsd_visible" >&6; } |
| 6589 |
if test "x$mhd_cv_macro_try___bsd_visible" = x"yes" |
| 6590 |
then : |
| 6591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __BSD_VISIBLE is already defined" >&5 |
| 6592 |
printf %s "checking whether __BSD_VISIBLE is already defined... " >&6; } |
| 6593 |
if test ${mhd_cv_macro___bsd_visible_defined+y} |
| 6594 |
then : |
| 6595 |
printf %s "(cached) " >&6 |
| 6596 |
else case e in #( |
| 6597 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6598 |
/* end confdefs.h. */ |
| 6599 |
|
| 6600 |
${mhd_mse_sys_ext_defines} |
| 6601 |
/* Warning: test with inverted logic! */ |
| 6602 |
#ifdef __BSD_VISIBLE |
| 6603 |
#error __BSD_VISIBLE is defined |
| 6604 |
choke me now; |
| 6605 |
#endif |
| 6606 |
|
| 6607 |
int |
| 6608 |
main (void) |
| 6609 |
{ |
| 6610 |
|
| 6611 |
; |
| 6612 |
return 0; |
| 6613 |
} |
| 6614 |
|
| 6615 |
_ACEOF |
| 6616 |
if ac_fn_c_try_compile "$LINENO" |
| 6617 |
then : |
| 6618 |
mhd_cv_macro___bsd_visible_defined="no" |
| 6619 |
else case e in #( |
| 6620 |
e) mhd_cv_macro___bsd_visible_defined="yes" |
| 6621 |
;; |
| 6622 |
esac |
| 6623 |
fi |
| 6624 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6625 |
;; |
| 6626 |
esac |
| 6627 |
fi |
| 6628 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___bsd_visible_defined" >&5 |
| 6629 |
printf "%s\n" "$mhd_cv_macro___bsd_visible_defined" >&6; } |
| 6630 |
if test "x$mhd_cv_macro___bsd_visible_defined" = x"yes" |
| 6631 |
then : |
| 6632 |
: |
| 6633 |
else case e in #( |
| 6634 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept __BSD_VISIBLE" >&5 |
| 6635 |
printf %s "checking whether headers accept __BSD_VISIBLE... " >&6; } |
| 6636 |
if test ${mhd_cv_define___bsd_visible_accepted+y} |
| 6637 |
then : |
| 6638 |
printf %s "(cached) " >&6 |
| 6639 |
else case e in #( |
| 6640 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6641 |
/* end confdefs.h. */ |
| 6642 |
|
| 6643 |
${mhd_mse_sys_ext_defines} |
| 6644 |
#define __BSD_VISIBLE 1 |
| 6645 |
/* Start of MHD basic test includes */ |
| 6646 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 6647 |
|
| 6648 |
|
| 6649 |
int |
| 6650 |
main (void) |
| 6651 |
{ |
| 6652 |
int i = 1; i++; if(i) return i |
| 6653 |
; |
| 6654 |
return 0; |
| 6655 |
} |
| 6656 |
|
| 6657 |
_ACEOF |
| 6658 |
if ac_fn_c_try_compile "$LINENO" |
| 6659 |
then : |
| 6660 |
mhd_cv_define___bsd_visible_accepted="yes" |
| 6661 |
else case e in #( |
| 6662 |
e) mhd_cv_define___bsd_visible_accepted="no" |
| 6663 |
;; |
| 6664 |
esac |
| 6665 |
fi |
| 6666 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6667 |
|
| 6668 |
;; |
| 6669 |
esac |
| 6670 |
fi |
| 6671 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define___bsd_visible_accepted" >&5 |
| 6672 |
printf "%s\n" "$mhd_cv_define___bsd_visible_accepted" >&6; } |
| 6673 |
if test "x$mhd_cv_define___bsd_visible_accepted" = x"yes" |
| 6674 |
then : |
| 6675 |
|
| 6676 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define __BSD_VISIBLE 1 |
| 6677 |
" |
| 6678 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 6679 |
then : |
| 6680 |
mhd_mse_sys_ext_flags="__BSD_VISIBLE" |
| 6681 |
else case e in #( |
| 6682 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} __BSD_VISIBLE" |
| 6683 |
;; |
| 6684 |
esac |
| 6685 |
fi |
| 6686 |
|
| 6687 |
|
| 6688 |
fi |
| 6689 |
;; |
| 6690 |
esac |
| 6691 |
fi |
| 6692 |
|
| 6693 |
fi |
| 6694 |
|
| 6695 |
|
| 6696 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _DARWIN_C_SOURCE macro" >&5 |
| 6697 |
printf %s "checking whether to try _DARWIN_C_SOURCE macro... " >&6; } |
| 6698 |
if test ${mhd_cv_macro___apple___defined+y} |
| 6699 |
then : |
| 6700 |
printf %s "(cached) " >&6 |
| 6701 |
else case e in #( |
| 6702 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6703 |
/* end confdefs.h. */ |
| 6704 |
|
| 6705 |
${mhd_mse_sys_ext_defines} |
| 6706 |
#ifndef __APPLE__ |
| 6707 |
#error __APPLE__ is not defined |
| 6708 |
choke me now; |
| 6709 |
#endif |
| 6710 |
|
| 6711 |
int |
| 6712 |
main (void) |
| 6713 |
{ |
| 6714 |
|
| 6715 |
; |
| 6716 |
return 0; |
| 6717 |
} |
| 6718 |
|
| 6719 |
_ACEOF |
| 6720 |
if ac_fn_c_try_compile "$LINENO" |
| 6721 |
then : |
| 6722 |
mhd_cv_macro___apple___defined="yes" |
| 6723 |
else case e in #( |
| 6724 |
e) mhd_cv_macro___apple___defined="no" |
| 6725 |
|
| 6726 |
;; |
| 6727 |
esac |
| 6728 |
fi |
| 6729 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6730 |
|
| 6731 |
;; |
| 6732 |
esac |
| 6733 |
fi |
| 6734 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___apple___defined" >&5 |
| 6735 |
printf "%s\n" "$mhd_cv_macro___apple___defined" >&6; } |
| 6736 |
if test "x$mhd_cv_macro___apple___defined" = x"yes" |
| 6737 |
then : |
| 6738 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _DARWIN_C_SOURCE is already defined" >&5 |
| 6739 |
printf %s "checking whether _DARWIN_C_SOURCE is already defined... " >&6; } |
| 6740 |
if test ${mhd_cv_macro__darwin_c_source_defined+y} |
| 6741 |
then : |
| 6742 |
printf %s "(cached) " >&6 |
| 6743 |
else case e in #( |
| 6744 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6745 |
/* end confdefs.h. */ |
| 6746 |
|
| 6747 |
${mhd_mse_sys_ext_defines} |
| 6748 |
#ifndef _DARWIN_C_SOURCE |
| 6749 |
#error _DARWIN_C_SOURCE is not defined |
| 6750 |
choke me now; |
| 6751 |
#endif |
| 6752 |
|
| 6753 |
int |
| 6754 |
main (void) |
| 6755 |
{ |
| 6756 |
|
| 6757 |
; |
| 6758 |
return 0; |
| 6759 |
} |
| 6760 |
|
| 6761 |
_ACEOF |
| 6762 |
if ac_fn_c_try_compile "$LINENO" |
| 6763 |
then : |
| 6764 |
mhd_cv_macro__darwin_c_source_defined="yes" |
| 6765 |
else case e in #( |
| 6766 |
e) mhd_cv_macro__darwin_c_source_defined="no" |
| 6767 |
|
| 6768 |
;; |
| 6769 |
esac |
| 6770 |
fi |
| 6771 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6772 |
|
| 6773 |
;; |
| 6774 |
esac |
| 6775 |
fi |
| 6776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__darwin_c_source_defined" >&5 |
| 6777 |
printf "%s\n" "$mhd_cv_macro__darwin_c_source_defined" >&6; } |
| 6778 |
if test "x$mhd_cv_macro__darwin_c_source_defined" = x"yes" |
| 6779 |
then : |
| 6780 |
|
| 6781 |
else case e in #( |
| 6782 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _DARWIN_C_SOURCE" >&5 |
| 6783 |
printf %s "checking whether headers accept _DARWIN_C_SOURCE... " >&6; } |
| 6784 |
if test ${mhd_cv_define__darwin_c_source_accepted+y} |
| 6785 |
then : |
| 6786 |
printf %s "(cached) " >&6 |
| 6787 |
else case e in #( |
| 6788 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6789 |
/* end confdefs.h. */ |
| 6790 |
|
| 6791 |
${mhd_mse_sys_ext_defines} |
| 6792 |
#define _DARWIN_C_SOURCE 1 |
| 6793 |
/* Start of MHD basic test includes */ |
| 6794 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 6795 |
|
| 6796 |
|
| 6797 |
int |
| 6798 |
main (void) |
| 6799 |
{ |
| 6800 |
int i = 1; i++; if(i) return i |
| 6801 |
; |
| 6802 |
return 0; |
| 6803 |
} |
| 6804 |
|
| 6805 |
_ACEOF |
| 6806 |
if ac_fn_c_try_compile "$LINENO" |
| 6807 |
then : |
| 6808 |
mhd_cv_define__darwin_c_source_accepted="yes" |
| 6809 |
else case e in #( |
| 6810 |
e) mhd_cv_define__darwin_c_source_accepted="no" |
| 6811 |
;; |
| 6812 |
esac |
| 6813 |
fi |
| 6814 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6815 |
|
| 6816 |
;; |
| 6817 |
esac |
| 6818 |
fi |
| 6819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__darwin_c_source_accepted" >&5 |
| 6820 |
printf "%s\n" "$mhd_cv_define__darwin_c_source_accepted" >&6; } |
| 6821 |
if test "x$mhd_cv_define__darwin_c_source_accepted" = x"yes" |
| 6822 |
then : |
| 6823 |
|
| 6824 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _DARWIN_C_SOURCE 1 |
| 6825 |
" |
| 6826 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 6827 |
then : |
| 6828 |
mhd_mse_sys_ext_flags="_DARWIN_C_SOURCE" |
| 6829 |
else case e in #( |
| 6830 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _DARWIN_C_SOURCE" |
| 6831 |
;; |
| 6832 |
esac |
| 6833 |
fi |
| 6834 |
|
| 6835 |
|
| 6836 |
fi |
| 6837 |
;; |
| 6838 |
esac |
| 6839 |
fi |
| 6840 |
|
| 6841 |
fi |
| 6842 |
|
| 6843 |
|
| 6844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try __EXTENSIONS__ macro" >&5 |
| 6845 |
printf %s "checking whether to try __EXTENSIONS__ macro... " >&6; } |
| 6846 |
if test ${mhd_cv_macro___sun_defined+y} |
| 6847 |
then : |
| 6848 |
printf %s "(cached) " >&6 |
| 6849 |
else case e in #( |
| 6850 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6851 |
/* end confdefs.h. */ |
| 6852 |
|
| 6853 |
${mhd_mse_sys_ext_defines} |
| 6854 |
#ifndef __sun |
| 6855 |
#error __sun is not defined |
| 6856 |
choke me now; |
| 6857 |
#endif |
| 6858 |
|
| 6859 |
int |
| 6860 |
main (void) |
| 6861 |
{ |
| 6862 |
|
| 6863 |
; |
| 6864 |
return 0; |
| 6865 |
} |
| 6866 |
|
| 6867 |
_ACEOF |
| 6868 |
if ac_fn_c_try_compile "$LINENO" |
| 6869 |
then : |
| 6870 |
mhd_cv_macro___sun_defined="yes" |
| 6871 |
else case e in #( |
| 6872 |
e) mhd_cv_macro___sun_defined="no" |
| 6873 |
|
| 6874 |
;; |
| 6875 |
esac |
| 6876 |
fi |
| 6877 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6878 |
|
| 6879 |
;; |
| 6880 |
esac |
| 6881 |
fi |
| 6882 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___sun_defined" >&5 |
| 6883 |
printf "%s\n" "$mhd_cv_macro___sun_defined" >&6; } |
| 6884 |
if test "x$mhd_cv_macro___sun_defined" = x"yes" |
| 6885 |
then : |
| 6886 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __EXTENSIONS__ is already defined" >&5 |
| 6887 |
printf %s "checking whether __EXTENSIONS__ is already defined... " >&6; } |
| 6888 |
if test ${mhd_cv_macro___extensions___defined+y} |
| 6889 |
then : |
| 6890 |
printf %s "(cached) " >&6 |
| 6891 |
else case e in #( |
| 6892 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6893 |
/* end confdefs.h. */ |
| 6894 |
|
| 6895 |
${mhd_mse_sys_ext_defines} |
| 6896 |
#ifndef __EXTENSIONS__ |
| 6897 |
#error __EXTENSIONS__ is not defined |
| 6898 |
choke me now; |
| 6899 |
#endif |
| 6900 |
|
| 6901 |
int |
| 6902 |
main (void) |
| 6903 |
{ |
| 6904 |
|
| 6905 |
; |
| 6906 |
return 0; |
| 6907 |
} |
| 6908 |
|
| 6909 |
_ACEOF |
| 6910 |
if ac_fn_c_try_compile "$LINENO" |
| 6911 |
then : |
| 6912 |
mhd_cv_macro___extensions___defined="yes" |
| 6913 |
else case e in #( |
| 6914 |
e) mhd_cv_macro___extensions___defined="no" |
| 6915 |
|
| 6916 |
;; |
| 6917 |
esac |
| 6918 |
fi |
| 6919 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6920 |
|
| 6921 |
;; |
| 6922 |
esac |
| 6923 |
fi |
| 6924 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___extensions___defined" >&5 |
| 6925 |
printf "%s\n" "$mhd_cv_macro___extensions___defined" >&6; } |
| 6926 |
if test "x$mhd_cv_macro___extensions___defined" = x"yes" |
| 6927 |
then : |
| 6928 |
|
| 6929 |
else case e in #( |
| 6930 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept __EXTENSIONS__" >&5 |
| 6931 |
printf %s "checking whether headers accept __EXTENSIONS__... " >&6; } |
| 6932 |
if test ${mhd_cv_define___extensions___accepted+y} |
| 6933 |
then : |
| 6934 |
printf %s "(cached) " >&6 |
| 6935 |
else case e in #( |
| 6936 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6937 |
/* end confdefs.h. */ |
| 6938 |
|
| 6939 |
${mhd_mse_sys_ext_defines} |
| 6940 |
#define __EXTENSIONS__ 1 |
| 6941 |
/* Start of MHD basic test includes */ |
| 6942 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 6943 |
|
| 6944 |
|
| 6945 |
int |
| 6946 |
main (void) |
| 6947 |
{ |
| 6948 |
int i = 1; i++; if(i) return i |
| 6949 |
; |
| 6950 |
return 0; |
| 6951 |
} |
| 6952 |
|
| 6953 |
_ACEOF |
| 6954 |
if ac_fn_c_try_compile "$LINENO" |
| 6955 |
then : |
| 6956 |
mhd_cv_define___extensions___accepted="yes" |
| 6957 |
else case e in #( |
| 6958 |
e) mhd_cv_define___extensions___accepted="no" |
| 6959 |
;; |
| 6960 |
esac |
| 6961 |
fi |
| 6962 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6963 |
|
| 6964 |
;; |
| 6965 |
esac |
| 6966 |
fi |
| 6967 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define___extensions___accepted" >&5 |
| 6968 |
printf "%s\n" "$mhd_cv_define___extensions___accepted" >&6; } |
| 6969 |
if test "x$mhd_cv_define___extensions___accepted" = x"yes" |
| 6970 |
then : |
| 6971 |
|
| 6972 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define __EXTENSIONS__ 1 |
| 6973 |
" |
| 6974 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 6975 |
then : |
| 6976 |
mhd_mse_sys_ext_flags="__EXTENSIONS__" |
| 6977 |
else case e in #( |
| 6978 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} __EXTENSIONS__" |
| 6979 |
;; |
| 6980 |
esac |
| 6981 |
fi |
| 6982 |
|
| 6983 |
|
| 6984 |
fi |
| 6985 |
;; |
| 6986 |
esac |
| 6987 |
fi |
| 6988 |
|
| 6989 |
fi |
| 6990 |
|
| 6991 |
|
| 6992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _NETBSD_SOURCE macro" >&5 |
| 6993 |
printf %s "checking whether to try _NETBSD_SOURCE macro... " >&6; } |
| 6994 |
if test ${mhd_cv_macro___netbsd___defined+y} |
| 6995 |
then : |
| 6996 |
printf %s "(cached) " >&6 |
| 6997 |
else case e in #( |
| 6998 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6999 |
/* end confdefs.h. */ |
| 7000 |
|
| 7001 |
${mhd_mse_sys_ext_defines} |
| 7002 |
#ifndef __NetBSD__ |
| 7003 |
#error __NetBSD__ is not defined |
| 7004 |
choke me now; |
| 7005 |
#endif |
| 7006 |
|
| 7007 |
int |
| 7008 |
main (void) |
| 7009 |
{ |
| 7010 |
|
| 7011 |
; |
| 7012 |
return 0; |
| 7013 |
} |
| 7014 |
|
| 7015 |
_ACEOF |
| 7016 |
if ac_fn_c_try_compile "$LINENO" |
| 7017 |
then : |
| 7018 |
mhd_cv_macro___netbsd___defined="yes" |
| 7019 |
else case e in #( |
| 7020 |
e) mhd_cv_macro___netbsd___defined="no" |
| 7021 |
|
| 7022 |
;; |
| 7023 |
esac |
| 7024 |
fi |
| 7025 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7026 |
|
| 7027 |
;; |
| 7028 |
esac |
| 7029 |
fi |
| 7030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___netbsd___defined" >&5 |
| 7031 |
printf "%s\n" "$mhd_cv_macro___netbsd___defined" >&6; } |
| 7032 |
if test "x$mhd_cv_macro___netbsd___defined" = x"yes" |
| 7033 |
then : |
| 7034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _NETBSD_SOURCE is already defined" >&5 |
| 7035 |
printf %s "checking whether _NETBSD_SOURCE is already defined... " >&6; } |
| 7036 |
if test ${mhd_cv_macro__netbsd_source_defined+y} |
| 7037 |
then : |
| 7038 |
printf %s "(cached) " >&6 |
| 7039 |
else case e in #( |
| 7040 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7041 |
/* end confdefs.h. */ |
| 7042 |
|
| 7043 |
${mhd_mse_sys_ext_defines} |
| 7044 |
#ifndef _NETBSD_SOURCE |
| 7045 |
#error _NETBSD_SOURCE is not defined |
| 7046 |
choke me now; |
| 7047 |
#endif |
| 7048 |
|
| 7049 |
int |
| 7050 |
main (void) |
| 7051 |
{ |
| 7052 |
|
| 7053 |
; |
| 7054 |
return 0; |
| 7055 |
} |
| 7056 |
|
| 7057 |
_ACEOF |
| 7058 |
if ac_fn_c_try_compile "$LINENO" |
| 7059 |
then : |
| 7060 |
mhd_cv_macro__netbsd_source_defined="yes" |
| 7061 |
else case e in #( |
| 7062 |
e) mhd_cv_macro__netbsd_source_defined="no" |
| 7063 |
|
| 7064 |
;; |
| 7065 |
esac |
| 7066 |
fi |
| 7067 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7068 |
|
| 7069 |
;; |
| 7070 |
esac |
| 7071 |
fi |
| 7072 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__netbsd_source_defined" >&5 |
| 7073 |
printf "%s\n" "$mhd_cv_macro__netbsd_source_defined" >&6; } |
| 7074 |
if test "x$mhd_cv_macro__netbsd_source_defined" = x"yes" |
| 7075 |
then : |
| 7076 |
|
| 7077 |
else case e in #( |
| 7078 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _NETBSD_SOURCE" >&5 |
| 7079 |
printf %s "checking whether headers accept _NETBSD_SOURCE... " >&6; } |
| 7080 |
if test ${mhd_cv_define__netbsd_source_accepted+y} |
| 7081 |
then : |
| 7082 |
printf %s "(cached) " >&6 |
| 7083 |
else case e in #( |
| 7084 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7085 |
/* end confdefs.h. */ |
| 7086 |
|
| 7087 |
${mhd_mse_sys_ext_defines} |
| 7088 |
#define _NETBSD_SOURCE 1 |
| 7089 |
/* Start of MHD basic test includes */ |
| 7090 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 7091 |
|
| 7092 |
|
| 7093 |
int |
| 7094 |
main (void) |
| 7095 |
{ |
| 7096 |
int i = 1; i++; if(i) return i |
| 7097 |
; |
| 7098 |
return 0; |
| 7099 |
} |
| 7100 |
|
| 7101 |
_ACEOF |
| 7102 |
if ac_fn_c_try_compile "$LINENO" |
| 7103 |
then : |
| 7104 |
mhd_cv_define__netbsd_source_accepted="yes" |
| 7105 |
else case e in #( |
| 7106 |
e) mhd_cv_define__netbsd_source_accepted="no" |
| 7107 |
;; |
| 7108 |
esac |
| 7109 |
fi |
| 7110 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7111 |
|
| 7112 |
;; |
| 7113 |
esac |
| 7114 |
fi |
| 7115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__netbsd_source_accepted" >&5 |
| 7116 |
printf "%s\n" "$mhd_cv_define__netbsd_source_accepted" >&6; } |
| 7117 |
if test "x$mhd_cv_define__netbsd_source_accepted" = x"yes" |
| 7118 |
then : |
| 7119 |
|
| 7120 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _NETBSD_SOURCE 1 |
| 7121 |
" |
| 7122 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 7123 |
then : |
| 7124 |
mhd_mse_sys_ext_flags="_NETBSD_SOURCE" |
| 7125 |
else case e in #( |
| 7126 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _NETBSD_SOURCE" |
| 7127 |
;; |
| 7128 |
esac |
| 7129 |
fi |
| 7130 |
|
| 7131 |
|
| 7132 |
fi |
| 7133 |
;; |
| 7134 |
esac |
| 7135 |
fi |
| 7136 |
|
| 7137 |
fi |
| 7138 |
|
| 7139 |
|
| 7140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _BSD_SOURCE macro" >&5 |
| 7141 |
printf %s "checking whether to try _BSD_SOURCE macro... " >&6; } |
| 7142 |
if test ${mhd_cv_macro___openbsd___defined+y} |
| 7143 |
then : |
| 7144 |
printf %s "(cached) " >&6 |
| 7145 |
else case e in #( |
| 7146 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7147 |
/* end confdefs.h. */ |
| 7148 |
|
| 7149 |
${mhd_mse_sys_ext_defines} |
| 7150 |
#ifndef __OpenBSD__ |
| 7151 |
#error __OpenBSD__ is not defined |
| 7152 |
choke me now; |
| 7153 |
#endif |
| 7154 |
|
| 7155 |
int |
| 7156 |
main (void) |
| 7157 |
{ |
| 7158 |
|
| 7159 |
; |
| 7160 |
return 0; |
| 7161 |
} |
| 7162 |
|
| 7163 |
_ACEOF |
| 7164 |
if ac_fn_c_try_compile "$LINENO" |
| 7165 |
then : |
| 7166 |
mhd_cv_macro___openbsd___defined="yes" |
| 7167 |
else case e in #( |
| 7168 |
e) mhd_cv_macro___openbsd___defined="no" |
| 7169 |
|
| 7170 |
;; |
| 7171 |
esac |
| 7172 |
fi |
| 7173 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7174 |
|
| 7175 |
;; |
| 7176 |
esac |
| 7177 |
fi |
| 7178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___openbsd___defined" >&5 |
| 7179 |
printf "%s\n" "$mhd_cv_macro___openbsd___defined" >&6; } |
| 7180 |
if test "x$mhd_cv_macro___openbsd___defined" = x"yes" |
| 7181 |
then : |
| 7182 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _BSD_SOURCE is already defined" >&5 |
| 7183 |
printf %s "checking whether _BSD_SOURCE is already defined... " >&6; } |
| 7184 |
if test ${mhd_cv_macro__bsd_source_defined+y} |
| 7185 |
then : |
| 7186 |
printf %s "(cached) " >&6 |
| 7187 |
else case e in #( |
| 7188 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7189 |
/* end confdefs.h. */ |
| 7190 |
|
| 7191 |
${mhd_mse_sys_ext_defines} |
| 7192 |
#ifndef _BSD_SOURCE |
| 7193 |
#error _BSD_SOURCE is not defined |
| 7194 |
choke me now; |
| 7195 |
#endif |
| 7196 |
|
| 7197 |
int |
| 7198 |
main (void) |
| 7199 |
{ |
| 7200 |
|
| 7201 |
; |
| 7202 |
return 0; |
| 7203 |
} |
| 7204 |
|
| 7205 |
_ACEOF |
| 7206 |
if ac_fn_c_try_compile "$LINENO" |
| 7207 |
then : |
| 7208 |
mhd_cv_macro__bsd_source_defined="yes" |
| 7209 |
else case e in #( |
| 7210 |
e) mhd_cv_macro__bsd_source_defined="no" |
| 7211 |
|
| 7212 |
;; |
| 7213 |
esac |
| 7214 |
fi |
| 7215 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7216 |
|
| 7217 |
;; |
| 7218 |
esac |
| 7219 |
fi |
| 7220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__bsd_source_defined" >&5 |
| 7221 |
printf "%s\n" "$mhd_cv_macro__bsd_source_defined" >&6; } |
| 7222 |
if test "x$mhd_cv_macro__bsd_source_defined" = x"yes" |
| 7223 |
then : |
| 7224 |
|
| 7225 |
else case e in #( |
| 7226 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _BSD_SOURCE" >&5 |
| 7227 |
printf %s "checking whether headers accept _BSD_SOURCE... " >&6; } |
| 7228 |
if test ${mhd_cv_define__bsd_source_accepted+y} |
| 7229 |
then : |
| 7230 |
printf %s "(cached) " >&6 |
| 7231 |
else case e in #( |
| 7232 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7233 |
/* end confdefs.h. */ |
| 7234 |
|
| 7235 |
${mhd_mse_sys_ext_defines} |
| 7236 |
#define _BSD_SOURCE 1 |
| 7237 |
/* Start of MHD basic test includes */ |
| 7238 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 7239 |
|
| 7240 |
|
| 7241 |
int |
| 7242 |
main (void) |
| 7243 |
{ |
| 7244 |
int i = 1; i++; if(i) return i |
| 7245 |
; |
| 7246 |
return 0; |
| 7247 |
} |
| 7248 |
|
| 7249 |
_ACEOF |
| 7250 |
if ac_fn_c_try_compile "$LINENO" |
| 7251 |
then : |
| 7252 |
mhd_cv_define__bsd_source_accepted="yes" |
| 7253 |
else case e in #( |
| 7254 |
e) mhd_cv_define__bsd_source_accepted="no" |
| 7255 |
;; |
| 7256 |
esac |
| 7257 |
fi |
| 7258 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7259 |
|
| 7260 |
;; |
| 7261 |
esac |
| 7262 |
fi |
| 7263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__bsd_source_accepted" >&5 |
| 7264 |
printf "%s\n" "$mhd_cv_define__bsd_source_accepted" >&6; } |
| 7265 |
if test "x$mhd_cv_define__bsd_source_accepted" = x"yes" |
| 7266 |
then : |
| 7267 |
|
| 7268 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _BSD_SOURCE 1 |
| 7269 |
" |
| 7270 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 7271 |
then : |
| 7272 |
mhd_mse_sys_ext_flags="_BSD_SOURCE" |
| 7273 |
else case e in #( |
| 7274 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _BSD_SOURCE" |
| 7275 |
;; |
| 7276 |
esac |
| 7277 |
fi |
| 7278 |
|
| 7279 |
|
| 7280 |
fi |
| 7281 |
;; |
| 7282 |
esac |
| 7283 |
fi |
| 7284 |
|
| 7285 |
fi |
| 7286 |
|
| 7287 |
|
| 7288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _TANDEM_SOURCE macro" >&5 |
| 7289 |
printf %s "checking whether to try _TANDEM_SOURCE macro... " >&6; } |
| 7290 |
if test ${mhd_cv_macro___tandem_defined+y} |
| 7291 |
then : |
| 7292 |
printf %s "(cached) " >&6 |
| 7293 |
else case e in #( |
| 7294 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7295 |
/* end confdefs.h. */ |
| 7296 |
|
| 7297 |
${mhd_mse_sys_ext_defines} |
| 7298 |
#ifndef __TANDEM |
| 7299 |
#error __TANDEM is not defined |
| 7300 |
choke me now; |
| 7301 |
#endif |
| 7302 |
|
| 7303 |
int |
| 7304 |
main (void) |
| 7305 |
{ |
| 7306 |
|
| 7307 |
; |
| 7308 |
return 0; |
| 7309 |
} |
| 7310 |
|
| 7311 |
_ACEOF |
| 7312 |
if ac_fn_c_try_compile "$LINENO" |
| 7313 |
then : |
| 7314 |
mhd_cv_macro___tandem_defined="yes" |
| 7315 |
else case e in #( |
| 7316 |
e) mhd_cv_macro___tandem_defined="no" |
| 7317 |
|
| 7318 |
;; |
| 7319 |
esac |
| 7320 |
fi |
| 7321 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7322 |
|
| 7323 |
;; |
| 7324 |
esac |
| 7325 |
fi |
| 7326 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___tandem_defined" >&5 |
| 7327 |
printf "%s\n" "$mhd_cv_macro___tandem_defined" >&6; } |
| 7328 |
if test "x$mhd_cv_macro___tandem_defined" = x"yes" |
| 7329 |
then : |
| 7330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _TANDEM_SOURCE is already defined" >&5 |
| 7331 |
printf %s "checking whether _TANDEM_SOURCE is already defined... " >&6; } |
| 7332 |
if test ${mhd_cv_macro__tandem_source_defined+y} |
| 7333 |
then : |
| 7334 |
printf %s "(cached) " >&6 |
| 7335 |
else case e in #( |
| 7336 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7337 |
/* end confdefs.h. */ |
| 7338 |
|
| 7339 |
${mhd_mse_sys_ext_defines} |
| 7340 |
#ifndef _TANDEM_SOURCE |
| 7341 |
#error _TANDEM_SOURCE is not defined |
| 7342 |
choke me now; |
| 7343 |
#endif |
| 7344 |
|
| 7345 |
int |
| 7346 |
main (void) |
| 7347 |
{ |
| 7348 |
|
| 7349 |
; |
| 7350 |
return 0; |
| 7351 |
} |
| 7352 |
|
| 7353 |
_ACEOF |
| 7354 |
if ac_fn_c_try_compile "$LINENO" |
| 7355 |
then : |
| 7356 |
mhd_cv_macro__tandem_source_defined="yes" |
| 7357 |
else case e in #( |
| 7358 |
e) mhd_cv_macro__tandem_source_defined="no" |
| 7359 |
|
| 7360 |
;; |
| 7361 |
esac |
| 7362 |
fi |
| 7363 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7364 |
|
| 7365 |
;; |
| 7366 |
esac |
| 7367 |
fi |
| 7368 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__tandem_source_defined" >&5 |
| 7369 |
printf "%s\n" "$mhd_cv_macro__tandem_source_defined" >&6; } |
| 7370 |
if test "x$mhd_cv_macro__tandem_source_defined" = x"yes" |
| 7371 |
then : |
| 7372 |
|
| 7373 |
else case e in #( |
| 7374 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _TANDEM_SOURCE" >&5 |
| 7375 |
printf %s "checking whether headers accept _TANDEM_SOURCE... " >&6; } |
| 7376 |
if test ${mhd_cv_define__tandem_source_accepted+y} |
| 7377 |
then : |
| 7378 |
printf %s "(cached) " >&6 |
| 7379 |
else case e in #( |
| 7380 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7381 |
/* end confdefs.h. */ |
| 7382 |
|
| 7383 |
${mhd_mse_sys_ext_defines} |
| 7384 |
#define _TANDEM_SOURCE 1 |
| 7385 |
/* Start of MHD basic test includes */ |
| 7386 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 7387 |
|
| 7388 |
|
| 7389 |
int |
| 7390 |
main (void) |
| 7391 |
{ |
| 7392 |
int i = 1; i++; if(i) return i |
| 7393 |
; |
| 7394 |
return 0; |
| 7395 |
} |
| 7396 |
|
| 7397 |
_ACEOF |
| 7398 |
if ac_fn_c_try_compile "$LINENO" |
| 7399 |
then : |
| 7400 |
mhd_cv_define__tandem_source_accepted="yes" |
| 7401 |
else case e in #( |
| 7402 |
e) mhd_cv_define__tandem_source_accepted="no" |
| 7403 |
;; |
| 7404 |
esac |
| 7405 |
fi |
| 7406 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7407 |
|
| 7408 |
;; |
| 7409 |
esac |
| 7410 |
fi |
| 7411 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__tandem_source_accepted" >&5 |
| 7412 |
printf "%s\n" "$mhd_cv_define__tandem_source_accepted" >&6; } |
| 7413 |
if test "x$mhd_cv_define__tandem_source_accepted" = x"yes" |
| 7414 |
then : |
| 7415 |
|
| 7416 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _TANDEM_SOURCE 1 |
| 7417 |
" |
| 7418 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 7419 |
then : |
| 7420 |
mhd_mse_sys_ext_flags="_TANDEM_SOURCE" |
| 7421 |
else case e in #( |
| 7422 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _TANDEM_SOURCE" |
| 7423 |
;; |
| 7424 |
esac |
| 7425 |
fi |
| 7426 |
|
| 7427 |
|
| 7428 |
fi |
| 7429 |
;; |
| 7430 |
esac |
| 7431 |
fi |
| 7432 |
|
| 7433 |
fi |
| 7434 |
|
| 7435 |
|
| 7436 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to try _ALL_SOURCE macro" >&5 |
| 7437 |
printf %s "checking whether to try _ALL_SOURCE macro... " >&6; } |
| 7438 |
if test ${mhd_cv_macro_try__all_source+y} |
| 7439 |
then : |
| 7440 |
printf %s "(cached) " >&6 |
| 7441 |
else case e in #( |
| 7442 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7443 |
/* end confdefs.h. */ |
| 7444 |
|
| 7445 |
#if !defined(__TOS_MVS__) && !defined (__INTERIX) |
| 7446 |
#error Target is not z/OS, AIX or Interix |
| 7447 |
choke me now; |
| 7448 |
#endif |
| 7449 |
|
| 7450 |
int |
| 7451 |
main (void) |
| 7452 |
{ |
| 7453 |
|
| 7454 |
; |
| 7455 |
return 0; |
| 7456 |
} |
| 7457 |
_ACEOF |
| 7458 |
if ac_fn_c_try_compile "$LINENO" |
| 7459 |
then : |
| 7460 |
mhd_cv_macro_try__all_source="yes" |
| 7461 |
else case e in #( |
| 7462 |
e) mhd_cv_macro_try__all_source="no" |
| 7463 |
;; |
| 7464 |
esac |
| 7465 |
fi |
| 7466 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7467 |
;; |
| 7468 |
esac |
| 7469 |
fi |
| 7470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_try__all_source" >&5 |
| 7471 |
printf "%s\n" "$mhd_cv_macro_try__all_source" >&6; } |
| 7472 |
if test "x$mhd_cv_macro_try__all_source" = x"yes" |
| 7473 |
then : |
| 7474 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _ALL_SOURCE is already defined" >&5 |
| 7475 |
printf %s "checking whether _ALL_SOURCE is already defined... " >&6; } |
| 7476 |
if test ${mhd_cv_macro__all_source_defined+y} |
| 7477 |
then : |
| 7478 |
printf %s "(cached) " >&6 |
| 7479 |
else case e in #( |
| 7480 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7481 |
/* end confdefs.h. */ |
| 7482 |
|
| 7483 |
${mhd_mse_sys_ext_defines} |
| 7484 |
#ifndef _ALL_SOURCE |
| 7485 |
#error _ALL_SOURCE is not defined |
| 7486 |
choke me now; |
| 7487 |
#endif |
| 7488 |
|
| 7489 |
int |
| 7490 |
main (void) |
| 7491 |
{ |
| 7492 |
|
| 7493 |
; |
| 7494 |
return 0; |
| 7495 |
} |
| 7496 |
|
| 7497 |
_ACEOF |
| 7498 |
if ac_fn_c_try_compile "$LINENO" |
| 7499 |
then : |
| 7500 |
mhd_cv_macro__all_source_defined="yes" |
| 7501 |
else case e in #( |
| 7502 |
e) mhd_cv_macro__all_source_defined="no" |
| 7503 |
|
| 7504 |
;; |
| 7505 |
esac |
| 7506 |
fi |
| 7507 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7508 |
|
| 7509 |
;; |
| 7510 |
esac |
| 7511 |
fi |
| 7512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__all_source_defined" >&5 |
| 7513 |
printf "%s\n" "$mhd_cv_macro__all_source_defined" >&6; } |
| 7514 |
if test "x$mhd_cv_macro__all_source_defined" = x"yes" |
| 7515 |
then : |
| 7516 |
|
| 7517 |
else case e in #( |
| 7518 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _ALL_SOURCE" >&5 |
| 7519 |
printf %s "checking whether headers accept _ALL_SOURCE... " >&6; } |
| 7520 |
if test ${mhd_cv_define__all_source_accepted+y} |
| 7521 |
then : |
| 7522 |
printf %s "(cached) " >&6 |
| 7523 |
else case e in #( |
| 7524 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7525 |
/* end confdefs.h. */ |
| 7526 |
|
| 7527 |
${mhd_mse_sys_ext_defines} |
| 7528 |
#define _ALL_SOURCE 1 |
| 7529 |
/* Start of MHD basic test includes */ |
| 7530 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 7531 |
|
| 7532 |
|
| 7533 |
int |
| 7534 |
main (void) |
| 7535 |
{ |
| 7536 |
int i = 1; i++; if(i) return i |
| 7537 |
; |
| 7538 |
return 0; |
| 7539 |
} |
| 7540 |
|
| 7541 |
_ACEOF |
| 7542 |
if ac_fn_c_try_compile "$LINENO" |
| 7543 |
then : |
| 7544 |
mhd_cv_define__all_source_accepted="yes" |
| 7545 |
else case e in #( |
| 7546 |
e) mhd_cv_define__all_source_accepted="no" |
| 7547 |
;; |
| 7548 |
esac |
| 7549 |
fi |
| 7550 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7551 |
|
| 7552 |
;; |
| 7553 |
esac |
| 7554 |
fi |
| 7555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__all_source_accepted" >&5 |
| 7556 |
printf "%s\n" "$mhd_cv_define__all_source_accepted" >&6; } |
| 7557 |
if test "x$mhd_cv_define__all_source_accepted" = x"yes" |
| 7558 |
then : |
| 7559 |
|
| 7560 |
mhd_mse_sys_ext_defines="${mhd_mse_sys_ext_defines}#define _ALL_SOURCE 1 |
| 7561 |
" |
| 7562 |
if test "x${mhd_mse_sys_ext_flags}" = "x" |
| 7563 |
then : |
| 7564 |
mhd_mse_sys_ext_flags="_ALL_SOURCE" |
| 7565 |
else case e in #( |
| 7566 |
e) mhd_mse_sys_ext_flags="${mhd_mse_sys_ext_flags} _ALL_SOURCE" |
| 7567 |
;; |
| 7568 |
esac |
| 7569 |
fi |
| 7570 |
|
| 7571 |
|
| 7572 |
fi |
| 7573 |
;; |
| 7574 |
esac |
| 7575 |
fi |
| 7576 |
|
| 7577 |
fi |
| 7578 |
|
| 7579 |
mhd_mse_xopen_features="" |
| 7580 |
mhd_mse_xopen_defines="" |
| 7581 |
mhd_mse_xopen_flags="" |
| 7582 |
|
| 7583 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE is already defined" >&5 |
| 7584 |
printf %s "checking whether _XOPEN_SOURCE is already defined... " >&6; } |
| 7585 |
if test ${mhd_cv_macro__xopen_source_defined+y} |
| 7586 |
then : |
| 7587 |
printf %s "(cached) " >&6 |
| 7588 |
else case e in #( |
| 7589 |
e) |
| 7590 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7591 |
/* end confdefs.h. */ |
| 7592 |
|
| 7593 |
${mhd_mse_sys_ext_defines} |
| 7594 |
#ifndef _XOPEN_SOURCE |
| 7595 |
#error _XOPEN_SOURCE is not defined |
| 7596 |
choke me now; |
| 7597 |
#endif |
| 7598 |
|
| 7599 |
int |
| 7600 |
main (void) |
| 7601 |
{ |
| 7602 |
|
| 7603 |
; |
| 7604 |
return 0; |
| 7605 |
} |
| 7606 |
|
| 7607 |
_ACEOF |
| 7608 |
if ac_fn_c_try_compile "$LINENO" |
| 7609 |
then : |
| 7610 |
mhd_cv_macro__xopen_source_defined="yes" |
| 7611 |
else case e in #( |
| 7612 |
e) mhd_cv_macro__xopen_source_defined="no" |
| 7613 |
|
| 7614 |
;; |
| 7615 |
esac |
| 7616 |
fi |
| 7617 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7618 |
|
| 7619 |
|
| 7620 |
;; |
| 7621 |
esac |
| 7622 |
fi |
| 7623 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_defined" >&5 |
| 7624 |
printf "%s\n" "$mhd_cv_macro__xopen_source_defined" >&6; } |
| 7625 |
if test "x$mhd_cv_macro__xopen_source_defined" = x"no" |
| 7626 |
then : |
| 7627 |
|
| 7628 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for POSIX.1-2008/SUSv4 features" >&5 |
| 7629 |
printf %s "checking headers for POSIX.1-2008/SUSv4 features... " >&6; } |
| 7630 |
if test ${mhd_cv_headers_posix2008+y} |
| 7631 |
then : |
| 7632 |
printf %s "(cached) " >&6 |
| 7633 |
else case e in #( |
| 7634 |
e) { mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 7635 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 7636 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 7637 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 7638 |
mhd_cpsxf_tmp_src_variable=" |
| 7639 |
|
| 7640 |
/* Start of MHD basic test includes */ |
| 7641 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 7642 |
|
| 7643 |
|
| 7644 |
/* Check will be passed if ALL features are available |
| 7645 |
* and failed if ANY feature is not available. */ |
| 7646 |
int main() |
| 7647 |
{ |
| 7648 |
|
| 7649 |
#ifndef stpncpy |
| 7650 |
(void) stpncpy; |
| 7651 |
#endif |
| 7652 |
#ifndef strnlen |
| 7653 |
(void) strnlen; |
| 7654 |
#endif |
| 7655 |
|
| 7656 |
#if !defined(__NetBSD__) && !defined(__OpenBSD__) |
| 7657 |
/* NetBSD and OpenBSD didn't implement wcsnlen() for some reason. */ |
| 7658 |
#ifndef wcsnlen |
| 7659 |
(void) wcsnlen; |
| 7660 |
#endif |
| 7661 |
#endif |
| 7662 |
|
| 7663 |
#ifdef __CYGWIN__ |
| 7664 |
/* The only depend function on Cygwin, but missing on some other platforms */ |
| 7665 |
#ifndef strndup |
| 7666 |
(void) strndup; |
| 7667 |
#endif |
| 7668 |
#endif |
| 7669 |
|
| 7670 |
#ifndef __sun |
| 7671 |
/* illumos forget to uncomment some _XPG7 macros. */ |
| 7672 |
#ifndef renameat |
| 7673 |
(void) renameat; |
| 7674 |
#endif |
| 7675 |
|
| 7676 |
#ifndef getline |
| 7677 |
(void) getline; |
| 7678 |
#endif |
| 7679 |
#endif /* ! __sun */ |
| 7680 |
|
| 7681 |
/* gmtime_r() becomes mandatory only in POSIX.1-2008. */ |
| 7682 |
#ifndef gmtime_r |
| 7683 |
(void) gmtime_r; |
| 7684 |
#endif |
| 7685 |
|
| 7686 |
/* unsetenv() actually defined in POSIX.1-2001 so it |
| 7687 |
* must be present with _XOPEN_SOURCE == 700 too. */ |
| 7688 |
#ifndef unsetenv |
| 7689 |
(void) unsetenv; |
| 7690 |
#endif |
| 7691 |
|
| 7692 |
return 0; |
| 7693 |
} |
| 7694 |
|
| 7695 |
" |
| 7696 |
mhd_cpsxf_tmp_defs_variable=" |
| 7697 |
${mhd_mse_sys_ext_defines} |
| 7698 |
" |
| 7699 |
|
| 7700 |
mhd_SYS_EXT_SAVE_CFLAGS="$CFLAGS" |
| 7701 |
CFLAGS="$CFLAGS $ac_c_undeclared_builtin_options" |
| 7702 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7703 |
/* end confdefs.h. */ |
| 7704 |
|
| 7705 |
$mhd_undef_all_extensions |
| 7706 |
|
| 7707 |
$mhd_cpsxf_tmp_src_variable |
| 7708 |
|
| 7709 |
_ACEOF |
| 7710 |
if ac_fn_c_try_compile "$LINENO" |
| 7711 |
then : |
| 7712 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 7713 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 7714 |
|
| 7715 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7716 |
/* end confdefs.h. */ |
| 7717 |
|
| 7718 |
$mhd_cpsxf_tmp_defs_variable |
| 7719 |
$mhd_cpsxf_tmp_src_variable |
| 7720 |
|
| 7721 |
_ACEOF |
| 7722 |
if ac_fn_c_try_compile "$LINENO" |
| 7723 |
then : |
| 7724 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 7725 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7727 |
/* end confdefs.h. */ |
| 7728 |
|
| 7729 |
$mhd_cpsxf_tmp_defs_variable |
| 7730 |
#define _XOPEN_SOURCE 700 |
| 7731 |
$mhd_cpsxf_tmp_src_variable |
| 7732 |
|
| 7733 |
_ACEOF |
| 7734 |
if ac_fn_c_try_compile "$LINENO" |
| 7735 |
then : |
| 7736 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE=700" >&5 |
| 7737 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7739 |
/* end confdefs.h. */ |
| 7740 |
|
| 7741 |
$mhd_undef_all_extensions |
| 7742 |
|
| 7743 |
#define _POSIX_C_SOURCE 1 |
| 7744 |
#define _ANSI_SOURCE 1 |
| 7745 |
$mhd_cpsxf_tmp_src_variable |
| 7746 |
|
| 7747 |
_ACEOF |
| 7748 |
if ac_fn_c_try_compile "$LINENO" |
| 7749 |
then : |
| 7750 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 7751 |
mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 7752 |
|
| 7753 |
else case e in #( |
| 7754 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 7755 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 7756 |
|
| 7757 |
;; |
| 7758 |
esac |
| 7759 |
fi |
| 7760 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7761 |
|
| 7762 |
else case e in #( |
| 7763 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE=700" >&5 |
| 7764 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7765 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 7766 |
|
| 7767 |
;; |
| 7768 |
esac |
| 7769 |
fi |
| 7770 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7771 |
|
| 7772 |
else case e in #( |
| 7773 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 7774 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 7775 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7776 |
/* end confdefs.h. */ |
| 7777 |
|
| 7778 |
#define _XOPEN_SOURCE 700 |
| 7779 |
$mhd_cpsxf_tmp_src_variable |
| 7780 |
|
| 7781 |
_ACEOF |
| 7782 |
if ac_fn_c_try_compile "$LINENO" |
| 7783 |
then : |
| 7784 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=700" >&5 |
| 7785 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7786 |
/* end confdefs.h. */ |
| 7787 |
|
| 7788 |
$mhd_cpsxf_tmp_src_variable |
| 7789 |
|
| 7790 |
_ACEOF |
| 7791 |
if ac_fn_c_try_compile "$LINENO" |
| 7792 |
then : |
| 7793 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 7794 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7795 |
|
| 7796 |
else case e in #( |
| 7797 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 7798 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7799 |
|
| 7800 |
;; |
| 7801 |
esac |
| 7802 |
fi |
| 7803 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7804 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7805 |
/* end confdefs.h. */ |
| 7806 |
|
| 7807 |
$mhd_cpsxf_tmp_defs_variable |
| 7808 |
#define _XOPEN_SOURCE 700 |
| 7809 |
$mhd_cpsxf_tmp_src_variable |
| 7810 |
|
| 7811 |
_ACEOF |
| 7812 |
if ac_fn_c_try_compile "$LINENO" |
| 7813 |
then : |
| 7814 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE and extensions" >&5 |
| 7815 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7816 |
|
| 7817 |
else case e in #( |
| 7818 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE and extensions" >&5 |
| 7819 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7820 |
|
| 7821 |
;; |
| 7822 |
esac |
| 7823 |
fi |
| 7824 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7825 |
|
| 7826 |
else case e in #( |
| 7827 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=700" >&5 |
| 7828 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7829 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7830 |
|
| 7831 |
;; |
| 7832 |
esac |
| 7833 |
fi |
| 7834 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7835 |
|
| 7836 |
;; |
| 7837 |
esac |
| 7838 |
fi |
| 7839 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7840 |
|
| 7841 |
else case e in #( |
| 7842 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 7843 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7844 |
/* end confdefs.h. */ |
| 7845 |
|
| 7846 |
$mhd_cpsxf_tmp_defs_variable |
| 7847 |
$mhd_cpsxf_tmp_src_variable |
| 7848 |
|
| 7849 |
_ACEOF |
| 7850 |
if ac_fn_c_try_compile "$LINENO" |
| 7851 |
then : |
| 7852 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 7853 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 7854 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 7855 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7856 |
/* end confdefs.h. */ |
| 7857 |
|
| 7858 |
$mhd_cpsxf_tmp_src_variable |
| 7859 |
|
| 7860 |
_ACEOF |
| 7861 |
if ac_fn_c_try_compile "$LINENO" |
| 7862 |
then : |
| 7863 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 7864 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7865 |
|
| 7866 |
else case e in #( |
| 7867 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 7868 |
mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7869 |
|
| 7870 |
;; |
| 7871 |
esac |
| 7872 |
fi |
| 7873 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7874 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7875 |
/* end confdefs.h. */ |
| 7876 |
|
| 7877 |
$mhd_cpsxf_tmp_defs_variable |
| 7878 |
#define _XOPEN_SOURCE 700 |
| 7879 |
$mhd_cpsxf_tmp_src_variable |
| 7880 |
|
| 7881 |
_ACEOF |
| 7882 |
if ac_fn_c_try_compile "$LINENO" |
| 7883 |
then : |
| 7884 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE=700" >&5 |
| 7885 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7886 |
|
| 7887 |
else case e in #( |
| 7888 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE=700" >&5 |
| 7889 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7890 |
|
| 7891 |
;; |
| 7892 |
esac |
| 7893 |
fi |
| 7894 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7895 |
|
| 7896 |
else case e in #( |
| 7897 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 7898 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7899 |
/* end confdefs.h. */ |
| 7900 |
|
| 7901 |
#define _XOPEN_SOURCE 700 |
| 7902 |
$mhd_cpsxf_tmp_src_variable |
| 7903 |
|
| 7904 |
_ACEOF |
| 7905 |
if ac_fn_c_try_compile "$LINENO" |
| 7906 |
then : |
| 7907 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=700" >&5 |
| 7908 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 7909 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7910 |
/* end confdefs.h. */ |
| 7911 |
|
| 7912 |
$mhd_cpsxf_tmp_src_variable |
| 7913 |
|
| 7914 |
_ACEOF |
| 7915 |
if ac_fn_c_try_compile "$LINENO" |
| 7916 |
then : |
| 7917 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 7918 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7919 |
|
| 7920 |
else case e in #( |
| 7921 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 7922 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7923 |
|
| 7924 |
;; |
| 7925 |
esac |
| 7926 |
fi |
| 7927 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7928 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7929 |
/* end confdefs.h. */ |
| 7930 |
|
| 7931 |
$mhd_cpsxf_tmp_defs_variable |
| 7932 |
#define _XOPEN_SOURCE 700 |
| 7933 |
$mhd_cpsxf_tmp_src_variable |
| 7934 |
|
| 7935 |
_ACEOF |
| 7936 |
if ac_fn_c_try_compile "$LINENO" |
| 7937 |
then : |
| 7938 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=700 and extensions" >&5 |
| 7939 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7940 |
|
| 7941 |
else case e in #( |
| 7942 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=700 and extensions" >&5 |
| 7943 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 7944 |
|
| 7945 |
;; |
| 7946 |
esac |
| 7947 |
fi |
| 7948 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7949 |
|
| 7950 |
else case e in #( |
| 7951 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=700" >&5 |
| 7952 |
mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO |
| 7953 |
|
| 7954 |
;; |
| 7955 |
esac |
| 7956 |
fi |
| 7957 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7958 |
|
| 7959 |
;; |
| 7960 |
esac |
| 7961 |
fi |
| 7962 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7963 |
|
| 7964 |
;; |
| 7965 |
esac |
| 7966 |
fi |
| 7967 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 7968 |
CFLAGS="$mhd_SYS_EXT_SAVE_CFLAGS" |
| 7969 |
{ mhd_SYS_EXT_SAVE_CFLAGS=; unset mhd_SYS_EXT_SAVE_CFLAGS;} |
| 7970 |
{ mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;} |
| 7971 |
{ mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;} |
| 7972 |
|
| 7973 |
if test "x$mhd_cpsxfs_tmp_features_available" = x"yes" |
| 7974 |
then : |
| 7975 |
|
| 7976 |
if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes" |
| 7977 |
then : |
| 7978 |
|
| 7979 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required" |
| 7980 |
then : |
| 7981 |
|
| 7982 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 7983 |
then : |
| 7984 |
|
| 7985 |
mhd_cv_headers_posix2008="available, activated by extension macro, works with _XOPEN_SOURCE=700" |
| 7986 |
|
| 7987 |
else case e in #( |
| 7988 |
e) |
| 7989 |
mhd_cv_headers_posix2008="available, activated by extension macro, does not work with _XOPEN_SOURCE=700" |
| 7990 |
|
| 7991 |
;; |
| 7992 |
esac |
| 7993 |
fi |
| 7994 |
|
| 7995 |
else case e in #( |
| 7996 |
e) |
| 7997 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed" |
| 7998 |
then : |
| 7999 |
|
| 8000 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8001 |
then : |
| 8002 |
|
| 8003 |
mhd_cv_headers_posix2008="available, activated by _XOPEN_SOURCE=700, works with extension macro" |
| 8004 |
|
| 8005 |
else case e in #( |
| 8006 |
e) |
| 8007 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8008 |
then : |
| 8009 |
|
| 8010 |
mhd_cv_headers_posix2008="available, works with _XOPEN_SOURCE=700, works with extension macro" |
| 8011 |
|
| 8012 |
else case e in #( |
| 8013 |
e) |
| 8014 |
mhd_cv_headers_posix2008="available, works with extension macro, does not work with _XOPEN_SOURCE=700" |
| 8015 |
|
| 8016 |
;; |
| 8017 |
esac |
| 8018 |
fi |
| 8019 |
|
| 8020 |
;; |
| 8021 |
esac |
| 8022 |
fi |
| 8023 |
|
| 8024 |
else case e in #( |
| 8025 |
e) |
| 8026 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8027 |
then : |
| 8028 |
|
| 8029 |
mhd_cv_headers_posix2008="available, activated by _XOPEN_SOURCE=700, does not work with extension macro" |
| 8030 |
|
| 8031 |
else case e in #( |
| 8032 |
e) |
| 8033 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8034 |
then : |
| 8035 |
|
| 8036 |
mhd_cv_headers_posix2008="available, works with _XOPEN_SOURCE=700, does not work with extension macro" |
| 8037 |
|
| 8038 |
else case e in #( |
| 8039 |
e) |
| 8040 |
mhd_cv_headers_posix2008="available, does not work with _XOPEN_SOURCE=700, does not work with extension macro" |
| 8041 |
|
| 8042 |
;; |
| 8043 |
esac |
| 8044 |
fi |
| 8045 |
|
| 8046 |
;; |
| 8047 |
esac |
| 8048 |
fi |
| 8049 |
|
| 8050 |
;; |
| 8051 |
esac |
| 8052 |
fi |
| 8053 |
|
| 8054 |
;; |
| 8055 |
esac |
| 8056 |
fi |
| 8057 |
|
| 8058 |
else case e in #( |
| 8059 |
e) |
| 8060 |
mhd_cv_headers_posix2008="available, works always" |
| 8061 |
|
| 8062 |
;; |
| 8063 |
esac |
| 8064 |
fi |
| 8065 |
|
| 8066 |
else case e in #( |
| 8067 |
e) |
| 8068 |
mhd_cv_headers_posix2008="not available" |
| 8069 |
|
| 8070 |
;; |
| 8071 |
esac |
| 8072 |
fi |
| 8073 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 8074 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 8075 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 8076 |
{ mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 8077 |
|
| 8078 |
|
| 8079 |
;; |
| 8080 |
esac |
| 8081 |
fi |
| 8082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_posix2008" >&5 |
| 8083 |
printf "%s\n" "$mhd_cv_headers_posix2008" >&6; } |
| 8084 |
if `echo "${mhd_cv_headers_posix2008}" | $GREP '^available' >/dev/null 2>&1` |
| 8085 |
then : |
| 8086 |
|
| 8087 |
if `echo "${mhd_cv_headers_posix2008}" | $FGREP 'does not work with _XOPEN_SOURCE' >/dev/null 2>&1` |
| 8088 |
then : |
| 8089 |
: |
| 8090 |
else case e in #( |
| 8091 |
e) mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE 700 |
| 8092 |
" |
| 8093 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 8094 |
then : |
| 8095 |
mhd_mse_xopen_flags="_XOPEN_SOURCE=700" |
| 8096 |
else case e in #( |
| 8097 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE=700" |
| 8098 |
;; |
| 8099 |
esac |
| 8100 |
fi |
| 8101 |
;; |
| 8102 |
esac |
| 8103 |
fi |
| 8104 |
|
| 8105 |
mhd_mse_xopen_features="${mhd_cv_headers_posix2008}" |
| 8106 |
|
| 8107 |
else case e in #( |
| 8108 |
e) |
| 8109 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for POSIX.1-2001/SUSv3 features" >&5 |
| 8110 |
printf %s "checking headers for POSIX.1-2001/SUSv3 features... " >&6; } |
| 8111 |
if test ${mhd_cv_headers_posix2001+y} |
| 8112 |
then : |
| 8113 |
printf %s "(cached) " >&6 |
| 8114 |
else case e in #( |
| 8115 |
e) |
| 8116 |
{ mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 8117 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 8118 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 8119 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 8120 |
mhd_cpsxf_tmp_src_variable=" |
| 8121 |
|
| 8122 |
/* Start of MHD basic test includes */ |
| 8123 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 8124 |
|
| 8125 |
|
| 8126 |
/* Check will be passed if ALL features are available |
| 8127 |
* and failed if ANY feature is not available. */ |
| 8128 |
int main() |
| 8129 |
{ |
| 8130 |
|
| 8131 |
#ifndef setenv |
| 8132 |
(void) setenv; |
| 8133 |
#endif |
| 8134 |
|
| 8135 |
#ifndef __NetBSD__ |
| 8136 |
#ifndef vsscanf |
| 8137 |
(void) vsscanf; |
| 8138 |
#endif |
| 8139 |
#endif |
| 8140 |
|
| 8141 |
/* Availability of next features varies, but they all must be present |
| 8142 |
* on platform with support for _XOPEN_SOURCE = 600. */ |
| 8143 |
|
| 8144 |
/* vsnprintf() should be available with _XOPEN_SOURCE >= 500, but some platforms |
| 8145 |
* provide it only with _POSIX_C_SOURCE >= 200112 (autodefined when |
| 8146 |
* _XOPEN_SOURCE >= 600) where specification of vsnprintf() is aligned with |
| 8147 |
* ISO C99 while others platforms defined it with even earlier standards. */ |
| 8148 |
#ifndef vsnprintf |
| 8149 |
(void) vsnprintf; |
| 8150 |
#endif |
| 8151 |
|
| 8152 |
/* On platforms that prefer POSIX over X/Open, fseeko() is available |
| 8153 |
* with _POSIX_C_SOURCE >= 200112 (autodefined when _XOPEN_SOURCE >= 600). |
| 8154 |
* On other platforms it should be available with _XOPEN_SOURCE >= 500. */ |
| 8155 |
#ifndef fseeko |
| 8156 |
(void) fseeko; |
| 8157 |
#endif |
| 8158 |
|
| 8159 |
/* F_GETOWN must be defined with _XOPEN_SOURCE >= 600, but some platforms |
| 8160 |
* define it with _XOPEN_SOURCE >= 500. */ |
| 8161 |
#ifndef F_GETOWN |
| 8162 |
#error F_GETOWN is not defined |
| 8163 |
choke me now; |
| 8164 |
#endif |
| 8165 |
return 0; |
| 8166 |
} |
| 8167 |
|
| 8168 |
" |
| 8169 |
mhd_cpsxf_tmp_defs_variable=" |
| 8170 |
${mhd_mse_sys_ext_defines} |
| 8171 |
" |
| 8172 |
|
| 8173 |
mhd_SYS_EXT_SAVE_CFLAGS="$CFLAGS" |
| 8174 |
CFLAGS="$CFLAGS $ac_c_undeclared_builtin_options" |
| 8175 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8176 |
/* end confdefs.h. */ |
| 8177 |
|
| 8178 |
$mhd_undef_all_extensions |
| 8179 |
|
| 8180 |
$mhd_cpsxf_tmp_src_variable |
| 8181 |
|
| 8182 |
_ACEOF |
| 8183 |
if ac_fn_c_try_compile "$LINENO" |
| 8184 |
then : |
| 8185 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 8186 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8187 |
|
| 8188 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8189 |
/* end confdefs.h. */ |
| 8190 |
|
| 8191 |
$mhd_cpsxf_tmp_defs_variable |
| 8192 |
$mhd_cpsxf_tmp_src_variable |
| 8193 |
|
| 8194 |
_ACEOF |
| 8195 |
if ac_fn_c_try_compile "$LINENO" |
| 8196 |
then : |
| 8197 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 8198 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8200 |
/* end confdefs.h. */ |
| 8201 |
|
| 8202 |
$mhd_cpsxf_tmp_defs_variable |
| 8203 |
#define _XOPEN_SOURCE 600 |
| 8204 |
$mhd_cpsxf_tmp_src_variable |
| 8205 |
|
| 8206 |
_ACEOF |
| 8207 |
if ac_fn_c_try_compile "$LINENO" |
| 8208 |
then : |
| 8209 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE=600" >&5 |
| 8210 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8211 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8212 |
/* end confdefs.h. */ |
| 8213 |
|
| 8214 |
$mhd_undef_all_extensions |
| 8215 |
|
| 8216 |
#define _POSIX_C_SOURCE 1 |
| 8217 |
#define _ANSI_SOURCE 1 |
| 8218 |
$mhd_cpsxf_tmp_src_variable |
| 8219 |
|
| 8220 |
_ACEOF |
| 8221 |
if ac_fn_c_try_compile "$LINENO" |
| 8222 |
then : |
| 8223 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 8224 |
mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8225 |
|
| 8226 |
else case e in #( |
| 8227 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 8228 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8229 |
|
| 8230 |
;; |
| 8231 |
esac |
| 8232 |
fi |
| 8233 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8234 |
|
| 8235 |
else case e in #( |
| 8236 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE=600" >&5 |
| 8237 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8238 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8239 |
|
| 8240 |
;; |
| 8241 |
esac |
| 8242 |
fi |
| 8243 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8244 |
|
| 8245 |
else case e in #( |
| 8246 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 8247 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8248 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8249 |
/* end confdefs.h. */ |
| 8250 |
|
| 8251 |
#define _XOPEN_SOURCE 600 |
| 8252 |
$mhd_cpsxf_tmp_src_variable |
| 8253 |
|
| 8254 |
_ACEOF |
| 8255 |
if ac_fn_c_try_compile "$LINENO" |
| 8256 |
then : |
| 8257 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=600" >&5 |
| 8258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8259 |
/* end confdefs.h. */ |
| 8260 |
|
| 8261 |
$mhd_cpsxf_tmp_src_variable |
| 8262 |
|
| 8263 |
_ACEOF |
| 8264 |
if ac_fn_c_try_compile "$LINENO" |
| 8265 |
then : |
| 8266 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8267 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8268 |
|
| 8269 |
else case e in #( |
| 8270 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8271 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8272 |
|
| 8273 |
;; |
| 8274 |
esac |
| 8275 |
fi |
| 8276 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8277 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8278 |
/* end confdefs.h. */ |
| 8279 |
|
| 8280 |
$mhd_cpsxf_tmp_defs_variable |
| 8281 |
#define _XOPEN_SOURCE 600 |
| 8282 |
$mhd_cpsxf_tmp_src_variable |
| 8283 |
|
| 8284 |
_ACEOF |
| 8285 |
if ac_fn_c_try_compile "$LINENO" |
| 8286 |
then : |
| 8287 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE and extensions" >&5 |
| 8288 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8289 |
|
| 8290 |
else case e in #( |
| 8291 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE and extensions" >&5 |
| 8292 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8293 |
|
| 8294 |
;; |
| 8295 |
esac |
| 8296 |
fi |
| 8297 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8298 |
|
| 8299 |
else case e in #( |
| 8300 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=600" >&5 |
| 8301 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8302 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8303 |
|
| 8304 |
;; |
| 8305 |
esac |
| 8306 |
fi |
| 8307 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8308 |
|
| 8309 |
;; |
| 8310 |
esac |
| 8311 |
fi |
| 8312 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8313 |
|
| 8314 |
else case e in #( |
| 8315 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 8316 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8317 |
/* end confdefs.h. */ |
| 8318 |
|
| 8319 |
$mhd_cpsxf_tmp_defs_variable |
| 8320 |
$mhd_cpsxf_tmp_src_variable |
| 8321 |
|
| 8322 |
_ACEOF |
| 8323 |
if ac_fn_c_try_compile "$LINENO" |
| 8324 |
then : |
| 8325 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 8326 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8327 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8328 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8329 |
/* end confdefs.h. */ |
| 8330 |
|
| 8331 |
$mhd_cpsxf_tmp_src_variable |
| 8332 |
|
| 8333 |
_ACEOF |
| 8334 |
if ac_fn_c_try_compile "$LINENO" |
| 8335 |
then : |
| 8336 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8337 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8338 |
|
| 8339 |
else case e in #( |
| 8340 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8341 |
mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8342 |
|
| 8343 |
;; |
| 8344 |
esac |
| 8345 |
fi |
| 8346 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8347 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8348 |
/* end confdefs.h. */ |
| 8349 |
|
| 8350 |
$mhd_cpsxf_tmp_defs_variable |
| 8351 |
#define _XOPEN_SOURCE 600 |
| 8352 |
$mhd_cpsxf_tmp_src_variable |
| 8353 |
|
| 8354 |
_ACEOF |
| 8355 |
if ac_fn_c_try_compile "$LINENO" |
| 8356 |
then : |
| 8357 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE=600" >&5 |
| 8358 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8359 |
|
| 8360 |
else case e in #( |
| 8361 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE=600" >&5 |
| 8362 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8363 |
|
| 8364 |
;; |
| 8365 |
esac |
| 8366 |
fi |
| 8367 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8368 |
|
| 8369 |
else case e in #( |
| 8370 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 8371 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8372 |
/* end confdefs.h. */ |
| 8373 |
|
| 8374 |
#define _XOPEN_SOURCE 600 |
| 8375 |
$mhd_cpsxf_tmp_src_variable |
| 8376 |
|
| 8377 |
_ACEOF |
| 8378 |
if ac_fn_c_try_compile "$LINENO" |
| 8379 |
then : |
| 8380 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=600" >&5 |
| 8381 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8382 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8383 |
/* end confdefs.h. */ |
| 8384 |
|
| 8385 |
$mhd_cpsxf_tmp_src_variable |
| 8386 |
|
| 8387 |
_ACEOF |
| 8388 |
if ac_fn_c_try_compile "$LINENO" |
| 8389 |
then : |
| 8390 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8391 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8392 |
|
| 8393 |
else case e in #( |
| 8394 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8395 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8396 |
|
| 8397 |
;; |
| 8398 |
esac |
| 8399 |
fi |
| 8400 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8401 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8402 |
/* end confdefs.h. */ |
| 8403 |
|
| 8404 |
$mhd_cpsxf_tmp_defs_variable |
| 8405 |
#define _XOPEN_SOURCE 600 |
| 8406 |
$mhd_cpsxf_tmp_src_variable |
| 8407 |
|
| 8408 |
_ACEOF |
| 8409 |
if ac_fn_c_try_compile "$LINENO" |
| 8410 |
then : |
| 8411 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=600 and extensions" >&5 |
| 8412 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8413 |
|
| 8414 |
else case e in #( |
| 8415 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=600 and extensions" >&5 |
| 8416 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8417 |
|
| 8418 |
;; |
| 8419 |
esac |
| 8420 |
fi |
| 8421 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8422 |
|
| 8423 |
else case e in #( |
| 8424 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=600" >&5 |
| 8425 |
mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8426 |
|
| 8427 |
;; |
| 8428 |
esac |
| 8429 |
fi |
| 8430 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8431 |
|
| 8432 |
;; |
| 8433 |
esac |
| 8434 |
fi |
| 8435 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8436 |
|
| 8437 |
;; |
| 8438 |
esac |
| 8439 |
fi |
| 8440 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8441 |
CFLAGS="$mhd_SYS_EXT_SAVE_CFLAGS" |
| 8442 |
{ mhd_SYS_EXT_SAVE_CFLAGS=; unset mhd_SYS_EXT_SAVE_CFLAGS;} |
| 8443 |
{ mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;} |
| 8444 |
{ mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;} |
| 8445 |
|
| 8446 |
if test "x$mhd_cpsxfs_tmp_features_available" = x"yes" |
| 8447 |
then : |
| 8448 |
|
| 8449 |
if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes" |
| 8450 |
then : |
| 8451 |
|
| 8452 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required" |
| 8453 |
then : |
| 8454 |
|
| 8455 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8456 |
then : |
| 8457 |
|
| 8458 |
mhd_cv_headers_posix2001="available, activated by extension macro, works with _XOPEN_SOURCE=600" |
| 8459 |
|
| 8460 |
else case e in #( |
| 8461 |
e) |
| 8462 |
mhd_cv_headers_posix2001="available, activated by extension macro, does not work with _XOPEN_SOURCE=600" |
| 8463 |
|
| 8464 |
;; |
| 8465 |
esac |
| 8466 |
fi |
| 8467 |
|
| 8468 |
else case e in #( |
| 8469 |
e) |
| 8470 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed" |
| 8471 |
then : |
| 8472 |
|
| 8473 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8474 |
then : |
| 8475 |
|
| 8476 |
mhd_cv_headers_posix2001="available, activated by _XOPEN_SOURCE=600, works with extension macro" |
| 8477 |
|
| 8478 |
else case e in #( |
| 8479 |
e) |
| 8480 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8481 |
then : |
| 8482 |
|
| 8483 |
mhd_cv_headers_posix2001="available, works with _XOPEN_SOURCE=600, works with extension macro" |
| 8484 |
|
| 8485 |
else case e in #( |
| 8486 |
e) |
| 8487 |
mhd_cv_headers_posix2001="available, works with extension macro, does not work with _XOPEN_SOURCE=600" |
| 8488 |
|
| 8489 |
;; |
| 8490 |
esac |
| 8491 |
fi |
| 8492 |
|
| 8493 |
;; |
| 8494 |
esac |
| 8495 |
fi |
| 8496 |
|
| 8497 |
else case e in #( |
| 8498 |
e) |
| 8499 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8500 |
then : |
| 8501 |
|
| 8502 |
mhd_cv_headers_posix2001="available, activated by _XOPEN_SOURCE=600, does not work with extension macro" |
| 8503 |
|
| 8504 |
else case e in #( |
| 8505 |
e) |
| 8506 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8507 |
then : |
| 8508 |
|
| 8509 |
mhd_cv_headers_posix2001="available, works with _XOPEN_SOURCE=600, does not work with extension macro" |
| 8510 |
|
| 8511 |
else case e in #( |
| 8512 |
e) |
| 8513 |
mhd_cv_headers_posix2001="available, does not work with _XOPEN_SOURCE=600, does not work with extension macro" |
| 8514 |
|
| 8515 |
;; |
| 8516 |
esac |
| 8517 |
fi |
| 8518 |
|
| 8519 |
;; |
| 8520 |
esac |
| 8521 |
fi |
| 8522 |
|
| 8523 |
;; |
| 8524 |
esac |
| 8525 |
fi |
| 8526 |
|
| 8527 |
;; |
| 8528 |
esac |
| 8529 |
fi |
| 8530 |
|
| 8531 |
else case e in #( |
| 8532 |
e) |
| 8533 |
mhd_cv_headers_posix2001="available, works always" |
| 8534 |
|
| 8535 |
;; |
| 8536 |
esac |
| 8537 |
fi |
| 8538 |
|
| 8539 |
else case e in #( |
| 8540 |
e) |
| 8541 |
mhd_cv_headers_posix2001="not available" |
| 8542 |
|
| 8543 |
;; |
| 8544 |
esac |
| 8545 |
fi |
| 8546 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 8547 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 8548 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 8549 |
{ mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 8550 |
|
| 8551 |
|
| 8552 |
;; |
| 8553 |
esac |
| 8554 |
fi |
| 8555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_posix2001" >&5 |
| 8556 |
printf "%s\n" "$mhd_cv_headers_posix2001" >&6; } |
| 8557 |
if `echo "${mhd_cv_headers_posix2001}" | $GREP '^available' >/dev/null 2>&1` |
| 8558 |
then : |
| 8559 |
|
| 8560 |
if `echo "${mhd_cv_headers_posix2001}" | $FGREP 'does not work with _XOPEN_SOURCE' >/dev/null 2>&1` |
| 8561 |
then : |
| 8562 |
: |
| 8563 |
else case e in #( |
| 8564 |
e) mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE 600 |
| 8565 |
" |
| 8566 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 8567 |
then : |
| 8568 |
mhd_mse_xopen_flags="_XOPEN_SOURCE=600" |
| 8569 |
else case e in #( |
| 8570 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE=600" |
| 8571 |
;; |
| 8572 |
esac |
| 8573 |
fi |
| 8574 |
;; |
| 8575 |
esac |
| 8576 |
fi |
| 8577 |
|
| 8578 |
mhd_mse_xopen_features="${mhd_cv_headers_posix2001}" |
| 8579 |
|
| 8580 |
else case e in #( |
| 8581 |
e) |
| 8582 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking headers for SUSv2/XPG5 features" >&5 |
| 8583 |
printf %s "checking headers for SUSv2/XPG5 features... " >&6; } |
| 8584 |
if test ${mhd_cv_headers_susv2+y} |
| 8585 |
then : |
| 8586 |
printf %s "(cached) " >&6 |
| 8587 |
else case e in #( |
| 8588 |
e) |
| 8589 |
{ mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 8590 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 8591 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 8592 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 8593 |
mhd_cpsxf_tmp_src_variable=" |
| 8594 |
|
| 8595 |
/* Start of MHD basic test includes */ |
| 8596 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 8597 |
|
| 8598 |
|
| 8599 |
/* Check will be passed if ALL features are available |
| 8600 |
* and failed if ANY feature is not available. */ |
| 8601 |
int main() |
| 8602 |
{ |
| 8603 |
/* It's not easy to write reliable test for _XOPEN_SOURCE = 500 as |
| 8604 |
* platforms not always precisely follow this standard and some |
| 8605 |
* functions are already deprecated in later standards. */ |
| 8606 |
|
| 8607 |
/* Availability of next features varies, but they all must be present |
| 8608 |
* on platform with correct support for _XOPEN_SOURCE = 500. */ |
| 8609 |
|
| 8610 |
/* Mandatory with _XOPEN_SOURCE >= 500 but as XSI extension available |
| 8611 |
* with much older standards. */ |
| 8612 |
#ifndef ftruncate |
| 8613 |
(void) ftruncate; |
| 8614 |
#endif |
| 8615 |
|
| 8616 |
/* Added with _XOPEN_SOURCE >= 500 but was available in some standards |
| 8617 |
* before. XSI extension. */ |
| 8618 |
#ifndef pread |
| 8619 |
(void) pread; |
| 8620 |
#endif |
| 8621 |
|
| 8622 |
#ifndef __APPLE__ |
| 8623 |
/* Actually comes from XPG4v2 and must be available |
| 8624 |
* with _XOPEN_SOURCE >= 500 as well. */ |
| 8625 |
#ifndef symlink |
| 8626 |
(void) symlink; |
| 8627 |
#endif |
| 8628 |
|
| 8629 |
/* Actually comes from XPG4v2 and must be available |
| 8630 |
* with _XOPEN_SOURCE >= 500 as well. XSI extension. */ |
| 8631 |
#ifndef strdup |
| 8632 |
(void) strdup; |
| 8633 |
#endif |
| 8634 |
#endif /* ! __APPLE__ */ |
| 8635 |
return 0; |
| 8636 |
} |
| 8637 |
|
| 8638 |
" |
| 8639 |
mhd_cpsxf_tmp_defs_variable=" |
| 8640 |
${mhd_mse_sys_ext_defines} |
| 8641 |
" |
| 8642 |
|
| 8643 |
mhd_SYS_EXT_SAVE_CFLAGS="$CFLAGS" |
| 8644 |
CFLAGS="$CFLAGS $ac_c_undeclared_builtin_options" |
| 8645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8646 |
/* end confdefs.h. */ |
| 8647 |
|
| 8648 |
$mhd_undef_all_extensions |
| 8649 |
|
| 8650 |
$mhd_cpsxf_tmp_src_variable |
| 8651 |
|
| 8652 |
_ACEOF |
| 8653 |
if ac_fn_c_try_compile "$LINENO" |
| 8654 |
then : |
| 8655 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 8656 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8657 |
|
| 8658 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8659 |
/* end confdefs.h. */ |
| 8660 |
|
| 8661 |
$mhd_cpsxf_tmp_defs_variable |
| 8662 |
$mhd_cpsxf_tmp_src_variable |
| 8663 |
|
| 8664 |
_ACEOF |
| 8665 |
if ac_fn_c_try_compile "$LINENO" |
| 8666 |
then : |
| 8667 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 8668 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8669 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8670 |
/* end confdefs.h. */ |
| 8671 |
|
| 8672 |
$mhd_cpsxf_tmp_defs_variable |
| 8673 |
#define _XOPEN_SOURCE 500 |
| 8674 |
$mhd_cpsxf_tmp_src_variable |
| 8675 |
|
| 8676 |
_ACEOF |
| 8677 |
if ac_fn_c_try_compile "$LINENO" |
| 8678 |
then : |
| 8679 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and with _XOPEN_SOURCE=500" >&5 |
| 8680 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8681 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8682 |
/* end confdefs.h. */ |
| 8683 |
|
| 8684 |
$mhd_undef_all_extensions |
| 8685 |
|
| 8686 |
#define _POSIX_C_SOURCE 1 |
| 8687 |
#define _ANSI_SOURCE 1 |
| 8688 |
$mhd_cpsxf_tmp_src_variable |
| 8689 |
|
| 8690 |
_ACEOF |
| 8691 |
if ac_fn_c_try_compile "$LINENO" |
| 8692 |
then : |
| 8693 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 8694 |
mhd_cpsxfs_tmp_features_disableable="no" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8695 |
|
| 8696 |
else case e in #( |
| 8697 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with disabled extensions, with _POSIX_C_SOURCE=1 and _ANSI_SOURCE=1" >&5 |
| 8698 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8699 |
|
| 8700 |
;; |
| 8701 |
esac |
| 8702 |
fi |
| 8703 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8704 |
|
| 8705 |
else case e in #( |
| 8706 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and with _XOPEN_SOURCE=500" >&5 |
| 8707 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8708 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8709 |
|
| 8710 |
;; |
| 8711 |
esac |
| 8712 |
fi |
| 8713 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8714 |
|
| 8715 |
else case e in #( |
| 8716 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 8717 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8718 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8719 |
/* end confdefs.h. */ |
| 8720 |
|
| 8721 |
#define _XOPEN_SOURCE 500 |
| 8722 |
$mhd_cpsxf_tmp_src_variable |
| 8723 |
|
| 8724 |
_ACEOF |
| 8725 |
if ac_fn_c_try_compile "$LINENO" |
| 8726 |
then : |
| 8727 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=500" >&5 |
| 8728 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8729 |
/* end confdefs.h. */ |
| 8730 |
|
| 8731 |
$mhd_cpsxf_tmp_src_variable |
| 8732 |
|
| 8733 |
_ACEOF |
| 8734 |
if ac_fn_c_try_compile "$LINENO" |
| 8735 |
then : |
| 8736 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8737 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8738 |
|
| 8739 |
else case e in #( |
| 8740 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8741 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8742 |
|
| 8743 |
;; |
| 8744 |
esac |
| 8745 |
fi |
| 8746 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8747 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8748 |
/* end confdefs.h. */ |
| 8749 |
|
| 8750 |
$mhd_cpsxf_tmp_defs_variable |
| 8751 |
#define _XOPEN_SOURCE 500 |
| 8752 |
$mhd_cpsxf_tmp_src_variable |
| 8753 |
|
| 8754 |
_ACEOF |
| 8755 |
if ac_fn_c_try_compile "$LINENO" |
| 8756 |
then : |
| 8757 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE and extensions" >&5 |
| 8758 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8759 |
|
| 8760 |
else case e in #( |
| 8761 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE and extensions" >&5 |
| 8762 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8763 |
|
| 8764 |
;; |
| 8765 |
esac |
| 8766 |
fi |
| 8767 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8768 |
|
| 8769 |
else case e in #( |
| 8770 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=500" >&5 |
| 8771 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8772 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8773 |
|
| 8774 |
;; |
| 8775 |
esac |
| 8776 |
fi |
| 8777 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8778 |
|
| 8779 |
;; |
| 8780 |
esac |
| 8781 |
fi |
| 8782 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8783 |
|
| 8784 |
else case e in #( |
| 8785 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with undefined all extensions and without _XOPEN_SOURCE" >&5 |
| 8786 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8787 |
/* end confdefs.h. */ |
| 8788 |
|
| 8789 |
$mhd_cpsxf_tmp_defs_variable |
| 8790 |
$mhd_cpsxf_tmp_src_variable |
| 8791 |
|
| 8792 |
_ACEOF |
| 8793 |
if ac_fn_c_try_compile "$LINENO" |
| 8794 |
then : |
| 8795 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions" >&5 |
| 8796 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8797 |
mhd_cpsxfs_tmp_features_disableable="yes" # VAR-FEATURES-DISABLEABLE-YES_NO |
| 8798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8799 |
/* end confdefs.h. */ |
| 8800 |
|
| 8801 |
$mhd_cpsxf_tmp_src_variable |
| 8802 |
|
| 8803 |
_ACEOF |
| 8804 |
if ac_fn_c_try_compile "$LINENO" |
| 8805 |
then : |
| 8806 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8807 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8808 |
|
| 8809 |
else case e in #( |
| 8810 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8811 |
mhd_cpsxfs_tmp_extentions_allowed="required" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8812 |
|
| 8813 |
;; |
| 8814 |
esac |
| 8815 |
fi |
| 8816 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8817 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8818 |
/* end confdefs.h. */ |
| 8819 |
|
| 8820 |
$mhd_cpsxf_tmp_defs_variable |
| 8821 |
#define _XOPEN_SOURCE 500 |
| 8822 |
$mhd_cpsxf_tmp_src_variable |
| 8823 |
|
| 8824 |
_ACEOF |
| 8825 |
if ac_fn_c_try_compile "$LINENO" |
| 8826 |
then : |
| 8827 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with extensions and _XOPEN_SOURCE=500" >&5 |
| 8828 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8829 |
|
| 8830 |
else case e in #( |
| 8831 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions and _XOPEN_SOURCE=500" >&5 |
| 8832 |
mhd_cpsxfs_tmp_src_xopen_allowed="not allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8833 |
|
| 8834 |
;; |
| 8835 |
esac |
| 8836 |
fi |
| 8837 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8838 |
|
| 8839 |
else case e in #( |
| 8840 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with extensions" >&5 |
| 8841 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8842 |
/* end confdefs.h. */ |
| 8843 |
|
| 8844 |
#define _XOPEN_SOURCE 500 |
| 8845 |
$mhd_cpsxf_tmp_src_variable |
| 8846 |
|
| 8847 |
_ACEOF |
| 8848 |
if ac_fn_c_try_compile "$LINENO" |
| 8849 |
then : |
| 8850 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=500" >&5 |
| 8851 |
mhd_cpsxfs_tmp_features_available="yes" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8852 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8853 |
/* end confdefs.h. */ |
| 8854 |
|
| 8855 |
$mhd_cpsxf_tmp_src_variable |
| 8856 |
|
| 8857 |
_ACEOF |
| 8858 |
if ac_fn_c_try_compile "$LINENO" |
| 8859 |
then : |
| 8860 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work by default" >&5 |
| 8861 |
mhd_cpsxfs_tmp_src_xopen_allowed="allowed" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8862 |
|
| 8863 |
else case e in #( |
| 8864 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT by default" >&5 |
| 8865 |
mhd_cpsxfs_tmp_src_xopen_allowed="required" # VAR-XOPEN-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8866 |
|
| 8867 |
;; |
| 8868 |
esac |
| 8869 |
fi |
| 8870 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8872 |
/* end confdefs.h. */ |
| 8873 |
|
| 8874 |
$mhd_cpsxf_tmp_defs_variable |
| 8875 |
#define _XOPEN_SOURCE 500 |
| 8876 |
$mhd_cpsxf_tmp_src_variable |
| 8877 |
|
| 8878 |
_ACEOF |
| 8879 |
if ac_fn_c_try_compile "$LINENO" |
| 8880 |
then : |
| 8881 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features work with _XOPEN_SOURCE=500 and extensions" >&5 |
| 8882 |
mhd_cpsxfs_tmp_extentions_allowed="allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8883 |
|
| 8884 |
else case e in #( |
| 8885 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=500 and extensions" >&5 |
| 8886 |
mhd_cpsxfs_tmp_extentions_allowed="not allowed" # VAR-EXTENSIONS-REQUIRED_NOT-ALLOWED_ALLOWED |
| 8887 |
|
| 8888 |
;; |
| 8889 |
esac |
| 8890 |
fi |
| 8891 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8892 |
|
| 8893 |
else case e in #( |
| 8894 |
e) printf "%s\n" "$as_me:${as_lineno-$LINENO}: Checked features DO NOT work with _XOPEN_SOURCE=500" >&5 |
| 8895 |
mhd_cpsxfs_tmp_features_available="no" # VAR-FEATURES-AVAILABLE-YES_NO |
| 8896 |
|
| 8897 |
;; |
| 8898 |
esac |
| 8899 |
fi |
| 8900 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8901 |
|
| 8902 |
;; |
| 8903 |
esac |
| 8904 |
fi |
| 8905 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8906 |
|
| 8907 |
;; |
| 8908 |
esac |
| 8909 |
fi |
| 8910 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8911 |
CFLAGS="$mhd_SYS_EXT_SAVE_CFLAGS" |
| 8912 |
{ mhd_SYS_EXT_SAVE_CFLAGS=; unset mhd_SYS_EXT_SAVE_CFLAGS;} |
| 8913 |
{ mhd_cpsxf_tmp_defs_variable=; unset mhd_cpsxf_tmp_defs_variable;} |
| 8914 |
{ mhd_cpsxf_tmp_src_variable=; unset mhd_cpsxf_tmp_src_variable;} |
| 8915 |
|
| 8916 |
if test "x$mhd_cpsxfs_tmp_features_available" = x"yes" |
| 8917 |
then : |
| 8918 |
|
| 8919 |
if test "x$mhd_cpsxfs_tmp_features_disableable" = x"yes" |
| 8920 |
then : |
| 8921 |
|
| 8922 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"required" |
| 8923 |
then : |
| 8924 |
|
| 8925 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8926 |
then : |
| 8927 |
|
| 8928 |
mhd_cv_headers_susv2="available, activated by extension macro, works with _XOPEN_SOURCE=500" |
| 8929 |
|
| 8930 |
else case e in #( |
| 8931 |
e) |
| 8932 |
mhd_cv_headers_susv2="available, activated by extension macro, does not work with _XOPEN_SOURCE=500" |
| 8933 |
|
| 8934 |
;; |
| 8935 |
esac |
| 8936 |
fi |
| 8937 |
|
| 8938 |
else case e in #( |
| 8939 |
e) |
| 8940 |
if test "x$mhd_cpsxfs_tmp_extentions_allowed" = x"allowed" |
| 8941 |
then : |
| 8942 |
|
| 8943 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8944 |
then : |
| 8945 |
|
| 8946 |
mhd_cv_headers_susv2="available, activated by _XOPEN_SOURCE=500, works with extension macro" |
| 8947 |
|
| 8948 |
else case e in #( |
| 8949 |
e) |
| 8950 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8951 |
then : |
| 8952 |
|
| 8953 |
mhd_cv_headers_susv2="available, works with _XOPEN_SOURCE=500, works with extension macro" |
| 8954 |
|
| 8955 |
else case e in #( |
| 8956 |
e) |
| 8957 |
mhd_cv_headers_susv2="available, works with extension macro, does not work with _XOPEN_SOURCE=500" |
| 8958 |
|
| 8959 |
;; |
| 8960 |
esac |
| 8961 |
fi |
| 8962 |
|
| 8963 |
;; |
| 8964 |
esac |
| 8965 |
fi |
| 8966 |
|
| 8967 |
else case e in #( |
| 8968 |
e) |
| 8969 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"required" |
| 8970 |
then : |
| 8971 |
|
| 8972 |
mhd_cv_headers_susv2="available, activated by _XOPEN_SOURCE=500, does not work with extension macro" |
| 8973 |
|
| 8974 |
else case e in #( |
| 8975 |
e) |
| 8976 |
if test "x$mhd_cpsxfs_tmp_src_xopen_allowed" = x"allowed" |
| 8977 |
then : |
| 8978 |
|
| 8979 |
mhd_cv_headers_susv2="available, works with _XOPEN_SOURCE=500, does not work with extension macro" |
| 8980 |
|
| 8981 |
else case e in #( |
| 8982 |
e) |
| 8983 |
mhd_cv_headers_susv2="available, does not work with _XOPEN_SOURCE=500, does not work with extension macro" |
| 8984 |
|
| 8985 |
;; |
| 8986 |
esac |
| 8987 |
fi |
| 8988 |
|
| 8989 |
;; |
| 8990 |
esac |
| 8991 |
fi |
| 8992 |
|
| 8993 |
;; |
| 8994 |
esac |
| 8995 |
fi |
| 8996 |
|
| 8997 |
;; |
| 8998 |
esac |
| 8999 |
fi |
| 9000 |
|
| 9001 |
else case e in #( |
| 9002 |
e) |
| 9003 |
mhd_cv_headers_susv2="available, works always" |
| 9004 |
|
| 9005 |
;; |
| 9006 |
esac |
| 9007 |
fi |
| 9008 |
|
| 9009 |
else case e in #( |
| 9010 |
e) |
| 9011 |
mhd_cv_headers_susv2="not available" |
| 9012 |
|
| 9013 |
;; |
| 9014 |
esac |
| 9015 |
fi |
| 9016 |
{ mhd_cpsxfs_tmp_features_disableable=; unset mhd_cpsxfs_tmp_features_disableable;} |
| 9017 |
{ mhd_cpsxfs_tmp_src_xopen_allowed=; unset mhd_cpsxfs_tmp_src_xopen_allowed;} |
| 9018 |
{ mhd_cpsxfs_tmp_extentions_allowed=; unset mhd_cpsxfs_tmp_extentions_allowed;} |
| 9019 |
{ mhd_cpsxfs_tmp_features_available=; unset mhd_cpsxfs_tmp_features_available;} |
| 9020 |
|
| 9021 |
|
| 9022 |
;; |
| 9023 |
esac |
| 9024 |
fi |
| 9025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_susv2" >&5 |
| 9026 |
printf "%s\n" "$mhd_cv_headers_susv2" >&6; } |
| 9027 |
if `echo "${mhd_cv_headers_susv2}" | $GREP '^available' >/dev/null 2>&1` |
| 9028 |
then : |
| 9029 |
|
| 9030 |
if `echo "${mhd_cv_headers_susv2}" | $FGREP 'does not work with _XOPEN_SOURCE' >/dev/null 2>&1` |
| 9031 |
then : |
| 9032 |
: |
| 9033 |
else case e in #( |
| 9034 |
e) mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE 500 |
| 9035 |
" |
| 9036 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 9037 |
then : |
| 9038 |
mhd_mse_xopen_flags="_XOPEN_SOURCE=500" |
| 9039 |
else case e in #( |
| 9040 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE=500" |
| 9041 |
;; |
| 9042 |
esac |
| 9043 |
fi |
| 9044 |
;; |
| 9045 |
esac |
| 9046 |
fi |
| 9047 |
|
| 9048 |
mhd_mse_xopen_features="${mhd_cv_headers_susv2}" |
| 9049 |
|
| 9050 |
else case e in #( |
| 9051 |
e) mhd_mse_xopen_features="${mhd_cv_headers_susv2}" |
| 9052 |
|
| 9053 |
;; |
| 9054 |
esac |
| 9055 |
fi |
| 9056 |
|
| 9057 |
|
| 9058 |
|
| 9059 |
|
| 9060 |
;; |
| 9061 |
esac |
| 9062 |
fi |
| 9063 |
|
| 9064 |
|
| 9065 |
|
| 9066 |
|
| 9067 |
;; |
| 9068 |
esac |
| 9069 |
fi |
| 9070 |
|
| 9071 |
|
| 9072 |
|
| 9073 |
|
| 9074 |
fi |
| 9075 |
|
| 9076 |
if test "x${mhd_cv_macro__xopen_source_defined}" = "xno" && \ |
| 9077 |
test "x${mhd_cv_macro__xopen_source_def_fiveh}" = "xno" || \ |
| 9078 |
test "x${mhd_mse_xopen_features}" = "xnot available" |
| 9079 |
then : |
| 9080 |
|
| 9081 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE is already defined" >&5 |
| 9082 |
printf %s "checking whether _XOPEN_SOURCE is already defined... " >&6; } |
| 9083 |
if test ${mhd_cv_macro__xopen_source_defined+y} |
| 9084 |
then : |
| 9085 |
printf %s "(cached) " >&6 |
| 9086 |
else case e in #( |
| 9087 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9088 |
/* end confdefs.h. */ |
| 9089 |
|
| 9090 |
${mhd_mse_sys_ext_defines} |
| 9091 |
#ifndef _XOPEN_SOURCE |
| 9092 |
#error _XOPEN_SOURCE is not defined |
| 9093 |
choke me now; |
| 9094 |
#endif |
| 9095 |
|
| 9096 |
int |
| 9097 |
main (void) |
| 9098 |
{ |
| 9099 |
|
| 9100 |
; |
| 9101 |
return 0; |
| 9102 |
} |
| 9103 |
|
| 9104 |
_ACEOF |
| 9105 |
if ac_fn_c_try_compile "$LINENO" |
| 9106 |
then : |
| 9107 |
mhd_cv_macro__xopen_source_defined="yes" |
| 9108 |
else case e in #( |
| 9109 |
e) mhd_cv_macro__xopen_source_defined="no" |
| 9110 |
|
| 9111 |
;; |
| 9112 |
esac |
| 9113 |
fi |
| 9114 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9115 |
|
| 9116 |
;; |
| 9117 |
esac |
| 9118 |
fi |
| 9119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_defined" >&5 |
| 9120 |
printf "%s\n" "$mhd_cv_macro__xopen_source_defined" >&6; } |
| 9121 |
if test "x$mhd_cv_macro__xopen_source_defined" = x"yes" |
| 9122 |
then : |
| 9123 |
|
| 9124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether predefined value of _XOPEN_SOURCE is more or equal 500" >&5 |
| 9125 |
printf %s "checking whether predefined value of _XOPEN_SOURCE is more or equal 500... " >&6; } |
| 9126 |
if test ${mhd_cv_macro__xopen_source_def_fiveh+y} |
| 9127 |
then : |
| 9128 |
printf %s "(cached) " >&6 |
| 9129 |
else case e in #( |
| 9130 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9131 |
/* end confdefs.h. */ |
| 9132 |
|
| 9133 |
${mhd_mse_sys_ext_defines} |
| 9134 |
#if _XOPEN_SOURCE+0 < 500 |
| 9135 |
#error Value of _XOPEN_SOURCE is less than 500 |
| 9136 |
choke me now; |
| 9137 |
#endif |
| 9138 |
|
| 9139 |
int |
| 9140 |
main (void) |
| 9141 |
{ |
| 9142 |
int i = 0; i++; if(i) return i |
| 9143 |
; |
| 9144 |
return 0; |
| 9145 |
} |
| 9146 |
_ACEOF |
| 9147 |
if ac_fn_c_try_compile "$LINENO" |
| 9148 |
then : |
| 9149 |
mhd_cv_macro__xopen_source_def_fiveh="yes" |
| 9150 |
else case e in #( |
| 9151 |
e) mhd_cv_macro__xopen_source_def_fiveh="no" |
| 9152 |
;; |
| 9153 |
esac |
| 9154 |
fi |
| 9155 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9156 |
;; |
| 9157 |
esac |
| 9158 |
fi |
| 9159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_def_fiveh" >&5 |
| 9160 |
printf "%s\n" "$mhd_cv_macro__xopen_source_def_fiveh" >&6; } |
| 9161 |
else case e in #( |
| 9162 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _XOPEN_SOURCE with value 1" >&5 |
| 9163 |
printf %s "checking whether headers accept _XOPEN_SOURCE with value 1... " >&6; } |
| 9164 |
if test ${mhd_cv_define__xopen_source_accepted_1+y} |
| 9165 |
then : |
| 9166 |
printf %s "(cached) " >&6 |
| 9167 |
else case e in #( |
| 9168 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9169 |
/* end confdefs.h. */ |
| 9170 |
|
| 9171 |
${mhd_mse_sys_ext_defines} |
| 9172 |
#define _XOPEN_SOURCE 1 |
| 9173 |
/* Start of MHD basic test includes */ |
| 9174 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 9175 |
|
| 9176 |
|
| 9177 |
int |
| 9178 |
main (void) |
| 9179 |
{ |
| 9180 |
int i = 1; i++; if(i) return i |
| 9181 |
; |
| 9182 |
return 0; |
| 9183 |
} |
| 9184 |
|
| 9185 |
_ACEOF |
| 9186 |
if ac_fn_c_try_compile "$LINENO" |
| 9187 |
then : |
| 9188 |
mhd_cv_define__xopen_source_accepted_1="yes" |
| 9189 |
else case e in #( |
| 9190 |
e) mhd_cv_define__xopen_source_accepted_1="no" |
| 9191 |
;; |
| 9192 |
esac |
| 9193 |
fi |
| 9194 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9195 |
|
| 9196 |
;; |
| 9197 |
esac |
| 9198 |
fi |
| 9199 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_source_accepted_1" >&5 |
| 9200 |
printf "%s\n" "$mhd_cv_define__xopen_source_accepted_1" >&6; } |
| 9201 |
if test "x$mhd_cv_define__xopen_source_accepted_1" = x"yes" |
| 9202 |
then : |
| 9203 |
mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE 1 |
| 9204 |
" |
| 9205 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 9206 |
then : |
| 9207 |
mhd_mse_xopen_flags="_XOPEN_SOURCE=1" |
| 9208 |
else case e in #( |
| 9209 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE=1" |
| 9210 |
;; |
| 9211 |
esac |
| 9212 |
fi |
| 9213 |
|
| 9214 |
fi |
| 9215 |
;; |
| 9216 |
esac |
| 9217 |
fi |
| 9218 |
|
| 9219 |
if test "x${mhd_cv_define__xopen_source_accepted_1}" = "xyes" || \ |
| 9220 |
test "x${mhd_cv_macro__xopen_source_def_fiveh}" = "xno" |
| 9221 |
then : |
| 9222 |
|
| 9223 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE_EXTENDED is already defined" >&5 |
| 9224 |
printf %s "checking whether _XOPEN_SOURCE_EXTENDED is already defined... " >&6; } |
| 9225 |
if test ${mhd_cv_macro__xopen_source_extended_defined+y} |
| 9226 |
then : |
| 9227 |
printf %s "(cached) " >&6 |
| 9228 |
else case e in #( |
| 9229 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9230 |
/* end confdefs.h. */ |
| 9231 |
|
| 9232 |
|
| 9233 |
${mhd_mse_sys_ext_defines} |
| 9234 |
|
| 9235 |
#ifndef _XOPEN_SOURCE_EXTENDED |
| 9236 |
#error _XOPEN_SOURCE_EXTENDED is not defined |
| 9237 |
choke me now; |
| 9238 |
#endif |
| 9239 |
|
| 9240 |
int |
| 9241 |
main (void) |
| 9242 |
{ |
| 9243 |
|
| 9244 |
; |
| 9245 |
return 0; |
| 9246 |
} |
| 9247 |
|
| 9248 |
_ACEOF |
| 9249 |
if ac_fn_c_try_compile "$LINENO" |
| 9250 |
then : |
| 9251 |
mhd_cv_macro__xopen_source_extended_defined="yes" |
| 9252 |
else case e in #( |
| 9253 |
e) mhd_cv_macro__xopen_source_extended_defined="no" |
| 9254 |
|
| 9255 |
;; |
| 9256 |
esac |
| 9257 |
fi |
| 9258 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9259 |
|
| 9260 |
;; |
| 9261 |
esac |
| 9262 |
fi |
| 9263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_source_extended_defined" >&5 |
| 9264 |
printf "%s\n" "$mhd_cv_macro__xopen_source_extended_defined" >&6; } |
| 9265 |
if test "x$mhd_cv_macro__xopen_source_extended_defined" = x"yes" |
| 9266 |
then : |
| 9267 |
|
| 9268 |
else case e in #( |
| 9269 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _XOPEN_SOURCE_EXTENDED" >&5 |
| 9270 |
printf %s "checking whether headers accept _XOPEN_SOURCE_EXTENDED... " >&6; } |
| 9271 |
if test ${mhd_cv_define__xopen_source_extended_accepted+y} |
| 9272 |
then : |
| 9273 |
printf %s "(cached) " >&6 |
| 9274 |
else case e in #( |
| 9275 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9276 |
/* end confdefs.h. */ |
| 9277 |
|
| 9278 |
|
| 9279 |
${mhd_mse_sys_ext_defines} |
| 9280 |
|
| 9281 |
#define _XOPEN_SOURCE_EXTENDED 1 |
| 9282 |
/* Start of MHD basic test includes */ |
| 9283 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 9284 |
|
| 9285 |
|
| 9286 |
int |
| 9287 |
main (void) |
| 9288 |
{ |
| 9289 |
int i = 1; i++; if(i) return i |
| 9290 |
; |
| 9291 |
return 0; |
| 9292 |
} |
| 9293 |
|
| 9294 |
_ACEOF |
| 9295 |
if ac_fn_c_try_compile "$LINENO" |
| 9296 |
then : |
| 9297 |
mhd_cv_define__xopen_source_extended_accepted="yes" |
| 9298 |
else case e in #( |
| 9299 |
e) mhd_cv_define__xopen_source_extended_accepted="no" |
| 9300 |
;; |
| 9301 |
esac |
| 9302 |
fi |
| 9303 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9304 |
|
| 9305 |
;; |
| 9306 |
esac |
| 9307 |
fi |
| 9308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_source_extended_accepted" >&5 |
| 9309 |
printf "%s\n" "$mhd_cv_define__xopen_source_extended_accepted" >&6; } |
| 9310 |
if test "x$mhd_cv_define__xopen_source_extended_accepted" = x"yes" |
| 9311 |
then : |
| 9312 |
mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_SOURCE_EXTENDED 1 |
| 9313 |
" |
| 9314 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 9315 |
then : |
| 9316 |
mhd_mse_xopen_flags="_XOPEN_SOURCE_EXTENDED" |
| 9317 |
else case e in #( |
| 9318 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_SOURCE_EXTENDED" |
| 9319 |
;; |
| 9320 |
esac |
| 9321 |
fi |
| 9322 |
|
| 9323 |
else case e in #( |
| 9324 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_VERSION is already defined" >&5 |
| 9325 |
printf %s "checking whether _XOPEN_VERSION is already defined... " >&6; } |
| 9326 |
if test ${mhd_cv_macro__xopen_version_defined+y} |
| 9327 |
then : |
| 9328 |
printf %s "(cached) " >&6 |
| 9329 |
else case e in #( |
| 9330 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9331 |
/* end confdefs.h. */ |
| 9332 |
|
| 9333 |
|
| 9334 |
${mhd_mse_sys_ext_defines} |
| 9335 |
|
| 9336 |
#ifndef _XOPEN_VERSION |
| 9337 |
#error _XOPEN_VERSION is not defined |
| 9338 |
choke me now; |
| 9339 |
#endif |
| 9340 |
|
| 9341 |
int |
| 9342 |
main (void) |
| 9343 |
{ |
| 9344 |
|
| 9345 |
; |
| 9346 |
return 0; |
| 9347 |
} |
| 9348 |
|
| 9349 |
_ACEOF |
| 9350 |
if ac_fn_c_try_compile "$LINENO" |
| 9351 |
then : |
| 9352 |
mhd_cv_macro__xopen_version_defined="yes" |
| 9353 |
else case e in #( |
| 9354 |
e) mhd_cv_macro__xopen_version_defined="no" |
| 9355 |
|
| 9356 |
;; |
| 9357 |
esac |
| 9358 |
fi |
| 9359 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9360 |
|
| 9361 |
;; |
| 9362 |
esac |
| 9363 |
fi |
| 9364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__xopen_version_defined" >&5 |
| 9365 |
printf "%s\n" "$mhd_cv_macro__xopen_version_defined" >&6; } |
| 9366 |
if test "x$mhd_cv_macro__xopen_version_defined" = x"yes" |
| 9367 |
then : |
| 9368 |
|
| 9369 |
else case e in #( |
| 9370 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for value of _XOPEN_VERSION accepted by headers" >&5 |
| 9371 |
printf %s "checking for value of _XOPEN_VERSION accepted by headers... " >&6; } |
| 9372 |
if test ${mhd_cv_define__xopen_version_accepted+y} |
| 9373 |
then : |
| 9374 |
printf %s "(cached) " >&6 |
| 9375 |
else case e in #( |
| 9376 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9377 |
/* end confdefs.h. */ |
| 9378 |
|
| 9379 |
${mhd_mse_sys_ext_defines} |
| 9380 |
|
| 9381 |
#define _XOPEN_VERSION 4 |
| 9382 |
/* Start of MHD basic test includes */ |
| 9383 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 9384 |
|
| 9385 |
|
| 9386 |
int |
| 9387 |
main (void) |
| 9388 |
{ |
| 9389 |
int i = 1; i++; if(i) return i |
| 9390 |
; |
| 9391 |
return 0; |
| 9392 |
} |
| 9393 |
|
| 9394 |
_ACEOF |
| 9395 |
if ac_fn_c_try_compile "$LINENO" |
| 9396 |
then : |
| 9397 |
mhd_cv_define__xopen_version_accepted="4" |
| 9398 |
else case e in #( |
| 9399 |
e) |
| 9400 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9401 |
/* end confdefs.h. */ |
| 9402 |
|
| 9403 |
${mhd_mse_sys_ext_defines} |
| 9404 |
|
| 9405 |
#define _XOPEN_VERSION 3 |
| 9406 |
/* Start of MHD basic test includes */ |
| 9407 |
$mhd_basic_headers_includes /* End of MHD basic test includes */ |
| 9408 |
|
| 9409 |
|
| 9410 |
int |
| 9411 |
main (void) |
| 9412 |
{ |
| 9413 |
int i = 1; i++; if(i) return i |
| 9414 |
; |
| 9415 |
return 0; |
| 9416 |
} |
| 9417 |
|
| 9418 |
_ACEOF |
| 9419 |
if ac_fn_c_try_compile "$LINENO" |
| 9420 |
then : |
| 9421 |
mhd_cv_define__xopen_version_accepted="3" |
| 9422 |
else case e in #( |
| 9423 |
e) mhd_cv_define__xopen_version_accepted="no" |
| 9424 |
;; |
| 9425 |
esac |
| 9426 |
fi |
| 9427 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9428 |
|
| 9429 |
;; |
| 9430 |
esac |
| 9431 |
fi |
| 9432 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9433 |
|
| 9434 |
;; |
| 9435 |
esac |
| 9436 |
fi |
| 9437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_define__xopen_version_accepted" >&5 |
| 9438 |
printf "%s\n" "$mhd_cv_define__xopen_version_accepted" >&6; } |
| 9439 |
if test "x$mhd_cv_define__xopen_version_accepted" = x"no" |
| 9440 |
then : |
| 9441 |
: |
| 9442 |
else case e in #( |
| 9443 |
e) mhd_mse_xopen_defines="${mhd_mse_xopen_defines}#define _XOPEN_VERSION ${mhd_cv_define__xopen_version_accepted} |
| 9444 |
" |
| 9445 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 9446 |
then : |
| 9447 |
mhd_mse_xopen_flags="_XOPEN_VERSION=${mhd_cv_define__xopen_version_accepted}" |
| 9448 |
else case e in #( |
| 9449 |
e) mhd_mse_xopen_flags="${mhd_mse_xopen_flags} _XOPEN_VERSION=${mhd_cv_define__xopen_version_accepted}" |
| 9450 |
;; |
| 9451 |
esac |
| 9452 |
fi |
| 9453 |
;; |
| 9454 |
esac |
| 9455 |
fi |
| 9456 |
;; |
| 9457 |
esac |
| 9458 |
fi |
| 9459 |
|
| 9460 |
;; |
| 9461 |
esac |
| 9462 |
fi |
| 9463 |
;; |
| 9464 |
esac |
| 9465 |
fi |
| 9466 |
|
| 9467 |
|
| 9468 |
|
| 9469 |
fi |
| 9470 |
|
| 9471 |
|
| 9472 |
fi |
| 9473 |
|
| 9474 |
mhd_mse_sys_features_src=" |
| 9475 |
#ifdef __APPLE__ |
| 9476 |
#include <sys/socket.h> |
| 9477 |
#else |
| 9478 |
#error No useful system features. |
| 9479 |
choke me now; |
| 9480 |
#endif |
| 9481 |
|
| 9482 |
int main() |
| 9483 |
{ |
| 9484 |
#ifdef __APPLE__ |
| 9485 |
#ifndef sendfile |
| 9486 |
(void) sendfile; |
| 9487 |
#endif |
| 9488 |
#endif |
| 9489 |
return 0; |
| 9490 |
} |
| 9491 |
" |
| 9492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for useful system-specific features" >&5 |
| 9493 |
printf %s "checking for useful system-specific features... " >&6; } |
| 9494 |
if test ${mhd_cv_headers_useful_features_present+y} |
| 9495 |
then : |
| 9496 |
printf %s "(cached) " >&6 |
| 9497 |
else case e in #( |
| 9498 |
e) |
| 9499 |
mhd_SYS_EXT_SAVE_CFLAGS="$CFLAGS" |
| 9500 |
CFLAGS="$CFLAGS $ac_c_undeclared_builtin_options" |
| 9501 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9502 |
/* end confdefs.h. */ |
| 9503 |
|
| 9504 |
${mhd_mse_sys_ext_defines} |
| 9505 |
${mhd_mse_sys_features_src} |
| 9506 |
|
| 9507 |
_ACEOF |
| 9508 |
if ac_fn_c_try_compile "$LINENO" |
| 9509 |
then : |
| 9510 |
mhd_cv_headers_useful_features_present="yes" |
| 9511 |
else case e in #( |
| 9512 |
e) mhd_cv_headers_useful_features_present="no" |
| 9513 |
;; |
| 9514 |
esac |
| 9515 |
fi |
| 9516 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9517 |
esac |
| 9518 |
fi |
| 9519 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_useful_features_present" >&5 |
| 9520 |
printf "%s\n" "$mhd_cv_headers_useful_features_present" >&6; } |
| 9521 |
if test "x$mhd_cv_headers_useful_features_present" = x"yes" |
| 9522 |
then : |
| 9523 |
|
| 9524 |
if test "x${mhd_mse_xopen_flags}" = "x" |
| 9525 |
then : |
| 9526 |
: |
| 9527 |
else case e in #( |
| 9528 |
e) |
| 9529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether useful system-specific features works with ${mhd_mse_xopen_flags}" >&5 |
| 9530 |
printf %s "checking whether useful system-specific features works with ${mhd_mse_xopen_flags}... " >&6; } |
| 9531 |
if test ${mhd_cv_headers_useful_features_works_xopen+y} |
| 9532 |
then : |
| 9533 |
printf %s "(cached) " >&6 |
| 9534 |
else case e in #( |
| 9535 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9536 |
/* end confdefs.h. */ |
| 9537 |
|
| 9538 |
${mhd_mse_sys_ext_defines} |
| 9539 |
${mhd_mse_xopen_defines} |
| 9540 |
${mhd_mse_sys_features_src} |
| 9541 |
|
| 9542 |
_ACEOF |
| 9543 |
if ac_fn_c_try_compile "$LINENO" |
| 9544 |
then : |
| 9545 |
mhd_cv_headers_useful_features_works_xopen="yes" |
| 9546 |
else case e in #( |
| 9547 |
e) mhd_cv_headers_useful_features_works_xopen="no" |
| 9548 |
;; |
| 9549 |
esac |
| 9550 |
fi |
| 9551 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9552 |
esac |
| 9553 |
fi |
| 9554 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_headers_useful_features_works_xopen" >&5 |
| 9555 |
printf "%s\n" "$mhd_cv_headers_useful_features_works_xopen" >&6; } |
| 9556 |
;; |
| 9557 |
esac |
| 9558 |
fi |
| 9559 |
CFLAGS="$mhd_SYS_EXT_SAVE_CFLAGS" |
| 9560 |
{ mhd_SYS_EXT_SAVE_CFLAGS=; unset mhd_SYS_EXT_SAVE_CFLAGS;} |
| 9561 |
|
| 9562 |
|
| 9563 |
fi |
| 9564 |
|
| 9565 |
|
| 9566 |
if test "x${mhd_cv_headers_useful_features_present}" = "xyes" && \ |
| 9567 |
test "x${mhd_cv_headers_useful_features_works_xopen}" = "xno" && \ |
| 9568 |
test "x${mhd_mse_xopen_flags}" != "x" |
| 9569 |
then : |
| 9570 |
|
| 9571 |
if `echo "${mhd_mse_xopen_features}" | $FGREP ', activated by _XOPEN_SOURCE' >/dev/null 2>&1` |
| 9572 |
then : |
| 9573 |
|
| 9574 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: _XOPEN_SOURCE macro is required to activate all headers symbols, however some useful system-specific features does not work with _XOPEN_SOURCE. _XOPEN_SOURCE macro will not be used." >&5 |
| 9575 |
printf "%s\n" "$as_me: WARNING: _XOPEN_SOURCE macro is required to activate all headers symbols, however some useful system-specific features does not work with _XOPEN_SOURCE. _XOPEN_SOURCE macro will not be used." >&2;} |
| 9576 |
|
| 9577 |
|
| 9578 |
fi |
| 9579 |
|
| 9580 |
{ mhd_mse_xopen_defines=; unset mhd_mse_xopen_defines;} |
| 9581 |
{ mhd_mse_xopen_flags=; unset mhd_mse_xopen_flags;} |
| 9582 |
{ mhd_mse_xopen_values=; unset mhd_mse_xopen_values;} |
| 9583 |
|
| 9584 |
|
| 9585 |
fi |
| 9586 |
|
| 9587 |
{ mhd_mse_sys_features_src=; unset mhd_mse_sys_features_src;} |
| 9588 |
{ mhd_mse_xopen_defines=; unset mhd_mse_xopen_defines;} |
| 9589 |
{ mhd_mse_sys_ext_defines=; unset mhd_mse_sys_ext_defines;} |
| 9590 |
|
| 9591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for final set of defined symbols" >&5 |
| 9592 |
printf %s "checking for final set of defined symbols... " >&6; } |
| 9593 |
|
| 9594 |
for mhd_mse_Flag in ${mhd_mse_sys_ext_flags} ${mhd_mse_xopen_flags} |
| 9595 |
do |
| 9596 |
as_fn_append CPPFLAGS_ac " -D$mhd_mse_Flag" |
| 9597 |
|
| 9598 |
done |
| 9599 |
{ mhd_mse_Flag=; unset mhd_mse_Flag;} |
| 9600 |
mhd_mse_result=`echo ${mhd_mse_sys_ext_flags} ${mhd_mse_xopen_flags}` |
| 9601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_mse_result}" >&5 |
| 9602 |
printf "%s\n" "${mhd_mse_result}" >&6; } |
| 9603 |
{ mhd_mse_result=; unset mhd_mse_result;} |
| 9604 |
{ mhd_mse_xopen_flags=; unset mhd_mse_xopen_flags;} |
| 9605 |
{ mhd_mse_sys_ext_flags=; unset mhd_mse_sys_ext_flags;} |
| 9606 |
|
| 9607 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 9608 |
|
| 9609 |
# Check whether --enable-largefile was given. |
| 9610 |
if test ${enable_largefile+y} |
| 9611 |
then : |
| 9612 |
enableval=$enable_largefile; |
| 9613 |
fi |
| 9614 |
if test "$enable_largefile,$enable_year2038" != no,no |
| 9615 |
then : |
| 9616 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for large files" >&5 |
| 9617 |
printf %s "checking for $CPPFLAGS option for large files... " >&6; } |
| 9618 |
if test ${ac_cv_sys_largefile_opts+y} |
| 9619 |
then : |
| 9620 |
printf %s "(cached) " >&6 |
| 9621 |
else case e in #( |
| 9622 |
e) ac_save_CPPFLAGS=$CPPFLAGS |
| 9623 |
ac_opt_found=no |
| 9624 |
for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do |
| 9625 |
if test x"$ac_opt" != x"none needed" |
| 9626 |
then : |
| 9627 |
CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 9628 |
fi |
| 9629 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9630 |
/* end confdefs.h. */ |
| 9631 |
#include <sys/types.h> |
| 9632 |
#ifndef FTYPE |
| 9633 |
# define FTYPE off_t |
| 9634 |
#endif |
| 9635 |
/* Check that FTYPE can represent 2**63 - 1 correctly. |
| 9636 |
We can't simply define LARGE_FTYPE to be 9223372036854775807, |
| 9637 |
since some C++ compilers masquerading as C compilers |
| 9638 |
incorrectly reject 9223372036854775807. */ |
| 9639 |
#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) |
| 9640 |
int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 |
| 9641 |
&& LARGE_FTYPE % 2147483647 == 1) |
| 9642 |
? 1 : -1]; |
| 9643 |
int |
| 9644 |
main (void) |
| 9645 |
{ |
| 9646 |
|
| 9647 |
; |
| 9648 |
return 0; |
| 9649 |
} |
| 9650 |
_ACEOF |
| 9651 |
if ac_fn_c_try_compile "$LINENO" |
| 9652 |
then : |
| 9653 |
if test x"$ac_opt" = x"none needed" |
| 9654 |
then : |
| 9655 |
# GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. |
| 9656 |
CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t" |
| 9657 |
if ac_fn_c_try_compile "$LINENO" |
| 9658 |
then : |
| 9659 |
|
| 9660 |
else case e in #( |
| 9661 |
e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64" |
| 9662 |
if ac_fn_c_try_compile "$LINENO" |
| 9663 |
then : |
| 9664 |
ac_opt='-D_FILE_OFFSET_BITS=64' |
| 9665 |
fi |
| 9666 |
rm -f core conftest.err conftest.$ac_objext conftest.beam ;; |
| 9667 |
esac |
| 9668 |
fi |
| 9669 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 9670 |
fi |
| 9671 |
ac_cv_sys_largefile_opts=$ac_opt |
| 9672 |
ac_opt_found=yes |
| 9673 |
fi |
| 9674 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9675 |
test $ac_opt_found = no || break |
| 9676 |
done |
| 9677 |
CPPFLAGS=$ac_save_CPPFLAGS |
| 9678 |
|
| 9679 |
test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; |
| 9680 |
esac |
| 9681 |
fi |
| 9682 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 |
| 9683 |
printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } |
| 9684 |
|
| 9685 |
ac_have_largefile=yes |
| 9686 |
case $ac_cv_sys_largefile_opts in #( |
| 9687 |
"none needed") : |
| 9688 |
;; #( |
| 9689 |
"supported through gnulib") : |
| 9690 |
;; #( |
| 9691 |
"support not detected") : |
| 9692 |
ac_have_largefile=no ;; #( |
| 9693 |
"-D_FILE_OFFSET_BITS=64") : |
| 9694 |
|
| 9695 |
printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h |
| 9696 |
;; #( |
| 9697 |
"-D_LARGE_FILES=1") : |
| 9698 |
|
| 9699 |
printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h |
| 9700 |
;; #( |
| 9701 |
*) : |
| 9702 |
as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; |
| 9703 |
esac |
| 9704 |
|
| 9705 |
if test "$enable_year2038" != no |
| 9706 |
then : |
| 9707 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CPPFLAGS option for timestamps after 2038" >&5 |
| 9708 |
printf %s "checking for $CPPFLAGS option for timestamps after 2038... " >&6; } |
| 9709 |
if test ${ac_cv_sys_year2038_opts+y} |
| 9710 |
then : |
| 9711 |
printf %s "(cached) " >&6 |
| 9712 |
else case e in #( |
| 9713 |
e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 9714 |
ac_opt_found=no |
| 9715 |
for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do |
| 9716 |
if test x"$ac_opt" != x"none needed" |
| 9717 |
then : |
| 9718 |
CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" |
| 9719 |
fi |
| 9720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9721 |
/* end confdefs.h. */ |
| 9722 |
|
| 9723 |
#include <time.h> |
| 9724 |
/* Check that time_t can represent 2**32 - 1 correctly. */ |
| 9725 |
#define LARGE_TIME_T \\ |
| 9726 |
((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) |
| 9727 |
int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 |
| 9728 |
&& LARGE_TIME_T % 65537 == 0) |
| 9729 |
? 1 : -1]; |
| 9730 |
|
| 9731 |
int |
| 9732 |
main (void) |
| 9733 |
{ |
| 9734 |
|
| 9735 |
; |
| 9736 |
return 0; |
| 9737 |
} |
| 9738 |
_ACEOF |
| 9739 |
if ac_fn_c_try_compile "$LINENO" |
| 9740 |
then : |
| 9741 |
ac_cv_sys_year2038_opts="$ac_opt" |
| 9742 |
ac_opt_found=yes |
| 9743 |
fi |
| 9744 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9745 |
test $ac_opt_found = no || break |
| 9746 |
done |
| 9747 |
CPPFLAGS="$ac_save_CPPFLAGS" |
| 9748 |
test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; |
| 9749 |
esac |
| 9750 |
fi |
| 9751 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 |
| 9752 |
printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } |
| 9753 |
|
| 9754 |
ac_have_year2038=yes |
| 9755 |
case $ac_cv_sys_year2038_opts in #( |
| 9756 |
"none needed") : |
| 9757 |
;; #( |
| 9758 |
"support not detected") : |
| 9759 |
ac_have_year2038=no ;; #( |
| 9760 |
"-D_TIME_BITS=64") : |
| 9761 |
|
| 9762 |
printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h |
| 9763 |
;; #( |
| 9764 |
"-D__MINGW_USE_VC2005_COMPAT") : |
| 9765 |
|
| 9766 |
printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h |
| 9767 |
;; #( |
| 9768 |
"-U_USE_32_BIT_TIME_T"*) : |
| 9769 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 9770 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 9771 |
as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It |
| 9772 |
will stop working after mid-January 2038. Remove |
| 9773 |
_USE_32BIT_TIME_T from the compiler flags. |
| 9774 |
See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 9775 |
*) : |
| 9776 |
as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; |
| 9777 |
esac |
| 9778 |
|
| 9779 |
fi |
| 9780 |
|
| 9781 |
fi |
| 9782 |
if test "$enable_year2038,$ac_have_year2038,$cross_compiling" = yes,no,no |
| 9783 |
then : |
| 9784 |
# If we're not cross compiling and 'touch' works with a large |
| 9785 |
# timestamp, then we can presume the system supports wider time_t |
| 9786 |
# *somehow* and we just weren't able to detect it. One common |
| 9787 |
# case that we deliberately *don't* probe for is a system that |
| 9788 |
# supports both 32- and 64-bit ABIs but only the 64-bit ABI offers |
| 9789 |
# wide time_t. (It would be inappropriate for us to override an |
| 9790 |
# intentional use of -m32.) Error out, demanding use of |
| 9791 |
# --disable-year2038 if this is intentional. |
| 9792 |
if TZ=UTC0 touch -t 210602070628.15 conftest.time 2>/dev/null |
| 9793 |
then : |
| 9794 |
case `TZ=UTC0 LC_ALL=C ls -l conftest.time 2>/dev/null` in #( |
| 9795 |
*'Feb 7 2106'* | *'Feb 7 17:10'*) : |
| 9796 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 9797 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 9798 |
as_fn_error $? "this system appears to support timestamps after |
| 9799 |
mid-January 2038, but no mechanism for enabling wide |
| 9800 |
'time_t' was detected. Did you mean to build a 64-bit |
| 9801 |
binary? (E.g., 'CC=\"${CC} -m64\"'.) To proceed with |
| 9802 |
32-bit time_t, configure with '--disable-year2038'. |
| 9803 |
See 'config.log' for more details" "$LINENO" 5; } ;; #( |
| 9804 |
*) : |
| 9805 |
;; |
| 9806 |
esac |
| 9807 |
fi |
| 9808 |
fi |
| 9809 |
|
| 9810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for declarations of fseeko and ftello" >&5 |
| 9811 |
printf %s "checking for declarations of fseeko and ftello... " >&6; } |
| 9812 |
if test ${ac_cv_func_fseeko_ftello+y} |
| 9813 |
then : |
| 9814 |
printf %s "(cached) " >&6 |
| 9815 |
else case e in #( |
| 9816 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9817 |
/* end confdefs.h. */ |
| 9818 |
|
| 9819 |
#if defined __hpux && !defined _LARGEFILE_SOURCE |
| 9820 |
# include <limits.h> |
| 9821 |
# if LONG_MAX >> 31 == 0 |
| 9822 |
# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 9823 |
# endif |
| 9824 |
#endif |
| 9825 |
#include <sys/types.h> /* for off_t */ |
| 9826 |
#include <stdio.h> |
| 9827 |
|
| 9828 |
int |
| 9829 |
main (void) |
| 9830 |
{ |
| 9831 |
|
| 9832 |
int (*fp1) (FILE *, off_t, int) = fseeko; |
| 9833 |
off_t (*fp2) (FILE *) = ftello; |
| 9834 |
return fseeko (stdin, 0, 0) |
| 9835 |
&& fp1 (stdin, 0, 0) |
| 9836 |
&& ftello (stdin) >= 0 |
| 9837 |
&& fp2 (stdin) >= 0; |
| 9838 |
|
| 9839 |
; |
| 9840 |
return 0; |
| 9841 |
} |
| 9842 |
_ACEOF |
| 9843 |
if ac_fn_c_try_compile "$LINENO" |
| 9844 |
then : |
| 9845 |
ac_cv_func_fseeko_ftello=yes |
| 9846 |
else case e in #( |
| 9847 |
e) ac_save_CPPFLAGS="$CPPFLAGS" |
| 9848 |
CPPFLAGS="$CPPFLAGS -D_LARGEFILE_SOURCE=1" |
| 9849 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9850 |
/* end confdefs.h. */ |
| 9851 |
|
| 9852 |
#if defined __hpux && !defined _LARGEFILE_SOURCE |
| 9853 |
# include <limits.h> |
| 9854 |
# if LONG_MAX >> 31 == 0 |
| 9855 |
# error "32-bit HP-UX 11/ia64 needs _LARGEFILE_SOURCE for fseeko in C++" |
| 9856 |
# endif |
| 9857 |
#endif |
| 9858 |
#include <sys/types.h> /* for off_t */ |
| 9859 |
#include <stdio.h> |
| 9860 |
|
| 9861 |
int |
| 9862 |
main (void) |
| 9863 |
{ |
| 9864 |
|
| 9865 |
int (*fp1) (FILE *, off_t, int) = fseeko; |
| 9866 |
off_t (*fp2) (FILE *) = ftello; |
| 9867 |
return fseeko (stdin, 0, 0) |
| 9868 |
&& fp1 (stdin, 0, 0) |
| 9869 |
&& ftello (stdin) >= 0 |
| 9870 |
&& fp2 (stdin) >= 0; |
| 9871 |
|
| 9872 |
; |
| 9873 |
return 0; |
| 9874 |
} |
| 9875 |
_ACEOF |
| 9876 |
if ac_fn_c_try_compile "$LINENO" |
| 9877 |
then : |
| 9878 |
ac_cv_func_fseeko_ftello="need _LARGEFILE_SOURCE" |
| 9879 |
else case e in #( |
| 9880 |
e) ac_cv_func_fseeko_ftello=no ;; |
| 9881 |
esac |
| 9882 |
fi |
| 9883 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9884 |
esac |
| 9885 |
fi |
| 9886 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 9887 |
esac |
| 9888 |
fi |
| 9889 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fseeko_ftello" >&5 |
| 9890 |
printf "%s\n" "$ac_cv_func_fseeko_ftello" >&6; } |
| 9891 |
if test "$ac_cv_func_fseeko_ftello" != no |
| 9892 |
then : |
| 9893 |
|
| 9894 |
printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h |
| 9895 |
|
| 9896 |
fi |
| 9897 |
if test "$ac_cv_func_fseeko_ftello" = "need _LARGEFILE_SOURCE" |
| 9898 |
then : |
| 9899 |
|
| 9900 |
printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 9901 |
|
| 9902 |
fi |
| 9903 |
|
| 9904 |
case `pwd` in |
| 9905 |
*\ * | *\ *) |
| 9906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
| 9907 |
printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; |
| 9908 |
esac |
| 9909 |
|
| 9910 |
|
| 9911 |
|
| 9912 |
macro_version='2.5.4' |
| 9913 |
macro_revision='2.5.4' |
| 9914 |
|
| 9915 |
|
| 9916 |
|
| 9917 |
|
| 9918 |
|
| 9919 |
|
| 9920 |
|
| 9921 |
|
| 9922 |
|
| 9923 |
|
| 9924 |
|
| 9925 |
|
| 9926 |
|
| 9927 |
|
| 9928 |
ltmain=$ac_aux_dir/ltmain.sh |
| 9929 |
|
| 9930 |
# Backslashify metacharacters that are still active within |
| 9931 |
# double-quoted strings. |
| 9932 |
sed_quote_subst='s/\(["`$\\]\)/\\\1/g' |
| 9933 |
|
| 9934 |
# Same as above, but do not quote variable references. |
| 9935 |
double_quote_subst='s/\(["`\\]\)/\\\1/g' |
| 9936 |
|
| 9937 |
# Sed substitution to delay expansion of an escaped shell variable in a |
| 9938 |
# double_quote_subst'ed string. |
| 9939 |
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
| 9940 |
|
| 9941 |
# Sed substitution to delay expansion of an escaped single quote. |
| 9942 |
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' |
| 9943 |
|
| 9944 |
# Sed substitution to avoid accidental globbing in evaled expressions |
| 9945 |
no_glob_subst='s/\*/\\\*/g' |
| 9946 |
|
| 9947 |
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 9948 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO |
| 9949 |
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO |
| 9950 |
|
| 9951 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
| 9952 |
printf %s "checking how to print strings... " >&6; } |
| 9953 |
# Test print first, because it will be a builtin if present. |
| 9954 |
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ |
| 9955 |
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 9956 |
ECHO='print -r --' |
| 9957 |
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
| 9958 |
ECHO='printf %s\n' |
| 9959 |
else |
| 9960 |
# Use this function as a fallback that always works. |
| 9961 |
func_fallback_echo () |
| 9962 |
{ |
| 9963 |
eval 'cat <<_LTECHO_EOF |
| 9964 |
$1 |
| 9965 |
_LTECHO_EOF' |
| 9966 |
} |
| 9967 |
ECHO='func_fallback_echo' |
| 9968 |
fi |
| 9969 |
|
| 9970 |
# func_echo_all arg... |
| 9971 |
# Invoke $ECHO with all args, space-separated. |
| 9972 |
func_echo_all () |
| 9973 |
{ |
| 9974 |
$ECHO "" |
| 9975 |
} |
| 9976 |
|
| 9977 |
case $ECHO in |
| 9978 |
printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 |
| 9979 |
printf "%s\n" "printf" >&6; } ;; |
| 9980 |
print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 |
| 9981 |
printf "%s\n" "print -r" >&6; } ;; |
| 9982 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 |
| 9983 |
printf "%s\n" "cat" >&6; } ;; |
| 9984 |
esac |
| 9985 |
|
| 9986 |
|
| 9987 |
|
| 9988 |
|
| 9989 |
|
| 9990 |
|
| 9991 |
|
| 9992 |
|
| 9993 |
|
| 9994 |
|
| 9995 |
|
| 9996 |
|
| 9997 |
|
| 9998 |
|
| 9999 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
| 10000 |
printf %s "checking for a sed that does not truncate output... " >&6; } |
| 10001 |
if test ${ac_cv_path_SED+y} |
| 10002 |
then : |
| 10003 |
printf %s "(cached) " >&6 |
| 10004 |
else case e in #( |
| 10005 |
e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
| 10006 |
for ac_i in 1 2 3 4 5 6 7; do |
| 10007 |
ac_script="$ac_script$as_nl$ac_script" |
| 10008 |
done |
| 10009 |
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed |
| 10010 |
{ ac_script=; unset ac_script;} |
| 10011 |
if test -z "$SED"; then |
| 10012 |
ac_path_SED_found=false |
| 10013 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 10014 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10015 |
for as_dir in $PATH |
| 10016 |
do |
| 10017 |
IFS=$as_save_IFS |
| 10018 |
case $as_dir in #((( |
| 10019 |
'') as_dir=./ ;; |
| 10020 |
*/) ;; |
| 10021 |
*) as_dir=$as_dir/ ;; |
| 10022 |
esac |
| 10023 |
for ac_prog in sed gsed |
| 10024 |
do |
| 10025 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10026 |
ac_path_SED="$as_dir$ac_prog$ac_exec_ext" |
| 10027 |
as_fn_executable_p "$ac_path_SED" || continue |
| 10028 |
# Check for GNU ac_path_SED and select it if it is found. |
| 10029 |
# Check for GNU $ac_path_SED |
| 10030 |
case `"$ac_path_SED" --version 2>&1` in #( |
| 10031 |
*GNU*) |
| 10032 |
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
| 10033 |
#( |
| 10034 |
*) |
| 10035 |
ac_count=0 |
| 10036 |
printf %s 0123456789 >"conftest.in" |
| 10037 |
while : |
| 10038 |
do |
| 10039 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10040 |
mv "conftest.tmp" "conftest.in" |
| 10041 |
cp "conftest.in" "conftest.nl" |
| 10042 |
printf "%s\n" '' >> "conftest.nl" |
| 10043 |
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10044 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10045 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 10046 |
if test $ac_count -gt ${ac_path_SED_max-0}; then |
| 10047 |
# Best one so far, save it but keep looking for a better one |
| 10048 |
ac_cv_path_SED="$ac_path_SED" |
| 10049 |
ac_path_SED_max=$ac_count |
| 10050 |
fi |
| 10051 |
# 10*(2^10) chars as input seems more than enough |
| 10052 |
test $ac_count -gt 10 && break |
| 10053 |
done |
| 10054 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10055 |
esac |
| 10056 |
|
| 10057 |
$ac_path_SED_found && break 3 |
| 10058 |
done |
| 10059 |
done |
| 10060 |
done |
| 10061 |
IFS=$as_save_IFS |
| 10062 |
if test -z "$ac_cv_path_SED"; then |
| 10063 |
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
| 10064 |
fi |
| 10065 |
else |
| 10066 |
ac_cv_path_SED=$SED |
| 10067 |
fi |
| 10068 |
;; |
| 10069 |
esac |
| 10070 |
fi |
| 10071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
| 10072 |
printf "%s\n" "$ac_cv_path_SED" >&6; } |
| 10073 |
SED="$ac_cv_path_SED" |
| 10074 |
rm -f conftest.sed |
| 10075 |
|
| 10076 |
test -z "$SED" && SED=sed |
| 10077 |
Xsed="$SED -e 1s/^X//" |
| 10078 |
|
| 10079 |
|
| 10080 |
|
| 10081 |
|
| 10082 |
|
| 10083 |
|
| 10084 |
|
| 10085 |
|
| 10086 |
|
| 10087 |
|
| 10088 |
|
| 10089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 10090 |
printf %s "checking for egrep... " >&6; } |
| 10091 |
if test ${ac_cv_path_EGREP+y} |
| 10092 |
then : |
| 10093 |
printf %s "(cached) " >&6 |
| 10094 |
else case e in #( |
| 10095 |
e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 10096 |
then ac_cv_path_EGREP="$GREP -E" |
| 10097 |
else |
| 10098 |
if test -z "$EGREP"; then |
| 10099 |
ac_path_EGREP_found=false |
| 10100 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 10101 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10102 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 10103 |
do |
| 10104 |
IFS=$as_save_IFS |
| 10105 |
case $as_dir in #((( |
| 10106 |
'') as_dir=./ ;; |
| 10107 |
*/) ;; |
| 10108 |
*) as_dir=$as_dir/ ;; |
| 10109 |
esac |
| 10110 |
for ac_prog in egrep |
| 10111 |
do |
| 10112 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10113 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 10114 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 10115 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 10116 |
# Check for GNU $ac_path_EGREP |
| 10117 |
case `"$ac_path_EGREP" --version 2>&1` in #( |
| 10118 |
*GNU*) |
| 10119 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 10120 |
#( |
| 10121 |
*) |
| 10122 |
ac_count=0 |
| 10123 |
printf %s 0123456789 >"conftest.in" |
| 10124 |
while : |
| 10125 |
do |
| 10126 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 10127 |
mv "conftest.tmp" "conftest.in" |
| 10128 |
cp "conftest.in" "conftest.nl" |
| 10129 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
| 10130 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 10131 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 10132 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 10133 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 10134 |
# Best one so far, save it but keep looking for a better one |
| 10135 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 10136 |
ac_path_EGREP_max=$ac_count |
| 10137 |
fi |
| 10138 |
# 10*(2^10) chars as input seems more than enough |
| 10139 |
test $ac_count -gt 10 && break |
| 10140 |
done |
| 10141 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 10142 |
esac |
| 10143 |
|
| 10144 |
$ac_path_EGREP_found && break 3 |
| 10145 |
done |
| 10146 |
done |
| 10147 |
done |
| 10148 |
IFS=$as_save_IFS |
| 10149 |
if test -z "$ac_cv_path_EGREP"; then |
| 10150 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 10151 |
fi |
| 10152 |
else |
| 10153 |
ac_cv_path_EGREP=$EGREP |
| 10154 |
fi |
| 10155 |
|
| 10156 |
fi ;; |
| 10157 |
esac |
| 10158 |
fi |
| 10159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 10160 |
printf "%s\n" "$ac_cv_path_EGREP" >&6; } |
| 10161 |
EGREP="$ac_cv_path_EGREP" |
| 10162 |
|
| 10163 |
EGREP_TRADITIONAL=$EGREP |
| 10164 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP |
| 10165 |
|
| 10166 |
test -z "$GREP" && GREP=grep |
| 10167 |
|
| 10168 |
|
| 10169 |
|
| 10170 |
|
| 10171 |
|
| 10172 |
|
| 10173 |
|
| 10174 |
|
| 10175 |
|
| 10176 |
|
| 10177 |
|
| 10178 |
|
| 10179 |
|
| 10180 |
|
| 10181 |
|
| 10182 |
|
| 10183 |
|
| 10184 |
|
| 10185 |
|
| 10186 |
# Check whether --with-gnu-ld was given. |
| 10187 |
if test ${with_gnu_ld+y} |
| 10188 |
then : |
| 10189 |
withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes |
| 10190 |
else case e in #( |
| 10191 |
e) with_gnu_ld=no ;; |
| 10192 |
esac |
| 10193 |
fi |
| 10194 |
|
| 10195 |
ac_prog=ld |
| 10196 |
if test yes = "$GCC"; then |
| 10197 |
# Check if gcc -print-prog-name=ld gives a path. |
| 10198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
| 10199 |
printf %s "checking for ld used by $CC... " >&6; } |
| 10200 |
case $host in |
| 10201 |
*-*-mingw* | *-*-windows*) |
| 10202 |
# gcc leaves a trailing carriage return, which upsets mingw |
| 10203 |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 10204 |
*) |
| 10205 |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 10206 |
esac |
| 10207 |
case $ac_prog in |
| 10208 |
# Accept absolute paths. |
| 10209 |
[\\/]* | ?:[\\/]*) |
| 10210 |
re_direlt='/[^/][^/]*/\.\./' |
| 10211 |
# Canonicalize the pathname of ld |
| 10212 |
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` |
| 10213 |
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do |
| 10214 |
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
| 10215 |
done |
| 10216 |
test -z "$LD" && LD=$ac_prog |
| 10217 |
;; |
| 10218 |
"") |
| 10219 |
# If it fails, then pretend we aren't using GCC. |
| 10220 |
ac_prog=ld |
| 10221 |
;; |
| 10222 |
*) |
| 10223 |
# If it is relative, then search for the first ld in PATH. |
| 10224 |
with_gnu_ld=unknown |
| 10225 |
;; |
| 10226 |
esac |
| 10227 |
elif test yes = "$with_gnu_ld"; then |
| 10228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
| 10229 |
printf %s "checking for GNU ld... " >&6; } |
| 10230 |
else |
| 10231 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
| 10232 |
printf %s "checking for non-GNU ld... " >&6; } |
| 10233 |
fi |
| 10234 |
if test ${lt_cv_path_LD+y} |
| 10235 |
then : |
| 10236 |
printf %s "(cached) " >&6 |
| 10237 |
else case e in #( |
| 10238 |
e) if test -z "$LD"; then |
| 10239 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10240 |
for ac_dir in $PATH; do |
| 10241 |
IFS=$lt_save_ifs |
| 10242 |
test -z "$ac_dir" && ac_dir=. |
| 10243 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 10244 |
lt_cv_path_LD=$ac_dir/$ac_prog |
| 10245 |
# Check to see if the program is GNU ld. I'd rather use --version, |
| 10246 |
# but apparently some variants of GNU ld only accept -v. |
| 10247 |
# Break only if it was the GNU/non-GNU ld that we prefer. |
| 10248 |
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
| 10249 |
*GNU* | *'with BFD'*) |
| 10250 |
test no != "$with_gnu_ld" && break |
| 10251 |
;; |
| 10252 |
*) |
| 10253 |
test yes != "$with_gnu_ld" && break |
| 10254 |
;; |
| 10255 |
esac |
| 10256 |
fi |
| 10257 |
done |
| 10258 |
IFS=$lt_save_ifs |
| 10259 |
else |
| 10260 |
lt_cv_path_LD=$LD # Let the user override the test with a path. |
| 10261 |
fi ;; |
| 10262 |
esac |
| 10263 |
fi |
| 10264 |
|
| 10265 |
LD=$lt_cv_path_LD |
| 10266 |
if test -n "$LD"; then |
| 10267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 10268 |
printf "%s\n" "$LD" >&6; } |
| 10269 |
else |
| 10270 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10271 |
printf "%s\n" "no" >&6; } |
| 10272 |
fi |
| 10273 |
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 10274 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
| 10275 |
printf %s "checking if the linker ($LD) is GNU ld... " >&6; } |
| 10276 |
if test ${lt_cv_prog_gnu_ld+y} |
| 10277 |
then : |
| 10278 |
printf %s "(cached) " >&6 |
| 10279 |
else case e in #( |
| 10280 |
e) # I'd rather use --version here, but apparently some GNU lds only accept -v. |
| 10281 |
case `$LD -v 2>&1 </dev/null` in |
| 10282 |
*GNU* | *'with BFD'*) |
| 10283 |
lt_cv_prog_gnu_ld=yes |
| 10284 |
;; |
| 10285 |
*) |
| 10286 |
lt_cv_prog_gnu_ld=no |
| 10287 |
;; |
| 10288 |
esac ;; |
| 10289 |
esac |
| 10290 |
fi |
| 10291 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
| 10292 |
printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } |
| 10293 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 10294 |
|
| 10295 |
|
| 10296 |
|
| 10297 |
|
| 10298 |
|
| 10299 |
|
| 10300 |
|
| 10301 |
|
| 10302 |
|
| 10303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
| 10304 |
printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
| 10305 |
if test ${lt_cv_path_NM+y} |
| 10306 |
then : |
| 10307 |
printf %s "(cached) " >&6 |
| 10308 |
else case e in #( |
| 10309 |
e) if test -n "$NM"; then |
| 10310 |
# Let the user override the test. |
| 10311 |
lt_cv_path_NM=$NM |
| 10312 |
else |
| 10313 |
lt_nm_to_check=${ac_tool_prefix}nm |
| 10314 |
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
| 10315 |
lt_nm_to_check="$lt_nm_to_check nm" |
| 10316 |
fi |
| 10317 |
for lt_tmp_nm in $lt_nm_to_check; do |
| 10318 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 10319 |
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
| 10320 |
IFS=$lt_save_ifs |
| 10321 |
test -z "$ac_dir" && ac_dir=. |
| 10322 |
tmp_nm=$ac_dir/$lt_tmp_nm |
| 10323 |
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then |
| 10324 |
# Check to see if the nm accepts a BSD-compat flag. |
| 10325 |
# Adding the 'sed 1q' prevents false positives on HP-UX, which says: |
| 10326 |
# nm: unknown option "B" ignored |
| 10327 |
# Tru64's nm complains that /dev/null is an invalid object file |
| 10328 |
# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty |
| 10329 |
case $build_os in |
| 10330 |
mingw* | windows*) lt_bad_file=conftest.nm/nofile ;; |
| 10331 |
*) lt_bad_file=/dev/null ;; |
| 10332 |
esac |
| 10333 |
case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in |
| 10334 |
*$lt_bad_file* | *'Invalid file or object type'*) |
| 10335 |
lt_cv_path_NM="$tmp_nm -B" |
| 10336 |
break 2 |
| 10337 |
;; |
| 10338 |
*) |
| 10339 |
case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in |
| 10340 |
*/dev/null*) |
| 10341 |
lt_cv_path_NM="$tmp_nm -p" |
| 10342 |
break 2 |
| 10343 |
;; |
| 10344 |
*) |
| 10345 |
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
| 10346 |
continue # so that we can try to find one that supports BSD flags |
| 10347 |
;; |
| 10348 |
esac |
| 10349 |
;; |
| 10350 |
esac |
| 10351 |
fi |
| 10352 |
done |
| 10353 |
IFS=$lt_save_ifs |
| 10354 |
done |
| 10355 |
: ${lt_cv_path_NM=no} |
| 10356 |
fi ;; |
| 10357 |
esac |
| 10358 |
fi |
| 10359 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
| 10360 |
printf "%s\n" "$lt_cv_path_NM" >&6; } |
| 10361 |
if test no != "$lt_cv_path_NM"; then |
| 10362 |
NM=$lt_cv_path_NM |
| 10363 |
else |
| 10364 |
# Didn't find any BSD compatible name lister, look for dumpbin. |
| 10365 |
if test -n "$DUMPBIN"; then : |
| 10366 |
# Let the user override the test. |
| 10367 |
else |
| 10368 |
if test -n "$ac_tool_prefix"; then |
| 10369 |
for ac_prog in dumpbin "link -dump" |
| 10370 |
do |
| 10371 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 10372 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 10373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10374 |
printf %s "checking for $ac_word... " >&6; } |
| 10375 |
if test ${ac_cv_prog_DUMPBIN+y} |
| 10376 |
then : |
| 10377 |
printf %s "(cached) " >&6 |
| 10378 |
else case e in #( |
| 10379 |
e) if test -n "$DUMPBIN"; then |
| 10380 |
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. |
| 10381 |
else |
| 10382 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10383 |
for as_dir in $PATH |
| 10384 |
do |
| 10385 |
IFS=$as_save_IFS |
| 10386 |
case $as_dir in #((( |
| 10387 |
'') as_dir=./ ;; |
| 10388 |
*/) ;; |
| 10389 |
*) as_dir=$as_dir/ ;; |
| 10390 |
esac |
| 10391 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10392 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10393 |
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
| 10394 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10395 |
break 2 |
| 10396 |
fi |
| 10397 |
done |
| 10398 |
done |
| 10399 |
IFS=$as_save_IFS |
| 10400 |
|
| 10401 |
fi ;; |
| 10402 |
esac |
| 10403 |
fi |
| 10404 |
DUMPBIN=$ac_cv_prog_DUMPBIN |
| 10405 |
if test -n "$DUMPBIN"; then |
| 10406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
| 10407 |
printf "%s\n" "$DUMPBIN" >&6; } |
| 10408 |
else |
| 10409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10410 |
printf "%s\n" "no" >&6; } |
| 10411 |
fi |
| 10412 |
|
| 10413 |
|
| 10414 |
test -n "$DUMPBIN" && break |
| 10415 |
done |
| 10416 |
fi |
| 10417 |
if test -z "$DUMPBIN"; then |
| 10418 |
ac_ct_DUMPBIN=$DUMPBIN |
| 10419 |
for ac_prog in dumpbin "link -dump" |
| 10420 |
do |
| 10421 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 10422 |
set dummy $ac_prog; ac_word=$2 |
| 10423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10424 |
printf %s "checking for $ac_word... " >&6; } |
| 10425 |
if test ${ac_cv_prog_ac_ct_DUMPBIN+y} |
| 10426 |
then : |
| 10427 |
printf %s "(cached) " >&6 |
| 10428 |
else case e in #( |
| 10429 |
e) if test -n "$ac_ct_DUMPBIN"; then |
| 10430 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. |
| 10431 |
else |
| 10432 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10433 |
for as_dir in $PATH |
| 10434 |
do |
| 10435 |
IFS=$as_save_IFS |
| 10436 |
case $as_dir in #((( |
| 10437 |
'') as_dir=./ ;; |
| 10438 |
*/) ;; |
| 10439 |
*) as_dir=$as_dir/ ;; |
| 10440 |
esac |
| 10441 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10442 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10443 |
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
| 10444 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10445 |
break 2 |
| 10446 |
fi |
| 10447 |
done |
| 10448 |
done |
| 10449 |
IFS=$as_save_IFS |
| 10450 |
|
| 10451 |
fi ;; |
| 10452 |
esac |
| 10453 |
fi |
| 10454 |
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN |
| 10455 |
if test -n "$ac_ct_DUMPBIN"; then |
| 10456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
| 10457 |
printf "%s\n" "$ac_ct_DUMPBIN" >&6; } |
| 10458 |
else |
| 10459 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10460 |
printf "%s\n" "no" >&6; } |
| 10461 |
fi |
| 10462 |
|
| 10463 |
|
| 10464 |
test -n "$ac_ct_DUMPBIN" && break |
| 10465 |
done |
| 10466 |
|
| 10467 |
if test "x$ac_ct_DUMPBIN" = x; then |
| 10468 |
DUMPBIN=":" |
| 10469 |
else |
| 10470 |
case $cross_compiling:$ac_tool_warned in |
| 10471 |
yes:) |
| 10472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10473 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10474 |
ac_tool_warned=yes ;; |
| 10475 |
esac |
| 10476 |
DUMPBIN=$ac_ct_DUMPBIN |
| 10477 |
fi |
| 10478 |
fi |
| 10479 |
|
| 10480 |
case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in |
| 10481 |
*COFF*) |
| 10482 |
DUMPBIN="$DUMPBIN -symbols -headers" |
| 10483 |
;; |
| 10484 |
*) |
| 10485 |
DUMPBIN=: |
| 10486 |
;; |
| 10487 |
esac |
| 10488 |
fi |
| 10489 |
|
| 10490 |
if test : != "$DUMPBIN"; then |
| 10491 |
NM=$DUMPBIN |
| 10492 |
fi |
| 10493 |
fi |
| 10494 |
test -z "$NM" && NM=nm |
| 10495 |
|
| 10496 |
|
| 10497 |
|
| 10498 |
|
| 10499 |
|
| 10500 |
|
| 10501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
| 10502 |
printf %s "checking the name lister ($NM) interface... " >&6; } |
| 10503 |
if test ${lt_cv_nm_interface+y} |
| 10504 |
then : |
| 10505 |
printf %s "(cached) " >&6 |
| 10506 |
else case e in #( |
| 10507 |
e) lt_cv_nm_interface="BSD nm" |
| 10508 |
echo "int some_variable = 0;" > conftest.$ac_ext |
| 10509 |
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
| 10510 |
(eval "$ac_compile" 2>conftest.err) |
| 10511 |
cat conftest.err >&5 |
| 10512 |
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
| 10513 |
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
| 10514 |
cat conftest.err >&5 |
| 10515 |
(eval echo "\"\$as_me:$LINENO: output\"" >&5) |
| 10516 |
cat conftest.out >&5 |
| 10517 |
if $GREP 'External.*some_variable' conftest.out > /dev/null; then |
| 10518 |
lt_cv_nm_interface="MS dumpbin" |
| 10519 |
fi |
| 10520 |
rm -f conftest* ;; |
| 10521 |
esac |
| 10522 |
fi |
| 10523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
| 10524 |
printf "%s\n" "$lt_cv_nm_interface" >&6; } |
| 10525 |
|
| 10526 |
# find the maximum length of command line arguments |
| 10527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
| 10528 |
printf %s "checking the maximum length of command line arguments... " >&6; } |
| 10529 |
if test ${lt_cv_sys_max_cmd_len+y} |
| 10530 |
then : |
| 10531 |
printf %s "(cached) " >&6 |
| 10532 |
else case e in #( |
| 10533 |
e) i=0 |
| 10534 |
teststring=ABCD |
| 10535 |
|
| 10536 |
case $build_os in |
| 10537 |
msdosdjgpp*) |
| 10538 |
# On DJGPP, this test can blow up pretty badly due to problems in libc |
| 10539 |
# (any single argument exceeding 2000 bytes causes a buffer overrun |
| 10540 |
# during glob expansion). Even if it were fixed, the result of this |
| 10541 |
# check would be larger than it should be. |
| 10542 |
lt_cv_sys_max_cmd_len=12288; # 12K is about right |
| 10543 |
;; |
| 10544 |
|
| 10545 |
gnu* | ironclad*) |
| 10546 |
# Under GNU Hurd and Ironclad, this test is not required because there |
| 10547 |
# is no limit to the length of command line arguments. |
| 10548 |
# Libtool will interpret -1 as no limit whatsoever |
| 10549 |
lt_cv_sys_max_cmd_len=-1; |
| 10550 |
;; |
| 10551 |
|
| 10552 |
cygwin* | mingw* | windows* | cegcc*) |
| 10553 |
# On Win9x/ME, this test blows up -- it succeeds, but takes |
| 10554 |
# about 5 minutes as the teststring grows exponentially. |
| 10555 |
# Worse, since 9x/ME are not pre-emptively multitasking, |
| 10556 |
# you end up with a "frozen" computer, even though with patience |
| 10557 |
# the test eventually succeeds (with a max line length of 256k). |
| 10558 |
# Instead, let's just punt: use the minimum linelength reported by |
| 10559 |
# all of the supported platforms: 8192 (on NT/2K/XP). |
| 10560 |
lt_cv_sys_max_cmd_len=8192; |
| 10561 |
;; |
| 10562 |
|
| 10563 |
mint*) |
| 10564 |
# On MiNT this can take a long time and run out of memory. |
| 10565 |
lt_cv_sys_max_cmd_len=8192; |
| 10566 |
;; |
| 10567 |
|
| 10568 |
amigaos*) |
| 10569 |
# On AmigaOS with pdksh, this test takes hours, literally. |
| 10570 |
# So we just punt and use a minimum line length of 8192. |
| 10571 |
lt_cv_sys_max_cmd_len=8192; |
| 10572 |
;; |
| 10573 |
|
| 10574 |
darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) |
| 10575 |
# This has been around since 386BSD, at least. Likely further. |
| 10576 |
if test -x /sbin/sysctl; then |
| 10577 |
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
| 10578 |
elif test -x /usr/sbin/sysctl; then |
| 10579 |
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
| 10580 |
else |
| 10581 |
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
| 10582 |
fi |
| 10583 |
# And add a safety zone |
| 10584 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10585 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10586 |
;; |
| 10587 |
|
| 10588 |
interix*) |
| 10589 |
# We know the value 262144 and hardcode it with a safety zone (like BSD) |
| 10590 |
lt_cv_sys_max_cmd_len=196608 |
| 10591 |
;; |
| 10592 |
|
| 10593 |
os2*) |
| 10594 |
# The test takes a long time on OS/2. |
| 10595 |
lt_cv_sys_max_cmd_len=8192 |
| 10596 |
;; |
| 10597 |
|
| 10598 |
osf*) |
| 10599 |
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
| 10600 |
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
| 10601 |
# nice to cause kernel panics so lets avoid the loop below. |
| 10602 |
# First set a reasonable default. |
| 10603 |
lt_cv_sys_max_cmd_len=16384 |
| 10604 |
# |
| 10605 |
if test -x /sbin/sysconfig; then |
| 10606 |
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
| 10607 |
*1*) lt_cv_sys_max_cmd_len=-1 ;; |
| 10608 |
esac |
| 10609 |
fi |
| 10610 |
;; |
| 10611 |
sco3.2v5*) |
| 10612 |
lt_cv_sys_max_cmd_len=102400 |
| 10613 |
;; |
| 10614 |
sysv5* | sco5v6* | sysv4.2uw2*) |
| 10615 |
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
| 10616 |
if test -n "$kargmax"; then |
| 10617 |
lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` |
| 10618 |
else |
| 10619 |
lt_cv_sys_max_cmd_len=32768 |
| 10620 |
fi |
| 10621 |
;; |
| 10622 |
*) |
| 10623 |
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
| 10624 |
if test -n "$lt_cv_sys_max_cmd_len" && \ |
| 10625 |
test undefined != "$lt_cv_sys_max_cmd_len"; then |
| 10626 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
| 10627 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
| 10628 |
else |
| 10629 |
# Make teststring a little bigger before we do anything with it. |
| 10630 |
# a 1K string should be a reasonable start. |
| 10631 |
for i in 1 2 3 4 5 6 7 8; do |
| 10632 |
teststring=$teststring$teststring |
| 10633 |
done |
| 10634 |
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
| 10635 |
# If test is not a shell built-in, we'll probably end up computing a |
| 10636 |
# maximum length that is only half of the actual maximum length, but |
| 10637 |
# we can't tell. |
| 10638 |
while { test X`env echo "$teststring$teststring" 2>/dev/null` \ |
| 10639 |
= "X$teststring$teststring"; } >/dev/null 2>&1 && |
| 10640 |
test 17 != "$i" # 1/2 MB should be enough |
| 10641 |
do |
| 10642 |
i=`expr $i + 1` |
| 10643 |
teststring=$teststring$teststring |
| 10644 |
done |
| 10645 |
# Only check the string length outside the loop. |
| 10646 |
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` |
| 10647 |
teststring= |
| 10648 |
# Add a significant safety factor because C++ compilers can tack on |
| 10649 |
# massive amounts of additional arguments before passing them to the |
| 10650 |
# linker. It appears as though 1/2 is a usable value. |
| 10651 |
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
| 10652 |
fi |
| 10653 |
;; |
| 10654 |
esac |
| 10655 |
;; |
| 10656 |
esac |
| 10657 |
fi |
| 10658 |
|
| 10659 |
if test -n "$lt_cv_sys_max_cmd_len"; then |
| 10660 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
| 10661 |
printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } |
| 10662 |
else |
| 10663 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
| 10664 |
printf "%s\n" "none" >&6; } |
| 10665 |
fi |
| 10666 |
max_cmd_len=$lt_cv_sys_max_cmd_len |
| 10667 |
|
| 10668 |
|
| 10669 |
|
| 10670 |
|
| 10671 |
|
| 10672 |
|
| 10673 |
: ${CP="cp -f"} |
| 10674 |
: ${MV="mv -f"} |
| 10675 |
: ${RM="rm -f"} |
| 10676 |
|
| 10677 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 10678 |
lt_unset=unset |
| 10679 |
else |
| 10680 |
lt_unset=false |
| 10681 |
fi |
| 10682 |
|
| 10683 |
|
| 10684 |
|
| 10685 |
|
| 10686 |
|
| 10687 |
# test EBCDIC or ASCII |
| 10688 |
case `echo X|tr X '\101'` in |
| 10689 |
A) # ASCII based system |
| 10690 |
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr |
| 10691 |
lt_SP2NL='tr \040 \012' |
| 10692 |
lt_NL2SP='tr \015\012 \040\040' |
| 10693 |
;; |
| 10694 |
*) # EBCDIC based system |
| 10695 |
lt_SP2NL='tr \100 \n' |
| 10696 |
lt_NL2SP='tr \r\n \100\100' |
| 10697 |
;; |
| 10698 |
esac |
| 10699 |
|
| 10700 |
|
| 10701 |
|
| 10702 |
|
| 10703 |
|
| 10704 |
|
| 10705 |
|
| 10706 |
|
| 10707 |
|
| 10708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 |
| 10709 |
printf %s "checking how to convert $build file names to $host format... " >&6; } |
| 10710 |
if test ${lt_cv_to_host_file_cmd+y} |
| 10711 |
then : |
| 10712 |
printf %s "(cached) " >&6 |
| 10713 |
else case e in #( |
| 10714 |
e) case $host in |
| 10715 |
*-*-mingw* ) |
| 10716 |
case $build in |
| 10717 |
*-*-mingw* | *-*-windows* ) # actually msys |
| 10718 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 |
| 10719 |
;; |
| 10720 |
*-*-cygwin* ) |
| 10721 |
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 |
| 10722 |
;; |
| 10723 |
* ) # otherwise, assume *nix |
| 10724 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 |
| 10725 |
;; |
| 10726 |
esac |
| 10727 |
;; |
| 10728 |
*-*-cygwin* ) |
| 10729 |
case $build in |
| 10730 |
*-*-mingw* | *-*-windows* ) # actually msys |
| 10731 |
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin |
| 10732 |
;; |
| 10733 |
*-*-cygwin* ) |
| 10734 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10735 |
;; |
| 10736 |
* ) # otherwise, assume *nix |
| 10737 |
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin |
| 10738 |
;; |
| 10739 |
esac |
| 10740 |
;; |
| 10741 |
* ) # unhandled hosts (and "normal" native builds) |
| 10742 |
lt_cv_to_host_file_cmd=func_convert_file_noop |
| 10743 |
;; |
| 10744 |
esac |
| 10745 |
;; |
| 10746 |
esac |
| 10747 |
fi |
| 10748 |
|
| 10749 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 10750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 |
| 10751 |
printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } |
| 10752 |
|
| 10753 |
|
| 10754 |
|
| 10755 |
|
| 10756 |
|
| 10757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 |
| 10758 |
printf %s "checking how to convert $build file names to toolchain format... " >&6; } |
| 10759 |
if test ${lt_cv_to_tool_file_cmd+y} |
| 10760 |
then : |
| 10761 |
printf %s "(cached) " >&6 |
| 10762 |
else case e in #( |
| 10763 |
e) #assume ordinary cross tools, or native build. |
| 10764 |
lt_cv_to_tool_file_cmd=func_convert_file_noop |
| 10765 |
case $host in |
| 10766 |
*-*-mingw* | *-*-windows* ) |
| 10767 |
case $build in |
| 10768 |
*-*-mingw* | *-*-windows* ) # actually msys |
| 10769 |
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 |
| 10770 |
;; |
| 10771 |
esac |
| 10772 |
;; |
| 10773 |
esac |
| 10774 |
;; |
| 10775 |
esac |
| 10776 |
fi |
| 10777 |
|
| 10778 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 10779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 |
| 10780 |
printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } |
| 10781 |
|
| 10782 |
|
| 10783 |
|
| 10784 |
|
| 10785 |
|
| 10786 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
| 10787 |
printf %s "checking for $LD option to reload object files... " >&6; } |
| 10788 |
if test ${lt_cv_ld_reload_flag+y} |
| 10789 |
then : |
| 10790 |
printf %s "(cached) " >&6 |
| 10791 |
else case e in #( |
| 10792 |
e) lt_cv_ld_reload_flag='-r' ;; |
| 10793 |
esac |
| 10794 |
fi |
| 10795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
| 10796 |
printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } |
| 10797 |
reload_flag=$lt_cv_ld_reload_flag |
| 10798 |
case $reload_flag in |
| 10799 |
"" | " "*) ;; |
| 10800 |
*) reload_flag=" $reload_flag" ;; |
| 10801 |
esac |
| 10802 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10803 |
case $host_os in |
| 10804 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 10805 |
if test yes != "$GCC"; then |
| 10806 |
reload_cmds=false |
| 10807 |
fi |
| 10808 |
;; |
| 10809 |
darwin*) |
| 10810 |
if test yes = "$GCC"; then |
| 10811 |
reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' |
| 10812 |
else |
| 10813 |
reload_cmds='$LD$reload_flag -o $output$reload_objs' |
| 10814 |
fi |
| 10815 |
;; |
| 10816 |
esac |
| 10817 |
|
| 10818 |
|
| 10819 |
|
| 10820 |
|
| 10821 |
|
| 10822 |
|
| 10823 |
|
| 10824 |
|
| 10825 |
|
| 10826 |
# Extract the first word of "file", so it can be a program name with args. |
| 10827 |
set dummy file; ac_word=$2 |
| 10828 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10829 |
printf %s "checking for $ac_word... " >&6; } |
| 10830 |
if test ${ac_cv_prog_FILECMD+y} |
| 10831 |
then : |
| 10832 |
printf %s "(cached) " >&6 |
| 10833 |
else case e in #( |
| 10834 |
e) if test -n "$FILECMD"; then |
| 10835 |
ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. |
| 10836 |
else |
| 10837 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10838 |
for as_dir in $PATH |
| 10839 |
do |
| 10840 |
IFS=$as_save_IFS |
| 10841 |
case $as_dir in #((( |
| 10842 |
'') as_dir=./ ;; |
| 10843 |
*/) ;; |
| 10844 |
*) as_dir=$as_dir/ ;; |
| 10845 |
esac |
| 10846 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10847 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10848 |
ac_cv_prog_FILECMD="file" |
| 10849 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10850 |
break 2 |
| 10851 |
fi |
| 10852 |
done |
| 10853 |
done |
| 10854 |
IFS=$as_save_IFS |
| 10855 |
|
| 10856 |
test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":" |
| 10857 |
fi ;; |
| 10858 |
esac |
| 10859 |
fi |
| 10860 |
FILECMD=$ac_cv_prog_FILECMD |
| 10861 |
if test -n "$FILECMD"; then |
| 10862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 |
| 10863 |
printf "%s\n" "$FILECMD" >&6; } |
| 10864 |
else |
| 10865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10866 |
printf "%s\n" "no" >&6; } |
| 10867 |
fi |
| 10868 |
|
| 10869 |
|
| 10870 |
|
| 10871 |
|
| 10872 |
|
| 10873 |
|
| 10874 |
|
| 10875 |
|
| 10876 |
if test -n "$ac_tool_prefix"; then |
| 10877 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 10878 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 10879 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10880 |
printf %s "checking for $ac_word... " >&6; } |
| 10881 |
if test ${ac_cv_prog_OBJDUMP+y} |
| 10882 |
then : |
| 10883 |
printf %s "(cached) " >&6 |
| 10884 |
else case e in #( |
| 10885 |
e) if test -n "$OBJDUMP"; then |
| 10886 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 10887 |
else |
| 10888 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10889 |
for as_dir in $PATH |
| 10890 |
do |
| 10891 |
IFS=$as_save_IFS |
| 10892 |
case $as_dir in #((( |
| 10893 |
'') as_dir=./ ;; |
| 10894 |
*/) ;; |
| 10895 |
*) as_dir=$as_dir/ ;; |
| 10896 |
esac |
| 10897 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10898 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10899 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 10900 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10901 |
break 2 |
| 10902 |
fi |
| 10903 |
done |
| 10904 |
done |
| 10905 |
IFS=$as_save_IFS |
| 10906 |
|
| 10907 |
fi ;; |
| 10908 |
esac |
| 10909 |
fi |
| 10910 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 10911 |
if test -n "$OBJDUMP"; then |
| 10912 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 10913 |
printf "%s\n" "$OBJDUMP" >&6; } |
| 10914 |
else |
| 10915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10916 |
printf "%s\n" "no" >&6; } |
| 10917 |
fi |
| 10918 |
|
| 10919 |
|
| 10920 |
fi |
| 10921 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| 10922 |
ac_ct_OBJDUMP=$OBJDUMP |
| 10923 |
# Extract the first word of "objdump", so it can be a program name with args. |
| 10924 |
set dummy objdump; ac_word=$2 |
| 10925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 10926 |
printf %s "checking for $ac_word... " >&6; } |
| 10927 |
if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 10928 |
then : |
| 10929 |
printf %s "(cached) " >&6 |
| 10930 |
else case e in #( |
| 10931 |
e) if test -n "$ac_ct_OBJDUMP"; then |
| 10932 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 10933 |
else |
| 10934 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10935 |
for as_dir in $PATH |
| 10936 |
do |
| 10937 |
IFS=$as_save_IFS |
| 10938 |
case $as_dir in #((( |
| 10939 |
'') as_dir=./ ;; |
| 10940 |
*/) ;; |
| 10941 |
*) as_dir=$as_dir/ ;; |
| 10942 |
esac |
| 10943 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 10944 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 10945 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 10946 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 10947 |
break 2 |
| 10948 |
fi |
| 10949 |
done |
| 10950 |
done |
| 10951 |
IFS=$as_save_IFS |
| 10952 |
|
| 10953 |
fi ;; |
| 10954 |
esac |
| 10955 |
fi |
| 10956 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 10957 |
if test -n "$ac_ct_OBJDUMP"; then |
| 10958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 10959 |
printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 10960 |
else |
| 10961 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10962 |
printf "%s\n" "no" >&6; } |
| 10963 |
fi |
| 10964 |
|
| 10965 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 10966 |
OBJDUMP="false" |
| 10967 |
else |
| 10968 |
case $cross_compiling:$ac_tool_warned in |
| 10969 |
yes:) |
| 10970 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 10971 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 10972 |
ac_tool_warned=yes ;; |
| 10973 |
esac |
| 10974 |
OBJDUMP=$ac_ct_OBJDUMP |
| 10975 |
fi |
| 10976 |
else |
| 10977 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 10978 |
fi |
| 10979 |
|
| 10980 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 10981 |
|
| 10982 |
|
| 10983 |
|
| 10984 |
|
| 10985 |
|
| 10986 |
|
| 10987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
| 10988 |
printf %s "checking how to recognize dependent libraries... " >&6; } |
| 10989 |
if test ${lt_cv_deplibs_check_method+y} |
| 10990 |
then : |
| 10991 |
printf %s "(cached) " >&6 |
| 10992 |
else case e in #( |
| 10993 |
e) lt_cv_file_magic_cmd='$MAGIC_CMD' |
| 10994 |
lt_cv_file_magic_test_file= |
| 10995 |
lt_cv_deplibs_check_method='unknown' |
| 10996 |
# Need to set the preceding variable on all platforms that support |
| 10997 |
# interlibrary dependencies. |
| 10998 |
# 'none' -- dependencies not supported. |
| 10999 |
# 'unknown' -- same as none, but documents that we really don't know. |
| 11000 |
# 'pass_all' -- all dependencies passed with no checks. |
| 11001 |
# 'file_magic [[regex]]' -- check by looking for files in library path |
| 11002 |
# that responds to the $file_magic_cmd with a given extended regex. |
| 11003 |
# If you have 'file' or equivalent on your system and you're not sure |
| 11004 |
# whether 'pass_all' will *always* work, you probably want this one. |
| 11005 |
|
| 11006 |
case $host_os in |
| 11007 |
aix[4-9]*) |
| 11008 |
lt_cv_deplibs_check_method=pass_all |
| 11009 |
;; |
| 11010 |
|
| 11011 |
beos*) |
| 11012 |
lt_cv_deplibs_check_method=pass_all |
| 11013 |
;; |
| 11014 |
|
| 11015 |
bsdi[45]*) |
| 11016 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
| 11017 |
lt_cv_file_magic_cmd='$FILECMD -L' |
| 11018 |
lt_cv_file_magic_test_file=/shlib/libc.so |
| 11019 |
;; |
| 11020 |
|
| 11021 |
cygwin*) |
| 11022 |
# func_win32_libid is a shell function defined in ltmain.sh |
| 11023 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 11024 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 11025 |
;; |
| 11026 |
|
| 11027 |
mingw* | windows* | pw32*) |
| 11028 |
# Base MSYS/MinGW do not provide the 'file' command needed by |
| 11029 |
# func_win32_libid shell function, so use a weaker test based on 'objdump', |
| 11030 |
# unless we find 'file', for example because we are cross-compiling. |
| 11031 |
if ( file / ) >/dev/null 2>&1; then |
| 11032 |
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
| 11033 |
lt_cv_file_magic_cmd='func_win32_libid' |
| 11034 |
else |
| 11035 |
# Keep this pattern in sync with the one in func_win32_libid. |
| 11036 |
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)' |
| 11037 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 11038 |
fi |
| 11039 |
;; |
| 11040 |
|
| 11041 |
cegcc*) |
| 11042 |
# use the weaker test based on 'objdump'. See mingw*. |
| 11043 |
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' |
| 11044 |
lt_cv_file_magic_cmd='$OBJDUMP -f' |
| 11045 |
;; |
| 11046 |
|
| 11047 |
darwin* | rhapsody*) |
| 11048 |
lt_cv_deplibs_check_method=pass_all |
| 11049 |
;; |
| 11050 |
|
| 11051 |
freebsd* | dragonfly* | midnightbsd*) |
| 11052 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 11053 |
case $host_cpu in |
| 11054 |
i*86 ) |
| 11055 |
# Not sure whether the presence of OpenBSD here was a mistake. |
| 11056 |
# Let's accept both of them until this is cleared up. |
| 11057 |
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
| 11058 |
lt_cv_file_magic_cmd=$FILECMD |
| 11059 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
| 11060 |
;; |
| 11061 |
esac |
| 11062 |
else |
| 11063 |
lt_cv_deplibs_check_method=pass_all |
| 11064 |
fi |
| 11065 |
;; |
| 11066 |
|
| 11067 |
haiku*) |
| 11068 |
lt_cv_deplibs_check_method=pass_all |
| 11069 |
;; |
| 11070 |
|
| 11071 |
hpux10.20* | hpux11*) |
| 11072 |
lt_cv_file_magic_cmd=$FILECMD |
| 11073 |
case $host_cpu in |
| 11074 |
ia64*) |
| 11075 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
| 11076 |
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
| 11077 |
;; |
| 11078 |
hppa*64*) |
| 11079 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
| 11080 |
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
| 11081 |
;; |
| 11082 |
*) |
| 11083 |
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
| 11084 |
lt_cv_file_magic_test_file=/usr/lib/libc.sl |
| 11085 |
;; |
| 11086 |
esac |
| 11087 |
;; |
| 11088 |
|
| 11089 |
interix[3-9]*) |
| 11090 |
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
| 11091 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
| 11092 |
;; |
| 11093 |
|
| 11094 |
irix5* | irix6* | nonstopux*) |
| 11095 |
case $LD in |
| 11096 |
*-32|*"-32 ") libmagic=32-bit;; |
| 11097 |
*-n32|*"-n32 ") libmagic=N32;; |
| 11098 |
*-64|*"-64 ") libmagic=64-bit;; |
| 11099 |
*) libmagic=never-match;; |
| 11100 |
esac |
| 11101 |
lt_cv_deplibs_check_method=pass_all |
| 11102 |
;; |
| 11103 |
|
| 11104 |
# This must be glibc/ELF. |
| 11105 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 11106 |
lt_cv_deplibs_check_method=pass_all |
| 11107 |
;; |
| 11108 |
|
| 11109 |
*-mlibc) |
| 11110 |
lt_cv_deplibs_check_method=pass_all |
| 11111 |
;; |
| 11112 |
|
| 11113 |
netbsd* | netbsdelf*-gnu) |
| 11114 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then |
| 11115 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11116 |
else |
| 11117 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
| 11118 |
fi |
| 11119 |
;; |
| 11120 |
|
| 11121 |
newos6*) |
| 11122 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
| 11123 |
lt_cv_file_magic_cmd=$FILECMD |
| 11124 |
lt_cv_file_magic_test_file=/usr/lib/libnls.so |
| 11125 |
;; |
| 11126 |
|
| 11127 |
*nto* | *qnx*) |
| 11128 |
lt_cv_deplibs_check_method=pass_all |
| 11129 |
;; |
| 11130 |
|
| 11131 |
openbsd*) |
| 11132 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 11133 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
| 11134 |
else |
| 11135 |
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
| 11136 |
fi |
| 11137 |
;; |
| 11138 |
|
| 11139 |
osf3* | osf4* | osf5*) |
| 11140 |
lt_cv_deplibs_check_method=pass_all |
| 11141 |
;; |
| 11142 |
|
| 11143 |
rdos*) |
| 11144 |
lt_cv_deplibs_check_method=pass_all |
| 11145 |
;; |
| 11146 |
|
| 11147 |
serenity*) |
| 11148 |
lt_cv_deplibs_check_method=pass_all |
| 11149 |
;; |
| 11150 |
|
| 11151 |
solaris*) |
| 11152 |
lt_cv_deplibs_check_method=pass_all |
| 11153 |
;; |
| 11154 |
|
| 11155 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 11156 |
lt_cv_deplibs_check_method=pass_all |
| 11157 |
;; |
| 11158 |
|
| 11159 |
sysv4 | sysv4.3*) |
| 11160 |
case $host_vendor in |
| 11161 |
motorola) |
| 11162 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' |
| 11163 |
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
| 11164 |
;; |
| 11165 |
ncr) |
| 11166 |
lt_cv_deplibs_check_method=pass_all |
| 11167 |
;; |
| 11168 |
sequent) |
| 11169 |
lt_cv_file_magic_cmd='/bin/file' |
| 11170 |
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
| 11171 |
;; |
| 11172 |
sni) |
| 11173 |
lt_cv_file_magic_cmd='/bin/file' |
| 11174 |
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
| 11175 |
lt_cv_file_magic_test_file=/lib/libc.so |
| 11176 |
;; |
| 11177 |
siemens) |
| 11178 |
lt_cv_deplibs_check_method=pass_all |
| 11179 |
;; |
| 11180 |
pc) |
| 11181 |
lt_cv_deplibs_check_method=pass_all |
| 11182 |
;; |
| 11183 |
esac |
| 11184 |
;; |
| 11185 |
|
| 11186 |
tpf*) |
| 11187 |
lt_cv_deplibs_check_method=pass_all |
| 11188 |
;; |
| 11189 |
os2*) |
| 11190 |
lt_cv_deplibs_check_method=pass_all |
| 11191 |
;; |
| 11192 |
esac |
| 11193 |
;; |
| 11194 |
esac |
| 11195 |
fi |
| 11196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
| 11197 |
printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } |
| 11198 |
|
| 11199 |
file_magic_glob= |
| 11200 |
want_nocaseglob=no |
| 11201 |
if test "$build" = "$host"; then |
| 11202 |
case $host_os in |
| 11203 |
mingw* | windows* | pw32*) |
| 11204 |
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then |
| 11205 |
want_nocaseglob=yes |
| 11206 |
else |
| 11207 |
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` |
| 11208 |
fi |
| 11209 |
;; |
| 11210 |
esac |
| 11211 |
fi |
| 11212 |
|
| 11213 |
file_magic_cmd=$lt_cv_file_magic_cmd |
| 11214 |
deplibs_check_method=$lt_cv_deplibs_check_method |
| 11215 |
test -z "$deplibs_check_method" && deplibs_check_method=unknown |
| 11216 |
|
| 11217 |
|
| 11218 |
|
| 11219 |
|
| 11220 |
|
| 11221 |
|
| 11222 |
|
| 11223 |
|
| 11224 |
|
| 11225 |
|
| 11226 |
|
| 11227 |
|
| 11228 |
|
| 11229 |
|
| 11230 |
|
| 11231 |
|
| 11232 |
|
| 11233 |
|
| 11234 |
|
| 11235 |
|
| 11236 |
|
| 11237 |
|
| 11238 |
if test -n "$ac_tool_prefix"; then |
| 11239 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 11240 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 11241 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11242 |
printf %s "checking for $ac_word... " >&6; } |
| 11243 |
if test ${ac_cv_prog_DLLTOOL+y} |
| 11244 |
then : |
| 11245 |
printf %s "(cached) " >&6 |
| 11246 |
else case e in #( |
| 11247 |
e) if test -n "$DLLTOOL"; then |
| 11248 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 11249 |
else |
| 11250 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11251 |
for as_dir in $PATH |
| 11252 |
do |
| 11253 |
IFS=$as_save_IFS |
| 11254 |
case $as_dir in #((( |
| 11255 |
'') as_dir=./ ;; |
| 11256 |
*/) ;; |
| 11257 |
*) as_dir=$as_dir/ ;; |
| 11258 |
esac |
| 11259 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11260 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11261 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 11262 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11263 |
break 2 |
| 11264 |
fi |
| 11265 |
done |
| 11266 |
done |
| 11267 |
IFS=$as_save_IFS |
| 11268 |
|
| 11269 |
fi ;; |
| 11270 |
esac |
| 11271 |
fi |
| 11272 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| 11273 |
if test -n "$DLLTOOL"; then |
| 11274 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 11275 |
printf "%s\n" "$DLLTOOL" >&6; } |
| 11276 |
else |
| 11277 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11278 |
printf "%s\n" "no" >&6; } |
| 11279 |
fi |
| 11280 |
|
| 11281 |
|
| 11282 |
fi |
| 11283 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| 11284 |
ac_ct_DLLTOOL=$DLLTOOL |
| 11285 |
# Extract the first word of "dlltool", so it can be a program name with args. |
| 11286 |
set dummy dlltool; ac_word=$2 |
| 11287 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11288 |
printf %s "checking for $ac_word... " >&6; } |
| 11289 |
if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 11290 |
then : |
| 11291 |
printf %s "(cached) " >&6 |
| 11292 |
else case e in #( |
| 11293 |
e) if test -n "$ac_ct_DLLTOOL"; then |
| 11294 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 11295 |
else |
| 11296 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11297 |
for as_dir in $PATH |
| 11298 |
do |
| 11299 |
IFS=$as_save_IFS |
| 11300 |
case $as_dir in #((( |
| 11301 |
'') as_dir=./ ;; |
| 11302 |
*/) ;; |
| 11303 |
*) as_dir=$as_dir/ ;; |
| 11304 |
esac |
| 11305 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11306 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11307 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 11308 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11309 |
break 2 |
| 11310 |
fi |
| 11311 |
done |
| 11312 |
done |
| 11313 |
IFS=$as_save_IFS |
| 11314 |
|
| 11315 |
fi ;; |
| 11316 |
esac |
| 11317 |
fi |
| 11318 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 11319 |
if test -n "$ac_ct_DLLTOOL"; then |
| 11320 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 11321 |
printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 11322 |
else |
| 11323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11324 |
printf "%s\n" "no" >&6; } |
| 11325 |
fi |
| 11326 |
|
| 11327 |
if test "x$ac_ct_DLLTOOL" = x; then |
| 11328 |
DLLTOOL="false" |
| 11329 |
else |
| 11330 |
case $cross_compiling:$ac_tool_warned in |
| 11331 |
yes:) |
| 11332 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11333 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11334 |
ac_tool_warned=yes ;; |
| 11335 |
esac |
| 11336 |
DLLTOOL=$ac_ct_DLLTOOL |
| 11337 |
fi |
| 11338 |
else |
| 11339 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 11340 |
fi |
| 11341 |
|
| 11342 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 11343 |
|
| 11344 |
|
| 11345 |
|
| 11346 |
|
| 11347 |
|
| 11348 |
|
| 11349 |
|
| 11350 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 |
| 11351 |
printf %s "checking how to associate runtime and link libraries... " >&6; } |
| 11352 |
if test ${lt_cv_sharedlib_from_linklib_cmd+y} |
| 11353 |
then : |
| 11354 |
printf %s "(cached) " >&6 |
| 11355 |
else case e in #( |
| 11356 |
e) lt_cv_sharedlib_from_linklib_cmd='unknown' |
| 11357 |
|
| 11358 |
case $host_os in |
| 11359 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 11360 |
# two different shell functions defined in ltmain.sh; |
| 11361 |
# decide which one to use based on capabilities of $DLLTOOL |
| 11362 |
case `$DLLTOOL --help 2>&1` in |
| 11363 |
*--identify-strict*) |
| 11364 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib |
| 11365 |
;; |
| 11366 |
*) |
| 11367 |
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback |
| 11368 |
;; |
| 11369 |
esac |
| 11370 |
;; |
| 11371 |
*) |
| 11372 |
# fallback: assume linklib IS sharedlib |
| 11373 |
lt_cv_sharedlib_from_linklib_cmd=$ECHO |
| 11374 |
;; |
| 11375 |
esac |
| 11376 |
;; |
| 11377 |
esac |
| 11378 |
fi |
| 11379 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 |
| 11380 |
printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } |
| 11381 |
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd |
| 11382 |
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO |
| 11383 |
|
| 11384 |
|
| 11385 |
|
| 11386 |
|
| 11387 |
|
| 11388 |
|
| 11389 |
|
| 11390 |
if test -n "$ac_tool_prefix"; then |
| 11391 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 11392 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 11393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11394 |
printf %s "checking for $ac_word... " >&6; } |
| 11395 |
if test ${ac_cv_prog_RANLIB+y} |
| 11396 |
then : |
| 11397 |
printf %s "(cached) " >&6 |
| 11398 |
else case e in #( |
| 11399 |
e) if test -n "$RANLIB"; then |
| 11400 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 11401 |
else |
| 11402 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11403 |
for as_dir in $PATH |
| 11404 |
do |
| 11405 |
IFS=$as_save_IFS |
| 11406 |
case $as_dir in #((( |
| 11407 |
'') as_dir=./ ;; |
| 11408 |
*/) ;; |
| 11409 |
*) as_dir=$as_dir/ ;; |
| 11410 |
esac |
| 11411 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11412 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11413 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 11414 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11415 |
break 2 |
| 11416 |
fi |
| 11417 |
done |
| 11418 |
done |
| 11419 |
IFS=$as_save_IFS |
| 11420 |
|
| 11421 |
fi ;; |
| 11422 |
esac |
| 11423 |
fi |
| 11424 |
RANLIB=$ac_cv_prog_RANLIB |
| 11425 |
if test -n "$RANLIB"; then |
| 11426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 11427 |
printf "%s\n" "$RANLIB" >&6; } |
| 11428 |
else |
| 11429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11430 |
printf "%s\n" "no" >&6; } |
| 11431 |
fi |
| 11432 |
|
| 11433 |
|
| 11434 |
fi |
| 11435 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 11436 |
ac_ct_RANLIB=$RANLIB |
| 11437 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 11438 |
set dummy ranlib; ac_word=$2 |
| 11439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11440 |
printf %s "checking for $ac_word... " >&6; } |
| 11441 |
if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 11442 |
then : |
| 11443 |
printf %s "(cached) " >&6 |
| 11444 |
else case e in #( |
| 11445 |
e) if test -n "$ac_ct_RANLIB"; then |
| 11446 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 11447 |
else |
| 11448 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11449 |
for as_dir in $PATH |
| 11450 |
do |
| 11451 |
IFS=$as_save_IFS |
| 11452 |
case $as_dir in #((( |
| 11453 |
'') as_dir=./ ;; |
| 11454 |
*/) ;; |
| 11455 |
*) as_dir=$as_dir/ ;; |
| 11456 |
esac |
| 11457 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11458 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11459 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 11460 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11461 |
break 2 |
| 11462 |
fi |
| 11463 |
done |
| 11464 |
done |
| 11465 |
IFS=$as_save_IFS |
| 11466 |
|
| 11467 |
fi ;; |
| 11468 |
esac |
| 11469 |
fi |
| 11470 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 11471 |
if test -n "$ac_ct_RANLIB"; then |
| 11472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 11473 |
printf "%s\n" "$ac_ct_RANLIB" >&6; } |
| 11474 |
else |
| 11475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11476 |
printf "%s\n" "no" >&6; } |
| 11477 |
fi |
| 11478 |
|
| 11479 |
if test "x$ac_ct_RANLIB" = x; then |
| 11480 |
RANLIB=":" |
| 11481 |
else |
| 11482 |
case $cross_compiling:$ac_tool_warned in |
| 11483 |
yes:) |
| 11484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11485 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11486 |
ac_tool_warned=yes ;; |
| 11487 |
esac |
| 11488 |
RANLIB=$ac_ct_RANLIB |
| 11489 |
fi |
| 11490 |
else |
| 11491 |
RANLIB="$ac_cv_prog_RANLIB" |
| 11492 |
fi |
| 11493 |
|
| 11494 |
if test -n "$ac_tool_prefix"; then |
| 11495 |
for ac_prog in ar |
| 11496 |
do |
| 11497 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 11498 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 11499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11500 |
printf %s "checking for $ac_word... " >&6; } |
| 11501 |
if test ${ac_cv_prog_AR+y} |
| 11502 |
then : |
| 11503 |
printf %s "(cached) " >&6 |
| 11504 |
else case e in #( |
| 11505 |
e) if test -n "$AR"; then |
| 11506 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 11507 |
else |
| 11508 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11509 |
for as_dir in $PATH |
| 11510 |
do |
| 11511 |
IFS=$as_save_IFS |
| 11512 |
case $as_dir in #((( |
| 11513 |
'') as_dir=./ ;; |
| 11514 |
*/) ;; |
| 11515 |
*) as_dir=$as_dir/ ;; |
| 11516 |
esac |
| 11517 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11518 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11519 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 11520 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11521 |
break 2 |
| 11522 |
fi |
| 11523 |
done |
| 11524 |
done |
| 11525 |
IFS=$as_save_IFS |
| 11526 |
|
| 11527 |
fi ;; |
| 11528 |
esac |
| 11529 |
fi |
| 11530 |
AR=$ac_cv_prog_AR |
| 11531 |
if test -n "$AR"; then |
| 11532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 11533 |
printf "%s\n" "$AR" >&6; } |
| 11534 |
else |
| 11535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11536 |
printf "%s\n" "no" >&6; } |
| 11537 |
fi |
| 11538 |
|
| 11539 |
|
| 11540 |
test -n "$AR" && break |
| 11541 |
done |
| 11542 |
fi |
| 11543 |
if test -z "$AR"; then |
| 11544 |
ac_ct_AR=$AR |
| 11545 |
for ac_prog in ar |
| 11546 |
do |
| 11547 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 11548 |
set dummy $ac_prog; ac_word=$2 |
| 11549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11550 |
printf %s "checking for $ac_word... " >&6; } |
| 11551 |
if test ${ac_cv_prog_ac_ct_AR+y} |
| 11552 |
then : |
| 11553 |
printf %s "(cached) " >&6 |
| 11554 |
else case e in #( |
| 11555 |
e) if test -n "$ac_ct_AR"; then |
| 11556 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 11557 |
else |
| 11558 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11559 |
for as_dir in $PATH |
| 11560 |
do |
| 11561 |
IFS=$as_save_IFS |
| 11562 |
case $as_dir in #((( |
| 11563 |
'') as_dir=./ ;; |
| 11564 |
*/) ;; |
| 11565 |
*) as_dir=$as_dir/ ;; |
| 11566 |
esac |
| 11567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11568 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11569 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 11570 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11571 |
break 2 |
| 11572 |
fi |
| 11573 |
done |
| 11574 |
done |
| 11575 |
IFS=$as_save_IFS |
| 11576 |
|
| 11577 |
fi ;; |
| 11578 |
esac |
| 11579 |
fi |
| 11580 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 11581 |
if test -n "$ac_ct_AR"; then |
| 11582 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 11583 |
printf "%s\n" "$ac_ct_AR" >&6; } |
| 11584 |
else |
| 11585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11586 |
printf "%s\n" "no" >&6; } |
| 11587 |
fi |
| 11588 |
|
| 11589 |
|
| 11590 |
test -n "$ac_ct_AR" && break |
| 11591 |
done |
| 11592 |
|
| 11593 |
if test "x$ac_ct_AR" = x; then |
| 11594 |
AR="false" |
| 11595 |
else |
| 11596 |
case $cross_compiling:$ac_tool_warned in |
| 11597 |
yes:) |
| 11598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11599 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11600 |
ac_tool_warned=yes ;; |
| 11601 |
esac |
| 11602 |
AR=$ac_ct_AR |
| 11603 |
fi |
| 11604 |
fi |
| 11605 |
|
| 11606 |
: ${AR=ar} |
| 11607 |
|
| 11608 |
|
| 11609 |
|
| 11610 |
|
| 11611 |
|
| 11612 |
|
| 11613 |
# Use ARFLAGS variable as AR's operation code to sync the variable naming with |
| 11614 |
# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have |
| 11615 |
# higher priority because that's what people were doing historically (setting |
| 11616 |
# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS |
| 11617 |
# variable obsoleted/removed. |
| 11618 |
|
| 11619 |
test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} |
| 11620 |
lt_ar_flags=$AR_FLAGS |
| 11621 |
|
| 11622 |
|
| 11623 |
|
| 11624 |
|
| 11625 |
|
| 11626 |
|
| 11627 |
# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override |
| 11628 |
# by AR_FLAGS because that was never working and AR_FLAGS is about to die. |
| 11629 |
|
| 11630 |
|
| 11631 |
|
| 11632 |
|
| 11633 |
|
| 11634 |
|
| 11635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 |
| 11636 |
printf %s "checking for archiver @FILE support... " >&6; } |
| 11637 |
if test ${lt_cv_ar_at_file+y} |
| 11638 |
then : |
| 11639 |
printf %s "(cached) " >&6 |
| 11640 |
else case e in #( |
| 11641 |
e) lt_cv_ar_at_file=no |
| 11642 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11643 |
/* end confdefs.h. */ |
| 11644 |
|
| 11645 |
int |
| 11646 |
main (void) |
| 11647 |
{ |
| 11648 |
|
| 11649 |
; |
| 11650 |
return 0; |
| 11651 |
} |
| 11652 |
_ACEOF |
| 11653 |
if ac_fn_c_try_compile "$LINENO" |
| 11654 |
then : |
| 11655 |
echo conftest.$ac_objext > conftest.lst |
| 11656 |
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' |
| 11657 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 11658 |
(eval $lt_ar_try) 2>&5 |
| 11659 |
ac_status=$? |
| 11660 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11661 |
test $ac_status = 0; } |
| 11662 |
if test 0 -eq "$ac_status"; then |
| 11663 |
# Ensure the archiver fails upon bogus file names. |
| 11664 |
rm -f conftest.$ac_objext libconftest.a |
| 11665 |
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 |
| 11666 |
(eval $lt_ar_try) 2>&5 |
| 11667 |
ac_status=$? |
| 11668 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 11669 |
test $ac_status = 0; } |
| 11670 |
if test 0 -ne "$ac_status"; then |
| 11671 |
lt_cv_ar_at_file=@ |
| 11672 |
fi |
| 11673 |
fi |
| 11674 |
rm -f conftest.* libconftest.a |
| 11675 |
|
| 11676 |
fi |
| 11677 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11678 |
;; |
| 11679 |
esac |
| 11680 |
fi |
| 11681 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 |
| 11682 |
printf "%s\n" "$lt_cv_ar_at_file" >&6; } |
| 11683 |
|
| 11684 |
if test no = "$lt_cv_ar_at_file"; then |
| 11685 |
archiver_list_spec= |
| 11686 |
else |
| 11687 |
archiver_list_spec=$lt_cv_ar_at_file |
| 11688 |
fi |
| 11689 |
|
| 11690 |
|
| 11691 |
|
| 11692 |
|
| 11693 |
|
| 11694 |
|
| 11695 |
|
| 11696 |
if test -n "$ac_tool_prefix"; then |
| 11697 |
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 11698 |
set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 11699 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11700 |
printf %s "checking for $ac_word... " >&6; } |
| 11701 |
if test ${ac_cv_prog_STRIP+y} |
| 11702 |
then : |
| 11703 |
printf %s "(cached) " >&6 |
| 11704 |
else case e in #( |
| 11705 |
e) if test -n "$STRIP"; then |
| 11706 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 11707 |
else |
| 11708 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11709 |
for as_dir in $PATH |
| 11710 |
do |
| 11711 |
IFS=$as_save_IFS |
| 11712 |
case $as_dir in #((( |
| 11713 |
'') as_dir=./ ;; |
| 11714 |
*/) ;; |
| 11715 |
*) as_dir=$as_dir/ ;; |
| 11716 |
esac |
| 11717 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11718 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11719 |
ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 11720 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11721 |
break 2 |
| 11722 |
fi |
| 11723 |
done |
| 11724 |
done |
| 11725 |
IFS=$as_save_IFS |
| 11726 |
|
| 11727 |
fi ;; |
| 11728 |
esac |
| 11729 |
fi |
| 11730 |
STRIP=$ac_cv_prog_STRIP |
| 11731 |
if test -n "$STRIP"; then |
| 11732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 11733 |
printf "%s\n" "$STRIP" >&6; } |
| 11734 |
else |
| 11735 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11736 |
printf "%s\n" "no" >&6; } |
| 11737 |
fi |
| 11738 |
|
| 11739 |
|
| 11740 |
fi |
| 11741 |
if test -z "$ac_cv_prog_STRIP"; then |
| 11742 |
ac_ct_STRIP=$STRIP |
| 11743 |
# Extract the first word of "strip", so it can be a program name with args. |
| 11744 |
set dummy strip; ac_word=$2 |
| 11745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 11746 |
printf %s "checking for $ac_word... " >&6; } |
| 11747 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 11748 |
then : |
| 11749 |
printf %s "(cached) " >&6 |
| 11750 |
else case e in #( |
| 11751 |
e) if test -n "$ac_ct_STRIP"; then |
| 11752 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 11753 |
else |
| 11754 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 11755 |
for as_dir in $PATH |
| 11756 |
do |
| 11757 |
IFS=$as_save_IFS |
| 11758 |
case $as_dir in #((( |
| 11759 |
'') as_dir=./ ;; |
| 11760 |
*/) ;; |
| 11761 |
*) as_dir=$as_dir/ ;; |
| 11762 |
esac |
| 11763 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 11764 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 11765 |
ac_cv_prog_ac_ct_STRIP="strip" |
| 11766 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 11767 |
break 2 |
| 11768 |
fi |
| 11769 |
done |
| 11770 |
done |
| 11771 |
IFS=$as_save_IFS |
| 11772 |
|
| 11773 |
fi ;; |
| 11774 |
esac |
| 11775 |
fi |
| 11776 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 11777 |
if test -n "$ac_ct_STRIP"; then |
| 11778 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 11779 |
printf "%s\n" "$ac_ct_STRIP" >&6; } |
| 11780 |
else |
| 11781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11782 |
printf "%s\n" "no" >&6; } |
| 11783 |
fi |
| 11784 |
|
| 11785 |
if test "x$ac_ct_STRIP" = x; then |
| 11786 |
STRIP=":" |
| 11787 |
else |
| 11788 |
case $cross_compiling:$ac_tool_warned in |
| 11789 |
yes:) |
| 11790 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 11791 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 11792 |
ac_tool_warned=yes ;; |
| 11793 |
esac |
| 11794 |
STRIP=$ac_ct_STRIP |
| 11795 |
fi |
| 11796 |
else |
| 11797 |
STRIP="$ac_cv_prog_STRIP" |
| 11798 |
fi |
| 11799 |
|
| 11800 |
test -z "$STRIP" && STRIP=: |
| 11801 |
|
| 11802 |
|
| 11803 |
|
| 11804 |
|
| 11805 |
|
| 11806 |
|
| 11807 |
|
| 11808 |
test -z "$RANLIB" && RANLIB=: |
| 11809 |
|
| 11810 |
|
| 11811 |
|
| 11812 |
|
| 11813 |
|
| 11814 |
|
| 11815 |
# Determine commands to create old-style static archives. |
| 11816 |
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
| 11817 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 11818 |
old_postuninstall_cmds= |
| 11819 |
|
| 11820 |
if test -n "$RANLIB"; then |
| 11821 |
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" |
| 11822 |
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" |
| 11823 |
fi |
| 11824 |
|
| 11825 |
case $host_os in |
| 11826 |
darwin*) |
| 11827 |
lock_old_archive_extraction=yes ;; |
| 11828 |
*) |
| 11829 |
lock_old_archive_extraction=no ;; |
| 11830 |
esac |
| 11831 |
|
| 11832 |
|
| 11833 |
|
| 11834 |
|
| 11835 |
|
| 11836 |
|
| 11837 |
|
| 11838 |
|
| 11839 |
|
| 11840 |
|
| 11841 |
|
| 11842 |
|
| 11843 |
|
| 11844 |
|
| 11845 |
|
| 11846 |
|
| 11847 |
|
| 11848 |
|
| 11849 |
|
| 11850 |
|
| 11851 |
|
| 11852 |
|
| 11853 |
|
| 11854 |
|
| 11855 |
|
| 11856 |
|
| 11857 |
|
| 11858 |
|
| 11859 |
|
| 11860 |
|
| 11861 |
|
| 11862 |
|
| 11863 |
|
| 11864 |
|
| 11865 |
|
| 11866 |
|
| 11867 |
|
| 11868 |
|
| 11869 |
|
| 11870 |
# If no C compiler was specified, use CC. |
| 11871 |
LTCC=${LTCC-"$CC"} |
| 11872 |
|
| 11873 |
# If no C compiler flags were specified, use CFLAGS. |
| 11874 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 11875 |
|
| 11876 |
# Allow CC to be a program name with arguments. |
| 11877 |
compiler=$CC |
| 11878 |
|
| 11879 |
|
| 11880 |
# Check for command to grab the raw symbol name followed by C symbol from nm. |
| 11881 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
| 11882 |
printf %s "checking command to parse $NM output from $compiler object... " >&6; } |
| 11883 |
if test ${lt_cv_sys_global_symbol_pipe+y} |
| 11884 |
then : |
| 11885 |
printf %s "(cached) " >&6 |
| 11886 |
else case e in #( |
| 11887 |
e) |
| 11888 |
# These are sane defaults that work on at least a few old systems. |
| 11889 |
# [They come from Ultrix. What could be older than Ultrix?!! ;)] |
| 11890 |
|
| 11891 |
# Character class describing NM global symbol codes. |
| 11892 |
symcode='[BCDEGRST]' |
| 11893 |
|
| 11894 |
# Regexp to match symbols that can be accessed directly from C. |
| 11895 |
sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
| 11896 |
|
| 11897 |
# Define system-specific variables. |
| 11898 |
case $host_os in |
| 11899 |
aix*) |
| 11900 |
symcode='[BCDT]' |
| 11901 |
;; |
| 11902 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 11903 |
symcode='[ABCDGISTW]' |
| 11904 |
;; |
| 11905 |
hpux*) |
| 11906 |
if test ia64 = "$host_cpu"; then |
| 11907 |
symcode='[ABCDEGRST]' |
| 11908 |
fi |
| 11909 |
;; |
| 11910 |
irix* | nonstopux*) |
| 11911 |
symcode='[BCDEGRST]' |
| 11912 |
;; |
| 11913 |
osf*) |
| 11914 |
symcode='[BCDEGQRST]' |
| 11915 |
;; |
| 11916 |
solaris*) |
| 11917 |
symcode='[BCDRT]' |
| 11918 |
;; |
| 11919 |
sco3.2v5*) |
| 11920 |
symcode='[DT]' |
| 11921 |
;; |
| 11922 |
sysv4.2uw2*) |
| 11923 |
symcode='[DT]' |
| 11924 |
;; |
| 11925 |
sysv5* | sco5v6* | unixware* | OpenUNIX*) |
| 11926 |
symcode='[ABDT]' |
| 11927 |
;; |
| 11928 |
sysv4) |
| 11929 |
symcode='[DFNSTU]' |
| 11930 |
;; |
| 11931 |
esac |
| 11932 |
|
| 11933 |
# If we're using GNU nm, then use its standard symbol codes. |
| 11934 |
case `$NM -V 2>&1` in |
| 11935 |
*GNU* | *'with BFD'*) |
| 11936 |
symcode='[ABCDGIRSTW]' ;; |
| 11937 |
esac |
| 11938 |
|
| 11939 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11940 |
# Gets list of data symbols to import. |
| 11941 |
lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" |
| 11942 |
# Adjust the below global symbol transforms to fixup imported variables. |
| 11943 |
lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" |
| 11944 |
lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" |
| 11945 |
lt_c_name_lib_hook="\ |
| 11946 |
-e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ |
| 11947 |
-e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" |
| 11948 |
else |
| 11949 |
# Disable hooks by default. |
| 11950 |
lt_cv_sys_global_symbol_to_import= |
| 11951 |
lt_cdecl_hook= |
| 11952 |
lt_c_name_hook= |
| 11953 |
lt_c_name_lib_hook= |
| 11954 |
fi |
| 11955 |
|
| 11956 |
# Transform an extracted symbol line into a proper C declaration. |
| 11957 |
# Some systems (esp. on ia64) link data and code symbols differently, |
| 11958 |
# so use this general approach. |
| 11959 |
lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ |
| 11960 |
$lt_cdecl_hook\ |
| 11961 |
" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ |
| 11962 |
" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" |
| 11963 |
|
| 11964 |
# Transform an extracted symbol line into symbol name and symbol address |
| 11965 |
lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ |
| 11966 |
$lt_c_name_hook\ |
| 11967 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 11968 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" |
| 11969 |
|
| 11970 |
# Transform an extracted symbol line into symbol name with lib prefix and |
| 11971 |
# symbol address. |
| 11972 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ |
| 11973 |
$lt_c_name_lib_hook\ |
| 11974 |
" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ |
| 11975 |
" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ |
| 11976 |
" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" |
| 11977 |
|
| 11978 |
# Handle CRLF in mingw tool chain |
| 11979 |
opt_cr= |
| 11980 |
case $build_os in |
| 11981 |
mingw* | windows*) |
| 11982 |
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
| 11983 |
;; |
| 11984 |
esac |
| 11985 |
|
| 11986 |
# Try without a prefix underscore, then with it. |
| 11987 |
for ac_symprfx in "" "_"; do |
| 11988 |
|
| 11989 |
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
| 11990 |
symxfrm="\\1 $ac_symprfx\\2 \\2" |
| 11991 |
|
| 11992 |
# Write the raw and C identifiers. |
| 11993 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 11994 |
# Fake it for dumpbin and say T for any non-static function, |
| 11995 |
# D for any global variable and I for any imported variable. |
| 11996 |
# Also find C++ and __fastcall symbols from MSVC++ or ICC, |
| 11997 |
# which start with @ or ?. |
| 11998 |
lt_cv_sys_global_symbol_pipe="$AWK '"\ |
| 11999 |
" {last_section=section; section=\$ 3};"\ |
| 12000 |
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ |
| 12001 |
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ |
| 12002 |
" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ |
| 12003 |
" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ |
| 12004 |
" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ |
| 12005 |
" \$ 0!~/External *\|/{next};"\ |
| 12006 |
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ |
| 12007 |
" {if(hide[section]) next};"\ |
| 12008 |
" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ |
| 12009 |
" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ |
| 12010 |
" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ |
| 12011 |
" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ |
| 12012 |
" ' prfx=^$ac_symprfx" |
| 12013 |
else |
| 12014 |
lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
| 12015 |
fi |
| 12016 |
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" |
| 12017 |
|
| 12018 |
# Check to see that the pipe works correctly. |
| 12019 |
pipe_works=no |
| 12020 |
|
| 12021 |
rm -f conftest* |
| 12022 |
cat > conftest.$ac_ext <<_LT_EOF |
| 12023 |
#ifdef __cplusplus |
| 12024 |
extern "C" { |
| 12025 |
#endif |
| 12026 |
char nm_test_var; |
| 12027 |
void nm_test_func(void); |
| 12028 |
void nm_test_func(void){} |
| 12029 |
#ifdef __cplusplus |
| 12030 |
} |
| 12031 |
#endif |
| 12032 |
int main(void){nm_test_var='a';nm_test_func();return(0);} |
| 12033 |
_LT_EOF |
| 12034 |
|
| 12035 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12036 |
(eval $ac_compile) 2>&5 |
| 12037 |
ac_status=$? |
| 12038 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12039 |
test $ac_status = 0; }; then |
| 12040 |
# Now try to grab the symbols. |
| 12041 |
nlist=conftest.nm |
| 12042 |
$ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5 |
| 12043 |
if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then |
| 12044 |
# Try sorting and uniquifying the output. |
| 12045 |
if sort "$nlist" | uniq > "$nlist"T; then |
| 12046 |
mv -f "$nlist"T "$nlist" |
| 12047 |
else |
| 12048 |
rm -f "$nlist"T |
| 12049 |
fi |
| 12050 |
|
| 12051 |
# Make sure that we snagged all the symbols we need. |
| 12052 |
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
| 12053 |
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
| 12054 |
cat <<_LT_EOF > conftest.$ac_ext |
| 12055 |
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ |
| 12056 |
#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE |
| 12057 |
/* DATA imports from DLLs on WIN32 can't be const, because runtime |
| 12058 |
relocations are performed -- see ld's documentation on pseudo-relocs. */ |
| 12059 |
# define LT_DLSYM_CONST |
| 12060 |
#elif defined __osf__ |
| 12061 |
/* This system does not cope well with relocations in const data. */ |
| 12062 |
# define LT_DLSYM_CONST |
| 12063 |
#else |
| 12064 |
# define LT_DLSYM_CONST const |
| 12065 |
#endif |
| 12066 |
|
| 12067 |
#ifdef __cplusplus |
| 12068 |
extern "C" { |
| 12069 |
#endif |
| 12070 |
|
| 12071 |
_LT_EOF |
| 12072 |
# Now generate the symbol file. |
| 12073 |
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' |
| 12074 |
|
| 12075 |
cat <<_LT_EOF >> conftest.$ac_ext |
| 12076 |
|
| 12077 |
/* The mapping between symbol names and symbols. */ |
| 12078 |
LT_DLSYM_CONST struct { |
| 12079 |
const char *name; |
| 12080 |
void *address; |
| 12081 |
} |
| 12082 |
lt__PROGRAM__LTX_preloaded_symbols[] = |
| 12083 |
{ |
| 12084 |
{ "@PROGRAM@", (void *) 0 }, |
| 12085 |
_LT_EOF |
| 12086 |
$SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext |
| 12087 |
cat <<\_LT_EOF >> conftest.$ac_ext |
| 12088 |
{0, (void *) 0} |
| 12089 |
}; |
| 12090 |
|
| 12091 |
/* This works around a problem in FreeBSD linker */ |
| 12092 |
#ifdef FREEBSD_WORKAROUND |
| 12093 |
static const void *lt_preloaded_setup() { |
| 12094 |
return lt__PROGRAM__LTX_preloaded_symbols; |
| 12095 |
} |
| 12096 |
#endif |
| 12097 |
|
| 12098 |
#ifdef __cplusplus |
| 12099 |
} |
| 12100 |
#endif |
| 12101 |
_LT_EOF |
| 12102 |
# Now try linking the two files. |
| 12103 |
mv conftest.$ac_objext conftstm.$ac_objext |
| 12104 |
lt_globsym_save_LIBS=$LIBS |
| 12105 |
lt_globsym_save_CFLAGS=$CFLAGS |
| 12106 |
LIBS=conftstm.$ac_objext |
| 12107 |
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
| 12108 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 12109 |
(eval $ac_link) 2>&5 |
| 12110 |
ac_status=$? |
| 12111 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12112 |
test $ac_status = 0; } && test -s conftest$ac_exeext; then |
| 12113 |
pipe_works=yes |
| 12114 |
fi |
| 12115 |
LIBS=$lt_globsym_save_LIBS |
| 12116 |
CFLAGS=$lt_globsym_save_CFLAGS |
| 12117 |
else |
| 12118 |
echo "cannot find nm_test_func in $nlist" >&5 |
| 12119 |
fi |
| 12120 |
else |
| 12121 |
echo "cannot find nm_test_var in $nlist" >&5 |
| 12122 |
fi |
| 12123 |
else |
| 12124 |
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
| 12125 |
fi |
| 12126 |
else |
| 12127 |
echo "$progname: failed program was:" >&5 |
| 12128 |
cat conftest.$ac_ext >&5 |
| 12129 |
fi |
| 12130 |
rm -rf conftest* conftst* |
| 12131 |
|
| 12132 |
# Do not use the global_symbol_pipe unless it works. |
| 12133 |
if test yes = "$pipe_works"; then |
| 12134 |
break |
| 12135 |
else |
| 12136 |
lt_cv_sys_global_symbol_pipe= |
| 12137 |
fi |
| 12138 |
done |
| 12139 |
;; |
| 12140 |
esac |
| 12141 |
fi |
| 12142 |
|
| 12143 |
if test -z "$lt_cv_sys_global_symbol_pipe"; then |
| 12144 |
lt_cv_sys_global_symbol_to_cdecl= |
| 12145 |
fi |
| 12146 |
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
| 12147 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
| 12148 |
printf "%s\n" "failed" >&6; } |
| 12149 |
else |
| 12150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
| 12151 |
printf "%s\n" "ok" >&6; } |
| 12152 |
fi |
| 12153 |
|
| 12154 |
# Response file support. |
| 12155 |
if test "$lt_cv_nm_interface" = "MS dumpbin"; then |
| 12156 |
nm_file_list_spec='@' |
| 12157 |
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then |
| 12158 |
nm_file_list_spec='@' |
| 12159 |
fi |
| 12160 |
|
| 12161 |
|
| 12162 |
|
| 12163 |
|
| 12164 |
|
| 12165 |
|
| 12166 |
|
| 12167 |
|
| 12168 |
|
| 12169 |
|
| 12170 |
|
| 12171 |
|
| 12172 |
|
| 12173 |
|
| 12174 |
|
| 12175 |
|
| 12176 |
|
| 12177 |
|
| 12178 |
|
| 12179 |
|
| 12180 |
|
| 12181 |
|
| 12182 |
|
| 12183 |
|
| 12184 |
|
| 12185 |
|
| 12186 |
|
| 12187 |
|
| 12188 |
|
| 12189 |
|
| 12190 |
|
| 12191 |
|
| 12192 |
|
| 12193 |
|
| 12194 |
|
| 12195 |
|
| 12196 |
|
| 12197 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 |
| 12198 |
printf %s "checking for sysroot... " >&6; } |
| 12199 |
|
| 12200 |
# Check whether --with-sysroot was given. |
| 12201 |
if test ${with_sysroot+y} |
| 12202 |
then : |
| 12203 |
withval=$with_sysroot; |
| 12204 |
else case e in #( |
| 12205 |
e) with_sysroot=no ;; |
| 12206 |
esac |
| 12207 |
fi |
| 12208 |
|
| 12209 |
|
| 12210 |
lt_sysroot= |
| 12211 |
case $with_sysroot in #( |
| 12212 |
yes) |
| 12213 |
if test yes = "$GCC"; then |
| 12214 |
# Trim trailing / since we'll always append absolute paths and we want |
| 12215 |
# to avoid //, if only for less confusing output for the user. |
| 12216 |
lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'` |
| 12217 |
fi |
| 12218 |
;; #( |
| 12219 |
/*) |
| 12220 |
lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` |
| 12221 |
;; #( |
| 12222 |
no|'') |
| 12223 |
;; #( |
| 12224 |
*) |
| 12225 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 |
| 12226 |
printf "%s\n" "$with_sysroot" >&6; } |
| 12227 |
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 |
| 12228 |
;; |
| 12229 |
esac |
| 12230 |
|
| 12231 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 |
| 12232 |
printf "%s\n" "${lt_sysroot:-no}" >&6; } |
| 12233 |
|
| 12234 |
|
| 12235 |
|
| 12236 |
|
| 12237 |
|
| 12238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 |
| 12239 |
printf %s "checking for a working dd... " >&6; } |
| 12240 |
if test ${ac_cv_path_lt_DD+y} |
| 12241 |
then : |
| 12242 |
printf %s "(cached) " >&6 |
| 12243 |
else case e in #( |
| 12244 |
e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 12245 |
cat conftest.i conftest.i >conftest2.i |
| 12246 |
: ${lt_DD:=$DD} |
| 12247 |
if test -z "$lt_DD"; then |
| 12248 |
ac_path_lt_DD_found=false |
| 12249 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 12250 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12251 |
for as_dir in $PATH |
| 12252 |
do |
| 12253 |
IFS=$as_save_IFS |
| 12254 |
case $as_dir in #((( |
| 12255 |
'') as_dir=./ ;; |
| 12256 |
*/) ;; |
| 12257 |
*) as_dir=$as_dir/ ;; |
| 12258 |
esac |
| 12259 |
for ac_prog in dd |
| 12260 |
do |
| 12261 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12262 |
ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" |
| 12263 |
as_fn_executable_p "$ac_path_lt_DD" || continue |
| 12264 |
if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 12265 |
cmp -s conftest.i conftest.out \ |
| 12266 |
&& ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: |
| 12267 |
fi |
| 12268 |
$ac_path_lt_DD_found && break 3 |
| 12269 |
done |
| 12270 |
done |
| 12271 |
done |
| 12272 |
IFS=$as_save_IFS |
| 12273 |
if test -z "$ac_cv_path_lt_DD"; then |
| 12274 |
: |
| 12275 |
fi |
| 12276 |
else |
| 12277 |
ac_cv_path_lt_DD=$lt_DD |
| 12278 |
fi |
| 12279 |
|
| 12280 |
rm -f conftest.i conftest2.i conftest.out ;; |
| 12281 |
esac |
| 12282 |
fi |
| 12283 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 |
| 12284 |
printf "%s\n" "$ac_cv_path_lt_DD" >&6; } |
| 12285 |
|
| 12286 |
|
| 12287 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 |
| 12288 |
printf %s "checking how to truncate binary pipes... " >&6; } |
| 12289 |
if test ${lt_cv_truncate_bin+y} |
| 12290 |
then : |
| 12291 |
printf %s "(cached) " >&6 |
| 12292 |
else case e in #( |
| 12293 |
e) printf 0123456789abcdef0123456789abcdef >conftest.i |
| 12294 |
cat conftest.i conftest.i >conftest2.i |
| 12295 |
lt_cv_truncate_bin= |
| 12296 |
if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then |
| 12297 |
cmp -s conftest.i conftest.out \ |
| 12298 |
&& lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" |
| 12299 |
fi |
| 12300 |
rm -f conftest.i conftest2.i conftest.out |
| 12301 |
test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; |
| 12302 |
esac |
| 12303 |
fi |
| 12304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 |
| 12305 |
printf "%s\n" "$lt_cv_truncate_bin" >&6; } |
| 12306 |
|
| 12307 |
|
| 12308 |
|
| 12309 |
|
| 12310 |
|
| 12311 |
|
| 12312 |
|
| 12313 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 12314 |
func_cc_basename () |
| 12315 |
{ |
| 12316 |
for cc_temp in $*""; do |
| 12317 |
case $cc_temp in |
| 12318 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 12319 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 12320 |
\-*) ;; |
| 12321 |
*) break;; |
| 12322 |
esac |
| 12323 |
done |
| 12324 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 12325 |
} |
| 12326 |
|
| 12327 |
# Check whether --enable-libtool-lock was given. |
| 12328 |
if test ${enable_libtool_lock+y} |
| 12329 |
then : |
| 12330 |
enableval=$enable_libtool_lock; |
| 12331 |
fi |
| 12332 |
|
| 12333 |
test no = "$enable_libtool_lock" || enable_libtool_lock=yes |
| 12334 |
|
| 12335 |
# Some flags need to be propagated to the compiler or linker for good |
| 12336 |
# libtool support. |
| 12337 |
case $host in |
| 12338 |
ia64-*-hpux*) |
| 12339 |
# Find out what ABI is being produced by ac_compile, and set mode |
| 12340 |
# options accordingly. |
| 12341 |
echo 'int i;' > conftest.$ac_ext |
| 12342 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12343 |
(eval $ac_compile) 2>&5 |
| 12344 |
ac_status=$? |
| 12345 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12346 |
test $ac_status = 0; }; then |
| 12347 |
case `$FILECMD conftest.$ac_objext` in |
| 12348 |
*ELF-32*) |
| 12349 |
HPUX_IA64_MODE=32 |
| 12350 |
;; |
| 12351 |
*ELF-64*) |
| 12352 |
HPUX_IA64_MODE=64 |
| 12353 |
;; |
| 12354 |
esac |
| 12355 |
fi |
| 12356 |
rm -rf conftest* |
| 12357 |
;; |
| 12358 |
*-*-irix6*) |
| 12359 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 12360 |
# options accordingly. |
| 12361 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 12362 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12363 |
(eval $ac_compile) 2>&5 |
| 12364 |
ac_status=$? |
| 12365 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12366 |
test $ac_status = 0; }; then |
| 12367 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 12368 |
case `$FILECMD conftest.$ac_objext` in |
| 12369 |
*32-bit*) |
| 12370 |
LD="${LD-ld} -melf32bsmip" |
| 12371 |
;; |
| 12372 |
*N32*) |
| 12373 |
LD="${LD-ld} -melf32bmipn32" |
| 12374 |
;; |
| 12375 |
*64-bit*) |
| 12376 |
LD="${LD-ld} -melf64bmip" |
| 12377 |
;; |
| 12378 |
esac |
| 12379 |
else |
| 12380 |
case `$FILECMD conftest.$ac_objext` in |
| 12381 |
*32-bit*) |
| 12382 |
LD="${LD-ld} -32" |
| 12383 |
;; |
| 12384 |
*N32*) |
| 12385 |
LD="${LD-ld} -n32" |
| 12386 |
;; |
| 12387 |
*64-bit*) |
| 12388 |
LD="${LD-ld} -64" |
| 12389 |
;; |
| 12390 |
esac |
| 12391 |
fi |
| 12392 |
fi |
| 12393 |
rm -rf conftest* |
| 12394 |
;; |
| 12395 |
|
| 12396 |
mips64*-*linux*) |
| 12397 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 12398 |
# options accordingly. |
| 12399 |
echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
| 12400 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12401 |
(eval $ac_compile) 2>&5 |
| 12402 |
ac_status=$? |
| 12403 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12404 |
test $ac_status = 0; }; then |
| 12405 |
emul=elf |
| 12406 |
case `$FILECMD conftest.$ac_objext` in |
| 12407 |
*32-bit*) |
| 12408 |
emul="${emul}32" |
| 12409 |
;; |
| 12410 |
*64-bit*) |
| 12411 |
emul="${emul}64" |
| 12412 |
;; |
| 12413 |
esac |
| 12414 |
case `$FILECMD conftest.$ac_objext` in |
| 12415 |
*MSB*) |
| 12416 |
emul="${emul}btsmip" |
| 12417 |
;; |
| 12418 |
*LSB*) |
| 12419 |
emul="${emul}ltsmip" |
| 12420 |
;; |
| 12421 |
esac |
| 12422 |
case `$FILECMD conftest.$ac_objext` in |
| 12423 |
*N32*) |
| 12424 |
emul="${emul}n32" |
| 12425 |
;; |
| 12426 |
esac |
| 12427 |
LD="${LD-ld} -m $emul" |
| 12428 |
fi |
| 12429 |
rm -rf conftest* |
| 12430 |
;; |
| 12431 |
|
| 12432 |
x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
| 12433 |
s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*) |
| 12434 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 12435 |
# options accordingly. Note that the listed cases only cover the |
| 12436 |
# situations where additional linker options are needed (such as when |
| 12437 |
# doing 32-bit compilation for a host where ld defaults to 64-bit, or |
| 12438 |
# vice versa); the common cases where no linker options are needed do |
| 12439 |
# not appear in the list. |
| 12440 |
echo 'int i;' > conftest.$ac_ext |
| 12441 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12442 |
(eval $ac_compile) 2>&5 |
| 12443 |
ac_status=$? |
| 12444 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12445 |
test $ac_status = 0; }; then |
| 12446 |
case `$FILECMD conftest.o` in |
| 12447 |
*32-bit*) |
| 12448 |
case $host in |
| 12449 |
x86_64-*kfreebsd*-gnu) |
| 12450 |
LD="${LD-ld} -m elf_i386_fbsd" |
| 12451 |
;; |
| 12452 |
x86_64-*linux*|x86_64-gnu*) |
| 12453 |
case `$FILECMD conftest.o` in |
| 12454 |
*x86-64*) |
| 12455 |
LD="${LD-ld} -m elf32_x86_64" |
| 12456 |
;; |
| 12457 |
*) |
| 12458 |
LD="${LD-ld} -m elf_i386" |
| 12459 |
;; |
| 12460 |
esac |
| 12461 |
;; |
| 12462 |
powerpc64le-*linux*) |
| 12463 |
LD="${LD-ld} -m elf32lppclinux" |
| 12464 |
;; |
| 12465 |
powerpc64-*linux*) |
| 12466 |
LD="${LD-ld} -m elf32ppclinux" |
| 12467 |
;; |
| 12468 |
s390x-*linux*) |
| 12469 |
LD="${LD-ld} -m elf_s390" |
| 12470 |
;; |
| 12471 |
sparc64-*linux*) |
| 12472 |
LD="${LD-ld} -m elf32_sparc" |
| 12473 |
;; |
| 12474 |
esac |
| 12475 |
;; |
| 12476 |
*64-bit*) |
| 12477 |
case $host in |
| 12478 |
x86_64-*kfreebsd*-gnu) |
| 12479 |
LD="${LD-ld} -m elf_x86_64_fbsd" |
| 12480 |
;; |
| 12481 |
x86_64-*linux*|x86_64-gnu*) |
| 12482 |
LD="${LD-ld} -m elf_x86_64" |
| 12483 |
;; |
| 12484 |
powerpcle-*linux*) |
| 12485 |
LD="${LD-ld} -m elf64lppc" |
| 12486 |
;; |
| 12487 |
powerpc-*linux*) |
| 12488 |
LD="${LD-ld} -m elf64ppc" |
| 12489 |
;; |
| 12490 |
s390*-*linux*|s390*-*tpf*) |
| 12491 |
LD="${LD-ld} -m elf64_s390" |
| 12492 |
;; |
| 12493 |
sparc*-*linux*) |
| 12494 |
LD="${LD-ld} -m elf64_sparc" |
| 12495 |
;; |
| 12496 |
esac |
| 12497 |
;; |
| 12498 |
esac |
| 12499 |
fi |
| 12500 |
rm -rf conftest* |
| 12501 |
;; |
| 12502 |
|
| 12503 |
*-*-sco3.2v5*) |
| 12504 |
# On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 12505 |
SAVE_CFLAGS=$CFLAGS |
| 12506 |
CFLAGS="$CFLAGS -belf" |
| 12507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
| 12508 |
printf %s "checking whether the C compiler needs -belf... " >&6; } |
| 12509 |
if test ${lt_cv_cc_needs_belf+y} |
| 12510 |
then : |
| 12511 |
printf %s "(cached) " >&6 |
| 12512 |
else case e in #( |
| 12513 |
e) ac_ext=c |
| 12514 |
ac_cpp='$CPP $CPPFLAGS' |
| 12515 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12516 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12517 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12518 |
|
| 12519 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12520 |
/* end confdefs.h. */ |
| 12521 |
|
| 12522 |
int |
| 12523 |
main (void) |
| 12524 |
{ |
| 12525 |
|
| 12526 |
; |
| 12527 |
return 0; |
| 12528 |
} |
| 12529 |
_ACEOF |
| 12530 |
if ac_fn_c_try_link "$LINENO" |
| 12531 |
then : |
| 12532 |
lt_cv_cc_needs_belf=yes |
| 12533 |
else case e in #( |
| 12534 |
e) lt_cv_cc_needs_belf=no ;; |
| 12535 |
esac |
| 12536 |
fi |
| 12537 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12538 |
conftest$ac_exeext conftest.$ac_ext |
| 12539 |
ac_ext=c |
| 12540 |
ac_cpp='$CPP $CPPFLAGS' |
| 12541 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 12542 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 12543 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 12544 |
;; |
| 12545 |
esac |
| 12546 |
fi |
| 12547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
| 12548 |
printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } |
| 12549 |
if test yes != "$lt_cv_cc_needs_belf"; then |
| 12550 |
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 12551 |
CFLAGS=$SAVE_CFLAGS |
| 12552 |
fi |
| 12553 |
;; |
| 12554 |
*-*solaris*) |
| 12555 |
# Find out what ABI is being produced by ac_compile, and set linker |
| 12556 |
# options accordingly. |
| 12557 |
echo 'int i;' > conftest.$ac_ext |
| 12558 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 12559 |
(eval $ac_compile) 2>&5 |
| 12560 |
ac_status=$? |
| 12561 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 12562 |
test $ac_status = 0; }; then |
| 12563 |
case `$FILECMD conftest.o` in |
| 12564 |
*64-bit*) |
| 12565 |
case $lt_cv_prog_gnu_ld in |
| 12566 |
yes*) |
| 12567 |
case $host in |
| 12568 |
i?86-*-solaris*|x86_64-*-solaris*) |
| 12569 |
LD="${LD-ld} -m elf_x86_64" |
| 12570 |
;; |
| 12571 |
sparc*-*-solaris*) |
| 12572 |
LD="${LD-ld} -m elf64_sparc" |
| 12573 |
;; |
| 12574 |
esac |
| 12575 |
# GNU ld 2.21 introduced _sol2 emulations. Use them if available. |
| 12576 |
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then |
| 12577 |
LD=${LD-ld}_sol2 |
| 12578 |
fi |
| 12579 |
;; |
| 12580 |
*) |
| 12581 |
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
| 12582 |
LD="${LD-ld} -64" |
| 12583 |
fi |
| 12584 |
;; |
| 12585 |
esac |
| 12586 |
;; |
| 12587 |
esac |
| 12588 |
fi |
| 12589 |
rm -rf conftest* |
| 12590 |
;; |
| 12591 |
esac |
| 12592 |
|
| 12593 |
need_locks=$enable_libtool_lock |
| 12594 |
|
| 12595 |
if test -n "$ac_tool_prefix"; then |
| 12596 |
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. |
| 12597 |
set dummy ${ac_tool_prefix}mt; ac_word=$2 |
| 12598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12599 |
printf %s "checking for $ac_word... " >&6; } |
| 12600 |
if test ${ac_cv_prog_MANIFEST_TOOL+y} |
| 12601 |
then : |
| 12602 |
printf %s "(cached) " >&6 |
| 12603 |
else case e in #( |
| 12604 |
e) if test -n "$MANIFEST_TOOL"; then |
| 12605 |
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. |
| 12606 |
else |
| 12607 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12608 |
for as_dir in $PATH |
| 12609 |
do |
| 12610 |
IFS=$as_save_IFS |
| 12611 |
case $as_dir in #((( |
| 12612 |
'') as_dir=./ ;; |
| 12613 |
*/) ;; |
| 12614 |
*) as_dir=$as_dir/ ;; |
| 12615 |
esac |
| 12616 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12617 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12618 |
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" |
| 12619 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12620 |
break 2 |
| 12621 |
fi |
| 12622 |
done |
| 12623 |
done |
| 12624 |
IFS=$as_save_IFS |
| 12625 |
|
| 12626 |
fi ;; |
| 12627 |
esac |
| 12628 |
fi |
| 12629 |
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL |
| 12630 |
if test -n "$MANIFEST_TOOL"; then |
| 12631 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 |
| 12632 |
printf "%s\n" "$MANIFEST_TOOL" >&6; } |
| 12633 |
else |
| 12634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12635 |
printf "%s\n" "no" >&6; } |
| 12636 |
fi |
| 12637 |
|
| 12638 |
|
| 12639 |
fi |
| 12640 |
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then |
| 12641 |
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL |
| 12642 |
# Extract the first word of "mt", so it can be a program name with args. |
| 12643 |
set dummy mt; ac_word=$2 |
| 12644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12645 |
printf %s "checking for $ac_word... " >&6; } |
| 12646 |
if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} |
| 12647 |
then : |
| 12648 |
printf %s "(cached) " >&6 |
| 12649 |
else case e in #( |
| 12650 |
e) if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 12651 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. |
| 12652 |
else |
| 12653 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12654 |
for as_dir in $PATH |
| 12655 |
do |
| 12656 |
IFS=$as_save_IFS |
| 12657 |
case $as_dir in #((( |
| 12658 |
'') as_dir=./ ;; |
| 12659 |
*/) ;; |
| 12660 |
*) as_dir=$as_dir/ ;; |
| 12661 |
esac |
| 12662 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12663 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12664 |
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" |
| 12665 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12666 |
break 2 |
| 12667 |
fi |
| 12668 |
done |
| 12669 |
done |
| 12670 |
IFS=$as_save_IFS |
| 12671 |
|
| 12672 |
fi ;; |
| 12673 |
esac |
| 12674 |
fi |
| 12675 |
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL |
| 12676 |
if test -n "$ac_ct_MANIFEST_TOOL"; then |
| 12677 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 |
| 12678 |
printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } |
| 12679 |
else |
| 12680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12681 |
printf "%s\n" "no" >&6; } |
| 12682 |
fi |
| 12683 |
|
| 12684 |
if test "x$ac_ct_MANIFEST_TOOL" = x; then |
| 12685 |
MANIFEST_TOOL=":" |
| 12686 |
else |
| 12687 |
case $cross_compiling:$ac_tool_warned in |
| 12688 |
yes:) |
| 12689 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12690 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12691 |
ac_tool_warned=yes ;; |
| 12692 |
esac |
| 12693 |
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL |
| 12694 |
fi |
| 12695 |
else |
| 12696 |
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" |
| 12697 |
fi |
| 12698 |
|
| 12699 |
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt |
| 12700 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 |
| 12701 |
printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } |
| 12702 |
if test ${lt_cv_path_manifest_tool+y} |
| 12703 |
then : |
| 12704 |
printf %s "(cached) " >&6 |
| 12705 |
else case e in #( |
| 12706 |
e) lt_cv_path_manifest_tool=no |
| 12707 |
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 |
| 12708 |
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out |
| 12709 |
cat conftest.err >&5 |
| 12710 |
if $GREP 'Manifest Tool' conftest.out > /dev/null; then |
| 12711 |
lt_cv_path_manifest_tool=yes |
| 12712 |
fi |
| 12713 |
rm -f conftest* ;; |
| 12714 |
esac |
| 12715 |
fi |
| 12716 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5 |
| 12717 |
printf "%s\n" "$lt_cv_path_manifest_tool" >&6; } |
| 12718 |
if test yes != "$lt_cv_path_manifest_tool"; then |
| 12719 |
MANIFEST_TOOL=: |
| 12720 |
fi |
| 12721 |
|
| 12722 |
|
| 12723 |
|
| 12724 |
|
| 12725 |
|
| 12726 |
|
| 12727 |
case $host_os in |
| 12728 |
rhapsody* | darwin*) |
| 12729 |
if test -n "$ac_tool_prefix"; then |
| 12730 |
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
| 12731 |
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
| 12732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12733 |
printf %s "checking for $ac_word... " >&6; } |
| 12734 |
if test ${ac_cv_prog_DSYMUTIL+y} |
| 12735 |
then : |
| 12736 |
printf %s "(cached) " >&6 |
| 12737 |
else case e in #( |
| 12738 |
e) if test -n "$DSYMUTIL"; then |
| 12739 |
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
| 12740 |
else |
| 12741 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12742 |
for as_dir in $PATH |
| 12743 |
do |
| 12744 |
IFS=$as_save_IFS |
| 12745 |
case $as_dir in #((( |
| 12746 |
'') as_dir=./ ;; |
| 12747 |
*/) ;; |
| 12748 |
*) as_dir=$as_dir/ ;; |
| 12749 |
esac |
| 12750 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12751 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12752 |
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
| 12753 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12754 |
break 2 |
| 12755 |
fi |
| 12756 |
done |
| 12757 |
done |
| 12758 |
IFS=$as_save_IFS |
| 12759 |
|
| 12760 |
fi ;; |
| 12761 |
esac |
| 12762 |
fi |
| 12763 |
DSYMUTIL=$ac_cv_prog_DSYMUTIL |
| 12764 |
if test -n "$DSYMUTIL"; then |
| 12765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
| 12766 |
printf "%s\n" "$DSYMUTIL" >&6; } |
| 12767 |
else |
| 12768 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12769 |
printf "%s\n" "no" >&6; } |
| 12770 |
fi |
| 12771 |
|
| 12772 |
|
| 12773 |
fi |
| 12774 |
if test -z "$ac_cv_prog_DSYMUTIL"; then |
| 12775 |
ac_ct_DSYMUTIL=$DSYMUTIL |
| 12776 |
# Extract the first word of "dsymutil", so it can be a program name with args. |
| 12777 |
set dummy dsymutil; ac_word=$2 |
| 12778 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12779 |
printf %s "checking for $ac_word... " >&6; } |
| 12780 |
if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} |
| 12781 |
then : |
| 12782 |
printf %s "(cached) " >&6 |
| 12783 |
else case e in #( |
| 12784 |
e) if test -n "$ac_ct_DSYMUTIL"; then |
| 12785 |
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
| 12786 |
else |
| 12787 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12788 |
for as_dir in $PATH |
| 12789 |
do |
| 12790 |
IFS=$as_save_IFS |
| 12791 |
case $as_dir in #((( |
| 12792 |
'') as_dir=./ ;; |
| 12793 |
*/) ;; |
| 12794 |
*) as_dir=$as_dir/ ;; |
| 12795 |
esac |
| 12796 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12797 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12798 |
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
| 12799 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12800 |
break 2 |
| 12801 |
fi |
| 12802 |
done |
| 12803 |
done |
| 12804 |
IFS=$as_save_IFS |
| 12805 |
|
| 12806 |
fi ;; |
| 12807 |
esac |
| 12808 |
fi |
| 12809 |
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
| 12810 |
if test -n "$ac_ct_DSYMUTIL"; then |
| 12811 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
| 12812 |
printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } |
| 12813 |
else |
| 12814 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12815 |
printf "%s\n" "no" >&6; } |
| 12816 |
fi |
| 12817 |
|
| 12818 |
if test "x$ac_ct_DSYMUTIL" = x; then |
| 12819 |
DSYMUTIL=":" |
| 12820 |
else |
| 12821 |
case $cross_compiling:$ac_tool_warned in |
| 12822 |
yes:) |
| 12823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12824 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12825 |
ac_tool_warned=yes ;; |
| 12826 |
esac |
| 12827 |
DSYMUTIL=$ac_ct_DSYMUTIL |
| 12828 |
fi |
| 12829 |
else |
| 12830 |
DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
| 12831 |
fi |
| 12832 |
|
| 12833 |
if test -n "$ac_tool_prefix"; then |
| 12834 |
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
| 12835 |
set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
| 12836 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12837 |
printf %s "checking for $ac_word... " >&6; } |
| 12838 |
if test ${ac_cv_prog_NMEDIT+y} |
| 12839 |
then : |
| 12840 |
printf %s "(cached) " >&6 |
| 12841 |
else case e in #( |
| 12842 |
e) if test -n "$NMEDIT"; then |
| 12843 |
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
| 12844 |
else |
| 12845 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12846 |
for as_dir in $PATH |
| 12847 |
do |
| 12848 |
IFS=$as_save_IFS |
| 12849 |
case $as_dir in #((( |
| 12850 |
'') as_dir=./ ;; |
| 12851 |
*/) ;; |
| 12852 |
*) as_dir=$as_dir/ ;; |
| 12853 |
esac |
| 12854 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12855 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12856 |
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
| 12857 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12858 |
break 2 |
| 12859 |
fi |
| 12860 |
done |
| 12861 |
done |
| 12862 |
IFS=$as_save_IFS |
| 12863 |
|
| 12864 |
fi ;; |
| 12865 |
esac |
| 12866 |
fi |
| 12867 |
NMEDIT=$ac_cv_prog_NMEDIT |
| 12868 |
if test -n "$NMEDIT"; then |
| 12869 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
| 12870 |
printf "%s\n" "$NMEDIT" >&6; } |
| 12871 |
else |
| 12872 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12873 |
printf "%s\n" "no" >&6; } |
| 12874 |
fi |
| 12875 |
|
| 12876 |
|
| 12877 |
fi |
| 12878 |
if test -z "$ac_cv_prog_NMEDIT"; then |
| 12879 |
ac_ct_NMEDIT=$NMEDIT |
| 12880 |
# Extract the first word of "nmedit", so it can be a program name with args. |
| 12881 |
set dummy nmedit; ac_word=$2 |
| 12882 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12883 |
printf %s "checking for $ac_word... " >&6; } |
| 12884 |
if test ${ac_cv_prog_ac_ct_NMEDIT+y} |
| 12885 |
then : |
| 12886 |
printf %s "(cached) " >&6 |
| 12887 |
else case e in #( |
| 12888 |
e) if test -n "$ac_ct_NMEDIT"; then |
| 12889 |
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
| 12890 |
else |
| 12891 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12892 |
for as_dir in $PATH |
| 12893 |
do |
| 12894 |
IFS=$as_save_IFS |
| 12895 |
case $as_dir in #((( |
| 12896 |
'') as_dir=./ ;; |
| 12897 |
*/) ;; |
| 12898 |
*) as_dir=$as_dir/ ;; |
| 12899 |
esac |
| 12900 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12901 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12902 |
ac_cv_prog_ac_ct_NMEDIT="nmedit" |
| 12903 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12904 |
break 2 |
| 12905 |
fi |
| 12906 |
done |
| 12907 |
done |
| 12908 |
IFS=$as_save_IFS |
| 12909 |
|
| 12910 |
fi ;; |
| 12911 |
esac |
| 12912 |
fi |
| 12913 |
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
| 12914 |
if test -n "$ac_ct_NMEDIT"; then |
| 12915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
| 12916 |
printf "%s\n" "$ac_ct_NMEDIT" >&6; } |
| 12917 |
else |
| 12918 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12919 |
printf "%s\n" "no" >&6; } |
| 12920 |
fi |
| 12921 |
|
| 12922 |
if test "x$ac_ct_NMEDIT" = x; then |
| 12923 |
NMEDIT=":" |
| 12924 |
else |
| 12925 |
case $cross_compiling:$ac_tool_warned in |
| 12926 |
yes:) |
| 12927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 12928 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 12929 |
ac_tool_warned=yes ;; |
| 12930 |
esac |
| 12931 |
NMEDIT=$ac_ct_NMEDIT |
| 12932 |
fi |
| 12933 |
else |
| 12934 |
NMEDIT="$ac_cv_prog_NMEDIT" |
| 12935 |
fi |
| 12936 |
|
| 12937 |
if test -n "$ac_tool_prefix"; then |
| 12938 |
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
| 12939 |
set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
| 12940 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12941 |
printf %s "checking for $ac_word... " >&6; } |
| 12942 |
if test ${ac_cv_prog_LIPO+y} |
| 12943 |
then : |
| 12944 |
printf %s "(cached) " >&6 |
| 12945 |
else case e in #( |
| 12946 |
e) if test -n "$LIPO"; then |
| 12947 |
ac_cv_prog_LIPO="$LIPO" # Let the user override the test. |
| 12948 |
else |
| 12949 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12950 |
for as_dir in $PATH |
| 12951 |
do |
| 12952 |
IFS=$as_save_IFS |
| 12953 |
case $as_dir in #((( |
| 12954 |
'') as_dir=./ ;; |
| 12955 |
*/) ;; |
| 12956 |
*) as_dir=$as_dir/ ;; |
| 12957 |
esac |
| 12958 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12959 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12960 |
ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
| 12961 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12962 |
break 2 |
| 12963 |
fi |
| 12964 |
done |
| 12965 |
done |
| 12966 |
IFS=$as_save_IFS |
| 12967 |
|
| 12968 |
fi ;; |
| 12969 |
esac |
| 12970 |
fi |
| 12971 |
LIPO=$ac_cv_prog_LIPO |
| 12972 |
if test -n "$LIPO"; then |
| 12973 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
| 12974 |
printf "%s\n" "$LIPO" >&6; } |
| 12975 |
else |
| 12976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12977 |
printf "%s\n" "no" >&6; } |
| 12978 |
fi |
| 12979 |
|
| 12980 |
|
| 12981 |
fi |
| 12982 |
if test -z "$ac_cv_prog_LIPO"; then |
| 12983 |
ac_ct_LIPO=$LIPO |
| 12984 |
# Extract the first word of "lipo", so it can be a program name with args. |
| 12985 |
set dummy lipo; ac_word=$2 |
| 12986 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12987 |
printf %s "checking for $ac_word... " >&6; } |
| 12988 |
if test ${ac_cv_prog_ac_ct_LIPO+y} |
| 12989 |
then : |
| 12990 |
printf %s "(cached) " >&6 |
| 12991 |
else case e in #( |
| 12992 |
e) if test -n "$ac_ct_LIPO"; then |
| 12993 |
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. |
| 12994 |
else |
| 12995 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12996 |
for as_dir in $PATH |
| 12997 |
do |
| 12998 |
IFS=$as_save_IFS |
| 12999 |
case $as_dir in #((( |
| 13000 |
'') as_dir=./ ;; |
| 13001 |
*/) ;; |
| 13002 |
*) as_dir=$as_dir/ ;; |
| 13003 |
esac |
| 13004 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13005 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13006 |
ac_cv_prog_ac_ct_LIPO="lipo" |
| 13007 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13008 |
break 2 |
| 13009 |
fi |
| 13010 |
done |
| 13011 |
done |
| 13012 |
IFS=$as_save_IFS |
| 13013 |
|
| 13014 |
fi ;; |
| 13015 |
esac |
| 13016 |
fi |
| 13017 |
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
| 13018 |
if test -n "$ac_ct_LIPO"; then |
| 13019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
| 13020 |
printf "%s\n" "$ac_ct_LIPO" >&6; } |
| 13021 |
else |
| 13022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13023 |
printf "%s\n" "no" >&6; } |
| 13024 |
fi |
| 13025 |
|
| 13026 |
if test "x$ac_ct_LIPO" = x; then |
| 13027 |
LIPO=":" |
| 13028 |
else |
| 13029 |
case $cross_compiling:$ac_tool_warned in |
| 13030 |
yes:) |
| 13031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13032 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13033 |
ac_tool_warned=yes ;; |
| 13034 |
esac |
| 13035 |
LIPO=$ac_ct_LIPO |
| 13036 |
fi |
| 13037 |
else |
| 13038 |
LIPO="$ac_cv_prog_LIPO" |
| 13039 |
fi |
| 13040 |
|
| 13041 |
if test -n "$ac_tool_prefix"; then |
| 13042 |
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. |
| 13043 |
set dummy ${ac_tool_prefix}otool; ac_word=$2 |
| 13044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13045 |
printf %s "checking for $ac_word... " >&6; } |
| 13046 |
if test ${ac_cv_prog_OTOOL+y} |
| 13047 |
then : |
| 13048 |
printf %s "(cached) " >&6 |
| 13049 |
else case e in #( |
| 13050 |
e) if test -n "$OTOOL"; then |
| 13051 |
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. |
| 13052 |
else |
| 13053 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13054 |
for as_dir in $PATH |
| 13055 |
do |
| 13056 |
IFS=$as_save_IFS |
| 13057 |
case $as_dir in #((( |
| 13058 |
'') as_dir=./ ;; |
| 13059 |
*/) ;; |
| 13060 |
*) as_dir=$as_dir/ ;; |
| 13061 |
esac |
| 13062 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13063 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13064 |
ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
| 13065 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13066 |
break 2 |
| 13067 |
fi |
| 13068 |
done |
| 13069 |
done |
| 13070 |
IFS=$as_save_IFS |
| 13071 |
|
| 13072 |
fi ;; |
| 13073 |
esac |
| 13074 |
fi |
| 13075 |
OTOOL=$ac_cv_prog_OTOOL |
| 13076 |
if test -n "$OTOOL"; then |
| 13077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
| 13078 |
printf "%s\n" "$OTOOL" >&6; } |
| 13079 |
else |
| 13080 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13081 |
printf "%s\n" "no" >&6; } |
| 13082 |
fi |
| 13083 |
|
| 13084 |
|
| 13085 |
fi |
| 13086 |
if test -z "$ac_cv_prog_OTOOL"; then |
| 13087 |
ac_ct_OTOOL=$OTOOL |
| 13088 |
# Extract the first word of "otool", so it can be a program name with args. |
| 13089 |
set dummy otool; ac_word=$2 |
| 13090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13091 |
printf %s "checking for $ac_word... " >&6; } |
| 13092 |
if test ${ac_cv_prog_ac_ct_OTOOL+y} |
| 13093 |
then : |
| 13094 |
printf %s "(cached) " >&6 |
| 13095 |
else case e in #( |
| 13096 |
e) if test -n "$ac_ct_OTOOL"; then |
| 13097 |
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. |
| 13098 |
else |
| 13099 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13100 |
for as_dir in $PATH |
| 13101 |
do |
| 13102 |
IFS=$as_save_IFS |
| 13103 |
case $as_dir in #((( |
| 13104 |
'') as_dir=./ ;; |
| 13105 |
*/) ;; |
| 13106 |
*) as_dir=$as_dir/ ;; |
| 13107 |
esac |
| 13108 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13109 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13110 |
ac_cv_prog_ac_ct_OTOOL="otool" |
| 13111 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13112 |
break 2 |
| 13113 |
fi |
| 13114 |
done |
| 13115 |
done |
| 13116 |
IFS=$as_save_IFS |
| 13117 |
|
| 13118 |
fi ;; |
| 13119 |
esac |
| 13120 |
fi |
| 13121 |
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL |
| 13122 |
if test -n "$ac_ct_OTOOL"; then |
| 13123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
| 13124 |
printf "%s\n" "$ac_ct_OTOOL" >&6; } |
| 13125 |
else |
| 13126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13127 |
printf "%s\n" "no" >&6; } |
| 13128 |
fi |
| 13129 |
|
| 13130 |
if test "x$ac_ct_OTOOL" = x; then |
| 13131 |
OTOOL=":" |
| 13132 |
else |
| 13133 |
case $cross_compiling:$ac_tool_warned in |
| 13134 |
yes:) |
| 13135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13136 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13137 |
ac_tool_warned=yes ;; |
| 13138 |
esac |
| 13139 |
OTOOL=$ac_ct_OTOOL |
| 13140 |
fi |
| 13141 |
else |
| 13142 |
OTOOL="$ac_cv_prog_OTOOL" |
| 13143 |
fi |
| 13144 |
|
| 13145 |
if test -n "$ac_tool_prefix"; then |
| 13146 |
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. |
| 13147 |
set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
| 13148 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13149 |
printf %s "checking for $ac_word... " >&6; } |
| 13150 |
if test ${ac_cv_prog_OTOOL64+y} |
| 13151 |
then : |
| 13152 |
printf %s "(cached) " >&6 |
| 13153 |
else case e in #( |
| 13154 |
e) if test -n "$OTOOL64"; then |
| 13155 |
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. |
| 13156 |
else |
| 13157 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13158 |
for as_dir in $PATH |
| 13159 |
do |
| 13160 |
IFS=$as_save_IFS |
| 13161 |
case $as_dir in #((( |
| 13162 |
'') as_dir=./ ;; |
| 13163 |
*/) ;; |
| 13164 |
*) as_dir=$as_dir/ ;; |
| 13165 |
esac |
| 13166 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13167 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13168 |
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
| 13169 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13170 |
break 2 |
| 13171 |
fi |
| 13172 |
done |
| 13173 |
done |
| 13174 |
IFS=$as_save_IFS |
| 13175 |
|
| 13176 |
fi ;; |
| 13177 |
esac |
| 13178 |
fi |
| 13179 |
OTOOL64=$ac_cv_prog_OTOOL64 |
| 13180 |
if test -n "$OTOOL64"; then |
| 13181 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
| 13182 |
printf "%s\n" "$OTOOL64" >&6; } |
| 13183 |
else |
| 13184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13185 |
printf "%s\n" "no" >&6; } |
| 13186 |
fi |
| 13187 |
|
| 13188 |
|
| 13189 |
fi |
| 13190 |
if test -z "$ac_cv_prog_OTOOL64"; then |
| 13191 |
ac_ct_OTOOL64=$OTOOL64 |
| 13192 |
# Extract the first word of "otool64", so it can be a program name with args. |
| 13193 |
set dummy otool64; ac_word=$2 |
| 13194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13195 |
printf %s "checking for $ac_word... " >&6; } |
| 13196 |
if test ${ac_cv_prog_ac_ct_OTOOL64+y} |
| 13197 |
then : |
| 13198 |
printf %s "(cached) " >&6 |
| 13199 |
else case e in #( |
| 13200 |
e) if test -n "$ac_ct_OTOOL64"; then |
| 13201 |
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. |
| 13202 |
else |
| 13203 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13204 |
for as_dir in $PATH |
| 13205 |
do |
| 13206 |
IFS=$as_save_IFS |
| 13207 |
case $as_dir in #((( |
| 13208 |
'') as_dir=./ ;; |
| 13209 |
*/) ;; |
| 13210 |
*) as_dir=$as_dir/ ;; |
| 13211 |
esac |
| 13212 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13213 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13214 |
ac_cv_prog_ac_ct_OTOOL64="otool64" |
| 13215 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13216 |
break 2 |
| 13217 |
fi |
| 13218 |
done |
| 13219 |
done |
| 13220 |
IFS=$as_save_IFS |
| 13221 |
|
| 13222 |
fi ;; |
| 13223 |
esac |
| 13224 |
fi |
| 13225 |
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 |
| 13226 |
if test -n "$ac_ct_OTOOL64"; then |
| 13227 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
| 13228 |
printf "%s\n" "$ac_ct_OTOOL64" >&6; } |
| 13229 |
else |
| 13230 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13231 |
printf "%s\n" "no" >&6; } |
| 13232 |
fi |
| 13233 |
|
| 13234 |
if test "x$ac_ct_OTOOL64" = x; then |
| 13235 |
OTOOL64=":" |
| 13236 |
else |
| 13237 |
case $cross_compiling:$ac_tool_warned in |
| 13238 |
yes:) |
| 13239 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13240 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13241 |
ac_tool_warned=yes ;; |
| 13242 |
esac |
| 13243 |
OTOOL64=$ac_ct_OTOOL64 |
| 13244 |
fi |
| 13245 |
else |
| 13246 |
OTOOL64="$ac_cv_prog_OTOOL64" |
| 13247 |
fi |
| 13248 |
|
| 13249 |
|
| 13250 |
|
| 13251 |
|
| 13252 |
|
| 13253 |
|
| 13254 |
|
| 13255 |
|
| 13256 |
|
| 13257 |
|
| 13258 |
|
| 13259 |
|
| 13260 |
|
| 13261 |
|
| 13262 |
|
| 13263 |
|
| 13264 |
|
| 13265 |
|
| 13266 |
|
| 13267 |
|
| 13268 |
|
| 13269 |
|
| 13270 |
|
| 13271 |
|
| 13272 |
|
| 13273 |
|
| 13274 |
|
| 13275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
| 13276 |
printf %s "checking for -single_module linker flag... " >&6; } |
| 13277 |
if test ${lt_cv_apple_cc_single_mod+y} |
| 13278 |
then : |
| 13279 |
printf %s "(cached) " >&6 |
| 13280 |
else case e in #( |
| 13281 |
e) lt_cv_apple_cc_single_mod=no |
| 13282 |
if test -z "$LT_MULTI_MODULE"; then |
| 13283 |
# By default we will add the -single_module flag. You can override |
| 13284 |
# by either setting the environment variable LT_MULTI_MODULE |
| 13285 |
# non-empty at configure time, or by adding -multi_module to the |
| 13286 |
# link flags. |
| 13287 |
rm -rf libconftest.dylib* |
| 13288 |
echo "int foo(void){return 1;}" > conftest.c |
| 13289 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 13290 |
-dynamiclib -Wl,-single_module conftest.c" >&5 |
| 13291 |
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
| 13292 |
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err |
| 13293 |
_lt_result=$? |
| 13294 |
# If there is a non-empty error log, and "single_module" |
| 13295 |
# appears in it, assume the flag caused a linker warning |
| 13296 |
if test -s conftest.err && $GREP single_module conftest.err; then |
| 13297 |
cat conftest.err >&5 |
| 13298 |
# Otherwise, if the output was created with a 0 exit code from |
| 13299 |
# the compiler, it worked. |
| 13300 |
elif test -f libconftest.dylib && test 0 = "$_lt_result"; then |
| 13301 |
lt_cv_apple_cc_single_mod=yes |
| 13302 |
else |
| 13303 |
cat conftest.err >&5 |
| 13304 |
fi |
| 13305 |
rm -rf libconftest.dylib* |
| 13306 |
rm -f conftest.* |
| 13307 |
fi ;; |
| 13308 |
esac |
| 13309 |
fi |
| 13310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
| 13311 |
printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } |
| 13312 |
|
| 13313 |
# Feature test to disable chained fixups since it is not |
| 13314 |
# compatible with '-undefined dynamic_lookup' |
| 13315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5 |
| 13316 |
printf %s "checking for -no_fixup_chains linker flag... " >&6; } |
| 13317 |
if test ${lt_cv_support_no_fixup_chains+y} |
| 13318 |
then : |
| 13319 |
printf %s "(cached) " >&6 |
| 13320 |
else case e in #( |
| 13321 |
e) save_LDFLAGS=$LDFLAGS |
| 13322 |
LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains" |
| 13323 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13324 |
/* end confdefs.h. */ |
| 13325 |
|
| 13326 |
int |
| 13327 |
main (void) |
| 13328 |
{ |
| 13329 |
|
| 13330 |
; |
| 13331 |
return 0; |
| 13332 |
} |
| 13333 |
_ACEOF |
| 13334 |
if ac_fn_c_try_link "$LINENO" |
| 13335 |
then : |
| 13336 |
lt_cv_support_no_fixup_chains=yes |
| 13337 |
else case e in #( |
| 13338 |
e) lt_cv_support_no_fixup_chains=no |
| 13339 |
;; |
| 13340 |
esac |
| 13341 |
fi |
| 13342 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13343 |
conftest$ac_exeext conftest.$ac_ext |
| 13344 |
LDFLAGS=$save_LDFLAGS |
| 13345 |
|
| 13346 |
;; |
| 13347 |
esac |
| 13348 |
fi |
| 13349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5 |
| 13350 |
printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; } |
| 13351 |
|
| 13352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
| 13353 |
printf %s "checking for -exported_symbols_list linker flag... " >&6; } |
| 13354 |
if test ${lt_cv_ld_exported_symbols_list+y} |
| 13355 |
then : |
| 13356 |
printf %s "(cached) " >&6 |
| 13357 |
else case e in #( |
| 13358 |
e) lt_cv_ld_exported_symbols_list=no |
| 13359 |
save_LDFLAGS=$LDFLAGS |
| 13360 |
echo "_main" > conftest.sym |
| 13361 |
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
| 13362 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13363 |
/* end confdefs.h. */ |
| 13364 |
|
| 13365 |
int |
| 13366 |
main (void) |
| 13367 |
{ |
| 13368 |
|
| 13369 |
; |
| 13370 |
return 0; |
| 13371 |
} |
| 13372 |
_ACEOF |
| 13373 |
if ac_fn_c_try_link "$LINENO" |
| 13374 |
then : |
| 13375 |
lt_cv_ld_exported_symbols_list=yes |
| 13376 |
else case e in #( |
| 13377 |
e) lt_cv_ld_exported_symbols_list=no ;; |
| 13378 |
esac |
| 13379 |
fi |
| 13380 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13381 |
conftest$ac_exeext conftest.$ac_ext |
| 13382 |
LDFLAGS=$save_LDFLAGS |
| 13383 |
;; |
| 13384 |
esac |
| 13385 |
fi |
| 13386 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
| 13387 |
printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } |
| 13388 |
|
| 13389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
| 13390 |
printf %s "checking for -force_load linker flag... " >&6; } |
| 13391 |
if test ${lt_cv_ld_force_load+y} |
| 13392 |
then : |
| 13393 |
printf %s "(cached) " >&6 |
| 13394 |
else case e in #( |
| 13395 |
e) lt_cv_ld_force_load=no |
| 13396 |
cat > conftest.c << _LT_EOF |
| 13397 |
int forced_loaded() { return 2;} |
| 13398 |
_LT_EOF |
| 13399 |
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 |
| 13400 |
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 |
| 13401 |
echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 |
| 13402 |
$AR $AR_FLAGS libconftest.a conftest.o 2>&5 |
| 13403 |
echo "$RANLIB libconftest.a" >&5 |
| 13404 |
$RANLIB libconftest.a 2>&5 |
| 13405 |
cat > conftest.c << _LT_EOF |
| 13406 |
int main(void) { return 0;} |
| 13407 |
_LT_EOF |
| 13408 |
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 |
| 13409 |
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err |
| 13410 |
_lt_result=$? |
| 13411 |
if test -s conftest.err && $GREP force_load conftest.err; then |
| 13412 |
cat conftest.err >&5 |
| 13413 |
elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then |
| 13414 |
lt_cv_ld_force_load=yes |
| 13415 |
else |
| 13416 |
cat conftest.err >&5 |
| 13417 |
fi |
| 13418 |
rm -f conftest.err libconftest.a conftest conftest.c |
| 13419 |
rm -rf conftest.dSYM |
| 13420 |
;; |
| 13421 |
esac |
| 13422 |
fi |
| 13423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
| 13424 |
printf "%s\n" "$lt_cv_ld_force_load" >&6; } |
| 13425 |
case $host_os in |
| 13426 |
rhapsody* | darwin1.[012]) |
| 13427 |
_lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; |
| 13428 |
darwin1.*) |
| 13429 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 13430 |
darwin*) |
| 13431 |
case $MACOSX_DEPLOYMENT_TARGET,$host in |
| 13432 |
10.[012],*|,*powerpc*-darwin[5-8]*) |
| 13433 |
_lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; |
| 13434 |
*) |
| 13435 |
_lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' |
| 13436 |
if test yes = "$lt_cv_support_no_fixup_chains"; then |
| 13437 |
as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains' |
| 13438 |
fi |
| 13439 |
;; |
| 13440 |
esac |
| 13441 |
;; |
| 13442 |
esac |
| 13443 |
if test yes = "$lt_cv_apple_cc_single_mod"; then |
| 13444 |
_lt_dar_single_mod='$single_module' |
| 13445 |
fi |
| 13446 |
_lt_dar_needs_single_mod=no |
| 13447 |
case $host_os in |
| 13448 |
rhapsody* | darwin1.*) |
| 13449 |
_lt_dar_needs_single_mod=yes ;; |
| 13450 |
darwin*) |
| 13451 |
# When targeting Mac OS X 10.4 (darwin 8) or later, |
| 13452 |
# -single_module is the default and -multi_module is unsupported. |
| 13453 |
# The toolchain on macOS 10.14 (darwin 18) and later cannot |
| 13454 |
# target any OS version that needs -single_module. |
| 13455 |
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
| 13456 |
10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*) |
| 13457 |
_lt_dar_needs_single_mod=yes ;; |
| 13458 |
esac |
| 13459 |
;; |
| 13460 |
esac |
| 13461 |
if test yes = "$lt_cv_ld_exported_symbols_list"; then |
| 13462 |
_lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' |
| 13463 |
else |
| 13464 |
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' |
| 13465 |
fi |
| 13466 |
if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then |
| 13467 |
_lt_dsymutil='~$DSYMUTIL $lib || :' |
| 13468 |
else |
| 13469 |
_lt_dsymutil= |
| 13470 |
fi |
| 13471 |
;; |
| 13472 |
esac |
| 13473 |
|
| 13474 |
# func_munge_path_list VARIABLE PATH |
| 13475 |
# ----------------------------------- |
| 13476 |
# VARIABLE is name of variable containing _space_ separated list of |
| 13477 |
# directories to be munged by the contents of PATH, which is string |
| 13478 |
# having a format: |
| 13479 |
# "DIR[:DIR]:" |
| 13480 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 13481 |
# ":DIR[:DIR]" |
| 13482 |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 13483 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 13484 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 13485 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 13486 |
# "DIR[:DIR]" |
| 13487 |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 13488 |
func_munge_path_list () |
| 13489 |
{ |
| 13490 |
case x$2 in |
| 13491 |
x) |
| 13492 |
;; |
| 13493 |
*:) |
| 13494 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 13495 |
;; |
| 13496 |
x:*) |
| 13497 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 13498 |
;; |
| 13499 |
*::*) |
| 13500 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 13501 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 13502 |
;; |
| 13503 |
*) |
| 13504 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 13505 |
;; |
| 13506 |
esac |
| 13507 |
} |
| 13508 |
|
| 13509 |
ac_header= ac_cache= |
| 13510 |
for ac_item in $ac_header_c_list |
| 13511 |
do |
| 13512 |
if test $ac_cache; then |
| 13513 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 13514 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 13515 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 13516 |
fi |
| 13517 |
ac_header= ac_cache= |
| 13518 |
elif test $ac_header; then |
| 13519 |
ac_cache=$ac_item |
| 13520 |
else |
| 13521 |
ac_header=$ac_item |
| 13522 |
fi |
| 13523 |
done |
| 13524 |
|
| 13525 |
|
| 13526 |
|
| 13527 |
|
| 13528 |
|
| 13529 |
|
| 13530 |
|
| 13531 |
|
| 13532 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 13533 |
then : |
| 13534 |
|
| 13535 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 13536 |
|
| 13537 |
fi |
| 13538 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 13539 |
" |
| 13540 |
if test "x$ac_cv_header_dlfcn_h" = xyes |
| 13541 |
then : |
| 13542 |
printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 13543 |
|
| 13544 |
fi |
| 13545 |
|
| 13546 |
|
| 13547 |
|
| 13548 |
|
| 13549 |
|
| 13550 |
# Set options |
| 13551 |
enable_win32_dll=yes |
| 13552 |
|
| 13553 |
case $host in |
| 13554 |
*-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*) |
| 13555 |
if test -n "$ac_tool_prefix"; then |
| 13556 |
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. |
| 13557 |
set dummy ${ac_tool_prefix}as; ac_word=$2 |
| 13558 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13559 |
printf %s "checking for $ac_word... " >&6; } |
| 13560 |
if test ${ac_cv_prog_AS+y} |
| 13561 |
then : |
| 13562 |
printf %s "(cached) " >&6 |
| 13563 |
else case e in #( |
| 13564 |
e) if test -n "$AS"; then |
| 13565 |
ac_cv_prog_AS="$AS" # Let the user override the test. |
| 13566 |
else |
| 13567 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13568 |
for as_dir in $PATH |
| 13569 |
do |
| 13570 |
IFS=$as_save_IFS |
| 13571 |
case $as_dir in #((( |
| 13572 |
'') as_dir=./ ;; |
| 13573 |
*/) ;; |
| 13574 |
*) as_dir=$as_dir/ ;; |
| 13575 |
esac |
| 13576 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13577 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13578 |
ac_cv_prog_AS="${ac_tool_prefix}as" |
| 13579 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13580 |
break 2 |
| 13581 |
fi |
| 13582 |
done |
| 13583 |
done |
| 13584 |
IFS=$as_save_IFS |
| 13585 |
|
| 13586 |
fi ;; |
| 13587 |
esac |
| 13588 |
fi |
| 13589 |
AS=$ac_cv_prog_AS |
| 13590 |
if test -n "$AS"; then |
| 13591 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 13592 |
printf "%s\n" "$AS" >&6; } |
| 13593 |
else |
| 13594 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13595 |
printf "%s\n" "no" >&6; } |
| 13596 |
fi |
| 13597 |
|
| 13598 |
|
| 13599 |
fi |
| 13600 |
if test -z "$ac_cv_prog_AS"; then |
| 13601 |
ac_ct_AS=$AS |
| 13602 |
# Extract the first word of "as", so it can be a program name with args. |
| 13603 |
set dummy as; ac_word=$2 |
| 13604 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13605 |
printf %s "checking for $ac_word... " >&6; } |
| 13606 |
if test ${ac_cv_prog_ac_ct_AS+y} |
| 13607 |
then : |
| 13608 |
printf %s "(cached) " >&6 |
| 13609 |
else case e in #( |
| 13610 |
e) if test -n "$ac_ct_AS"; then |
| 13611 |
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 13612 |
else |
| 13613 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13614 |
for as_dir in $PATH |
| 13615 |
do |
| 13616 |
IFS=$as_save_IFS |
| 13617 |
case $as_dir in #((( |
| 13618 |
'') as_dir=./ ;; |
| 13619 |
*/) ;; |
| 13620 |
*) as_dir=$as_dir/ ;; |
| 13621 |
esac |
| 13622 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13623 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13624 |
ac_cv_prog_ac_ct_AS="as" |
| 13625 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13626 |
break 2 |
| 13627 |
fi |
| 13628 |
done |
| 13629 |
done |
| 13630 |
IFS=$as_save_IFS |
| 13631 |
|
| 13632 |
fi ;; |
| 13633 |
esac |
| 13634 |
fi |
| 13635 |
ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 13636 |
if test -n "$ac_ct_AS"; then |
| 13637 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 13638 |
printf "%s\n" "$ac_ct_AS" >&6; } |
| 13639 |
else |
| 13640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13641 |
printf "%s\n" "no" >&6; } |
| 13642 |
fi |
| 13643 |
|
| 13644 |
if test "x$ac_ct_AS" = x; then |
| 13645 |
AS="false" |
| 13646 |
else |
| 13647 |
case $cross_compiling:$ac_tool_warned in |
| 13648 |
yes:) |
| 13649 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13650 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13651 |
ac_tool_warned=yes ;; |
| 13652 |
esac |
| 13653 |
AS=$ac_ct_AS |
| 13654 |
fi |
| 13655 |
else |
| 13656 |
AS="$ac_cv_prog_AS" |
| 13657 |
fi |
| 13658 |
|
| 13659 |
if test -n "$ac_tool_prefix"; then |
| 13660 |
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. |
| 13661 |
set dummy ${ac_tool_prefix}dlltool; ac_word=$2 |
| 13662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13663 |
printf %s "checking for $ac_word... " >&6; } |
| 13664 |
if test ${ac_cv_prog_DLLTOOL+y} |
| 13665 |
then : |
| 13666 |
printf %s "(cached) " >&6 |
| 13667 |
else case e in #( |
| 13668 |
e) if test -n "$DLLTOOL"; then |
| 13669 |
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. |
| 13670 |
else |
| 13671 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13672 |
for as_dir in $PATH |
| 13673 |
do |
| 13674 |
IFS=$as_save_IFS |
| 13675 |
case $as_dir in #((( |
| 13676 |
'') as_dir=./ ;; |
| 13677 |
*/) ;; |
| 13678 |
*) as_dir=$as_dir/ ;; |
| 13679 |
esac |
| 13680 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13681 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13682 |
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
| 13683 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13684 |
break 2 |
| 13685 |
fi |
| 13686 |
done |
| 13687 |
done |
| 13688 |
IFS=$as_save_IFS |
| 13689 |
|
| 13690 |
fi ;; |
| 13691 |
esac |
| 13692 |
fi |
| 13693 |
DLLTOOL=$ac_cv_prog_DLLTOOL |
| 13694 |
if test -n "$DLLTOOL"; then |
| 13695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 |
| 13696 |
printf "%s\n" "$DLLTOOL" >&6; } |
| 13697 |
else |
| 13698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13699 |
printf "%s\n" "no" >&6; } |
| 13700 |
fi |
| 13701 |
|
| 13702 |
|
| 13703 |
fi |
| 13704 |
if test -z "$ac_cv_prog_DLLTOOL"; then |
| 13705 |
ac_ct_DLLTOOL=$DLLTOOL |
| 13706 |
# Extract the first word of "dlltool", so it can be a program name with args. |
| 13707 |
set dummy dlltool; ac_word=$2 |
| 13708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13709 |
printf %s "checking for $ac_word... " >&6; } |
| 13710 |
if test ${ac_cv_prog_ac_ct_DLLTOOL+y} |
| 13711 |
then : |
| 13712 |
printf %s "(cached) " >&6 |
| 13713 |
else case e in #( |
| 13714 |
e) if test -n "$ac_ct_DLLTOOL"; then |
| 13715 |
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. |
| 13716 |
else |
| 13717 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13718 |
for as_dir in $PATH |
| 13719 |
do |
| 13720 |
IFS=$as_save_IFS |
| 13721 |
case $as_dir in #((( |
| 13722 |
'') as_dir=./ ;; |
| 13723 |
*/) ;; |
| 13724 |
*) as_dir=$as_dir/ ;; |
| 13725 |
esac |
| 13726 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13727 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13728 |
ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
| 13729 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13730 |
break 2 |
| 13731 |
fi |
| 13732 |
done |
| 13733 |
done |
| 13734 |
IFS=$as_save_IFS |
| 13735 |
|
| 13736 |
fi ;; |
| 13737 |
esac |
| 13738 |
fi |
| 13739 |
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL |
| 13740 |
if test -n "$ac_ct_DLLTOOL"; then |
| 13741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 |
| 13742 |
printf "%s\n" "$ac_ct_DLLTOOL" >&6; } |
| 13743 |
else |
| 13744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13745 |
printf "%s\n" "no" >&6; } |
| 13746 |
fi |
| 13747 |
|
| 13748 |
if test "x$ac_ct_DLLTOOL" = x; then |
| 13749 |
DLLTOOL="false" |
| 13750 |
else |
| 13751 |
case $cross_compiling:$ac_tool_warned in |
| 13752 |
yes:) |
| 13753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13754 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13755 |
ac_tool_warned=yes ;; |
| 13756 |
esac |
| 13757 |
DLLTOOL=$ac_ct_DLLTOOL |
| 13758 |
fi |
| 13759 |
else |
| 13760 |
DLLTOOL="$ac_cv_prog_DLLTOOL" |
| 13761 |
fi |
| 13762 |
|
| 13763 |
if test -n "$ac_tool_prefix"; then |
| 13764 |
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. |
| 13765 |
set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
| 13766 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13767 |
printf %s "checking for $ac_word... " >&6; } |
| 13768 |
if test ${ac_cv_prog_OBJDUMP+y} |
| 13769 |
then : |
| 13770 |
printf %s "(cached) " >&6 |
| 13771 |
else case e in #( |
| 13772 |
e) if test -n "$OBJDUMP"; then |
| 13773 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 13774 |
else |
| 13775 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13776 |
for as_dir in $PATH |
| 13777 |
do |
| 13778 |
IFS=$as_save_IFS |
| 13779 |
case $as_dir in #((( |
| 13780 |
'') as_dir=./ ;; |
| 13781 |
*/) ;; |
| 13782 |
*) as_dir=$as_dir/ ;; |
| 13783 |
esac |
| 13784 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13785 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13786 |
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
| 13787 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13788 |
break 2 |
| 13789 |
fi |
| 13790 |
done |
| 13791 |
done |
| 13792 |
IFS=$as_save_IFS |
| 13793 |
|
| 13794 |
fi ;; |
| 13795 |
esac |
| 13796 |
fi |
| 13797 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 13798 |
if test -n "$OBJDUMP"; then |
| 13799 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 13800 |
printf "%s\n" "$OBJDUMP" >&6; } |
| 13801 |
else |
| 13802 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13803 |
printf "%s\n" "no" >&6; } |
| 13804 |
fi |
| 13805 |
|
| 13806 |
|
| 13807 |
fi |
| 13808 |
if test -z "$ac_cv_prog_OBJDUMP"; then |
| 13809 |
ac_ct_OBJDUMP=$OBJDUMP |
| 13810 |
# Extract the first word of "objdump", so it can be a program name with args. |
| 13811 |
set dummy objdump; ac_word=$2 |
| 13812 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13813 |
printf %s "checking for $ac_word... " >&6; } |
| 13814 |
if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 13815 |
then : |
| 13816 |
printf %s "(cached) " >&6 |
| 13817 |
else case e in #( |
| 13818 |
e) if test -n "$ac_ct_OBJDUMP"; then |
| 13819 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 13820 |
else |
| 13821 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13822 |
for as_dir in $PATH |
| 13823 |
do |
| 13824 |
IFS=$as_save_IFS |
| 13825 |
case $as_dir in #((( |
| 13826 |
'') as_dir=./ ;; |
| 13827 |
*/) ;; |
| 13828 |
*) as_dir=$as_dir/ ;; |
| 13829 |
esac |
| 13830 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 13831 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 13832 |
ac_cv_prog_ac_ct_OBJDUMP="objdump" |
| 13833 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 13834 |
break 2 |
| 13835 |
fi |
| 13836 |
done |
| 13837 |
done |
| 13838 |
IFS=$as_save_IFS |
| 13839 |
|
| 13840 |
fi ;; |
| 13841 |
esac |
| 13842 |
fi |
| 13843 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 13844 |
if test -n "$ac_ct_OBJDUMP"; then |
| 13845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 13846 |
printf "%s\n" "$ac_ct_OBJDUMP" >&6; } |
| 13847 |
else |
| 13848 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13849 |
printf "%s\n" "no" >&6; } |
| 13850 |
fi |
| 13851 |
|
| 13852 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 13853 |
OBJDUMP="false" |
| 13854 |
else |
| 13855 |
case $cross_compiling:$ac_tool_warned in |
| 13856 |
yes:) |
| 13857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 13858 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 13859 |
ac_tool_warned=yes ;; |
| 13860 |
esac |
| 13861 |
OBJDUMP=$ac_ct_OBJDUMP |
| 13862 |
fi |
| 13863 |
else |
| 13864 |
OBJDUMP="$ac_cv_prog_OBJDUMP" |
| 13865 |
fi |
| 13866 |
|
| 13867 |
;; |
| 13868 |
esac |
| 13869 |
|
| 13870 |
test -z "$AS" && AS=as |
| 13871 |
|
| 13872 |
|
| 13873 |
|
| 13874 |
|
| 13875 |
|
| 13876 |
test -z "$DLLTOOL" && DLLTOOL=dlltool |
| 13877 |
|
| 13878 |
|
| 13879 |
|
| 13880 |
|
| 13881 |
|
| 13882 |
test -z "$OBJDUMP" && OBJDUMP=objdump |
| 13883 |
|
| 13884 |
|
| 13885 |
|
| 13886 |
|
| 13887 |
|
| 13888 |
|
| 13889 |
|
| 13890 |
enable_dlopen=no |
| 13891 |
|
| 13892 |
|
| 13893 |
|
| 13894 |
# Check whether --enable-shared was given. |
| 13895 |
if test ${enable_shared+y} |
| 13896 |
then : |
| 13897 |
enableval=$enable_shared; p=${PACKAGE-default} |
| 13898 |
case $enableval in |
| 13899 |
yes) enable_shared=yes ;; |
| 13900 |
no) enable_shared=no ;; |
| 13901 |
*) |
| 13902 |
enable_shared=no |
| 13903 |
# Look at the argument we got. We use all the common list separators. |
| 13904 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 13905 |
for pkg in $enableval; do |
| 13906 |
IFS=$lt_save_ifs |
| 13907 |
if test "X$pkg" = "X$p"; then |
| 13908 |
enable_shared=yes |
| 13909 |
fi |
| 13910 |
done |
| 13911 |
IFS=$lt_save_ifs |
| 13912 |
;; |
| 13913 |
esac |
| 13914 |
else case e in #( |
| 13915 |
e) enable_shared=yes ;; |
| 13916 |
esac |
| 13917 |
fi |
| 13918 |
|
| 13919 |
|
| 13920 |
|
| 13921 |
|
| 13922 |
|
| 13923 |
|
| 13924 |
|
| 13925 |
|
| 13926 |
|
| 13927 |
# Check whether --enable-static was given. |
| 13928 |
if test ${enable_static+y} |
| 13929 |
then : |
| 13930 |
enableval=$enable_static; p=${PACKAGE-default} |
| 13931 |
case $enableval in |
| 13932 |
yes) enable_static=yes ;; |
| 13933 |
no) enable_static=no ;; |
| 13934 |
*) |
| 13935 |
enable_static=no |
| 13936 |
# Look at the argument we got. We use all the common list separators. |
| 13937 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 13938 |
for pkg in $enableval; do |
| 13939 |
IFS=$lt_save_ifs |
| 13940 |
if test "X$pkg" = "X$p"; then |
| 13941 |
enable_static=yes |
| 13942 |
fi |
| 13943 |
done |
| 13944 |
IFS=$lt_save_ifs |
| 13945 |
;; |
| 13946 |
esac |
| 13947 |
else case e in #( |
| 13948 |
e) enable_static=yes ;; |
| 13949 |
esac |
| 13950 |
fi |
| 13951 |
|
| 13952 |
|
| 13953 |
|
| 13954 |
|
| 13955 |
|
| 13956 |
|
| 13957 |
|
| 13958 |
|
| 13959 |
|
| 13960 |
# Check whether --enable-pic was given. |
| 13961 |
if test ${enable_pic+y} |
| 13962 |
then : |
| 13963 |
enableval=$enable_pic; lt_p=${PACKAGE-default} |
| 13964 |
case $enableval in |
| 13965 |
yes|no) pic_mode=$enableval ;; |
| 13966 |
*) |
| 13967 |
pic_mode=default |
| 13968 |
# Look at the argument we got. We use all the common list separators. |
| 13969 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 13970 |
for lt_pkg in $enableval; do |
| 13971 |
IFS=$lt_save_ifs |
| 13972 |
if test "X$lt_pkg" = "X$lt_p"; then |
| 13973 |
pic_mode=yes |
| 13974 |
fi |
| 13975 |
done |
| 13976 |
IFS=$lt_save_ifs |
| 13977 |
;; |
| 13978 |
esac |
| 13979 |
else case e in #( |
| 13980 |
e) # Check whether --with-pic was given. |
| 13981 |
if test ${with_pic+y} |
| 13982 |
then : |
| 13983 |
withval=$with_pic; lt_p=${PACKAGE-default} |
| 13984 |
case $withval in |
| 13985 |
yes|no) pic_mode=$withval ;; |
| 13986 |
*) |
| 13987 |
pic_mode=default |
| 13988 |
# Look at the argument we got. We use all the common list separators. |
| 13989 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 13990 |
for lt_pkg in $withval; do |
| 13991 |
IFS=$lt_save_ifs |
| 13992 |
if test "X$lt_pkg" = "X$lt_p"; then |
| 13993 |
pic_mode=yes |
| 13994 |
fi |
| 13995 |
done |
| 13996 |
IFS=$lt_save_ifs |
| 13997 |
;; |
| 13998 |
esac |
| 13999 |
else case e in #( |
| 14000 |
e) pic_mode=default ;; |
| 14001 |
esac |
| 14002 |
fi |
| 14003 |
|
| 14004 |
;; |
| 14005 |
esac |
| 14006 |
fi |
| 14007 |
|
| 14008 |
|
| 14009 |
|
| 14010 |
|
| 14011 |
|
| 14012 |
|
| 14013 |
|
| 14014 |
|
| 14015 |
# Check whether --enable-fast-install was given. |
| 14016 |
if test ${enable_fast_install+y} |
| 14017 |
then : |
| 14018 |
enableval=$enable_fast_install; p=${PACKAGE-default} |
| 14019 |
case $enableval in |
| 14020 |
yes) enable_fast_install=yes ;; |
| 14021 |
no) enable_fast_install=no ;; |
| 14022 |
*) |
| 14023 |
enable_fast_install=no |
| 14024 |
# Look at the argument we got. We use all the common list separators. |
| 14025 |
lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, |
| 14026 |
for pkg in $enableval; do |
| 14027 |
IFS=$lt_save_ifs |
| 14028 |
if test "X$pkg" = "X$p"; then |
| 14029 |
enable_fast_install=yes |
| 14030 |
fi |
| 14031 |
done |
| 14032 |
IFS=$lt_save_ifs |
| 14033 |
;; |
| 14034 |
esac |
| 14035 |
else case e in #( |
| 14036 |
e) enable_fast_install=yes ;; |
| 14037 |
esac |
| 14038 |
fi |
| 14039 |
|
| 14040 |
|
| 14041 |
|
| 14042 |
|
| 14043 |
|
| 14044 |
|
| 14045 |
|
| 14046 |
|
| 14047 |
shared_archive_member_spec= |
| 14048 |
case $host,$enable_shared in |
| 14049 |
power*-*-aix[5-9]*,yes) |
| 14050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 |
| 14051 |
printf %s "checking which variant of shared library versioning to provide... " >&6; } |
| 14052 |
# Check whether --enable-aix-soname was given. |
| 14053 |
if test ${enable_aix_soname+y} |
| 14054 |
then : |
| 14055 |
enableval=$enable_aix_soname; case $enableval in |
| 14056 |
aix|svr4|both) |
| 14057 |
;; |
| 14058 |
*) |
| 14059 |
as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5 |
| 14060 |
;; |
| 14061 |
esac |
| 14062 |
lt_cv_with_aix_soname=$enable_aix_soname |
| 14063 |
else case e in #( |
| 14064 |
e) # Check whether --with-aix-soname was given. |
| 14065 |
if test ${with_aix_soname+y} |
| 14066 |
then : |
| 14067 |
withval=$with_aix_soname; case $withval in |
| 14068 |
aix|svr4|both) |
| 14069 |
;; |
| 14070 |
*) |
| 14071 |
as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 |
| 14072 |
;; |
| 14073 |
esac |
| 14074 |
lt_cv_with_aix_soname=$with_aix_soname |
| 14075 |
else case e in #( |
| 14076 |
e) if test ${lt_cv_with_aix_soname+y} |
| 14077 |
then : |
| 14078 |
printf %s "(cached) " >&6 |
| 14079 |
else case e in #( |
| 14080 |
e) lt_cv_with_aix_soname=aix ;; |
| 14081 |
esac |
| 14082 |
fi |
| 14083 |
;; |
| 14084 |
esac |
| 14085 |
fi |
| 14086 |
|
| 14087 |
enable_aix_soname=$lt_cv_with_aix_soname ;; |
| 14088 |
esac |
| 14089 |
fi |
| 14090 |
|
| 14091 |
with_aix_soname=$enable_aix_soname |
| 14092 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 |
| 14093 |
printf "%s\n" "$with_aix_soname" >&6; } |
| 14094 |
if test aix != "$with_aix_soname"; then |
| 14095 |
# For the AIX way of multilib, we name the shared archive member |
| 14096 |
# based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', |
| 14097 |
# and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. |
| 14098 |
# Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, |
| 14099 |
# the AIX toolchain works better with OBJECT_MODE set (default 32). |
| 14100 |
if test 64 = "${OBJECT_MODE-32}"; then |
| 14101 |
shared_archive_member_spec=shr_64 |
| 14102 |
else |
| 14103 |
shared_archive_member_spec=shr |
| 14104 |
fi |
| 14105 |
fi |
| 14106 |
;; |
| 14107 |
*) |
| 14108 |
with_aix_soname=aix |
| 14109 |
;; |
| 14110 |
esac |
| 14111 |
|
| 14112 |
|
| 14113 |
|
| 14114 |
|
| 14115 |
|
| 14116 |
|
| 14117 |
|
| 14118 |
|
| 14119 |
|
| 14120 |
|
| 14121 |
# This can be used to rebuild libtool when needed |
| 14122 |
LIBTOOL_DEPS=$ltmain |
| 14123 |
|
| 14124 |
# Always use our own libtool. |
| 14125 |
LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 14126 |
|
| 14127 |
|
| 14128 |
|
| 14129 |
|
| 14130 |
|
| 14131 |
|
| 14132 |
|
| 14133 |
|
| 14134 |
|
| 14135 |
|
| 14136 |
|
| 14137 |
|
| 14138 |
|
| 14139 |
|
| 14140 |
|
| 14141 |
|
| 14142 |
|
| 14143 |
|
| 14144 |
|
| 14145 |
|
| 14146 |
|
| 14147 |
|
| 14148 |
|
| 14149 |
|
| 14150 |
|
| 14151 |
|
| 14152 |
|
| 14153 |
|
| 14154 |
|
| 14155 |
|
| 14156 |
test -z "$LN_S" && LN_S="ln -s" |
| 14157 |
|
| 14158 |
|
| 14159 |
|
| 14160 |
|
| 14161 |
|
| 14162 |
|
| 14163 |
|
| 14164 |
|
| 14165 |
|
| 14166 |
|
| 14167 |
|
| 14168 |
|
| 14169 |
|
| 14170 |
|
| 14171 |
if test -n "${ZSH_VERSION+set}"; then |
| 14172 |
setopt NO_GLOB_SUBST |
| 14173 |
fi |
| 14174 |
|
| 14175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
| 14176 |
printf %s "checking for objdir... " >&6; } |
| 14177 |
if test ${lt_cv_objdir+y} |
| 14178 |
then : |
| 14179 |
printf %s "(cached) " >&6 |
| 14180 |
else case e in #( |
| 14181 |
e) rm -f .libs 2>/dev/null |
| 14182 |
mkdir .libs 2>/dev/null |
| 14183 |
if test -d .libs; then |
| 14184 |
lt_cv_objdir=.libs |
| 14185 |
else |
| 14186 |
# MS-DOS does not allow filenames that begin with a dot. |
| 14187 |
lt_cv_objdir=_libs |
| 14188 |
fi |
| 14189 |
rmdir .libs 2>/dev/null ;; |
| 14190 |
esac |
| 14191 |
fi |
| 14192 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
| 14193 |
printf "%s\n" "$lt_cv_objdir" >&6; } |
| 14194 |
objdir=$lt_cv_objdir |
| 14195 |
|
| 14196 |
|
| 14197 |
|
| 14198 |
|
| 14199 |
|
| 14200 |
printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h |
| 14201 |
|
| 14202 |
|
| 14203 |
|
| 14204 |
|
| 14205 |
case $host_os in |
| 14206 |
aix3*) |
| 14207 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 14208 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 14209 |
# vanish in a puff of smoke. |
| 14210 |
if test set != "${COLLECT_NAMES+set}"; then |
| 14211 |
COLLECT_NAMES= |
| 14212 |
export COLLECT_NAMES |
| 14213 |
fi |
| 14214 |
;; |
| 14215 |
esac |
| 14216 |
|
| 14217 |
# Global variables: |
| 14218 |
ofile=libtool |
| 14219 |
can_build_shared=yes |
| 14220 |
|
| 14221 |
# All known linkers require a '.a' archive for static linking (except MSVC and |
| 14222 |
# ICC, which need '.lib'). |
| 14223 |
libext=a |
| 14224 |
|
| 14225 |
with_gnu_ld=$lt_cv_prog_gnu_ld |
| 14226 |
|
| 14227 |
old_CC=$CC |
| 14228 |
old_CFLAGS=$CFLAGS |
| 14229 |
|
| 14230 |
# Set sane defaults for various variables |
| 14231 |
test -z "$CC" && CC=cc |
| 14232 |
test -z "$LTCC" && LTCC=$CC |
| 14233 |
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
| 14234 |
test -z "$LD" && LD=ld |
| 14235 |
test -z "$ac_objext" && ac_objext=o |
| 14236 |
|
| 14237 |
func_cc_basename $compiler |
| 14238 |
cc_basename=$func_cc_basename_result |
| 14239 |
|
| 14240 |
|
| 14241 |
# Only perform the check for file, if the check method requires it |
| 14242 |
test -z "$MAGIC_CMD" && MAGIC_CMD=file |
| 14243 |
case $deplibs_check_method in |
| 14244 |
file_magic*) |
| 14245 |
if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
| 14246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
| 14247 |
printf %s "checking for ${ac_tool_prefix}file... " >&6; } |
| 14248 |
if test ${lt_cv_path_MAGIC_CMD+y} |
| 14249 |
then : |
| 14250 |
printf %s "(cached) " >&6 |
| 14251 |
else case e in #( |
| 14252 |
e) case $MAGIC_CMD in |
| 14253 |
[\\/*] | ?:[\\/]*) |
| 14254 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 14255 |
;; |
| 14256 |
*) |
| 14257 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 14258 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 14259 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14260 |
for ac_dir in $ac_dummy; do |
| 14261 |
IFS=$lt_save_ifs |
| 14262 |
test -z "$ac_dir" && ac_dir=. |
| 14263 |
if test -f "$ac_dir/${ac_tool_prefix}file"; then |
| 14264 |
lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" |
| 14265 |
if test -n "$file_magic_test_file"; then |
| 14266 |
case $deplibs_check_method in |
| 14267 |
"file_magic "*) |
| 14268 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 14269 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 14270 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14271 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 14272 |
: |
| 14273 |
else |
| 14274 |
cat <<_LT_EOF 1>&2 |
| 14275 |
|
| 14276 |
*** Warning: the command libtool uses to detect shared libraries, |
| 14277 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14278 |
*** The result is that libtool may fail to recognize shared libraries |
| 14279 |
*** as such. This will affect the creation of libtool libraries that |
| 14280 |
*** depend on shared libraries, but programs linked with such libtool |
| 14281 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 14282 |
*** may want to report the problem to your system manager and/or to |
| 14283 |
*** [email protected] |
| 14284 |
|
| 14285 |
_LT_EOF |
| 14286 |
fi ;; |
| 14287 |
esac |
| 14288 |
fi |
| 14289 |
break |
| 14290 |
fi |
| 14291 |
done |
| 14292 |
IFS=$lt_save_ifs |
| 14293 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 14294 |
;; |
| 14295 |
esac ;; |
| 14296 |
esac |
| 14297 |
fi |
| 14298 |
|
| 14299 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 14300 |
if test -n "$MAGIC_CMD"; then |
| 14301 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 14302 |
printf "%s\n" "$MAGIC_CMD" >&6; } |
| 14303 |
else |
| 14304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14305 |
printf "%s\n" "no" >&6; } |
| 14306 |
fi |
| 14307 |
|
| 14308 |
|
| 14309 |
|
| 14310 |
|
| 14311 |
|
| 14312 |
if test -z "$lt_cv_path_MAGIC_CMD"; then |
| 14313 |
if test -n "$ac_tool_prefix"; then |
| 14314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
| 14315 |
printf %s "checking for file... " >&6; } |
| 14316 |
if test ${lt_cv_path_MAGIC_CMD+y} |
| 14317 |
then : |
| 14318 |
printf %s "(cached) " >&6 |
| 14319 |
else case e in #( |
| 14320 |
e) case $MAGIC_CMD in |
| 14321 |
[\\/*] | ?:[\\/]*) |
| 14322 |
lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. |
| 14323 |
;; |
| 14324 |
*) |
| 14325 |
lt_save_MAGIC_CMD=$MAGIC_CMD |
| 14326 |
lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR |
| 14327 |
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
| 14328 |
for ac_dir in $ac_dummy; do |
| 14329 |
IFS=$lt_save_ifs |
| 14330 |
test -z "$ac_dir" && ac_dir=. |
| 14331 |
if test -f "$ac_dir/file"; then |
| 14332 |
lt_cv_path_MAGIC_CMD=$ac_dir/"file" |
| 14333 |
if test -n "$file_magic_test_file"; then |
| 14334 |
case $deplibs_check_method in |
| 14335 |
"file_magic "*) |
| 14336 |
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
| 14337 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 14338 |
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
| 14339 |
$EGREP "$file_magic_regex" > /dev/null; then |
| 14340 |
: |
| 14341 |
else |
| 14342 |
cat <<_LT_EOF 1>&2 |
| 14343 |
|
| 14344 |
*** Warning: the command libtool uses to detect shared libraries, |
| 14345 |
*** $file_magic_cmd, produces output that libtool cannot recognize. |
| 14346 |
*** The result is that libtool may fail to recognize shared libraries |
| 14347 |
*** as such. This will affect the creation of libtool libraries that |
| 14348 |
*** depend on shared libraries, but programs linked with such libtool |
| 14349 |
*** libraries will work regardless of this problem. Nevertheless, you |
| 14350 |
*** may want to report the problem to your system manager and/or to |
| 14351 |
*** [email protected] |
| 14352 |
|
| 14353 |
_LT_EOF |
| 14354 |
fi ;; |
| 14355 |
esac |
| 14356 |
fi |
| 14357 |
break |
| 14358 |
fi |
| 14359 |
done |
| 14360 |
IFS=$lt_save_ifs |
| 14361 |
MAGIC_CMD=$lt_save_MAGIC_CMD |
| 14362 |
;; |
| 14363 |
esac ;; |
| 14364 |
esac |
| 14365 |
fi |
| 14366 |
|
| 14367 |
MAGIC_CMD=$lt_cv_path_MAGIC_CMD |
| 14368 |
if test -n "$MAGIC_CMD"; then |
| 14369 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
| 14370 |
printf "%s\n" "$MAGIC_CMD" >&6; } |
| 14371 |
else |
| 14372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14373 |
printf "%s\n" "no" >&6; } |
| 14374 |
fi |
| 14375 |
|
| 14376 |
|
| 14377 |
else |
| 14378 |
MAGIC_CMD=: |
| 14379 |
fi |
| 14380 |
fi |
| 14381 |
|
| 14382 |
fi |
| 14383 |
;; |
| 14384 |
esac |
| 14385 |
|
| 14386 |
# Use C for the default configuration in the libtool script |
| 14387 |
|
| 14388 |
lt_save_CC=$CC |
| 14389 |
ac_ext=c |
| 14390 |
ac_cpp='$CPP $CPPFLAGS' |
| 14391 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 14392 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 14393 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 14394 |
|
| 14395 |
|
| 14396 |
# Source file extension for C test sources. |
| 14397 |
ac_ext=c |
| 14398 |
|
| 14399 |
# Object file extension for compiled C test sources. |
| 14400 |
objext=o |
| 14401 |
objext=$objext |
| 14402 |
|
| 14403 |
# Code to be used in simple compile tests |
| 14404 |
lt_simple_compile_test_code="int some_variable = 0;" |
| 14405 |
|
| 14406 |
# Code to be used in simple link tests |
| 14407 |
lt_simple_link_test_code='int main(void){return(0);}' |
| 14408 |
|
| 14409 |
|
| 14410 |
|
| 14411 |
|
| 14412 |
|
| 14413 |
|
| 14414 |
|
| 14415 |
# If no C compiler was specified, use CC. |
| 14416 |
LTCC=${LTCC-"$CC"} |
| 14417 |
|
| 14418 |
# If no C compiler flags were specified, use CFLAGS. |
| 14419 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 14420 |
|
| 14421 |
# Allow CC to be a program name with arguments. |
| 14422 |
compiler=$CC |
| 14423 |
|
| 14424 |
# Save the default compiler, since it gets overwritten when the other |
| 14425 |
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. |
| 14426 |
compiler_DEFAULT=$CC |
| 14427 |
|
| 14428 |
# save warnings/boilerplate of simple test code |
| 14429 |
ac_outfile=conftest.$ac_objext |
| 14430 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 14431 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14432 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 14433 |
$RM conftest* |
| 14434 |
|
| 14435 |
ac_outfile=conftest.$ac_objext |
| 14436 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 14437 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 14438 |
_lt_linker_boilerplate=`cat conftest.err` |
| 14439 |
$RM -r conftest* |
| 14440 |
|
| 14441 |
|
| 14442 |
## CAVEAT EMPTOR: |
| 14443 |
## There is no encapsulation within the following macros, do not change |
| 14444 |
## the running order or otherwise move them around unless you know exactly |
| 14445 |
## what you are doing... |
| 14446 |
if test -n "$compiler"; then |
| 14447 |
|
| 14448 |
lt_prog_compiler_no_builtin_flag= |
| 14449 |
|
| 14450 |
if test yes = "$GCC"; then |
| 14451 |
case $cc_basename in |
| 14452 |
nvcc*) |
| 14453 |
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; |
| 14454 |
*) |
| 14455 |
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; |
| 14456 |
esac |
| 14457 |
|
| 14458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
| 14459 |
printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
| 14460 |
if test ${lt_cv_prog_compiler_rtti_exceptions+y} |
| 14461 |
then : |
| 14462 |
printf %s "(cached) " >&6 |
| 14463 |
else case e in #( |
| 14464 |
e) lt_cv_prog_compiler_rtti_exceptions=no |
| 14465 |
ac_outfile=conftest.$ac_objext |
| 14466 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14467 |
lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment |
| 14468 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 14469 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 14470 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 14471 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14472 |
# The option is referenced via a variable to avoid confusing sed. |
| 14473 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 14474 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14475 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14476 |
-e 's:$: $lt_compiler_flag:'` |
| 14477 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14478 |
(eval "$lt_compile" 2>conftest.err) |
| 14479 |
ac_status=$? |
| 14480 |
cat conftest.err >&5 |
| 14481 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14482 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14483 |
# The compiler can only warn and ignore the option if not recognized |
| 14484 |
# So say no if there are warnings other than the usual output. |
| 14485 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14486 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14487 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14488 |
lt_cv_prog_compiler_rtti_exceptions=yes |
| 14489 |
fi |
| 14490 |
fi |
| 14491 |
$RM conftest* |
| 14492 |
;; |
| 14493 |
esac |
| 14494 |
fi |
| 14495 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
| 14496 |
printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
| 14497 |
|
| 14498 |
if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then |
| 14499 |
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
| 14500 |
else |
| 14501 |
: |
| 14502 |
fi |
| 14503 |
|
| 14504 |
fi |
| 14505 |
|
| 14506 |
|
| 14507 |
|
| 14508 |
|
| 14509 |
|
| 14510 |
|
| 14511 |
lt_prog_compiler_wl= |
| 14512 |
lt_prog_compiler_pic= |
| 14513 |
lt_prog_compiler_static= |
| 14514 |
|
| 14515 |
|
| 14516 |
if test yes = "$GCC"; then |
| 14517 |
lt_prog_compiler_wl='-Wl,' |
| 14518 |
lt_prog_compiler_static='-static' |
| 14519 |
|
| 14520 |
case $host_os in |
| 14521 |
aix*) |
| 14522 |
# All AIX code is PIC. |
| 14523 |
if test ia64 = "$host_cpu"; then |
| 14524 |
# AIX 5 now supports IA64 processor |
| 14525 |
lt_prog_compiler_static='-Bstatic' |
| 14526 |
fi |
| 14527 |
lt_prog_compiler_pic='-fPIC' |
| 14528 |
;; |
| 14529 |
|
| 14530 |
amigaos*) |
| 14531 |
case $host_cpu in |
| 14532 |
powerpc) |
| 14533 |
# see comment about AmigaOS4 .so support |
| 14534 |
lt_prog_compiler_pic='-fPIC' |
| 14535 |
;; |
| 14536 |
m68k) |
| 14537 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 14538 |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 14539 |
# like '-m68040'. |
| 14540 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 14541 |
;; |
| 14542 |
esac |
| 14543 |
;; |
| 14544 |
|
| 14545 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 14546 |
# PIC is the default for these OSes. |
| 14547 |
;; |
| 14548 |
|
| 14549 |
mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 14550 |
# This hack is so that the source file can tell whether it is being |
| 14551 |
# built for inclusion in a dll (and should export symbols for example). |
| 14552 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 14553 |
# (--disable-auto-import) libraries |
| 14554 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14555 |
case $host_os in |
| 14556 |
os2*) |
| 14557 |
lt_prog_compiler_static='$wl-static' |
| 14558 |
;; |
| 14559 |
esac |
| 14560 |
;; |
| 14561 |
|
| 14562 |
darwin* | rhapsody*) |
| 14563 |
# PIC is the default on this platform |
| 14564 |
# Common symbols not allowed in MH_DYLIB files |
| 14565 |
lt_prog_compiler_pic='-fno-common' |
| 14566 |
;; |
| 14567 |
|
| 14568 |
haiku*) |
| 14569 |
# PIC is the default for Haiku. |
| 14570 |
# The "-static" flag exists, but is broken. |
| 14571 |
lt_prog_compiler_static= |
| 14572 |
;; |
| 14573 |
|
| 14574 |
hpux*) |
| 14575 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 14576 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 14577 |
# sets the default TLS model and affects inlining. |
| 14578 |
case $host_cpu in |
| 14579 |
hppa*64*) |
| 14580 |
# +Z the default |
| 14581 |
;; |
| 14582 |
*) |
| 14583 |
lt_prog_compiler_pic='-fPIC' |
| 14584 |
;; |
| 14585 |
esac |
| 14586 |
;; |
| 14587 |
|
| 14588 |
interix[3-9]*) |
| 14589 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 14590 |
# Instead, we relocate shared libraries at runtime. |
| 14591 |
;; |
| 14592 |
|
| 14593 |
msdosdjgpp*) |
| 14594 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 14595 |
# on systems that don't support them. |
| 14596 |
lt_prog_compiler_can_build_shared=no |
| 14597 |
enable_shared=no |
| 14598 |
;; |
| 14599 |
|
| 14600 |
*nto* | *qnx*) |
| 14601 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14602 |
# it will coredump. |
| 14603 |
lt_prog_compiler_pic='-fPIC -shared' |
| 14604 |
;; |
| 14605 |
|
| 14606 |
sysv4*MP*) |
| 14607 |
if test -d /usr/nec; then |
| 14608 |
lt_prog_compiler_pic=-Kconform_pic |
| 14609 |
fi |
| 14610 |
;; |
| 14611 |
|
| 14612 |
*) |
| 14613 |
lt_prog_compiler_pic='-fPIC' |
| 14614 |
;; |
| 14615 |
esac |
| 14616 |
|
| 14617 |
case $cc_basename in |
| 14618 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 14619 |
lt_prog_compiler_wl='-Xlinker ' |
| 14620 |
if test -n "$lt_prog_compiler_pic"; then |
| 14621 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 14622 |
fi |
| 14623 |
;; |
| 14624 |
esac |
| 14625 |
else |
| 14626 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 14627 |
case $host_os in |
| 14628 |
aix*) |
| 14629 |
lt_prog_compiler_wl='-Wl,' |
| 14630 |
if test ia64 = "$host_cpu"; then |
| 14631 |
# AIX 5 now supports IA64 processor |
| 14632 |
lt_prog_compiler_static='-Bstatic' |
| 14633 |
else |
| 14634 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 14635 |
fi |
| 14636 |
;; |
| 14637 |
|
| 14638 |
darwin* | rhapsody*) |
| 14639 |
# PIC is the default on this platform |
| 14640 |
# Common symbols not allowed in MH_DYLIB files |
| 14641 |
lt_prog_compiler_pic='-fno-common' |
| 14642 |
case $cc_basename in |
| 14643 |
nagfor*) |
| 14644 |
# NAG Fortran compiler |
| 14645 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14646 |
lt_prog_compiler_pic='-PIC' |
| 14647 |
lt_prog_compiler_static='-Bstatic' |
| 14648 |
;; |
| 14649 |
esac |
| 14650 |
;; |
| 14651 |
|
| 14652 |
mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 14653 |
# This hack is so that the source file can tell whether it is being |
| 14654 |
# built for inclusion in a dll (and should export symbols for example). |
| 14655 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 14656 |
case $host_os in |
| 14657 |
os2*) |
| 14658 |
lt_prog_compiler_static='$wl-static' |
| 14659 |
;; |
| 14660 |
esac |
| 14661 |
;; |
| 14662 |
|
| 14663 |
hpux9* | hpux10* | hpux11*) |
| 14664 |
lt_prog_compiler_wl='-Wl,' |
| 14665 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 14666 |
# not for PA HP-UX. |
| 14667 |
case $host_cpu in |
| 14668 |
hppa*64*|ia64*) |
| 14669 |
# +Z the default |
| 14670 |
;; |
| 14671 |
*) |
| 14672 |
lt_prog_compiler_pic='+Z' |
| 14673 |
;; |
| 14674 |
esac |
| 14675 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 14676 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
| 14677 |
;; |
| 14678 |
|
| 14679 |
irix5* | irix6* | nonstopux*) |
| 14680 |
lt_prog_compiler_wl='-Wl,' |
| 14681 |
# PIC (with -KPIC) is the default. |
| 14682 |
lt_prog_compiler_static='-non_shared' |
| 14683 |
;; |
| 14684 |
|
| 14685 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 14686 |
case $cc_basename in |
| 14687 |
# old Intel for x86_64, which still supported -KPIC. |
| 14688 |
ecc*) |
| 14689 |
lt_prog_compiler_wl='-Wl,' |
| 14690 |
lt_prog_compiler_pic='-KPIC' |
| 14691 |
lt_prog_compiler_static='-static' |
| 14692 |
;; |
| 14693 |
*flang* | ftn | f18* | f95*) |
| 14694 |
# Flang compiler. |
| 14695 |
lt_prog_compiler_wl='-Wl,' |
| 14696 |
lt_prog_compiler_pic='-fPIC' |
| 14697 |
lt_prog_compiler_static='-static' |
| 14698 |
;; |
| 14699 |
# flang / f18. f95 an alias for gfortran or flang on Debian |
| 14700 |
flang* | f18* | f95*) |
| 14701 |
lt_prog_compiler_wl='-Wl,' |
| 14702 |
lt_prog_compiler_pic='-fPIC' |
| 14703 |
lt_prog_compiler_static='-static' |
| 14704 |
;; |
| 14705 |
# icc used to be incompatible with GCC. |
| 14706 |
# ICC 10 doesn't accept -KPIC any more. |
| 14707 |
icc* | ifort*) |
| 14708 |
lt_prog_compiler_wl='-Wl,' |
| 14709 |
lt_prog_compiler_pic='-fPIC' |
| 14710 |
lt_prog_compiler_static='-static' |
| 14711 |
;; |
| 14712 |
# Lahey Fortran 8.1. |
| 14713 |
lf95*) |
| 14714 |
lt_prog_compiler_wl='-Wl,' |
| 14715 |
lt_prog_compiler_pic='--shared' |
| 14716 |
lt_prog_compiler_static='--static' |
| 14717 |
;; |
| 14718 |
nagfor*) |
| 14719 |
# NAG Fortran compiler |
| 14720 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 14721 |
lt_prog_compiler_pic='-PIC' |
| 14722 |
lt_prog_compiler_static='-Bstatic' |
| 14723 |
;; |
| 14724 |
tcc*) |
| 14725 |
# Fabrice Bellard et al's Tiny C Compiler |
| 14726 |
lt_prog_compiler_wl='-Wl,' |
| 14727 |
lt_prog_compiler_pic='-fPIC' |
| 14728 |
lt_prog_compiler_static='-static' |
| 14729 |
;; |
| 14730 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 14731 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 14732 |
# which looks to be a dead project) |
| 14733 |
lt_prog_compiler_wl='-Wl,' |
| 14734 |
lt_prog_compiler_pic='-fpic' |
| 14735 |
lt_prog_compiler_static='-Bstatic' |
| 14736 |
;; |
| 14737 |
ccc*) |
| 14738 |
lt_prog_compiler_wl='-Wl,' |
| 14739 |
# All Alpha code is PIC. |
| 14740 |
lt_prog_compiler_static='-non_shared' |
| 14741 |
;; |
| 14742 |
xl* | bgxl* | bgf* | mpixl*) |
| 14743 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 14744 |
lt_prog_compiler_wl='-Wl,' |
| 14745 |
lt_prog_compiler_pic='-qpic' |
| 14746 |
lt_prog_compiler_static='-qstaticlink' |
| 14747 |
;; |
| 14748 |
*) |
| 14749 |
case `$CC -V 2>&1 | $SED 5q` in |
| 14750 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 14751 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 14752 |
lt_prog_compiler_pic='-KPIC' |
| 14753 |
lt_prog_compiler_static='-Bstatic' |
| 14754 |
lt_prog_compiler_wl='' |
| 14755 |
;; |
| 14756 |
*Sun\ F* | *Sun*Fortran*) |
| 14757 |
lt_prog_compiler_pic='-KPIC' |
| 14758 |
lt_prog_compiler_static='-Bstatic' |
| 14759 |
lt_prog_compiler_wl='-Qoption ld ' |
| 14760 |
;; |
| 14761 |
*Sun\ C*) |
| 14762 |
# Sun C 5.9 |
| 14763 |
lt_prog_compiler_pic='-KPIC' |
| 14764 |
lt_prog_compiler_static='-Bstatic' |
| 14765 |
lt_prog_compiler_wl='-Wl,' |
| 14766 |
;; |
| 14767 |
*Intel*\ [CF]*Compiler*) |
| 14768 |
lt_prog_compiler_wl='-Wl,' |
| 14769 |
lt_prog_compiler_pic='-fPIC' |
| 14770 |
lt_prog_compiler_static='-static' |
| 14771 |
;; |
| 14772 |
*Portland\ Group*) |
| 14773 |
lt_prog_compiler_wl='-Wl,' |
| 14774 |
lt_prog_compiler_pic='-fpic' |
| 14775 |
lt_prog_compiler_static='-Bstatic' |
| 14776 |
;; |
| 14777 |
esac |
| 14778 |
;; |
| 14779 |
esac |
| 14780 |
;; |
| 14781 |
|
| 14782 |
newsos6) |
| 14783 |
lt_prog_compiler_pic='-KPIC' |
| 14784 |
lt_prog_compiler_static='-Bstatic' |
| 14785 |
;; |
| 14786 |
|
| 14787 |
*-mlibc) |
| 14788 |
lt_prog_compiler_wl='-Wl,' |
| 14789 |
lt_prog_compiler_pic='-fPIC' |
| 14790 |
lt_prog_compiler_static='-static' |
| 14791 |
;; |
| 14792 |
|
| 14793 |
*nto* | *qnx*) |
| 14794 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 14795 |
# it will coredump. |
| 14796 |
lt_prog_compiler_pic='-fPIC -shared' |
| 14797 |
;; |
| 14798 |
|
| 14799 |
osf3* | osf4* | osf5*) |
| 14800 |
lt_prog_compiler_wl='-Wl,' |
| 14801 |
# All OSF/1 code is PIC. |
| 14802 |
lt_prog_compiler_static='-non_shared' |
| 14803 |
;; |
| 14804 |
|
| 14805 |
rdos*) |
| 14806 |
lt_prog_compiler_static='-non_shared' |
| 14807 |
;; |
| 14808 |
|
| 14809 |
serenity*) |
| 14810 |
;; |
| 14811 |
|
| 14812 |
solaris*) |
| 14813 |
lt_prog_compiler_pic='-KPIC' |
| 14814 |
lt_prog_compiler_static='-Bstatic' |
| 14815 |
case $cc_basename in |
| 14816 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 14817 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 14818 |
*) |
| 14819 |
lt_prog_compiler_wl='-Wl,';; |
| 14820 |
esac |
| 14821 |
;; |
| 14822 |
|
| 14823 |
sunos4*) |
| 14824 |
lt_prog_compiler_wl='-Qoption ld ' |
| 14825 |
lt_prog_compiler_pic='-PIC' |
| 14826 |
lt_prog_compiler_static='-Bstatic' |
| 14827 |
;; |
| 14828 |
|
| 14829 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 14830 |
lt_prog_compiler_wl='-Wl,' |
| 14831 |
lt_prog_compiler_pic='-KPIC' |
| 14832 |
lt_prog_compiler_static='-Bstatic' |
| 14833 |
;; |
| 14834 |
|
| 14835 |
sysv4*MP*) |
| 14836 |
if test -d /usr/nec; then |
| 14837 |
lt_prog_compiler_pic='-Kconform_pic' |
| 14838 |
lt_prog_compiler_static='-Bstatic' |
| 14839 |
fi |
| 14840 |
;; |
| 14841 |
|
| 14842 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 14843 |
lt_prog_compiler_wl='-Wl,' |
| 14844 |
lt_prog_compiler_pic='-KPIC' |
| 14845 |
lt_prog_compiler_static='-Bstatic' |
| 14846 |
;; |
| 14847 |
|
| 14848 |
unicos*) |
| 14849 |
lt_prog_compiler_wl='-Wl,' |
| 14850 |
lt_prog_compiler_can_build_shared=no |
| 14851 |
;; |
| 14852 |
|
| 14853 |
uts4*) |
| 14854 |
lt_prog_compiler_pic='-pic' |
| 14855 |
lt_prog_compiler_static='-Bstatic' |
| 14856 |
;; |
| 14857 |
|
| 14858 |
*) |
| 14859 |
lt_prog_compiler_can_build_shared=no |
| 14860 |
;; |
| 14861 |
esac |
| 14862 |
fi |
| 14863 |
|
| 14864 |
case $host_os in |
| 14865 |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 14866 |
*djgpp*) |
| 14867 |
lt_prog_compiler_pic= |
| 14868 |
;; |
| 14869 |
*) |
| 14870 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 14871 |
;; |
| 14872 |
esac |
| 14873 |
|
| 14874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 14875 |
printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 14876 |
if test ${lt_cv_prog_compiler_pic+y} |
| 14877 |
then : |
| 14878 |
printf %s "(cached) " >&6 |
| 14879 |
else case e in #( |
| 14880 |
e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 14881 |
esac |
| 14882 |
fi |
| 14883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 14884 |
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 14885 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 14886 |
|
| 14887 |
# |
| 14888 |
# Check to make sure the PIC flag actually works. |
| 14889 |
# |
| 14890 |
if test -n "$lt_prog_compiler_pic"; then |
| 14891 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 14892 |
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 14893 |
if test ${lt_cv_prog_compiler_pic_works+y} |
| 14894 |
then : |
| 14895 |
printf %s "(cached) " >&6 |
| 14896 |
else case e in #( |
| 14897 |
e) lt_cv_prog_compiler_pic_works=no |
| 14898 |
ac_outfile=conftest.$ac_objext |
| 14899 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 14900 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 14901 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 14902 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 14903 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 14904 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 14905 |
# The option is referenced via a variable to avoid confusing sed. |
| 14906 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 14907 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 14908 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 14909 |
-e 's:$: $lt_compiler_flag:'` |
| 14910 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 14911 |
(eval "$lt_compile" 2>conftest.err) |
| 14912 |
ac_status=$? |
| 14913 |
cat conftest.err >&5 |
| 14914 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 14915 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 14916 |
# The compiler can only warn and ignore the option if not recognized |
| 14917 |
# So say no if there are warnings other than the usual output. |
| 14918 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 14919 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14920 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 14921 |
lt_cv_prog_compiler_pic_works=yes |
| 14922 |
fi |
| 14923 |
fi |
| 14924 |
$RM conftest* |
| 14925 |
;; |
| 14926 |
esac |
| 14927 |
fi |
| 14928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 14929 |
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 14930 |
|
| 14931 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 14932 |
case $lt_prog_compiler_pic in |
| 14933 |
"" | " "*) ;; |
| 14934 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 14935 |
esac |
| 14936 |
else |
| 14937 |
lt_prog_compiler_pic= |
| 14938 |
lt_prog_compiler_can_build_shared=no |
| 14939 |
fi |
| 14940 |
|
| 14941 |
fi |
| 14942 |
|
| 14943 |
|
| 14944 |
|
| 14945 |
|
| 14946 |
|
| 14947 |
|
| 14948 |
|
| 14949 |
|
| 14950 |
|
| 14951 |
|
| 14952 |
|
| 14953 |
# |
| 14954 |
# Check to make sure the static flag actually works. |
| 14955 |
# |
| 14956 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 14957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 14958 |
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 14959 |
if test ${lt_cv_prog_compiler_static_works+y} |
| 14960 |
then : |
| 14961 |
printf %s "(cached) " >&6 |
| 14962 |
else case e in #( |
| 14963 |
e) lt_cv_prog_compiler_static_works=no |
| 14964 |
save_LDFLAGS=$LDFLAGS |
| 14965 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 14966 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 14967 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 14968 |
# The linker can only warn and ignore the option if not recognized |
| 14969 |
# So say no if there are warnings |
| 14970 |
if test -s conftest.err; then |
| 14971 |
# Append any errors to the config.log. |
| 14972 |
cat conftest.err 1>&5 |
| 14973 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 14974 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 14975 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 14976 |
lt_cv_prog_compiler_static_works=yes |
| 14977 |
fi |
| 14978 |
else |
| 14979 |
lt_cv_prog_compiler_static_works=yes |
| 14980 |
fi |
| 14981 |
fi |
| 14982 |
$RM -r conftest* |
| 14983 |
LDFLAGS=$save_LDFLAGS |
| 14984 |
;; |
| 14985 |
esac |
| 14986 |
fi |
| 14987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 14988 |
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 14989 |
|
| 14990 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 14991 |
: |
| 14992 |
else |
| 14993 |
lt_prog_compiler_static= |
| 14994 |
fi |
| 14995 |
|
| 14996 |
|
| 14997 |
|
| 14998 |
|
| 14999 |
|
| 15000 |
|
| 15001 |
|
| 15002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15003 |
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 15004 |
if test ${lt_cv_prog_compiler_c_o+y} |
| 15005 |
then : |
| 15006 |
printf %s "(cached) " >&6 |
| 15007 |
else case e in #( |
| 15008 |
e) lt_cv_prog_compiler_c_o=no |
| 15009 |
$RM -r conftest 2>/dev/null |
| 15010 |
mkdir conftest |
| 15011 |
cd conftest |
| 15012 |
mkdir out |
| 15013 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15014 |
|
| 15015 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15016 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 15017 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 15018 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 15019 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15020 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 15021 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15022 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15023 |
-e 's:$: $lt_compiler_flag:'` |
| 15024 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15025 |
(eval "$lt_compile" 2>out/conftest.err) |
| 15026 |
ac_status=$? |
| 15027 |
cat out/conftest.err >&5 |
| 15028 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15029 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15030 |
then |
| 15031 |
# The compiler can only warn and ignore the option if not recognized |
| 15032 |
# So say no if there are warnings |
| 15033 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 15034 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15035 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 15036 |
lt_cv_prog_compiler_c_o=yes |
| 15037 |
fi |
| 15038 |
fi |
| 15039 |
chmod u+w . 2>&5 |
| 15040 |
$RM conftest* |
| 15041 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 15042 |
# template instantiation |
| 15043 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 15044 |
$RM out/* && rmdir out |
| 15045 |
cd .. |
| 15046 |
$RM -r conftest |
| 15047 |
$RM conftest* |
| 15048 |
;; |
| 15049 |
esac |
| 15050 |
fi |
| 15051 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15052 |
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 15053 |
|
| 15054 |
|
| 15055 |
|
| 15056 |
|
| 15057 |
|
| 15058 |
|
| 15059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
| 15060 |
printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
| 15061 |
if test ${lt_cv_prog_compiler_c_o+y} |
| 15062 |
then : |
| 15063 |
printf %s "(cached) " >&6 |
| 15064 |
else case e in #( |
| 15065 |
e) lt_cv_prog_compiler_c_o=no |
| 15066 |
$RM -r conftest 2>/dev/null |
| 15067 |
mkdir conftest |
| 15068 |
cd conftest |
| 15069 |
mkdir out |
| 15070 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 15071 |
|
| 15072 |
lt_compiler_flag="-o out/conftest2.$ac_objext" |
| 15073 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 15074 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 15075 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 15076 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 15077 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 15078 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 15079 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 15080 |
-e 's:$: $lt_compiler_flag:'` |
| 15081 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 15082 |
(eval "$lt_compile" 2>out/conftest.err) |
| 15083 |
ac_status=$? |
| 15084 |
cat out/conftest.err >&5 |
| 15085 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 15086 |
if (exit $ac_status) && test -s out/conftest2.$ac_objext |
| 15087 |
then |
| 15088 |
# The compiler can only warn and ignore the option if not recognized |
| 15089 |
# So say no if there are warnings |
| 15090 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
| 15091 |
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
| 15092 |
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
| 15093 |
lt_cv_prog_compiler_c_o=yes |
| 15094 |
fi |
| 15095 |
fi |
| 15096 |
chmod u+w . 2>&5 |
| 15097 |
$RM conftest* |
| 15098 |
# SGI C++ compiler will create directory out/ii_files/ for |
| 15099 |
# template instantiation |
| 15100 |
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files |
| 15101 |
$RM out/* && rmdir out |
| 15102 |
cd .. |
| 15103 |
$RM -r conftest |
| 15104 |
$RM conftest* |
| 15105 |
;; |
| 15106 |
esac |
| 15107 |
fi |
| 15108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
| 15109 |
printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } |
| 15110 |
|
| 15111 |
|
| 15112 |
|
| 15113 |
|
| 15114 |
hard_links=nottested |
| 15115 |
if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then |
| 15116 |
# do not overwrite the value of need_locks provided by the user |
| 15117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
| 15118 |
printf %s "checking if we can lock with hard links... " >&6; } |
| 15119 |
hard_links=yes |
| 15120 |
$RM conftest* |
| 15121 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15122 |
touch conftest.a |
| 15123 |
ln conftest.a conftest.b 2>&5 || hard_links=no |
| 15124 |
ln conftest.a conftest.b 2>/dev/null && hard_links=no |
| 15125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
| 15126 |
printf "%s\n" "$hard_links" >&6; } |
| 15127 |
if test no = "$hard_links"; then |
| 15128 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 |
| 15129 |
printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} |
| 15130 |
need_locks=warn |
| 15131 |
fi |
| 15132 |
else |
| 15133 |
need_locks=no |
| 15134 |
fi |
| 15135 |
|
| 15136 |
|
| 15137 |
|
| 15138 |
|
| 15139 |
|
| 15140 |
|
| 15141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
| 15142 |
printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } |
| 15143 |
|
| 15144 |
runpath_var= |
| 15145 |
allow_undefined_flag= |
| 15146 |
always_export_symbols=no |
| 15147 |
archive_cmds= |
| 15148 |
archive_expsym_cmds= |
| 15149 |
compiler_needs_object=no |
| 15150 |
enable_shared_with_static_runtimes=no |
| 15151 |
export_dynamic_flag_spec= |
| 15152 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
| 15153 |
hardcode_automatic=no |
| 15154 |
hardcode_direct=no |
| 15155 |
hardcode_direct_absolute=no |
| 15156 |
hardcode_libdir_flag_spec= |
| 15157 |
hardcode_libdir_separator= |
| 15158 |
hardcode_minus_L=no |
| 15159 |
hardcode_shlibpath_var=unsupported |
| 15160 |
inherit_rpath=no |
| 15161 |
link_all_deplibs=unknown |
| 15162 |
module_cmds= |
| 15163 |
module_expsym_cmds= |
| 15164 |
old_archive_from_new_cmds= |
| 15165 |
old_archive_from_expsyms_cmds= |
| 15166 |
thread_safe_flag_spec= |
| 15167 |
whole_archive_flag_spec= |
| 15168 |
# include_expsyms should be a list of space-separated symbols to be *always* |
| 15169 |
# included in the symbol list |
| 15170 |
include_expsyms= |
| 15171 |
# exclude_expsyms can be an extended regexp of symbols to exclude |
| 15172 |
# it will be wrapped by ' (' and ')$', so one must not match beginning or |
| 15173 |
# end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', |
| 15174 |
# as well as any symbol that contains 'd'. |
| 15175 |
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
| 15176 |
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
| 15177 |
# platforms (ab)use it in PIC code, but their linkers get confused if |
| 15178 |
# the symbol is explicitly referenced. Since portable code cannot |
| 15179 |
# rely on this symbol name, it's probably fine to never include it in |
| 15180 |
# preloaded symbol tables. |
| 15181 |
# Exclude shared library initialization/finalization symbols. |
| 15182 |
extract_expsyms_cmds= |
| 15183 |
|
| 15184 |
case $host_os in |
| 15185 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 15186 |
# FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time |
| 15187 |
# When not using gcc, we currently assume that we are using |
| 15188 |
# Microsoft Visual C++ or Intel C++ Compiler. |
| 15189 |
if test yes != "$GCC"; then |
| 15190 |
with_gnu_ld=no |
| 15191 |
fi |
| 15192 |
;; |
| 15193 |
interix*) |
| 15194 |
# we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) |
| 15195 |
with_gnu_ld=yes |
| 15196 |
;; |
| 15197 |
linux* | k*bsd*-gnu | gnu*) |
| 15198 |
link_all_deplibs=no |
| 15199 |
;; |
| 15200 |
esac |
| 15201 |
|
| 15202 |
ld_shlibs=yes |
| 15203 |
|
| 15204 |
# On some targets, GNU ld is compatible enough with the native linker |
| 15205 |
# that we're better off using the native interface for both. |
| 15206 |
lt_use_gnu_ld_interface=no |
| 15207 |
if test yes = "$with_gnu_ld"; then |
| 15208 |
case $host_os in |
| 15209 |
aix*) |
| 15210 |
# The AIX port of GNU ld has always aspired to compatibility |
| 15211 |
# with the native linker. However, as the warning in the GNU ld |
| 15212 |
# block says, versions before 2.19.5* couldn't really create working |
| 15213 |
# shared libraries, regardless of the interface used. |
| 15214 |
case `$LD -v 2>&1` in |
| 15215 |
*\ \(GNU\ Binutils\)\ 2.19.5*) ;; |
| 15216 |
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; |
| 15217 |
*\ \(GNU\ Binutils\)\ [3-9]*) ;; |
| 15218 |
*) |
| 15219 |
lt_use_gnu_ld_interface=yes |
| 15220 |
;; |
| 15221 |
esac |
| 15222 |
;; |
| 15223 |
*) |
| 15224 |
lt_use_gnu_ld_interface=yes |
| 15225 |
;; |
| 15226 |
esac |
| 15227 |
fi |
| 15228 |
|
| 15229 |
if test yes = "$lt_use_gnu_ld_interface"; then |
| 15230 |
# If archive_cmds runs LD, not CC, wlarc should be empty |
| 15231 |
wlarc='$wl' |
| 15232 |
|
| 15233 |
# Set some defaults for GNU ld with shared library support. These |
| 15234 |
# are reset later if shared libraries are not supported. Putting them |
| 15235 |
# here allows them to be overridden if necessary. |
| 15236 |
runpath_var=LD_RUN_PATH |
| 15237 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 15238 |
export_dynamic_flag_spec='$wl--export-dynamic' |
| 15239 |
# ancient GNU ld didn't support --whole-archive et. al. |
| 15240 |
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then |
| 15241 |
whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' |
| 15242 |
else |
| 15243 |
whole_archive_flag_spec= |
| 15244 |
fi |
| 15245 |
supports_anon_versioning=no |
| 15246 |
case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in |
| 15247 |
*GNU\ gold*) supports_anon_versioning=yes ;; |
| 15248 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
| 15249 |
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
| 15250 |
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
| 15251 |
*\ 2.11.*) ;; # other 2.11 versions |
| 15252 |
*) supports_anon_versioning=yes ;; |
| 15253 |
esac |
| 15254 |
|
| 15255 |
# See if GNU ld supports shared libraries. |
| 15256 |
case $host_os in |
| 15257 |
aix[3-9]*) |
| 15258 |
# On AIX/PPC, the GNU linker is very broken |
| 15259 |
if test ia64 != "$host_cpu"; then |
| 15260 |
ld_shlibs=no |
| 15261 |
cat <<_LT_EOF 1>&2 |
| 15262 |
|
| 15263 |
*** Warning: the GNU linker, at least up to release 2.19, is reported |
| 15264 |
*** to be unable to reliably create shared libraries on AIX. |
| 15265 |
*** Therefore, libtool is disabling shared libraries support. If you |
| 15266 |
*** really care for shared libraries, you may want to install binutils |
| 15267 |
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. |
| 15268 |
*** You will then need to restart the configuration process. |
| 15269 |
|
| 15270 |
_LT_EOF |
| 15271 |
fi |
| 15272 |
;; |
| 15273 |
|
| 15274 |
amigaos*) |
| 15275 |
case $host_cpu in |
| 15276 |
powerpc) |
| 15277 |
# see comment about AmigaOS4 .so support |
| 15278 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15279 |
archive_expsym_cmds='' |
| 15280 |
;; |
| 15281 |
m68k) |
| 15282 |
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 15283 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15284 |
hardcode_minus_L=yes |
| 15285 |
;; |
| 15286 |
esac |
| 15287 |
;; |
| 15288 |
|
| 15289 |
beos*) |
| 15290 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15291 |
allow_undefined_flag=unsupported |
| 15292 |
# Joseph Beckenbach <[email protected]> says some releases of gcc |
| 15293 |
# support --undefined. This deserves some investigation. FIXME |
| 15294 |
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15295 |
else |
| 15296 |
ld_shlibs=no |
| 15297 |
fi |
| 15298 |
;; |
| 15299 |
|
| 15300 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 15301 |
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
| 15302 |
# as there is no search path for DLLs. |
| 15303 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15304 |
export_dynamic_flag_spec='$wl--export-all-symbols' |
| 15305 |
allow_undefined_flag=unsupported |
| 15306 |
always_export_symbols=no |
| 15307 |
enable_shared_with_static_runtimes=yes |
| 15308 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' |
| 15309 |
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' |
| 15310 |
file_list_spec='@' |
| 15311 |
|
| 15312 |
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
| 15313 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15314 |
# If the export-symbols file already is a .def file, use it as |
| 15315 |
# is; otherwise, prepend EXPORTS... |
| 15316 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 15317 |
cp $export_symbols $output_objdir/$soname.def; |
| 15318 |
else |
| 15319 |
echo EXPORTS > $output_objdir/$soname.def; |
| 15320 |
cat $export_symbols >> $output_objdir/$soname.def; |
| 15321 |
fi~ |
| 15322 |
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
| 15323 |
else |
| 15324 |
ld_shlibs=no |
| 15325 |
fi |
| 15326 |
;; |
| 15327 |
|
| 15328 |
haiku*) |
| 15329 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15330 |
link_all_deplibs=no |
| 15331 |
;; |
| 15332 |
|
| 15333 |
os2*) |
| 15334 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15335 |
hardcode_minus_L=yes |
| 15336 |
allow_undefined_flag=unsupported |
| 15337 |
shrext_cmds=.dll |
| 15338 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15339 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15340 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15341 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15342 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 15343 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15344 |
emximp -o $lib $output_objdir/$libname.def' |
| 15345 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 15346 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 15347 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 15348 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 15349 |
prefix_cmds="$SED"~ |
| 15350 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 15351 |
prefix_cmds="$prefix_cmds -e 1d"; |
| 15352 |
fi~ |
| 15353 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 15354 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 15355 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 15356 |
emximp -o $lib $output_objdir/$libname.def' |
| 15357 |
old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 15358 |
enable_shared_with_static_runtimes=yes |
| 15359 |
file_list_spec='@' |
| 15360 |
;; |
| 15361 |
|
| 15362 |
interix[3-9]*) |
| 15363 |
hardcode_direct=no |
| 15364 |
hardcode_shlibpath_var=no |
| 15365 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 15366 |
export_dynamic_flag_spec='$wl-E' |
| 15367 |
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
| 15368 |
# Instead, shared libraries are loaded at an image base (0x10000000 by |
| 15369 |
# default) and relocated if they conflict, which is a slow very memory |
| 15370 |
# consuming and fragmenting process. To avoid this, we pick a random, |
| 15371 |
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
| 15372 |
# time. Moving up from 0x10000000 also allows more sbrk(2) space. |
| 15373 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15374 |
archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
| 15375 |
;; |
| 15376 |
|
| 15377 |
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
| 15378 |
tmp_diet=no |
| 15379 |
if test linux-dietlibc = "$host_os"; then |
| 15380 |
case $cc_basename in |
| 15381 |
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) |
| 15382 |
esac |
| 15383 |
fi |
| 15384 |
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
| 15385 |
&& test no = "$tmp_diet" |
| 15386 |
then |
| 15387 |
tmp_addflag=' $pic_flag' |
| 15388 |
tmp_sharedflag='-shared' |
| 15389 |
case $cc_basename,$host_cpu in |
| 15390 |
pgcc*) # Portland Group C compiler |
| 15391 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 15392 |
tmp_addflag=' $pic_flag' |
| 15393 |
;; |
| 15394 |
pgf77* | pgf90* | pgf95* | pgfortran*) |
| 15395 |
# Portland Group f77 and f90 compilers |
| 15396 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 15397 |
tmp_addflag=' $pic_flag -Mnomain' ;; |
| 15398 |
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
| 15399 |
tmp_addflag=' -i_dynamic' ;; |
| 15400 |
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
| 15401 |
tmp_addflag=' -i_dynamic -nofor_main' ;; |
| 15402 |
ifc* | ifort*) # Intel Fortran compiler |
| 15403 |
tmp_addflag=' -nofor_main' ;; |
| 15404 |
lf95*) # Lahey Fortran 8.1 |
| 15405 |
whole_archive_flag_spec= |
| 15406 |
tmp_sharedflag='--shared' ;; |
| 15407 |
nagfor*) # NAGFOR 5.3 |
| 15408 |
tmp_sharedflag='-Wl,-shared' ;; |
| 15409 |
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
| 15410 |
tmp_sharedflag='-qmkshrobj' |
| 15411 |
tmp_addflag= ;; |
| 15412 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 15413 |
whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 15414 |
compiler_needs_object=yes |
| 15415 |
;; |
| 15416 |
esac |
| 15417 |
case `$CC -V 2>&1 | $SED 5q` in |
| 15418 |
*Sun\ C*) # Sun C 5.9 |
| 15419 |
whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' |
| 15420 |
compiler_needs_object=yes |
| 15421 |
tmp_sharedflag='-G' ;; |
| 15422 |
*Sun\ F*) # Sun Fortran 8.3 |
| 15423 |
tmp_sharedflag='-G' ;; |
| 15424 |
esac |
| 15425 |
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15426 |
|
| 15427 |
if test yes = "$supports_anon_versioning"; then |
| 15428 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15429 |
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15430 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15431 |
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' |
| 15432 |
fi |
| 15433 |
|
| 15434 |
case $cc_basename in |
| 15435 |
tcc*) |
| 15436 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 15437 |
export_dynamic_flag_spec='-rdynamic' |
| 15438 |
;; |
| 15439 |
xlf* | bgf* | bgxlf* | mpixlf*) |
| 15440 |
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
| 15441 |
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' |
| 15442 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 15443 |
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' |
| 15444 |
if test yes = "$supports_anon_versioning"; then |
| 15445 |
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ |
| 15446 |
cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
| 15447 |
echo "local: *; };" >> $output_objdir/$libname.ver~ |
| 15448 |
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' |
| 15449 |
fi |
| 15450 |
;; |
| 15451 |
esac |
| 15452 |
else |
| 15453 |
ld_shlibs=no |
| 15454 |
fi |
| 15455 |
;; |
| 15456 |
|
| 15457 |
*-mlibc) |
| 15458 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15459 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15460 |
;; |
| 15461 |
|
| 15462 |
netbsd* | netbsdelf*-gnu) |
| 15463 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 15464 |
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
| 15465 |
wlarc= |
| 15466 |
else |
| 15467 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15468 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15469 |
fi |
| 15470 |
;; |
| 15471 |
|
| 15472 |
solaris*) |
| 15473 |
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then |
| 15474 |
ld_shlibs=no |
| 15475 |
cat <<_LT_EOF 1>&2 |
| 15476 |
|
| 15477 |
*** Warning: The releases 2.8.* of the GNU linker cannot reliably |
| 15478 |
*** create shared libraries on Solaris systems. Therefore, libtool |
| 15479 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 15480 |
*** binutils to release 2.9.1 or newer. Another option is to modify |
| 15481 |
*** your PATH or compiler configuration so that the native linker is |
| 15482 |
*** used, and then restart. |
| 15483 |
|
| 15484 |
_LT_EOF |
| 15485 |
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15486 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15487 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15488 |
else |
| 15489 |
ld_shlibs=no |
| 15490 |
fi |
| 15491 |
;; |
| 15492 |
|
| 15493 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
| 15494 |
case `$LD -v 2>&1` in |
| 15495 |
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
| 15496 |
ld_shlibs=no |
| 15497 |
cat <<_LT_EOF 1>&2 |
| 15498 |
|
| 15499 |
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot |
| 15500 |
*** reliably create shared libraries on SCO systems. Therefore, libtool |
| 15501 |
*** is disabling shared libraries support. We urge you to upgrade GNU |
| 15502 |
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
| 15503 |
*** your PATH or compiler configuration so that the native linker is |
| 15504 |
*** used, and then restart. |
| 15505 |
|
| 15506 |
_LT_EOF |
| 15507 |
;; |
| 15508 |
*) |
| 15509 |
# For security reasons, it is highly recommended that you always |
| 15510 |
# use absolute paths for naming shared libraries, and exclude the |
| 15511 |
# DT_RUNPATH tag from executables and libraries. But doing so |
| 15512 |
# requires that you compile everything twice, which is a pain. |
| 15513 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15514 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 15515 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15516 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15517 |
else |
| 15518 |
ld_shlibs=no |
| 15519 |
fi |
| 15520 |
;; |
| 15521 |
esac |
| 15522 |
;; |
| 15523 |
|
| 15524 |
sunos4*) |
| 15525 |
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15526 |
wlarc= |
| 15527 |
hardcode_direct=yes |
| 15528 |
hardcode_shlibpath_var=no |
| 15529 |
;; |
| 15530 |
|
| 15531 |
*) |
| 15532 |
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
| 15533 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15534 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' |
| 15535 |
else |
| 15536 |
ld_shlibs=no |
| 15537 |
fi |
| 15538 |
;; |
| 15539 |
esac |
| 15540 |
|
| 15541 |
if test no = "$ld_shlibs"; then |
| 15542 |
runpath_var= |
| 15543 |
hardcode_libdir_flag_spec= |
| 15544 |
export_dynamic_flag_spec= |
| 15545 |
whole_archive_flag_spec= |
| 15546 |
fi |
| 15547 |
else |
| 15548 |
# PORTME fill in a description of your system's linker (not GNU ld) |
| 15549 |
case $host_os in |
| 15550 |
aix3*) |
| 15551 |
allow_undefined_flag=unsupported |
| 15552 |
always_export_symbols=yes |
| 15553 |
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' |
| 15554 |
# Note: this linker hardcodes the directories in LIBPATH if there |
| 15555 |
# are no directories specified by -L. |
| 15556 |
hardcode_minus_L=yes |
| 15557 |
if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then |
| 15558 |
# Neither direct hardcoding nor static linking is supported with a |
| 15559 |
# broken collect2. |
| 15560 |
hardcode_direct=unsupported |
| 15561 |
fi |
| 15562 |
;; |
| 15563 |
|
| 15564 |
aix[4-9]*) |
| 15565 |
if test ia64 = "$host_cpu"; then |
| 15566 |
# On IA64, the linker does run time linking by default, so we don't |
| 15567 |
# have to do anything special. |
| 15568 |
aix_use_runtimelinking=no |
| 15569 |
exp_sym_flag='-Bexport' |
| 15570 |
no_entry_flag= |
| 15571 |
else |
| 15572 |
# If we're using GNU nm, then we don't want the "-C" option. |
| 15573 |
# -C means demangle to GNU nm, but means don't demangle to AIX nm. |
| 15574 |
# Without the "-l" option, or with the "-B" option, AIX nm treats |
| 15575 |
# weak defined symbols like other global defined symbols, whereas |
| 15576 |
# GNU nm marks them as "W". |
| 15577 |
# While the 'weak' keyword is ignored in the Export File, we need |
| 15578 |
# it in the Import File for the 'aix-soname' feature, so we have |
| 15579 |
# to replace the "-B" option with "-P" for AIX nm. |
| 15580 |
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
| 15581 |
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' |
| 15582 |
else |
| 15583 |
export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' |
| 15584 |
fi |
| 15585 |
aix_use_runtimelinking=no |
| 15586 |
|
| 15587 |
# Test if we are trying to use run time linking or normal |
| 15588 |
# AIX style linking. If -brtl is somewhere in LDFLAGS, we |
| 15589 |
# have runtime linking enabled, and use it for executables. |
| 15590 |
# For shared libraries, we enable/disable runtime linking |
| 15591 |
# depending on the kind of the shared library created - |
| 15592 |
# when "with_aix_soname,aix_use_runtimelinking" is: |
| 15593 |
# "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables |
| 15594 |
# "aix,yes" lib.so shared, rtl:yes, for executables |
| 15595 |
# lib.a static archive |
| 15596 |
# "both,no" lib.so.V(shr.o) shared, rtl:yes |
| 15597 |
# lib.a(lib.so.V) shared, rtl:no, for executables |
| 15598 |
# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 15599 |
# lib.a(lib.so.V) shared, rtl:no |
| 15600 |
# "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables |
| 15601 |
# lib.a static archive |
| 15602 |
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
| 15603 |
for ld_flag in $LDFLAGS; do |
| 15604 |
if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then |
| 15605 |
aix_use_runtimelinking=yes |
| 15606 |
break |
| 15607 |
fi |
| 15608 |
done |
| 15609 |
if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 15610 |
# With aix-soname=svr4, we create the lib.so.V shared archives only, |
| 15611 |
# so we don't have lib.a shared libs to link our executables. |
| 15612 |
# We have to force runtime linking in this case. |
| 15613 |
aix_use_runtimelinking=yes |
| 15614 |
LDFLAGS="$LDFLAGS -Wl,-brtl" |
| 15615 |
fi |
| 15616 |
;; |
| 15617 |
esac |
| 15618 |
|
| 15619 |
exp_sym_flag='-bexport' |
| 15620 |
no_entry_flag='-bnoentry' |
| 15621 |
fi |
| 15622 |
|
| 15623 |
# When large executables or shared objects are built, AIX ld can |
| 15624 |
# have problems creating the table of contents. If linking a library |
| 15625 |
# or program results in "error TOC overflow" add -mminimal-toc to |
| 15626 |
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
| 15627 |
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
| 15628 |
|
| 15629 |
archive_cmds='' |
| 15630 |
hardcode_direct=yes |
| 15631 |
hardcode_direct_absolute=yes |
| 15632 |
hardcode_libdir_separator=':' |
| 15633 |
link_all_deplibs=yes |
| 15634 |
file_list_spec='$wl-f,' |
| 15635 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 15636 |
aix,*) ;; # traditional, no import file |
| 15637 |
svr4,* | *,yes) # use import file |
| 15638 |
# The Import File defines what to hardcode. |
| 15639 |
hardcode_direct=no |
| 15640 |
hardcode_direct_absolute=no |
| 15641 |
;; |
| 15642 |
esac |
| 15643 |
|
| 15644 |
if test yes = "$GCC"; then |
| 15645 |
case $host_os in aix4.[012]|aix4.[012].*) |
| 15646 |
# We only want to do this on AIX 4.2 and lower, the check |
| 15647 |
# below for broken collect2 doesn't work under 4.3+ |
| 15648 |
collect2name=`$CC -print-prog-name=collect2` |
| 15649 |
if test -f "$collect2name" && |
| 15650 |
strings "$collect2name" | $GREP resolve_lib_name >/dev/null |
| 15651 |
then |
| 15652 |
# We have reworked collect2 |
| 15653 |
: |
| 15654 |
else |
| 15655 |
# We have old collect2 |
| 15656 |
hardcode_direct=unsupported |
| 15657 |
# It fails to find uninstalled libraries when the uninstalled |
| 15658 |
# path is not listed in the libpath. Setting hardcode_minus_L |
| 15659 |
# to unsupported forces relinking |
| 15660 |
hardcode_minus_L=yes |
| 15661 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15662 |
hardcode_libdir_separator= |
| 15663 |
fi |
| 15664 |
;; |
| 15665 |
esac |
| 15666 |
shared_flag='-shared' |
| 15667 |
if test yes = "$aix_use_runtimelinking"; then |
| 15668 |
shared_flag="$shared_flag "'$wl-G' |
| 15669 |
fi |
| 15670 |
# Need to ensure runtime linking is disabled for the traditional |
| 15671 |
# shared library, or the linker may eventually find shared libraries |
| 15672 |
# /with/ Import File - we do not want to mix them. |
| 15673 |
shared_flag_aix='-shared' |
| 15674 |
shared_flag_svr4='-shared $wl-G' |
| 15675 |
else |
| 15676 |
# not using gcc |
| 15677 |
if test ia64 = "$host_cpu"; then |
| 15678 |
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
| 15679 |
# chokes on -Wl,-G. The following line is correct: |
| 15680 |
shared_flag='-G' |
| 15681 |
else |
| 15682 |
if test yes = "$aix_use_runtimelinking"; then |
| 15683 |
shared_flag='$wl-G' |
| 15684 |
else |
| 15685 |
shared_flag='$wl-bM:SRE' |
| 15686 |
fi |
| 15687 |
shared_flag_aix='$wl-bM:SRE' |
| 15688 |
shared_flag_svr4='$wl-G' |
| 15689 |
fi |
| 15690 |
fi |
| 15691 |
|
| 15692 |
export_dynamic_flag_spec='$wl-bexpall' |
| 15693 |
# It seems that -bexpall does not export symbols beginning with |
| 15694 |
# underscore (_), so it is better to generate a list of symbols to export. |
| 15695 |
always_export_symbols=yes |
| 15696 |
if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then |
| 15697 |
# Warning - without using the other runtime loading flags (-brtl), |
| 15698 |
# -berok will link without error, but may produce a broken library. |
| 15699 |
allow_undefined_flag='-berok' |
| 15700 |
# Determine the default libpath from the value encoded in an |
| 15701 |
# empty executable. |
| 15702 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 15703 |
aix_libpath=$lt_cv_aix_libpath |
| 15704 |
else |
| 15705 |
if test ${lt_cv_aix_libpath_+y} |
| 15706 |
then : |
| 15707 |
printf %s "(cached) " >&6 |
| 15708 |
else case e in #( |
| 15709 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15710 |
/* end confdefs.h. */ |
| 15711 |
|
| 15712 |
int |
| 15713 |
main (void) |
| 15714 |
{ |
| 15715 |
|
| 15716 |
; |
| 15717 |
return 0; |
| 15718 |
} |
| 15719 |
_ACEOF |
| 15720 |
if ac_fn_c_try_link "$LINENO" |
| 15721 |
then : |
| 15722 |
|
| 15723 |
lt_aix_libpath_sed=' |
| 15724 |
/Import File Strings/,/^$/ { |
| 15725 |
/^0/ { |
| 15726 |
s/^0 *\([^ ]*\) *$/\1/ |
| 15727 |
p |
| 15728 |
} |
| 15729 |
}' |
| 15730 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15731 |
# Check for a 64-bit object if we didn't find anything. |
| 15732 |
if test -z "$lt_cv_aix_libpath_"; then |
| 15733 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15734 |
fi |
| 15735 |
fi |
| 15736 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15737 |
conftest$ac_exeext conftest.$ac_ext |
| 15738 |
if test -z "$lt_cv_aix_libpath_"; then |
| 15739 |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 15740 |
fi |
| 15741 |
;; |
| 15742 |
esac |
| 15743 |
fi |
| 15744 |
|
| 15745 |
aix_libpath=$lt_cv_aix_libpath_ |
| 15746 |
fi |
| 15747 |
|
| 15748 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 15749 |
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag |
| 15750 |
else |
| 15751 |
if test ia64 = "$host_cpu"; then |
| 15752 |
hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' |
| 15753 |
allow_undefined_flag="-z nodefs" |
| 15754 |
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" |
| 15755 |
else |
| 15756 |
# Determine the default libpath from the value encoded in an |
| 15757 |
# empty executable. |
| 15758 |
if test set = "${lt_cv_aix_libpath+set}"; then |
| 15759 |
aix_libpath=$lt_cv_aix_libpath |
| 15760 |
else |
| 15761 |
if test ${lt_cv_aix_libpath_+y} |
| 15762 |
then : |
| 15763 |
printf %s "(cached) " >&6 |
| 15764 |
else case e in #( |
| 15765 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15766 |
/* end confdefs.h. */ |
| 15767 |
|
| 15768 |
int |
| 15769 |
main (void) |
| 15770 |
{ |
| 15771 |
|
| 15772 |
; |
| 15773 |
return 0; |
| 15774 |
} |
| 15775 |
_ACEOF |
| 15776 |
if ac_fn_c_try_link "$LINENO" |
| 15777 |
then : |
| 15778 |
|
| 15779 |
lt_aix_libpath_sed=' |
| 15780 |
/Import File Strings/,/^$/ { |
| 15781 |
/^0/ { |
| 15782 |
s/^0 *\([^ ]*\) *$/\1/ |
| 15783 |
p |
| 15784 |
} |
| 15785 |
}' |
| 15786 |
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15787 |
# Check for a 64-bit object if we didn't find anything. |
| 15788 |
if test -z "$lt_cv_aix_libpath_"; then |
| 15789 |
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
| 15790 |
fi |
| 15791 |
fi |
| 15792 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 15793 |
conftest$ac_exeext conftest.$ac_ext |
| 15794 |
if test -z "$lt_cv_aix_libpath_"; then |
| 15795 |
lt_cv_aix_libpath_=/usr/lib:/lib |
| 15796 |
fi |
| 15797 |
;; |
| 15798 |
esac |
| 15799 |
fi |
| 15800 |
|
| 15801 |
aix_libpath=$lt_cv_aix_libpath_ |
| 15802 |
fi |
| 15803 |
|
| 15804 |
hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" |
| 15805 |
# Warning - without using the other run time loading flags, |
| 15806 |
# -berok will link without error, but may produce a broken library. |
| 15807 |
no_undefined_flag=' $wl-bernotok' |
| 15808 |
allow_undefined_flag=' $wl-berok' |
| 15809 |
if test yes = "$with_gnu_ld"; then |
| 15810 |
# We only use this code for GNU lds that support --whole-archive. |
| 15811 |
whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' |
| 15812 |
else |
| 15813 |
# Exported symbols can be pulled into shared objects from archives |
| 15814 |
whole_archive_flag_spec='$convenience' |
| 15815 |
fi |
| 15816 |
archive_cmds_need_lc=yes |
| 15817 |
archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' |
| 15818 |
# -brtl affects multiple linker settings, -berok does not and is overridden later |
| 15819 |
compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' |
| 15820 |
if test svr4 != "$with_aix_soname"; then |
| 15821 |
# This is similar to how AIX traditionally builds its shared libraries. |
| 15822 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' |
| 15823 |
fi |
| 15824 |
if test aix != "$with_aix_soname"; then |
| 15825 |
archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' |
| 15826 |
else |
| 15827 |
# used by -dlpreopen to get the symbols |
| 15828 |
archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' |
| 15829 |
fi |
| 15830 |
archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' |
| 15831 |
fi |
| 15832 |
fi |
| 15833 |
;; |
| 15834 |
|
| 15835 |
amigaos*) |
| 15836 |
case $host_cpu in |
| 15837 |
powerpc) |
| 15838 |
# see comment about AmigaOS4 .so support |
| 15839 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' |
| 15840 |
archive_expsym_cmds='' |
| 15841 |
;; |
| 15842 |
m68k) |
| 15843 |
archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' |
| 15844 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15845 |
hardcode_minus_L=yes |
| 15846 |
;; |
| 15847 |
esac |
| 15848 |
;; |
| 15849 |
|
| 15850 |
bsdi[45]*) |
| 15851 |
export_dynamic_flag_spec=-rdynamic |
| 15852 |
;; |
| 15853 |
|
| 15854 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 15855 |
# When not using gcc, we currently assume that we are using |
| 15856 |
# Microsoft Visual C++ or Intel C++ Compiler. |
| 15857 |
# hardcode_libdir_flag_spec is actually meaningless, as there is |
| 15858 |
# no search path for DLLs. |
| 15859 |
case $cc_basename in |
| 15860 |
cl* | icl*) |
| 15861 |
# Native MSVC or ICC |
| 15862 |
hardcode_libdir_flag_spec=' ' |
| 15863 |
allow_undefined_flag=unsupported |
| 15864 |
always_export_symbols=yes |
| 15865 |
file_list_spec='@' |
| 15866 |
# Tell ltmain to make .lib files, not .a files. |
| 15867 |
libext=lib |
| 15868 |
# Tell ltmain to make .dll files, not .so files. |
| 15869 |
shrext_cmds=.dll |
| 15870 |
# FIXME: Setting linknames here is a bad hack. |
| 15871 |
archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' |
| 15872 |
archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then |
| 15873 |
cp "$export_symbols" "$output_objdir/$soname.def"; |
| 15874 |
echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; |
| 15875 |
else |
| 15876 |
$SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; |
| 15877 |
fi~ |
| 15878 |
$CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ |
| 15879 |
linknames=' |
| 15880 |
# The linker will not automatically build a static lib if we build a DLL. |
| 15881 |
# _LT_TAGVAR(old_archive_from_new_cmds, )='true' |
| 15882 |
enable_shared_with_static_runtimes=yes |
| 15883 |
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' |
| 15884 |
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
| 15885 |
# Don't use ranlib |
| 15886 |
old_postinstall_cmds='chmod 644 $oldlib' |
| 15887 |
postlink_cmds='lt_outputfile="@OUTPUT@"~ |
| 15888 |
lt_tool_outputfile="@TOOL_OUTPUT@"~ |
| 15889 |
case $lt_outputfile in |
| 15890 |
*.exe|*.EXE) ;; |
| 15891 |
*) |
| 15892 |
lt_outputfile=$lt_outputfile.exe |
| 15893 |
lt_tool_outputfile=$lt_tool_outputfile.exe |
| 15894 |
;; |
| 15895 |
esac~ |
| 15896 |
if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then |
| 15897 |
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; |
| 15898 |
$RM "$lt_outputfile.manifest"; |
| 15899 |
fi' |
| 15900 |
;; |
| 15901 |
*) |
| 15902 |
# Assume MSVC and ICC wrapper |
| 15903 |
hardcode_libdir_flag_spec=' ' |
| 15904 |
allow_undefined_flag=unsupported |
| 15905 |
# Tell ltmain to make .lib files, not .a files. |
| 15906 |
libext=lib |
| 15907 |
# Tell ltmain to make .dll files, not .so files. |
| 15908 |
shrext_cmds=.dll |
| 15909 |
# FIXME: Setting linknames here is a bad hack. |
| 15910 |
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
| 15911 |
# The linker will automatically build a .lib file if we build a DLL. |
| 15912 |
old_archive_from_new_cmds='true' |
| 15913 |
# FIXME: Should let the user specify the lib program. |
| 15914 |
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
| 15915 |
enable_shared_with_static_runtimes=yes |
| 15916 |
;; |
| 15917 |
esac |
| 15918 |
;; |
| 15919 |
|
| 15920 |
darwin* | rhapsody*) |
| 15921 |
|
| 15922 |
|
| 15923 |
archive_cmds_need_lc=no |
| 15924 |
hardcode_direct=no |
| 15925 |
hardcode_automatic=yes |
| 15926 |
hardcode_shlibpath_var=unsupported |
| 15927 |
if test yes = "$lt_cv_ld_force_load"; then |
| 15928 |
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' |
| 15929 |
|
| 15930 |
else |
| 15931 |
whole_archive_flag_spec='' |
| 15932 |
fi |
| 15933 |
link_all_deplibs=yes |
| 15934 |
allow_undefined_flag=$_lt_dar_allow_undefined |
| 15935 |
case $cc_basename in |
| 15936 |
ifort*|nagfor*) _lt_dar_can_shared=yes ;; |
| 15937 |
*) _lt_dar_can_shared=$GCC ;; |
| 15938 |
esac |
| 15939 |
if test yes = "$_lt_dar_can_shared"; then |
| 15940 |
output_verbose_link_cmd=func_echo_all |
| 15941 |
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" |
| 15942 |
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" |
| 15943 |
archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" |
| 15944 |
module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" |
| 15945 |
|
| 15946 |
else |
| 15947 |
ld_shlibs=no |
| 15948 |
fi |
| 15949 |
|
| 15950 |
;; |
| 15951 |
|
| 15952 |
dgux*) |
| 15953 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 15954 |
hardcode_libdir_flag_spec='-L$libdir' |
| 15955 |
hardcode_shlibpath_var=no |
| 15956 |
;; |
| 15957 |
|
| 15958 |
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
| 15959 |
# support. Future versions do this automatically, but an explicit c++rt0.o |
| 15960 |
# does not break anything, and helps significantly (at the cost of a little |
| 15961 |
# extra space). |
| 15962 |
freebsd2.2*) |
| 15963 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
| 15964 |
hardcode_libdir_flag_spec='-R$libdir' |
| 15965 |
hardcode_direct=yes |
| 15966 |
hardcode_shlibpath_var=no |
| 15967 |
;; |
| 15968 |
|
| 15969 |
# Unfortunately, older versions of FreeBSD 2 do not have this feature. |
| 15970 |
freebsd2.*) |
| 15971 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
| 15972 |
hardcode_direct=yes |
| 15973 |
hardcode_minus_L=yes |
| 15974 |
hardcode_shlibpath_var=no |
| 15975 |
;; |
| 15976 |
|
| 15977 |
# FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
| 15978 |
freebsd* | dragonfly* | midnightbsd*) |
| 15979 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 15980 |
hardcode_libdir_flag_spec='-R$libdir' |
| 15981 |
hardcode_direct=yes |
| 15982 |
hardcode_shlibpath_var=no |
| 15983 |
;; |
| 15984 |
|
| 15985 |
hpux9*) |
| 15986 |
if test yes = "$GCC"; then |
| 15987 |
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 15988 |
else |
| 15989 |
archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' |
| 15990 |
fi |
| 15991 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 15992 |
hardcode_libdir_separator=: |
| 15993 |
hardcode_direct=yes |
| 15994 |
|
| 15995 |
# hardcode_minus_L: Not really in the search PATH, |
| 15996 |
# but as the default location of the library. |
| 15997 |
hardcode_minus_L=yes |
| 15998 |
export_dynamic_flag_spec='$wl-E' |
| 15999 |
;; |
| 16000 |
|
| 16001 |
hpux10*) |
| 16002 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 16003 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16004 |
else |
| 16005 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16006 |
fi |
| 16007 |
if test no = "$with_gnu_ld"; then |
| 16008 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 16009 |
hardcode_libdir_separator=: |
| 16010 |
hardcode_direct=yes |
| 16011 |
hardcode_direct_absolute=yes |
| 16012 |
export_dynamic_flag_spec='$wl-E' |
| 16013 |
# hardcode_minus_L: Not really in the search PATH, |
| 16014 |
# but as the default location of the library. |
| 16015 |
hardcode_minus_L=yes |
| 16016 |
fi |
| 16017 |
;; |
| 16018 |
|
| 16019 |
hpux11*) |
| 16020 |
if test yes,no = "$GCC,$with_gnu_ld"; then |
| 16021 |
case $host_cpu in |
| 16022 |
hppa*64*) |
| 16023 |
archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16024 |
;; |
| 16025 |
ia64*) |
| 16026 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16027 |
;; |
| 16028 |
*) |
| 16029 |
archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16030 |
;; |
| 16031 |
esac |
| 16032 |
else |
| 16033 |
case $host_cpu in |
| 16034 |
hppa*64*) |
| 16035 |
archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16036 |
;; |
| 16037 |
ia64*) |
| 16038 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
| 16039 |
;; |
| 16040 |
*) |
| 16041 |
|
| 16042 |
# Older versions of the 11.00 compiler do not understand -b yet |
| 16043 |
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
| 16044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
| 16045 |
printf %s "checking if $CC understands -b... " >&6; } |
| 16046 |
if test ${lt_cv_prog_compiler__b+y} |
| 16047 |
then : |
| 16048 |
printf %s "(cached) " >&6 |
| 16049 |
else case e in #( |
| 16050 |
e) lt_cv_prog_compiler__b=no |
| 16051 |
save_LDFLAGS=$LDFLAGS |
| 16052 |
LDFLAGS="$LDFLAGS -b" |
| 16053 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 16054 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 16055 |
# The linker can only warn and ignore the option if not recognized |
| 16056 |
# So say no if there are warnings |
| 16057 |
if test -s conftest.err; then |
| 16058 |
# Append any errors to the config.log. |
| 16059 |
cat conftest.err 1>&5 |
| 16060 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 16061 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 16062 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 16063 |
lt_cv_prog_compiler__b=yes |
| 16064 |
fi |
| 16065 |
else |
| 16066 |
lt_cv_prog_compiler__b=yes |
| 16067 |
fi |
| 16068 |
fi |
| 16069 |
$RM -r conftest* |
| 16070 |
LDFLAGS=$save_LDFLAGS |
| 16071 |
;; |
| 16072 |
esac |
| 16073 |
fi |
| 16074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 |
| 16075 |
printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } |
| 16076 |
|
| 16077 |
if test yes = "$lt_cv_prog_compiler__b"; then |
| 16078 |
archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
| 16079 |
else |
| 16080 |
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
| 16081 |
fi |
| 16082 |
|
| 16083 |
;; |
| 16084 |
esac |
| 16085 |
fi |
| 16086 |
if test no = "$with_gnu_ld"; then |
| 16087 |
hardcode_libdir_flag_spec='$wl+b $wl$libdir' |
| 16088 |
hardcode_libdir_separator=: |
| 16089 |
|
| 16090 |
case $host_cpu in |
| 16091 |
hppa*64*|ia64*) |
| 16092 |
hardcode_direct=no |
| 16093 |
hardcode_shlibpath_var=no |
| 16094 |
;; |
| 16095 |
*) |
| 16096 |
hardcode_direct=yes |
| 16097 |
hardcode_direct_absolute=yes |
| 16098 |
export_dynamic_flag_spec='$wl-E' |
| 16099 |
|
| 16100 |
# hardcode_minus_L: Not really in the search PATH, |
| 16101 |
# but as the default location of the library. |
| 16102 |
hardcode_minus_L=yes |
| 16103 |
;; |
| 16104 |
esac |
| 16105 |
fi |
| 16106 |
;; |
| 16107 |
|
| 16108 |
irix5* | irix6* | nonstopux*) |
| 16109 |
if test yes = "$GCC"; then |
| 16110 |
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 16111 |
# Try to use the -exported_symbol ld option, if it does not |
| 16112 |
# work, assume that -exports_file does not work either and |
| 16113 |
# implicitly export all symbols. |
| 16114 |
# This should be the same for all languages, so no per-tag cache variable. |
| 16115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 |
| 16116 |
printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } |
| 16117 |
if test ${lt_cv_irix_exported_symbol+y} |
| 16118 |
then : |
| 16119 |
printf %s "(cached) " >&6 |
| 16120 |
else case e in #( |
| 16121 |
e) save_LDFLAGS=$LDFLAGS |
| 16122 |
LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" |
| 16123 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16124 |
/* end confdefs.h. */ |
| 16125 |
int foo (void) { return 0; } |
| 16126 |
_ACEOF |
| 16127 |
if ac_fn_c_try_link "$LINENO" |
| 16128 |
then : |
| 16129 |
lt_cv_irix_exported_symbol=yes |
| 16130 |
else case e in #( |
| 16131 |
e) lt_cv_irix_exported_symbol=no ;; |
| 16132 |
esac |
| 16133 |
fi |
| 16134 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 16135 |
conftest$ac_exeext conftest.$ac_ext |
| 16136 |
LDFLAGS=$save_LDFLAGS ;; |
| 16137 |
esac |
| 16138 |
fi |
| 16139 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 |
| 16140 |
printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } |
| 16141 |
if test yes = "$lt_cv_irix_exported_symbol"; then |
| 16142 |
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' |
| 16143 |
fi |
| 16144 |
link_all_deplibs=no |
| 16145 |
else |
| 16146 |
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 16147 |
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' |
| 16148 |
fi |
| 16149 |
archive_cmds_need_lc='no' |
| 16150 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 16151 |
hardcode_libdir_separator=: |
| 16152 |
inherit_rpath=yes |
| 16153 |
link_all_deplibs=yes |
| 16154 |
;; |
| 16155 |
|
| 16156 |
linux*) |
| 16157 |
case $cc_basename in |
| 16158 |
tcc*) |
| 16159 |
# Fabrice Bellard et al's Tiny C Compiler |
| 16160 |
ld_shlibs=yes |
| 16161 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16162 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 16163 |
;; |
| 16164 |
esac |
| 16165 |
;; |
| 16166 |
|
| 16167 |
*-mlibc) |
| 16168 |
;; |
| 16169 |
|
| 16170 |
netbsd* | netbsdelf*-gnu) |
| 16171 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 16172 |
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
| 16173 |
else |
| 16174 |
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
| 16175 |
fi |
| 16176 |
hardcode_libdir_flag_spec='-R$libdir' |
| 16177 |
hardcode_direct=yes |
| 16178 |
hardcode_shlibpath_var=no |
| 16179 |
;; |
| 16180 |
|
| 16181 |
newsos6) |
| 16182 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16183 |
hardcode_direct=yes |
| 16184 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 16185 |
hardcode_libdir_separator=: |
| 16186 |
hardcode_shlibpath_var=no |
| 16187 |
;; |
| 16188 |
|
| 16189 |
*nto* | *qnx*) |
| 16190 |
;; |
| 16191 |
|
| 16192 |
openbsd*) |
| 16193 |
if test -f /usr/libexec/ld.so; then |
| 16194 |
hardcode_direct=yes |
| 16195 |
hardcode_shlibpath_var=no |
| 16196 |
hardcode_direct_absolute=yes |
| 16197 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 16198 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16199 |
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' |
| 16200 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 16201 |
export_dynamic_flag_spec='$wl-E' |
| 16202 |
else |
| 16203 |
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
| 16204 |
hardcode_libdir_flag_spec='$wl-rpath,$libdir' |
| 16205 |
fi |
| 16206 |
else |
| 16207 |
ld_shlibs=no |
| 16208 |
fi |
| 16209 |
;; |
| 16210 |
|
| 16211 |
os2*) |
| 16212 |
hardcode_libdir_flag_spec='-L$libdir' |
| 16213 |
hardcode_minus_L=yes |
| 16214 |
allow_undefined_flag=unsupported |
| 16215 |
shrext_cmds=.dll |
| 16216 |
archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 16217 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 16218 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 16219 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 16220 |
emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ |
| 16221 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 16222 |
emximp -o $lib $output_objdir/$libname.def' |
| 16223 |
archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ |
| 16224 |
$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ |
| 16225 |
$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ |
| 16226 |
$ECHO EXPORTS >> $output_objdir/$libname.def~ |
| 16227 |
prefix_cmds="$SED"~ |
| 16228 |
if test EXPORTS = "`$SED 1q $export_symbols`"; then |
| 16229 |
prefix_cmds="$prefix_cmds -e 1d"; |
| 16230 |
fi~ |
| 16231 |
prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ |
| 16232 |
cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ |
| 16233 |
$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ |
| 16234 |
emximp -o $lib $output_objdir/$libname.def' |
| 16235 |
old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' |
| 16236 |
enable_shared_with_static_runtimes=yes |
| 16237 |
file_list_spec='@' |
| 16238 |
;; |
| 16239 |
|
| 16240 |
osf3*) |
| 16241 |
if test yes = "$GCC"; then |
| 16242 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 16243 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 16244 |
else |
| 16245 |
allow_undefined_flag=' -expect_unresolved \*' |
| 16246 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 16247 |
fi |
| 16248 |
archive_cmds_need_lc='no' |
| 16249 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 16250 |
hardcode_libdir_separator=: |
| 16251 |
;; |
| 16252 |
|
| 16253 |
osf4* | osf5*) # as osf3* with the addition of -msym flag |
| 16254 |
if test yes = "$GCC"; then |
| 16255 |
allow_undefined_flag=' $wl-expect_unresolved $wl\*' |
| 16256 |
archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' |
| 16257 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 16258 |
else |
| 16259 |
allow_undefined_flag=' -expect_unresolved \*' |
| 16260 |
archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' |
| 16261 |
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ |
| 16262 |
$CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' |
| 16263 |
|
| 16264 |
# Both c and cxx compiler support -rpath directly |
| 16265 |
hardcode_libdir_flag_spec='-rpath $libdir' |
| 16266 |
fi |
| 16267 |
archive_cmds_need_lc='no' |
| 16268 |
hardcode_libdir_separator=: |
| 16269 |
;; |
| 16270 |
|
| 16271 |
serenity*) |
| 16272 |
;; |
| 16273 |
|
| 16274 |
solaris*) |
| 16275 |
no_undefined_flag=' -z defs' |
| 16276 |
if test yes = "$GCC"; then |
| 16277 |
wlarc='$wl' |
| 16278 |
archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16279 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16280 |
$CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 16281 |
else |
| 16282 |
case `$CC -V 2>&1` in |
| 16283 |
*"Compilers 5.0"*) |
| 16284 |
wlarc='' |
| 16285 |
archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16286 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16287 |
$LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' |
| 16288 |
;; |
| 16289 |
*) |
| 16290 |
wlarc='$wl' |
| 16291 |
archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16292 |
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
| 16293 |
$CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' |
| 16294 |
;; |
| 16295 |
esac |
| 16296 |
fi |
| 16297 |
hardcode_libdir_flag_spec='-R$libdir' |
| 16298 |
hardcode_shlibpath_var=no |
| 16299 |
case $host_os in |
| 16300 |
solaris2.[0-5] | solaris2.[0-5].*) ;; |
| 16301 |
*) |
| 16302 |
# The compiler driver will combine and reorder linker options, |
| 16303 |
# but understands '-z linker_flag'. GCC discards it without '$wl', |
| 16304 |
# but is careful enough not to reorder. |
| 16305 |
# Supported since Solaris 2.6 (maybe 2.5.1?) |
| 16306 |
if test yes = "$GCC"; then |
| 16307 |
whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' |
| 16308 |
else |
| 16309 |
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
| 16310 |
fi |
| 16311 |
;; |
| 16312 |
esac |
| 16313 |
link_all_deplibs=yes |
| 16314 |
;; |
| 16315 |
|
| 16316 |
sunos4*) |
| 16317 |
if test sequent = "$host_vendor"; then |
| 16318 |
# Use $CC to link under sequent, because it throws in some extra .o |
| 16319 |
# files that make .init and .fini sections work. |
| 16320 |
archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16321 |
else |
| 16322 |
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
| 16323 |
fi |
| 16324 |
hardcode_libdir_flag_spec='-L$libdir' |
| 16325 |
hardcode_direct=yes |
| 16326 |
hardcode_minus_L=yes |
| 16327 |
hardcode_shlibpath_var=no |
| 16328 |
;; |
| 16329 |
|
| 16330 |
sysv4) |
| 16331 |
case $host_vendor in |
| 16332 |
sni) |
| 16333 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16334 |
hardcode_direct=yes # is this really true??? |
| 16335 |
;; |
| 16336 |
siemens) |
| 16337 |
## LD is ld it makes a PLAMLIB |
| 16338 |
## CC just makes a GrossModule. |
| 16339 |
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
| 16340 |
reload_cmds='$CC -r -o $output$reload_objs' |
| 16341 |
hardcode_direct=no |
| 16342 |
;; |
| 16343 |
motorola) |
| 16344 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16345 |
hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
| 16346 |
;; |
| 16347 |
esac |
| 16348 |
runpath_var='LD_RUN_PATH' |
| 16349 |
hardcode_shlibpath_var=no |
| 16350 |
;; |
| 16351 |
|
| 16352 |
sysv4.3*) |
| 16353 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16354 |
hardcode_shlibpath_var=no |
| 16355 |
export_dynamic_flag_spec='-Bexport' |
| 16356 |
;; |
| 16357 |
|
| 16358 |
sysv4*MP*) |
| 16359 |
if test -d /usr/nec; then |
| 16360 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16361 |
hardcode_shlibpath_var=no |
| 16362 |
runpath_var=LD_RUN_PATH |
| 16363 |
hardcode_runpath_var=yes |
| 16364 |
ld_shlibs=yes |
| 16365 |
fi |
| 16366 |
;; |
| 16367 |
|
| 16368 |
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
| 16369 |
no_undefined_flag='$wl-z,text' |
| 16370 |
archive_cmds_need_lc=no |
| 16371 |
hardcode_shlibpath_var=no |
| 16372 |
runpath_var='LD_RUN_PATH' |
| 16373 |
|
| 16374 |
if test yes = "$GCC"; then |
| 16375 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16376 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16377 |
else |
| 16378 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16379 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16380 |
fi |
| 16381 |
;; |
| 16382 |
|
| 16383 |
sysv5* | sco3.2v5* | sco5v6*) |
| 16384 |
# Note: We CANNOT use -z defs as we might desire, because we do not |
| 16385 |
# link with -lc, and that would cause any symbols used from libc to |
| 16386 |
# always be unresolved, which means just about no library would |
| 16387 |
# ever link correctly. If we're not using GNU ld we use -z text |
| 16388 |
# though, which does catch some bad symbols but isn't as heavy-handed |
| 16389 |
# as -z defs. |
| 16390 |
no_undefined_flag='$wl-z,text' |
| 16391 |
allow_undefined_flag='$wl-z,nodefs' |
| 16392 |
archive_cmds_need_lc=no |
| 16393 |
hardcode_shlibpath_var=no |
| 16394 |
hardcode_libdir_flag_spec='$wl-R,$libdir' |
| 16395 |
hardcode_libdir_separator=':' |
| 16396 |
link_all_deplibs=yes |
| 16397 |
export_dynamic_flag_spec='$wl-Bexport' |
| 16398 |
runpath_var='LD_RUN_PATH' |
| 16399 |
|
| 16400 |
if test yes = "$GCC"; then |
| 16401 |
archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16402 |
archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16403 |
else |
| 16404 |
archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16405 |
archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
| 16406 |
fi |
| 16407 |
;; |
| 16408 |
|
| 16409 |
uts4*) |
| 16410 |
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
| 16411 |
hardcode_libdir_flag_spec='-L$libdir' |
| 16412 |
hardcode_shlibpath_var=no |
| 16413 |
;; |
| 16414 |
|
| 16415 |
*) |
| 16416 |
ld_shlibs=no |
| 16417 |
;; |
| 16418 |
esac |
| 16419 |
|
| 16420 |
if test sni = "$host_vendor"; then |
| 16421 |
case $host in |
| 16422 |
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
| 16423 |
export_dynamic_flag_spec='$wl-Blargedynsym' |
| 16424 |
;; |
| 16425 |
esac |
| 16426 |
fi |
| 16427 |
fi |
| 16428 |
|
| 16429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
| 16430 |
printf "%s\n" "$ld_shlibs" >&6; } |
| 16431 |
test no = "$ld_shlibs" && can_build_shared=no |
| 16432 |
|
| 16433 |
with_gnu_ld=$with_gnu_ld |
| 16434 |
|
| 16435 |
|
| 16436 |
|
| 16437 |
|
| 16438 |
|
| 16439 |
|
| 16440 |
|
| 16441 |
|
| 16442 |
|
| 16443 |
|
| 16444 |
|
| 16445 |
|
| 16446 |
|
| 16447 |
|
| 16448 |
|
| 16449 |
# |
| 16450 |
# Do we need to explicitly link libc? |
| 16451 |
# |
| 16452 |
case "x$archive_cmds_need_lc" in |
| 16453 |
x|xyes) |
| 16454 |
# Assume -lc should be added |
| 16455 |
archive_cmds_need_lc=yes |
| 16456 |
|
| 16457 |
if test yes,yes = "$GCC,$enable_shared"; then |
| 16458 |
case $archive_cmds in |
| 16459 |
*'~'*) |
| 16460 |
# FIXME: we may have to deal with multi-command sequences. |
| 16461 |
;; |
| 16462 |
'$CC '*) |
| 16463 |
# Test whether the compiler implicitly links with -lc since on some |
| 16464 |
# systems, -lgcc has to come before -lc. If gcc already passes -lc |
| 16465 |
# to ld, don't add -lc before -lgcc. |
| 16466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
| 16467 |
printf %s "checking whether -lc should be explicitly linked in... " >&6; } |
| 16468 |
if test ${lt_cv_archive_cmds_need_lc+y} |
| 16469 |
then : |
| 16470 |
printf %s "(cached) " >&6 |
| 16471 |
else case e in #( |
| 16472 |
e) $RM conftest* |
| 16473 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 16474 |
|
| 16475 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
| 16476 |
(eval $ac_compile) 2>&5 |
| 16477 |
ac_status=$? |
| 16478 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16479 |
test $ac_status = 0; } 2>conftest.err; then |
| 16480 |
soname=conftest |
| 16481 |
lib=conftest |
| 16482 |
libobjs=conftest.$ac_objext |
| 16483 |
deplibs= |
| 16484 |
wl=$lt_prog_compiler_wl |
| 16485 |
pic_flag=$lt_prog_compiler_pic |
| 16486 |
compiler_flags=-v |
| 16487 |
linker_flags=-v |
| 16488 |
verstring= |
| 16489 |
output_objdir=. |
| 16490 |
libname=conftest |
| 16491 |
lt_save_allow_undefined_flag=$allow_undefined_flag |
| 16492 |
allow_undefined_flag= |
| 16493 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
| 16494 |
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
| 16495 |
ac_status=$? |
| 16496 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 16497 |
test $ac_status = 0; } |
| 16498 |
then |
| 16499 |
lt_cv_archive_cmds_need_lc=no |
| 16500 |
else |
| 16501 |
lt_cv_archive_cmds_need_lc=yes |
| 16502 |
fi |
| 16503 |
allow_undefined_flag=$lt_save_allow_undefined_flag |
| 16504 |
else |
| 16505 |
cat conftest.err 1>&5 |
| 16506 |
fi |
| 16507 |
$RM conftest* |
| 16508 |
;; |
| 16509 |
esac |
| 16510 |
fi |
| 16511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
| 16512 |
printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } |
| 16513 |
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
| 16514 |
;; |
| 16515 |
esac |
| 16516 |
fi |
| 16517 |
;; |
| 16518 |
esac |
| 16519 |
|
| 16520 |
|
| 16521 |
|
| 16522 |
|
| 16523 |
|
| 16524 |
|
| 16525 |
|
| 16526 |
|
| 16527 |
|
| 16528 |
|
| 16529 |
|
| 16530 |
|
| 16531 |
|
| 16532 |
|
| 16533 |
|
| 16534 |
|
| 16535 |
|
| 16536 |
|
| 16537 |
|
| 16538 |
|
| 16539 |
|
| 16540 |
|
| 16541 |
|
| 16542 |
|
| 16543 |
|
| 16544 |
|
| 16545 |
|
| 16546 |
|
| 16547 |
|
| 16548 |
|
| 16549 |
|
| 16550 |
|
| 16551 |
|
| 16552 |
|
| 16553 |
|
| 16554 |
|
| 16555 |
|
| 16556 |
|
| 16557 |
|
| 16558 |
|
| 16559 |
|
| 16560 |
|
| 16561 |
|
| 16562 |
|
| 16563 |
|
| 16564 |
|
| 16565 |
|
| 16566 |
|
| 16567 |
|
| 16568 |
|
| 16569 |
|
| 16570 |
|
| 16571 |
|
| 16572 |
|
| 16573 |
|
| 16574 |
|
| 16575 |
|
| 16576 |
|
| 16577 |
|
| 16578 |
|
| 16579 |
|
| 16580 |
|
| 16581 |
|
| 16582 |
|
| 16583 |
|
| 16584 |
|
| 16585 |
|
| 16586 |
|
| 16587 |
|
| 16588 |
|
| 16589 |
|
| 16590 |
|
| 16591 |
|
| 16592 |
|
| 16593 |
|
| 16594 |
|
| 16595 |
|
| 16596 |
|
| 16597 |
|
| 16598 |
|
| 16599 |
|
| 16600 |
|
| 16601 |
|
| 16602 |
|
| 16603 |
|
| 16604 |
|
| 16605 |
|
| 16606 |
|
| 16607 |
|
| 16608 |
|
| 16609 |
|
| 16610 |
|
| 16611 |
|
| 16612 |
|
| 16613 |
|
| 16614 |
|
| 16615 |
|
| 16616 |
|
| 16617 |
|
| 16618 |
|
| 16619 |
|
| 16620 |
|
| 16621 |
|
| 16622 |
|
| 16623 |
|
| 16624 |
|
| 16625 |
|
| 16626 |
|
| 16627 |
|
| 16628 |
|
| 16629 |
|
| 16630 |
|
| 16631 |
|
| 16632 |
|
| 16633 |
|
| 16634 |
|
| 16635 |
|
| 16636 |
|
| 16637 |
|
| 16638 |
|
| 16639 |
|
| 16640 |
|
| 16641 |
|
| 16642 |
|
| 16643 |
|
| 16644 |
|
| 16645 |
|
| 16646 |
|
| 16647 |
|
| 16648 |
|
| 16649 |
|
| 16650 |
|
| 16651 |
|
| 16652 |
|
| 16653 |
|
| 16654 |
|
| 16655 |
|
| 16656 |
|
| 16657 |
|
| 16658 |
|
| 16659 |
|
| 16660 |
|
| 16661 |
|
| 16662 |
|
| 16663 |
|
| 16664 |
|
| 16665 |
|
| 16666 |
|
| 16667 |
|
| 16668 |
|
| 16669 |
|
| 16670 |
|
| 16671 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
| 16672 |
printf %s "checking dynamic linker characteristics... " >&6; } |
| 16673 |
|
| 16674 |
if test yes = "$GCC"; then |
| 16675 |
case $host_os in |
| 16676 |
darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; |
| 16677 |
*) lt_awk_arg='/^libraries:/' ;; |
| 16678 |
esac |
| 16679 |
case $host_os in |
| 16680 |
mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; |
| 16681 |
*) lt_sed_strip_eq='s|=/|/|g' ;; |
| 16682 |
esac |
| 16683 |
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` |
| 16684 |
case $lt_search_path_spec in |
| 16685 |
*\;*) |
| 16686 |
# if the path contains ";" then we assume it to be the separator |
| 16687 |
# otherwise default to the standard path separator (i.e. ":") - it is |
| 16688 |
# assumed that no part of a normal pathname contains ";" but that should |
| 16689 |
# okay in the real world where ";" in dirpaths is itself problematic. |
| 16690 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
| 16691 |
;; |
| 16692 |
*) |
| 16693 |
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` |
| 16694 |
;; |
| 16695 |
esac |
| 16696 |
# Ok, now we have the path, separated by spaces, we can step through it |
| 16697 |
# and add multilib dir if necessary... |
| 16698 |
lt_tmp_lt_search_path_spec= |
| 16699 |
lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
| 16700 |
# ...but if some path component already ends with the multilib dir we assume |
| 16701 |
# that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). |
| 16702 |
case "$lt_multi_os_dir; $lt_search_path_spec " in |
| 16703 |
"/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) |
| 16704 |
lt_multi_os_dir= |
| 16705 |
;; |
| 16706 |
esac |
| 16707 |
for lt_sys_path in $lt_search_path_spec; do |
| 16708 |
if test -d "$lt_sys_path$lt_multi_os_dir"; then |
| 16709 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" |
| 16710 |
elif test -n "$lt_multi_os_dir"; then |
| 16711 |
test -d "$lt_sys_path" && \ |
| 16712 |
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
| 16713 |
fi |
| 16714 |
done |
| 16715 |
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
| 16716 |
BEGIN {RS = " "; FS = "/|\n";} { |
| 16717 |
lt_foo = ""; |
| 16718 |
lt_count = 0; |
| 16719 |
for (lt_i = NF; lt_i > 0; lt_i--) { |
| 16720 |
if ($lt_i != "" && $lt_i != ".") { |
| 16721 |
if ($lt_i == "..") { |
| 16722 |
lt_count++; |
| 16723 |
} else { |
| 16724 |
if (lt_count == 0) { |
| 16725 |
lt_foo = "/" $lt_i lt_foo; |
| 16726 |
} else { |
| 16727 |
lt_count--; |
| 16728 |
} |
| 16729 |
} |
| 16730 |
} |
| 16731 |
} |
| 16732 |
if (lt_foo != "") { lt_freq[lt_foo]++; } |
| 16733 |
if (lt_freq[lt_foo] == 1) { print lt_foo; } |
| 16734 |
}'` |
| 16735 |
# AWK program above erroneously prepends '/' to C:/dos/paths |
| 16736 |
# for these hosts. |
| 16737 |
case $host_os in |
| 16738 |
mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ |
| 16739 |
$SED 's|/\([A-Za-z]:\)|\1|g'` ;; |
| 16740 |
esac |
| 16741 |
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` |
| 16742 |
else |
| 16743 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 16744 |
fi |
| 16745 |
library_names_spec= |
| 16746 |
libname_spec='lib$name' |
| 16747 |
soname_spec= |
| 16748 |
shrext_cmds=.so |
| 16749 |
postinstall_cmds= |
| 16750 |
postuninstall_cmds= |
| 16751 |
finish_cmds= |
| 16752 |
finish_eval= |
| 16753 |
shlibpath_var= |
| 16754 |
shlibpath_overrides_runpath=unknown |
| 16755 |
version_type=none |
| 16756 |
dynamic_linker="$host_os ld.so" |
| 16757 |
sys_lib_dlsearch_path_spec="/lib /usr/lib" |
| 16758 |
need_lib_prefix=unknown |
| 16759 |
hardcode_into_libs=no |
| 16760 |
|
| 16761 |
# when you set need_version to no, make sure it does not cause -set_version |
| 16762 |
# flags to be left without arguments |
| 16763 |
need_version=unknown |
| 16764 |
|
| 16765 |
|
| 16766 |
|
| 16767 |
case $host_os in |
| 16768 |
aix3*) |
| 16769 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16770 |
library_names_spec='$libname$release$shared_ext$versuffix $libname.a' |
| 16771 |
shlibpath_var=LIBPATH |
| 16772 |
|
| 16773 |
# AIX 3 has no versioning support, so we append a major version to the name. |
| 16774 |
soname_spec='$libname$release$shared_ext$major' |
| 16775 |
;; |
| 16776 |
|
| 16777 |
aix[4-9]*) |
| 16778 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16779 |
need_lib_prefix=no |
| 16780 |
need_version=no |
| 16781 |
hardcode_into_libs=yes |
| 16782 |
if test ia64 = "$host_cpu"; then |
| 16783 |
# AIX 5 supports IA64 |
| 16784 |
library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' |
| 16785 |
shlibpath_var=LD_LIBRARY_PATH |
| 16786 |
else |
| 16787 |
# With GCC up to 2.95.x, collect2 would create an import file |
| 16788 |
# for dependence libraries. The import file would start with |
| 16789 |
# the line '#! .'. This would cause the generated library to |
| 16790 |
# depend on '.', always an invalid library. This was fixed in |
| 16791 |
# development snapshots of GCC prior to 3.0. |
| 16792 |
case $host_os in |
| 16793 |
aix4 | aix4.[01] | aix4.[01].*) |
| 16794 |
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
| 16795 |
echo ' yes ' |
| 16796 |
echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then |
| 16797 |
: |
| 16798 |
else |
| 16799 |
can_build_shared=no |
| 16800 |
fi |
| 16801 |
;; |
| 16802 |
esac |
| 16803 |
# Using Import Files as archive members, it is possible to support |
| 16804 |
# filename-based versioning of shared library archives on AIX. While |
| 16805 |
# this would work for both with and without runtime linking, it will |
| 16806 |
# prevent static linking of such archives. So we do filename-based |
| 16807 |
# shared library versioning with .so extension only, which is used |
| 16808 |
# when both runtime linking and shared linking is enabled. |
| 16809 |
# Unfortunately, runtime linking may impact performance, so we do |
| 16810 |
# not want this to be the default eventually. Also, we use the |
| 16811 |
# versioned .so libs for executables only if there is the -brtl |
| 16812 |
# linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only. |
| 16813 |
# To allow for filename-based versioning support, we need to create |
| 16814 |
# libNAME.so.V as an archive file, containing: |
| 16815 |
# *) an Import File, referring to the versioned filename of the |
| 16816 |
# archive as well as the shared archive member, telling the |
| 16817 |
# bitwidth (32 or 64) of that shared object, and providing the |
| 16818 |
# list of exported symbols of that shared object, eventually |
| 16819 |
# decorated with the 'weak' keyword |
| 16820 |
# *) the shared object with the F_LOADONLY flag set, to really avoid |
| 16821 |
# it being seen by the linker. |
| 16822 |
# At run time we better use the real file rather than another symlink, |
| 16823 |
# but for link time we create the symlink libNAME.so -> libNAME.so.V |
| 16824 |
|
| 16825 |
case $with_aix_soname,$aix_use_runtimelinking in |
| 16826 |
# AIX (on Power*) has no versioning support, so currently we cannot hardcode correct |
| 16827 |
# soname into executable. Probably we can add versioning support to |
| 16828 |
# collect2, so additional links can be useful in future. |
| 16829 |
aix,yes) # traditional libtool |
| 16830 |
dynamic_linker='AIX unversionable lib.so' |
| 16831 |
# If using run time linking (on AIX 4.2 or later) use lib<name>.so |
| 16832 |
# instead of lib<name>.a to let people know that these are not |
| 16833 |
# typical AIX shared libraries. |
| 16834 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16835 |
;; |
| 16836 |
aix,no) # traditional AIX only |
| 16837 |
dynamic_linker='AIX lib.a(lib.so.V)' |
| 16838 |
# We preserve .a as extension for shared libraries through AIX4.2 |
| 16839 |
# and later when we are not doing run time linking. |
| 16840 |
library_names_spec='$libname$release.a $libname.a' |
| 16841 |
soname_spec='$libname$release$shared_ext$major' |
| 16842 |
;; |
| 16843 |
svr4,*) # full svr4 only |
| 16844 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" |
| 16845 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16846 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 16847 |
shlibpath_overrides_runpath=yes |
| 16848 |
;; |
| 16849 |
*,yes) # both, prefer svr4 |
| 16850 |
dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" |
| 16851 |
library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' |
| 16852 |
# unpreferred sharedlib libNAME.a needs extra handling |
| 16853 |
postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' |
| 16854 |
postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' |
| 16855 |
# We do not specify a path in Import Files, so LIBPATH fires. |
| 16856 |
shlibpath_overrides_runpath=yes |
| 16857 |
;; |
| 16858 |
*,no) # both, prefer aix |
| 16859 |
dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" |
| 16860 |
library_names_spec='$libname$release.a $libname.a' |
| 16861 |
soname_spec='$libname$release$shared_ext$major' |
| 16862 |
# unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling |
| 16863 |
postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' |
| 16864 |
postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' |
| 16865 |
;; |
| 16866 |
esac |
| 16867 |
shlibpath_var=LIBPATH |
| 16868 |
fi |
| 16869 |
;; |
| 16870 |
|
| 16871 |
amigaos*) |
| 16872 |
case $host_cpu in |
| 16873 |
powerpc) |
| 16874 |
# Since July 2007 AmigaOS4 officially supports .so libraries. |
| 16875 |
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline. |
| 16876 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16877 |
;; |
| 16878 |
m68k) |
| 16879 |
library_names_spec='$libname.ixlibrary $libname.a' |
| 16880 |
# Create ${libname}_ixlibrary.a entries in /sys/libs. |
| 16881 |
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' |
| 16882 |
;; |
| 16883 |
esac |
| 16884 |
;; |
| 16885 |
|
| 16886 |
beos*) |
| 16887 |
library_names_spec='$libname$shared_ext' |
| 16888 |
dynamic_linker="$host_os ld.so" |
| 16889 |
shlibpath_var=LIBRARY_PATH |
| 16890 |
;; |
| 16891 |
|
| 16892 |
bsdi[45]*) |
| 16893 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 16894 |
need_version=no |
| 16895 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 16896 |
soname_spec='$libname$release$shared_ext$major' |
| 16897 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
| 16898 |
shlibpath_var=LD_LIBRARY_PATH |
| 16899 |
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
| 16900 |
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
| 16901 |
# the default ld.so.conf also contains /usr/contrib/lib and |
| 16902 |
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
| 16903 |
# libtool to hard-code these into programs |
| 16904 |
;; |
| 16905 |
|
| 16906 |
cygwin* | mingw* | windows* | pw32* | cegcc*) |
| 16907 |
version_type=windows |
| 16908 |
shrext_cmds=.dll |
| 16909 |
need_version=no |
| 16910 |
need_lib_prefix=no |
| 16911 |
|
| 16912 |
case $GCC,$cc_basename in |
| 16913 |
yes,*) |
| 16914 |
# gcc |
| 16915 |
library_names_spec='$libname.dll.a' |
| 16916 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 16917 |
# If user builds GCC with multilib enabled, |
| 16918 |
# it should just install on $(libdir) |
| 16919 |
# not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones. |
| 16920 |
if test xyes = x"$multilib"; then |
| 16921 |
postinstall_cmds='base_file=`basename \$file`~ |
| 16922 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16923 |
dldir=$destdir/`dirname \$dlpath`~ |
| 16924 |
$install_prog $dir/$dlname $destdir/$dlname~ |
| 16925 |
chmod a+x $destdir/$dlname~ |
| 16926 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16927 |
eval '\''$striplib $destdir/$dlname'\'' || exit \$?; |
| 16928 |
fi' |
| 16929 |
else |
| 16930 |
postinstall_cmds='base_file=`basename \$file`~ |
| 16931 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 16932 |
dldir=$destdir/`dirname \$dlpath`~ |
| 16933 |
test -d \$dldir || mkdir -p \$dldir~ |
| 16934 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 16935 |
chmod a+x \$dldir/$dlname~ |
| 16936 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 16937 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 16938 |
fi' |
| 16939 |
fi |
| 16940 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 16941 |
dlpath=$dir/\$dldll~ |
| 16942 |
$RM \$dlpath' |
| 16943 |
shlibpath_overrides_runpath=yes |
| 16944 |
|
| 16945 |
case $host_os in |
| 16946 |
cygwin*) |
| 16947 |
# Cygwin DLLs use 'cyg' prefix rather than 'lib' |
| 16948 |
soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16949 |
|
| 16950 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" |
| 16951 |
;; |
| 16952 |
mingw* | windows* | cegcc*) |
| 16953 |
# MinGW DLLs use traditional 'lib' prefix |
| 16954 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16955 |
;; |
| 16956 |
pw32*) |
| 16957 |
# pw32 DLLs use 'pw' prefix rather than 'lib' |
| 16958 |
library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16959 |
;; |
| 16960 |
esac |
| 16961 |
dynamic_linker='Win32 ld.exe' |
| 16962 |
;; |
| 16963 |
|
| 16964 |
*,cl* | *,icl*) |
| 16965 |
# Native MSVC or ICC |
| 16966 |
libname_spec='$name' |
| 16967 |
soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' |
| 16968 |
library_names_spec='$libname.dll.lib' |
| 16969 |
|
| 16970 |
case $build_os in |
| 16971 |
mingw* | windows*) |
| 16972 |
sys_lib_search_path_spec= |
| 16973 |
lt_save_ifs=$IFS |
| 16974 |
IFS=';' |
| 16975 |
for lt_path in $LIB |
| 16976 |
do |
| 16977 |
IFS=$lt_save_ifs |
| 16978 |
# Let DOS variable expansion print the short 8.3 style file name. |
| 16979 |
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` |
| 16980 |
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" |
| 16981 |
done |
| 16982 |
IFS=$lt_save_ifs |
| 16983 |
# Convert to MSYS style. |
| 16984 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` |
| 16985 |
;; |
| 16986 |
cygwin*) |
| 16987 |
# Convert to unix form, then to dos form, then back to unix form |
| 16988 |
# but this time dos style (no spaces!) so that the unix form looks |
| 16989 |
# like /cygdrive/c/PROGRA~1:/cygdr... |
| 16990 |
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` |
| 16991 |
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` |
| 16992 |
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 16993 |
;; |
| 16994 |
*) |
| 16995 |
sys_lib_search_path_spec=$LIB |
| 16996 |
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then |
| 16997 |
# It is most probably a Windows format PATH. |
| 16998 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
| 16999 |
else |
| 17000 |
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
| 17001 |
fi |
| 17002 |
# FIXME: find the short name or the path components, as spaces are |
| 17003 |
# common. (e.g. "Program Files" -> "PROGRA~1") |
| 17004 |
;; |
| 17005 |
esac |
| 17006 |
|
| 17007 |
# DLL is installed to $(libdir)/../bin by postinstall_cmds |
| 17008 |
postinstall_cmds='base_file=`basename \$file`~ |
| 17009 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ |
| 17010 |
dldir=$destdir/`dirname \$dlpath`~ |
| 17011 |
test -d \$dldir || mkdir -p \$dldir~ |
| 17012 |
$install_prog $dir/$dlname \$dldir/$dlname' |
| 17013 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
| 17014 |
dlpath=$dir/\$dldll~ |
| 17015 |
$RM \$dlpath' |
| 17016 |
shlibpath_overrides_runpath=yes |
| 17017 |
dynamic_linker='Win32 link.exe' |
| 17018 |
;; |
| 17019 |
|
| 17020 |
*) |
| 17021 |
# Assume MSVC and ICC wrapper |
| 17022 |
library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' |
| 17023 |
dynamic_linker='Win32 ld.exe' |
| 17024 |
;; |
| 17025 |
esac |
| 17026 |
# FIXME: first we should search . and the directory the executable is in |
| 17027 |
shlibpath_var=PATH |
| 17028 |
;; |
| 17029 |
|
| 17030 |
darwin* | rhapsody*) |
| 17031 |
dynamic_linker="$host_os dyld" |
| 17032 |
version_type=darwin |
| 17033 |
need_lib_prefix=no |
| 17034 |
need_version=no |
| 17035 |
library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' |
| 17036 |
soname_spec='$libname$release$major$shared_ext' |
| 17037 |
shlibpath_overrides_runpath=yes |
| 17038 |
shlibpath_var=DYLD_LIBRARY_PATH |
| 17039 |
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
| 17040 |
|
| 17041 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
| 17042 |
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
| 17043 |
;; |
| 17044 |
|
| 17045 |
dgux*) |
| 17046 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17047 |
need_lib_prefix=no |
| 17048 |
need_version=no |
| 17049 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17050 |
soname_spec='$libname$release$shared_ext$major' |
| 17051 |
shlibpath_var=LD_LIBRARY_PATH |
| 17052 |
;; |
| 17053 |
|
| 17054 |
freebsd* | dragonfly* | midnightbsd*) |
| 17055 |
# DragonFly does not have aout. When/if they implement a new |
| 17056 |
# versioning mechanism, adjust this. |
| 17057 |
if test -x /usr/bin/objformat; then |
| 17058 |
objformat=`/usr/bin/objformat` |
| 17059 |
else |
| 17060 |
case $host_os in |
| 17061 |
freebsd[23].*) objformat=aout ;; |
| 17062 |
*) objformat=elf ;; |
| 17063 |
esac |
| 17064 |
fi |
| 17065 |
version_type=freebsd-$objformat |
| 17066 |
case $version_type in |
| 17067 |
freebsd-elf*) |
| 17068 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17069 |
soname_spec='$libname$release$shared_ext$major' |
| 17070 |
need_version=no |
| 17071 |
need_lib_prefix=no |
| 17072 |
;; |
| 17073 |
freebsd-*) |
| 17074 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17075 |
need_version=yes |
| 17076 |
;; |
| 17077 |
esac |
| 17078 |
case $host_cpu in |
| 17079 |
powerpc64) |
| 17080 |
# On FreeBSD bi-arch platforms, a different variable is used for 32-bit |
| 17081 |
# binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>. |
| 17082 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17083 |
/* end confdefs.h. */ |
| 17084 |
int test_pointer_size[sizeof (void *) - 5]; |
| 17085 |
|
| 17086 |
_ACEOF |
| 17087 |
if ac_fn_c_try_compile "$LINENO" |
| 17088 |
then : |
| 17089 |
shlibpath_var=LD_LIBRARY_PATH |
| 17090 |
else case e in #( |
| 17091 |
e) shlibpath_var=LD_32_LIBRARY_PATH ;; |
| 17092 |
esac |
| 17093 |
fi |
| 17094 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17095 |
;; |
| 17096 |
*) |
| 17097 |
shlibpath_var=LD_LIBRARY_PATH |
| 17098 |
;; |
| 17099 |
esac |
| 17100 |
case $host_os in |
| 17101 |
freebsd2.*) |
| 17102 |
shlibpath_overrides_runpath=yes |
| 17103 |
;; |
| 17104 |
freebsd3.[01]* | freebsdelf3.[01]*) |
| 17105 |
shlibpath_overrides_runpath=yes |
| 17106 |
hardcode_into_libs=yes |
| 17107 |
;; |
| 17108 |
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
| 17109 |
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
| 17110 |
shlibpath_overrides_runpath=no |
| 17111 |
hardcode_into_libs=yes |
| 17112 |
;; |
| 17113 |
*) # from 4.6 on, and DragonFly |
| 17114 |
shlibpath_overrides_runpath=yes |
| 17115 |
hardcode_into_libs=yes |
| 17116 |
;; |
| 17117 |
esac |
| 17118 |
;; |
| 17119 |
|
| 17120 |
haiku*) |
| 17121 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17122 |
need_lib_prefix=no |
| 17123 |
need_version=no |
| 17124 |
dynamic_linker="$host_os runtime_loader" |
| 17125 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17126 |
soname_spec='$libname$release$shared_ext$major' |
| 17127 |
shlibpath_var=LIBRARY_PATH |
| 17128 |
shlibpath_overrides_runpath=no |
| 17129 |
sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib' |
| 17130 |
sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib' |
| 17131 |
hardcode_into_libs=no |
| 17132 |
;; |
| 17133 |
|
| 17134 |
hpux9* | hpux10* | hpux11*) |
| 17135 |
# Give a soname corresponding to the major version so that dld.sl refuses to |
| 17136 |
# link against other versions. |
| 17137 |
version_type=sunos |
| 17138 |
need_lib_prefix=no |
| 17139 |
need_version=no |
| 17140 |
case $host_cpu in |
| 17141 |
ia64*) |
| 17142 |
shrext_cmds='.so' |
| 17143 |
hardcode_into_libs=yes |
| 17144 |
dynamic_linker="$host_os dld.so" |
| 17145 |
shlibpath_var=LD_LIBRARY_PATH |
| 17146 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17147 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17148 |
soname_spec='$libname$release$shared_ext$major' |
| 17149 |
if test 32 = "$HPUX_IA64_MODE"; then |
| 17150 |
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
| 17151 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux32 |
| 17152 |
else |
| 17153 |
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
| 17154 |
sys_lib_dlsearch_path_spec=/usr/lib/hpux64 |
| 17155 |
fi |
| 17156 |
;; |
| 17157 |
hppa*64*) |
| 17158 |
shrext_cmds='.sl' |
| 17159 |
hardcode_into_libs=yes |
| 17160 |
dynamic_linker="$host_os dld.sl" |
| 17161 |
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
| 17162 |
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
| 17163 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17164 |
soname_spec='$libname$release$shared_ext$major' |
| 17165 |
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
| 17166 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17167 |
;; |
| 17168 |
*) |
| 17169 |
shrext_cmds='.sl' |
| 17170 |
dynamic_linker="$host_os dld.sl" |
| 17171 |
shlibpath_var=SHLIB_PATH |
| 17172 |
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
| 17173 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17174 |
soname_spec='$libname$release$shared_ext$major' |
| 17175 |
;; |
| 17176 |
esac |
| 17177 |
# HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
| 17178 |
postinstall_cmds='chmod 555 $lib' |
| 17179 |
# or fails outright, so override atomically: |
| 17180 |
install_override_mode=555 |
| 17181 |
;; |
| 17182 |
|
| 17183 |
interix[3-9]*) |
| 17184 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17185 |
need_lib_prefix=no |
| 17186 |
need_version=no |
| 17187 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17188 |
soname_spec='$libname$release$shared_ext$major' |
| 17189 |
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
| 17190 |
shlibpath_var=LD_LIBRARY_PATH |
| 17191 |
shlibpath_overrides_runpath=no |
| 17192 |
hardcode_into_libs=yes |
| 17193 |
;; |
| 17194 |
|
| 17195 |
irix5* | irix6* | nonstopux*) |
| 17196 |
case $host_os in |
| 17197 |
nonstopux*) version_type=nonstopux ;; |
| 17198 |
*) |
| 17199 |
if test yes = "$lt_cv_prog_gnu_ld"; then |
| 17200 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17201 |
else |
| 17202 |
version_type=irix |
| 17203 |
fi ;; |
| 17204 |
esac |
| 17205 |
need_lib_prefix=no |
| 17206 |
need_version=no |
| 17207 |
soname_spec='$libname$release$shared_ext$major' |
| 17208 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' |
| 17209 |
case $host_os in |
| 17210 |
irix5* | nonstopux*) |
| 17211 |
libsuff= shlibsuff= |
| 17212 |
;; |
| 17213 |
*) |
| 17214 |
case $LD in # libtool.m4 will add one of these switches to LD |
| 17215 |
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
| 17216 |
libsuff= shlibsuff= libmagic=32-bit;; |
| 17217 |
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
| 17218 |
libsuff=32 shlibsuff=N32 libmagic=N32;; |
| 17219 |
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
| 17220 |
libsuff=64 shlibsuff=64 libmagic=64-bit;; |
| 17221 |
*) libsuff= shlibsuff= libmagic=never-match;; |
| 17222 |
esac |
| 17223 |
;; |
| 17224 |
esac |
| 17225 |
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
| 17226 |
shlibpath_overrides_runpath=no |
| 17227 |
sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" |
| 17228 |
sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" |
| 17229 |
hardcode_into_libs=yes |
| 17230 |
;; |
| 17231 |
|
| 17232 |
# No shared lib support for Linux oldld, aout, or coff. |
| 17233 |
linux*oldld* | linux*aout* | linux*coff*) |
| 17234 |
dynamic_linker=no |
| 17235 |
;; |
| 17236 |
|
| 17237 |
linux*android*) |
| 17238 |
version_type=none # Android doesn't support versioned libraries. |
| 17239 |
need_lib_prefix=no |
| 17240 |
need_version=no |
| 17241 |
library_names_spec='$libname$release$shared_ext $libname$shared_ext' |
| 17242 |
soname_spec='$libname$release$shared_ext' |
| 17243 |
finish_cmds= |
| 17244 |
shlibpath_var=LD_LIBRARY_PATH |
| 17245 |
shlibpath_overrides_runpath=yes |
| 17246 |
|
| 17247 |
# This implies no fast_install, which is unacceptable. |
| 17248 |
# Some rework will be needed to allow for fast_install |
| 17249 |
# before this can be enabled. |
| 17250 |
hardcode_into_libs=yes |
| 17251 |
|
| 17252 |
dynamic_linker='Android linker' |
| 17253 |
# -rpath works at least for libraries that are not overridden by |
| 17254 |
# libraries installed in system locations. |
| 17255 |
hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' |
| 17256 |
;; |
| 17257 |
|
| 17258 |
# This must be glibc/ELF. |
| 17259 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 17260 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17261 |
need_lib_prefix=no |
| 17262 |
need_version=no |
| 17263 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17264 |
soname_spec='$libname$release$shared_ext$major' |
| 17265 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
| 17266 |
shlibpath_var=LD_LIBRARY_PATH |
| 17267 |
shlibpath_overrides_runpath=no |
| 17268 |
|
| 17269 |
# Some binutils ld are patched to set DT_RUNPATH |
| 17270 |
if test ${lt_cv_shlibpath_overrides_runpath+y} |
| 17271 |
then : |
| 17272 |
printf %s "(cached) " >&6 |
| 17273 |
else case e in #( |
| 17274 |
e) lt_cv_shlibpath_overrides_runpath=no |
| 17275 |
save_LDFLAGS=$LDFLAGS |
| 17276 |
save_libdir=$libdir |
| 17277 |
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ |
| 17278 |
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" |
| 17279 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17280 |
/* end confdefs.h. */ |
| 17281 |
|
| 17282 |
int |
| 17283 |
main (void) |
| 17284 |
{ |
| 17285 |
|
| 17286 |
; |
| 17287 |
return 0; |
| 17288 |
} |
| 17289 |
_ACEOF |
| 17290 |
if ac_fn_c_try_link "$LINENO" |
| 17291 |
then : |
| 17292 |
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null |
| 17293 |
then : |
| 17294 |
lt_cv_shlibpath_overrides_runpath=yes |
| 17295 |
fi |
| 17296 |
fi |
| 17297 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 17298 |
conftest$ac_exeext conftest.$ac_ext |
| 17299 |
LDFLAGS=$save_LDFLAGS |
| 17300 |
libdir=$save_libdir |
| 17301 |
;; |
| 17302 |
esac |
| 17303 |
fi |
| 17304 |
|
| 17305 |
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath |
| 17306 |
|
| 17307 |
# This implies no fast_install, which is unacceptable. |
| 17308 |
# Some rework will be needed to allow for fast_install |
| 17309 |
# before this can be enabled. |
| 17310 |
hardcode_into_libs=yes |
| 17311 |
|
| 17312 |
# Ideally, we could use ldconfig to report *all* directories which are |
| 17313 |
# searched for libraries, however this is still not possible. Aside from not |
| 17314 |
# being certain /sbin/ldconfig is available, command |
| 17315 |
# 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, |
| 17316 |
# even though it is searched at run-time. Try to do the best guess by |
| 17317 |
# appending ld.so.conf contents (and includes) to the search path. |
| 17318 |
if test -f /etc/ld.so.conf; then |
| 17319 |
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` |
| 17320 |
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
| 17321 |
fi |
| 17322 |
|
| 17323 |
# We used to test for /lib/ld.so.1 and disable shared libraries on |
| 17324 |
# powerpc, because MkLinux only supported shared libraries with the |
| 17325 |
# GNU dynamic linker. Since this was broken with cross compilers, |
| 17326 |
# most powerpc-linux boxes support dynamic linking these days and |
| 17327 |
# people can always --disable-shared, the test was removed, and we |
| 17328 |
# assume the GNU/Linux dynamic linker is in use. |
| 17329 |
dynamic_linker='GNU/Linux ld.so' |
| 17330 |
;; |
| 17331 |
|
| 17332 |
netbsdelf*-gnu) |
| 17333 |
version_type=linux |
| 17334 |
need_lib_prefix=no |
| 17335 |
need_version=no |
| 17336 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17337 |
soname_spec='$libname$release$shared_ext$major' |
| 17338 |
shlibpath_var=LD_LIBRARY_PATH |
| 17339 |
shlibpath_overrides_runpath=no |
| 17340 |
hardcode_into_libs=yes |
| 17341 |
dynamic_linker='NetBSD ld.elf_so' |
| 17342 |
;; |
| 17343 |
|
| 17344 |
netbsdelf*-gnu) |
| 17345 |
version_type=linux |
| 17346 |
need_lib_prefix=no |
| 17347 |
need_version=no |
| 17348 |
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
| 17349 |
soname_spec='${libname}${release}${shared_ext}$major' |
| 17350 |
shlibpath_var=LD_LIBRARY_PATH |
| 17351 |
shlibpath_overrides_runpath=no |
| 17352 |
hardcode_into_libs=yes |
| 17353 |
dynamic_linker='NetBSD ld.elf_so' |
| 17354 |
;; |
| 17355 |
|
| 17356 |
netbsd*) |
| 17357 |
version_type=sunos |
| 17358 |
need_lib_prefix=no |
| 17359 |
need_version=no |
| 17360 |
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then |
| 17361 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17362 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17363 |
dynamic_linker='NetBSD (a.out) ld.so' |
| 17364 |
else |
| 17365 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17366 |
soname_spec='$libname$release$shared_ext$major' |
| 17367 |
dynamic_linker='NetBSD ld.elf_so' |
| 17368 |
fi |
| 17369 |
shlibpath_var=LD_LIBRARY_PATH |
| 17370 |
shlibpath_overrides_runpath=yes |
| 17371 |
hardcode_into_libs=yes |
| 17372 |
;; |
| 17373 |
|
| 17374 |
*-mlibc) |
| 17375 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17376 |
need_lib_prefix=no |
| 17377 |
need_version=no |
| 17378 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17379 |
soname_spec='$libname$release$shared_ext$major' |
| 17380 |
dynamic_linker='mlibc ld.so' |
| 17381 |
shlibpath_var=LD_LIBRARY_PATH |
| 17382 |
shlibpath_overrides_runpath=no |
| 17383 |
hardcode_into_libs=yes |
| 17384 |
;; |
| 17385 |
|
| 17386 |
newsos6) |
| 17387 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17388 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17389 |
shlibpath_var=LD_LIBRARY_PATH |
| 17390 |
shlibpath_overrides_runpath=yes |
| 17391 |
;; |
| 17392 |
|
| 17393 |
*nto* | *qnx*) |
| 17394 |
version_type=qnx |
| 17395 |
need_lib_prefix=no |
| 17396 |
need_version=no |
| 17397 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17398 |
soname_spec='$libname$release$shared_ext$major' |
| 17399 |
shlibpath_var=LD_LIBRARY_PATH |
| 17400 |
shlibpath_overrides_runpath=no |
| 17401 |
hardcode_into_libs=yes |
| 17402 |
dynamic_linker='ldqnx.so' |
| 17403 |
;; |
| 17404 |
|
| 17405 |
openbsd*) |
| 17406 |
version_type=sunos |
| 17407 |
sys_lib_dlsearch_path_spec=/usr/lib |
| 17408 |
need_lib_prefix=no |
| 17409 |
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then |
| 17410 |
need_version=no |
| 17411 |
else |
| 17412 |
need_version=yes |
| 17413 |
fi |
| 17414 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17415 |
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
| 17416 |
shlibpath_var=LD_LIBRARY_PATH |
| 17417 |
shlibpath_overrides_runpath=yes |
| 17418 |
;; |
| 17419 |
|
| 17420 |
os2*) |
| 17421 |
libname_spec='$name' |
| 17422 |
version_type=windows |
| 17423 |
shrext_cmds=.dll |
| 17424 |
need_version=no |
| 17425 |
need_lib_prefix=no |
| 17426 |
# OS/2 can only load a DLL with a base name of 8 characters or less. |
| 17427 |
soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; |
| 17428 |
v=$($ECHO $release$versuffix | tr -d .-); |
| 17429 |
n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); |
| 17430 |
$ECHO $n$v`$shared_ext' |
| 17431 |
library_names_spec='${libname}_dll.$libext' |
| 17432 |
dynamic_linker='OS/2 ld.exe' |
| 17433 |
shlibpath_var=BEGINLIBPATH |
| 17434 |
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
| 17435 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17436 |
postinstall_cmds='base_file=`basename \$file`~ |
| 17437 |
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ |
| 17438 |
dldir=$destdir/`dirname \$dlpath`~ |
| 17439 |
test -d \$dldir || mkdir -p \$dldir~ |
| 17440 |
$install_prog $dir/$dlname \$dldir/$dlname~ |
| 17441 |
chmod a+x \$dldir/$dlname~ |
| 17442 |
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then |
| 17443 |
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; |
| 17444 |
fi' |
| 17445 |
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ |
| 17446 |
dlpath=$dir/\$dldll~ |
| 17447 |
$RM \$dlpath' |
| 17448 |
;; |
| 17449 |
|
| 17450 |
osf3* | osf4* | osf5*) |
| 17451 |
version_type=osf |
| 17452 |
need_lib_prefix=no |
| 17453 |
need_version=no |
| 17454 |
soname_spec='$libname$release$shared_ext$major' |
| 17455 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17456 |
shlibpath_var=LD_LIBRARY_PATH |
| 17457 |
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
| 17458 |
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
| 17459 |
;; |
| 17460 |
|
| 17461 |
rdos*) |
| 17462 |
dynamic_linker=no |
| 17463 |
;; |
| 17464 |
|
| 17465 |
serenity*) |
| 17466 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17467 |
need_lib_prefix=no |
| 17468 |
need_version=no |
| 17469 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17470 |
soname_spec='$libname$release$shared_ext$major' |
| 17471 |
shlibpath_var=LD_LIBRARY_PATH |
| 17472 |
shlibpath_overrides_runpath=no |
| 17473 |
dynamic_linker='SerenityOS LibELF' |
| 17474 |
;; |
| 17475 |
|
| 17476 |
solaris*) |
| 17477 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17478 |
need_lib_prefix=no |
| 17479 |
need_version=no |
| 17480 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17481 |
soname_spec='$libname$release$shared_ext$major' |
| 17482 |
shlibpath_var=LD_LIBRARY_PATH |
| 17483 |
shlibpath_overrides_runpath=yes |
| 17484 |
hardcode_into_libs=yes |
| 17485 |
# ldd complains unless libraries are executable |
| 17486 |
postinstall_cmds='chmod +x $lib' |
| 17487 |
;; |
| 17488 |
|
| 17489 |
sunos4*) |
| 17490 |
version_type=sunos |
| 17491 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' |
| 17492 |
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
| 17493 |
shlibpath_var=LD_LIBRARY_PATH |
| 17494 |
shlibpath_overrides_runpath=yes |
| 17495 |
if test yes = "$with_gnu_ld"; then |
| 17496 |
need_lib_prefix=no |
| 17497 |
fi |
| 17498 |
need_version=yes |
| 17499 |
;; |
| 17500 |
|
| 17501 |
sysv4 | sysv4.3*) |
| 17502 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17503 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17504 |
soname_spec='$libname$release$shared_ext$major' |
| 17505 |
shlibpath_var=LD_LIBRARY_PATH |
| 17506 |
case $host_vendor in |
| 17507 |
sni) |
| 17508 |
shlibpath_overrides_runpath=no |
| 17509 |
need_lib_prefix=no |
| 17510 |
runpath_var=LD_RUN_PATH |
| 17511 |
;; |
| 17512 |
siemens) |
| 17513 |
need_lib_prefix=no |
| 17514 |
;; |
| 17515 |
motorola) |
| 17516 |
need_lib_prefix=no |
| 17517 |
need_version=no |
| 17518 |
shlibpath_overrides_runpath=no |
| 17519 |
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
| 17520 |
;; |
| 17521 |
esac |
| 17522 |
;; |
| 17523 |
|
| 17524 |
sysv4*MP*) |
| 17525 |
if test -d /usr/nec; then |
| 17526 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17527 |
library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' |
| 17528 |
soname_spec='$libname$shared_ext.$major' |
| 17529 |
shlibpath_var=LD_LIBRARY_PATH |
| 17530 |
fi |
| 17531 |
;; |
| 17532 |
|
| 17533 |
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
| 17534 |
version_type=sco |
| 17535 |
need_lib_prefix=no |
| 17536 |
need_version=no |
| 17537 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' |
| 17538 |
soname_spec='$libname$release$shared_ext$major' |
| 17539 |
shlibpath_var=LD_LIBRARY_PATH |
| 17540 |
shlibpath_overrides_runpath=yes |
| 17541 |
hardcode_into_libs=yes |
| 17542 |
if test yes = "$with_gnu_ld"; then |
| 17543 |
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
| 17544 |
else |
| 17545 |
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
| 17546 |
case $host_os in |
| 17547 |
sco3.2v5*) |
| 17548 |
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
| 17549 |
;; |
| 17550 |
esac |
| 17551 |
fi |
| 17552 |
sys_lib_dlsearch_path_spec='/usr/lib' |
| 17553 |
;; |
| 17554 |
|
| 17555 |
tpf*) |
| 17556 |
# TPF is a cross-target only. Preferred cross-host = GNU/Linux. |
| 17557 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17558 |
need_lib_prefix=no |
| 17559 |
need_version=no |
| 17560 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17561 |
shlibpath_var=LD_LIBRARY_PATH |
| 17562 |
shlibpath_overrides_runpath=no |
| 17563 |
hardcode_into_libs=yes |
| 17564 |
;; |
| 17565 |
|
| 17566 |
uts4*) |
| 17567 |
version_type=linux # correct to gnu/linux during the next big refactor |
| 17568 |
library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' |
| 17569 |
soname_spec='$libname$release$shared_ext$major' |
| 17570 |
shlibpath_var=LD_LIBRARY_PATH |
| 17571 |
;; |
| 17572 |
|
| 17573 |
emscripten*) |
| 17574 |
version_type=none |
| 17575 |
need_lib_prefix=no |
| 17576 |
need_version=no |
| 17577 |
library_names_spec='$libname$release$shared_ext' |
| 17578 |
soname_spec='$libname$release$shared_ext' |
| 17579 |
finish_cmds= |
| 17580 |
dynamic_linker="Emscripten linker" |
| 17581 |
lt_prog_compiler_wl= |
| 17582 |
lt_prog_compiler_pic= |
| 17583 |
lt_prog_compiler_static= |
| 17584 |
|
| 17585 |
|
| 17586 |
if test yes = "$GCC"; then |
| 17587 |
lt_prog_compiler_wl='-Wl,' |
| 17588 |
lt_prog_compiler_static='-static' |
| 17589 |
|
| 17590 |
case $host_os in |
| 17591 |
aix*) |
| 17592 |
# All AIX code is PIC. |
| 17593 |
if test ia64 = "$host_cpu"; then |
| 17594 |
# AIX 5 now supports IA64 processor |
| 17595 |
lt_prog_compiler_static='-Bstatic' |
| 17596 |
fi |
| 17597 |
lt_prog_compiler_pic='-fPIC' |
| 17598 |
;; |
| 17599 |
|
| 17600 |
amigaos*) |
| 17601 |
case $host_cpu in |
| 17602 |
powerpc) |
| 17603 |
# see comment about AmigaOS4 .so support |
| 17604 |
lt_prog_compiler_pic='-fPIC' |
| 17605 |
;; |
| 17606 |
m68k) |
| 17607 |
# FIXME: we need at least 68020 code to build shared libraries, but |
| 17608 |
# adding the '-m68020' flag to GCC prevents building anything better, |
| 17609 |
# like '-m68040'. |
| 17610 |
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
| 17611 |
;; |
| 17612 |
esac |
| 17613 |
;; |
| 17614 |
|
| 17615 |
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
| 17616 |
# PIC is the default for these OSes. |
| 17617 |
;; |
| 17618 |
|
| 17619 |
mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 17620 |
# This hack is so that the source file can tell whether it is being |
| 17621 |
# built for inclusion in a dll (and should export symbols for example). |
| 17622 |
# Although the cygwin gcc ignores -fPIC, still need this for old-style |
| 17623 |
# (--disable-auto-import) libraries |
| 17624 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 17625 |
case $host_os in |
| 17626 |
os2*) |
| 17627 |
lt_prog_compiler_static='$wl-static' |
| 17628 |
;; |
| 17629 |
esac |
| 17630 |
;; |
| 17631 |
|
| 17632 |
darwin* | rhapsody*) |
| 17633 |
# PIC is the default on this platform |
| 17634 |
# Common symbols not allowed in MH_DYLIB files |
| 17635 |
lt_prog_compiler_pic='-fno-common' |
| 17636 |
;; |
| 17637 |
|
| 17638 |
haiku*) |
| 17639 |
# PIC is the default for Haiku. |
| 17640 |
# The "-static" flag exists, but is broken. |
| 17641 |
lt_prog_compiler_static= |
| 17642 |
;; |
| 17643 |
|
| 17644 |
hpux*) |
| 17645 |
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
| 17646 |
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag |
| 17647 |
# sets the default TLS model and affects inlining. |
| 17648 |
case $host_cpu in |
| 17649 |
hppa*64*) |
| 17650 |
# +Z the default |
| 17651 |
;; |
| 17652 |
*) |
| 17653 |
lt_prog_compiler_pic='-fPIC' |
| 17654 |
;; |
| 17655 |
esac |
| 17656 |
;; |
| 17657 |
|
| 17658 |
interix[3-9]*) |
| 17659 |
# Interix 3.x gcc -fpic/-fPIC options generate broken code. |
| 17660 |
# Instead, we relocate shared libraries at runtime. |
| 17661 |
;; |
| 17662 |
|
| 17663 |
msdosdjgpp*) |
| 17664 |
# Just because we use GCC doesn't mean we suddenly get shared libraries |
| 17665 |
# on systems that don't support them. |
| 17666 |
lt_prog_compiler_can_build_shared=no |
| 17667 |
enable_shared=no |
| 17668 |
;; |
| 17669 |
|
| 17670 |
*nto* | *qnx*) |
| 17671 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 17672 |
# it will coredump. |
| 17673 |
lt_prog_compiler_pic='-fPIC -shared' |
| 17674 |
;; |
| 17675 |
|
| 17676 |
sysv4*MP*) |
| 17677 |
if test -d /usr/nec; then |
| 17678 |
lt_prog_compiler_pic=-Kconform_pic |
| 17679 |
fi |
| 17680 |
;; |
| 17681 |
|
| 17682 |
*) |
| 17683 |
lt_prog_compiler_pic='-fPIC' |
| 17684 |
;; |
| 17685 |
esac |
| 17686 |
|
| 17687 |
case $cc_basename in |
| 17688 |
nvcc*) # Cuda Compiler Driver 2.2 |
| 17689 |
lt_prog_compiler_wl='-Xlinker ' |
| 17690 |
if test -n "$lt_prog_compiler_pic"; then |
| 17691 |
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" |
| 17692 |
fi |
| 17693 |
;; |
| 17694 |
esac |
| 17695 |
else |
| 17696 |
# PORTME Check for flag to pass linker flags through the system compiler. |
| 17697 |
case $host_os in |
| 17698 |
aix*) |
| 17699 |
lt_prog_compiler_wl='-Wl,' |
| 17700 |
if test ia64 = "$host_cpu"; then |
| 17701 |
# AIX 5 now supports IA64 processor |
| 17702 |
lt_prog_compiler_static='-Bstatic' |
| 17703 |
else |
| 17704 |
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
| 17705 |
fi |
| 17706 |
;; |
| 17707 |
|
| 17708 |
darwin* | rhapsody*) |
| 17709 |
# PIC is the default on this platform |
| 17710 |
# Common symbols not allowed in MH_DYLIB files |
| 17711 |
lt_prog_compiler_pic='-fno-common' |
| 17712 |
case $cc_basename in |
| 17713 |
nagfor*) |
| 17714 |
# NAG Fortran compiler |
| 17715 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 17716 |
lt_prog_compiler_pic='-PIC' |
| 17717 |
lt_prog_compiler_static='-Bstatic' |
| 17718 |
;; |
| 17719 |
esac |
| 17720 |
;; |
| 17721 |
|
| 17722 |
mingw* | windows* | cygwin* | pw32* | os2* | cegcc*) |
| 17723 |
# This hack is so that the source file can tell whether it is being |
| 17724 |
# built for inclusion in a dll (and should export symbols for example). |
| 17725 |
lt_prog_compiler_pic='-DDLL_EXPORT' |
| 17726 |
case $host_os in |
| 17727 |
os2*) |
| 17728 |
lt_prog_compiler_static='$wl-static' |
| 17729 |
;; |
| 17730 |
esac |
| 17731 |
;; |
| 17732 |
|
| 17733 |
hpux9* | hpux10* | hpux11*) |
| 17734 |
lt_prog_compiler_wl='-Wl,' |
| 17735 |
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
| 17736 |
# not for PA HP-UX. |
| 17737 |
case $host_cpu in |
| 17738 |
hppa*64*|ia64*) |
| 17739 |
# +Z the default |
| 17740 |
;; |
| 17741 |
*) |
| 17742 |
lt_prog_compiler_pic='+Z' |
| 17743 |
;; |
| 17744 |
esac |
| 17745 |
# Is there a better lt_prog_compiler_static that works with the bundled CC? |
| 17746 |
lt_prog_compiler_static='$wl-a ${wl}archive' |
| 17747 |
;; |
| 17748 |
|
| 17749 |
irix5* | irix6* | nonstopux*) |
| 17750 |
lt_prog_compiler_wl='-Wl,' |
| 17751 |
# PIC (with -KPIC) is the default. |
| 17752 |
lt_prog_compiler_static='-non_shared' |
| 17753 |
;; |
| 17754 |
|
| 17755 |
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
| 17756 |
case $cc_basename in |
| 17757 |
# old Intel for x86_64, which still supported -KPIC. |
| 17758 |
ecc*) |
| 17759 |
lt_prog_compiler_wl='-Wl,' |
| 17760 |
lt_prog_compiler_pic='-KPIC' |
| 17761 |
lt_prog_compiler_static='-static' |
| 17762 |
;; |
| 17763 |
*flang* | ftn | f18* | f95*) |
| 17764 |
# Flang compiler. |
| 17765 |
lt_prog_compiler_wl='-Wl,' |
| 17766 |
lt_prog_compiler_pic='-fPIC' |
| 17767 |
lt_prog_compiler_static='-static' |
| 17768 |
;; |
| 17769 |
# flang / f18. f95 an alias for gfortran or flang on Debian |
| 17770 |
flang* | f18* | f95*) |
| 17771 |
lt_prog_compiler_wl='-Wl,' |
| 17772 |
lt_prog_compiler_pic='-fPIC' |
| 17773 |
lt_prog_compiler_static='-static' |
| 17774 |
;; |
| 17775 |
# icc used to be incompatible with GCC. |
| 17776 |
# ICC 10 doesn't accept -KPIC any more. |
| 17777 |
icc* | ifort*) |
| 17778 |
lt_prog_compiler_wl='-Wl,' |
| 17779 |
lt_prog_compiler_pic='-fPIC' |
| 17780 |
lt_prog_compiler_static='-static' |
| 17781 |
;; |
| 17782 |
# Lahey Fortran 8.1. |
| 17783 |
lf95*) |
| 17784 |
lt_prog_compiler_wl='-Wl,' |
| 17785 |
lt_prog_compiler_pic='--shared' |
| 17786 |
lt_prog_compiler_static='--static' |
| 17787 |
;; |
| 17788 |
nagfor*) |
| 17789 |
# NAG Fortran compiler |
| 17790 |
lt_prog_compiler_wl='-Wl,-Wl,,' |
| 17791 |
lt_prog_compiler_pic='-PIC' |
| 17792 |
lt_prog_compiler_static='-Bstatic' |
| 17793 |
;; |
| 17794 |
tcc*) |
| 17795 |
# Fabrice Bellard et al's Tiny C Compiler |
| 17796 |
lt_prog_compiler_wl='-Wl,' |
| 17797 |
lt_prog_compiler_pic='-fPIC' |
| 17798 |
lt_prog_compiler_static='-static' |
| 17799 |
;; |
| 17800 |
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
| 17801 |
# Portland Group compilers (*not* the Pentium gcc compiler, |
| 17802 |
# which looks to be a dead project) |
| 17803 |
lt_prog_compiler_wl='-Wl,' |
| 17804 |
lt_prog_compiler_pic='-fpic' |
| 17805 |
lt_prog_compiler_static='-Bstatic' |
| 17806 |
;; |
| 17807 |
ccc*) |
| 17808 |
lt_prog_compiler_wl='-Wl,' |
| 17809 |
# All Alpha code is PIC. |
| 17810 |
lt_prog_compiler_static='-non_shared' |
| 17811 |
;; |
| 17812 |
xl* | bgxl* | bgf* | mpixl*) |
| 17813 |
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene |
| 17814 |
lt_prog_compiler_wl='-Wl,' |
| 17815 |
lt_prog_compiler_pic='-qpic' |
| 17816 |
lt_prog_compiler_static='-qstaticlink' |
| 17817 |
;; |
| 17818 |
*) |
| 17819 |
case `$CC -V 2>&1 | $SED 5q` in |
| 17820 |
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) |
| 17821 |
# Sun Fortran 8.3 passes all unrecognized flags to the linker |
| 17822 |
lt_prog_compiler_pic='-KPIC' |
| 17823 |
lt_prog_compiler_static='-Bstatic' |
| 17824 |
lt_prog_compiler_wl='' |
| 17825 |
;; |
| 17826 |
*Sun\ F* | *Sun*Fortran*) |
| 17827 |
lt_prog_compiler_pic='-KPIC' |
| 17828 |
lt_prog_compiler_static='-Bstatic' |
| 17829 |
lt_prog_compiler_wl='-Qoption ld ' |
| 17830 |
;; |
| 17831 |
*Sun\ C*) |
| 17832 |
# Sun C 5.9 |
| 17833 |
lt_prog_compiler_pic='-KPIC' |
| 17834 |
lt_prog_compiler_static='-Bstatic' |
| 17835 |
lt_prog_compiler_wl='-Wl,' |
| 17836 |
;; |
| 17837 |
*Intel*\ [CF]*Compiler*) |
| 17838 |
lt_prog_compiler_wl='-Wl,' |
| 17839 |
lt_prog_compiler_pic='-fPIC' |
| 17840 |
lt_prog_compiler_static='-static' |
| 17841 |
;; |
| 17842 |
*Portland\ Group*) |
| 17843 |
lt_prog_compiler_wl='-Wl,' |
| 17844 |
lt_prog_compiler_pic='-fpic' |
| 17845 |
lt_prog_compiler_static='-Bstatic' |
| 17846 |
;; |
| 17847 |
esac |
| 17848 |
;; |
| 17849 |
esac |
| 17850 |
;; |
| 17851 |
|
| 17852 |
newsos6) |
| 17853 |
lt_prog_compiler_pic='-KPIC' |
| 17854 |
lt_prog_compiler_static='-Bstatic' |
| 17855 |
;; |
| 17856 |
|
| 17857 |
*-mlibc) |
| 17858 |
lt_prog_compiler_wl='-Wl,' |
| 17859 |
lt_prog_compiler_pic='-fPIC' |
| 17860 |
lt_prog_compiler_static='-static' |
| 17861 |
;; |
| 17862 |
|
| 17863 |
*nto* | *qnx*) |
| 17864 |
# QNX uses GNU C++, but need to define -shared option too, otherwise |
| 17865 |
# it will coredump. |
| 17866 |
lt_prog_compiler_pic='-fPIC -shared' |
| 17867 |
;; |
| 17868 |
|
| 17869 |
osf3* | osf4* | osf5*) |
| 17870 |
lt_prog_compiler_wl='-Wl,' |
| 17871 |
# All OSF/1 code is PIC. |
| 17872 |
lt_prog_compiler_static='-non_shared' |
| 17873 |
;; |
| 17874 |
|
| 17875 |
rdos*) |
| 17876 |
lt_prog_compiler_static='-non_shared' |
| 17877 |
;; |
| 17878 |
|
| 17879 |
serenity*) |
| 17880 |
;; |
| 17881 |
|
| 17882 |
solaris*) |
| 17883 |
lt_prog_compiler_pic='-KPIC' |
| 17884 |
lt_prog_compiler_static='-Bstatic' |
| 17885 |
case $cc_basename in |
| 17886 |
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) |
| 17887 |
lt_prog_compiler_wl='-Qoption ld ';; |
| 17888 |
*) |
| 17889 |
lt_prog_compiler_wl='-Wl,';; |
| 17890 |
esac |
| 17891 |
;; |
| 17892 |
|
| 17893 |
sunos4*) |
| 17894 |
lt_prog_compiler_wl='-Qoption ld ' |
| 17895 |
lt_prog_compiler_pic='-PIC' |
| 17896 |
lt_prog_compiler_static='-Bstatic' |
| 17897 |
;; |
| 17898 |
|
| 17899 |
sysv4 | sysv4.2uw2* | sysv4.3*) |
| 17900 |
lt_prog_compiler_wl='-Wl,' |
| 17901 |
lt_prog_compiler_pic='-KPIC' |
| 17902 |
lt_prog_compiler_static='-Bstatic' |
| 17903 |
;; |
| 17904 |
|
| 17905 |
sysv4*MP*) |
| 17906 |
if test -d /usr/nec; then |
| 17907 |
lt_prog_compiler_pic='-Kconform_pic' |
| 17908 |
lt_prog_compiler_static='-Bstatic' |
| 17909 |
fi |
| 17910 |
;; |
| 17911 |
|
| 17912 |
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
| 17913 |
lt_prog_compiler_wl='-Wl,' |
| 17914 |
lt_prog_compiler_pic='-KPIC' |
| 17915 |
lt_prog_compiler_static='-Bstatic' |
| 17916 |
;; |
| 17917 |
|
| 17918 |
unicos*) |
| 17919 |
lt_prog_compiler_wl='-Wl,' |
| 17920 |
lt_prog_compiler_can_build_shared=no |
| 17921 |
;; |
| 17922 |
|
| 17923 |
uts4*) |
| 17924 |
lt_prog_compiler_pic='-pic' |
| 17925 |
lt_prog_compiler_static='-Bstatic' |
| 17926 |
;; |
| 17927 |
|
| 17928 |
*) |
| 17929 |
lt_prog_compiler_can_build_shared=no |
| 17930 |
;; |
| 17931 |
esac |
| 17932 |
fi |
| 17933 |
|
| 17934 |
case $host_os in |
| 17935 |
# For platforms that do not support PIC, -DPIC is meaningless: |
| 17936 |
*djgpp*) |
| 17937 |
lt_prog_compiler_pic= |
| 17938 |
;; |
| 17939 |
*) |
| 17940 |
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
| 17941 |
;; |
| 17942 |
esac |
| 17943 |
|
| 17944 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
| 17945 |
printf %s "checking for $compiler option to produce PIC... " >&6; } |
| 17946 |
if test ${lt_cv_prog_compiler_pic+y} |
| 17947 |
then : |
| 17948 |
printf %s "(cached) " >&6 |
| 17949 |
else case e in #( |
| 17950 |
e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; |
| 17951 |
esac |
| 17952 |
fi |
| 17953 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 |
| 17954 |
printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } |
| 17955 |
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic |
| 17956 |
|
| 17957 |
# |
| 17958 |
# Check to make sure the PIC flag actually works. |
| 17959 |
# |
| 17960 |
if test -n "$lt_prog_compiler_pic"; then |
| 17961 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
| 17962 |
printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
| 17963 |
if test ${lt_cv_prog_compiler_pic_works+y} |
| 17964 |
then : |
| 17965 |
printf %s "(cached) " >&6 |
| 17966 |
else case e in #( |
| 17967 |
e) lt_cv_prog_compiler_pic_works=no |
| 17968 |
ac_outfile=conftest.$ac_objext |
| 17969 |
echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
| 17970 |
lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment |
| 17971 |
# Insert the option either (1) after the last *FLAGS variable, or |
| 17972 |
# (2) before a word containing "conftest.", or (3) at the end. |
| 17973 |
# Note that $ac_compile itself does not contain backslashes and begins |
| 17974 |
# with a dollar sign (not a hyphen), so the echo should work correctly. |
| 17975 |
# The option is referenced via a variable to avoid confusing sed. |
| 17976 |
lt_compile=`echo "$ac_compile" | $SED \ |
| 17977 |
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
| 17978 |
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
| 17979 |
-e 's:$: $lt_compiler_flag:'` |
| 17980 |
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
| 17981 |
(eval "$lt_compile" 2>conftest.err) |
| 17982 |
ac_status=$? |
| 17983 |
cat conftest.err >&5 |
| 17984 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 17985 |
if (exit $ac_status) && test -s "$ac_outfile"; then |
| 17986 |
# The compiler can only warn and ignore the option if not recognized |
| 17987 |
# So say no if there are warnings other than the usual output. |
| 17988 |
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
| 17989 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 17990 |
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
| 17991 |
lt_cv_prog_compiler_pic_works=yes |
| 17992 |
fi |
| 17993 |
fi |
| 17994 |
$RM conftest* |
| 17995 |
;; |
| 17996 |
esac |
| 17997 |
fi |
| 17998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
| 17999 |
printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } |
| 18000 |
|
| 18001 |
if test yes = "$lt_cv_prog_compiler_pic_works"; then |
| 18002 |
case $lt_prog_compiler_pic in |
| 18003 |
"" | " "*) ;; |
| 18004 |
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
| 18005 |
esac |
| 18006 |
else |
| 18007 |
lt_prog_compiler_pic= |
| 18008 |
lt_prog_compiler_can_build_shared=no |
| 18009 |
fi |
| 18010 |
|
| 18011 |
fi |
| 18012 |
|
| 18013 |
|
| 18014 |
|
| 18015 |
|
| 18016 |
|
| 18017 |
# |
| 18018 |
# Check to make sure the static flag actually works. |
| 18019 |
# |
| 18020 |
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
| 18021 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
| 18022 |
printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
| 18023 |
if test ${lt_cv_prog_compiler_static_works+y} |
| 18024 |
then : |
| 18025 |
printf %s "(cached) " >&6 |
| 18026 |
else case e in #( |
| 18027 |
e) lt_cv_prog_compiler_static_works=no |
| 18028 |
save_LDFLAGS=$LDFLAGS |
| 18029 |
LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
| 18030 |
echo "$lt_simple_link_test_code" > conftest.$ac_ext |
| 18031 |
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
| 18032 |
# The linker can only warn and ignore the option if not recognized |
| 18033 |
# So say no if there are warnings |
| 18034 |
if test -s conftest.err; then |
| 18035 |
# Append any errors to the config.log. |
| 18036 |
cat conftest.err 1>&5 |
| 18037 |
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
| 18038 |
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
| 18039 |
if diff conftest.exp conftest.er2 >/dev/null; then |
| 18040 |
lt_cv_prog_compiler_static_works=yes |
| 18041 |
fi |
| 18042 |
else |
| 18043 |
lt_cv_prog_compiler_static_works=yes |
| 18044 |
fi |
| 18045 |
fi |
| 18046 |
$RM -r conftest* |
| 18047 |
LDFLAGS=$save_LDFLAGS |
| 18048 |
;; |
| 18049 |
esac |
| 18050 |
fi |
| 18051 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
| 18052 |
printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } |
| 18053 |
|
| 18054 |
if test yes = "$lt_cv_prog_compiler_static_works"; then |
| 18055 |
: |
| 18056 |
else |
| 18057 |
lt_prog_compiler_static= |
| 18058 |
fi |
| 18059 |
|
| 18060 |
|
| 18061 |
|
| 18062 |
='-fPIC' |
| 18063 |
archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib' |
| 18064 |
archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym' |
| 18065 |
archive_cmds_need_lc=no |
| 18066 |
no_undefined_flag= |
| 18067 |
;; |
| 18068 |
|
| 18069 |
*) |
| 18070 |
dynamic_linker=no |
| 18071 |
;; |
| 18072 |
esac |
| 18073 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
| 18074 |
printf "%s\n" "$dynamic_linker" >&6; } |
| 18075 |
test no = "$dynamic_linker" && can_build_shared=no |
| 18076 |
|
| 18077 |
variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
| 18078 |
if test yes = "$GCC"; then |
| 18079 |
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
| 18080 |
fi |
| 18081 |
|
| 18082 |
if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then |
| 18083 |
sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec |
| 18084 |
fi |
| 18085 |
|
| 18086 |
if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then |
| 18087 |
sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec |
| 18088 |
fi |
| 18089 |
|
| 18090 |
# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... |
| 18091 |
configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec |
| 18092 |
|
| 18093 |
# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code |
| 18094 |
func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" |
| 18095 |
|
| 18096 |
# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool |
| 18097 |
configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH |
| 18098 |
|
| 18099 |
|
| 18100 |
|
| 18101 |
|
| 18102 |
|
| 18103 |
|
| 18104 |
|
| 18105 |
|
| 18106 |
|
| 18107 |
|
| 18108 |
|
| 18109 |
|
| 18110 |
|
| 18111 |
|
| 18112 |
|
| 18113 |
|
| 18114 |
|
| 18115 |
|
| 18116 |
|
| 18117 |
|
| 18118 |
|
| 18119 |
|
| 18120 |
|
| 18121 |
|
| 18122 |
|
| 18123 |
|
| 18124 |
|
| 18125 |
|
| 18126 |
|
| 18127 |
|
| 18128 |
|
| 18129 |
|
| 18130 |
|
| 18131 |
|
| 18132 |
|
| 18133 |
|
| 18134 |
|
| 18135 |
|
| 18136 |
|
| 18137 |
|
| 18138 |
|
| 18139 |
|
| 18140 |
|
| 18141 |
|
| 18142 |
|
| 18143 |
|
| 18144 |
|
| 18145 |
|
| 18146 |
|
| 18147 |
|
| 18148 |
|
| 18149 |
|
| 18150 |
|
| 18151 |
|
| 18152 |
|
| 18153 |
|
| 18154 |
|
| 18155 |
|
| 18156 |
|
| 18157 |
|
| 18158 |
|
| 18159 |
|
| 18160 |
|
| 18161 |
|
| 18162 |
|
| 18163 |
|
| 18164 |
|
| 18165 |
|
| 18166 |
|
| 18167 |
|
| 18168 |
|
| 18169 |
|
| 18170 |
|
| 18171 |
|
| 18172 |
|
| 18173 |
|
| 18174 |
|
| 18175 |
|
| 18176 |
|
| 18177 |
|
| 18178 |
|
| 18179 |
|
| 18180 |
|
| 18181 |
|
| 18182 |
|
| 18183 |
|
| 18184 |
|
| 18185 |
|
| 18186 |
|
| 18187 |
|
| 18188 |
|
| 18189 |
|
| 18190 |
|
| 18191 |
|
| 18192 |
|
| 18193 |
|
| 18194 |
|
| 18195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
| 18196 |
printf %s "checking how to hardcode library paths into programs... " >&6; } |
| 18197 |
hardcode_action= |
| 18198 |
if test -n "$hardcode_libdir_flag_spec" || |
| 18199 |
test -n "$runpath_var" || |
| 18200 |
test yes = "$hardcode_automatic"; then |
| 18201 |
|
| 18202 |
# We can hardcode non-existent directories. |
| 18203 |
if test no != "$hardcode_direct" && |
| 18204 |
# If the only mechanism to avoid hardcoding is shlibpath_var, we |
| 18205 |
# have to relink, otherwise we might link with an installed library |
| 18206 |
# when we should be linking with a yet-to-be-installed one |
| 18207 |
## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && |
| 18208 |
test no != "$hardcode_minus_L"; then |
| 18209 |
# Linking always hardcodes the temporary library directory. |
| 18210 |
hardcode_action=relink |
| 18211 |
else |
| 18212 |
# We can link without hardcoding, and we can hardcode nonexisting dirs. |
| 18213 |
hardcode_action=immediate |
| 18214 |
fi |
| 18215 |
else |
| 18216 |
# We cannot hardcode anything, or else we can only hardcode existing |
| 18217 |
# directories. |
| 18218 |
hardcode_action=unsupported |
| 18219 |
fi |
| 18220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
| 18221 |
printf "%s\n" "$hardcode_action" >&6; } |
| 18222 |
|
| 18223 |
if test relink = "$hardcode_action" || |
| 18224 |
test yes = "$inherit_rpath"; then |
| 18225 |
# Fast installation is not supported |
| 18226 |
enable_fast_install=no |
| 18227 |
elif test yes = "$shlibpath_overrides_runpath" || |
| 18228 |
test no = "$enable_shared"; then |
| 18229 |
# Fast installation is not necessary |
| 18230 |
enable_fast_install=needless |
| 18231 |
fi |
| 18232 |
|
| 18233 |
|
| 18234 |
|
| 18235 |
|
| 18236 |
|
| 18237 |
|
| 18238 |
if test yes != "$enable_dlopen"; then |
| 18239 |
enable_dlopen=unknown |
| 18240 |
enable_dlopen_self=unknown |
| 18241 |
enable_dlopen_self_static=unknown |
| 18242 |
else |
| 18243 |
lt_cv_dlopen=no |
| 18244 |
lt_cv_dlopen_libs= |
| 18245 |
|
| 18246 |
case $host_os in |
| 18247 |
beos*) |
| 18248 |
lt_cv_dlopen=load_add_on |
| 18249 |
lt_cv_dlopen_libs= |
| 18250 |
lt_cv_dlopen_self=yes |
| 18251 |
;; |
| 18252 |
|
| 18253 |
mingw* | windows* | pw32* | cegcc*) |
| 18254 |
lt_cv_dlopen=LoadLibrary |
| 18255 |
lt_cv_dlopen_libs= |
| 18256 |
;; |
| 18257 |
|
| 18258 |
cygwin*) |
| 18259 |
lt_cv_dlopen=dlopen |
| 18260 |
lt_cv_dlopen_libs= |
| 18261 |
;; |
| 18262 |
|
| 18263 |
darwin*) |
| 18264 |
# if libdl is installed we need to link against it |
| 18265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 18266 |
printf %s "checking for dlopen in -ldl... " >&6; } |
| 18267 |
if test ${ac_cv_lib_dl_dlopen+y} |
| 18268 |
then : |
| 18269 |
printf %s "(cached) " >&6 |
| 18270 |
else case e in #( |
| 18271 |
e) ac_check_lib_save_LIBS=$LIBS |
| 18272 |
LIBS="-ldl $LIBS" |
| 18273 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18274 |
/* end confdefs.h. */ |
| 18275 |
|
| 18276 |
/* Override any GCC internal prototype to avoid an error. |
| 18277 |
Use char because int might match the return type of a GCC |
| 18278 |
builtin and then its argument prototype would still apply. |
| 18279 |
The 'extern "C"' is for builds by C++ compilers; |
| 18280 |
although this is not generally supported in C code supporting it here |
| 18281 |
has little cost and some practical benefit (sr 110532). */ |
| 18282 |
#ifdef __cplusplus |
| 18283 |
extern "C" |
| 18284 |
#endif |
| 18285 |
char dlopen (void); |
| 18286 |
int |
| 18287 |
main (void) |
| 18288 |
{ |
| 18289 |
return dlopen (); |
| 18290 |
; |
| 18291 |
return 0; |
| 18292 |
} |
| 18293 |
_ACEOF |
| 18294 |
if ac_fn_c_try_link "$LINENO" |
| 18295 |
then : |
| 18296 |
ac_cv_lib_dl_dlopen=yes |
| 18297 |
else case e in #( |
| 18298 |
e) ac_cv_lib_dl_dlopen=no ;; |
| 18299 |
esac |
| 18300 |
fi |
| 18301 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18302 |
conftest$ac_exeext conftest.$ac_ext |
| 18303 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 18304 |
esac |
| 18305 |
fi |
| 18306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18307 |
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 18308 |
if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 18309 |
then : |
| 18310 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 18311 |
else case e in #( |
| 18312 |
e) |
| 18313 |
lt_cv_dlopen=dyld |
| 18314 |
lt_cv_dlopen_libs= |
| 18315 |
lt_cv_dlopen_self=yes |
| 18316 |
;; |
| 18317 |
esac |
| 18318 |
fi |
| 18319 |
|
| 18320 |
;; |
| 18321 |
|
| 18322 |
tpf*) |
| 18323 |
# Don't try to run any link tests for TPF. We know it's impossible |
| 18324 |
# because TPF is a cross-compiler, and we know how we open DSOs. |
| 18325 |
lt_cv_dlopen=dlopen |
| 18326 |
lt_cv_dlopen_libs= |
| 18327 |
lt_cv_dlopen_self=no |
| 18328 |
;; |
| 18329 |
|
| 18330 |
*) |
| 18331 |
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
| 18332 |
if test "x$ac_cv_func_shl_load" = xyes |
| 18333 |
then : |
| 18334 |
lt_cv_dlopen=shl_load |
| 18335 |
else case e in #( |
| 18336 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
| 18337 |
printf %s "checking for shl_load in -ldld... " >&6; } |
| 18338 |
if test ${ac_cv_lib_dld_shl_load+y} |
| 18339 |
then : |
| 18340 |
printf %s "(cached) " >&6 |
| 18341 |
else case e in #( |
| 18342 |
e) ac_check_lib_save_LIBS=$LIBS |
| 18343 |
LIBS="-ldld $LIBS" |
| 18344 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18345 |
/* end confdefs.h. */ |
| 18346 |
|
| 18347 |
/* Override any GCC internal prototype to avoid an error. |
| 18348 |
Use char because int might match the return type of a GCC |
| 18349 |
builtin and then its argument prototype would still apply. |
| 18350 |
The 'extern "C"' is for builds by C++ compilers; |
| 18351 |
although this is not generally supported in C code supporting it here |
| 18352 |
has little cost and some practical benefit (sr 110532). */ |
| 18353 |
#ifdef __cplusplus |
| 18354 |
extern "C" |
| 18355 |
#endif |
| 18356 |
char shl_load (void); |
| 18357 |
int |
| 18358 |
main (void) |
| 18359 |
{ |
| 18360 |
return shl_load (); |
| 18361 |
; |
| 18362 |
return 0; |
| 18363 |
} |
| 18364 |
_ACEOF |
| 18365 |
if ac_fn_c_try_link "$LINENO" |
| 18366 |
then : |
| 18367 |
ac_cv_lib_dld_shl_load=yes |
| 18368 |
else case e in #( |
| 18369 |
e) ac_cv_lib_dld_shl_load=no ;; |
| 18370 |
esac |
| 18371 |
fi |
| 18372 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18373 |
conftest$ac_exeext conftest.$ac_ext |
| 18374 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 18375 |
esac |
| 18376 |
fi |
| 18377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
| 18378 |
printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } |
| 18379 |
if test "x$ac_cv_lib_dld_shl_load" = xyes |
| 18380 |
then : |
| 18381 |
lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld |
| 18382 |
else case e in #( |
| 18383 |
e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 18384 |
if test "x$ac_cv_func_dlopen" = xyes |
| 18385 |
then : |
| 18386 |
lt_cv_dlopen=dlopen |
| 18387 |
else case e in #( |
| 18388 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 18389 |
printf %s "checking for dlopen in -ldl... " >&6; } |
| 18390 |
if test ${ac_cv_lib_dl_dlopen+y} |
| 18391 |
then : |
| 18392 |
printf %s "(cached) " >&6 |
| 18393 |
else case e in #( |
| 18394 |
e) ac_check_lib_save_LIBS=$LIBS |
| 18395 |
LIBS="-ldl $LIBS" |
| 18396 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18397 |
/* end confdefs.h. */ |
| 18398 |
|
| 18399 |
/* Override any GCC internal prototype to avoid an error. |
| 18400 |
Use char because int might match the return type of a GCC |
| 18401 |
builtin and then its argument prototype would still apply. |
| 18402 |
The 'extern "C"' is for builds by C++ compilers; |
| 18403 |
although this is not generally supported in C code supporting it here |
| 18404 |
has little cost and some practical benefit (sr 110532). */ |
| 18405 |
#ifdef __cplusplus |
| 18406 |
extern "C" |
| 18407 |
#endif |
| 18408 |
char dlopen (void); |
| 18409 |
int |
| 18410 |
main (void) |
| 18411 |
{ |
| 18412 |
return dlopen (); |
| 18413 |
; |
| 18414 |
return 0; |
| 18415 |
} |
| 18416 |
_ACEOF |
| 18417 |
if ac_fn_c_try_link "$LINENO" |
| 18418 |
then : |
| 18419 |
ac_cv_lib_dl_dlopen=yes |
| 18420 |
else case e in #( |
| 18421 |
e) ac_cv_lib_dl_dlopen=no ;; |
| 18422 |
esac |
| 18423 |
fi |
| 18424 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18425 |
conftest$ac_exeext conftest.$ac_ext |
| 18426 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 18427 |
esac |
| 18428 |
fi |
| 18429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 18430 |
printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } |
| 18431 |
if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 18432 |
then : |
| 18433 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl |
| 18434 |
else case e in #( |
| 18435 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
| 18436 |
printf %s "checking for dlopen in -lsvld... " >&6; } |
| 18437 |
if test ${ac_cv_lib_svld_dlopen+y} |
| 18438 |
then : |
| 18439 |
printf %s "(cached) " >&6 |
| 18440 |
else case e in #( |
| 18441 |
e) ac_check_lib_save_LIBS=$LIBS |
| 18442 |
LIBS="-lsvld $LIBS" |
| 18443 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18444 |
/* end confdefs.h. */ |
| 18445 |
|
| 18446 |
/* Override any GCC internal prototype to avoid an error. |
| 18447 |
Use char because int might match the return type of a GCC |
| 18448 |
builtin and then its argument prototype would still apply. |
| 18449 |
The 'extern "C"' is for builds by C++ compilers; |
| 18450 |
although this is not generally supported in C code supporting it here |
| 18451 |
has little cost and some practical benefit (sr 110532). */ |
| 18452 |
#ifdef __cplusplus |
| 18453 |
extern "C" |
| 18454 |
#endif |
| 18455 |
char dlopen (void); |
| 18456 |
int |
| 18457 |
main (void) |
| 18458 |
{ |
| 18459 |
return dlopen (); |
| 18460 |
; |
| 18461 |
return 0; |
| 18462 |
} |
| 18463 |
_ACEOF |
| 18464 |
if ac_fn_c_try_link "$LINENO" |
| 18465 |
then : |
| 18466 |
ac_cv_lib_svld_dlopen=yes |
| 18467 |
else case e in #( |
| 18468 |
e) ac_cv_lib_svld_dlopen=no ;; |
| 18469 |
esac |
| 18470 |
fi |
| 18471 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18472 |
conftest$ac_exeext conftest.$ac_ext |
| 18473 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 18474 |
esac |
| 18475 |
fi |
| 18476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
| 18477 |
printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } |
| 18478 |
if test "x$ac_cv_lib_svld_dlopen" = xyes |
| 18479 |
then : |
| 18480 |
lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld |
| 18481 |
else case e in #( |
| 18482 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
| 18483 |
printf %s "checking for dld_link in -ldld... " >&6; } |
| 18484 |
if test ${ac_cv_lib_dld_dld_link+y} |
| 18485 |
then : |
| 18486 |
printf %s "(cached) " >&6 |
| 18487 |
else case e in #( |
| 18488 |
e) ac_check_lib_save_LIBS=$LIBS |
| 18489 |
LIBS="-ldld $LIBS" |
| 18490 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18491 |
/* end confdefs.h. */ |
| 18492 |
|
| 18493 |
/* Override any GCC internal prototype to avoid an error. |
| 18494 |
Use char because int might match the return type of a GCC |
| 18495 |
builtin and then its argument prototype would still apply. |
| 18496 |
The 'extern "C"' is for builds by C++ compilers; |
| 18497 |
although this is not generally supported in C code supporting it here |
| 18498 |
has little cost and some practical benefit (sr 110532). */ |
| 18499 |
#ifdef __cplusplus |
| 18500 |
extern "C" |
| 18501 |
#endif |
| 18502 |
char dld_link (void); |
| 18503 |
int |
| 18504 |
main (void) |
| 18505 |
{ |
| 18506 |
return dld_link (); |
| 18507 |
; |
| 18508 |
return 0; |
| 18509 |
} |
| 18510 |
_ACEOF |
| 18511 |
if ac_fn_c_try_link "$LINENO" |
| 18512 |
then : |
| 18513 |
ac_cv_lib_dld_dld_link=yes |
| 18514 |
else case e in #( |
| 18515 |
e) ac_cv_lib_dld_dld_link=no ;; |
| 18516 |
esac |
| 18517 |
fi |
| 18518 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 18519 |
conftest$ac_exeext conftest.$ac_ext |
| 18520 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 18521 |
esac |
| 18522 |
fi |
| 18523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
| 18524 |
printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } |
| 18525 |
if test "x$ac_cv_lib_dld_dld_link" = xyes |
| 18526 |
then : |
| 18527 |
lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld |
| 18528 |
fi |
| 18529 |
|
| 18530 |
;; |
| 18531 |
esac |
| 18532 |
fi |
| 18533 |
|
| 18534 |
;; |
| 18535 |
esac |
| 18536 |
fi |
| 18537 |
|
| 18538 |
;; |
| 18539 |
esac |
| 18540 |
fi |
| 18541 |
|
| 18542 |
;; |
| 18543 |
esac |
| 18544 |
fi |
| 18545 |
|
| 18546 |
;; |
| 18547 |
esac |
| 18548 |
fi |
| 18549 |
|
| 18550 |
;; |
| 18551 |
esac |
| 18552 |
|
| 18553 |
if test no = "$lt_cv_dlopen"; then |
| 18554 |
enable_dlopen=no |
| 18555 |
else |
| 18556 |
enable_dlopen=yes |
| 18557 |
fi |
| 18558 |
|
| 18559 |
case $lt_cv_dlopen in |
| 18560 |
dlopen) |
| 18561 |
save_CPPFLAGS=$CPPFLAGS |
| 18562 |
test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
| 18563 |
|
| 18564 |
save_LDFLAGS=$LDFLAGS |
| 18565 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
| 18566 |
|
| 18567 |
save_LIBS=$LIBS |
| 18568 |
LIBS="$lt_cv_dlopen_libs $LIBS" |
| 18569 |
|
| 18570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
| 18571 |
printf %s "checking whether a program can dlopen itself... " >&6; } |
| 18572 |
if test ${lt_cv_dlopen_self+y} |
| 18573 |
then : |
| 18574 |
printf %s "(cached) " >&6 |
| 18575 |
else case e in #( |
| 18576 |
e) if test yes = "$cross_compiling"; then : |
| 18577 |
lt_cv_dlopen_self=cross |
| 18578 |
else |
| 18579 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18580 |
lt_status=$lt_dlunknown |
| 18581 |
cat > conftest.$ac_ext <<_LT_EOF |
| 18582 |
#line $LINENO "configure" |
| 18583 |
#include "confdefs.h" |
| 18584 |
|
| 18585 |
#if HAVE_DLFCN_H |
| 18586 |
#include <dlfcn.h> |
| 18587 |
#endif |
| 18588 |
|
| 18589 |
#include <stdio.h> |
| 18590 |
|
| 18591 |
#ifdef RTLD_GLOBAL |
| 18592 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 18593 |
#else |
| 18594 |
# ifdef DL_GLOBAL |
| 18595 |
# define LT_DLGLOBAL DL_GLOBAL |
| 18596 |
# else |
| 18597 |
# define LT_DLGLOBAL 0 |
| 18598 |
# endif |
| 18599 |
#endif |
| 18600 |
|
| 18601 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18602 |
find out it does not work in some platform. */ |
| 18603 |
#ifndef LT_DLLAZY_OR_NOW |
| 18604 |
# ifdef RTLD_LAZY |
| 18605 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18606 |
# else |
| 18607 |
# ifdef DL_LAZY |
| 18608 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 18609 |
# else |
| 18610 |
# ifdef RTLD_NOW |
| 18611 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18612 |
# else |
| 18613 |
# ifdef DL_NOW |
| 18614 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 18615 |
# else |
| 18616 |
# define LT_DLLAZY_OR_NOW 0 |
| 18617 |
# endif |
| 18618 |
# endif |
| 18619 |
# endif |
| 18620 |
# endif |
| 18621 |
#endif |
| 18622 |
|
| 18623 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 18624 |
correspondingly for the symbols needed. */ |
| 18625 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 18626 |
int fnord (void) __attribute__((visibility("default"))); |
| 18627 |
#endif |
| 18628 |
|
| 18629 |
int fnord (void) { return 42; } |
| 18630 |
int main (void) |
| 18631 |
{ |
| 18632 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18633 |
int status = $lt_dlunknown; |
| 18634 |
|
| 18635 |
if (self) |
| 18636 |
{ |
| 18637 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18638 |
else |
| 18639 |
{ |
| 18640 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18641 |
else puts (dlerror ()); |
| 18642 |
} |
| 18643 |
/* dlclose (self); */ |
| 18644 |
} |
| 18645 |
else |
| 18646 |
puts (dlerror ()); |
| 18647 |
|
| 18648 |
return status; |
| 18649 |
} |
| 18650 |
_LT_EOF |
| 18651 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 18652 |
(eval $ac_link) 2>&5 |
| 18653 |
ac_status=$? |
| 18654 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18655 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 18656 |
(./conftest; exit; ) >&5 2>/dev/null |
| 18657 |
lt_status=$? |
| 18658 |
case x$lt_status in |
| 18659 |
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
| 18660 |
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
| 18661 |
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
| 18662 |
esac |
| 18663 |
else : |
| 18664 |
# compilation failed |
| 18665 |
lt_cv_dlopen_self=no |
| 18666 |
fi |
| 18667 |
fi |
| 18668 |
rm -fr conftest* |
| 18669 |
|
| 18670 |
;; |
| 18671 |
esac |
| 18672 |
fi |
| 18673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
| 18674 |
printf "%s\n" "$lt_cv_dlopen_self" >&6; } |
| 18675 |
|
| 18676 |
if test yes = "$lt_cv_dlopen_self"; then |
| 18677 |
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
| 18678 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
| 18679 |
printf %s "checking whether a statically linked program can dlopen itself... " >&6; } |
| 18680 |
if test ${lt_cv_dlopen_self_static+y} |
| 18681 |
then : |
| 18682 |
printf %s "(cached) " >&6 |
| 18683 |
else case e in #( |
| 18684 |
e) if test yes = "$cross_compiling"; then : |
| 18685 |
lt_cv_dlopen_self_static=cross |
| 18686 |
else |
| 18687 |
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
| 18688 |
lt_status=$lt_dlunknown |
| 18689 |
cat > conftest.$ac_ext <<_LT_EOF |
| 18690 |
#line $LINENO "configure" |
| 18691 |
#include "confdefs.h" |
| 18692 |
|
| 18693 |
#if HAVE_DLFCN_H |
| 18694 |
#include <dlfcn.h> |
| 18695 |
#endif |
| 18696 |
|
| 18697 |
#include <stdio.h> |
| 18698 |
|
| 18699 |
#ifdef RTLD_GLOBAL |
| 18700 |
# define LT_DLGLOBAL RTLD_GLOBAL |
| 18701 |
#else |
| 18702 |
# ifdef DL_GLOBAL |
| 18703 |
# define LT_DLGLOBAL DL_GLOBAL |
| 18704 |
# else |
| 18705 |
# define LT_DLGLOBAL 0 |
| 18706 |
# endif |
| 18707 |
#endif |
| 18708 |
|
| 18709 |
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
| 18710 |
find out it does not work in some platform. */ |
| 18711 |
#ifndef LT_DLLAZY_OR_NOW |
| 18712 |
# ifdef RTLD_LAZY |
| 18713 |
# define LT_DLLAZY_OR_NOW RTLD_LAZY |
| 18714 |
# else |
| 18715 |
# ifdef DL_LAZY |
| 18716 |
# define LT_DLLAZY_OR_NOW DL_LAZY |
| 18717 |
# else |
| 18718 |
# ifdef RTLD_NOW |
| 18719 |
# define LT_DLLAZY_OR_NOW RTLD_NOW |
| 18720 |
# else |
| 18721 |
# ifdef DL_NOW |
| 18722 |
# define LT_DLLAZY_OR_NOW DL_NOW |
| 18723 |
# else |
| 18724 |
# define LT_DLLAZY_OR_NOW 0 |
| 18725 |
# endif |
| 18726 |
# endif |
| 18727 |
# endif |
| 18728 |
# endif |
| 18729 |
#endif |
| 18730 |
|
| 18731 |
/* When -fvisibility=hidden is used, assume the code has been annotated |
| 18732 |
correspondingly for the symbols needed. */ |
| 18733 |
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
| 18734 |
int fnord (void) __attribute__((visibility("default"))); |
| 18735 |
#endif |
| 18736 |
|
| 18737 |
int fnord (void) { return 42; } |
| 18738 |
int main (void) |
| 18739 |
{ |
| 18740 |
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
| 18741 |
int status = $lt_dlunknown; |
| 18742 |
|
| 18743 |
if (self) |
| 18744 |
{ |
| 18745 |
if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
| 18746 |
else |
| 18747 |
{ |
| 18748 |
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
| 18749 |
else puts (dlerror ()); |
| 18750 |
} |
| 18751 |
/* dlclose (self); */ |
| 18752 |
} |
| 18753 |
else |
| 18754 |
puts (dlerror ()); |
| 18755 |
|
| 18756 |
return status; |
| 18757 |
} |
| 18758 |
_LT_EOF |
| 18759 |
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
| 18760 |
(eval $ac_link) 2>&5 |
| 18761 |
ac_status=$? |
| 18762 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 18763 |
test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then |
| 18764 |
(./conftest; exit; ) >&5 2>/dev/null |
| 18765 |
lt_status=$? |
| 18766 |
case x$lt_status in |
| 18767 |
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18768 |
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
| 18769 |
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
| 18770 |
esac |
| 18771 |
else : |
| 18772 |
# compilation failed |
| 18773 |
lt_cv_dlopen_self_static=no |
| 18774 |
fi |
| 18775 |
fi |
| 18776 |
rm -fr conftest* |
| 18777 |
|
| 18778 |
;; |
| 18779 |
esac |
| 18780 |
fi |
| 18781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
| 18782 |
printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } |
| 18783 |
fi |
| 18784 |
|
| 18785 |
CPPFLAGS=$save_CPPFLAGS |
| 18786 |
LDFLAGS=$save_LDFLAGS |
| 18787 |
LIBS=$save_LIBS |
| 18788 |
;; |
| 18789 |
esac |
| 18790 |
|
| 18791 |
case $lt_cv_dlopen_self in |
| 18792 |
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
| 18793 |
*) enable_dlopen_self=unknown ;; |
| 18794 |
esac |
| 18795 |
|
| 18796 |
case $lt_cv_dlopen_self_static in |
| 18797 |
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
| 18798 |
*) enable_dlopen_self_static=unknown ;; |
| 18799 |
esac |
| 18800 |
fi |
| 18801 |
|
| 18802 |
|
| 18803 |
|
| 18804 |
|
| 18805 |
|
| 18806 |
|
| 18807 |
|
| 18808 |
|
| 18809 |
|
| 18810 |
|
| 18811 |
|
| 18812 |
|
| 18813 |
|
| 18814 |
|
| 18815 |
|
| 18816 |
|
| 18817 |
|
| 18818 |
striplib= |
| 18819 |
old_striplib= |
| 18820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
| 18821 |
printf %s "checking whether stripping libraries is possible... " >&6; } |
| 18822 |
if test -z "$STRIP"; then |
| 18823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18824 |
printf "%s\n" "no" >&6; } |
| 18825 |
else |
| 18826 |
if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
| 18827 |
old_striplib="$STRIP --strip-debug" |
| 18828 |
striplib="$STRIP --strip-unneeded" |
| 18829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18830 |
printf "%s\n" "yes" >&6; } |
| 18831 |
else |
| 18832 |
case $host_os in |
| 18833 |
darwin*) |
| 18834 |
# FIXME - insert some real tests, host_os isn't really good enough |
| 18835 |
striplib="$STRIP -x" |
| 18836 |
old_striplib="$STRIP -S" |
| 18837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18838 |
printf "%s\n" "yes" >&6; } |
| 18839 |
;; |
| 18840 |
freebsd*) |
| 18841 |
if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then |
| 18842 |
old_striplib="$STRIP --strip-debug" |
| 18843 |
striplib="$STRIP --strip-unneeded" |
| 18844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 18845 |
printf "%s\n" "yes" >&6; } |
| 18846 |
else |
| 18847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18848 |
printf "%s\n" "no" >&6; } |
| 18849 |
fi |
| 18850 |
;; |
| 18851 |
*) |
| 18852 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18853 |
printf "%s\n" "no" >&6; } |
| 18854 |
;; |
| 18855 |
esac |
| 18856 |
fi |
| 18857 |
fi |
| 18858 |
|
| 18859 |
|
| 18860 |
|
| 18861 |
|
| 18862 |
|
| 18863 |
|
| 18864 |
|
| 18865 |
|
| 18866 |
|
| 18867 |
|
| 18868 |
|
| 18869 |
|
| 18870 |
# Report what library types will actually be built |
| 18871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
| 18872 |
printf %s "checking if libtool supports shared libraries... " >&6; } |
| 18873 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 |
| 18874 |
printf "%s\n" "$can_build_shared" >&6; } |
| 18875 |
|
| 18876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
| 18877 |
printf %s "checking whether to build shared libraries... " >&6; } |
| 18878 |
test no = "$can_build_shared" && enable_shared=no |
| 18879 |
|
| 18880 |
# On AIX, shared libraries and static libraries use the same namespace, and |
| 18881 |
# are all built from PIC. |
| 18882 |
case $host_os in |
| 18883 |
aix3*) |
| 18884 |
test yes = "$enable_shared" && enable_static=no |
| 18885 |
if test -n "$RANLIB"; then |
| 18886 |
archive_cmds="$archive_cmds~\$RANLIB \$lib" |
| 18887 |
postinstall_cmds='$RANLIB $lib' |
| 18888 |
fi |
| 18889 |
;; |
| 18890 |
|
| 18891 |
aix[4-9]*) |
| 18892 |
if test ia64 != "$host_cpu"; then |
| 18893 |
case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in |
| 18894 |
yes,aix,yes) ;; # shared object as lib.so file only |
| 18895 |
yes,svr4,*) ;; # shared object as lib.so archive member only |
| 18896 |
yes,*) enable_static=no ;; # shared object in lib.a archive as well |
| 18897 |
esac |
| 18898 |
fi |
| 18899 |
;; |
| 18900 |
esac |
| 18901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
| 18902 |
printf "%s\n" "$enable_shared" >&6; } |
| 18903 |
|
| 18904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
| 18905 |
printf %s "checking whether to build static libraries... " >&6; } |
| 18906 |
# Make sure either enable_shared or enable_static is yes. |
| 18907 |
test yes = "$enable_shared" || enable_static=yes |
| 18908 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
| 18909 |
printf "%s\n" "$enable_static" >&6; } |
| 18910 |
|
| 18911 |
|
| 18912 |
|
| 18913 |
|
| 18914 |
fi |
| 18915 |
ac_ext=c |
| 18916 |
ac_cpp='$CPP $CPPFLAGS' |
| 18917 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 18918 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 18919 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 18920 |
|
| 18921 |
CC=$lt_save_CC |
| 18922 |
|
| 18923 |
|
| 18924 |
|
| 18925 |
|
| 18926 |
|
| 18927 |
|
| 18928 |
|
| 18929 |
|
| 18930 |
|
| 18931 |
|
| 18932 |
|
| 18933 |
|
| 18934 |
|
| 18935 |
|
| 18936 |
|
| 18937 |
ac_config_commands="$ac_config_commands libtool" |
| 18938 |
|
| 18939 |
|
| 18940 |
|
| 18941 |
|
| 18942 |
# Only expand once: |
| 18943 |
|
| 18944 |
|
| 18945 |
if test -n "$ac_tool_prefix"; then |
| 18946 |
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 18947 |
set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 18948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18949 |
printf %s "checking for $ac_word... " >&6; } |
| 18950 |
if test ${ac_cv_prog_RC+y} |
| 18951 |
then : |
| 18952 |
printf %s "(cached) " >&6 |
| 18953 |
else case e in #( |
| 18954 |
e) if test -n "$RC"; then |
| 18955 |
ac_cv_prog_RC="$RC" # Let the user override the test. |
| 18956 |
else |
| 18957 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 18958 |
for as_dir in $PATH |
| 18959 |
do |
| 18960 |
IFS=$as_save_IFS |
| 18961 |
case $as_dir in #((( |
| 18962 |
'') as_dir=./ ;; |
| 18963 |
*/) ;; |
| 18964 |
*) as_dir=$as_dir/ ;; |
| 18965 |
esac |
| 18966 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 18967 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 18968 |
ac_cv_prog_RC="${ac_tool_prefix}windres" |
| 18969 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 18970 |
break 2 |
| 18971 |
fi |
| 18972 |
done |
| 18973 |
done |
| 18974 |
IFS=$as_save_IFS |
| 18975 |
|
| 18976 |
fi ;; |
| 18977 |
esac |
| 18978 |
fi |
| 18979 |
RC=$ac_cv_prog_RC |
| 18980 |
if test -n "$RC"; then |
| 18981 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 |
| 18982 |
printf "%s\n" "$RC" >&6; } |
| 18983 |
else |
| 18984 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 18985 |
printf "%s\n" "no" >&6; } |
| 18986 |
fi |
| 18987 |
|
| 18988 |
|
| 18989 |
fi |
| 18990 |
if test -z "$ac_cv_prog_RC"; then |
| 18991 |
ac_ct_RC=$RC |
| 18992 |
# Extract the first word of "windres", so it can be a program name with args. |
| 18993 |
set dummy windres; ac_word=$2 |
| 18994 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 18995 |
printf %s "checking for $ac_word... " >&6; } |
| 18996 |
if test ${ac_cv_prog_ac_ct_RC+y} |
| 18997 |
then : |
| 18998 |
printf %s "(cached) " >&6 |
| 18999 |
else case e in #( |
| 19000 |
e) if test -n "$ac_ct_RC"; then |
| 19001 |
ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test. |
| 19002 |
else |
| 19003 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 19004 |
for as_dir in $PATH |
| 19005 |
do |
| 19006 |
IFS=$as_save_IFS |
| 19007 |
case $as_dir in #((( |
| 19008 |
'') as_dir=./ ;; |
| 19009 |
*/) ;; |
| 19010 |
*) as_dir=$as_dir/ ;; |
| 19011 |
esac |
| 19012 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 19013 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 19014 |
ac_cv_prog_ac_ct_RC="windres" |
| 19015 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 19016 |
break 2 |
| 19017 |
fi |
| 19018 |
done |
| 19019 |
done |
| 19020 |
IFS=$as_save_IFS |
| 19021 |
|
| 19022 |
fi ;; |
| 19023 |
esac |
| 19024 |
fi |
| 19025 |
ac_ct_RC=$ac_cv_prog_ac_ct_RC |
| 19026 |
if test -n "$ac_ct_RC"; then |
| 19027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5 |
| 19028 |
printf "%s\n" "$ac_ct_RC" >&6; } |
| 19029 |
else |
| 19030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 19031 |
printf "%s\n" "no" >&6; } |
| 19032 |
fi |
| 19033 |
|
| 19034 |
if test "x$ac_ct_RC" = x; then |
| 19035 |
RC="" |
| 19036 |
else |
| 19037 |
case $cross_compiling:$ac_tool_warned in |
| 19038 |
yes:) |
| 19039 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 19040 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 19041 |
ac_tool_warned=yes ;; |
| 19042 |
esac |
| 19043 |
RC=$ac_ct_RC |
| 19044 |
fi |
| 19045 |
else |
| 19046 |
RC="$ac_cv_prog_RC" |
| 19047 |
fi |
| 19048 |
|
| 19049 |
|
| 19050 |
|
| 19051 |
|
| 19052 |
# Source file extension for RC test sources. |
| 19053 |
ac_ext=rc |
| 19054 |
|
| 19055 |
# Object file extension for compiled RC test sources. |
| 19056 |
objext=o |
| 19057 |
objext_RC=$objext |
| 19058 |
|
| 19059 |
# Code to be used in simple compile tests |
| 19060 |
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
| 19061 |
|
| 19062 |
# Code to be used in simple link tests |
| 19063 |
lt_simple_link_test_code=$lt_simple_compile_test_code |
| 19064 |
|
| 19065 |
# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
| 19066 |
|
| 19067 |
|
| 19068 |
|
| 19069 |
|
| 19070 |
|
| 19071 |
|
| 19072 |
# If no C compiler was specified, use CC. |
| 19073 |
LTCC=${LTCC-"$CC"} |
| 19074 |
|
| 19075 |
# If no C compiler flags were specified, use CFLAGS. |
| 19076 |
LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
| 19077 |
|
| 19078 |
# Allow CC to be a program name with arguments. |
| 19079 |
compiler=$CC |
| 19080 |
|
| 19081 |
|
| 19082 |
# save warnings/boilerplate of simple test code |
| 19083 |
ac_outfile=conftest.$ac_objext |
| 19084 |
echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
| 19085 |
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19086 |
_lt_compiler_boilerplate=`cat conftest.err` |
| 19087 |
$RM conftest* |
| 19088 |
|
| 19089 |
ac_outfile=conftest.$ac_objext |
| 19090 |
echo "$lt_simple_link_test_code" >conftest.$ac_ext |
| 19091 |
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
| 19092 |
_lt_linker_boilerplate=`cat conftest.err` |
| 19093 |
$RM -r conftest* |
| 19094 |
|
| 19095 |
|
| 19096 |
# Allow CC to be a program name with arguments. |
| 19097 |
lt_save_CC=$CC |
| 19098 |
lt_save_CFLAGS=$CFLAGS |
| 19099 |
lt_save_GCC=$GCC |
| 19100 |
GCC= |
| 19101 |
CC=${RC-"windres"} |
| 19102 |
CFLAGS= |
| 19103 |
compiler=$CC |
| 19104 |
compiler_RC=$CC |
| 19105 |
func_cc_basename $compiler |
| 19106 |
cc_basename=$func_cc_basename_result |
| 19107 |
|
| 19108 |
lt_cv_prog_compiler_c_o_RC=yes |
| 19109 |
|
| 19110 |
if test -n "$compiler"; then |
| 19111 |
: |
| 19112 |
|
| 19113 |
|
| 19114 |
|
| 19115 |
fi |
| 19116 |
|
| 19117 |
GCC=$lt_save_GCC |
| 19118 |
ac_ext=c |
| 19119 |
ac_cpp='$CPP $CPPFLAGS' |
| 19120 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 19121 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 19122 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 19123 |
|
| 19124 |
CC=$lt_save_CC |
| 19125 |
CFLAGS=$lt_save_CFLAGS |
| 19126 |
|
| 19127 |
lt_prog_compiler_pic_RC="$lt_prog_compiler_pic_RC -DDLL_EXPORT" # Used only on W32 |
| 19128 |
|
| 19129 |
# Check whether --enable-compact-code was given. |
| 19130 |
if test ${enable_compact_code+y} |
| 19131 |
then : |
| 19132 |
enableval=$enable_compact_code; |
| 19133 |
else case e in #( |
| 19134 |
e) enable_compact_code=auto ;; |
| 19135 |
esac |
| 19136 |
fi |
| 19137 |
|
| 19138 |
if test "x${enable_compact_code}" = "x" |
| 19139 |
then : |
| 19140 |
enable_compact_code="auto" |
| 19141 |
fi |
| 19142 |
|
| 19143 |
|
| 19144 |
{ compact_code_MSG=; unset compact_code_MSG;} |
| 19145 |
case ${enable_compact_code} in #( |
| 19146 |
auto) : |
| 19147 |
|
| 19148 |
# Parameter not set. |
| 19149 |
# Check preprocessor macros |
| 19150 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_SMALL_CODE" "ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" "/* no includes */ |
| 19151 |
|
| 19152 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19153 |
if test "x$ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" = xyes |
| 19154 |
then : |
| 19155 |
|
| 19156 |
enable_compact_code="yes" |
| 19157 |
compact_code_MSG="enabled by preprocessor macro" |
| 19158 |
|
| 19159 |
fi |
| 19160 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_FAST_CODE" "ac_cv_have_decl_MHD_FAVOR_FAST_CODE" "/* no includes */ |
| 19161 |
|
| 19162 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19163 |
if test "x$ac_cv_have_decl_MHD_FAVOR_FAST_CODE" = xyes |
| 19164 |
then : |
| 19165 |
|
| 19166 |
if test "x$enable_compact_code" = x"yes" |
| 19167 |
then : |
| 19168 |
as_fn_error $? "Both MHD_FAVOR_SMALL_CODE and MHD_FAVOR_FAST_CODE macros are defined" "$LINENO" 5 |
| 19169 |
|
| 19170 |
fi |
| 19171 |
enable_compact_code="no" |
| 19172 |
compact_code_MSG="set by preprocessor macro" |
| 19173 |
|
| 19174 |
fi |
| 19175 |
|
| 19176 |
if test "x$enable_compact_code" = x"auto" |
| 19177 |
then : |
| 19178 |
|
| 19179 |
# No preference by preprocessor macros |
| 19180 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler is configured to optimize for size" >&5 |
| 19181 |
printf %s "checking whether compiler is configured to optimize for size... " >&6; } |
| 19182 |
if test ${mhd_cv_cc_optim_size+y} |
| 19183 |
then : |
| 19184 |
printf %s "(cached) " >&6 |
| 19185 |
else case e in #( |
| 19186 |
e) |
| 19187 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19188 |
/* end confdefs.h. */ |
| 19189 |
|
| 19190 |
|
| 19191 |
#ifndef __OPTIMIZE_SIZE__ |
| 19192 |
#error Looks like compiler does not optimize for size |
| 19193 |
choke me now |
| 19194 |
#endif |
| 19195 |
|
| 19196 |
int |
| 19197 |
main (void) |
| 19198 |
{ |
| 19199 |
|
| 19200 |
; |
| 19201 |
return 0; |
| 19202 |
} |
| 19203 |
|
| 19204 |
_ACEOF |
| 19205 |
if ac_fn_c_try_compile "$LINENO" |
| 19206 |
then : |
| 19207 |
mhd_cv_cc_optim_size="yes" |
| 19208 |
else case e in #( |
| 19209 |
e) mhd_cv_cc_optim_size="no" |
| 19210 |
;; |
| 19211 |
esac |
| 19212 |
fi |
| 19213 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19214 |
|
| 19215 |
;; |
| 19216 |
esac |
| 19217 |
fi |
| 19218 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_optim_size" >&5 |
| 19219 |
printf "%s\n" "$mhd_cv_cc_optim_size" >&6; } |
| 19220 |
if test "x$mhd_cv_cc_optim_size" = x"yes" |
| 19221 |
then : |
| 19222 |
|
| 19223 |
enable_compact_code="yes" |
| 19224 |
compact_code_MSG="enabled automatically as compiler optimizes for size" |
| 19225 |
printf "%s\n" "#define MHD_FAVOR_SMALL_CODE 1" >>confdefs.h |
| 19226 |
|
| 19227 |
|
| 19228 |
|
| 19229 |
fi |
| 19230 |
|
| 19231 |
|
| 19232 |
fi |
| 19233 |
|
| 19234 |
if test "x$enable_compact_code" = x"auto" |
| 19235 |
then : |
| 19236 |
|
| 19237 |
# No preference by preprocessor macros and compiler flags |
| 19238 |
case ${enable_build_type} in #( |
| 19239 |
*-compact) : |
| 19240 |
|
| 19241 |
enable_compact_code="yes" |
| 19242 |
compact_code_MSG="enabled by --enable-build-type=${enable_build_type}" |
| 19243 |
printf "%s\n" "#define MHD_FAVOR_SMALL_CODE 1" >>confdefs.h |
| 19244 |
|
| 19245 |
|
| 19246 |
;; #( |
| 19247 |
*) : |
| 19248 |
;; |
| 19249 |
esac |
| 19250 |
|
| 19251 |
|
| 19252 |
fi |
| 19253 |
|
| 19254 |
if test "x$enable_compact_code" = x"auto" |
| 19255 |
then : |
| 19256 |
|
| 19257 |
# No preference |
| 19258 |
enable_compact_code="no" |
| 19259 |
compact_code_MSG="by default" |
| 19260 |
printf "%s\n" "#define MHD_FAVOR_FAST_CODE 1" >>confdefs.h |
| 19261 |
|
| 19262 |
|
| 19263 |
|
| 19264 |
fi |
| 19265 |
;; #( |
| 19266 |
yes) : |
| 19267 |
|
| 19268 |
compact_code_MSG="enabled by configure parameter" |
| 19269 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_SMALL_CODE" "ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" "/* no includes */ |
| 19270 |
|
| 19271 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19272 |
if test "x$ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" = xyes |
| 19273 |
then : |
| 19274 |
|
| 19275 |
else case e in #( |
| 19276 |
e) printf "%s\n" "#define MHD_FAVOR_SMALL_CODE 1" >>confdefs.h |
| 19277 |
;; |
| 19278 |
esac |
| 19279 |
fi |
| 19280 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_FAST_CODE" "ac_cv_have_decl_MHD_FAVOR_FAST_CODE" "/* no includes */ |
| 19281 |
|
| 19282 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19283 |
if test "x$ac_cv_have_decl_MHD_FAVOR_FAST_CODE" = xyes |
| 19284 |
then : |
| 19285 |
as_fn_error $? "MHD_FAVOR_FAST_CODE macro is defined, --enable-compact-code could not be used" "$LINENO" 5 |
| 19286 |
|
| 19287 |
fi |
| 19288 |
;; #( |
| 19289 |
no) : |
| 19290 |
|
| 19291 |
compact_code_MSG="disabled by configure parameter" |
| 19292 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_FAST_CODE" "ac_cv_have_decl_MHD_FAVOR_FAST_CODE" "/* no includes */ |
| 19293 |
|
| 19294 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19295 |
if test "x$ac_cv_have_decl_MHD_FAVOR_FAST_CODE" = xyes |
| 19296 |
then : |
| 19297 |
|
| 19298 |
else case e in #( |
| 19299 |
e) printf "%s\n" "#define MHD_FAVOR_FAST_CODE 1" >>confdefs.h |
| 19300 |
;; |
| 19301 |
esac |
| 19302 |
fi |
| 19303 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_SMALL_CODE" "ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" "/* no includes */ |
| 19304 |
|
| 19305 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 19306 |
if test "x$ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" = xyes |
| 19307 |
then : |
| 19308 |
as_fn_error $? "MHD_FAVOR_SMALL_CODE macro is defined, --disable-compact-code could not be used" "$LINENO" 5 |
| 19309 |
|
| 19310 |
fi |
| 19311 |
;; #( |
| 19312 |
*) : |
| 19313 |
as_fn_error $? "Unknown parameter value: --enable-compact-code=${enable_compact_code}" "$LINENO" 5 |
| 19314 |
;; |
| 19315 |
esac |
| 19316 |
|
| 19317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use a reduced size version of the code" >&5 |
| 19318 |
printf %s "checking whether to use a reduced size version of the code... " >&6; } |
| 19319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_compact_code} (${compact_code_MSG})" >&5 |
| 19320 |
printf "%s\n" "${enable_compact_code} (${compact_code_MSG})" >&6; } |
| 19321 |
|
| 19322 |
|
| 19323 |
CFLAGS="${user_CFLAGS}" |
| 19324 |
# Compiler options to always enable (if supported) |
| 19325 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC flag to warn on unknown -W parameters" >&5 |
| 19326 |
printf %s "checking for $CC flag to warn on unknown -W parameters... " >&6; } |
| 19327 |
if test ${mhd_cv_cc_flag_Wwarn+y} |
| 19328 |
then : |
| 19329 |
printf %s "(cached) " >&6 |
| 19330 |
else case e in #( |
| 19331 |
e) |
| 19332 |
mhd_check_cc_flagwarn_save_c_werror_flag="$ac_c_werror_flag" |
| 19333 |
ac_c_werror_flag=yes |
| 19334 |
mhd_find_cc_Wwarn_save_CFLAGS="$CFLAGS" |
| 19335 |
{ mhd_cv_cc_flag_Wwarn=; unset mhd_cv_cc_flag_Wwarn;} |
| 19336 |
for mhd_cv_cc_flag_Wwarn in '' '-Wunknown-warning-option' '-Werror=unknown-warning-option' ; do |
| 19337 |
if test "x$mhd_cv_cc_flag_Wwarn" = x"unknown" |
| 19338 |
then : |
| 19339 |
break |
| 19340 |
fi |
| 19341 |
# Reuse the same source for all the checks here |
| 19342 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19343 |
/* end confdefs.h. */ |
| 19344 |
|
| 19345 |
int main(void) |
| 19346 |
{ |
| 19347 |
return 0; |
| 19348 |
} |
| 19349 |
|
| 19350 |
_ACEOF |
| 19351 |
CFLAGS="-Wmhd-noexist-flag $mhd_find_cc_Wwarn_save_CFLAGS $mhd_cv_cc_flag_Wwarn" |
| 19352 |
if ac_fn_c_try_link "$LINENO" |
| 19353 |
then : |
| 19354 |
|
| 19355 |
else case e in #( |
| 19356 |
e) # Compile and link failed if test flag and non-existing flag added |
| 19357 |
CFLAGS="$mhd_find_cc_Wwarn_save_CFLAGS $mhd_cv_cc_flag_Wwarn" |
| 19358 |
if ac_fn_c_try_link "$LINENO" |
| 19359 |
then : |
| 19360 |
# Compile and link succeed if only test flag added |
| 19361 |
break |
| 19362 |
|
| 19363 |
|
| 19364 |
fi |
| 19365 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19366 |
conftest$ac_exeext |
| 19367 |
|
| 19368 |
;; |
| 19369 |
esac |
| 19370 |
fi |
| 19371 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19372 |
conftest$ac_exeext |
| 19373 |
done |
| 19374 |
CFLAGS="$mhd_find_cc_Wwarn_save_CFLAGS" |
| 19375 |
if test "x$mhd_cv_cc_flag_Wwarn" = x"unknown" |
| 19376 |
then : |
| 19377 |
|
| 19378 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: No suitable flags detected. Check whether default flags are correct." >&5 |
| 19379 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19380 |
/* end confdefs.h. */ |
| 19381 |
|
| 19382 |
int main(void) |
| 19383 |
{ |
| 19384 |
return 0; |
| 19385 |
} |
| 19386 |
|
| 19387 |
_ACEOF |
| 19388 |
if ac_fn_c_try_link "$LINENO" |
| 19389 |
then : |
| 19390 |
: |
| 19391 |
else case e in #( |
| 19392 |
e) # Compile and link fails (or warns) with default flags |
| 19393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiler warns (of fails) with default flags!" >&5 |
| 19394 |
printf "%s\n" "$as_me: WARNING: Compiler warns (of fails) with default flags!" >&2;} |
| 19395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Check whether compiler and compiler flags are correct." >&5 |
| 19396 |
printf "%s\n" "$as_me: WARNING: Check whether compiler and compiler flags are correct." >&2;} |
| 19397 |
|
| 19398 |
;; |
| 19399 |
esac |
| 19400 |
fi |
| 19401 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19402 |
conftest$ac_exeext conftest.$ac_ext |
| 19403 |
|
| 19404 |
|
| 19405 |
fi |
| 19406 |
CFLAGS="$mhd_find_cc_Wwarn_save_CFLAGS" |
| 19407 |
{ mhd_find_cc_Wwarn_save_CFLAGS=; unset mhd_find_cc_Wwarn_save_CFLAGS;} |
| 19408 |
ac_c_werror_flag="$mhd_check_cc_flagwarn_save_c_werror_flag" |
| 19409 |
{ mhd_check_cc_flagwarn_save_c_werror_flag=; unset mhd_check_cc_flagwarn_save_c_werror_flag;} |
| 19410 |
|
| 19411 |
;; |
| 19412 |
esac |
| 19413 |
fi |
| 19414 |
|
| 19415 |
if test -z "$mhd_cv_cc_flag_Wwarn" |
| 19416 |
then : |
| 19417 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 19418 |
printf "%s\n" "none needed" >&6; } |
| 19419 |
else case e in #( |
| 19420 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_flag_Wwarn" >&5 |
| 19421 |
printf "%s\n" "$mhd_cv_cc_flag_Wwarn" >&6; } ;; |
| 19422 |
esac |
| 19423 |
fi |
| 19424 |
if test "x$mhd_cv_cc_flag_Wwarn" = x"unknown" |
| 19425 |
then : |
| 19426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find compiler flags to warn on unsupported -W options. Final compiler options may be suboptimal." >&5 |
| 19427 |
printf "%s\n" "$as_me: WARNING: Unable to find compiler flags to warn on unsupported -W options. Final compiler options may be suboptimal." >&2;} |
| 19428 |
fi |
| 19429 |
|
| 19430 |
|
| 19431 |
mhd_xFLAGS_params_warn='' |
| 19432 |
|
| 19433 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused-command-line-argument flag" >&5 |
| 19434 |
printf %s "checking whether $CC supports -Wunused-command-line-argument flag... " >&6; } |
| 19435 |
if test ${mhd_cv_cc_cfl_supp__Wunused_command_line_argument+y} |
| 19436 |
then : |
| 19437 |
printf %s "(cached) " >&6 |
| 19438 |
else case e in #( |
| 19439 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19440 |
CFLAGS="-Wunused-command-line-argument $CFLAGS ${mhd_cv_cc_flag_Wwarn}" |
| 19441 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19442 |
ac_c_werror_flag=yes |
| 19443 |
# Reuse the same source for all the checks here |
| 19444 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19445 |
/* end confdefs.h. */ |
| 19446 |
|
| 19447 |
int main(void) |
| 19448 |
{ |
| 19449 |
return 0; |
| 19450 |
} |
| 19451 |
|
| 19452 |
_ACEOF |
| 19453 |
if ac_fn_c_try_link "$LINENO" |
| 19454 |
then : |
| 19455 |
mhd_cv_cc_cfl_supp__Wunused_command_line_argument="yes" |
| 19456 |
else case e in #( |
| 19457 |
e) # Compile and link failed with test flag added |
| 19458 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS} ${mhd_cv_cc_flag_Wwarn}" |
| 19459 |
if ac_fn_c_try_link "$LINENO" |
| 19460 |
then : |
| 19461 |
mhd_cv_cc_cfl_supp__Wunused_command_line_argument="no" |
| 19462 |
else case e in #( |
| 19463 |
e) # Compile and link failed with test flag removed as well |
| 19464 |
CFLAGS="-Wunused-command-line-argument ${mhd_check_cc_flag_save_CFLAGS}" |
| 19465 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19466 |
if ac_fn_c_try_link "$LINENO" |
| 19467 |
then : |
| 19468 |
mhd_cv_cc_cfl_supp__Wunused_command_line_argument="yes" |
| 19469 |
else case e in #( |
| 19470 |
e) mhd_cv_cc_cfl_supp__Wunused_command_line_argument="no" ;; |
| 19471 |
esac |
| 19472 |
fi |
| 19473 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19474 |
conftest$ac_exeext |
| 19475 |
|
| 19476 |
;; |
| 19477 |
esac |
| 19478 |
fi |
| 19479 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19480 |
conftest$ac_exeext |
| 19481 |
|
| 19482 |
;; |
| 19483 |
esac |
| 19484 |
fi |
| 19485 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19486 |
conftest$ac_exeext |
| 19487 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19488 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19489 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19490 |
|
| 19491 |
;; |
| 19492 |
esac |
| 19493 |
fi |
| 19494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wunused_command_line_argument" >&5 |
| 19495 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wunused_command_line_argument" >&6; } |
| 19496 |
if test "x$mhd_cv_cc_cfl_supp__Wunused_command_line_argument" = x"yes" |
| 19497 |
then : |
| 19498 |
|
| 19499 |
if test -z "${mhd_xFLAGS_params_warn}" |
| 19500 |
then : |
| 19501 |
mhd_xFLAGS_params_warn="-Wunused-command-line-argument" |
| 19502 |
else case e in #( |
| 19503 |
e) mhd_xFLAGS_params_warn="${mhd_xFLAGS_params_warn} -Wunused-command-line-argument" ;; |
| 19504 |
esac |
| 19505 |
fi |
| 19506 |
|
| 19507 |
|
| 19508 |
fi |
| 19509 |
|
| 19510 |
|
| 19511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wignored-optimization-argument flag" >&5 |
| 19512 |
printf %s "checking whether $CC supports -Wignored-optimization-argument flag... " >&6; } |
| 19513 |
if test ${mhd_cv_cc_cfl_supp__Wignored_optimization_argument+y} |
| 19514 |
then : |
| 19515 |
printf %s "(cached) " >&6 |
| 19516 |
else case e in #( |
| 19517 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19518 |
CFLAGS="-Wignored-optimization-argument $CFLAGS ${mhd_cv_cc_flag_Wwarn}" |
| 19519 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19520 |
ac_c_werror_flag=yes |
| 19521 |
# Reuse the same source for all the checks here |
| 19522 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19523 |
/* end confdefs.h. */ |
| 19524 |
|
| 19525 |
int main(void) |
| 19526 |
{ |
| 19527 |
return 0; |
| 19528 |
} |
| 19529 |
|
| 19530 |
_ACEOF |
| 19531 |
if ac_fn_c_try_link "$LINENO" |
| 19532 |
then : |
| 19533 |
mhd_cv_cc_cfl_supp__Wignored_optimization_argument="yes" |
| 19534 |
else case e in #( |
| 19535 |
e) # Compile and link failed with test flag added |
| 19536 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS} ${mhd_cv_cc_flag_Wwarn}" |
| 19537 |
if ac_fn_c_try_link "$LINENO" |
| 19538 |
then : |
| 19539 |
mhd_cv_cc_cfl_supp__Wignored_optimization_argument="no" |
| 19540 |
else case e in #( |
| 19541 |
e) # Compile and link failed with test flag removed as well |
| 19542 |
CFLAGS="-Wignored-optimization-argument ${mhd_check_cc_flag_save_CFLAGS}" |
| 19543 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19544 |
if ac_fn_c_try_link "$LINENO" |
| 19545 |
then : |
| 19546 |
mhd_cv_cc_cfl_supp__Wignored_optimization_argument="yes" |
| 19547 |
else case e in #( |
| 19548 |
e) mhd_cv_cc_cfl_supp__Wignored_optimization_argument="no" ;; |
| 19549 |
esac |
| 19550 |
fi |
| 19551 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19552 |
conftest$ac_exeext |
| 19553 |
|
| 19554 |
;; |
| 19555 |
esac |
| 19556 |
fi |
| 19557 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19558 |
conftest$ac_exeext |
| 19559 |
|
| 19560 |
;; |
| 19561 |
esac |
| 19562 |
fi |
| 19563 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19564 |
conftest$ac_exeext |
| 19565 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19566 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19567 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19568 |
|
| 19569 |
;; |
| 19570 |
esac |
| 19571 |
fi |
| 19572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wignored_optimization_argument" >&5 |
| 19573 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wignored_optimization_argument" >&6; } |
| 19574 |
if test "x$mhd_cv_cc_cfl_supp__Wignored_optimization_argument" = x"yes" |
| 19575 |
then : |
| 19576 |
|
| 19577 |
if test -z "${mhd_xFLAGS_params_warn}" |
| 19578 |
then : |
| 19579 |
mhd_xFLAGS_params_warn="-Wignored-optimization-argument" |
| 19580 |
else case e in #( |
| 19581 |
e) mhd_xFLAGS_params_warn="${mhd_xFLAGS_params_warn} -Wignored-optimization-argument" ;; |
| 19582 |
esac |
| 19583 |
fi |
| 19584 |
|
| 19585 |
|
| 19586 |
fi |
| 19587 |
|
| 19588 |
|
| 19589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Winvalid-command-line-argument flag" >&5 |
| 19590 |
printf %s "checking whether $CC supports -Winvalid-command-line-argument flag... " >&6; } |
| 19591 |
if test ${mhd_cv_cc_cfl_supp__Winvalid_command_line_argument+y} |
| 19592 |
then : |
| 19593 |
printf %s "(cached) " >&6 |
| 19594 |
else case e in #( |
| 19595 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19596 |
CFLAGS="-Winvalid-command-line-argument $CFLAGS ${mhd_cv_cc_flag_Wwarn}" |
| 19597 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19598 |
ac_c_werror_flag=yes |
| 19599 |
# Reuse the same source for all the checks here |
| 19600 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19601 |
/* end confdefs.h. */ |
| 19602 |
|
| 19603 |
int main(void) |
| 19604 |
{ |
| 19605 |
return 0; |
| 19606 |
} |
| 19607 |
|
| 19608 |
_ACEOF |
| 19609 |
if ac_fn_c_try_link "$LINENO" |
| 19610 |
then : |
| 19611 |
mhd_cv_cc_cfl_supp__Winvalid_command_line_argument="yes" |
| 19612 |
else case e in #( |
| 19613 |
e) # Compile and link failed with test flag added |
| 19614 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS} ${mhd_cv_cc_flag_Wwarn}" |
| 19615 |
if ac_fn_c_try_link "$LINENO" |
| 19616 |
then : |
| 19617 |
mhd_cv_cc_cfl_supp__Winvalid_command_line_argument="no" |
| 19618 |
else case e in #( |
| 19619 |
e) # Compile and link failed with test flag removed as well |
| 19620 |
CFLAGS="-Winvalid-command-line-argument ${mhd_check_cc_flag_save_CFLAGS}" |
| 19621 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19622 |
if ac_fn_c_try_link "$LINENO" |
| 19623 |
then : |
| 19624 |
mhd_cv_cc_cfl_supp__Winvalid_command_line_argument="yes" |
| 19625 |
else case e in #( |
| 19626 |
e) mhd_cv_cc_cfl_supp__Winvalid_command_line_argument="no" ;; |
| 19627 |
esac |
| 19628 |
fi |
| 19629 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19630 |
conftest$ac_exeext |
| 19631 |
|
| 19632 |
;; |
| 19633 |
esac |
| 19634 |
fi |
| 19635 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19636 |
conftest$ac_exeext |
| 19637 |
|
| 19638 |
;; |
| 19639 |
esac |
| 19640 |
fi |
| 19641 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19642 |
conftest$ac_exeext |
| 19643 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19644 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19645 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19646 |
|
| 19647 |
;; |
| 19648 |
esac |
| 19649 |
fi |
| 19650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Winvalid_command_line_argument" >&5 |
| 19651 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Winvalid_command_line_argument" >&6; } |
| 19652 |
if test "x$mhd_cv_cc_cfl_supp__Winvalid_command_line_argument" = x"yes" |
| 19653 |
then : |
| 19654 |
|
| 19655 |
if test -z "${mhd_xFLAGS_params_warn}" |
| 19656 |
then : |
| 19657 |
mhd_xFLAGS_params_warn="-Winvalid-command-line-argument" |
| 19658 |
else case e in #( |
| 19659 |
e) mhd_xFLAGS_params_warn="${mhd_xFLAGS_params_warn} -Winvalid-command-line-argument" ;; |
| 19660 |
esac |
| 19661 |
fi |
| 19662 |
|
| 19663 |
|
| 19664 |
fi |
| 19665 |
|
| 19666 |
|
| 19667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunknown-argument flag" >&5 |
| 19668 |
printf %s "checking whether $CC supports -Wunknown-argument flag... " >&6; } |
| 19669 |
if test ${mhd_cv_cc_cfl_supp__Wunknown_argument+y} |
| 19670 |
then : |
| 19671 |
printf %s "(cached) " >&6 |
| 19672 |
else case e in #( |
| 19673 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19674 |
CFLAGS="-Wunknown-argument $CFLAGS ${mhd_cv_cc_flag_Wwarn}" |
| 19675 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19676 |
ac_c_werror_flag=yes |
| 19677 |
# Reuse the same source for all the checks here |
| 19678 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19679 |
/* end confdefs.h. */ |
| 19680 |
|
| 19681 |
int main(void) |
| 19682 |
{ |
| 19683 |
return 0; |
| 19684 |
} |
| 19685 |
|
| 19686 |
_ACEOF |
| 19687 |
if ac_fn_c_try_link "$LINENO" |
| 19688 |
then : |
| 19689 |
mhd_cv_cc_cfl_supp__Wunknown_argument="yes" |
| 19690 |
else case e in #( |
| 19691 |
e) # Compile and link failed with test flag added |
| 19692 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS} ${mhd_cv_cc_flag_Wwarn}" |
| 19693 |
if ac_fn_c_try_link "$LINENO" |
| 19694 |
then : |
| 19695 |
mhd_cv_cc_cfl_supp__Wunknown_argument="no" |
| 19696 |
else case e in #( |
| 19697 |
e) # Compile and link failed with test flag removed as well |
| 19698 |
CFLAGS="-Wunknown-argument ${mhd_check_cc_flag_save_CFLAGS}" |
| 19699 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19700 |
if ac_fn_c_try_link "$LINENO" |
| 19701 |
then : |
| 19702 |
mhd_cv_cc_cfl_supp__Wunknown_argument="yes" |
| 19703 |
else case e in #( |
| 19704 |
e) mhd_cv_cc_cfl_supp__Wunknown_argument="no" ;; |
| 19705 |
esac |
| 19706 |
fi |
| 19707 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19708 |
conftest$ac_exeext |
| 19709 |
|
| 19710 |
;; |
| 19711 |
esac |
| 19712 |
fi |
| 19713 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19714 |
conftest$ac_exeext |
| 19715 |
|
| 19716 |
;; |
| 19717 |
esac |
| 19718 |
fi |
| 19719 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19720 |
conftest$ac_exeext |
| 19721 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19722 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19723 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19724 |
|
| 19725 |
;; |
| 19726 |
esac |
| 19727 |
fi |
| 19728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wunknown_argument" >&5 |
| 19729 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wunknown_argument" >&6; } |
| 19730 |
if test "x$mhd_cv_cc_cfl_supp__Wunknown_argument" = x"yes" |
| 19731 |
then : |
| 19732 |
|
| 19733 |
if test -z "${mhd_xFLAGS_params_warn}" |
| 19734 |
then : |
| 19735 |
mhd_xFLAGS_params_warn="-Wunknown-argument" |
| 19736 |
else case e in #( |
| 19737 |
e) mhd_xFLAGS_params_warn="${mhd_xFLAGS_params_warn} -Wunknown-argument" ;; |
| 19738 |
esac |
| 19739 |
fi |
| 19740 |
|
| 19741 |
|
| 19742 |
fi |
| 19743 |
|
| 19744 |
if test -z "$mhd_cv_cc_flag_Wwarn" |
| 19745 |
then : |
| 19746 |
mhd_xFLAGS_params_warn="${mhd_xFLAGS_params_warn}" |
| 19747 |
elif test -z "${mhd_xFLAGS_params_warn}" |
| 19748 |
then : |
| 19749 |
mhd_xFLAGS_params_warn="$mhd_cv_cc_flag_Wwarn" |
| 19750 |
else case e in #( |
| 19751 |
e) mhd_xFLAGS_params_warn="$mhd_cv_cc_flag_Wwarn ${mhd_xFLAGS_params_warn}" ;; |
| 19752 |
esac |
| 19753 |
fi |
| 19754 |
|
| 19755 |
|
| 19756 |
|
| 19757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-strict-aliasing flag" >&5 |
| 19758 |
printf %s "checking whether $CC supports -fno-strict-aliasing flag... " >&6; } |
| 19759 |
if test ${mhd_cv_cc_cfl_supp__fno_strict_aliasing+y} |
| 19760 |
then : |
| 19761 |
printf %s "(cached) " >&6 |
| 19762 |
else case e in #( |
| 19763 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19764 |
CFLAGS="${CFLAGS_ac} -fno-strict-aliasing ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19765 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19766 |
ac_c_werror_flag=yes |
| 19767 |
# Reuse the same source for all the checks here |
| 19768 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19769 |
/* end confdefs.h. */ |
| 19770 |
|
| 19771 |
int main(void) |
| 19772 |
{ |
| 19773 |
return 0; |
| 19774 |
} |
| 19775 |
|
| 19776 |
_ACEOF |
| 19777 |
if ac_fn_c_try_link "$LINENO" |
| 19778 |
then : |
| 19779 |
mhd_cv_cc_cfl_supp__fno_strict_aliasing="yes" |
| 19780 |
else case e in #( |
| 19781 |
e) # Compile and link failed with test flag added |
| 19782 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19783 |
if ac_fn_c_try_link "$LINENO" |
| 19784 |
then : |
| 19785 |
mhd_cv_cc_cfl_supp__fno_strict_aliasing="no" |
| 19786 |
else case e in #( |
| 19787 |
e) # Compile and link failed with test flag removed as well |
| 19788 |
CFLAGS="${CFLAGS_ac} -fno-strict-aliasing ${mhd_check_cc_flag_save_CFLAGS}" |
| 19789 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19790 |
if ac_fn_c_try_link "$LINENO" |
| 19791 |
then : |
| 19792 |
mhd_cv_cc_cfl_supp__fno_strict_aliasing="yes" |
| 19793 |
else case e in #( |
| 19794 |
e) mhd_cv_cc_cfl_supp__fno_strict_aliasing="no" ;; |
| 19795 |
esac |
| 19796 |
fi |
| 19797 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19798 |
conftest$ac_exeext |
| 19799 |
|
| 19800 |
;; |
| 19801 |
esac |
| 19802 |
fi |
| 19803 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19804 |
conftest$ac_exeext |
| 19805 |
|
| 19806 |
;; |
| 19807 |
esac |
| 19808 |
fi |
| 19809 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19810 |
conftest$ac_exeext |
| 19811 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19812 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19813 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19814 |
|
| 19815 |
;; |
| 19816 |
esac |
| 19817 |
fi |
| 19818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fno_strict_aliasing" >&5 |
| 19819 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fno_strict_aliasing" >&6; } |
| 19820 |
if test "x$mhd_cv_cc_cfl_supp__fno_strict_aliasing" = x"yes" |
| 19821 |
then : |
| 19822 |
if test -z "${CFLAGS_ac}" |
| 19823 |
then : |
| 19824 |
CFLAGS_ac="-fno-strict-aliasing" |
| 19825 |
else case e in #( |
| 19826 |
e) CFLAGS_ac="${CFLAGS_ac} -fno-strict-aliasing" ;; |
| 19827 |
esac |
| 19828 |
fi |
| 19829 |
|
| 19830 |
|
| 19831 |
else case e in #( |
| 19832 |
e) |
| 19833 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qnoansialias flag" >&5 |
| 19834 |
printf %s "checking whether $CC supports -qnoansialias flag... " >&6; } |
| 19835 |
if test ${mhd_cv_cc_cfl_supp__qnoansialias+y} |
| 19836 |
then : |
| 19837 |
printf %s "(cached) " >&6 |
| 19838 |
else case e in #( |
| 19839 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19840 |
CFLAGS="${CFLAGS_ac} -qnoansialias ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19841 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19842 |
ac_c_werror_flag=yes |
| 19843 |
# Reuse the same source for all the checks here |
| 19844 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19845 |
/* end confdefs.h. */ |
| 19846 |
|
| 19847 |
int main(void) |
| 19848 |
{ |
| 19849 |
return 0; |
| 19850 |
} |
| 19851 |
|
| 19852 |
_ACEOF |
| 19853 |
if ac_fn_c_try_link "$LINENO" |
| 19854 |
then : |
| 19855 |
mhd_cv_cc_cfl_supp__qnoansialias="yes" |
| 19856 |
else case e in #( |
| 19857 |
e) # Compile and link failed with test flag added |
| 19858 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19859 |
if ac_fn_c_try_link "$LINENO" |
| 19860 |
then : |
| 19861 |
mhd_cv_cc_cfl_supp__qnoansialias="no" |
| 19862 |
else case e in #( |
| 19863 |
e) # Compile and link failed with test flag removed as well |
| 19864 |
CFLAGS="${CFLAGS_ac} -qnoansialias ${mhd_check_cc_flag_save_CFLAGS}" |
| 19865 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19866 |
if ac_fn_c_try_link "$LINENO" |
| 19867 |
then : |
| 19868 |
mhd_cv_cc_cfl_supp__qnoansialias="yes" |
| 19869 |
else case e in #( |
| 19870 |
e) mhd_cv_cc_cfl_supp__qnoansialias="no" ;; |
| 19871 |
esac |
| 19872 |
fi |
| 19873 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19874 |
conftest$ac_exeext |
| 19875 |
|
| 19876 |
;; |
| 19877 |
esac |
| 19878 |
fi |
| 19879 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19880 |
conftest$ac_exeext |
| 19881 |
|
| 19882 |
;; |
| 19883 |
esac |
| 19884 |
fi |
| 19885 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19886 |
conftest$ac_exeext |
| 19887 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19888 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19889 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19890 |
|
| 19891 |
;; |
| 19892 |
esac |
| 19893 |
fi |
| 19894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__qnoansialias" >&5 |
| 19895 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__qnoansialias" >&6; } |
| 19896 |
if test "x$mhd_cv_cc_cfl_supp__qnoansialias" = x"yes" |
| 19897 |
then : |
| 19898 |
if test -z "${CFLAGS_ac}" |
| 19899 |
then : |
| 19900 |
CFLAGS_ac="-qnoansialias" |
| 19901 |
else case e in #( |
| 19902 |
e) CFLAGS_ac="${CFLAGS_ac} -qnoansialias" ;; |
| 19903 |
esac |
| 19904 |
fi |
| 19905 |
|
| 19906 |
|
| 19907 |
fi |
| 19908 |
|
| 19909 |
;; |
| 19910 |
esac |
| 19911 |
fi |
| 19912 |
|
| 19913 |
|
| 19914 |
# '-qlonglong' is XLC option for C89, not used with C99 or later |
| 19915 |
|
| 19916 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -qlonglong flag" >&5 |
| 19917 |
printf %s "checking whether $CC supports -qlonglong flag... " >&6; } |
| 19918 |
if test ${mhd_cv_cc_cfl_supp__qlonglong+y} |
| 19919 |
then : |
| 19920 |
printf %s "(cached) " >&6 |
| 19921 |
else case e in #( |
| 19922 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 19923 |
CFLAGS="${CFLAGS_ac} -qlonglong ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19924 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 19925 |
ac_c_werror_flag=yes |
| 19926 |
# Reuse the same source for all the checks here |
| 19927 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19928 |
/* end confdefs.h. */ |
| 19929 |
|
| 19930 |
int main(void) |
| 19931 |
{ |
| 19932 |
return 0; |
| 19933 |
} |
| 19934 |
|
| 19935 |
_ACEOF |
| 19936 |
if ac_fn_c_try_link "$LINENO" |
| 19937 |
then : |
| 19938 |
mhd_cv_cc_cfl_supp__qlonglong="yes" |
| 19939 |
else case e in #( |
| 19940 |
e) # Compile and link failed with test flag added |
| 19941 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 19942 |
if ac_fn_c_try_link "$LINENO" |
| 19943 |
then : |
| 19944 |
mhd_cv_cc_cfl_supp__qlonglong="no" |
| 19945 |
else case e in #( |
| 19946 |
e) # Compile and link failed with test flag removed as well |
| 19947 |
CFLAGS="${CFLAGS_ac} -qlonglong ${mhd_check_cc_flag_save_CFLAGS}" |
| 19948 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19949 |
if ac_fn_c_try_link "$LINENO" |
| 19950 |
then : |
| 19951 |
mhd_cv_cc_cfl_supp__qlonglong="yes" |
| 19952 |
else case e in #( |
| 19953 |
e) mhd_cv_cc_cfl_supp__qlonglong="no" ;; |
| 19954 |
esac |
| 19955 |
fi |
| 19956 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19957 |
conftest$ac_exeext |
| 19958 |
|
| 19959 |
;; |
| 19960 |
esac |
| 19961 |
fi |
| 19962 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19963 |
conftest$ac_exeext |
| 19964 |
|
| 19965 |
;; |
| 19966 |
esac |
| 19967 |
fi |
| 19968 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 19969 |
conftest$ac_exeext |
| 19970 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 19971 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 19972 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 19973 |
|
| 19974 |
;; |
| 19975 |
esac |
| 19976 |
fi |
| 19977 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__qlonglong" >&5 |
| 19978 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__qlonglong" >&6; } |
| 19979 |
if test "x$mhd_cv_cc_cfl_supp__qlonglong" = x"yes" |
| 19980 |
then : |
| 19981 |
if test -z "${CFLAGS_ac}" |
| 19982 |
then : |
| 19983 |
CFLAGS_ac="-qlonglong" |
| 19984 |
else case e in #( |
| 19985 |
e) CFLAGS_ac="${CFLAGS_ac} -qlonglong" ;; |
| 19986 |
esac |
| 19987 |
fi |
| 19988 |
|
| 19989 |
|
| 19990 |
fi |
| 19991 |
|
| 19992 |
|
| 19993 |
|
| 19994 |
# Set basic optimisation flags |
| 19995 |
if test "x$enable_build_type" = x"neutral" |
| 19996 |
then : |
| 19997 |
|
| 19998 |
else case e in #( |
| 19999 |
e) # Any non-neutral build types |
| 20000 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether workarounds for clang or clang-based compiler are required" >&5 |
| 20001 |
printf %s "checking whether workarounds for clang or clang-based compiler are required... " >&6; } |
| 20002 |
if test ${mhd_cv_cc_clang_based+y} |
| 20003 |
then : |
| 20004 |
printf %s "(cached) " >&6 |
| 20005 |
else case e in #( |
| 20006 |
e) |
| 20007 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20008 |
/* end confdefs.h. */ |
| 20009 |
|
| 20010 |
#if ! defined(__clang__) && ! defined(__llvm__) |
| 20011 |
#error Compiler is not clang-based |
| 20012 |
choke me now |
| 20013 |
#endif |
| 20014 |
|
| 20015 |
|
| 20016 |
|
| 20017 |
_ACEOF |
| 20018 |
if ac_fn_c_try_compile "$LINENO" |
| 20019 |
then : |
| 20020 |
mhd_cv_cc_clang_based="yes" |
| 20021 |
else case e in #( |
| 20022 |
e) mhd_cv_cc_clang_based="no" |
| 20023 |
;; |
| 20024 |
esac |
| 20025 |
fi |
| 20026 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20027 |
|
| 20028 |
;; |
| 20029 |
esac |
| 20030 |
fi |
| 20031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_clang_based" >&5 |
| 20032 |
printf "%s\n" "$mhd_cv_cc_clang_based" >&6; } |
| 20033 |
|
| 20034 |
;; |
| 20035 |
esac |
| 20036 |
fi |
| 20037 |
case ${enable_build_type} in #( |
| 20038 |
debug|debugger) : |
| 20039 |
# Debug build or build for walking with debugger |
| 20040 |
CFLAGS="${user_CFLAGS}" |
| 20041 |
if test "x$enable_build_type" = x"debug" |
| 20042 |
then : |
| 20043 |
|
| 20044 |
# Clang has ASAN (pointer compare) broken when '-Og' optimisations are used |
| 20045 |
if test "x${enable_sanitizers}" != "xno" && test "x${mhd_cv_cc_clang_based}" = "xyes" |
| 20046 |
then : |
| 20047 |
|
| 20048 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O0 flag" >&5 |
| 20049 |
printf %s "checking whether $CC supports -O0 flag... " >&6; } |
| 20050 |
if test ${mhd_cv_cc_cfl_supp__O0+y} |
| 20051 |
then : |
| 20052 |
printf %s "(cached) " >&6 |
| 20053 |
else case e in #( |
| 20054 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20055 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20056 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20057 |
ac_c_werror_flag=yes |
| 20058 |
# Reuse the same source for all the checks here |
| 20059 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20060 |
/* end confdefs.h. */ |
| 20061 |
|
| 20062 |
int main(void) |
| 20063 |
{ |
| 20064 |
return 0; |
| 20065 |
} |
| 20066 |
|
| 20067 |
_ACEOF |
| 20068 |
if ac_fn_c_try_link "$LINENO" |
| 20069 |
then : |
| 20070 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20071 |
else case e in #( |
| 20072 |
e) # Compile and link failed with test flag added |
| 20073 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20074 |
if ac_fn_c_try_link "$LINENO" |
| 20075 |
then : |
| 20076 |
mhd_cv_cc_cfl_supp__O0="no" |
| 20077 |
else case e in #( |
| 20078 |
e) # Compile and link failed with test flag removed as well |
| 20079 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS}" |
| 20080 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20081 |
if ac_fn_c_try_link "$LINENO" |
| 20082 |
then : |
| 20083 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20084 |
else case e in #( |
| 20085 |
e) mhd_cv_cc_cfl_supp__O0="no" ;; |
| 20086 |
esac |
| 20087 |
fi |
| 20088 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20089 |
conftest$ac_exeext |
| 20090 |
|
| 20091 |
;; |
| 20092 |
esac |
| 20093 |
fi |
| 20094 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20095 |
conftest$ac_exeext |
| 20096 |
|
| 20097 |
;; |
| 20098 |
esac |
| 20099 |
fi |
| 20100 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20101 |
conftest$ac_exeext |
| 20102 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20103 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20104 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20105 |
|
| 20106 |
;; |
| 20107 |
esac |
| 20108 |
fi |
| 20109 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O0" >&5 |
| 20110 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O0" >&6; } |
| 20111 |
if test "x$mhd_cv_cc_cfl_supp__O0" = x"yes" |
| 20112 |
then : |
| 20113 |
if test -z "${CFLAGS_ac}" |
| 20114 |
then : |
| 20115 |
CFLAGS_ac="-O0" |
| 20116 |
else case e in #( |
| 20117 |
e) CFLAGS_ac="${CFLAGS_ac} -O0" ;; |
| 20118 |
esac |
| 20119 |
fi |
| 20120 |
|
| 20121 |
|
| 20122 |
fi |
| 20123 |
|
| 20124 |
|
| 20125 |
else case e in #( |
| 20126 |
e) |
| 20127 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Og flag" >&5 |
| 20128 |
printf %s "checking whether $CC supports -Og flag... " >&6; } |
| 20129 |
if test ${mhd_cv_cc_cfl_supp__Og+y} |
| 20130 |
then : |
| 20131 |
printf %s "(cached) " >&6 |
| 20132 |
else case e in #( |
| 20133 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20134 |
CFLAGS="${CFLAGS_ac} -Og ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20135 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20136 |
ac_c_werror_flag=yes |
| 20137 |
# Reuse the same source for all the checks here |
| 20138 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20139 |
/* end confdefs.h. */ |
| 20140 |
|
| 20141 |
int main(void) |
| 20142 |
{ |
| 20143 |
return 0; |
| 20144 |
} |
| 20145 |
|
| 20146 |
_ACEOF |
| 20147 |
if ac_fn_c_try_link "$LINENO" |
| 20148 |
then : |
| 20149 |
mhd_cv_cc_cfl_supp__Og="yes" |
| 20150 |
else case e in #( |
| 20151 |
e) # Compile and link failed with test flag added |
| 20152 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20153 |
if ac_fn_c_try_link "$LINENO" |
| 20154 |
then : |
| 20155 |
mhd_cv_cc_cfl_supp__Og="no" |
| 20156 |
else case e in #( |
| 20157 |
e) # Compile and link failed with test flag removed as well |
| 20158 |
CFLAGS="${CFLAGS_ac} -Og ${mhd_check_cc_flag_save_CFLAGS}" |
| 20159 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20160 |
if ac_fn_c_try_link "$LINENO" |
| 20161 |
then : |
| 20162 |
mhd_cv_cc_cfl_supp__Og="yes" |
| 20163 |
else case e in #( |
| 20164 |
e) mhd_cv_cc_cfl_supp__Og="no" ;; |
| 20165 |
esac |
| 20166 |
fi |
| 20167 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20168 |
conftest$ac_exeext |
| 20169 |
|
| 20170 |
;; |
| 20171 |
esac |
| 20172 |
fi |
| 20173 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20174 |
conftest$ac_exeext |
| 20175 |
|
| 20176 |
;; |
| 20177 |
esac |
| 20178 |
fi |
| 20179 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20180 |
conftest$ac_exeext |
| 20181 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20182 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20183 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20184 |
|
| 20185 |
;; |
| 20186 |
esac |
| 20187 |
fi |
| 20188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Og" >&5 |
| 20189 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Og" >&6; } |
| 20190 |
if test "x$mhd_cv_cc_cfl_supp__Og" = x"yes" |
| 20191 |
then : |
| 20192 |
if test -z "${CFLAGS_ac}" |
| 20193 |
then : |
| 20194 |
CFLAGS_ac="-Og" |
| 20195 |
else case e in #( |
| 20196 |
e) CFLAGS_ac="${CFLAGS_ac} -Og" ;; |
| 20197 |
esac |
| 20198 |
fi |
| 20199 |
|
| 20200 |
|
| 20201 |
else case e in #( |
| 20202 |
e) |
| 20203 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O0 flag" >&5 |
| 20204 |
printf %s "checking whether $CC supports -O0 flag... " >&6; } |
| 20205 |
if test ${mhd_cv_cc_cfl_supp__O0+y} |
| 20206 |
then : |
| 20207 |
printf %s "(cached) " >&6 |
| 20208 |
else case e in #( |
| 20209 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20210 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20211 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20212 |
ac_c_werror_flag=yes |
| 20213 |
# Reuse the same source for all the checks here |
| 20214 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20215 |
/* end confdefs.h. */ |
| 20216 |
|
| 20217 |
int main(void) |
| 20218 |
{ |
| 20219 |
return 0; |
| 20220 |
} |
| 20221 |
|
| 20222 |
_ACEOF |
| 20223 |
if ac_fn_c_try_link "$LINENO" |
| 20224 |
then : |
| 20225 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20226 |
else case e in #( |
| 20227 |
e) # Compile and link failed with test flag added |
| 20228 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20229 |
if ac_fn_c_try_link "$LINENO" |
| 20230 |
then : |
| 20231 |
mhd_cv_cc_cfl_supp__O0="no" |
| 20232 |
else case e in #( |
| 20233 |
e) # Compile and link failed with test flag removed as well |
| 20234 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS}" |
| 20235 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20236 |
if ac_fn_c_try_link "$LINENO" |
| 20237 |
then : |
| 20238 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20239 |
else case e in #( |
| 20240 |
e) mhd_cv_cc_cfl_supp__O0="no" ;; |
| 20241 |
esac |
| 20242 |
fi |
| 20243 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20244 |
conftest$ac_exeext |
| 20245 |
|
| 20246 |
;; |
| 20247 |
esac |
| 20248 |
fi |
| 20249 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20250 |
conftest$ac_exeext |
| 20251 |
|
| 20252 |
;; |
| 20253 |
esac |
| 20254 |
fi |
| 20255 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20256 |
conftest$ac_exeext |
| 20257 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20258 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20259 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20260 |
|
| 20261 |
;; |
| 20262 |
esac |
| 20263 |
fi |
| 20264 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O0" >&5 |
| 20265 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O0" >&6; } |
| 20266 |
if test "x$mhd_cv_cc_cfl_supp__O0" = x"yes" |
| 20267 |
then : |
| 20268 |
if test -z "${CFLAGS_ac}" |
| 20269 |
then : |
| 20270 |
CFLAGS_ac="-O0" |
| 20271 |
else case e in #( |
| 20272 |
e) CFLAGS_ac="${CFLAGS_ac} -O0" ;; |
| 20273 |
esac |
| 20274 |
fi |
| 20275 |
|
| 20276 |
|
| 20277 |
fi |
| 20278 |
|
| 20279 |
;; |
| 20280 |
esac |
| 20281 |
fi |
| 20282 |
|
| 20283 |
|
| 20284 |
;; |
| 20285 |
esac |
| 20286 |
fi |
| 20287 |
|
| 20288 |
else case e in #( |
| 20289 |
e) |
| 20290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O0 flag" >&5 |
| 20291 |
printf %s "checking whether $CC supports -O0 flag... " >&6; } |
| 20292 |
if test ${mhd_cv_cc_cfl_supp__O0+y} |
| 20293 |
then : |
| 20294 |
printf %s "(cached) " >&6 |
| 20295 |
else case e in #( |
| 20296 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20297 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20298 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20299 |
ac_c_werror_flag=yes |
| 20300 |
# Reuse the same source for all the checks here |
| 20301 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20302 |
/* end confdefs.h. */ |
| 20303 |
|
| 20304 |
int main(void) |
| 20305 |
{ |
| 20306 |
return 0; |
| 20307 |
} |
| 20308 |
|
| 20309 |
_ACEOF |
| 20310 |
if ac_fn_c_try_link "$LINENO" |
| 20311 |
then : |
| 20312 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20313 |
else case e in #( |
| 20314 |
e) # Compile and link failed with test flag added |
| 20315 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20316 |
if ac_fn_c_try_link "$LINENO" |
| 20317 |
then : |
| 20318 |
mhd_cv_cc_cfl_supp__O0="no" |
| 20319 |
else case e in #( |
| 20320 |
e) # Compile and link failed with test flag removed as well |
| 20321 |
CFLAGS="${CFLAGS_ac} -O0 ${mhd_check_cc_flag_save_CFLAGS}" |
| 20322 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20323 |
if ac_fn_c_try_link "$LINENO" |
| 20324 |
then : |
| 20325 |
mhd_cv_cc_cfl_supp__O0="yes" |
| 20326 |
else case e in #( |
| 20327 |
e) mhd_cv_cc_cfl_supp__O0="no" ;; |
| 20328 |
esac |
| 20329 |
fi |
| 20330 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20331 |
conftest$ac_exeext |
| 20332 |
|
| 20333 |
;; |
| 20334 |
esac |
| 20335 |
fi |
| 20336 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20337 |
conftest$ac_exeext |
| 20338 |
|
| 20339 |
;; |
| 20340 |
esac |
| 20341 |
fi |
| 20342 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20343 |
conftest$ac_exeext |
| 20344 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20345 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20346 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20347 |
|
| 20348 |
;; |
| 20349 |
esac |
| 20350 |
fi |
| 20351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O0" >&5 |
| 20352 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O0" >&6; } |
| 20353 |
if test "x$mhd_cv_cc_cfl_supp__O0" = x"yes" |
| 20354 |
then : |
| 20355 |
if test -z "${CFLAGS_ac}" |
| 20356 |
then : |
| 20357 |
CFLAGS_ac="-O0" |
| 20358 |
else case e in #( |
| 20359 |
e) CFLAGS_ac="${CFLAGS_ac} -O0" ;; |
| 20360 |
esac |
| 20361 |
fi |
| 20362 |
|
| 20363 |
|
| 20364 |
fi |
| 20365 |
|
| 20366 |
|
| 20367 |
;; |
| 20368 |
esac |
| 20369 |
fi |
| 20370 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 20371 |
|
| 20372 |
;; #( |
| 20373 |
*) : |
| 20374 |
;; |
| 20375 |
esac |
| 20376 |
case ${enable_build_type} in #( |
| 20377 |
release|release-*) : |
| 20378 |
# All release types |
| 20379 |
if test "x$enable_build_type" = x"release-compact" |
| 20380 |
then : |
| 20381 |
|
| 20382 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 20383 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_SMALL_CODE" "ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" "/* no includes */ |
| 20384 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 20385 |
if test "x$ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" = xyes |
| 20386 |
then : |
| 20387 |
|
| 20388 |
else case e in #( |
| 20389 |
e) ac_fn_check_decl "$LINENO" "MHD_FAVOR_FAST_CODE" "ac_cv_have_decl_MHD_FAVOR_FAST_CODE" "/* no includes */ |
| 20390 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 20391 |
if test "x$ac_cv_have_decl_MHD_FAVOR_FAST_CODE" = xyes |
| 20392 |
then : |
| 20393 |
|
| 20394 |
else case e in #( |
| 20395 |
e) if test -z "${CPPFLAGS_ac}" |
| 20396 |
then : |
| 20397 |
CPPFLAGS_ac="-DMHD_FAVOR_SMALL_CODE=1" |
| 20398 |
else case e in #( |
| 20399 |
e) CPPFLAGS_ac="${CPPFLAGS_ac} -DMHD_FAVOR_SMALL_CODE=1" ;; |
| 20400 |
esac |
| 20401 |
fi |
| 20402 |
;; |
| 20403 |
esac |
| 20404 |
fi ;; |
| 20405 |
esac |
| 20406 |
fi |
| 20407 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 20408 |
CFLAGS="${user_CFLAGS}" |
| 20409 |
|
| 20410 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Oz flag" >&5 |
| 20411 |
printf %s "checking whether $CC supports -Oz flag... " >&6; } |
| 20412 |
if test ${mhd_cv_cc_cfl_supp__Oz+y} |
| 20413 |
then : |
| 20414 |
printf %s "(cached) " >&6 |
| 20415 |
else case e in #( |
| 20416 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20417 |
CFLAGS="${CFLAGS_ac} -Oz ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20418 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20419 |
ac_c_werror_flag=yes |
| 20420 |
# Reuse the same source for all the checks here |
| 20421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20422 |
/* end confdefs.h. */ |
| 20423 |
|
| 20424 |
int main(void) |
| 20425 |
{ |
| 20426 |
return 0; |
| 20427 |
} |
| 20428 |
|
| 20429 |
_ACEOF |
| 20430 |
if ac_fn_c_try_link "$LINENO" |
| 20431 |
then : |
| 20432 |
mhd_cv_cc_cfl_supp__Oz="yes" |
| 20433 |
else case e in #( |
| 20434 |
e) # Compile and link failed with test flag added |
| 20435 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20436 |
if ac_fn_c_try_link "$LINENO" |
| 20437 |
then : |
| 20438 |
mhd_cv_cc_cfl_supp__Oz="no" |
| 20439 |
else case e in #( |
| 20440 |
e) # Compile and link failed with test flag removed as well |
| 20441 |
CFLAGS="${CFLAGS_ac} -Oz ${mhd_check_cc_flag_save_CFLAGS}" |
| 20442 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20443 |
if ac_fn_c_try_link "$LINENO" |
| 20444 |
then : |
| 20445 |
mhd_cv_cc_cfl_supp__Oz="yes" |
| 20446 |
else case e in #( |
| 20447 |
e) mhd_cv_cc_cfl_supp__Oz="no" ;; |
| 20448 |
esac |
| 20449 |
fi |
| 20450 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20451 |
conftest$ac_exeext |
| 20452 |
|
| 20453 |
;; |
| 20454 |
esac |
| 20455 |
fi |
| 20456 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20457 |
conftest$ac_exeext |
| 20458 |
|
| 20459 |
;; |
| 20460 |
esac |
| 20461 |
fi |
| 20462 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20463 |
conftest$ac_exeext |
| 20464 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20465 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20466 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20467 |
|
| 20468 |
;; |
| 20469 |
esac |
| 20470 |
fi |
| 20471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Oz" >&5 |
| 20472 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Oz" >&6; } |
| 20473 |
if test "x$mhd_cv_cc_cfl_supp__Oz" = x"yes" |
| 20474 |
then : |
| 20475 |
if test -z "${CFLAGS_ac}" |
| 20476 |
then : |
| 20477 |
CFLAGS_ac="-Oz" |
| 20478 |
else case e in #( |
| 20479 |
e) CFLAGS_ac="${CFLAGS_ac} -Oz" ;; |
| 20480 |
esac |
| 20481 |
fi |
| 20482 |
|
| 20483 |
|
| 20484 |
else case e in #( |
| 20485 |
e) |
| 20486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Os flag" >&5 |
| 20487 |
printf %s "checking whether $CC supports -Os flag... " >&6; } |
| 20488 |
if test ${mhd_cv_cc_cfl_supp__Os+y} |
| 20489 |
then : |
| 20490 |
printf %s "(cached) " >&6 |
| 20491 |
else case e in #( |
| 20492 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20493 |
CFLAGS="${CFLAGS_ac} -Os ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20494 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20495 |
ac_c_werror_flag=yes |
| 20496 |
# Reuse the same source for all the checks here |
| 20497 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20498 |
/* end confdefs.h. */ |
| 20499 |
|
| 20500 |
int main(void) |
| 20501 |
{ |
| 20502 |
return 0; |
| 20503 |
} |
| 20504 |
|
| 20505 |
_ACEOF |
| 20506 |
if ac_fn_c_try_link "$LINENO" |
| 20507 |
then : |
| 20508 |
mhd_cv_cc_cfl_supp__Os="yes" |
| 20509 |
else case e in #( |
| 20510 |
e) # Compile and link failed with test flag added |
| 20511 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20512 |
if ac_fn_c_try_link "$LINENO" |
| 20513 |
then : |
| 20514 |
mhd_cv_cc_cfl_supp__Os="no" |
| 20515 |
else case e in #( |
| 20516 |
e) # Compile and link failed with test flag removed as well |
| 20517 |
CFLAGS="${CFLAGS_ac} -Os ${mhd_check_cc_flag_save_CFLAGS}" |
| 20518 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20519 |
if ac_fn_c_try_link "$LINENO" |
| 20520 |
then : |
| 20521 |
mhd_cv_cc_cfl_supp__Os="yes" |
| 20522 |
else case e in #( |
| 20523 |
e) mhd_cv_cc_cfl_supp__Os="no" ;; |
| 20524 |
esac |
| 20525 |
fi |
| 20526 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20527 |
conftest$ac_exeext |
| 20528 |
|
| 20529 |
;; |
| 20530 |
esac |
| 20531 |
fi |
| 20532 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20533 |
conftest$ac_exeext |
| 20534 |
|
| 20535 |
;; |
| 20536 |
esac |
| 20537 |
fi |
| 20538 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20539 |
conftest$ac_exeext |
| 20540 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20541 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20542 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20543 |
|
| 20544 |
;; |
| 20545 |
esac |
| 20546 |
fi |
| 20547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Os" >&5 |
| 20548 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Os" >&6; } |
| 20549 |
if test "x$mhd_cv_cc_cfl_supp__Os" = x"yes" |
| 20550 |
then : |
| 20551 |
if test -z "${CFLAGS_ac}" |
| 20552 |
then : |
| 20553 |
CFLAGS_ac="-Os" |
| 20554 |
else case e in #( |
| 20555 |
e) CFLAGS_ac="${CFLAGS_ac} -Os" ;; |
| 20556 |
esac |
| 20557 |
fi |
| 20558 |
|
| 20559 |
|
| 20560 |
else case e in #( |
| 20561 |
e) |
| 20562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O flag" >&5 |
| 20563 |
printf %s "checking whether $CC supports -O flag... " >&6; } |
| 20564 |
if test ${mhd_cv_cc_cfl_supp__O+y} |
| 20565 |
then : |
| 20566 |
printf %s "(cached) " >&6 |
| 20567 |
else case e in #( |
| 20568 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20569 |
CFLAGS="${CFLAGS_ac} -O ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20570 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20571 |
ac_c_werror_flag=yes |
| 20572 |
# Reuse the same source for all the checks here |
| 20573 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20574 |
/* end confdefs.h. */ |
| 20575 |
|
| 20576 |
int main(void) |
| 20577 |
{ |
| 20578 |
return 0; |
| 20579 |
} |
| 20580 |
|
| 20581 |
_ACEOF |
| 20582 |
if ac_fn_c_try_link "$LINENO" |
| 20583 |
then : |
| 20584 |
mhd_cv_cc_cfl_supp__O="yes" |
| 20585 |
else case e in #( |
| 20586 |
e) # Compile and link failed with test flag added |
| 20587 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20588 |
if ac_fn_c_try_link "$LINENO" |
| 20589 |
then : |
| 20590 |
mhd_cv_cc_cfl_supp__O="no" |
| 20591 |
else case e in #( |
| 20592 |
e) # Compile and link failed with test flag removed as well |
| 20593 |
CFLAGS="${CFLAGS_ac} -O ${mhd_check_cc_flag_save_CFLAGS}" |
| 20594 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20595 |
if ac_fn_c_try_link "$LINENO" |
| 20596 |
then : |
| 20597 |
mhd_cv_cc_cfl_supp__O="yes" |
| 20598 |
else case e in #( |
| 20599 |
e) mhd_cv_cc_cfl_supp__O="no" ;; |
| 20600 |
esac |
| 20601 |
fi |
| 20602 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20603 |
conftest$ac_exeext |
| 20604 |
|
| 20605 |
;; |
| 20606 |
esac |
| 20607 |
fi |
| 20608 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20609 |
conftest$ac_exeext |
| 20610 |
|
| 20611 |
;; |
| 20612 |
esac |
| 20613 |
fi |
| 20614 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20615 |
conftest$ac_exeext |
| 20616 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20617 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20618 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20619 |
|
| 20620 |
;; |
| 20621 |
esac |
| 20622 |
fi |
| 20623 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O" >&5 |
| 20624 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O" >&6; } |
| 20625 |
if test "x$mhd_cv_cc_cfl_supp__O" = x"yes" |
| 20626 |
then : |
| 20627 |
if test -z "${CFLAGS_ac}" |
| 20628 |
then : |
| 20629 |
CFLAGS_ac="-O" |
| 20630 |
else case e in #( |
| 20631 |
e) CFLAGS_ac="${CFLAGS_ac} -O" ;; |
| 20632 |
esac |
| 20633 |
fi |
| 20634 |
|
| 20635 |
|
| 20636 |
fi |
| 20637 |
|
| 20638 |
;; |
| 20639 |
esac |
| 20640 |
fi |
| 20641 |
|
| 20642 |
;; |
| 20643 |
esac |
| 20644 |
fi |
| 20645 |
|
| 20646 |
|
| 20647 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 20648 |
|
| 20649 |
else case e in #( |
| 20650 |
e) # All non-compact release types |
| 20651 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 20652 |
ac_fn_check_decl "$LINENO" "MHD_FAVOR_SMALL_CODE" "ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" "/* no includes */ |
| 20653 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 20654 |
if test "x$ac_cv_have_decl_MHD_FAVOR_SMALL_CODE" = xyes |
| 20655 |
then : |
| 20656 |
|
| 20657 |
else case e in #( |
| 20658 |
e) ac_fn_check_decl "$LINENO" "MHD_FAVOR_FAST_CODE" "ac_cv_have_decl_MHD_FAVOR_FAST_CODE" "/* no includes */ |
| 20659 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 20660 |
if test "x$ac_cv_have_decl_MHD_FAVOR_FAST_CODE" = xyes |
| 20661 |
then : |
| 20662 |
|
| 20663 |
else case e in #( |
| 20664 |
e) if test -z "${CPPFLAGS_ac}" |
| 20665 |
then : |
| 20666 |
CPPFLAGS_ac="-DMHD_FAVOR_FAST_CODE=1" |
| 20667 |
else case e in #( |
| 20668 |
e) CPPFLAGS_ac="${CPPFLAGS_ac} -DMHD_FAVOR_FAST_CODE=1" ;; |
| 20669 |
esac |
| 20670 |
fi |
| 20671 |
;; |
| 20672 |
esac |
| 20673 |
fi ;; |
| 20674 |
esac |
| 20675 |
fi |
| 20676 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 20677 |
CFLAGS="${user_CFLAGS}" |
| 20678 |
|
| 20679 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O2 flag" >&5 |
| 20680 |
printf %s "checking whether $CC supports -O2 flag... " >&6; } |
| 20681 |
if test ${mhd_cv_cc_cfl_supp__O2+y} |
| 20682 |
then : |
| 20683 |
printf %s "(cached) " >&6 |
| 20684 |
else case e in #( |
| 20685 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20686 |
CFLAGS="${CFLAGS_ac} -O2 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20687 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20688 |
ac_c_werror_flag=yes |
| 20689 |
# Reuse the same source for all the checks here |
| 20690 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20691 |
/* end confdefs.h. */ |
| 20692 |
|
| 20693 |
int main(void) |
| 20694 |
{ |
| 20695 |
return 0; |
| 20696 |
} |
| 20697 |
|
| 20698 |
_ACEOF |
| 20699 |
if ac_fn_c_try_link "$LINENO" |
| 20700 |
then : |
| 20701 |
mhd_cv_cc_cfl_supp__O2="yes" |
| 20702 |
else case e in #( |
| 20703 |
e) # Compile and link failed with test flag added |
| 20704 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20705 |
if ac_fn_c_try_link "$LINENO" |
| 20706 |
then : |
| 20707 |
mhd_cv_cc_cfl_supp__O2="no" |
| 20708 |
else case e in #( |
| 20709 |
e) # Compile and link failed with test flag removed as well |
| 20710 |
CFLAGS="${CFLAGS_ac} -O2 ${mhd_check_cc_flag_save_CFLAGS}" |
| 20711 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20712 |
if ac_fn_c_try_link "$LINENO" |
| 20713 |
then : |
| 20714 |
mhd_cv_cc_cfl_supp__O2="yes" |
| 20715 |
else case e in #( |
| 20716 |
e) mhd_cv_cc_cfl_supp__O2="no" ;; |
| 20717 |
esac |
| 20718 |
fi |
| 20719 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20720 |
conftest$ac_exeext |
| 20721 |
|
| 20722 |
;; |
| 20723 |
esac |
| 20724 |
fi |
| 20725 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20726 |
conftest$ac_exeext |
| 20727 |
|
| 20728 |
;; |
| 20729 |
esac |
| 20730 |
fi |
| 20731 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20732 |
conftest$ac_exeext |
| 20733 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20734 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20735 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20736 |
|
| 20737 |
;; |
| 20738 |
esac |
| 20739 |
fi |
| 20740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O2" >&5 |
| 20741 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O2" >&6; } |
| 20742 |
if test "x$mhd_cv_cc_cfl_supp__O2" = x"yes" |
| 20743 |
then : |
| 20744 |
if test -z "${CFLAGS_ac}" |
| 20745 |
then : |
| 20746 |
CFLAGS_ac="-O2" |
| 20747 |
else case e in #( |
| 20748 |
e) CFLAGS_ac="${CFLAGS_ac} -O2" ;; |
| 20749 |
esac |
| 20750 |
fi |
| 20751 |
|
| 20752 |
|
| 20753 |
else case e in #( |
| 20754 |
e) |
| 20755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -O flag" >&5 |
| 20756 |
printf %s "checking whether $CC supports -O flag... " >&6; } |
| 20757 |
if test ${mhd_cv_cc_cfl_supp__O+y} |
| 20758 |
then : |
| 20759 |
printf %s "(cached) " >&6 |
| 20760 |
else case e in #( |
| 20761 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20762 |
CFLAGS="${CFLAGS_ac} -O ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20763 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20764 |
ac_c_werror_flag=yes |
| 20765 |
# Reuse the same source for all the checks here |
| 20766 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20767 |
/* end confdefs.h. */ |
| 20768 |
|
| 20769 |
int main(void) |
| 20770 |
{ |
| 20771 |
return 0; |
| 20772 |
} |
| 20773 |
|
| 20774 |
_ACEOF |
| 20775 |
if ac_fn_c_try_link "$LINENO" |
| 20776 |
then : |
| 20777 |
mhd_cv_cc_cfl_supp__O="yes" |
| 20778 |
else case e in #( |
| 20779 |
e) # Compile and link failed with test flag added |
| 20780 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20781 |
if ac_fn_c_try_link "$LINENO" |
| 20782 |
then : |
| 20783 |
mhd_cv_cc_cfl_supp__O="no" |
| 20784 |
else case e in #( |
| 20785 |
e) # Compile and link failed with test flag removed as well |
| 20786 |
CFLAGS="${CFLAGS_ac} -O ${mhd_check_cc_flag_save_CFLAGS}" |
| 20787 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20788 |
if ac_fn_c_try_link "$LINENO" |
| 20789 |
then : |
| 20790 |
mhd_cv_cc_cfl_supp__O="yes" |
| 20791 |
else case e in #( |
| 20792 |
e) mhd_cv_cc_cfl_supp__O="no" ;; |
| 20793 |
esac |
| 20794 |
fi |
| 20795 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20796 |
conftest$ac_exeext |
| 20797 |
|
| 20798 |
;; |
| 20799 |
esac |
| 20800 |
fi |
| 20801 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20802 |
conftest$ac_exeext |
| 20803 |
|
| 20804 |
;; |
| 20805 |
esac |
| 20806 |
fi |
| 20807 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20808 |
conftest$ac_exeext |
| 20809 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20810 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20811 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20812 |
|
| 20813 |
;; |
| 20814 |
esac |
| 20815 |
fi |
| 20816 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__O" >&5 |
| 20817 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__O" >&6; } |
| 20818 |
if test "x$mhd_cv_cc_cfl_supp__O" = x"yes" |
| 20819 |
then : |
| 20820 |
if test -z "${CFLAGS_ac}" |
| 20821 |
then : |
| 20822 |
CFLAGS_ac="-O" |
| 20823 |
else case e in #( |
| 20824 |
e) CFLAGS_ac="${CFLAGS_ac} -O" ;; |
| 20825 |
esac |
| 20826 |
fi |
| 20827 |
|
| 20828 |
|
| 20829 |
fi |
| 20830 |
|
| 20831 |
;; |
| 20832 |
esac |
| 20833 |
fi |
| 20834 |
|
| 20835 |
|
| 20836 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 20837 |
|
| 20838 |
;; |
| 20839 |
esac |
| 20840 |
fi |
| 20841 |
|
| 20842 |
;; #( |
| 20843 |
*) : |
| 20844 |
;; |
| 20845 |
esac |
| 20846 |
|
| 20847 |
if test "x$enable_build_type" = x"neutral" |
| 20848 |
then : |
| 20849 |
|
| 20850 |
else case e in #( |
| 20851 |
e) # Any non-neutral build types |
| 20852 |
|
| 20853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wall flag" >&5 |
| 20854 |
printf %s "checking whether $CC supports -Wall flag... " >&6; } |
| 20855 |
if test ${mhd_cv_cc_cfl_supp__Wall+y} |
| 20856 |
then : |
| 20857 |
printf %s "(cached) " >&6 |
| 20858 |
else case e in #( |
| 20859 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20860 |
CFLAGS="${CFLAGS_ac} -Wall ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20861 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20862 |
ac_c_werror_flag=yes |
| 20863 |
# Reuse the same source for all the checks here |
| 20864 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20865 |
/* end confdefs.h. */ |
| 20866 |
|
| 20867 |
int main(void) |
| 20868 |
{ |
| 20869 |
return 0; |
| 20870 |
} |
| 20871 |
|
| 20872 |
_ACEOF |
| 20873 |
if ac_fn_c_try_link "$LINENO" |
| 20874 |
then : |
| 20875 |
mhd_cv_cc_cfl_supp__Wall="yes" |
| 20876 |
else case e in #( |
| 20877 |
e) # Compile and link failed with test flag added |
| 20878 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20879 |
if ac_fn_c_try_link "$LINENO" |
| 20880 |
then : |
| 20881 |
mhd_cv_cc_cfl_supp__Wall="no" |
| 20882 |
else case e in #( |
| 20883 |
e) # Compile and link failed with test flag removed as well |
| 20884 |
CFLAGS="${CFLAGS_ac} -Wall ${mhd_check_cc_flag_save_CFLAGS}" |
| 20885 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20886 |
if ac_fn_c_try_link "$LINENO" |
| 20887 |
then : |
| 20888 |
mhd_cv_cc_cfl_supp__Wall="yes" |
| 20889 |
else case e in #( |
| 20890 |
e) mhd_cv_cc_cfl_supp__Wall="no" ;; |
| 20891 |
esac |
| 20892 |
fi |
| 20893 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20894 |
conftest$ac_exeext |
| 20895 |
|
| 20896 |
;; |
| 20897 |
esac |
| 20898 |
fi |
| 20899 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20900 |
conftest$ac_exeext |
| 20901 |
|
| 20902 |
;; |
| 20903 |
esac |
| 20904 |
fi |
| 20905 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20906 |
conftest$ac_exeext |
| 20907 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20908 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20909 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20910 |
|
| 20911 |
;; |
| 20912 |
esac |
| 20913 |
fi |
| 20914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wall" >&5 |
| 20915 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wall" >&6; } |
| 20916 |
if test "x$mhd_cv_cc_cfl_supp__Wall" = x"yes" |
| 20917 |
then : |
| 20918 |
if test -z "${CFLAGS_ac}" |
| 20919 |
then : |
| 20920 |
CFLAGS_ac="-Wall" |
| 20921 |
else case e in #( |
| 20922 |
e) CFLAGS_ac="${CFLAGS_ac} -Wall" ;; |
| 20923 |
esac |
| 20924 |
fi |
| 20925 |
|
| 20926 |
|
| 20927 |
fi |
| 20928 |
|
| 20929 |
|
| 20930 |
|
| 20931 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnull-dereference flag" >&5 |
| 20932 |
printf %s "checking whether $CC supports -Wnull-dereference flag... " >&6; } |
| 20933 |
if test ${mhd_cv_cc_cfl_supp__Wnull_dereference+y} |
| 20934 |
then : |
| 20935 |
printf %s "(cached) " >&6 |
| 20936 |
else case e in #( |
| 20937 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 20938 |
CFLAGS="${CFLAGS_ac} -Wnull-dereference ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20939 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 20940 |
ac_c_werror_flag=yes |
| 20941 |
# Reuse the same source for all the checks here |
| 20942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20943 |
/* end confdefs.h. */ |
| 20944 |
|
| 20945 |
int main(void) |
| 20946 |
{ |
| 20947 |
return 0; |
| 20948 |
} |
| 20949 |
|
| 20950 |
_ACEOF |
| 20951 |
if ac_fn_c_try_link "$LINENO" |
| 20952 |
then : |
| 20953 |
mhd_cv_cc_cfl_supp__Wnull_dereference="yes" |
| 20954 |
else case e in #( |
| 20955 |
e) # Compile and link failed with test flag added |
| 20956 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 20957 |
if ac_fn_c_try_link "$LINENO" |
| 20958 |
then : |
| 20959 |
mhd_cv_cc_cfl_supp__Wnull_dereference="no" |
| 20960 |
else case e in #( |
| 20961 |
e) # Compile and link failed with test flag removed as well |
| 20962 |
CFLAGS="${CFLAGS_ac} -Wnull-dereference ${mhd_check_cc_flag_save_CFLAGS}" |
| 20963 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20964 |
if ac_fn_c_try_link "$LINENO" |
| 20965 |
then : |
| 20966 |
mhd_cv_cc_cfl_supp__Wnull_dereference="yes" |
| 20967 |
else case e in #( |
| 20968 |
e) mhd_cv_cc_cfl_supp__Wnull_dereference="no" ;; |
| 20969 |
esac |
| 20970 |
fi |
| 20971 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20972 |
conftest$ac_exeext |
| 20973 |
|
| 20974 |
;; |
| 20975 |
esac |
| 20976 |
fi |
| 20977 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20978 |
conftest$ac_exeext |
| 20979 |
|
| 20980 |
;; |
| 20981 |
esac |
| 20982 |
fi |
| 20983 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20984 |
conftest$ac_exeext |
| 20985 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 20986 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 20987 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 20988 |
|
| 20989 |
;; |
| 20990 |
esac |
| 20991 |
fi |
| 20992 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnull_dereference" >&5 |
| 20993 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnull_dereference" >&6; } |
| 20994 |
if test "x$mhd_cv_cc_cfl_supp__Wnull_dereference" = x"yes" |
| 20995 |
then : |
| 20996 |
if test -z "${CFLAGS_ac}" |
| 20997 |
then : |
| 20998 |
CFLAGS_ac="-Wnull-dereference" |
| 20999 |
else case e in #( |
| 21000 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnull-dereference" ;; |
| 21001 |
esac |
| 21002 |
fi |
| 21003 |
|
| 21004 |
|
| 21005 |
fi |
| 21006 |
|
| 21007 |
|
| 21008 |
|
| 21009 |
|
| 21010 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeclaration-after-statement flag" >&5 |
| 21011 |
printf %s "checking whether $CC supports -Wdeclaration-after-statement flag... " >&6; } |
| 21012 |
if test ${mhd_cv_cc_cfl_supp__Wdeclaration_after_statement+y} |
| 21013 |
then : |
| 21014 |
printf %s "(cached) " >&6 |
| 21015 |
else case e in #( |
| 21016 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21017 |
CFLAGS="${CFLAGS_ac} -Wdeclaration-after-statement ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21018 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21019 |
ac_c_werror_flag=yes |
| 21020 |
# Reuse the same source for all the checks here |
| 21021 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21022 |
/* end confdefs.h. */ |
| 21023 |
|
| 21024 |
int main(void) |
| 21025 |
{ |
| 21026 |
return 0; |
| 21027 |
} |
| 21028 |
|
| 21029 |
_ACEOF |
| 21030 |
if ac_fn_c_try_link "$LINENO" |
| 21031 |
then : |
| 21032 |
mhd_cv_cc_cfl_supp__Wdeclaration_after_statement="yes" |
| 21033 |
else case e in #( |
| 21034 |
e) # Compile and link failed with test flag added |
| 21035 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21036 |
if ac_fn_c_try_link "$LINENO" |
| 21037 |
then : |
| 21038 |
mhd_cv_cc_cfl_supp__Wdeclaration_after_statement="no" |
| 21039 |
else case e in #( |
| 21040 |
e) # Compile and link failed with test flag removed as well |
| 21041 |
CFLAGS="${CFLAGS_ac} -Wdeclaration-after-statement ${mhd_check_cc_flag_save_CFLAGS}" |
| 21042 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21043 |
if ac_fn_c_try_link "$LINENO" |
| 21044 |
then : |
| 21045 |
mhd_cv_cc_cfl_supp__Wdeclaration_after_statement="yes" |
| 21046 |
else case e in #( |
| 21047 |
e) mhd_cv_cc_cfl_supp__Wdeclaration_after_statement="no" ;; |
| 21048 |
esac |
| 21049 |
fi |
| 21050 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21051 |
conftest$ac_exeext |
| 21052 |
|
| 21053 |
;; |
| 21054 |
esac |
| 21055 |
fi |
| 21056 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21057 |
conftest$ac_exeext |
| 21058 |
|
| 21059 |
;; |
| 21060 |
esac |
| 21061 |
fi |
| 21062 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21063 |
conftest$ac_exeext |
| 21064 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21065 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21066 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21067 |
|
| 21068 |
;; |
| 21069 |
esac |
| 21070 |
fi |
| 21071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wdeclaration_after_statement" >&5 |
| 21072 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wdeclaration_after_statement" >&6; } |
| 21073 |
if test "x$mhd_cv_cc_cfl_supp__Wdeclaration_after_statement" = x"yes" |
| 21074 |
then : |
| 21075 |
if test -z "${CFLAGS_ac}" |
| 21076 |
then : |
| 21077 |
CFLAGS_ac="-Wdeclaration-after-statement" |
| 21078 |
else case e in #( |
| 21079 |
e) CFLAGS_ac="${CFLAGS_ac} -Wdeclaration-after-statement" ;; |
| 21080 |
esac |
| 21081 |
fi |
| 21082 |
|
| 21083 |
|
| 21084 |
fi |
| 21085 |
|
| 21086 |
|
| 21087 |
|
| 21088 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wimplicit flag" >&5 |
| 21089 |
printf %s "checking whether $CC supports -Wimplicit flag... " >&6; } |
| 21090 |
if test ${mhd_cv_cc_cfl_supp__Wimplicit+y} |
| 21091 |
then : |
| 21092 |
printf %s "(cached) " >&6 |
| 21093 |
else case e in #( |
| 21094 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21095 |
CFLAGS="${CFLAGS_ac} -Wimplicit ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21096 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21097 |
ac_c_werror_flag=yes |
| 21098 |
# Reuse the same source for all the checks here |
| 21099 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21100 |
/* end confdefs.h. */ |
| 21101 |
|
| 21102 |
int main(void) |
| 21103 |
{ |
| 21104 |
return 0; |
| 21105 |
} |
| 21106 |
|
| 21107 |
_ACEOF |
| 21108 |
if ac_fn_c_try_link "$LINENO" |
| 21109 |
then : |
| 21110 |
mhd_cv_cc_cfl_supp__Wimplicit="yes" |
| 21111 |
else case e in #( |
| 21112 |
e) # Compile and link failed with test flag added |
| 21113 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21114 |
if ac_fn_c_try_link "$LINENO" |
| 21115 |
then : |
| 21116 |
mhd_cv_cc_cfl_supp__Wimplicit="no" |
| 21117 |
else case e in #( |
| 21118 |
e) # Compile and link failed with test flag removed as well |
| 21119 |
CFLAGS="${CFLAGS_ac} -Wimplicit ${mhd_check_cc_flag_save_CFLAGS}" |
| 21120 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21121 |
if ac_fn_c_try_link "$LINENO" |
| 21122 |
then : |
| 21123 |
mhd_cv_cc_cfl_supp__Wimplicit="yes" |
| 21124 |
else case e in #( |
| 21125 |
e) mhd_cv_cc_cfl_supp__Wimplicit="no" ;; |
| 21126 |
esac |
| 21127 |
fi |
| 21128 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21129 |
conftest$ac_exeext |
| 21130 |
|
| 21131 |
;; |
| 21132 |
esac |
| 21133 |
fi |
| 21134 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21135 |
conftest$ac_exeext |
| 21136 |
|
| 21137 |
;; |
| 21138 |
esac |
| 21139 |
fi |
| 21140 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21141 |
conftest$ac_exeext |
| 21142 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21143 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21144 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21145 |
|
| 21146 |
;; |
| 21147 |
esac |
| 21148 |
fi |
| 21149 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wimplicit" >&5 |
| 21150 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wimplicit" >&6; } |
| 21151 |
if test "x$mhd_cv_cc_cfl_supp__Wimplicit" = x"yes" |
| 21152 |
then : |
| 21153 |
if test -z "${CFLAGS_ac}" |
| 21154 |
then : |
| 21155 |
CFLAGS_ac="-Wimplicit" |
| 21156 |
else case e in #( |
| 21157 |
e) CFLAGS_ac="${CFLAGS_ac} -Wimplicit" ;; |
| 21158 |
esac |
| 21159 |
fi |
| 21160 |
|
| 21161 |
|
| 21162 |
fi |
| 21163 |
|
| 21164 |
|
| 21165 |
|
| 21166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnested-externs flag" >&5 |
| 21167 |
printf %s "checking whether $CC supports -Wnested-externs flag... " >&6; } |
| 21168 |
if test ${mhd_cv_cc_cfl_supp__Wnested_externs+y} |
| 21169 |
then : |
| 21170 |
printf %s "(cached) " >&6 |
| 21171 |
else case e in #( |
| 21172 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21173 |
CFLAGS="${CFLAGS_ac} -Wnested-externs ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21174 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21175 |
ac_c_werror_flag=yes |
| 21176 |
# Reuse the same source for all the checks here |
| 21177 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21178 |
/* end confdefs.h. */ |
| 21179 |
|
| 21180 |
int main(void) |
| 21181 |
{ |
| 21182 |
return 0; |
| 21183 |
} |
| 21184 |
|
| 21185 |
_ACEOF |
| 21186 |
if ac_fn_c_try_link "$LINENO" |
| 21187 |
then : |
| 21188 |
mhd_cv_cc_cfl_supp__Wnested_externs="yes" |
| 21189 |
else case e in #( |
| 21190 |
e) # Compile and link failed with test flag added |
| 21191 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21192 |
if ac_fn_c_try_link "$LINENO" |
| 21193 |
then : |
| 21194 |
mhd_cv_cc_cfl_supp__Wnested_externs="no" |
| 21195 |
else case e in #( |
| 21196 |
e) # Compile and link failed with test flag removed as well |
| 21197 |
CFLAGS="${CFLAGS_ac} -Wnested-externs ${mhd_check_cc_flag_save_CFLAGS}" |
| 21198 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21199 |
if ac_fn_c_try_link "$LINENO" |
| 21200 |
then : |
| 21201 |
mhd_cv_cc_cfl_supp__Wnested_externs="yes" |
| 21202 |
else case e in #( |
| 21203 |
e) mhd_cv_cc_cfl_supp__Wnested_externs="no" ;; |
| 21204 |
esac |
| 21205 |
fi |
| 21206 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21207 |
conftest$ac_exeext |
| 21208 |
|
| 21209 |
;; |
| 21210 |
esac |
| 21211 |
fi |
| 21212 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21213 |
conftest$ac_exeext |
| 21214 |
|
| 21215 |
;; |
| 21216 |
esac |
| 21217 |
fi |
| 21218 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21219 |
conftest$ac_exeext |
| 21220 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21221 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21222 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21223 |
|
| 21224 |
;; |
| 21225 |
esac |
| 21226 |
fi |
| 21227 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnested_externs" >&5 |
| 21228 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnested_externs" >&6; } |
| 21229 |
if test "x$mhd_cv_cc_cfl_supp__Wnested_externs" = x"yes" |
| 21230 |
then : |
| 21231 |
if test -z "${CFLAGS_ac}" |
| 21232 |
then : |
| 21233 |
CFLAGS_ac="-Wnested-externs" |
| 21234 |
else case e in #( |
| 21235 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnested-externs" ;; |
| 21236 |
esac |
| 21237 |
fi |
| 21238 |
|
| 21239 |
|
| 21240 |
fi |
| 21241 |
|
| 21242 |
|
| 21243 |
|
| 21244 |
|
| 21245 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wredundant-decls flag" >&5 |
| 21246 |
printf %s "checking whether $CC supports -Wredundant-decls flag... " >&6; } |
| 21247 |
if test ${mhd_cv_cc_cfl_supp__Wredundant_decls+y} |
| 21248 |
then : |
| 21249 |
printf %s "(cached) " >&6 |
| 21250 |
else case e in #( |
| 21251 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21252 |
CFLAGS="${CFLAGS_ac} -Wredundant-decls ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21253 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21254 |
ac_c_werror_flag=yes |
| 21255 |
# Reuse the same source for all the checks here |
| 21256 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21257 |
/* end confdefs.h. */ |
| 21258 |
|
| 21259 |
int main(void) |
| 21260 |
{ |
| 21261 |
return 0; |
| 21262 |
} |
| 21263 |
|
| 21264 |
_ACEOF |
| 21265 |
if ac_fn_c_try_link "$LINENO" |
| 21266 |
then : |
| 21267 |
mhd_cv_cc_cfl_supp__Wredundant_decls="yes" |
| 21268 |
else case e in #( |
| 21269 |
e) # Compile and link failed with test flag added |
| 21270 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21271 |
if ac_fn_c_try_link "$LINENO" |
| 21272 |
then : |
| 21273 |
mhd_cv_cc_cfl_supp__Wredundant_decls="no" |
| 21274 |
else case e in #( |
| 21275 |
e) # Compile and link failed with test flag removed as well |
| 21276 |
CFLAGS="${CFLAGS_ac} -Wredundant-decls ${mhd_check_cc_flag_save_CFLAGS}" |
| 21277 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21278 |
if ac_fn_c_try_link "$LINENO" |
| 21279 |
then : |
| 21280 |
mhd_cv_cc_cfl_supp__Wredundant_decls="yes" |
| 21281 |
else case e in #( |
| 21282 |
e) mhd_cv_cc_cfl_supp__Wredundant_decls="no" ;; |
| 21283 |
esac |
| 21284 |
fi |
| 21285 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21286 |
conftest$ac_exeext |
| 21287 |
|
| 21288 |
;; |
| 21289 |
esac |
| 21290 |
fi |
| 21291 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21292 |
conftest$ac_exeext |
| 21293 |
|
| 21294 |
;; |
| 21295 |
esac |
| 21296 |
fi |
| 21297 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21298 |
conftest$ac_exeext |
| 21299 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21300 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21301 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21302 |
|
| 21303 |
;; |
| 21304 |
esac |
| 21305 |
fi |
| 21306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wredundant_decls" >&5 |
| 21307 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wredundant_decls" >&6; } |
| 21308 |
if test "x$mhd_cv_cc_cfl_supp__Wredundant_decls" = x"yes" |
| 21309 |
then : |
| 21310 |
if test -z "${CFLAGS_ac}" |
| 21311 |
then : |
| 21312 |
CFLAGS_ac="-Wredundant-decls" |
| 21313 |
else case e in #( |
| 21314 |
e) CFLAGS_ac="${CFLAGS_ac} -Wredundant-decls" ;; |
| 21315 |
esac |
| 21316 |
fi |
| 21317 |
|
| 21318 |
|
| 21319 |
fi |
| 21320 |
|
| 21321 |
|
| 21322 |
|
| 21323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wtrampolines flag" >&5 |
| 21324 |
printf %s "checking whether $CC supports -Wtrampolines flag... " >&6; } |
| 21325 |
if test ${mhd_cv_cc_cfl_supp__Wtrampolines+y} |
| 21326 |
then : |
| 21327 |
printf %s "(cached) " >&6 |
| 21328 |
else case e in #( |
| 21329 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21330 |
CFLAGS="${CFLAGS_ac} -Wtrampolines ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21331 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21332 |
ac_c_werror_flag=yes |
| 21333 |
# Reuse the same source for all the checks here |
| 21334 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21335 |
/* end confdefs.h. */ |
| 21336 |
|
| 21337 |
int main(void) |
| 21338 |
{ |
| 21339 |
return 0; |
| 21340 |
} |
| 21341 |
|
| 21342 |
_ACEOF |
| 21343 |
if ac_fn_c_try_link "$LINENO" |
| 21344 |
then : |
| 21345 |
mhd_cv_cc_cfl_supp__Wtrampolines="yes" |
| 21346 |
else case e in #( |
| 21347 |
e) # Compile and link failed with test flag added |
| 21348 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21349 |
if ac_fn_c_try_link "$LINENO" |
| 21350 |
then : |
| 21351 |
mhd_cv_cc_cfl_supp__Wtrampolines="no" |
| 21352 |
else case e in #( |
| 21353 |
e) # Compile and link failed with test flag removed as well |
| 21354 |
CFLAGS="${CFLAGS_ac} -Wtrampolines ${mhd_check_cc_flag_save_CFLAGS}" |
| 21355 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21356 |
if ac_fn_c_try_link "$LINENO" |
| 21357 |
then : |
| 21358 |
mhd_cv_cc_cfl_supp__Wtrampolines="yes" |
| 21359 |
else case e in #( |
| 21360 |
e) mhd_cv_cc_cfl_supp__Wtrampolines="no" ;; |
| 21361 |
esac |
| 21362 |
fi |
| 21363 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21364 |
conftest$ac_exeext |
| 21365 |
|
| 21366 |
;; |
| 21367 |
esac |
| 21368 |
fi |
| 21369 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21370 |
conftest$ac_exeext |
| 21371 |
|
| 21372 |
;; |
| 21373 |
esac |
| 21374 |
fi |
| 21375 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21376 |
conftest$ac_exeext |
| 21377 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21378 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21379 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21380 |
|
| 21381 |
;; |
| 21382 |
esac |
| 21383 |
fi |
| 21384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wtrampolines" >&5 |
| 21385 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wtrampolines" >&6; } |
| 21386 |
if test "x$mhd_cv_cc_cfl_supp__Wtrampolines" = x"yes" |
| 21387 |
then : |
| 21388 |
if test -z "${CFLAGS_ac}" |
| 21389 |
then : |
| 21390 |
CFLAGS_ac="-Wtrampolines" |
| 21391 |
else case e in #( |
| 21392 |
e) CFLAGS_ac="${CFLAGS_ac} -Wtrampolines" ;; |
| 21393 |
esac |
| 21394 |
fi |
| 21395 |
|
| 21396 |
|
| 21397 |
fi |
| 21398 |
|
| 21399 |
|
| 21400 |
|
| 21401 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunsafe-loop-optimizations flag" >&5 |
| 21402 |
printf %s "checking whether $CC supports -Wunsafe-loop-optimizations flag... " >&6; } |
| 21403 |
if test ${mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations+y} |
| 21404 |
then : |
| 21405 |
printf %s "(cached) " >&6 |
| 21406 |
else case e in #( |
| 21407 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21408 |
CFLAGS="${CFLAGS_ac} -Wunsafe-loop-optimizations ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21409 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21410 |
ac_c_werror_flag=yes |
| 21411 |
# Reuse the same source for all the checks here |
| 21412 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21413 |
/* end confdefs.h. */ |
| 21414 |
|
| 21415 |
int main(void) |
| 21416 |
{ |
| 21417 |
return 0; |
| 21418 |
} |
| 21419 |
|
| 21420 |
_ACEOF |
| 21421 |
if ac_fn_c_try_link "$LINENO" |
| 21422 |
then : |
| 21423 |
mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations="yes" |
| 21424 |
else case e in #( |
| 21425 |
e) # Compile and link failed with test flag added |
| 21426 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21427 |
if ac_fn_c_try_link "$LINENO" |
| 21428 |
then : |
| 21429 |
mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations="no" |
| 21430 |
else case e in #( |
| 21431 |
e) # Compile and link failed with test flag removed as well |
| 21432 |
CFLAGS="${CFLAGS_ac} -Wunsafe-loop-optimizations ${mhd_check_cc_flag_save_CFLAGS}" |
| 21433 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21434 |
if ac_fn_c_try_link "$LINENO" |
| 21435 |
then : |
| 21436 |
mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations="yes" |
| 21437 |
else case e in #( |
| 21438 |
e) mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations="no" ;; |
| 21439 |
esac |
| 21440 |
fi |
| 21441 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21442 |
conftest$ac_exeext |
| 21443 |
|
| 21444 |
;; |
| 21445 |
esac |
| 21446 |
fi |
| 21447 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21448 |
conftest$ac_exeext |
| 21449 |
|
| 21450 |
;; |
| 21451 |
esac |
| 21452 |
fi |
| 21453 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21454 |
conftest$ac_exeext |
| 21455 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21456 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21457 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21458 |
|
| 21459 |
;; |
| 21460 |
esac |
| 21461 |
fi |
| 21462 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations" >&5 |
| 21463 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations" >&6; } |
| 21464 |
if test "x$mhd_cv_cc_cfl_supp__Wunsafe_loop_optimizations" = x"yes" |
| 21465 |
then : |
| 21466 |
if test -z "${CFLAGS_ac}" |
| 21467 |
then : |
| 21468 |
CFLAGS_ac="-Wunsafe-loop-optimizations" |
| 21469 |
else case e in #( |
| 21470 |
e) CFLAGS_ac="${CFLAGS_ac} -Wunsafe-loop-optimizations" ;; |
| 21471 |
esac |
| 21472 |
fi |
| 21473 |
|
| 21474 |
|
| 21475 |
fi |
| 21476 |
|
| 21477 |
|
| 21478 |
|
| 21479 |
|
| 21480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpoison-system-directories flag" >&5 |
| 21481 |
printf %s "checking whether $CC supports -Wpoison-system-directories flag... " >&6; } |
| 21482 |
if test ${mhd_cv_cc_cfl_supp__Wpoison_system_directories+y} |
| 21483 |
then : |
| 21484 |
printf %s "(cached) " >&6 |
| 21485 |
else case e in #( |
| 21486 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21487 |
CFLAGS="${CFLAGS_ac} -Wpoison-system-directories ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21488 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21489 |
ac_c_werror_flag=yes |
| 21490 |
# Reuse the same source for all the checks here |
| 21491 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21492 |
/* end confdefs.h. */ |
| 21493 |
|
| 21494 |
int main(void) |
| 21495 |
{ |
| 21496 |
return 0; |
| 21497 |
} |
| 21498 |
|
| 21499 |
_ACEOF |
| 21500 |
if ac_fn_c_try_link "$LINENO" |
| 21501 |
then : |
| 21502 |
mhd_cv_cc_cfl_supp__Wpoison_system_directories="yes" |
| 21503 |
else case e in #( |
| 21504 |
e) # Compile and link failed with test flag added |
| 21505 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21506 |
if ac_fn_c_try_link "$LINENO" |
| 21507 |
then : |
| 21508 |
mhd_cv_cc_cfl_supp__Wpoison_system_directories="no" |
| 21509 |
else case e in #( |
| 21510 |
e) # Compile and link failed with test flag removed as well |
| 21511 |
CFLAGS="${CFLAGS_ac} -Wpoison-system-directories ${mhd_check_cc_flag_save_CFLAGS}" |
| 21512 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21513 |
if ac_fn_c_try_link "$LINENO" |
| 21514 |
then : |
| 21515 |
mhd_cv_cc_cfl_supp__Wpoison_system_directories="yes" |
| 21516 |
else case e in #( |
| 21517 |
e) mhd_cv_cc_cfl_supp__Wpoison_system_directories="no" ;; |
| 21518 |
esac |
| 21519 |
fi |
| 21520 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21521 |
conftest$ac_exeext |
| 21522 |
|
| 21523 |
;; |
| 21524 |
esac |
| 21525 |
fi |
| 21526 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21527 |
conftest$ac_exeext |
| 21528 |
|
| 21529 |
;; |
| 21530 |
esac |
| 21531 |
fi |
| 21532 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21533 |
conftest$ac_exeext |
| 21534 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21535 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21536 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21537 |
|
| 21538 |
;; |
| 21539 |
esac |
| 21540 |
fi |
| 21541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wpoison_system_directories" >&5 |
| 21542 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wpoison_system_directories" >&6; } |
| 21543 |
if test "x$mhd_cv_cc_cfl_supp__Wpoison_system_directories" = x"yes" |
| 21544 |
then : |
| 21545 |
if test -z "${CFLAGS_ac}" |
| 21546 |
then : |
| 21547 |
CFLAGS_ac="-Wpoison-system-directories" |
| 21548 |
else case e in #( |
| 21549 |
e) CFLAGS_ac="${CFLAGS_ac} -Wpoison-system-directories" ;; |
| 21550 |
esac |
| 21551 |
fi |
| 21552 |
|
| 21553 |
|
| 21554 |
fi |
| 21555 |
|
| 21556 |
|
| 21557 |
|
| 21558 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 21559 |
LDFLAGS="${user_LDFLAGS}" |
| 21560 |
|
| 21561 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--warn-common flag" >&5 |
| 21562 |
printf %s "checking whether $CC supports -Wl,--warn-common flag... " >&6; } |
| 21563 |
if test ${mhd_cv_cc_lfl_supp__Wl___warn_common+y} |
| 21564 |
then : |
| 21565 |
printf %s "(cached) " >&6 |
| 21566 |
else case e in #( |
| 21567 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 21568 |
LDFLAGS="${LDFLAGS_ac} -Wl,--warn-common ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21569 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21570 |
ac_c_werror_flag=yes |
| 21571 |
# Reuse the same source for all the checks here |
| 21572 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21573 |
/* end confdefs.h. */ |
| 21574 |
|
| 21575 |
int main(void) |
| 21576 |
{ |
| 21577 |
return 0; |
| 21578 |
} |
| 21579 |
|
| 21580 |
_ACEOF |
| 21581 |
if ac_fn_c_try_link "$LINENO" |
| 21582 |
then : |
| 21583 |
mhd_cv_cc_lfl_supp__Wl___warn_common="yes" |
| 21584 |
else case e in #( |
| 21585 |
e) # Compile and link failed with test flag added |
| 21586 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21587 |
if ac_fn_c_try_link "$LINENO" |
| 21588 |
then : |
| 21589 |
mhd_cv_cc_lfl_supp__Wl___warn_common="no" |
| 21590 |
else case e in #( |
| 21591 |
e) # Compile and link failed with test flag removed as well |
| 21592 |
LDFLAGS="${LDFLAGS_ac} -Wl,--warn-common ${mhd_check_cc_flag_save_LDFLAGS}" |
| 21593 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21594 |
if ac_fn_c_try_link "$LINENO" |
| 21595 |
then : |
| 21596 |
mhd_cv_cc_lfl_supp__Wl___warn_common="yes" |
| 21597 |
else case e in #( |
| 21598 |
e) mhd_cv_cc_lfl_supp__Wl___warn_common="no" ;; |
| 21599 |
esac |
| 21600 |
fi |
| 21601 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21602 |
conftest$ac_exeext |
| 21603 |
|
| 21604 |
;; |
| 21605 |
esac |
| 21606 |
fi |
| 21607 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21608 |
conftest$ac_exeext |
| 21609 |
|
| 21610 |
;; |
| 21611 |
esac |
| 21612 |
fi |
| 21613 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21614 |
conftest$ac_exeext |
| 21615 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21616 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 21617 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 21618 |
|
| 21619 |
;; |
| 21620 |
esac |
| 21621 |
fi |
| 21622 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___warn_common" >&5 |
| 21623 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___warn_common" >&6; } |
| 21624 |
if test "x$mhd_cv_cc_lfl_supp__Wl___warn_common" = x"yes" |
| 21625 |
then : |
| 21626 |
if test -z "${LDFLAGS_ac}" |
| 21627 |
then : |
| 21628 |
LDFLAGS_ac="-Wl,--warn-common" |
| 21629 |
else case e in #( |
| 21630 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--warn-common" ;; |
| 21631 |
esac |
| 21632 |
fi |
| 21633 |
|
| 21634 |
|
| 21635 |
fi |
| 21636 |
|
| 21637 |
|
| 21638 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 21639 |
|
| 21640 |
;; |
| 21641 |
esac |
| 21642 |
fi |
| 21643 |
case ${enable_build_type} in #( |
| 21644 |
debug|debugger) : |
| 21645 |
# Debug build or build for walking with debugger |
| 21646 |
CFLAGS="${user_CFLAGS}" |
| 21647 |
|
| 21648 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ggdb3 flag" >&5 |
| 21649 |
printf %s "checking whether $CC supports -ggdb3 flag... " >&6; } |
| 21650 |
if test ${mhd_cv_cc_cfl_supp__ggdb3+y} |
| 21651 |
then : |
| 21652 |
printf %s "(cached) " >&6 |
| 21653 |
else case e in #( |
| 21654 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21655 |
CFLAGS="${CFLAGS_ac} -ggdb3 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21656 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21657 |
ac_c_werror_flag=yes |
| 21658 |
# Reuse the same source for all the checks here |
| 21659 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21660 |
/* end confdefs.h. */ |
| 21661 |
|
| 21662 |
int main(void) |
| 21663 |
{ |
| 21664 |
return 0; |
| 21665 |
} |
| 21666 |
|
| 21667 |
_ACEOF |
| 21668 |
if ac_fn_c_try_link "$LINENO" |
| 21669 |
then : |
| 21670 |
mhd_cv_cc_cfl_supp__ggdb3="yes" |
| 21671 |
else case e in #( |
| 21672 |
e) # Compile and link failed with test flag added |
| 21673 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21674 |
if ac_fn_c_try_link "$LINENO" |
| 21675 |
then : |
| 21676 |
mhd_cv_cc_cfl_supp__ggdb3="no" |
| 21677 |
else case e in #( |
| 21678 |
e) # Compile and link failed with test flag removed as well |
| 21679 |
CFLAGS="${CFLAGS_ac} -ggdb3 ${mhd_check_cc_flag_save_CFLAGS}" |
| 21680 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21681 |
if ac_fn_c_try_link "$LINENO" |
| 21682 |
then : |
| 21683 |
mhd_cv_cc_cfl_supp__ggdb3="yes" |
| 21684 |
else case e in #( |
| 21685 |
e) mhd_cv_cc_cfl_supp__ggdb3="no" ;; |
| 21686 |
esac |
| 21687 |
fi |
| 21688 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21689 |
conftest$ac_exeext |
| 21690 |
|
| 21691 |
;; |
| 21692 |
esac |
| 21693 |
fi |
| 21694 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21695 |
conftest$ac_exeext |
| 21696 |
|
| 21697 |
;; |
| 21698 |
esac |
| 21699 |
fi |
| 21700 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21701 |
conftest$ac_exeext |
| 21702 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21703 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21704 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21705 |
|
| 21706 |
;; |
| 21707 |
esac |
| 21708 |
fi |
| 21709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ggdb3" >&5 |
| 21710 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ggdb3" >&6; } |
| 21711 |
if test "x$mhd_cv_cc_cfl_supp__ggdb3" = x"yes" |
| 21712 |
then : |
| 21713 |
if test -z "${CFLAGS_ac}" |
| 21714 |
then : |
| 21715 |
CFLAGS_ac="-ggdb3" |
| 21716 |
else case e in #( |
| 21717 |
e) CFLAGS_ac="${CFLAGS_ac} -ggdb3" ;; |
| 21718 |
esac |
| 21719 |
fi |
| 21720 |
|
| 21721 |
|
| 21722 |
else case e in #( |
| 21723 |
e) |
| 21724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g3 flag" >&5 |
| 21725 |
printf %s "checking whether $CC supports -g3 flag... " >&6; } |
| 21726 |
if test ${mhd_cv_cc_cfl_supp__g3+y} |
| 21727 |
then : |
| 21728 |
printf %s "(cached) " >&6 |
| 21729 |
else case e in #( |
| 21730 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21731 |
CFLAGS="${CFLAGS_ac} -g3 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21732 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21733 |
ac_c_werror_flag=yes |
| 21734 |
# Reuse the same source for all the checks here |
| 21735 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21736 |
/* end confdefs.h. */ |
| 21737 |
|
| 21738 |
int main(void) |
| 21739 |
{ |
| 21740 |
return 0; |
| 21741 |
} |
| 21742 |
|
| 21743 |
_ACEOF |
| 21744 |
if ac_fn_c_try_link "$LINENO" |
| 21745 |
then : |
| 21746 |
mhd_cv_cc_cfl_supp__g3="yes" |
| 21747 |
else case e in #( |
| 21748 |
e) # Compile and link failed with test flag added |
| 21749 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21750 |
if ac_fn_c_try_link "$LINENO" |
| 21751 |
then : |
| 21752 |
mhd_cv_cc_cfl_supp__g3="no" |
| 21753 |
else case e in #( |
| 21754 |
e) # Compile and link failed with test flag removed as well |
| 21755 |
CFLAGS="${CFLAGS_ac} -g3 ${mhd_check_cc_flag_save_CFLAGS}" |
| 21756 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21757 |
if ac_fn_c_try_link "$LINENO" |
| 21758 |
then : |
| 21759 |
mhd_cv_cc_cfl_supp__g3="yes" |
| 21760 |
else case e in #( |
| 21761 |
e) mhd_cv_cc_cfl_supp__g3="no" ;; |
| 21762 |
esac |
| 21763 |
fi |
| 21764 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21765 |
conftest$ac_exeext |
| 21766 |
|
| 21767 |
;; |
| 21768 |
esac |
| 21769 |
fi |
| 21770 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21771 |
conftest$ac_exeext |
| 21772 |
|
| 21773 |
;; |
| 21774 |
esac |
| 21775 |
fi |
| 21776 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21777 |
conftest$ac_exeext |
| 21778 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21779 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21780 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21781 |
|
| 21782 |
;; |
| 21783 |
esac |
| 21784 |
fi |
| 21785 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__g3" >&5 |
| 21786 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__g3" >&6; } |
| 21787 |
if test "x$mhd_cv_cc_cfl_supp__g3" = x"yes" |
| 21788 |
then : |
| 21789 |
if test -z "${CFLAGS_ac}" |
| 21790 |
then : |
| 21791 |
CFLAGS_ac="-g3" |
| 21792 |
else case e in #( |
| 21793 |
e) CFLAGS_ac="${CFLAGS_ac} -g3" ;; |
| 21794 |
esac |
| 21795 |
fi |
| 21796 |
|
| 21797 |
|
| 21798 |
else case e in #( |
| 21799 |
e) |
| 21800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ggdb flag" >&5 |
| 21801 |
printf %s "checking whether $CC supports -ggdb flag... " >&6; } |
| 21802 |
if test ${mhd_cv_cc_cfl_supp__ggdb+y} |
| 21803 |
then : |
| 21804 |
printf %s "(cached) " >&6 |
| 21805 |
else case e in #( |
| 21806 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21807 |
CFLAGS="${CFLAGS_ac} -ggdb ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21808 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21809 |
ac_c_werror_flag=yes |
| 21810 |
# Reuse the same source for all the checks here |
| 21811 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21812 |
/* end confdefs.h. */ |
| 21813 |
|
| 21814 |
int main(void) |
| 21815 |
{ |
| 21816 |
return 0; |
| 21817 |
} |
| 21818 |
|
| 21819 |
_ACEOF |
| 21820 |
if ac_fn_c_try_link "$LINENO" |
| 21821 |
then : |
| 21822 |
mhd_cv_cc_cfl_supp__ggdb="yes" |
| 21823 |
else case e in #( |
| 21824 |
e) # Compile and link failed with test flag added |
| 21825 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21826 |
if ac_fn_c_try_link "$LINENO" |
| 21827 |
then : |
| 21828 |
mhd_cv_cc_cfl_supp__ggdb="no" |
| 21829 |
else case e in #( |
| 21830 |
e) # Compile and link failed with test flag removed as well |
| 21831 |
CFLAGS="${CFLAGS_ac} -ggdb ${mhd_check_cc_flag_save_CFLAGS}" |
| 21832 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21833 |
if ac_fn_c_try_link "$LINENO" |
| 21834 |
then : |
| 21835 |
mhd_cv_cc_cfl_supp__ggdb="yes" |
| 21836 |
else case e in #( |
| 21837 |
e) mhd_cv_cc_cfl_supp__ggdb="no" ;; |
| 21838 |
esac |
| 21839 |
fi |
| 21840 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21841 |
conftest$ac_exeext |
| 21842 |
|
| 21843 |
;; |
| 21844 |
esac |
| 21845 |
fi |
| 21846 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21847 |
conftest$ac_exeext |
| 21848 |
|
| 21849 |
;; |
| 21850 |
esac |
| 21851 |
fi |
| 21852 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21853 |
conftest$ac_exeext |
| 21854 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21855 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21856 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21857 |
|
| 21858 |
;; |
| 21859 |
esac |
| 21860 |
fi |
| 21861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ggdb" >&5 |
| 21862 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ggdb" >&6; } |
| 21863 |
if test "x$mhd_cv_cc_cfl_supp__ggdb" = x"yes" |
| 21864 |
then : |
| 21865 |
if test -z "${CFLAGS_ac}" |
| 21866 |
then : |
| 21867 |
CFLAGS_ac="-ggdb" |
| 21868 |
else case e in #( |
| 21869 |
e) CFLAGS_ac="${CFLAGS_ac} -ggdb" ;; |
| 21870 |
esac |
| 21871 |
fi |
| 21872 |
|
| 21873 |
|
| 21874 |
else case e in #( |
| 21875 |
e) |
| 21876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -g flag" >&5 |
| 21877 |
printf %s "checking whether $CC supports -g flag... " >&6; } |
| 21878 |
if test ${mhd_cv_cc_cfl_supp__g+y} |
| 21879 |
then : |
| 21880 |
printf %s "(cached) " >&6 |
| 21881 |
else case e in #( |
| 21882 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21883 |
CFLAGS="${CFLAGS_ac} -g ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21884 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21885 |
ac_c_werror_flag=yes |
| 21886 |
# Reuse the same source for all the checks here |
| 21887 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21888 |
/* end confdefs.h. */ |
| 21889 |
|
| 21890 |
int main(void) |
| 21891 |
{ |
| 21892 |
return 0; |
| 21893 |
} |
| 21894 |
|
| 21895 |
_ACEOF |
| 21896 |
if ac_fn_c_try_link "$LINENO" |
| 21897 |
then : |
| 21898 |
mhd_cv_cc_cfl_supp__g="yes" |
| 21899 |
else case e in #( |
| 21900 |
e) # Compile and link failed with test flag added |
| 21901 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21902 |
if ac_fn_c_try_link "$LINENO" |
| 21903 |
then : |
| 21904 |
mhd_cv_cc_cfl_supp__g="no" |
| 21905 |
else case e in #( |
| 21906 |
e) # Compile and link failed with test flag removed as well |
| 21907 |
CFLAGS="${CFLAGS_ac} -g ${mhd_check_cc_flag_save_CFLAGS}" |
| 21908 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21909 |
if ac_fn_c_try_link "$LINENO" |
| 21910 |
then : |
| 21911 |
mhd_cv_cc_cfl_supp__g="yes" |
| 21912 |
else case e in #( |
| 21913 |
e) mhd_cv_cc_cfl_supp__g="no" ;; |
| 21914 |
esac |
| 21915 |
fi |
| 21916 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21917 |
conftest$ac_exeext |
| 21918 |
|
| 21919 |
;; |
| 21920 |
esac |
| 21921 |
fi |
| 21922 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21923 |
conftest$ac_exeext |
| 21924 |
|
| 21925 |
;; |
| 21926 |
esac |
| 21927 |
fi |
| 21928 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21929 |
conftest$ac_exeext |
| 21930 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21931 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 21932 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 21933 |
|
| 21934 |
;; |
| 21935 |
esac |
| 21936 |
fi |
| 21937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__g" >&5 |
| 21938 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__g" >&6; } |
| 21939 |
if test "x$mhd_cv_cc_cfl_supp__g" = x"yes" |
| 21940 |
then : |
| 21941 |
if test -z "${CFLAGS_ac}" |
| 21942 |
then : |
| 21943 |
CFLAGS_ac="-g" |
| 21944 |
else case e in #( |
| 21945 |
e) CFLAGS_ac="${CFLAGS_ac} -g" ;; |
| 21946 |
esac |
| 21947 |
fi |
| 21948 |
|
| 21949 |
|
| 21950 |
fi |
| 21951 |
|
| 21952 |
;; |
| 21953 |
esac |
| 21954 |
fi |
| 21955 |
|
| 21956 |
;; |
| 21957 |
esac |
| 21958 |
fi |
| 21959 |
|
| 21960 |
;; |
| 21961 |
esac |
| 21962 |
fi |
| 21963 |
|
| 21964 |
|
| 21965 |
|
| 21966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra flag" >&5 |
| 21967 |
printf %s "checking whether $CC supports -Wextra flag... " >&6; } |
| 21968 |
if test ${mhd_cv_cc_cfl_supp__Wextra+y} |
| 21969 |
then : |
| 21970 |
printf %s "(cached) " >&6 |
| 21971 |
else case e in #( |
| 21972 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 21973 |
CFLAGS="${CFLAGS_ac} -Wextra ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21974 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 21975 |
ac_c_werror_flag=yes |
| 21976 |
# Reuse the same source for all the checks here |
| 21977 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21978 |
/* end confdefs.h. */ |
| 21979 |
|
| 21980 |
int main(void) |
| 21981 |
{ |
| 21982 |
return 0; |
| 21983 |
} |
| 21984 |
|
| 21985 |
_ACEOF |
| 21986 |
if ac_fn_c_try_link "$LINENO" |
| 21987 |
then : |
| 21988 |
mhd_cv_cc_cfl_supp__Wextra="yes" |
| 21989 |
else case e in #( |
| 21990 |
e) # Compile and link failed with test flag added |
| 21991 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 21992 |
if ac_fn_c_try_link "$LINENO" |
| 21993 |
then : |
| 21994 |
mhd_cv_cc_cfl_supp__Wextra="no" |
| 21995 |
else case e in #( |
| 21996 |
e) # Compile and link failed with test flag removed as well |
| 21997 |
CFLAGS="${CFLAGS_ac} -Wextra ${mhd_check_cc_flag_save_CFLAGS}" |
| 21998 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 21999 |
if ac_fn_c_try_link "$LINENO" |
| 22000 |
then : |
| 22001 |
mhd_cv_cc_cfl_supp__Wextra="yes" |
| 22002 |
else case e in #( |
| 22003 |
e) mhd_cv_cc_cfl_supp__Wextra="no" ;; |
| 22004 |
esac |
| 22005 |
fi |
| 22006 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22007 |
conftest$ac_exeext |
| 22008 |
|
| 22009 |
;; |
| 22010 |
esac |
| 22011 |
fi |
| 22012 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22013 |
conftest$ac_exeext |
| 22014 |
|
| 22015 |
;; |
| 22016 |
esac |
| 22017 |
fi |
| 22018 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22019 |
conftest$ac_exeext |
| 22020 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22021 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22022 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22023 |
|
| 22024 |
;; |
| 22025 |
esac |
| 22026 |
fi |
| 22027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wextra" >&5 |
| 22028 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wextra" >&6; } |
| 22029 |
if test "x$mhd_cv_cc_cfl_supp__Wextra" = x"yes" |
| 22030 |
then : |
| 22031 |
if test -z "${CFLAGS_ac}" |
| 22032 |
then : |
| 22033 |
CFLAGS_ac="-Wextra" |
| 22034 |
else case e in #( |
| 22035 |
e) CFLAGS_ac="${CFLAGS_ac} -Wextra" ;; |
| 22036 |
esac |
| 22037 |
fi |
| 22038 |
|
| 22039 |
|
| 22040 |
fi |
| 22041 |
|
| 22042 |
|
| 22043 |
|
| 22044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdouble-promotion flag" >&5 |
| 22045 |
printf %s "checking whether $CC supports -Wdouble-promotion flag... " >&6; } |
| 22046 |
if test ${mhd_cv_cc_cfl_supp__Wdouble_promotion+y} |
| 22047 |
then : |
| 22048 |
printf %s "(cached) " >&6 |
| 22049 |
else case e in #( |
| 22050 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22051 |
CFLAGS="${CFLAGS_ac} -Wdouble-promotion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22052 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22053 |
ac_c_werror_flag=yes |
| 22054 |
# Reuse the same source for all the checks here |
| 22055 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22056 |
/* end confdefs.h. */ |
| 22057 |
|
| 22058 |
int main(void) |
| 22059 |
{ |
| 22060 |
return 0; |
| 22061 |
} |
| 22062 |
|
| 22063 |
_ACEOF |
| 22064 |
if ac_fn_c_try_link "$LINENO" |
| 22065 |
then : |
| 22066 |
mhd_cv_cc_cfl_supp__Wdouble_promotion="yes" |
| 22067 |
else case e in #( |
| 22068 |
e) # Compile and link failed with test flag added |
| 22069 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22070 |
if ac_fn_c_try_link "$LINENO" |
| 22071 |
then : |
| 22072 |
mhd_cv_cc_cfl_supp__Wdouble_promotion="no" |
| 22073 |
else case e in #( |
| 22074 |
e) # Compile and link failed with test flag removed as well |
| 22075 |
CFLAGS="${CFLAGS_ac} -Wdouble-promotion ${mhd_check_cc_flag_save_CFLAGS}" |
| 22076 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22077 |
if ac_fn_c_try_link "$LINENO" |
| 22078 |
then : |
| 22079 |
mhd_cv_cc_cfl_supp__Wdouble_promotion="yes" |
| 22080 |
else case e in #( |
| 22081 |
e) mhd_cv_cc_cfl_supp__Wdouble_promotion="no" ;; |
| 22082 |
esac |
| 22083 |
fi |
| 22084 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22085 |
conftest$ac_exeext |
| 22086 |
|
| 22087 |
;; |
| 22088 |
esac |
| 22089 |
fi |
| 22090 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22091 |
conftest$ac_exeext |
| 22092 |
|
| 22093 |
;; |
| 22094 |
esac |
| 22095 |
fi |
| 22096 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22097 |
conftest$ac_exeext |
| 22098 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22099 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22100 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22101 |
|
| 22102 |
;; |
| 22103 |
esac |
| 22104 |
fi |
| 22105 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wdouble_promotion" >&5 |
| 22106 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wdouble_promotion" >&6; } |
| 22107 |
if test "x$mhd_cv_cc_cfl_supp__Wdouble_promotion" = x"yes" |
| 22108 |
then : |
| 22109 |
if test -z "${CFLAGS_ac}" |
| 22110 |
then : |
| 22111 |
CFLAGS_ac="-Wdouble-promotion" |
| 22112 |
else case e in #( |
| 22113 |
e) CFLAGS_ac="${CFLAGS_ac} -Wdouble-promotion" ;; |
| 22114 |
esac |
| 22115 |
fi |
| 22116 |
|
| 22117 |
|
| 22118 |
fi |
| 22119 |
|
| 22120 |
|
| 22121 |
|
| 22122 |
|
| 22123 |
{ mhd_cc_found_flag=; unset mhd_cc_found_flag;} |
| 22124 |
|
| 22125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat=2 flag" >&5 |
| 22126 |
printf %s "checking whether $CC supports -Wformat=2 flag... " >&6; } |
| 22127 |
if test ${mhd_cv_cc_cfl_supp__Wformat_2+y} |
| 22128 |
then : |
| 22129 |
printf %s "(cached) " >&6 |
| 22130 |
else case e in #( |
| 22131 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22132 |
CFLAGS="${CFLAGS_ac} -Wformat=2 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22133 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22134 |
ac_c_werror_flag=yes |
| 22135 |
# Reuse the same source for all the checks here |
| 22136 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22137 |
/* end confdefs.h. */ |
| 22138 |
|
| 22139 |
int main(void) |
| 22140 |
{ |
| 22141 |
return 0; |
| 22142 |
} |
| 22143 |
|
| 22144 |
_ACEOF |
| 22145 |
if ac_fn_c_try_link "$LINENO" |
| 22146 |
then : |
| 22147 |
mhd_cv_cc_cfl_supp__Wformat_2="yes" |
| 22148 |
else case e in #( |
| 22149 |
e) # Compile and link failed with test flag added |
| 22150 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22151 |
if ac_fn_c_try_link "$LINENO" |
| 22152 |
then : |
| 22153 |
mhd_cv_cc_cfl_supp__Wformat_2="no" |
| 22154 |
else case e in #( |
| 22155 |
e) # Compile and link failed with test flag removed as well |
| 22156 |
CFLAGS="${CFLAGS_ac} -Wformat=2 ${mhd_check_cc_flag_save_CFLAGS}" |
| 22157 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22158 |
if ac_fn_c_try_link "$LINENO" |
| 22159 |
then : |
| 22160 |
mhd_cv_cc_cfl_supp__Wformat_2="yes" |
| 22161 |
else case e in #( |
| 22162 |
e) mhd_cv_cc_cfl_supp__Wformat_2="no" ;; |
| 22163 |
esac |
| 22164 |
fi |
| 22165 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22166 |
conftest$ac_exeext |
| 22167 |
|
| 22168 |
;; |
| 22169 |
esac |
| 22170 |
fi |
| 22171 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22172 |
conftest$ac_exeext |
| 22173 |
|
| 22174 |
;; |
| 22175 |
esac |
| 22176 |
fi |
| 22177 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22178 |
conftest$ac_exeext |
| 22179 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22180 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22181 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22182 |
|
| 22183 |
;; |
| 22184 |
esac |
| 22185 |
fi |
| 22186 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_2" >&5 |
| 22187 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_2" >&6; } |
| 22188 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_2" = x"yes" |
| 22189 |
then : |
| 22190 |
if test -z "${CFLAGS_ac}" |
| 22191 |
then : |
| 22192 |
CFLAGS_ac="-Wformat=2" |
| 22193 |
else case e in #( |
| 22194 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat=2" ;; |
| 22195 |
esac |
| 22196 |
fi |
| 22197 |
|
| 22198 |
mhd_cc_found_flag="-Wformat=2" |
| 22199 |
else case e in #( |
| 22200 |
e) |
| 22201 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat flag" >&5 |
| 22202 |
printf %s "checking whether $CC supports -Wformat flag... " >&6; } |
| 22203 |
if test ${mhd_cv_cc_cfl_supp__Wformat+y} |
| 22204 |
then : |
| 22205 |
printf %s "(cached) " >&6 |
| 22206 |
else case e in #( |
| 22207 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22208 |
CFLAGS="${CFLAGS_ac} -Wformat ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22209 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22210 |
ac_c_werror_flag=yes |
| 22211 |
# Reuse the same source for all the checks here |
| 22212 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22213 |
/* end confdefs.h. */ |
| 22214 |
|
| 22215 |
int main(void) |
| 22216 |
{ |
| 22217 |
return 0; |
| 22218 |
} |
| 22219 |
|
| 22220 |
_ACEOF |
| 22221 |
if ac_fn_c_try_link "$LINENO" |
| 22222 |
then : |
| 22223 |
mhd_cv_cc_cfl_supp__Wformat="yes" |
| 22224 |
else case e in #( |
| 22225 |
e) # Compile and link failed with test flag added |
| 22226 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22227 |
if ac_fn_c_try_link "$LINENO" |
| 22228 |
then : |
| 22229 |
mhd_cv_cc_cfl_supp__Wformat="no" |
| 22230 |
else case e in #( |
| 22231 |
e) # Compile and link failed with test flag removed as well |
| 22232 |
CFLAGS="${CFLAGS_ac} -Wformat ${mhd_check_cc_flag_save_CFLAGS}" |
| 22233 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22234 |
if ac_fn_c_try_link "$LINENO" |
| 22235 |
then : |
| 22236 |
mhd_cv_cc_cfl_supp__Wformat="yes" |
| 22237 |
else case e in #( |
| 22238 |
e) mhd_cv_cc_cfl_supp__Wformat="no" ;; |
| 22239 |
esac |
| 22240 |
fi |
| 22241 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22242 |
conftest$ac_exeext |
| 22243 |
|
| 22244 |
;; |
| 22245 |
esac |
| 22246 |
fi |
| 22247 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22248 |
conftest$ac_exeext |
| 22249 |
|
| 22250 |
;; |
| 22251 |
esac |
| 22252 |
fi |
| 22253 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22254 |
conftest$ac_exeext |
| 22255 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22256 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22257 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22258 |
|
| 22259 |
;; |
| 22260 |
esac |
| 22261 |
fi |
| 22262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat" >&5 |
| 22263 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat" >&6; } |
| 22264 |
if test "x$mhd_cv_cc_cfl_supp__Wformat" = x"yes" |
| 22265 |
then : |
| 22266 |
if test -z "${CFLAGS_ac}" |
| 22267 |
then : |
| 22268 |
CFLAGS_ac="-Wformat" |
| 22269 |
else case e in #( |
| 22270 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat" ;; |
| 22271 |
esac |
| 22272 |
fi |
| 22273 |
|
| 22274 |
mhd_cc_found_flag="-Wformat" |
| 22275 |
fi |
| 22276 |
|
| 22277 |
;; |
| 22278 |
esac |
| 22279 |
fi |
| 22280 |
|
| 22281 |
|
| 22282 |
if test -n "${mhd_cc_found_flag}" |
| 22283 |
then : |
| 22284 |
|
| 22285 |
# clang produce warning when string pointer is used as a format specifier for v*printf() function |
| 22286 |
if test "x$mhd_cv_cc_clang_based" = x"yes" |
| 22287 |
then : |
| 22288 |
|
| 22289 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wno-format-nonliteral flag" >&5 |
| 22290 |
printf %s "checking whether $CC supports -Wno-format-nonliteral flag... " >&6; } |
| 22291 |
if test ${mhd_cv_cc_cfl_supp__Wno_format_nonliteral+y} |
| 22292 |
then : |
| 22293 |
printf %s "(cached) " >&6 |
| 22294 |
else case e in #( |
| 22295 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22296 |
CFLAGS="${CFLAGS_ac} -Wno-format-nonliteral ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22297 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22298 |
ac_c_werror_flag=yes |
| 22299 |
# Reuse the same source for all the checks here |
| 22300 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22301 |
/* end confdefs.h. */ |
| 22302 |
|
| 22303 |
int main(void) |
| 22304 |
{ |
| 22305 |
return 0; |
| 22306 |
} |
| 22307 |
|
| 22308 |
_ACEOF |
| 22309 |
if ac_fn_c_try_link "$LINENO" |
| 22310 |
then : |
| 22311 |
mhd_cv_cc_cfl_supp__Wno_format_nonliteral="yes" |
| 22312 |
else case e in #( |
| 22313 |
e) # Compile and link failed with test flag added |
| 22314 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22315 |
if ac_fn_c_try_link "$LINENO" |
| 22316 |
then : |
| 22317 |
mhd_cv_cc_cfl_supp__Wno_format_nonliteral="no" |
| 22318 |
else case e in #( |
| 22319 |
e) # Compile and link failed with test flag removed as well |
| 22320 |
CFLAGS="${CFLAGS_ac} -Wno-format-nonliteral ${mhd_check_cc_flag_save_CFLAGS}" |
| 22321 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22322 |
if ac_fn_c_try_link "$LINENO" |
| 22323 |
then : |
| 22324 |
mhd_cv_cc_cfl_supp__Wno_format_nonliteral="yes" |
| 22325 |
else case e in #( |
| 22326 |
e) mhd_cv_cc_cfl_supp__Wno_format_nonliteral="no" ;; |
| 22327 |
esac |
| 22328 |
fi |
| 22329 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22330 |
conftest$ac_exeext |
| 22331 |
|
| 22332 |
;; |
| 22333 |
esac |
| 22334 |
fi |
| 22335 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22336 |
conftest$ac_exeext |
| 22337 |
|
| 22338 |
;; |
| 22339 |
esac |
| 22340 |
fi |
| 22341 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22342 |
conftest$ac_exeext |
| 22343 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22344 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22345 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22346 |
|
| 22347 |
;; |
| 22348 |
esac |
| 22349 |
fi |
| 22350 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wno_format_nonliteral" >&5 |
| 22351 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wno_format_nonliteral" >&6; } |
| 22352 |
if test "x$mhd_cv_cc_cfl_supp__Wno_format_nonliteral" = x"yes" |
| 22353 |
then : |
| 22354 |
if test -z "${CFLAGS_ac}" |
| 22355 |
then : |
| 22356 |
CFLAGS_ac="-Wno-format-nonliteral" |
| 22357 |
else case e in #( |
| 22358 |
e) CFLAGS_ac="${CFLAGS_ac} -Wno-format-nonliteral" ;; |
| 22359 |
esac |
| 22360 |
fi |
| 22361 |
|
| 22362 |
|
| 22363 |
fi |
| 22364 |
|
| 22365 |
|
| 22366 |
fi |
| 22367 |
|
| 22368 |
fi |
| 22369 |
{ mhd_cc_found_flag=; unset mhd_cc_found_flag;} |
| 22370 |
|
| 22371 |
|
| 22372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-overflow flag" >&5 |
| 22373 |
printf %s "checking whether $CC supports -Wformat-overflow flag... " >&6; } |
| 22374 |
if test ${mhd_cv_cc_cfl_supp__Wformat_overflow+y} |
| 22375 |
then : |
| 22376 |
printf %s "(cached) " >&6 |
| 22377 |
else case e in #( |
| 22378 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22379 |
CFLAGS="${CFLAGS_ac} -Wformat-overflow ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22380 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22381 |
ac_c_werror_flag=yes |
| 22382 |
# Reuse the same source for all the checks here |
| 22383 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22384 |
/* end confdefs.h. */ |
| 22385 |
|
| 22386 |
int main(void) |
| 22387 |
{ |
| 22388 |
return 0; |
| 22389 |
} |
| 22390 |
|
| 22391 |
_ACEOF |
| 22392 |
if ac_fn_c_try_link "$LINENO" |
| 22393 |
then : |
| 22394 |
mhd_cv_cc_cfl_supp__Wformat_overflow="yes" |
| 22395 |
else case e in #( |
| 22396 |
e) # Compile and link failed with test flag added |
| 22397 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22398 |
if ac_fn_c_try_link "$LINENO" |
| 22399 |
then : |
| 22400 |
mhd_cv_cc_cfl_supp__Wformat_overflow="no" |
| 22401 |
else case e in #( |
| 22402 |
e) # Compile and link failed with test flag removed as well |
| 22403 |
CFLAGS="${CFLAGS_ac} -Wformat-overflow ${mhd_check_cc_flag_save_CFLAGS}" |
| 22404 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22405 |
if ac_fn_c_try_link "$LINENO" |
| 22406 |
then : |
| 22407 |
mhd_cv_cc_cfl_supp__Wformat_overflow="yes" |
| 22408 |
else case e in #( |
| 22409 |
e) mhd_cv_cc_cfl_supp__Wformat_overflow="no" ;; |
| 22410 |
esac |
| 22411 |
fi |
| 22412 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22413 |
conftest$ac_exeext |
| 22414 |
|
| 22415 |
;; |
| 22416 |
esac |
| 22417 |
fi |
| 22418 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22419 |
conftest$ac_exeext |
| 22420 |
|
| 22421 |
;; |
| 22422 |
esac |
| 22423 |
fi |
| 22424 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22425 |
conftest$ac_exeext |
| 22426 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22427 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22428 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22429 |
|
| 22430 |
;; |
| 22431 |
esac |
| 22432 |
fi |
| 22433 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_overflow" >&5 |
| 22434 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_overflow" >&6; } |
| 22435 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_overflow" = x"yes" |
| 22436 |
then : |
| 22437 |
if test -z "${CFLAGS_ac}" |
| 22438 |
then : |
| 22439 |
CFLAGS_ac="-Wformat-overflow" |
| 22440 |
else case e in #( |
| 22441 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-overflow" ;; |
| 22442 |
esac |
| 22443 |
fi |
| 22444 |
|
| 22445 |
|
| 22446 |
fi |
| 22447 |
|
| 22448 |
|
| 22449 |
|
| 22450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-truncation flag" >&5 |
| 22451 |
printf %s "checking whether $CC supports -Wformat-truncation flag... " >&6; } |
| 22452 |
if test ${mhd_cv_cc_cfl_supp__Wformat_truncation+y} |
| 22453 |
then : |
| 22454 |
printf %s "(cached) " >&6 |
| 22455 |
else case e in #( |
| 22456 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22457 |
CFLAGS="${CFLAGS_ac} -Wformat-truncation ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22458 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22459 |
ac_c_werror_flag=yes |
| 22460 |
# Reuse the same source for all the checks here |
| 22461 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22462 |
/* end confdefs.h. */ |
| 22463 |
|
| 22464 |
int main(void) |
| 22465 |
{ |
| 22466 |
return 0; |
| 22467 |
} |
| 22468 |
|
| 22469 |
_ACEOF |
| 22470 |
if ac_fn_c_try_link "$LINENO" |
| 22471 |
then : |
| 22472 |
mhd_cv_cc_cfl_supp__Wformat_truncation="yes" |
| 22473 |
else case e in #( |
| 22474 |
e) # Compile and link failed with test flag added |
| 22475 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22476 |
if ac_fn_c_try_link "$LINENO" |
| 22477 |
then : |
| 22478 |
mhd_cv_cc_cfl_supp__Wformat_truncation="no" |
| 22479 |
else case e in #( |
| 22480 |
e) # Compile and link failed with test flag removed as well |
| 22481 |
CFLAGS="${CFLAGS_ac} -Wformat-truncation ${mhd_check_cc_flag_save_CFLAGS}" |
| 22482 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22483 |
if ac_fn_c_try_link "$LINENO" |
| 22484 |
then : |
| 22485 |
mhd_cv_cc_cfl_supp__Wformat_truncation="yes" |
| 22486 |
else case e in #( |
| 22487 |
e) mhd_cv_cc_cfl_supp__Wformat_truncation="no" ;; |
| 22488 |
esac |
| 22489 |
fi |
| 22490 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22491 |
conftest$ac_exeext |
| 22492 |
|
| 22493 |
;; |
| 22494 |
esac |
| 22495 |
fi |
| 22496 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22497 |
conftest$ac_exeext |
| 22498 |
|
| 22499 |
;; |
| 22500 |
esac |
| 22501 |
fi |
| 22502 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22503 |
conftest$ac_exeext |
| 22504 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22505 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22506 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22507 |
|
| 22508 |
;; |
| 22509 |
esac |
| 22510 |
fi |
| 22511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_truncation" >&5 |
| 22512 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_truncation" >&6; } |
| 22513 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_truncation" = x"yes" |
| 22514 |
then : |
| 22515 |
if test -z "${CFLAGS_ac}" |
| 22516 |
then : |
| 22517 |
CFLAGS_ac="-Wformat-truncation" |
| 22518 |
else case e in #( |
| 22519 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-truncation" ;; |
| 22520 |
esac |
| 22521 |
fi |
| 22522 |
|
| 22523 |
|
| 22524 |
fi |
| 22525 |
|
| 22526 |
|
| 22527 |
|
| 22528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security flag" >&5 |
| 22529 |
printf %s "checking whether $CC supports -Wformat-security flag... " >&6; } |
| 22530 |
if test ${mhd_cv_cc_cfl_supp__Wformat_security+y} |
| 22531 |
then : |
| 22532 |
printf %s "(cached) " >&6 |
| 22533 |
else case e in #( |
| 22534 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22535 |
CFLAGS="${CFLAGS_ac} -Wformat-security ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22536 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22537 |
ac_c_werror_flag=yes |
| 22538 |
# Reuse the same source for all the checks here |
| 22539 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22540 |
/* end confdefs.h. */ |
| 22541 |
|
| 22542 |
int main(void) |
| 22543 |
{ |
| 22544 |
return 0; |
| 22545 |
} |
| 22546 |
|
| 22547 |
_ACEOF |
| 22548 |
if ac_fn_c_try_link "$LINENO" |
| 22549 |
then : |
| 22550 |
mhd_cv_cc_cfl_supp__Wformat_security="yes" |
| 22551 |
else case e in #( |
| 22552 |
e) # Compile and link failed with test flag added |
| 22553 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22554 |
if ac_fn_c_try_link "$LINENO" |
| 22555 |
then : |
| 22556 |
mhd_cv_cc_cfl_supp__Wformat_security="no" |
| 22557 |
else case e in #( |
| 22558 |
e) # Compile and link failed with test flag removed as well |
| 22559 |
CFLAGS="${CFLAGS_ac} -Wformat-security ${mhd_check_cc_flag_save_CFLAGS}" |
| 22560 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22561 |
if ac_fn_c_try_link "$LINENO" |
| 22562 |
then : |
| 22563 |
mhd_cv_cc_cfl_supp__Wformat_security="yes" |
| 22564 |
else case e in #( |
| 22565 |
e) mhd_cv_cc_cfl_supp__Wformat_security="no" ;; |
| 22566 |
esac |
| 22567 |
fi |
| 22568 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22569 |
conftest$ac_exeext |
| 22570 |
|
| 22571 |
;; |
| 22572 |
esac |
| 22573 |
fi |
| 22574 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22575 |
conftest$ac_exeext |
| 22576 |
|
| 22577 |
;; |
| 22578 |
esac |
| 22579 |
fi |
| 22580 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22581 |
conftest$ac_exeext |
| 22582 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22583 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22584 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22585 |
|
| 22586 |
;; |
| 22587 |
esac |
| 22588 |
fi |
| 22589 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_security" >&5 |
| 22590 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_security" >&6; } |
| 22591 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_security" = x"yes" |
| 22592 |
then : |
| 22593 |
if test -z "${CFLAGS_ac}" |
| 22594 |
then : |
| 22595 |
CFLAGS_ac="-Wformat-security" |
| 22596 |
else case e in #( |
| 22597 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-security" ;; |
| 22598 |
esac |
| 22599 |
fi |
| 22600 |
|
| 22601 |
|
| 22602 |
fi |
| 22603 |
|
| 22604 |
|
| 22605 |
|
| 22606 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-signedness flag" >&5 |
| 22607 |
printf %s "checking whether $CC supports -Wformat-signedness flag... " >&6; } |
| 22608 |
if test ${mhd_cv_cc_cfl_supp__Wformat_signedness+y} |
| 22609 |
then : |
| 22610 |
printf %s "(cached) " >&6 |
| 22611 |
else case e in #( |
| 22612 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22613 |
CFLAGS="${CFLAGS_ac} -Wformat-signedness ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22614 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22615 |
ac_c_werror_flag=yes |
| 22616 |
# Reuse the same source for all the checks here |
| 22617 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22618 |
/* end confdefs.h. */ |
| 22619 |
|
| 22620 |
int main(void) |
| 22621 |
{ |
| 22622 |
return 0; |
| 22623 |
} |
| 22624 |
|
| 22625 |
_ACEOF |
| 22626 |
if ac_fn_c_try_link "$LINENO" |
| 22627 |
then : |
| 22628 |
mhd_cv_cc_cfl_supp__Wformat_signedness="yes" |
| 22629 |
else case e in #( |
| 22630 |
e) # Compile and link failed with test flag added |
| 22631 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22632 |
if ac_fn_c_try_link "$LINENO" |
| 22633 |
then : |
| 22634 |
mhd_cv_cc_cfl_supp__Wformat_signedness="no" |
| 22635 |
else case e in #( |
| 22636 |
e) # Compile and link failed with test flag removed as well |
| 22637 |
CFLAGS="${CFLAGS_ac} -Wformat-signedness ${mhd_check_cc_flag_save_CFLAGS}" |
| 22638 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22639 |
if ac_fn_c_try_link "$LINENO" |
| 22640 |
then : |
| 22641 |
mhd_cv_cc_cfl_supp__Wformat_signedness="yes" |
| 22642 |
else case e in #( |
| 22643 |
e) mhd_cv_cc_cfl_supp__Wformat_signedness="no" ;; |
| 22644 |
esac |
| 22645 |
fi |
| 22646 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22647 |
conftest$ac_exeext |
| 22648 |
|
| 22649 |
;; |
| 22650 |
esac |
| 22651 |
fi |
| 22652 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22653 |
conftest$ac_exeext |
| 22654 |
|
| 22655 |
;; |
| 22656 |
esac |
| 22657 |
fi |
| 22658 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22659 |
conftest$ac_exeext |
| 22660 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22661 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22662 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22663 |
|
| 22664 |
;; |
| 22665 |
esac |
| 22666 |
fi |
| 22667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_signedness" >&5 |
| 22668 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_signedness" >&6; } |
| 22669 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_signedness" = x"yes" |
| 22670 |
then : |
| 22671 |
if test -z "${CFLAGS_ac}" |
| 22672 |
then : |
| 22673 |
CFLAGS_ac="-Wformat-signedness" |
| 22674 |
else case e in #( |
| 22675 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-signedness" ;; |
| 22676 |
esac |
| 22677 |
fi |
| 22678 |
|
| 22679 |
|
| 22680 |
fi |
| 22681 |
|
| 22682 |
|
| 22683 |
|
| 22684 |
|
| 22685 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-include-dirs flag" >&5 |
| 22686 |
printf %s "checking whether $CC supports -Wmissing-include-dirs flag... " >&6; } |
| 22687 |
if test ${mhd_cv_cc_cfl_supp__Wmissing_include_dirs+y} |
| 22688 |
then : |
| 22689 |
printf %s "(cached) " >&6 |
| 22690 |
else case e in #( |
| 22691 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22692 |
CFLAGS="${CFLAGS_ac} -Wmissing-include-dirs ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22693 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22694 |
ac_c_werror_flag=yes |
| 22695 |
# Reuse the same source for all the checks here |
| 22696 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22697 |
/* end confdefs.h. */ |
| 22698 |
|
| 22699 |
int main(void) |
| 22700 |
{ |
| 22701 |
return 0; |
| 22702 |
} |
| 22703 |
|
| 22704 |
_ACEOF |
| 22705 |
if ac_fn_c_try_link "$LINENO" |
| 22706 |
then : |
| 22707 |
mhd_cv_cc_cfl_supp__Wmissing_include_dirs="yes" |
| 22708 |
else case e in #( |
| 22709 |
e) # Compile and link failed with test flag added |
| 22710 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22711 |
if ac_fn_c_try_link "$LINENO" |
| 22712 |
then : |
| 22713 |
mhd_cv_cc_cfl_supp__Wmissing_include_dirs="no" |
| 22714 |
else case e in #( |
| 22715 |
e) # Compile and link failed with test flag removed as well |
| 22716 |
CFLAGS="${CFLAGS_ac} -Wmissing-include-dirs ${mhd_check_cc_flag_save_CFLAGS}" |
| 22717 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22718 |
if ac_fn_c_try_link "$LINENO" |
| 22719 |
then : |
| 22720 |
mhd_cv_cc_cfl_supp__Wmissing_include_dirs="yes" |
| 22721 |
else case e in #( |
| 22722 |
e) mhd_cv_cc_cfl_supp__Wmissing_include_dirs="no" ;; |
| 22723 |
esac |
| 22724 |
fi |
| 22725 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22726 |
conftest$ac_exeext |
| 22727 |
|
| 22728 |
;; |
| 22729 |
esac |
| 22730 |
fi |
| 22731 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22732 |
conftest$ac_exeext |
| 22733 |
|
| 22734 |
;; |
| 22735 |
esac |
| 22736 |
fi |
| 22737 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22738 |
conftest$ac_exeext |
| 22739 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22740 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22741 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22742 |
|
| 22743 |
;; |
| 22744 |
esac |
| 22745 |
fi |
| 22746 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wmissing_include_dirs" >&5 |
| 22747 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wmissing_include_dirs" >&6; } |
| 22748 |
if test "x$mhd_cv_cc_cfl_supp__Wmissing_include_dirs" = x"yes" |
| 22749 |
then : |
| 22750 |
if test -z "${CFLAGS_ac}" |
| 22751 |
then : |
| 22752 |
CFLAGS_ac="-Wmissing-include-dirs" |
| 22753 |
else case e in #( |
| 22754 |
e) CFLAGS_ac="${CFLAGS_ac} -Wmissing-include-dirs" ;; |
| 22755 |
esac |
| 22756 |
fi |
| 22757 |
|
| 22758 |
|
| 22759 |
fi |
| 22760 |
|
| 22761 |
|
| 22762 |
|
| 22763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshift-overflow=2 flag" >&5 |
| 22764 |
printf %s "checking whether $CC supports -Wshift-overflow=2 flag... " >&6; } |
| 22765 |
if test ${mhd_cv_cc_cfl_supp__Wshift_overflow_2+y} |
| 22766 |
then : |
| 22767 |
printf %s "(cached) " >&6 |
| 22768 |
else case e in #( |
| 22769 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22770 |
CFLAGS="${CFLAGS_ac} -Wshift-overflow=2 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22771 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22772 |
ac_c_werror_flag=yes |
| 22773 |
# Reuse the same source for all the checks here |
| 22774 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22775 |
/* end confdefs.h. */ |
| 22776 |
|
| 22777 |
int main(void) |
| 22778 |
{ |
| 22779 |
return 0; |
| 22780 |
} |
| 22781 |
|
| 22782 |
_ACEOF |
| 22783 |
if ac_fn_c_try_link "$LINENO" |
| 22784 |
then : |
| 22785 |
mhd_cv_cc_cfl_supp__Wshift_overflow_2="yes" |
| 22786 |
else case e in #( |
| 22787 |
e) # Compile and link failed with test flag added |
| 22788 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22789 |
if ac_fn_c_try_link "$LINENO" |
| 22790 |
then : |
| 22791 |
mhd_cv_cc_cfl_supp__Wshift_overflow_2="no" |
| 22792 |
else case e in #( |
| 22793 |
e) # Compile and link failed with test flag removed as well |
| 22794 |
CFLAGS="${CFLAGS_ac} -Wshift-overflow=2 ${mhd_check_cc_flag_save_CFLAGS}" |
| 22795 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22796 |
if ac_fn_c_try_link "$LINENO" |
| 22797 |
then : |
| 22798 |
mhd_cv_cc_cfl_supp__Wshift_overflow_2="yes" |
| 22799 |
else case e in #( |
| 22800 |
e) mhd_cv_cc_cfl_supp__Wshift_overflow_2="no" ;; |
| 22801 |
esac |
| 22802 |
fi |
| 22803 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22804 |
conftest$ac_exeext |
| 22805 |
|
| 22806 |
;; |
| 22807 |
esac |
| 22808 |
fi |
| 22809 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22810 |
conftest$ac_exeext |
| 22811 |
|
| 22812 |
;; |
| 22813 |
esac |
| 22814 |
fi |
| 22815 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22816 |
conftest$ac_exeext |
| 22817 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22818 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22819 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22820 |
|
| 22821 |
;; |
| 22822 |
esac |
| 22823 |
fi |
| 22824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshift_overflow_2" >&5 |
| 22825 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshift_overflow_2" >&6; } |
| 22826 |
if test "x$mhd_cv_cc_cfl_supp__Wshift_overflow_2" = x"yes" |
| 22827 |
then : |
| 22828 |
if test -z "${CFLAGS_ac}" |
| 22829 |
then : |
| 22830 |
CFLAGS_ac="-Wshift-overflow=2" |
| 22831 |
else case e in #( |
| 22832 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshift-overflow=2" ;; |
| 22833 |
esac |
| 22834 |
fi |
| 22835 |
|
| 22836 |
|
| 22837 |
fi |
| 22838 |
|
| 22839 |
|
| 22840 |
|
| 22841 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstringop-overflow=4 flag" >&5 |
| 22842 |
printf %s "checking whether $CC supports -Wstringop-overflow=4 flag... " >&6; } |
| 22843 |
if test ${mhd_cv_cc_cfl_supp__Wstringop_overflow_4+y} |
| 22844 |
then : |
| 22845 |
printf %s "(cached) " >&6 |
| 22846 |
else case e in #( |
| 22847 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22848 |
CFLAGS="${CFLAGS_ac} -Wstringop-overflow=4 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22849 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22850 |
ac_c_werror_flag=yes |
| 22851 |
# Reuse the same source for all the checks here |
| 22852 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22853 |
/* end confdefs.h. */ |
| 22854 |
|
| 22855 |
int main(void) |
| 22856 |
{ |
| 22857 |
return 0; |
| 22858 |
} |
| 22859 |
|
| 22860 |
_ACEOF |
| 22861 |
if ac_fn_c_try_link "$LINENO" |
| 22862 |
then : |
| 22863 |
mhd_cv_cc_cfl_supp__Wstringop_overflow_4="yes" |
| 22864 |
else case e in #( |
| 22865 |
e) # Compile and link failed with test flag added |
| 22866 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22867 |
if ac_fn_c_try_link "$LINENO" |
| 22868 |
then : |
| 22869 |
mhd_cv_cc_cfl_supp__Wstringop_overflow_4="no" |
| 22870 |
else case e in #( |
| 22871 |
e) # Compile and link failed with test flag removed as well |
| 22872 |
CFLAGS="${CFLAGS_ac} -Wstringop-overflow=4 ${mhd_check_cc_flag_save_CFLAGS}" |
| 22873 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22874 |
if ac_fn_c_try_link "$LINENO" |
| 22875 |
then : |
| 22876 |
mhd_cv_cc_cfl_supp__Wstringop_overflow_4="yes" |
| 22877 |
else case e in #( |
| 22878 |
e) mhd_cv_cc_cfl_supp__Wstringop_overflow_4="no" ;; |
| 22879 |
esac |
| 22880 |
fi |
| 22881 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22882 |
conftest$ac_exeext |
| 22883 |
|
| 22884 |
;; |
| 22885 |
esac |
| 22886 |
fi |
| 22887 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22888 |
conftest$ac_exeext |
| 22889 |
|
| 22890 |
;; |
| 22891 |
esac |
| 22892 |
fi |
| 22893 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22894 |
conftest$ac_exeext |
| 22895 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22896 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22897 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22898 |
|
| 22899 |
;; |
| 22900 |
esac |
| 22901 |
fi |
| 22902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wstringop_overflow_4" >&5 |
| 22903 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wstringop_overflow_4" >&6; } |
| 22904 |
if test "x$mhd_cv_cc_cfl_supp__Wstringop_overflow_4" = x"yes" |
| 22905 |
then : |
| 22906 |
if test -z "${CFLAGS_ac}" |
| 22907 |
then : |
| 22908 |
CFLAGS_ac="-Wstringop-overflow=4" |
| 22909 |
else case e in #( |
| 22910 |
e) CFLAGS_ac="${CFLAGS_ac} -Wstringop-overflow=4" ;; |
| 22911 |
esac |
| 22912 |
fi |
| 22913 |
|
| 22914 |
|
| 22915 |
fi |
| 22916 |
|
| 22917 |
|
| 22918 |
|
| 22919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Walloc-zero flag" >&5 |
| 22920 |
printf %s "checking whether $CC supports -Walloc-zero flag... " >&6; } |
| 22921 |
if test ${mhd_cv_cc_cfl_supp__Walloc_zero+y} |
| 22922 |
then : |
| 22923 |
printf %s "(cached) " >&6 |
| 22924 |
else case e in #( |
| 22925 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 22926 |
CFLAGS="${CFLAGS_ac} -Walloc-zero ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22927 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 22928 |
ac_c_werror_flag=yes |
| 22929 |
# Reuse the same source for all the checks here |
| 22930 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22931 |
/* end confdefs.h. */ |
| 22932 |
|
| 22933 |
int main(void) |
| 22934 |
{ |
| 22935 |
return 0; |
| 22936 |
} |
| 22937 |
|
| 22938 |
_ACEOF |
| 22939 |
if ac_fn_c_try_link "$LINENO" |
| 22940 |
then : |
| 22941 |
mhd_cv_cc_cfl_supp__Walloc_zero="yes" |
| 22942 |
else case e in #( |
| 22943 |
e) # Compile and link failed with test flag added |
| 22944 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 22945 |
if ac_fn_c_try_link "$LINENO" |
| 22946 |
then : |
| 22947 |
mhd_cv_cc_cfl_supp__Walloc_zero="no" |
| 22948 |
else case e in #( |
| 22949 |
e) # Compile and link failed with test flag removed as well |
| 22950 |
CFLAGS="${CFLAGS_ac} -Walloc-zero ${mhd_check_cc_flag_save_CFLAGS}" |
| 22951 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22952 |
if ac_fn_c_try_link "$LINENO" |
| 22953 |
then : |
| 22954 |
mhd_cv_cc_cfl_supp__Walloc_zero="yes" |
| 22955 |
else case e in #( |
| 22956 |
e) mhd_cv_cc_cfl_supp__Walloc_zero="no" ;; |
| 22957 |
esac |
| 22958 |
fi |
| 22959 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22960 |
conftest$ac_exeext |
| 22961 |
|
| 22962 |
;; |
| 22963 |
esac |
| 22964 |
fi |
| 22965 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22966 |
conftest$ac_exeext |
| 22967 |
|
| 22968 |
;; |
| 22969 |
esac |
| 22970 |
fi |
| 22971 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 22972 |
conftest$ac_exeext |
| 22973 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 22974 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 22975 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 22976 |
|
| 22977 |
;; |
| 22978 |
esac |
| 22979 |
fi |
| 22980 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Walloc_zero" >&5 |
| 22981 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Walloc_zero" >&6; } |
| 22982 |
if test "x$mhd_cv_cc_cfl_supp__Walloc_zero" = x"yes" |
| 22983 |
then : |
| 22984 |
if test -z "${CFLAGS_ac}" |
| 22985 |
then : |
| 22986 |
CFLAGS_ac="-Walloc-zero" |
| 22987 |
else case e in #( |
| 22988 |
e) CFLAGS_ac="${CFLAGS_ac} -Walloc-zero" ;; |
| 22989 |
esac |
| 22990 |
fi |
| 22991 |
|
| 22992 |
|
| 22993 |
fi |
| 22994 |
|
| 22995 |
|
| 22996 |
|
| 22997 |
|
| 22998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wduplicated-branches flag" >&5 |
| 22999 |
printf %s "checking whether $CC supports -Wduplicated-branches flag... " >&6; } |
| 23000 |
if test ${mhd_cv_cc_cfl_supp__Wduplicated_branches+y} |
| 23001 |
then : |
| 23002 |
printf %s "(cached) " >&6 |
| 23003 |
else case e in #( |
| 23004 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23005 |
CFLAGS="${CFLAGS_ac} -Wduplicated-branches ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23006 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23007 |
ac_c_werror_flag=yes |
| 23008 |
# Reuse the same source for all the checks here |
| 23009 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23010 |
/* end confdefs.h. */ |
| 23011 |
|
| 23012 |
int main(void) |
| 23013 |
{ |
| 23014 |
return 0; |
| 23015 |
} |
| 23016 |
|
| 23017 |
_ACEOF |
| 23018 |
if ac_fn_c_try_link "$LINENO" |
| 23019 |
then : |
| 23020 |
mhd_cv_cc_cfl_supp__Wduplicated_branches="yes" |
| 23021 |
else case e in #( |
| 23022 |
e) # Compile and link failed with test flag added |
| 23023 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23024 |
if ac_fn_c_try_link "$LINENO" |
| 23025 |
then : |
| 23026 |
mhd_cv_cc_cfl_supp__Wduplicated_branches="no" |
| 23027 |
else case e in #( |
| 23028 |
e) # Compile and link failed with test flag removed as well |
| 23029 |
CFLAGS="${CFLAGS_ac} -Wduplicated-branches ${mhd_check_cc_flag_save_CFLAGS}" |
| 23030 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23031 |
if ac_fn_c_try_link "$LINENO" |
| 23032 |
then : |
| 23033 |
mhd_cv_cc_cfl_supp__Wduplicated_branches="yes" |
| 23034 |
else case e in #( |
| 23035 |
e) mhd_cv_cc_cfl_supp__Wduplicated_branches="no" ;; |
| 23036 |
esac |
| 23037 |
fi |
| 23038 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23039 |
conftest$ac_exeext |
| 23040 |
|
| 23041 |
;; |
| 23042 |
esac |
| 23043 |
fi |
| 23044 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23045 |
conftest$ac_exeext |
| 23046 |
|
| 23047 |
;; |
| 23048 |
esac |
| 23049 |
fi |
| 23050 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23051 |
conftest$ac_exeext |
| 23052 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23053 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23054 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23055 |
|
| 23056 |
;; |
| 23057 |
esac |
| 23058 |
fi |
| 23059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wduplicated_branches" >&5 |
| 23060 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wduplicated_branches" >&6; } |
| 23061 |
if test "x$mhd_cv_cc_cfl_supp__Wduplicated_branches" = x"yes" |
| 23062 |
then : |
| 23063 |
if test -z "${CFLAGS_ac}" |
| 23064 |
then : |
| 23065 |
CFLAGS_ac="-Wduplicated-branches" |
| 23066 |
else case e in #( |
| 23067 |
e) CFLAGS_ac="${CFLAGS_ac} -Wduplicated-branches" ;; |
| 23068 |
esac |
| 23069 |
fi |
| 23070 |
|
| 23071 |
|
| 23072 |
fi |
| 23073 |
|
| 23074 |
|
| 23075 |
|
| 23076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wduplicated-cond flag" >&5 |
| 23077 |
printf %s "checking whether $CC supports -Wduplicated-cond flag... " >&6; } |
| 23078 |
if test ${mhd_cv_cc_cfl_supp__Wduplicated_cond+y} |
| 23079 |
then : |
| 23080 |
printf %s "(cached) " >&6 |
| 23081 |
else case e in #( |
| 23082 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23083 |
CFLAGS="${CFLAGS_ac} -Wduplicated-cond ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23084 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23085 |
ac_c_werror_flag=yes |
| 23086 |
# Reuse the same source for all the checks here |
| 23087 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23088 |
/* end confdefs.h. */ |
| 23089 |
|
| 23090 |
int main(void) |
| 23091 |
{ |
| 23092 |
return 0; |
| 23093 |
} |
| 23094 |
|
| 23095 |
_ACEOF |
| 23096 |
if ac_fn_c_try_link "$LINENO" |
| 23097 |
then : |
| 23098 |
mhd_cv_cc_cfl_supp__Wduplicated_cond="yes" |
| 23099 |
else case e in #( |
| 23100 |
e) # Compile and link failed with test flag added |
| 23101 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23102 |
if ac_fn_c_try_link "$LINENO" |
| 23103 |
then : |
| 23104 |
mhd_cv_cc_cfl_supp__Wduplicated_cond="no" |
| 23105 |
else case e in #( |
| 23106 |
e) # Compile and link failed with test flag removed as well |
| 23107 |
CFLAGS="${CFLAGS_ac} -Wduplicated-cond ${mhd_check_cc_flag_save_CFLAGS}" |
| 23108 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23109 |
if ac_fn_c_try_link "$LINENO" |
| 23110 |
then : |
| 23111 |
mhd_cv_cc_cfl_supp__Wduplicated_cond="yes" |
| 23112 |
else case e in #( |
| 23113 |
e) mhd_cv_cc_cfl_supp__Wduplicated_cond="no" ;; |
| 23114 |
esac |
| 23115 |
fi |
| 23116 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23117 |
conftest$ac_exeext |
| 23118 |
|
| 23119 |
;; |
| 23120 |
esac |
| 23121 |
fi |
| 23122 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23123 |
conftest$ac_exeext |
| 23124 |
|
| 23125 |
;; |
| 23126 |
esac |
| 23127 |
fi |
| 23128 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23129 |
conftest$ac_exeext |
| 23130 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23131 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23132 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23133 |
|
| 23134 |
;; |
| 23135 |
esac |
| 23136 |
fi |
| 23137 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wduplicated_cond" >&5 |
| 23138 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wduplicated_cond" >&6; } |
| 23139 |
if test "x$mhd_cv_cc_cfl_supp__Wduplicated_cond" = x"yes" |
| 23140 |
then : |
| 23141 |
if test -z "${CFLAGS_ac}" |
| 23142 |
then : |
| 23143 |
CFLAGS_ac="-Wduplicated-cond" |
| 23144 |
else case e in #( |
| 23145 |
e) CFLAGS_ac="${CFLAGS_ac} -Wduplicated-cond" ;; |
| 23146 |
esac |
| 23147 |
fi |
| 23148 |
|
| 23149 |
|
| 23150 |
fi |
| 23151 |
|
| 23152 |
|
| 23153 |
|
| 23154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wfloat-equal flag" >&5 |
| 23155 |
printf %s "checking whether $CC supports -Wfloat-equal flag... " >&6; } |
| 23156 |
if test ${mhd_cv_cc_cfl_supp__Wfloat_equal+y} |
| 23157 |
then : |
| 23158 |
printf %s "(cached) " >&6 |
| 23159 |
else case e in #( |
| 23160 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23161 |
CFLAGS="${CFLAGS_ac} -Wfloat-equal ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23162 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23163 |
ac_c_werror_flag=yes |
| 23164 |
# Reuse the same source for all the checks here |
| 23165 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23166 |
/* end confdefs.h. */ |
| 23167 |
|
| 23168 |
int main(void) |
| 23169 |
{ |
| 23170 |
return 0; |
| 23171 |
} |
| 23172 |
|
| 23173 |
_ACEOF |
| 23174 |
if ac_fn_c_try_link "$LINENO" |
| 23175 |
then : |
| 23176 |
mhd_cv_cc_cfl_supp__Wfloat_equal="yes" |
| 23177 |
else case e in #( |
| 23178 |
e) # Compile and link failed with test flag added |
| 23179 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23180 |
if ac_fn_c_try_link "$LINENO" |
| 23181 |
then : |
| 23182 |
mhd_cv_cc_cfl_supp__Wfloat_equal="no" |
| 23183 |
else case e in #( |
| 23184 |
e) # Compile and link failed with test flag removed as well |
| 23185 |
CFLAGS="${CFLAGS_ac} -Wfloat-equal ${mhd_check_cc_flag_save_CFLAGS}" |
| 23186 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23187 |
if ac_fn_c_try_link "$LINENO" |
| 23188 |
then : |
| 23189 |
mhd_cv_cc_cfl_supp__Wfloat_equal="yes" |
| 23190 |
else case e in #( |
| 23191 |
e) mhd_cv_cc_cfl_supp__Wfloat_equal="no" ;; |
| 23192 |
esac |
| 23193 |
fi |
| 23194 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23195 |
conftest$ac_exeext |
| 23196 |
|
| 23197 |
;; |
| 23198 |
esac |
| 23199 |
fi |
| 23200 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23201 |
conftest$ac_exeext |
| 23202 |
|
| 23203 |
;; |
| 23204 |
esac |
| 23205 |
fi |
| 23206 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23207 |
conftest$ac_exeext |
| 23208 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23209 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23210 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23211 |
|
| 23212 |
;; |
| 23213 |
esac |
| 23214 |
fi |
| 23215 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wfloat_equal" >&5 |
| 23216 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wfloat_equal" >&6; } |
| 23217 |
if test "x$mhd_cv_cc_cfl_supp__Wfloat_equal" = x"yes" |
| 23218 |
then : |
| 23219 |
if test -z "${CFLAGS_ac}" |
| 23220 |
then : |
| 23221 |
CFLAGS_ac="-Wfloat-equal" |
| 23222 |
else case e in #( |
| 23223 |
e) CFLAGS_ac="${CFLAGS_ac} -Wfloat-equal" ;; |
| 23224 |
esac |
| 23225 |
fi |
| 23226 |
|
| 23227 |
|
| 23228 |
fi |
| 23229 |
|
| 23230 |
|
| 23231 |
|
| 23232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow flag" >&5 |
| 23233 |
printf %s "checking whether $CC supports -Wshadow flag... " >&6; } |
| 23234 |
if test ${mhd_cv_cc_cfl_supp__Wshadow+y} |
| 23235 |
then : |
| 23236 |
printf %s "(cached) " >&6 |
| 23237 |
else case e in #( |
| 23238 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23239 |
CFLAGS="${CFLAGS_ac} -Wshadow ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23240 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23241 |
ac_c_werror_flag=yes |
| 23242 |
# Reuse the same source for all the checks here |
| 23243 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23244 |
/* end confdefs.h. */ |
| 23245 |
|
| 23246 |
int main(void) |
| 23247 |
{ |
| 23248 |
return 0; |
| 23249 |
} |
| 23250 |
|
| 23251 |
_ACEOF |
| 23252 |
if ac_fn_c_try_link "$LINENO" |
| 23253 |
then : |
| 23254 |
mhd_cv_cc_cfl_supp__Wshadow="yes" |
| 23255 |
else case e in #( |
| 23256 |
e) # Compile and link failed with test flag added |
| 23257 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23258 |
if ac_fn_c_try_link "$LINENO" |
| 23259 |
then : |
| 23260 |
mhd_cv_cc_cfl_supp__Wshadow="no" |
| 23261 |
else case e in #( |
| 23262 |
e) # Compile and link failed with test flag removed as well |
| 23263 |
CFLAGS="${CFLAGS_ac} -Wshadow ${mhd_check_cc_flag_save_CFLAGS}" |
| 23264 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23265 |
if ac_fn_c_try_link "$LINENO" |
| 23266 |
then : |
| 23267 |
mhd_cv_cc_cfl_supp__Wshadow="yes" |
| 23268 |
else case e in #( |
| 23269 |
e) mhd_cv_cc_cfl_supp__Wshadow="no" ;; |
| 23270 |
esac |
| 23271 |
fi |
| 23272 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23273 |
conftest$ac_exeext |
| 23274 |
|
| 23275 |
;; |
| 23276 |
esac |
| 23277 |
fi |
| 23278 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23279 |
conftest$ac_exeext |
| 23280 |
|
| 23281 |
;; |
| 23282 |
esac |
| 23283 |
fi |
| 23284 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23285 |
conftest$ac_exeext |
| 23286 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23287 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23288 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23289 |
|
| 23290 |
;; |
| 23291 |
esac |
| 23292 |
fi |
| 23293 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshadow" >&5 |
| 23294 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshadow" >&6; } |
| 23295 |
if test "x$mhd_cv_cc_cfl_supp__Wshadow" = x"yes" |
| 23296 |
then : |
| 23297 |
if test -z "${CFLAGS_ac}" |
| 23298 |
then : |
| 23299 |
CFLAGS_ac="-Wshadow" |
| 23300 |
else case e in #( |
| 23301 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshadow" ;; |
| 23302 |
esac |
| 23303 |
fi |
| 23304 |
|
| 23305 |
|
| 23306 |
fi |
| 23307 |
|
| 23308 |
|
| 23309 |
|
| 23310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpointer-arith flag" >&5 |
| 23311 |
printf %s "checking whether $CC supports -Wpointer-arith flag... " >&6; } |
| 23312 |
if test ${mhd_cv_cc_cfl_supp__Wpointer_arith+y} |
| 23313 |
then : |
| 23314 |
printf %s "(cached) " >&6 |
| 23315 |
else case e in #( |
| 23316 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23317 |
CFLAGS="${CFLAGS_ac} -Wpointer-arith ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23318 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23319 |
ac_c_werror_flag=yes |
| 23320 |
# Reuse the same source for all the checks here |
| 23321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23322 |
/* end confdefs.h. */ |
| 23323 |
|
| 23324 |
int main(void) |
| 23325 |
{ |
| 23326 |
return 0; |
| 23327 |
} |
| 23328 |
|
| 23329 |
_ACEOF |
| 23330 |
if ac_fn_c_try_link "$LINENO" |
| 23331 |
then : |
| 23332 |
mhd_cv_cc_cfl_supp__Wpointer_arith="yes" |
| 23333 |
else case e in #( |
| 23334 |
e) # Compile and link failed with test flag added |
| 23335 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23336 |
if ac_fn_c_try_link "$LINENO" |
| 23337 |
then : |
| 23338 |
mhd_cv_cc_cfl_supp__Wpointer_arith="no" |
| 23339 |
else case e in #( |
| 23340 |
e) # Compile and link failed with test flag removed as well |
| 23341 |
CFLAGS="${CFLAGS_ac} -Wpointer-arith ${mhd_check_cc_flag_save_CFLAGS}" |
| 23342 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23343 |
if ac_fn_c_try_link "$LINENO" |
| 23344 |
then : |
| 23345 |
mhd_cv_cc_cfl_supp__Wpointer_arith="yes" |
| 23346 |
else case e in #( |
| 23347 |
e) mhd_cv_cc_cfl_supp__Wpointer_arith="no" ;; |
| 23348 |
esac |
| 23349 |
fi |
| 23350 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23351 |
conftest$ac_exeext |
| 23352 |
|
| 23353 |
;; |
| 23354 |
esac |
| 23355 |
fi |
| 23356 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23357 |
conftest$ac_exeext |
| 23358 |
|
| 23359 |
;; |
| 23360 |
esac |
| 23361 |
fi |
| 23362 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23363 |
conftest$ac_exeext |
| 23364 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23365 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23366 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23367 |
|
| 23368 |
;; |
| 23369 |
esac |
| 23370 |
fi |
| 23371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wpointer_arith" >&5 |
| 23372 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wpointer_arith" >&6; } |
| 23373 |
if test "x$mhd_cv_cc_cfl_supp__Wpointer_arith" = x"yes" |
| 23374 |
then : |
| 23375 |
if test -z "${CFLAGS_ac}" |
| 23376 |
then : |
| 23377 |
CFLAGS_ac="-Wpointer-arith" |
| 23378 |
else case e in #( |
| 23379 |
e) CFLAGS_ac="${CFLAGS_ac} -Wpointer-arith" ;; |
| 23380 |
esac |
| 23381 |
fi |
| 23382 |
|
| 23383 |
|
| 23384 |
fi |
| 23385 |
|
| 23386 |
|
| 23387 |
|
| 23388 |
|
| 23389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow-all flag" >&5 |
| 23390 |
printf %s "checking whether $CC supports -Wshadow-all flag... " >&6; } |
| 23391 |
if test ${mhd_cv_cc_cfl_supp__Wshadow_all+y} |
| 23392 |
then : |
| 23393 |
printf %s "(cached) " >&6 |
| 23394 |
else case e in #( |
| 23395 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23396 |
CFLAGS="${CFLAGS_ac} -Wshadow-all ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23397 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23398 |
ac_c_werror_flag=yes |
| 23399 |
# Reuse the same source for all the checks here |
| 23400 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23401 |
/* end confdefs.h. */ |
| 23402 |
|
| 23403 |
int main(void) |
| 23404 |
{ |
| 23405 |
return 0; |
| 23406 |
} |
| 23407 |
|
| 23408 |
_ACEOF |
| 23409 |
if ac_fn_c_try_link "$LINENO" |
| 23410 |
then : |
| 23411 |
mhd_cv_cc_cfl_supp__Wshadow_all="yes" |
| 23412 |
else case e in #( |
| 23413 |
e) # Compile and link failed with test flag added |
| 23414 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23415 |
if ac_fn_c_try_link "$LINENO" |
| 23416 |
then : |
| 23417 |
mhd_cv_cc_cfl_supp__Wshadow_all="no" |
| 23418 |
else case e in #( |
| 23419 |
e) # Compile and link failed with test flag removed as well |
| 23420 |
CFLAGS="${CFLAGS_ac} -Wshadow-all ${mhd_check_cc_flag_save_CFLAGS}" |
| 23421 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23422 |
if ac_fn_c_try_link "$LINENO" |
| 23423 |
then : |
| 23424 |
mhd_cv_cc_cfl_supp__Wshadow_all="yes" |
| 23425 |
else case e in #( |
| 23426 |
e) mhd_cv_cc_cfl_supp__Wshadow_all="no" ;; |
| 23427 |
esac |
| 23428 |
fi |
| 23429 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23430 |
conftest$ac_exeext |
| 23431 |
|
| 23432 |
;; |
| 23433 |
esac |
| 23434 |
fi |
| 23435 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23436 |
conftest$ac_exeext |
| 23437 |
|
| 23438 |
;; |
| 23439 |
esac |
| 23440 |
fi |
| 23441 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23442 |
conftest$ac_exeext |
| 23443 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23444 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23445 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23446 |
|
| 23447 |
;; |
| 23448 |
esac |
| 23449 |
fi |
| 23450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshadow_all" >&5 |
| 23451 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshadow_all" >&6; } |
| 23452 |
if test "x$mhd_cv_cc_cfl_supp__Wshadow_all" = x"yes" |
| 23453 |
then : |
| 23454 |
if test -z "${CFLAGS_ac}" |
| 23455 |
then : |
| 23456 |
CFLAGS_ac="-Wshadow-all" |
| 23457 |
else case e in #( |
| 23458 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshadow-all" ;; |
| 23459 |
esac |
| 23460 |
fi |
| 23461 |
|
| 23462 |
|
| 23463 |
else case e in #( |
| 23464 |
e) |
| 23465 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshadow flag" >&5 |
| 23466 |
printf %s "checking whether $CC supports -Wshadow flag... " >&6; } |
| 23467 |
if test ${mhd_cv_cc_cfl_supp__Wshadow+y} |
| 23468 |
then : |
| 23469 |
printf %s "(cached) " >&6 |
| 23470 |
else case e in #( |
| 23471 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23472 |
CFLAGS="${CFLAGS_ac} -Wshadow ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23473 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23474 |
ac_c_werror_flag=yes |
| 23475 |
# Reuse the same source for all the checks here |
| 23476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23477 |
/* end confdefs.h. */ |
| 23478 |
|
| 23479 |
int main(void) |
| 23480 |
{ |
| 23481 |
return 0; |
| 23482 |
} |
| 23483 |
|
| 23484 |
_ACEOF |
| 23485 |
if ac_fn_c_try_link "$LINENO" |
| 23486 |
then : |
| 23487 |
mhd_cv_cc_cfl_supp__Wshadow="yes" |
| 23488 |
else case e in #( |
| 23489 |
e) # Compile and link failed with test flag added |
| 23490 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23491 |
if ac_fn_c_try_link "$LINENO" |
| 23492 |
then : |
| 23493 |
mhd_cv_cc_cfl_supp__Wshadow="no" |
| 23494 |
else case e in #( |
| 23495 |
e) # Compile and link failed with test flag removed as well |
| 23496 |
CFLAGS="${CFLAGS_ac} -Wshadow ${mhd_check_cc_flag_save_CFLAGS}" |
| 23497 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23498 |
if ac_fn_c_try_link "$LINENO" |
| 23499 |
then : |
| 23500 |
mhd_cv_cc_cfl_supp__Wshadow="yes" |
| 23501 |
else case e in #( |
| 23502 |
e) mhd_cv_cc_cfl_supp__Wshadow="no" ;; |
| 23503 |
esac |
| 23504 |
fi |
| 23505 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23506 |
conftest$ac_exeext |
| 23507 |
|
| 23508 |
;; |
| 23509 |
esac |
| 23510 |
fi |
| 23511 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23512 |
conftest$ac_exeext |
| 23513 |
|
| 23514 |
;; |
| 23515 |
esac |
| 23516 |
fi |
| 23517 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23518 |
conftest$ac_exeext |
| 23519 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23520 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23521 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23522 |
|
| 23523 |
;; |
| 23524 |
esac |
| 23525 |
fi |
| 23526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshadow" >&5 |
| 23527 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshadow" >&6; } |
| 23528 |
if test "x$mhd_cv_cc_cfl_supp__Wshadow" = x"yes" |
| 23529 |
then : |
| 23530 |
if test -z "${CFLAGS_ac}" |
| 23531 |
then : |
| 23532 |
CFLAGS_ac="-Wshadow" |
| 23533 |
else case e in #( |
| 23534 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshadow" ;; |
| 23535 |
esac |
| 23536 |
fi |
| 23537 |
|
| 23538 |
|
| 23539 |
fi |
| 23540 |
|
| 23541 |
;; |
| 23542 |
esac |
| 23543 |
fi |
| 23544 |
|
| 23545 |
|
| 23546 |
|
| 23547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbad-function-cast flag" >&5 |
| 23548 |
printf %s "checking whether $CC supports -Wbad-function-cast flag... " >&6; } |
| 23549 |
if test ${mhd_cv_cc_cfl_supp__Wbad_function_cast+y} |
| 23550 |
then : |
| 23551 |
printf %s "(cached) " >&6 |
| 23552 |
else case e in #( |
| 23553 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23554 |
CFLAGS="${CFLAGS_ac} -Wbad-function-cast ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23555 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23556 |
ac_c_werror_flag=yes |
| 23557 |
# Reuse the same source for all the checks here |
| 23558 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23559 |
/* end confdefs.h. */ |
| 23560 |
|
| 23561 |
int main(void) |
| 23562 |
{ |
| 23563 |
return 0; |
| 23564 |
} |
| 23565 |
|
| 23566 |
_ACEOF |
| 23567 |
if ac_fn_c_try_link "$LINENO" |
| 23568 |
then : |
| 23569 |
mhd_cv_cc_cfl_supp__Wbad_function_cast="yes" |
| 23570 |
else case e in #( |
| 23571 |
e) # Compile and link failed with test flag added |
| 23572 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23573 |
if ac_fn_c_try_link "$LINENO" |
| 23574 |
then : |
| 23575 |
mhd_cv_cc_cfl_supp__Wbad_function_cast="no" |
| 23576 |
else case e in #( |
| 23577 |
e) # Compile and link failed with test flag removed as well |
| 23578 |
CFLAGS="${CFLAGS_ac} -Wbad-function-cast ${mhd_check_cc_flag_save_CFLAGS}" |
| 23579 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23580 |
if ac_fn_c_try_link "$LINENO" |
| 23581 |
then : |
| 23582 |
mhd_cv_cc_cfl_supp__Wbad_function_cast="yes" |
| 23583 |
else case e in #( |
| 23584 |
e) mhd_cv_cc_cfl_supp__Wbad_function_cast="no" ;; |
| 23585 |
esac |
| 23586 |
fi |
| 23587 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23588 |
conftest$ac_exeext |
| 23589 |
|
| 23590 |
;; |
| 23591 |
esac |
| 23592 |
fi |
| 23593 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23594 |
conftest$ac_exeext |
| 23595 |
|
| 23596 |
;; |
| 23597 |
esac |
| 23598 |
fi |
| 23599 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23600 |
conftest$ac_exeext |
| 23601 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23602 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23603 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23604 |
|
| 23605 |
;; |
| 23606 |
esac |
| 23607 |
fi |
| 23608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbad_function_cast" >&5 |
| 23609 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbad_function_cast" >&6; } |
| 23610 |
if test "x$mhd_cv_cc_cfl_supp__Wbad_function_cast" = x"yes" |
| 23611 |
then : |
| 23612 |
if test -z "${CFLAGS_ac}" |
| 23613 |
then : |
| 23614 |
CFLAGS_ac="-Wbad-function-cast" |
| 23615 |
else case e in #( |
| 23616 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbad-function-cast" ;; |
| 23617 |
esac |
| 23618 |
fi |
| 23619 |
|
| 23620 |
|
| 23621 |
fi |
| 23622 |
|
| 23623 |
|
| 23624 |
|
| 23625 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-qual flag" >&5 |
| 23626 |
printf %s "checking whether $CC supports -Wcast-qual flag... " >&6; } |
| 23627 |
if test ${mhd_cv_cc_cfl_supp__Wcast_qual+y} |
| 23628 |
then : |
| 23629 |
printf %s "(cached) " >&6 |
| 23630 |
else case e in #( |
| 23631 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23632 |
CFLAGS="${CFLAGS_ac} -Wcast-qual ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23633 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23634 |
ac_c_werror_flag=yes |
| 23635 |
# Reuse the same source for all the checks here |
| 23636 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23637 |
/* end confdefs.h. */ |
| 23638 |
|
| 23639 |
int main(void) |
| 23640 |
{ |
| 23641 |
return 0; |
| 23642 |
} |
| 23643 |
|
| 23644 |
_ACEOF |
| 23645 |
if ac_fn_c_try_link "$LINENO" |
| 23646 |
then : |
| 23647 |
mhd_cv_cc_cfl_supp__Wcast_qual="yes" |
| 23648 |
else case e in #( |
| 23649 |
e) # Compile and link failed with test flag added |
| 23650 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23651 |
if ac_fn_c_try_link "$LINENO" |
| 23652 |
then : |
| 23653 |
mhd_cv_cc_cfl_supp__Wcast_qual="no" |
| 23654 |
else case e in #( |
| 23655 |
e) # Compile and link failed with test flag removed as well |
| 23656 |
CFLAGS="${CFLAGS_ac} -Wcast-qual ${mhd_check_cc_flag_save_CFLAGS}" |
| 23657 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23658 |
if ac_fn_c_try_link "$LINENO" |
| 23659 |
then : |
| 23660 |
mhd_cv_cc_cfl_supp__Wcast_qual="yes" |
| 23661 |
else case e in #( |
| 23662 |
e) mhd_cv_cc_cfl_supp__Wcast_qual="no" ;; |
| 23663 |
esac |
| 23664 |
fi |
| 23665 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23666 |
conftest$ac_exeext |
| 23667 |
|
| 23668 |
;; |
| 23669 |
esac |
| 23670 |
fi |
| 23671 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23672 |
conftest$ac_exeext |
| 23673 |
|
| 23674 |
;; |
| 23675 |
esac |
| 23676 |
fi |
| 23677 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23678 |
conftest$ac_exeext |
| 23679 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23680 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23681 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23682 |
|
| 23683 |
;; |
| 23684 |
esac |
| 23685 |
fi |
| 23686 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcast_qual" >&5 |
| 23687 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcast_qual" >&6; } |
| 23688 |
if test "x$mhd_cv_cc_cfl_supp__Wcast_qual" = x"yes" |
| 23689 |
then : |
| 23690 |
if test -z "${CFLAGS_ac}" |
| 23691 |
then : |
| 23692 |
CFLAGS_ac="-Wcast-qual" |
| 23693 |
else case e in #( |
| 23694 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcast-qual" ;; |
| 23695 |
esac |
| 23696 |
fi |
| 23697 |
|
| 23698 |
|
| 23699 |
fi |
| 23700 |
|
| 23701 |
|
| 23702 |
|
| 23703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wwrite-strings flag" >&5 |
| 23704 |
printf %s "checking whether $CC supports -Wwrite-strings flag... " >&6; } |
| 23705 |
if test ${mhd_cv_cc_cfl_supp__Wwrite_strings+y} |
| 23706 |
then : |
| 23707 |
printf %s "(cached) " >&6 |
| 23708 |
else case e in #( |
| 23709 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23710 |
CFLAGS="${CFLAGS_ac} -Wwrite-strings ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23711 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23712 |
ac_c_werror_flag=yes |
| 23713 |
# Reuse the same source for all the checks here |
| 23714 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23715 |
/* end confdefs.h. */ |
| 23716 |
|
| 23717 |
int main(void) |
| 23718 |
{ |
| 23719 |
return 0; |
| 23720 |
} |
| 23721 |
|
| 23722 |
_ACEOF |
| 23723 |
if ac_fn_c_try_link "$LINENO" |
| 23724 |
then : |
| 23725 |
mhd_cv_cc_cfl_supp__Wwrite_strings="yes" |
| 23726 |
else case e in #( |
| 23727 |
e) # Compile and link failed with test flag added |
| 23728 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23729 |
if ac_fn_c_try_link "$LINENO" |
| 23730 |
then : |
| 23731 |
mhd_cv_cc_cfl_supp__Wwrite_strings="no" |
| 23732 |
else case e in #( |
| 23733 |
e) # Compile and link failed with test flag removed as well |
| 23734 |
CFLAGS="${CFLAGS_ac} -Wwrite-strings ${mhd_check_cc_flag_save_CFLAGS}" |
| 23735 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23736 |
if ac_fn_c_try_link "$LINENO" |
| 23737 |
then : |
| 23738 |
mhd_cv_cc_cfl_supp__Wwrite_strings="yes" |
| 23739 |
else case e in #( |
| 23740 |
e) mhd_cv_cc_cfl_supp__Wwrite_strings="no" ;; |
| 23741 |
esac |
| 23742 |
fi |
| 23743 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23744 |
conftest$ac_exeext |
| 23745 |
|
| 23746 |
;; |
| 23747 |
esac |
| 23748 |
fi |
| 23749 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23750 |
conftest$ac_exeext |
| 23751 |
|
| 23752 |
;; |
| 23753 |
esac |
| 23754 |
fi |
| 23755 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23756 |
conftest$ac_exeext |
| 23757 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23758 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23759 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23760 |
|
| 23761 |
;; |
| 23762 |
esac |
| 23763 |
fi |
| 23764 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wwrite_strings" >&5 |
| 23765 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wwrite_strings" >&6; } |
| 23766 |
if test "x$mhd_cv_cc_cfl_supp__Wwrite_strings" = x"yes" |
| 23767 |
then : |
| 23768 |
if test -z "${CFLAGS_ac}" |
| 23769 |
then : |
| 23770 |
CFLAGS_ac="-Wwrite-strings" |
| 23771 |
else case e in #( |
| 23772 |
e) CFLAGS_ac="${CFLAGS_ac} -Wwrite-strings" ;; |
| 23773 |
esac |
| 23774 |
fi |
| 23775 |
|
| 23776 |
|
| 23777 |
fi |
| 23778 |
|
| 23779 |
|
| 23780 |
|
| 23781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wconversion flag" >&5 |
| 23782 |
printf %s "checking whether $CC supports -Wconversion flag... " >&6; } |
| 23783 |
if test ${mhd_cv_cc_cfl_supp__Wconversion+y} |
| 23784 |
then : |
| 23785 |
printf %s "(cached) " >&6 |
| 23786 |
else case e in #( |
| 23787 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23788 |
CFLAGS="${CFLAGS_ac} -Wconversion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23789 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23790 |
ac_c_werror_flag=yes |
| 23791 |
# Reuse the same source for all the checks here |
| 23792 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23793 |
/* end confdefs.h. */ |
| 23794 |
|
| 23795 |
int main(void) |
| 23796 |
{ |
| 23797 |
return 0; |
| 23798 |
} |
| 23799 |
|
| 23800 |
_ACEOF |
| 23801 |
if ac_fn_c_try_link "$LINENO" |
| 23802 |
then : |
| 23803 |
mhd_cv_cc_cfl_supp__Wconversion="yes" |
| 23804 |
else case e in #( |
| 23805 |
e) # Compile and link failed with test flag added |
| 23806 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23807 |
if ac_fn_c_try_link "$LINENO" |
| 23808 |
then : |
| 23809 |
mhd_cv_cc_cfl_supp__Wconversion="no" |
| 23810 |
else case e in #( |
| 23811 |
e) # Compile and link failed with test flag removed as well |
| 23812 |
CFLAGS="${CFLAGS_ac} -Wconversion ${mhd_check_cc_flag_save_CFLAGS}" |
| 23813 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23814 |
if ac_fn_c_try_link "$LINENO" |
| 23815 |
then : |
| 23816 |
mhd_cv_cc_cfl_supp__Wconversion="yes" |
| 23817 |
else case e in #( |
| 23818 |
e) mhd_cv_cc_cfl_supp__Wconversion="no" ;; |
| 23819 |
esac |
| 23820 |
fi |
| 23821 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23822 |
conftest$ac_exeext |
| 23823 |
|
| 23824 |
;; |
| 23825 |
esac |
| 23826 |
fi |
| 23827 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23828 |
conftest$ac_exeext |
| 23829 |
|
| 23830 |
;; |
| 23831 |
esac |
| 23832 |
fi |
| 23833 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23834 |
conftest$ac_exeext |
| 23835 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23836 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23837 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23838 |
|
| 23839 |
;; |
| 23840 |
esac |
| 23841 |
fi |
| 23842 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wconversion" >&5 |
| 23843 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wconversion" >&6; } |
| 23844 |
if test "x$mhd_cv_cc_cfl_supp__Wconversion" = x"yes" |
| 23845 |
then : |
| 23846 |
if test -z "${CFLAGS_ac}" |
| 23847 |
then : |
| 23848 |
CFLAGS_ac="-Wconversion" |
| 23849 |
else case e in #( |
| 23850 |
e) CFLAGS_ac="${CFLAGS_ac} -Wconversion" ;; |
| 23851 |
esac |
| 23852 |
fi |
| 23853 |
|
| 23854 |
|
| 23855 |
fi |
| 23856 |
|
| 23857 |
|
| 23858 |
|
| 23859 |
|
| 23860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-align=strict flag" >&5 |
| 23861 |
printf %s "checking whether $CC supports -Wcast-align=strict flag... " >&6; } |
| 23862 |
if test ${mhd_cv_cc_cfl_supp__Wcast_align_strict+y} |
| 23863 |
then : |
| 23864 |
printf %s "(cached) " >&6 |
| 23865 |
else case e in #( |
| 23866 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23867 |
CFLAGS="${CFLAGS_ac} -Wcast-align=strict ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23868 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23869 |
ac_c_werror_flag=yes |
| 23870 |
# Reuse the same source for all the checks here |
| 23871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23872 |
/* end confdefs.h. */ |
| 23873 |
|
| 23874 |
int main(void) |
| 23875 |
{ |
| 23876 |
return 0; |
| 23877 |
} |
| 23878 |
|
| 23879 |
_ACEOF |
| 23880 |
if ac_fn_c_try_link "$LINENO" |
| 23881 |
then : |
| 23882 |
mhd_cv_cc_cfl_supp__Wcast_align_strict="yes" |
| 23883 |
else case e in #( |
| 23884 |
e) # Compile and link failed with test flag added |
| 23885 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23886 |
if ac_fn_c_try_link "$LINENO" |
| 23887 |
then : |
| 23888 |
mhd_cv_cc_cfl_supp__Wcast_align_strict="no" |
| 23889 |
else case e in #( |
| 23890 |
e) # Compile and link failed with test flag removed as well |
| 23891 |
CFLAGS="${CFLAGS_ac} -Wcast-align=strict ${mhd_check_cc_flag_save_CFLAGS}" |
| 23892 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23893 |
if ac_fn_c_try_link "$LINENO" |
| 23894 |
then : |
| 23895 |
mhd_cv_cc_cfl_supp__Wcast_align_strict="yes" |
| 23896 |
else case e in #( |
| 23897 |
e) mhd_cv_cc_cfl_supp__Wcast_align_strict="no" ;; |
| 23898 |
esac |
| 23899 |
fi |
| 23900 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23901 |
conftest$ac_exeext |
| 23902 |
|
| 23903 |
;; |
| 23904 |
esac |
| 23905 |
fi |
| 23906 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23907 |
conftest$ac_exeext |
| 23908 |
|
| 23909 |
;; |
| 23910 |
esac |
| 23911 |
fi |
| 23912 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23913 |
conftest$ac_exeext |
| 23914 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23915 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23916 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23917 |
|
| 23918 |
;; |
| 23919 |
esac |
| 23920 |
fi |
| 23921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcast_align_strict" >&5 |
| 23922 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcast_align_strict" >&6; } |
| 23923 |
if test "x$mhd_cv_cc_cfl_supp__Wcast_align_strict" = x"yes" |
| 23924 |
then : |
| 23925 |
if test -z "${CFLAGS_ac}" |
| 23926 |
then : |
| 23927 |
CFLAGS_ac="-Wcast-align=strict" |
| 23928 |
else case e in #( |
| 23929 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcast-align=strict" ;; |
| 23930 |
esac |
| 23931 |
fi |
| 23932 |
|
| 23933 |
|
| 23934 |
else case e in #( |
| 23935 |
e) |
| 23936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-align flag" >&5 |
| 23937 |
printf %s "checking whether $CC supports -Wcast-align flag... " >&6; } |
| 23938 |
if test ${mhd_cv_cc_cfl_supp__Wcast_align+y} |
| 23939 |
then : |
| 23940 |
printf %s "(cached) " >&6 |
| 23941 |
else case e in #( |
| 23942 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 23943 |
CFLAGS="${CFLAGS_ac} -Wcast-align ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23944 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 23945 |
ac_c_werror_flag=yes |
| 23946 |
# Reuse the same source for all the checks here |
| 23947 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23948 |
/* end confdefs.h. */ |
| 23949 |
|
| 23950 |
int main(void) |
| 23951 |
{ |
| 23952 |
return 0; |
| 23953 |
} |
| 23954 |
|
| 23955 |
_ACEOF |
| 23956 |
if ac_fn_c_try_link "$LINENO" |
| 23957 |
then : |
| 23958 |
mhd_cv_cc_cfl_supp__Wcast_align="yes" |
| 23959 |
else case e in #( |
| 23960 |
e) # Compile and link failed with test flag added |
| 23961 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 23962 |
if ac_fn_c_try_link "$LINENO" |
| 23963 |
then : |
| 23964 |
mhd_cv_cc_cfl_supp__Wcast_align="no" |
| 23965 |
else case e in #( |
| 23966 |
e) # Compile and link failed with test flag removed as well |
| 23967 |
CFLAGS="${CFLAGS_ac} -Wcast-align ${mhd_check_cc_flag_save_CFLAGS}" |
| 23968 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23969 |
if ac_fn_c_try_link "$LINENO" |
| 23970 |
then : |
| 23971 |
mhd_cv_cc_cfl_supp__Wcast_align="yes" |
| 23972 |
else case e in #( |
| 23973 |
e) mhd_cv_cc_cfl_supp__Wcast_align="no" ;; |
| 23974 |
esac |
| 23975 |
fi |
| 23976 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23977 |
conftest$ac_exeext |
| 23978 |
|
| 23979 |
;; |
| 23980 |
esac |
| 23981 |
fi |
| 23982 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23983 |
conftest$ac_exeext |
| 23984 |
|
| 23985 |
;; |
| 23986 |
esac |
| 23987 |
fi |
| 23988 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 23989 |
conftest$ac_exeext |
| 23990 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 23991 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 23992 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 23993 |
|
| 23994 |
;; |
| 23995 |
esac |
| 23996 |
fi |
| 23997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcast_align" >&5 |
| 23998 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcast_align" >&6; } |
| 23999 |
if test "x$mhd_cv_cc_cfl_supp__Wcast_align" = x"yes" |
| 24000 |
then : |
| 24001 |
if test -z "${CFLAGS_ac}" |
| 24002 |
then : |
| 24003 |
CFLAGS_ac="-Wcast-align" |
| 24004 |
else case e in #( |
| 24005 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcast-align" ;; |
| 24006 |
esac |
| 24007 |
fi |
| 24008 |
|
| 24009 |
|
| 24010 |
fi |
| 24011 |
|
| 24012 |
;; |
| 24013 |
esac |
| 24014 |
fi |
| 24015 |
|
| 24016 |
|
| 24017 |
|
| 24018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wjump-misses-init flag" >&5 |
| 24019 |
printf %s "checking whether $CC supports -Wjump-misses-init flag... " >&6; } |
| 24020 |
if test ${mhd_cv_cc_cfl_supp__Wjump_misses_init+y} |
| 24021 |
then : |
| 24022 |
printf %s "(cached) " >&6 |
| 24023 |
else case e in #( |
| 24024 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24025 |
CFLAGS="${CFLAGS_ac} -Wjump-misses-init ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24026 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24027 |
ac_c_werror_flag=yes |
| 24028 |
# Reuse the same source for all the checks here |
| 24029 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24030 |
/* end confdefs.h. */ |
| 24031 |
|
| 24032 |
int main(void) |
| 24033 |
{ |
| 24034 |
return 0; |
| 24035 |
} |
| 24036 |
|
| 24037 |
_ACEOF |
| 24038 |
if ac_fn_c_try_link "$LINENO" |
| 24039 |
then : |
| 24040 |
mhd_cv_cc_cfl_supp__Wjump_misses_init="yes" |
| 24041 |
else case e in #( |
| 24042 |
e) # Compile and link failed with test flag added |
| 24043 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24044 |
if ac_fn_c_try_link "$LINENO" |
| 24045 |
then : |
| 24046 |
mhd_cv_cc_cfl_supp__Wjump_misses_init="no" |
| 24047 |
else case e in #( |
| 24048 |
e) # Compile and link failed with test flag removed as well |
| 24049 |
CFLAGS="${CFLAGS_ac} -Wjump-misses-init ${mhd_check_cc_flag_save_CFLAGS}" |
| 24050 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24051 |
if ac_fn_c_try_link "$LINENO" |
| 24052 |
then : |
| 24053 |
mhd_cv_cc_cfl_supp__Wjump_misses_init="yes" |
| 24054 |
else case e in #( |
| 24055 |
e) mhd_cv_cc_cfl_supp__Wjump_misses_init="no" ;; |
| 24056 |
esac |
| 24057 |
fi |
| 24058 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24059 |
conftest$ac_exeext |
| 24060 |
|
| 24061 |
;; |
| 24062 |
esac |
| 24063 |
fi |
| 24064 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24065 |
conftest$ac_exeext |
| 24066 |
|
| 24067 |
;; |
| 24068 |
esac |
| 24069 |
fi |
| 24070 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24071 |
conftest$ac_exeext |
| 24072 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24073 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24074 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24075 |
|
| 24076 |
;; |
| 24077 |
esac |
| 24078 |
fi |
| 24079 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wjump_misses_init" >&5 |
| 24080 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wjump_misses_init" >&6; } |
| 24081 |
if test "x$mhd_cv_cc_cfl_supp__Wjump_misses_init" = x"yes" |
| 24082 |
then : |
| 24083 |
if test -z "${CFLAGS_ac}" |
| 24084 |
then : |
| 24085 |
CFLAGS_ac="-Wjump-misses-init" |
| 24086 |
else case e in #( |
| 24087 |
e) CFLAGS_ac="${CFLAGS_ac} -Wjump-misses-init" ;; |
| 24088 |
esac |
| 24089 |
fi |
| 24090 |
|
| 24091 |
|
| 24092 |
fi |
| 24093 |
|
| 24094 |
|
| 24095 |
|
| 24096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wlogical-op flag" >&5 |
| 24097 |
printf %s "checking whether $CC supports -Wlogical-op flag... " >&6; } |
| 24098 |
if test ${mhd_cv_cc_cfl_supp__Wlogical_op+y} |
| 24099 |
then : |
| 24100 |
printf %s "(cached) " >&6 |
| 24101 |
else case e in #( |
| 24102 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24103 |
CFLAGS="${CFLAGS_ac} -Wlogical-op ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24104 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24105 |
ac_c_werror_flag=yes |
| 24106 |
# Reuse the same source for all the checks here |
| 24107 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24108 |
/* end confdefs.h. */ |
| 24109 |
|
| 24110 |
int main(void) |
| 24111 |
{ |
| 24112 |
return 0; |
| 24113 |
} |
| 24114 |
|
| 24115 |
_ACEOF |
| 24116 |
if ac_fn_c_try_link "$LINENO" |
| 24117 |
then : |
| 24118 |
mhd_cv_cc_cfl_supp__Wlogical_op="yes" |
| 24119 |
else case e in #( |
| 24120 |
e) # Compile and link failed with test flag added |
| 24121 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24122 |
if ac_fn_c_try_link "$LINENO" |
| 24123 |
then : |
| 24124 |
mhd_cv_cc_cfl_supp__Wlogical_op="no" |
| 24125 |
else case e in #( |
| 24126 |
e) # Compile and link failed with test flag removed as well |
| 24127 |
CFLAGS="${CFLAGS_ac} -Wlogical-op ${mhd_check_cc_flag_save_CFLAGS}" |
| 24128 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24129 |
if ac_fn_c_try_link "$LINENO" |
| 24130 |
then : |
| 24131 |
mhd_cv_cc_cfl_supp__Wlogical_op="yes" |
| 24132 |
else case e in #( |
| 24133 |
e) mhd_cv_cc_cfl_supp__Wlogical_op="no" ;; |
| 24134 |
esac |
| 24135 |
fi |
| 24136 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24137 |
conftest$ac_exeext |
| 24138 |
|
| 24139 |
;; |
| 24140 |
esac |
| 24141 |
fi |
| 24142 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24143 |
conftest$ac_exeext |
| 24144 |
|
| 24145 |
;; |
| 24146 |
esac |
| 24147 |
fi |
| 24148 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24149 |
conftest$ac_exeext |
| 24150 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24151 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24152 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24153 |
|
| 24154 |
;; |
| 24155 |
esac |
| 24156 |
fi |
| 24157 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wlogical_op" >&5 |
| 24158 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wlogical_op" >&6; } |
| 24159 |
if test "x$mhd_cv_cc_cfl_supp__Wlogical_op" = x"yes" |
| 24160 |
then : |
| 24161 |
if test -z "${CFLAGS_ac}" |
| 24162 |
then : |
| 24163 |
CFLAGS_ac="-Wlogical-op" |
| 24164 |
else case e in #( |
| 24165 |
e) CFLAGS_ac="${CFLAGS_ac} -Wlogical-op" ;; |
| 24166 |
esac |
| 24167 |
fi |
| 24168 |
|
| 24169 |
|
| 24170 |
fi |
| 24171 |
|
| 24172 |
|
| 24173 |
|
| 24174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Waggregate-return flag" >&5 |
| 24175 |
printf %s "checking whether $CC supports -Waggregate-return flag... " >&6; } |
| 24176 |
if test ${mhd_cv_cc_cfl_supp__Waggregate_return+y} |
| 24177 |
then : |
| 24178 |
printf %s "(cached) " >&6 |
| 24179 |
else case e in #( |
| 24180 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24181 |
CFLAGS="${CFLAGS_ac} -Waggregate-return ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24182 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24183 |
ac_c_werror_flag=yes |
| 24184 |
# Reuse the same source for all the checks here |
| 24185 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24186 |
/* end confdefs.h. */ |
| 24187 |
|
| 24188 |
int main(void) |
| 24189 |
{ |
| 24190 |
return 0; |
| 24191 |
} |
| 24192 |
|
| 24193 |
_ACEOF |
| 24194 |
if ac_fn_c_try_link "$LINENO" |
| 24195 |
then : |
| 24196 |
mhd_cv_cc_cfl_supp__Waggregate_return="yes" |
| 24197 |
else case e in #( |
| 24198 |
e) # Compile and link failed with test flag added |
| 24199 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24200 |
if ac_fn_c_try_link "$LINENO" |
| 24201 |
then : |
| 24202 |
mhd_cv_cc_cfl_supp__Waggregate_return="no" |
| 24203 |
else case e in #( |
| 24204 |
e) # Compile and link failed with test flag removed as well |
| 24205 |
CFLAGS="${CFLAGS_ac} -Waggregate-return ${mhd_check_cc_flag_save_CFLAGS}" |
| 24206 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24207 |
if ac_fn_c_try_link "$LINENO" |
| 24208 |
then : |
| 24209 |
mhd_cv_cc_cfl_supp__Waggregate_return="yes" |
| 24210 |
else case e in #( |
| 24211 |
e) mhd_cv_cc_cfl_supp__Waggregate_return="no" ;; |
| 24212 |
esac |
| 24213 |
fi |
| 24214 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24215 |
conftest$ac_exeext |
| 24216 |
|
| 24217 |
;; |
| 24218 |
esac |
| 24219 |
fi |
| 24220 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24221 |
conftest$ac_exeext |
| 24222 |
|
| 24223 |
;; |
| 24224 |
esac |
| 24225 |
fi |
| 24226 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24227 |
conftest$ac_exeext |
| 24228 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24229 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24230 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24231 |
|
| 24232 |
;; |
| 24233 |
esac |
| 24234 |
fi |
| 24235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Waggregate_return" >&5 |
| 24236 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Waggregate_return" >&6; } |
| 24237 |
if test "x$mhd_cv_cc_cfl_supp__Waggregate_return" = x"yes" |
| 24238 |
then : |
| 24239 |
if test -z "${CFLAGS_ac}" |
| 24240 |
then : |
| 24241 |
CFLAGS_ac="-Waggregate-return" |
| 24242 |
else case e in #( |
| 24243 |
e) CFLAGS_ac="${CFLAGS_ac} -Waggregate-return" ;; |
| 24244 |
esac |
| 24245 |
fi |
| 24246 |
|
| 24247 |
|
| 24248 |
fi |
| 24249 |
|
| 24250 |
|
| 24251 |
|
| 24252 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-prototypes flag" >&5 |
| 24253 |
printf %s "checking whether $CC supports -Wstrict-prototypes flag... " >&6; } |
| 24254 |
if test ${mhd_cv_cc_cfl_supp__Wstrict_prototypes+y} |
| 24255 |
then : |
| 24256 |
printf %s "(cached) " >&6 |
| 24257 |
else case e in #( |
| 24258 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24259 |
CFLAGS="${CFLAGS_ac} -Wstrict-prototypes ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24260 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24261 |
ac_c_werror_flag=yes |
| 24262 |
# Reuse the same source for all the checks here |
| 24263 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24264 |
/* end confdefs.h. */ |
| 24265 |
|
| 24266 |
int main(void) |
| 24267 |
{ |
| 24268 |
return 0; |
| 24269 |
} |
| 24270 |
|
| 24271 |
_ACEOF |
| 24272 |
if ac_fn_c_try_link "$LINENO" |
| 24273 |
then : |
| 24274 |
mhd_cv_cc_cfl_supp__Wstrict_prototypes="yes" |
| 24275 |
else case e in #( |
| 24276 |
e) # Compile and link failed with test flag added |
| 24277 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24278 |
if ac_fn_c_try_link "$LINENO" |
| 24279 |
then : |
| 24280 |
mhd_cv_cc_cfl_supp__Wstrict_prototypes="no" |
| 24281 |
else case e in #( |
| 24282 |
e) # Compile and link failed with test flag removed as well |
| 24283 |
CFLAGS="${CFLAGS_ac} -Wstrict-prototypes ${mhd_check_cc_flag_save_CFLAGS}" |
| 24284 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24285 |
if ac_fn_c_try_link "$LINENO" |
| 24286 |
then : |
| 24287 |
mhd_cv_cc_cfl_supp__Wstrict_prototypes="yes" |
| 24288 |
else case e in #( |
| 24289 |
e) mhd_cv_cc_cfl_supp__Wstrict_prototypes="no" ;; |
| 24290 |
esac |
| 24291 |
fi |
| 24292 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24293 |
conftest$ac_exeext |
| 24294 |
|
| 24295 |
;; |
| 24296 |
esac |
| 24297 |
fi |
| 24298 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24299 |
conftest$ac_exeext |
| 24300 |
|
| 24301 |
;; |
| 24302 |
esac |
| 24303 |
fi |
| 24304 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24305 |
conftest$ac_exeext |
| 24306 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24307 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24308 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24309 |
|
| 24310 |
;; |
| 24311 |
esac |
| 24312 |
fi |
| 24313 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wstrict_prototypes" >&5 |
| 24314 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wstrict_prototypes" >&6; } |
| 24315 |
if test "x$mhd_cv_cc_cfl_supp__Wstrict_prototypes" = x"yes" |
| 24316 |
then : |
| 24317 |
if test -z "${CFLAGS_ac}" |
| 24318 |
then : |
| 24319 |
CFLAGS_ac="-Wstrict-prototypes" |
| 24320 |
else case e in #( |
| 24321 |
e) CFLAGS_ac="${CFLAGS_ac} -Wstrict-prototypes" ;; |
| 24322 |
esac |
| 24323 |
fi |
| 24324 |
|
| 24325 |
|
| 24326 |
fi |
| 24327 |
|
| 24328 |
|
| 24329 |
|
| 24330 |
|
| 24331 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wold-style-definition flag" >&5 |
| 24332 |
printf %s "checking whether $CC supports -Wold-style-definition flag... " >&6; } |
| 24333 |
if test ${mhd_cv_cc_cfl_supp__Wold_style_definition+y} |
| 24334 |
then : |
| 24335 |
printf %s "(cached) " >&6 |
| 24336 |
else case e in #( |
| 24337 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24338 |
CFLAGS="${CFLAGS_ac} -Wold-style-definition ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24339 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24340 |
ac_c_werror_flag=yes |
| 24341 |
# Reuse the same source for all the checks here |
| 24342 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24343 |
/* end confdefs.h. */ |
| 24344 |
|
| 24345 |
int main(void) |
| 24346 |
{ |
| 24347 |
return 0; |
| 24348 |
} |
| 24349 |
|
| 24350 |
_ACEOF |
| 24351 |
if ac_fn_c_try_link "$LINENO" |
| 24352 |
then : |
| 24353 |
mhd_cv_cc_cfl_supp__Wold_style_definition="yes" |
| 24354 |
else case e in #( |
| 24355 |
e) # Compile and link failed with test flag added |
| 24356 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24357 |
if ac_fn_c_try_link "$LINENO" |
| 24358 |
then : |
| 24359 |
mhd_cv_cc_cfl_supp__Wold_style_definition="no" |
| 24360 |
else case e in #( |
| 24361 |
e) # Compile and link failed with test flag removed as well |
| 24362 |
CFLAGS="${CFLAGS_ac} -Wold-style-definition ${mhd_check_cc_flag_save_CFLAGS}" |
| 24363 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24364 |
if ac_fn_c_try_link "$LINENO" |
| 24365 |
then : |
| 24366 |
mhd_cv_cc_cfl_supp__Wold_style_definition="yes" |
| 24367 |
else case e in #( |
| 24368 |
e) mhd_cv_cc_cfl_supp__Wold_style_definition="no" ;; |
| 24369 |
esac |
| 24370 |
fi |
| 24371 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24372 |
conftest$ac_exeext |
| 24373 |
|
| 24374 |
;; |
| 24375 |
esac |
| 24376 |
fi |
| 24377 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24378 |
conftest$ac_exeext |
| 24379 |
|
| 24380 |
;; |
| 24381 |
esac |
| 24382 |
fi |
| 24383 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24384 |
conftest$ac_exeext |
| 24385 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24386 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24387 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24388 |
|
| 24389 |
;; |
| 24390 |
esac |
| 24391 |
fi |
| 24392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wold_style_definition" >&5 |
| 24393 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wold_style_definition" >&6; } |
| 24394 |
if test "x$mhd_cv_cc_cfl_supp__Wold_style_definition" = x"yes" |
| 24395 |
then : |
| 24396 |
if test -z "${CFLAGS_ac}" |
| 24397 |
then : |
| 24398 |
CFLAGS_ac="-Wold-style-definition" |
| 24399 |
else case e in #( |
| 24400 |
e) CFLAGS_ac="${CFLAGS_ac} -Wold-style-definition" ;; |
| 24401 |
esac |
| 24402 |
fi |
| 24403 |
|
| 24404 |
|
| 24405 |
fi |
| 24406 |
|
| 24407 |
|
| 24408 |
|
| 24409 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-declarations flag" >&5 |
| 24410 |
printf %s "checking whether $CC supports -Wmissing-declarations flag... " >&6; } |
| 24411 |
if test ${mhd_cv_cc_cfl_supp__Wmissing_declarations+y} |
| 24412 |
then : |
| 24413 |
printf %s "(cached) " >&6 |
| 24414 |
else case e in #( |
| 24415 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24416 |
CFLAGS="${CFLAGS_ac} -Wmissing-declarations ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24417 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24418 |
ac_c_werror_flag=yes |
| 24419 |
# Reuse the same source for all the checks here |
| 24420 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24421 |
/* end confdefs.h. */ |
| 24422 |
|
| 24423 |
int main(void) |
| 24424 |
{ |
| 24425 |
return 0; |
| 24426 |
} |
| 24427 |
|
| 24428 |
_ACEOF |
| 24429 |
if ac_fn_c_try_link "$LINENO" |
| 24430 |
then : |
| 24431 |
mhd_cv_cc_cfl_supp__Wmissing_declarations="yes" |
| 24432 |
else case e in #( |
| 24433 |
e) # Compile and link failed with test flag added |
| 24434 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24435 |
if ac_fn_c_try_link "$LINENO" |
| 24436 |
then : |
| 24437 |
mhd_cv_cc_cfl_supp__Wmissing_declarations="no" |
| 24438 |
else case e in #( |
| 24439 |
e) # Compile and link failed with test flag removed as well |
| 24440 |
CFLAGS="${CFLAGS_ac} -Wmissing-declarations ${mhd_check_cc_flag_save_CFLAGS}" |
| 24441 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24442 |
if ac_fn_c_try_link "$LINENO" |
| 24443 |
then : |
| 24444 |
mhd_cv_cc_cfl_supp__Wmissing_declarations="yes" |
| 24445 |
else case e in #( |
| 24446 |
e) mhd_cv_cc_cfl_supp__Wmissing_declarations="no" ;; |
| 24447 |
esac |
| 24448 |
fi |
| 24449 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24450 |
conftest$ac_exeext |
| 24451 |
|
| 24452 |
;; |
| 24453 |
esac |
| 24454 |
fi |
| 24455 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24456 |
conftest$ac_exeext |
| 24457 |
|
| 24458 |
;; |
| 24459 |
esac |
| 24460 |
fi |
| 24461 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24462 |
conftest$ac_exeext |
| 24463 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24464 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24465 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24466 |
|
| 24467 |
;; |
| 24468 |
esac |
| 24469 |
fi |
| 24470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wmissing_declarations" >&5 |
| 24471 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wmissing_declarations" >&6; } |
| 24472 |
if test "x$mhd_cv_cc_cfl_supp__Wmissing_declarations" = x"yes" |
| 24473 |
then : |
| 24474 |
if test -z "${CFLAGS_ac}" |
| 24475 |
then : |
| 24476 |
CFLAGS_ac="-Wmissing-declarations" |
| 24477 |
else case e in #( |
| 24478 |
e) CFLAGS_ac="${CFLAGS_ac} -Wmissing-declarations" ;; |
| 24479 |
esac |
| 24480 |
fi |
| 24481 |
|
| 24482 |
|
| 24483 |
fi |
| 24484 |
|
| 24485 |
|
| 24486 |
|
| 24487 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-prototypes flag" >&5 |
| 24488 |
printf %s "checking whether $CC supports -Wmissing-prototypes flag... " >&6; } |
| 24489 |
if test ${mhd_cv_cc_cfl_supp__Wmissing_prototypes+y} |
| 24490 |
then : |
| 24491 |
printf %s "(cached) " >&6 |
| 24492 |
else case e in #( |
| 24493 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24494 |
CFLAGS="${CFLAGS_ac} -Wmissing-prototypes ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24495 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24496 |
ac_c_werror_flag=yes |
| 24497 |
# Reuse the same source for all the checks here |
| 24498 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24499 |
/* end confdefs.h. */ |
| 24500 |
|
| 24501 |
int main(void) |
| 24502 |
{ |
| 24503 |
return 0; |
| 24504 |
} |
| 24505 |
|
| 24506 |
_ACEOF |
| 24507 |
if ac_fn_c_try_link "$LINENO" |
| 24508 |
then : |
| 24509 |
mhd_cv_cc_cfl_supp__Wmissing_prototypes="yes" |
| 24510 |
else case e in #( |
| 24511 |
e) # Compile and link failed with test flag added |
| 24512 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24513 |
if ac_fn_c_try_link "$LINENO" |
| 24514 |
then : |
| 24515 |
mhd_cv_cc_cfl_supp__Wmissing_prototypes="no" |
| 24516 |
else case e in #( |
| 24517 |
e) # Compile and link failed with test flag removed as well |
| 24518 |
CFLAGS="${CFLAGS_ac} -Wmissing-prototypes ${mhd_check_cc_flag_save_CFLAGS}" |
| 24519 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24520 |
if ac_fn_c_try_link "$LINENO" |
| 24521 |
then : |
| 24522 |
mhd_cv_cc_cfl_supp__Wmissing_prototypes="yes" |
| 24523 |
else case e in #( |
| 24524 |
e) mhd_cv_cc_cfl_supp__Wmissing_prototypes="no" ;; |
| 24525 |
esac |
| 24526 |
fi |
| 24527 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24528 |
conftest$ac_exeext |
| 24529 |
|
| 24530 |
;; |
| 24531 |
esac |
| 24532 |
fi |
| 24533 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24534 |
conftest$ac_exeext |
| 24535 |
|
| 24536 |
;; |
| 24537 |
esac |
| 24538 |
fi |
| 24539 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24540 |
conftest$ac_exeext |
| 24541 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24542 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24543 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24544 |
|
| 24545 |
;; |
| 24546 |
esac |
| 24547 |
fi |
| 24548 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wmissing_prototypes" >&5 |
| 24549 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wmissing_prototypes" >&6; } |
| 24550 |
if test "x$mhd_cv_cc_cfl_supp__Wmissing_prototypes" = x"yes" |
| 24551 |
then : |
| 24552 |
if test -z "${CFLAGS_ac}" |
| 24553 |
then : |
| 24554 |
CFLAGS_ac="-Wmissing-prototypes" |
| 24555 |
else case e in #( |
| 24556 |
e) CFLAGS_ac="${CFLAGS_ac} -Wmissing-prototypes" ;; |
| 24557 |
esac |
| 24558 |
fi |
| 24559 |
|
| 24560 |
|
| 24561 |
fi |
| 24562 |
|
| 24563 |
|
| 24564 |
|
| 24565 |
|
| 24566 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wuninitialized flag" >&5 |
| 24567 |
printf %s "checking whether $CC supports -Wuninitialized flag... " >&6; } |
| 24568 |
if test ${mhd_cv_cc_cfl_supp__Wuninitialized+y} |
| 24569 |
then : |
| 24570 |
printf %s "(cached) " >&6 |
| 24571 |
else case e in #( |
| 24572 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24573 |
CFLAGS="${CFLAGS_ac} -Wuninitialized ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24574 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24575 |
ac_c_werror_flag=yes |
| 24576 |
# Reuse the same source for all the checks here |
| 24577 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24578 |
/* end confdefs.h. */ |
| 24579 |
|
| 24580 |
int main(void) |
| 24581 |
{ |
| 24582 |
return 0; |
| 24583 |
} |
| 24584 |
|
| 24585 |
_ACEOF |
| 24586 |
if ac_fn_c_try_link "$LINENO" |
| 24587 |
then : |
| 24588 |
mhd_cv_cc_cfl_supp__Wuninitialized="yes" |
| 24589 |
else case e in #( |
| 24590 |
e) # Compile and link failed with test flag added |
| 24591 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24592 |
if ac_fn_c_try_link "$LINENO" |
| 24593 |
then : |
| 24594 |
mhd_cv_cc_cfl_supp__Wuninitialized="no" |
| 24595 |
else case e in #( |
| 24596 |
e) # Compile and link failed with test flag removed as well |
| 24597 |
CFLAGS="${CFLAGS_ac} -Wuninitialized ${mhd_check_cc_flag_save_CFLAGS}" |
| 24598 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24599 |
if ac_fn_c_try_link "$LINENO" |
| 24600 |
then : |
| 24601 |
mhd_cv_cc_cfl_supp__Wuninitialized="yes" |
| 24602 |
else case e in #( |
| 24603 |
e) mhd_cv_cc_cfl_supp__Wuninitialized="no" ;; |
| 24604 |
esac |
| 24605 |
fi |
| 24606 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24607 |
conftest$ac_exeext |
| 24608 |
|
| 24609 |
;; |
| 24610 |
esac |
| 24611 |
fi |
| 24612 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24613 |
conftest$ac_exeext |
| 24614 |
|
| 24615 |
;; |
| 24616 |
esac |
| 24617 |
fi |
| 24618 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24619 |
conftest$ac_exeext |
| 24620 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24621 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24622 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24623 |
|
| 24624 |
;; |
| 24625 |
esac |
| 24626 |
fi |
| 24627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wuninitialized" >&5 |
| 24628 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wuninitialized" >&6; } |
| 24629 |
if test "x$mhd_cv_cc_cfl_supp__Wuninitialized" = x"yes" |
| 24630 |
then : |
| 24631 |
if test -z "${CFLAGS_ac}" |
| 24632 |
then : |
| 24633 |
CFLAGS_ac="-Wuninitialized" |
| 24634 |
else case e in #( |
| 24635 |
e) CFLAGS_ac="${CFLAGS_ac} -Wuninitialized" ;; |
| 24636 |
esac |
| 24637 |
fi |
| 24638 |
|
| 24639 |
|
| 24640 |
fi |
| 24641 |
|
| 24642 |
|
| 24643 |
|
| 24644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Winit-self flag" >&5 |
| 24645 |
printf %s "checking whether $CC supports -Winit-self flag... " >&6; } |
| 24646 |
if test ${mhd_cv_cc_cfl_supp__Winit_self+y} |
| 24647 |
then : |
| 24648 |
printf %s "(cached) " >&6 |
| 24649 |
else case e in #( |
| 24650 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24651 |
CFLAGS="${CFLAGS_ac} -Winit-self ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24652 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24653 |
ac_c_werror_flag=yes |
| 24654 |
# Reuse the same source for all the checks here |
| 24655 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24656 |
/* end confdefs.h. */ |
| 24657 |
|
| 24658 |
int main(void) |
| 24659 |
{ |
| 24660 |
return 0; |
| 24661 |
} |
| 24662 |
|
| 24663 |
_ACEOF |
| 24664 |
if ac_fn_c_try_link "$LINENO" |
| 24665 |
then : |
| 24666 |
mhd_cv_cc_cfl_supp__Winit_self="yes" |
| 24667 |
else case e in #( |
| 24668 |
e) # Compile and link failed with test flag added |
| 24669 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24670 |
if ac_fn_c_try_link "$LINENO" |
| 24671 |
then : |
| 24672 |
mhd_cv_cc_cfl_supp__Winit_self="no" |
| 24673 |
else case e in #( |
| 24674 |
e) # Compile and link failed with test flag removed as well |
| 24675 |
CFLAGS="${CFLAGS_ac} -Winit-self ${mhd_check_cc_flag_save_CFLAGS}" |
| 24676 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24677 |
if ac_fn_c_try_link "$LINENO" |
| 24678 |
then : |
| 24679 |
mhd_cv_cc_cfl_supp__Winit_self="yes" |
| 24680 |
else case e in #( |
| 24681 |
e) mhd_cv_cc_cfl_supp__Winit_self="no" ;; |
| 24682 |
esac |
| 24683 |
fi |
| 24684 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24685 |
conftest$ac_exeext |
| 24686 |
|
| 24687 |
;; |
| 24688 |
esac |
| 24689 |
fi |
| 24690 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24691 |
conftest$ac_exeext |
| 24692 |
|
| 24693 |
;; |
| 24694 |
esac |
| 24695 |
fi |
| 24696 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24697 |
conftest$ac_exeext |
| 24698 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24699 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24700 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24701 |
|
| 24702 |
;; |
| 24703 |
esac |
| 24704 |
fi |
| 24705 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Winit_self" >&5 |
| 24706 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Winit_self" >&6; } |
| 24707 |
if test "x$mhd_cv_cc_cfl_supp__Winit_self" = x"yes" |
| 24708 |
then : |
| 24709 |
if test -z "${CFLAGS_ac}" |
| 24710 |
then : |
| 24711 |
CFLAGS_ac="-Winit-self" |
| 24712 |
else case e in #( |
| 24713 |
e) CFLAGS_ac="${CFLAGS_ac} -Winit-self" ;; |
| 24714 |
esac |
| 24715 |
fi |
| 24716 |
|
| 24717 |
|
| 24718 |
fi |
| 24719 |
|
| 24720 |
|
| 24721 |
|
| 24722 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshift-negative-value flag" >&5 |
| 24723 |
printf %s "checking whether $CC supports -Wshift-negative-value flag... " >&6; } |
| 24724 |
if test ${mhd_cv_cc_cfl_supp__Wshift_negative_value+y} |
| 24725 |
then : |
| 24726 |
printf %s "(cached) " >&6 |
| 24727 |
else case e in #( |
| 24728 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24729 |
CFLAGS="${CFLAGS_ac} -Wshift-negative-value ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24730 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24731 |
ac_c_werror_flag=yes |
| 24732 |
# Reuse the same source for all the checks here |
| 24733 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24734 |
/* end confdefs.h. */ |
| 24735 |
|
| 24736 |
int main(void) |
| 24737 |
{ |
| 24738 |
return 0; |
| 24739 |
} |
| 24740 |
|
| 24741 |
_ACEOF |
| 24742 |
if ac_fn_c_try_link "$LINENO" |
| 24743 |
then : |
| 24744 |
mhd_cv_cc_cfl_supp__Wshift_negative_value="yes" |
| 24745 |
else case e in #( |
| 24746 |
e) # Compile and link failed with test flag added |
| 24747 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24748 |
if ac_fn_c_try_link "$LINENO" |
| 24749 |
then : |
| 24750 |
mhd_cv_cc_cfl_supp__Wshift_negative_value="no" |
| 24751 |
else case e in #( |
| 24752 |
e) # Compile and link failed with test flag removed as well |
| 24753 |
CFLAGS="${CFLAGS_ac} -Wshift-negative-value ${mhd_check_cc_flag_save_CFLAGS}" |
| 24754 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24755 |
if ac_fn_c_try_link "$LINENO" |
| 24756 |
then : |
| 24757 |
mhd_cv_cc_cfl_supp__Wshift_negative_value="yes" |
| 24758 |
else case e in #( |
| 24759 |
e) mhd_cv_cc_cfl_supp__Wshift_negative_value="no" ;; |
| 24760 |
esac |
| 24761 |
fi |
| 24762 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24763 |
conftest$ac_exeext |
| 24764 |
|
| 24765 |
;; |
| 24766 |
esac |
| 24767 |
fi |
| 24768 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24769 |
conftest$ac_exeext |
| 24770 |
|
| 24771 |
;; |
| 24772 |
esac |
| 24773 |
fi |
| 24774 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24775 |
conftest$ac_exeext |
| 24776 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24777 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24778 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24779 |
|
| 24780 |
;; |
| 24781 |
esac |
| 24782 |
fi |
| 24783 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshift_negative_value" >&5 |
| 24784 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshift_negative_value" >&6; } |
| 24785 |
if test "x$mhd_cv_cc_cfl_supp__Wshift_negative_value" = x"yes" |
| 24786 |
then : |
| 24787 |
if test -z "${CFLAGS_ac}" |
| 24788 |
then : |
| 24789 |
CFLAGS_ac="-Wshift-negative-value" |
| 24790 |
else case e in #( |
| 24791 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshift-negative-value" ;; |
| 24792 |
esac |
| 24793 |
fi |
| 24794 |
|
| 24795 |
|
| 24796 |
fi |
| 24797 |
|
| 24798 |
|
| 24799 |
|
| 24800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wswitch-enum flag" >&5 |
| 24801 |
printf %s "checking whether $CC supports -Wswitch-enum flag... " >&6; } |
| 24802 |
if test ${mhd_cv_cc_cfl_supp__Wswitch_enum+y} |
| 24803 |
then : |
| 24804 |
printf %s "(cached) " >&6 |
| 24805 |
else case e in #( |
| 24806 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24807 |
CFLAGS="${CFLAGS_ac} -Wswitch-enum ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24808 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24809 |
ac_c_werror_flag=yes |
| 24810 |
# Reuse the same source for all the checks here |
| 24811 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24812 |
/* end confdefs.h. */ |
| 24813 |
|
| 24814 |
int main(void) |
| 24815 |
{ |
| 24816 |
return 0; |
| 24817 |
} |
| 24818 |
|
| 24819 |
_ACEOF |
| 24820 |
if ac_fn_c_try_link "$LINENO" |
| 24821 |
then : |
| 24822 |
mhd_cv_cc_cfl_supp__Wswitch_enum="yes" |
| 24823 |
else case e in #( |
| 24824 |
e) # Compile and link failed with test flag added |
| 24825 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24826 |
if ac_fn_c_try_link "$LINENO" |
| 24827 |
then : |
| 24828 |
mhd_cv_cc_cfl_supp__Wswitch_enum="no" |
| 24829 |
else case e in #( |
| 24830 |
e) # Compile and link failed with test flag removed as well |
| 24831 |
CFLAGS="${CFLAGS_ac} -Wswitch-enum ${mhd_check_cc_flag_save_CFLAGS}" |
| 24832 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24833 |
if ac_fn_c_try_link "$LINENO" |
| 24834 |
then : |
| 24835 |
mhd_cv_cc_cfl_supp__Wswitch_enum="yes" |
| 24836 |
else case e in #( |
| 24837 |
e) mhd_cv_cc_cfl_supp__Wswitch_enum="no" ;; |
| 24838 |
esac |
| 24839 |
fi |
| 24840 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24841 |
conftest$ac_exeext |
| 24842 |
|
| 24843 |
;; |
| 24844 |
esac |
| 24845 |
fi |
| 24846 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24847 |
conftest$ac_exeext |
| 24848 |
|
| 24849 |
;; |
| 24850 |
esac |
| 24851 |
fi |
| 24852 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24853 |
conftest$ac_exeext |
| 24854 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24855 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24856 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24857 |
|
| 24858 |
;; |
| 24859 |
esac |
| 24860 |
fi |
| 24861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wswitch_enum" >&5 |
| 24862 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wswitch_enum" >&6; } |
| 24863 |
if test "x$mhd_cv_cc_cfl_supp__Wswitch_enum" = x"yes" |
| 24864 |
then : |
| 24865 |
if test -z "${CFLAGS_ac}" |
| 24866 |
then : |
| 24867 |
CFLAGS_ac="-Wswitch-enum" |
| 24868 |
else case e in #( |
| 24869 |
e) CFLAGS_ac="${CFLAGS_ac} -Wswitch-enum" ;; |
| 24870 |
esac |
| 24871 |
fi |
| 24872 |
|
| 24873 |
|
| 24874 |
fi |
| 24875 |
|
| 24876 |
|
| 24877 |
|
| 24878 |
|
| 24879 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-overflow=4 flag" >&5 |
| 24880 |
printf %s "checking whether $CC supports -Wstrict-overflow=4 flag... " >&6; } |
| 24881 |
if test ${mhd_cv_cc_cfl_supp__Wstrict_overflow_4+y} |
| 24882 |
then : |
| 24883 |
printf %s "(cached) " >&6 |
| 24884 |
else case e in #( |
| 24885 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24886 |
CFLAGS="${CFLAGS_ac} -Wstrict-overflow=4 ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24887 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24888 |
ac_c_werror_flag=yes |
| 24889 |
# Reuse the same source for all the checks here |
| 24890 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24891 |
/* end confdefs.h. */ |
| 24892 |
|
| 24893 |
int main(void) |
| 24894 |
{ |
| 24895 |
return 0; |
| 24896 |
} |
| 24897 |
|
| 24898 |
_ACEOF |
| 24899 |
if ac_fn_c_try_link "$LINENO" |
| 24900 |
then : |
| 24901 |
mhd_cv_cc_cfl_supp__Wstrict_overflow_4="yes" |
| 24902 |
else case e in #( |
| 24903 |
e) # Compile and link failed with test flag added |
| 24904 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24905 |
if ac_fn_c_try_link "$LINENO" |
| 24906 |
then : |
| 24907 |
mhd_cv_cc_cfl_supp__Wstrict_overflow_4="no" |
| 24908 |
else case e in #( |
| 24909 |
e) # Compile and link failed with test flag removed as well |
| 24910 |
CFLAGS="${CFLAGS_ac} -Wstrict-overflow=4 ${mhd_check_cc_flag_save_CFLAGS}" |
| 24911 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24912 |
if ac_fn_c_try_link "$LINENO" |
| 24913 |
then : |
| 24914 |
mhd_cv_cc_cfl_supp__Wstrict_overflow_4="yes" |
| 24915 |
else case e in #( |
| 24916 |
e) mhd_cv_cc_cfl_supp__Wstrict_overflow_4="no" ;; |
| 24917 |
esac |
| 24918 |
fi |
| 24919 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24920 |
conftest$ac_exeext |
| 24921 |
|
| 24922 |
;; |
| 24923 |
esac |
| 24924 |
fi |
| 24925 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24926 |
conftest$ac_exeext |
| 24927 |
|
| 24928 |
;; |
| 24929 |
esac |
| 24930 |
fi |
| 24931 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24932 |
conftest$ac_exeext |
| 24933 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24934 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 24935 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 24936 |
|
| 24937 |
;; |
| 24938 |
esac |
| 24939 |
fi |
| 24940 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wstrict_overflow_4" >&5 |
| 24941 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wstrict_overflow_4" >&6; } |
| 24942 |
if test "x$mhd_cv_cc_cfl_supp__Wstrict_overflow_4" = x"yes" |
| 24943 |
then : |
| 24944 |
if test -z "${CFLAGS_ac}" |
| 24945 |
then : |
| 24946 |
CFLAGS_ac="-Wstrict-overflow=4" |
| 24947 |
else case e in #( |
| 24948 |
e) CFLAGS_ac="${CFLAGS_ac} -Wstrict-overflow=4" ;; |
| 24949 |
esac |
| 24950 |
fi |
| 24951 |
|
| 24952 |
|
| 24953 |
else case e in #( |
| 24954 |
e) |
| 24955 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstrict-overflow flag" >&5 |
| 24956 |
printf %s "checking whether $CC supports -Wstrict-overflow flag... " >&6; } |
| 24957 |
if test ${mhd_cv_cc_cfl_supp__Wstrict_overflow+y} |
| 24958 |
then : |
| 24959 |
printf %s "(cached) " >&6 |
| 24960 |
else case e in #( |
| 24961 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 24962 |
CFLAGS="${CFLAGS_ac} -Wstrict-overflow ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24963 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 24964 |
ac_c_werror_flag=yes |
| 24965 |
# Reuse the same source for all the checks here |
| 24966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24967 |
/* end confdefs.h. */ |
| 24968 |
|
| 24969 |
int main(void) |
| 24970 |
{ |
| 24971 |
return 0; |
| 24972 |
} |
| 24973 |
|
| 24974 |
_ACEOF |
| 24975 |
if ac_fn_c_try_link "$LINENO" |
| 24976 |
then : |
| 24977 |
mhd_cv_cc_cfl_supp__Wstrict_overflow="yes" |
| 24978 |
else case e in #( |
| 24979 |
e) # Compile and link failed with test flag added |
| 24980 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 24981 |
if ac_fn_c_try_link "$LINENO" |
| 24982 |
then : |
| 24983 |
mhd_cv_cc_cfl_supp__Wstrict_overflow="no" |
| 24984 |
else case e in #( |
| 24985 |
e) # Compile and link failed with test flag removed as well |
| 24986 |
CFLAGS="${CFLAGS_ac} -Wstrict-overflow ${mhd_check_cc_flag_save_CFLAGS}" |
| 24987 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 24988 |
if ac_fn_c_try_link "$LINENO" |
| 24989 |
then : |
| 24990 |
mhd_cv_cc_cfl_supp__Wstrict_overflow="yes" |
| 24991 |
else case e in #( |
| 24992 |
e) mhd_cv_cc_cfl_supp__Wstrict_overflow="no" ;; |
| 24993 |
esac |
| 24994 |
fi |
| 24995 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 24996 |
conftest$ac_exeext |
| 24997 |
|
| 24998 |
;; |
| 24999 |
esac |
| 25000 |
fi |
| 25001 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25002 |
conftest$ac_exeext |
| 25003 |
|
| 25004 |
;; |
| 25005 |
esac |
| 25006 |
fi |
| 25007 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25008 |
conftest$ac_exeext |
| 25009 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25010 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25011 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25012 |
|
| 25013 |
;; |
| 25014 |
esac |
| 25015 |
fi |
| 25016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wstrict_overflow" >&5 |
| 25017 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wstrict_overflow" >&6; } |
| 25018 |
if test "x$mhd_cv_cc_cfl_supp__Wstrict_overflow" = x"yes" |
| 25019 |
then : |
| 25020 |
if test -z "${CFLAGS_ac}" |
| 25021 |
then : |
| 25022 |
CFLAGS_ac="-Wstrict-overflow" |
| 25023 |
else case e in #( |
| 25024 |
e) CFLAGS_ac="${CFLAGS_ac} -Wstrict-overflow" ;; |
| 25025 |
esac |
| 25026 |
fi |
| 25027 |
|
| 25028 |
|
| 25029 |
fi |
| 25030 |
|
| 25031 |
;; |
| 25032 |
esac |
| 25033 |
fi |
| 25034 |
|
| 25035 |
|
| 25036 |
|
| 25037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnormalized=nfkc flag" >&5 |
| 25038 |
printf %s "checking whether $CC supports -Wnormalized=nfkc flag... " >&6; } |
| 25039 |
if test ${mhd_cv_cc_cfl_supp__Wnormalized_nfkc+y} |
| 25040 |
then : |
| 25041 |
printf %s "(cached) " >&6 |
| 25042 |
else case e in #( |
| 25043 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25044 |
CFLAGS="${CFLAGS_ac} -Wnormalized=nfkc ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25045 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25046 |
ac_c_werror_flag=yes |
| 25047 |
# Reuse the same source for all the checks here |
| 25048 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25049 |
/* end confdefs.h. */ |
| 25050 |
|
| 25051 |
int main(void) |
| 25052 |
{ |
| 25053 |
return 0; |
| 25054 |
} |
| 25055 |
|
| 25056 |
_ACEOF |
| 25057 |
if ac_fn_c_try_link "$LINENO" |
| 25058 |
then : |
| 25059 |
mhd_cv_cc_cfl_supp__Wnormalized_nfkc="yes" |
| 25060 |
else case e in #( |
| 25061 |
e) # Compile and link failed with test flag added |
| 25062 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25063 |
if ac_fn_c_try_link "$LINENO" |
| 25064 |
then : |
| 25065 |
mhd_cv_cc_cfl_supp__Wnormalized_nfkc="no" |
| 25066 |
else case e in #( |
| 25067 |
e) # Compile and link failed with test flag removed as well |
| 25068 |
CFLAGS="${CFLAGS_ac} -Wnormalized=nfkc ${mhd_check_cc_flag_save_CFLAGS}" |
| 25069 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25070 |
if ac_fn_c_try_link "$LINENO" |
| 25071 |
then : |
| 25072 |
mhd_cv_cc_cfl_supp__Wnormalized_nfkc="yes" |
| 25073 |
else case e in #( |
| 25074 |
e) mhd_cv_cc_cfl_supp__Wnormalized_nfkc="no" ;; |
| 25075 |
esac |
| 25076 |
fi |
| 25077 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25078 |
conftest$ac_exeext |
| 25079 |
|
| 25080 |
;; |
| 25081 |
esac |
| 25082 |
fi |
| 25083 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25084 |
conftest$ac_exeext |
| 25085 |
|
| 25086 |
;; |
| 25087 |
esac |
| 25088 |
fi |
| 25089 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25090 |
conftest$ac_exeext |
| 25091 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25092 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25093 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25094 |
|
| 25095 |
;; |
| 25096 |
esac |
| 25097 |
fi |
| 25098 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnormalized_nfkc" >&5 |
| 25099 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnormalized_nfkc" >&6; } |
| 25100 |
if test "x$mhd_cv_cc_cfl_supp__Wnormalized_nfkc" = x"yes" |
| 25101 |
then : |
| 25102 |
if test -z "${CFLAGS_ac}" |
| 25103 |
then : |
| 25104 |
CFLAGS_ac="-Wnormalized=nfkc" |
| 25105 |
else case e in #( |
| 25106 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnormalized=nfkc" ;; |
| 25107 |
esac |
| 25108 |
fi |
| 25109 |
|
| 25110 |
|
| 25111 |
else case e in #( |
| 25112 |
e) |
| 25113 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnormalized flag" >&5 |
| 25114 |
printf %s "checking whether $CC supports -Wnormalized flag... " >&6; } |
| 25115 |
if test ${mhd_cv_cc_cfl_supp__Wnormalized+y} |
| 25116 |
then : |
| 25117 |
printf %s "(cached) " >&6 |
| 25118 |
else case e in #( |
| 25119 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25120 |
CFLAGS="${CFLAGS_ac} -Wnormalized ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25121 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25122 |
ac_c_werror_flag=yes |
| 25123 |
# Reuse the same source for all the checks here |
| 25124 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25125 |
/* end confdefs.h. */ |
| 25126 |
|
| 25127 |
int main(void) |
| 25128 |
{ |
| 25129 |
return 0; |
| 25130 |
} |
| 25131 |
|
| 25132 |
_ACEOF |
| 25133 |
if ac_fn_c_try_link "$LINENO" |
| 25134 |
then : |
| 25135 |
mhd_cv_cc_cfl_supp__Wnormalized="yes" |
| 25136 |
else case e in #( |
| 25137 |
e) # Compile and link failed with test flag added |
| 25138 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25139 |
if ac_fn_c_try_link "$LINENO" |
| 25140 |
then : |
| 25141 |
mhd_cv_cc_cfl_supp__Wnormalized="no" |
| 25142 |
else case e in #( |
| 25143 |
e) # Compile and link failed with test flag removed as well |
| 25144 |
CFLAGS="${CFLAGS_ac} -Wnormalized ${mhd_check_cc_flag_save_CFLAGS}" |
| 25145 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25146 |
if ac_fn_c_try_link "$LINENO" |
| 25147 |
then : |
| 25148 |
mhd_cv_cc_cfl_supp__Wnormalized="yes" |
| 25149 |
else case e in #( |
| 25150 |
e) mhd_cv_cc_cfl_supp__Wnormalized="no" ;; |
| 25151 |
esac |
| 25152 |
fi |
| 25153 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25154 |
conftest$ac_exeext |
| 25155 |
|
| 25156 |
;; |
| 25157 |
esac |
| 25158 |
fi |
| 25159 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25160 |
conftest$ac_exeext |
| 25161 |
|
| 25162 |
;; |
| 25163 |
esac |
| 25164 |
fi |
| 25165 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25166 |
conftest$ac_exeext |
| 25167 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25168 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25169 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25170 |
|
| 25171 |
;; |
| 25172 |
esac |
| 25173 |
fi |
| 25174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnormalized" >&5 |
| 25175 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnormalized" >&6; } |
| 25176 |
if test "x$mhd_cv_cc_cfl_supp__Wnormalized" = x"yes" |
| 25177 |
then : |
| 25178 |
if test -z "${CFLAGS_ac}" |
| 25179 |
then : |
| 25180 |
CFLAGS_ac="-Wnormalized" |
| 25181 |
else case e in #( |
| 25182 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnormalized" ;; |
| 25183 |
esac |
| 25184 |
fi |
| 25185 |
|
| 25186 |
|
| 25187 |
fi |
| 25188 |
|
| 25189 |
;; |
| 25190 |
esac |
| 25191 |
fi |
| 25192 |
|
| 25193 |
|
| 25194 |
|
| 25195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Walloca flag" >&5 |
| 25196 |
printf %s "checking whether $CC supports -Walloca flag... " >&6; } |
| 25197 |
if test ${mhd_cv_cc_cfl_supp__Walloca+y} |
| 25198 |
then : |
| 25199 |
printf %s "(cached) " >&6 |
| 25200 |
else case e in #( |
| 25201 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25202 |
CFLAGS="${CFLAGS_ac} -Walloca ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25203 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25204 |
ac_c_werror_flag=yes |
| 25205 |
# Reuse the same source for all the checks here |
| 25206 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25207 |
/* end confdefs.h. */ |
| 25208 |
|
| 25209 |
int main(void) |
| 25210 |
{ |
| 25211 |
return 0; |
| 25212 |
} |
| 25213 |
|
| 25214 |
_ACEOF |
| 25215 |
if ac_fn_c_try_link "$LINENO" |
| 25216 |
then : |
| 25217 |
mhd_cv_cc_cfl_supp__Walloca="yes" |
| 25218 |
else case e in #( |
| 25219 |
e) # Compile and link failed with test flag added |
| 25220 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25221 |
if ac_fn_c_try_link "$LINENO" |
| 25222 |
then : |
| 25223 |
mhd_cv_cc_cfl_supp__Walloca="no" |
| 25224 |
else case e in #( |
| 25225 |
e) # Compile and link failed with test flag removed as well |
| 25226 |
CFLAGS="${CFLAGS_ac} -Walloca ${mhd_check_cc_flag_save_CFLAGS}" |
| 25227 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25228 |
if ac_fn_c_try_link "$LINENO" |
| 25229 |
then : |
| 25230 |
mhd_cv_cc_cfl_supp__Walloca="yes" |
| 25231 |
else case e in #( |
| 25232 |
e) mhd_cv_cc_cfl_supp__Walloca="no" ;; |
| 25233 |
esac |
| 25234 |
fi |
| 25235 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25236 |
conftest$ac_exeext |
| 25237 |
|
| 25238 |
;; |
| 25239 |
esac |
| 25240 |
fi |
| 25241 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25242 |
conftest$ac_exeext |
| 25243 |
|
| 25244 |
;; |
| 25245 |
esac |
| 25246 |
fi |
| 25247 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25248 |
conftest$ac_exeext |
| 25249 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25250 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25251 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25252 |
|
| 25253 |
;; |
| 25254 |
esac |
| 25255 |
fi |
| 25256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Walloca" >&5 |
| 25257 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Walloca" >&6; } |
| 25258 |
if test "x$mhd_cv_cc_cfl_supp__Walloca" = x"yes" |
| 25259 |
then : |
| 25260 |
if test -z "${CFLAGS_ac}" |
| 25261 |
then : |
| 25262 |
CFLAGS_ac="-Walloca" |
| 25263 |
else case e in #( |
| 25264 |
e) CFLAGS_ac="${CFLAGS_ac} -Walloca" ;; |
| 25265 |
esac |
| 25266 |
fi |
| 25267 |
|
| 25268 |
|
| 25269 |
fi |
| 25270 |
|
| 25271 |
|
| 25272 |
|
| 25273 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbidi-chars=any flag" >&5 |
| 25274 |
printf %s "checking whether $CC supports -Wbidi-chars=any flag... " >&6; } |
| 25275 |
if test ${mhd_cv_cc_cfl_supp__Wbidi_chars_any+y} |
| 25276 |
then : |
| 25277 |
printf %s "(cached) " >&6 |
| 25278 |
else case e in #( |
| 25279 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25280 |
CFLAGS="${CFLAGS_ac} -Wbidi-chars=any ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25281 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25282 |
ac_c_werror_flag=yes |
| 25283 |
# Reuse the same source for all the checks here |
| 25284 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25285 |
/* end confdefs.h. */ |
| 25286 |
|
| 25287 |
int main(void) |
| 25288 |
{ |
| 25289 |
return 0; |
| 25290 |
} |
| 25291 |
|
| 25292 |
_ACEOF |
| 25293 |
if ac_fn_c_try_link "$LINENO" |
| 25294 |
then : |
| 25295 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="yes" |
| 25296 |
else case e in #( |
| 25297 |
e) # Compile and link failed with test flag added |
| 25298 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25299 |
if ac_fn_c_try_link "$LINENO" |
| 25300 |
then : |
| 25301 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="no" |
| 25302 |
else case e in #( |
| 25303 |
e) # Compile and link failed with test flag removed as well |
| 25304 |
CFLAGS="${CFLAGS_ac} -Wbidi-chars=any ${mhd_check_cc_flag_save_CFLAGS}" |
| 25305 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25306 |
if ac_fn_c_try_link "$LINENO" |
| 25307 |
then : |
| 25308 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="yes" |
| 25309 |
else case e in #( |
| 25310 |
e) mhd_cv_cc_cfl_supp__Wbidi_chars_any="no" ;; |
| 25311 |
esac |
| 25312 |
fi |
| 25313 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25314 |
conftest$ac_exeext |
| 25315 |
|
| 25316 |
;; |
| 25317 |
esac |
| 25318 |
fi |
| 25319 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25320 |
conftest$ac_exeext |
| 25321 |
|
| 25322 |
;; |
| 25323 |
esac |
| 25324 |
fi |
| 25325 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25326 |
conftest$ac_exeext |
| 25327 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25328 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25329 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25330 |
|
| 25331 |
;; |
| 25332 |
esac |
| 25333 |
fi |
| 25334 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbidi_chars_any" >&5 |
| 25335 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbidi_chars_any" >&6; } |
| 25336 |
if test "x$mhd_cv_cc_cfl_supp__Wbidi_chars_any" = x"yes" |
| 25337 |
then : |
| 25338 |
if test -z "${CFLAGS_ac}" |
| 25339 |
then : |
| 25340 |
CFLAGS_ac="-Wbidi-chars=any" |
| 25341 |
else case e in #( |
| 25342 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbidi-chars=any" ;; |
| 25343 |
esac |
| 25344 |
fi |
| 25345 |
|
| 25346 |
|
| 25347 |
fi |
| 25348 |
|
| 25349 |
|
| 25350 |
|
| 25351 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Warray-bounds flag" >&5 |
| 25352 |
printf %s "checking whether $CC supports -Warray-bounds flag... " >&6; } |
| 25353 |
if test ${mhd_cv_cc_cfl_supp__Warray_bounds+y} |
| 25354 |
then : |
| 25355 |
printf %s "(cached) " >&6 |
| 25356 |
else case e in #( |
| 25357 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25358 |
CFLAGS="${CFLAGS_ac} -Warray-bounds ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25359 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25360 |
ac_c_werror_flag=yes |
| 25361 |
# Reuse the same source for all the checks here |
| 25362 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25363 |
/* end confdefs.h. */ |
| 25364 |
|
| 25365 |
int main(void) |
| 25366 |
{ |
| 25367 |
return 0; |
| 25368 |
} |
| 25369 |
|
| 25370 |
_ACEOF |
| 25371 |
if ac_fn_c_try_link "$LINENO" |
| 25372 |
then : |
| 25373 |
mhd_cv_cc_cfl_supp__Warray_bounds="yes" |
| 25374 |
else case e in #( |
| 25375 |
e) # Compile and link failed with test flag added |
| 25376 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25377 |
if ac_fn_c_try_link "$LINENO" |
| 25378 |
then : |
| 25379 |
mhd_cv_cc_cfl_supp__Warray_bounds="no" |
| 25380 |
else case e in #( |
| 25381 |
e) # Compile and link failed with test flag removed as well |
| 25382 |
CFLAGS="${CFLAGS_ac} -Warray-bounds ${mhd_check_cc_flag_save_CFLAGS}" |
| 25383 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25384 |
if ac_fn_c_try_link "$LINENO" |
| 25385 |
then : |
| 25386 |
mhd_cv_cc_cfl_supp__Warray_bounds="yes" |
| 25387 |
else case e in #( |
| 25388 |
e) mhd_cv_cc_cfl_supp__Warray_bounds="no" ;; |
| 25389 |
esac |
| 25390 |
fi |
| 25391 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25392 |
conftest$ac_exeext |
| 25393 |
|
| 25394 |
;; |
| 25395 |
esac |
| 25396 |
fi |
| 25397 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25398 |
conftest$ac_exeext |
| 25399 |
|
| 25400 |
;; |
| 25401 |
esac |
| 25402 |
fi |
| 25403 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25404 |
conftest$ac_exeext |
| 25405 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25406 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25407 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25408 |
|
| 25409 |
;; |
| 25410 |
esac |
| 25411 |
fi |
| 25412 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Warray_bounds" >&5 |
| 25413 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Warray_bounds" >&6; } |
| 25414 |
if test "x$mhd_cv_cc_cfl_supp__Warray_bounds" = x"yes" |
| 25415 |
then : |
| 25416 |
if test -z "${CFLAGS_ac}" |
| 25417 |
then : |
| 25418 |
CFLAGS_ac="-Warray-bounds" |
| 25419 |
else case e in #( |
| 25420 |
e) CFLAGS_ac="${CFLAGS_ac} -Warray-bounds" ;; |
| 25421 |
esac |
| 25422 |
fi |
| 25423 |
|
| 25424 |
|
| 25425 |
fi |
| 25426 |
|
| 25427 |
|
| 25428 |
|
| 25429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wpacked flag" >&5 |
| 25430 |
printf %s "checking whether $CC supports -Wpacked flag... " >&6; } |
| 25431 |
if test ${mhd_cv_cc_cfl_supp__Wpacked+y} |
| 25432 |
then : |
| 25433 |
printf %s "(cached) " >&6 |
| 25434 |
else case e in #( |
| 25435 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25436 |
CFLAGS="${CFLAGS_ac} -Wpacked ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25437 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25438 |
ac_c_werror_flag=yes |
| 25439 |
# Reuse the same source for all the checks here |
| 25440 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25441 |
/* end confdefs.h. */ |
| 25442 |
|
| 25443 |
int main(void) |
| 25444 |
{ |
| 25445 |
return 0; |
| 25446 |
} |
| 25447 |
|
| 25448 |
_ACEOF |
| 25449 |
if ac_fn_c_try_link "$LINENO" |
| 25450 |
then : |
| 25451 |
mhd_cv_cc_cfl_supp__Wpacked="yes" |
| 25452 |
else case e in #( |
| 25453 |
e) # Compile and link failed with test flag added |
| 25454 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25455 |
if ac_fn_c_try_link "$LINENO" |
| 25456 |
then : |
| 25457 |
mhd_cv_cc_cfl_supp__Wpacked="no" |
| 25458 |
else case e in #( |
| 25459 |
e) # Compile and link failed with test flag removed as well |
| 25460 |
CFLAGS="${CFLAGS_ac} -Wpacked ${mhd_check_cc_flag_save_CFLAGS}" |
| 25461 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25462 |
if ac_fn_c_try_link "$LINENO" |
| 25463 |
then : |
| 25464 |
mhd_cv_cc_cfl_supp__Wpacked="yes" |
| 25465 |
else case e in #( |
| 25466 |
e) mhd_cv_cc_cfl_supp__Wpacked="no" ;; |
| 25467 |
esac |
| 25468 |
fi |
| 25469 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25470 |
conftest$ac_exeext |
| 25471 |
|
| 25472 |
;; |
| 25473 |
esac |
| 25474 |
fi |
| 25475 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25476 |
conftest$ac_exeext |
| 25477 |
|
| 25478 |
;; |
| 25479 |
esac |
| 25480 |
fi |
| 25481 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25482 |
conftest$ac_exeext |
| 25483 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25484 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25485 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25486 |
|
| 25487 |
;; |
| 25488 |
esac |
| 25489 |
fi |
| 25490 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wpacked" >&5 |
| 25491 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wpacked" >&6; } |
| 25492 |
if test "x$mhd_cv_cc_cfl_supp__Wpacked" = x"yes" |
| 25493 |
then : |
| 25494 |
if test -z "${CFLAGS_ac}" |
| 25495 |
then : |
| 25496 |
CFLAGS_ac="-Wpacked" |
| 25497 |
else case e in #( |
| 25498 |
e) CFLAGS_ac="${CFLAGS_ac} -Wpacked" ;; |
| 25499 |
esac |
| 25500 |
fi |
| 25501 |
|
| 25502 |
|
| 25503 |
fi |
| 25504 |
|
| 25505 |
|
| 25506 |
|
| 25507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wvariadic-macros flag" >&5 |
| 25508 |
printf %s "checking whether $CC supports -Wvariadic-macros flag... " >&6; } |
| 25509 |
if test ${mhd_cv_cc_cfl_supp__Wvariadic_macros+y} |
| 25510 |
then : |
| 25511 |
printf %s "(cached) " >&6 |
| 25512 |
else case e in #( |
| 25513 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25514 |
CFLAGS="${CFLAGS_ac} -Wvariadic-macros ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25515 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25516 |
ac_c_werror_flag=yes |
| 25517 |
# Reuse the same source for all the checks here |
| 25518 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25519 |
/* end confdefs.h. */ |
| 25520 |
|
| 25521 |
int main(void) |
| 25522 |
{ |
| 25523 |
return 0; |
| 25524 |
} |
| 25525 |
|
| 25526 |
_ACEOF |
| 25527 |
if ac_fn_c_try_link "$LINENO" |
| 25528 |
then : |
| 25529 |
mhd_cv_cc_cfl_supp__Wvariadic_macros="yes" |
| 25530 |
else case e in #( |
| 25531 |
e) # Compile and link failed with test flag added |
| 25532 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25533 |
if ac_fn_c_try_link "$LINENO" |
| 25534 |
then : |
| 25535 |
mhd_cv_cc_cfl_supp__Wvariadic_macros="no" |
| 25536 |
else case e in #( |
| 25537 |
e) # Compile and link failed with test flag removed as well |
| 25538 |
CFLAGS="${CFLAGS_ac} -Wvariadic-macros ${mhd_check_cc_flag_save_CFLAGS}" |
| 25539 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25540 |
if ac_fn_c_try_link "$LINENO" |
| 25541 |
then : |
| 25542 |
mhd_cv_cc_cfl_supp__Wvariadic_macros="yes" |
| 25543 |
else case e in #( |
| 25544 |
e) mhd_cv_cc_cfl_supp__Wvariadic_macros="no" ;; |
| 25545 |
esac |
| 25546 |
fi |
| 25547 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25548 |
conftest$ac_exeext |
| 25549 |
|
| 25550 |
;; |
| 25551 |
esac |
| 25552 |
fi |
| 25553 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25554 |
conftest$ac_exeext |
| 25555 |
|
| 25556 |
;; |
| 25557 |
esac |
| 25558 |
fi |
| 25559 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25560 |
conftest$ac_exeext |
| 25561 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25562 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25563 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25564 |
|
| 25565 |
;; |
| 25566 |
esac |
| 25567 |
fi |
| 25568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wvariadic_macros" >&5 |
| 25569 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wvariadic_macros" >&6; } |
| 25570 |
if test "x$mhd_cv_cc_cfl_supp__Wvariadic_macros" = x"yes" |
| 25571 |
then : |
| 25572 |
if test -z "${CFLAGS_ac}" |
| 25573 |
then : |
| 25574 |
CFLAGS_ac="-Wvariadic-macros" |
| 25575 |
else case e in #( |
| 25576 |
e) CFLAGS_ac="${CFLAGS_ac} -Wvariadic-macros" ;; |
| 25577 |
esac |
| 25578 |
fi |
| 25579 |
|
| 25580 |
|
| 25581 |
fi |
| 25582 |
|
| 25583 |
|
| 25584 |
|
| 25585 |
|
| 25586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wundef flag" >&5 |
| 25587 |
printf %s "checking whether $CC supports -Wundef flag... " >&6; } |
| 25588 |
if test ${mhd_cv_cc_cfl_supp__Wundef+y} |
| 25589 |
then : |
| 25590 |
printf %s "(cached) " >&6 |
| 25591 |
else case e in #( |
| 25592 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25593 |
CFLAGS="${CFLAGS_ac} -Wundef ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25594 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25595 |
ac_c_werror_flag=yes |
| 25596 |
# Reuse the same source for all the checks here |
| 25597 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25598 |
/* end confdefs.h. */ |
| 25599 |
|
| 25600 |
int main(void) |
| 25601 |
{ |
| 25602 |
return 0; |
| 25603 |
} |
| 25604 |
|
| 25605 |
_ACEOF |
| 25606 |
if ac_fn_c_try_link "$LINENO" |
| 25607 |
then : |
| 25608 |
mhd_cv_cc_cfl_supp__Wundef="yes" |
| 25609 |
else case e in #( |
| 25610 |
e) # Compile and link failed with test flag added |
| 25611 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25612 |
if ac_fn_c_try_link "$LINENO" |
| 25613 |
then : |
| 25614 |
mhd_cv_cc_cfl_supp__Wundef="no" |
| 25615 |
else case e in #( |
| 25616 |
e) # Compile and link failed with test flag removed as well |
| 25617 |
CFLAGS="${CFLAGS_ac} -Wundef ${mhd_check_cc_flag_save_CFLAGS}" |
| 25618 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25619 |
if ac_fn_c_try_link "$LINENO" |
| 25620 |
then : |
| 25621 |
mhd_cv_cc_cfl_supp__Wundef="yes" |
| 25622 |
else case e in #( |
| 25623 |
e) mhd_cv_cc_cfl_supp__Wundef="no" ;; |
| 25624 |
esac |
| 25625 |
fi |
| 25626 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25627 |
conftest$ac_exeext |
| 25628 |
|
| 25629 |
;; |
| 25630 |
esac |
| 25631 |
fi |
| 25632 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25633 |
conftest$ac_exeext |
| 25634 |
|
| 25635 |
;; |
| 25636 |
esac |
| 25637 |
fi |
| 25638 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25639 |
conftest$ac_exeext |
| 25640 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25641 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25642 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25643 |
|
| 25644 |
;; |
| 25645 |
esac |
| 25646 |
fi |
| 25647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wundef" >&5 |
| 25648 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wundef" >&6; } |
| 25649 |
if test "x$mhd_cv_cc_cfl_supp__Wundef" = x"yes" |
| 25650 |
then : |
| 25651 |
if test -z "${CFLAGS_ac}" |
| 25652 |
then : |
| 25653 |
CFLAGS_ac="-Wundef" |
| 25654 |
else case e in #( |
| 25655 |
e) CFLAGS_ac="${CFLAGS_ac} -Wundef" ;; |
| 25656 |
esac |
| 25657 |
fi |
| 25658 |
|
| 25659 |
|
| 25660 |
fi |
| 25661 |
|
| 25662 |
|
| 25663 |
|
| 25664 |
|
| 25665 |
|
| 25666 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wanon-enum-enum-conversion flag" >&5 |
| 25667 |
printf %s "checking whether $CC supports -Wanon-enum-enum-conversion flag... " >&6; } |
| 25668 |
if test ${mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion+y} |
| 25669 |
then : |
| 25670 |
printf %s "(cached) " >&6 |
| 25671 |
else case e in #( |
| 25672 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25673 |
CFLAGS="${CFLAGS_ac} -Wanon-enum-enum-conversion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25674 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25675 |
ac_c_werror_flag=yes |
| 25676 |
# Reuse the same source for all the checks here |
| 25677 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25678 |
/* end confdefs.h. */ |
| 25679 |
|
| 25680 |
int main(void) |
| 25681 |
{ |
| 25682 |
return 0; |
| 25683 |
} |
| 25684 |
|
| 25685 |
_ACEOF |
| 25686 |
if ac_fn_c_try_link "$LINENO" |
| 25687 |
then : |
| 25688 |
mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion="yes" |
| 25689 |
else case e in #( |
| 25690 |
e) # Compile and link failed with test flag added |
| 25691 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25692 |
if ac_fn_c_try_link "$LINENO" |
| 25693 |
then : |
| 25694 |
mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion="no" |
| 25695 |
else case e in #( |
| 25696 |
e) # Compile and link failed with test flag removed as well |
| 25697 |
CFLAGS="${CFLAGS_ac} -Wanon-enum-enum-conversion ${mhd_check_cc_flag_save_CFLAGS}" |
| 25698 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25699 |
if ac_fn_c_try_link "$LINENO" |
| 25700 |
then : |
| 25701 |
mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion="yes" |
| 25702 |
else case e in #( |
| 25703 |
e) mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion="no" ;; |
| 25704 |
esac |
| 25705 |
fi |
| 25706 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25707 |
conftest$ac_exeext |
| 25708 |
|
| 25709 |
;; |
| 25710 |
esac |
| 25711 |
fi |
| 25712 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25713 |
conftest$ac_exeext |
| 25714 |
|
| 25715 |
;; |
| 25716 |
esac |
| 25717 |
fi |
| 25718 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25719 |
conftest$ac_exeext |
| 25720 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25721 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25722 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25723 |
|
| 25724 |
;; |
| 25725 |
esac |
| 25726 |
fi |
| 25727 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion" >&5 |
| 25728 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion" >&6; } |
| 25729 |
if test "x$mhd_cv_cc_cfl_supp__Wanon_enum_enum_conversion" = x"yes" |
| 25730 |
then : |
| 25731 |
if test -z "${CFLAGS_ac}" |
| 25732 |
then : |
| 25733 |
CFLAGS_ac="-Wanon-enum-enum-conversion" |
| 25734 |
else case e in #( |
| 25735 |
e) CFLAGS_ac="${CFLAGS_ac} -Wanon-enum-enum-conversion" ;; |
| 25736 |
esac |
| 25737 |
fi |
| 25738 |
|
| 25739 |
|
| 25740 |
fi |
| 25741 |
|
| 25742 |
|
| 25743 |
|
| 25744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Warray-bounds-pointer-arithmetic flag" >&5 |
| 25745 |
printf %s "checking whether $CC supports -Warray-bounds-pointer-arithmetic flag... " >&6; } |
| 25746 |
if test ${mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic+y} |
| 25747 |
then : |
| 25748 |
printf %s "(cached) " >&6 |
| 25749 |
else case e in #( |
| 25750 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25751 |
CFLAGS="${CFLAGS_ac} -Warray-bounds-pointer-arithmetic ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25752 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25753 |
ac_c_werror_flag=yes |
| 25754 |
# Reuse the same source for all the checks here |
| 25755 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25756 |
/* end confdefs.h. */ |
| 25757 |
|
| 25758 |
int main(void) |
| 25759 |
{ |
| 25760 |
return 0; |
| 25761 |
} |
| 25762 |
|
| 25763 |
_ACEOF |
| 25764 |
if ac_fn_c_try_link "$LINENO" |
| 25765 |
then : |
| 25766 |
mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic="yes" |
| 25767 |
else case e in #( |
| 25768 |
e) # Compile and link failed with test flag added |
| 25769 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25770 |
if ac_fn_c_try_link "$LINENO" |
| 25771 |
then : |
| 25772 |
mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic="no" |
| 25773 |
else case e in #( |
| 25774 |
e) # Compile and link failed with test flag removed as well |
| 25775 |
CFLAGS="${CFLAGS_ac} -Warray-bounds-pointer-arithmetic ${mhd_check_cc_flag_save_CFLAGS}" |
| 25776 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25777 |
if ac_fn_c_try_link "$LINENO" |
| 25778 |
then : |
| 25779 |
mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic="yes" |
| 25780 |
else case e in #( |
| 25781 |
e) mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic="no" ;; |
| 25782 |
esac |
| 25783 |
fi |
| 25784 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25785 |
conftest$ac_exeext |
| 25786 |
|
| 25787 |
;; |
| 25788 |
esac |
| 25789 |
fi |
| 25790 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25791 |
conftest$ac_exeext |
| 25792 |
|
| 25793 |
;; |
| 25794 |
esac |
| 25795 |
fi |
| 25796 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25797 |
conftest$ac_exeext |
| 25798 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25799 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25800 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25801 |
|
| 25802 |
;; |
| 25803 |
esac |
| 25804 |
fi |
| 25805 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic" >&5 |
| 25806 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic" >&6; } |
| 25807 |
if test "x$mhd_cv_cc_cfl_supp__Warray_bounds_pointer_arithmetic" = x"yes" |
| 25808 |
then : |
| 25809 |
if test -z "${CFLAGS_ac}" |
| 25810 |
then : |
| 25811 |
CFLAGS_ac="-Warray-bounds-pointer-arithmetic" |
| 25812 |
else case e in #( |
| 25813 |
e) CFLAGS_ac="${CFLAGS_ac} -Warray-bounds-pointer-arithmetic" ;; |
| 25814 |
esac |
| 25815 |
fi |
| 25816 |
|
| 25817 |
|
| 25818 |
fi |
| 25819 |
|
| 25820 |
|
| 25821 |
|
| 25822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wassign-enum flag" >&5 |
| 25823 |
printf %s "checking whether $CC supports -Wassign-enum flag... " >&6; } |
| 25824 |
if test ${mhd_cv_cc_cfl_supp__Wassign_enum+y} |
| 25825 |
then : |
| 25826 |
printf %s "(cached) " >&6 |
| 25827 |
else case e in #( |
| 25828 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25829 |
CFLAGS="${CFLAGS_ac} -Wassign-enum ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25830 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25831 |
ac_c_werror_flag=yes |
| 25832 |
# Reuse the same source for all the checks here |
| 25833 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25834 |
/* end confdefs.h. */ |
| 25835 |
|
| 25836 |
int main(void) |
| 25837 |
{ |
| 25838 |
return 0; |
| 25839 |
} |
| 25840 |
|
| 25841 |
_ACEOF |
| 25842 |
if ac_fn_c_try_link "$LINENO" |
| 25843 |
then : |
| 25844 |
mhd_cv_cc_cfl_supp__Wassign_enum="yes" |
| 25845 |
else case e in #( |
| 25846 |
e) # Compile and link failed with test flag added |
| 25847 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25848 |
if ac_fn_c_try_link "$LINENO" |
| 25849 |
then : |
| 25850 |
mhd_cv_cc_cfl_supp__Wassign_enum="no" |
| 25851 |
else case e in #( |
| 25852 |
e) # Compile and link failed with test flag removed as well |
| 25853 |
CFLAGS="${CFLAGS_ac} -Wassign-enum ${mhd_check_cc_flag_save_CFLAGS}" |
| 25854 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25855 |
if ac_fn_c_try_link "$LINENO" |
| 25856 |
then : |
| 25857 |
mhd_cv_cc_cfl_supp__Wassign_enum="yes" |
| 25858 |
else case e in #( |
| 25859 |
e) mhd_cv_cc_cfl_supp__Wassign_enum="no" ;; |
| 25860 |
esac |
| 25861 |
fi |
| 25862 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25863 |
conftest$ac_exeext |
| 25864 |
|
| 25865 |
;; |
| 25866 |
esac |
| 25867 |
fi |
| 25868 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25869 |
conftest$ac_exeext |
| 25870 |
|
| 25871 |
;; |
| 25872 |
esac |
| 25873 |
fi |
| 25874 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25875 |
conftest$ac_exeext |
| 25876 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25877 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25878 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25879 |
|
| 25880 |
;; |
| 25881 |
esac |
| 25882 |
fi |
| 25883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wassign_enum" >&5 |
| 25884 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wassign_enum" >&6; } |
| 25885 |
if test "x$mhd_cv_cc_cfl_supp__Wassign_enum" = x"yes" |
| 25886 |
then : |
| 25887 |
if test -z "${CFLAGS_ac}" |
| 25888 |
then : |
| 25889 |
CFLAGS_ac="-Wassign-enum" |
| 25890 |
else case e in #( |
| 25891 |
e) CFLAGS_ac="${CFLAGS_ac} -Wassign-enum" ;; |
| 25892 |
esac |
| 25893 |
fi |
| 25894 |
|
| 25895 |
|
| 25896 |
fi |
| 25897 |
|
| 25898 |
|
| 25899 |
|
| 25900 |
|
| 25901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbit-int-extension flag" >&5 |
| 25902 |
printf %s "checking whether $CC supports -Wbit-int-extension flag... " >&6; } |
| 25903 |
if test ${mhd_cv_cc_cfl_supp__Wbit_int_extension+y} |
| 25904 |
then : |
| 25905 |
printf %s "(cached) " >&6 |
| 25906 |
else case e in #( |
| 25907 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25908 |
CFLAGS="${CFLAGS_ac} -Wbit-int-extension ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25909 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25910 |
ac_c_werror_flag=yes |
| 25911 |
# Reuse the same source for all the checks here |
| 25912 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25913 |
/* end confdefs.h. */ |
| 25914 |
|
| 25915 |
int main(void) |
| 25916 |
{ |
| 25917 |
return 0; |
| 25918 |
} |
| 25919 |
|
| 25920 |
_ACEOF |
| 25921 |
if ac_fn_c_try_link "$LINENO" |
| 25922 |
then : |
| 25923 |
mhd_cv_cc_cfl_supp__Wbit_int_extension="yes" |
| 25924 |
else case e in #( |
| 25925 |
e) # Compile and link failed with test flag added |
| 25926 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25927 |
if ac_fn_c_try_link "$LINENO" |
| 25928 |
then : |
| 25929 |
mhd_cv_cc_cfl_supp__Wbit_int_extension="no" |
| 25930 |
else case e in #( |
| 25931 |
e) # Compile and link failed with test flag removed as well |
| 25932 |
CFLAGS="${CFLAGS_ac} -Wbit-int-extension ${mhd_check_cc_flag_save_CFLAGS}" |
| 25933 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25934 |
if ac_fn_c_try_link "$LINENO" |
| 25935 |
then : |
| 25936 |
mhd_cv_cc_cfl_supp__Wbit_int_extension="yes" |
| 25937 |
else case e in #( |
| 25938 |
e) mhd_cv_cc_cfl_supp__Wbit_int_extension="no" ;; |
| 25939 |
esac |
| 25940 |
fi |
| 25941 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25942 |
conftest$ac_exeext |
| 25943 |
|
| 25944 |
;; |
| 25945 |
esac |
| 25946 |
fi |
| 25947 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25948 |
conftest$ac_exeext |
| 25949 |
|
| 25950 |
;; |
| 25951 |
esac |
| 25952 |
fi |
| 25953 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25954 |
conftest$ac_exeext |
| 25955 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 25956 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 25957 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 25958 |
|
| 25959 |
;; |
| 25960 |
esac |
| 25961 |
fi |
| 25962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbit_int_extension" >&5 |
| 25963 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbit_int_extension" >&6; } |
| 25964 |
if test "x$mhd_cv_cc_cfl_supp__Wbit_int_extension" = x"yes" |
| 25965 |
then : |
| 25966 |
if test -z "${CFLAGS_ac}" |
| 25967 |
then : |
| 25968 |
CFLAGS_ac="-Wbit-int-extension" |
| 25969 |
else case e in #( |
| 25970 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbit-int-extension" ;; |
| 25971 |
esac |
| 25972 |
fi |
| 25973 |
|
| 25974 |
|
| 25975 |
fi |
| 25976 |
|
| 25977 |
|
| 25978 |
|
| 25979 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbitfield-enum-conversion flag" >&5 |
| 25980 |
printf %s "checking whether $CC supports -Wbitfield-enum-conversion flag... " >&6; } |
| 25981 |
if test ${mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion+y} |
| 25982 |
then : |
| 25983 |
printf %s "(cached) " >&6 |
| 25984 |
else case e in #( |
| 25985 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 25986 |
CFLAGS="${CFLAGS_ac} -Wbitfield-enum-conversion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 25987 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 25988 |
ac_c_werror_flag=yes |
| 25989 |
# Reuse the same source for all the checks here |
| 25990 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25991 |
/* end confdefs.h. */ |
| 25992 |
|
| 25993 |
int main(void) |
| 25994 |
{ |
| 25995 |
return 0; |
| 25996 |
} |
| 25997 |
|
| 25998 |
_ACEOF |
| 25999 |
if ac_fn_c_try_link "$LINENO" |
| 26000 |
then : |
| 26001 |
mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion="yes" |
| 26002 |
else case e in #( |
| 26003 |
e) # Compile and link failed with test flag added |
| 26004 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26005 |
if ac_fn_c_try_link "$LINENO" |
| 26006 |
then : |
| 26007 |
mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion="no" |
| 26008 |
else case e in #( |
| 26009 |
e) # Compile and link failed with test flag removed as well |
| 26010 |
CFLAGS="${CFLAGS_ac} -Wbitfield-enum-conversion ${mhd_check_cc_flag_save_CFLAGS}" |
| 26011 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26012 |
if ac_fn_c_try_link "$LINENO" |
| 26013 |
then : |
| 26014 |
mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion="yes" |
| 26015 |
else case e in #( |
| 26016 |
e) mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion="no" ;; |
| 26017 |
esac |
| 26018 |
fi |
| 26019 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26020 |
conftest$ac_exeext |
| 26021 |
|
| 26022 |
;; |
| 26023 |
esac |
| 26024 |
fi |
| 26025 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26026 |
conftest$ac_exeext |
| 26027 |
|
| 26028 |
;; |
| 26029 |
esac |
| 26030 |
fi |
| 26031 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26032 |
conftest$ac_exeext |
| 26033 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26034 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26035 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26036 |
|
| 26037 |
;; |
| 26038 |
esac |
| 26039 |
fi |
| 26040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion" >&5 |
| 26041 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion" >&6; } |
| 26042 |
if test "x$mhd_cv_cc_cfl_supp__Wbitfield_enum_conversion" = x"yes" |
| 26043 |
then : |
| 26044 |
if test -z "${CFLAGS_ac}" |
| 26045 |
then : |
| 26046 |
CFLAGS_ac="-Wbitfield-enum-conversion" |
| 26047 |
else case e in #( |
| 26048 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbitfield-enum-conversion" ;; |
| 26049 |
esac |
| 26050 |
fi |
| 26051 |
|
| 26052 |
|
| 26053 |
fi |
| 26054 |
|
| 26055 |
|
| 26056 |
|
| 26057 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wparentheses flag" >&5 |
| 26058 |
printf %s "checking whether $CC supports -Wparentheses flag... " >&6; } |
| 26059 |
if test ${mhd_cv_cc_cfl_supp__Wparentheses+y} |
| 26060 |
then : |
| 26061 |
printf %s "(cached) " >&6 |
| 26062 |
else case e in #( |
| 26063 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26064 |
CFLAGS="${CFLAGS_ac} -Wparentheses ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26065 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26066 |
ac_c_werror_flag=yes |
| 26067 |
# Reuse the same source for all the checks here |
| 26068 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26069 |
/* end confdefs.h. */ |
| 26070 |
|
| 26071 |
int main(void) |
| 26072 |
{ |
| 26073 |
return 0; |
| 26074 |
} |
| 26075 |
|
| 26076 |
_ACEOF |
| 26077 |
if ac_fn_c_try_link "$LINENO" |
| 26078 |
then : |
| 26079 |
mhd_cv_cc_cfl_supp__Wparentheses="yes" |
| 26080 |
else case e in #( |
| 26081 |
e) # Compile and link failed with test flag added |
| 26082 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26083 |
if ac_fn_c_try_link "$LINENO" |
| 26084 |
then : |
| 26085 |
mhd_cv_cc_cfl_supp__Wparentheses="no" |
| 26086 |
else case e in #( |
| 26087 |
e) # Compile and link failed with test flag removed as well |
| 26088 |
CFLAGS="${CFLAGS_ac} -Wparentheses ${mhd_check_cc_flag_save_CFLAGS}" |
| 26089 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26090 |
if ac_fn_c_try_link "$LINENO" |
| 26091 |
then : |
| 26092 |
mhd_cv_cc_cfl_supp__Wparentheses="yes" |
| 26093 |
else case e in #( |
| 26094 |
e) mhd_cv_cc_cfl_supp__Wparentheses="no" ;; |
| 26095 |
esac |
| 26096 |
fi |
| 26097 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26098 |
conftest$ac_exeext |
| 26099 |
|
| 26100 |
;; |
| 26101 |
esac |
| 26102 |
fi |
| 26103 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26104 |
conftest$ac_exeext |
| 26105 |
|
| 26106 |
;; |
| 26107 |
esac |
| 26108 |
fi |
| 26109 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26110 |
conftest$ac_exeext |
| 26111 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26112 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26113 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26114 |
|
| 26115 |
;; |
| 26116 |
esac |
| 26117 |
fi |
| 26118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wparentheses" >&5 |
| 26119 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wparentheses" >&6; } |
| 26120 |
if test "x$mhd_cv_cc_cfl_supp__Wparentheses" = x"yes" |
| 26121 |
then : |
| 26122 |
if test -z "${CFLAGS_ac}" |
| 26123 |
then : |
| 26124 |
CFLAGS_ac="-Wparentheses" |
| 26125 |
else case e in #( |
| 26126 |
e) CFLAGS_ac="${CFLAGS_ac} -Wparentheses" ;; |
| 26127 |
esac |
| 26128 |
fi |
| 26129 |
|
| 26130 |
|
| 26131 |
fi |
| 26132 |
|
| 26133 |
|
| 26134 |
|
| 26135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbool-operation flag" >&5 |
| 26136 |
printf %s "checking whether $CC supports -Wbool-operation flag... " >&6; } |
| 26137 |
if test ${mhd_cv_cc_cfl_supp__Wbool_operation+y} |
| 26138 |
then : |
| 26139 |
printf %s "(cached) " >&6 |
| 26140 |
else case e in #( |
| 26141 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26142 |
CFLAGS="${CFLAGS_ac} -Wbool-operation ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26143 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26144 |
ac_c_werror_flag=yes |
| 26145 |
# Reuse the same source for all the checks here |
| 26146 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26147 |
/* end confdefs.h. */ |
| 26148 |
|
| 26149 |
int main(void) |
| 26150 |
{ |
| 26151 |
return 0; |
| 26152 |
} |
| 26153 |
|
| 26154 |
_ACEOF |
| 26155 |
if ac_fn_c_try_link "$LINENO" |
| 26156 |
then : |
| 26157 |
mhd_cv_cc_cfl_supp__Wbool_operation="yes" |
| 26158 |
else case e in #( |
| 26159 |
e) # Compile and link failed with test flag added |
| 26160 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26161 |
if ac_fn_c_try_link "$LINENO" |
| 26162 |
then : |
| 26163 |
mhd_cv_cc_cfl_supp__Wbool_operation="no" |
| 26164 |
else case e in #( |
| 26165 |
e) # Compile and link failed with test flag removed as well |
| 26166 |
CFLAGS="${CFLAGS_ac} -Wbool-operation ${mhd_check_cc_flag_save_CFLAGS}" |
| 26167 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26168 |
if ac_fn_c_try_link "$LINENO" |
| 26169 |
then : |
| 26170 |
mhd_cv_cc_cfl_supp__Wbool_operation="yes" |
| 26171 |
else case e in #( |
| 26172 |
e) mhd_cv_cc_cfl_supp__Wbool_operation="no" ;; |
| 26173 |
esac |
| 26174 |
fi |
| 26175 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26176 |
conftest$ac_exeext |
| 26177 |
|
| 26178 |
;; |
| 26179 |
esac |
| 26180 |
fi |
| 26181 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26182 |
conftest$ac_exeext |
| 26183 |
|
| 26184 |
;; |
| 26185 |
esac |
| 26186 |
fi |
| 26187 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26188 |
conftest$ac_exeext |
| 26189 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26190 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26191 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26192 |
|
| 26193 |
;; |
| 26194 |
esac |
| 26195 |
fi |
| 26196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbool_operation" >&5 |
| 26197 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbool_operation" >&6; } |
| 26198 |
if test "x$mhd_cv_cc_cfl_supp__Wbool_operation" = x"yes" |
| 26199 |
then : |
| 26200 |
if test -z "${CFLAGS_ac}" |
| 26201 |
then : |
| 26202 |
CFLAGS_ac="-Wbool-operation" |
| 26203 |
else case e in #( |
| 26204 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbool-operation" ;; |
| 26205 |
esac |
| 26206 |
fi |
| 26207 |
|
| 26208 |
|
| 26209 |
fi |
| 26210 |
|
| 26211 |
|
| 26212 |
|
| 26213 |
|
| 26214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcast-function-type flag" >&5 |
| 26215 |
printf %s "checking whether $CC supports -Wcast-function-type flag... " >&6; } |
| 26216 |
if test ${mhd_cv_cc_cfl_supp__Wcast_function_type+y} |
| 26217 |
then : |
| 26218 |
printf %s "(cached) " >&6 |
| 26219 |
else case e in #( |
| 26220 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26221 |
CFLAGS="${CFLAGS_ac} -Wcast-function-type ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26222 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26223 |
ac_c_werror_flag=yes |
| 26224 |
# Reuse the same source for all the checks here |
| 26225 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26226 |
/* end confdefs.h. */ |
| 26227 |
|
| 26228 |
int main(void) |
| 26229 |
{ |
| 26230 |
return 0; |
| 26231 |
} |
| 26232 |
|
| 26233 |
_ACEOF |
| 26234 |
if ac_fn_c_try_link "$LINENO" |
| 26235 |
then : |
| 26236 |
mhd_cv_cc_cfl_supp__Wcast_function_type="yes" |
| 26237 |
else case e in #( |
| 26238 |
e) # Compile and link failed with test flag added |
| 26239 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26240 |
if ac_fn_c_try_link "$LINENO" |
| 26241 |
then : |
| 26242 |
mhd_cv_cc_cfl_supp__Wcast_function_type="no" |
| 26243 |
else case e in #( |
| 26244 |
e) # Compile and link failed with test flag removed as well |
| 26245 |
CFLAGS="${CFLAGS_ac} -Wcast-function-type ${mhd_check_cc_flag_save_CFLAGS}" |
| 26246 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26247 |
if ac_fn_c_try_link "$LINENO" |
| 26248 |
then : |
| 26249 |
mhd_cv_cc_cfl_supp__Wcast_function_type="yes" |
| 26250 |
else case e in #( |
| 26251 |
e) mhd_cv_cc_cfl_supp__Wcast_function_type="no" ;; |
| 26252 |
esac |
| 26253 |
fi |
| 26254 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26255 |
conftest$ac_exeext |
| 26256 |
|
| 26257 |
;; |
| 26258 |
esac |
| 26259 |
fi |
| 26260 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26261 |
conftest$ac_exeext |
| 26262 |
|
| 26263 |
;; |
| 26264 |
esac |
| 26265 |
fi |
| 26266 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26267 |
conftest$ac_exeext |
| 26268 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26269 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26270 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26271 |
|
| 26272 |
;; |
| 26273 |
esac |
| 26274 |
fi |
| 26275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcast_function_type" >&5 |
| 26276 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcast_function_type" >&6; } |
| 26277 |
if test "x$mhd_cv_cc_cfl_supp__Wcast_function_type" = x"yes" |
| 26278 |
then : |
| 26279 |
if test -z "${CFLAGS_ac}" |
| 26280 |
then : |
| 26281 |
CFLAGS_ac="-Wcast-function-type" |
| 26282 |
else case e in #( |
| 26283 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcast-function-type" ;; |
| 26284 |
esac |
| 26285 |
fi |
| 26286 |
|
| 26287 |
|
| 26288 |
fi |
| 26289 |
|
| 26290 |
|
| 26291 |
|
| 26292 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcomma flag" >&5 |
| 26293 |
printf %s "checking whether $CC supports -Wcomma flag... " >&6; } |
| 26294 |
if test ${mhd_cv_cc_cfl_supp__Wcomma+y} |
| 26295 |
then : |
| 26296 |
printf %s "(cached) " >&6 |
| 26297 |
else case e in #( |
| 26298 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26299 |
CFLAGS="${CFLAGS_ac} -Wcomma ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26300 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26301 |
ac_c_werror_flag=yes |
| 26302 |
# Reuse the same source for all the checks here |
| 26303 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26304 |
/* end confdefs.h. */ |
| 26305 |
|
| 26306 |
int main(void) |
| 26307 |
{ |
| 26308 |
return 0; |
| 26309 |
} |
| 26310 |
|
| 26311 |
_ACEOF |
| 26312 |
if ac_fn_c_try_link "$LINENO" |
| 26313 |
then : |
| 26314 |
mhd_cv_cc_cfl_supp__Wcomma="yes" |
| 26315 |
else case e in #( |
| 26316 |
e) # Compile and link failed with test flag added |
| 26317 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26318 |
if ac_fn_c_try_link "$LINENO" |
| 26319 |
then : |
| 26320 |
mhd_cv_cc_cfl_supp__Wcomma="no" |
| 26321 |
else case e in #( |
| 26322 |
e) # Compile and link failed with test flag removed as well |
| 26323 |
CFLAGS="${CFLAGS_ac} -Wcomma ${mhd_check_cc_flag_save_CFLAGS}" |
| 26324 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26325 |
if ac_fn_c_try_link "$LINENO" |
| 26326 |
then : |
| 26327 |
mhd_cv_cc_cfl_supp__Wcomma="yes" |
| 26328 |
else case e in #( |
| 26329 |
e) mhd_cv_cc_cfl_supp__Wcomma="no" ;; |
| 26330 |
esac |
| 26331 |
fi |
| 26332 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26333 |
conftest$ac_exeext |
| 26334 |
|
| 26335 |
;; |
| 26336 |
esac |
| 26337 |
fi |
| 26338 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26339 |
conftest$ac_exeext |
| 26340 |
|
| 26341 |
;; |
| 26342 |
esac |
| 26343 |
fi |
| 26344 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26345 |
conftest$ac_exeext |
| 26346 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26347 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26348 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26349 |
|
| 26350 |
;; |
| 26351 |
esac |
| 26352 |
fi |
| 26353 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcomma" >&5 |
| 26354 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcomma" >&6; } |
| 26355 |
if test "x$mhd_cv_cc_cfl_supp__Wcomma" = x"yes" |
| 26356 |
then : |
| 26357 |
if test -z "${CFLAGS_ac}" |
| 26358 |
then : |
| 26359 |
CFLAGS_ac="-Wcomma" |
| 26360 |
else case e in #( |
| 26361 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcomma" ;; |
| 26362 |
esac |
| 26363 |
fi |
| 26364 |
|
| 26365 |
|
| 26366 |
fi |
| 26367 |
|
| 26368 |
|
| 26369 |
|
| 26370 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcomment flag" >&5 |
| 26371 |
printf %s "checking whether $CC supports -Wcomment flag... " >&6; } |
| 26372 |
if test ${mhd_cv_cc_cfl_supp__Wcomment+y} |
| 26373 |
then : |
| 26374 |
printf %s "(cached) " >&6 |
| 26375 |
else case e in #( |
| 26376 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26377 |
CFLAGS="${CFLAGS_ac} -Wcomment ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26378 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26379 |
ac_c_werror_flag=yes |
| 26380 |
# Reuse the same source for all the checks here |
| 26381 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26382 |
/* end confdefs.h. */ |
| 26383 |
|
| 26384 |
int main(void) |
| 26385 |
{ |
| 26386 |
return 0; |
| 26387 |
} |
| 26388 |
|
| 26389 |
_ACEOF |
| 26390 |
if ac_fn_c_try_link "$LINENO" |
| 26391 |
then : |
| 26392 |
mhd_cv_cc_cfl_supp__Wcomment="yes" |
| 26393 |
else case e in #( |
| 26394 |
e) # Compile and link failed with test flag added |
| 26395 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26396 |
if ac_fn_c_try_link "$LINENO" |
| 26397 |
then : |
| 26398 |
mhd_cv_cc_cfl_supp__Wcomment="no" |
| 26399 |
else case e in #( |
| 26400 |
e) # Compile and link failed with test flag removed as well |
| 26401 |
CFLAGS="${CFLAGS_ac} -Wcomment ${mhd_check_cc_flag_save_CFLAGS}" |
| 26402 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26403 |
if ac_fn_c_try_link "$LINENO" |
| 26404 |
then : |
| 26405 |
mhd_cv_cc_cfl_supp__Wcomment="yes" |
| 26406 |
else case e in #( |
| 26407 |
e) mhd_cv_cc_cfl_supp__Wcomment="no" ;; |
| 26408 |
esac |
| 26409 |
fi |
| 26410 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26411 |
conftest$ac_exeext |
| 26412 |
|
| 26413 |
;; |
| 26414 |
esac |
| 26415 |
fi |
| 26416 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26417 |
conftest$ac_exeext |
| 26418 |
|
| 26419 |
;; |
| 26420 |
esac |
| 26421 |
fi |
| 26422 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26423 |
conftest$ac_exeext |
| 26424 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26425 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26426 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26427 |
|
| 26428 |
;; |
| 26429 |
esac |
| 26430 |
fi |
| 26431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcomment" >&5 |
| 26432 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcomment" >&6; } |
| 26433 |
if test "x$mhd_cv_cc_cfl_supp__Wcomment" = x"yes" |
| 26434 |
then : |
| 26435 |
if test -z "${CFLAGS_ac}" |
| 26436 |
then : |
| 26437 |
CFLAGS_ac="-Wcomment" |
| 26438 |
else case e in #( |
| 26439 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcomment" ;; |
| 26440 |
esac |
| 26441 |
fi |
| 26442 |
|
| 26443 |
|
| 26444 |
fi |
| 26445 |
|
| 26446 |
|
| 26447 |
|
| 26448 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wcompound-token-split flag" >&5 |
| 26449 |
printf %s "checking whether $CC supports -Wcompound-token-split flag... " >&6; } |
| 26450 |
if test ${mhd_cv_cc_cfl_supp__Wcompound_token_split+y} |
| 26451 |
then : |
| 26452 |
printf %s "(cached) " >&6 |
| 26453 |
else case e in #( |
| 26454 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26455 |
CFLAGS="${CFLAGS_ac} -Wcompound-token-split ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26456 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26457 |
ac_c_werror_flag=yes |
| 26458 |
# Reuse the same source for all the checks here |
| 26459 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26460 |
/* end confdefs.h. */ |
| 26461 |
|
| 26462 |
int main(void) |
| 26463 |
{ |
| 26464 |
return 0; |
| 26465 |
} |
| 26466 |
|
| 26467 |
_ACEOF |
| 26468 |
if ac_fn_c_try_link "$LINENO" |
| 26469 |
then : |
| 26470 |
mhd_cv_cc_cfl_supp__Wcompound_token_split="yes" |
| 26471 |
else case e in #( |
| 26472 |
e) # Compile and link failed with test flag added |
| 26473 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26474 |
if ac_fn_c_try_link "$LINENO" |
| 26475 |
then : |
| 26476 |
mhd_cv_cc_cfl_supp__Wcompound_token_split="no" |
| 26477 |
else case e in #( |
| 26478 |
e) # Compile and link failed with test flag removed as well |
| 26479 |
CFLAGS="${CFLAGS_ac} -Wcompound-token-split ${mhd_check_cc_flag_save_CFLAGS}" |
| 26480 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26481 |
if ac_fn_c_try_link "$LINENO" |
| 26482 |
then : |
| 26483 |
mhd_cv_cc_cfl_supp__Wcompound_token_split="yes" |
| 26484 |
else case e in #( |
| 26485 |
e) mhd_cv_cc_cfl_supp__Wcompound_token_split="no" ;; |
| 26486 |
esac |
| 26487 |
fi |
| 26488 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26489 |
conftest$ac_exeext |
| 26490 |
|
| 26491 |
;; |
| 26492 |
esac |
| 26493 |
fi |
| 26494 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26495 |
conftest$ac_exeext |
| 26496 |
|
| 26497 |
;; |
| 26498 |
esac |
| 26499 |
fi |
| 26500 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26501 |
conftest$ac_exeext |
| 26502 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26503 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26504 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26505 |
|
| 26506 |
;; |
| 26507 |
esac |
| 26508 |
fi |
| 26509 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wcompound_token_split" >&5 |
| 26510 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wcompound_token_split" >&6; } |
| 26511 |
if test "x$mhd_cv_cc_cfl_supp__Wcompound_token_split" = x"yes" |
| 26512 |
then : |
| 26513 |
if test -z "${CFLAGS_ac}" |
| 26514 |
then : |
| 26515 |
CFLAGS_ac="-Wcompound-token-split" |
| 26516 |
else case e in #( |
| 26517 |
e) CFLAGS_ac="${CFLAGS_ac} -Wcompound-token-split" ;; |
| 26518 |
esac |
| 26519 |
fi |
| 26520 |
|
| 26521 |
|
| 26522 |
fi |
| 26523 |
|
| 26524 |
|
| 26525 |
|
| 26526 |
|
| 26527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wconditional-uninitialized flag" >&5 |
| 26528 |
printf %s "checking whether $CC supports -Wconditional-uninitialized flag... " >&6; } |
| 26529 |
if test ${mhd_cv_cc_cfl_supp__Wconditional_uninitialized+y} |
| 26530 |
then : |
| 26531 |
printf %s "(cached) " >&6 |
| 26532 |
else case e in #( |
| 26533 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26534 |
CFLAGS="${CFLAGS_ac} -Wconditional-uninitialized ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26535 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26536 |
ac_c_werror_flag=yes |
| 26537 |
# Reuse the same source for all the checks here |
| 26538 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26539 |
/* end confdefs.h. */ |
| 26540 |
|
| 26541 |
int main(void) |
| 26542 |
{ |
| 26543 |
return 0; |
| 26544 |
} |
| 26545 |
|
| 26546 |
_ACEOF |
| 26547 |
if ac_fn_c_try_link "$LINENO" |
| 26548 |
then : |
| 26549 |
mhd_cv_cc_cfl_supp__Wconditional_uninitialized="yes" |
| 26550 |
else case e in #( |
| 26551 |
e) # Compile and link failed with test flag added |
| 26552 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26553 |
if ac_fn_c_try_link "$LINENO" |
| 26554 |
then : |
| 26555 |
mhd_cv_cc_cfl_supp__Wconditional_uninitialized="no" |
| 26556 |
else case e in #( |
| 26557 |
e) # Compile and link failed with test flag removed as well |
| 26558 |
CFLAGS="${CFLAGS_ac} -Wconditional-uninitialized ${mhd_check_cc_flag_save_CFLAGS}" |
| 26559 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26560 |
if ac_fn_c_try_link "$LINENO" |
| 26561 |
then : |
| 26562 |
mhd_cv_cc_cfl_supp__Wconditional_uninitialized="yes" |
| 26563 |
else case e in #( |
| 26564 |
e) mhd_cv_cc_cfl_supp__Wconditional_uninitialized="no" ;; |
| 26565 |
esac |
| 26566 |
fi |
| 26567 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26568 |
conftest$ac_exeext |
| 26569 |
|
| 26570 |
;; |
| 26571 |
esac |
| 26572 |
fi |
| 26573 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26574 |
conftest$ac_exeext |
| 26575 |
|
| 26576 |
;; |
| 26577 |
esac |
| 26578 |
fi |
| 26579 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26580 |
conftest$ac_exeext |
| 26581 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26582 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26583 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26584 |
|
| 26585 |
;; |
| 26586 |
esac |
| 26587 |
fi |
| 26588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wconditional_uninitialized" >&5 |
| 26589 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wconditional_uninitialized" >&6; } |
| 26590 |
if test "x$mhd_cv_cc_cfl_supp__Wconditional_uninitialized" = x"yes" |
| 26591 |
then : |
| 26592 |
if test -z "${CFLAGS_ac}" |
| 26593 |
then : |
| 26594 |
CFLAGS_ac="-Wconditional-uninitialized" |
| 26595 |
else case e in #( |
| 26596 |
e) CFLAGS_ac="${CFLAGS_ac} -Wconditional-uninitialized" ;; |
| 26597 |
esac |
| 26598 |
fi |
| 26599 |
|
| 26600 |
|
| 26601 |
fi |
| 26602 |
|
| 26603 |
|
| 26604 |
|
| 26605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdeprecated flag" >&5 |
| 26606 |
printf %s "checking whether $CC supports -Wdeprecated flag... " >&6; } |
| 26607 |
if test ${mhd_cv_cc_cfl_supp__Wdeprecated+y} |
| 26608 |
then : |
| 26609 |
printf %s "(cached) " >&6 |
| 26610 |
else case e in #( |
| 26611 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26612 |
CFLAGS="${CFLAGS_ac} -Wdeprecated ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26613 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26614 |
ac_c_werror_flag=yes |
| 26615 |
# Reuse the same source for all the checks here |
| 26616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26617 |
/* end confdefs.h. */ |
| 26618 |
|
| 26619 |
int main(void) |
| 26620 |
{ |
| 26621 |
return 0; |
| 26622 |
} |
| 26623 |
|
| 26624 |
_ACEOF |
| 26625 |
if ac_fn_c_try_link "$LINENO" |
| 26626 |
then : |
| 26627 |
mhd_cv_cc_cfl_supp__Wdeprecated="yes" |
| 26628 |
else case e in #( |
| 26629 |
e) # Compile and link failed with test flag added |
| 26630 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26631 |
if ac_fn_c_try_link "$LINENO" |
| 26632 |
then : |
| 26633 |
mhd_cv_cc_cfl_supp__Wdeprecated="no" |
| 26634 |
else case e in #( |
| 26635 |
e) # Compile and link failed with test flag removed as well |
| 26636 |
CFLAGS="${CFLAGS_ac} -Wdeprecated ${mhd_check_cc_flag_save_CFLAGS}" |
| 26637 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26638 |
if ac_fn_c_try_link "$LINENO" |
| 26639 |
then : |
| 26640 |
mhd_cv_cc_cfl_supp__Wdeprecated="yes" |
| 26641 |
else case e in #( |
| 26642 |
e) mhd_cv_cc_cfl_supp__Wdeprecated="no" ;; |
| 26643 |
esac |
| 26644 |
fi |
| 26645 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26646 |
conftest$ac_exeext |
| 26647 |
|
| 26648 |
;; |
| 26649 |
esac |
| 26650 |
fi |
| 26651 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26652 |
conftest$ac_exeext |
| 26653 |
|
| 26654 |
;; |
| 26655 |
esac |
| 26656 |
fi |
| 26657 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26658 |
conftest$ac_exeext |
| 26659 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26660 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26661 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26662 |
|
| 26663 |
;; |
| 26664 |
esac |
| 26665 |
fi |
| 26666 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wdeprecated" >&5 |
| 26667 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wdeprecated" >&6; } |
| 26668 |
if test "x$mhd_cv_cc_cfl_supp__Wdeprecated" = x"yes" |
| 26669 |
then : |
| 26670 |
if test -z "${CFLAGS_ac}" |
| 26671 |
then : |
| 26672 |
CFLAGS_ac="-Wdeprecated" |
| 26673 |
else case e in #( |
| 26674 |
e) CFLAGS_ac="${CFLAGS_ac} -Wdeprecated" ;; |
| 26675 |
esac |
| 26676 |
fi |
| 26677 |
|
| 26678 |
|
| 26679 |
fi |
| 26680 |
|
| 26681 |
|
| 26682 |
|
| 26683 |
|
| 26684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wdocumentation-pedantic flag" >&5 |
| 26685 |
printf %s "checking whether $CC supports -Wdocumentation-pedantic flag... " >&6; } |
| 26686 |
if test ${mhd_cv_cc_cfl_supp__Wdocumentation_pedantic+y} |
| 26687 |
then : |
| 26688 |
printf %s "(cached) " >&6 |
| 26689 |
else case e in #( |
| 26690 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26691 |
CFLAGS="${CFLAGS_ac} -Wdocumentation-pedantic ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26692 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26693 |
ac_c_werror_flag=yes |
| 26694 |
# Reuse the same source for all the checks here |
| 26695 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26696 |
/* end confdefs.h. */ |
| 26697 |
|
| 26698 |
int main(void) |
| 26699 |
{ |
| 26700 |
return 0; |
| 26701 |
} |
| 26702 |
|
| 26703 |
_ACEOF |
| 26704 |
if ac_fn_c_try_link "$LINENO" |
| 26705 |
then : |
| 26706 |
mhd_cv_cc_cfl_supp__Wdocumentation_pedantic="yes" |
| 26707 |
else case e in #( |
| 26708 |
e) # Compile and link failed with test flag added |
| 26709 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26710 |
if ac_fn_c_try_link "$LINENO" |
| 26711 |
then : |
| 26712 |
mhd_cv_cc_cfl_supp__Wdocumentation_pedantic="no" |
| 26713 |
else case e in #( |
| 26714 |
e) # Compile and link failed with test flag removed as well |
| 26715 |
CFLAGS="${CFLAGS_ac} -Wdocumentation-pedantic ${mhd_check_cc_flag_save_CFLAGS}" |
| 26716 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26717 |
if ac_fn_c_try_link "$LINENO" |
| 26718 |
then : |
| 26719 |
mhd_cv_cc_cfl_supp__Wdocumentation_pedantic="yes" |
| 26720 |
else case e in #( |
| 26721 |
e) mhd_cv_cc_cfl_supp__Wdocumentation_pedantic="no" ;; |
| 26722 |
esac |
| 26723 |
fi |
| 26724 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26725 |
conftest$ac_exeext |
| 26726 |
|
| 26727 |
;; |
| 26728 |
esac |
| 26729 |
fi |
| 26730 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26731 |
conftest$ac_exeext |
| 26732 |
|
| 26733 |
;; |
| 26734 |
esac |
| 26735 |
fi |
| 26736 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26737 |
conftest$ac_exeext |
| 26738 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26739 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26740 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26741 |
|
| 26742 |
;; |
| 26743 |
esac |
| 26744 |
fi |
| 26745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wdocumentation_pedantic" >&5 |
| 26746 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wdocumentation_pedantic" >&6; } |
| 26747 |
if test "x$mhd_cv_cc_cfl_supp__Wdocumentation_pedantic" = x"yes" |
| 26748 |
then : |
| 26749 |
if test -z "${CFLAGS_ac}" |
| 26750 |
then : |
| 26751 |
CFLAGS_ac="-Wdocumentation-pedantic" |
| 26752 |
else case e in #( |
| 26753 |
e) CFLAGS_ac="${CFLAGS_ac} -Wdocumentation-pedantic" ;; |
| 26754 |
esac |
| 26755 |
fi |
| 26756 |
|
| 26757 |
|
| 26758 |
fi |
| 26759 |
|
| 26760 |
|
| 26761 |
|
| 26762 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wempty-init-stmt flag" >&5 |
| 26763 |
printf %s "checking whether $CC supports -Wempty-init-stmt flag... " >&6; } |
| 26764 |
if test ${mhd_cv_cc_cfl_supp__Wempty_init_stmt+y} |
| 26765 |
then : |
| 26766 |
printf %s "(cached) " >&6 |
| 26767 |
else case e in #( |
| 26768 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26769 |
CFLAGS="${CFLAGS_ac} -Wempty-init-stmt ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26770 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26771 |
ac_c_werror_flag=yes |
| 26772 |
# Reuse the same source for all the checks here |
| 26773 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26774 |
/* end confdefs.h. */ |
| 26775 |
|
| 26776 |
int main(void) |
| 26777 |
{ |
| 26778 |
return 0; |
| 26779 |
} |
| 26780 |
|
| 26781 |
_ACEOF |
| 26782 |
if ac_fn_c_try_link "$LINENO" |
| 26783 |
then : |
| 26784 |
mhd_cv_cc_cfl_supp__Wempty_init_stmt="yes" |
| 26785 |
else case e in #( |
| 26786 |
e) # Compile and link failed with test flag added |
| 26787 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26788 |
if ac_fn_c_try_link "$LINENO" |
| 26789 |
then : |
| 26790 |
mhd_cv_cc_cfl_supp__Wempty_init_stmt="no" |
| 26791 |
else case e in #( |
| 26792 |
e) # Compile and link failed with test flag removed as well |
| 26793 |
CFLAGS="${CFLAGS_ac} -Wempty-init-stmt ${mhd_check_cc_flag_save_CFLAGS}" |
| 26794 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26795 |
if ac_fn_c_try_link "$LINENO" |
| 26796 |
then : |
| 26797 |
mhd_cv_cc_cfl_supp__Wempty_init_stmt="yes" |
| 26798 |
else case e in #( |
| 26799 |
e) mhd_cv_cc_cfl_supp__Wempty_init_stmt="no" ;; |
| 26800 |
esac |
| 26801 |
fi |
| 26802 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26803 |
conftest$ac_exeext |
| 26804 |
|
| 26805 |
;; |
| 26806 |
esac |
| 26807 |
fi |
| 26808 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26809 |
conftest$ac_exeext |
| 26810 |
|
| 26811 |
;; |
| 26812 |
esac |
| 26813 |
fi |
| 26814 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26815 |
conftest$ac_exeext |
| 26816 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26817 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26818 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26819 |
|
| 26820 |
;; |
| 26821 |
esac |
| 26822 |
fi |
| 26823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wempty_init_stmt" >&5 |
| 26824 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wempty_init_stmt" >&6; } |
| 26825 |
if test "x$mhd_cv_cc_cfl_supp__Wempty_init_stmt" = x"yes" |
| 26826 |
then : |
| 26827 |
if test -z "${CFLAGS_ac}" |
| 26828 |
then : |
| 26829 |
CFLAGS_ac="-Wempty-init-stmt" |
| 26830 |
else case e in #( |
| 26831 |
e) CFLAGS_ac="${CFLAGS_ac} -Wempty-init-stmt" ;; |
| 26832 |
esac |
| 26833 |
fi |
| 26834 |
|
| 26835 |
|
| 26836 |
fi |
| 26837 |
|
| 26838 |
|
| 26839 |
|
| 26840 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wenum-conversion flag" >&5 |
| 26841 |
printf %s "checking whether $CC supports -Wenum-conversion flag... " >&6; } |
| 26842 |
if test ${mhd_cv_cc_cfl_supp__Wenum_conversion+y} |
| 26843 |
then : |
| 26844 |
printf %s "(cached) " >&6 |
| 26845 |
else case e in #( |
| 26846 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26847 |
CFLAGS="${CFLAGS_ac} -Wenum-conversion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26848 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26849 |
ac_c_werror_flag=yes |
| 26850 |
# Reuse the same source for all the checks here |
| 26851 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26852 |
/* end confdefs.h. */ |
| 26853 |
|
| 26854 |
int main(void) |
| 26855 |
{ |
| 26856 |
return 0; |
| 26857 |
} |
| 26858 |
|
| 26859 |
_ACEOF |
| 26860 |
if ac_fn_c_try_link "$LINENO" |
| 26861 |
then : |
| 26862 |
mhd_cv_cc_cfl_supp__Wenum_conversion="yes" |
| 26863 |
else case e in #( |
| 26864 |
e) # Compile and link failed with test flag added |
| 26865 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26866 |
if ac_fn_c_try_link "$LINENO" |
| 26867 |
then : |
| 26868 |
mhd_cv_cc_cfl_supp__Wenum_conversion="no" |
| 26869 |
else case e in #( |
| 26870 |
e) # Compile and link failed with test flag removed as well |
| 26871 |
CFLAGS="${CFLAGS_ac} -Wenum-conversion ${mhd_check_cc_flag_save_CFLAGS}" |
| 26872 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26873 |
if ac_fn_c_try_link "$LINENO" |
| 26874 |
then : |
| 26875 |
mhd_cv_cc_cfl_supp__Wenum_conversion="yes" |
| 26876 |
else case e in #( |
| 26877 |
e) mhd_cv_cc_cfl_supp__Wenum_conversion="no" ;; |
| 26878 |
esac |
| 26879 |
fi |
| 26880 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26881 |
conftest$ac_exeext |
| 26882 |
|
| 26883 |
;; |
| 26884 |
esac |
| 26885 |
fi |
| 26886 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26887 |
conftest$ac_exeext |
| 26888 |
|
| 26889 |
;; |
| 26890 |
esac |
| 26891 |
fi |
| 26892 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26893 |
conftest$ac_exeext |
| 26894 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26895 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26896 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26897 |
|
| 26898 |
;; |
| 26899 |
esac |
| 26900 |
fi |
| 26901 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wenum_conversion" >&5 |
| 26902 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wenum_conversion" >&6; } |
| 26903 |
if test "x$mhd_cv_cc_cfl_supp__Wenum_conversion" = x"yes" |
| 26904 |
then : |
| 26905 |
if test -z "${CFLAGS_ac}" |
| 26906 |
then : |
| 26907 |
CFLAGS_ac="-Wenum-conversion" |
| 26908 |
else case e in #( |
| 26909 |
e) CFLAGS_ac="${CFLAGS_ac} -Wenum-conversion" ;; |
| 26910 |
esac |
| 26911 |
fi |
| 26912 |
|
| 26913 |
|
| 26914 |
fi |
| 26915 |
|
| 26916 |
|
| 26917 |
|
| 26918 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wexpansion-to-defined flag" >&5 |
| 26919 |
printf %s "checking whether $CC supports -Wexpansion-to-defined flag... " >&6; } |
| 26920 |
if test ${mhd_cv_cc_cfl_supp__Wexpansion_to_defined+y} |
| 26921 |
then : |
| 26922 |
printf %s "(cached) " >&6 |
| 26923 |
else case e in #( |
| 26924 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 26925 |
CFLAGS="${CFLAGS_ac} -Wexpansion-to-defined ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26926 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 26927 |
ac_c_werror_flag=yes |
| 26928 |
# Reuse the same source for all the checks here |
| 26929 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26930 |
/* end confdefs.h. */ |
| 26931 |
|
| 26932 |
int main(void) |
| 26933 |
{ |
| 26934 |
return 0; |
| 26935 |
} |
| 26936 |
|
| 26937 |
_ACEOF |
| 26938 |
if ac_fn_c_try_link "$LINENO" |
| 26939 |
then : |
| 26940 |
mhd_cv_cc_cfl_supp__Wexpansion_to_defined="yes" |
| 26941 |
else case e in #( |
| 26942 |
e) # Compile and link failed with test flag added |
| 26943 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 26944 |
if ac_fn_c_try_link "$LINENO" |
| 26945 |
then : |
| 26946 |
mhd_cv_cc_cfl_supp__Wexpansion_to_defined="no" |
| 26947 |
else case e in #( |
| 26948 |
e) # Compile and link failed with test flag removed as well |
| 26949 |
CFLAGS="${CFLAGS_ac} -Wexpansion-to-defined ${mhd_check_cc_flag_save_CFLAGS}" |
| 26950 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26951 |
if ac_fn_c_try_link "$LINENO" |
| 26952 |
then : |
| 26953 |
mhd_cv_cc_cfl_supp__Wexpansion_to_defined="yes" |
| 26954 |
else case e in #( |
| 26955 |
e) mhd_cv_cc_cfl_supp__Wexpansion_to_defined="no" ;; |
| 26956 |
esac |
| 26957 |
fi |
| 26958 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26959 |
conftest$ac_exeext |
| 26960 |
|
| 26961 |
;; |
| 26962 |
esac |
| 26963 |
fi |
| 26964 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26965 |
conftest$ac_exeext |
| 26966 |
|
| 26967 |
;; |
| 26968 |
esac |
| 26969 |
fi |
| 26970 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 26971 |
conftest$ac_exeext |
| 26972 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 26973 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 26974 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 26975 |
|
| 26976 |
;; |
| 26977 |
esac |
| 26978 |
fi |
| 26979 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wexpansion_to_defined" >&5 |
| 26980 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wexpansion_to_defined" >&6; } |
| 26981 |
if test "x$mhd_cv_cc_cfl_supp__Wexpansion_to_defined" = x"yes" |
| 26982 |
then : |
| 26983 |
if test -z "${CFLAGS_ac}" |
| 26984 |
then : |
| 26985 |
CFLAGS_ac="-Wexpansion-to-defined" |
| 26986 |
else case e in #( |
| 26987 |
e) CFLAGS_ac="${CFLAGS_ac} -Wexpansion-to-defined" ;; |
| 26988 |
esac |
| 26989 |
fi |
| 26990 |
|
| 26991 |
|
| 26992 |
fi |
| 26993 |
|
| 26994 |
|
| 26995 |
|
| 26996 |
|
| 26997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wflexible-array-extensions flag" >&5 |
| 26998 |
printf %s "checking whether $CC supports -Wflexible-array-extensions flag... " >&6; } |
| 26999 |
if test ${mhd_cv_cc_cfl_supp__Wflexible_array_extensions+y} |
| 27000 |
then : |
| 27001 |
printf %s "(cached) " >&6 |
| 27002 |
else case e in #( |
| 27003 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27004 |
CFLAGS="${CFLAGS_ac} -Wflexible-array-extensions ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27005 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27006 |
ac_c_werror_flag=yes |
| 27007 |
# Reuse the same source for all the checks here |
| 27008 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27009 |
/* end confdefs.h. */ |
| 27010 |
|
| 27011 |
int main(void) |
| 27012 |
{ |
| 27013 |
return 0; |
| 27014 |
} |
| 27015 |
|
| 27016 |
_ACEOF |
| 27017 |
if ac_fn_c_try_link "$LINENO" |
| 27018 |
then : |
| 27019 |
mhd_cv_cc_cfl_supp__Wflexible_array_extensions="yes" |
| 27020 |
else case e in #( |
| 27021 |
e) # Compile and link failed with test flag added |
| 27022 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27023 |
if ac_fn_c_try_link "$LINENO" |
| 27024 |
then : |
| 27025 |
mhd_cv_cc_cfl_supp__Wflexible_array_extensions="no" |
| 27026 |
else case e in #( |
| 27027 |
e) # Compile and link failed with test flag removed as well |
| 27028 |
CFLAGS="${CFLAGS_ac} -Wflexible-array-extensions ${mhd_check_cc_flag_save_CFLAGS}" |
| 27029 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27030 |
if ac_fn_c_try_link "$LINENO" |
| 27031 |
then : |
| 27032 |
mhd_cv_cc_cfl_supp__Wflexible_array_extensions="yes" |
| 27033 |
else case e in #( |
| 27034 |
e) mhd_cv_cc_cfl_supp__Wflexible_array_extensions="no" ;; |
| 27035 |
esac |
| 27036 |
fi |
| 27037 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27038 |
conftest$ac_exeext |
| 27039 |
|
| 27040 |
;; |
| 27041 |
esac |
| 27042 |
fi |
| 27043 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27044 |
conftest$ac_exeext |
| 27045 |
|
| 27046 |
;; |
| 27047 |
esac |
| 27048 |
fi |
| 27049 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27050 |
conftest$ac_exeext |
| 27051 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27052 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27053 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27054 |
|
| 27055 |
;; |
| 27056 |
esac |
| 27057 |
fi |
| 27058 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wflexible_array_extensions" >&5 |
| 27059 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wflexible_array_extensions" >&6; } |
| 27060 |
if test "x$mhd_cv_cc_cfl_supp__Wflexible_array_extensions" = x"yes" |
| 27061 |
then : |
| 27062 |
if test -z "${CFLAGS_ac}" |
| 27063 |
then : |
| 27064 |
CFLAGS_ac="-Wflexible-array-extensions" |
| 27065 |
else case e in #( |
| 27066 |
e) CFLAGS_ac="${CFLAGS_ac} -Wflexible-array-extensions" ;; |
| 27067 |
esac |
| 27068 |
fi |
| 27069 |
|
| 27070 |
|
| 27071 |
fi |
| 27072 |
|
| 27073 |
|
| 27074 |
|
| 27075 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wloop-analysis flag" >&5 |
| 27076 |
printf %s "checking whether $CC supports -Wloop-analysis flag... " >&6; } |
| 27077 |
if test ${mhd_cv_cc_cfl_supp__Wloop_analysis+y} |
| 27078 |
then : |
| 27079 |
printf %s "(cached) " >&6 |
| 27080 |
else case e in #( |
| 27081 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27082 |
CFLAGS="${CFLAGS_ac} -Wloop-analysis ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27083 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27084 |
ac_c_werror_flag=yes |
| 27085 |
# Reuse the same source for all the checks here |
| 27086 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27087 |
/* end confdefs.h. */ |
| 27088 |
|
| 27089 |
int main(void) |
| 27090 |
{ |
| 27091 |
return 0; |
| 27092 |
} |
| 27093 |
|
| 27094 |
_ACEOF |
| 27095 |
if ac_fn_c_try_link "$LINENO" |
| 27096 |
then : |
| 27097 |
mhd_cv_cc_cfl_supp__Wloop_analysis="yes" |
| 27098 |
else case e in #( |
| 27099 |
e) # Compile and link failed with test flag added |
| 27100 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27101 |
if ac_fn_c_try_link "$LINENO" |
| 27102 |
then : |
| 27103 |
mhd_cv_cc_cfl_supp__Wloop_analysis="no" |
| 27104 |
else case e in #( |
| 27105 |
e) # Compile and link failed with test flag removed as well |
| 27106 |
CFLAGS="${CFLAGS_ac} -Wloop-analysis ${mhd_check_cc_flag_save_CFLAGS}" |
| 27107 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27108 |
if ac_fn_c_try_link "$LINENO" |
| 27109 |
then : |
| 27110 |
mhd_cv_cc_cfl_supp__Wloop_analysis="yes" |
| 27111 |
else case e in #( |
| 27112 |
e) mhd_cv_cc_cfl_supp__Wloop_analysis="no" ;; |
| 27113 |
esac |
| 27114 |
fi |
| 27115 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27116 |
conftest$ac_exeext |
| 27117 |
|
| 27118 |
;; |
| 27119 |
esac |
| 27120 |
fi |
| 27121 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27122 |
conftest$ac_exeext |
| 27123 |
|
| 27124 |
;; |
| 27125 |
esac |
| 27126 |
fi |
| 27127 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27128 |
conftest$ac_exeext |
| 27129 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27130 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27131 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27132 |
|
| 27133 |
;; |
| 27134 |
esac |
| 27135 |
fi |
| 27136 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wloop_analysis" >&5 |
| 27137 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wloop_analysis" >&6; } |
| 27138 |
if test "x$mhd_cv_cc_cfl_supp__Wloop_analysis" = x"yes" |
| 27139 |
then : |
| 27140 |
if test -z "${CFLAGS_ac}" |
| 27141 |
then : |
| 27142 |
CFLAGS_ac="-Wloop-analysis" |
| 27143 |
else case e in #( |
| 27144 |
e) CFLAGS_ac="${CFLAGS_ac} -Wloop-analysis" ;; |
| 27145 |
esac |
| 27146 |
fi |
| 27147 |
|
| 27148 |
|
| 27149 |
fi |
| 27150 |
|
| 27151 |
|
| 27152 |
|
| 27153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-pedantic flag" >&5 |
| 27154 |
printf %s "checking whether $CC supports -Wformat-pedantic flag... " >&6; } |
| 27155 |
if test ${mhd_cv_cc_cfl_supp__Wformat_pedantic+y} |
| 27156 |
then : |
| 27157 |
printf %s "(cached) " >&6 |
| 27158 |
else case e in #( |
| 27159 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27160 |
CFLAGS="${CFLAGS_ac} -Wformat-pedantic ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27161 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27162 |
ac_c_werror_flag=yes |
| 27163 |
# Reuse the same source for all the checks here |
| 27164 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27165 |
/* end confdefs.h. */ |
| 27166 |
|
| 27167 |
int main(void) |
| 27168 |
{ |
| 27169 |
return 0; |
| 27170 |
} |
| 27171 |
|
| 27172 |
_ACEOF |
| 27173 |
if ac_fn_c_try_link "$LINENO" |
| 27174 |
then : |
| 27175 |
mhd_cv_cc_cfl_supp__Wformat_pedantic="yes" |
| 27176 |
else case e in #( |
| 27177 |
e) # Compile and link failed with test flag added |
| 27178 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27179 |
if ac_fn_c_try_link "$LINENO" |
| 27180 |
then : |
| 27181 |
mhd_cv_cc_cfl_supp__Wformat_pedantic="no" |
| 27182 |
else case e in #( |
| 27183 |
e) # Compile and link failed with test flag removed as well |
| 27184 |
CFLAGS="${CFLAGS_ac} -Wformat-pedantic ${mhd_check_cc_flag_save_CFLAGS}" |
| 27185 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27186 |
if ac_fn_c_try_link "$LINENO" |
| 27187 |
then : |
| 27188 |
mhd_cv_cc_cfl_supp__Wformat_pedantic="yes" |
| 27189 |
else case e in #( |
| 27190 |
e) mhd_cv_cc_cfl_supp__Wformat_pedantic="no" ;; |
| 27191 |
esac |
| 27192 |
fi |
| 27193 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27194 |
conftest$ac_exeext |
| 27195 |
|
| 27196 |
;; |
| 27197 |
esac |
| 27198 |
fi |
| 27199 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27200 |
conftest$ac_exeext |
| 27201 |
|
| 27202 |
;; |
| 27203 |
esac |
| 27204 |
fi |
| 27205 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27206 |
conftest$ac_exeext |
| 27207 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27208 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27209 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27210 |
|
| 27211 |
;; |
| 27212 |
esac |
| 27213 |
fi |
| 27214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_pedantic" >&5 |
| 27215 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_pedantic" >&6; } |
| 27216 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_pedantic" = x"yes" |
| 27217 |
then : |
| 27218 |
if test -z "${CFLAGS_ac}" |
| 27219 |
then : |
| 27220 |
CFLAGS_ac="-Wformat-pedantic" |
| 27221 |
else case e in #( |
| 27222 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-pedantic" ;; |
| 27223 |
esac |
| 27224 |
fi |
| 27225 |
|
| 27226 |
|
| 27227 |
fi |
| 27228 |
|
| 27229 |
|
| 27230 |
|
| 27231 |
|
| 27232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-type-confusion flag" >&5 |
| 27233 |
printf %s "checking whether $CC supports -Wformat-type-confusion flag... " >&6; } |
| 27234 |
if test ${mhd_cv_cc_cfl_supp__Wformat_type_confusion+y} |
| 27235 |
then : |
| 27236 |
printf %s "(cached) " >&6 |
| 27237 |
else case e in #( |
| 27238 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27239 |
CFLAGS="${CFLAGS_ac} -Wformat-type-confusion ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27240 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27241 |
ac_c_werror_flag=yes |
| 27242 |
# Reuse the same source for all the checks here |
| 27243 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27244 |
/* end confdefs.h. */ |
| 27245 |
|
| 27246 |
int main(void) |
| 27247 |
{ |
| 27248 |
return 0; |
| 27249 |
} |
| 27250 |
|
| 27251 |
_ACEOF |
| 27252 |
if ac_fn_c_try_link "$LINENO" |
| 27253 |
then : |
| 27254 |
mhd_cv_cc_cfl_supp__Wformat_type_confusion="yes" |
| 27255 |
else case e in #( |
| 27256 |
e) # Compile and link failed with test flag added |
| 27257 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27258 |
if ac_fn_c_try_link "$LINENO" |
| 27259 |
then : |
| 27260 |
mhd_cv_cc_cfl_supp__Wformat_type_confusion="no" |
| 27261 |
else case e in #( |
| 27262 |
e) # Compile and link failed with test flag removed as well |
| 27263 |
CFLAGS="${CFLAGS_ac} -Wformat-type-confusion ${mhd_check_cc_flag_save_CFLAGS}" |
| 27264 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27265 |
if ac_fn_c_try_link "$LINENO" |
| 27266 |
then : |
| 27267 |
mhd_cv_cc_cfl_supp__Wformat_type_confusion="yes" |
| 27268 |
else case e in #( |
| 27269 |
e) mhd_cv_cc_cfl_supp__Wformat_type_confusion="no" ;; |
| 27270 |
esac |
| 27271 |
fi |
| 27272 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27273 |
conftest$ac_exeext |
| 27274 |
|
| 27275 |
;; |
| 27276 |
esac |
| 27277 |
fi |
| 27278 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27279 |
conftest$ac_exeext |
| 27280 |
|
| 27281 |
;; |
| 27282 |
esac |
| 27283 |
fi |
| 27284 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27285 |
conftest$ac_exeext |
| 27286 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27287 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27288 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27289 |
|
| 27290 |
;; |
| 27291 |
esac |
| 27292 |
fi |
| 27293 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_type_confusion" >&5 |
| 27294 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_type_confusion" >&6; } |
| 27295 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_type_confusion" = x"yes" |
| 27296 |
then : |
| 27297 |
if test -z "${CFLAGS_ac}" |
| 27298 |
then : |
| 27299 |
CFLAGS_ac="-Wformat-type-confusion" |
| 27300 |
else case e in #( |
| 27301 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-type-confusion" ;; |
| 27302 |
esac |
| 27303 |
fi |
| 27304 |
|
| 27305 |
|
| 27306 |
fi |
| 27307 |
|
| 27308 |
|
| 27309 |
|
| 27310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wfour-char-constants flag" >&5 |
| 27311 |
printf %s "checking whether $CC supports -Wfour-char-constants flag... " >&6; } |
| 27312 |
if test ${mhd_cv_cc_cfl_supp__Wfour_char_constants+y} |
| 27313 |
then : |
| 27314 |
printf %s "(cached) " >&6 |
| 27315 |
else case e in #( |
| 27316 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27317 |
CFLAGS="${CFLAGS_ac} -Wfour-char-constants ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27318 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27319 |
ac_c_werror_flag=yes |
| 27320 |
# Reuse the same source for all the checks here |
| 27321 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27322 |
/* end confdefs.h. */ |
| 27323 |
|
| 27324 |
int main(void) |
| 27325 |
{ |
| 27326 |
return 0; |
| 27327 |
} |
| 27328 |
|
| 27329 |
_ACEOF |
| 27330 |
if ac_fn_c_try_link "$LINENO" |
| 27331 |
then : |
| 27332 |
mhd_cv_cc_cfl_supp__Wfour_char_constants="yes" |
| 27333 |
else case e in #( |
| 27334 |
e) # Compile and link failed with test flag added |
| 27335 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27336 |
if ac_fn_c_try_link "$LINENO" |
| 27337 |
then : |
| 27338 |
mhd_cv_cc_cfl_supp__Wfour_char_constants="no" |
| 27339 |
else case e in #( |
| 27340 |
e) # Compile and link failed with test flag removed as well |
| 27341 |
CFLAGS="${CFLAGS_ac} -Wfour-char-constants ${mhd_check_cc_flag_save_CFLAGS}" |
| 27342 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27343 |
if ac_fn_c_try_link "$LINENO" |
| 27344 |
then : |
| 27345 |
mhd_cv_cc_cfl_supp__Wfour_char_constants="yes" |
| 27346 |
else case e in #( |
| 27347 |
e) mhd_cv_cc_cfl_supp__Wfour_char_constants="no" ;; |
| 27348 |
esac |
| 27349 |
fi |
| 27350 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27351 |
conftest$ac_exeext |
| 27352 |
|
| 27353 |
;; |
| 27354 |
esac |
| 27355 |
fi |
| 27356 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27357 |
conftest$ac_exeext |
| 27358 |
|
| 27359 |
;; |
| 27360 |
esac |
| 27361 |
fi |
| 27362 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27363 |
conftest$ac_exeext |
| 27364 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27365 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27366 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27367 |
|
| 27368 |
;; |
| 27369 |
esac |
| 27370 |
fi |
| 27371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wfour_char_constants" >&5 |
| 27372 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wfour_char_constants" >&6; } |
| 27373 |
if test "x$mhd_cv_cc_cfl_supp__Wfour_char_constants" = x"yes" |
| 27374 |
then : |
| 27375 |
if test -z "${CFLAGS_ac}" |
| 27376 |
then : |
| 27377 |
CFLAGS_ac="-Wfour-char-constants" |
| 27378 |
else case e in #( |
| 27379 |
e) CFLAGS_ac="${CFLAGS_ac} -Wfour-char-constants" ;; |
| 27380 |
esac |
| 27381 |
fi |
| 27382 |
|
| 27383 |
|
| 27384 |
fi |
| 27385 |
|
| 27386 |
|
| 27387 |
|
| 27388 |
|
| 27389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgcc-compat flag" >&5 |
| 27390 |
printf %s "checking whether $CC supports -Wgcc-compat flag... " >&6; } |
| 27391 |
if test ${mhd_cv_cc_cfl_supp__Wgcc_compat+y} |
| 27392 |
then : |
| 27393 |
printf %s "(cached) " >&6 |
| 27394 |
else case e in #( |
| 27395 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27396 |
CFLAGS="${CFLAGS_ac} -Wgcc-compat ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27397 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27398 |
ac_c_werror_flag=yes |
| 27399 |
# Reuse the same source for all the checks here |
| 27400 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27401 |
/* end confdefs.h. */ |
| 27402 |
|
| 27403 |
int main(void) |
| 27404 |
{ |
| 27405 |
return 0; |
| 27406 |
} |
| 27407 |
|
| 27408 |
_ACEOF |
| 27409 |
if ac_fn_c_try_link "$LINENO" |
| 27410 |
then : |
| 27411 |
mhd_cv_cc_cfl_supp__Wgcc_compat="yes" |
| 27412 |
else case e in #( |
| 27413 |
e) # Compile and link failed with test flag added |
| 27414 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27415 |
if ac_fn_c_try_link "$LINENO" |
| 27416 |
then : |
| 27417 |
mhd_cv_cc_cfl_supp__Wgcc_compat="no" |
| 27418 |
else case e in #( |
| 27419 |
e) # Compile and link failed with test flag removed as well |
| 27420 |
CFLAGS="${CFLAGS_ac} -Wgcc-compat ${mhd_check_cc_flag_save_CFLAGS}" |
| 27421 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27422 |
if ac_fn_c_try_link "$LINENO" |
| 27423 |
then : |
| 27424 |
mhd_cv_cc_cfl_supp__Wgcc_compat="yes" |
| 27425 |
else case e in #( |
| 27426 |
e) mhd_cv_cc_cfl_supp__Wgcc_compat="no" ;; |
| 27427 |
esac |
| 27428 |
fi |
| 27429 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27430 |
conftest$ac_exeext |
| 27431 |
|
| 27432 |
;; |
| 27433 |
esac |
| 27434 |
fi |
| 27435 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27436 |
conftest$ac_exeext |
| 27437 |
|
| 27438 |
;; |
| 27439 |
esac |
| 27440 |
fi |
| 27441 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27442 |
conftest$ac_exeext |
| 27443 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27444 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27445 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27446 |
|
| 27447 |
;; |
| 27448 |
esac |
| 27449 |
fi |
| 27450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgcc_compat" >&5 |
| 27451 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgcc_compat" >&6; } |
| 27452 |
if test "x$mhd_cv_cc_cfl_supp__Wgcc_compat" = x"yes" |
| 27453 |
then : |
| 27454 |
if test -z "${CFLAGS_ac}" |
| 27455 |
then : |
| 27456 |
CFLAGS_ac="-Wgcc-compat" |
| 27457 |
else case e in #( |
| 27458 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgcc-compat" ;; |
| 27459 |
esac |
| 27460 |
fi |
| 27461 |
|
| 27462 |
|
| 27463 |
fi |
| 27464 |
|
| 27465 |
|
| 27466 |
|
| 27467 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-anonymous-struct flag" >&5 |
| 27468 |
printf %s "checking whether $CC supports -Wgnu-anonymous-struct flag... " >&6; } |
| 27469 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct+y} |
| 27470 |
then : |
| 27471 |
printf %s "(cached) " >&6 |
| 27472 |
else case e in #( |
| 27473 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27474 |
CFLAGS="${CFLAGS_ac} -Wgnu-anonymous-struct ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27475 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27476 |
ac_c_werror_flag=yes |
| 27477 |
# Reuse the same source for all the checks here |
| 27478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27479 |
/* end confdefs.h. */ |
| 27480 |
|
| 27481 |
int main(void) |
| 27482 |
{ |
| 27483 |
return 0; |
| 27484 |
} |
| 27485 |
|
| 27486 |
_ACEOF |
| 27487 |
if ac_fn_c_try_link "$LINENO" |
| 27488 |
then : |
| 27489 |
mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct="yes" |
| 27490 |
else case e in #( |
| 27491 |
e) # Compile and link failed with test flag added |
| 27492 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27493 |
if ac_fn_c_try_link "$LINENO" |
| 27494 |
then : |
| 27495 |
mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct="no" |
| 27496 |
else case e in #( |
| 27497 |
e) # Compile and link failed with test flag removed as well |
| 27498 |
CFLAGS="${CFLAGS_ac} -Wgnu-anonymous-struct ${mhd_check_cc_flag_save_CFLAGS}" |
| 27499 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27500 |
if ac_fn_c_try_link "$LINENO" |
| 27501 |
then : |
| 27502 |
mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct="yes" |
| 27503 |
else case e in #( |
| 27504 |
e) mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct="no" ;; |
| 27505 |
esac |
| 27506 |
fi |
| 27507 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27508 |
conftest$ac_exeext |
| 27509 |
|
| 27510 |
;; |
| 27511 |
esac |
| 27512 |
fi |
| 27513 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27514 |
conftest$ac_exeext |
| 27515 |
|
| 27516 |
;; |
| 27517 |
esac |
| 27518 |
fi |
| 27519 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27520 |
conftest$ac_exeext |
| 27521 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27522 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27523 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27524 |
|
| 27525 |
;; |
| 27526 |
esac |
| 27527 |
fi |
| 27528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct" >&5 |
| 27529 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct" >&6; } |
| 27530 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_anonymous_struct" = x"yes" |
| 27531 |
then : |
| 27532 |
if test -z "${CFLAGS_ac}" |
| 27533 |
then : |
| 27534 |
CFLAGS_ac="-Wgnu-anonymous-struct" |
| 27535 |
else case e in #( |
| 27536 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-anonymous-struct" ;; |
| 27537 |
esac |
| 27538 |
fi |
| 27539 |
|
| 27540 |
|
| 27541 |
fi |
| 27542 |
|
| 27543 |
|
| 27544 |
|
| 27545 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-compound-literal-initializer flag" >&5 |
| 27546 |
printf %s "checking whether $CC supports -Wgnu-compound-literal-initializer flag... " >&6; } |
| 27547 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer+y} |
| 27548 |
then : |
| 27549 |
printf %s "(cached) " >&6 |
| 27550 |
else case e in #( |
| 27551 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27552 |
CFLAGS="${CFLAGS_ac} -Wgnu-compound-literal-initializer ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27553 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27554 |
ac_c_werror_flag=yes |
| 27555 |
# Reuse the same source for all the checks here |
| 27556 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27557 |
/* end confdefs.h. */ |
| 27558 |
|
| 27559 |
int main(void) |
| 27560 |
{ |
| 27561 |
return 0; |
| 27562 |
} |
| 27563 |
|
| 27564 |
_ACEOF |
| 27565 |
if ac_fn_c_try_link "$LINENO" |
| 27566 |
then : |
| 27567 |
mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer="yes" |
| 27568 |
else case e in #( |
| 27569 |
e) # Compile and link failed with test flag added |
| 27570 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27571 |
if ac_fn_c_try_link "$LINENO" |
| 27572 |
then : |
| 27573 |
mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer="no" |
| 27574 |
else case e in #( |
| 27575 |
e) # Compile and link failed with test flag removed as well |
| 27576 |
CFLAGS="${CFLAGS_ac} -Wgnu-compound-literal-initializer ${mhd_check_cc_flag_save_CFLAGS}" |
| 27577 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27578 |
if ac_fn_c_try_link "$LINENO" |
| 27579 |
then : |
| 27580 |
mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer="yes" |
| 27581 |
else case e in #( |
| 27582 |
e) mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer="no" ;; |
| 27583 |
esac |
| 27584 |
fi |
| 27585 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27586 |
conftest$ac_exeext |
| 27587 |
|
| 27588 |
;; |
| 27589 |
esac |
| 27590 |
fi |
| 27591 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27592 |
conftest$ac_exeext |
| 27593 |
|
| 27594 |
;; |
| 27595 |
esac |
| 27596 |
fi |
| 27597 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27598 |
conftest$ac_exeext |
| 27599 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27600 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27601 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27602 |
|
| 27603 |
;; |
| 27604 |
esac |
| 27605 |
fi |
| 27606 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer" >&5 |
| 27607 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer" >&6; } |
| 27608 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_compound_literal_initializer" = x"yes" |
| 27609 |
then : |
| 27610 |
if test -z "${CFLAGS_ac}" |
| 27611 |
then : |
| 27612 |
CFLAGS_ac="-Wgnu-compound-literal-initializer" |
| 27613 |
else case e in #( |
| 27614 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-compound-literal-initializer" ;; |
| 27615 |
esac |
| 27616 |
fi |
| 27617 |
|
| 27618 |
|
| 27619 |
fi |
| 27620 |
|
| 27621 |
|
| 27622 |
|
| 27623 |
|
| 27624 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-conditional-omitted-operand flag" >&5 |
| 27625 |
printf %s "checking whether $CC supports -Wgnu-conditional-omitted-operand flag... " >&6; } |
| 27626 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand+y} |
| 27627 |
then : |
| 27628 |
printf %s "(cached) " >&6 |
| 27629 |
else case e in #( |
| 27630 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27631 |
CFLAGS="${CFLAGS_ac} -Wgnu-conditional-omitted-operand ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27632 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27633 |
ac_c_werror_flag=yes |
| 27634 |
# Reuse the same source for all the checks here |
| 27635 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27636 |
/* end confdefs.h. */ |
| 27637 |
|
| 27638 |
int main(void) |
| 27639 |
{ |
| 27640 |
return 0; |
| 27641 |
} |
| 27642 |
|
| 27643 |
_ACEOF |
| 27644 |
if ac_fn_c_try_link "$LINENO" |
| 27645 |
then : |
| 27646 |
mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand="yes" |
| 27647 |
else case e in #( |
| 27648 |
e) # Compile and link failed with test flag added |
| 27649 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27650 |
if ac_fn_c_try_link "$LINENO" |
| 27651 |
then : |
| 27652 |
mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand="no" |
| 27653 |
else case e in #( |
| 27654 |
e) # Compile and link failed with test flag removed as well |
| 27655 |
CFLAGS="${CFLAGS_ac} -Wgnu-conditional-omitted-operand ${mhd_check_cc_flag_save_CFLAGS}" |
| 27656 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27657 |
if ac_fn_c_try_link "$LINENO" |
| 27658 |
then : |
| 27659 |
mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand="yes" |
| 27660 |
else case e in #( |
| 27661 |
e) mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand="no" ;; |
| 27662 |
esac |
| 27663 |
fi |
| 27664 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27665 |
conftest$ac_exeext |
| 27666 |
|
| 27667 |
;; |
| 27668 |
esac |
| 27669 |
fi |
| 27670 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27671 |
conftest$ac_exeext |
| 27672 |
|
| 27673 |
;; |
| 27674 |
esac |
| 27675 |
fi |
| 27676 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27677 |
conftest$ac_exeext |
| 27678 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27679 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27680 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27681 |
|
| 27682 |
;; |
| 27683 |
esac |
| 27684 |
fi |
| 27685 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand" >&5 |
| 27686 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand" >&6; } |
| 27687 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_conditional_omitted_operand" = x"yes" |
| 27688 |
then : |
| 27689 |
if test -z "${CFLAGS_ac}" |
| 27690 |
then : |
| 27691 |
CFLAGS_ac="-Wgnu-conditional-omitted-operand" |
| 27692 |
else case e in #( |
| 27693 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-conditional-omitted-operand" ;; |
| 27694 |
esac |
| 27695 |
fi |
| 27696 |
|
| 27697 |
|
| 27698 |
fi |
| 27699 |
|
| 27700 |
|
| 27701 |
|
| 27702 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-designator flag" >&5 |
| 27703 |
printf %s "checking whether $CC supports -Wgnu-designator flag... " >&6; } |
| 27704 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_designator+y} |
| 27705 |
then : |
| 27706 |
printf %s "(cached) " >&6 |
| 27707 |
else case e in #( |
| 27708 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27709 |
CFLAGS="${CFLAGS_ac} -Wgnu-designator ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27710 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27711 |
ac_c_werror_flag=yes |
| 27712 |
# Reuse the same source for all the checks here |
| 27713 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27714 |
/* end confdefs.h. */ |
| 27715 |
|
| 27716 |
int main(void) |
| 27717 |
{ |
| 27718 |
return 0; |
| 27719 |
} |
| 27720 |
|
| 27721 |
_ACEOF |
| 27722 |
if ac_fn_c_try_link "$LINENO" |
| 27723 |
then : |
| 27724 |
mhd_cv_cc_cfl_supp__Wgnu_designator="yes" |
| 27725 |
else case e in #( |
| 27726 |
e) # Compile and link failed with test flag added |
| 27727 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27728 |
if ac_fn_c_try_link "$LINENO" |
| 27729 |
then : |
| 27730 |
mhd_cv_cc_cfl_supp__Wgnu_designator="no" |
| 27731 |
else case e in #( |
| 27732 |
e) # Compile and link failed with test flag removed as well |
| 27733 |
CFLAGS="${CFLAGS_ac} -Wgnu-designator ${mhd_check_cc_flag_save_CFLAGS}" |
| 27734 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27735 |
if ac_fn_c_try_link "$LINENO" |
| 27736 |
then : |
| 27737 |
mhd_cv_cc_cfl_supp__Wgnu_designator="yes" |
| 27738 |
else case e in #( |
| 27739 |
e) mhd_cv_cc_cfl_supp__Wgnu_designator="no" ;; |
| 27740 |
esac |
| 27741 |
fi |
| 27742 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27743 |
conftest$ac_exeext |
| 27744 |
|
| 27745 |
;; |
| 27746 |
esac |
| 27747 |
fi |
| 27748 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27749 |
conftest$ac_exeext |
| 27750 |
|
| 27751 |
;; |
| 27752 |
esac |
| 27753 |
fi |
| 27754 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27755 |
conftest$ac_exeext |
| 27756 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27757 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27758 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27759 |
|
| 27760 |
;; |
| 27761 |
esac |
| 27762 |
fi |
| 27763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_designator" >&5 |
| 27764 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_designator" >&6; } |
| 27765 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_designator" = x"yes" |
| 27766 |
then : |
| 27767 |
if test -z "${CFLAGS_ac}" |
| 27768 |
then : |
| 27769 |
CFLAGS_ac="-Wgnu-designator" |
| 27770 |
else case e in #( |
| 27771 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-designator" ;; |
| 27772 |
esac |
| 27773 |
fi |
| 27774 |
|
| 27775 |
|
| 27776 |
fi |
| 27777 |
|
| 27778 |
|
| 27779 |
|
| 27780 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-empty-initializer flag" >&5 |
| 27781 |
printf %s "checking whether $CC supports -Wgnu-empty-initializer flag... " >&6; } |
| 27782 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_empty_initializer+y} |
| 27783 |
then : |
| 27784 |
printf %s "(cached) " >&6 |
| 27785 |
else case e in #( |
| 27786 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27787 |
CFLAGS="${CFLAGS_ac} -Wgnu-empty-initializer ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27788 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27789 |
ac_c_werror_flag=yes |
| 27790 |
# Reuse the same source for all the checks here |
| 27791 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27792 |
/* end confdefs.h. */ |
| 27793 |
|
| 27794 |
int main(void) |
| 27795 |
{ |
| 27796 |
return 0; |
| 27797 |
} |
| 27798 |
|
| 27799 |
_ACEOF |
| 27800 |
if ac_fn_c_try_link "$LINENO" |
| 27801 |
then : |
| 27802 |
mhd_cv_cc_cfl_supp__Wgnu_empty_initializer="yes" |
| 27803 |
else case e in #( |
| 27804 |
e) # Compile and link failed with test flag added |
| 27805 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27806 |
if ac_fn_c_try_link "$LINENO" |
| 27807 |
then : |
| 27808 |
mhd_cv_cc_cfl_supp__Wgnu_empty_initializer="no" |
| 27809 |
else case e in #( |
| 27810 |
e) # Compile and link failed with test flag removed as well |
| 27811 |
CFLAGS="${CFLAGS_ac} -Wgnu-empty-initializer ${mhd_check_cc_flag_save_CFLAGS}" |
| 27812 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27813 |
if ac_fn_c_try_link "$LINENO" |
| 27814 |
then : |
| 27815 |
mhd_cv_cc_cfl_supp__Wgnu_empty_initializer="yes" |
| 27816 |
else case e in #( |
| 27817 |
e) mhd_cv_cc_cfl_supp__Wgnu_empty_initializer="no" ;; |
| 27818 |
esac |
| 27819 |
fi |
| 27820 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27821 |
conftest$ac_exeext |
| 27822 |
|
| 27823 |
;; |
| 27824 |
esac |
| 27825 |
fi |
| 27826 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27827 |
conftest$ac_exeext |
| 27828 |
|
| 27829 |
;; |
| 27830 |
esac |
| 27831 |
fi |
| 27832 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27833 |
conftest$ac_exeext |
| 27834 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27835 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27836 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27837 |
|
| 27838 |
;; |
| 27839 |
esac |
| 27840 |
fi |
| 27841 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_empty_initializer" >&5 |
| 27842 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_empty_initializer" >&6; } |
| 27843 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_empty_initializer" = x"yes" |
| 27844 |
then : |
| 27845 |
if test -z "${CFLAGS_ac}" |
| 27846 |
then : |
| 27847 |
CFLAGS_ac="-Wgnu-empty-initializer" |
| 27848 |
else case e in #( |
| 27849 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-empty-initializer" ;; |
| 27850 |
esac |
| 27851 |
fi |
| 27852 |
|
| 27853 |
|
| 27854 |
fi |
| 27855 |
|
| 27856 |
|
| 27857 |
|
| 27858 |
|
| 27859 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-empty-struct flag" >&5 |
| 27860 |
printf %s "checking whether $CC supports -Wgnu-empty-struct flag... " >&6; } |
| 27861 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_empty_struct+y} |
| 27862 |
then : |
| 27863 |
printf %s "(cached) " >&6 |
| 27864 |
else case e in #( |
| 27865 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27866 |
CFLAGS="${CFLAGS_ac} -Wgnu-empty-struct ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27867 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27868 |
ac_c_werror_flag=yes |
| 27869 |
# Reuse the same source for all the checks here |
| 27870 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27871 |
/* end confdefs.h. */ |
| 27872 |
|
| 27873 |
int main(void) |
| 27874 |
{ |
| 27875 |
return 0; |
| 27876 |
} |
| 27877 |
|
| 27878 |
_ACEOF |
| 27879 |
if ac_fn_c_try_link "$LINENO" |
| 27880 |
then : |
| 27881 |
mhd_cv_cc_cfl_supp__Wgnu_empty_struct="yes" |
| 27882 |
else case e in #( |
| 27883 |
e) # Compile and link failed with test flag added |
| 27884 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27885 |
if ac_fn_c_try_link "$LINENO" |
| 27886 |
then : |
| 27887 |
mhd_cv_cc_cfl_supp__Wgnu_empty_struct="no" |
| 27888 |
else case e in #( |
| 27889 |
e) # Compile and link failed with test flag removed as well |
| 27890 |
CFLAGS="${CFLAGS_ac} -Wgnu-empty-struct ${mhd_check_cc_flag_save_CFLAGS}" |
| 27891 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27892 |
if ac_fn_c_try_link "$LINENO" |
| 27893 |
then : |
| 27894 |
mhd_cv_cc_cfl_supp__Wgnu_empty_struct="yes" |
| 27895 |
else case e in #( |
| 27896 |
e) mhd_cv_cc_cfl_supp__Wgnu_empty_struct="no" ;; |
| 27897 |
esac |
| 27898 |
fi |
| 27899 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27900 |
conftest$ac_exeext |
| 27901 |
|
| 27902 |
;; |
| 27903 |
esac |
| 27904 |
fi |
| 27905 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27906 |
conftest$ac_exeext |
| 27907 |
|
| 27908 |
;; |
| 27909 |
esac |
| 27910 |
fi |
| 27911 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27912 |
conftest$ac_exeext |
| 27913 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27914 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27915 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27916 |
|
| 27917 |
;; |
| 27918 |
esac |
| 27919 |
fi |
| 27920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_empty_struct" >&5 |
| 27921 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_empty_struct" >&6; } |
| 27922 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_empty_struct" = x"yes" |
| 27923 |
then : |
| 27924 |
if test -z "${CFLAGS_ac}" |
| 27925 |
then : |
| 27926 |
CFLAGS_ac="-Wgnu-empty-struct" |
| 27927 |
else case e in #( |
| 27928 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-empty-struct" ;; |
| 27929 |
esac |
| 27930 |
fi |
| 27931 |
|
| 27932 |
|
| 27933 |
fi |
| 27934 |
|
| 27935 |
|
| 27936 |
|
| 27937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-flexible-array-initializer flag" >&5 |
| 27938 |
printf %s "checking whether $CC supports -Wgnu-flexible-array-initializer flag... " >&6; } |
| 27939 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer+y} |
| 27940 |
then : |
| 27941 |
printf %s "(cached) " >&6 |
| 27942 |
else case e in #( |
| 27943 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 27944 |
CFLAGS="${CFLAGS_ac} -Wgnu-flexible-array-initializer ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27945 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 27946 |
ac_c_werror_flag=yes |
| 27947 |
# Reuse the same source for all the checks here |
| 27948 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27949 |
/* end confdefs.h. */ |
| 27950 |
|
| 27951 |
int main(void) |
| 27952 |
{ |
| 27953 |
return 0; |
| 27954 |
} |
| 27955 |
|
| 27956 |
_ACEOF |
| 27957 |
if ac_fn_c_try_link "$LINENO" |
| 27958 |
then : |
| 27959 |
mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer="yes" |
| 27960 |
else case e in #( |
| 27961 |
e) # Compile and link failed with test flag added |
| 27962 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 27963 |
if ac_fn_c_try_link "$LINENO" |
| 27964 |
then : |
| 27965 |
mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer="no" |
| 27966 |
else case e in #( |
| 27967 |
e) # Compile and link failed with test flag removed as well |
| 27968 |
CFLAGS="${CFLAGS_ac} -Wgnu-flexible-array-initializer ${mhd_check_cc_flag_save_CFLAGS}" |
| 27969 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27970 |
if ac_fn_c_try_link "$LINENO" |
| 27971 |
then : |
| 27972 |
mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer="yes" |
| 27973 |
else case e in #( |
| 27974 |
e) mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer="no" ;; |
| 27975 |
esac |
| 27976 |
fi |
| 27977 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27978 |
conftest$ac_exeext |
| 27979 |
|
| 27980 |
;; |
| 27981 |
esac |
| 27982 |
fi |
| 27983 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27984 |
conftest$ac_exeext |
| 27985 |
|
| 27986 |
;; |
| 27987 |
esac |
| 27988 |
fi |
| 27989 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27990 |
conftest$ac_exeext |
| 27991 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 27992 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 27993 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 27994 |
|
| 27995 |
;; |
| 27996 |
esac |
| 27997 |
fi |
| 27998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer" >&5 |
| 27999 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer" >&6; } |
| 28000 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_flexible_array_initializer" = x"yes" |
| 28001 |
then : |
| 28002 |
if test -z "${CFLAGS_ac}" |
| 28003 |
then : |
| 28004 |
CFLAGS_ac="-Wgnu-flexible-array-initializer" |
| 28005 |
else case e in #( |
| 28006 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-flexible-array-initializer" ;; |
| 28007 |
esac |
| 28008 |
fi |
| 28009 |
|
| 28010 |
|
| 28011 |
fi |
| 28012 |
|
| 28013 |
|
| 28014 |
|
| 28015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-folding-constant flag" >&5 |
| 28016 |
printf %s "checking whether $CC supports -Wgnu-folding-constant flag... " >&6; } |
| 28017 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_folding_constant+y} |
| 28018 |
then : |
| 28019 |
printf %s "(cached) " >&6 |
| 28020 |
else case e in #( |
| 28021 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28022 |
CFLAGS="${CFLAGS_ac} -Wgnu-folding-constant ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28023 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28024 |
ac_c_werror_flag=yes |
| 28025 |
# Reuse the same source for all the checks here |
| 28026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28027 |
/* end confdefs.h. */ |
| 28028 |
|
| 28029 |
int main(void) |
| 28030 |
{ |
| 28031 |
return 0; |
| 28032 |
} |
| 28033 |
|
| 28034 |
_ACEOF |
| 28035 |
if ac_fn_c_try_link "$LINENO" |
| 28036 |
then : |
| 28037 |
mhd_cv_cc_cfl_supp__Wgnu_folding_constant="yes" |
| 28038 |
else case e in #( |
| 28039 |
e) # Compile and link failed with test flag added |
| 28040 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28041 |
if ac_fn_c_try_link "$LINENO" |
| 28042 |
then : |
| 28043 |
mhd_cv_cc_cfl_supp__Wgnu_folding_constant="no" |
| 28044 |
else case e in #( |
| 28045 |
e) # Compile and link failed with test flag removed as well |
| 28046 |
CFLAGS="${CFLAGS_ac} -Wgnu-folding-constant ${mhd_check_cc_flag_save_CFLAGS}" |
| 28047 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28048 |
if ac_fn_c_try_link "$LINENO" |
| 28049 |
then : |
| 28050 |
mhd_cv_cc_cfl_supp__Wgnu_folding_constant="yes" |
| 28051 |
else case e in #( |
| 28052 |
e) mhd_cv_cc_cfl_supp__Wgnu_folding_constant="no" ;; |
| 28053 |
esac |
| 28054 |
fi |
| 28055 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28056 |
conftest$ac_exeext |
| 28057 |
|
| 28058 |
;; |
| 28059 |
esac |
| 28060 |
fi |
| 28061 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28062 |
conftest$ac_exeext |
| 28063 |
|
| 28064 |
;; |
| 28065 |
esac |
| 28066 |
fi |
| 28067 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28068 |
conftest$ac_exeext |
| 28069 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28070 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28071 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28072 |
|
| 28073 |
;; |
| 28074 |
esac |
| 28075 |
fi |
| 28076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_folding_constant" >&5 |
| 28077 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_folding_constant" >&6; } |
| 28078 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_folding_constant" = x"yes" |
| 28079 |
then : |
| 28080 |
if test -z "${CFLAGS_ac}" |
| 28081 |
then : |
| 28082 |
CFLAGS_ac="-Wgnu-folding-constant" |
| 28083 |
else case e in #( |
| 28084 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-folding-constant" ;; |
| 28085 |
esac |
| 28086 |
fi |
| 28087 |
|
| 28088 |
|
| 28089 |
fi |
| 28090 |
|
| 28091 |
|
| 28092 |
|
| 28093 |
|
| 28094 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-null-pointer-arithmetic flag" >&5 |
| 28095 |
printf %s "checking whether $CC supports -Wgnu-null-pointer-arithmetic flag... " >&6; } |
| 28096 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic+y} |
| 28097 |
then : |
| 28098 |
printf %s "(cached) " >&6 |
| 28099 |
else case e in #( |
| 28100 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28101 |
CFLAGS="${CFLAGS_ac} -Wgnu-null-pointer-arithmetic ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28102 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28103 |
ac_c_werror_flag=yes |
| 28104 |
# Reuse the same source for all the checks here |
| 28105 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28106 |
/* end confdefs.h. */ |
| 28107 |
|
| 28108 |
int main(void) |
| 28109 |
{ |
| 28110 |
return 0; |
| 28111 |
} |
| 28112 |
|
| 28113 |
_ACEOF |
| 28114 |
if ac_fn_c_try_link "$LINENO" |
| 28115 |
then : |
| 28116 |
mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic="yes" |
| 28117 |
else case e in #( |
| 28118 |
e) # Compile and link failed with test flag added |
| 28119 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28120 |
if ac_fn_c_try_link "$LINENO" |
| 28121 |
then : |
| 28122 |
mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic="no" |
| 28123 |
else case e in #( |
| 28124 |
e) # Compile and link failed with test flag removed as well |
| 28125 |
CFLAGS="${CFLAGS_ac} -Wgnu-null-pointer-arithmetic ${mhd_check_cc_flag_save_CFLAGS}" |
| 28126 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28127 |
if ac_fn_c_try_link "$LINENO" |
| 28128 |
then : |
| 28129 |
mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic="yes" |
| 28130 |
else case e in #( |
| 28131 |
e) mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic="no" ;; |
| 28132 |
esac |
| 28133 |
fi |
| 28134 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28135 |
conftest$ac_exeext |
| 28136 |
|
| 28137 |
;; |
| 28138 |
esac |
| 28139 |
fi |
| 28140 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28141 |
conftest$ac_exeext |
| 28142 |
|
| 28143 |
;; |
| 28144 |
esac |
| 28145 |
fi |
| 28146 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28147 |
conftest$ac_exeext |
| 28148 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28149 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28150 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28151 |
|
| 28152 |
;; |
| 28153 |
esac |
| 28154 |
fi |
| 28155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic" >&5 |
| 28156 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic" >&6; } |
| 28157 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_null_pointer_arithmetic" = x"yes" |
| 28158 |
then : |
| 28159 |
if test -z "${CFLAGS_ac}" |
| 28160 |
then : |
| 28161 |
CFLAGS_ac="-Wgnu-null-pointer-arithmetic" |
| 28162 |
else case e in #( |
| 28163 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-null-pointer-arithmetic" ;; |
| 28164 |
esac |
| 28165 |
fi |
| 28166 |
|
| 28167 |
|
| 28168 |
fi |
| 28169 |
|
| 28170 |
|
| 28171 |
|
| 28172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-pointer-arith flag" >&5 |
| 28173 |
printf %s "checking whether $CC supports -Wgnu-pointer-arith flag... " >&6; } |
| 28174 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_pointer_arith+y} |
| 28175 |
then : |
| 28176 |
printf %s "(cached) " >&6 |
| 28177 |
else case e in #( |
| 28178 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28179 |
CFLAGS="${CFLAGS_ac} -Wgnu-pointer-arith ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28180 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28181 |
ac_c_werror_flag=yes |
| 28182 |
# Reuse the same source for all the checks here |
| 28183 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28184 |
/* end confdefs.h. */ |
| 28185 |
|
| 28186 |
int main(void) |
| 28187 |
{ |
| 28188 |
return 0; |
| 28189 |
} |
| 28190 |
|
| 28191 |
_ACEOF |
| 28192 |
if ac_fn_c_try_link "$LINENO" |
| 28193 |
then : |
| 28194 |
mhd_cv_cc_cfl_supp__Wgnu_pointer_arith="yes" |
| 28195 |
else case e in #( |
| 28196 |
e) # Compile and link failed with test flag added |
| 28197 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28198 |
if ac_fn_c_try_link "$LINENO" |
| 28199 |
then : |
| 28200 |
mhd_cv_cc_cfl_supp__Wgnu_pointer_arith="no" |
| 28201 |
else case e in #( |
| 28202 |
e) # Compile and link failed with test flag removed as well |
| 28203 |
CFLAGS="${CFLAGS_ac} -Wgnu-pointer-arith ${mhd_check_cc_flag_save_CFLAGS}" |
| 28204 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28205 |
if ac_fn_c_try_link "$LINENO" |
| 28206 |
then : |
| 28207 |
mhd_cv_cc_cfl_supp__Wgnu_pointer_arith="yes" |
| 28208 |
else case e in #( |
| 28209 |
e) mhd_cv_cc_cfl_supp__Wgnu_pointer_arith="no" ;; |
| 28210 |
esac |
| 28211 |
fi |
| 28212 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28213 |
conftest$ac_exeext |
| 28214 |
|
| 28215 |
;; |
| 28216 |
esac |
| 28217 |
fi |
| 28218 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28219 |
conftest$ac_exeext |
| 28220 |
|
| 28221 |
;; |
| 28222 |
esac |
| 28223 |
fi |
| 28224 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28225 |
conftest$ac_exeext |
| 28226 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28227 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28228 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28229 |
|
| 28230 |
;; |
| 28231 |
esac |
| 28232 |
fi |
| 28233 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_pointer_arith" >&5 |
| 28234 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_pointer_arith" >&6; } |
| 28235 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_pointer_arith" = x"yes" |
| 28236 |
then : |
| 28237 |
if test -z "${CFLAGS_ac}" |
| 28238 |
then : |
| 28239 |
CFLAGS_ac="-Wgnu-pointer-arith" |
| 28240 |
else case e in #( |
| 28241 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-pointer-arith" ;; |
| 28242 |
esac |
| 28243 |
fi |
| 28244 |
|
| 28245 |
|
| 28246 |
fi |
| 28247 |
|
| 28248 |
|
| 28249 |
|
| 28250 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-redeclared-enum flag" >&5 |
| 28251 |
printf %s "checking whether $CC supports -Wgnu-redeclared-enum flag... " >&6; } |
| 28252 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum+y} |
| 28253 |
then : |
| 28254 |
printf %s "(cached) " >&6 |
| 28255 |
else case e in #( |
| 28256 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28257 |
CFLAGS="${CFLAGS_ac} -Wgnu-redeclared-enum ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28258 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28259 |
ac_c_werror_flag=yes |
| 28260 |
# Reuse the same source for all the checks here |
| 28261 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28262 |
/* end confdefs.h. */ |
| 28263 |
|
| 28264 |
int main(void) |
| 28265 |
{ |
| 28266 |
return 0; |
| 28267 |
} |
| 28268 |
|
| 28269 |
_ACEOF |
| 28270 |
if ac_fn_c_try_link "$LINENO" |
| 28271 |
then : |
| 28272 |
mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum="yes" |
| 28273 |
else case e in #( |
| 28274 |
e) # Compile and link failed with test flag added |
| 28275 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28276 |
if ac_fn_c_try_link "$LINENO" |
| 28277 |
then : |
| 28278 |
mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum="no" |
| 28279 |
else case e in #( |
| 28280 |
e) # Compile and link failed with test flag removed as well |
| 28281 |
CFLAGS="${CFLAGS_ac} -Wgnu-redeclared-enum ${mhd_check_cc_flag_save_CFLAGS}" |
| 28282 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28283 |
if ac_fn_c_try_link "$LINENO" |
| 28284 |
then : |
| 28285 |
mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum="yes" |
| 28286 |
else case e in #( |
| 28287 |
e) mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum="no" ;; |
| 28288 |
esac |
| 28289 |
fi |
| 28290 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28291 |
conftest$ac_exeext |
| 28292 |
|
| 28293 |
;; |
| 28294 |
esac |
| 28295 |
fi |
| 28296 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28297 |
conftest$ac_exeext |
| 28298 |
|
| 28299 |
;; |
| 28300 |
esac |
| 28301 |
fi |
| 28302 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28303 |
conftest$ac_exeext |
| 28304 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28305 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28306 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28307 |
|
| 28308 |
;; |
| 28309 |
esac |
| 28310 |
fi |
| 28311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum" >&5 |
| 28312 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum" >&6; } |
| 28313 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_redeclared_enum" = x"yes" |
| 28314 |
then : |
| 28315 |
if test -z "${CFLAGS_ac}" |
| 28316 |
then : |
| 28317 |
CFLAGS_ac="-Wgnu-redeclared-enum" |
| 28318 |
else case e in #( |
| 28319 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-redeclared-enum" ;; |
| 28320 |
esac |
| 28321 |
fi |
| 28322 |
|
| 28323 |
|
| 28324 |
fi |
| 28325 |
|
| 28326 |
|
| 28327 |
|
| 28328 |
|
| 28329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-union-cast flag" >&5 |
| 28330 |
printf %s "checking whether $CC supports -Wgnu-union-cast flag... " >&6; } |
| 28331 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_union_cast+y} |
| 28332 |
then : |
| 28333 |
printf %s "(cached) " >&6 |
| 28334 |
else case e in #( |
| 28335 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28336 |
CFLAGS="${CFLAGS_ac} -Wgnu-union-cast ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28337 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28338 |
ac_c_werror_flag=yes |
| 28339 |
# Reuse the same source for all the checks here |
| 28340 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28341 |
/* end confdefs.h. */ |
| 28342 |
|
| 28343 |
int main(void) |
| 28344 |
{ |
| 28345 |
return 0; |
| 28346 |
} |
| 28347 |
|
| 28348 |
_ACEOF |
| 28349 |
if ac_fn_c_try_link "$LINENO" |
| 28350 |
then : |
| 28351 |
mhd_cv_cc_cfl_supp__Wgnu_union_cast="yes" |
| 28352 |
else case e in #( |
| 28353 |
e) # Compile and link failed with test flag added |
| 28354 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28355 |
if ac_fn_c_try_link "$LINENO" |
| 28356 |
then : |
| 28357 |
mhd_cv_cc_cfl_supp__Wgnu_union_cast="no" |
| 28358 |
else case e in #( |
| 28359 |
e) # Compile and link failed with test flag removed as well |
| 28360 |
CFLAGS="${CFLAGS_ac} -Wgnu-union-cast ${mhd_check_cc_flag_save_CFLAGS}" |
| 28361 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28362 |
if ac_fn_c_try_link "$LINENO" |
| 28363 |
then : |
| 28364 |
mhd_cv_cc_cfl_supp__Wgnu_union_cast="yes" |
| 28365 |
else case e in #( |
| 28366 |
e) mhd_cv_cc_cfl_supp__Wgnu_union_cast="no" ;; |
| 28367 |
esac |
| 28368 |
fi |
| 28369 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28370 |
conftest$ac_exeext |
| 28371 |
|
| 28372 |
;; |
| 28373 |
esac |
| 28374 |
fi |
| 28375 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28376 |
conftest$ac_exeext |
| 28377 |
|
| 28378 |
;; |
| 28379 |
esac |
| 28380 |
fi |
| 28381 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28382 |
conftest$ac_exeext |
| 28383 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28384 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28385 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28386 |
|
| 28387 |
;; |
| 28388 |
esac |
| 28389 |
fi |
| 28390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_union_cast" >&5 |
| 28391 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_union_cast" >&6; } |
| 28392 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_union_cast" = x"yes" |
| 28393 |
then : |
| 28394 |
if test -z "${CFLAGS_ac}" |
| 28395 |
then : |
| 28396 |
CFLAGS_ac="-Wgnu-union-cast" |
| 28397 |
else case e in #( |
| 28398 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-union-cast" ;; |
| 28399 |
esac |
| 28400 |
fi |
| 28401 |
|
| 28402 |
|
| 28403 |
fi |
| 28404 |
|
| 28405 |
|
| 28406 |
|
| 28407 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wgnu-variable-sized-type-not-at-end flag" >&5 |
| 28408 |
printf %s "checking whether $CC supports -Wgnu-variable-sized-type-not-at-end flag... " >&6; } |
| 28409 |
if test ${mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end+y} |
| 28410 |
then : |
| 28411 |
printf %s "(cached) " >&6 |
| 28412 |
else case e in #( |
| 28413 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28414 |
CFLAGS="${CFLAGS_ac} -Wgnu-variable-sized-type-not-at-end ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28415 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28416 |
ac_c_werror_flag=yes |
| 28417 |
# Reuse the same source for all the checks here |
| 28418 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28419 |
/* end confdefs.h. */ |
| 28420 |
|
| 28421 |
int main(void) |
| 28422 |
{ |
| 28423 |
return 0; |
| 28424 |
} |
| 28425 |
|
| 28426 |
_ACEOF |
| 28427 |
if ac_fn_c_try_link "$LINENO" |
| 28428 |
then : |
| 28429 |
mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end="yes" |
| 28430 |
else case e in #( |
| 28431 |
e) # Compile and link failed with test flag added |
| 28432 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28433 |
if ac_fn_c_try_link "$LINENO" |
| 28434 |
then : |
| 28435 |
mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end="no" |
| 28436 |
else case e in #( |
| 28437 |
e) # Compile and link failed with test flag removed as well |
| 28438 |
CFLAGS="${CFLAGS_ac} -Wgnu-variable-sized-type-not-at-end ${mhd_check_cc_flag_save_CFLAGS}" |
| 28439 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28440 |
if ac_fn_c_try_link "$LINENO" |
| 28441 |
then : |
| 28442 |
mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end="yes" |
| 28443 |
else case e in #( |
| 28444 |
e) mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end="no" ;; |
| 28445 |
esac |
| 28446 |
fi |
| 28447 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28448 |
conftest$ac_exeext |
| 28449 |
|
| 28450 |
;; |
| 28451 |
esac |
| 28452 |
fi |
| 28453 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28454 |
conftest$ac_exeext |
| 28455 |
|
| 28456 |
;; |
| 28457 |
esac |
| 28458 |
fi |
| 28459 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28460 |
conftest$ac_exeext |
| 28461 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28462 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28463 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28464 |
|
| 28465 |
;; |
| 28466 |
esac |
| 28467 |
fi |
| 28468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end" >&5 |
| 28469 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end" >&6; } |
| 28470 |
if test "x$mhd_cv_cc_cfl_supp__Wgnu_variable_sized_type_not_at_end" = x"yes" |
| 28471 |
then : |
| 28472 |
if test -z "${CFLAGS_ac}" |
| 28473 |
then : |
| 28474 |
CFLAGS_ac="-Wgnu-variable-sized-type-not-at-end" |
| 28475 |
else case e in #( |
| 28476 |
e) CFLAGS_ac="${CFLAGS_ac} -Wgnu-variable-sized-type-not-at-end" ;; |
| 28477 |
esac |
| 28478 |
fi |
| 28479 |
|
| 28480 |
|
| 28481 |
fi |
| 28482 |
|
| 28483 |
|
| 28484 |
|
| 28485 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Widiomatic-parentheses flag" >&5 |
| 28486 |
printf %s "checking whether $CC supports -Widiomatic-parentheses flag... " >&6; } |
| 28487 |
if test ${mhd_cv_cc_cfl_supp__Widiomatic_parentheses+y} |
| 28488 |
then : |
| 28489 |
printf %s "(cached) " >&6 |
| 28490 |
else case e in #( |
| 28491 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28492 |
CFLAGS="${CFLAGS_ac} -Widiomatic-parentheses ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28493 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28494 |
ac_c_werror_flag=yes |
| 28495 |
# Reuse the same source for all the checks here |
| 28496 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28497 |
/* end confdefs.h. */ |
| 28498 |
|
| 28499 |
int main(void) |
| 28500 |
{ |
| 28501 |
return 0; |
| 28502 |
} |
| 28503 |
|
| 28504 |
_ACEOF |
| 28505 |
if ac_fn_c_try_link "$LINENO" |
| 28506 |
then : |
| 28507 |
mhd_cv_cc_cfl_supp__Widiomatic_parentheses="yes" |
| 28508 |
else case e in #( |
| 28509 |
e) # Compile and link failed with test flag added |
| 28510 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28511 |
if ac_fn_c_try_link "$LINENO" |
| 28512 |
then : |
| 28513 |
mhd_cv_cc_cfl_supp__Widiomatic_parentheses="no" |
| 28514 |
else case e in #( |
| 28515 |
e) # Compile and link failed with test flag removed as well |
| 28516 |
CFLAGS="${CFLAGS_ac} -Widiomatic-parentheses ${mhd_check_cc_flag_save_CFLAGS}" |
| 28517 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28518 |
if ac_fn_c_try_link "$LINENO" |
| 28519 |
then : |
| 28520 |
mhd_cv_cc_cfl_supp__Widiomatic_parentheses="yes" |
| 28521 |
else case e in #( |
| 28522 |
e) mhd_cv_cc_cfl_supp__Widiomatic_parentheses="no" ;; |
| 28523 |
esac |
| 28524 |
fi |
| 28525 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28526 |
conftest$ac_exeext |
| 28527 |
|
| 28528 |
;; |
| 28529 |
esac |
| 28530 |
fi |
| 28531 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28532 |
conftest$ac_exeext |
| 28533 |
|
| 28534 |
;; |
| 28535 |
esac |
| 28536 |
fi |
| 28537 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28538 |
conftest$ac_exeext |
| 28539 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28540 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28541 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28542 |
|
| 28543 |
;; |
| 28544 |
esac |
| 28545 |
fi |
| 28546 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Widiomatic_parentheses" >&5 |
| 28547 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Widiomatic_parentheses" >&6; } |
| 28548 |
if test "x$mhd_cv_cc_cfl_supp__Widiomatic_parentheses" = x"yes" |
| 28549 |
then : |
| 28550 |
if test -z "${CFLAGS_ac}" |
| 28551 |
then : |
| 28552 |
CFLAGS_ac="-Widiomatic-parentheses" |
| 28553 |
else case e in #( |
| 28554 |
e) CFLAGS_ac="${CFLAGS_ac} -Widiomatic-parentheses" ;; |
| 28555 |
esac |
| 28556 |
fi |
| 28557 |
|
| 28558 |
|
| 28559 |
fi |
| 28560 |
|
| 28561 |
|
| 28562 |
|
| 28563 |
|
| 28564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-noreturn flag" >&5 |
| 28565 |
printf %s "checking whether $CC supports -Wmissing-noreturn flag... " >&6; } |
| 28566 |
if test ${mhd_cv_cc_cfl_supp__Wmissing_noreturn+y} |
| 28567 |
then : |
| 28568 |
printf %s "(cached) " >&6 |
| 28569 |
else case e in #( |
| 28570 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28571 |
CFLAGS="${CFLAGS_ac} -Wmissing-noreturn ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28572 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28573 |
ac_c_werror_flag=yes |
| 28574 |
# Reuse the same source for all the checks here |
| 28575 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28576 |
/* end confdefs.h. */ |
| 28577 |
|
| 28578 |
int main(void) |
| 28579 |
{ |
| 28580 |
return 0; |
| 28581 |
} |
| 28582 |
|
| 28583 |
_ACEOF |
| 28584 |
if ac_fn_c_try_link "$LINENO" |
| 28585 |
then : |
| 28586 |
mhd_cv_cc_cfl_supp__Wmissing_noreturn="yes" |
| 28587 |
else case e in #( |
| 28588 |
e) # Compile and link failed with test flag added |
| 28589 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28590 |
if ac_fn_c_try_link "$LINENO" |
| 28591 |
then : |
| 28592 |
mhd_cv_cc_cfl_supp__Wmissing_noreturn="no" |
| 28593 |
else case e in #( |
| 28594 |
e) # Compile and link failed with test flag removed as well |
| 28595 |
CFLAGS="${CFLAGS_ac} -Wmissing-noreturn ${mhd_check_cc_flag_save_CFLAGS}" |
| 28596 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28597 |
if ac_fn_c_try_link "$LINENO" |
| 28598 |
then : |
| 28599 |
mhd_cv_cc_cfl_supp__Wmissing_noreturn="yes" |
| 28600 |
else case e in #( |
| 28601 |
e) mhd_cv_cc_cfl_supp__Wmissing_noreturn="no" ;; |
| 28602 |
esac |
| 28603 |
fi |
| 28604 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28605 |
conftest$ac_exeext |
| 28606 |
|
| 28607 |
;; |
| 28608 |
esac |
| 28609 |
fi |
| 28610 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28611 |
conftest$ac_exeext |
| 28612 |
|
| 28613 |
;; |
| 28614 |
esac |
| 28615 |
fi |
| 28616 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28617 |
conftest$ac_exeext |
| 28618 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28619 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28620 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28621 |
|
| 28622 |
;; |
| 28623 |
esac |
| 28624 |
fi |
| 28625 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wmissing_noreturn" >&5 |
| 28626 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wmissing_noreturn" >&6; } |
| 28627 |
if test "x$mhd_cv_cc_cfl_supp__Wmissing_noreturn" = x"yes" |
| 28628 |
then : |
| 28629 |
if test -z "${CFLAGS_ac}" |
| 28630 |
then : |
| 28631 |
CFLAGS_ac="-Wmissing-noreturn" |
| 28632 |
else case e in #( |
| 28633 |
e) CFLAGS_ac="${CFLAGS_ac} -Wmissing-noreturn" ;; |
| 28634 |
esac |
| 28635 |
fi |
| 28636 |
|
| 28637 |
|
| 28638 |
fi |
| 28639 |
|
| 28640 |
|
| 28641 |
|
| 28642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wmissing-variable-declarations flag" >&5 |
| 28643 |
printf %s "checking whether $CC supports -Wmissing-variable-declarations flag... " >&6; } |
| 28644 |
if test ${mhd_cv_cc_cfl_supp__Wmissing_variable_declarations+y} |
| 28645 |
then : |
| 28646 |
printf %s "(cached) " >&6 |
| 28647 |
else case e in #( |
| 28648 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28649 |
CFLAGS="${CFLAGS_ac} -Wmissing-variable-declarations ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28650 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28651 |
ac_c_werror_flag=yes |
| 28652 |
# Reuse the same source for all the checks here |
| 28653 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28654 |
/* end confdefs.h. */ |
| 28655 |
|
| 28656 |
int main(void) |
| 28657 |
{ |
| 28658 |
return 0; |
| 28659 |
} |
| 28660 |
|
| 28661 |
_ACEOF |
| 28662 |
if ac_fn_c_try_link "$LINENO" |
| 28663 |
then : |
| 28664 |
mhd_cv_cc_cfl_supp__Wmissing_variable_declarations="yes" |
| 28665 |
else case e in #( |
| 28666 |
e) # Compile and link failed with test flag added |
| 28667 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28668 |
if ac_fn_c_try_link "$LINENO" |
| 28669 |
then : |
| 28670 |
mhd_cv_cc_cfl_supp__Wmissing_variable_declarations="no" |
| 28671 |
else case e in #( |
| 28672 |
e) # Compile and link failed with test flag removed as well |
| 28673 |
CFLAGS="${CFLAGS_ac} -Wmissing-variable-declarations ${mhd_check_cc_flag_save_CFLAGS}" |
| 28674 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28675 |
if ac_fn_c_try_link "$LINENO" |
| 28676 |
then : |
| 28677 |
mhd_cv_cc_cfl_supp__Wmissing_variable_declarations="yes" |
| 28678 |
else case e in #( |
| 28679 |
e) mhd_cv_cc_cfl_supp__Wmissing_variable_declarations="no" ;; |
| 28680 |
esac |
| 28681 |
fi |
| 28682 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28683 |
conftest$ac_exeext |
| 28684 |
|
| 28685 |
;; |
| 28686 |
esac |
| 28687 |
fi |
| 28688 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28689 |
conftest$ac_exeext |
| 28690 |
|
| 28691 |
;; |
| 28692 |
esac |
| 28693 |
fi |
| 28694 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28695 |
conftest$ac_exeext |
| 28696 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28697 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28698 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28699 |
|
| 28700 |
;; |
| 28701 |
esac |
| 28702 |
fi |
| 28703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wmissing_variable_declarations" >&5 |
| 28704 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wmissing_variable_declarations" >&6; } |
| 28705 |
if test "x$mhd_cv_cc_cfl_supp__Wmissing_variable_declarations" = x"yes" |
| 28706 |
then : |
| 28707 |
if test -z "${CFLAGS_ac}" |
| 28708 |
then : |
| 28709 |
CFLAGS_ac="-Wmissing-variable-declarations" |
| 28710 |
else case e in #( |
| 28711 |
e) CFLAGS_ac="${CFLAGS_ac} -Wmissing-variable-declarations" ;; |
| 28712 |
esac |
| 28713 |
fi |
| 28714 |
|
| 28715 |
|
| 28716 |
fi |
| 28717 |
|
| 28718 |
|
| 28719 |
|
| 28720 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnested-anon-types flag" >&5 |
| 28721 |
printf %s "checking whether $CC supports -Wnested-anon-types flag... " >&6; } |
| 28722 |
if test ${mhd_cv_cc_cfl_supp__Wnested_anon_types+y} |
| 28723 |
then : |
| 28724 |
printf %s "(cached) " >&6 |
| 28725 |
else case e in #( |
| 28726 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28727 |
CFLAGS="${CFLAGS_ac} -Wnested-anon-types ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28728 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28729 |
ac_c_werror_flag=yes |
| 28730 |
# Reuse the same source for all the checks here |
| 28731 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28732 |
/* end confdefs.h. */ |
| 28733 |
|
| 28734 |
int main(void) |
| 28735 |
{ |
| 28736 |
return 0; |
| 28737 |
} |
| 28738 |
|
| 28739 |
_ACEOF |
| 28740 |
if ac_fn_c_try_link "$LINENO" |
| 28741 |
then : |
| 28742 |
mhd_cv_cc_cfl_supp__Wnested_anon_types="yes" |
| 28743 |
else case e in #( |
| 28744 |
e) # Compile and link failed with test flag added |
| 28745 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28746 |
if ac_fn_c_try_link "$LINENO" |
| 28747 |
then : |
| 28748 |
mhd_cv_cc_cfl_supp__Wnested_anon_types="no" |
| 28749 |
else case e in #( |
| 28750 |
e) # Compile and link failed with test flag removed as well |
| 28751 |
CFLAGS="${CFLAGS_ac} -Wnested-anon-types ${mhd_check_cc_flag_save_CFLAGS}" |
| 28752 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28753 |
if ac_fn_c_try_link "$LINENO" |
| 28754 |
then : |
| 28755 |
mhd_cv_cc_cfl_supp__Wnested_anon_types="yes" |
| 28756 |
else case e in #( |
| 28757 |
e) mhd_cv_cc_cfl_supp__Wnested_anon_types="no" ;; |
| 28758 |
esac |
| 28759 |
fi |
| 28760 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28761 |
conftest$ac_exeext |
| 28762 |
|
| 28763 |
;; |
| 28764 |
esac |
| 28765 |
fi |
| 28766 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28767 |
conftest$ac_exeext |
| 28768 |
|
| 28769 |
;; |
| 28770 |
esac |
| 28771 |
fi |
| 28772 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28773 |
conftest$ac_exeext |
| 28774 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28775 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28776 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28777 |
|
| 28778 |
;; |
| 28779 |
esac |
| 28780 |
fi |
| 28781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnested_anon_types" >&5 |
| 28782 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnested_anon_types" >&6; } |
| 28783 |
if test "x$mhd_cv_cc_cfl_supp__Wnested_anon_types" = x"yes" |
| 28784 |
then : |
| 28785 |
if test -z "${CFLAGS_ac}" |
| 28786 |
then : |
| 28787 |
CFLAGS_ac="-Wnested-anon-types" |
| 28788 |
else case e in #( |
| 28789 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnested-anon-types" ;; |
| 28790 |
esac |
| 28791 |
fi |
| 28792 |
|
| 28793 |
|
| 28794 |
fi |
| 28795 |
|
| 28796 |
|
| 28797 |
|
| 28798 |
|
| 28799 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wnewline-eof flag" >&5 |
| 28800 |
printf %s "checking whether $CC supports -Wnewline-eof flag... " >&6; } |
| 28801 |
if test ${mhd_cv_cc_cfl_supp__Wnewline_eof+y} |
| 28802 |
then : |
| 28803 |
printf %s "(cached) " >&6 |
| 28804 |
else case e in #( |
| 28805 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28806 |
CFLAGS="${CFLAGS_ac} -Wnewline-eof ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28807 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28808 |
ac_c_werror_flag=yes |
| 28809 |
# Reuse the same source for all the checks here |
| 28810 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28811 |
/* end confdefs.h. */ |
| 28812 |
|
| 28813 |
int main(void) |
| 28814 |
{ |
| 28815 |
return 0; |
| 28816 |
} |
| 28817 |
|
| 28818 |
_ACEOF |
| 28819 |
if ac_fn_c_try_link "$LINENO" |
| 28820 |
then : |
| 28821 |
mhd_cv_cc_cfl_supp__Wnewline_eof="yes" |
| 28822 |
else case e in #( |
| 28823 |
e) # Compile and link failed with test flag added |
| 28824 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28825 |
if ac_fn_c_try_link "$LINENO" |
| 28826 |
then : |
| 28827 |
mhd_cv_cc_cfl_supp__Wnewline_eof="no" |
| 28828 |
else case e in #( |
| 28829 |
e) # Compile and link failed with test flag removed as well |
| 28830 |
CFLAGS="${CFLAGS_ac} -Wnewline-eof ${mhd_check_cc_flag_save_CFLAGS}" |
| 28831 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28832 |
if ac_fn_c_try_link "$LINENO" |
| 28833 |
then : |
| 28834 |
mhd_cv_cc_cfl_supp__Wnewline_eof="yes" |
| 28835 |
else case e in #( |
| 28836 |
e) mhd_cv_cc_cfl_supp__Wnewline_eof="no" ;; |
| 28837 |
esac |
| 28838 |
fi |
| 28839 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28840 |
conftest$ac_exeext |
| 28841 |
|
| 28842 |
;; |
| 28843 |
esac |
| 28844 |
fi |
| 28845 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28846 |
conftest$ac_exeext |
| 28847 |
|
| 28848 |
;; |
| 28849 |
esac |
| 28850 |
fi |
| 28851 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28852 |
conftest$ac_exeext |
| 28853 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28854 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28855 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28856 |
|
| 28857 |
;; |
| 28858 |
esac |
| 28859 |
fi |
| 28860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wnewline_eof" >&5 |
| 28861 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wnewline_eof" >&6; } |
| 28862 |
if test "x$mhd_cv_cc_cfl_supp__Wnewline_eof" = x"yes" |
| 28863 |
then : |
| 28864 |
if test -z "${CFLAGS_ac}" |
| 28865 |
then : |
| 28866 |
CFLAGS_ac="-Wnewline-eof" |
| 28867 |
else case e in #( |
| 28868 |
e) CFLAGS_ac="${CFLAGS_ac} -Wnewline-eof" ;; |
| 28869 |
esac |
| 28870 |
fi |
| 28871 |
|
| 28872 |
|
| 28873 |
fi |
| 28874 |
|
| 28875 |
|
| 28876 |
|
| 28877 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wover-aligned flag" >&5 |
| 28878 |
printf %s "checking whether $CC supports -Wover-aligned flag... " >&6; } |
| 28879 |
if test ${mhd_cv_cc_cfl_supp__Wover_aligned+y} |
| 28880 |
then : |
| 28881 |
printf %s "(cached) " >&6 |
| 28882 |
else case e in #( |
| 28883 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28884 |
CFLAGS="${CFLAGS_ac} -Wover-aligned ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28885 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28886 |
ac_c_werror_flag=yes |
| 28887 |
# Reuse the same source for all the checks here |
| 28888 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28889 |
/* end confdefs.h. */ |
| 28890 |
|
| 28891 |
int main(void) |
| 28892 |
{ |
| 28893 |
return 0; |
| 28894 |
} |
| 28895 |
|
| 28896 |
_ACEOF |
| 28897 |
if ac_fn_c_try_link "$LINENO" |
| 28898 |
then : |
| 28899 |
mhd_cv_cc_cfl_supp__Wover_aligned="yes" |
| 28900 |
else case e in #( |
| 28901 |
e) # Compile and link failed with test flag added |
| 28902 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28903 |
if ac_fn_c_try_link "$LINENO" |
| 28904 |
then : |
| 28905 |
mhd_cv_cc_cfl_supp__Wover_aligned="no" |
| 28906 |
else case e in #( |
| 28907 |
e) # Compile and link failed with test flag removed as well |
| 28908 |
CFLAGS="${CFLAGS_ac} -Wover-aligned ${mhd_check_cc_flag_save_CFLAGS}" |
| 28909 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28910 |
if ac_fn_c_try_link "$LINENO" |
| 28911 |
then : |
| 28912 |
mhd_cv_cc_cfl_supp__Wover_aligned="yes" |
| 28913 |
else case e in #( |
| 28914 |
e) mhd_cv_cc_cfl_supp__Wover_aligned="no" ;; |
| 28915 |
esac |
| 28916 |
fi |
| 28917 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28918 |
conftest$ac_exeext |
| 28919 |
|
| 28920 |
;; |
| 28921 |
esac |
| 28922 |
fi |
| 28923 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28924 |
conftest$ac_exeext |
| 28925 |
|
| 28926 |
;; |
| 28927 |
esac |
| 28928 |
fi |
| 28929 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28930 |
conftest$ac_exeext |
| 28931 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28932 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 28933 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 28934 |
|
| 28935 |
;; |
| 28936 |
esac |
| 28937 |
fi |
| 28938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wover_aligned" >&5 |
| 28939 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wover_aligned" >&6; } |
| 28940 |
if test "x$mhd_cv_cc_cfl_supp__Wover_aligned" = x"yes" |
| 28941 |
then : |
| 28942 |
if test -z "${CFLAGS_ac}" |
| 28943 |
then : |
| 28944 |
CFLAGS_ac="-Wover-aligned" |
| 28945 |
else case e in #( |
| 28946 |
e) CFLAGS_ac="${CFLAGS_ac} -Wover-aligned" ;; |
| 28947 |
esac |
| 28948 |
fi |
| 28949 |
|
| 28950 |
|
| 28951 |
fi |
| 28952 |
|
| 28953 |
|
| 28954 |
|
| 28955 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wredundant-parens flag" >&5 |
| 28956 |
printf %s "checking whether $CC supports -Wredundant-parens flag... " >&6; } |
| 28957 |
if test ${mhd_cv_cc_cfl_supp__Wredundant_parens+y} |
| 28958 |
then : |
| 28959 |
printf %s "(cached) " >&6 |
| 28960 |
else case e in #( |
| 28961 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 28962 |
CFLAGS="${CFLAGS_ac} -Wredundant-parens ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28963 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 28964 |
ac_c_werror_flag=yes |
| 28965 |
# Reuse the same source for all the checks here |
| 28966 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28967 |
/* end confdefs.h. */ |
| 28968 |
|
| 28969 |
int main(void) |
| 28970 |
{ |
| 28971 |
return 0; |
| 28972 |
} |
| 28973 |
|
| 28974 |
_ACEOF |
| 28975 |
if ac_fn_c_try_link "$LINENO" |
| 28976 |
then : |
| 28977 |
mhd_cv_cc_cfl_supp__Wredundant_parens="yes" |
| 28978 |
else case e in #( |
| 28979 |
e) # Compile and link failed with test flag added |
| 28980 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 28981 |
if ac_fn_c_try_link "$LINENO" |
| 28982 |
then : |
| 28983 |
mhd_cv_cc_cfl_supp__Wredundant_parens="no" |
| 28984 |
else case e in #( |
| 28985 |
e) # Compile and link failed with test flag removed as well |
| 28986 |
CFLAGS="${CFLAGS_ac} -Wredundant-parens ${mhd_check_cc_flag_save_CFLAGS}" |
| 28987 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 28988 |
if ac_fn_c_try_link "$LINENO" |
| 28989 |
then : |
| 28990 |
mhd_cv_cc_cfl_supp__Wredundant_parens="yes" |
| 28991 |
else case e in #( |
| 28992 |
e) mhd_cv_cc_cfl_supp__Wredundant_parens="no" ;; |
| 28993 |
esac |
| 28994 |
fi |
| 28995 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28996 |
conftest$ac_exeext |
| 28997 |
|
| 28998 |
;; |
| 28999 |
esac |
| 29000 |
fi |
| 29001 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29002 |
conftest$ac_exeext |
| 29003 |
|
| 29004 |
;; |
| 29005 |
esac |
| 29006 |
fi |
| 29007 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29008 |
conftest$ac_exeext |
| 29009 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29010 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29011 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29012 |
|
| 29013 |
;; |
| 29014 |
esac |
| 29015 |
fi |
| 29016 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wredundant_parens" >&5 |
| 29017 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wredundant_parens" >&6; } |
| 29018 |
if test "x$mhd_cv_cc_cfl_supp__Wredundant_parens" = x"yes" |
| 29019 |
then : |
| 29020 |
if test -z "${CFLAGS_ac}" |
| 29021 |
then : |
| 29022 |
CFLAGS_ac="-Wredundant-parens" |
| 29023 |
else case e in #( |
| 29024 |
e) CFLAGS_ac="${CFLAGS_ac} -Wredundant-parens" ;; |
| 29025 |
esac |
| 29026 |
fi |
| 29027 |
|
| 29028 |
|
| 29029 |
fi |
| 29030 |
|
| 29031 |
|
| 29032 |
|
| 29033 |
|
| 29034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wshift-sign-overflow flag" >&5 |
| 29035 |
printf %s "checking whether $CC supports -Wshift-sign-overflow flag... " >&6; } |
| 29036 |
if test ${mhd_cv_cc_cfl_supp__Wshift_sign_overflow+y} |
| 29037 |
then : |
| 29038 |
printf %s "(cached) " >&6 |
| 29039 |
else case e in #( |
| 29040 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29041 |
CFLAGS="${CFLAGS_ac} -Wshift-sign-overflow ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29042 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29043 |
ac_c_werror_flag=yes |
| 29044 |
# Reuse the same source for all the checks here |
| 29045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29046 |
/* end confdefs.h. */ |
| 29047 |
|
| 29048 |
int main(void) |
| 29049 |
{ |
| 29050 |
return 0; |
| 29051 |
} |
| 29052 |
|
| 29053 |
_ACEOF |
| 29054 |
if ac_fn_c_try_link "$LINENO" |
| 29055 |
then : |
| 29056 |
mhd_cv_cc_cfl_supp__Wshift_sign_overflow="yes" |
| 29057 |
else case e in #( |
| 29058 |
e) # Compile and link failed with test flag added |
| 29059 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29060 |
if ac_fn_c_try_link "$LINENO" |
| 29061 |
then : |
| 29062 |
mhd_cv_cc_cfl_supp__Wshift_sign_overflow="no" |
| 29063 |
else case e in #( |
| 29064 |
e) # Compile and link failed with test flag removed as well |
| 29065 |
CFLAGS="${CFLAGS_ac} -Wshift-sign-overflow ${mhd_check_cc_flag_save_CFLAGS}" |
| 29066 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29067 |
if ac_fn_c_try_link "$LINENO" |
| 29068 |
then : |
| 29069 |
mhd_cv_cc_cfl_supp__Wshift_sign_overflow="yes" |
| 29070 |
else case e in #( |
| 29071 |
e) mhd_cv_cc_cfl_supp__Wshift_sign_overflow="no" ;; |
| 29072 |
esac |
| 29073 |
fi |
| 29074 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29075 |
conftest$ac_exeext |
| 29076 |
|
| 29077 |
;; |
| 29078 |
esac |
| 29079 |
fi |
| 29080 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29081 |
conftest$ac_exeext |
| 29082 |
|
| 29083 |
;; |
| 29084 |
esac |
| 29085 |
fi |
| 29086 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29087 |
conftest$ac_exeext |
| 29088 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29089 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29090 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29091 |
|
| 29092 |
;; |
| 29093 |
esac |
| 29094 |
fi |
| 29095 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wshift_sign_overflow" >&5 |
| 29096 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wshift_sign_overflow" >&6; } |
| 29097 |
if test "x$mhd_cv_cc_cfl_supp__Wshift_sign_overflow" = x"yes" |
| 29098 |
then : |
| 29099 |
if test -z "${CFLAGS_ac}" |
| 29100 |
then : |
| 29101 |
CFLAGS_ac="-Wshift-sign-overflow" |
| 29102 |
else case e in #( |
| 29103 |
e) CFLAGS_ac="${CFLAGS_ac} -Wshift-sign-overflow" ;; |
| 29104 |
esac |
| 29105 |
fi |
| 29106 |
|
| 29107 |
|
| 29108 |
fi |
| 29109 |
|
| 29110 |
|
| 29111 |
|
| 29112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wtautological-compare flag" >&5 |
| 29113 |
printf %s "checking whether $CC supports -Wtautological-compare flag... " >&6; } |
| 29114 |
if test ${mhd_cv_cc_cfl_supp__Wtautological_compare+y} |
| 29115 |
then : |
| 29116 |
printf %s "(cached) " >&6 |
| 29117 |
else case e in #( |
| 29118 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29119 |
CFLAGS="${CFLAGS_ac} -Wtautological-compare ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29120 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29121 |
ac_c_werror_flag=yes |
| 29122 |
# Reuse the same source for all the checks here |
| 29123 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29124 |
/* end confdefs.h. */ |
| 29125 |
|
| 29126 |
int main(void) |
| 29127 |
{ |
| 29128 |
return 0; |
| 29129 |
} |
| 29130 |
|
| 29131 |
_ACEOF |
| 29132 |
if ac_fn_c_try_link "$LINENO" |
| 29133 |
then : |
| 29134 |
mhd_cv_cc_cfl_supp__Wtautological_compare="yes" |
| 29135 |
else case e in #( |
| 29136 |
e) # Compile and link failed with test flag added |
| 29137 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29138 |
if ac_fn_c_try_link "$LINENO" |
| 29139 |
then : |
| 29140 |
mhd_cv_cc_cfl_supp__Wtautological_compare="no" |
| 29141 |
else case e in #( |
| 29142 |
e) # Compile and link failed with test flag removed as well |
| 29143 |
CFLAGS="${CFLAGS_ac} -Wtautological-compare ${mhd_check_cc_flag_save_CFLAGS}" |
| 29144 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29145 |
if ac_fn_c_try_link "$LINENO" |
| 29146 |
then : |
| 29147 |
mhd_cv_cc_cfl_supp__Wtautological_compare="yes" |
| 29148 |
else case e in #( |
| 29149 |
e) mhd_cv_cc_cfl_supp__Wtautological_compare="no" ;; |
| 29150 |
esac |
| 29151 |
fi |
| 29152 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29153 |
conftest$ac_exeext |
| 29154 |
|
| 29155 |
;; |
| 29156 |
esac |
| 29157 |
fi |
| 29158 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29159 |
conftest$ac_exeext |
| 29160 |
|
| 29161 |
;; |
| 29162 |
esac |
| 29163 |
fi |
| 29164 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29165 |
conftest$ac_exeext |
| 29166 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29167 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29168 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29169 |
|
| 29170 |
;; |
| 29171 |
esac |
| 29172 |
fi |
| 29173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wtautological_compare" >&5 |
| 29174 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wtautological_compare" >&6; } |
| 29175 |
if test "x$mhd_cv_cc_cfl_supp__Wtautological_compare" = x"yes" |
| 29176 |
then : |
| 29177 |
if test -z "${CFLAGS_ac}" |
| 29178 |
then : |
| 29179 |
CFLAGS_ac="-Wtautological-compare" |
| 29180 |
else case e in #( |
| 29181 |
e) CFLAGS_ac="${CFLAGS_ac} -Wtautological-compare" ;; |
| 29182 |
esac |
| 29183 |
fi |
| 29184 |
|
| 29185 |
|
| 29186 |
fi |
| 29187 |
|
| 29188 |
|
| 29189 |
|
| 29190 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunaligned-access flag" >&5 |
| 29191 |
printf %s "checking whether $CC supports -Wunaligned-access flag... " >&6; } |
| 29192 |
if test ${mhd_cv_cc_cfl_supp__Wunaligned_access+y} |
| 29193 |
then : |
| 29194 |
printf %s "(cached) " >&6 |
| 29195 |
else case e in #( |
| 29196 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29197 |
CFLAGS="${CFLAGS_ac} -Wunaligned-access ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29198 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29199 |
ac_c_werror_flag=yes |
| 29200 |
# Reuse the same source for all the checks here |
| 29201 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29202 |
/* end confdefs.h. */ |
| 29203 |
|
| 29204 |
int main(void) |
| 29205 |
{ |
| 29206 |
return 0; |
| 29207 |
} |
| 29208 |
|
| 29209 |
_ACEOF |
| 29210 |
if ac_fn_c_try_link "$LINENO" |
| 29211 |
then : |
| 29212 |
mhd_cv_cc_cfl_supp__Wunaligned_access="yes" |
| 29213 |
else case e in #( |
| 29214 |
e) # Compile and link failed with test flag added |
| 29215 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29216 |
if ac_fn_c_try_link "$LINENO" |
| 29217 |
then : |
| 29218 |
mhd_cv_cc_cfl_supp__Wunaligned_access="no" |
| 29219 |
else case e in #( |
| 29220 |
e) # Compile and link failed with test flag removed as well |
| 29221 |
CFLAGS="${CFLAGS_ac} -Wunaligned-access ${mhd_check_cc_flag_save_CFLAGS}" |
| 29222 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29223 |
if ac_fn_c_try_link "$LINENO" |
| 29224 |
then : |
| 29225 |
mhd_cv_cc_cfl_supp__Wunaligned_access="yes" |
| 29226 |
else case e in #( |
| 29227 |
e) mhd_cv_cc_cfl_supp__Wunaligned_access="no" ;; |
| 29228 |
esac |
| 29229 |
fi |
| 29230 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29231 |
conftest$ac_exeext |
| 29232 |
|
| 29233 |
;; |
| 29234 |
esac |
| 29235 |
fi |
| 29236 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29237 |
conftest$ac_exeext |
| 29238 |
|
| 29239 |
;; |
| 29240 |
esac |
| 29241 |
fi |
| 29242 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29243 |
conftest$ac_exeext |
| 29244 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29245 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29246 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29247 |
|
| 29248 |
;; |
| 29249 |
esac |
| 29250 |
fi |
| 29251 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wunaligned_access" >&5 |
| 29252 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wunaligned_access" >&6; } |
| 29253 |
if test "x$mhd_cv_cc_cfl_supp__Wunaligned_access" = x"yes" |
| 29254 |
then : |
| 29255 |
if test -z "${CFLAGS_ac}" |
| 29256 |
then : |
| 29257 |
CFLAGS_ac="-Wunaligned-access" |
| 29258 |
else case e in #( |
| 29259 |
e) CFLAGS_ac="${CFLAGS_ac} -Wunaligned-access" ;; |
| 29260 |
esac |
| 29261 |
fi |
| 29262 |
|
| 29263 |
|
| 29264 |
fi |
| 29265 |
|
| 29266 |
|
| 29267 |
|
| 29268 |
|
| 29269 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wunused flag" >&5 |
| 29270 |
printf %s "checking whether $CC supports -Wunused flag... " >&6; } |
| 29271 |
if test ${mhd_cv_cc_cfl_supp__Wunused+y} |
| 29272 |
then : |
| 29273 |
printf %s "(cached) " >&6 |
| 29274 |
else case e in #( |
| 29275 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29276 |
CFLAGS="${CFLAGS_ac} -Wunused ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29277 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29278 |
ac_c_werror_flag=yes |
| 29279 |
# Reuse the same source for all the checks here |
| 29280 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29281 |
/* end confdefs.h. */ |
| 29282 |
|
| 29283 |
int main(void) |
| 29284 |
{ |
| 29285 |
return 0; |
| 29286 |
} |
| 29287 |
|
| 29288 |
_ACEOF |
| 29289 |
if ac_fn_c_try_link "$LINENO" |
| 29290 |
then : |
| 29291 |
mhd_cv_cc_cfl_supp__Wunused="yes" |
| 29292 |
else case e in #( |
| 29293 |
e) # Compile and link failed with test flag added |
| 29294 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29295 |
if ac_fn_c_try_link "$LINENO" |
| 29296 |
then : |
| 29297 |
mhd_cv_cc_cfl_supp__Wunused="no" |
| 29298 |
else case e in #( |
| 29299 |
e) # Compile and link failed with test flag removed as well |
| 29300 |
CFLAGS="${CFLAGS_ac} -Wunused ${mhd_check_cc_flag_save_CFLAGS}" |
| 29301 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29302 |
if ac_fn_c_try_link "$LINENO" |
| 29303 |
then : |
| 29304 |
mhd_cv_cc_cfl_supp__Wunused="yes" |
| 29305 |
else case e in #( |
| 29306 |
e) mhd_cv_cc_cfl_supp__Wunused="no" ;; |
| 29307 |
esac |
| 29308 |
fi |
| 29309 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29310 |
conftest$ac_exeext |
| 29311 |
|
| 29312 |
;; |
| 29313 |
esac |
| 29314 |
fi |
| 29315 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29316 |
conftest$ac_exeext |
| 29317 |
|
| 29318 |
;; |
| 29319 |
esac |
| 29320 |
fi |
| 29321 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29322 |
conftest$ac_exeext |
| 29323 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29324 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29325 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29326 |
|
| 29327 |
;; |
| 29328 |
esac |
| 29329 |
fi |
| 29330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wunused" >&5 |
| 29331 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wunused" >&6; } |
| 29332 |
if test "x$mhd_cv_cc_cfl_supp__Wunused" = x"yes" |
| 29333 |
then : |
| 29334 |
if test -z "${CFLAGS_ac}" |
| 29335 |
then : |
| 29336 |
CFLAGS_ac="-Wunused" |
| 29337 |
else case e in #( |
| 29338 |
e) CFLAGS_ac="${CFLAGS_ac} -Wunused" ;; |
| 29339 |
esac |
| 29340 |
fi |
| 29341 |
|
| 29342 |
|
| 29343 |
fi |
| 29344 |
|
| 29345 |
|
| 29346 |
|
| 29347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wzero-as-null-pointer-constant flag" >&5 |
| 29348 |
printf %s "checking whether $CC supports -Wzero-as-null-pointer-constant flag... " >&6; } |
| 29349 |
if test ${mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant+y} |
| 29350 |
then : |
| 29351 |
printf %s "(cached) " >&6 |
| 29352 |
else case e in #( |
| 29353 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29354 |
CFLAGS="${CFLAGS_ac} -Wzero-as-null-pointer-constant ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29355 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29356 |
ac_c_werror_flag=yes |
| 29357 |
# Reuse the same source for all the checks here |
| 29358 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29359 |
/* end confdefs.h. */ |
| 29360 |
|
| 29361 |
int main(void) |
| 29362 |
{ |
| 29363 |
return 0; |
| 29364 |
} |
| 29365 |
|
| 29366 |
_ACEOF |
| 29367 |
if ac_fn_c_try_link "$LINENO" |
| 29368 |
then : |
| 29369 |
mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant="yes" |
| 29370 |
else case e in #( |
| 29371 |
e) # Compile and link failed with test flag added |
| 29372 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29373 |
if ac_fn_c_try_link "$LINENO" |
| 29374 |
then : |
| 29375 |
mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant="no" |
| 29376 |
else case e in #( |
| 29377 |
e) # Compile and link failed with test flag removed as well |
| 29378 |
CFLAGS="${CFLAGS_ac} -Wzero-as-null-pointer-constant ${mhd_check_cc_flag_save_CFLAGS}" |
| 29379 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29380 |
if ac_fn_c_try_link "$LINENO" |
| 29381 |
then : |
| 29382 |
mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant="yes" |
| 29383 |
else case e in #( |
| 29384 |
e) mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant="no" ;; |
| 29385 |
esac |
| 29386 |
fi |
| 29387 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29388 |
conftest$ac_exeext |
| 29389 |
|
| 29390 |
;; |
| 29391 |
esac |
| 29392 |
fi |
| 29393 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29394 |
conftest$ac_exeext |
| 29395 |
|
| 29396 |
;; |
| 29397 |
esac |
| 29398 |
fi |
| 29399 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29400 |
conftest$ac_exeext |
| 29401 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29402 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29403 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29404 |
|
| 29405 |
;; |
| 29406 |
esac |
| 29407 |
fi |
| 29408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant" >&5 |
| 29409 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant" >&6; } |
| 29410 |
if test "x$mhd_cv_cc_cfl_supp__Wzero_as_null_pointer_constant" = x"yes" |
| 29411 |
then : |
| 29412 |
if test -z "${CFLAGS_ac}" |
| 29413 |
then : |
| 29414 |
CFLAGS_ac="-Wzero-as-null-pointer-constant" |
| 29415 |
else case e in #( |
| 29416 |
e) CFLAGS_ac="${CFLAGS_ac} -Wzero-as-null-pointer-constant" ;; |
| 29417 |
esac |
| 29418 |
fi |
| 29419 |
|
| 29420 |
|
| 29421 |
fi |
| 29422 |
|
| 29423 |
|
| 29424 |
|
| 29425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wzero-length-array flag" >&5 |
| 29426 |
printf %s "checking whether $CC supports -Wzero-length-array flag... " >&6; } |
| 29427 |
if test ${mhd_cv_cc_cfl_supp__Wzero_length_array+y} |
| 29428 |
then : |
| 29429 |
printf %s "(cached) " >&6 |
| 29430 |
else case e in #( |
| 29431 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29432 |
CFLAGS="${CFLAGS_ac} -Wzero-length-array ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29433 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29434 |
ac_c_werror_flag=yes |
| 29435 |
# Reuse the same source for all the checks here |
| 29436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29437 |
/* end confdefs.h. */ |
| 29438 |
|
| 29439 |
int main(void) |
| 29440 |
{ |
| 29441 |
return 0; |
| 29442 |
} |
| 29443 |
|
| 29444 |
_ACEOF |
| 29445 |
if ac_fn_c_try_link "$LINENO" |
| 29446 |
then : |
| 29447 |
mhd_cv_cc_cfl_supp__Wzero_length_array="yes" |
| 29448 |
else case e in #( |
| 29449 |
e) # Compile and link failed with test flag added |
| 29450 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29451 |
if ac_fn_c_try_link "$LINENO" |
| 29452 |
then : |
| 29453 |
mhd_cv_cc_cfl_supp__Wzero_length_array="no" |
| 29454 |
else case e in #( |
| 29455 |
e) # Compile and link failed with test flag removed as well |
| 29456 |
CFLAGS="${CFLAGS_ac} -Wzero-length-array ${mhd_check_cc_flag_save_CFLAGS}" |
| 29457 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29458 |
if ac_fn_c_try_link "$LINENO" |
| 29459 |
then : |
| 29460 |
mhd_cv_cc_cfl_supp__Wzero_length_array="yes" |
| 29461 |
else case e in #( |
| 29462 |
e) mhd_cv_cc_cfl_supp__Wzero_length_array="no" ;; |
| 29463 |
esac |
| 29464 |
fi |
| 29465 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29466 |
conftest$ac_exeext |
| 29467 |
|
| 29468 |
;; |
| 29469 |
esac |
| 29470 |
fi |
| 29471 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29472 |
conftest$ac_exeext |
| 29473 |
|
| 29474 |
;; |
| 29475 |
esac |
| 29476 |
fi |
| 29477 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29478 |
conftest$ac_exeext |
| 29479 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29480 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29481 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29482 |
|
| 29483 |
;; |
| 29484 |
esac |
| 29485 |
fi |
| 29486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wzero_length_array" >&5 |
| 29487 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wzero_length_array" >&6; } |
| 29488 |
if test "x$mhd_cv_cc_cfl_supp__Wzero_length_array" = x"yes" |
| 29489 |
then : |
| 29490 |
if test -z "${CFLAGS_ac}" |
| 29491 |
then : |
| 29492 |
CFLAGS_ac="-Wzero-length-array" |
| 29493 |
else case e in #( |
| 29494 |
e) CFLAGS_ac="${CFLAGS_ac} -Wzero-length-array" ;; |
| 29495 |
esac |
| 29496 |
fi |
| 29497 |
|
| 29498 |
|
| 29499 |
fi |
| 29500 |
|
| 29501 |
|
| 29502 |
|
| 29503 |
|
| 29504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wused-but-marked-unused flag" >&5 |
| 29505 |
printf %s "checking whether $CC supports -Wused-but-marked-unused flag... " >&6; } |
| 29506 |
if test ${mhd_cv_cc_cfl_supp__Wused_but_marked_unused+y} |
| 29507 |
then : |
| 29508 |
printf %s "(cached) " >&6 |
| 29509 |
else case e in #( |
| 29510 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29511 |
CFLAGS="${CFLAGS_ac} -Wused-but-marked-unused ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29512 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29513 |
ac_c_werror_flag=yes |
| 29514 |
# Reuse the same source for all the checks here |
| 29515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29516 |
/* end confdefs.h. */ |
| 29517 |
|
| 29518 |
int main(void) |
| 29519 |
{ |
| 29520 |
return 0; |
| 29521 |
} |
| 29522 |
|
| 29523 |
_ACEOF |
| 29524 |
if ac_fn_c_try_link "$LINENO" |
| 29525 |
then : |
| 29526 |
mhd_cv_cc_cfl_supp__Wused_but_marked_unused="yes" |
| 29527 |
else case e in #( |
| 29528 |
e) # Compile and link failed with test flag added |
| 29529 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29530 |
if ac_fn_c_try_link "$LINENO" |
| 29531 |
then : |
| 29532 |
mhd_cv_cc_cfl_supp__Wused_but_marked_unused="no" |
| 29533 |
else case e in #( |
| 29534 |
e) # Compile and link failed with test flag removed as well |
| 29535 |
CFLAGS="${CFLAGS_ac} -Wused-but-marked-unused ${mhd_check_cc_flag_save_CFLAGS}" |
| 29536 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29537 |
if ac_fn_c_try_link "$LINENO" |
| 29538 |
then : |
| 29539 |
mhd_cv_cc_cfl_supp__Wused_but_marked_unused="yes" |
| 29540 |
else case e in #( |
| 29541 |
e) mhd_cv_cc_cfl_supp__Wused_but_marked_unused="no" ;; |
| 29542 |
esac |
| 29543 |
fi |
| 29544 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29545 |
conftest$ac_exeext |
| 29546 |
|
| 29547 |
;; |
| 29548 |
esac |
| 29549 |
fi |
| 29550 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29551 |
conftest$ac_exeext |
| 29552 |
|
| 29553 |
;; |
| 29554 |
esac |
| 29555 |
fi |
| 29556 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29557 |
conftest$ac_exeext |
| 29558 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29559 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29560 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29561 |
|
| 29562 |
;; |
| 29563 |
esac |
| 29564 |
fi |
| 29565 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wused_but_marked_unused" >&5 |
| 29566 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wused_but_marked_unused" >&6; } |
| 29567 |
if test "x$mhd_cv_cc_cfl_supp__Wused_but_marked_unused" = x"yes" |
| 29568 |
then : |
| 29569 |
|
| 29570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC -Wused-but-marked-unused works with system headers" >&5 |
| 29571 |
printf %s "checking whether $CC -Wused-but-marked-unused works with system headers... " >&6; } |
| 29572 |
if test ${mhd_cv_wused_but_marked_unused_sys_header+y} |
| 29573 |
then : |
| 29574 |
printf %s "(cached) " >&6 |
| 29575 |
else case e in #( |
| 29576 |
e) |
| 29577 |
SAVE_ac_c_werror_flag="$ac_c_werror_flag" |
| 29578 |
ac_c_werror_flag="yes" |
| 29579 |
CFLAGS="${CFLAGS_ac} -Wused-but-marked-unused ${user_CFLAGS}" |
| 29580 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29581 |
/* end confdefs.h. */ |
| 29582 |
|
| 29583 |
|
| 29584 |
#include <stdio.h> |
| 29585 |
|
| 29586 |
int main(void) |
| 29587 |
{ |
| 29588 |
char buf[16]; |
| 29589 |
return (int) snprintf(buf, 16, "test"); |
| 29590 |
} |
| 29591 |
|
| 29592 |
|
| 29593 |
|
| 29594 |
_ACEOF |
| 29595 |
if ac_fn_c_try_compile "$LINENO" |
| 29596 |
then : |
| 29597 |
mhd_cv_wused_but_marked_unused_sys_header="yes" |
| 29598 |
else case e in #( |
| 29599 |
e) mhd_cv_wused_but_marked_unused_sys_header="no" |
| 29600 |
;; |
| 29601 |
esac |
| 29602 |
fi |
| 29603 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29604 |
ac_c_werror_flag="$SAVE_ac_c_werror_flag" |
| 29605 |
|
| 29606 |
;; |
| 29607 |
esac |
| 29608 |
fi |
| 29609 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_wused_but_marked_unused_sys_header" >&5 |
| 29610 |
printf "%s\n" "$mhd_cv_wused_but_marked_unused_sys_header" >&6; } |
| 29611 |
if test "x$mhd_cv_wused_but_marked_unused_sys_header" = x"yes" |
| 29612 |
then : |
| 29613 |
if test -z "${CFLAGS_ac}" |
| 29614 |
then : |
| 29615 |
CFLAGS_ac="-Wused-but-marked-unused" |
| 29616 |
else case e in #( |
| 29617 |
e) CFLAGS_ac="${CFLAGS_ac} -Wused-but-marked-unused" ;; |
| 29618 |
esac |
| 29619 |
fi |
| 29620 |
|
| 29621 |
|
| 29622 |
fi |
| 29623 |
|
| 29624 |
|
| 29625 |
fi |
| 29626 |
|
| 29627 |
# |
| 29628 |
# Removed flags: |
| 29629 |
# |
| 29630 |
# -Wdisabled-macro-expansion - warns about macros from system headers |
| 29631 |
|
| 29632 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 29633 |
LDFLAGS="${user_LDFLAGS}" |
| 29634 |
|
| 29635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--enable-long-section-names flag" >&5 |
| 29636 |
printf %s "checking whether $CC supports -Wl,--enable-long-section-names flag... " >&6; } |
| 29637 |
if test ${mhd_cv_cc_lfl_supp__Wl___enable_long_section_names+y} |
| 29638 |
then : |
| 29639 |
printf %s "(cached) " >&6 |
| 29640 |
else case e in #( |
| 29641 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 29642 |
LDFLAGS="${LDFLAGS_ac} -Wl,--enable-long-section-names ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29643 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29644 |
ac_c_werror_flag=yes |
| 29645 |
# Reuse the same source for all the checks here |
| 29646 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29647 |
/* end confdefs.h. */ |
| 29648 |
|
| 29649 |
int main(void) |
| 29650 |
{ |
| 29651 |
return 0; |
| 29652 |
} |
| 29653 |
|
| 29654 |
_ACEOF |
| 29655 |
if ac_fn_c_try_link "$LINENO" |
| 29656 |
then : |
| 29657 |
mhd_cv_cc_lfl_supp__Wl___enable_long_section_names="yes" |
| 29658 |
else case e in #( |
| 29659 |
e) # Compile and link failed with test flag added |
| 29660 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29661 |
if ac_fn_c_try_link "$LINENO" |
| 29662 |
then : |
| 29663 |
mhd_cv_cc_lfl_supp__Wl___enable_long_section_names="no" |
| 29664 |
else case e in #( |
| 29665 |
e) # Compile and link failed with test flag removed as well |
| 29666 |
LDFLAGS="${LDFLAGS_ac} -Wl,--enable-long-section-names ${mhd_check_cc_flag_save_LDFLAGS}" |
| 29667 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29668 |
if ac_fn_c_try_link "$LINENO" |
| 29669 |
then : |
| 29670 |
mhd_cv_cc_lfl_supp__Wl___enable_long_section_names="yes" |
| 29671 |
else case e in #( |
| 29672 |
e) mhd_cv_cc_lfl_supp__Wl___enable_long_section_names="no" ;; |
| 29673 |
esac |
| 29674 |
fi |
| 29675 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29676 |
conftest$ac_exeext |
| 29677 |
|
| 29678 |
;; |
| 29679 |
esac |
| 29680 |
fi |
| 29681 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29682 |
conftest$ac_exeext |
| 29683 |
|
| 29684 |
;; |
| 29685 |
esac |
| 29686 |
fi |
| 29687 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29688 |
conftest$ac_exeext |
| 29689 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29690 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 29691 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 29692 |
|
| 29693 |
;; |
| 29694 |
esac |
| 29695 |
fi |
| 29696 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___enable_long_section_names" >&5 |
| 29697 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___enable_long_section_names" >&6; } |
| 29698 |
if test "x$mhd_cv_cc_lfl_supp__Wl___enable_long_section_names" = x"yes" |
| 29699 |
then : |
| 29700 |
if test -z "${LDFLAGS_ac}" |
| 29701 |
then : |
| 29702 |
LDFLAGS_ac="-Wl,--enable-long-section-names" |
| 29703 |
else case e in #( |
| 29704 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--enable-long-section-names" ;; |
| 29705 |
esac |
| 29706 |
fi |
| 29707 |
|
| 29708 |
|
| 29709 |
fi |
| 29710 |
|
| 29711 |
|
| 29712 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 29713 |
|
| 29714 |
;; #( |
| 29715 |
*) : |
| 29716 |
;; |
| 29717 |
esac |
| 29718 |
case ${enable_build_type} in #( |
| 29719 |
release|release-*) : |
| 29720 |
# All release types |
| 29721 |
CFLAGS="${user_CFLAGS}" |
| 29722 |
if test "x$enable_build_type" = x"release-compact" |
| 29723 |
then : |
| 29724 |
|
| 29725 |
else case e in #( |
| 29726 |
e) # All non-compact release types |
| 29727 |
|
| 29728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fsched-pressure flag" >&5 |
| 29729 |
printf %s "checking whether $CC supports -fsched-pressure flag... " >&6; } |
| 29730 |
if test ${mhd_cv_cc_cfl_supp__fsched_pressure+y} |
| 29731 |
then : |
| 29732 |
printf %s "(cached) " >&6 |
| 29733 |
else case e in #( |
| 29734 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29735 |
CFLAGS="${CFLAGS_ac} -fsched-pressure ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29736 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29737 |
ac_c_werror_flag=yes |
| 29738 |
# Reuse the same source for all the checks here |
| 29739 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29740 |
/* end confdefs.h. */ |
| 29741 |
|
| 29742 |
int main(void) |
| 29743 |
{ |
| 29744 |
return 0; |
| 29745 |
} |
| 29746 |
|
| 29747 |
_ACEOF |
| 29748 |
if ac_fn_c_try_link "$LINENO" |
| 29749 |
then : |
| 29750 |
mhd_cv_cc_cfl_supp__fsched_pressure="yes" |
| 29751 |
else case e in #( |
| 29752 |
e) # Compile and link failed with test flag added |
| 29753 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29754 |
if ac_fn_c_try_link "$LINENO" |
| 29755 |
then : |
| 29756 |
mhd_cv_cc_cfl_supp__fsched_pressure="no" |
| 29757 |
else case e in #( |
| 29758 |
e) # Compile and link failed with test flag removed as well |
| 29759 |
CFLAGS="${CFLAGS_ac} -fsched-pressure ${mhd_check_cc_flag_save_CFLAGS}" |
| 29760 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29761 |
if ac_fn_c_try_link "$LINENO" |
| 29762 |
then : |
| 29763 |
mhd_cv_cc_cfl_supp__fsched_pressure="yes" |
| 29764 |
else case e in #( |
| 29765 |
e) mhd_cv_cc_cfl_supp__fsched_pressure="no" ;; |
| 29766 |
esac |
| 29767 |
fi |
| 29768 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29769 |
conftest$ac_exeext |
| 29770 |
|
| 29771 |
;; |
| 29772 |
esac |
| 29773 |
fi |
| 29774 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29775 |
conftest$ac_exeext |
| 29776 |
|
| 29777 |
;; |
| 29778 |
esac |
| 29779 |
fi |
| 29780 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29781 |
conftest$ac_exeext |
| 29782 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29783 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29784 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29785 |
|
| 29786 |
;; |
| 29787 |
esac |
| 29788 |
fi |
| 29789 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fsched_pressure" >&5 |
| 29790 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fsched_pressure" >&6; } |
| 29791 |
if test "x$mhd_cv_cc_cfl_supp__fsched_pressure" = x"yes" |
| 29792 |
then : |
| 29793 |
if test -z "${CFLAGS_ac}" |
| 29794 |
then : |
| 29795 |
CFLAGS_ac="-fsched-pressure" |
| 29796 |
else case e in #( |
| 29797 |
e) CFLAGS_ac="${CFLAGS_ac} -fsched-pressure" ;; |
| 29798 |
esac |
| 29799 |
fi |
| 29800 |
|
| 29801 |
|
| 29802 |
fi |
| 29803 |
|
| 29804 |
|
| 29805 |
|
| 29806 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fira-loop-pressure flag" >&5 |
| 29807 |
printf %s "checking whether $CC supports -fira-loop-pressure flag... " >&6; } |
| 29808 |
if test ${mhd_cv_cc_cfl_supp__fira_loop_pressure+y} |
| 29809 |
then : |
| 29810 |
printf %s "(cached) " >&6 |
| 29811 |
else case e in #( |
| 29812 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29813 |
CFLAGS="${CFLAGS_ac} -fira-loop-pressure ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29814 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29815 |
ac_c_werror_flag=yes |
| 29816 |
# Reuse the same source for all the checks here |
| 29817 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29818 |
/* end confdefs.h. */ |
| 29819 |
|
| 29820 |
int main(void) |
| 29821 |
{ |
| 29822 |
return 0; |
| 29823 |
} |
| 29824 |
|
| 29825 |
_ACEOF |
| 29826 |
if ac_fn_c_try_link "$LINENO" |
| 29827 |
then : |
| 29828 |
mhd_cv_cc_cfl_supp__fira_loop_pressure="yes" |
| 29829 |
else case e in #( |
| 29830 |
e) # Compile and link failed with test flag added |
| 29831 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29832 |
if ac_fn_c_try_link "$LINENO" |
| 29833 |
then : |
| 29834 |
mhd_cv_cc_cfl_supp__fira_loop_pressure="no" |
| 29835 |
else case e in #( |
| 29836 |
e) # Compile and link failed with test flag removed as well |
| 29837 |
CFLAGS="${CFLAGS_ac} -fira-loop-pressure ${mhd_check_cc_flag_save_CFLAGS}" |
| 29838 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29839 |
if ac_fn_c_try_link "$LINENO" |
| 29840 |
then : |
| 29841 |
mhd_cv_cc_cfl_supp__fira_loop_pressure="yes" |
| 29842 |
else case e in #( |
| 29843 |
e) mhd_cv_cc_cfl_supp__fira_loop_pressure="no" ;; |
| 29844 |
esac |
| 29845 |
fi |
| 29846 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29847 |
conftest$ac_exeext |
| 29848 |
|
| 29849 |
;; |
| 29850 |
esac |
| 29851 |
fi |
| 29852 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29853 |
conftest$ac_exeext |
| 29854 |
|
| 29855 |
;; |
| 29856 |
esac |
| 29857 |
fi |
| 29858 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29859 |
conftest$ac_exeext |
| 29860 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29861 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29862 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29863 |
|
| 29864 |
;; |
| 29865 |
esac |
| 29866 |
fi |
| 29867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fira_loop_pressure" >&5 |
| 29868 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fira_loop_pressure" >&6; } |
| 29869 |
if test "x$mhd_cv_cc_cfl_supp__fira_loop_pressure" = x"yes" |
| 29870 |
then : |
| 29871 |
if test -z "${CFLAGS_ac}" |
| 29872 |
then : |
| 29873 |
CFLAGS_ac="-fira-loop-pressure" |
| 29874 |
else case e in #( |
| 29875 |
e) CFLAGS_ac="${CFLAGS_ac} -fira-loop-pressure" ;; |
| 29876 |
esac |
| 29877 |
fi |
| 29878 |
|
| 29879 |
|
| 29880 |
fi |
| 29881 |
|
| 29882 |
|
| 29883 |
|
| 29884 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fmerge-all-constants flag" >&5 |
| 29885 |
printf %s "checking whether $CC supports -fmerge-all-constants flag... " >&6; } |
| 29886 |
if test ${mhd_cv_cc_cfl_supp__fmerge_all_constants+y} |
| 29887 |
then : |
| 29888 |
printf %s "(cached) " >&6 |
| 29889 |
else case e in #( |
| 29890 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29891 |
CFLAGS="${CFLAGS_ac} -fmerge-all-constants ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29892 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29893 |
ac_c_werror_flag=yes |
| 29894 |
# Reuse the same source for all the checks here |
| 29895 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29896 |
/* end confdefs.h. */ |
| 29897 |
|
| 29898 |
int main(void) |
| 29899 |
{ |
| 29900 |
return 0; |
| 29901 |
} |
| 29902 |
|
| 29903 |
_ACEOF |
| 29904 |
if ac_fn_c_try_link "$LINENO" |
| 29905 |
then : |
| 29906 |
mhd_cv_cc_cfl_supp__fmerge_all_constants="yes" |
| 29907 |
else case e in #( |
| 29908 |
e) # Compile and link failed with test flag added |
| 29909 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29910 |
if ac_fn_c_try_link "$LINENO" |
| 29911 |
then : |
| 29912 |
mhd_cv_cc_cfl_supp__fmerge_all_constants="no" |
| 29913 |
else case e in #( |
| 29914 |
e) # Compile and link failed with test flag removed as well |
| 29915 |
CFLAGS="${CFLAGS_ac} -fmerge-all-constants ${mhd_check_cc_flag_save_CFLAGS}" |
| 29916 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29917 |
if ac_fn_c_try_link "$LINENO" |
| 29918 |
then : |
| 29919 |
mhd_cv_cc_cfl_supp__fmerge_all_constants="yes" |
| 29920 |
else case e in #( |
| 29921 |
e) mhd_cv_cc_cfl_supp__fmerge_all_constants="no" ;; |
| 29922 |
esac |
| 29923 |
fi |
| 29924 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29925 |
conftest$ac_exeext |
| 29926 |
|
| 29927 |
;; |
| 29928 |
esac |
| 29929 |
fi |
| 29930 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29931 |
conftest$ac_exeext |
| 29932 |
|
| 29933 |
;; |
| 29934 |
esac |
| 29935 |
fi |
| 29936 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 29937 |
conftest$ac_exeext |
| 29938 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29939 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 29940 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 29941 |
|
| 29942 |
;; |
| 29943 |
esac |
| 29944 |
fi |
| 29945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fmerge_all_constants" >&5 |
| 29946 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fmerge_all_constants" >&6; } |
| 29947 |
if test "x$mhd_cv_cc_cfl_supp__fmerge_all_constants" = x"yes" |
| 29948 |
then : |
| 29949 |
if test -z "${CFLAGS_ac}" |
| 29950 |
then : |
| 29951 |
CFLAGS_ac="-fmerge-all-constants" |
| 29952 |
else case e in #( |
| 29953 |
e) CFLAGS_ac="${CFLAGS_ac} -fmerge-all-constants" ;; |
| 29954 |
esac |
| 29955 |
fi |
| 29956 |
|
| 29957 |
|
| 29958 |
fi |
| 29959 |
|
| 29960 |
|
| 29961 |
# These flags may improve size, recheck with LTO and linker garbage collection |
| 29962 |
|
| 29963 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-partial-pre flag" >&5 |
| 29964 |
printf %s "checking whether $CC supports -ftree-partial-pre flag... " >&6; } |
| 29965 |
if test ${mhd_cv_cc_cfl_supp__ftree_partial_pre+y} |
| 29966 |
then : |
| 29967 |
printf %s "(cached) " >&6 |
| 29968 |
else case e in #( |
| 29969 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 29970 |
CFLAGS="${CFLAGS_ac} -ftree-partial-pre ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29971 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 29972 |
ac_c_werror_flag=yes |
| 29973 |
# Reuse the same source for all the checks here |
| 29974 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29975 |
/* end confdefs.h. */ |
| 29976 |
|
| 29977 |
int main(void) |
| 29978 |
{ |
| 29979 |
return 0; |
| 29980 |
} |
| 29981 |
|
| 29982 |
_ACEOF |
| 29983 |
if ac_fn_c_try_link "$LINENO" |
| 29984 |
then : |
| 29985 |
mhd_cv_cc_cfl_supp__ftree_partial_pre="yes" |
| 29986 |
else case e in #( |
| 29987 |
e) # Compile and link failed with test flag added |
| 29988 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 29989 |
if ac_fn_c_try_link "$LINENO" |
| 29990 |
then : |
| 29991 |
mhd_cv_cc_cfl_supp__ftree_partial_pre="no" |
| 29992 |
else case e in #( |
| 29993 |
e) # Compile and link failed with test flag removed as well |
| 29994 |
CFLAGS="${CFLAGS_ac} -ftree-partial-pre ${mhd_check_cc_flag_save_CFLAGS}" |
| 29995 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 29996 |
if ac_fn_c_try_link "$LINENO" |
| 29997 |
then : |
| 29998 |
mhd_cv_cc_cfl_supp__ftree_partial_pre="yes" |
| 29999 |
else case e in #( |
| 30000 |
e) mhd_cv_cc_cfl_supp__ftree_partial_pre="no" ;; |
| 30001 |
esac |
| 30002 |
fi |
| 30003 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30004 |
conftest$ac_exeext |
| 30005 |
|
| 30006 |
;; |
| 30007 |
esac |
| 30008 |
fi |
| 30009 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30010 |
conftest$ac_exeext |
| 30011 |
|
| 30012 |
;; |
| 30013 |
esac |
| 30014 |
fi |
| 30015 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30016 |
conftest$ac_exeext |
| 30017 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30018 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30019 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30020 |
|
| 30021 |
;; |
| 30022 |
esac |
| 30023 |
fi |
| 30024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ftree_partial_pre" >&5 |
| 30025 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ftree_partial_pre" >&6; } |
| 30026 |
if test "x$mhd_cv_cc_cfl_supp__ftree_partial_pre" = x"yes" |
| 30027 |
then : |
| 30028 |
if test -z "${CFLAGS_ac}" |
| 30029 |
then : |
| 30030 |
CFLAGS_ac="-ftree-partial-pre" |
| 30031 |
else case e in #( |
| 30032 |
e) CFLAGS_ac="${CFLAGS_ac} -ftree-partial-pre" ;; |
| 30033 |
esac |
| 30034 |
fi |
| 30035 |
|
| 30036 |
|
| 30037 |
fi |
| 30038 |
|
| 30039 |
|
| 30040 |
|
| 30041 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fgcse-after-reload flag" >&5 |
| 30042 |
printf %s "checking whether $CC supports -fgcse-after-reload flag... " >&6; } |
| 30043 |
if test ${mhd_cv_cc_cfl_supp__fgcse_after_reload+y} |
| 30044 |
then : |
| 30045 |
printf %s "(cached) " >&6 |
| 30046 |
else case e in #( |
| 30047 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30048 |
CFLAGS="${CFLAGS_ac} -fgcse-after-reload ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30049 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30050 |
ac_c_werror_flag=yes |
| 30051 |
# Reuse the same source for all the checks here |
| 30052 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30053 |
/* end confdefs.h. */ |
| 30054 |
|
| 30055 |
int main(void) |
| 30056 |
{ |
| 30057 |
return 0; |
| 30058 |
} |
| 30059 |
|
| 30060 |
_ACEOF |
| 30061 |
if ac_fn_c_try_link "$LINENO" |
| 30062 |
then : |
| 30063 |
mhd_cv_cc_cfl_supp__fgcse_after_reload="yes" |
| 30064 |
else case e in #( |
| 30065 |
e) # Compile and link failed with test flag added |
| 30066 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30067 |
if ac_fn_c_try_link "$LINENO" |
| 30068 |
then : |
| 30069 |
mhd_cv_cc_cfl_supp__fgcse_after_reload="no" |
| 30070 |
else case e in #( |
| 30071 |
e) # Compile and link failed with test flag removed as well |
| 30072 |
CFLAGS="${CFLAGS_ac} -fgcse-after-reload ${mhd_check_cc_flag_save_CFLAGS}" |
| 30073 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30074 |
if ac_fn_c_try_link "$LINENO" |
| 30075 |
then : |
| 30076 |
mhd_cv_cc_cfl_supp__fgcse_after_reload="yes" |
| 30077 |
else case e in #( |
| 30078 |
e) mhd_cv_cc_cfl_supp__fgcse_after_reload="no" ;; |
| 30079 |
esac |
| 30080 |
fi |
| 30081 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30082 |
conftest$ac_exeext |
| 30083 |
|
| 30084 |
;; |
| 30085 |
esac |
| 30086 |
fi |
| 30087 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30088 |
conftest$ac_exeext |
| 30089 |
|
| 30090 |
;; |
| 30091 |
esac |
| 30092 |
fi |
| 30093 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30094 |
conftest$ac_exeext |
| 30095 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30096 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30097 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30098 |
|
| 30099 |
;; |
| 30100 |
esac |
| 30101 |
fi |
| 30102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fgcse_after_reload" >&5 |
| 30103 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fgcse_after_reload" >&6; } |
| 30104 |
if test "x$mhd_cv_cc_cfl_supp__fgcse_after_reload" = x"yes" |
| 30105 |
then : |
| 30106 |
if test -z "${CFLAGS_ac}" |
| 30107 |
then : |
| 30108 |
CFLAGS_ac="-fgcse-after-reload" |
| 30109 |
else case e in #( |
| 30110 |
e) CFLAGS_ac="${CFLAGS_ac} -fgcse-after-reload" ;; |
| 30111 |
esac |
| 30112 |
fi |
| 30113 |
|
| 30114 |
|
| 30115 |
fi |
| 30116 |
|
| 30117 |
|
| 30118 |
|
| 30119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fipa-pta flag" >&5 |
| 30120 |
printf %s "checking whether $CC supports -fipa-pta flag... " >&6; } |
| 30121 |
if test ${mhd_cv_cc_cfl_supp__fipa_pta+y} |
| 30122 |
then : |
| 30123 |
printf %s "(cached) " >&6 |
| 30124 |
else case e in #( |
| 30125 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30126 |
CFLAGS="${CFLAGS_ac} -fipa-pta ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30127 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30128 |
ac_c_werror_flag=yes |
| 30129 |
# Reuse the same source for all the checks here |
| 30130 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30131 |
/* end confdefs.h. */ |
| 30132 |
|
| 30133 |
int main(void) |
| 30134 |
{ |
| 30135 |
return 0; |
| 30136 |
} |
| 30137 |
|
| 30138 |
_ACEOF |
| 30139 |
if ac_fn_c_try_link "$LINENO" |
| 30140 |
then : |
| 30141 |
mhd_cv_cc_cfl_supp__fipa_pta="yes" |
| 30142 |
else case e in #( |
| 30143 |
e) # Compile and link failed with test flag added |
| 30144 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30145 |
if ac_fn_c_try_link "$LINENO" |
| 30146 |
then : |
| 30147 |
mhd_cv_cc_cfl_supp__fipa_pta="no" |
| 30148 |
else case e in #( |
| 30149 |
e) # Compile and link failed with test flag removed as well |
| 30150 |
CFLAGS="${CFLAGS_ac} -fipa-pta ${mhd_check_cc_flag_save_CFLAGS}" |
| 30151 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30152 |
if ac_fn_c_try_link "$LINENO" |
| 30153 |
then : |
| 30154 |
mhd_cv_cc_cfl_supp__fipa_pta="yes" |
| 30155 |
else case e in #( |
| 30156 |
e) mhd_cv_cc_cfl_supp__fipa_pta="no" ;; |
| 30157 |
esac |
| 30158 |
fi |
| 30159 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30160 |
conftest$ac_exeext |
| 30161 |
|
| 30162 |
;; |
| 30163 |
esac |
| 30164 |
fi |
| 30165 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30166 |
conftest$ac_exeext |
| 30167 |
|
| 30168 |
;; |
| 30169 |
esac |
| 30170 |
fi |
| 30171 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30172 |
conftest$ac_exeext |
| 30173 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30174 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30175 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30176 |
|
| 30177 |
;; |
| 30178 |
esac |
| 30179 |
fi |
| 30180 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fipa_pta" >&5 |
| 30181 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fipa_pta" >&6; } |
| 30182 |
if test "x$mhd_cv_cc_cfl_supp__fipa_pta" = x"yes" |
| 30183 |
then : |
| 30184 |
if test -z "${CFLAGS_ac}" |
| 30185 |
then : |
| 30186 |
CFLAGS_ac="-fipa-pta" |
| 30187 |
else case e in #( |
| 30188 |
e) CFLAGS_ac="${CFLAGS_ac} -fipa-pta" ;; |
| 30189 |
esac |
| 30190 |
fi |
| 30191 |
|
| 30192 |
|
| 30193 |
fi |
| 30194 |
|
| 30195 |
|
| 30196 |
|
| 30197 |
|
| 30198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fisolate-erroneous-paths-attribute flag" >&5 |
| 30199 |
printf %s "checking whether $CC supports -fisolate-erroneous-paths-attribute flag... " >&6; } |
| 30200 |
if test ${mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute+y} |
| 30201 |
then : |
| 30202 |
printf %s "(cached) " >&6 |
| 30203 |
else case e in #( |
| 30204 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30205 |
CFLAGS="${CFLAGS_ac} -fisolate-erroneous-paths-attribute ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30206 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30207 |
ac_c_werror_flag=yes |
| 30208 |
# Reuse the same source for all the checks here |
| 30209 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30210 |
/* end confdefs.h. */ |
| 30211 |
|
| 30212 |
int main(void) |
| 30213 |
{ |
| 30214 |
return 0; |
| 30215 |
} |
| 30216 |
|
| 30217 |
_ACEOF |
| 30218 |
if ac_fn_c_try_link "$LINENO" |
| 30219 |
then : |
| 30220 |
mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute="yes" |
| 30221 |
else case e in #( |
| 30222 |
e) # Compile and link failed with test flag added |
| 30223 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30224 |
if ac_fn_c_try_link "$LINENO" |
| 30225 |
then : |
| 30226 |
mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute="no" |
| 30227 |
else case e in #( |
| 30228 |
e) # Compile and link failed with test flag removed as well |
| 30229 |
CFLAGS="${CFLAGS_ac} -fisolate-erroneous-paths-attribute ${mhd_check_cc_flag_save_CFLAGS}" |
| 30230 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30231 |
if ac_fn_c_try_link "$LINENO" |
| 30232 |
then : |
| 30233 |
mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute="yes" |
| 30234 |
else case e in #( |
| 30235 |
e) mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute="no" ;; |
| 30236 |
esac |
| 30237 |
fi |
| 30238 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30239 |
conftest$ac_exeext |
| 30240 |
|
| 30241 |
;; |
| 30242 |
esac |
| 30243 |
fi |
| 30244 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30245 |
conftest$ac_exeext |
| 30246 |
|
| 30247 |
;; |
| 30248 |
esac |
| 30249 |
fi |
| 30250 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30251 |
conftest$ac_exeext |
| 30252 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30253 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30254 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30255 |
|
| 30256 |
;; |
| 30257 |
esac |
| 30258 |
fi |
| 30259 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute" >&5 |
| 30260 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute" >&6; } |
| 30261 |
if test "x$mhd_cv_cc_cfl_supp__fisolate_erroneous_paths_attribute" = x"yes" |
| 30262 |
then : |
| 30263 |
if test -z "${CFLAGS_ac}" |
| 30264 |
then : |
| 30265 |
CFLAGS_ac="-fisolate-erroneous-paths-attribute" |
| 30266 |
else case e in #( |
| 30267 |
e) CFLAGS_ac="${CFLAGS_ac} -fisolate-erroneous-paths-attribute" ;; |
| 30268 |
esac |
| 30269 |
fi |
| 30270 |
|
| 30271 |
|
| 30272 |
fi |
| 30273 |
|
| 30274 |
|
| 30275 |
|
| 30276 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ffinite-loops flag" >&5 |
| 30277 |
printf %s "checking whether $CC supports -ffinite-loops flag... " >&6; } |
| 30278 |
if test ${mhd_cv_cc_cfl_supp__ffinite_loops+y} |
| 30279 |
then : |
| 30280 |
printf %s "(cached) " >&6 |
| 30281 |
else case e in #( |
| 30282 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30283 |
CFLAGS="${CFLAGS_ac} -ffinite-loops ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30284 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30285 |
ac_c_werror_flag=yes |
| 30286 |
# Reuse the same source for all the checks here |
| 30287 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30288 |
/* end confdefs.h. */ |
| 30289 |
|
| 30290 |
int main(void) |
| 30291 |
{ |
| 30292 |
return 0; |
| 30293 |
} |
| 30294 |
|
| 30295 |
_ACEOF |
| 30296 |
if ac_fn_c_try_link "$LINENO" |
| 30297 |
then : |
| 30298 |
mhd_cv_cc_cfl_supp__ffinite_loops="yes" |
| 30299 |
else case e in #( |
| 30300 |
e) # Compile and link failed with test flag added |
| 30301 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30302 |
if ac_fn_c_try_link "$LINENO" |
| 30303 |
then : |
| 30304 |
mhd_cv_cc_cfl_supp__ffinite_loops="no" |
| 30305 |
else case e in #( |
| 30306 |
e) # Compile and link failed with test flag removed as well |
| 30307 |
CFLAGS="${CFLAGS_ac} -ffinite-loops ${mhd_check_cc_flag_save_CFLAGS}" |
| 30308 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30309 |
if ac_fn_c_try_link "$LINENO" |
| 30310 |
then : |
| 30311 |
mhd_cv_cc_cfl_supp__ffinite_loops="yes" |
| 30312 |
else case e in #( |
| 30313 |
e) mhd_cv_cc_cfl_supp__ffinite_loops="no" ;; |
| 30314 |
esac |
| 30315 |
fi |
| 30316 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30317 |
conftest$ac_exeext |
| 30318 |
|
| 30319 |
;; |
| 30320 |
esac |
| 30321 |
fi |
| 30322 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30323 |
conftest$ac_exeext |
| 30324 |
|
| 30325 |
;; |
| 30326 |
esac |
| 30327 |
fi |
| 30328 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30329 |
conftest$ac_exeext |
| 30330 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30331 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30332 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30333 |
|
| 30334 |
;; |
| 30335 |
esac |
| 30336 |
fi |
| 30337 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ffinite_loops" >&5 |
| 30338 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ffinite_loops" >&6; } |
| 30339 |
if test "x$mhd_cv_cc_cfl_supp__ffinite_loops" = x"yes" |
| 30340 |
then : |
| 30341 |
if test -z "${CFLAGS_ac}" |
| 30342 |
then : |
| 30343 |
CFLAGS_ac="-ffinite-loops" |
| 30344 |
else case e in #( |
| 30345 |
e) CFLAGS_ac="${CFLAGS_ac} -ffinite-loops" ;; |
| 30346 |
esac |
| 30347 |
fi |
| 30348 |
|
| 30349 |
|
| 30350 |
fi |
| 30351 |
|
| 30352 |
|
| 30353 |
|
| 30354 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -floop-nest-optimize flag" >&5 |
| 30355 |
printf %s "checking whether $CC supports -floop-nest-optimize flag... " >&6; } |
| 30356 |
if test ${mhd_cv_cc_cfl_supp__floop_nest_optimize+y} |
| 30357 |
then : |
| 30358 |
printf %s "(cached) " >&6 |
| 30359 |
else case e in #( |
| 30360 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30361 |
CFLAGS="${CFLAGS_ac} -floop-nest-optimize ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30362 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30363 |
ac_c_werror_flag=yes |
| 30364 |
# Reuse the same source for all the checks here |
| 30365 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30366 |
/* end confdefs.h. */ |
| 30367 |
|
| 30368 |
int main(void) |
| 30369 |
{ |
| 30370 |
return 0; |
| 30371 |
} |
| 30372 |
|
| 30373 |
_ACEOF |
| 30374 |
if ac_fn_c_try_link "$LINENO" |
| 30375 |
then : |
| 30376 |
mhd_cv_cc_cfl_supp__floop_nest_optimize="yes" |
| 30377 |
else case e in #( |
| 30378 |
e) # Compile and link failed with test flag added |
| 30379 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30380 |
if ac_fn_c_try_link "$LINENO" |
| 30381 |
then : |
| 30382 |
mhd_cv_cc_cfl_supp__floop_nest_optimize="no" |
| 30383 |
else case e in #( |
| 30384 |
e) # Compile and link failed with test flag removed as well |
| 30385 |
CFLAGS="${CFLAGS_ac} -floop-nest-optimize ${mhd_check_cc_flag_save_CFLAGS}" |
| 30386 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30387 |
if ac_fn_c_try_link "$LINENO" |
| 30388 |
then : |
| 30389 |
mhd_cv_cc_cfl_supp__floop_nest_optimize="yes" |
| 30390 |
else case e in #( |
| 30391 |
e) mhd_cv_cc_cfl_supp__floop_nest_optimize="no" ;; |
| 30392 |
esac |
| 30393 |
fi |
| 30394 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30395 |
conftest$ac_exeext |
| 30396 |
|
| 30397 |
;; |
| 30398 |
esac |
| 30399 |
fi |
| 30400 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30401 |
conftest$ac_exeext |
| 30402 |
|
| 30403 |
;; |
| 30404 |
esac |
| 30405 |
fi |
| 30406 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30407 |
conftest$ac_exeext |
| 30408 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30409 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30410 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30411 |
|
| 30412 |
;; |
| 30413 |
esac |
| 30414 |
fi |
| 30415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__floop_nest_optimize" >&5 |
| 30416 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__floop_nest_optimize" >&6; } |
| 30417 |
if test "x$mhd_cv_cc_cfl_supp__floop_nest_optimize" = x"yes" |
| 30418 |
then : |
| 30419 |
if test -z "${CFLAGS_ac}" |
| 30420 |
then : |
| 30421 |
CFLAGS_ac="-floop-nest-optimize" |
| 30422 |
else case e in #( |
| 30423 |
e) CFLAGS_ac="${CFLAGS_ac} -floop-nest-optimize" ;; |
| 30424 |
esac |
| 30425 |
fi |
| 30426 |
|
| 30427 |
|
| 30428 |
fi |
| 30429 |
|
| 30430 |
|
| 30431 |
|
| 30432 |
|
| 30433 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fpredictive-commoning flag" >&5 |
| 30434 |
printf %s "checking whether $CC supports -fpredictive-commoning flag... " >&6; } |
| 30435 |
if test ${mhd_cv_cc_cfl_supp__fpredictive_commoning+y} |
| 30436 |
then : |
| 30437 |
printf %s "(cached) " >&6 |
| 30438 |
else case e in #( |
| 30439 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30440 |
CFLAGS="${CFLAGS_ac} -fpredictive-commoning ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30441 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30442 |
ac_c_werror_flag=yes |
| 30443 |
# Reuse the same source for all the checks here |
| 30444 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30445 |
/* end confdefs.h. */ |
| 30446 |
|
| 30447 |
int main(void) |
| 30448 |
{ |
| 30449 |
return 0; |
| 30450 |
} |
| 30451 |
|
| 30452 |
_ACEOF |
| 30453 |
if ac_fn_c_try_link "$LINENO" |
| 30454 |
then : |
| 30455 |
mhd_cv_cc_cfl_supp__fpredictive_commoning="yes" |
| 30456 |
else case e in #( |
| 30457 |
e) # Compile and link failed with test flag added |
| 30458 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30459 |
if ac_fn_c_try_link "$LINENO" |
| 30460 |
then : |
| 30461 |
mhd_cv_cc_cfl_supp__fpredictive_commoning="no" |
| 30462 |
else case e in #( |
| 30463 |
e) # Compile and link failed with test flag removed as well |
| 30464 |
CFLAGS="${CFLAGS_ac} -fpredictive-commoning ${mhd_check_cc_flag_save_CFLAGS}" |
| 30465 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30466 |
if ac_fn_c_try_link "$LINENO" |
| 30467 |
then : |
| 30468 |
mhd_cv_cc_cfl_supp__fpredictive_commoning="yes" |
| 30469 |
else case e in #( |
| 30470 |
e) mhd_cv_cc_cfl_supp__fpredictive_commoning="no" ;; |
| 30471 |
esac |
| 30472 |
fi |
| 30473 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30474 |
conftest$ac_exeext |
| 30475 |
|
| 30476 |
;; |
| 30477 |
esac |
| 30478 |
fi |
| 30479 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30480 |
conftest$ac_exeext |
| 30481 |
|
| 30482 |
;; |
| 30483 |
esac |
| 30484 |
fi |
| 30485 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30486 |
conftest$ac_exeext |
| 30487 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30488 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30489 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30490 |
|
| 30491 |
;; |
| 30492 |
esac |
| 30493 |
fi |
| 30494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fpredictive_commoning" >&5 |
| 30495 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fpredictive_commoning" >&6; } |
| 30496 |
if test "x$mhd_cv_cc_cfl_supp__fpredictive_commoning" = x"yes" |
| 30497 |
then : |
| 30498 |
if test -z "${CFLAGS_ac}" |
| 30499 |
then : |
| 30500 |
CFLAGS_ac="-fpredictive-commoning" |
| 30501 |
else case e in #( |
| 30502 |
e) CFLAGS_ac="${CFLAGS_ac} -fpredictive-commoning" ;; |
| 30503 |
esac |
| 30504 |
fi |
| 30505 |
|
| 30506 |
|
| 30507 |
fi |
| 30508 |
|
| 30509 |
|
| 30510 |
|
| 30511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -frename-registers flag" >&5 |
| 30512 |
printf %s "checking whether $CC supports -frename-registers flag... " >&6; } |
| 30513 |
if test ${mhd_cv_cc_cfl_supp__frename_registers+y} |
| 30514 |
then : |
| 30515 |
printf %s "(cached) " >&6 |
| 30516 |
else case e in #( |
| 30517 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30518 |
CFLAGS="${CFLAGS_ac} -frename-registers ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30519 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30520 |
ac_c_werror_flag=yes |
| 30521 |
# Reuse the same source for all the checks here |
| 30522 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30523 |
/* end confdefs.h. */ |
| 30524 |
|
| 30525 |
int main(void) |
| 30526 |
{ |
| 30527 |
return 0; |
| 30528 |
} |
| 30529 |
|
| 30530 |
_ACEOF |
| 30531 |
if ac_fn_c_try_link "$LINENO" |
| 30532 |
then : |
| 30533 |
mhd_cv_cc_cfl_supp__frename_registers="yes" |
| 30534 |
else case e in #( |
| 30535 |
e) # Compile and link failed with test flag added |
| 30536 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30537 |
if ac_fn_c_try_link "$LINENO" |
| 30538 |
then : |
| 30539 |
mhd_cv_cc_cfl_supp__frename_registers="no" |
| 30540 |
else case e in #( |
| 30541 |
e) # Compile and link failed with test flag removed as well |
| 30542 |
CFLAGS="${CFLAGS_ac} -frename-registers ${mhd_check_cc_flag_save_CFLAGS}" |
| 30543 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30544 |
if ac_fn_c_try_link "$LINENO" |
| 30545 |
then : |
| 30546 |
mhd_cv_cc_cfl_supp__frename_registers="yes" |
| 30547 |
else case e in #( |
| 30548 |
e) mhd_cv_cc_cfl_supp__frename_registers="no" ;; |
| 30549 |
esac |
| 30550 |
fi |
| 30551 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30552 |
conftest$ac_exeext |
| 30553 |
|
| 30554 |
;; |
| 30555 |
esac |
| 30556 |
fi |
| 30557 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30558 |
conftest$ac_exeext |
| 30559 |
|
| 30560 |
;; |
| 30561 |
esac |
| 30562 |
fi |
| 30563 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30564 |
conftest$ac_exeext |
| 30565 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30566 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30567 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30568 |
|
| 30569 |
;; |
| 30570 |
esac |
| 30571 |
fi |
| 30572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__frename_registers" >&5 |
| 30573 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__frename_registers" >&6; } |
| 30574 |
if test "x$mhd_cv_cc_cfl_supp__frename_registers" = x"yes" |
| 30575 |
then : |
| 30576 |
if test -z "${CFLAGS_ac}" |
| 30577 |
then : |
| 30578 |
CFLAGS_ac="-frename-registers" |
| 30579 |
else case e in #( |
| 30580 |
e) CFLAGS_ac="${CFLAGS_ac} -frename-registers" ;; |
| 30581 |
esac |
| 30582 |
fi |
| 30583 |
|
| 30584 |
|
| 30585 |
fi |
| 30586 |
|
| 30587 |
|
| 30588 |
|
| 30589 |
|
| 30590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-loop-distribute-patterns flag" >&5 |
| 30591 |
printf %s "checking whether $CC supports -ftree-loop-distribute-patterns flag... " >&6; } |
| 30592 |
if test ${mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns+y} |
| 30593 |
then : |
| 30594 |
printf %s "(cached) " >&6 |
| 30595 |
else case e in #( |
| 30596 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30597 |
CFLAGS="${CFLAGS_ac} -ftree-loop-distribute-patterns ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30598 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30599 |
ac_c_werror_flag=yes |
| 30600 |
# Reuse the same source for all the checks here |
| 30601 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30602 |
/* end confdefs.h. */ |
| 30603 |
|
| 30604 |
int main(void) |
| 30605 |
{ |
| 30606 |
return 0; |
| 30607 |
} |
| 30608 |
|
| 30609 |
_ACEOF |
| 30610 |
if ac_fn_c_try_link "$LINENO" |
| 30611 |
then : |
| 30612 |
mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns="yes" |
| 30613 |
else case e in #( |
| 30614 |
e) # Compile and link failed with test flag added |
| 30615 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30616 |
if ac_fn_c_try_link "$LINENO" |
| 30617 |
then : |
| 30618 |
mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns="no" |
| 30619 |
else case e in #( |
| 30620 |
e) # Compile and link failed with test flag removed as well |
| 30621 |
CFLAGS="${CFLAGS_ac} -ftree-loop-distribute-patterns ${mhd_check_cc_flag_save_CFLAGS}" |
| 30622 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30623 |
if ac_fn_c_try_link "$LINENO" |
| 30624 |
then : |
| 30625 |
mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns="yes" |
| 30626 |
else case e in #( |
| 30627 |
e) mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns="no" ;; |
| 30628 |
esac |
| 30629 |
fi |
| 30630 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30631 |
conftest$ac_exeext |
| 30632 |
|
| 30633 |
;; |
| 30634 |
esac |
| 30635 |
fi |
| 30636 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30637 |
conftest$ac_exeext |
| 30638 |
|
| 30639 |
;; |
| 30640 |
esac |
| 30641 |
fi |
| 30642 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30643 |
conftest$ac_exeext |
| 30644 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30645 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30646 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30647 |
|
| 30648 |
;; |
| 30649 |
esac |
| 30650 |
fi |
| 30651 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns" >&5 |
| 30652 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns" >&6; } |
| 30653 |
if test "x$mhd_cv_cc_cfl_supp__ftree_loop_distribute_patterns" = x"yes" |
| 30654 |
then : |
| 30655 |
if test -z "${CFLAGS_ac}" |
| 30656 |
then : |
| 30657 |
CFLAGS_ac="-ftree-loop-distribute-patterns" |
| 30658 |
else case e in #( |
| 30659 |
e) CFLAGS_ac="${CFLAGS_ac} -ftree-loop-distribute-patterns" ;; |
| 30660 |
esac |
| 30661 |
fi |
| 30662 |
|
| 30663 |
|
| 30664 |
fi |
| 30665 |
|
| 30666 |
|
| 30667 |
|
| 30668 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fpeel-loops flag" >&5 |
| 30669 |
printf %s "checking whether $CC supports -fpeel-loops flag... " >&6; } |
| 30670 |
if test ${mhd_cv_cc_cfl_supp__fpeel_loops+y} |
| 30671 |
then : |
| 30672 |
printf %s "(cached) " >&6 |
| 30673 |
else case e in #( |
| 30674 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30675 |
CFLAGS="${CFLAGS_ac} -fpeel-loops ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30676 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30677 |
ac_c_werror_flag=yes |
| 30678 |
# Reuse the same source for all the checks here |
| 30679 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30680 |
/* end confdefs.h. */ |
| 30681 |
|
| 30682 |
int main(void) |
| 30683 |
{ |
| 30684 |
return 0; |
| 30685 |
} |
| 30686 |
|
| 30687 |
_ACEOF |
| 30688 |
if ac_fn_c_try_link "$LINENO" |
| 30689 |
then : |
| 30690 |
mhd_cv_cc_cfl_supp__fpeel_loops="yes" |
| 30691 |
else case e in #( |
| 30692 |
e) # Compile and link failed with test flag added |
| 30693 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30694 |
if ac_fn_c_try_link "$LINENO" |
| 30695 |
then : |
| 30696 |
mhd_cv_cc_cfl_supp__fpeel_loops="no" |
| 30697 |
else case e in #( |
| 30698 |
e) # Compile and link failed with test flag removed as well |
| 30699 |
CFLAGS="${CFLAGS_ac} -fpeel-loops ${mhd_check_cc_flag_save_CFLAGS}" |
| 30700 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30701 |
if ac_fn_c_try_link "$LINENO" |
| 30702 |
then : |
| 30703 |
mhd_cv_cc_cfl_supp__fpeel_loops="yes" |
| 30704 |
else case e in #( |
| 30705 |
e) mhd_cv_cc_cfl_supp__fpeel_loops="no" ;; |
| 30706 |
esac |
| 30707 |
fi |
| 30708 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30709 |
conftest$ac_exeext |
| 30710 |
|
| 30711 |
;; |
| 30712 |
esac |
| 30713 |
fi |
| 30714 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30715 |
conftest$ac_exeext |
| 30716 |
|
| 30717 |
;; |
| 30718 |
esac |
| 30719 |
fi |
| 30720 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30721 |
conftest$ac_exeext |
| 30722 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30723 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30724 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30725 |
|
| 30726 |
;; |
| 30727 |
esac |
| 30728 |
fi |
| 30729 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fpeel_loops" >&5 |
| 30730 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fpeel_loops" >&6; } |
| 30731 |
if test "x$mhd_cv_cc_cfl_supp__fpeel_loops" = x"yes" |
| 30732 |
then : |
| 30733 |
if test -z "${CFLAGS_ac}" |
| 30734 |
then : |
| 30735 |
CFLAGS_ac="-fpeel-loops" |
| 30736 |
else case e in #( |
| 30737 |
e) CFLAGS_ac="${CFLAGS_ac} -fpeel-loops" ;; |
| 30738 |
esac |
| 30739 |
fi |
| 30740 |
|
| 30741 |
|
| 30742 |
fi |
| 30743 |
|
| 30744 |
|
| 30745 |
|
| 30746 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fsplit-loops flag" >&5 |
| 30747 |
printf %s "checking whether $CC supports -fsplit-loops flag... " >&6; } |
| 30748 |
if test ${mhd_cv_cc_cfl_supp__fsplit_loops+y} |
| 30749 |
then : |
| 30750 |
printf %s "(cached) " >&6 |
| 30751 |
else case e in #( |
| 30752 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30753 |
CFLAGS="${CFLAGS_ac} -fsplit-loops ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30754 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30755 |
ac_c_werror_flag=yes |
| 30756 |
# Reuse the same source for all the checks here |
| 30757 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30758 |
/* end confdefs.h. */ |
| 30759 |
|
| 30760 |
int main(void) |
| 30761 |
{ |
| 30762 |
return 0; |
| 30763 |
} |
| 30764 |
|
| 30765 |
_ACEOF |
| 30766 |
if ac_fn_c_try_link "$LINENO" |
| 30767 |
then : |
| 30768 |
mhd_cv_cc_cfl_supp__fsplit_loops="yes" |
| 30769 |
else case e in #( |
| 30770 |
e) # Compile and link failed with test flag added |
| 30771 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30772 |
if ac_fn_c_try_link "$LINENO" |
| 30773 |
then : |
| 30774 |
mhd_cv_cc_cfl_supp__fsplit_loops="no" |
| 30775 |
else case e in #( |
| 30776 |
e) # Compile and link failed with test flag removed as well |
| 30777 |
CFLAGS="${CFLAGS_ac} -fsplit-loops ${mhd_check_cc_flag_save_CFLAGS}" |
| 30778 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30779 |
if ac_fn_c_try_link "$LINENO" |
| 30780 |
then : |
| 30781 |
mhd_cv_cc_cfl_supp__fsplit_loops="yes" |
| 30782 |
else case e in #( |
| 30783 |
e) mhd_cv_cc_cfl_supp__fsplit_loops="no" ;; |
| 30784 |
esac |
| 30785 |
fi |
| 30786 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30787 |
conftest$ac_exeext |
| 30788 |
|
| 30789 |
;; |
| 30790 |
esac |
| 30791 |
fi |
| 30792 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30793 |
conftest$ac_exeext |
| 30794 |
|
| 30795 |
;; |
| 30796 |
esac |
| 30797 |
fi |
| 30798 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30799 |
conftest$ac_exeext |
| 30800 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30801 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30802 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30803 |
|
| 30804 |
;; |
| 30805 |
esac |
| 30806 |
fi |
| 30807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fsplit_loops" >&5 |
| 30808 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fsplit_loops" >&6; } |
| 30809 |
if test "x$mhd_cv_cc_cfl_supp__fsplit_loops" = x"yes" |
| 30810 |
then : |
| 30811 |
if test -z "${CFLAGS_ac}" |
| 30812 |
then : |
| 30813 |
CFLAGS_ac="-fsplit-loops" |
| 30814 |
else case e in #( |
| 30815 |
e) CFLAGS_ac="${CFLAGS_ac} -fsplit-loops" ;; |
| 30816 |
esac |
| 30817 |
fi |
| 30818 |
|
| 30819 |
|
| 30820 |
fi |
| 30821 |
|
| 30822 |
|
| 30823 |
|
| 30824 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftree-vectorize flag" >&5 |
| 30825 |
printf %s "checking whether $CC supports -ftree-vectorize flag... " >&6; } |
| 30826 |
if test ${mhd_cv_cc_cfl_supp__ftree_vectorize+y} |
| 30827 |
then : |
| 30828 |
printf %s "(cached) " >&6 |
| 30829 |
else case e in #( |
| 30830 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30831 |
CFLAGS="${CFLAGS_ac} -ftree-vectorize ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30832 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30833 |
ac_c_werror_flag=yes |
| 30834 |
# Reuse the same source for all the checks here |
| 30835 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30836 |
/* end confdefs.h. */ |
| 30837 |
|
| 30838 |
int main(void) |
| 30839 |
{ |
| 30840 |
return 0; |
| 30841 |
} |
| 30842 |
|
| 30843 |
_ACEOF |
| 30844 |
if ac_fn_c_try_link "$LINENO" |
| 30845 |
then : |
| 30846 |
mhd_cv_cc_cfl_supp__ftree_vectorize="yes" |
| 30847 |
else case e in #( |
| 30848 |
e) # Compile and link failed with test flag added |
| 30849 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30850 |
if ac_fn_c_try_link "$LINENO" |
| 30851 |
then : |
| 30852 |
mhd_cv_cc_cfl_supp__ftree_vectorize="no" |
| 30853 |
else case e in #( |
| 30854 |
e) # Compile and link failed with test flag removed as well |
| 30855 |
CFLAGS="${CFLAGS_ac} -ftree-vectorize ${mhd_check_cc_flag_save_CFLAGS}" |
| 30856 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30857 |
if ac_fn_c_try_link "$LINENO" |
| 30858 |
then : |
| 30859 |
mhd_cv_cc_cfl_supp__ftree_vectorize="yes" |
| 30860 |
else case e in #( |
| 30861 |
e) mhd_cv_cc_cfl_supp__ftree_vectorize="no" ;; |
| 30862 |
esac |
| 30863 |
fi |
| 30864 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30865 |
conftest$ac_exeext |
| 30866 |
|
| 30867 |
;; |
| 30868 |
esac |
| 30869 |
fi |
| 30870 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30871 |
conftest$ac_exeext |
| 30872 |
|
| 30873 |
;; |
| 30874 |
esac |
| 30875 |
fi |
| 30876 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30877 |
conftest$ac_exeext |
| 30878 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30879 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30880 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30881 |
|
| 30882 |
;; |
| 30883 |
esac |
| 30884 |
fi |
| 30885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ftree_vectorize" >&5 |
| 30886 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ftree_vectorize" >&6; } |
| 30887 |
if test "x$mhd_cv_cc_cfl_supp__ftree_vectorize" = x"yes" |
| 30888 |
then : |
| 30889 |
if test -z "${CFLAGS_ac}" |
| 30890 |
then : |
| 30891 |
CFLAGS_ac="-ftree-vectorize" |
| 30892 |
else case e in #( |
| 30893 |
e) CFLAGS_ac="${CFLAGS_ac} -ftree-vectorize" ;; |
| 30894 |
esac |
| 30895 |
fi |
| 30896 |
|
| 30897 |
|
| 30898 |
fi |
| 30899 |
|
| 30900 |
|
| 30901 |
|
| 30902 |
|
| 30903 |
;; |
| 30904 |
esac |
| 30905 |
fi |
| 30906 |
|
| 30907 |
if test "x$enable_build_type" = x"release-hardened" |
| 30908 |
then : |
| 30909 |
|
| 30910 |
|
| 30911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wformat-security flag" >&5 |
| 30912 |
printf %s "checking whether $CC supports -Wformat-security flag... " >&6; } |
| 30913 |
if test ${mhd_cv_cc_cfl_supp__Wformat_security+y} |
| 30914 |
then : |
| 30915 |
printf %s "(cached) " >&6 |
| 30916 |
else case e in #( |
| 30917 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30918 |
CFLAGS="${CFLAGS_ac} -Wformat-security ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30919 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30920 |
ac_c_werror_flag=yes |
| 30921 |
# Reuse the same source for all the checks here |
| 30922 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30923 |
/* end confdefs.h. */ |
| 30924 |
|
| 30925 |
int main(void) |
| 30926 |
{ |
| 30927 |
return 0; |
| 30928 |
} |
| 30929 |
|
| 30930 |
_ACEOF |
| 30931 |
if ac_fn_c_try_link "$LINENO" |
| 30932 |
then : |
| 30933 |
mhd_cv_cc_cfl_supp__Wformat_security="yes" |
| 30934 |
else case e in #( |
| 30935 |
e) # Compile and link failed with test flag added |
| 30936 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30937 |
if ac_fn_c_try_link "$LINENO" |
| 30938 |
then : |
| 30939 |
mhd_cv_cc_cfl_supp__Wformat_security="no" |
| 30940 |
else case e in #( |
| 30941 |
e) # Compile and link failed with test flag removed as well |
| 30942 |
CFLAGS="${CFLAGS_ac} -Wformat-security ${mhd_check_cc_flag_save_CFLAGS}" |
| 30943 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30944 |
if ac_fn_c_try_link "$LINENO" |
| 30945 |
then : |
| 30946 |
mhd_cv_cc_cfl_supp__Wformat_security="yes" |
| 30947 |
else case e in #( |
| 30948 |
e) mhd_cv_cc_cfl_supp__Wformat_security="no" ;; |
| 30949 |
esac |
| 30950 |
fi |
| 30951 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30952 |
conftest$ac_exeext |
| 30953 |
|
| 30954 |
;; |
| 30955 |
esac |
| 30956 |
fi |
| 30957 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30958 |
conftest$ac_exeext |
| 30959 |
|
| 30960 |
;; |
| 30961 |
esac |
| 30962 |
fi |
| 30963 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30964 |
conftest$ac_exeext |
| 30965 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 30966 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 30967 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 30968 |
|
| 30969 |
;; |
| 30970 |
esac |
| 30971 |
fi |
| 30972 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wformat_security" >&5 |
| 30973 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wformat_security" >&6; } |
| 30974 |
if test "x$mhd_cv_cc_cfl_supp__Wformat_security" = x"yes" |
| 30975 |
then : |
| 30976 |
if test -z "${CFLAGS_ac}" |
| 30977 |
then : |
| 30978 |
CFLAGS_ac="-Wformat-security" |
| 30979 |
else case e in #( |
| 30980 |
e) CFLAGS_ac="${CFLAGS_ac} -Wformat-security" ;; |
| 30981 |
esac |
| 30982 |
fi |
| 30983 |
|
| 30984 |
|
| 30985 |
fi |
| 30986 |
|
| 30987 |
|
| 30988 |
|
| 30989 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wstack-protector flag" >&5 |
| 30990 |
printf %s "checking whether $CC supports -Wstack-protector flag... " >&6; } |
| 30991 |
if test ${mhd_cv_cc_cfl_supp__Wstack_protector+y} |
| 30992 |
then : |
| 30993 |
printf %s "(cached) " >&6 |
| 30994 |
else case e in #( |
| 30995 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 30996 |
CFLAGS="${CFLAGS_ac} -Wstack-protector ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 30997 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 30998 |
ac_c_werror_flag=yes |
| 30999 |
# Reuse the same source for all the checks here |
| 31000 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31001 |
/* end confdefs.h. */ |
| 31002 |
|
| 31003 |
int main(void) |
| 31004 |
{ |
| 31005 |
return 0; |
| 31006 |
} |
| 31007 |
|
| 31008 |
_ACEOF |
| 31009 |
if ac_fn_c_try_link "$LINENO" |
| 31010 |
then : |
| 31011 |
mhd_cv_cc_cfl_supp__Wstack_protector="yes" |
| 31012 |
else case e in #( |
| 31013 |
e) # Compile and link failed with test flag added |
| 31014 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31015 |
if ac_fn_c_try_link "$LINENO" |
| 31016 |
then : |
| 31017 |
mhd_cv_cc_cfl_supp__Wstack_protector="no" |
| 31018 |
else case e in #( |
| 31019 |
e) # Compile and link failed with test flag removed as well |
| 31020 |
CFLAGS="${CFLAGS_ac} -Wstack-protector ${mhd_check_cc_flag_save_CFLAGS}" |
| 31021 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31022 |
if ac_fn_c_try_link "$LINENO" |
| 31023 |
then : |
| 31024 |
mhd_cv_cc_cfl_supp__Wstack_protector="yes" |
| 31025 |
else case e in #( |
| 31026 |
e) mhd_cv_cc_cfl_supp__Wstack_protector="no" ;; |
| 31027 |
esac |
| 31028 |
fi |
| 31029 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31030 |
conftest$ac_exeext |
| 31031 |
|
| 31032 |
;; |
| 31033 |
esac |
| 31034 |
fi |
| 31035 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31036 |
conftest$ac_exeext |
| 31037 |
|
| 31038 |
;; |
| 31039 |
esac |
| 31040 |
fi |
| 31041 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31042 |
conftest$ac_exeext |
| 31043 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31044 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31045 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31046 |
|
| 31047 |
;; |
| 31048 |
esac |
| 31049 |
fi |
| 31050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wstack_protector" >&5 |
| 31051 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wstack_protector" >&6; } |
| 31052 |
if test "x$mhd_cv_cc_cfl_supp__Wstack_protector" = x"yes" |
| 31053 |
then : |
| 31054 |
if test -z "${CFLAGS_ac}" |
| 31055 |
then : |
| 31056 |
CFLAGS_ac="-Wstack-protector" |
| 31057 |
else case e in #( |
| 31058 |
e) CFLAGS_ac="${CFLAGS_ac} -Wstack-protector" ;; |
| 31059 |
esac |
| 31060 |
fi |
| 31061 |
|
| 31062 |
|
| 31063 |
fi |
| 31064 |
|
| 31065 |
|
| 31066 |
|
| 31067 |
|
| 31068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wuninitialized flag" >&5 |
| 31069 |
printf %s "checking whether $CC supports -Wuninitialized flag... " >&6; } |
| 31070 |
if test ${mhd_cv_cc_cfl_supp__Wuninitialized+y} |
| 31071 |
then : |
| 31072 |
printf %s "(cached) " >&6 |
| 31073 |
else case e in #( |
| 31074 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31075 |
CFLAGS="${CFLAGS_ac} -Wuninitialized ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31076 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31077 |
ac_c_werror_flag=yes |
| 31078 |
# Reuse the same source for all the checks here |
| 31079 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31080 |
/* end confdefs.h. */ |
| 31081 |
|
| 31082 |
int main(void) |
| 31083 |
{ |
| 31084 |
return 0; |
| 31085 |
} |
| 31086 |
|
| 31087 |
_ACEOF |
| 31088 |
if ac_fn_c_try_link "$LINENO" |
| 31089 |
then : |
| 31090 |
mhd_cv_cc_cfl_supp__Wuninitialized="yes" |
| 31091 |
else case e in #( |
| 31092 |
e) # Compile and link failed with test flag added |
| 31093 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31094 |
if ac_fn_c_try_link "$LINENO" |
| 31095 |
then : |
| 31096 |
mhd_cv_cc_cfl_supp__Wuninitialized="no" |
| 31097 |
else case e in #( |
| 31098 |
e) # Compile and link failed with test flag removed as well |
| 31099 |
CFLAGS="${CFLAGS_ac} -Wuninitialized ${mhd_check_cc_flag_save_CFLAGS}" |
| 31100 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31101 |
if ac_fn_c_try_link "$LINENO" |
| 31102 |
then : |
| 31103 |
mhd_cv_cc_cfl_supp__Wuninitialized="yes" |
| 31104 |
else case e in #( |
| 31105 |
e) mhd_cv_cc_cfl_supp__Wuninitialized="no" ;; |
| 31106 |
esac |
| 31107 |
fi |
| 31108 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31109 |
conftest$ac_exeext |
| 31110 |
|
| 31111 |
;; |
| 31112 |
esac |
| 31113 |
fi |
| 31114 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31115 |
conftest$ac_exeext |
| 31116 |
|
| 31117 |
;; |
| 31118 |
esac |
| 31119 |
fi |
| 31120 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31121 |
conftest$ac_exeext |
| 31122 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31123 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31124 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31125 |
|
| 31126 |
;; |
| 31127 |
esac |
| 31128 |
fi |
| 31129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wuninitialized" >&5 |
| 31130 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wuninitialized" >&6; } |
| 31131 |
if test "x$mhd_cv_cc_cfl_supp__Wuninitialized" = x"yes" |
| 31132 |
then : |
| 31133 |
if test -z "${CFLAGS_ac}" |
| 31134 |
then : |
| 31135 |
CFLAGS_ac="-Wuninitialized" |
| 31136 |
else case e in #( |
| 31137 |
e) CFLAGS_ac="${CFLAGS_ac} -Wuninitialized" ;; |
| 31138 |
esac |
| 31139 |
fi |
| 31140 |
|
| 31141 |
|
| 31142 |
fi |
| 31143 |
|
| 31144 |
|
| 31145 |
|
| 31146 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Winit-self flag" >&5 |
| 31147 |
printf %s "checking whether $CC supports -Winit-self flag... " >&6; } |
| 31148 |
if test ${mhd_cv_cc_cfl_supp__Winit_self+y} |
| 31149 |
then : |
| 31150 |
printf %s "(cached) " >&6 |
| 31151 |
else case e in #( |
| 31152 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31153 |
CFLAGS="${CFLAGS_ac} -Winit-self ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31154 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31155 |
ac_c_werror_flag=yes |
| 31156 |
# Reuse the same source for all the checks here |
| 31157 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31158 |
/* end confdefs.h. */ |
| 31159 |
|
| 31160 |
int main(void) |
| 31161 |
{ |
| 31162 |
return 0; |
| 31163 |
} |
| 31164 |
|
| 31165 |
_ACEOF |
| 31166 |
if ac_fn_c_try_link "$LINENO" |
| 31167 |
then : |
| 31168 |
mhd_cv_cc_cfl_supp__Winit_self="yes" |
| 31169 |
else case e in #( |
| 31170 |
e) # Compile and link failed with test flag added |
| 31171 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31172 |
if ac_fn_c_try_link "$LINENO" |
| 31173 |
then : |
| 31174 |
mhd_cv_cc_cfl_supp__Winit_self="no" |
| 31175 |
else case e in #( |
| 31176 |
e) # Compile and link failed with test flag removed as well |
| 31177 |
CFLAGS="${CFLAGS_ac} -Winit-self ${mhd_check_cc_flag_save_CFLAGS}" |
| 31178 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31179 |
if ac_fn_c_try_link "$LINENO" |
| 31180 |
then : |
| 31181 |
mhd_cv_cc_cfl_supp__Winit_self="yes" |
| 31182 |
else case e in #( |
| 31183 |
e) mhd_cv_cc_cfl_supp__Winit_self="no" ;; |
| 31184 |
esac |
| 31185 |
fi |
| 31186 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31187 |
conftest$ac_exeext |
| 31188 |
|
| 31189 |
;; |
| 31190 |
esac |
| 31191 |
fi |
| 31192 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31193 |
conftest$ac_exeext |
| 31194 |
|
| 31195 |
;; |
| 31196 |
esac |
| 31197 |
fi |
| 31198 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31199 |
conftest$ac_exeext |
| 31200 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31201 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31202 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31203 |
|
| 31204 |
;; |
| 31205 |
esac |
| 31206 |
fi |
| 31207 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Winit_self" >&5 |
| 31208 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Winit_self" >&6; } |
| 31209 |
if test "x$mhd_cv_cc_cfl_supp__Winit_self" = x"yes" |
| 31210 |
then : |
| 31211 |
if test -z "${CFLAGS_ac}" |
| 31212 |
then : |
| 31213 |
CFLAGS_ac="-Winit-self" |
| 31214 |
else case e in #( |
| 31215 |
e) CFLAGS_ac="${CFLAGS_ac} -Winit-self" ;; |
| 31216 |
esac |
| 31217 |
fi |
| 31218 |
|
| 31219 |
|
| 31220 |
fi |
| 31221 |
|
| 31222 |
|
| 31223 |
|
| 31224 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Walloc-zero flag" >&5 |
| 31225 |
printf %s "checking whether $CC supports -Walloc-zero flag... " >&6; } |
| 31226 |
if test ${mhd_cv_cc_cfl_supp__Walloc_zero+y} |
| 31227 |
then : |
| 31228 |
printf %s "(cached) " >&6 |
| 31229 |
else case e in #( |
| 31230 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31231 |
CFLAGS="${CFLAGS_ac} -Walloc-zero ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31232 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31233 |
ac_c_werror_flag=yes |
| 31234 |
# Reuse the same source for all the checks here |
| 31235 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31236 |
/* end confdefs.h. */ |
| 31237 |
|
| 31238 |
int main(void) |
| 31239 |
{ |
| 31240 |
return 0; |
| 31241 |
} |
| 31242 |
|
| 31243 |
_ACEOF |
| 31244 |
if ac_fn_c_try_link "$LINENO" |
| 31245 |
then : |
| 31246 |
mhd_cv_cc_cfl_supp__Walloc_zero="yes" |
| 31247 |
else case e in #( |
| 31248 |
e) # Compile and link failed with test flag added |
| 31249 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31250 |
if ac_fn_c_try_link "$LINENO" |
| 31251 |
then : |
| 31252 |
mhd_cv_cc_cfl_supp__Walloc_zero="no" |
| 31253 |
else case e in #( |
| 31254 |
e) # Compile and link failed with test flag removed as well |
| 31255 |
CFLAGS="${CFLAGS_ac} -Walloc-zero ${mhd_check_cc_flag_save_CFLAGS}" |
| 31256 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31257 |
if ac_fn_c_try_link "$LINENO" |
| 31258 |
then : |
| 31259 |
mhd_cv_cc_cfl_supp__Walloc_zero="yes" |
| 31260 |
else case e in #( |
| 31261 |
e) mhd_cv_cc_cfl_supp__Walloc_zero="no" ;; |
| 31262 |
esac |
| 31263 |
fi |
| 31264 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31265 |
conftest$ac_exeext |
| 31266 |
|
| 31267 |
;; |
| 31268 |
esac |
| 31269 |
fi |
| 31270 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31271 |
conftest$ac_exeext |
| 31272 |
|
| 31273 |
;; |
| 31274 |
esac |
| 31275 |
fi |
| 31276 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31277 |
conftest$ac_exeext |
| 31278 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31279 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31280 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31281 |
|
| 31282 |
;; |
| 31283 |
esac |
| 31284 |
fi |
| 31285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Walloc_zero" >&5 |
| 31286 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Walloc_zero" >&6; } |
| 31287 |
if test "x$mhd_cv_cc_cfl_supp__Walloc_zero" = x"yes" |
| 31288 |
then : |
| 31289 |
if test -z "${CFLAGS_ac}" |
| 31290 |
then : |
| 31291 |
CFLAGS_ac="-Walloc-zero" |
| 31292 |
else case e in #( |
| 31293 |
e) CFLAGS_ac="${CFLAGS_ac} -Walloc-zero" ;; |
| 31294 |
esac |
| 31295 |
fi |
| 31296 |
|
| 31297 |
|
| 31298 |
fi |
| 31299 |
|
| 31300 |
|
| 31301 |
|
| 31302 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wbidi-chars=any flag" >&5 |
| 31303 |
printf %s "checking whether $CC supports -Wbidi-chars=any flag... " >&6; } |
| 31304 |
if test ${mhd_cv_cc_cfl_supp__Wbidi_chars_any+y} |
| 31305 |
then : |
| 31306 |
printf %s "(cached) " >&6 |
| 31307 |
else case e in #( |
| 31308 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31309 |
CFLAGS="${CFLAGS_ac} -Wbidi-chars=any ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31310 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31311 |
ac_c_werror_flag=yes |
| 31312 |
# Reuse the same source for all the checks here |
| 31313 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31314 |
/* end confdefs.h. */ |
| 31315 |
|
| 31316 |
int main(void) |
| 31317 |
{ |
| 31318 |
return 0; |
| 31319 |
} |
| 31320 |
|
| 31321 |
_ACEOF |
| 31322 |
if ac_fn_c_try_link "$LINENO" |
| 31323 |
then : |
| 31324 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="yes" |
| 31325 |
else case e in #( |
| 31326 |
e) # Compile and link failed with test flag added |
| 31327 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31328 |
if ac_fn_c_try_link "$LINENO" |
| 31329 |
then : |
| 31330 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="no" |
| 31331 |
else case e in #( |
| 31332 |
e) # Compile and link failed with test flag removed as well |
| 31333 |
CFLAGS="${CFLAGS_ac} -Wbidi-chars=any ${mhd_check_cc_flag_save_CFLAGS}" |
| 31334 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31335 |
if ac_fn_c_try_link "$LINENO" |
| 31336 |
then : |
| 31337 |
mhd_cv_cc_cfl_supp__Wbidi_chars_any="yes" |
| 31338 |
else case e in #( |
| 31339 |
e) mhd_cv_cc_cfl_supp__Wbidi_chars_any="no" ;; |
| 31340 |
esac |
| 31341 |
fi |
| 31342 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31343 |
conftest$ac_exeext |
| 31344 |
|
| 31345 |
;; |
| 31346 |
esac |
| 31347 |
fi |
| 31348 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31349 |
conftest$ac_exeext |
| 31350 |
|
| 31351 |
;; |
| 31352 |
esac |
| 31353 |
fi |
| 31354 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31355 |
conftest$ac_exeext |
| 31356 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31357 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31358 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31359 |
|
| 31360 |
;; |
| 31361 |
esac |
| 31362 |
fi |
| 31363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wbidi_chars_any" >&5 |
| 31364 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wbidi_chars_any" >&6; } |
| 31365 |
if test "x$mhd_cv_cc_cfl_supp__Wbidi_chars_any" = x"yes" |
| 31366 |
then : |
| 31367 |
if test -z "${CFLAGS_ac}" |
| 31368 |
then : |
| 31369 |
CFLAGS_ac="-Wbidi-chars=any" |
| 31370 |
else case e in #( |
| 31371 |
e) CFLAGS_ac="${CFLAGS_ac} -Wbidi-chars=any" ;; |
| 31372 |
esac |
| 31373 |
fi |
| 31374 |
|
| 31375 |
|
| 31376 |
fi |
| 31377 |
|
| 31378 |
|
| 31379 |
|
| 31380 |
|
| 31381 |
|
| 31382 |
fi |
| 31383 |
if test "x$enable_build_type" = x"release" |
| 31384 |
then : |
| 31385 |
# Flags are not suitable for 'compact' and for 'hardened' |
| 31386 |
|
| 31387 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ffast-math flag" >&5 |
| 31388 |
printf %s "checking whether $CC supports -ffast-math flag... " >&6; } |
| 31389 |
if test ${mhd_cv_cc_cfl_supp__ffast_math+y} |
| 31390 |
then : |
| 31391 |
printf %s "(cached) " >&6 |
| 31392 |
else case e in #( |
| 31393 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31394 |
CFLAGS="${CFLAGS_ac} -ffast-math ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31395 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31396 |
ac_c_werror_flag=yes |
| 31397 |
# Reuse the same source for all the checks here |
| 31398 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31399 |
/* end confdefs.h. */ |
| 31400 |
|
| 31401 |
int main(void) |
| 31402 |
{ |
| 31403 |
return 0; |
| 31404 |
} |
| 31405 |
|
| 31406 |
_ACEOF |
| 31407 |
if ac_fn_c_try_link "$LINENO" |
| 31408 |
then : |
| 31409 |
mhd_cv_cc_cfl_supp__ffast_math="yes" |
| 31410 |
else case e in #( |
| 31411 |
e) # Compile and link failed with test flag added |
| 31412 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31413 |
if ac_fn_c_try_link "$LINENO" |
| 31414 |
then : |
| 31415 |
mhd_cv_cc_cfl_supp__ffast_math="no" |
| 31416 |
else case e in #( |
| 31417 |
e) # Compile and link failed with test flag removed as well |
| 31418 |
CFLAGS="${CFLAGS_ac} -ffast-math ${mhd_check_cc_flag_save_CFLAGS}" |
| 31419 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31420 |
if ac_fn_c_try_link "$LINENO" |
| 31421 |
then : |
| 31422 |
mhd_cv_cc_cfl_supp__ffast_math="yes" |
| 31423 |
else case e in #( |
| 31424 |
e) mhd_cv_cc_cfl_supp__ffast_math="no" ;; |
| 31425 |
esac |
| 31426 |
fi |
| 31427 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31428 |
conftest$ac_exeext |
| 31429 |
|
| 31430 |
;; |
| 31431 |
esac |
| 31432 |
fi |
| 31433 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31434 |
conftest$ac_exeext |
| 31435 |
|
| 31436 |
;; |
| 31437 |
esac |
| 31438 |
fi |
| 31439 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31440 |
conftest$ac_exeext |
| 31441 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31442 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31443 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31444 |
|
| 31445 |
;; |
| 31446 |
esac |
| 31447 |
fi |
| 31448 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ffast_math" >&5 |
| 31449 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ffast_math" >&6; } |
| 31450 |
if test "x$mhd_cv_cc_cfl_supp__ffast_math" = x"yes" |
| 31451 |
then : |
| 31452 |
if test -z "${CFLAGS_ac}" |
| 31453 |
then : |
| 31454 |
CFLAGS_ac="-ffast-math" |
| 31455 |
else case e in #( |
| 31456 |
e) CFLAGS_ac="${CFLAGS_ac} -ffast-math" ;; |
| 31457 |
esac |
| 31458 |
fi |
| 31459 |
|
| 31460 |
|
| 31461 |
fi |
| 31462 |
|
| 31463 |
|
| 31464 |
|
| 31465 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fno-trapping-math flag" >&5 |
| 31466 |
printf %s "checking whether $CC supports -fno-trapping-math flag... " >&6; } |
| 31467 |
if test ${mhd_cv_cc_cfl_supp__fno_trapping_math+y} |
| 31468 |
then : |
| 31469 |
printf %s "(cached) " >&6 |
| 31470 |
else case e in #( |
| 31471 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 31472 |
CFLAGS="${CFLAGS_ac} -fno-trapping-math ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31473 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31474 |
ac_c_werror_flag=yes |
| 31475 |
# Reuse the same source for all the checks here |
| 31476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31477 |
/* end confdefs.h. */ |
| 31478 |
|
| 31479 |
int main(void) |
| 31480 |
{ |
| 31481 |
return 0; |
| 31482 |
} |
| 31483 |
|
| 31484 |
_ACEOF |
| 31485 |
if ac_fn_c_try_link "$LINENO" |
| 31486 |
then : |
| 31487 |
mhd_cv_cc_cfl_supp__fno_trapping_math="yes" |
| 31488 |
else case e in #( |
| 31489 |
e) # Compile and link failed with test flag added |
| 31490 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31491 |
if ac_fn_c_try_link "$LINENO" |
| 31492 |
then : |
| 31493 |
mhd_cv_cc_cfl_supp__fno_trapping_math="no" |
| 31494 |
else case e in #( |
| 31495 |
e) # Compile and link failed with test flag removed as well |
| 31496 |
CFLAGS="${CFLAGS_ac} -fno-trapping-math ${mhd_check_cc_flag_save_CFLAGS}" |
| 31497 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31498 |
if ac_fn_c_try_link "$LINENO" |
| 31499 |
then : |
| 31500 |
mhd_cv_cc_cfl_supp__fno_trapping_math="yes" |
| 31501 |
else case e in #( |
| 31502 |
e) mhd_cv_cc_cfl_supp__fno_trapping_math="no" ;; |
| 31503 |
esac |
| 31504 |
fi |
| 31505 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31506 |
conftest$ac_exeext |
| 31507 |
|
| 31508 |
;; |
| 31509 |
esac |
| 31510 |
fi |
| 31511 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31512 |
conftest$ac_exeext |
| 31513 |
|
| 31514 |
;; |
| 31515 |
esac |
| 31516 |
fi |
| 31517 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31518 |
conftest$ac_exeext |
| 31519 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31520 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 31521 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 31522 |
|
| 31523 |
;; |
| 31524 |
esac |
| 31525 |
fi |
| 31526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fno_trapping_math" >&5 |
| 31527 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fno_trapping_math" >&6; } |
| 31528 |
if test "x$mhd_cv_cc_cfl_supp__fno_trapping_math" = x"yes" |
| 31529 |
then : |
| 31530 |
if test -z "${CFLAGS_ac}" |
| 31531 |
then : |
| 31532 |
CFLAGS_ac="-fno-trapping-math" |
| 31533 |
else case e in #( |
| 31534 |
e) CFLAGS_ac="${CFLAGS_ac} -fno-trapping-math" ;; |
| 31535 |
esac |
| 31536 |
fi |
| 31537 |
|
| 31538 |
|
| 31539 |
fi |
| 31540 |
|
| 31541 |
|
| 31542 |
|
| 31543 |
|
| 31544 |
|
| 31545 |
fi |
| 31546 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 31547 |
# W32-specific |
| 31548 |
LDFLAGS="${user_LDFLAGS}" |
| 31549 |
|
| 31550 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--disable-long-section-names flag" >&5 |
| 31551 |
printf %s "checking whether $CC supports -Wl,--disable-long-section-names flag... " >&6; } |
| 31552 |
if test ${mhd_cv_cc_lfl_supp__Wl___disable_long_section_names+y} |
| 31553 |
then : |
| 31554 |
printf %s "(cached) " >&6 |
| 31555 |
else case e in #( |
| 31556 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 31557 |
LDFLAGS="${LDFLAGS_ac} -Wl,--disable-long-section-names ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31558 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 31559 |
ac_c_werror_flag=yes |
| 31560 |
# Reuse the same source for all the checks here |
| 31561 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31562 |
/* end confdefs.h. */ |
| 31563 |
|
| 31564 |
int main(void) |
| 31565 |
{ |
| 31566 |
return 0; |
| 31567 |
} |
| 31568 |
|
| 31569 |
_ACEOF |
| 31570 |
if ac_fn_c_try_link "$LINENO" |
| 31571 |
then : |
| 31572 |
mhd_cv_cc_lfl_supp__Wl___disable_long_section_names="yes" |
| 31573 |
else case e in #( |
| 31574 |
e) # Compile and link failed with test flag added |
| 31575 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 31576 |
if ac_fn_c_try_link "$LINENO" |
| 31577 |
then : |
| 31578 |
mhd_cv_cc_lfl_supp__Wl___disable_long_section_names="no" |
| 31579 |
else case e in #( |
| 31580 |
e) # Compile and link failed with test flag removed as well |
| 31581 |
LDFLAGS="${LDFLAGS_ac} -Wl,--disable-long-section-names ${mhd_check_cc_flag_save_LDFLAGS}" |
| 31582 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31583 |
if ac_fn_c_try_link "$LINENO" |
| 31584 |
then : |
| 31585 |
mhd_cv_cc_lfl_supp__Wl___disable_long_section_names="yes" |
| 31586 |
else case e in #( |
| 31587 |
e) mhd_cv_cc_lfl_supp__Wl___disable_long_section_names="no" ;; |
| 31588 |
esac |
| 31589 |
fi |
| 31590 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31591 |
conftest$ac_exeext |
| 31592 |
|
| 31593 |
;; |
| 31594 |
esac |
| 31595 |
fi |
| 31596 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31597 |
conftest$ac_exeext |
| 31598 |
|
| 31599 |
;; |
| 31600 |
esac |
| 31601 |
fi |
| 31602 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31603 |
conftest$ac_exeext |
| 31604 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 31605 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 31606 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 31607 |
|
| 31608 |
;; |
| 31609 |
esac |
| 31610 |
fi |
| 31611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___disable_long_section_names" >&5 |
| 31612 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___disable_long_section_names" >&6; } |
| 31613 |
if test "x$mhd_cv_cc_lfl_supp__Wl___disable_long_section_names" = x"yes" |
| 31614 |
then : |
| 31615 |
if test -z "${LDFLAGS_ac}" |
| 31616 |
then : |
| 31617 |
LDFLAGS_ac="-Wl,--disable-long-section-names" |
| 31618 |
else case e in #( |
| 31619 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--disable-long-section-names" ;; |
| 31620 |
esac |
| 31621 |
fi |
| 31622 |
|
| 31623 |
|
| 31624 |
fi |
| 31625 |
|
| 31626 |
|
| 31627 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 31628 |
|
| 31629 |
;; #( |
| 31630 |
*) : |
| 31631 |
;; |
| 31632 |
esac |
| 31633 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 31634 |
# Additional flags are checked and added at the end of 'configure' |
| 31635 |
|
| 31636 |
# Check for headers that are ALWAYS required |
| 31637 |
|
| 31638 |
|
| 31639 |
|
| 31640 |
|
| 31641 |
|
| 31642 |
# Check for basic optional headers |
| 31643 |
ac_fn_c_check_header_compile "$LINENO" "stddef.h" "ac_cv_header_stddef_h" "$ac_includes_default |
| 31644 |
" |
| 31645 |
if test "x$ac_cv_header_stddef_h" = xyes |
| 31646 |
then : |
| 31647 |
printf "%s\n" "#define HAVE_STDDEF_H 1" >>confdefs.h |
| 31648 |
|
| 31649 |
fi |
| 31650 |
ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default |
| 31651 |
" |
| 31652 |
if test "x$ac_cv_header_stdlib_h" = xyes |
| 31653 |
then : |
| 31654 |
printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h |
| 31655 |
|
| 31656 |
fi |
| 31657 |
ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default |
| 31658 |
" |
| 31659 |
if test "x$ac_cv_header_inttypes_h" = xyes |
| 31660 |
then : |
| 31661 |
printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h |
| 31662 |
|
| 31663 |
fi |
| 31664 |
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default |
| 31665 |
" |
| 31666 |
if test "x$ac_cv_header_sys_types_h" = xyes |
| 31667 |
then : |
| 31668 |
printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 31669 |
|
| 31670 |
fi |
| 31671 |
ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default |
| 31672 |
" |
| 31673 |
if test "x$ac_cv_header_sys_stat_h" = xyes |
| 31674 |
then : |
| 31675 |
printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h |
| 31676 |
|
| 31677 |
fi |
| 31678 |
ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default |
| 31679 |
" |
| 31680 |
if test "x$ac_cv_header_unistd_h" = xyes |
| 31681 |
then : |
| 31682 |
printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h |
| 31683 |
|
| 31684 |
fi |
| 31685 |
ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default |
| 31686 |
" |
| 31687 |
if test "x$ac_cv_header_sys_uio_h" = xyes |
| 31688 |
then : |
| 31689 |
printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
| 31690 |
|
| 31691 |
fi |
| 31692 |
|
| 31693 |
|
| 31694 |
# Check for clock-specific optional headers |
| 31695 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default |
| 31696 |
" |
| 31697 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 31698 |
then : |
| 31699 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 31700 |
|
| 31701 |
fi |
| 31702 |
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default |
| 31703 |
" |
| 31704 |
if test "x$ac_cv_header_time_h" = xyes |
| 31705 |
then : |
| 31706 |
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 31707 |
|
| 31708 |
fi |
| 31709 |
|
| 31710 |
|
| 31711 |
# Check for system information and parameters optional headers |
| 31712 |
ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default |
| 31713 |
" |
| 31714 |
if test "x$ac_cv_header_endian_h" = xyes |
| 31715 |
then : |
| 31716 |
printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h |
| 31717 |
|
| 31718 |
fi |
| 31719 |
ac_fn_c_check_header_compile "$LINENO" "machine/endian.h" "ac_cv_header_machine_endian_h" "$ac_includes_default |
| 31720 |
" |
| 31721 |
if test "x$ac_cv_header_machine_endian_h" = xyes |
| 31722 |
then : |
| 31723 |
printf "%s\n" "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h |
| 31724 |
|
| 31725 |
fi |
| 31726 |
ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default |
| 31727 |
" |
| 31728 |
if test "x$ac_cv_header_sys_endian_h" = xyes |
| 31729 |
then : |
| 31730 |
printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h |
| 31731 |
|
| 31732 |
fi |
| 31733 |
ac_fn_c_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default |
| 31734 |
" |
| 31735 |
if test "x$ac_cv_header_sys_byteorder_h" = xyes |
| 31736 |
then : |
| 31737 |
printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h |
| 31738 |
|
| 31739 |
fi |
| 31740 |
ac_fn_c_check_header_compile "$LINENO" "sys/machine.h" "ac_cv_header_sys_machine_h" "$ac_includes_default |
| 31741 |
" |
| 31742 |
if test "x$ac_cv_header_sys_machine_h" = xyes |
| 31743 |
then : |
| 31744 |
printf "%s\n" "#define HAVE_SYS_MACHINE_H 1" >>confdefs.h |
| 31745 |
|
| 31746 |
fi |
| 31747 |
ac_fn_c_check_header_compile "$LINENO" "machine/param.h" "ac_cv_header_machine_param_h" "$ac_includes_default |
| 31748 |
" |
| 31749 |
if test "x$ac_cv_header_machine_param_h" = xyes |
| 31750 |
then : |
| 31751 |
printf "%s\n" "#define HAVE_MACHINE_PARAM_H 1" >>confdefs.h |
| 31752 |
|
| 31753 |
fi |
| 31754 |
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default |
| 31755 |
" |
| 31756 |
if test "x$ac_cv_header_sys_param_h" = xyes |
| 31757 |
then : |
| 31758 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 31759 |
|
| 31760 |
fi |
| 31761 |
ac_fn_c_check_header_compile "$LINENO" "sys/isa_defs.h" "ac_cv_header_sys_isa_defs_h" "$ac_includes_default |
| 31762 |
" |
| 31763 |
if test "x$ac_cv_header_sys_isa_defs_h" = xyes |
| 31764 |
then : |
| 31765 |
printf "%s\n" "#define HAVE_SYS_ISA_DEFS_H 1" >>confdefs.h |
| 31766 |
|
| 31767 |
fi |
| 31768 |
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default |
| 31769 |
" |
| 31770 |
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 31771 |
then : |
| 31772 |
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 31773 |
|
| 31774 |
fi |
| 31775 |
|
| 31776 |
|
| 31777 |
# Check for network and sockets optional headers |
| 31778 |
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default |
| 31779 |
|
| 31780 |
#ifdef HAVE_SYS_TYPES_H |
| 31781 |
#include <sys/types.h> |
| 31782 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31783 |
#ifdef HAVE_INTTYPES_H |
| 31784 |
#include <inttypes.h> |
| 31785 |
#endif /* HAVE_INTTYPES_H */ |
| 31786 |
#ifdef HAVE_SYS_SOCKET_H |
| 31787 |
#include <sys/socket.h> |
| 31788 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31789 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31790 |
#include <netinet/in_systm.h> |
| 31791 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31792 |
#ifdef HAVE_NETINET_IN_H |
| 31793 |
#include <netinet/in.h> |
| 31794 |
#endif /* HAVE_NETINET_IN_H */ |
| 31795 |
#ifdef HAVE_NETINET_IP_H |
| 31796 |
#include <netinet/ip.h> |
| 31797 |
#endif /* HAVE_NETINET_IP_H */ |
| 31798 |
#ifdef HAVE_NETINET_TCP_H |
| 31799 |
#include <netinet/tcp.h> |
| 31800 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31801 |
|
| 31802 |
|
| 31803 |
" |
| 31804 |
if test "x$ac_cv_header_sys_socket_h" = xyes |
| 31805 |
then : |
| 31806 |
printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 31807 |
|
| 31808 |
fi |
| 31809 |
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default |
| 31810 |
|
| 31811 |
#ifdef HAVE_SYS_TYPES_H |
| 31812 |
#include <sys/types.h> |
| 31813 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31814 |
#ifdef HAVE_INTTYPES_H |
| 31815 |
#include <inttypes.h> |
| 31816 |
#endif /* HAVE_INTTYPES_H */ |
| 31817 |
#ifdef HAVE_SYS_SOCKET_H |
| 31818 |
#include <sys/socket.h> |
| 31819 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31820 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31821 |
#include <netinet/in_systm.h> |
| 31822 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31823 |
#ifdef HAVE_NETINET_IN_H |
| 31824 |
#include <netinet/in.h> |
| 31825 |
#endif /* HAVE_NETINET_IN_H */ |
| 31826 |
#ifdef HAVE_NETINET_IP_H |
| 31827 |
#include <netinet/ip.h> |
| 31828 |
#endif /* HAVE_NETINET_IP_H */ |
| 31829 |
#ifdef HAVE_NETINET_TCP_H |
| 31830 |
#include <netinet/tcp.h> |
| 31831 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31832 |
|
| 31833 |
|
| 31834 |
" |
| 31835 |
if test "x$ac_cv_header_sys_select_h" = xyes |
| 31836 |
then : |
| 31837 |
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 31838 |
|
| 31839 |
fi |
| 31840 |
ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "$ac_includes_default |
| 31841 |
|
| 31842 |
#ifdef HAVE_SYS_TYPES_H |
| 31843 |
#include <sys/types.h> |
| 31844 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31845 |
#ifdef HAVE_INTTYPES_H |
| 31846 |
#include <inttypes.h> |
| 31847 |
#endif /* HAVE_INTTYPES_H */ |
| 31848 |
#ifdef HAVE_SYS_SOCKET_H |
| 31849 |
#include <sys/socket.h> |
| 31850 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31851 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31852 |
#include <netinet/in_systm.h> |
| 31853 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31854 |
#ifdef HAVE_NETINET_IN_H |
| 31855 |
#include <netinet/in.h> |
| 31856 |
#endif /* HAVE_NETINET_IN_H */ |
| 31857 |
#ifdef HAVE_NETINET_IP_H |
| 31858 |
#include <netinet/ip.h> |
| 31859 |
#endif /* HAVE_NETINET_IP_H */ |
| 31860 |
#ifdef HAVE_NETINET_TCP_H |
| 31861 |
#include <netinet/tcp.h> |
| 31862 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31863 |
|
| 31864 |
|
| 31865 |
" |
| 31866 |
if test "x$ac_cv_header_netinet_in_systm_h" = xyes |
| 31867 |
then : |
| 31868 |
printf "%s\n" "#define HAVE_NETINET_IN_SYSTM_H 1" >>confdefs.h |
| 31869 |
|
| 31870 |
fi |
| 31871 |
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default |
| 31872 |
|
| 31873 |
#ifdef HAVE_SYS_TYPES_H |
| 31874 |
#include <sys/types.h> |
| 31875 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31876 |
#ifdef HAVE_INTTYPES_H |
| 31877 |
#include <inttypes.h> |
| 31878 |
#endif /* HAVE_INTTYPES_H */ |
| 31879 |
#ifdef HAVE_SYS_SOCKET_H |
| 31880 |
#include <sys/socket.h> |
| 31881 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31882 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31883 |
#include <netinet/in_systm.h> |
| 31884 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31885 |
#ifdef HAVE_NETINET_IN_H |
| 31886 |
#include <netinet/in.h> |
| 31887 |
#endif /* HAVE_NETINET_IN_H */ |
| 31888 |
#ifdef HAVE_NETINET_IP_H |
| 31889 |
#include <netinet/ip.h> |
| 31890 |
#endif /* HAVE_NETINET_IP_H */ |
| 31891 |
#ifdef HAVE_NETINET_TCP_H |
| 31892 |
#include <netinet/tcp.h> |
| 31893 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31894 |
|
| 31895 |
|
| 31896 |
" |
| 31897 |
if test "x$ac_cv_header_netinet_in_h" = xyes |
| 31898 |
then : |
| 31899 |
printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h |
| 31900 |
|
| 31901 |
fi |
| 31902 |
ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default |
| 31903 |
|
| 31904 |
#ifdef HAVE_SYS_TYPES_H |
| 31905 |
#include <sys/types.h> |
| 31906 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31907 |
#ifdef HAVE_INTTYPES_H |
| 31908 |
#include <inttypes.h> |
| 31909 |
#endif /* HAVE_INTTYPES_H */ |
| 31910 |
#ifdef HAVE_SYS_SOCKET_H |
| 31911 |
#include <sys/socket.h> |
| 31912 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31913 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31914 |
#include <netinet/in_systm.h> |
| 31915 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31916 |
#ifdef HAVE_NETINET_IN_H |
| 31917 |
#include <netinet/in.h> |
| 31918 |
#endif /* HAVE_NETINET_IN_H */ |
| 31919 |
#ifdef HAVE_NETINET_IP_H |
| 31920 |
#include <netinet/ip.h> |
| 31921 |
#endif /* HAVE_NETINET_IP_H */ |
| 31922 |
#ifdef HAVE_NETINET_TCP_H |
| 31923 |
#include <netinet/tcp.h> |
| 31924 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31925 |
|
| 31926 |
|
| 31927 |
" |
| 31928 |
if test "x$ac_cv_header_arpa_inet_h" = xyes |
| 31929 |
then : |
| 31930 |
printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h |
| 31931 |
|
| 31932 |
fi |
| 31933 |
ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "$ac_includes_default |
| 31934 |
|
| 31935 |
#ifdef HAVE_SYS_TYPES_H |
| 31936 |
#include <sys/types.h> |
| 31937 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31938 |
#ifdef HAVE_INTTYPES_H |
| 31939 |
#include <inttypes.h> |
| 31940 |
#endif /* HAVE_INTTYPES_H */ |
| 31941 |
#ifdef HAVE_SYS_SOCKET_H |
| 31942 |
#include <sys/socket.h> |
| 31943 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31944 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31945 |
#include <netinet/in_systm.h> |
| 31946 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31947 |
#ifdef HAVE_NETINET_IN_H |
| 31948 |
#include <netinet/in.h> |
| 31949 |
#endif /* HAVE_NETINET_IN_H */ |
| 31950 |
#ifdef HAVE_NETINET_IP_H |
| 31951 |
#include <netinet/ip.h> |
| 31952 |
#endif /* HAVE_NETINET_IP_H */ |
| 31953 |
#ifdef HAVE_NETINET_TCP_H |
| 31954 |
#include <netinet/tcp.h> |
| 31955 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31956 |
|
| 31957 |
|
| 31958 |
" |
| 31959 |
if test "x$ac_cv_header_netinet_ip_h" = xyes |
| 31960 |
then : |
| 31961 |
printf "%s\n" "#define HAVE_NETINET_IP_H 1" >>confdefs.h |
| 31962 |
|
| 31963 |
fi |
| 31964 |
ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default |
| 31965 |
|
| 31966 |
#ifdef HAVE_SYS_TYPES_H |
| 31967 |
#include <sys/types.h> |
| 31968 |
#endif /* HAVE_SYS_TYPES_H */ |
| 31969 |
#ifdef HAVE_INTTYPES_H |
| 31970 |
#include <inttypes.h> |
| 31971 |
#endif /* HAVE_INTTYPES_H */ |
| 31972 |
#ifdef HAVE_SYS_SOCKET_H |
| 31973 |
#include <sys/socket.h> |
| 31974 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 31975 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 31976 |
#include <netinet/in_systm.h> |
| 31977 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 31978 |
#ifdef HAVE_NETINET_IN_H |
| 31979 |
#include <netinet/in.h> |
| 31980 |
#endif /* HAVE_NETINET_IN_H */ |
| 31981 |
#ifdef HAVE_NETINET_IP_H |
| 31982 |
#include <netinet/ip.h> |
| 31983 |
#endif /* HAVE_NETINET_IP_H */ |
| 31984 |
#ifdef HAVE_NETINET_TCP_H |
| 31985 |
#include <netinet/tcp.h> |
| 31986 |
#endif /* HAVE_NETINET_TCP_H */ |
| 31987 |
|
| 31988 |
|
| 31989 |
" |
| 31990 |
if test "x$ac_cv_header_netinet_tcp_h" = xyes |
| 31991 |
then : |
| 31992 |
printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h |
| 31993 |
|
| 31994 |
fi |
| 31995 |
ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default |
| 31996 |
|
| 31997 |
#ifdef HAVE_SYS_TYPES_H |
| 31998 |
#include <sys/types.h> |
| 31999 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32000 |
#ifdef HAVE_INTTYPES_H |
| 32001 |
#include <inttypes.h> |
| 32002 |
#endif /* HAVE_INTTYPES_H */ |
| 32003 |
#ifdef HAVE_SYS_SOCKET_H |
| 32004 |
#include <sys/socket.h> |
| 32005 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32006 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32007 |
#include <netinet/in_systm.h> |
| 32008 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32009 |
#ifdef HAVE_NETINET_IN_H |
| 32010 |
#include <netinet/in.h> |
| 32011 |
#endif /* HAVE_NETINET_IN_H */ |
| 32012 |
#ifdef HAVE_NETINET_IP_H |
| 32013 |
#include <netinet/ip.h> |
| 32014 |
#endif /* HAVE_NETINET_IP_H */ |
| 32015 |
#ifdef HAVE_NETINET_TCP_H |
| 32016 |
#include <netinet/tcp.h> |
| 32017 |
#endif /* HAVE_NETINET_TCP_H */ |
| 32018 |
|
| 32019 |
|
| 32020 |
" |
| 32021 |
if test "x$ac_cv_header_net_if_h" = xyes |
| 32022 |
then : |
| 32023 |
printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h |
| 32024 |
|
| 32025 |
fi |
| 32026 |
ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default |
| 32027 |
|
| 32028 |
#ifdef HAVE_SYS_TYPES_H |
| 32029 |
#include <sys/types.h> |
| 32030 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32031 |
#ifdef HAVE_INTTYPES_H |
| 32032 |
#include <inttypes.h> |
| 32033 |
#endif /* HAVE_INTTYPES_H */ |
| 32034 |
#ifdef HAVE_SYS_SOCKET_H |
| 32035 |
#include <sys/socket.h> |
| 32036 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32037 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32038 |
#include <netinet/in_systm.h> |
| 32039 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32040 |
#ifdef HAVE_NETINET_IN_H |
| 32041 |
#include <netinet/in.h> |
| 32042 |
#endif /* HAVE_NETINET_IN_H */ |
| 32043 |
#ifdef HAVE_NETINET_IP_H |
| 32044 |
#include <netinet/ip.h> |
| 32045 |
#endif /* HAVE_NETINET_IP_H */ |
| 32046 |
#ifdef HAVE_NETINET_TCP_H |
| 32047 |
#include <netinet/tcp.h> |
| 32048 |
#endif /* HAVE_NETINET_TCP_H */ |
| 32049 |
|
| 32050 |
|
| 32051 |
" |
| 32052 |
if test "x$ac_cv_header_netdb_h" = xyes |
| 32053 |
then : |
| 32054 |
printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h |
| 32055 |
|
| 32056 |
fi |
| 32057 |
ac_fn_c_check_header_compile "$LINENO" "sockLib.h" "ac_cv_header_sockLib_h" "$ac_includes_default |
| 32058 |
|
| 32059 |
#ifdef HAVE_SYS_TYPES_H |
| 32060 |
#include <sys/types.h> |
| 32061 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32062 |
#ifdef HAVE_INTTYPES_H |
| 32063 |
#include <inttypes.h> |
| 32064 |
#endif /* HAVE_INTTYPES_H */ |
| 32065 |
#ifdef HAVE_SYS_SOCKET_H |
| 32066 |
#include <sys/socket.h> |
| 32067 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32068 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32069 |
#include <netinet/in_systm.h> |
| 32070 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32071 |
#ifdef HAVE_NETINET_IN_H |
| 32072 |
#include <netinet/in.h> |
| 32073 |
#endif /* HAVE_NETINET_IN_H */ |
| 32074 |
#ifdef HAVE_NETINET_IP_H |
| 32075 |
#include <netinet/ip.h> |
| 32076 |
#endif /* HAVE_NETINET_IP_H */ |
| 32077 |
#ifdef HAVE_NETINET_TCP_H |
| 32078 |
#include <netinet/tcp.h> |
| 32079 |
#endif /* HAVE_NETINET_TCP_H */ |
| 32080 |
|
| 32081 |
|
| 32082 |
" |
| 32083 |
if test "x$ac_cv_header_sockLib_h" = xyes |
| 32084 |
then : |
| 32085 |
printf "%s\n" "#define HAVE_SOCKLIB_H 1" >>confdefs.h |
| 32086 |
|
| 32087 |
fi |
| 32088 |
ac_fn_c_check_header_compile "$LINENO" "inetLib.h" "ac_cv_header_inetLib_h" "$ac_includes_default |
| 32089 |
|
| 32090 |
#ifdef HAVE_SYS_TYPES_H |
| 32091 |
#include <sys/types.h> |
| 32092 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32093 |
#ifdef HAVE_INTTYPES_H |
| 32094 |
#include <inttypes.h> |
| 32095 |
#endif /* HAVE_INTTYPES_H */ |
| 32096 |
#ifdef HAVE_SYS_SOCKET_H |
| 32097 |
#include <sys/socket.h> |
| 32098 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32099 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32100 |
#include <netinet/in_systm.h> |
| 32101 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32102 |
#ifdef HAVE_NETINET_IN_H |
| 32103 |
#include <netinet/in.h> |
| 32104 |
#endif /* HAVE_NETINET_IN_H */ |
| 32105 |
#ifdef HAVE_NETINET_IP_H |
| 32106 |
#include <netinet/ip.h> |
| 32107 |
#endif /* HAVE_NETINET_IP_H */ |
| 32108 |
#ifdef HAVE_NETINET_TCP_H |
| 32109 |
#include <netinet/tcp.h> |
| 32110 |
#endif /* HAVE_NETINET_TCP_H */ |
| 32111 |
|
| 32112 |
|
| 32113 |
" |
| 32114 |
if test "x$ac_cv_header_inetLib_h" = xyes |
| 32115 |
then : |
| 32116 |
printf "%s\n" "#define HAVE_INETLIB_H 1" >>confdefs.h |
| 32117 |
|
| 32118 |
fi |
| 32119 |
|
| 32120 |
|
| 32121 |
# Check for other optional headers |
| 32122 |
ac_fn_c_check_header_compile "$LINENO" "sys/msg.h" "ac_cv_header_sys_msg_h" "$ac_includes_default |
| 32123 |
" |
| 32124 |
if test "x$ac_cv_header_sys_msg_h" = xyes |
| 32125 |
then : |
| 32126 |
printf "%s\n" "#define HAVE_SYS_MSG_H 1" >>confdefs.h |
| 32127 |
|
| 32128 |
fi |
| 32129 |
ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default |
| 32130 |
" |
| 32131 |
if test "x$ac_cv_header_sys_mman_h" = xyes |
| 32132 |
then : |
| 32133 |
printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h |
| 32134 |
|
| 32135 |
fi |
| 32136 |
ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default |
| 32137 |
" |
| 32138 |
if test "x$ac_cv_header_signal_h" = xyes |
| 32139 |
then : |
| 32140 |
printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h |
| 32141 |
|
| 32142 |
fi |
| 32143 |
|
| 32144 |
|
| 32145 |
ac_fn_c_check_header_compile "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default |
| 32146 |
|
| 32147 |
" |
| 32148 |
if test "x$ac_cv_header_search_h" = xyes |
| 32149 |
then : |
| 32150 |
|
| 32151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for proper tsearch(), tfind() and tdelete()" >&5 |
| 32152 |
printf %s "checking for proper tsearch(), tfind() and tdelete()... " >&6; } |
| 32153 |
if test ${mhd_cv_sys_tsearch_usable+y} |
| 32154 |
then : |
| 32155 |
printf %s "(cached) " >&6 |
| 32156 |
else case e in #( |
| 32157 |
e) |
| 32158 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32159 |
/* end confdefs.h. */ |
| 32160 |
|
| 32161 |
|
| 32162 |
#ifdef HAVE_STDDEF_H |
| 32163 |
#include <stddef.h> |
| 32164 |
#endif /* HAVE_STDDEF_H */ |
| 32165 |
#ifdef HAVE_STDLIB_H |
| 32166 |
#include <stdlib.h> |
| 32167 |
#endif /* HAVE_STDLIB_H */ |
| 32168 |
|
| 32169 |
#include <stdio.h> |
| 32170 |
#include <search.h> |
| 32171 |
|
| 32172 |
static int cmp_func(const void *p1, const void *p2) |
| 32173 |
{ |
| 32174 |
return (*((const int *)p1)) - (*((const int *)p2)); |
| 32175 |
} |
| 32176 |
|
| 32177 |
int main(void) |
| 32178 |
{ |
| 32179 |
int ret = 0; |
| 32180 |
void *root_ptr = NULL; |
| 32181 |
int element1 = 1; |
| 32182 |
int **element_ptr_ptr1; |
| 32183 |
int **element_ptr_ptr2; |
| 32184 |
|
| 32185 |
element_ptr_ptr1 = |
| 32186 |
(int **) tsearch ((void*) &element1, &root_ptr, &cmp_func); |
| 32187 |
if (NULL == element_ptr_ptr1) |
| 32188 |
{ |
| 32189 |
fprintf (stderr, "NULL pointer has been returned when tsearch() called for the first time.\n"); |
| 32190 |
return ++ret; |
| 32191 |
} |
| 32192 |
if (*element_ptr_ptr1 != &element1) |
| 32193 |
{ |
| 32194 |
fprintf (stderr, "Wrong pointer has been returned when tsearch() called for the first time.\n"); |
| 32195 |
return ++ret; |
| 32196 |
} |
| 32197 |
if (NULL == root_ptr) |
| 32198 |
{ |
| 32199 |
fprintf (stderr, "Root pointer has not been set by tsearch().\n"); |
| 32200 |
return ++ret; |
| 32201 |
} |
| 32202 |
|
| 32203 |
element_ptr_ptr2 = |
| 32204 |
(int **) tsearch ((void*) &element1, &root_ptr, &cmp_func); |
| 32205 |
if (NULL == element_ptr_ptr2) |
| 32206 |
{ |
| 32207 |
fprintf (stderr, "NULL pointer has been returned when tsearch() called for the second time.\n"); |
| 32208 |
return ++ret; |
| 32209 |
} |
| 32210 |
if (*element_ptr_ptr2 != &element1) |
| 32211 |
{ |
| 32212 |
fprintf (stderr, "Wrong pointer has been returned when tsearch() called for the second time.\n"); |
| 32213 |
++ret; |
| 32214 |
} |
| 32215 |
if (element_ptr_ptr2 != element_ptr_ptr1) |
| 32216 |
{ |
| 32217 |
fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n"); |
| 32218 |
++ret; |
| 32219 |
} |
| 32220 |
|
| 32221 |
element_ptr_ptr2 = |
| 32222 |
(int **) tfind ((void*) &element1, &root_ptr, &cmp_func); |
| 32223 |
if (NULL == element_ptr_ptr2) |
| 32224 |
{ |
| 32225 |
fprintf (stderr, "NULL pointer has been returned by tfind().\n"); |
| 32226 |
++ret; |
| 32227 |
} |
| 32228 |
if (*element_ptr_ptr2 != &element1) |
| 32229 |
{ |
| 32230 |
fprintf (stderr, "Wrong pointer has been returned when by tfind().\n"); |
| 32231 |
++ret; |
| 32232 |
} |
| 32233 |
if (element_ptr_ptr2 != element_ptr_ptr1) |
| 32234 |
{ |
| 32235 |
fprintf (stderr, "Wrong element has been returned when tsearch() called for the second time.\n"); |
| 32236 |
++ret; |
| 32237 |
} |
| 32238 |
|
| 32239 |
element_ptr_ptr1 = |
| 32240 |
(int **) tdelete ((void*) &element1, &root_ptr, &cmp_func); |
| 32241 |
if (NULL == element_ptr_ptr1) |
| 32242 |
{ |
| 32243 |
fprintf (stderr, "NULL pointer has been returned by tdelete().\n"); |
| 32244 |
++ret; |
| 32245 |
} |
| 32246 |
if (NULL != root_ptr) |
| 32247 |
{ |
| 32248 |
fprintf (stderr, "Root pointer has not been set to NULL by tdelete().\n"); |
| 32249 |
++ret; |
| 32250 |
} |
| 32251 |
|
| 32252 |
return ret; |
| 32253 |
} |
| 32254 |
|
| 32255 |
|
| 32256 |
|
| 32257 |
_ACEOF |
| 32258 |
if test "x$cross_compiling" = x"yes" |
| 32259 |
then : |
| 32260 |
if ac_fn_c_try_link "$LINENO" |
| 32261 |
then : |
| 32262 |
|
| 32263 |
|
| 32264 |
case $host_os in #( |
| 32265 |
openbsd*) : |
| 32266 |
# Some OpenBSD versions have wrong return value for tdelete() |
| 32267 |
mhd_cv_sys_tsearch_usable='assuming no' |
| 32268 |
;; #( |
| 32269 |
netbsd*) : |
| 32270 |
# NetBSD had leaked root node for years |
| 32271 |
mhd_cv_sys_tsearch_usable='assuming no' |
| 32272 |
;; #( |
| 32273 |
*) : |
| 32274 |
mhd_cv_sys_tsearch_usable='assuming yes' |
| 32275 |
;; |
| 32276 |
esac |
| 32277 |
|
| 32278 |
|
| 32279 |
else case e in #( |
| 32280 |
e) mhd_cv_sys_tsearch_usable='no' ;; |
| 32281 |
esac |
| 32282 |
fi |
| 32283 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32284 |
conftest$ac_exeext |
| 32285 |
else case e in #( |
| 32286 |
e) if test "$cross_compiling" = yes |
| 32287 |
then : |
| 32288 |
# Dummy placeholder |
| 32289 |
else case e in #( |
| 32290 |
e) if ac_fn_c_try_run "$LINENO" |
| 32291 |
then : |
| 32292 |
mhd_cv_sys_tsearch_usable='yes' |
| 32293 |
else case e in #( |
| 32294 |
e) mhd_cv_sys_tsearch_usable='no' ;; |
| 32295 |
esac |
| 32296 |
fi |
| 32297 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 32298 |
conftest.$ac_objext conftest.beam ;; |
| 32299 |
esac |
| 32300 |
fi |
| 32301 |
|
| 32302 |
;; |
| 32303 |
esac |
| 32304 |
fi |
| 32305 |
rm -f conftest.$ac_ext |
| 32306 |
;; |
| 32307 |
esac |
| 32308 |
fi |
| 32309 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_sys_tsearch_usable" >&5 |
| 32310 |
printf "%s\n" "$mhd_cv_sys_tsearch_usable" >&6; } |
| 32311 |
|
| 32312 |
if test "x$mhd_cv_sys_tsearch_usable" = "xyes" || test "x$mhd_cv_sys_tsearch_usable" = "xassuming yes" |
| 32313 |
then : |
| 32314 |
|
| 32315 |
printf "%s\n" "#define MHD_USE_SYS_TSEARCH 1" >>confdefs.h |
| 32316 |
|
| 32317 |
|
| 32318 |
fi |
| 32319 |
|
| 32320 |
fi |
| 32321 |
|
| 32322 |
if test "x$mhd_cv_sys_tsearch_usable" = "xyes" || test "x$mhd_cv_sys_tsearch_usable" = "xassuming yes"; then |
| 32323 |
MHD_USE_SYS_TSEARCH_TRUE= |
| 32324 |
MHD_USE_SYS_TSEARCH_FALSE='#' |
| 32325 |
else |
| 32326 |
MHD_USE_SYS_TSEARCH_TRUE='#' |
| 32327 |
MHD_USE_SYS_TSEARCH_FALSE= |
| 32328 |
fi |
| 32329 |
|
| 32330 |
|
| 32331 |
# Optional headers used for tests |
| 32332 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" " |
| 32333 |
#ifdef HAVE_SYS_TYPES_H |
| 32334 |
#include <sys/types.h> |
| 32335 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32336 |
#ifdef HAVE_SYS_SYSCTL_H |
| 32337 |
#include <sys/sysctl.h> |
| 32338 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 32339 |
#ifdef HAVE_SYS_SOCKET_H |
| 32340 |
#include <sys/socket.h> |
| 32341 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32342 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32343 |
#include <netinet/in_systm.h> |
| 32344 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32345 |
#ifdef HAVE_NETINET_IN_H |
| 32346 |
#include <netinet/in.h> |
| 32347 |
#endif /* HAVE_NETINET_IN_H */ |
| 32348 |
#ifdef HAVE_NETINET_IP_H |
| 32349 |
#include <netinet/ip.h> |
| 32350 |
#endif /* HAVE_NETINET_IP_H */ |
| 32351 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 32352 |
#include <netinet/ip_icmp.h> |
| 32353 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 32354 |
|
| 32355 |
|
| 32356 |
" |
| 32357 |
if test "x$ac_cv_header_sys_sysctl_h" = xyes |
| 32358 |
then : |
| 32359 |
printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h |
| 32360 |
|
| 32361 |
fi |
| 32362 |
ac_fn_c_check_header_compile "$LINENO" "netinet/ip_icmp.h" "ac_cv_header_netinet_ip_icmp_h" " |
| 32363 |
#ifdef HAVE_SYS_TYPES_H |
| 32364 |
#include <sys/types.h> |
| 32365 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32366 |
#ifdef HAVE_SYS_SYSCTL_H |
| 32367 |
#include <sys/sysctl.h> |
| 32368 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 32369 |
#ifdef HAVE_SYS_SOCKET_H |
| 32370 |
#include <sys/socket.h> |
| 32371 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32372 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32373 |
#include <netinet/in_systm.h> |
| 32374 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32375 |
#ifdef HAVE_NETINET_IN_H |
| 32376 |
#include <netinet/in.h> |
| 32377 |
#endif /* HAVE_NETINET_IN_H */ |
| 32378 |
#ifdef HAVE_NETINET_IP_H |
| 32379 |
#include <netinet/ip.h> |
| 32380 |
#endif /* HAVE_NETINET_IP_H */ |
| 32381 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 32382 |
#include <netinet/ip_icmp.h> |
| 32383 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 32384 |
|
| 32385 |
|
| 32386 |
" |
| 32387 |
if test "x$ac_cv_header_netinet_ip_icmp_h" = xyes |
| 32388 |
then : |
| 32389 |
printf "%s\n" "#define HAVE_NETINET_IP_ICMP_H 1" >>confdefs.h |
| 32390 |
|
| 32391 |
fi |
| 32392 |
ac_fn_c_check_header_compile "$LINENO" "netinet/icmp_var.h" "ac_cv_header_netinet_icmp_var_h" " |
| 32393 |
#ifdef HAVE_SYS_TYPES_H |
| 32394 |
#include <sys/types.h> |
| 32395 |
#endif /* HAVE_SYS_TYPES_H */ |
| 32396 |
#ifdef HAVE_SYS_SYSCTL_H |
| 32397 |
#include <sys/sysctl.h> |
| 32398 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 32399 |
#ifdef HAVE_SYS_SOCKET_H |
| 32400 |
#include <sys/socket.h> |
| 32401 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 32402 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 32403 |
#include <netinet/in_systm.h> |
| 32404 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 32405 |
#ifdef HAVE_NETINET_IN_H |
| 32406 |
#include <netinet/in.h> |
| 32407 |
#endif /* HAVE_NETINET_IN_H */ |
| 32408 |
#ifdef HAVE_NETINET_IP_H |
| 32409 |
#include <netinet/ip.h> |
| 32410 |
#endif /* HAVE_NETINET_IP_H */ |
| 32411 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 32412 |
#include <netinet/ip_icmp.h> |
| 32413 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 32414 |
|
| 32415 |
|
| 32416 |
" |
| 32417 |
if test "x$ac_cv_header_netinet_icmp_var_h" = xyes |
| 32418 |
then : |
| 32419 |
printf "%s\n" "#define HAVE_NETINET_ICMP_VAR_H 1" >>confdefs.h |
| 32420 |
|
| 32421 |
fi |
| 32422 |
|
| 32423 |
|
| 32424 |
# Check whether --enable-compiler-hardening was given. |
| 32425 |
if test ${enable_compiler_hardening+y} |
| 32426 |
then : |
| 32427 |
enableval=$enable_compiler_hardening; |
| 32428 |
else case e in #( |
| 32429 |
e) case ${enable_build_type} in #( |
| 32430 |
*-hardened) : |
| 32431 |
enable_compiler_hardening='yes' ;; #( |
| 32432 |
*) : |
| 32433 |
enable_compiler_hardening='no' ;; |
| 32434 |
esac |
| 32435 |
;; |
| 32436 |
esac |
| 32437 |
fi |
| 32438 |
|
| 32439 |
if test "x$enable_compiler_hardening" = x"yes" |
| 32440 |
then : |
| 32441 |
|
| 32442 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 32443 |
ac_fn_check_decl "$LINENO" "_FORTIFY_SOURCE" "ac_cv_have_decl__FORTIFY_SOURCE" "/* no includes */ |
| 32444 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 32445 |
if test "x$ac_cv_have_decl__FORTIFY_SOURCE" = xyes |
| 32446 |
then : |
| 32447 |
if test -z "${CPPFLAGS_ac}" |
| 32448 |
then : |
| 32449 |
CPPFLAGS_ac="-U_FORTIFY_SOURCE" |
| 32450 |
else case e in #( |
| 32451 |
e) CPPFLAGS_ac="${CPPFLAGS_ac} -U_FORTIFY_SOURCE" ;; |
| 32452 |
esac |
| 32453 |
fi |
| 32454 |
|
| 32455 |
fi |
| 32456 |
if test -z "${CPPFLAGS_ac}" |
| 32457 |
then : |
| 32458 |
CPPFLAGS_ac="-D_FORTIFY_SOURCE=2" |
| 32459 |
else case e in #( |
| 32460 |
e) CPPFLAGS_ac="${CPPFLAGS_ac} -D_FORTIFY_SOURCE=2" ;; |
| 32461 |
esac |
| 32462 |
fi |
| 32463 |
|
| 32464 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 32465 |
CFLAGS="${user_CFLAGS}" |
| 32466 |
|
| 32467 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-protector-strong flag" >&5 |
| 32468 |
printf %s "checking whether $CC supports -fstack-protector-strong flag... " >&6; } |
| 32469 |
if test ${mhd_cv_cc_cfl_supp__fstack_protector_strong+y} |
| 32470 |
then : |
| 32471 |
printf %s "(cached) " >&6 |
| 32472 |
else case e in #( |
| 32473 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32474 |
CFLAGS="${CFLAGS_ac} -fstack-protector-strong ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32475 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32476 |
ac_c_werror_flag=yes |
| 32477 |
# Reuse the same source for all the checks here |
| 32478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32479 |
/* end confdefs.h. */ |
| 32480 |
|
| 32481 |
int main(void) |
| 32482 |
{ |
| 32483 |
return 0; |
| 32484 |
} |
| 32485 |
|
| 32486 |
_ACEOF |
| 32487 |
if ac_fn_c_try_link "$LINENO" |
| 32488 |
then : |
| 32489 |
mhd_cv_cc_cfl_supp__fstack_protector_strong="yes" |
| 32490 |
else case e in #( |
| 32491 |
e) # Compile and link failed with test flag added |
| 32492 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32493 |
if ac_fn_c_try_link "$LINENO" |
| 32494 |
then : |
| 32495 |
mhd_cv_cc_cfl_supp__fstack_protector_strong="no" |
| 32496 |
else case e in #( |
| 32497 |
e) # Compile and link failed with test flag removed as well |
| 32498 |
CFLAGS="${CFLAGS_ac} -fstack-protector-strong ${mhd_check_cc_flag_save_CFLAGS}" |
| 32499 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32500 |
if ac_fn_c_try_link "$LINENO" |
| 32501 |
then : |
| 32502 |
mhd_cv_cc_cfl_supp__fstack_protector_strong="yes" |
| 32503 |
else case e in #( |
| 32504 |
e) mhd_cv_cc_cfl_supp__fstack_protector_strong="no" ;; |
| 32505 |
esac |
| 32506 |
fi |
| 32507 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32508 |
conftest$ac_exeext |
| 32509 |
|
| 32510 |
;; |
| 32511 |
esac |
| 32512 |
fi |
| 32513 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32514 |
conftest$ac_exeext |
| 32515 |
|
| 32516 |
;; |
| 32517 |
esac |
| 32518 |
fi |
| 32519 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32520 |
conftest$ac_exeext |
| 32521 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32522 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32523 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32524 |
|
| 32525 |
;; |
| 32526 |
esac |
| 32527 |
fi |
| 32528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fstack_protector_strong" >&5 |
| 32529 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fstack_protector_strong" >&6; } |
| 32530 |
if test "x$mhd_cv_cc_cfl_supp__fstack_protector_strong" = x"yes" |
| 32531 |
then : |
| 32532 |
if test -z "${CFLAGS_ac}" |
| 32533 |
then : |
| 32534 |
CFLAGS_ac="-fstack-protector-strong" |
| 32535 |
else case e in #( |
| 32536 |
e) CFLAGS_ac="${CFLAGS_ac} -fstack-protector-strong" ;; |
| 32537 |
esac |
| 32538 |
fi |
| 32539 |
|
| 32540 |
|
| 32541 |
else case e in #( |
| 32542 |
e) |
| 32543 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-protector-all flag" >&5 |
| 32544 |
printf %s "checking whether $CC supports -fstack-protector-all flag... " >&6; } |
| 32545 |
if test ${mhd_cv_cc_cfl_supp__fstack_protector_all+y} |
| 32546 |
then : |
| 32547 |
printf %s "(cached) " >&6 |
| 32548 |
else case e in #( |
| 32549 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32550 |
CFLAGS="${CFLAGS_ac} -fstack-protector-all ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32551 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32552 |
ac_c_werror_flag=yes |
| 32553 |
# Reuse the same source for all the checks here |
| 32554 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32555 |
/* end confdefs.h. */ |
| 32556 |
|
| 32557 |
int main(void) |
| 32558 |
{ |
| 32559 |
return 0; |
| 32560 |
} |
| 32561 |
|
| 32562 |
_ACEOF |
| 32563 |
if ac_fn_c_try_link "$LINENO" |
| 32564 |
then : |
| 32565 |
mhd_cv_cc_cfl_supp__fstack_protector_all="yes" |
| 32566 |
else case e in #( |
| 32567 |
e) # Compile and link failed with test flag added |
| 32568 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32569 |
if ac_fn_c_try_link "$LINENO" |
| 32570 |
then : |
| 32571 |
mhd_cv_cc_cfl_supp__fstack_protector_all="no" |
| 32572 |
else case e in #( |
| 32573 |
e) # Compile and link failed with test flag removed as well |
| 32574 |
CFLAGS="${CFLAGS_ac} -fstack-protector-all ${mhd_check_cc_flag_save_CFLAGS}" |
| 32575 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32576 |
if ac_fn_c_try_link "$LINENO" |
| 32577 |
then : |
| 32578 |
mhd_cv_cc_cfl_supp__fstack_protector_all="yes" |
| 32579 |
else case e in #( |
| 32580 |
e) mhd_cv_cc_cfl_supp__fstack_protector_all="no" ;; |
| 32581 |
esac |
| 32582 |
fi |
| 32583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32584 |
conftest$ac_exeext |
| 32585 |
|
| 32586 |
;; |
| 32587 |
esac |
| 32588 |
fi |
| 32589 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32590 |
conftest$ac_exeext |
| 32591 |
|
| 32592 |
;; |
| 32593 |
esac |
| 32594 |
fi |
| 32595 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32596 |
conftest$ac_exeext |
| 32597 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32598 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32599 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32600 |
|
| 32601 |
;; |
| 32602 |
esac |
| 32603 |
fi |
| 32604 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fstack_protector_all" >&5 |
| 32605 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fstack_protector_all" >&6; } |
| 32606 |
if test "x$mhd_cv_cc_cfl_supp__fstack_protector_all" = x"yes" |
| 32607 |
then : |
| 32608 |
if test -z "${CFLAGS_ac}" |
| 32609 |
then : |
| 32610 |
CFLAGS_ac="-fstack-protector-all" |
| 32611 |
else case e in #( |
| 32612 |
e) CFLAGS_ac="${CFLAGS_ac} -fstack-protector-all" ;; |
| 32613 |
esac |
| 32614 |
fi |
| 32615 |
|
| 32616 |
|
| 32617 |
else case e in #( |
| 32618 |
e) |
| 32619 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-protector flag" >&5 |
| 32620 |
printf %s "checking whether $CC supports -fstack-protector flag... " >&6; } |
| 32621 |
if test ${mhd_cv_cc_cfl_supp__fstack_protector+y} |
| 32622 |
then : |
| 32623 |
printf %s "(cached) " >&6 |
| 32624 |
else case e in #( |
| 32625 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32626 |
CFLAGS="${CFLAGS_ac} -fstack-protector ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32627 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32628 |
ac_c_werror_flag=yes |
| 32629 |
# Reuse the same source for all the checks here |
| 32630 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32631 |
/* end confdefs.h. */ |
| 32632 |
|
| 32633 |
int main(void) |
| 32634 |
{ |
| 32635 |
return 0; |
| 32636 |
} |
| 32637 |
|
| 32638 |
_ACEOF |
| 32639 |
if ac_fn_c_try_link "$LINENO" |
| 32640 |
then : |
| 32641 |
mhd_cv_cc_cfl_supp__fstack_protector="yes" |
| 32642 |
else case e in #( |
| 32643 |
e) # Compile and link failed with test flag added |
| 32644 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32645 |
if ac_fn_c_try_link "$LINENO" |
| 32646 |
then : |
| 32647 |
mhd_cv_cc_cfl_supp__fstack_protector="no" |
| 32648 |
else case e in #( |
| 32649 |
e) # Compile and link failed with test flag removed as well |
| 32650 |
CFLAGS="${CFLAGS_ac} -fstack-protector ${mhd_check_cc_flag_save_CFLAGS}" |
| 32651 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32652 |
if ac_fn_c_try_link "$LINENO" |
| 32653 |
then : |
| 32654 |
mhd_cv_cc_cfl_supp__fstack_protector="yes" |
| 32655 |
else case e in #( |
| 32656 |
e) mhd_cv_cc_cfl_supp__fstack_protector="no" ;; |
| 32657 |
esac |
| 32658 |
fi |
| 32659 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32660 |
conftest$ac_exeext |
| 32661 |
|
| 32662 |
;; |
| 32663 |
esac |
| 32664 |
fi |
| 32665 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32666 |
conftest$ac_exeext |
| 32667 |
|
| 32668 |
;; |
| 32669 |
esac |
| 32670 |
fi |
| 32671 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32672 |
conftest$ac_exeext |
| 32673 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32674 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32675 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32676 |
|
| 32677 |
;; |
| 32678 |
esac |
| 32679 |
fi |
| 32680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fstack_protector" >&5 |
| 32681 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fstack_protector" >&6; } |
| 32682 |
if test "x$mhd_cv_cc_cfl_supp__fstack_protector" = x"yes" |
| 32683 |
then : |
| 32684 |
if test -z "${CFLAGS_ac}" |
| 32685 |
then : |
| 32686 |
CFLAGS_ac="-fstack-protector" |
| 32687 |
else case e in #( |
| 32688 |
e) CFLAGS_ac="${CFLAGS_ac} -fstack-protector" ;; |
| 32689 |
esac |
| 32690 |
fi |
| 32691 |
|
| 32692 |
|
| 32693 |
fi |
| 32694 |
|
| 32695 |
;; |
| 32696 |
esac |
| 32697 |
fi |
| 32698 |
|
| 32699 |
;; |
| 32700 |
esac |
| 32701 |
fi |
| 32702 |
|
| 32703 |
|
| 32704 |
|
| 32705 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fstack-clash-protection flag" >&5 |
| 32706 |
printf %s "checking whether $CC supports -fstack-clash-protection flag... " >&6; } |
| 32707 |
if test ${mhd_cv_cc_cfl_supp__fstack_clash_protection+y} |
| 32708 |
then : |
| 32709 |
printf %s "(cached) " >&6 |
| 32710 |
else case e in #( |
| 32711 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32712 |
CFLAGS="${CFLAGS_ac} -fstack-clash-protection ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32713 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32714 |
ac_c_werror_flag=yes |
| 32715 |
# Reuse the same source for all the checks here |
| 32716 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32717 |
/* end confdefs.h. */ |
| 32718 |
|
| 32719 |
int main(void) |
| 32720 |
{ |
| 32721 |
return 0; |
| 32722 |
} |
| 32723 |
|
| 32724 |
_ACEOF |
| 32725 |
if ac_fn_c_try_link "$LINENO" |
| 32726 |
then : |
| 32727 |
mhd_cv_cc_cfl_supp__fstack_clash_protection="yes" |
| 32728 |
else case e in #( |
| 32729 |
e) # Compile and link failed with test flag added |
| 32730 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32731 |
if ac_fn_c_try_link "$LINENO" |
| 32732 |
then : |
| 32733 |
mhd_cv_cc_cfl_supp__fstack_clash_protection="no" |
| 32734 |
else case e in #( |
| 32735 |
e) # Compile and link failed with test flag removed as well |
| 32736 |
CFLAGS="${CFLAGS_ac} -fstack-clash-protection ${mhd_check_cc_flag_save_CFLAGS}" |
| 32737 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32738 |
if ac_fn_c_try_link "$LINENO" |
| 32739 |
then : |
| 32740 |
mhd_cv_cc_cfl_supp__fstack_clash_protection="yes" |
| 32741 |
else case e in #( |
| 32742 |
e) mhd_cv_cc_cfl_supp__fstack_clash_protection="no" ;; |
| 32743 |
esac |
| 32744 |
fi |
| 32745 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32746 |
conftest$ac_exeext |
| 32747 |
|
| 32748 |
;; |
| 32749 |
esac |
| 32750 |
fi |
| 32751 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32752 |
conftest$ac_exeext |
| 32753 |
|
| 32754 |
;; |
| 32755 |
esac |
| 32756 |
fi |
| 32757 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32758 |
conftest$ac_exeext |
| 32759 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32760 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32761 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32762 |
|
| 32763 |
;; |
| 32764 |
esac |
| 32765 |
fi |
| 32766 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fstack_clash_protection" >&5 |
| 32767 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fstack_clash_protection" >&6; } |
| 32768 |
if test "x$mhd_cv_cc_cfl_supp__fstack_clash_protection" = x"yes" |
| 32769 |
then : |
| 32770 |
if test -z "${CFLAGS_ac}" |
| 32771 |
then : |
| 32772 |
CFLAGS_ac="-fstack-clash-protection" |
| 32773 |
else case e in #( |
| 32774 |
e) CFLAGS_ac="${CFLAGS_ac} -fstack-clash-protection" ;; |
| 32775 |
esac |
| 32776 |
fi |
| 32777 |
|
| 32778 |
|
| 32779 |
fi |
| 32780 |
|
| 32781 |
|
| 32782 |
|
| 32783 |
|
| 32784 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftrivial-auto-var-init=pattern flag" >&5 |
| 32785 |
printf %s "checking whether $CC supports -ftrivial-auto-var-init=pattern flag... " >&6; } |
| 32786 |
if test ${mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern+y} |
| 32787 |
then : |
| 32788 |
printf %s "(cached) " >&6 |
| 32789 |
else case e in #( |
| 32790 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32791 |
CFLAGS="${CFLAGS_ac} -ftrivial-auto-var-init=pattern ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32792 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32793 |
ac_c_werror_flag=yes |
| 32794 |
# Reuse the same source for all the checks here |
| 32795 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32796 |
/* end confdefs.h. */ |
| 32797 |
|
| 32798 |
int main(void) |
| 32799 |
{ |
| 32800 |
return 0; |
| 32801 |
} |
| 32802 |
|
| 32803 |
_ACEOF |
| 32804 |
if ac_fn_c_try_link "$LINENO" |
| 32805 |
then : |
| 32806 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern="yes" |
| 32807 |
else case e in #( |
| 32808 |
e) # Compile and link failed with test flag added |
| 32809 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32810 |
if ac_fn_c_try_link "$LINENO" |
| 32811 |
then : |
| 32812 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern="no" |
| 32813 |
else case e in #( |
| 32814 |
e) # Compile and link failed with test flag removed as well |
| 32815 |
CFLAGS="${CFLAGS_ac} -ftrivial-auto-var-init=pattern ${mhd_check_cc_flag_save_CFLAGS}" |
| 32816 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32817 |
if ac_fn_c_try_link "$LINENO" |
| 32818 |
then : |
| 32819 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern="yes" |
| 32820 |
else case e in #( |
| 32821 |
e) mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern="no" ;; |
| 32822 |
esac |
| 32823 |
fi |
| 32824 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32825 |
conftest$ac_exeext |
| 32826 |
|
| 32827 |
;; |
| 32828 |
esac |
| 32829 |
fi |
| 32830 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32831 |
conftest$ac_exeext |
| 32832 |
|
| 32833 |
;; |
| 32834 |
esac |
| 32835 |
fi |
| 32836 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32837 |
conftest$ac_exeext |
| 32838 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32839 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32840 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32841 |
|
| 32842 |
;; |
| 32843 |
esac |
| 32844 |
fi |
| 32845 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern" >&5 |
| 32846 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern" >&6; } |
| 32847 |
if test "x$mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_pattern" = x"yes" |
| 32848 |
then : |
| 32849 |
if test -z "${CFLAGS_ac}" |
| 32850 |
then : |
| 32851 |
CFLAGS_ac="-ftrivial-auto-var-init=pattern" |
| 32852 |
else case e in #( |
| 32853 |
e) CFLAGS_ac="${CFLAGS_ac} -ftrivial-auto-var-init=pattern" ;; |
| 32854 |
esac |
| 32855 |
fi |
| 32856 |
|
| 32857 |
|
| 32858 |
else case e in #( |
| 32859 |
e) |
| 32860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -ftrivial-auto-var-init=zero flag" >&5 |
| 32861 |
printf %s "checking whether $CC supports -ftrivial-auto-var-init=zero flag... " >&6; } |
| 32862 |
if test ${mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero+y} |
| 32863 |
then : |
| 32864 |
printf %s "(cached) " >&6 |
| 32865 |
else case e in #( |
| 32866 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32867 |
CFLAGS="${CFLAGS_ac} -ftrivial-auto-var-init=zero ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32868 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32869 |
ac_c_werror_flag=yes |
| 32870 |
# Reuse the same source for all the checks here |
| 32871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32872 |
/* end confdefs.h. */ |
| 32873 |
|
| 32874 |
int main(void) |
| 32875 |
{ |
| 32876 |
return 0; |
| 32877 |
} |
| 32878 |
|
| 32879 |
_ACEOF |
| 32880 |
if ac_fn_c_try_link "$LINENO" |
| 32881 |
then : |
| 32882 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero="yes" |
| 32883 |
else case e in #( |
| 32884 |
e) # Compile and link failed with test flag added |
| 32885 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32886 |
if ac_fn_c_try_link "$LINENO" |
| 32887 |
then : |
| 32888 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero="no" |
| 32889 |
else case e in #( |
| 32890 |
e) # Compile and link failed with test flag removed as well |
| 32891 |
CFLAGS="${CFLAGS_ac} -ftrivial-auto-var-init=zero ${mhd_check_cc_flag_save_CFLAGS}" |
| 32892 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32893 |
if ac_fn_c_try_link "$LINENO" |
| 32894 |
then : |
| 32895 |
mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero="yes" |
| 32896 |
else case e in #( |
| 32897 |
e) mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero="no" ;; |
| 32898 |
esac |
| 32899 |
fi |
| 32900 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32901 |
conftest$ac_exeext |
| 32902 |
|
| 32903 |
;; |
| 32904 |
esac |
| 32905 |
fi |
| 32906 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32907 |
conftest$ac_exeext |
| 32908 |
|
| 32909 |
;; |
| 32910 |
esac |
| 32911 |
fi |
| 32912 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32913 |
conftest$ac_exeext |
| 32914 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32915 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 32916 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 32917 |
|
| 32918 |
;; |
| 32919 |
esac |
| 32920 |
fi |
| 32921 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero" >&5 |
| 32922 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero" >&6; } |
| 32923 |
if test "x$mhd_cv_cc_cfl_supp__ftrivial_auto_var_init_zero" = x"yes" |
| 32924 |
then : |
| 32925 |
if test -z "${CFLAGS_ac}" |
| 32926 |
then : |
| 32927 |
CFLAGS_ac="-ftrivial-auto-var-init=zero" |
| 32928 |
else case e in #( |
| 32929 |
e) CFLAGS_ac="${CFLAGS_ac} -ftrivial-auto-var-init=zero" ;; |
| 32930 |
esac |
| 32931 |
fi |
| 32932 |
|
| 32933 |
|
| 32934 |
fi |
| 32935 |
|
| 32936 |
;; |
| 32937 |
esac |
| 32938 |
fi |
| 32939 |
|
| 32940 |
|
| 32941 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 32942 |
if test "x${enable_static}" = "xyes" && test "x${pic_mode}" != "xyes" |
| 32943 |
then : |
| 32944 |
|
| 32945 |
# PIE static lib can be used within non-PIE application, but |
| 32946 |
# PIE static lib cannot be used in non-PIE shared lib. Let's assume |
| 32947 |
# that static lib will not be used in shared lib |
| 32948 |
# All "pie" flags will be used automatically by libtool only |
| 32949 |
# for static library objects. |
| 32950 |
CFLAGS="${user_CFLAGS}" |
| 32951 |
# Perform tests here with "-pie" enabled |
| 32952 |
LDFLAGS="${LDFLAGS_ac} -pie ${user_LDFLAGS}" |
| 32953 |
|
| 32954 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fPIE flag" >&5 |
| 32955 |
printf %s "checking whether $CC supports -fPIE flag... " >&6; } |
| 32956 |
if test ${mhd_cv_cc_cfl_supp__fPIE+y} |
| 32957 |
then : |
| 32958 |
printf %s "(cached) " >&6 |
| 32959 |
else case e in #( |
| 32960 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 32961 |
CFLAGS="${CFLAGS_ac} -fPIE ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32962 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 32963 |
ac_c_werror_flag=yes |
| 32964 |
# Reuse the same source for all the checks here |
| 32965 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32966 |
/* end confdefs.h. */ |
| 32967 |
|
| 32968 |
int main(void) |
| 32969 |
{ |
| 32970 |
return 0; |
| 32971 |
} |
| 32972 |
|
| 32973 |
_ACEOF |
| 32974 |
if ac_fn_c_try_link "$LINENO" |
| 32975 |
then : |
| 32976 |
mhd_cv_cc_cfl_supp__fPIE="yes" |
| 32977 |
else case e in #( |
| 32978 |
e) # Compile and link failed with test flag added |
| 32979 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 32980 |
if ac_fn_c_try_link "$LINENO" |
| 32981 |
then : |
| 32982 |
mhd_cv_cc_cfl_supp__fPIE="no" |
| 32983 |
else case e in #( |
| 32984 |
e) # Compile and link failed with test flag removed as well |
| 32985 |
CFLAGS="${CFLAGS_ac} -fPIE ${mhd_check_cc_flag_save_CFLAGS}" |
| 32986 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 32987 |
if ac_fn_c_try_link "$LINENO" |
| 32988 |
then : |
| 32989 |
mhd_cv_cc_cfl_supp__fPIE="yes" |
| 32990 |
else case e in #( |
| 32991 |
e) mhd_cv_cc_cfl_supp__fPIE="no" ;; |
| 32992 |
esac |
| 32993 |
fi |
| 32994 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32995 |
conftest$ac_exeext |
| 32996 |
|
| 32997 |
;; |
| 32998 |
esac |
| 32999 |
fi |
| 33000 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33001 |
conftest$ac_exeext |
| 33002 |
|
| 33003 |
;; |
| 33004 |
esac |
| 33005 |
fi |
| 33006 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33007 |
conftest$ac_exeext |
| 33008 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33009 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 33010 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 33011 |
|
| 33012 |
;; |
| 33013 |
esac |
| 33014 |
fi |
| 33015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fPIE" >&5 |
| 33016 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fPIE" >&6; } |
| 33017 |
if test "x$mhd_cv_cc_cfl_supp__fPIE" = x"yes" |
| 33018 |
then : |
| 33019 |
if test -z "${CFLAGS_ac}" |
| 33020 |
then : |
| 33021 |
CFLAGS_ac="-fPIE" |
| 33022 |
else case e in #( |
| 33023 |
e) CFLAGS_ac="${CFLAGS_ac} -fPIE" ;; |
| 33024 |
esac |
| 33025 |
fi |
| 33026 |
|
| 33027 |
|
| 33028 |
if test -z "${LDFLAGS_ac}" |
| 33029 |
then : |
| 33030 |
LDFLAGS_ac="-pie" |
| 33031 |
else case e in #( |
| 33032 |
e) LDFLAGS_ac="${LDFLAGS_ac} -pie" ;; |
| 33033 |
esac |
| 33034 |
fi |
| 33035 |
|
| 33036 |
|
| 33037 |
else case e in #( |
| 33038 |
e) |
| 33039 |
|
| 33040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fpie flag" >&5 |
| 33041 |
printf %s "checking whether $CC supports -fpie flag... " >&6; } |
| 33042 |
if test ${mhd_cv_cc_cfl_supp__fpie+y} |
| 33043 |
then : |
| 33044 |
printf %s "(cached) " >&6 |
| 33045 |
else case e in #( |
| 33046 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 33047 |
CFLAGS="${CFLAGS_ac} -fpie ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33048 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33049 |
ac_c_werror_flag=yes |
| 33050 |
# Reuse the same source for all the checks here |
| 33051 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33052 |
/* end confdefs.h. */ |
| 33053 |
|
| 33054 |
int main(void) |
| 33055 |
{ |
| 33056 |
return 0; |
| 33057 |
} |
| 33058 |
|
| 33059 |
_ACEOF |
| 33060 |
if ac_fn_c_try_link "$LINENO" |
| 33061 |
then : |
| 33062 |
mhd_cv_cc_cfl_supp__fpie="yes" |
| 33063 |
else case e in #( |
| 33064 |
e) # Compile and link failed with test flag added |
| 33065 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33066 |
if ac_fn_c_try_link "$LINENO" |
| 33067 |
then : |
| 33068 |
mhd_cv_cc_cfl_supp__fpie="no" |
| 33069 |
else case e in #( |
| 33070 |
e) # Compile and link failed with test flag removed as well |
| 33071 |
CFLAGS="${CFLAGS_ac} -fpie ${mhd_check_cc_flag_save_CFLAGS}" |
| 33072 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33073 |
if ac_fn_c_try_link "$LINENO" |
| 33074 |
then : |
| 33075 |
mhd_cv_cc_cfl_supp__fpie="yes" |
| 33076 |
else case e in #( |
| 33077 |
e) mhd_cv_cc_cfl_supp__fpie="no" ;; |
| 33078 |
esac |
| 33079 |
fi |
| 33080 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33081 |
conftest$ac_exeext |
| 33082 |
|
| 33083 |
;; |
| 33084 |
esac |
| 33085 |
fi |
| 33086 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33087 |
conftest$ac_exeext |
| 33088 |
|
| 33089 |
;; |
| 33090 |
esac |
| 33091 |
fi |
| 33092 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33093 |
conftest$ac_exeext |
| 33094 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33095 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 33096 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 33097 |
|
| 33098 |
;; |
| 33099 |
esac |
| 33100 |
fi |
| 33101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fpie" >&5 |
| 33102 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fpie" >&6; } |
| 33103 |
if test "x$mhd_cv_cc_cfl_supp__fpie" = x"yes" |
| 33104 |
then : |
| 33105 |
if test -z "${CFLAGS_ac}" |
| 33106 |
then : |
| 33107 |
CFLAGS_ac="-fpie" |
| 33108 |
else case e in #( |
| 33109 |
e) CFLAGS_ac="${CFLAGS_ac} -fpie" ;; |
| 33110 |
esac |
| 33111 |
fi |
| 33112 |
|
| 33113 |
|
| 33114 |
if test -z "${LDFLAGS_ac}" |
| 33115 |
then : |
| 33116 |
LDFLAGS_ac="-pie" |
| 33117 |
else case e in #( |
| 33118 |
e) LDFLAGS_ac="${LDFLAGS_ac} -pie" ;; |
| 33119 |
esac |
| 33120 |
fi |
| 33121 |
|
| 33122 |
|
| 33123 |
|
| 33124 |
fi |
| 33125 |
|
| 33126 |
|
| 33127 |
|
| 33128 |
;; |
| 33129 |
esac |
| 33130 |
fi |
| 33131 |
|
| 33132 |
|
| 33133 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 33134 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 33135 |
|
| 33136 |
|
| 33137 |
fi |
| 33138 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 33139 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 33140 |
|
| 33141 |
|
| 33142 |
fi |
| 33143 |
|
| 33144 |
# Linker hardening options |
| 33145 |
# Currently these options are ELF specific, they don't work on Darwin and W32 |
| 33146 |
# Check whether --enable-linker-hardening was given. |
| 33147 |
if test ${enable_linker_hardening+y} |
| 33148 |
then : |
| 33149 |
enableval=$enable_linker_hardening; |
| 33150 |
else case e in #( |
| 33151 |
e) case ${enable_build_type} in #( |
| 33152 |
*-hardened) : |
| 33153 |
enable_linker_hardening='yes' ;; #( |
| 33154 |
*) : |
| 33155 |
enable_linker_hardening='no' ;; |
| 33156 |
esac |
| 33157 |
;; |
| 33158 |
esac |
| 33159 |
fi |
| 33160 |
|
| 33161 |
if test "x$enable_linker_hardening" = x"yes" |
| 33162 |
then : |
| 33163 |
|
| 33164 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 33165 |
LDFLAGS="${user_LDFLAGS}" |
| 33166 |
|
| 33167 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-z,relro flag" >&5 |
| 33168 |
printf %s "checking whether $CC supports -Wl,-z,relro flag... " >&6; } |
| 33169 |
if test ${mhd_cv_cc_lfl_supp__Wl__z_relro+y} |
| 33170 |
then : |
| 33171 |
printf %s "(cached) " >&6 |
| 33172 |
else case e in #( |
| 33173 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33174 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,relro ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33175 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33176 |
ac_c_werror_flag=yes |
| 33177 |
# Reuse the same source for all the checks here |
| 33178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33179 |
/* end confdefs.h. */ |
| 33180 |
|
| 33181 |
int main(void) |
| 33182 |
{ |
| 33183 |
return 0; |
| 33184 |
} |
| 33185 |
|
| 33186 |
_ACEOF |
| 33187 |
if ac_fn_c_try_link "$LINENO" |
| 33188 |
then : |
| 33189 |
mhd_cv_cc_lfl_supp__Wl__z_relro="yes" |
| 33190 |
else case e in #( |
| 33191 |
e) # Compile and link failed with test flag added |
| 33192 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33193 |
if ac_fn_c_try_link "$LINENO" |
| 33194 |
then : |
| 33195 |
mhd_cv_cc_lfl_supp__Wl__z_relro="no" |
| 33196 |
else case e in #( |
| 33197 |
e) # Compile and link failed with test flag removed as well |
| 33198 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,relro ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33199 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33200 |
if ac_fn_c_try_link "$LINENO" |
| 33201 |
then : |
| 33202 |
mhd_cv_cc_lfl_supp__Wl__z_relro="yes" |
| 33203 |
else case e in #( |
| 33204 |
e) mhd_cv_cc_lfl_supp__Wl__z_relro="no" ;; |
| 33205 |
esac |
| 33206 |
fi |
| 33207 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33208 |
conftest$ac_exeext |
| 33209 |
|
| 33210 |
;; |
| 33211 |
esac |
| 33212 |
fi |
| 33213 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33214 |
conftest$ac_exeext |
| 33215 |
|
| 33216 |
;; |
| 33217 |
esac |
| 33218 |
fi |
| 33219 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33220 |
conftest$ac_exeext |
| 33221 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33222 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33223 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33224 |
|
| 33225 |
;; |
| 33226 |
esac |
| 33227 |
fi |
| 33228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl__z_relro" >&5 |
| 33229 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl__z_relro" >&6; } |
| 33230 |
if test "x$mhd_cv_cc_lfl_supp__Wl__z_relro" = x"yes" |
| 33231 |
then : |
| 33232 |
if test -z "${LDFLAGS_ac}" |
| 33233 |
then : |
| 33234 |
LDFLAGS_ac="-Wl,-z,relro" |
| 33235 |
else case e in #( |
| 33236 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,-z,relro" ;; |
| 33237 |
esac |
| 33238 |
fi |
| 33239 |
|
| 33240 |
|
| 33241 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-z,now flag" >&5 |
| 33242 |
printf %s "checking whether $CC supports -Wl,-z,now flag... " >&6; } |
| 33243 |
if test ${mhd_cv_cc_lfl_supp__Wl__z_now+y} |
| 33244 |
then : |
| 33245 |
printf %s "(cached) " >&6 |
| 33246 |
else case e in #( |
| 33247 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33248 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,now ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33249 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33250 |
ac_c_werror_flag=yes |
| 33251 |
# Reuse the same source for all the checks here |
| 33252 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33253 |
/* end confdefs.h. */ |
| 33254 |
|
| 33255 |
int main(void) |
| 33256 |
{ |
| 33257 |
return 0; |
| 33258 |
} |
| 33259 |
|
| 33260 |
_ACEOF |
| 33261 |
if ac_fn_c_try_link "$LINENO" |
| 33262 |
then : |
| 33263 |
mhd_cv_cc_lfl_supp__Wl__z_now="yes" |
| 33264 |
else case e in #( |
| 33265 |
e) # Compile and link failed with test flag added |
| 33266 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33267 |
if ac_fn_c_try_link "$LINENO" |
| 33268 |
then : |
| 33269 |
mhd_cv_cc_lfl_supp__Wl__z_now="no" |
| 33270 |
else case e in #( |
| 33271 |
e) # Compile and link failed with test flag removed as well |
| 33272 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,now ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33273 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33274 |
if ac_fn_c_try_link "$LINENO" |
| 33275 |
then : |
| 33276 |
mhd_cv_cc_lfl_supp__Wl__z_now="yes" |
| 33277 |
else case e in #( |
| 33278 |
e) mhd_cv_cc_lfl_supp__Wl__z_now="no" ;; |
| 33279 |
esac |
| 33280 |
fi |
| 33281 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33282 |
conftest$ac_exeext |
| 33283 |
|
| 33284 |
;; |
| 33285 |
esac |
| 33286 |
fi |
| 33287 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33288 |
conftest$ac_exeext |
| 33289 |
|
| 33290 |
;; |
| 33291 |
esac |
| 33292 |
fi |
| 33293 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33294 |
conftest$ac_exeext |
| 33295 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33296 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33297 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33298 |
|
| 33299 |
;; |
| 33300 |
esac |
| 33301 |
fi |
| 33302 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl__z_now" >&5 |
| 33303 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl__z_now" >&6; } |
| 33304 |
if test "x$mhd_cv_cc_lfl_supp__Wl__z_now" = x"yes" |
| 33305 |
then : |
| 33306 |
if test -z "${LDFLAGS_ac}" |
| 33307 |
then : |
| 33308 |
LDFLAGS_ac="-Wl,-z,now" |
| 33309 |
else case e in #( |
| 33310 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,-z,now" ;; |
| 33311 |
esac |
| 33312 |
fi |
| 33313 |
|
| 33314 |
|
| 33315 |
fi |
| 33316 |
|
| 33317 |
|
| 33318 |
fi |
| 33319 |
|
| 33320 |
|
| 33321 |
# Actually should be "noexec" by default, but let's try to enforce it. |
| 33322 |
|
| 33323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,-z,noexecstack flag" >&5 |
| 33324 |
printf %s "checking whether $CC supports -Wl,-z,noexecstack flag... " >&6; } |
| 33325 |
if test ${mhd_cv_cc_lfl_supp__Wl__z_noexecstack+y} |
| 33326 |
then : |
| 33327 |
printf %s "(cached) " >&6 |
| 33328 |
else case e in #( |
| 33329 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33330 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,noexecstack ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33331 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33332 |
ac_c_werror_flag=yes |
| 33333 |
# Reuse the same source for all the checks here |
| 33334 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33335 |
/* end confdefs.h. */ |
| 33336 |
|
| 33337 |
int main(void) |
| 33338 |
{ |
| 33339 |
return 0; |
| 33340 |
} |
| 33341 |
|
| 33342 |
_ACEOF |
| 33343 |
if ac_fn_c_try_link "$LINENO" |
| 33344 |
then : |
| 33345 |
mhd_cv_cc_lfl_supp__Wl__z_noexecstack="yes" |
| 33346 |
else case e in #( |
| 33347 |
e) # Compile and link failed with test flag added |
| 33348 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33349 |
if ac_fn_c_try_link "$LINENO" |
| 33350 |
then : |
| 33351 |
mhd_cv_cc_lfl_supp__Wl__z_noexecstack="no" |
| 33352 |
else case e in #( |
| 33353 |
e) # Compile and link failed with test flag removed as well |
| 33354 |
LDFLAGS="${LDFLAGS_ac} -Wl,-z,noexecstack ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33355 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33356 |
if ac_fn_c_try_link "$LINENO" |
| 33357 |
then : |
| 33358 |
mhd_cv_cc_lfl_supp__Wl__z_noexecstack="yes" |
| 33359 |
else case e in #( |
| 33360 |
e) mhd_cv_cc_lfl_supp__Wl__z_noexecstack="no" ;; |
| 33361 |
esac |
| 33362 |
fi |
| 33363 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33364 |
conftest$ac_exeext |
| 33365 |
|
| 33366 |
;; |
| 33367 |
esac |
| 33368 |
fi |
| 33369 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33370 |
conftest$ac_exeext |
| 33371 |
|
| 33372 |
;; |
| 33373 |
esac |
| 33374 |
fi |
| 33375 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33376 |
conftest$ac_exeext |
| 33377 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33378 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33379 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33380 |
|
| 33381 |
;; |
| 33382 |
esac |
| 33383 |
fi |
| 33384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl__z_noexecstack" >&5 |
| 33385 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl__z_noexecstack" >&6; } |
| 33386 |
if test "x$mhd_cv_cc_lfl_supp__Wl__z_noexecstack" = x"yes" |
| 33387 |
then : |
| 33388 |
if test -z "${LDFLAGS_ac}" |
| 33389 |
then : |
| 33390 |
LDFLAGS_ac="-Wl,-z,noexecstack" |
| 33391 |
else case e in #( |
| 33392 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,-z,noexecstack" ;; |
| 33393 |
esac |
| 33394 |
fi |
| 33395 |
|
| 33396 |
|
| 33397 |
fi |
| 33398 |
|
| 33399 |
|
| 33400 |
# W32-specific. Some are enabled by default, but they will be enfored to be sure. |
| 33401 |
|
| 33402 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--large-address-aware flag" >&5 |
| 33403 |
printf %s "checking whether $CC supports -Wl,--large-address-aware flag... " >&6; } |
| 33404 |
if test ${mhd_cv_cc_lfl_supp__Wl___large_address_aware+y} |
| 33405 |
then : |
| 33406 |
printf %s "(cached) " >&6 |
| 33407 |
else case e in #( |
| 33408 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33409 |
LDFLAGS="${LDFLAGS_ac} -Wl,--large-address-aware ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33410 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33411 |
ac_c_werror_flag=yes |
| 33412 |
# Reuse the same source for all the checks here |
| 33413 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33414 |
/* end confdefs.h. */ |
| 33415 |
|
| 33416 |
int main(void) |
| 33417 |
{ |
| 33418 |
return 0; |
| 33419 |
} |
| 33420 |
|
| 33421 |
_ACEOF |
| 33422 |
if ac_fn_c_try_link "$LINENO" |
| 33423 |
then : |
| 33424 |
mhd_cv_cc_lfl_supp__Wl___large_address_aware="yes" |
| 33425 |
else case e in #( |
| 33426 |
e) # Compile and link failed with test flag added |
| 33427 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33428 |
if ac_fn_c_try_link "$LINENO" |
| 33429 |
then : |
| 33430 |
mhd_cv_cc_lfl_supp__Wl___large_address_aware="no" |
| 33431 |
else case e in #( |
| 33432 |
e) # Compile and link failed with test flag removed as well |
| 33433 |
LDFLAGS="${LDFLAGS_ac} -Wl,--large-address-aware ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33434 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33435 |
if ac_fn_c_try_link "$LINENO" |
| 33436 |
then : |
| 33437 |
mhd_cv_cc_lfl_supp__Wl___large_address_aware="yes" |
| 33438 |
else case e in #( |
| 33439 |
e) mhd_cv_cc_lfl_supp__Wl___large_address_aware="no" ;; |
| 33440 |
esac |
| 33441 |
fi |
| 33442 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33443 |
conftest$ac_exeext |
| 33444 |
|
| 33445 |
;; |
| 33446 |
esac |
| 33447 |
fi |
| 33448 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33449 |
conftest$ac_exeext |
| 33450 |
|
| 33451 |
;; |
| 33452 |
esac |
| 33453 |
fi |
| 33454 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33455 |
conftest$ac_exeext |
| 33456 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33457 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33458 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33459 |
|
| 33460 |
;; |
| 33461 |
esac |
| 33462 |
fi |
| 33463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___large_address_aware" >&5 |
| 33464 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___large_address_aware" >&6; } |
| 33465 |
if test "x$mhd_cv_cc_lfl_supp__Wl___large_address_aware" = x"yes" |
| 33466 |
then : |
| 33467 |
if test -z "${LDFLAGS_ac}" |
| 33468 |
then : |
| 33469 |
LDFLAGS_ac="-Wl,--large-address-aware" |
| 33470 |
else case e in #( |
| 33471 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--large-address-aware" ;; |
| 33472 |
esac |
| 33473 |
fi |
| 33474 |
|
| 33475 |
|
| 33476 |
fi |
| 33477 |
|
| 33478 |
|
| 33479 |
|
| 33480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--enable-auto-image-base flag" >&5 |
| 33481 |
printf %s "checking whether $CC supports -Wl,--enable-auto-image-base flag... " >&6; } |
| 33482 |
if test ${mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base+y} |
| 33483 |
then : |
| 33484 |
printf %s "(cached) " >&6 |
| 33485 |
else case e in #( |
| 33486 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33487 |
LDFLAGS="${LDFLAGS_ac} -Wl,--enable-auto-image-base ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33488 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33489 |
ac_c_werror_flag=yes |
| 33490 |
# Reuse the same source for all the checks here |
| 33491 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33492 |
/* end confdefs.h. */ |
| 33493 |
|
| 33494 |
int main(void) |
| 33495 |
{ |
| 33496 |
return 0; |
| 33497 |
} |
| 33498 |
|
| 33499 |
_ACEOF |
| 33500 |
if ac_fn_c_try_link "$LINENO" |
| 33501 |
then : |
| 33502 |
mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base="yes" |
| 33503 |
else case e in #( |
| 33504 |
e) # Compile and link failed with test flag added |
| 33505 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33506 |
if ac_fn_c_try_link "$LINENO" |
| 33507 |
then : |
| 33508 |
mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base="no" |
| 33509 |
else case e in #( |
| 33510 |
e) # Compile and link failed with test flag removed as well |
| 33511 |
LDFLAGS="${LDFLAGS_ac} -Wl,--enable-auto-image-base ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33512 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33513 |
if ac_fn_c_try_link "$LINENO" |
| 33514 |
then : |
| 33515 |
mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base="yes" |
| 33516 |
else case e in #( |
| 33517 |
e) mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base="no" ;; |
| 33518 |
esac |
| 33519 |
fi |
| 33520 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33521 |
conftest$ac_exeext |
| 33522 |
|
| 33523 |
;; |
| 33524 |
esac |
| 33525 |
fi |
| 33526 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33527 |
conftest$ac_exeext |
| 33528 |
|
| 33529 |
;; |
| 33530 |
esac |
| 33531 |
fi |
| 33532 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33533 |
conftest$ac_exeext |
| 33534 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33535 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33536 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33537 |
|
| 33538 |
;; |
| 33539 |
esac |
| 33540 |
fi |
| 33541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base" >&5 |
| 33542 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base" >&6; } |
| 33543 |
if test "x$mhd_cv_cc_lfl_supp__Wl___enable_auto_image_base" = x"yes" |
| 33544 |
then : |
| 33545 |
if test -z "${LDFLAGS_ac}" |
| 33546 |
then : |
| 33547 |
LDFLAGS_ac="-Wl,--enable-auto-image-base" |
| 33548 |
else case e in #( |
| 33549 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--enable-auto-image-base" ;; |
| 33550 |
esac |
| 33551 |
fi |
| 33552 |
|
| 33553 |
|
| 33554 |
fi |
| 33555 |
|
| 33556 |
|
| 33557 |
|
| 33558 |
|
| 33559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--dynamicbase flag" >&5 |
| 33560 |
printf %s "checking whether $CC supports -Wl,--dynamicbase flag... " >&6; } |
| 33561 |
if test ${mhd_cv_cc_lfl_supp__Wl___dynamicbase+y} |
| 33562 |
then : |
| 33563 |
printf %s "(cached) " >&6 |
| 33564 |
else case e in #( |
| 33565 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33566 |
LDFLAGS="${LDFLAGS_ac} -Wl,--dynamicbase ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33567 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33568 |
ac_c_werror_flag=yes |
| 33569 |
# Reuse the same source for all the checks here |
| 33570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33571 |
/* end confdefs.h. */ |
| 33572 |
|
| 33573 |
int main(void) |
| 33574 |
{ |
| 33575 |
return 0; |
| 33576 |
} |
| 33577 |
|
| 33578 |
_ACEOF |
| 33579 |
if ac_fn_c_try_link "$LINENO" |
| 33580 |
then : |
| 33581 |
mhd_cv_cc_lfl_supp__Wl___dynamicbase="yes" |
| 33582 |
else case e in #( |
| 33583 |
e) # Compile and link failed with test flag added |
| 33584 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33585 |
if ac_fn_c_try_link "$LINENO" |
| 33586 |
then : |
| 33587 |
mhd_cv_cc_lfl_supp__Wl___dynamicbase="no" |
| 33588 |
else case e in #( |
| 33589 |
e) # Compile and link failed with test flag removed as well |
| 33590 |
LDFLAGS="${LDFLAGS_ac} -Wl,--dynamicbase ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33591 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33592 |
if ac_fn_c_try_link "$LINENO" |
| 33593 |
then : |
| 33594 |
mhd_cv_cc_lfl_supp__Wl___dynamicbase="yes" |
| 33595 |
else case e in #( |
| 33596 |
e) mhd_cv_cc_lfl_supp__Wl___dynamicbase="no" ;; |
| 33597 |
esac |
| 33598 |
fi |
| 33599 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33600 |
conftest$ac_exeext |
| 33601 |
|
| 33602 |
;; |
| 33603 |
esac |
| 33604 |
fi |
| 33605 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33606 |
conftest$ac_exeext |
| 33607 |
|
| 33608 |
;; |
| 33609 |
esac |
| 33610 |
fi |
| 33611 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33612 |
conftest$ac_exeext |
| 33613 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33614 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33615 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33616 |
|
| 33617 |
;; |
| 33618 |
esac |
| 33619 |
fi |
| 33620 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___dynamicbase" >&5 |
| 33621 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___dynamicbase" >&6; } |
| 33622 |
if test "x$mhd_cv_cc_lfl_supp__Wl___dynamicbase" = x"yes" |
| 33623 |
then : |
| 33624 |
if test -z "${LDFLAGS_ac}" |
| 33625 |
then : |
| 33626 |
LDFLAGS_ac="-Wl,--dynamicbase" |
| 33627 |
else case e in #( |
| 33628 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--dynamicbase" ;; |
| 33629 |
esac |
| 33630 |
fi |
| 33631 |
|
| 33632 |
|
| 33633 |
fi |
| 33634 |
|
| 33635 |
|
| 33636 |
|
| 33637 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--nxcompat flag" >&5 |
| 33638 |
printf %s "checking whether $CC supports -Wl,--nxcompat flag... " >&6; } |
| 33639 |
if test ${mhd_cv_cc_lfl_supp__Wl___nxcompat+y} |
| 33640 |
then : |
| 33641 |
printf %s "(cached) " >&6 |
| 33642 |
else case e in #( |
| 33643 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33644 |
LDFLAGS="${LDFLAGS_ac} -Wl,--nxcompat ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33645 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33646 |
ac_c_werror_flag=yes |
| 33647 |
# Reuse the same source for all the checks here |
| 33648 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33649 |
/* end confdefs.h. */ |
| 33650 |
|
| 33651 |
int main(void) |
| 33652 |
{ |
| 33653 |
return 0; |
| 33654 |
} |
| 33655 |
|
| 33656 |
_ACEOF |
| 33657 |
if ac_fn_c_try_link "$LINENO" |
| 33658 |
then : |
| 33659 |
mhd_cv_cc_lfl_supp__Wl___nxcompat="yes" |
| 33660 |
else case e in #( |
| 33661 |
e) # Compile and link failed with test flag added |
| 33662 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33663 |
if ac_fn_c_try_link "$LINENO" |
| 33664 |
then : |
| 33665 |
mhd_cv_cc_lfl_supp__Wl___nxcompat="no" |
| 33666 |
else case e in #( |
| 33667 |
e) # Compile and link failed with test flag removed as well |
| 33668 |
LDFLAGS="${LDFLAGS_ac} -Wl,--nxcompat ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33669 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33670 |
if ac_fn_c_try_link "$LINENO" |
| 33671 |
then : |
| 33672 |
mhd_cv_cc_lfl_supp__Wl___nxcompat="yes" |
| 33673 |
else case e in #( |
| 33674 |
e) mhd_cv_cc_lfl_supp__Wl___nxcompat="no" ;; |
| 33675 |
esac |
| 33676 |
fi |
| 33677 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33678 |
conftest$ac_exeext |
| 33679 |
|
| 33680 |
;; |
| 33681 |
esac |
| 33682 |
fi |
| 33683 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33684 |
conftest$ac_exeext |
| 33685 |
|
| 33686 |
;; |
| 33687 |
esac |
| 33688 |
fi |
| 33689 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33690 |
conftest$ac_exeext |
| 33691 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33692 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33693 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33694 |
|
| 33695 |
;; |
| 33696 |
esac |
| 33697 |
fi |
| 33698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___nxcompat" >&5 |
| 33699 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___nxcompat" >&6; } |
| 33700 |
if test "x$mhd_cv_cc_lfl_supp__Wl___nxcompat" = x"yes" |
| 33701 |
then : |
| 33702 |
if test -z "${LDFLAGS_ac}" |
| 33703 |
then : |
| 33704 |
LDFLAGS_ac="-Wl,--nxcompat" |
| 33705 |
else case e in #( |
| 33706 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--nxcompat" ;; |
| 33707 |
esac |
| 33708 |
fi |
| 33709 |
|
| 33710 |
|
| 33711 |
fi |
| 33712 |
|
| 33713 |
|
| 33714 |
|
| 33715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--high-entropy-va flag" >&5 |
| 33716 |
printf %s "checking whether $CC supports -Wl,--high-entropy-va flag... " >&6; } |
| 33717 |
if test ${mhd_cv_cc_lfl_supp__Wl___high_entropy_va+y} |
| 33718 |
then : |
| 33719 |
printf %s "(cached) " >&6 |
| 33720 |
else case e in #( |
| 33721 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 33722 |
LDFLAGS="${LDFLAGS_ac} -Wl,--high-entropy-va ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33723 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 33724 |
ac_c_werror_flag=yes |
| 33725 |
# Reuse the same source for all the checks here |
| 33726 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33727 |
/* end confdefs.h. */ |
| 33728 |
|
| 33729 |
int main(void) |
| 33730 |
{ |
| 33731 |
return 0; |
| 33732 |
} |
| 33733 |
|
| 33734 |
_ACEOF |
| 33735 |
if ac_fn_c_try_link "$LINENO" |
| 33736 |
then : |
| 33737 |
mhd_cv_cc_lfl_supp__Wl___high_entropy_va="yes" |
| 33738 |
else case e in #( |
| 33739 |
e) # Compile and link failed with test flag added |
| 33740 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 33741 |
if ac_fn_c_try_link "$LINENO" |
| 33742 |
then : |
| 33743 |
mhd_cv_cc_lfl_supp__Wl___high_entropy_va="no" |
| 33744 |
else case e in #( |
| 33745 |
e) # Compile and link failed with test flag removed as well |
| 33746 |
LDFLAGS="${LDFLAGS_ac} -Wl,--high-entropy-va ${mhd_check_cc_flag_save_LDFLAGS}" |
| 33747 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33748 |
if ac_fn_c_try_link "$LINENO" |
| 33749 |
then : |
| 33750 |
mhd_cv_cc_lfl_supp__Wl___high_entropy_va="yes" |
| 33751 |
else case e in #( |
| 33752 |
e) mhd_cv_cc_lfl_supp__Wl___high_entropy_va="no" ;; |
| 33753 |
esac |
| 33754 |
fi |
| 33755 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33756 |
conftest$ac_exeext |
| 33757 |
|
| 33758 |
;; |
| 33759 |
esac |
| 33760 |
fi |
| 33761 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33762 |
conftest$ac_exeext |
| 33763 |
|
| 33764 |
;; |
| 33765 |
esac |
| 33766 |
fi |
| 33767 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33768 |
conftest$ac_exeext |
| 33769 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 33770 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 33771 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 33772 |
|
| 33773 |
;; |
| 33774 |
esac |
| 33775 |
fi |
| 33776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___high_entropy_va" >&5 |
| 33777 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___high_entropy_va" >&6; } |
| 33778 |
if test "x$mhd_cv_cc_lfl_supp__Wl___high_entropy_va" = x"yes" |
| 33779 |
then : |
| 33780 |
if test -z "${LDFLAGS_ac}" |
| 33781 |
then : |
| 33782 |
LDFLAGS_ac="-Wl,--high-entropy-va" |
| 33783 |
else case e in #( |
| 33784 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--high-entropy-va" ;; |
| 33785 |
esac |
| 33786 |
fi |
| 33787 |
|
| 33788 |
|
| 33789 |
fi |
| 33790 |
|
| 33791 |
|
| 33792 |
|
| 33793 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 33794 |
|
| 33795 |
|
| 33796 |
fi |
| 33797 |
|
| 33798 |
|
| 33799 |
# Expansion of macro MHD_BOOL starts here |
| 33800 |
mhd_bool_test_code=' |
| 33801 |
static bool get_false(void) |
| 33802 |
{ |
| 33803 |
static bool test_arr[sizeof(bool)*2 - 1] = {false}; |
| 33804 |
return test_arr[0]; |
| 33805 |
} |
| 33806 |
|
| 33807 |
int main(void) |
| 33808 |
{ |
| 33809 |
static bool var1 = true; |
| 33810 |
static bool var2 = false; |
| 33811 |
static int int_arr[2 - 3 * ((int) (false))] = {(int) true, (int) false}; |
| 33812 |
static bool bool_arr[2 - 3 * ((int) (!true))] = {false, true}; |
| 33813 |
if(!var1 || var2 || !int_arr[0] || int_arr[1] || bool_arr[0] || |
| 33814 |
!bool_arr[1] || get_false() || 0 == sizeof(bool) || false || !true) |
| 33815 |
return 5; |
| 33816 |
return 0; |
| 33817 |
} |
| 33818 |
' |
| 33819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"bool\", \"true\" and \"false\" work natively" >&5 |
| 33820 |
printf %s "checking whether \"bool\", \"true\" and \"false\" work natively... " >&6; } |
| 33821 |
if test ${mhd_cv_bool_native+y} |
| 33822 |
then : |
| 33823 |
printf %s "(cached) " >&6 |
| 33824 |
else case e in #( |
| 33825 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33826 |
/* end confdefs.h. */ |
| 33827 |
${mhd_bool_test_code} |
| 33828 |
_ACEOF |
| 33829 |
if ac_fn_c_try_compile "$LINENO" |
| 33830 |
then : |
| 33831 |
mhd_cv_bool_native="yes" |
| 33832 |
else case e in #( |
| 33833 |
e) mhd_cv_bool_native="no" ;; |
| 33834 |
esac |
| 33835 |
fi |
| 33836 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 33837 |
esac |
| 33838 |
fi |
| 33839 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_bool_native" >&5 |
| 33840 |
printf "%s\n" "$mhd_cv_bool_native" >&6; } |
| 33841 |
if test "x$mhd_cv_bool_native" = x"yes" |
| 33842 |
then : |
| 33843 |
|
| 33844 |
printf "%s\n" "#define HAVE_BUILTIN_TYPE_BOOL 1" >>confdefs.h |
| 33845 |
|
| 33846 |
else case e in #( |
| 33847 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <stdbool.h> is present and defines proper \"bool\", \"true\" and \"false\"" >&5 |
| 33848 |
printf %s "checking whether <stdbool.h> is present and defines proper \"bool\", \"true\" and \"false\"... " >&6; } |
| 33849 |
if test ${mhd_cv_bool_stdbool+y} |
| 33850 |
then : |
| 33851 |
printf %s "(cached) " >&6 |
| 33852 |
else case e in #( |
| 33853 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33854 |
/* end confdefs.h. */ |
| 33855 |
|
| 33856 |
#include <stdbool.h> |
| 33857 |
|
| 33858 |
${mhd_bool_test_code} |
| 33859 |
|
| 33860 |
_ACEOF |
| 33861 |
if ac_fn_c_try_compile "$LINENO" |
| 33862 |
then : |
| 33863 |
mhd_cv_bool_stdbool="yes" |
| 33864 |
else case e in #( |
| 33865 |
e) mhd_cv_bool_stdbool="no" ;; |
| 33866 |
esac |
| 33867 |
fi |
| 33868 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 33869 |
esac |
| 33870 |
fi |
| 33871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_bool_stdbool" >&5 |
| 33872 |
printf "%s\n" "$mhd_cv_bool_stdbool" >&6; } |
| 33873 |
if test "x$mhd_cv_bool_stdbool" = x"yes" |
| 33874 |
then : |
| 33875 |
|
| 33876 |
printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| 33877 |
|
| 33878 |
printf "%s\n" "#define HAVE_BUILTIN_TYPE_BOOL 1" >>confdefs.h |
| 33879 |
|
| 33880 |
else case e in #( |
| 33881 |
e) # Need 'bool', 'false' and 'true'. |
| 33882 |
ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" " |
| 33883 |
" |
| 33884 |
if test "x$ac_cv_type_bool" = xyes |
| 33885 |
then : |
| 33886 |
printf "%s\n" "#define HAVE_BUILTIN_TYPE_BOOL 1" >>confdefs.h |
| 33887 |
|
| 33888 |
else case e in #( |
| 33889 |
e) ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" " |
| 33890 |
" |
| 33891 |
if test "x$ac_cv_type__Bool" = xyes |
| 33892 |
then : |
| 33893 |
printf "%s\n" "#define HAVE_BUILTIN_TYPE_BOOL 1" >>confdefs.h |
| 33894 |
|
| 33895 |
printf "%s\n" "#define bool _Bool" >>confdefs.h |
| 33896 |
|
| 33897 |
else case e in #( |
| 33898 |
e) printf "%s\n" "#define bool int" >>confdefs.h |
| 33899 |
|
| 33900 |
;; |
| 33901 |
esac |
| 33902 |
fi |
| 33903 |
;; |
| 33904 |
esac |
| 33905 |
fi |
| 33906 |
# Have 'bool'. Need 'false' and 'true'. |
| 33907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"false\" keyword available and works" >&5 |
| 33908 |
printf %s "checking whether \"false\" keyword available and works... " >&6; } |
| 33909 |
if test ${mhd_cv_keyword_false_works+y} |
| 33910 |
then : |
| 33911 |
printf %s "(cached) " >&6 |
| 33912 |
else case e in #( |
| 33913 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33914 |
/* end confdefs.h. */ |
| 33915 |
|
| 33916 |
int main(void) |
| 33917 |
{ |
| 33918 |
static bool var1 = false || false; |
| 33919 |
static bool var2 = false; |
| 33920 |
static bool bool_arr[2 - 3 * ((int) (false))] = {false, !false}; |
| 33921 |
if(var1 || var2 || bool_arr[0] || !bool_arr[1] || false) |
| 33922 |
return 5; |
| 33923 |
return 0; |
| 33924 |
} |
| 33925 |
|
| 33926 |
_ACEOF |
| 33927 |
if ac_fn_c_try_compile "$LINENO" |
| 33928 |
then : |
| 33929 |
mhd_cv_keyword_false_works='yes' |
| 33930 |
else case e in #( |
| 33931 |
e) mhd_cv_keyword_false_works='no' ;; |
| 33932 |
esac |
| 33933 |
fi |
| 33934 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 33935 |
esac |
| 33936 |
fi |
| 33937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_keyword_false_works" >&5 |
| 33938 |
printf "%s\n" "$mhd_cv_keyword_false_works" >&6; } |
| 33939 |
if test "x$mhd_cv_keyword_false_works" = x"no" |
| 33940 |
then : |
| 33941 |
|
| 33942 |
printf "%s\n" "#define false (0)" >>confdefs.h |
| 33943 |
|
| 33944 |
fi |
| 33945 |
# Have 'bool' and 'false'. Need 'true'. |
| 33946 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \"true\" keyword available and works" >&5 |
| 33947 |
printf %s "checking whether \"true\" keyword available and works... " >&6; } |
| 33948 |
if test ${mhd_cv_keyword_true_works+y} |
| 33949 |
then : |
| 33950 |
printf %s "(cached) " >&6 |
| 33951 |
else case e in #( |
| 33952 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33953 |
/* end confdefs.h. */ |
| 33954 |
|
| 33955 |
int main(void) |
| 33956 |
{ |
| 33957 |
static bool var1 = true && true; |
| 33958 |
static bool var2 = true; |
| 33959 |
static bool bool_arr[2 - 3 * ((int) (!true))] = {true, !true}; |
| 33960 |
if(!var1 || !var2 || !bool_arr[0] || bool_arr[1] || !true) |
| 33961 |
return 5; |
| 33962 |
return 0; |
| 33963 |
} |
| 33964 |
|
| 33965 |
_ACEOF |
| 33966 |
if ac_fn_c_try_compile "$LINENO" |
| 33967 |
then : |
| 33968 |
mhd_cv_keyword_true_works='yes' |
| 33969 |
else case e in #( |
| 33970 |
e) mhd_cv_keyword_true_works='no' ;; |
| 33971 |
esac |
| 33972 |
fi |
| 33973 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 33974 |
esac |
| 33975 |
fi |
| 33976 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_keyword_true_works" >&5 |
| 33977 |
printf "%s\n" "$mhd_cv_keyword_true_works" >&6; } |
| 33978 |
if test "x$mhd_cv_keyword_true_works" = x"no" |
| 33979 |
then : |
| 33980 |
|
| 33981 |
printf "%s\n" "#define true (!false)" >>confdefs.h |
| 33982 |
|
| 33983 |
fi |
| 33984 |
# Have 'bool', 'false' and 'true'. |
| 33985 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the defined \"bool\", \"true\" and \"false\" can work together" >&5 |
| 33986 |
printf %s "checking whether the defined \"bool\", \"true\" and \"false\" can work together... " >&6; } |
| 33987 |
if test ${mhd_cv_bool_true_false_work+y} |
| 33988 |
then : |
| 33989 |
printf %s "(cached) " >&6 |
| 33990 |
else case e in #( |
| 33991 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33992 |
/* end confdefs.h. */ |
| 33993 |
${mhd_bool_test_code} |
| 33994 |
_ACEOF |
| 33995 |
if ac_fn_c_try_compile "$LINENO" |
| 33996 |
then : |
| 33997 |
mhd_cv_bool_true_false_work="yes" |
| 33998 |
else case e in #( |
| 33999 |
e) mhd_cv_bool_true_false_work="no" ;; |
| 34000 |
esac |
| 34001 |
fi |
| 34002 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 34003 |
esac |
| 34004 |
fi |
| 34005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_bool_true_false_work" >&5 |
| 34006 |
printf "%s\n" "$mhd_cv_bool_true_false_work" >&6; } |
| 34007 |
if test "x$mhd_cv_bool_true_false_work" = x"yes" |
| 34008 |
then : |
| 34009 |
: |
| 34010 |
else case e in #( |
| 34011 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 34012 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 34013 |
as_fn_error $? "cannot find suitable replacements for \"bool\", \"true\" and \"false\" |
| 34014 |
See 'config.log' for more details" "$LINENO" 5; } |
| 34015 |
;; |
| 34016 |
esac |
| 34017 |
fi |
| 34018 |
;; |
| 34019 |
esac |
| 34020 |
fi |
| 34021 |
;; |
| 34022 |
esac |
| 34023 |
fi |
| 34024 |
{ mhd_bool_test_code=; unset mhd_bool_test_code;} |
| 34025 |
|
| 34026 |
# Expansion of macro MHD_BOOL ends here |
| 34027 |
|
| 34028 |
|
| 34029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 34030 |
printf %s "checking for inline... " >&6; } |
| 34031 |
if test ${ac_cv_c_inline+y} |
| 34032 |
then : |
| 34033 |
printf %s "(cached) " >&6 |
| 34034 |
else case e in #( |
| 34035 |
e) ac_cv_c_inline=no |
| 34036 |
for ac_kw in inline __inline__ __inline; do |
| 34037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34038 |
/* end confdefs.h. */ |
| 34039 |
#ifndef __cplusplus |
| 34040 |
typedef int foo_t; |
| 34041 |
static $ac_kw foo_t static_foo (void) {return 0; } |
| 34042 |
$ac_kw foo_t foo (void) {return 0; } |
| 34043 |
#endif |
| 34044 |
|
| 34045 |
_ACEOF |
| 34046 |
if ac_fn_c_try_compile "$LINENO" |
| 34047 |
then : |
| 34048 |
ac_cv_c_inline=$ac_kw |
| 34049 |
fi |
| 34050 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34051 |
test "$ac_cv_c_inline" != no && break |
| 34052 |
done |
| 34053 |
;; |
| 34054 |
esac |
| 34055 |
fi |
| 34056 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 34057 |
printf "%s\n" "$ac_cv_c_inline" >&6; } |
| 34058 |
|
| 34059 |
case $ac_cv_c_inline in |
| 34060 |
inline | yes) ;; |
| 34061 |
*) |
| 34062 |
case $ac_cv_c_inline in |
| 34063 |
no) ac_val=;; |
| 34064 |
*) ac_val=$ac_cv_c_inline;; |
| 34065 |
esac |
| 34066 |
cat >>confdefs.h <<_ACEOF |
| 34067 |
#ifndef __cplusplus |
| 34068 |
#define inline $ac_val |
| 34069 |
#endif |
| 34070 |
_ACEOF |
| 34071 |
;; |
| 34072 |
esac |
| 34073 |
|
| 34074 |
{ errattr_CFLAGS=; unset errattr_CFLAGS;} |
| 34075 |
CFLAGS="${user_CFLAGS}" |
| 34076 |
|
| 34077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Werror=attributes flag" >&5 |
| 34078 |
printf %s "checking whether $CC supports -Werror=attributes flag... " >&6; } |
| 34079 |
if test ${mhd_cv_cc_cfl_supp__Werror_attributes+y} |
| 34080 |
then : |
| 34081 |
printf %s "(cached) " >&6 |
| 34082 |
else case e in #( |
| 34083 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 34084 |
CFLAGS="${CFLAGS_ac} -Werror=attributes ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 34085 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 34086 |
ac_c_werror_flag=yes |
| 34087 |
# Reuse the same source for all the checks here |
| 34088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34089 |
/* end confdefs.h. */ |
| 34090 |
|
| 34091 |
int main(void) |
| 34092 |
{ |
| 34093 |
return 0; |
| 34094 |
} |
| 34095 |
|
| 34096 |
_ACEOF |
| 34097 |
if ac_fn_c_try_link "$LINENO" |
| 34098 |
then : |
| 34099 |
mhd_cv_cc_cfl_supp__Werror_attributes="yes" |
| 34100 |
else case e in #( |
| 34101 |
e) # Compile and link failed with test flag added |
| 34102 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 34103 |
if ac_fn_c_try_link "$LINENO" |
| 34104 |
then : |
| 34105 |
mhd_cv_cc_cfl_supp__Werror_attributes="no" |
| 34106 |
else case e in #( |
| 34107 |
e) # Compile and link failed with test flag removed as well |
| 34108 |
CFLAGS="${CFLAGS_ac} -Werror=attributes ${mhd_check_cc_flag_save_CFLAGS}" |
| 34109 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 34110 |
if ac_fn_c_try_link "$LINENO" |
| 34111 |
then : |
| 34112 |
mhd_cv_cc_cfl_supp__Werror_attributes="yes" |
| 34113 |
else case e in #( |
| 34114 |
e) mhd_cv_cc_cfl_supp__Werror_attributes="no" ;; |
| 34115 |
esac |
| 34116 |
fi |
| 34117 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 34118 |
conftest$ac_exeext |
| 34119 |
|
| 34120 |
;; |
| 34121 |
esac |
| 34122 |
fi |
| 34123 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 34124 |
conftest$ac_exeext |
| 34125 |
|
| 34126 |
;; |
| 34127 |
esac |
| 34128 |
fi |
| 34129 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 34130 |
conftest$ac_exeext |
| 34131 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 34132 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 34133 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 34134 |
|
| 34135 |
;; |
| 34136 |
esac |
| 34137 |
fi |
| 34138 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Werror_attributes" >&5 |
| 34139 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Werror_attributes" >&6; } |
| 34140 |
if test "x$mhd_cv_cc_cfl_supp__Werror_attributes" = x"yes" |
| 34141 |
then : |
| 34142 |
|
| 34143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Werror=attributes actually works" >&5 |
| 34144 |
printf %s "checking whether -Werror=attributes actually works... " >&6; } |
| 34145 |
if test ${mhd_cv_cflag_werror_attr_works+y} |
| 34146 |
then : |
| 34147 |
printf %s "(cached) " >&6 |
| 34148 |
else case e in #( |
| 34149 |
e) |
| 34150 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS} -Werror=attributes" |
| 34151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34152 |
/* end confdefs.h. */ |
| 34153 |
|
| 34154 |
__attribute__((non_existing_attrb_dummy)) static int SimpleFunc(void) {return 3;} |
| 34155 |
int |
| 34156 |
main (void) |
| 34157 |
{ |
| 34158 |
int r = SimpleFunc(); if (r) return r; |
| 34159 |
|
| 34160 |
; |
| 34161 |
return 0; |
| 34162 |
} |
| 34163 |
|
| 34164 |
_ACEOF |
| 34165 |
if ac_fn_c_try_compile "$LINENO" |
| 34166 |
then : |
| 34167 |
mhd_cv_cflag_werror_attr_works="no" |
| 34168 |
else case e in #( |
| 34169 |
e) mhd_cv_cflag_werror_attr_works="yes" |
| 34170 |
;; |
| 34171 |
esac |
| 34172 |
fi |
| 34173 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34174 |
|
| 34175 |
;; |
| 34176 |
esac |
| 34177 |
fi |
| 34178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cflag_werror_attr_works" >&5 |
| 34179 |
printf "%s\n" "$mhd_cv_cflag_werror_attr_works" >&6; } |
| 34180 |
if test "x$mhd_cv_cflag_werror_attr_works" = x"yes" |
| 34181 |
then : |
| 34182 |
errattr_CFLAGS="-Werror=attributes" |
| 34183 |
|
| 34184 |
fi |
| 34185 |
|
| 34186 |
|
| 34187 |
fi |
| 34188 |
|
| 34189 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 34190 |
if test "x$ac_cv_c_inline" != "xno" |
| 34191 |
then : |
| 34192 |
|
| 34193 |
|
| 34194 |
printf "%s\n" "#define HAVE_INLINE_FUNCS 1" >>confdefs.h |
| 34195 |
|
| 34196 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function force inline keywords supported by $CC" >&5 |
| 34197 |
printf %s "checking for function force inline keywords supported by $CC... " >&6; } |
| 34198 |
if test ${mhd_cv_cc_kwd_forceinline+y} |
| 34199 |
then : |
| 34200 |
printf %s "(cached) " >&6 |
| 34201 |
else case e in #( |
| 34202 |
e) |
| 34203 |
MHD_SAVED_ac_c_werror_flag="$ac_c_werror_flag" |
| 34204 |
ac_c_werror_flag=yes |
| 34205 |
mhd_cv_cc_kwd_forceinline="none" |
| 34206 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS} $errattr_CFLAGS" |
| 34207 |
for keyword_chk in "inline __attribute__((always_inline))" __forceinline |
| 34208 |
do |
| 34209 |
case ${keyword_chk} in #( |
| 34210 |
*attribute*) : |
| 34211 |
if test "x$errattr_CFLAGS" = "x" |
| 34212 |
then : |
| 34213 |
continue |
| 34214 |
fi |
| 34215 |
;; #( |
| 34216 |
*) : |
| 34217 |
;; |
| 34218 |
esac |
| 34219 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34220 |
/* end confdefs.h. */ |
| 34221 |
|
| 34222 |
|
| 34223 |
#ifdef HAVE_STDBOOL_H |
| 34224 |
#include <stdbool.h> |
| 34225 |
#endif |
| 34226 |
static ${keyword_chk} bool cmpfn(int x, int y) |
| 34227 |
{ return x > y; } |
| 34228 |
static ${keyword_chk} int sumfn(int x, int y) |
| 34229 |
{ return x + y; } |
| 34230 |
|
| 34231 |
int main(void) |
| 34232 |
{ |
| 34233 |
int a = 1, b = 100, c; |
| 34234 |
if (cmpfn(a, b)) |
| 34235 |
c = sumfn(a, b); |
| 34236 |
else |
| 34237 |
c = 0 - sumfn(a, b); |
| 34238 |
return (cmpfn(0, c) ? 0 : 5); |
| 34239 |
} |
| 34240 |
|
| 34241 |
|
| 34242 |
|
| 34243 |
_ACEOF |
| 34244 |
if ac_fn_c_try_link "$LINENO" |
| 34245 |
then : |
| 34246 |
mhd_cv_cc_kwd_forceinline="${keyword_chk}" |
| 34247 |
|
| 34248 |
fi |
| 34249 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 34250 |
conftest$ac_exeext conftest.$ac_ext |
| 34251 |
test "x${mhd_cv_cc_kwd_forceinline}" != "xnone" && break |
| 34252 |
done |
| 34253 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 34254 |
ac_c_werror_flag="$MHD_SAVED_ac_c_werror_flag" |
| 34255 |
{ MHD_SAVED_ac_c_werror_flag=; unset MHD_SAVED_ac_c_werror_flag;} |
| 34256 |
|
| 34257 |
;; |
| 34258 |
esac |
| 34259 |
fi |
| 34260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_kwd_forceinline" >&5 |
| 34261 |
printf "%s\n" "$mhd_cv_cc_kwd_forceinline" >&6; } |
| 34262 |
|
| 34263 |
|
| 34264 |
fi |
| 34265 |
if test "x$ac_cv_c_inline" != "xno" && test "x${mhd_cv_cc_kwd_forceinline}" != "xnone" |
| 34266 |
then : |
| 34267 |
|
| 34268 |
printf "%s\n" "#define _MHD_static_inline static $mhd_cv_cc_kwd_forceinline" >>confdefs.h |
| 34269 |
|
| 34270 |
|
| 34271 |
else case e in #( |
| 34272 |
e) |
| 34273 |
printf "%s\n" "#define _MHD_static_inline static inline" >>confdefs.h |
| 34274 |
|
| 34275 |
;; |
| 34276 |
esac |
| 34277 |
fi |
| 34278 |
|
| 34279 |
ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default |
| 34280 |
" |
| 34281 |
if test "x$ac_cv_header_stdalign_h" = xyes |
| 34282 |
then : |
| 34283 |
printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h |
| 34284 |
|
| 34285 |
fi |
| 34286 |
|
| 34287 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C11 'alignof()' support" >&5 |
| 34288 |
printf %s "checking for C11 'alignof()' support... " >&6; } |
| 34289 |
if test ${mhd_cv_c_alignof+y} |
| 34290 |
then : |
| 34291 |
printf %s "(cached) " >&6 |
| 34292 |
else case e in #( |
| 34293 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34294 |
/* end confdefs.h. */ |
| 34295 |
|
| 34296 |
#ifdef HAVE_STDALIGN_H |
| 34297 |
#include <stdalign.h> |
| 34298 |
#endif |
| 34299 |
|
| 34300 |
int |
| 34301 |
main (void) |
| 34302 |
{ |
| 34303 |
|
| 34304 |
int var1[(alignof(int) >= 2) ? 1 : -1]; |
| 34305 |
int var2[alignof(unsigned int) - 1]; |
| 34306 |
int var3[(alignof(char) > 0) ? 1 : -1]; |
| 34307 |
int var4[(alignof(long) >= 4) ? 1 : -1]; |
| 34308 |
|
| 34309 |
/* Mute compiler warnings */ |
| 34310 |
var1[0] = var2[0] = var3[0] = 0; |
| 34311 |
var4[0] = 1; |
| 34312 |
if (var1[0] + var2[0] + var3[0] == var4[0]) |
| 34313 |
return 1; |
| 34314 |
|
| 34315 |
; |
| 34316 |
return 0; |
| 34317 |
} |
| 34318 |
|
| 34319 |
_ACEOF |
| 34320 |
if ac_fn_c_try_compile "$LINENO" |
| 34321 |
then : |
| 34322 |
|
| 34323 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34324 |
/* end confdefs.h. */ |
| 34325 |
|
| 34326 |
#ifdef HAVE_STDALIGN_H |
| 34327 |
#include <stdalign.h> |
| 34328 |
#endif |
| 34329 |
|
| 34330 |
int |
| 34331 |
main (void) |
| 34332 |
{ |
| 34333 |
|
| 34334 |
/* Should fail if 'alignof()' works */ |
| 34335 |
int var1[alignof(nonexisting_type) - 1]; |
| 34336 |
|
| 34337 |
/* Mute compiler warnings */ |
| 34338 |
var1[0] = 1; |
| 34339 |
if (var1[0] + 1 == 1) |
| 34340 |
return 1; |
| 34341 |
|
| 34342 |
; |
| 34343 |
return 0; |
| 34344 |
} |
| 34345 |
|
| 34346 |
_ACEOF |
| 34347 |
if ac_fn_c_try_compile "$LINENO" |
| 34348 |
then : |
| 34349 |
mhd_cv_c_alignof='no' |
| 34350 |
else case e in #( |
| 34351 |
e) mhd_cv_c_alignof='yes' ;; |
| 34352 |
esac |
| 34353 |
fi |
| 34354 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34355 |
|
| 34356 |
else case e in #( |
| 34357 |
e) mhd_cv_c_alignof='no' ;; |
| 34358 |
esac |
| 34359 |
fi |
| 34360 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34361 |
;; |
| 34362 |
esac |
| 34363 |
fi |
| 34364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_c_alignof" >&5 |
| 34365 |
printf "%s\n" "$mhd_cv_c_alignof" >&6; } |
| 34366 |
if test "x$mhd_cv_c_alignof" = x"yes" |
| 34367 |
then : |
| 34368 |
|
| 34369 |
printf "%s\n" "#define HAVE_C_ALIGNOF 1" >>confdefs.h |
| 34370 |
|
| 34371 |
fi |
| 34372 |
|
| 34373 |
|
| 34374 |
# Check system type |
| 34375 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for target host OS" >&5 |
| 34376 |
printf %s "checking for target host OS... " >&6; } |
| 34377 |
os_is_windows="no" |
| 34378 |
os_is_native_w32="no" |
| 34379 |
case "$host_os" in #( |
| 34380 |
*darwin* | *rhapsody* | *macosx*) : |
| 34381 |
|
| 34382 |
printf "%s\n" "#define OSX 1" >>confdefs.h |
| 34383 |
|
| 34384 |
mhd_host_os='Darwin' |
| 34385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34386 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34387 |
kfreebsd*-gnu) : |
| 34388 |
|
| 34389 |
printf "%s\n" "#define SOMEBSD 1" >>confdefs.h |
| 34390 |
|
| 34391 |
|
| 34392 |
printf "%s\n" "#define FREEBSD 1" >>confdefs.h |
| 34393 |
|
| 34394 |
mhd_host_os='FreeBSD kernel with GNU userland' |
| 34395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34396 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34397 |
freebsd*) : |
| 34398 |
|
| 34399 |
printf "%s\n" "#define SOMEBSD 1" >>confdefs.h |
| 34400 |
|
| 34401 |
|
| 34402 |
printf "%s\n" "#define FREEBSD 1" >>confdefs.h |
| 34403 |
|
| 34404 |
mhd_host_os='FreeBSD' |
| 34405 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34406 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34407 |
openbsd*) : |
| 34408 |
|
| 34409 |
printf "%s\n" "#define SOMEBSD 1" >>confdefs.h |
| 34410 |
|
| 34411 |
|
| 34412 |
printf "%s\n" "#define OPENBSD 1" >>confdefs.h |
| 34413 |
|
| 34414 |
mhd_host_os='OpenBSD' |
| 34415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34416 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34417 |
netbsd*) : |
| 34418 |
|
| 34419 |
printf "%s\n" "#define SOMEBSD 1" >>confdefs.h |
| 34420 |
|
| 34421 |
|
| 34422 |
printf "%s\n" "#define NETBSD 1" >>confdefs.h |
| 34423 |
|
| 34424 |
mhd_host_os='NetBSD' |
| 34425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34426 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34427 |
*solaris*) : |
| 34428 |
|
| 34429 |
printf "%s\n" "#define SOLARIS 1" >>confdefs.h |
| 34430 |
|
| 34431 |
|
| 34432 |
printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
| 34433 |
|
| 34434 |
mhd_host_os='Solaris' |
| 34435 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34436 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34437 |
linux-gnu) : |
| 34438 |
|
| 34439 |
printf "%s\n" "#define LINUX 1" >>confdefs.h |
| 34440 |
|
| 34441 |
mhd_host_os='GNU/Linux' |
| 34442 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34443 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34444 |
linux-android*) : |
| 34445 |
|
| 34446 |
printf "%s\n" "#define LINUX 1" >>confdefs.h |
| 34447 |
|
| 34448 |
mhd_host_os='Android' |
| 34449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34450 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34451 |
*linux*) : |
| 34452 |
|
| 34453 |
printf "%s\n" "#define LINUX 1" >>confdefs.h |
| 34454 |
|
| 34455 |
mhd_host_os='Linux' |
| 34456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34457 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34458 |
*cygwin*) : |
| 34459 |
|
| 34460 |
printf "%s\n" "#define CYGWIN 1" >>confdefs.h |
| 34461 |
|
| 34462 |
mhd_host_os='Windows/Cygwin' |
| 34463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34464 |
printf "%s\n" "$mhd_host_os" >&6; } |
| 34465 |
os_is_windows="yes" ;; #( |
| 34466 |
*mingw*) : |
| 34467 |
|
| 34468 |
|
| 34469 |
printf "%s\n" "#define MINGW 1" >>confdefs.h |
| 34470 |
|
| 34471 |
|
| 34472 |
printf "%s\n" "#define WINDOWS 1" >>confdefs.h |
| 34473 |
|
| 34474 |
mhd_host_os='Windows/MinGW' |
| 34475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34476 |
printf "%s\n" "$mhd_host_os" >&6; } |
| 34477 |
for ac_header in winsock2.h ws2tcpip.h |
| 34478 |
do : |
| 34479 |
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` |
| 34480 |
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 34481 |
" |
| 34482 |
if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 34483 |
then : |
| 34484 |
cat >>confdefs.h <<_ACEOF |
| 34485 |
#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 |
| 34486 |
_ACEOF |
| 34487 |
|
| 34488 |
else case e in #( |
| 34489 |
e) as_fn_error $? "Winsock2 headers are required for W32" "$LINENO" 5 ;; |
| 34490 |
esac |
| 34491 |
fi |
| 34492 |
|
| 34493 |
done |
| 34494 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MS lib utility" >&5 |
| 34495 |
printf %s "checking for MS lib utility... " >&6; } |
| 34496 |
if test ${ac_cv_use_ms_lib_tool+y} |
| 34497 |
then : |
| 34498 |
printf %s "(cached) " >&6 |
| 34499 |
else case e in #( |
| 34500 |
e) mslibcheck=`lib 2>&1` |
| 34501 |
if echo "$mslibcheck" | $GREP -e '^Microsoft (R) Library Manager' - >/dev/null |
| 34502 |
then : |
| 34503 |
ac_cv_use_ms_lib_tool=yes |
| 34504 |
else case e in #( |
| 34505 |
e) ac_cv_use_ms_lib_tool=no ;; |
| 34506 |
esac |
| 34507 |
fi |
| 34508 |
;; |
| 34509 |
esac |
| 34510 |
fi |
| 34511 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_use_ms_lib_tool" >&5 |
| 34512 |
printf "%s\n" "$ac_cv_use_ms_lib_tool" >&6; } |
| 34513 |
if test "x$ac_cv_use_ms_lib_tool" = "xyes" |
| 34514 |
then : |
| 34515 |
MS_LIB_TOOL=lib |
| 34516 |
|
| 34517 |
fi |
| 34518 |
|
| 34519 |
os_is_windows="yes" |
| 34520 |
os_is_native_w32="yes" |
| 34521 |
;; #( |
| 34522 |
*openedition*) : |
| 34523 |
|
| 34524 |
printf "%s\n" "#define OS390 1" >>confdefs.h |
| 34525 |
|
| 34526 |
mhd_host_os='OS/390' |
| 34527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34528 |
printf "%s\n" "$mhd_host_os" >&6; } ;; #( |
| 34529 |
gnu*) : |
| 34530 |
|
| 34531 |
printf "%s\n" "#define GNU_HURD 1" >>confdefs.h |
| 34532 |
|
| 34533 |
mhd_host_os='GNU Hurd' |
| 34534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_host_os" >&5 |
| 34535 |
printf "%s\n" "$mhd_host_os" >&6; } |
| 34536 |
;; #( |
| 34537 |
*) : |
| 34538 |
|
| 34539 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unrecognised OS" >&5 |
| 34540 |
printf "%s\n" "unrecognised OS" >&6; } |
| 34541 |
mhd_host_os="${host_os}" |
| 34542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognised OS $host_os" >&5 |
| 34543 |
printf "%s\n" "$as_me: WARNING: Unrecognised OS $host_os" >&2;} |
| 34544 |
|
| 34545 |
printf "%s\n" "#define OTHEROS 1" >>confdefs.h |
| 34546 |
|
| 34547 |
;; |
| 34548 |
esac |
| 34549 |
|
| 34550 |
if test "x$os_is_windows" = "xyes" && \ |
| 34551 |
test "x${os_is_native_w32}" != "xyes"; then |
| 34552 |
CYGWIN_TARGET_TRUE= |
| 34553 |
CYGWIN_TARGET_FALSE='#' |
| 34554 |
else |
| 34555 |
CYGWIN_TARGET_TRUE='#' |
| 34556 |
CYGWIN_TARGET_FALSE= |
| 34557 |
fi |
| 34558 |
|
| 34559 |
|
| 34560 |
if test "x$os_is_windows" = x"yes" |
| 34561 |
then : |
| 34562 |
|
| 34563 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether target W32 version is specified by precompiler defines" >&5 |
| 34564 |
printf %s "checking whether target W32 version is specified by precompiler defines... " >&6; } |
| 34565 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34566 |
/* end confdefs.h. */ |
| 34567 |
|
| 34568 |
/* Note: check logic is reversed for easy log reading */ |
| 34569 |
#ifdef WINVER |
| 34570 |
#error WINVER is defined |
| 34571 |
choke me now; |
| 34572 |
#endif |
| 34573 |
#ifdef _WIN32_WINNT |
| 34574 |
#error _WIN32_WINNT is defined |
| 34575 |
choke me now; |
| 34576 |
#endif |
| 34577 |
#ifdef NTDDI |
| 34578 |
#error NTDDI is defined |
| 34579 |
choke me now; |
| 34580 |
#endif |
| 34581 |
|
| 34582 |
int |
| 34583 |
main (void) |
| 34584 |
{ |
| 34585 |
(void)0 |
| 34586 |
; |
| 34587 |
return 0; |
| 34588 |
} |
| 34589 |
|
| 34590 |
_ACEOF |
| 34591 |
if ac_fn_c_try_compile "$LINENO" |
| 34592 |
then : |
| 34593 |
mhd_w32_ver_preselect=no |
| 34594 |
else case e in #( |
| 34595 |
e) mhd_w32_ver_preselect=yes |
| 34596 |
;; |
| 34597 |
esac |
| 34598 |
fi |
| 34599 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_w32_ver_preselect}" >&5 |
| 34601 |
printf "%s\n" "${mhd_w32_ver_preselect}" >&6; } |
| 34602 |
ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default |
| 34603 |
" |
| 34604 |
if test "x$ac_cv_header_windows_h" = xyes |
| 34605 |
then : |
| 34606 |
printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h |
| 34607 |
|
| 34608 |
fi |
| 34609 |
ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default |
| 34610 |
" |
| 34611 |
if test "x$ac_cv_header_sdkddkver_h" = xyes |
| 34612 |
then : |
| 34613 |
printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h |
| 34614 |
|
| 34615 |
fi |
| 34616 |
|
| 34617 |
if test "x$mhd_w32_ver_preselect" = x"yes" |
| 34618 |
then : |
| 34619 |
|
| 34620 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for specified target W32 version" >&5 |
| 34621 |
printf %s "checking for specified target W32 version... " >&6; } |
| 34622 |
{ mhd_w32_ver=; unset mhd_w32_ver;} |
| 34623 |
{ mhd_w32_ver_msg=; unset mhd_w32_ver_msg;} |
| 34624 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34625 |
/* end confdefs.h. */ |
| 34626 |
|
| 34627 |
#if _WIN32_WINNT+0 < 0x0501 |
| 34628 |
/* Check before headers inclusion */ |
| 34629 |
#error _WIN32_WINNT is less than 0x0501 |
| 34630 |
choke me now; |
| 34631 |
#endif |
| 34632 |
|
| 34633 |
#ifdef HAVE_SDKDDKVER_H |
| 34634 |
#include <sdkddkver.h> |
| 34635 |
#endif |
| 34636 |
#ifdef HAVE_WINDOWS_H |
| 34637 |
#include <windows.h> |
| 34638 |
#endif |
| 34639 |
|
| 34640 |
#if _WIN32_WINNT+0 < 0x0501 |
| 34641 |
#error _WIN32_WINNT is less than 0x0501 |
| 34642 |
choke me now; |
| 34643 |
#endif |
| 34644 |
|
| 34645 |
int |
| 34646 |
main (void) |
| 34647 |
{ |
| 34648 |
(void)0 |
| 34649 |
; |
| 34650 |
return 0; |
| 34651 |
} |
| 34652 |
|
| 34653 |
_ACEOF |
| 34654 |
if ac_fn_c_try_compile "$LINENO" |
| 34655 |
then : |
| 34656 |
|
| 34657 |
else case e in #( |
| 34658 |
e) |
| 34659 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: pre-WinXP" >&5 |
| 34660 |
printf "%s\n" "pre-WinXP" >&6; } |
| 34661 |
as_fn_error $? "libmicrohttpd cannot be compiled for Windows version before Windows XP" "$LINENO" 5 |
| 34662 |
|
| 34663 |
;; |
| 34664 |
esac |
| 34665 |
fi |
| 34666 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34667 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34668 |
/* end confdefs.h. */ |
| 34669 |
|
| 34670 |
#ifdef HAVE_SDKDDKVER_H |
| 34671 |
#include <sdkddkver.h> |
| 34672 |
#endif |
| 34673 |
#ifdef HAVE_WINDOWS_H |
| 34674 |
#include <windows.h> |
| 34675 |
#endif |
| 34676 |
|
| 34677 |
#if _WIN32_WINNT+0 == 0x0501 |
| 34678 |
#error _WIN32_WINNT is 0x0501 |
| 34679 |
choke me now; |
| 34680 |
#endif |
| 34681 |
#if _WIN32_WINNT+0 == 0x0502 |
| 34682 |
#error _WIN32_WINNT is 0x0502 |
| 34683 |
choke me now; |
| 34684 |
#endif |
| 34685 |
|
| 34686 |
int |
| 34687 |
main (void) |
| 34688 |
{ |
| 34689 |
(void)0 |
| 34690 |
; |
| 34691 |
return 0; |
| 34692 |
} |
| 34693 |
|
| 34694 |
_ACEOF |
| 34695 |
if ac_fn_c_try_compile "$LINENO" |
| 34696 |
then : |
| 34697 |
|
| 34698 |
else case e in #( |
| 34699 |
e) |
| 34700 |
mhd_w32_ver="WinXP" |
| 34701 |
mhd_w32_ver_msg="WinXP (selected by precompiler flags)" |
| 34702 |
|
| 34703 |
;; |
| 34704 |
esac |
| 34705 |
fi |
| 34706 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34707 |
if test ${mhd_w32_ver+y} |
| 34708 |
then : |
| 34709 |
|
| 34710 |
else case e in #( |
| 34711 |
e) |
| 34712 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34713 |
/* end confdefs.h. */ |
| 34714 |
|
| 34715 |
#ifdef HAVE_SDKDDKVER_H |
| 34716 |
#include <sdkddkver.h> |
| 34717 |
#endif |
| 34718 |
#ifdef HAVE_WINDOWS_H |
| 34719 |
#include <windows.h> |
| 34720 |
#endif |
| 34721 |
|
| 34722 |
#if _WIN32_WINNT+0 < 0x0600 |
| 34723 |
#error _WIN32_WINNT is less than 0x0600 but greater than 0x0502 |
| 34724 |
choke me now; |
| 34725 |
#endif |
| 34726 |
|
| 34727 |
int |
| 34728 |
main (void) |
| 34729 |
{ |
| 34730 |
(void)0 |
| 34731 |
; |
| 34732 |
return 0; |
| 34733 |
} |
| 34734 |
|
| 34735 |
_ACEOF |
| 34736 |
if ac_fn_c_try_compile "$LINENO" |
| 34737 |
then : |
| 34738 |
|
| 34739 |
else case e in #( |
| 34740 |
e) |
| 34741 |
as_fn_error $? "_WIN32_WINNT value is wrong (less than 0x0600 but greater than 0x0502)" "$LINENO" 5 |
| 34742 |
|
| 34743 |
;; |
| 34744 |
esac |
| 34745 |
fi |
| 34746 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34747 |
|
| 34748 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34749 |
/* end confdefs.h. */ |
| 34750 |
|
| 34751 |
#ifdef HAVE_SDKDDKVER_H |
| 34752 |
#include <sdkddkver.h> |
| 34753 |
#endif |
| 34754 |
#ifdef HAVE_WINDOWS_H |
| 34755 |
#include <windows.h> |
| 34756 |
#endif |
| 34757 |
|
| 34758 |
#if _WIN32_WINNT+0 == 0x0600 |
| 34759 |
#error _WIN32_WINNT is 0x0600 |
| 34760 |
choke me now; |
| 34761 |
#endif |
| 34762 |
|
| 34763 |
int |
| 34764 |
main (void) |
| 34765 |
{ |
| 34766 |
(void)0 |
| 34767 |
; |
| 34768 |
return 0; |
| 34769 |
} |
| 34770 |
|
| 34771 |
_ACEOF |
| 34772 |
if ac_fn_c_try_compile "$LINENO" |
| 34773 |
then : |
| 34774 |
|
| 34775 |
else case e in #( |
| 34776 |
e) |
| 34777 |
mhd_w32_ver="Vista" |
| 34778 |
mhd_w32_ver_msg="Vista (selected by precompiler flags)" |
| 34779 |
|
| 34780 |
;; |
| 34781 |
esac |
| 34782 |
fi |
| 34783 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34784 |
|
| 34785 |
;; |
| 34786 |
esac |
| 34787 |
fi |
| 34788 |
|
| 34789 |
if test ${mhd_w32_ver+y} |
| 34790 |
then : |
| 34791 |
|
| 34792 |
else case e in #( |
| 34793 |
e) |
| 34794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34795 |
/* end confdefs.h. */ |
| 34796 |
|
| 34797 |
#ifdef HAVE_SDKDDKVER_H |
| 34798 |
#include <sdkddkver.h> |
| 34799 |
#endif |
| 34800 |
#ifdef HAVE_WINDOWS_H |
| 34801 |
#include <windows.h> |
| 34802 |
#endif |
| 34803 |
|
| 34804 |
#if _WIN32_WINNT+0 > 0x0600 |
| 34805 |
#error _WIN32_WINNT is greater than 0x0600 |
| 34806 |
choke me now; |
| 34807 |
#endif |
| 34808 |
|
| 34809 |
int |
| 34810 |
main (void) |
| 34811 |
{ |
| 34812 |
(void)0 |
| 34813 |
; |
| 34814 |
return 0; |
| 34815 |
} |
| 34816 |
|
| 34817 |
_ACEOF |
| 34818 |
if ac_fn_c_try_compile "$LINENO" |
| 34819 |
then : |
| 34820 |
|
| 34821 |
mhd_w32_ver="unknown" |
| 34822 |
mhd_w32_ver_msg="unknown (cannot be detected)" |
| 34823 |
|
| 34824 |
else case e in #( |
| 34825 |
e) |
| 34826 |
mhd_w32_ver="newer than Vista" |
| 34827 |
mhd_w32_ver_msg="newer than Vista (selected by precompiler flags)" |
| 34828 |
|
| 34829 |
;; |
| 34830 |
esac |
| 34831 |
fi |
| 34832 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34833 |
|
| 34834 |
;; |
| 34835 |
esac |
| 34836 |
fi |
| 34837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mhd_w32_ver}" >&5 |
| 34838 |
printf "%s\n" "${mhd_w32_ver}" >&6; } |
| 34839 |
|
| 34840 |
else case e in #( |
| 34841 |
e) |
| 34842 |
mhd_w32_ver="Vista" |
| 34843 |
mhd_w32_ver_msg="Vista (default, override by CPPFLAGS=-D_WIN32_WINNT=0xNNNN)" |
| 34844 |
CPPFLAGS_ac="${CPPFLAGS_ac} -D_WIN32_WINNT=0x0600" |
| 34845 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 34846 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether headers accept _WIN32_WINNT=0x0600" >&5 |
| 34847 |
printf %s "checking whether headers accept _WIN32_WINNT=0x0600... " >&6; } |
| 34848 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 34849 |
/* end confdefs.h. */ |
| 34850 |
|
| 34851 |
#ifdef HAVE_SDKDDKVER_H |
| 34852 |
#include <sdkddkver.h> |
| 34853 |
#endif |
| 34854 |
#ifdef HAVE_WINDOWS_H |
| 34855 |
#include <windows.h> |
| 34856 |
#endif |
| 34857 |
#include <stdio.h> |
| 34858 |
|
| 34859 |
int |
| 34860 |
main (void) |
| 34861 |
{ |
| 34862 |
(void)0 |
| 34863 |
; |
| 34864 |
return 0; |
| 34865 |
} |
| 34866 |
|
| 34867 |
_ACEOF |
| 34868 |
if ac_fn_c_try_compile "$LINENO" |
| 34869 |
then : |
| 34870 |
|
| 34871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 34872 |
printf "%s\n" "yes" >&6; } |
| 34873 |
|
| 34874 |
else case e in #( |
| 34875 |
e) |
| 34876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 34877 |
printf "%s\n" "no" >&6; } |
| 34878 |
as_fn_error $? "Headers do not accept _WIN32_WINNT=0x0600. Consider override target W32 version by CPPFLAGS=-D_WIN32_WINNT=0xNNNN" "$LINENO" 5 |
| 34879 |
|
| 34880 |
;; |
| 34881 |
esac |
| 34882 |
fi |
| 34883 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 34884 |
|
| 34885 |
;; |
| 34886 |
esac |
| 34887 |
fi |
| 34888 |
|
| 34889 |
|
| 34890 |
fi |
| 34891 |
|
| 34892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 34893 |
printf %s "checking for egrep -e... " >&6; } |
| 34894 |
if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 34895 |
then : |
| 34896 |
printf %s "(cached) " >&6 |
| 34897 |
else case e in #( |
| 34898 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 34899 |
ac_path_EGREP_TRADITIONAL_found=false |
| 34900 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 34901 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34902 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 34903 |
do |
| 34904 |
IFS=$as_save_IFS |
| 34905 |
case $as_dir in #((( |
| 34906 |
'') as_dir=./ ;; |
| 34907 |
*/) ;; |
| 34908 |
*) as_dir=$as_dir/ ;; |
| 34909 |
esac |
| 34910 |
for ac_prog in grep ggrep |
| 34911 |
do |
| 34912 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 34913 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 34914 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 34915 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 34916 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 34917 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 34918 |
*GNU*) |
| 34919 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 34920 |
#( |
| 34921 |
*) |
| 34922 |
ac_count=0 |
| 34923 |
printf %s 0123456789 >"conftest.in" |
| 34924 |
while : |
| 34925 |
do |
| 34926 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 34927 |
mv "conftest.tmp" "conftest.in" |
| 34928 |
cp "conftest.in" "conftest.nl" |
| 34929 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 34930 |
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 34931 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 34932 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 34933 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 34934 |
# Best one so far, save it but keep looking for a better one |
| 34935 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 34936 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 34937 |
fi |
| 34938 |
# 10*(2^10) chars as input seems more than enough |
| 34939 |
test $ac_count -gt 10 && break |
| 34940 |
done |
| 34941 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 34942 |
esac |
| 34943 |
|
| 34944 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 34945 |
done |
| 34946 |
done |
| 34947 |
done |
| 34948 |
IFS=$as_save_IFS |
| 34949 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 34950 |
: |
| 34951 |
fi |
| 34952 |
else |
| 34953 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 34954 |
fi |
| 34955 |
|
| 34956 |
if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 34957 |
then : |
| 34958 |
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 34959 |
else case e in #( |
| 34960 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 34961 |
ac_path_EGREP_TRADITIONAL_found=false |
| 34962 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 34963 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34964 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 34965 |
do |
| 34966 |
IFS=$as_save_IFS |
| 34967 |
case $as_dir in #((( |
| 34968 |
'') as_dir=./ ;; |
| 34969 |
*/) ;; |
| 34970 |
*) as_dir=$as_dir/ ;; |
| 34971 |
esac |
| 34972 |
for ac_prog in egrep |
| 34973 |
do |
| 34974 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 34975 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 34976 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 34977 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 34978 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 34979 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 34980 |
*GNU*) |
| 34981 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 34982 |
#( |
| 34983 |
*) |
| 34984 |
ac_count=0 |
| 34985 |
printf %s 0123456789 >"conftest.in" |
| 34986 |
while : |
| 34987 |
do |
| 34988 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 34989 |
mv "conftest.tmp" "conftest.in" |
| 34990 |
cp "conftest.in" "conftest.nl" |
| 34991 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 34992 |
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 34993 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 34994 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 34995 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 34996 |
# Best one so far, save it but keep looking for a better one |
| 34997 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 34998 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 34999 |
fi |
| 35000 |
# 10*(2^10) chars as input seems more than enough |
| 35001 |
test $ac_count -gt 10 && break |
| 35002 |
done |
| 35003 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 35004 |
esac |
| 35005 |
|
| 35006 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 35007 |
done |
| 35008 |
done |
| 35009 |
done |
| 35010 |
IFS=$as_save_IFS |
| 35011 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 35012 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 35013 |
fi |
| 35014 |
else |
| 35015 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 35016 |
fi |
| 35017 |
;; |
| 35018 |
esac |
| 35019 |
fi ;; |
| 35020 |
esac |
| 35021 |
fi |
| 35022 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 35023 |
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 35024 |
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 35025 |
|
| 35026 |
if test "x${os_is_windows}" = "xyes" && test "x${os_is_native_w32}" = "xyes" |
| 35027 |
then : |
| 35028 |
|
| 35029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking W32 run-time library type" >&5 |
| 35030 |
printf %s "checking W32 run-time library type... " >&6; } |
| 35031 |
if test ${mhd_cv_wctr_type+y} |
| 35032 |
then : |
| 35033 |
printf %s "(cached) " >&6 |
| 35034 |
else case e in #( |
| 35035 |
e) |
| 35036 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35037 |
/* end confdefs.h. */ |
| 35038 |
|
| 35039 |
#include <stdio.h> |
| 35040 |
#if defined(_UCRT) |
| 35041 |
#define CRT_STR "MHDMARKER: UCRT run-time library in use!" |
| 35042 |
#endif |
| 35043 |
#if defined(__MSVCRT_VERSION__) |
| 35044 |
#if (__MSVCRT_VERSION__ >= 0xE00) && (__MSVCRT_VERSION__ < 0x1000) |
| 35045 |
#define CRT_STR "MHDMARKER: UCRT run-time library in use!" |
| 35046 |
#endif |
| 35047 |
#if (__MSVCRT_VERSION__ > 0x1400) |
| 35048 |
#define CRT_STR "MHDMARKER: UCRT run-time library in use!" |
| 35049 |
#endif |
| 35050 |
#endif |
| 35051 |
|
| 35052 |
#ifndef CRT_STR |
| 35053 |
#define CRT_STR "MHDMARKER: MSVCRT run-time library in use!" |
| 35054 |
#endif |
| 35055 |
|
| 35056 |
int main(void) |
| 35057 |
{ |
| 35058 |
printf ("%\n", CRT_STR); |
| 35059 |
return 0; |
| 35060 |
} |
| 35061 |
|
| 35062 |
_ACEOF |
| 35063 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35064 |
$EGREP_TRADITIONAL "MHDMARKER: UCRT run-time library in use!" >/dev/null 2>&1 |
| 35065 |
then : |
| 35066 |
mhd_cv_wctr_type="ucrt" |
| 35067 |
else case e in #( |
| 35068 |
e) mhd_cv_wctr_type="msvcrt" ;; |
| 35069 |
esac |
| 35070 |
fi |
| 35071 |
rm -rf conftest* |
| 35072 |
|
| 35073 |
|
| 35074 |
;; |
| 35075 |
esac |
| 35076 |
fi |
| 35077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_wctr_type" >&5 |
| 35078 |
printf "%s\n" "$mhd_cv_wctr_type" >&6; } |
| 35079 |
mhd_host_os="${mhd_host_os}-${mhd_cv_wctr_type}" |
| 35080 |
if test "x$mhd_cv_wctr_type" = x"msvcrt" |
| 35081 |
then : |
| 35082 |
|
| 35083 |
# Use CFLAGS here to override user-supplied wrong CPPFLAGS. Durty trick, but choice is limited. |
| 35084 |
|
| 35085 |
|
| 35086 |
|
| 35087 |
|
| 35088 |
for flag in -U__USE_MINGW_ANSI_STDIO -D__USE_MINGW_ANSI_STDIO=0; do |
| 35089 |
as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` |
| 35090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 |
| 35091 |
printf %s "checking whether the C compiler accepts $flag... " >&6; } |
| 35092 |
if eval test \${$as_CACHEVAR+y} |
| 35093 |
then : |
| 35094 |
printf %s "(cached) " >&6 |
| 35095 |
else case e in #( |
| 35096 |
e) |
| 35097 |
ax_check_save_flags=$CFLAGS |
| 35098 |
if test x"$GCC" = xyes ; then |
| 35099 |
add_gnu_werror="-Werror" |
| 35100 |
fi |
| 35101 |
CFLAGS="$CFLAGS $flag $add_gnu_werror" |
| 35102 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35103 |
/* end confdefs.h. */ |
| 35104 |
|
| 35105 |
int |
| 35106 |
main (void) |
| 35107 |
{ |
| 35108 |
|
| 35109 |
; |
| 35110 |
return 0; |
| 35111 |
} |
| 35112 |
_ACEOF |
| 35113 |
if ac_fn_c_try_compile "$LINENO" |
| 35114 |
then : |
| 35115 |
eval "$as_CACHEVAR=yes" |
| 35116 |
else case e in #( |
| 35117 |
e) eval "$as_CACHEVAR=no" ;; |
| 35118 |
esac |
| 35119 |
fi |
| 35120 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 35121 |
CFLAGS=$ax_check_save_flags ;; |
| 35122 |
esac |
| 35123 |
fi |
| 35124 |
eval ac_res=\$$as_CACHEVAR |
| 35125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 35126 |
printf "%s\n" "$ac_res" >&6; } |
| 35127 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 35128 |
then : |
| 35129 |
|
| 35130 |
if test ${CFLAGS_ac+y} |
| 35131 |
then : |
| 35132 |
|
| 35133 |
case " $CFLAGS_ac " in #( |
| 35134 |
*" $flag "*) : |
| 35135 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS_ac already contains \$flag"; } >&5 |
| 35136 |
(: CFLAGS_ac already contains $flag) 2>&5 |
| 35137 |
ac_status=$? |
| 35138 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 35139 |
test $ac_status = 0; } ;; #( |
| 35140 |
*) : |
| 35141 |
|
| 35142 |
as_fn_append CFLAGS_ac " $flag" |
| 35143 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS_ac=\"\$CFLAGS_ac\""; } >&5 |
| 35144 |
(: CFLAGS_ac="$CFLAGS_ac") 2>&5 |
| 35145 |
ac_status=$? |
| 35146 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 35147 |
test $ac_status = 0; } |
| 35148 |
;; |
| 35149 |
esac |
| 35150 |
|
| 35151 |
else case e in #( |
| 35152 |
e) |
| 35153 |
CFLAGS_ac=$flag |
| 35154 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : CFLAGS_ac=\"\$CFLAGS_ac\""; } >&5 |
| 35155 |
(: CFLAGS_ac="$CFLAGS_ac") 2>&5 |
| 35156 |
ac_status=$? |
| 35157 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 35158 |
test $ac_status = 0; } |
| 35159 |
;; |
| 35160 |
esac |
| 35161 |
fi |
| 35162 |
|
| 35163 |
else case e in #( |
| 35164 |
e) : ;; |
| 35165 |
esac |
| 35166 |
fi |
| 35167 |
|
| 35168 |
done |
| 35169 |
|
| 35170 |
W32CRT=MSVCRT |
| 35171 |
|
| 35172 |
|
| 35173 |
else case e in #( |
| 35174 |
e) W32CRT=UCRT |
| 35175 |
|
| 35176 |
;; |
| 35177 |
esac |
| 35178 |
fi |
| 35179 |
|
| 35180 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 35181 |
LDFLAGS="${user_LDFLAGS}" |
| 35182 |
case $mhd_w32_ver in #( |
| 35183 |
WinXP) : |
| 35184 |
|
| 35185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--major-subsystem-version,5,--minor-subsystem-version,1 flag" >&5 |
| 35186 |
printf %s "checking whether $CC supports -Wl,--major-subsystem-version,5,--minor-subsystem-version,1 flag... " >&6; } |
| 35187 |
if test ${mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1+y} |
| 35188 |
then : |
| 35189 |
printf %s "(cached) " >&6 |
| 35190 |
else case e in #( |
| 35191 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 35192 |
LDFLAGS="${LDFLAGS_ac} -Wl,--major-subsystem-version,5,--minor-subsystem-version,1 ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 35193 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 35194 |
ac_c_werror_flag=yes |
| 35195 |
# Reuse the same source for all the checks here |
| 35196 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35197 |
/* end confdefs.h. */ |
| 35198 |
|
| 35199 |
int main(void) |
| 35200 |
{ |
| 35201 |
return 0; |
| 35202 |
} |
| 35203 |
|
| 35204 |
_ACEOF |
| 35205 |
if ac_fn_c_try_link "$LINENO" |
| 35206 |
then : |
| 35207 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1="yes" |
| 35208 |
else case e in #( |
| 35209 |
e) # Compile and link failed with test flag added |
| 35210 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 35211 |
if ac_fn_c_try_link "$LINENO" |
| 35212 |
then : |
| 35213 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1="no" |
| 35214 |
else case e in #( |
| 35215 |
e) # Compile and link failed with test flag removed as well |
| 35216 |
LDFLAGS="${LDFLAGS_ac} -Wl,--major-subsystem-version,5,--minor-subsystem-version,1 ${mhd_check_cc_flag_save_LDFLAGS}" |
| 35217 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 35218 |
if ac_fn_c_try_link "$LINENO" |
| 35219 |
then : |
| 35220 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1="yes" |
| 35221 |
else case e in #( |
| 35222 |
e) mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1="no" ;; |
| 35223 |
esac |
| 35224 |
fi |
| 35225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35226 |
conftest$ac_exeext |
| 35227 |
|
| 35228 |
;; |
| 35229 |
esac |
| 35230 |
fi |
| 35231 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35232 |
conftest$ac_exeext |
| 35233 |
|
| 35234 |
;; |
| 35235 |
esac |
| 35236 |
fi |
| 35237 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35238 |
conftest$ac_exeext |
| 35239 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 35240 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 35241 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 35242 |
|
| 35243 |
;; |
| 35244 |
esac |
| 35245 |
fi |
| 35246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1" >&5 |
| 35247 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1" >&6; } |
| 35248 |
if test "x$mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_5___minor_subsystem_version_1" = x"yes" |
| 35249 |
then : |
| 35250 |
if test -z "${LDFLAGS_ac}" |
| 35251 |
then : |
| 35252 |
LDFLAGS_ac="-Wl,--major-subsystem-version,5,--minor-subsystem-version,1" |
| 35253 |
else case e in #( |
| 35254 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--major-subsystem-version,5,--minor-subsystem-version,1" ;; |
| 35255 |
esac |
| 35256 |
fi |
| 35257 |
|
| 35258 |
|
| 35259 |
fi |
| 35260 |
|
| 35261 |
;; #( |
| 35262 |
Vista) : |
| 35263 |
|
| 35264 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wl,--major-subsystem-version,6,--minor-subsystem-version,0 flag" >&5 |
| 35265 |
printf %s "checking whether $CC supports -Wl,--major-subsystem-version,6,--minor-subsystem-version,0 flag... " >&6; } |
| 35266 |
if test ${mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0+y} |
| 35267 |
then : |
| 35268 |
printf %s "(cached) " >&6 |
| 35269 |
else case e in #( |
| 35270 |
e) mhd_check_cc_flag_save_LDFLAGS="${LDFLAGS}" |
| 35271 |
LDFLAGS="${LDFLAGS_ac} -Wl,--major-subsystem-version,6,--minor-subsystem-version,0 ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 35272 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 35273 |
ac_c_werror_flag=yes |
| 35274 |
# Reuse the same source for all the checks here |
| 35275 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35276 |
/* end confdefs.h. */ |
| 35277 |
|
| 35278 |
int main(void) |
| 35279 |
{ |
| 35280 |
return 0; |
| 35281 |
} |
| 35282 |
|
| 35283 |
_ACEOF |
| 35284 |
if ac_fn_c_try_link "$LINENO" |
| 35285 |
then : |
| 35286 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0="yes" |
| 35287 |
else case e in #( |
| 35288 |
e) # Compile and link failed with test flag added |
| 35289 |
LDFLAGS="${LDFLAGS_ac} ${mhd_check_cc_flag_save_LDFLAGS} ${mhd_xFLAGS_params_warn}" |
| 35290 |
if ac_fn_c_try_link "$LINENO" |
| 35291 |
then : |
| 35292 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0="no" |
| 35293 |
else case e in #( |
| 35294 |
e) # Compile and link failed with test flag removed as well |
| 35295 |
LDFLAGS="${LDFLAGS_ac} -Wl,--major-subsystem-version,6,--minor-subsystem-version,0 ${mhd_check_cc_flag_save_LDFLAGS}" |
| 35296 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 35297 |
if ac_fn_c_try_link "$LINENO" |
| 35298 |
then : |
| 35299 |
mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0="yes" |
| 35300 |
else case e in #( |
| 35301 |
e) mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0="no" ;; |
| 35302 |
esac |
| 35303 |
fi |
| 35304 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35305 |
conftest$ac_exeext |
| 35306 |
|
| 35307 |
;; |
| 35308 |
esac |
| 35309 |
fi |
| 35310 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35311 |
conftest$ac_exeext |
| 35312 |
|
| 35313 |
;; |
| 35314 |
esac |
| 35315 |
fi |
| 35316 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35317 |
conftest$ac_exeext |
| 35318 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 35319 |
LDFLAGS="${mhd_check_cc_flag_save_LDFLAGS}" |
| 35320 |
{ mhd_check_cc_flag_save_LDFLAGS=; unset mhd_check_cc_flag_save_LDFLAGS;} |
| 35321 |
|
| 35322 |
;; |
| 35323 |
esac |
| 35324 |
fi |
| 35325 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0" >&5 |
| 35326 |
printf "%s\n" "$mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0" >&6; } |
| 35327 |
if test "x$mhd_cv_cc_lfl_supp__Wl___major_subsystem_version_6___minor_subsystem_version_0" = x"yes" |
| 35328 |
then : |
| 35329 |
if test -z "${LDFLAGS_ac}" |
| 35330 |
then : |
| 35331 |
LDFLAGS_ac="-Wl,--major-subsystem-version,6,--minor-subsystem-version,0" |
| 35332 |
else case e in #( |
| 35333 |
e) LDFLAGS_ac="${LDFLAGS_ac} -Wl,--major-subsystem-version,6,--minor-subsystem-version,0" ;; |
| 35334 |
esac |
| 35335 |
fi |
| 35336 |
|
| 35337 |
|
| 35338 |
fi |
| 35339 |
|
| 35340 |
|
| 35341 |
;; #( |
| 35342 |
*) : |
| 35343 |
;; |
| 35344 |
esac |
| 35345 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 35346 |
|
| 35347 |
|
| 35348 |
fi |
| 35349 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 35350 |
|
| 35351 |
|
| 35352 |
|
| 35353 |
# Check whether --with-threads was given. |
| 35354 |
if test ${with_threads+y} |
| 35355 |
then : |
| 35356 |
withval=$with_threads; |
| 35357 |
else case e in #( |
| 35358 |
e) with_threads='auto' ;; |
| 35359 |
esac |
| 35360 |
fi |
| 35361 |
|
| 35362 |
case $with_threads in #( |
| 35363 |
win32) : |
| 35364 |
with_threads='w32' ;; #( |
| 35365 |
pthreads) : |
| 35366 |
with_threads='posix' ;; #( |
| 35367 |
posix) : |
| 35368 |
: ;; #( |
| 35369 |
w32) : |
| 35370 |
: ;; #( |
| 35371 |
none) : |
| 35372 |
with_threads='none' ;; #( |
| 35373 |
no) : |
| 35374 |
with_threads='none' ;; #( |
| 35375 |
auto) : |
| 35376 |
: ;; #( |
| 35377 |
*) : |
| 35378 |
as_fn_error $? "incorrect parameter \"$with_threads\" specified for --with-threads" "$LINENO" 5 |
| 35379 |
;; |
| 35380 |
esac |
| 35381 |
|
| 35382 |
# Check for posix threads support. |
| 35383 |
# As the testsuite uses only posix threads, the checks are required even |
| 35384 |
# if the library does not use posit threads. |
| 35385 |
|
| 35386 |
|
| 35387 |
|
| 35388 |
|
| 35389 |
ac_ext=c |
| 35390 |
ac_cpp='$CPP $CPPFLAGS' |
| 35391 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 35392 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 35393 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 35394 |
|
| 35395 |
ax_pthread_ok=no |
| 35396 |
|
| 35397 |
# We used to check for pthread.h first, but this fails if pthread.h |
| 35398 |
# requires special compiler flags (e.g. on Tru64 or Sequent). |
| 35399 |
# It gets checked for in the link test anyway. |
| 35400 |
|
| 35401 |
# First of all, check if the user has set any of the PTHREAD_LIBS, |
| 35402 |
# etcetera environment variables, and if threads linking works using |
| 35403 |
# them: |
| 35404 |
if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then |
| 35405 |
ax_pthread_save_CC="$CC" |
| 35406 |
ax_pthread_save_CFLAGS="$CFLAGS" |
| 35407 |
ax_pthread_save_LIBS="$LIBS" |
| 35408 |
if test "x$PTHREAD_CC" != "x" |
| 35409 |
then : |
| 35410 |
CC="$PTHREAD_CC" |
| 35411 |
fi |
| 35412 |
if test "x$PTHREAD_CXX" != "x" |
| 35413 |
then : |
| 35414 |
CXX="$PTHREAD_CXX" |
| 35415 |
fi |
| 35416 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 35417 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 35418 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 |
| 35419 |
printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } |
| 35420 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35421 |
/* end confdefs.h. */ |
| 35422 |
|
| 35423 |
/* Override any GCC internal prototype to avoid an error. |
| 35424 |
Use char because int might match the return type of a GCC |
| 35425 |
builtin and then its argument prototype would still apply. |
| 35426 |
The 'extern "C"' is for builds by C++ compilers; |
| 35427 |
although this is not generally supported in C code supporting it here |
| 35428 |
has little cost and some practical benefit (sr 110532). */ |
| 35429 |
#ifdef __cplusplus |
| 35430 |
extern "C" |
| 35431 |
#endif |
| 35432 |
char pthread_join (void); |
| 35433 |
int |
| 35434 |
main (void) |
| 35435 |
{ |
| 35436 |
return pthread_join (); |
| 35437 |
; |
| 35438 |
return 0; |
| 35439 |
} |
| 35440 |
_ACEOF |
| 35441 |
if ac_fn_c_try_link "$LINENO" |
| 35442 |
then : |
| 35443 |
ax_pthread_ok=yes |
| 35444 |
fi |
| 35445 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35446 |
conftest$ac_exeext conftest.$ac_ext |
| 35447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 35448 |
printf "%s\n" "$ax_pthread_ok" >&6; } |
| 35449 |
if test "x$ax_pthread_ok" = "xno"; then |
| 35450 |
PTHREAD_LIBS="" |
| 35451 |
PTHREAD_CFLAGS="" |
| 35452 |
fi |
| 35453 |
CC="$ax_pthread_save_CC" |
| 35454 |
CFLAGS="$ax_pthread_save_CFLAGS" |
| 35455 |
LIBS="$ax_pthread_save_LIBS" |
| 35456 |
fi |
| 35457 |
|
| 35458 |
# We must check for the threads library under a number of different |
| 35459 |
# names; the ordering is very important because some systems |
| 35460 |
# (e.g. DEC) have both -lpthread and -lpthreads, where one of the |
| 35461 |
# libraries is broken (non-POSIX). |
| 35462 |
|
| 35463 |
# Create a list of thread flags to try. Items with a "," contain both |
| 35464 |
# C compiler flags (before ",") and linker flags (after ","). Other items |
| 35465 |
# starting with a "-" are C compiler flags, and remaining items are |
| 35466 |
# library names, except for "none" which indicates that we try without |
| 35467 |
# any flags at all, and "pthread-config" which is a program returning |
| 35468 |
# the flags for the Pth emulation library. |
| 35469 |
|
| 35470 |
ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" |
| 35471 |
|
| 35472 |
# The ordering *is* (sometimes) important. Some notes on the |
| 35473 |
# individual items follow: |
| 35474 |
|
| 35475 |
# pthreads: AIX (must check this before -lpthread) |
| 35476 |
# none: in case threads are in libc; should be tried before -Kthread and |
| 35477 |
# other compiler flags to prevent continual compiler warnings |
| 35478 |
# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) |
| 35479 |
# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 |
| 35480 |
# (Note: HP C rejects this with "bad form for `-t' option") |
| 35481 |
# -pthreads: Solaris/gcc (Note: HP C also rejects) |
| 35482 |
# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it |
| 35483 |
# doesn't hurt to check since this sometimes defines pthreads and |
| 35484 |
# -D_REENTRANT too), HP C (must be checked before -lpthread, which |
| 35485 |
# is present but should not be used directly; and before -mthreads, |
| 35486 |
# because the compiler interprets this as "-mt" + "-hreads") |
| 35487 |
# -mthreads: Mingw32/gcc, Lynx/gcc |
| 35488 |
# pthread: Linux, etcetera |
| 35489 |
# --thread-safe: KAI C++ |
| 35490 |
# pthread-config: use pthread-config program (for GNU Pth library) |
| 35491 |
|
| 35492 |
case $host_os in |
| 35493 |
|
| 35494 |
freebsd*) |
| 35495 |
|
| 35496 |
# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) |
| 35497 |
# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) |
| 35498 |
|
| 35499 |
ax_pthread_flags="-kthread lthread $ax_pthread_flags" |
| 35500 |
;; |
| 35501 |
|
| 35502 |
hpux*) |
| 35503 |
|
| 35504 |
# From the cc(1) man page: "[-mt] Sets various -D flags to enable |
| 35505 |
# multi-threading and also sets -lpthread." |
| 35506 |
|
| 35507 |
ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" |
| 35508 |
;; |
| 35509 |
|
| 35510 |
openedition*) |
| 35511 |
|
| 35512 |
# IBM z/OS requires a feature-test macro to be defined in order to |
| 35513 |
# enable POSIX threads at all, so give the user a hint if this is |
| 35514 |
# not set. (We don't define these ourselves, as they can affect |
| 35515 |
# other portions of the system API in unpredictable ways.) |
| 35516 |
|
| 35517 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35518 |
/* end confdefs.h. */ |
| 35519 |
|
| 35520 |
# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) |
| 35521 |
AX_PTHREAD_ZOS_MISSING |
| 35522 |
# endif |
| 35523 |
|
| 35524 |
_ACEOF |
| 35525 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35526 |
$EGREP_TRADITIONAL "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1 |
| 35527 |
then : |
| 35528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 |
| 35529 |
printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} |
| 35530 |
fi |
| 35531 |
rm -rf conftest* |
| 35532 |
|
| 35533 |
;; |
| 35534 |
|
| 35535 |
solaris*) |
| 35536 |
|
| 35537 |
# On Solaris (at least, for some versions), libc contains stubbed |
| 35538 |
# (non-functional) versions of the pthreads routines, so link-based |
| 35539 |
# tests will erroneously succeed. (N.B.: The stubs are missing |
| 35540 |
# pthread_cleanup_push, or rather a function called by this macro, |
| 35541 |
# so we could check for that, but who knows whether they'll stub |
| 35542 |
# that too in a future libc.) So we'll check first for the |
| 35543 |
# standard Solaris way of linking pthreads (-mt -lpthread). |
| 35544 |
|
| 35545 |
ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags" |
| 35546 |
;; |
| 35547 |
esac |
| 35548 |
|
| 35549 |
# Are we compiling with Clang? |
| 35550 |
|
| 35551 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 |
| 35552 |
printf %s "checking whether $CC is Clang... " >&6; } |
| 35553 |
if test ${ax_cv_PTHREAD_CLANG+y} |
| 35554 |
then : |
| 35555 |
printf %s "(cached) " >&6 |
| 35556 |
else case e in #( |
| 35557 |
e) ax_cv_PTHREAD_CLANG=no |
| 35558 |
# Note that Autoconf sets GCC=yes for Clang as well as GCC |
| 35559 |
if test "x$GCC" = "xyes"; then |
| 35560 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35561 |
/* end confdefs.h. */ |
| 35562 |
/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ |
| 35563 |
# if defined(__clang__) && defined(__llvm__) |
| 35564 |
AX_PTHREAD_CC_IS_CLANG |
| 35565 |
# endif |
| 35566 |
|
| 35567 |
_ACEOF |
| 35568 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 35569 |
$EGREP_TRADITIONAL "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1 |
| 35570 |
then : |
| 35571 |
ax_cv_PTHREAD_CLANG=yes |
| 35572 |
fi |
| 35573 |
rm -rf conftest* |
| 35574 |
|
| 35575 |
fi |
| 35576 |
;; |
| 35577 |
esac |
| 35578 |
fi |
| 35579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 |
| 35580 |
printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; } |
| 35581 |
ax_pthread_clang="$ax_cv_PTHREAD_CLANG" |
| 35582 |
|
| 35583 |
|
| 35584 |
# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) |
| 35585 |
|
| 35586 |
# Note that for GCC and Clang -pthread generally implies -lpthread, |
| 35587 |
# except when -nostdlib is passed. |
| 35588 |
# This is problematic using libtool to build C++ shared libraries with pthread: |
| 35589 |
# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460 |
| 35590 |
# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333 |
| 35591 |
# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555 |
| 35592 |
# To solve this, first try -pthread together with -lpthread for GCC |
| 35593 |
|
| 35594 |
if test "x$GCC" = "xyes" |
| 35595 |
then : |
| 35596 |
ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags" |
| 35597 |
fi |
| 35598 |
|
| 35599 |
# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first |
| 35600 |
|
| 35601 |
if test "x$ax_pthread_clang" = "xyes" |
| 35602 |
then : |
| 35603 |
ax_pthread_flags="-pthread,-lpthread -pthread" |
| 35604 |
fi |
| 35605 |
|
| 35606 |
|
| 35607 |
# The presence of a feature test macro requesting re-entrant function |
| 35608 |
# definitions is, on some systems, a strong hint that pthreads support is |
| 35609 |
# correctly enabled |
| 35610 |
|
| 35611 |
case $host_os in |
| 35612 |
darwin* | hpux* | linux* | osf* | solaris*) |
| 35613 |
ax_pthread_check_macro="_REENTRANT" |
| 35614 |
;; |
| 35615 |
|
| 35616 |
aix*) |
| 35617 |
ax_pthread_check_macro="_THREAD_SAFE" |
| 35618 |
;; |
| 35619 |
|
| 35620 |
*) |
| 35621 |
ax_pthread_check_macro="--" |
| 35622 |
;; |
| 35623 |
esac |
| 35624 |
if test "x$ax_pthread_check_macro" = "x--" |
| 35625 |
then : |
| 35626 |
ax_pthread_check_cond=0 |
| 35627 |
else case e in #( |
| 35628 |
e) ax_pthread_check_cond="!defined($ax_pthread_check_macro)" ;; |
| 35629 |
esac |
| 35630 |
fi |
| 35631 |
|
| 35632 |
|
| 35633 |
if test "x$ax_pthread_ok" = "xno"; then |
| 35634 |
for ax_pthread_try_flag in $ax_pthread_flags; do |
| 35635 |
|
| 35636 |
case $ax_pthread_try_flag in |
| 35637 |
none) |
| 35638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 |
| 35639 |
printf %s "checking whether pthreads work without any flags... " >&6; } |
| 35640 |
;; |
| 35641 |
|
| 35642 |
*,*) |
| 35643 |
PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"` |
| 35644 |
PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"` |
| 35645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5 |
| 35646 |
printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; } |
| 35647 |
;; |
| 35648 |
|
| 35649 |
-*) |
| 35650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 |
| 35651 |
printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } |
| 35652 |
PTHREAD_CFLAGS="$ax_pthread_try_flag" |
| 35653 |
;; |
| 35654 |
|
| 35655 |
pthread-config) |
| 35656 |
# Extract the first word of "pthread-config", so it can be a program name with args. |
| 35657 |
set dummy pthread-config; ac_word=$2 |
| 35658 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 35659 |
printf %s "checking for $ac_word... " >&6; } |
| 35660 |
if test ${ac_cv_prog_ax_pthread_config+y} |
| 35661 |
then : |
| 35662 |
printf %s "(cached) " >&6 |
| 35663 |
else case e in #( |
| 35664 |
e) if test -n "$ax_pthread_config"; then |
| 35665 |
ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. |
| 35666 |
else |
| 35667 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 35668 |
for as_dir in $PATH |
| 35669 |
do |
| 35670 |
IFS=$as_save_IFS |
| 35671 |
case $as_dir in #((( |
| 35672 |
'') as_dir=./ ;; |
| 35673 |
*/) ;; |
| 35674 |
*) as_dir=$as_dir/ ;; |
| 35675 |
esac |
| 35676 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 35677 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 35678 |
ac_cv_prog_ax_pthread_config="yes" |
| 35679 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 35680 |
break 2 |
| 35681 |
fi |
| 35682 |
done |
| 35683 |
done |
| 35684 |
IFS=$as_save_IFS |
| 35685 |
|
| 35686 |
test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" |
| 35687 |
fi ;; |
| 35688 |
esac |
| 35689 |
fi |
| 35690 |
ax_pthread_config=$ac_cv_prog_ax_pthread_config |
| 35691 |
if test -n "$ax_pthread_config"; then |
| 35692 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 |
| 35693 |
printf "%s\n" "$ax_pthread_config" >&6; } |
| 35694 |
else |
| 35695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 35696 |
printf "%s\n" "no" >&6; } |
| 35697 |
fi |
| 35698 |
|
| 35699 |
|
| 35700 |
if test "x$ax_pthread_config" = "xno" |
| 35701 |
then : |
| 35702 |
continue |
| 35703 |
fi |
| 35704 |
PTHREAD_CFLAGS="`pthread-config --cflags`" |
| 35705 |
PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" |
| 35706 |
;; |
| 35707 |
|
| 35708 |
*) |
| 35709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 |
| 35710 |
printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } |
| 35711 |
PTHREAD_LIBS="-l$ax_pthread_try_flag" |
| 35712 |
;; |
| 35713 |
esac |
| 35714 |
|
| 35715 |
ax_pthread_save_CFLAGS="$CFLAGS" |
| 35716 |
ax_pthread_save_LIBS="$LIBS" |
| 35717 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 35718 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 35719 |
|
| 35720 |
# Check for various functions. We must include pthread.h, |
| 35721 |
# since some functions may be macros. (On the Sequent, we |
| 35722 |
# need a special flag -Kthread to make this header compile.) |
| 35723 |
# We check for pthread_join because it is in -lpthread on IRIX |
| 35724 |
# while pthread_create is in libc. We check for pthread_attr_init |
| 35725 |
# due to DEC craziness with -lpthreads. We check for |
| 35726 |
# pthread_cleanup_push because it is one of the few pthread |
| 35727 |
# functions on Solaris that doesn't have a non-functional libc stub. |
| 35728 |
# We try pthread_create on general principles. |
| 35729 |
|
| 35730 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35731 |
/* end confdefs.h. */ |
| 35732 |
#include <pthread.h> |
| 35733 |
# if $ax_pthread_check_cond |
| 35734 |
# error "$ax_pthread_check_macro must be defined" |
| 35735 |
# endif |
| 35736 |
static void *some_global = NULL; |
| 35737 |
static void routine(void *a) |
| 35738 |
{ |
| 35739 |
/* To avoid any unused-parameter or |
| 35740 |
unused-but-set-parameter warning. */ |
| 35741 |
some_global = a; |
| 35742 |
} |
| 35743 |
static void *start_routine(void *a) { return a; } |
| 35744 |
int |
| 35745 |
main (void) |
| 35746 |
{ |
| 35747 |
pthread_t th; pthread_attr_t attr; |
| 35748 |
pthread_create(&th, 0, start_routine, 0); |
| 35749 |
pthread_join(th, 0); |
| 35750 |
pthread_attr_init(&attr); |
| 35751 |
pthread_cleanup_push(routine, 0); |
| 35752 |
pthread_cleanup_pop(0) /* ; */ |
| 35753 |
; |
| 35754 |
return 0; |
| 35755 |
} |
| 35756 |
_ACEOF |
| 35757 |
if ac_fn_c_try_link "$LINENO" |
| 35758 |
then : |
| 35759 |
ax_pthread_ok=yes |
| 35760 |
fi |
| 35761 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35762 |
conftest$ac_exeext conftest.$ac_ext |
| 35763 |
|
| 35764 |
CFLAGS="$ax_pthread_save_CFLAGS" |
| 35765 |
LIBS="$ax_pthread_save_LIBS" |
| 35766 |
|
| 35767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 |
| 35768 |
printf "%s\n" "$ax_pthread_ok" >&6; } |
| 35769 |
if test "x$ax_pthread_ok" = "xyes" |
| 35770 |
then : |
| 35771 |
break |
| 35772 |
fi |
| 35773 |
|
| 35774 |
PTHREAD_LIBS="" |
| 35775 |
PTHREAD_CFLAGS="" |
| 35776 |
done |
| 35777 |
fi |
| 35778 |
|
| 35779 |
|
| 35780 |
# Clang needs special handling, because older versions handle the -pthread |
| 35781 |
# option in a rather... idiosyncratic way |
| 35782 |
|
| 35783 |
if test "x$ax_pthread_clang" = "xyes"; then |
| 35784 |
|
| 35785 |
# Clang takes -pthread; it has never supported any other flag |
| 35786 |
|
| 35787 |
# (Note 1: This will need to be revisited if a system that Clang |
| 35788 |
# supports has POSIX threads in a separate library. This tends not |
| 35789 |
# to be the way of modern systems, but it's conceivable.) |
| 35790 |
|
| 35791 |
# (Note 2: On some systems, notably Darwin, -pthread is not needed |
| 35792 |
# to get POSIX threads support; the API is always present and |
| 35793 |
# active. We could reasonably leave PTHREAD_CFLAGS empty. But |
| 35794 |
# -pthread does define _REENTRANT, and while the Darwin headers |
| 35795 |
# ignore this macro, third-party headers might not.) |
| 35796 |
|
| 35797 |
# However, older versions of Clang make a point of warning the user |
| 35798 |
# that, in an invocation where only linking and no compilation is |
| 35799 |
# taking place, the -pthread option has no effect ("argument unused |
| 35800 |
# during compilation"). They expect -pthread to be passed in only |
| 35801 |
# when source code is being compiled. |
| 35802 |
# |
| 35803 |
# Problem is, this is at odds with the way Automake and most other |
| 35804 |
# C build frameworks function, which is that the same flags used in |
| 35805 |
# compilation (CFLAGS) are also used in linking. Many systems |
| 35806 |
# supported by AX_PTHREAD require exactly this for POSIX threads |
| 35807 |
# support, and in fact it is often not straightforward to specify a |
| 35808 |
# flag that is used only in the compilation phase and not in |
| 35809 |
# linking. Such a scenario is extremely rare in practice. |
| 35810 |
# |
| 35811 |
# Even though use of the -pthread flag in linking would only print |
| 35812 |
# a warning, this can be a nuisance for well-run software projects |
| 35813 |
# that build with -Werror. So if the active version of Clang has |
| 35814 |
# this misfeature, we search for an option to squash it. |
| 35815 |
|
| 35816 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 |
| 35817 |
printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } |
| 35818 |
if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y} |
| 35819 |
then : |
| 35820 |
printf %s "(cached) " >&6 |
| 35821 |
else case e in #( |
| 35822 |
e) ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown |
| 35823 |
# Create an alternate version of $ac_link that compiles and |
| 35824 |
# links in two steps (.c -> .o, .o -> exe) instead of one |
| 35825 |
# (.c -> exe), because the warning occurs only in the second |
| 35826 |
# step |
| 35827 |
ax_pthread_save_ac_link="$ac_link" |
| 35828 |
ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' |
| 35829 |
ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"` |
| 35830 |
ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" |
| 35831 |
ax_pthread_save_CFLAGS="$CFLAGS" |
| 35832 |
for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do |
| 35833 |
if test "x$ax_pthread_try" = "xunknown" |
| 35834 |
then : |
| 35835 |
break |
| 35836 |
fi |
| 35837 |
CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" |
| 35838 |
ac_link="$ax_pthread_save_ac_link" |
| 35839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35840 |
/* end confdefs.h. */ |
| 35841 |
int main(void){return 0;} |
| 35842 |
_ACEOF |
| 35843 |
if ac_fn_c_try_link "$LINENO" |
| 35844 |
then : |
| 35845 |
ac_link="$ax_pthread_2step_ac_link" |
| 35846 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35847 |
/* end confdefs.h. */ |
| 35848 |
int main(void){return 0;} |
| 35849 |
_ACEOF |
| 35850 |
if ac_fn_c_try_link "$LINENO" |
| 35851 |
then : |
| 35852 |
break |
| 35853 |
fi |
| 35854 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35855 |
conftest$ac_exeext conftest.$ac_ext |
| 35856 |
|
| 35857 |
fi |
| 35858 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35859 |
conftest$ac_exeext conftest.$ac_ext |
| 35860 |
done |
| 35861 |
ac_link="$ax_pthread_save_ac_link" |
| 35862 |
CFLAGS="$ax_pthread_save_CFLAGS" |
| 35863 |
if test "x$ax_pthread_try" = "x" |
| 35864 |
then : |
| 35865 |
ax_pthread_try=no |
| 35866 |
fi |
| 35867 |
ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" |
| 35868 |
;; |
| 35869 |
esac |
| 35870 |
fi |
| 35871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 |
| 35872 |
printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } |
| 35873 |
|
| 35874 |
case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in |
| 35875 |
no | unknown) ;; |
| 35876 |
*) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; |
| 35877 |
esac |
| 35878 |
|
| 35879 |
fi # $ax_pthread_clang = yes |
| 35880 |
|
| 35881 |
|
| 35882 |
|
| 35883 |
# Various other checks: |
| 35884 |
if test "x$ax_pthread_ok" = "xyes"; then |
| 35885 |
ax_pthread_save_CFLAGS="$CFLAGS" |
| 35886 |
ax_pthread_save_LIBS="$LIBS" |
| 35887 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 35888 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 35889 |
|
| 35890 |
# Detect AIX lossage: JOINABLE attribute is called UNDETACHED. |
| 35891 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 |
| 35892 |
printf %s "checking for joinable pthread attribute... " >&6; } |
| 35893 |
if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y} |
| 35894 |
then : |
| 35895 |
printf %s "(cached) " >&6 |
| 35896 |
else case e in #( |
| 35897 |
e) ax_cv_PTHREAD_JOINABLE_ATTR=unknown |
| 35898 |
for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do |
| 35899 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35900 |
/* end confdefs.h. */ |
| 35901 |
#include <pthread.h> |
| 35902 |
int |
| 35903 |
main (void) |
| 35904 |
{ |
| 35905 |
int attr = $ax_pthread_attr; return attr /* ; */ |
| 35906 |
; |
| 35907 |
return 0; |
| 35908 |
} |
| 35909 |
_ACEOF |
| 35910 |
if ac_fn_c_try_link "$LINENO" |
| 35911 |
then : |
| 35912 |
ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break |
| 35913 |
fi |
| 35914 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35915 |
conftest$ac_exeext conftest.$ac_ext |
| 35916 |
done |
| 35917 |
;; |
| 35918 |
esac |
| 35919 |
fi |
| 35920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 |
| 35921 |
printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } |
| 35922 |
if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ |
| 35923 |
test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ |
| 35924 |
test "x$ax_pthread_joinable_attr_defined" != "xyes" |
| 35925 |
then : |
| 35926 |
|
| 35927 |
printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h |
| 35928 |
|
| 35929 |
ax_pthread_joinable_attr_defined=yes |
| 35930 |
|
| 35931 |
fi |
| 35932 |
|
| 35933 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 |
| 35934 |
printf %s "checking whether more special flags are required for pthreads... " >&6; } |
| 35935 |
if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y} |
| 35936 |
then : |
| 35937 |
printf %s "(cached) " >&6 |
| 35938 |
else case e in #( |
| 35939 |
e) ax_cv_PTHREAD_SPECIAL_FLAGS=no |
| 35940 |
case $host_os in |
| 35941 |
solaris*) |
| 35942 |
ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" |
| 35943 |
;; |
| 35944 |
esac |
| 35945 |
;; |
| 35946 |
esac |
| 35947 |
fi |
| 35948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 |
| 35949 |
printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } |
| 35950 |
if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ |
| 35951 |
test "x$ax_pthread_special_flags_added" != "xyes" |
| 35952 |
then : |
| 35953 |
PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" |
| 35954 |
ax_pthread_special_flags_added=yes |
| 35955 |
fi |
| 35956 |
|
| 35957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 |
| 35958 |
printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; } |
| 35959 |
if test ${ax_cv_PTHREAD_PRIO_INHERIT+y} |
| 35960 |
then : |
| 35961 |
printf %s "(cached) " >&6 |
| 35962 |
else case e in #( |
| 35963 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 35964 |
/* end confdefs.h. */ |
| 35965 |
#include <pthread.h> |
| 35966 |
int |
| 35967 |
main (void) |
| 35968 |
{ |
| 35969 |
int i = PTHREAD_PRIO_INHERIT; |
| 35970 |
return i; |
| 35971 |
; |
| 35972 |
return 0; |
| 35973 |
} |
| 35974 |
_ACEOF |
| 35975 |
if ac_fn_c_try_link "$LINENO" |
| 35976 |
then : |
| 35977 |
ax_cv_PTHREAD_PRIO_INHERIT=yes |
| 35978 |
else case e in #( |
| 35979 |
e) ax_cv_PTHREAD_PRIO_INHERIT=no ;; |
| 35980 |
esac |
| 35981 |
fi |
| 35982 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 35983 |
conftest$ac_exeext conftest.$ac_ext |
| 35984 |
;; |
| 35985 |
esac |
| 35986 |
fi |
| 35987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 |
| 35988 |
printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } |
| 35989 |
if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ |
| 35990 |
test "x$ax_pthread_prio_inherit_defined" != "xyes" |
| 35991 |
then : |
| 35992 |
|
| 35993 |
printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h |
| 35994 |
|
| 35995 |
ax_pthread_prio_inherit_defined=yes |
| 35996 |
|
| 35997 |
fi |
| 35998 |
|
| 35999 |
CFLAGS="$ax_pthread_save_CFLAGS" |
| 36000 |
LIBS="$ax_pthread_save_LIBS" |
| 36001 |
|
| 36002 |
# More AIX lossage: compile with *_r variant |
| 36003 |
if test "x$GCC" != "xyes"; then |
| 36004 |
case $host_os in |
| 36005 |
aix*) |
| 36006 |
case "x/$CC" in #( |
| 36007 |
x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : |
| 36008 |
#handle absolute path differently from PATH based program lookup |
| 36009 |
case "x$CC" in #( |
| 36010 |
x/*) : |
| 36011 |
|
| 36012 |
if as_fn_executable_p ${CC}_r |
| 36013 |
then : |
| 36014 |
PTHREAD_CC="${CC}_r" |
| 36015 |
fi |
| 36016 |
if test "x${CXX}" != "x" |
| 36017 |
then : |
| 36018 |
if as_fn_executable_p ${CXX}_r |
| 36019 |
then : |
| 36020 |
PTHREAD_CXX="${CXX}_r" |
| 36021 |
fi |
| 36022 |
fi |
| 36023 |
;; #( |
| 36024 |
*) : |
| 36025 |
|
| 36026 |
for ac_prog in ${CC}_r |
| 36027 |
do |
| 36028 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 36029 |
set dummy $ac_prog; ac_word=$2 |
| 36030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 36031 |
printf %s "checking for $ac_word... " >&6; } |
| 36032 |
if test ${ac_cv_prog_PTHREAD_CC+y} |
| 36033 |
then : |
| 36034 |
printf %s "(cached) " >&6 |
| 36035 |
else case e in #( |
| 36036 |
e) if test -n "$PTHREAD_CC"; then |
| 36037 |
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. |
| 36038 |
else |
| 36039 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 36040 |
for as_dir in $PATH |
| 36041 |
do |
| 36042 |
IFS=$as_save_IFS |
| 36043 |
case $as_dir in #((( |
| 36044 |
'') as_dir=./ ;; |
| 36045 |
*/) ;; |
| 36046 |
*) as_dir=$as_dir/ ;; |
| 36047 |
esac |
| 36048 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 36049 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 36050 |
ac_cv_prog_PTHREAD_CC="$ac_prog" |
| 36051 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 36052 |
break 2 |
| 36053 |
fi |
| 36054 |
done |
| 36055 |
done |
| 36056 |
IFS=$as_save_IFS |
| 36057 |
|
| 36058 |
fi ;; |
| 36059 |
esac |
| 36060 |
fi |
| 36061 |
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC |
| 36062 |
if test -n "$PTHREAD_CC"; then |
| 36063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 |
| 36064 |
printf "%s\n" "$PTHREAD_CC" >&6; } |
| 36065 |
else |
| 36066 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36067 |
printf "%s\n" "no" >&6; } |
| 36068 |
fi |
| 36069 |
|
| 36070 |
|
| 36071 |
test -n "$PTHREAD_CC" && break |
| 36072 |
done |
| 36073 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 36074 |
|
| 36075 |
if test "x${CXX}" != "x" |
| 36076 |
then : |
| 36077 |
for ac_prog in ${CXX}_r |
| 36078 |
do |
| 36079 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 36080 |
set dummy $ac_prog; ac_word=$2 |
| 36081 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 36082 |
printf %s "checking for $ac_word... " >&6; } |
| 36083 |
if test ${ac_cv_prog_PTHREAD_CXX+y} |
| 36084 |
then : |
| 36085 |
printf %s "(cached) " >&6 |
| 36086 |
else case e in #( |
| 36087 |
e) if test -n "$PTHREAD_CXX"; then |
| 36088 |
ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test. |
| 36089 |
else |
| 36090 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 36091 |
for as_dir in $PATH |
| 36092 |
do |
| 36093 |
IFS=$as_save_IFS |
| 36094 |
case $as_dir in #((( |
| 36095 |
'') as_dir=./ ;; |
| 36096 |
*/) ;; |
| 36097 |
*) as_dir=$as_dir/ ;; |
| 36098 |
esac |
| 36099 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 36100 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 36101 |
ac_cv_prog_PTHREAD_CXX="$ac_prog" |
| 36102 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 36103 |
break 2 |
| 36104 |
fi |
| 36105 |
done |
| 36106 |
done |
| 36107 |
IFS=$as_save_IFS |
| 36108 |
|
| 36109 |
fi ;; |
| 36110 |
esac |
| 36111 |
fi |
| 36112 |
PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX |
| 36113 |
if test -n "$PTHREAD_CXX"; then |
| 36114 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5 |
| 36115 |
printf "%s\n" "$PTHREAD_CXX" >&6; } |
| 36116 |
else |
| 36117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36118 |
printf "%s\n" "no" >&6; } |
| 36119 |
fi |
| 36120 |
|
| 36121 |
|
| 36122 |
test -n "$PTHREAD_CXX" && break |
| 36123 |
done |
| 36124 |
test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
| 36125 |
|
| 36126 |
fi |
| 36127 |
|
| 36128 |
;; |
| 36129 |
esac |
| 36130 |
;; #( |
| 36131 |
*) : |
| 36132 |
;; |
| 36133 |
esac |
| 36134 |
;; |
| 36135 |
esac |
| 36136 |
fi |
| 36137 |
fi |
| 36138 |
|
| 36139 |
test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" |
| 36140 |
test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX" |
| 36141 |
|
| 36142 |
|
| 36143 |
|
| 36144 |
|
| 36145 |
|
| 36146 |
|
| 36147 |
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
| 36148 |
if test "x$ax_pthread_ok" = "xyes"; then |
| 36149 |
|
| 36150 |
mhd_have_posix_threads='yes' |
| 36151 |
|
| 36152 |
printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 36153 |
|
| 36154 |
CFLAGS="${CFLAGS_ac} ${PTHREAD_CFLAGS} ${user_CFLAGS}" |
| 36155 |
|
| 36156 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 36157 |
if test ${mhd_cv_have_func_pthread_sigmask+y} |
| 36158 |
then : |
| 36159 |
|
| 36160 |
else case e in #( |
| 36161 |
e) ac_fn_check_decl "$LINENO" "pthread_sigmask" "ac_cv_have_decl_pthread_sigmask" " |
| 36162 |
#include <pthread.h> |
| 36163 |
#include <signal.h> |
| 36164 |
|
| 36165 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 36166 |
if test "x$ac_cv_have_decl_pthread_sigmask" = xyes |
| 36167 |
then : |
| 36168 |
|
| 36169 |
else case e in #( |
| 36170 |
e) mhd_cv_have_func_pthread_sigmask="no" ;; |
| 36171 |
esac |
| 36172 |
fi ;; |
| 36173 |
esac |
| 36174 |
fi |
| 36175 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function pthread_sigmask" >&5 |
| 36176 |
printf %s "checking for function pthread_sigmask... " >&6; } |
| 36177 |
if test ${mhd_cv_have_func_pthread_sigmask+y} |
| 36178 |
then : |
| 36179 |
printf %s "(cached) " >&6 |
| 36180 |
else case e in #( |
| 36181 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36182 |
/* end confdefs.h. */ |
| 36183 |
|
| 36184 |
|
| 36185 |
#include <pthread.h> |
| 36186 |
#include <signal.h> |
| 36187 |
|
| 36188 |
|
| 36189 |
int main(void) |
| 36190 |
{ |
| 36191 |
|
| 36192 |
|
| 36193 |
sigset_t nset, oset; |
| 36194 |
sigemptyset (&nset); |
| 36195 |
sigaddset (&nset, SIGPIPE); |
| 36196 |
if (0 != pthread_sigmask(SIG_BLOCK, &nset, &oset)) return 1; |
| 36197 |
|
| 36198 |
|
| 36199 |
return 0; |
| 36200 |
} |
| 36201 |
|
| 36202 |
|
| 36203 |
_ACEOF |
| 36204 |
if ac_fn_c_try_link "$LINENO" |
| 36205 |
then : |
| 36206 |
mhd_cv_have_func_pthread_sigmask="yes" |
| 36207 |
else case e in #( |
| 36208 |
e) mhd_cv_have_func_pthread_sigmask="no" ;; |
| 36209 |
esac |
| 36210 |
fi |
| 36211 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36212 |
conftest$ac_exeext conftest.$ac_ext |
| 36213 |
;; |
| 36214 |
esac |
| 36215 |
fi |
| 36216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_pthread_sigmask" >&5 |
| 36217 |
printf "%s\n" "$mhd_cv_have_func_pthread_sigmask" >&6; } |
| 36218 |
if test "x$mhd_cv_have_func_pthread_sigmask" = x"yes" |
| 36219 |
then : |
| 36220 |
|
| 36221 |
printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
| 36222 |
|
| 36223 |
|
| 36224 |
printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
| 36225 |
|
| 36226 |
|
| 36227 |
|
| 36228 |
fi |
| 36229 |
|
| 36230 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 36231 |
|
| 36232 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 36233 |
|
| 36234 |
: |
| 36235 |
else |
| 36236 |
ax_pthread_ok=no |
| 36237 |
mhd_have_posix_threads='no' |
| 36238 |
fi |
| 36239 |
ac_ext=c |
| 36240 |
ac_cpp='$CPP $CPPFLAGS' |
| 36241 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 36242 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 36243 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 36244 |
|
| 36245 |
|
| 36246 |
if test "x$mhd_have_posix_threads" = "xyes"; then |
| 36247 |
HAVE_POSIX_THREADS_TRUE= |
| 36248 |
HAVE_POSIX_THREADS_FALSE='#' |
| 36249 |
else |
| 36250 |
HAVE_POSIX_THREADS_TRUE='#' |
| 36251 |
HAVE_POSIX_THREADS_FALSE= |
| 36252 |
fi |
| 36253 |
|
| 36254 |
|
| 36255 |
mhd_have_w32_threads='no' |
| 36256 |
if test "x$with_threads" = "xauto" |
| 36257 |
then : |
| 36258 |
|
| 36259 |
if test "x$os_is_windows" = "xyes" |
| 36260 |
then : |
| 36261 |
|
| 36262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for W32 threads" >&5 |
| 36263 |
printf %s "checking for W32 threads... " >&6; } |
| 36264 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36265 |
/* end confdefs.h. */ |
| 36266 |
|
| 36267 |
#include <windows.h> |
| 36268 |
|
| 36269 |
int |
| 36270 |
main (void) |
| 36271 |
{ |
| 36272 |
HANDLE h = CreateThread(NULL, 0, NULL, NULL, 0, NULL); |
| 36273 |
; |
| 36274 |
return 0; |
| 36275 |
} |
| 36276 |
|
| 36277 |
_ACEOF |
| 36278 |
if ac_fn_c_try_link "$LINENO" |
| 36279 |
then : |
| 36280 |
mhd_have_w32_threads='yes' |
| 36281 |
else case e in #( |
| 36282 |
e) mhd_have_w32_threads='no' |
| 36283 |
;; |
| 36284 |
esac |
| 36285 |
fi |
| 36286 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36287 |
conftest$ac_exeext conftest.$ac_ext |
| 36288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_have_w32_threads" >&5 |
| 36289 |
printf "%s\n" "$mhd_have_w32_threads" >&6; } |
| 36290 |
|
| 36291 |
fi |
| 36292 |
|
| 36293 |
|
| 36294 |
fi |
| 36295 |
|
| 36296 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for threading lib to use with libmicrohttpd ($with_threads)" >&5 |
| 36297 |
printf %s "checking for threading lib to use with libmicrohttpd ($with_threads)... " >&6; } |
| 36298 |
if test "x$with_threads" = "xposix" |
| 36299 |
then : |
| 36300 |
# forced posix threads |
| 36301 |
if test "x$mhd_have_posix_threads" = "xyes" |
| 36302 |
then : |
| 36303 |
USE_THREADS='posix' |
| 36304 |
else case e in #( |
| 36305 |
e) if test "x$os_is_windows" = "xyes" |
| 36306 |
then : |
| 36307 |
as_fn_error $? "Posix threads are not available. Try to configure --with-threads=auto" "$LINENO" 5 |
| 36308 |
else case e in #( |
| 36309 |
e) as_fn_error $? "No threading lib is available. Consider installing pthreads" "$LINENO" 5 ;; |
| 36310 |
esac |
| 36311 |
fi |
| 36312 |
;; |
| 36313 |
esac |
| 36314 |
fi |
| 36315 |
|
| 36316 |
fi |
| 36317 |
if test "x$with_threads" = "xw32" |
| 36318 |
then : |
| 36319 |
# forced w32 threads |
| 36320 |
if test "x$mhd_have_w32_threads" = "xyes" |
| 36321 |
then : |
| 36322 |
USE_THREADS='w32' |
| 36323 |
else case e in #( |
| 36324 |
e) as_fn_error $? "W32 threads are not available. Try to configure --with-threads=auto" "$LINENO" 5 ;; |
| 36325 |
esac |
| 36326 |
fi |
| 36327 |
|
| 36328 |
fi |
| 36329 |
if test "x$with_threads" = "xauto" |
| 36330 |
then : |
| 36331 |
# automatic threads lib selection |
| 36332 |
if test "x$os_is_native_w32" = "xyes" && test "x$mhd_have_w32_threads" = "xyes" |
| 36333 |
then : |
| 36334 |
USE_THREADS='w32' |
| 36335 |
elif test "x$mhd_have_posix_threads" = "xyes" |
| 36336 |
then : |
| 36337 |
USE_THREADS='posix' |
| 36338 |
elif test "x$mhd_have_w32_threads" = "xyes" |
| 36339 |
then : |
| 36340 |
USE_THREADS='w32' |
| 36341 |
else case e in #( |
| 36342 |
e) as_fn_error $? "No threading lib is available. Consider installing pthreads" "$LINENO" 5 |
| 36343 |
;; |
| 36344 |
esac |
| 36345 |
fi |
| 36346 |
fi |
| 36347 |
if test "x$with_threads" = "xnone" |
| 36348 |
then : |
| 36349 |
USE_THREADS='none' |
| 36350 |
fi |
| 36351 |
|
| 36352 |
if test "x$USE_THREADS" = "xposix" |
| 36353 |
then : |
| 36354 |
CC="$PTHREAD_CC" |
| 36355 |
|
| 36356 |
printf "%s\n" "#define MHD_USE_POSIX_THREADS 1" >>confdefs.h |
| 36357 |
|
| 36358 |
MHD_LIB_CFLAGS="$MHD_LIB_CFLAGS $PTHREAD_CFLAGS" |
| 36359 |
MHD_LIBDEPS="$PTHREAD_LIBS $MHD_LIBDEPS" |
| 36360 |
MHD_LIBDEPS_PKGCFG="$PTHREAD_LIBS $MHD_LIBDEPS_PKGCFG" |
| 36361 |
else case e in #( |
| 36362 |
e) if test "x$USE_THREADS" = "xw32" |
| 36363 |
then : |
| 36364 |
|
| 36365 |
printf "%s\n" "#define MHD_USE_W32_THREADS 1" >>confdefs.h |
| 36366 |
|
| 36367 |
fi ;; |
| 36368 |
esac |
| 36369 |
fi |
| 36370 |
if test "x$USE_THREADS" = "xposix"; then |
| 36371 |
USE_POSIX_THREADS_TRUE= |
| 36372 |
USE_POSIX_THREADS_FALSE='#' |
| 36373 |
else |
| 36374 |
USE_POSIX_THREADS_TRUE='#' |
| 36375 |
USE_POSIX_THREADS_FALSE= |
| 36376 |
fi |
| 36377 |
|
| 36378 |
if test "x$USE_THREADS" = "xw32"; then |
| 36379 |
USE_W32_THREADS_TRUE= |
| 36380 |
USE_W32_THREADS_FALSE='#' |
| 36381 |
else |
| 36382 |
USE_W32_THREADS_TRUE='#' |
| 36383 |
USE_W32_THREADS_FALSE= |
| 36384 |
fi |
| 36385 |
|
| 36386 |
if test "x$USE_THREADS" != "xnone"; then |
| 36387 |
USE_THREADS_TRUE= |
| 36388 |
USE_THREADS_FALSE='#' |
| 36389 |
else |
| 36390 |
USE_THREADS_TRUE='#' |
| 36391 |
USE_THREADS_FALSE= |
| 36392 |
fi |
| 36393 |
|
| 36394 |
if test "x$USE_THREADS" = "xnone"; then |
| 36395 |
DISABLE_THREADS_TRUE= |
| 36396 |
DISABLE_THREADS_FALSE='#' |
| 36397 |
else |
| 36398 |
DISABLE_THREADS_TRUE='#' |
| 36399 |
DISABLE_THREADS_FALSE= |
| 36400 |
fi |
| 36401 |
|
| 36402 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_THREADS" >&5 |
| 36403 |
printf "%s\n" "$USE_THREADS" >&6; } |
| 36404 |
|
| 36405 |
# Check whether --enable-thread-names was given. |
| 36406 |
if test ${enable_thread_names+y} |
| 36407 |
then : |
| 36408 |
enableval=$enable_thread_names; |
| 36409 |
else case e in #( |
| 36410 |
e) enable_thread_names='auto' ;; |
| 36411 |
esac |
| 36412 |
fi |
| 36413 |
|
| 36414 |
|
| 36415 |
if test "x$enable_thread_names" != "xno" && test "x$USE_THREADS" = "xposix" |
| 36416 |
then : |
| 36417 |
|
| 36418 |
# Check for thread name function |
| 36419 |
HAVE_THREAD_NAME_FUNC="no" |
| 36420 |
SAVE_LIBS="$LIBS" |
| 36421 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 36422 |
CFLAGS="${CFLAGS_ac} $PTHREAD_CFLAGS ${user_CFLAGS}" |
| 36423 |
ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" " |
| 36424 |
$ac_includes_default |
| 36425 |
|
| 36426 |
#include <pthread.h> |
| 36427 |
|
| 36428 |
|
| 36429 |
" |
| 36430 |
if test "x$ac_cv_header_pthread_np_h" = xyes |
| 36431 |
then : |
| 36432 |
printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h |
| 36433 |
|
| 36434 |
fi |
| 36435 |
|
| 36436 |
|
| 36437 |
# Try to find how to set thread name by thread attributes. |
| 36438 |
# If pthread_attr_setname_np(3) is not declared, it's not possible to detect |
| 36439 |
# form of pthread_attr_setname_np(3) due to C "feature" "implicit declaration". |
| 36440 |
ac_fn_check_decl "$LINENO" "pthread_attr_setname_np" "ac_cv_have_decl_pthread_attr_setname_np" " |
| 36441 |
#include <pthread.h> |
| 36442 |
#ifdef HAVE_PTHREAD_NP_H |
| 36443 |
#include <pthread_np.h> |
| 36444 |
#endif |
| 36445 |
|
| 36446 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 36447 |
if test "x$ac_cv_have_decl_pthread_attr_setname_np" = xyes |
| 36448 |
then : |
| 36449 |
|
| 36450 |
fi |
| 36451 |
|
| 36452 |
if test "x$ac_cv_have_decl_pthread_attr_setname_np" = "xyes" |
| 36453 |
then : |
| 36454 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setname_np(3) in NetBSD or OSF1 form" >&5 |
| 36455 |
printf %s "checking for pthread_attr_setname_np(3) in NetBSD or OSF1 form... " >&6; } |
| 36456 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36457 |
/* end confdefs.h. */ |
| 36458 |
|
| 36459 |
#include <pthread.h> |
| 36460 |
#ifdef HAVE_PTHREAD_NP_H |
| 36461 |
#include <pthread_np.h> |
| 36462 |
#endif |
| 36463 |
|
| 36464 |
int |
| 36465 |
main (void) |
| 36466 |
{ |
| 36467 |
|
| 36468 |
pthread_attr_t thr_attr; |
| 36469 |
pthread_attr_init(&thr_attr); |
| 36470 |
pthread_attr_setname_np(&thr_attr, "name", 0); |
| 36471 |
pthread_attr_destroy(&thr_attr); |
| 36472 |
|
| 36473 |
; |
| 36474 |
return 0; |
| 36475 |
} |
| 36476 |
_ACEOF |
| 36477 |
if ac_fn_c_try_link "$LINENO" |
| 36478 |
then : |
| 36479 |
|
| 36480 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD 1" >>confdefs.h |
| 36481 |
|
| 36482 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36483 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36484 |
printf "%s\n" "yes" >&6; } |
| 36485 |
else case e in #( |
| 36486 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36487 |
printf "%s\n" "no" >&6; } |
| 36488 |
;; |
| 36489 |
esac |
| 36490 |
fi |
| 36491 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36492 |
conftest$ac_exeext conftest.$ac_ext |
| 36493 |
|
| 36494 |
fi |
| 36495 |
|
| 36496 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_attr_setname_np" = "xyes" |
| 36497 |
then : |
| 36498 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setname_np(3) in IBM i or Solaris form" >&5 |
| 36499 |
printf %s "checking for pthread_attr_setname_np(3) in IBM i or Solaris form... " >&6; } |
| 36500 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36501 |
/* end confdefs.h. */ |
| 36502 |
|
| 36503 |
#include <pthread.h> |
| 36504 |
#ifdef HAVE_PTHREAD_NP_H |
| 36505 |
#include <pthread_np.h> |
| 36506 |
#endif |
| 36507 |
|
| 36508 |
int |
| 36509 |
main (void) |
| 36510 |
{ |
| 36511 |
|
| 36512 |
pthread_attr_t thr_attr; |
| 36513 |
pthread_attr_init(&thr_attr); |
| 36514 |
pthread_attr_setname_np(&thr_attr, "name"); |
| 36515 |
pthread_attr_destroy(&thr_attr); |
| 36516 |
|
| 36517 |
; |
| 36518 |
return 0; |
| 36519 |
} |
| 36520 |
_ACEOF |
| 36521 |
if ac_fn_c_try_link "$LINENO" |
| 36522 |
then : |
| 36523 |
|
| 36524 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI 1" >>confdefs.h |
| 36525 |
|
| 36526 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36528 |
printf "%s\n" "yes" >&6; } |
| 36529 |
else case e in #( |
| 36530 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36531 |
printf "%s\n" "no" >&6; } |
| 36532 |
;; |
| 36533 |
esac |
| 36534 |
fi |
| 36535 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36536 |
conftest$ac_exeext conftest.$ac_ext |
| 36537 |
|
| 36538 |
fi |
| 36539 |
|
| 36540 |
# Try to find how to set thread name for started thread - less convenient |
| 36541 |
# than setting name by attributes. |
| 36542 |
# If pthread_setname_np(3) is not declared, it's not possible to detect |
| 36543 |
# form of pthread_setname_np(3) due to C "feature" "implicit declaration". |
| 36544 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" |
| 36545 |
then : |
| 36546 |
ac_fn_check_decl "$LINENO" "pthread_setname_np" "ac_cv_have_decl_pthread_setname_np" " |
| 36547 |
#include <pthread.h> |
| 36548 |
#ifdef HAVE_PTHREAD_NP_H |
| 36549 |
#include <pthread_np.h> |
| 36550 |
#endif |
| 36551 |
|
| 36552 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 36553 |
if test "x$ac_cv_have_decl_pthread_setname_np" = xyes |
| 36554 |
then : |
| 36555 |
|
| 36556 |
fi |
| 36557 |
|
| 36558 |
fi |
| 36559 |
|
| 36560 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes" |
| 36561 |
then : |
| 36562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in NetBSD or OSF1 form" >&5 |
| 36563 |
printf %s "checking for pthread_setname_np(3) in NetBSD or OSF1 form... " >&6; } |
| 36564 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36565 |
/* end confdefs.h. */ |
| 36566 |
|
| 36567 |
#include <pthread.h> |
| 36568 |
#ifdef HAVE_PTHREAD_NP_H |
| 36569 |
#include <pthread_np.h> |
| 36570 |
#endif |
| 36571 |
|
| 36572 |
int |
| 36573 |
main (void) |
| 36574 |
{ |
| 36575 |
int res = pthread_setname_np(pthread_self(), "name", 0); if (res) return res; |
| 36576 |
; |
| 36577 |
return 0; |
| 36578 |
} |
| 36579 |
_ACEOF |
| 36580 |
if ac_fn_c_try_link "$LINENO" |
| 36581 |
then : |
| 36582 |
|
| 36583 |
printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_NETBSD 1" >>confdefs.h |
| 36584 |
|
| 36585 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36587 |
printf "%s\n" "yes" >&6; } |
| 36588 |
else case e in #( |
| 36589 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36590 |
printf "%s\n" "no" >&6; } |
| 36591 |
;; |
| 36592 |
esac |
| 36593 |
fi |
| 36594 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36595 |
conftest$ac_exeext conftest.$ac_ext |
| 36596 |
|
| 36597 |
fi |
| 36598 |
|
| 36599 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes" |
| 36600 |
then : |
| 36601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in GNU/Linux form" >&5 |
| 36602 |
printf %s "checking for pthread_setname_np(3) in GNU/Linux form... " >&6; } |
| 36603 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36604 |
/* end confdefs.h. */ |
| 36605 |
|
| 36606 |
#include <pthread.h> |
| 36607 |
#ifdef HAVE_PTHREAD_NP_H |
| 36608 |
#include <pthread_np.h> |
| 36609 |
#endif |
| 36610 |
|
| 36611 |
int |
| 36612 |
main (void) |
| 36613 |
{ |
| 36614 |
int res = pthread_setname_np(pthread_self(), "name"); if (res) return res; |
| 36615 |
; |
| 36616 |
return 0; |
| 36617 |
} |
| 36618 |
_ACEOF |
| 36619 |
if ac_fn_c_try_link "$LINENO" |
| 36620 |
then : |
| 36621 |
|
| 36622 |
printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_GNU 1" >>confdefs.h |
| 36623 |
|
| 36624 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36625 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36626 |
printf "%s\n" "yes" >&6; } |
| 36627 |
else case e in #( |
| 36628 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36629 |
printf "%s\n" "no" >&6; } |
| 36630 |
;; |
| 36631 |
esac |
| 36632 |
fi |
| 36633 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36634 |
conftest$ac_exeext conftest.$ac_ext |
| 36635 |
|
| 36636 |
fi |
| 36637 |
|
| 36638 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" && test "x$ac_cv_have_decl_pthread_setname_np" = "xyes" |
| 36639 |
then : |
| 36640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_setname_np(3) in Darwin form" >&5 |
| 36641 |
printf %s "checking for pthread_setname_np(3) in Darwin form... " >&6; } |
| 36642 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36643 |
/* end confdefs.h. */ |
| 36644 |
|
| 36645 |
#include <pthread.h> |
| 36646 |
#ifdef HAVE_PTHREAD_NP_H |
| 36647 |
#include <pthread_np.h> |
| 36648 |
#endif |
| 36649 |
|
| 36650 |
int |
| 36651 |
main (void) |
| 36652 |
{ |
| 36653 |
int res = pthread_setname_np("name"); if (res) return res; |
| 36654 |
; |
| 36655 |
return 0; |
| 36656 |
} |
| 36657 |
_ACEOF |
| 36658 |
if ac_fn_c_try_link "$LINENO" |
| 36659 |
then : |
| 36660 |
|
| 36661 |
printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP_DARWIN 1" >>confdefs.h |
| 36662 |
|
| 36663 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36664 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36665 |
printf "%s\n" "yes" >&6; } |
| 36666 |
else case e in #( |
| 36667 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36668 |
printf "%s\n" "no" >&6; } |
| 36669 |
;; |
| 36670 |
esac |
| 36671 |
fi |
| 36672 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36673 |
conftest$ac_exeext conftest.$ac_ext |
| 36674 |
|
| 36675 |
fi |
| 36676 |
|
| 36677 |
if test "x$HAVE_THREAD_NAME_FUNC" != "xyes" |
| 36678 |
then : |
| 36679 |
|
| 36680 |
ac_fn_check_decl "$LINENO" "pthread_set_name_np" "ac_cv_have_decl_pthread_set_name_np" " |
| 36681 |
#include <pthread.h> |
| 36682 |
#ifdef HAVE_PTHREAD_NP_H |
| 36683 |
#include <pthread_np.h> |
| 36684 |
#endif |
| 36685 |
|
| 36686 |
|
| 36687 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 36688 |
if test "x$ac_cv_have_decl_pthread_set_name_np" = xyes |
| 36689 |
then : |
| 36690 |
|
| 36691 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_set_name_np(3) in FreeBSD form" >&5 |
| 36692 |
printf %s "checking for pthread_set_name_np(3) in FreeBSD form... " >&6; } |
| 36693 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36694 |
/* end confdefs.h. */ |
| 36695 |
|
| 36696 |
#include <pthread.h> |
| 36697 |
#ifdef HAVE_PTHREAD_NP_H |
| 36698 |
#include <pthread_np.h> |
| 36699 |
#endif |
| 36700 |
|
| 36701 |
int |
| 36702 |
main (void) |
| 36703 |
{ |
| 36704 |
pthread_set_name_np(pthread_self(), "name"); |
| 36705 |
; |
| 36706 |
return 0; |
| 36707 |
} |
| 36708 |
_ACEOF |
| 36709 |
if ac_fn_c_try_link "$LINENO" |
| 36710 |
then : |
| 36711 |
|
| 36712 |
printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP_FREEBSD 1" >>confdefs.h |
| 36713 |
|
| 36714 |
HAVE_THREAD_NAME_FUNC="yes" |
| 36715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 36716 |
printf "%s\n" "yes" >&6; } |
| 36717 |
else case e in #( |
| 36718 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36719 |
printf "%s\n" "no" >&6; } |
| 36720 |
;; |
| 36721 |
esac |
| 36722 |
fi |
| 36723 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36724 |
conftest$ac_exeext conftest.$ac_ext |
| 36725 |
|
| 36726 |
fi |
| 36727 |
|
| 36728 |
fi |
| 36729 |
|
| 36730 |
LIBS="$SAVE_LIBS" |
| 36731 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 36732 |
|
| 36733 |
fi |
| 36734 |
|
| 36735 |
if test "x$enable_thread_names" != "xno" |
| 36736 |
then : |
| 36737 |
|
| 36738 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable thread names" >&5 |
| 36739 |
printf %s "checking whether to enable thread names... " >&6; } |
| 36740 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36741 |
/* end confdefs.h. */ |
| 36742 |
|
| 36743 |
int |
| 36744 |
main (void) |
| 36745 |
{ |
| 36746 |
|
| 36747 |
#ifdef MHD_NO_THREAD_NAMES |
| 36748 |
#error Thread names are disabled. |
| 36749 |
choke me |
| 36750 |
#endif |
| 36751 |
|
| 36752 |
/* Keep in sync with mhd_threads.h */ |
| 36753 |
#if defined(MHD_USE_POSIX_THREADS) && (defined(HAVE_PTHREAD_ATTR_SETNAME_NP_NETBSD) || defined(HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI) || \ |
| 36754 |
defined(HAVE_PTHREAD_SETNAME_NP_GNU) || defined(HAVE_PTHREAD_SET_NAME_NP_FREEBSD) || defined(HAVE_PTHREAD_SETNAME_NP_DARWIN) || \ |
| 36755 |
defined(HAVE_PTHREAD_SETNAME_NP_NETBSD) ) |
| 36756 |
(void) 0; /* no-op */ |
| 36757 |
#elif defined(MHD_USE_W32_THREADS) && defined(_MSC_FULL_VER) |
| 36758 |
(void) 0; /* no-op */ |
| 36759 |
#else |
| 36760 |
#error No thread name function is available. |
| 36761 |
choke me |
| 36762 |
#endif |
| 36763 |
|
| 36764 |
; |
| 36765 |
return 0; |
| 36766 |
} |
| 36767 |
|
| 36768 |
_ACEOF |
| 36769 |
if ac_fn_c_try_compile "$LINENO" |
| 36770 |
then : |
| 36771 |
|
| 36772 |
enable_thread_names='yes' |
| 36773 |
|
| 36774 |
else case e in #( |
| 36775 |
e) |
| 36776 |
if test "x$enable_thread_names" = "xyes" |
| 36777 |
then : |
| 36778 |
|
| 36779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 36780 |
printf "%s\n" "no" >&6; } |
| 36781 |
as_fn_error $? "thread names was explicitly requested, but thread name function is not available" "$LINENO" 5 |
| 36782 |
|
| 36783 |
fi |
| 36784 |
enable_thread_names='no' |
| 36785 |
;; |
| 36786 |
esac |
| 36787 |
fi |
| 36788 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 36789 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_thread_names" >&5 |
| 36790 |
printf "%s\n" "$enable_thread_names" >&6; } |
| 36791 |
|
| 36792 |
fi |
| 36793 |
|
| 36794 |
if test "x$enable_thread_names" = "xno" |
| 36795 |
then : |
| 36796 |
|
| 36797 |
printf "%s\n" "#define MHD_NO_THREAD_NAMES 1" >>confdefs.h |
| 36798 |
|
| 36799 |
fi |
| 36800 |
|
| 36801 |
if test "x$os_is_native_w32" = "xyes"; then |
| 36802 |
HAVE_W32_TRUE= |
| 36803 |
HAVE_W32_FALSE='#' |
| 36804 |
else |
| 36805 |
HAVE_W32_TRUE='#' |
| 36806 |
HAVE_W32_FALSE= |
| 36807 |
fi |
| 36808 |
|
| 36809 |
w32_shared_lib_exp=no |
| 36810 |
if test "x$enable_shared" = "xyes" && test "x$os_is_native_w32" = "xyes" |
| 36811 |
then : |
| 36812 |
|
| 36813 |
if test "x$ac_cv_use_ms_lib_tool" = "xyes" || test -n "$DLLTOOL" |
| 36814 |
then : |
| 36815 |
|
| 36816 |
w32_shared_lib_exp=yes |
| 36817 |
use_expfile="no" |
| 36818 |
if test "x$ac_cv_use_ms_lib_tool" = x"yes" |
| 36819 |
then : |
| 36820 |
use_expfile="yes" |
| 36821 |
else case e in #( |
| 36822 |
e) |
| 36823 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $DLLTOOL supports export file generation" >&5 |
| 36824 |
printf %s "checking whether $DLLTOOL supports export file generation... " >&6; } |
| 36825 |
if test ${mhd_cv_dlltool_expfile+y} |
| 36826 |
then : |
| 36827 |
printf %s "(cached) " >&6 |
| 36828 |
else case e in #( |
| 36829 |
e) |
| 36830 |
if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$DLLTOOL -e conftest.exp >&2 "; } >&5 |
| 36831 |
($DLLTOOL -e conftest.exp >&2 ) 2>&5 |
| 36832 |
ac_status=$? |
| 36833 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 36834 |
test $ac_status = 0; } |
| 36835 |
then : |
| 36836 |
|
| 36837 |
if test -f conftest.exp |
| 36838 |
then : |
| 36839 |
mhd_cv_dlltool_expfile="yes" |
| 36840 |
else case e in #( |
| 36841 |
e) mhd_cv_dlltool_expfile="no" ;; |
| 36842 |
esac |
| 36843 |
fi |
| 36844 |
|
| 36845 |
else case e in #( |
| 36846 |
e) mhd_cv_dlltool_expfile="no" |
| 36847 |
;; |
| 36848 |
esac |
| 36849 |
fi |
| 36850 |
rm -f conftest.exp |
| 36851 |
|
| 36852 |
;; |
| 36853 |
esac |
| 36854 |
fi |
| 36855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_dlltool_expfile" >&5 |
| 36856 |
printf "%s\n" "$mhd_cv_dlltool_expfile" >&6; } |
| 36857 |
use_expfile="${mhd_cv_dlltool_expfile}" |
| 36858 |
|
| 36859 |
;; |
| 36860 |
esac |
| 36861 |
fi |
| 36862 |
|
| 36863 |
else case e in #( |
| 36864 |
e) |
| 36865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&5 |
| 36866 |
printf "%s\n" "$as_me: WARNING: GNU dlltool or MS lib.exe is required for creating shared library export on W32" >&2;} |
| 36867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Export library libmicrohttpd.lib will not be created" >&5 |
| 36868 |
printf "%s\n" "$as_me: WARNING: Export library libmicrohttpd.lib will not be created" >&2;} |
| 36869 |
|
| 36870 |
;; |
| 36871 |
esac |
| 36872 |
fi |
| 36873 |
|
| 36874 |
|
| 36875 |
fi |
| 36876 |
if test "x$w32_shared_lib_exp" = "xyes"; then |
| 36877 |
W32_SHARED_LIB_EXP_TRUE= |
| 36878 |
W32_SHARED_LIB_EXP_FALSE='#' |
| 36879 |
else |
| 36880 |
W32_SHARED_LIB_EXP_TRUE='#' |
| 36881 |
W32_SHARED_LIB_EXP_FALSE= |
| 36882 |
fi |
| 36883 |
|
| 36884 |
if test "x$ac_cv_use_ms_lib_tool" = "xyes"; then |
| 36885 |
USE_MS_LIB_TOOL_TRUE= |
| 36886 |
USE_MS_LIB_TOOL_FALSE='#' |
| 36887 |
else |
| 36888 |
USE_MS_LIB_TOOL_TRUE='#' |
| 36889 |
USE_MS_LIB_TOOL_FALSE= |
| 36890 |
fi |
| 36891 |
|
| 36892 |
if test "x$use_expfile" = "xyes"; then |
| 36893 |
USE_EXPORT_FILE_TRUE= |
| 36894 |
USE_EXPORT_FILE_FALSE='#' |
| 36895 |
else |
| 36896 |
USE_EXPORT_FILE_TRUE='#' |
| 36897 |
USE_EXPORT_FILE_FALSE= |
| 36898 |
fi |
| 36899 |
|
| 36900 |
|
| 36901 |
|
| 36902 |
# Expansion of MHD_FIND_LIB macro starts here |
| 36903 |
if test ${mhd_cv_find_lib_socket+y} |
| 36904 |
then : |
| 36905 |
|
| 36906 |
else case e in #( |
| 36907 |
e) ac_fn_check_decl "$LINENO" "socket" "ac_cv_have_decl_socket" " |
| 36908 |
#ifdef HAVE_SYS_TYPES_H |
| 36909 |
#include <sys/types.h> |
| 36910 |
#endif |
| 36911 |
#ifdef HAVE_SYS_SOCKET_H |
| 36912 |
#include <sys/socket.h> |
| 36913 |
#endif |
| 36914 |
#ifdef HAVE_SOCKLIB_H |
| 36915 |
#include <sockLib.h> |
| 36916 |
#endif |
| 36917 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 36918 |
#include <winsock2.h> |
| 36919 |
#endif |
| 36920 |
|
| 36921 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 36922 |
if test "x$ac_cv_have_decl_socket" = xyes |
| 36923 |
then : |
| 36924 |
|
| 36925 |
fi ;; |
| 36926 |
esac |
| 36927 |
fi |
| 36928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing function socket" >&5 |
| 36929 |
printf %s "checking for library containing function socket... " >&6; } |
| 36930 |
if test ${mhd_cv_find_lib_socket+y} |
| 36931 |
then : |
| 36932 |
printf %s "(cached) " >&6 |
| 36933 |
else case e in #( |
| 36934 |
e) |
| 36935 |
if test "x$ac_cv_have_decl_socket" = x"yes" |
| 36936 |
then : |
| 36937 |
mhd_find_lib_SAVE_LIBS="$LIBS" |
| 36938 |
mhd_find_lib_CHECK_LIBS=" $LIBS" |
| 36939 |
|
| 36940 |
# Reuse the same source file |
| 36941 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 36942 |
/* end confdefs.h. */ |
| 36943 |
|
| 36944 |
|
| 36945 |
#ifdef HAVE_SYS_TYPES_H |
| 36946 |
#include <sys/types.h> |
| 36947 |
#endif |
| 36948 |
#ifdef HAVE_SYS_SOCKET_H |
| 36949 |
#include <sys/socket.h> |
| 36950 |
#endif |
| 36951 |
#ifdef HAVE_SOCKLIB_H |
| 36952 |
#include <sockLib.h> |
| 36953 |
#endif |
| 36954 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 36955 |
#include <winsock2.h> |
| 36956 |
#endif |
| 36957 |
|
| 36958 |
|
| 36959 |
int main(void) |
| 36960 |
{ |
| 36961 |
|
| 36962 |
(void)socket(0, 0, 0); |
| 36963 |
|
| 36964 |
return 0; |
| 36965 |
} |
| 36966 |
|
| 36967 |
|
| 36968 |
|
| 36969 |
_ACEOF |
| 36970 |
for mhd_find_lib_LIB in '' socket ws2_32 xnet |
| 36971 |
do |
| 36972 |
if test -z "${mhd_find_lib_LIB}" |
| 36973 |
then : |
| 36974 |
LIBS="${mhd_find_lib_CHECK_LIBS}" |
| 36975 |
else case e in #( |
| 36976 |
e) LIBS="-l${mhd_find_lib_LIB} ${mhd_find_lib_CHECK_LIBS}" |
| 36977 |
;; |
| 36978 |
esac |
| 36979 |
fi |
| 36980 |
if ac_fn_c_try_link "$LINENO" |
| 36981 |
then : |
| 36982 |
|
| 36983 |
if test -z "${mhd_find_lib_LIB}" |
| 36984 |
then : |
| 36985 |
mhd_cv_find_lib_socket="none required" |
| 36986 |
else case e in #( |
| 36987 |
e) mhd_cv_find_lib_socket="-l${mhd_find_lib_LIB}" |
| 36988 |
;; |
| 36989 |
esac |
| 36990 |
fi |
| 36991 |
|
| 36992 |
|
| 36993 |
fi |
| 36994 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 36995 |
conftest$ac_exeext |
| 36996 |
if test ${mhd_cv_find_lib_socket+y} |
| 36997 |
then : |
| 36998 |
break |
| 36999 |
fi |
| 37000 |
done |
| 37001 |
{ mhd_find_lib_LIB=; unset mhd_find_lib_LIB;} |
| 37002 |
rm -f conftest.$ac_ext |
| 37003 |
LIBS="${mhd_find_lib_SAVE_LIBS}" |
| 37004 |
{ mhd_find_lib_SAVE_LIBS=; unset mhd_find_lib_SAVE_LIBS;} |
| 37005 |
|
| 37006 |
|
| 37007 |
fi |
| 37008 |
if test ${mhd_cv_find_lib_socket+y} |
| 37009 |
then : |
| 37010 |
: |
| 37011 |
else case e in #( |
| 37012 |
e) mhd_cv_find_lib_socket="no" ;; |
| 37013 |
esac |
| 37014 |
fi |
| 37015 |
|
| 37016 |
;; |
| 37017 |
esac |
| 37018 |
fi |
| 37019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_find_lib_socket" >&5 |
| 37020 |
printf "%s\n" "$mhd_cv_find_lib_socket" >&6; } |
| 37021 |
if test "x${mhd_cv_find_lib_socket}" != "xno" |
| 37022 |
then : |
| 37023 |
if test "x$mhd_cv_find_lib_socket" = x"none required" |
| 37024 |
then : |
| 37025 |
: |
| 37026 |
else case e in #( |
| 37027 |
e) |
| 37028 |
if test -z "$LIBS" |
| 37029 |
then : |
| 37030 |
LIBS="${mhd_cv_find_lib_socket}" |
| 37031 |
else case e in #( |
| 37032 |
e) LIBS="${mhd_cv_find_lib_socket} $LIBS" ;; |
| 37033 |
esac |
| 37034 |
fi |
| 37035 |
|
| 37036 |
;; |
| 37037 |
esac |
| 37038 |
fi |
| 37039 |
|
| 37040 |
if test "x$mhd_cv_find_lib_socket" = x"none required" |
| 37041 |
then : |
| 37042 |
|
| 37043 |
else case e in #( |
| 37044 |
e) |
| 37045 |
MHD_LIBDEPS_PKGCFG="${mhd_cv_find_lib_socket} $MHD_LIBDEPS_PKGCFG" |
| 37046 |
|
| 37047 |
;; |
| 37048 |
esac |
| 37049 |
fi |
| 37050 |
|
| 37051 |
|
| 37052 |
else case e in #( |
| 37053 |
e) as_fn_error $? "cannot find header or library required for function socket()" "$LINENO" 5 |
| 37054 |
;; |
| 37055 |
esac |
| 37056 |
fi |
| 37057 |
# Expansion of _MHD_FIND_LIB_BODY macro ends here |
| 37058 |
|
| 37059 |
|
| 37060 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 37061 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 37062 |
then : |
| 37063 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 37064 |
|
| 37065 |
fi |
| 37066 |
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 37067 |
if test "x$ac_cv_header_time_h" = xyes |
| 37068 |
then : |
| 37069 |
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 37070 |
|
| 37071 |
fi |
| 37072 |
|
| 37073 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 37074 |
if test ${mhd_cv_have_func_gettimeofday+y} |
| 37075 |
then : |
| 37076 |
|
| 37077 |
else case e in #( |
| 37078 |
e) ac_fn_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" " |
| 37079 |
#ifdef HAVE_SYS_TIME_H |
| 37080 |
#include <sys/time.h> |
| 37081 |
#endif /* HAVE_SYS_TIME_H */ |
| 37082 |
#ifdef HAVE_TIME_H |
| 37083 |
#include <time.h> |
| 37084 |
#endif /* HAVE_TIME_H */ |
| 37085 |
|
| 37086 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 37087 |
if test "x$ac_cv_have_decl_gettimeofday" = xyes |
| 37088 |
then : |
| 37089 |
|
| 37090 |
else case e in #( |
| 37091 |
e) mhd_cv_have_func_gettimeofday="no" ;; |
| 37092 |
esac |
| 37093 |
fi ;; |
| 37094 |
esac |
| 37095 |
fi |
| 37096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function gettimeofday" >&5 |
| 37097 |
printf %s "checking for function gettimeofday... " >&6; } |
| 37098 |
if test ${mhd_cv_have_func_gettimeofday+y} |
| 37099 |
then : |
| 37100 |
printf %s "(cached) " >&6 |
| 37101 |
else case e in #( |
| 37102 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37103 |
/* end confdefs.h. */ |
| 37104 |
|
| 37105 |
|
| 37106 |
#ifdef HAVE_SYS_TIME_H |
| 37107 |
#include <sys/time.h> |
| 37108 |
#endif /* HAVE_SYS_TIME_H */ |
| 37109 |
#ifdef HAVE_TIME_H |
| 37110 |
#include <time.h> |
| 37111 |
#endif /* HAVE_TIME_H */ |
| 37112 |
|
| 37113 |
|
| 37114 |
int main(void) |
| 37115 |
{ |
| 37116 |
|
| 37117 |
|
| 37118 |
struct timeval tv; |
| 37119 |
if (0 != gettimeofday (&tv, (void*) 0)) |
| 37120 |
return 1; |
| 37121 |
|
| 37122 |
|
| 37123 |
return 0; |
| 37124 |
} |
| 37125 |
|
| 37126 |
|
| 37127 |
_ACEOF |
| 37128 |
if ac_fn_c_try_link "$LINENO" |
| 37129 |
then : |
| 37130 |
mhd_cv_have_func_gettimeofday="yes" |
| 37131 |
else case e in #( |
| 37132 |
e) mhd_cv_have_func_gettimeofday="no" ;; |
| 37133 |
esac |
| 37134 |
fi |
| 37135 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 37136 |
conftest$ac_exeext conftest.$ac_ext |
| 37137 |
;; |
| 37138 |
esac |
| 37139 |
fi |
| 37140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_gettimeofday" >&5 |
| 37141 |
printf "%s\n" "$mhd_cv_have_func_gettimeofday" >&6; } |
| 37142 |
if test "x$mhd_cv_have_func_gettimeofday" = x"yes" |
| 37143 |
then : |
| 37144 |
|
| 37145 |
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 37146 |
|
| 37147 |
|
| 37148 |
fi |
| 37149 |
|
| 37150 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 37151 |
|
| 37152 |
|
| 37153 |
|
| 37154 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 37155 |
if test ${mhd_cv_have_func_usleep+y} |
| 37156 |
then : |
| 37157 |
|
| 37158 |
else case e in #( |
| 37159 |
e) ac_fn_check_decl "$LINENO" "usleep" "ac_cv_have_decl_usleep" "#include <unistd.h> |
| 37160 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 37161 |
if test "x$ac_cv_have_decl_usleep" = xyes |
| 37162 |
then : |
| 37163 |
|
| 37164 |
else case e in #( |
| 37165 |
e) mhd_cv_have_func_usleep="no" ;; |
| 37166 |
esac |
| 37167 |
fi ;; |
| 37168 |
esac |
| 37169 |
fi |
| 37170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function usleep" >&5 |
| 37171 |
printf %s "checking for function usleep... " >&6; } |
| 37172 |
if test ${mhd_cv_have_func_usleep+y} |
| 37173 |
then : |
| 37174 |
printf %s "(cached) " >&6 |
| 37175 |
else case e in #( |
| 37176 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37177 |
/* end confdefs.h. */ |
| 37178 |
|
| 37179 |
#include <unistd.h> |
| 37180 |
|
| 37181 |
int main(void) |
| 37182 |
{ |
| 37183 |
|
| 37184 |
usleep(100000); |
| 37185 |
|
| 37186 |
return 0; |
| 37187 |
} |
| 37188 |
|
| 37189 |
|
| 37190 |
_ACEOF |
| 37191 |
if ac_fn_c_try_link "$LINENO" |
| 37192 |
then : |
| 37193 |
mhd_cv_have_func_usleep="yes" |
| 37194 |
else case e in #( |
| 37195 |
e) mhd_cv_have_func_usleep="no" ;; |
| 37196 |
esac |
| 37197 |
fi |
| 37198 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 37199 |
conftest$ac_exeext conftest.$ac_ext |
| 37200 |
;; |
| 37201 |
esac |
| 37202 |
fi |
| 37203 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_usleep" >&5 |
| 37204 |
printf "%s\n" "$mhd_cv_have_func_usleep" >&6; } |
| 37205 |
if test "x$mhd_cv_have_func_usleep" = x"yes" |
| 37206 |
then : |
| 37207 |
|
| 37208 |
printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
| 37209 |
|
| 37210 |
|
| 37211 |
fi |
| 37212 |
|
| 37213 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 37214 |
|
| 37215 |
|
| 37216 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 37217 |
if test ${mhd_cv_have_func_nanosleep+y} |
| 37218 |
then : |
| 37219 |
|
| 37220 |
else case e in #( |
| 37221 |
e) ac_fn_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h> |
| 37222 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 37223 |
if test "x$ac_cv_have_decl_nanosleep" = xyes |
| 37224 |
then : |
| 37225 |
|
| 37226 |
else case e in #( |
| 37227 |
e) mhd_cv_have_func_nanosleep="no" ;; |
| 37228 |
esac |
| 37229 |
fi ;; |
| 37230 |
esac |
| 37231 |
fi |
| 37232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function nanosleep" >&5 |
| 37233 |
printf %s "checking for function nanosleep... " >&6; } |
| 37234 |
if test ${mhd_cv_have_func_nanosleep+y} |
| 37235 |
then : |
| 37236 |
printf %s "(cached) " >&6 |
| 37237 |
else case e in #( |
| 37238 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37239 |
/* end confdefs.h. */ |
| 37240 |
|
| 37241 |
#include <time.h> |
| 37242 |
|
| 37243 |
int main(void) |
| 37244 |
{ |
| 37245 |
|
| 37246 |
struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2); |
| 37247 |
|
| 37248 |
return 0; |
| 37249 |
} |
| 37250 |
|
| 37251 |
|
| 37252 |
_ACEOF |
| 37253 |
if ac_fn_c_try_link "$LINENO" |
| 37254 |
then : |
| 37255 |
mhd_cv_have_func_nanosleep="yes" |
| 37256 |
else case e in #( |
| 37257 |
e) mhd_cv_have_func_nanosleep="no" ;; |
| 37258 |
esac |
| 37259 |
fi |
| 37260 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 37261 |
conftest$ac_exeext conftest.$ac_ext |
| 37262 |
;; |
| 37263 |
esac |
| 37264 |
fi |
| 37265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_nanosleep" >&5 |
| 37266 |
printf "%s\n" "$mhd_cv_have_func_nanosleep" >&6; } |
| 37267 |
if test "x$mhd_cv_have_func_nanosleep" = x"yes" |
| 37268 |
then : |
| 37269 |
|
| 37270 |
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 37271 |
|
| 37272 |
|
| 37273 |
fi |
| 37274 |
|
| 37275 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 37276 |
|
| 37277 |
ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default |
| 37278 |
" |
| 37279 |
if test "x$ac_cv_header_string_h" = xyes |
| 37280 |
then : |
| 37281 |
printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h |
| 37282 |
|
| 37283 |
fi |
| 37284 |
ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default |
| 37285 |
" |
| 37286 |
if test "x$ac_cv_header_sys_types_h" = xyes |
| 37287 |
then : |
| 37288 |
printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h |
| 37289 |
|
| 37290 |
fi |
| 37291 |
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default |
| 37292 |
" |
| 37293 |
if test "x$ac_cv_header_sys_socket_h" = xyes |
| 37294 |
then : |
| 37295 |
printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 37296 |
|
| 37297 |
fi |
| 37298 |
ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default |
| 37299 |
" |
| 37300 |
if test "x$ac_cv_header_netinet_in_h" = xyes |
| 37301 |
then : |
| 37302 |
printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h |
| 37303 |
|
| 37304 |
fi |
| 37305 |
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default |
| 37306 |
" |
| 37307 |
if test "x$ac_cv_header_time_h" = xyes |
| 37308 |
then : |
| 37309 |
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 37310 |
|
| 37311 |
fi |
| 37312 |
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default |
| 37313 |
" |
| 37314 |
if test "x$ac_cv_header_sys_select_h" = xyes |
| 37315 |
then : |
| 37316 |
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 37317 |
|
| 37318 |
fi |
| 37319 |
ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default |
| 37320 |
" |
| 37321 |
if test "x$ac_cv_header_netinet_tcp_h" = xyes |
| 37322 |
then : |
| 37323 |
printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h |
| 37324 |
|
| 37325 |
fi |
| 37326 |
|
| 37327 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether shutdown of listen socket triggers select()" >&5 |
| 37328 |
printf %s "checking whether shutdown of listen socket triggers select()... " >&6; } |
| 37329 |
if test ${mhd_cv_host_shtdwn_trgr_select+y} |
| 37330 |
then : |
| 37331 |
printf %s "(cached) " >&6 |
| 37332 |
else case e in #( |
| 37333 |
e) # On Linux shutdown of listen socket always trigger select(). |
| 37334 |
# On Windows select() always ignore shutdown of listen socket. |
| 37335 |
# On other paltforms result may vary depending on platform version. |
| 37336 |
case $host_os in #( |
| 37337 |
linux | linux-* | *-linux | *-linux-*) : |
| 37338 |
mhd_cv_host_shtdwn_trgr_select='yes' ;; #( |
| 37339 |
mingw*) : |
| 37340 |
mhd_cv_host_shtdwn_trgr_select='no' ;; #( |
| 37341 |
cygwin* | msys*) : |
| 37342 |
mhd_cv_host_shtdwn_trgr_select='no' ;; #( |
| 37343 |
winnt* | interix*) : |
| 37344 |
mhd_cv_host_shtdwn_trgr_select='no' ;; #( |
| 37345 |
mks) : |
| 37346 |
mhd_cv_host_shtdwn_trgr_select='no' ;; #( |
| 37347 |
uwin) : |
| 37348 |
mhd_cv_host_shtdwn_trgr_select='no' ;; #( |
| 37349 |
*) : |
| 37350 |
mhd_cv_host_shtdwn_trgr_select='maybe' |
| 37351 |
;; |
| 37352 |
esac |
| 37353 |
|
| 37354 |
|
| 37355 |
if test "x$mhd_cv_host_shtdwn_trgr_select" = x"maybe" |
| 37356 |
then : |
| 37357 |
ac_ext=c |
| 37358 |
ac_cpp='$CPP $CPPFLAGS' |
| 37359 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 37360 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 37361 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 37362 |
|
| 37363 |
MHD_CST_SAVE_CC="$CC" |
| 37364 |
MHD_CST_SAVE_CFLAGS="$CFLAGS" |
| 37365 |
MHD_CST_SAVE_LIBS="$LIBS" |
| 37366 |
CC="$PTHREAD_CC" |
| 37367 |
CFLAGS="$CFLAGS $PTHREAD_CFLAGS" |
| 37368 |
LIBS="$PTHREAD_LIBS $LIBS" |
| 37369 |
if test "$cross_compiling" = yes |
| 37370 |
then : |
| 37371 |
mhd_cv_host_shtdwn_trgr_select='guessing no' |
| 37372 |
else case e in #( |
| 37373 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37374 |
/* end confdefs.h. */ |
| 37375 |
|
| 37376 |
#include <stdlib.h> |
| 37377 |
|
| 37378 |
#ifdef HAVE_UNISTD_H |
| 37379 |
# include <unistd.h> |
| 37380 |
#endif |
| 37381 |
#ifdef HAVE_TIME_H |
| 37382 |
# include <time.h> |
| 37383 |
#endif |
| 37384 |
#ifdef HAVE_STRING_H |
| 37385 |
# include <string.h> |
| 37386 |
#endif |
| 37387 |
|
| 37388 |
#if !defined(_WIN32) || defined(__CYGWIN__) |
| 37389 |
# ifdef HAVE_SYS_TYPES_H |
| 37390 |
# include <sys/types.h> |
| 37391 |
# endif |
| 37392 |
# ifdef HAVE_SYS_SOCKET_H |
| 37393 |
# include <sys/socket.h> |
| 37394 |
# endif |
| 37395 |
# ifdef HAVE_NETINET_IN_H |
| 37396 |
# include <netinet/in.h> |
| 37397 |
# endif |
| 37398 |
# ifdef HAVE_SYS_TIME_H |
| 37399 |
# include <sys/time.h> |
| 37400 |
# endif |
| 37401 |
# ifdef HAVE_SYS_SELECT_H |
| 37402 |
# include <sys/select.h> |
| 37403 |
# endif |
| 37404 |
# ifdef HAVE_NETINET_TCP_H |
| 37405 |
# include <netinet/tcp.h> |
| 37406 |
# endif |
| 37407 |
typedef int MHD_socket; |
| 37408 |
# define MHD_INVALID_SOCKET (-1) |
| 37409 |
# define MHD_POSIX_SOCKETS 1 |
| 37410 |
#else |
| 37411 |
# include <winsock2.h> |
| 37412 |
# include <ws2tcpip.h> |
| 37413 |
# include <windows.h> |
| 37414 |
typedef SOCKET MHD_socket; |
| 37415 |
# define MHD_INVALID_SOCKET (INVALID_SOCKET) |
| 37416 |
# define MHD_WINSOCK_SOCKETS 1 |
| 37417 |
#endif |
| 37418 |
|
| 37419 |
#include <pthread.h> |
| 37420 |
|
| 37421 |
#ifndef SHUT_RD |
| 37422 |
# define SHUT_RD 0 |
| 37423 |
#endif |
| 37424 |
#ifndef SHUT_WR |
| 37425 |
# define SHUT_WR 1 |
| 37426 |
#endif |
| 37427 |
#ifndef SHUT_RDWR |
| 37428 |
# define SHUT_RDWR 2 |
| 37429 |
#endif |
| 37430 |
|
| 37431 |
#ifndef NULL |
| 37432 |
# define NULL ((void*)0) |
| 37433 |
#endif |
| 37434 |
|
| 37435 |
#ifdef HAVE_GETTIMEOFDAY |
| 37436 |
# if defined(_WIN32) && !defined(__CYGWIN__) |
| 37437 |
# undef HAVE_GETTIMEOFDAY |
| 37438 |
# endif |
| 37439 |
#endif |
| 37440 |
|
| 37441 |
|
| 37442 |
#ifdef HAVE_NANOSLEEP |
| 37443 |
static const struct timespec sm_tmout = {0, 1000}; |
| 37444 |
# define short_sleep() nanosleep(&sm_tmout, NULL) |
| 37445 |
#elif defined(HAVE_USLEEP) |
| 37446 |
# define short_sleep() usleep(1) |
| 37447 |
#else |
| 37448 |
# define short_sleep() (void)0 |
| 37449 |
#endif |
| 37450 |
|
| 37451 |
static volatile int going_select = 0; |
| 37452 |
static volatile int select_ends = 0; |
| 37453 |
static volatile int gerror = 0; |
| 37454 |
static int timeout_mils; |
| 37455 |
|
| 37456 |
#ifndef HAVE_GETTIMEOFDAY |
| 37457 |
static volatile long long select_elapsed_time = 0; |
| 37458 |
|
| 37459 |
static long long time_chk(void) |
| 37460 |
{ |
| 37461 |
long long ret = time(NULL); |
| 37462 |
if (-1 == ret) |
| 37463 |
gerror = 4; |
| 37464 |
return ret; |
| 37465 |
} |
| 37466 |
#endif |
| 37467 |
|
| 37468 |
|
| 37469 |
static void* select_thrd_func(void* param) |
| 37470 |
{ |
| 37471 |
#ifndef HAVE_GETTIMEOFDAY |
| 37472 |
long long start, stop; |
| 37473 |
#endif |
| 37474 |
fd_set rs; |
| 37475 |
struct timeval tmot = {0, 0}; |
| 37476 |
MHD_socket fd = *((MHD_socket*)param); |
| 37477 |
|
| 37478 |
FD_ZERO(&rs); |
| 37479 |
FD_SET(fd, &rs); |
| 37480 |
tmot.tv_usec = timeout_mils * 1000; |
| 37481 |
#ifndef HAVE_GETTIMEOFDAY |
| 37482 |
start = time_chk(); |
| 37483 |
#endif |
| 37484 |
going_select = 1; |
| 37485 |
if (0 > select ((int)(fd) + 1, &rs, NULL, NULL, &tmot)) |
| 37486 |
gerror = 5; |
| 37487 |
#ifndef HAVE_GETTIMEOFDAY |
| 37488 |
stop = time_chk(); |
| 37489 |
select_elapsed_time = stop - start; |
| 37490 |
#endif |
| 37491 |
select_ends = 1; |
| 37492 |
return NULL; |
| 37493 |
} |
| 37494 |
|
| 37495 |
|
| 37496 |
static MHD_socket create_socket(void) |
| 37497 |
{ return socket (AF_INET, SOCK_STREAM, 0); } |
| 37498 |
|
| 37499 |
static void close_socket(MHD_socket fd) |
| 37500 |
{ |
| 37501 |
#ifdef MHD_POSIX_SOCKETS |
| 37502 |
close(fd); |
| 37503 |
#else |
| 37504 |
closesocket(fd); |
| 37505 |
#endif |
| 37506 |
} |
| 37507 |
|
| 37508 |
static MHD_socket |
| 37509 |
create_socket_listen(int port) |
| 37510 |
{ |
| 37511 |
MHD_socket fd; |
| 37512 |
struct sockaddr_in sock_addr; |
| 37513 |
fd = create_socket(); |
| 37514 |
if (MHD_INVALID_SOCKET == fd) |
| 37515 |
return fd; |
| 37516 |
|
| 37517 |
memset (&sock_addr, 0, sizeof (struct sockaddr_in)); |
| 37518 |
sock_addr.sin_family = AF_INET; |
| 37519 |
sock_addr.sin_port = htons(port); |
| 37520 |
sock_addr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); |
| 37521 |
|
| 37522 |
if (bind (fd, (const struct sockaddr*) &sock_addr, sizeof(sock_addr)) < 0 || |
| 37523 |
listen(fd, SOMAXCONN) < 0) |
| 37524 |
{ |
| 37525 |
close_socket(fd); |
| 37526 |
return MHD_INVALID_SOCKET; |
| 37527 |
} |
| 37528 |
return fd; |
| 37529 |
} |
| 37530 |
|
| 37531 |
#ifdef HAVE_GETTIMEOFDAY |
| 37532 |
#define diff_time(tv1, tv2) ((long long)(tv1.tv_sec-tv2.tv_sec)*10000 + (long long)(tv1.tv_usec-tv2.tv_usec)/100) |
| 37533 |
#else |
| 37534 |
#define diff_time(tv1, tv2) ((long long)(tv1-tv2)) |
| 37535 |
#endif |
| 37536 |
|
| 37537 |
static long long test_run_select(int timeout_millsec, int use_shutdown, long long delay_before_shutdown) |
| 37538 |
{ |
| 37539 |
pthread_t select_thrd; |
| 37540 |
MHD_socket fd; |
| 37541 |
#ifdef HAVE_GETTIMEOFDAY |
| 37542 |
struct timeval start, stop; |
| 37543 |
#else |
| 37544 |
long long start; |
| 37545 |
#endif |
| 37546 |
|
| 37547 |
fd = create_socket_listen(0); |
| 37548 |
if (MHD_INVALID_SOCKET == fd) |
| 37549 |
return -7; |
| 37550 |
going_select = 0; |
| 37551 |
select_ends = 0; |
| 37552 |
gerror = 0; |
| 37553 |
timeout_mils = timeout_millsec; |
| 37554 |
if (0 != pthread_create (&select_thrd, NULL, select_thrd_func, (void*)&fd)) |
| 37555 |
return -8; |
| 37556 |
while (!going_select) {short_sleep();} |
| 37557 |
#ifdef HAVE_GETTIMEOFDAY |
| 37558 |
gettimeofday (&start, NULL); |
| 37559 |
#else |
| 37560 |
start = time_chk(); |
| 37561 |
#endif |
| 37562 |
if (use_shutdown) |
| 37563 |
{ |
| 37564 |
#ifdef HAVE_GETTIMEOFDAY |
| 37565 |
struct timeval current; |
| 37566 |
do {short_sleep(); gettimeofday(¤t, NULL); } while (delay_before_shutdown > diff_time(current, start)); |
| 37567 |
#else |
| 37568 |
while (delay_before_shutdown > time_chk() - start) {short_sleep();} |
| 37569 |
#endif |
| 37570 |
shutdown(fd, SHUT_RDWR); |
| 37571 |
} |
| 37572 |
#ifdef HAVE_GETTIMEOFDAY |
| 37573 |
while (!select_ends) {short_sleep();} |
| 37574 |
gettimeofday (&stop, NULL); |
| 37575 |
#endif |
| 37576 |
if (0 != pthread_join(select_thrd, NULL)) |
| 37577 |
return -9; |
| 37578 |
close_socket(fd); |
| 37579 |
if (gerror) |
| 37580 |
return -10; |
| 37581 |
#ifdef HAVE_GETTIMEOFDAY |
| 37582 |
return (long long)diff_time(stop, start); |
| 37583 |
#else |
| 37584 |
return select_elapsed_time; |
| 37585 |
#endif |
| 37586 |
} |
| 37587 |
|
| 37588 |
static int test_it(void) |
| 37589 |
{ |
| 37590 |
long long duration2; |
| 37591 |
#ifdef HAVE_GETTIMEOFDAY |
| 37592 |
long long duration0, duration1; |
| 37593 |
duration0 = test_run_select(0, 0, 0); |
| 37594 |
if (0 > duration0) |
| 37595 |
return -duration0; |
| 37596 |
|
| 37597 |
duration1 = test_run_select(50, 0, 0); |
| 37598 |
if (0 > duration1) |
| 37599 |
return -duration1 + 20; |
| 37600 |
|
| 37601 |
duration2 = test_run_select(500, 1, (duration0 + duration1) / 2); |
| 37602 |
if (0 > duration2) |
| 37603 |
return -duration2 + 40; |
| 37604 |
|
| 37605 |
if (duration1 * 2 > duration2) |
| 37606 |
{ /* Check second time to be sure. */ |
| 37607 |
duration2 = test_run_select(500, 1, (duration0 + duration1) / 2); |
| 37608 |
if (0 > duration2) |
| 37609 |
return -duration2 + 60; |
| 37610 |
if (duration1 * 2 > duration2) |
| 37611 |
return 0; |
| 37612 |
} |
| 37613 |
#else |
| 37614 |
duration2 = test_run_select(5000, 1, 2); |
| 37615 |
if (0 > duration2) |
| 37616 |
return -duration2 + 80; |
| 37617 |
|
| 37618 |
if (4 > duration2) |
| 37619 |
{ /* Check second time to be sure. */ |
| 37620 |
duration2 = test_run_select(5000, 1, 2); |
| 37621 |
if (0 > duration2) |
| 37622 |
return -duration2 + 100; |
| 37623 |
if (4 > duration2) |
| 37624 |
return 0; |
| 37625 |
} |
| 37626 |
#endif |
| 37627 |
return 1; |
| 37628 |
} |
| 37629 |
|
| 37630 |
|
| 37631 |
static int init(void) |
| 37632 |
{ |
| 37633 |
#ifdef MHD_WINSOCK_SOCKETS |
| 37634 |
WSADATA wsa_data; |
| 37635 |
|
| 37636 |
if (0 != WSAStartup(MAKEWORD(2, 2), &wsa_data) || MAKEWORD(2, 2) != wsa_data.wVersion) |
| 37637 |
{ |
| 37638 |
WSACleanup(); |
| 37639 |
return 0; |
| 37640 |
} |
| 37641 |
#endif /* MHD_WINSOCK_SOCKETS */ |
| 37642 |
return 1; |
| 37643 |
} |
| 37644 |
|
| 37645 |
static void cleanup(void) |
| 37646 |
{ |
| 37647 |
#ifdef MHD_WINSOCK_SOCKETS |
| 37648 |
WSACleanup(); |
| 37649 |
#endif /* MHD_WINSOCK_SOCKETS */ |
| 37650 |
} |
| 37651 |
|
| 37652 |
int main(void) |
| 37653 |
{ |
| 37654 |
int res; |
| 37655 |
if (!init()) |
| 37656 |
return 19; |
| 37657 |
|
| 37658 |
res = test_it(); |
| 37659 |
|
| 37660 |
cleanup(); |
| 37661 |
if (gerror) |
| 37662 |
return gerror; |
| 37663 |
|
| 37664 |
return res; |
| 37665 |
} |
| 37666 |
|
| 37667 |
_ACEOF |
| 37668 |
if ac_fn_c_try_run "$LINENO" |
| 37669 |
then : |
| 37670 |
mhd_cv_host_shtdwn_trgr_select='yes' |
| 37671 |
else case e in #( |
| 37672 |
e) mhd_cv_host_shtdwn_trgr_select='no' ;; |
| 37673 |
esac |
| 37674 |
fi |
| 37675 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 37676 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 37677 |
esac |
| 37678 |
fi |
| 37679 |
|
| 37680 |
CC="$MHD_CST_SAVE_CC" |
| 37681 |
CFLAGS="$MHD_CST_SAVE_CFLAGS" |
| 37682 |
LIBS="$MHD_CST_SAVE_LIBS" |
| 37683 |
{ MHD_CST_SAVE_CC=; unset MHD_CST_SAVE_CC;} |
| 37684 |
{ MHD_CST_SAVE_CFLAGS=; unset MHD_CST_SAVE_CFLAGS;} |
| 37685 |
{ MHD_CST_SAVE_LIBS=; unset MHD_CST_SAVE_LIBS;} |
| 37686 |
ac_ext=c |
| 37687 |
ac_cpp='$CPP $CPPFLAGS' |
| 37688 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 37689 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 37690 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 37691 |
|
| 37692 |
|
| 37693 |
|
| 37694 |
fi |
| 37695 |
|
| 37696 |
;; |
| 37697 |
esac |
| 37698 |
fi |
| 37699 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_host_shtdwn_trgr_select" >&5 |
| 37700 |
printf "%s\n" "$mhd_cv_host_shtdwn_trgr_select" >&6; } |
| 37701 |
if test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes" |
| 37702 |
then : |
| 37703 |
|
| 37704 |
printf "%s\n" "#define HAVE_LISTEN_SHUTDOWN 1" >>confdefs.h |
| 37705 |
|
| 37706 |
elif test "x$mhd_cv_host_shtdwn_trgr_select" = "xno" |
| 37707 |
then : |
| 37708 |
|
| 37709 |
fi |
| 37710 |
|
| 37711 |
|
| 37712 |
if test "x$mhd_cv_host_shtdwn_trgr_select" = "xyes"; then |
| 37713 |
HAVE_LISTEN_SHUTDOWN_TRUE= |
| 37714 |
HAVE_LISTEN_SHUTDOWN_FALSE='#' |
| 37715 |
else |
| 37716 |
HAVE_LISTEN_SHUTDOWN_TRUE='#' |
| 37717 |
HAVE_LISTEN_SHUTDOWN_FALSE= |
| 37718 |
fi |
| 37719 |
|
| 37720 |
|
| 37721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system default FD_SETSIZE value" >&5 |
| 37722 |
printf %s "checking for system default FD_SETSIZE value... " >&6; } |
| 37723 |
if test ${mhd_cv_sys_fd_setsize_value+y} |
| 37724 |
then : |
| 37725 |
printf %s "(cached) " >&6 |
| 37726 |
else case e in #( |
| 37727 |
e) |
| 37728 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS} -UFD_SETSIZE" |
| 37729 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS} -UFD_SETSIZE" |
| 37730 |
if ac_fn_c_compute_int "$LINENO" "FD_SETSIZE" "mhd_cv_sys_fd_setsize_value" " |
| 37731 |
#ifdef HAVE_SYS_TIME_H |
| 37732 |
#include <sys/time.h> |
| 37733 |
#endif |
| 37734 |
#ifdef HAVE_SYS_TYPES_H |
| 37735 |
#include <sys/types.h> |
| 37736 |
#endif |
| 37737 |
#ifdef HAVE_UNISTD_H |
| 37738 |
#include <unistd.h> |
| 37739 |
#endif |
| 37740 |
#ifdef HAVE_SYS_SOCKET_H |
| 37741 |
#include <sys/socket.h> |
| 37742 |
#endif |
| 37743 |
#ifdef HAVE_SOCKLIB_H |
| 37744 |
#include <sockLib.h> |
| 37745 |
#endif |
| 37746 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 37747 |
#include <winsock2.h> |
| 37748 |
#endif |
| 37749 |
#ifdef HAVE_SYS_SELECT_H |
| 37750 |
#include <sys/select.h> |
| 37751 |
#endif |
| 37752 |
" |
| 37753 |
then : |
| 37754 |
|
| 37755 |
else case e in #( |
| 37756 |
e) mhd_cv_sys_fd_setsize_value="unknown" |
| 37757 |
;; |
| 37758 |
esac |
| 37759 |
fi |
| 37760 |
|
| 37761 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 37762 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 37763 |
if test "x${mhd_cv_sys_fd_setsize_value}" != "xunknown" && \ |
| 37764 |
test "${mhd_cv_sys_fd_setsize_value}" -eq "0" \ |
| 37765 |
|
| 37766 |
then : |
| 37767 |
mhd_cv_sys_fd_setsize_value="unknown" |
| 37768 |
|
| 37769 |
fi |
| 37770 |
|
| 37771 |
;; |
| 37772 |
esac |
| 37773 |
fi |
| 37774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_sys_fd_setsize_value" >&5 |
| 37775 |
printf "%s\n" "$mhd_cv_sys_fd_setsize_value" >&6; } |
| 37776 |
if test "x$mhd_cv_sys_fd_setsize_value" = x"unknown" |
| 37777 |
then : |
| 37778 |
: |
| 37779 |
else case e in #( |
| 37780 |
e) |
| 37781 |
|
| 37782 |
printf "%s\n" "#define MHD_SYS_FD_SETSIZE_ ${mhd_cv_sys_fd_setsize_value}" >>confdefs.h |
| 37783 |
|
| 37784 |
|
| 37785 |
;; |
| 37786 |
esac |
| 37787 |
fi |
| 37788 |
if test "x${mhd_cv_sys_fd_setsize_value}" = "xunknown"; then |
| 37789 |
NEED_SYS_FD_SET_SIZE_VALUE_TRUE= |
| 37790 |
NEED_SYS_FD_SET_SIZE_VALUE_FALSE='#' |
| 37791 |
else |
| 37792 |
NEED_SYS_FD_SET_SIZE_VALUE_TRUE='#' |
| 37793 |
NEED_SYS_FD_SET_SIZE_VALUE_FALSE= |
| 37794 |
fi |
| 37795 |
|
| 37796 |
|
| 37797 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for current FD_SETSIZE value" >&5 |
| 37798 |
printf %s "checking for current FD_SETSIZE value... " >&6; } |
| 37799 |
if test ${mhd_cv_fd_setsize_value+y} |
| 37800 |
then : |
| 37801 |
printf %s "(cached) " >&6 |
| 37802 |
else case e in #( |
| 37803 |
e) |
| 37804 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 37805 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 37806 |
if test "x${cross_compiling}" != "xno" && test "x${mhd_cv_sys_fd_setsize_value}" != "xunknown" |
| 37807 |
then : |
| 37808 |
|
| 37809 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37810 |
/* end confdefs.h. */ |
| 37811 |
|
| 37812 |
#ifdef HAVE_SYS_TIME_H |
| 37813 |
#include <sys/time.h> |
| 37814 |
#endif |
| 37815 |
#ifdef HAVE_SYS_TYPES_H |
| 37816 |
#include <sys/types.h> |
| 37817 |
#endif |
| 37818 |
#ifdef HAVE_UNISTD_H |
| 37819 |
#include <unistd.h> |
| 37820 |
#endif |
| 37821 |
#ifdef HAVE_SYS_SOCKET_H |
| 37822 |
#include <sys/socket.h> |
| 37823 |
#endif |
| 37824 |
#ifdef HAVE_SOCKLIB_H |
| 37825 |
#include <sockLib.h> |
| 37826 |
#endif |
| 37827 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 37828 |
#include <winsock2.h> |
| 37829 |
#endif |
| 37830 |
#ifdef HAVE_SYS_SELECT_H |
| 37831 |
#include <sys/select.h> |
| 37832 |
#endif |
| 37833 |
|
| 37834 |
#define DETECTED_FD_SETZIE_VALUE ${mhd_cv_sys_fd_setsize_value} |
| 37835 |
|
| 37836 |
#if (FD_SETSIZE) != (DETECTED_FD_SETZIE_VALUE) |
| 37837 |
#error The current default FD_SETSIZE value is different from ${mhd_cv_sys_fd_setsize_value} |
| 37838 |
choke me here now |
| 37839 |
#endif /* (FD_SETSIZE) != (DETECTED_FD_SETZIE_VALUE) */ |
| 37840 |
|
| 37841 |
#if (FD_SETSIZE) != (${mhd_cv_sys_fd_setsize_value}) |
| 37842 |
#error The current default FD_SETSIZE value is different from ${mhd_cv_sys_fd_setsize_value} |
| 37843 |
choke me here now |
| 37844 |
#endif /* (FD_SETSIZE) != (${mhd_cv_sys_fd_setsize_value}) */ |
| 37845 |
|
| 37846 |
int |
| 37847 |
main (void) |
| 37848 |
{ |
| 37849 |
|
| 37850 |
|
| 37851 |
; |
| 37852 |
return 0; |
| 37853 |
} |
| 37854 |
|
| 37855 |
_ACEOF |
| 37856 |
if ac_fn_c_try_compile "$LINENO" |
| 37857 |
then : |
| 37858 |
mhd_cv_fd_setsize_value="${mhd_cv_sys_fd_setsize_value}" |
| 37859 |
|
| 37860 |
fi |
| 37861 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 37862 |
|
| 37863 |
|
| 37864 |
fi |
| 37865 |
if test ${mhd_cv_fd_setsize_value+y} |
| 37866 |
then : |
| 37867 |
: |
| 37868 |
else case e in #( |
| 37869 |
e) |
| 37870 |
if ac_fn_c_compute_int "$LINENO" "FD_SETSIZE" "mhd_cv_fd_setsize_value" " |
| 37871 |
#ifdef HAVE_SYS_TIME_H |
| 37872 |
#include <sys/time.h> |
| 37873 |
#endif |
| 37874 |
#ifdef HAVE_SYS_TYPES_H |
| 37875 |
#include <sys/types.h> |
| 37876 |
#endif |
| 37877 |
#ifdef HAVE_UNISTD_H |
| 37878 |
#include <unistd.h> |
| 37879 |
#endif |
| 37880 |
#ifdef HAVE_SYS_SOCKET_H |
| 37881 |
#include <sys/socket.h> |
| 37882 |
#endif |
| 37883 |
#ifdef HAVE_SOCKLIB_H |
| 37884 |
#include <sockLib.h> |
| 37885 |
#endif |
| 37886 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 37887 |
#include <winsock2.h> |
| 37888 |
#endif |
| 37889 |
#ifdef HAVE_SYS_SELECT_H |
| 37890 |
#include <sys/select.h> |
| 37891 |
#endif |
| 37892 |
" |
| 37893 |
then : |
| 37894 |
|
| 37895 |
else case e in #( |
| 37896 |
e) mhd_cv_fd_setsize_value="unknown" |
| 37897 |
;; |
| 37898 |
esac |
| 37899 |
fi |
| 37900 |
|
| 37901 |
|
| 37902 |
;; |
| 37903 |
esac |
| 37904 |
fi |
| 37905 |
if test "x${mhd_cv_fd_setsize_value}" != "xunknown" && \ |
| 37906 |
test "${mhd_cv_fd_setsize_value}" -eq "0" |
| 37907 |
then : |
| 37908 |
mhd_cv_fd_setsize_value="unknown" |
| 37909 |
|
| 37910 |
fi |
| 37911 |
|
| 37912 |
;; |
| 37913 |
esac |
| 37914 |
fi |
| 37915 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_fd_setsize_value" >&5 |
| 37916 |
printf "%s\n" "$mhd_cv_fd_setsize_value" >&6; } |
| 37917 |
|
| 37918 |
|
| 37919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether FD_SETSIZE is overridable" >&5 |
| 37920 |
printf %s "checking whether FD_SETSIZE is overridable... " >&6; } |
| 37921 |
if test ${mhd_cv_fd_setsize_overridable+y} |
| 37922 |
then : |
| 37923 |
printf %s "(cached) " >&6 |
| 37924 |
else case e in #( |
| 37925 |
e) |
| 37926 |
if test "x$mhd_cv_fd_setsize_value" = x"unknown" |
| 37927 |
then : |
| 37928 |
|
| 37929 |
if test "x$mhd_cv_sys_fd_setsize_value" = x"unknown" |
| 37930 |
then : |
| 37931 |
|
| 37932 |
# Assume the most popular FD_SETSIZE value |
| 37933 |
base_fd_setsize=1024 |
| 37934 |
|
| 37935 |
else case e in #( |
| 37936 |
e) base_fd_setsize="${mhd_cv_sys_fd_setsize_value}" |
| 37937 |
;; |
| 37938 |
esac |
| 37939 |
fi |
| 37940 |
base_min_fd_setsize="${base_fd_setsize}" |
| 37941 |
|
| 37942 |
else case e in #( |
| 37943 |
e) |
| 37944 |
if test "x$mhd_cv_sys_fd_setsize_value" = x"unknown" |
| 37945 |
then : |
| 37946 |
|
| 37947 |
base_fd_setsize="${mhd_cv_fd_setsize_value}" |
| 37948 |
base_min_fd_setsize="${base_fd_setsize}" |
| 37949 |
|
| 37950 |
else case e in #( |
| 37951 |
e) |
| 37952 |
if test "${mhd_cv_fd_setsize_value}" -ge "${mhd_cv_sys_fd_setsize_value}" |
| 37953 |
then : |
| 37954 |
|
| 37955 |
base_fd_setsize="${mhd_cv_fd_setsize_value}" |
| 37956 |
base_min_fd_setsize="${mhd_cv_sys_fd_setsize_value}" |
| 37957 |
|
| 37958 |
else case e in #( |
| 37959 |
e) |
| 37960 |
base_fd_setsize="${mhd_cv_sys_fd_setsize_value}" |
| 37961 |
base_min_fd_setsize="${mhd_cv_fd_setsize_value}" |
| 37962 |
|
| 37963 |
;; |
| 37964 |
esac |
| 37965 |
fi |
| 37966 |
|
| 37967 |
;; |
| 37968 |
esac |
| 37969 |
fi |
| 37970 |
|
| 37971 |
;; |
| 37972 |
esac |
| 37973 |
fi |
| 37974 |
# Use two times larger FD_SETSIZE value for test |
| 37975 |
as_fn_arith ${base_fd_setsize} '+' ${base_fd_setsize} && test_fd_setsize=$as_val |
| 37976 |
if test "${test_fd_setsize}" -lt "128" |
| 37977 |
then : |
| 37978 |
test_fd_setsize=128 |
| 37979 |
fi |
| 37980 |
test_type_fd_setsize="larger" |
| 37981 |
|
| 37982 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 37983 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 37984 |
|
| 37985 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: testing whether FD_SETSIZE test value (${test_fd_setsize}) is suitable for 'int' type" >&5 |
| 37986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 37987 |
/* end confdefs.h. */ |
| 37988 |
|
| 37989 |
int |
| 37990 |
main (void) |
| 37991 |
{ |
| 37992 |
|
| 37993 |
static int test_arr1[(((long long)${test_fd_setsize}) != ((int)${test_fd_setsize})) ? -1 : 1]; |
| 37994 |
static int test_arr2[(0 > ((int)${test_fd_setsize})) ? -1 : 1]; |
| 37995 |
test_arr1[0] = 0; |
| 37996 |
test_arr2[0] = 0; |
| 37997 |
if (test_arr1[0] != test_arr2[0]) return 1; |
| 37998 |
|
| 37999 |
|
| 38000 |
; |
| 38001 |
return 0; |
| 38002 |
} |
| 38003 |
|
| 38004 |
_ACEOF |
| 38005 |
if ac_fn_c_try_compile "$LINENO" |
| 38006 |
then : |
| 38007 |
|
| 38008 |
else case e in #( |
| 38009 |
e) |
| 38010 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: The selected test FD_SETSIZE value (${test_fd_setsize}) is too large for 'int' type" >&5 |
| 38011 |
as_fn_arith ${base_min_fd_setsize} '/' '2' && test_fd_setsize=$as_val |
| 38012 |
test_type_fd_setsize="smaller" |
| 38013 |
|
| 38014 |
;; |
| 38015 |
esac |
| 38016 |
fi |
| 38017 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38018 |
|
| 38019 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: will try ${test_fd_setsize} as FD_SETSIZE value" >&5 |
| 38020 |
|
| 38021 |
if test "x${cross_compiling}" = "xno" && test "x${test_type_fd_setsize}" = "xlarger" |
| 38022 |
then : |
| 38023 |
|
| 38024 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: will try ${test_fd_setsize} as FD_SETSIZE value with run test" >&5 |
| 38025 |
if test "$cross_compiling" = yes |
| 38026 |
then : |
| 38027 |
# Not used when cross-compiling |
| 38028 |
|
| 38029 |
else case e in #( |
| 38030 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38031 |
/* end confdefs.h. */ |
| 38032 |
|
| 38033 |
|
| 38034 |
#ifdef FD_SETSIZE |
| 38035 |
#undef FD_SETSIZE |
| 38036 |
#endif /* FD_SETSIZE */ |
| 38037 |
|
| 38038 |
#define FD_SETSIZE ${test_fd_setsize} |
| 38039 |
#define MY_TEST_FD_SETSIZE ${test_fd_setsize} |
| 38040 |
|
| 38041 |
#ifdef HAVE_SYS_TIME_H |
| 38042 |
#include <sys/time.h> |
| 38043 |
#endif |
| 38044 |
#ifdef HAVE_SYS_TYPES_H |
| 38045 |
#include <sys/types.h> |
| 38046 |
#endif |
| 38047 |
#ifdef HAVE_UNISTD_H |
| 38048 |
#include <unistd.h> |
| 38049 |
#endif |
| 38050 |
#ifdef HAVE_SYS_SOCKET_H |
| 38051 |
#include <sys/socket.h> |
| 38052 |
#endif |
| 38053 |
#ifdef HAVE_SOCKLIB_H |
| 38054 |
#include <sockLib.h> |
| 38055 |
#endif |
| 38056 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38057 |
#include <winsock2.h> |
| 38058 |
#define MHD_TEST_SOCKET_TYPE SOCKET |
| 38059 |
#else |
| 38060 |
#define MHD_TEST_SOCKET_TYPE int |
| 38061 |
#endif |
| 38062 |
#ifdef HAVE_SYS_SELECT_H |
| 38063 |
#include <sys/select.h> |
| 38064 |
#endif |
| 38065 |
|
| 38066 |
#include <string.h> |
| 38067 |
#include <stdio.h> |
| 38068 |
|
| 38069 |
/* Test for mismatch by macro check */ |
| 38070 |
#if (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) |
| 38071 |
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize} |
| 38072 |
choke me here now; |
| 38073 |
#endif /* (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) */ |
| 38074 |
|
| 38075 |
/* Additional test for mismatch by macro check */ |
| 38076 |
#if (FD_SETSIZE) != (${test_fd_setsize}) |
| 38077 |
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize} |
| 38078 |
choke me here now; |
| 38079 |
#endif /* (FD_SETSIZE) != (${test_fd_setsize}) */ |
| 38080 |
|
| 38081 |
static unsigned long var_fd_setsize_value = FD_SETSIZE; |
| 38082 |
static unsigned long var_my_test_fd_setsize_value = MY_TEST_FD_SETSIZE; |
| 38083 |
|
| 38084 |
int main(void) |
| 38085 |
{ |
| 38086 |
fd_set fds_num_one_copy; |
| 38087 |
fd_set fds_num_three_copy; |
| 38088 |
fd_set test_fdsets[6]; |
| 38089 |
int i; |
| 38090 |
int ret = 0; |
| 38091 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38092 |
WSADATA wsa_data; |
| 38093 |
|
| 38094 |
if (0 != WSAStartup(MAKEWORD(2, 2), &wsa_data)) |
| 38095 |
return 21; |
| 38096 |
if (MAKEWORD(2, 2) != wsa_data.wVersion) |
| 38097 |
{ |
| 38098 |
WSACleanup(); |
| 38099 |
return 22; |
| 38100 |
} |
| 38101 |
#endif /* _WIN32 && ! __CYGWIN__ */ |
| 38102 |
|
| 38103 |
/* Init with zeros to make sure that slack areas are equal */ |
| 38104 |
memset(test_fdsets, 0, sizeof(test_fdsets)); |
| 38105 |
|
| 38106 |
/* Correctly init fd_sets */ |
| 38107 |
for (i = 0; i < 6; ++i) |
| 38108 |
FD_ZERO(test_fdsets + i); |
| 38109 |
|
| 38110 |
/* Make copies of zero-inited fd_sets */ |
| 38111 |
memcpy(&fds_num_one_copy, test_fdsets + 1, sizeof(fd_set)); |
| 38112 |
memcpy(&fds_num_three_copy, test_fdsets + 3, sizeof(fd_set)); |
| 38113 |
|
| 38114 |
if (var_fd_setsize_value != var_my_test_fd_setsize_value) |
| 38115 |
{ |
| 38116 |
fprintf (stderr, "System headers redefined FD_SETSIZE to another value (%lu).\n", |
| 38117 |
(unsigned long) FD_SETSIZE); |
| 38118 |
ret = 2; |
| 38119 |
} |
| 38120 |
else |
| 38121 |
{ |
| 38122 |
/* Set (almost) all FDs in test_fdset[2] */ |
| 38123 |
for (i = 1; i < FD_SETSIZE; ++i) |
| 38124 |
FD_SET((MHD_TEST_SOCKET_TYPE)i, test_fdsets + 2); |
| 38125 |
|
| 38126 |
if (! FD_ISSET((MHD_TEST_SOCKET_TYPE)1, test_fdsets + 2)) |
| 38127 |
{ |
| 38128 |
fprintf (stderr, "FD number one in original fd_set is unset, while should be set.\n"); |
| 38129 |
ret |= 3; |
| 38130 |
} |
| 38131 |
if (! FD_ISSET((MHD_TEST_SOCKET_TYPE)(FD_SETSIZE - 1), test_fdsets + 2)) |
| 38132 |
{ |
| 38133 |
fprintf (stderr, "FD number %lu in original fd_set is unset, while should be set.\n", |
| 38134 |
(unsigned long) FD_SETSIZE); |
| 38135 |
ret |= 3; |
| 38136 |
} |
| 38137 |
|
| 38138 |
if (FD_ISSET((MHD_TEST_SOCKET_TYPE)1, test_fdsets + 1)) |
| 38139 |
{ |
| 38140 |
fprintf (stderr, "FD number one in the first fd_set is unset, while should be set.\n"); |
| 38141 |
ret |= 4; |
| 38142 |
} |
| 38143 |
if (FD_ISSET((MHD_TEST_SOCKET_TYPE)(FD_SETSIZE - 1), test_fdsets + 1)) |
| 38144 |
{ |
| 38145 |
fprintf (stderr, "FD number %lu in the first fd_set is unset, while should be set.\n", |
| 38146 |
(unsigned long) FD_SETSIZE); |
| 38147 |
ret |= 4; |
| 38148 |
} |
| 38149 |
if (0 != memcmp (&fds_num_one_copy, test_fdsets + 1, sizeof(fd_set))) |
| 38150 |
{ |
| 38151 |
fprintf (stderr, "The first fd_set has been altered.\n"); |
| 38152 |
ret |= 4; |
| 38153 |
} |
| 38154 |
|
| 38155 |
if (FD_ISSET((MHD_TEST_SOCKET_TYPE)1, test_fdsets + 3)) |
| 38156 |
{ |
| 38157 |
fprintf (stderr, "FD number one in the third fd_set is unset, while should be set.\n"); |
| 38158 |
ret |= 8; |
| 38159 |
} |
| 38160 |
if (FD_ISSET((MHD_TEST_SOCKET_TYPE)(FD_SETSIZE - 1), test_fdsets + 3)) |
| 38161 |
{ |
| 38162 |
fprintf (stderr, "FD number %lu in the third fd_set is unset, while should be set.\n", |
| 38163 |
(unsigned long) FD_SETSIZE); |
| 38164 |
ret |= 8; |
| 38165 |
} |
| 38166 |
if (0 != memcmp (&fds_num_three_copy, test_fdsets + 3, sizeof(fd_set))) |
| 38167 |
{ |
| 38168 |
fprintf (stderr, "The third fd_set has been altered.\n"); |
| 38169 |
ret |= 8; |
| 38170 |
} |
| 38171 |
} |
| 38172 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38173 |
WSACleanup(); |
| 38174 |
#endif /* _WIN32 && ! __CYGWIN__ */ |
| 38175 |
return ret; |
| 38176 |
} |
| 38177 |
|
| 38178 |
|
| 38179 |
|
| 38180 |
_ACEOF |
| 38181 |
if ac_fn_c_try_run "$LINENO" |
| 38182 |
then : |
| 38183 |
mhd_cv_fd_setsize_overridable="yes" |
| 38184 |
else case e in #( |
| 38185 |
e) mhd_cv_fd_setsize_overridable="no" ;; |
| 38186 |
esac |
| 38187 |
fi |
| 38188 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 38189 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 38190 |
esac |
| 38191 |
fi |
| 38192 |
|
| 38193 |
|
| 38194 |
else case e in #( |
| 38195 |
e) |
| 38196 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: will try ${test_fd_setsize} as FD_SETSIZE with simple compile test" >&5 |
| 38197 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38198 |
/* end confdefs.h. */ |
| 38199 |
|
| 38200 |
#ifdef FD_SETSIZE |
| 38201 |
#undef FD_SETSIZE |
| 38202 |
#endif /* FD_SETSIZE */ |
| 38203 |
|
| 38204 |
#define FD_SETSIZE ${test_fd_setsize} |
| 38205 |
#define MY_TEST_FD_SETSIZE ${test_fd_setsize} |
| 38206 |
|
| 38207 |
#ifdef HAVE_SYS_TIME_H |
| 38208 |
#include <sys/time.h> |
| 38209 |
#endif |
| 38210 |
#ifdef HAVE_SYS_TYPES_H |
| 38211 |
#include <sys/types.h> |
| 38212 |
#endif |
| 38213 |
#ifdef HAVE_UNISTD_H |
| 38214 |
#include <unistd.h> |
| 38215 |
#endif |
| 38216 |
#ifdef HAVE_SYS_SOCKET_H |
| 38217 |
#include <sys/socket.h> |
| 38218 |
#endif |
| 38219 |
#ifdef HAVE_SOCKLIB_H |
| 38220 |
#include <sockLib.h> |
| 38221 |
#endif |
| 38222 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38223 |
#include <winsock2.h> |
| 38224 |
#endif |
| 38225 |
#ifdef HAVE_SYS_SELECT_H |
| 38226 |
#include <sys/select.h> |
| 38227 |
#endif |
| 38228 |
|
| 38229 |
/* Test for mismatch by macro check */ |
| 38230 |
#if (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) |
| 38231 |
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize} |
| 38232 |
choke me here now |
| 38233 |
#endif /* (FD_SETSIZE) != (MY_TEST_FD_SETSIZE) */ |
| 38234 |
|
| 38235 |
/* Additional test for mismatch by macro check */ |
| 38236 |
#if (FD_SETSIZE) != (${test_fd_setsize}) |
| 38237 |
#error System headers ignore custom FD_SETSIZE value, FD_SETSIZE is NOT ${test_fd_setsize} |
| 38238 |
choke me here now |
| 38239 |
#endif /* (FD_SETSIZE) != (${test_fd_setsize}) */ |
| 38240 |
|
| 38241 |
int |
| 38242 |
main (void) |
| 38243 |
{ |
| 38244 |
|
| 38245 |
|
| 38246 |
; |
| 38247 |
return 0; |
| 38248 |
} |
| 38249 |
|
| 38250 |
_ACEOF |
| 38251 |
if ac_fn_c_try_compile "$LINENO" |
| 38252 |
then : |
| 38253 |
|
| 38254 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: comple test succeed, will check whether another FD_SETSIZE value changes the size of 'fd_set'" >&5 |
| 38255 |
|
| 38256 |
# Check current size of fd_set |
| 38257 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: find the sizeof(fd_setsize) with current default (${mhd_cv_fd_setsize_value}) FD_SETSIZE value" >&5 |
| 38258 |
if ac_fn_c_compute_int "$LINENO" "sizeof(fd_set)" "sizeof_cur_fd_set" " |
| 38259 |
#ifdef HAVE_SYS_TIME_H |
| 38260 |
#include <sys/time.h> |
| 38261 |
#endif |
| 38262 |
#ifdef HAVE_SYS_TYPES_H |
| 38263 |
#include <sys/types.h> |
| 38264 |
#endif |
| 38265 |
#ifdef HAVE_UNISTD_H |
| 38266 |
#include <unistd.h> |
| 38267 |
#endif |
| 38268 |
#ifdef HAVE_SYS_SOCKET_H |
| 38269 |
#include <sys/socket.h> |
| 38270 |
#endif |
| 38271 |
#ifdef HAVE_SOCKLIB_H |
| 38272 |
#include <sockLib.h> |
| 38273 |
#endif |
| 38274 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38275 |
#include <winsock2.h> |
| 38276 |
#endif |
| 38277 |
#ifdef HAVE_SYS_SELECT_H |
| 38278 |
#include <sys/select.h> |
| 38279 |
#endif |
| 38280 |
" |
| 38281 |
then : |
| 38282 |
|
| 38283 |
else case e in #( |
| 38284 |
e) sizeof_cur_fd_set="unknown" |
| 38285 |
;; |
| 38286 |
esac |
| 38287 |
fi |
| 38288 |
|
| 38289 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: the sizeof(fd_setsize) with current default (${mhd_cv_fd_setsize_value}) FD_SETSIZE value is ${sizeof_cur_fd_set}" >&5 |
| 38290 |
|
| 38291 |
# Check the size of fd_set with redefined FD_SETSIZE |
| 38292 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: find the sizeof(fd_setsize) with redefined (${test_fd_setsize}) FD_SETSIZE value" >&5 |
| 38293 |
if ac_fn_c_compute_int "$LINENO" "sizeof(fd_set)" "sizeof_mod_fd_set" " |
| 38294 |
#ifdef FD_SETSIZE |
| 38295 |
#undef FD_SETSIZE |
| 38296 |
#endif /* FD_SETSIZE */ |
| 38297 |
|
| 38298 |
#define FD_SETSIZE ${test_fd_setsize} |
| 38299 |
|
| 38300 |
#ifdef HAVE_SYS_TIME_H |
| 38301 |
#include <sys/time.h> |
| 38302 |
#endif |
| 38303 |
#ifdef HAVE_SYS_TYPES_H |
| 38304 |
#include <sys/types.h> |
| 38305 |
#endif |
| 38306 |
#ifdef HAVE_UNISTD_H |
| 38307 |
#include <unistd.h> |
| 38308 |
#endif |
| 38309 |
#ifdef HAVE_SYS_SOCKET_H |
| 38310 |
#include <sys/socket.h> |
| 38311 |
#endif |
| 38312 |
#ifdef HAVE_SOCKLIB_H |
| 38313 |
#include <sockLib.h> |
| 38314 |
#endif |
| 38315 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38316 |
#include <winsock2.h> |
| 38317 |
#endif |
| 38318 |
#ifdef HAVE_SYS_SELECT_H |
| 38319 |
#include <sys/select.h> |
| 38320 |
#endif |
| 38321 |
" |
| 38322 |
then : |
| 38323 |
|
| 38324 |
else case e in #( |
| 38325 |
e) sizeof_mod_fd_set="unknown" |
| 38326 |
;; |
| 38327 |
esac |
| 38328 |
fi |
| 38329 |
|
| 38330 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: the sizeof(fd_setsize) with redefined (${test_fd_setsize}) FD_SETSIZE value is ${sizeof_mod_fd_set}" >&5 |
| 38331 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected sizes of 'fd_set': '${sizeof_cur_fd_set}' (by default), '${sizeof_mod_fd_set}' with modified FD_SETSIZE" >&5 |
| 38332 |
if test "x${sizeof_cur_fd_set}" != "x${sizeof_mod_fd_set}" |
| 38333 |
then : |
| 38334 |
mhd_cv_fd_setsize_overridable="yes" |
| 38335 |
else case e in #( |
| 38336 |
e) mhd_cv_fd_setsize_overridable="no" |
| 38337 |
;; |
| 38338 |
esac |
| 38339 |
fi |
| 38340 |
{ sizeof_mod_fd_set=; unset sizeof_mod_fd_set;} |
| 38341 |
{ sizeof_cur_fd_set=; unset sizeof_cur_fd_set;} |
| 38342 |
|
| 38343 |
else case e in #( |
| 38344 |
e) mhd_cv_fd_setsize_overridable="no" |
| 38345 |
;; |
| 38346 |
esac |
| 38347 |
fi |
| 38348 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38349 |
|
| 38350 |
;; |
| 38351 |
esac |
| 38352 |
fi |
| 38353 |
{ test_type_fd_setsize=; unset test_type_fd_setsize;} |
| 38354 |
{ test_fd_setsize=; unset test_fd_setsize;} |
| 38355 |
{ base_min_fd_setsize=; unset base_min_fd_setsize;} |
| 38356 |
{ base_fd_setsize=; unset base_fd_setsize;} |
| 38357 |
|
| 38358 |
;; |
| 38359 |
esac |
| 38360 |
fi |
| 38361 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_fd_setsize_overridable" >&5 |
| 38362 |
printf "%s\n" "$mhd_cv_fd_setsize_overridable" >&6; } |
| 38363 |
|
| 38364 |
if test "x$mhd_cv_fd_setsize_overridable" = x"no" |
| 38365 |
then : |
| 38366 |
|
| 38367 |
if test "x$os_is_native_w32" = x"yes" |
| 38368 |
then : |
| 38369 |
as_fn_error $? "Non-overridable FD_SETSIZE detected for native W32 build. FD_SETSIZE is overridable on W32." "$LINENO" 5 |
| 38370 |
|
| 38371 |
fi |
| 38372 |
if test "x${mhd_cv_fd_setsize_value}" != "xunknown" && test "x${mhd_cv_sys_fd_setsize_value}" != "xunknown" && test "${mhd_cv_fd_setsize_value}" -ne "${mhd_cv_sys_fd_setsize_value}" |
| 38373 |
then : |
| 38374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Detected non-overridable FD_SETSIZE, but the toolchain uses FD_SETSIZE (${mhd_cv_fd_setsize_value}) different from system default (${mhd_cv_sys_fd_setsize_value})" >&5 |
| 38375 |
printf "%s\n" "$as_me: WARNING: Detected non-overridable FD_SETSIZE, but the toolchain uses FD_SETSIZE (${mhd_cv_fd_setsize_value}) different from system default (${mhd_cv_sys_fd_setsize_value})" >&2;} |
| 38376 |
|
| 38377 |
fi |
| 38378 |
|
| 38379 |
else case e in #( |
| 38380 |
e) |
| 38381 |
printf "%s\n" "#define HAS_FD_SETSIZE_OVERRIDABLE 1" >>confdefs.h |
| 38382 |
|
| 38383 |
;; |
| 38384 |
esac |
| 38385 |
fi |
| 38386 |
|
| 38387 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether socket value is a signed type" >&5 |
| 38388 |
printf %s "checking whether socket value is a signed type... " >&6; } |
| 38389 |
if test ${mhd_cv_socket_signed+y} |
| 38390 |
then : |
| 38391 |
printf %s "(cached) " >&6 |
| 38392 |
else case e in #( |
| 38393 |
e) |
| 38394 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38395 |
/* end confdefs.h. */ |
| 38396 |
|
| 38397 |
#ifdef HAVE_SYS_TIME_H |
| 38398 |
#include <sys/time.h> |
| 38399 |
#endif |
| 38400 |
#ifdef HAVE_SYS_TYPES_H |
| 38401 |
#include <sys/types.h> |
| 38402 |
#endif |
| 38403 |
#ifdef HAVE_UNISTD_H |
| 38404 |
#include <unistd.h> |
| 38405 |
#endif |
| 38406 |
#ifdef HAVE_SYS_SOCKET_H |
| 38407 |
#include <sys/socket.h> |
| 38408 |
#endif |
| 38409 |
#ifdef HAVE_SOCKLIB_H |
| 38410 |
#include <sockLib.h> |
| 38411 |
#endif |
| 38412 |
#if defined(_WIN32) && ! defined(__CYGWIN__) |
| 38413 |
#include <winsock2.h> |
| 38414 |
#endif |
| 38415 |
#ifdef HAVE_SYS_SELECT_H |
| 38416 |
#include <sys/select.h> |
| 38417 |
#endif |
| 38418 |
|
| 38419 |
/* Keep in sync with microhttpd.h */ |
| 38420 |
#if ! defined(_WIN32) || defined(_SYS_TYPES_FD_SET) |
| 38421 |
typedef int MHD_socket; |
| 38422 |
#else /* defined(_WIN32) && ! defined(_SYS_TYPES_FD_SET) */ |
| 38423 |
typedef SOCKET MHD_socket; |
| 38424 |
#endif /* defined(_WIN32) && ! defined(_SYS_TYPES_FD_SET) */ |
| 38425 |
|
| 38426 |
int main(void) |
| 38427 |
{ |
| 38428 |
int test_arr[2 - 5*(!!(0 < ((MHD_socket)-1)))]; |
| 38429 |
test_arr[1] = 0; |
| 38430 |
return test_arr[1]; |
| 38431 |
} |
| 38432 |
|
| 38433 |
|
| 38434 |
|
| 38435 |
_ACEOF |
| 38436 |
if ac_fn_c_try_compile "$LINENO" |
| 38437 |
then : |
| 38438 |
mhd_cv_socket_signed="yes" |
| 38439 |
else case e in #( |
| 38440 |
e) mhd_cv_socket_signed="no" |
| 38441 |
;; |
| 38442 |
esac |
| 38443 |
fi |
| 38444 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38445 |
|
| 38446 |
;; |
| 38447 |
esac |
| 38448 |
fi |
| 38449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_socket_signed" >&5 |
| 38450 |
printf "%s\n" "$mhd_cv_socket_signed" >&6; } |
| 38451 |
if test "x$mhd_cv_socket_signed" = x"yes" |
| 38452 |
then : |
| 38453 |
|
| 38454 |
printf "%s\n" "#define HAS_SIGNED_SOCKET 1" >>confdefs.h |
| 38455 |
|
| 38456 |
|
| 38457 |
fi |
| 38458 |
|
| 38459 |
|
| 38460 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 38461 |
if test ${mhd_cv_have_func_writev+y} |
| 38462 |
then : |
| 38463 |
|
| 38464 |
else case e in #( |
| 38465 |
e) ac_fn_check_decl "$LINENO" "writev" "ac_cv_have_decl_writev" "#include <sys/uio.h> |
| 38466 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 38467 |
if test "x$ac_cv_have_decl_writev" = xyes |
| 38468 |
then : |
| 38469 |
|
| 38470 |
else case e in #( |
| 38471 |
e) mhd_cv_have_func_writev="no" ;; |
| 38472 |
esac |
| 38473 |
fi ;; |
| 38474 |
esac |
| 38475 |
fi |
| 38476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function writev" >&5 |
| 38477 |
printf %s "checking for function writev... " >&6; } |
| 38478 |
if test ${mhd_cv_have_func_writev+y} |
| 38479 |
then : |
| 38480 |
printf %s "(cached) " >&6 |
| 38481 |
else case e in #( |
| 38482 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38483 |
/* end confdefs.h. */ |
| 38484 |
|
| 38485 |
#include <sys/uio.h> |
| 38486 |
|
| 38487 |
int main(void) |
| 38488 |
{ |
| 38489 |
|
| 38490 |
|
| 38491 |
struct iovec iov[2]; |
| 38492 |
char some_str[4] = "OK\n"; |
| 38493 |
iov[0].iov_base = (void *) some_str; |
| 38494 |
iov[0].iov_len = 3; |
| 38495 |
if (0 > writev(1, iov, 1)) |
| 38496 |
return 2; |
| 38497 |
|
| 38498 |
|
| 38499 |
|
| 38500 |
return 0; |
| 38501 |
} |
| 38502 |
|
| 38503 |
|
| 38504 |
_ACEOF |
| 38505 |
if ac_fn_c_try_link "$LINENO" |
| 38506 |
then : |
| 38507 |
mhd_cv_have_func_writev="yes" |
| 38508 |
else case e in #( |
| 38509 |
e) mhd_cv_have_func_writev="no" ;; |
| 38510 |
esac |
| 38511 |
fi |
| 38512 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 38513 |
conftest$ac_exeext conftest.$ac_ext |
| 38514 |
;; |
| 38515 |
esac |
| 38516 |
fi |
| 38517 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_writev" >&5 |
| 38518 |
printf "%s\n" "$mhd_cv_have_func_writev" >&6; } |
| 38519 |
if test "x$mhd_cv_have_func_writev" = x"yes" |
| 38520 |
then : |
| 38521 |
|
| 38522 |
printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h |
| 38523 |
|
| 38524 |
|
| 38525 |
fi |
| 38526 |
|
| 38527 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 38528 |
|
| 38529 |
|
| 38530 |
# Expansion of MHD_FIND_LIB macro starts here |
| 38531 |
if test ${mhd_cv_find_lib_sendmsg+y} |
| 38532 |
then : |
| 38533 |
|
| 38534 |
else case e in #( |
| 38535 |
e) ac_fn_check_decl "$LINENO" "sendmsg" "ac_cv_have_decl_sendmsg" " |
| 38536 |
#ifdef HAVE_SYS_TYPES_H |
| 38537 |
#include <sys/types.h> |
| 38538 |
#endif |
| 38539 |
#ifdef HAVE_SYS_SOCKET_H |
| 38540 |
#include <sys/socket.h> |
| 38541 |
#endif |
| 38542 |
#ifdef HAVE_SOCKLIB_H |
| 38543 |
#include <sockLib.h> |
| 38544 |
#endif |
| 38545 |
#ifdef HAVE_SYS_UIO_H |
| 38546 |
#include <sys/uio.h> |
| 38547 |
#endif |
| 38548 |
|
| 38549 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 38550 |
if test "x$ac_cv_have_decl_sendmsg" = xyes |
| 38551 |
then : |
| 38552 |
|
| 38553 |
fi ;; |
| 38554 |
esac |
| 38555 |
fi |
| 38556 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing function sendmsg" >&5 |
| 38557 |
printf %s "checking for library containing function sendmsg... " >&6; } |
| 38558 |
if test ${mhd_cv_find_lib_sendmsg+y} |
| 38559 |
then : |
| 38560 |
printf %s "(cached) " >&6 |
| 38561 |
else case e in #( |
| 38562 |
e) |
| 38563 |
if test "x$ac_cv_have_decl_sendmsg" = x"yes" |
| 38564 |
then : |
| 38565 |
mhd_find_lib_SAVE_LIBS="$LIBS" |
| 38566 |
mhd_find_lib_CHECK_LIBS="$MHD_LIBDEPS $LIBS" |
| 38567 |
|
| 38568 |
|
| 38569 |
# Reuse the same source file |
| 38570 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38571 |
/* end confdefs.h. */ |
| 38572 |
|
| 38573 |
|
| 38574 |
#ifdef HAVE_SYS_TYPES_H |
| 38575 |
#include <sys/types.h> |
| 38576 |
#endif |
| 38577 |
#ifdef HAVE_SYS_SOCKET_H |
| 38578 |
#include <sys/socket.h> |
| 38579 |
#endif |
| 38580 |
#ifdef HAVE_SOCKLIB_H |
| 38581 |
#include <sockLib.h> |
| 38582 |
#endif |
| 38583 |
#ifdef HAVE_SYS_UIO_H |
| 38584 |
#include <sys/uio.h> |
| 38585 |
#endif |
| 38586 |
|
| 38587 |
|
| 38588 |
int main(void) |
| 38589 |
{ |
| 38590 |
|
| 38591 |
|
| 38592 |
struct msghdr msg; |
| 38593 |
struct iovec iov; |
| 38594 |
unsigned int i; |
| 38595 |
char some_str[5] = "test"; |
| 38596 |
|
| 38597 |
iov.iov_base = (void*)some_str; |
| 38598 |
iov.iov_len = 4; |
| 38599 |
|
| 38600 |
for (i = 0; i < (unsigned int) sizeof(msg); i++) |
| 38601 |
{ |
| 38602 |
*(((unsigned char *)&msg) + i) = 0; |
| 38603 |
} |
| 38604 |
msg.msg_iov = &iov; |
| 38605 |
msg.msg_iovlen = 1; |
| 38606 |
|
| 38607 |
if (0 > sendmsg(1, &msg, 0)) |
| 38608 |
return -1; |
| 38609 |
|
| 38610 |
|
| 38611 |
return 0; |
| 38612 |
} |
| 38613 |
|
| 38614 |
|
| 38615 |
|
| 38616 |
_ACEOF |
| 38617 |
for mhd_find_lib_LIB in '' socket |
| 38618 |
do |
| 38619 |
if test -z "${mhd_find_lib_LIB}" |
| 38620 |
then : |
| 38621 |
LIBS="${mhd_find_lib_CHECK_LIBS}" |
| 38622 |
else case e in #( |
| 38623 |
e) LIBS="-l${mhd_find_lib_LIB} ${mhd_find_lib_CHECK_LIBS}" |
| 38624 |
;; |
| 38625 |
esac |
| 38626 |
fi |
| 38627 |
if ac_fn_c_try_link "$LINENO" |
| 38628 |
then : |
| 38629 |
|
| 38630 |
if test -z "${mhd_find_lib_LIB}" |
| 38631 |
then : |
| 38632 |
mhd_cv_find_lib_sendmsg="none required" |
| 38633 |
else case e in #( |
| 38634 |
e) mhd_cv_find_lib_sendmsg="-l${mhd_find_lib_LIB}" |
| 38635 |
;; |
| 38636 |
esac |
| 38637 |
fi |
| 38638 |
|
| 38639 |
|
| 38640 |
fi |
| 38641 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 38642 |
conftest$ac_exeext |
| 38643 |
if test ${mhd_cv_find_lib_sendmsg+y} |
| 38644 |
then : |
| 38645 |
break |
| 38646 |
fi |
| 38647 |
done |
| 38648 |
{ mhd_find_lib_LIB=; unset mhd_find_lib_LIB;} |
| 38649 |
rm -f conftest.$ac_ext |
| 38650 |
LIBS="${mhd_find_lib_SAVE_LIBS}" |
| 38651 |
{ mhd_find_lib_SAVE_LIBS=; unset mhd_find_lib_SAVE_LIBS;} |
| 38652 |
|
| 38653 |
|
| 38654 |
fi |
| 38655 |
if test ${mhd_cv_find_lib_sendmsg+y} |
| 38656 |
then : |
| 38657 |
: |
| 38658 |
else case e in #( |
| 38659 |
e) mhd_cv_find_lib_sendmsg="no" ;; |
| 38660 |
esac |
| 38661 |
fi |
| 38662 |
|
| 38663 |
;; |
| 38664 |
esac |
| 38665 |
fi |
| 38666 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_find_lib_sendmsg" >&5 |
| 38667 |
printf "%s\n" "$mhd_cv_find_lib_sendmsg" >&6; } |
| 38668 |
if test "x${mhd_cv_find_lib_sendmsg}" != "xno" |
| 38669 |
then : |
| 38670 |
if test "x$mhd_cv_find_lib_sendmsg" = x"none required" |
| 38671 |
then : |
| 38672 |
: |
| 38673 |
else case e in #( |
| 38674 |
e) |
| 38675 |
if test -z "$MHD_LIBDEPS" |
| 38676 |
then : |
| 38677 |
MHD_LIBDEPS="${mhd_cv_find_lib_sendmsg}" |
| 38678 |
else case e in #( |
| 38679 |
e) MHD_LIBDEPS="${mhd_cv_find_lib_sendmsg} $MHD_LIBDEPS" ;; |
| 38680 |
esac |
| 38681 |
fi |
| 38682 |
|
| 38683 |
;; |
| 38684 |
esac |
| 38685 |
fi |
| 38686 |
|
| 38687 |
|
| 38688 |
printf "%s\n" "#define HAVE_SENDMSG 1" >>confdefs.h |
| 38689 |
|
| 38690 |
if test "x$mhd_cv_find_lib_sendmsg" = x"none required" |
| 38691 |
then : |
| 38692 |
|
| 38693 |
else case e in #( |
| 38694 |
e) |
| 38695 |
MHD_LIBDEPS_PKGCFG="${mhd_cv_find_lib_sendmsg} $MHD_LIBDEPS_PKGCFG" |
| 38696 |
|
| 38697 |
;; |
| 38698 |
esac |
| 38699 |
fi |
| 38700 |
|
| 38701 |
|
| 38702 |
fi |
| 38703 |
# Expansion of _MHD_FIND_LIB_BODY macro ends here |
| 38704 |
|
| 38705 |
|
| 38706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 38707 |
printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 38708 |
if test ${ac_cv_c_bigendian+y} |
| 38709 |
then : |
| 38710 |
printf %s "(cached) " >&6 |
| 38711 |
else case e in #( |
| 38712 |
e) ac_cv_c_bigendian=unknown |
| 38713 |
# See if we're dealing with a universal compiler. |
| 38714 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38715 |
/* end confdefs.h. */ |
| 38716 |
#ifndef __APPLE_CC__ |
| 38717 |
not a universal capable compiler |
| 38718 |
#endif |
| 38719 |
typedef int dummy; |
| 38720 |
|
| 38721 |
_ACEOF |
| 38722 |
if ac_fn_c_try_compile "$LINENO" |
| 38723 |
then : |
| 38724 |
|
| 38725 |
# Check for potential -arch flags. It is not universal unless |
| 38726 |
# there are at least two -arch flags with different values. |
| 38727 |
ac_arch= |
| 38728 |
ac_prev= |
| 38729 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 38730 |
if test -n "$ac_prev"; then |
| 38731 |
case $ac_word in |
| 38732 |
i?86 | x86_64 | ppc | ppc64) |
| 38733 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 38734 |
ac_arch=$ac_word |
| 38735 |
else |
| 38736 |
ac_cv_c_bigendian=universal |
| 38737 |
break |
| 38738 |
fi |
| 38739 |
;; |
| 38740 |
esac |
| 38741 |
ac_prev= |
| 38742 |
elif test "x$ac_word" = "x-arch"; then |
| 38743 |
ac_prev=arch |
| 38744 |
fi |
| 38745 |
done |
| 38746 |
fi |
| 38747 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38748 |
if test $ac_cv_c_bigendian = unknown; then |
| 38749 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 38750 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38751 |
/* end confdefs.h. */ |
| 38752 |
#include <sys/types.h> |
| 38753 |
#include <sys/param.h> |
| 38754 |
|
| 38755 |
int |
| 38756 |
main (void) |
| 38757 |
{ |
| 38758 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\ |
| 38759 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\ |
| 38760 |
&& LITTLE_ENDIAN) |
| 38761 |
bogus endian macros |
| 38762 |
#endif |
| 38763 |
|
| 38764 |
; |
| 38765 |
return 0; |
| 38766 |
} |
| 38767 |
_ACEOF |
| 38768 |
if ac_fn_c_try_compile "$LINENO" |
| 38769 |
then : |
| 38770 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 38771 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38772 |
/* end confdefs.h. */ |
| 38773 |
#include <sys/types.h> |
| 38774 |
#include <sys/param.h> |
| 38775 |
|
| 38776 |
int |
| 38777 |
main (void) |
| 38778 |
{ |
| 38779 |
#if BYTE_ORDER != BIG_ENDIAN |
| 38780 |
not big endian |
| 38781 |
#endif |
| 38782 |
|
| 38783 |
; |
| 38784 |
return 0; |
| 38785 |
} |
| 38786 |
_ACEOF |
| 38787 |
if ac_fn_c_try_compile "$LINENO" |
| 38788 |
then : |
| 38789 |
ac_cv_c_bigendian=yes |
| 38790 |
else case e in #( |
| 38791 |
e) ac_cv_c_bigendian=no ;; |
| 38792 |
esac |
| 38793 |
fi |
| 38794 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38795 |
fi |
| 38796 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38797 |
fi |
| 38798 |
if test $ac_cv_c_bigendian = unknown; then |
| 38799 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 38800 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38801 |
/* end confdefs.h. */ |
| 38802 |
#include <limits.h> |
| 38803 |
|
| 38804 |
int |
| 38805 |
main (void) |
| 38806 |
{ |
| 38807 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 38808 |
bogus endian macros |
| 38809 |
#endif |
| 38810 |
|
| 38811 |
; |
| 38812 |
return 0; |
| 38813 |
} |
| 38814 |
_ACEOF |
| 38815 |
if ac_fn_c_try_compile "$LINENO" |
| 38816 |
then : |
| 38817 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 38818 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38819 |
/* end confdefs.h. */ |
| 38820 |
#include <limits.h> |
| 38821 |
|
| 38822 |
int |
| 38823 |
main (void) |
| 38824 |
{ |
| 38825 |
#ifndef _BIG_ENDIAN |
| 38826 |
not big endian |
| 38827 |
#endif |
| 38828 |
|
| 38829 |
; |
| 38830 |
return 0; |
| 38831 |
} |
| 38832 |
_ACEOF |
| 38833 |
if ac_fn_c_try_compile "$LINENO" |
| 38834 |
then : |
| 38835 |
ac_cv_c_bigendian=yes |
| 38836 |
else case e in #( |
| 38837 |
e) ac_cv_c_bigendian=no ;; |
| 38838 |
esac |
| 38839 |
fi |
| 38840 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38841 |
fi |
| 38842 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 38843 |
fi |
| 38844 |
if test $ac_cv_c_bigendian = unknown; then |
| 38845 |
# Compile a test program. |
| 38846 |
if test "$cross_compiling" = yes |
| 38847 |
then : |
| 38848 |
# Try to guess by grepping values from an object file. |
| 38849 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38850 |
/* end confdefs.h. */ |
| 38851 |
unsigned short int ascii_mm[] = |
| 38852 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 38853 |
unsigned short int ascii_ii[] = |
| 38854 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 38855 |
int use_ascii (int i) { |
| 38856 |
return ascii_mm[i] + ascii_ii[i]; |
| 38857 |
} |
| 38858 |
unsigned short int ebcdic_ii[] = |
| 38859 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 38860 |
unsigned short int ebcdic_mm[] = |
| 38861 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 38862 |
int use_ebcdic (int i) { |
| 38863 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 38864 |
} |
| 38865 |
int |
| 38866 |
main (int argc, char **argv) |
| 38867 |
{ |
| 38868 |
/* Intimidate the compiler so that it does not |
| 38869 |
optimize the arrays away. */ |
| 38870 |
char *p = argv[0]; |
| 38871 |
ascii_mm[1] = *p++; ebcdic_mm[1] = *p++; |
| 38872 |
ascii_ii[1] = *p++; ebcdic_ii[1] = *p++; |
| 38873 |
return use_ascii (argc) == use_ebcdic (*p); |
| 38874 |
} |
| 38875 |
_ACEOF |
| 38876 |
if ac_fn_c_try_link "$LINENO" |
| 38877 |
then : |
| 38878 |
if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then |
| 38879 |
ac_cv_c_bigendian=yes |
| 38880 |
fi |
| 38881 |
if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then |
| 38882 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 38883 |
ac_cv_c_bigendian=no |
| 38884 |
else |
| 38885 |
# finding both strings is unlikely to happen, but who knows? |
| 38886 |
ac_cv_c_bigendian=unknown |
| 38887 |
fi |
| 38888 |
fi |
| 38889 |
fi |
| 38890 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 38891 |
conftest$ac_exeext conftest.$ac_ext |
| 38892 |
else case e in #( |
| 38893 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38894 |
/* end confdefs.h. */ |
| 38895 |
$ac_includes_default |
| 38896 |
int |
| 38897 |
main (void) |
| 38898 |
{ |
| 38899 |
|
| 38900 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 38901 |
union |
| 38902 |
{ |
| 38903 |
long int l; |
| 38904 |
char c[sizeof (long int)]; |
| 38905 |
} u; |
| 38906 |
u.l = 1; |
| 38907 |
return u.c[sizeof (long int) - 1] == 1; |
| 38908 |
|
| 38909 |
; |
| 38910 |
return 0; |
| 38911 |
} |
| 38912 |
_ACEOF |
| 38913 |
if ac_fn_c_try_run "$LINENO" |
| 38914 |
then : |
| 38915 |
ac_cv_c_bigendian=no |
| 38916 |
else case e in #( |
| 38917 |
e) ac_cv_c_bigendian=yes ;; |
| 38918 |
esac |
| 38919 |
fi |
| 38920 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 38921 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 38922 |
esac |
| 38923 |
fi |
| 38924 |
|
| 38925 |
fi ;; |
| 38926 |
esac |
| 38927 |
fi |
| 38928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 38929 |
printf "%s\n" "$ac_cv_c_bigendian" >&6; } |
| 38930 |
case $ac_cv_c_bigendian in #( |
| 38931 |
yes) |
| 38932 |
printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 38933 |
;; #( |
| 38934 |
no) |
| 38935 |
;; #( |
| 38936 |
universal) |
| 38937 |
|
| 38938 |
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 38939 |
|
| 38940 |
;; #( |
| 38941 |
*) |
| 38942 |
as_fn_error $? "unknown endianness |
| 38943 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 38944 |
esac |
| 38945 |
|
| 38946 |
|
| 38947 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5 |
| 38948 |
printf %s "checking for variable-length arrays... " >&6; } |
| 38949 |
if test ${ac_cv_c_vararrays+y} |
| 38950 |
then : |
| 38951 |
printf %s "(cached) " >&6 |
| 38952 |
else case e in #( |
| 38953 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38954 |
/* end confdefs.h. */ |
| 38955 |
#ifndef __STDC_NO_VLA__ |
| 38956 |
#error __STDC_NO_VLA__ not defined |
| 38957 |
#endif |
| 38958 |
|
| 38959 |
_ACEOF |
| 38960 |
if ac_fn_c_try_compile "$LINENO" |
| 38961 |
then : |
| 38962 |
ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined' |
| 38963 |
else case e in #( |
| 38964 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 38965 |
/* end confdefs.h. */ |
| 38966 |
/* Test for VLA support. This test is partly inspired |
| 38967 |
from examples in the C standard. Use at least two VLA |
| 38968 |
functions to detect the GCC 3.4.3 bug described in: |
| 38969 |
https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html |
| 38970 |
*/ |
| 38971 |
#ifdef __STDC_NO_VLA__ |
| 38972 |
syntax error; |
| 38973 |
#else |
| 38974 |
extern int n; |
| 38975 |
int B[100]; |
| 38976 |
int fvla (int m, int C[m][m]); |
| 38977 |
|
| 38978 |
int |
| 38979 |
simple (int count, int all[static count]) |
| 38980 |
{ |
| 38981 |
return all[count - 1]; |
| 38982 |
} |
| 38983 |
|
| 38984 |
int |
| 38985 |
fvla (int m, int C[m][m]) |
| 38986 |
{ |
| 38987 |
typedef int VLA[m][m]; |
| 38988 |
VLA x; |
| 38989 |
int D[m]; |
| 38990 |
static int (*q)[m] = &B; |
| 38991 |
int (*s)[n] = q; |
| 38992 |
return C && &x[0][0] == &D[0] && &D[0] == s[0]; |
| 38993 |
} |
| 38994 |
#endif |
| 38995 |
|
| 38996 |
int |
| 38997 |
main (void) |
| 38998 |
{ |
| 38999 |
|
| 39000 |
; |
| 39001 |
return 0; |
| 39002 |
} |
| 39003 |
_ACEOF |
| 39004 |
if ac_fn_c_try_compile "$LINENO" |
| 39005 |
then : |
| 39006 |
ac_cv_c_vararrays=yes |
| 39007 |
else case e in #( |
| 39008 |
e) ac_cv_c_vararrays=no ;; |
| 39009 |
esac |
| 39010 |
fi |
| 39011 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 39012 |
esac |
| 39013 |
fi |
| 39014 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 39015 |
esac |
| 39016 |
fi |
| 39017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5 |
| 39018 |
printf "%s\n" "$ac_cv_c_vararrays" >&6; } |
| 39019 |
if test "$ac_cv_c_vararrays" = yes; then |
| 39020 |
|
| 39021 |
printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h |
| 39022 |
|
| 39023 |
elif test "$ac_cv_c_vararrays" = no; then |
| 39024 |
|
| 39025 |
printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h |
| 39026 |
|
| 39027 |
fi |
| 39028 |
|
| 39029 |
|
| 39030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __func__ magic-macro is available" >&5 |
| 39031 |
printf %s "checking whether __func__ magic-macro is available... " >&6; } |
| 39032 |
if test ${mhd_cv_macro___func___avail+y} |
| 39033 |
then : |
| 39034 |
printf %s "(cached) " >&6 |
| 39035 |
else case e in #( |
| 39036 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39037 |
/* end confdefs.h. */ |
| 39038 |
|
| 39039 |
int |
| 39040 |
main (void) |
| 39041 |
{ |
| 39042 |
const char *funcname = __func__ ; if (!funcname) return 1; |
| 39043 |
; |
| 39044 |
return 0; |
| 39045 |
} |
| 39046 |
_ACEOF |
| 39047 |
if ac_fn_c_try_link "$LINENO" |
| 39048 |
then : |
| 39049 |
mhd_cv_macro___func___avail="yes" |
| 39050 |
else case e in #( |
| 39051 |
e) mhd_cv_macro___func___avail="no" ;; |
| 39052 |
esac |
| 39053 |
fi |
| 39054 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39055 |
conftest$ac_exeext conftest.$ac_ext |
| 39056 |
;; |
| 39057 |
esac |
| 39058 |
fi |
| 39059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___func___avail" >&5 |
| 39060 |
printf "%s\n" "$mhd_cv_macro___func___avail" >&6; } |
| 39061 |
if test "x$mhd_cv_macro___func___avail" = x"yes" |
| 39062 |
then : |
| 39063 |
|
| 39064 |
printf "%s\n" "#define HAVE___FUNC__ 1" >>confdefs.h |
| 39065 |
|
| 39066 |
else case e in #( |
| 39067 |
e) |
| 39068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __FUNCTION__ magic-macro is available" >&5 |
| 39069 |
printf %s "checking whether __FUNCTION__ magic-macro is available... " >&6; } |
| 39070 |
if test ${mhd_cv_macro___function___avail+y} |
| 39071 |
then : |
| 39072 |
printf %s "(cached) " >&6 |
| 39073 |
else case e in #( |
| 39074 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39075 |
/* end confdefs.h. */ |
| 39076 |
|
| 39077 |
int |
| 39078 |
main (void) |
| 39079 |
{ |
| 39080 |
const char *funcname = __FUNCTION__ ; if (!funcname) return 1; |
| 39081 |
; |
| 39082 |
return 0; |
| 39083 |
} |
| 39084 |
_ACEOF |
| 39085 |
if ac_fn_c_try_link "$LINENO" |
| 39086 |
then : |
| 39087 |
mhd_cv_macro___function___avail="yes" |
| 39088 |
else case e in #( |
| 39089 |
e) mhd_cv_macro___function___avail="no" ;; |
| 39090 |
esac |
| 39091 |
fi |
| 39092 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39093 |
conftest$ac_exeext conftest.$ac_ext |
| 39094 |
;; |
| 39095 |
esac |
| 39096 |
fi |
| 39097 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___function___avail" >&5 |
| 39098 |
printf "%s\n" "$mhd_cv_macro___function___avail" >&6; } |
| 39099 |
if test "x$mhd_cv_macro___function___avail" = x"yes" |
| 39100 |
then : |
| 39101 |
|
| 39102 |
printf "%s\n" "#define HAVE___FUNCTION__ 1" >>confdefs.h |
| 39103 |
|
| 39104 |
else case e in #( |
| 39105 |
e) |
| 39106 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __PRETTY_FUNCTION__ magic-macro is available" >&5 |
| 39107 |
printf %s "checking whether __PRETTY_FUNCTION__ magic-macro is available... " >&6; } |
| 39108 |
if test ${mhd_cv_macro___pretty_function___avail+y} |
| 39109 |
then : |
| 39110 |
printf %s "(cached) " >&6 |
| 39111 |
else case e in #( |
| 39112 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39113 |
/* end confdefs.h. */ |
| 39114 |
|
| 39115 |
int |
| 39116 |
main (void) |
| 39117 |
{ |
| 39118 |
const char *funcname = __PRETTY_FUNCTION__ ; if (!funcname) return 1; |
| 39119 |
; |
| 39120 |
return 0; |
| 39121 |
} |
| 39122 |
_ACEOF |
| 39123 |
if ac_fn_c_try_link "$LINENO" |
| 39124 |
then : |
| 39125 |
mhd_cv_macro___pretty_function___avail="yes" |
| 39126 |
else case e in #( |
| 39127 |
e) mhd_cv_macro___pretty_function___avail="no" ;; |
| 39128 |
esac |
| 39129 |
fi |
| 39130 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39131 |
conftest$ac_exeext conftest.$ac_ext |
| 39132 |
;; |
| 39133 |
esac |
| 39134 |
fi |
| 39135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro___pretty_function___avail" >&5 |
| 39136 |
printf "%s\n" "$mhd_cv_macro___pretty_function___avail" >&6; } |
| 39137 |
if test "x$mhd_cv_macro___pretty_function___avail" = x"yes" |
| 39138 |
then : |
| 39139 |
|
| 39140 |
printf "%s\n" "#define HAVE___PRETTY_FUNCTION__ 1" >>confdefs.h |
| 39141 |
|
| 39142 |
fi |
| 39143 |
|
| 39144 |
;; |
| 39145 |
esac |
| 39146 |
fi |
| 39147 |
|
| 39148 |
;; |
| 39149 |
esac |
| 39150 |
fi |
| 39151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __builtin_bswap32() is available" >&5 |
| 39152 |
printf %s "checking whether __builtin_bswap32() is available... " >&6; } |
| 39153 |
if test ${mhd_cv_func___builtin_bswap32_avail+y} |
| 39154 |
then : |
| 39155 |
printf %s "(cached) " >&6 |
| 39156 |
else case e in #( |
| 39157 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39158 |
/* end confdefs.h. */ |
| 39159 |
#include<stdint.h> |
| 39160 |
int |
| 39161 |
main (void) |
| 39162 |
{ |
| 39163 |
uint32_t a = 1; uint32_t b = __builtin_bswap32(a); a = b; (void) a; |
| 39164 |
; |
| 39165 |
return 0; |
| 39166 |
} |
| 39167 |
_ACEOF |
| 39168 |
if ac_fn_c_try_link "$LINENO" |
| 39169 |
then : |
| 39170 |
mhd_cv_func___builtin_bswap32_avail="yes" |
| 39171 |
else case e in #( |
| 39172 |
e) mhd_cv_func___builtin_bswap32_avail="no" ;; |
| 39173 |
esac |
| 39174 |
fi |
| 39175 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39176 |
conftest$ac_exeext conftest.$ac_ext |
| 39177 |
;; |
| 39178 |
esac |
| 39179 |
fi |
| 39180 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func___builtin_bswap32_avail" >&5 |
| 39181 |
printf "%s\n" "$mhd_cv_func___builtin_bswap32_avail" >&6; } |
| 39182 |
if test "x$mhd_cv_func___builtin_bswap32_avail" = "xyes" |
| 39183 |
then : |
| 39184 |
|
| 39185 |
printf "%s\n" "#define MHD_HAVE___BUILTIN_BSWAP32 1" >>confdefs.h |
| 39186 |
|
| 39187 |
fi |
| 39188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __builtin_bswap64() is available" >&5 |
| 39189 |
printf %s "checking whether __builtin_bswap64() is available... " >&6; } |
| 39190 |
if test ${mhd_cv_func___builtin_bswap64_avail+y} |
| 39191 |
then : |
| 39192 |
printf %s "(cached) " >&6 |
| 39193 |
else case e in #( |
| 39194 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39195 |
/* end confdefs.h. */ |
| 39196 |
#include<stdint.h> |
| 39197 |
int |
| 39198 |
main (void) |
| 39199 |
{ |
| 39200 |
uint64_t a = 1; uint64_t b = __builtin_bswap64(a); a = b; (void) a; |
| 39201 |
; |
| 39202 |
return 0; |
| 39203 |
} |
| 39204 |
_ACEOF |
| 39205 |
if ac_fn_c_try_link "$LINENO" |
| 39206 |
then : |
| 39207 |
mhd_cv_func___builtin_bswap64_avail="yes" |
| 39208 |
else case e in #( |
| 39209 |
e) mhd_cv_func___builtin_bswap64_avail="no" ;; |
| 39210 |
esac |
| 39211 |
fi |
| 39212 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39213 |
conftest$ac_exeext conftest.$ac_ext |
| 39214 |
;; |
| 39215 |
esac |
| 39216 |
fi |
| 39217 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func___builtin_bswap64_avail" >&5 |
| 39218 |
printf "%s\n" "$mhd_cv_func___builtin_bswap64_avail" >&6; } |
| 39219 |
if test "x$mhd_cv_func___builtin_bswap64_avail" = "xyes" |
| 39220 |
then : |
| 39221 |
|
| 39222 |
printf "%s\n" "#define MHD_HAVE___BUILTIN_BSWAP64 1" >>confdefs.h |
| 39223 |
|
| 39224 |
fi |
| 39225 |
|
| 39226 |
# Extract the first word of "curl", so it can be a program name with args. |
| 39227 |
set dummy curl; ac_word=$2 |
| 39228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 39229 |
printf %s "checking for $ac_word... " >&6; } |
| 39230 |
if test ${ac_cv_prog_HAVE_CURL_BINARY+y} |
| 39231 |
then : |
| 39232 |
printf %s "(cached) " >&6 |
| 39233 |
else case e in #( |
| 39234 |
e) if test -n "$HAVE_CURL_BINARY"; then |
| 39235 |
ac_cv_prog_HAVE_CURL_BINARY="$HAVE_CURL_BINARY" # Let the user override the test. |
| 39236 |
else |
| 39237 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 39238 |
for as_dir in $PATH |
| 39239 |
do |
| 39240 |
IFS=$as_save_IFS |
| 39241 |
case $as_dir in #((( |
| 39242 |
'') as_dir=./ ;; |
| 39243 |
*/) ;; |
| 39244 |
*) as_dir=$as_dir/ ;; |
| 39245 |
esac |
| 39246 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 39247 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 39248 |
ac_cv_prog_HAVE_CURL_BINARY="yes" |
| 39249 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 39250 |
break 2 |
| 39251 |
fi |
| 39252 |
done |
| 39253 |
done |
| 39254 |
IFS=$as_save_IFS |
| 39255 |
|
| 39256 |
test -z "$ac_cv_prog_HAVE_CURL_BINARY" && ac_cv_prog_HAVE_CURL_BINARY="no" |
| 39257 |
fi ;; |
| 39258 |
esac |
| 39259 |
fi |
| 39260 |
HAVE_CURL_BINARY=$ac_cv_prog_HAVE_CURL_BINARY |
| 39261 |
if test -n "$HAVE_CURL_BINARY"; then |
| 39262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_CURL_BINARY" >&5 |
| 39263 |
printf "%s\n" "$HAVE_CURL_BINARY" >&6; } |
| 39264 |
else |
| 39265 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39266 |
printf "%s\n" "no" >&6; } |
| 39267 |
fi |
| 39268 |
|
| 39269 |
|
| 39270 |
if test "x$HAVE_CURL_BINARY" = "xyes"; then |
| 39271 |
HAVE_CURL_BINARY_TRUE= |
| 39272 |
HAVE_CURL_BINARY_FALSE='#' |
| 39273 |
else |
| 39274 |
HAVE_CURL_BINARY_TRUE='#' |
| 39275 |
HAVE_CURL_BINARY_FALSE= |
| 39276 |
fi |
| 39277 |
|
| 39278 |
# Extract the first word of "makeinfo", so it can be a program name with args. |
| 39279 |
set dummy makeinfo; ac_word=$2 |
| 39280 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 39281 |
printf %s "checking for $ac_word... " >&6; } |
| 39282 |
if test ${ac_cv_prog_HAVE_MAKEINFO_BINARY+y} |
| 39283 |
then : |
| 39284 |
printf %s "(cached) " >&6 |
| 39285 |
else case e in #( |
| 39286 |
e) if test -n "$HAVE_MAKEINFO_BINARY"; then |
| 39287 |
ac_cv_prog_HAVE_MAKEINFO_BINARY="$HAVE_MAKEINFO_BINARY" # Let the user override the test. |
| 39288 |
else |
| 39289 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 39290 |
for as_dir in $PATH |
| 39291 |
do |
| 39292 |
IFS=$as_save_IFS |
| 39293 |
case $as_dir in #((( |
| 39294 |
'') as_dir=./ ;; |
| 39295 |
*/) ;; |
| 39296 |
*) as_dir=$as_dir/ ;; |
| 39297 |
esac |
| 39298 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 39299 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 39300 |
ac_cv_prog_HAVE_MAKEINFO_BINARY="yes" |
| 39301 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 39302 |
break 2 |
| 39303 |
fi |
| 39304 |
done |
| 39305 |
done |
| 39306 |
IFS=$as_save_IFS |
| 39307 |
|
| 39308 |
test -z "$ac_cv_prog_HAVE_MAKEINFO_BINARY" && ac_cv_prog_HAVE_MAKEINFO_BINARY="no" |
| 39309 |
fi ;; |
| 39310 |
esac |
| 39311 |
fi |
| 39312 |
HAVE_MAKEINFO_BINARY=$ac_cv_prog_HAVE_MAKEINFO_BINARY |
| 39313 |
if test -n "$HAVE_MAKEINFO_BINARY"; then |
| 39314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_MAKEINFO_BINARY" >&5 |
| 39315 |
printf "%s\n" "$HAVE_MAKEINFO_BINARY" >&6; } |
| 39316 |
else |
| 39317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 39318 |
printf "%s\n" "no" >&6; } |
| 39319 |
fi |
| 39320 |
|
| 39321 |
|
| 39322 |
if test "x$HAVE_MAKEINFO_BINARY" = "xyes"; then |
| 39323 |
HAVE_MAKEINFO_BINARY_TRUE= |
| 39324 |
HAVE_MAKEINFO_BINARY_FALSE='#' |
| 39325 |
else |
| 39326 |
HAVE_MAKEINFO_BINARY_TRUE='#' |
| 39327 |
HAVE_MAKEINFO_BINARY_FALSE= |
| 39328 |
fi |
| 39329 |
|
| 39330 |
if test "x$os_is_native_w32" = "xyes" && test "x$enable_static" = "xyes"; then |
| 39331 |
W32_STATIC_LIB_TRUE= |
| 39332 |
W32_STATIC_LIB_FALSE='#' |
| 39333 |
else |
| 39334 |
W32_STATIC_LIB_TRUE='#' |
| 39335 |
W32_STATIC_LIB_FALSE= |
| 39336 |
fi |
| 39337 |
|
| 39338 |
|
| 39339 |
|
| 39340 |
# Check whether --enable-doc was given. |
| 39341 |
if test ${enable_doc+y} |
| 39342 |
then : |
| 39343 |
enableval=$enable_doc; |
| 39344 |
else case e in #( |
| 39345 |
e) enable_doc=yes ;; |
| 39346 |
esac |
| 39347 |
fi |
| 39348 |
|
| 39349 |
test "x$enable_doc" = "xno" || enable_doc=yes |
| 39350 |
if test "x$enable_doc" = "xyes"; then |
| 39351 |
BUILD_DOC_TRUE= |
| 39352 |
BUILD_DOC_FALSE='#' |
| 39353 |
else |
| 39354 |
BUILD_DOC_TRUE='#' |
| 39355 |
BUILD_DOC_FALSE= |
| 39356 |
fi |
| 39357 |
|
| 39358 |
|
| 39359 |
# Check whether --enable-examples was given. |
| 39360 |
if test ${enable_examples+y} |
| 39361 |
then : |
| 39362 |
enableval=$enable_examples; |
| 39363 |
else case e in #( |
| 39364 |
e) enable_examples=yes ;; |
| 39365 |
esac |
| 39366 |
fi |
| 39367 |
|
| 39368 |
test "x$enable_examples" = "xno" || enable_examples=yes |
| 39369 |
if test "x$enable_examples" = "xyes"; then |
| 39370 |
BUILD_EXAMPLES_TRUE= |
| 39371 |
BUILD_EXAMPLES_FALSE='#' |
| 39372 |
else |
| 39373 |
BUILD_EXAMPLES_TRUE='#' |
| 39374 |
BUILD_EXAMPLES_FALSE= |
| 39375 |
fi |
| 39376 |
|
| 39377 |
|
| 39378 |
# Check whether --enable-tools was given. |
| 39379 |
if test ${enable_tools+y} |
| 39380 |
then : |
| 39381 |
enableval=$enable_tools; |
| 39382 |
else case e in #( |
| 39383 |
e) enable_tools=yes ;; |
| 39384 |
esac |
| 39385 |
fi |
| 39386 |
|
| 39387 |
test "x$enable_tools" = "xyes" || enable_tools=no |
| 39388 |
if test "x$enable_tools" = "xyes"; then |
| 39389 |
BUILD_TOOLS_TRUE= |
| 39390 |
BUILD_TOOLS_FALSE='#' |
| 39391 |
else |
| 39392 |
BUILD_TOOLS_TRUE='#' |
| 39393 |
BUILD_TOOLS_FALSE= |
| 39394 |
fi |
| 39395 |
|
| 39396 |
|
| 39397 |
# Check whether --enable-heavy-tests was given. |
| 39398 |
if test ${enable_heavy_tests+y} |
| 39399 |
then : |
| 39400 |
enableval=$enable_heavy_tests; |
| 39401 |
else case e in #( |
| 39402 |
e) enable_heavy_tests=no ;; |
| 39403 |
esac |
| 39404 |
fi |
| 39405 |
|
| 39406 |
use_heavy_tests="no" |
| 39407 |
use_vheavy_tests="no" |
| 39408 |
use_heavy_tests_MSG="no" |
| 39409 |
case ${enable_heavy_tests} in #( |
| 39410 |
yes|basic) : |
| 39411 |
|
| 39412 |
enable_heavy_tests="basic" |
| 39413 |
use_heavy_tests="yes" |
| 39414 |
use_vheavy_tests="no" |
| 39415 |
use_heavy_tests_MSG="yes, basic heavy tests (a dedicated host is recommended)" |
| 39416 |
;; #( |
| 39417 |
all|full) : |
| 39418 |
|
| 39419 |
enable_heavy_tests="full" |
| 39420 |
use_heavy_tests="yes" |
| 39421 |
use_vheavy_tests="yes" |
| 39422 |
use_heavy_tests_MSG="yes, full set of heavy tests (a dedicated host is recommended)" |
| 39423 |
;; #( |
| 39424 |
no) : |
| 39425 |
|
| 39426 |
use_heavy_tests="no" |
| 39427 |
use_vheavy_tests="no" |
| 39428 |
use_heavy_tests_MSG="no" |
| 39429 |
;; #( |
| 39430 |
*) : |
| 39431 |
as_fn_error $? "Unknown parameter value: --enable-heavy-tests=${enable_heavy_tests}" "$LINENO" 5 |
| 39432 |
;; |
| 39433 |
esac |
| 39434 |
if test "x$use_heavy_tests" = x"yes" |
| 39435 |
then : |
| 39436 |
|
| 39437 |
HEAVY_TESTS_NOTPARALLEL='.NOTPARALLEL:' |
| 39438 |
|
| 39439 |
printf "%s\n" "#define _MHD_HEAVY_TESTS 1" >>confdefs.h |
| 39440 |
|
| 39441 |
if test "x$use_vheavy_tests" = x"yes" |
| 39442 |
then : |
| 39443 |
|
| 39444 |
printf "%s\n" "#define _MHD_VHEAVY_TESTS 1" >>confdefs.h |
| 39445 |
|
| 39446 |
|
| 39447 |
fi |
| 39448 |
|
| 39449 |
else case e in #( |
| 39450 |
e) |
| 39451 |
HEAVY_TESTS_NOTPARALLEL=" " |
| 39452 |
|
| 39453 |
;; |
| 39454 |
esac |
| 39455 |
fi |
| 39456 |
if test "x$use_heavy_tests" = "xyes"; then |
| 39457 |
HEAVY_TESTS_TRUE= |
| 39458 |
HEAVY_TESTS_FALSE='#' |
| 39459 |
else |
| 39460 |
HEAVY_TESTS_TRUE='#' |
| 39461 |
HEAVY_TESTS_FALSE= |
| 39462 |
fi |
| 39463 |
|
| 39464 |
if test "x$use_vheavy_tests" = "xyes"; then |
| 39465 |
VHEAVY_TESTS_TRUE= |
| 39466 |
VHEAVY_TESTS_FALSE='#' |
| 39467 |
else |
| 39468 |
VHEAVY_TESTS_TRUE='#' |
| 39469 |
VHEAVY_TESTS_FALSE= |
| 39470 |
fi |
| 39471 |
|
| 39472 |
if false; then |
| 39473 |
TESTS_STRESS_OS_TRUE= |
| 39474 |
TESTS_STRESS_OS_FALSE='#' |
| 39475 |
else |
| 39476 |
TESTS_STRESS_OS_TRUE='#' |
| 39477 |
TESTS_STRESS_OS_FALSE= |
| 39478 |
fi |
| 39479 |
|
| 39480 |
|
| 39481 |
# Check whether --enable-poll was given. |
| 39482 |
if test ${enable_poll+y} |
| 39483 |
then : |
| 39484 |
enableval=$enable_poll; enable_poll=${enableval} |
| 39485 |
else case e in #( |
| 39486 |
e) enable_poll='auto' |
| 39487 |
;; |
| 39488 |
esac |
| 39489 |
fi |
| 39490 |
|
| 39491 |
|
| 39492 |
if test "$enable_poll" != "no" |
| 39493 |
then : |
| 39494 |
|
| 39495 |
if test "$os_is_native_w32" != "yes" |
| 39496 |
then : |
| 39497 |
|
| 39498 |
for ac_header in poll.h |
| 39499 |
do : |
| 39500 |
ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default |
| 39501 |
|
| 39502 |
" |
| 39503 |
if test "x$ac_cv_header_poll_h" = xyes |
| 39504 |
then : |
| 39505 |
printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h |
| 39506 |
|
| 39507 |
|
| 39508 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 39509 |
if test ${mhd_cv_have_func_poll+y} |
| 39510 |
then : |
| 39511 |
|
| 39512 |
else case e in #( |
| 39513 |
e) ac_fn_check_decl "$LINENO" "poll" "ac_cv_have_decl_poll" " |
| 39514 |
#include <poll.h> |
| 39515 |
|
| 39516 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 39517 |
if test "x$ac_cv_have_decl_poll" = xyes |
| 39518 |
then : |
| 39519 |
|
| 39520 |
else case e in #( |
| 39521 |
e) mhd_cv_have_func_poll="no" ;; |
| 39522 |
esac |
| 39523 |
fi ;; |
| 39524 |
esac |
| 39525 |
fi |
| 39526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function poll" >&5 |
| 39527 |
printf %s "checking for function poll... " >&6; } |
| 39528 |
if test ${mhd_cv_have_func_poll+y} |
| 39529 |
then : |
| 39530 |
printf %s "(cached) " >&6 |
| 39531 |
else case e in #( |
| 39532 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39533 |
/* end confdefs.h. */ |
| 39534 |
|
| 39535 |
|
| 39536 |
#include <poll.h> |
| 39537 |
|
| 39538 |
|
| 39539 |
int main(void) |
| 39540 |
{ |
| 39541 |
|
| 39542 |
|
| 39543 |
struct pollfd fds[2]; |
| 39544 |
|
| 39545 |
fds[0].fd = 0; |
| 39546 |
fds[0].events = POLLIN; |
| 39547 |
if (0 > poll(fds, 1, 0)) |
| 39548 |
return 2; |
| 39549 |
|
| 39550 |
|
| 39551 |
return 0; |
| 39552 |
} |
| 39553 |
|
| 39554 |
|
| 39555 |
_ACEOF |
| 39556 |
if ac_fn_c_try_link "$LINENO" |
| 39557 |
then : |
| 39558 |
mhd_cv_have_func_poll="yes" |
| 39559 |
else case e in #( |
| 39560 |
e) mhd_cv_have_func_poll="no" ;; |
| 39561 |
esac |
| 39562 |
fi |
| 39563 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39564 |
conftest$ac_exeext conftest.$ac_ext |
| 39565 |
;; |
| 39566 |
esac |
| 39567 |
fi |
| 39568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_poll" >&5 |
| 39569 |
printf "%s\n" "$mhd_cv_have_func_poll" >&6; } |
| 39570 |
if test "x$mhd_cv_have_func_poll" = x"yes" |
| 39571 |
then : |
| 39572 |
|
| 39573 |
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
| 39574 |
|
| 39575 |
have_poll='yes' |
| 39576 |
|
| 39577 |
else case e in #( |
| 39578 |
e) have_poll='no' |
| 39579 |
;; |
| 39580 |
esac |
| 39581 |
fi |
| 39582 |
|
| 39583 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 39584 |
|
| 39585 |
|
| 39586 |
fi |
| 39587 |
|
| 39588 |
done |
| 39589 |
|
| 39590 |
else case e in #( |
| 39591 |
e) |
| 39592 |
|
| 39593 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 39594 |
if test ${mhd_cv_have_func_WSAPoll+y} |
| 39595 |
then : |
| 39596 |
|
| 39597 |
else case e in #( |
| 39598 |
e) ac_fn_check_decl "$LINENO" "WSAPoll" "ac_cv_have_decl_WSAPoll" " |
| 39599 |
#include <winsock2.h> |
| 39600 |
|
| 39601 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 39602 |
if test "x$ac_cv_have_decl_WSAPoll" = xyes |
| 39603 |
then : |
| 39604 |
|
| 39605 |
else case e in #( |
| 39606 |
e) mhd_cv_have_func_WSAPoll="no" ;; |
| 39607 |
esac |
| 39608 |
fi ;; |
| 39609 |
esac |
| 39610 |
fi |
| 39611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function WSAPoll" >&5 |
| 39612 |
printf %s "checking for function WSAPoll... " >&6; } |
| 39613 |
if test ${mhd_cv_have_func_WSAPoll+y} |
| 39614 |
then : |
| 39615 |
printf %s "(cached) " >&6 |
| 39616 |
else case e in #( |
| 39617 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39618 |
/* end confdefs.h. */ |
| 39619 |
|
| 39620 |
|
| 39621 |
#include <winsock2.h> |
| 39622 |
|
| 39623 |
|
| 39624 |
int main(void) |
| 39625 |
{ |
| 39626 |
|
| 39627 |
|
| 39628 |
WSAPOLLFD fda[2]; |
| 39629 |
WSAPoll(fda, 2, 0); |
| 39630 |
|
| 39631 |
|
| 39632 |
return 0; |
| 39633 |
} |
| 39634 |
|
| 39635 |
|
| 39636 |
_ACEOF |
| 39637 |
if ac_fn_c_try_link "$LINENO" |
| 39638 |
then : |
| 39639 |
mhd_cv_have_func_WSAPoll="yes" |
| 39640 |
else case e in #( |
| 39641 |
e) mhd_cv_have_func_WSAPoll="no" ;; |
| 39642 |
esac |
| 39643 |
fi |
| 39644 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39645 |
conftest$ac_exeext conftest.$ac_ext |
| 39646 |
;; |
| 39647 |
esac |
| 39648 |
fi |
| 39649 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_WSAPoll" >&5 |
| 39650 |
printf "%s\n" "$mhd_cv_have_func_WSAPoll" >&6; } |
| 39651 |
if test "x$mhd_cv_have_func_WSAPoll" = x"yes" |
| 39652 |
then : |
| 39653 |
|
| 39654 |
printf "%s\n" "#define HAVE_WSAPOLL 1" >>confdefs.h |
| 39655 |
|
| 39656 |
|
| 39657 |
have_poll='yes' |
| 39658 |
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
| 39659 |
|
| 39660 |
|
| 39661 |
|
| 39662 |
else case e in #( |
| 39663 |
e) have_poll='no' |
| 39664 |
;; |
| 39665 |
esac |
| 39666 |
fi |
| 39667 |
|
| 39668 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 39669 |
|
| 39670 |
|
| 39671 |
;; |
| 39672 |
esac |
| 39673 |
fi |
| 39674 |
if test "$enable_poll" = "yes" && test "$have_poll" != "yes" |
| 39675 |
then : |
| 39676 |
as_fn_error $? "Support for poll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5 |
| 39677 |
fi |
| 39678 |
enable_poll="$have_poll" |
| 39679 |
|
| 39680 |
|
| 39681 |
fi |
| 39682 |
|
| 39683 |
# Check whether --enable-epoll was given. |
| 39684 |
if test ${enable_epoll+y} |
| 39685 |
then : |
| 39686 |
enableval=$enable_epoll; enable_epoll=${enableval} |
| 39687 |
else case e in #( |
| 39688 |
e) enable_epoll='auto' |
| 39689 |
;; |
| 39690 |
esac |
| 39691 |
fi |
| 39692 |
|
| 39693 |
|
| 39694 |
if test "$enable_epoll" != "no" |
| 39695 |
then : |
| 39696 |
|
| 39697 |
|
| 39698 |
# Expansion of MHD_CHECK_FUNC_RUN macro starts here |
| 39699 |
if test ${mhd_cv_works_func_epoll_create+y} |
| 39700 |
then : |
| 39701 |
|
| 39702 |
else case e in #( |
| 39703 |
e) ac_fn_check_decl "$LINENO" "epoll_create" "ac_cv_have_decl_epoll_create" " |
| 39704 |
#include <sys/epoll.h> |
| 39705 |
#include <unistd.h> |
| 39706 |
|
| 39707 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 39708 |
if test "x$ac_cv_have_decl_epoll_create" = xyes |
| 39709 |
then : |
| 39710 |
|
| 39711 |
else case e in #( |
| 39712 |
e) mhd_cv_works_func_epoll_create="no" ;; |
| 39713 |
esac |
| 39714 |
fi ;; |
| 39715 |
esac |
| 39716 |
fi |
| 39717 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'epoll_create' available and works" >&5 |
| 39718 |
printf %s "checking whether 'epoll_create' available and works... " >&6; } |
| 39719 |
if test ${mhd_cv_works_func_epoll_create+y} |
| 39720 |
then : |
| 39721 |
printf %s "(cached) " >&6 |
| 39722 |
else case e in #( |
| 39723 |
e) |
| 39724 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39725 |
/* end confdefs.h. */ |
| 39726 |
|
| 39727 |
|
| 39728 |
#include <sys/epoll.h> |
| 39729 |
#include <unistd.h> |
| 39730 |
|
| 39731 |
|
| 39732 |
int main(void) |
| 39733 |
{ |
| 39734 |
|
| 39735 |
int epfd = epoll_create(64); |
| 39736 |
if (0 > epfd) return -epfd; |
| 39737 |
(void) close(epfd); |
| 39738 |
return 0; |
| 39739 |
|
| 39740 |
} |
| 39741 |
|
| 39742 |
_ACEOF |
| 39743 |
if test "x$cross_compiling" = x"yes" |
| 39744 |
then : |
| 39745 |
if ac_fn_c_try_link "$LINENO" |
| 39746 |
then : |
| 39747 |
|
| 39748 |
mhd_cv_works_func_epoll_create="assuming yes" |
| 39749 |
|
| 39750 |
else case e in #( |
| 39751 |
e) mhd_cv_works_func_epoll_create='no' ;; |
| 39752 |
esac |
| 39753 |
fi |
| 39754 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39755 |
conftest$ac_exeext |
| 39756 |
else case e in #( |
| 39757 |
e) if test "$cross_compiling" = yes |
| 39758 |
then : |
| 39759 |
# Dummy placeholder |
| 39760 |
else case e in #( |
| 39761 |
e) if ac_fn_c_try_run "$LINENO" |
| 39762 |
then : |
| 39763 |
mhd_cv_works_func_epoll_create='yes' |
| 39764 |
else case e in #( |
| 39765 |
e) mhd_cv_works_func_epoll_create='no' ;; |
| 39766 |
esac |
| 39767 |
fi |
| 39768 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 39769 |
conftest.$ac_objext conftest.beam ;; |
| 39770 |
esac |
| 39771 |
fi |
| 39772 |
|
| 39773 |
;; |
| 39774 |
esac |
| 39775 |
fi |
| 39776 |
rm -f conftest.$ac_ext |
| 39777 |
;; |
| 39778 |
esac |
| 39779 |
fi |
| 39780 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_works_func_epoll_create" >&5 |
| 39781 |
printf "%s\n" "$mhd_cv_works_func_epoll_create" >&6; } |
| 39782 |
if test "x$mhd_cv_works_func_epoll_create" = "xyes" || test "x$mhd_cv_works_func_epoll_create" = "xassuming yes" |
| 39783 |
then : |
| 39784 |
|
| 39785 |
|
| 39786 |
printf "%s\n" "#define EPOLL_SUPPORT 1" >>confdefs.h |
| 39787 |
|
| 39788 |
enable_epoll='yes' |
| 39789 |
|
| 39790 |
fi |
| 39791 |
if test "x$mhd_cv_works_func_epoll_create" = "xno" || test "x$mhd_cv_works_func_epoll_create" = "xassuming no" |
| 39792 |
then : |
| 39793 |
|
| 39794 |
if test "$enable_epoll" = "yes" |
| 39795 |
then : |
| 39796 |
as_fn_error $? "Support for epoll was explicitly requested but cannot be enabled on this platform." "$LINENO" 5 |
| 39797 |
|
| 39798 |
fi |
| 39799 |
enable_epoll='no' |
| 39800 |
|
| 39801 |
|
| 39802 |
fi |
| 39803 |
# Expansion of MHD_CHECK_FUNC_RUN macro ends here |
| 39804 |
|
| 39805 |
{ warn_msg=; unset warn_msg;} |
| 39806 |
if test "x$mhd_cv_works_func_epoll_create" = x"assuming yes" |
| 39807 |
then : |
| 39808 |
warn_msg="When cross-compiling it is not possible to check whether 'epoll_create()' really works on the host (final) platform. |
| 39809 |
'epoll' is enabled as most probably the host kernel supports it (CONFIG_EPOLL option enabled in case of Linux kernel). |
| 39810 |
Use './configure mhd_cv_works_func_epoll_create=yes' to mute this warning." |
| 39811 |
|
| 39812 |
fi |
| 39813 |
if test ${warn_msg+y} |
| 39814 |
then : |
| 39815 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $warn_msg" >&5 |
| 39816 |
printf "%s\n" "$as_me: WARNING: $warn_msg" >&2;} |
| 39817 |
if test -n "${CONF_FINAL_WARNS}" |
| 39818 |
then : |
| 39819 |
|
| 39820 |
CONF_FINAL_WARNS="${CONF_FINAL_WARNS} |
| 39821 |
|
| 39822 |
WARNING: " |
| 39823 |
|
| 39824 |
|
| 39825 |
fi |
| 39826 |
CONF_FINAL_WARNS="${CONF_FINAL_WARNS}${warn_msg}" |
| 39827 |
|
| 39828 |
|
| 39829 |
fi |
| 39830 |
|
| 39831 |
|
| 39832 |
fi |
| 39833 |
|
| 39834 |
if test "x$enable_epoll" = xyes; then |
| 39835 |
MHD_HAVE_EPOLL_TRUE= |
| 39836 |
MHD_HAVE_EPOLL_FALSE='#' |
| 39837 |
else |
| 39838 |
MHD_HAVE_EPOLL_TRUE='#' |
| 39839 |
MHD_HAVE_EPOLL_FALSE= |
| 39840 |
fi |
| 39841 |
|
| 39842 |
|
| 39843 |
if test "x$enable_epoll" = "xyes" |
| 39844 |
then : |
| 39845 |
|
| 39846 |
|
| 39847 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 39848 |
if test ${mhd_cv_have_func_epoll_create1+y} |
| 39849 |
then : |
| 39850 |
|
| 39851 |
else case e in #( |
| 39852 |
e) ac_fn_check_decl "$LINENO" "epoll_create1" "ac_cv_have_decl_epoll_create1" " |
| 39853 |
#include <sys/epoll.h> |
| 39854 |
|
| 39855 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 39856 |
if test "x$ac_cv_have_decl_epoll_create1" = xyes |
| 39857 |
then : |
| 39858 |
|
| 39859 |
else case e in #( |
| 39860 |
e) mhd_cv_have_func_epoll_create1="no" ;; |
| 39861 |
esac |
| 39862 |
fi ;; |
| 39863 |
esac |
| 39864 |
fi |
| 39865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function epoll_create1" >&5 |
| 39866 |
printf %s "checking for function epoll_create1... " >&6; } |
| 39867 |
if test ${mhd_cv_have_func_epoll_create1+y} |
| 39868 |
then : |
| 39869 |
printf %s "(cached) " >&6 |
| 39870 |
else case e in #( |
| 39871 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39872 |
/* end confdefs.h. */ |
| 39873 |
|
| 39874 |
|
| 39875 |
#include <sys/epoll.h> |
| 39876 |
|
| 39877 |
|
| 39878 |
int main(void) |
| 39879 |
{ |
| 39880 |
|
| 39881 |
|
| 39882 |
if (0 > epoll_create1(EPOLL_CLOEXEC)) |
| 39883 |
return 3; |
| 39884 |
|
| 39885 |
|
| 39886 |
|
| 39887 |
return 0; |
| 39888 |
} |
| 39889 |
|
| 39890 |
|
| 39891 |
_ACEOF |
| 39892 |
if ac_fn_c_try_link "$LINENO" |
| 39893 |
then : |
| 39894 |
mhd_cv_have_func_epoll_create1="yes" |
| 39895 |
else case e in #( |
| 39896 |
e) mhd_cv_have_func_epoll_create1="no" ;; |
| 39897 |
esac |
| 39898 |
fi |
| 39899 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39900 |
conftest$ac_exeext conftest.$ac_ext |
| 39901 |
;; |
| 39902 |
esac |
| 39903 |
fi |
| 39904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_epoll_create1" >&5 |
| 39905 |
printf "%s\n" "$mhd_cv_have_func_epoll_create1" >&6; } |
| 39906 |
if test "x$mhd_cv_have_func_epoll_create1" = x"yes" |
| 39907 |
then : |
| 39908 |
|
| 39909 |
printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h |
| 39910 |
|
| 39911 |
|
| 39912 |
fi |
| 39913 |
|
| 39914 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 39915 |
|
| 39916 |
|
| 39917 |
|
| 39918 |
fi |
| 39919 |
|
| 39920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for supported 'noreturn' keyword" >&5 |
| 39921 |
printf %s "checking for supported 'noreturn' keyword... " >&6; } |
| 39922 |
if test ${mhd_cv_decl_noreturn+y} |
| 39923 |
then : |
| 39924 |
printf %s "(cached) " >&6 |
| 39925 |
else case e in #( |
| 39926 |
e) |
| 39927 |
mhd_cv_decl_noreturn="none" |
| 39928 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS} ${errattr_CFLAGS}" |
| 39929 |
MHD_SAVED_ac_c_werror_flag="$ac_c_werror_flag" |
| 39930 |
ac_c_werror_flag=yes |
| 39931 |
for decl_noret in '[[noreturn]]' '_Noreturn' '__attribute__((__noreturn__))' '__declspec(noreturn)' |
| 39932 |
do |
| 39933 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 39934 |
/* end confdefs.h. */ |
| 39935 |
|
| 39936 |
#ifdef HAVE_STDLIB_H |
| 39937 |
#include <stdlib.h> |
| 39938 |
#endif |
| 39939 |
|
| 39940 |
${decl_noret} static void myexitfunc(int code) |
| 39941 |
{ |
| 39942 |
#ifdef HAVE_STDLIB_H |
| 39943 |
exit (code); |
| 39944 |
#else |
| 39945 |
(void)code; |
| 39946 |
#endif |
| 39947 |
} |
| 39948 |
|
| 39949 |
int main (int argc, char *const *argv) |
| 39950 |
{ |
| 39951 |
(void) argv; |
| 39952 |
if (argc > 2) |
| 39953 |
myexitfunc (2); |
| 39954 |
return 0; |
| 39955 |
} |
| 39956 |
|
| 39957 |
|
| 39958 |
_ACEOF |
| 39959 |
if ac_fn_c_try_link "$LINENO" |
| 39960 |
then : |
| 39961 |
mhd_cv_decl_noreturn="${decl_noret}" |
| 39962 |
|
| 39963 |
fi |
| 39964 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 39965 |
conftest$ac_exeext conftest.$ac_ext |
| 39966 |
if test "x${mhd_cv_decl_noreturn}" != "xnone" |
| 39967 |
then : |
| 39968 |
break |
| 39969 |
fi |
| 39970 |
done |
| 39971 |
ac_c_werror_flag="$MHD_SAVED_ac_c_werror_flag" |
| 39972 |
{ MHD_SAVED_ac_c_werror_flag=; unset MHD_SAVED_ac_c_werror_flag;} |
| 39973 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 39974 |
|
| 39975 |
;; |
| 39976 |
esac |
| 39977 |
fi |
| 39978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_decl_noreturn" >&5 |
| 39979 |
printf "%s\n" "$mhd_cv_decl_noreturn" >&6; } |
| 39980 |
if test "x$mhd_cv_decl_noreturn" = x"none" |
| 39981 |
then : |
| 39982 |
|
| 39983 |
printf "%s\n" "#define _MHD_NORETURN /**/" >>confdefs.h |
| 39984 |
|
| 39985 |
else case e in #( |
| 39986 |
e) |
| 39987 |
printf "%s\n" "#define _MHD_NORETURN ${mhd_cv_decl_noreturn}" >>confdefs.h |
| 39988 |
|
| 39989 |
;; |
| 39990 |
esac |
| 39991 |
fi |
| 39992 |
|
| 39993 |
# Check for types sizes |
| 39994 |
# Types sizes are used as an indirect indication of maximum allowed values for types |
| 39995 |
# which is used to exclude by preprocessor some compiler checks for values clips |
| 39996 |
# Assuming no staffing or uniform staffing for integer types |
| 39997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of tv_sec member of struct timeval" >&5 |
| 39998 |
printf %s "checking size of tv_sec member of struct timeval... " >&6; } |
| 39999 |
if test ${mhd_cv_size_timeval_tv_sec+y} |
| 40000 |
then : |
| 40001 |
printf %s "(cached) " >&6 |
| 40002 |
else case e in #( |
| 40003 |
e) |
| 40004 |
if ac_fn_c_compute_int "$LINENO" "((long int)sizeof(test_var.tv_sec))" "mhd_cv_size_timeval_tv_sec" " |
| 40005 |
#ifdef HAVE_SYS_TIME_H |
| 40006 |
#include <sys/time.h> |
| 40007 |
#endif /* HAVE_SYS_TIME_H */ |
| 40008 |
#ifdef HAVE_TIME_H |
| 40009 |
#include <time.h> |
| 40010 |
#endif /* HAVE_TIME_H */ |
| 40011 |
#if HAVE_SYS_TYPES_H |
| 40012 |
#include <sys/types.h> |
| 40013 |
#endif /* HAVE_SYS_TYPES_H */ |
| 40014 |
extern struct timeval test_var; /* Declaration */ |
| 40015 |
struct timeval test_var = {0, 0}; /* Definition */ |
| 40016 |
" |
| 40017 |
then : |
| 40018 |
|
| 40019 |
else case e in #( |
| 40020 |
e) |
| 40021 |
# The size is used only to exclude additional checks/comparison in code |
| 40022 |
# to avoid compiler warnings. With larger size MHD code will use |
| 40023 |
# additional checks which ensure that value will fit but it may produce |
| 40024 |
# a harmless compiler warning. |
| 40025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The size cannot be determined, assuming 8." >&5 |
| 40026 |
printf "%s\n" "$as_me: WARNING: The size cannot be determined, assuming 8." >&2;} |
| 40027 |
mhd_cv_size_timeval_tv_sec=8 |
| 40028 |
|
| 40029 |
;; |
| 40030 |
esac |
| 40031 |
fi |
| 40032 |
|
| 40033 |
|
| 40034 |
;; |
| 40035 |
esac |
| 40036 |
fi |
| 40037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_size_timeval_tv_sec" >&5 |
| 40038 |
printf "%s\n" "$mhd_cv_size_timeval_tv_sec" >&6; } |
| 40039 |
|
| 40040 |
printf "%s\n" "#define SIZEOF_STRUCT_TIMEVAL_TV_SEC $mhd_cv_size_timeval_tv_sec" >>confdefs.h |
| 40041 |
|
| 40042 |
# The cast to long int works around a bug in the HP C Compiler |
| 40043 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40044 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40045 |
# This bug is HP SR number 8606223364. |
| 40046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 |
| 40047 |
printf %s "checking size of int64_t... " >&6; } |
| 40048 |
if test ${ac_cv_sizeof_int64_t+y} |
| 40049 |
then : |
| 40050 |
printf %s "(cached) " >&6 |
| 40051 |
else case e in #( |
| 40052 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "#include <stdint.h> |
| 40053 |
" |
| 40054 |
then : |
| 40055 |
|
| 40056 |
else case e in #( |
| 40057 |
e) if test "$ac_cv_type_int64_t" = yes; then |
| 40058 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40059 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40060 |
as_fn_error 77 "cannot compute sizeof (int64_t) |
| 40061 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40062 |
else |
| 40063 |
ac_cv_sizeof_int64_t=0 |
| 40064 |
fi ;; |
| 40065 |
esac |
| 40066 |
fi |
| 40067 |
;; |
| 40068 |
esac |
| 40069 |
fi |
| 40070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 |
| 40071 |
printf "%s\n" "$ac_cv_sizeof_int64_t" >&6; } |
| 40072 |
|
| 40073 |
|
| 40074 |
|
| 40075 |
printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h |
| 40076 |
|
| 40077 |
|
| 40078 |
# The cast to long int works around a bug in the HP C Compiler |
| 40079 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40080 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40081 |
# This bug is HP SR number 8606223364. |
| 40082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5 |
| 40083 |
printf %s "checking size of uint64_t... " >&6; } |
| 40084 |
if test ${ac_cv_sizeof_uint64_t+y} |
| 40085 |
then : |
| 40086 |
printf %s "(cached) " >&6 |
| 40087 |
else case e in #( |
| 40088 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "#include <stdint.h> |
| 40089 |
" |
| 40090 |
then : |
| 40091 |
|
| 40092 |
else case e in #( |
| 40093 |
e) if test "$ac_cv_type_uint64_t" = yes; then |
| 40094 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40095 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40096 |
as_fn_error 77 "cannot compute sizeof (uint64_t) |
| 40097 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40098 |
else |
| 40099 |
ac_cv_sizeof_uint64_t=0 |
| 40100 |
fi ;; |
| 40101 |
esac |
| 40102 |
fi |
| 40103 |
;; |
| 40104 |
esac |
| 40105 |
fi |
| 40106 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5 |
| 40107 |
printf "%s\n" "$ac_cv_sizeof_uint64_t" >&6; } |
| 40108 |
|
| 40109 |
|
| 40110 |
|
| 40111 |
printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h |
| 40112 |
|
| 40113 |
|
| 40114 |
# The cast to long int works around a bug in the HP C Compiler |
| 40115 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40116 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40117 |
# This bug is HP SR number 8606223364. |
| 40118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 40119 |
printf %s "checking size of int... " >&6; } |
| 40120 |
if test ${ac_cv_sizeof_int+y} |
| 40121 |
then : |
| 40122 |
printf %s "(cached) " >&6 |
| 40123 |
else case e in #( |
| 40124 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "#include <stdint.h> |
| 40125 |
" |
| 40126 |
then : |
| 40127 |
|
| 40128 |
else case e in #( |
| 40129 |
e) if test "$ac_cv_type_int" = yes; then |
| 40130 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40131 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40132 |
as_fn_error 77 "cannot compute sizeof (int) |
| 40133 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40134 |
else |
| 40135 |
ac_cv_sizeof_int=0 |
| 40136 |
fi ;; |
| 40137 |
esac |
| 40138 |
fi |
| 40139 |
;; |
| 40140 |
esac |
| 40141 |
fi |
| 40142 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 40143 |
printf "%s\n" "$ac_cv_sizeof_int" >&6; } |
| 40144 |
|
| 40145 |
|
| 40146 |
|
| 40147 |
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 40148 |
|
| 40149 |
|
| 40150 |
# The cast to long int works around a bug in the HP C Compiler |
| 40151 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40152 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40153 |
# This bug is HP SR number 8606223364. |
| 40154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 |
| 40155 |
printf %s "checking size of unsigned int... " >&6; } |
| 40156 |
if test ${ac_cv_sizeof_unsigned_int+y} |
| 40157 |
then : |
| 40158 |
printf %s "(cached) " >&6 |
| 40159 |
else case e in #( |
| 40160 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "#include <stdint.h> |
| 40161 |
" |
| 40162 |
then : |
| 40163 |
|
| 40164 |
else case e in #( |
| 40165 |
e) if test "$ac_cv_type_unsigned_int" = yes; then |
| 40166 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40167 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40168 |
as_fn_error 77 "cannot compute sizeof (unsigned int) |
| 40169 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40170 |
else |
| 40171 |
ac_cv_sizeof_unsigned_int=0 |
| 40172 |
fi ;; |
| 40173 |
esac |
| 40174 |
fi |
| 40175 |
;; |
| 40176 |
esac |
| 40177 |
fi |
| 40178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 |
| 40179 |
printf "%s\n" "$ac_cv_sizeof_unsigned_int" >&6; } |
| 40180 |
|
| 40181 |
|
| 40182 |
|
| 40183 |
printf "%s\n" "#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int" >>confdefs.h |
| 40184 |
|
| 40185 |
|
| 40186 |
# The cast to long int works around a bug in the HP C Compiler |
| 40187 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40188 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40189 |
# This bug is HP SR number 8606223364. |
| 40190 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5 |
| 40191 |
printf %s "checking size of unsigned long long... " >&6; } |
| 40192 |
if test ${ac_cv_sizeof_unsigned_long_long+y} |
| 40193 |
then : |
| 40194 |
printf %s "(cached) " >&6 |
| 40195 |
else case e in #( |
| 40196 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "#include <stdint.h> |
| 40197 |
" |
| 40198 |
then : |
| 40199 |
|
| 40200 |
else case e in #( |
| 40201 |
e) if test "$ac_cv_type_unsigned_long_long" = yes; then |
| 40202 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40203 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40204 |
as_fn_error 77 "cannot compute sizeof (unsigned long long) |
| 40205 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40206 |
else |
| 40207 |
ac_cv_sizeof_unsigned_long_long=0 |
| 40208 |
fi ;; |
| 40209 |
esac |
| 40210 |
fi |
| 40211 |
;; |
| 40212 |
esac |
| 40213 |
fi |
| 40214 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5 |
| 40215 |
printf "%s\n" "$ac_cv_sizeof_unsigned_long_long" >&6; } |
| 40216 |
|
| 40217 |
|
| 40218 |
|
| 40219 |
printf "%s\n" "#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long" >>confdefs.h |
| 40220 |
|
| 40221 |
|
| 40222 |
# The cast to long int works around a bug in the HP C Compiler |
| 40223 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 40224 |
# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 40225 |
# This bug is HP SR number 8606223364. |
| 40226 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 40227 |
printf %s "checking size of size_t... " >&6; } |
| 40228 |
if test ${ac_cv_sizeof_size_t+y} |
| 40229 |
then : |
| 40230 |
printf %s "(cached) " >&6 |
| 40231 |
else case e in #( |
| 40232 |
e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" " |
| 40233 |
#ifdef HAVE_STDLIB_H |
| 40234 |
#include <stdlib.h> |
| 40235 |
#endif /* HAVE_STDLIB_H */ |
| 40236 |
#ifdef HAVE_STDDEF_H |
| 40237 |
#include <stddef.h> |
| 40238 |
#endif /* HAVE_STDDEF_H */ |
| 40239 |
#include <stdio.h> |
| 40240 |
|
| 40241 |
|
| 40242 |
" |
| 40243 |
then : |
| 40244 |
|
| 40245 |
else case e in #( |
| 40246 |
e) if test "$ac_cv_type_size_t" = yes; then |
| 40247 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 40248 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 40249 |
as_fn_error 77 "cannot compute sizeof (size_t) |
| 40250 |
See 'config.log' for more details" "$LINENO" 5; } |
| 40251 |
else |
| 40252 |
ac_cv_sizeof_size_t=0 |
| 40253 |
fi ;; |
| 40254 |
esac |
| 40255 |
fi |
| 40256 |
;; |
| 40257 |
esac |
| 40258 |
fi |
| 40259 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 40260 |
printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } |
| 40261 |
|
| 40262 |
|
| 40263 |
|
| 40264 |
printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h |
| 40265 |
|
| 40266 |
|
| 40267 |
|
| 40268 |
for ac_header in dlfcn.h |
| 40269 |
do : |
| 40270 |
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
| 40271 |
" |
| 40272 |
if test "x$ac_cv_header_dlfcn_h" = xyes |
| 40273 |
then : |
| 40274 |
printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h |
| 40275 |
have_tlsplugin=yes |
| 40276 |
else case e in #( |
| 40277 |
e) have_tlsplugin=no ;; |
| 40278 |
esac |
| 40279 |
fi |
| 40280 |
|
| 40281 |
done |
| 40282 |
if test "x$have_tlsplugin" = xyes; then |
| 40283 |
MHD_HAVE_TLS_PLUGIN_TRUE= |
| 40284 |
MHD_HAVE_TLS_PLUGIN_FALSE='#' |
| 40285 |
else |
| 40286 |
MHD_HAVE_TLS_PLUGIN_TRUE='#' |
| 40287 |
MHD_HAVE_TLS_PLUGIN_FALSE= |
| 40288 |
fi |
| 40289 |
|
| 40290 |
|
| 40291 |
for ac_header in zlib.h |
| 40292 |
do : |
| 40293 |
ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default |
| 40294 |
" |
| 40295 |
if test "x$ac_cv_header_zlib_h" = xyes |
| 40296 |
then : |
| 40297 |
printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h |
| 40298 |
have_zlib=yes |
| 40299 |
else case e in #( |
| 40300 |
e) have_zlib=no ;; |
| 40301 |
esac |
| 40302 |
fi |
| 40303 |
|
| 40304 |
done |
| 40305 |
if test "x$have_zlib" = xyes; then |
| 40306 |
HAVE_ZLIB_TRUE= |
| 40307 |
HAVE_ZLIB_FALSE='#' |
| 40308 |
else |
| 40309 |
HAVE_ZLIB_TRUE='#' |
| 40310 |
HAVE_ZLIB_FALSE= |
| 40311 |
fi |
| 40312 |
|
| 40313 |
|
| 40314 |
for ac_header in jansson.h |
| 40315 |
do : |
| 40316 |
ac_fn_c_check_header_compile "$LINENO" "jansson.h" "ac_cv_header_jansson_h" "$ac_includes_default |
| 40317 |
" |
| 40318 |
if test "x$ac_cv_header_jansson_h" = xyes |
| 40319 |
then : |
| 40320 |
printf "%s\n" "#define HAVE_JANSSON_H 1" >>confdefs.h |
| 40321 |
have_json=yes |
| 40322 |
else case e in #( |
| 40323 |
e) have_json=no ;; |
| 40324 |
esac |
| 40325 |
fi |
| 40326 |
|
| 40327 |
done |
| 40328 |
if test "x$have_json" = xyes; then |
| 40329 |
HAVE_JANSSON_TRUE= |
| 40330 |
HAVE_JANSSON_FALSE='#' |
| 40331 |
else |
| 40332 |
HAVE_JANSSON_TRUE='#' |
| 40333 |
HAVE_JANSSON_FALSE= |
| 40334 |
fi |
| 40335 |
|
| 40336 |
|
| 40337 |
# Check for generic functions |
| 40338 |
|
| 40339 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 40340 |
if test ${mhd_cv_have_func_random+y} |
| 40341 |
then : |
| 40342 |
|
| 40343 |
else case e in #( |
| 40344 |
e) ac_fn_check_decl "$LINENO" "random" "ac_cv_have_decl_random" " |
| 40345 |
$ac_includes_default |
| 40346 |
#include <stdlib.h> |
| 40347 |
|
| 40348 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 40349 |
if test "x$ac_cv_have_decl_random" = xyes |
| 40350 |
then : |
| 40351 |
|
| 40352 |
else case e in #( |
| 40353 |
e) mhd_cv_have_func_random="no" ;; |
| 40354 |
esac |
| 40355 |
fi ;; |
| 40356 |
esac |
| 40357 |
fi |
| 40358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function random" >&5 |
| 40359 |
printf %s "checking for function random... " >&6; } |
| 40360 |
if test ${mhd_cv_have_func_random+y} |
| 40361 |
then : |
| 40362 |
printf %s "(cached) " >&6 |
| 40363 |
else case e in #( |
| 40364 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40365 |
/* end confdefs.h. */ |
| 40366 |
|
| 40367 |
|
| 40368 |
$ac_includes_default |
| 40369 |
#include <stdlib.h> |
| 40370 |
|
| 40371 |
|
| 40372 |
int main(void) |
| 40373 |
{ |
| 40374 |
|
| 40375 |
long int r = random(); (void)r; |
| 40376 |
|
| 40377 |
return 0; |
| 40378 |
} |
| 40379 |
|
| 40380 |
|
| 40381 |
_ACEOF |
| 40382 |
if ac_fn_c_try_link "$LINENO" |
| 40383 |
then : |
| 40384 |
mhd_cv_have_func_random="yes" |
| 40385 |
else case e in #( |
| 40386 |
e) mhd_cv_have_func_random="no" ;; |
| 40387 |
esac |
| 40388 |
fi |
| 40389 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40390 |
conftest$ac_exeext conftest.$ac_ext |
| 40391 |
;; |
| 40392 |
esac |
| 40393 |
fi |
| 40394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_random" >&5 |
| 40395 |
printf "%s\n" "$mhd_cv_have_func_random" >&6; } |
| 40396 |
if test "x$mhd_cv_have_func_random" = x"yes" |
| 40397 |
then : |
| 40398 |
|
| 40399 |
printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h |
| 40400 |
|
| 40401 |
|
| 40402 |
else case e in #( |
| 40403 |
e) |
| 40404 |
|
| 40405 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 40406 |
if test ${mhd_cv_have_func_rand+y} |
| 40407 |
then : |
| 40408 |
|
| 40409 |
else case e in #( |
| 40410 |
e) ac_fn_check_decl "$LINENO" "rand" "ac_cv_have_decl_rand" " |
| 40411 |
$ac_includes_default |
| 40412 |
#include <stdlib.h> |
| 40413 |
|
| 40414 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 40415 |
if test "x$ac_cv_have_decl_rand" = xyes |
| 40416 |
then : |
| 40417 |
|
| 40418 |
else case e in #( |
| 40419 |
e) mhd_cv_have_func_rand="no" ;; |
| 40420 |
esac |
| 40421 |
fi ;; |
| 40422 |
esac |
| 40423 |
fi |
| 40424 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function rand" >&5 |
| 40425 |
printf %s "checking for function rand... " >&6; } |
| 40426 |
if test ${mhd_cv_have_func_rand+y} |
| 40427 |
then : |
| 40428 |
printf %s "(cached) " >&6 |
| 40429 |
else case e in #( |
| 40430 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40431 |
/* end confdefs.h. */ |
| 40432 |
|
| 40433 |
|
| 40434 |
$ac_includes_default |
| 40435 |
#include <stdlib.h> |
| 40436 |
|
| 40437 |
|
| 40438 |
int main(void) |
| 40439 |
{ |
| 40440 |
|
| 40441 |
int r = rand(); (void)r; |
| 40442 |
|
| 40443 |
return 0; |
| 40444 |
} |
| 40445 |
|
| 40446 |
|
| 40447 |
_ACEOF |
| 40448 |
if ac_fn_c_try_link "$LINENO" |
| 40449 |
then : |
| 40450 |
mhd_cv_have_func_rand="yes" |
| 40451 |
else case e in #( |
| 40452 |
e) mhd_cv_have_func_rand="no" ;; |
| 40453 |
esac |
| 40454 |
fi |
| 40455 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40456 |
conftest$ac_exeext conftest.$ac_ext |
| 40457 |
;; |
| 40458 |
esac |
| 40459 |
fi |
| 40460 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_rand" >&5 |
| 40461 |
printf "%s\n" "$mhd_cv_have_func_rand" >&6; } |
| 40462 |
if test "x$mhd_cv_have_func_rand" = x"yes" |
| 40463 |
then : |
| 40464 |
|
| 40465 |
printf "%s\n" "#define HAVE_RAND 1" >>confdefs.h |
| 40466 |
|
| 40467 |
|
| 40468 |
fi |
| 40469 |
|
| 40470 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 40471 |
|
| 40472 |
|
| 40473 |
;; |
| 40474 |
esac |
| 40475 |
fi |
| 40476 |
|
| 40477 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 40478 |
|
| 40479 |
|
| 40480 |
ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " |
| 40481 |
#ifdef HAVE_SYS_TYPES_H |
| 40482 |
#include <sys/types.h> |
| 40483 |
#endif |
| 40484 |
#ifdef HAVE_SYS_SOCKET_H |
| 40485 |
#include <sys/socket.h> |
| 40486 |
#endif |
| 40487 |
#ifdef HAVE_NETINET_IN_H |
| 40488 |
#include <netinet/in.h> |
| 40489 |
#endif |
| 40490 |
#ifdef HAVE_WINSOCK2_H |
| 40491 |
#include <winsock2.h> |
| 40492 |
#endif |
| 40493 |
#ifdef HAVE_WS2TCPIP_H |
| 40494 |
#include <ws2tcpip.h> |
| 40495 |
#endif |
| 40496 |
|
| 40497 |
" |
| 40498 |
if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes |
| 40499 |
then : |
| 40500 |
|
| 40501 |
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h |
| 40502 |
|
| 40503 |
|
| 40504 |
fi |
| 40505 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_storage" "ss_len" "ac_cv_member_struct_sockaddr_storage_ss_len" " |
| 40506 |
#ifdef HAVE_SYS_TYPES_H |
| 40507 |
#include <sys/types.h> |
| 40508 |
#endif |
| 40509 |
#ifdef HAVE_SYS_SOCKET_H |
| 40510 |
#include <sys/socket.h> |
| 40511 |
#endif |
| 40512 |
#ifdef HAVE_NETINET_IN_H |
| 40513 |
#include <netinet/in.h> |
| 40514 |
#endif |
| 40515 |
#ifdef HAVE_WINSOCK2_H |
| 40516 |
#include <winsock2.h> |
| 40517 |
#endif |
| 40518 |
#ifdef HAVE_WS2TCPIP_H |
| 40519 |
#include <ws2tcpip.h> |
| 40520 |
#endif |
| 40521 |
|
| 40522 |
" |
| 40523 |
if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = xyes |
| 40524 |
then : |
| 40525 |
|
| 40526 |
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1" >>confdefs.h |
| 40527 |
|
| 40528 |
|
| 40529 |
fi |
| 40530 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" " |
| 40531 |
#ifdef HAVE_SYS_TYPES_H |
| 40532 |
#include <sys/types.h> |
| 40533 |
#endif |
| 40534 |
#ifdef HAVE_SYS_SOCKET_H |
| 40535 |
#include <sys/socket.h> |
| 40536 |
#endif |
| 40537 |
#ifdef HAVE_NETINET_IN_H |
| 40538 |
#include <netinet/in.h> |
| 40539 |
#endif |
| 40540 |
#ifdef HAVE_WINSOCK2_H |
| 40541 |
#include <winsock2.h> |
| 40542 |
#endif |
| 40543 |
#ifdef HAVE_WS2TCPIP_H |
| 40544 |
#include <ws2tcpip.h> |
| 40545 |
#endif |
| 40546 |
|
| 40547 |
" |
| 40548 |
if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes |
| 40549 |
then : |
| 40550 |
|
| 40551 |
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1" >>confdefs.h |
| 40552 |
|
| 40553 |
|
| 40554 |
fi |
| 40555 |
ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_len" "ac_cv_member_struct_sockaddr_in6_sin6_len" " |
| 40556 |
#ifdef HAVE_SYS_TYPES_H |
| 40557 |
#include <sys/types.h> |
| 40558 |
#endif |
| 40559 |
#ifdef HAVE_SYS_SOCKET_H |
| 40560 |
#include <sys/socket.h> |
| 40561 |
#endif |
| 40562 |
#ifdef HAVE_NETINET_IN_H |
| 40563 |
#include <netinet/in.h> |
| 40564 |
#endif |
| 40565 |
#ifdef HAVE_WINSOCK2_H |
| 40566 |
#include <winsock2.h> |
| 40567 |
#endif |
| 40568 |
#ifdef HAVE_WS2TCPIP_H |
| 40569 |
#include <ws2tcpip.h> |
| 40570 |
#endif |
| 40571 |
|
| 40572 |
" |
| 40573 |
if test "x$ac_cv_member_struct_sockaddr_in6_sin6_len" = xyes |
| 40574 |
then : |
| 40575 |
|
| 40576 |
printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN 1" >>confdefs.h |
| 40577 |
|
| 40578 |
|
| 40579 |
fi |
| 40580 |
|
| 40581 |
|
| 40582 |
|
| 40583 |
# Expansion of MHD_CHECK_FUNC_RUN macro starts here |
| 40584 |
if test ${mhd_cv_works_func_getsockname+y} |
| 40585 |
then : |
| 40586 |
|
| 40587 |
else case e in #( |
| 40588 |
e) ac_fn_check_decl "$LINENO" "getsockname" "ac_cv_have_decl_getsockname" " |
| 40589 |
#ifdef HAVE_SYS_TYPES_H |
| 40590 |
#include <sys/types.h> |
| 40591 |
#endif |
| 40592 |
#include <string.h> |
| 40593 |
#ifdef HAVE_SYS_SOCKET_H |
| 40594 |
#include <sys/socket.h> |
| 40595 |
#endif |
| 40596 |
#ifdef HAVE_UNISTD_H |
| 40597 |
#include <unistd.h> |
| 40598 |
#endif |
| 40599 |
#ifdef HAVE_WINSOCK2_H |
| 40600 |
#include <winsock2.h> |
| 40601 |
#endif |
| 40602 |
#ifdef HAVE_WS2TCPIP_H |
| 40603 |
#include <ws2tcpip.h> |
| 40604 |
#endif |
| 40605 |
#ifdef HAVE_NETINET_IN_H |
| 40606 |
#include <netinet/in.h> |
| 40607 |
#endif |
| 40608 |
#ifdef HAVE_NETINET_IP_H |
| 40609 |
#include <netinet/ip.h> |
| 40610 |
#endif |
| 40611 |
#ifdef HAVE_ARPA_INET_H |
| 40612 |
#include <arpa/inet.h> |
| 40613 |
#endif |
| 40614 |
|
| 40615 |
|
| 40616 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 40617 |
if test "x$ac_cv_have_decl_getsockname" = xyes |
| 40618 |
then : |
| 40619 |
|
| 40620 |
else case e in #( |
| 40621 |
e) mhd_cv_works_func_getsockname="no" ;; |
| 40622 |
esac |
| 40623 |
fi ;; |
| 40624 |
esac |
| 40625 |
fi |
| 40626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'getsockname' available and works" >&5 |
| 40627 |
printf %s "checking whether 'getsockname' available and works... " >&6; } |
| 40628 |
if test ${mhd_cv_works_func_getsockname+y} |
| 40629 |
then : |
| 40630 |
printf %s "(cached) " >&6 |
| 40631 |
else case e in #( |
| 40632 |
e) |
| 40633 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40634 |
/* end confdefs.h. */ |
| 40635 |
|
| 40636 |
|
| 40637 |
#ifdef HAVE_SYS_TYPES_H |
| 40638 |
#include <sys/types.h> |
| 40639 |
#endif |
| 40640 |
#include <string.h> |
| 40641 |
#ifdef HAVE_SYS_SOCKET_H |
| 40642 |
#include <sys/socket.h> |
| 40643 |
#endif |
| 40644 |
#ifdef HAVE_UNISTD_H |
| 40645 |
#include <unistd.h> |
| 40646 |
#endif |
| 40647 |
#ifdef HAVE_WINSOCK2_H |
| 40648 |
#include <winsock2.h> |
| 40649 |
#endif |
| 40650 |
#ifdef HAVE_WS2TCPIP_H |
| 40651 |
#include <ws2tcpip.h> |
| 40652 |
#endif |
| 40653 |
#ifdef HAVE_NETINET_IN_H |
| 40654 |
#include <netinet/in.h> |
| 40655 |
#endif |
| 40656 |
#ifdef HAVE_NETINET_IP_H |
| 40657 |
#include <netinet/ip.h> |
| 40658 |
#endif |
| 40659 |
#ifdef HAVE_ARPA_INET_H |
| 40660 |
#include <arpa/inet.h> |
| 40661 |
#endif |
| 40662 |
|
| 40663 |
|
| 40664 |
|
| 40665 |
int main(void) |
| 40666 |
{ |
| 40667 |
|
| 40668 |
const socklen_t c_addr_size = (socklen_t)sizeof(struct sockaddr_in); |
| 40669 |
struct sockaddr_in sa; |
| 40670 |
socklen_t addr_size; |
| 40671 |
int ret = 1; |
| 40672 |
#if !defined(_WIN32) || defined(__CYGWIN__) |
| 40673 |
int sckt; |
| 40674 |
const int invld_sckt = -1; |
| 40675 |
#else |
| 40676 |
SOCKET sckt; |
| 40677 |
const SOCKET invld_sckt = INVALID_SOCKET; |
| 40678 |
WSADATA wsa_data; |
| 40679 |
|
| 40680 |
if (0 != WSAStartup(MAKEWORD(2, 2), &wsa_data) || MAKEWORD(2, 2) != wsa_data.wVersion) |
| 40681 |
return 20; |
| 40682 |
#endif |
| 40683 |
|
| 40684 |
sckt = socket (PF_INET, SOCK_STREAM, 0); |
| 40685 |
if (invld_sckt != sckt) |
| 40686 |
{ |
| 40687 |
memset(&sa, 0, c_addr_size); |
| 40688 |
sa.sin_family = AF_INET; |
| 40689 |
#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN |
| 40690 |
sa.sin_len = c_addr_size; |
| 40691 |
#endif |
| 40692 |
if (0 == bind (sckt, (struct sockaddr *)&sa, c_addr_size)) |
| 40693 |
{ |
| 40694 |
if (0 == listen (sckt, 1)) |
| 40695 |
{ |
| 40696 |
addr_size = c_addr_size; |
| 40697 |
if (0 == getsockname (sckt, (struct sockaddr *)&sa, &addr_size)) |
| 40698 |
{ |
| 40699 |
if (c_addr_size >= addr_size) |
| 40700 |
{ |
| 40701 |
if (0 != ntohs(sa.sin_port)) |
| 40702 |
{ ret = 0; |
| 40703 |
} else ret = 7; |
| 40704 |
} else ret = 6; |
| 40705 |
} else ret = 5; |
| 40706 |
} else ret = 4; |
| 40707 |
} else ret = 3; |
| 40708 |
} else ret = 2; |
| 40709 |
#if !defined(_WIN32) || defined(__CYGWIN__) |
| 40710 |
close (sckt); |
| 40711 |
#else |
| 40712 |
closesocket (sckt); |
| 40713 |
WSACleanup(); |
| 40714 |
#endif |
| 40715 |
return ret; |
| 40716 |
|
| 40717 |
} |
| 40718 |
|
| 40719 |
_ACEOF |
| 40720 |
if test "x$cross_compiling" = x"yes" |
| 40721 |
then : |
| 40722 |
if ac_fn_c_try_link "$LINENO" |
| 40723 |
then : |
| 40724 |
|
| 40725 |
mhd_cv_works_func_getsockname='assuming yes' |
| 40726 |
|
| 40727 |
else case e in #( |
| 40728 |
e) mhd_cv_works_func_getsockname='no' ;; |
| 40729 |
esac |
| 40730 |
fi |
| 40731 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40732 |
conftest$ac_exeext |
| 40733 |
else case e in #( |
| 40734 |
e) if test "$cross_compiling" = yes |
| 40735 |
then : |
| 40736 |
# Dummy placeholder |
| 40737 |
else case e in #( |
| 40738 |
e) if ac_fn_c_try_run "$LINENO" |
| 40739 |
then : |
| 40740 |
mhd_cv_works_func_getsockname='yes' |
| 40741 |
else case e in #( |
| 40742 |
e) mhd_cv_works_func_getsockname='no' ;; |
| 40743 |
esac |
| 40744 |
fi |
| 40745 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 40746 |
conftest.$ac_objext conftest.beam ;; |
| 40747 |
esac |
| 40748 |
fi |
| 40749 |
|
| 40750 |
;; |
| 40751 |
esac |
| 40752 |
fi |
| 40753 |
rm -f conftest.$ac_ext |
| 40754 |
;; |
| 40755 |
esac |
| 40756 |
fi |
| 40757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_works_func_getsockname" >&5 |
| 40758 |
printf "%s\n" "$mhd_cv_works_func_getsockname" >&6; } |
| 40759 |
if test "x$mhd_cv_works_func_getsockname" = "xyes" || test "x$mhd_cv_works_func_getsockname" = "xassuming yes" |
| 40760 |
then : |
| 40761 |
|
| 40762 |
printf "%s\n" "#define MHD_USE_GETSOCKNAME 1" >>confdefs.h |
| 40763 |
|
| 40764 |
|
| 40765 |
fi |
| 40766 |
# Expansion of MHD_CHECK_FUNC_RUN macro ends here |
| 40767 |
|
| 40768 |
|
| 40769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable PAGESIZE macro" >&5 |
| 40770 |
printf %s "checking for usable PAGESIZE macro... " >&6; } |
| 40771 |
if test ${mhd_cv_macro_pagesize_usable+y} |
| 40772 |
then : |
| 40773 |
printf %s "(cached) " >&6 |
| 40774 |
else case e in #( |
| 40775 |
e) |
| 40776 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40777 |
/* end confdefs.h. */ |
| 40778 |
|
| 40779 |
|
| 40780 |
#ifdef HAVE_UNISTD_H |
| 40781 |
#include <unistd.h> |
| 40782 |
#endif |
| 40783 |
#ifdef HAVE_LIMITS_H |
| 40784 |
#include <limits.h> |
| 40785 |
#endif |
| 40786 |
#ifdef HAVE_SYS_PARAM_H |
| 40787 |
#include <sys/param.h> |
| 40788 |
#endif |
| 40789 |
#ifndef PAGESIZE |
| 40790 |
#error No PAGESIZE macro defined |
| 40791 |
choke me now |
| 40792 |
#endif |
| 40793 |
|
| 40794 |
int |
| 40795 |
main (void) |
| 40796 |
{ |
| 40797 |
|
| 40798 |
long pgsz = PAGESIZE + 0; |
| 40799 |
if (1 > pgsz) return 1; |
| 40800 |
|
| 40801 |
|
| 40802 |
; |
| 40803 |
return 0; |
| 40804 |
} |
| 40805 |
|
| 40806 |
_ACEOF |
| 40807 |
if ac_fn_c_try_link "$LINENO" |
| 40808 |
then : |
| 40809 |
mhd_cv_macro_pagesize_usable="yes" |
| 40810 |
else case e in #( |
| 40811 |
e) mhd_cv_macro_pagesize_usable="no" |
| 40812 |
;; |
| 40813 |
esac |
| 40814 |
fi |
| 40815 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40816 |
conftest$ac_exeext conftest.$ac_ext |
| 40817 |
|
| 40818 |
;; |
| 40819 |
esac |
| 40820 |
fi |
| 40821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_pagesize_usable" >&5 |
| 40822 |
printf "%s\n" "$mhd_cv_macro_pagesize_usable" >&6; } |
| 40823 |
if test "x$mhd_cv_macro_pagesize_usable" = x"yes" |
| 40824 |
then : |
| 40825 |
|
| 40826 |
|
| 40827 |
printf "%s\n" "#define MHD_USE_PAGESIZE_MACRO 1" >>confdefs.h |
| 40828 |
|
| 40829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAGESIZE macro could be used for static init" >&5 |
| 40830 |
printf %s "checking whether PAGESIZE macro could be used for static init... " >&6; } |
| 40831 |
if test ${mhd_cv_macro_pagesize_usable_static+y} |
| 40832 |
then : |
| 40833 |
printf %s "(cached) " >&6 |
| 40834 |
else case e in #( |
| 40835 |
e) |
| 40836 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40837 |
/* end confdefs.h. */ |
| 40838 |
|
| 40839 |
|
| 40840 |
#ifdef HAVE_UNISTD_H |
| 40841 |
#include <unistd.h> |
| 40842 |
#endif |
| 40843 |
#ifdef HAVE_LIMITS_H |
| 40844 |
#include <limits.h> |
| 40845 |
#endif |
| 40846 |
#ifdef HAVE_SYS_PARAM_H |
| 40847 |
#include <sys/param.h> |
| 40848 |
#endif |
| 40849 |
#ifndef PAGESIZE |
| 40850 |
#error No PAGESIZE macro defined |
| 40851 |
choke me now |
| 40852 |
#endif |
| 40853 |
static long ac_pgsz = PAGESIZE + 0; |
| 40854 |
|
| 40855 |
int |
| 40856 |
main (void) |
| 40857 |
{ |
| 40858 |
|
| 40859 |
if (1 > ac_pgsz) return 1; |
| 40860 |
|
| 40861 |
|
| 40862 |
; |
| 40863 |
return 0; |
| 40864 |
} |
| 40865 |
|
| 40866 |
_ACEOF |
| 40867 |
if ac_fn_c_try_link "$LINENO" |
| 40868 |
then : |
| 40869 |
mhd_cv_macro_pagesize_usable_static="yes" |
| 40870 |
else case e in #( |
| 40871 |
e) mhd_cv_macro_pagesize_usable_static="no" |
| 40872 |
;; |
| 40873 |
esac |
| 40874 |
fi |
| 40875 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40876 |
conftest$ac_exeext conftest.$ac_ext |
| 40877 |
|
| 40878 |
;; |
| 40879 |
esac |
| 40880 |
fi |
| 40881 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_pagesize_usable_static" >&5 |
| 40882 |
printf "%s\n" "$mhd_cv_macro_pagesize_usable_static" >&6; } |
| 40883 |
if test "x$mhd_cv_macro_pagesize_usable_static" = x"yes" |
| 40884 |
then : |
| 40885 |
|
| 40886 |
printf "%s\n" "#define MHD_USE_PAGESIZE_MACRO_STATIC 1" >>confdefs.h |
| 40887 |
|
| 40888 |
|
| 40889 |
fi |
| 40890 |
|
| 40891 |
else case e in #( |
| 40892 |
e) |
| 40893 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usable PAGE_SIZE macro" >&5 |
| 40894 |
printf %s "checking for usable PAGE_SIZE macro... " >&6; } |
| 40895 |
if test ${mhd_cv_macro_page_size_usable+y} |
| 40896 |
then : |
| 40897 |
printf %s "(cached) " >&6 |
| 40898 |
else case e in #( |
| 40899 |
e) |
| 40900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40901 |
/* end confdefs.h. */ |
| 40902 |
|
| 40903 |
|
| 40904 |
#ifdef HAVE_UNISTD_H |
| 40905 |
#include <unistd.h> |
| 40906 |
#endif |
| 40907 |
#ifdef HAVE_LIMITS_H |
| 40908 |
#include <limits.h> |
| 40909 |
#endif |
| 40910 |
#ifdef HAVE_SYS_PARAM_H |
| 40911 |
#include <sys/param.h> |
| 40912 |
#endif |
| 40913 |
#ifndef PAGE_SIZE |
| 40914 |
#error No PAGE_SIZE macro defined |
| 40915 |
choke me now |
| 40916 |
#endif |
| 40917 |
|
| 40918 |
int |
| 40919 |
main (void) |
| 40920 |
{ |
| 40921 |
|
| 40922 |
long pgsz = PAGE_SIZE + 0; |
| 40923 |
if (1 > pgsz) return 1; |
| 40924 |
|
| 40925 |
|
| 40926 |
; |
| 40927 |
return 0; |
| 40928 |
} |
| 40929 |
|
| 40930 |
_ACEOF |
| 40931 |
if ac_fn_c_try_link "$LINENO" |
| 40932 |
then : |
| 40933 |
mhd_cv_macro_page_size_usable="yes" |
| 40934 |
else case e in #( |
| 40935 |
e) mhd_cv_macro_page_size_usable="no" |
| 40936 |
;; |
| 40937 |
esac |
| 40938 |
fi |
| 40939 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 40940 |
conftest$ac_exeext conftest.$ac_ext |
| 40941 |
|
| 40942 |
;; |
| 40943 |
esac |
| 40944 |
fi |
| 40945 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_page_size_usable" >&5 |
| 40946 |
printf "%s\n" "$mhd_cv_macro_page_size_usable" >&6; } |
| 40947 |
if test "x$mhd_cv_macro_page_size_usable" = x"yes" |
| 40948 |
then : |
| 40949 |
|
| 40950 |
|
| 40951 |
printf "%s\n" "#define MHD_USE_PAGE_SIZE_MACRO 1" >>confdefs.h |
| 40952 |
|
| 40953 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAGE_SIZE macro could be used for static init" >&5 |
| 40954 |
printf %s "checking whether PAGE_SIZE macro could be used for static init... " >&6; } |
| 40955 |
if test ${mhd_cv_macro_page_size_usable_static+y} |
| 40956 |
then : |
| 40957 |
printf %s "(cached) " >&6 |
| 40958 |
else case e in #( |
| 40959 |
e) |
| 40960 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 40961 |
/* end confdefs.h. */ |
| 40962 |
|
| 40963 |
|
| 40964 |
#ifdef HAVE_UNISTD_H |
| 40965 |
#include <unistd.h> |
| 40966 |
#endif |
| 40967 |
#ifdef HAVE_LIMITS_H |
| 40968 |
#include <limits.h> |
| 40969 |
#endif |
| 40970 |
#ifdef HAVE_SYS_PARAM_H |
| 40971 |
#include <sys/param.h> |
| 40972 |
#endif |
| 40973 |
#ifndef PAGE_SIZE |
| 40974 |
#error No PAGE_SIZE macro defined |
| 40975 |
choke me now |
| 40976 |
#endif |
| 40977 |
static long ac_pgsz = PAGE_SIZE + 0; |
| 40978 |
|
| 40979 |
int |
| 40980 |
main (void) |
| 40981 |
{ |
| 40982 |
|
| 40983 |
if (1 > ac_pgsz) return 1; |
| 40984 |
|
| 40985 |
|
| 40986 |
; |
| 40987 |
return 0; |
| 40988 |
} |
| 40989 |
|
| 40990 |
_ACEOF |
| 40991 |
if ac_fn_c_try_link "$LINENO" |
| 40992 |
then : |
| 40993 |
mhd_cv_macro_page_size_usable_static="yes" |
| 40994 |
else case e in #( |
| 40995 |
e) mhd_cv_macro_page_size_usable_static="no" |
| 40996 |
;; |
| 40997 |
esac |
| 40998 |
fi |
| 40999 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41000 |
conftest$ac_exeext conftest.$ac_ext |
| 41001 |
|
| 41002 |
;; |
| 41003 |
esac |
| 41004 |
fi |
| 41005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_page_size_usable_static" >&5 |
| 41006 |
printf "%s\n" "$mhd_cv_macro_page_size_usable_static" >&6; } |
| 41007 |
if test "x$mhd_cv_macro_page_size_usable_static" = x"yes" |
| 41008 |
then : |
| 41009 |
|
| 41010 |
printf "%s\n" "#define MHD_USE_PAGE_SIZE_MACRO_STATIC 1" >>confdefs.h |
| 41011 |
|
| 41012 |
|
| 41013 |
fi |
| 41014 |
|
| 41015 |
|
| 41016 |
fi |
| 41017 |
|
| 41018 |
;; |
| 41019 |
esac |
| 41020 |
fi |
| 41021 |
|
| 41022 |
# Check for inter-thread signaling type |
| 41023 |
# Check whether --enable-itc was given. |
| 41024 |
if test ${enable_itc+y} |
| 41025 |
then : |
| 41026 |
enableval=$enable_itc; |
| 41027 |
else case e in #( |
| 41028 |
e) enable_itc='auto' |
| 41029 |
;; |
| 41030 |
esac |
| 41031 |
fi |
| 41032 |
|
| 41033 |
|
| 41034 |
case $enable_itc in #( |
| 41035 |
pipe) : |
| 41036 |
: ;; #( |
| 41037 |
socketpair) : |
| 41038 |
: ;; #( |
| 41039 |
eventfd) : |
| 41040 |
: ;; #( |
| 41041 |
auto) : |
| 41042 |
if test "x$os_is_windows" = x"yes" |
| 41043 |
then : |
| 41044 |
enable_itc='socketpair' |
| 41045 |
fi ;; #( |
| 41046 |
eventFD) : |
| 41047 |
enable_itc='eventfd' ;; #( |
| 41048 |
socket) : |
| 41049 |
enable_itc='socketpair' ;; #( |
| 41050 |
no) : |
| 41051 |
as_fn_error $? "inter-thread communication cannot be disabled" "$LINENO" 5 ;; #( |
| 41052 |
*) : |
| 41053 |
as_fn_error $? "unrecognized type \"$enable_itc\" of inter-thread communication specified by \"--enable-itc=$enable_itc\"" "$LINENO" 5 |
| 41054 |
;; |
| 41055 |
esac |
| 41056 |
{ use_itc=; unset use_itc;} |
| 41057 |
|
| 41058 |
if test "x$enable_itc" = "xeventfd" || test "x$enable_itc" = "xauto" |
| 41059 |
then : |
| 41060 |
|
| 41061 |
|
| 41062 |
# Expansion of MHD_CHECK_FUNC_RUN macro starts here |
| 41063 |
if test ${mhd_cv_works_func_eventfd+y} |
| 41064 |
then : |
| 41065 |
|
| 41066 |
else case e in #( |
| 41067 |
e) ac_fn_check_decl "$LINENO" "eventfd" "ac_cv_have_decl_eventfd" " |
| 41068 |
#include <sys/eventfd.h> |
| 41069 |
#include <unistd.h> |
| 41070 |
|
| 41071 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41072 |
if test "x$ac_cv_have_decl_eventfd" = xyes |
| 41073 |
then : |
| 41074 |
|
| 41075 |
else case e in #( |
| 41076 |
e) mhd_cv_works_func_eventfd="no" ;; |
| 41077 |
esac |
| 41078 |
fi ;; |
| 41079 |
esac |
| 41080 |
fi |
| 41081 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'eventfd' available and works" >&5 |
| 41082 |
printf %s "checking whether 'eventfd' available and works... " >&6; } |
| 41083 |
if test ${mhd_cv_works_func_eventfd+y} |
| 41084 |
then : |
| 41085 |
printf %s "(cached) " >&6 |
| 41086 |
else case e in #( |
| 41087 |
e) |
| 41088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41089 |
/* end confdefs.h. */ |
| 41090 |
|
| 41091 |
|
| 41092 |
#include <sys/eventfd.h> |
| 41093 |
#include <unistd.h> |
| 41094 |
|
| 41095 |
|
| 41096 |
int main(void) |
| 41097 |
{ |
| 41098 |
|
| 41099 |
static unsigned char buf[8]; |
| 41100 |
int ret; |
| 41101 |
int efd = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); |
| 41102 |
if (0 > efd) |
| 41103 |
return 2; |
| 41104 |
ret = 0; |
| 41105 |
buf[3] = 1; |
| 41106 |
if (8 != write(efd, buf, 8)) |
| 41107 |
ret = 3; |
| 41108 |
else |
| 41109 |
{ |
| 41110 |
if (8 != read(efd, buf, 8)) |
| 41111 |
ret = 4; |
| 41112 |
} |
| 41113 |
close(efd); |
| 41114 |
return ret; |
| 41115 |
|
| 41116 |
} |
| 41117 |
|
| 41118 |
_ACEOF |
| 41119 |
if test "x$cross_compiling" = x"yes" |
| 41120 |
then : |
| 41121 |
if ac_fn_c_try_link "$LINENO" |
| 41122 |
then : |
| 41123 |
|
| 41124 |
|
| 41125 |
if test "x$enable_itc" = x"eventfd" |
| 41126 |
then : |
| 41127 |
mhd_cv_works_func_eventfd="assuming yes" |
| 41128 |
else case e in #( |
| 41129 |
e) mhd_cv_works_func_eventfd="assuming no" |
| 41130 |
;; |
| 41131 |
esac |
| 41132 |
fi |
| 41133 |
|
| 41134 |
|
| 41135 |
else case e in #( |
| 41136 |
e) mhd_cv_works_func_eventfd='no' ;; |
| 41137 |
esac |
| 41138 |
fi |
| 41139 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41140 |
conftest$ac_exeext |
| 41141 |
else case e in #( |
| 41142 |
e) if test "$cross_compiling" = yes |
| 41143 |
then : |
| 41144 |
# Dummy placeholder |
| 41145 |
else case e in #( |
| 41146 |
e) if ac_fn_c_try_run "$LINENO" |
| 41147 |
then : |
| 41148 |
mhd_cv_works_func_eventfd='yes' |
| 41149 |
else case e in #( |
| 41150 |
e) mhd_cv_works_func_eventfd='no' ;; |
| 41151 |
esac |
| 41152 |
fi |
| 41153 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 41154 |
conftest.$ac_objext conftest.beam ;; |
| 41155 |
esac |
| 41156 |
fi |
| 41157 |
|
| 41158 |
;; |
| 41159 |
esac |
| 41160 |
fi |
| 41161 |
rm -f conftest.$ac_ext |
| 41162 |
;; |
| 41163 |
esac |
| 41164 |
fi |
| 41165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_works_func_eventfd" >&5 |
| 41166 |
printf "%s\n" "$mhd_cv_works_func_eventfd" >&6; } |
| 41167 |
if test "x$mhd_cv_works_func_eventfd" = "xyes" || test "x$mhd_cv_works_func_eventfd" = "xassuming yes" |
| 41168 |
then : |
| 41169 |
|
| 41170 |
use_itc='eventfd' |
| 41171 |
enable_itc="$use_itc" |
| 41172 |
|
| 41173 |
printf "%s\n" "#define _MHD_ITC_EVENTFD 1" >>confdefs.h |
| 41174 |
|
| 41175 |
|
| 41176 |
|
| 41177 |
fi |
| 41178 |
# Expansion of MHD_CHECK_FUNC_RUN macro ends here |
| 41179 |
|
| 41180 |
{ warn_msg=; unset warn_msg;} |
| 41181 |
if test "x$mhd_cv_works_func_eventfd" = x"assuming yes" |
| 41182 |
then : |
| 41183 |
warn_msg="When cross-compiling it is not possible to check whether 'eventfd()' really works on the host (final) platform. |
| 41184 |
'eventfd' is enabled as requested by configure parameters. |
| 41185 |
Use './configure mhd_cv_works_func_eventfd=yes' to mute this warning." |
| 41186 |
|
| 41187 |
fi |
| 41188 |
if test "x$mhd_cv_works_func_eventfd" = x"assuming no" |
| 41189 |
then : |
| 41190 |
warn_msg="When cross-compiling it is not possible to check whether 'eventfd()' really works on the host (final) platform. |
| 41191 |
'eventfd()' is disabled. If it is available use './configure mhd_cv_works_func_eventfd=yes' to enable. |
| 41192 |
Use './configure mhd_cv_works_func_eventfd=no' to mute this warning." |
| 41193 |
|
| 41194 |
fi |
| 41195 |
if test ${warn_msg+y} |
| 41196 |
then : |
| 41197 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $warn_msg" >&5 |
| 41198 |
printf "%s\n" "$as_me: WARNING: $warn_msg" >&2;} |
| 41199 |
if test -n "${CONF_FINAL_WARNS}" |
| 41200 |
then : |
| 41201 |
|
| 41202 |
CONF_FINAL_WARNS="${CONF_FINAL_WARNS} |
| 41203 |
|
| 41204 |
WARNING: " |
| 41205 |
|
| 41206 |
|
| 41207 |
fi |
| 41208 |
CONF_FINAL_WARNS="${CONF_FINAL_WARNS}${warn_msg}" |
| 41209 |
|
| 41210 |
|
| 41211 |
fi |
| 41212 |
|
| 41213 |
|
| 41214 |
fi |
| 41215 |
|
| 41216 |
if test "x$enable_itc" = "xpipe" || test "x$enable_itc" = "xauto" |
| 41217 |
then : |
| 41218 |
|
| 41219 |
if test "x$os_is_native_w32" = x"yes" |
| 41220 |
then : |
| 41221 |
|
| 41222 |
else case e in #( |
| 41223 |
e) |
| 41224 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pipe(3) is usable" >&5 |
| 41225 |
printf %s "checking whether pipe(3) is usable... " >&6; } |
| 41226 |
if test ${mhd_cv_pipe_usable+y} |
| 41227 |
then : |
| 41228 |
printf %s "(cached) " >&6 |
| 41229 |
else case e in #( |
| 41230 |
e) |
| 41231 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41232 |
/* end confdefs.h. */ |
| 41233 |
|
| 41234 |
|
| 41235 |
$ac_includes_default |
| 41236 |
#ifdef HAVE_UNISTD_H |
| 41237 |
#include <unistd.h> |
| 41238 |
#endif |
| 41239 |
|
| 41240 |
int |
| 41241 |
main (void) |
| 41242 |
{ |
| 41243 |
|
| 41244 |
int arr[2]; |
| 41245 |
int res; |
| 41246 |
res = pipe(arr); |
| 41247 |
if (res != 0) return 33; |
| 41248 |
close (arr[0]); |
| 41249 |
close (arr[1]); |
| 41250 |
|
| 41251 |
; |
| 41252 |
return 0; |
| 41253 |
} |
| 41254 |
|
| 41255 |
_ACEOF |
| 41256 |
if ac_fn_c_try_link "$LINENO" |
| 41257 |
then : |
| 41258 |
mhd_cv_pipe_usable='yes' |
| 41259 |
else case e in #( |
| 41260 |
e) mhd_cv_pipe_usable='no' ;; |
| 41261 |
esac |
| 41262 |
fi |
| 41263 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41264 |
conftest$ac_exeext conftest.$ac_ext |
| 41265 |
;; |
| 41266 |
esac |
| 41267 |
fi |
| 41268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_pipe_usable" >&5 |
| 41269 |
printf "%s\n" "$mhd_cv_pipe_usable" >&6; } |
| 41270 |
if test "x$mhd_cv_pipe_usable" = x"yes" |
| 41271 |
then : |
| 41272 |
|
| 41273 |
use_itc='pipe' |
| 41274 |
enable_itc="$use_itc" |
| 41275 |
|
| 41276 |
printf "%s\n" "#define _MHD_ITC_PIPE 1" >>confdefs.h |
| 41277 |
|
| 41278 |
|
| 41279 |
# Expansion of MHD_CHECK_FUNC_RUN macro starts here |
| 41280 |
if test ${mhd_cv_works_func_pipe2+y} |
| 41281 |
then : |
| 41282 |
|
| 41283 |
else case e in #( |
| 41284 |
e) ac_fn_check_decl "$LINENO" "pipe2" "ac_cv_have_decl_pipe2" " |
| 41285 |
$ac_includes_default |
| 41286 |
|
| 41287 |
#ifdef HAVE_FCNTL_H |
| 41288 |
#include <fcntl.h> |
| 41289 |
#endif |
| 41290 |
#ifdef HAVE_UNISTD_H |
| 41291 |
#include <unistd.h> |
| 41292 |
#endif |
| 41293 |
|
| 41294 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41295 |
if test "x$ac_cv_have_decl_pipe2" = xyes |
| 41296 |
then : |
| 41297 |
|
| 41298 |
else case e in #( |
| 41299 |
e) mhd_cv_works_func_pipe2="no" ;; |
| 41300 |
esac |
| 41301 |
fi ;; |
| 41302 |
esac |
| 41303 |
fi |
| 41304 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether 'pipe2' available and works" >&5 |
| 41305 |
printf %s "checking whether 'pipe2' available and works... " >&6; } |
| 41306 |
if test ${mhd_cv_works_func_pipe2+y} |
| 41307 |
then : |
| 41308 |
printf %s "(cached) " >&6 |
| 41309 |
else case e in #( |
| 41310 |
e) |
| 41311 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41312 |
/* end confdefs.h. */ |
| 41313 |
|
| 41314 |
|
| 41315 |
$ac_includes_default |
| 41316 |
|
| 41317 |
#ifdef HAVE_FCNTL_H |
| 41318 |
#include <fcntl.h> |
| 41319 |
#endif |
| 41320 |
#ifdef HAVE_UNISTD_H |
| 41321 |
#include <unistd.h> |
| 41322 |
#endif |
| 41323 |
|
| 41324 |
|
| 41325 |
int main(void) |
| 41326 |
{ |
| 41327 |
|
| 41328 |
int arr[2]; |
| 41329 |
int res; |
| 41330 |
res = pipe2(arr, O_CLOEXEC | O_NONBLOCK); |
| 41331 |
if (res != 0) return 33; |
| 41332 |
close (arr[0]); |
| 41333 |
close (arr[1]); |
| 41334 |
return 0; |
| 41335 |
|
| 41336 |
} |
| 41337 |
|
| 41338 |
_ACEOF |
| 41339 |
if test "x$cross_compiling" = x"yes" |
| 41340 |
then : |
| 41341 |
if ac_fn_c_try_link "$LINENO" |
| 41342 |
then : |
| 41343 |
|
| 41344 |
|
| 41345 |
# Cross-compiling |
| 41346 |
case ${host_os} in #( |
| 41347 |
kfreebsd*-gnu) : |
| 41348 |
mhd_cv_works_func_pipe2='assuming no' ;; #( |
| 41349 |
*) : |
| 41350 |
mhd_cv_works_func_pipe2='assuming yes' ;; |
| 41351 |
esac |
| 41352 |
|
| 41353 |
|
| 41354 |
else case e in #( |
| 41355 |
e) mhd_cv_works_func_pipe2='no' ;; |
| 41356 |
esac |
| 41357 |
fi |
| 41358 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41359 |
conftest$ac_exeext |
| 41360 |
else case e in #( |
| 41361 |
e) if test "$cross_compiling" = yes |
| 41362 |
then : |
| 41363 |
# Dummy placeholder |
| 41364 |
else case e in #( |
| 41365 |
e) if ac_fn_c_try_run "$LINENO" |
| 41366 |
then : |
| 41367 |
mhd_cv_works_func_pipe2='yes' |
| 41368 |
else case e in #( |
| 41369 |
e) mhd_cv_works_func_pipe2='no' ;; |
| 41370 |
esac |
| 41371 |
fi |
| 41372 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 41373 |
conftest.$ac_objext conftest.beam ;; |
| 41374 |
esac |
| 41375 |
fi |
| 41376 |
|
| 41377 |
;; |
| 41378 |
esac |
| 41379 |
fi |
| 41380 |
rm -f conftest.$ac_ext |
| 41381 |
;; |
| 41382 |
esac |
| 41383 |
fi |
| 41384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_works_func_pipe2" >&5 |
| 41385 |
printf "%s\n" "$mhd_cv_works_func_pipe2" >&6; } |
| 41386 |
if test "x$mhd_cv_works_func_pipe2" = "xyes" || test "x$mhd_cv_works_func_pipe2" = "xassuming yes" |
| 41387 |
then : |
| 41388 |
|
| 41389 |
printf "%s\n" "#define HAVE_PIPE2_FUNC 1" >>confdefs.h |
| 41390 |
|
| 41391 |
fi |
| 41392 |
# Expansion of MHD_CHECK_FUNC_RUN macro ends here |
| 41393 |
|
| 41394 |
|
| 41395 |
else case e in #( |
| 41396 |
e) |
| 41397 |
if test "x$enable_itc" = x"pipe" |
| 41398 |
then : |
| 41399 |
as_fn_error $? "pipe(3) is not usable, consider using other type of inter-thread communication" "$LINENO" 5 |
| 41400 |
fi |
| 41401 |
;; |
| 41402 |
esac |
| 41403 |
fi |
| 41404 |
;; |
| 41405 |
esac |
| 41406 |
fi |
| 41407 |
|
| 41408 |
fi |
| 41409 |
|
| 41410 |
if test "x$enable_itc" = "xsocketpair" || test "x$enable_itc" = "xauto" |
| 41411 |
then : |
| 41412 |
|
| 41413 |
if test "x$os_is_native_w32" = x"yes" |
| 41414 |
then : |
| 41415 |
mhd_cv_socketpair_usable='yes' |
| 41416 |
else case e in #( |
| 41417 |
e) |
| 41418 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether socketpair(3) is usable" >&5 |
| 41419 |
printf %s "checking whether socketpair(3) is usable... " >&6; } |
| 41420 |
if test ${mhd_cv_socketpair_usable+y} |
| 41421 |
then : |
| 41422 |
printf %s "(cached) " >&6 |
| 41423 |
else case e in #( |
| 41424 |
e) |
| 41425 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41426 |
/* end confdefs.h. */ |
| 41427 |
|
| 41428 |
|
| 41429 |
$ac_includes_default |
| 41430 |
#ifdef HAVE_SYS_TYPES_H |
| 41431 |
#include <sys/types.h> |
| 41432 |
#endif |
| 41433 |
#ifdef HAVE_SYS_SOCKET_H |
| 41434 |
#include <sys/socket.h> |
| 41435 |
#endif |
| 41436 |
|
| 41437 |
int |
| 41438 |
main (void) |
| 41439 |
{ |
| 41440 |
|
| 41441 |
int arr[2]; |
| 41442 |
int res; |
| 41443 |
#if defined(AF_LOCAL) |
| 41444 |
res = socketpair(AF_LOCAL, SOCK_STREAM, 0, arr); |
| 41445 |
#elif defined(AF_UNIX) |
| 41446 |
res = socketpair(AF_UNIX, SOCK_STREAM, 0, arr); |
| 41447 |
#else |
| 41448 |
#error AF_LOCAL and AF_UNIX are both undefined |
| 41449 |
choke me now; |
| 41450 |
#endif |
| 41451 |
if (res != 0) return 1 |
| 41452 |
|
| 41453 |
; |
| 41454 |
return 0; |
| 41455 |
} |
| 41456 |
|
| 41457 |
_ACEOF |
| 41458 |
if ac_fn_c_try_link "$LINENO" |
| 41459 |
then : |
| 41460 |
mhd_cv_socketpair_usable='yes' |
| 41461 |
else case e in #( |
| 41462 |
e) mhd_cv_socketpair_usable='no' ;; |
| 41463 |
esac |
| 41464 |
fi |
| 41465 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41466 |
conftest$ac_exeext conftest.$ac_ext |
| 41467 |
;; |
| 41468 |
esac |
| 41469 |
fi |
| 41470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_socketpair_usable" >&5 |
| 41471 |
printf "%s\n" "$mhd_cv_socketpair_usable" >&6; } |
| 41472 |
;; |
| 41473 |
esac |
| 41474 |
fi |
| 41475 |
if test "x$mhd_cv_socketpair_usable" = x"yes" |
| 41476 |
then : |
| 41477 |
|
| 41478 |
use_itc='socketpair' |
| 41479 |
enable_itc="$use_itc" |
| 41480 |
|
| 41481 |
printf "%s\n" "#define _MHD_ITC_SOCKETPAIR 1" >>confdefs.h |
| 41482 |
|
| 41483 |
|
| 41484 |
else case e in #( |
| 41485 |
e) |
| 41486 |
if test "x$enable_itc" = x"socketpair" |
| 41487 |
then : |
| 41488 |
as_fn_error $? "socketpair(3) is not usable, consider using other type of inter-thread communication" "$LINENO" 5 |
| 41489 |
fi |
| 41490 |
;; |
| 41491 |
esac |
| 41492 |
fi |
| 41493 |
|
| 41494 |
fi |
| 41495 |
|
| 41496 |
if test -z "$use_itc" |
| 41497 |
then : |
| 41498 |
as_fn_error $? "cannot find usable type of inter-thread communication" "$LINENO" 5 |
| 41499 |
fi |
| 41500 |
|
| 41501 |
|
| 41502 |
|
| 41503 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 41504 |
if test ${mhd_cv_have_func_accept4+y} |
| 41505 |
then : |
| 41506 |
|
| 41507 |
else case e in #( |
| 41508 |
e) ac_fn_check_decl "$LINENO" "accept4" "ac_cv_have_decl_accept4" " |
| 41509 |
#if defined(HAVE_SYS_TYPES_H) |
| 41510 |
# include <sys/types.h> |
| 41511 |
#endif |
| 41512 |
#include <sys/socket.h> |
| 41513 |
|
| 41514 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41515 |
if test "x$ac_cv_have_decl_accept4" = xyes |
| 41516 |
then : |
| 41517 |
|
| 41518 |
else case e in #( |
| 41519 |
e) mhd_cv_have_func_accept4="no" ;; |
| 41520 |
esac |
| 41521 |
fi ;; |
| 41522 |
esac |
| 41523 |
fi |
| 41524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function accept4" >&5 |
| 41525 |
printf %s "checking for function accept4... " >&6; } |
| 41526 |
if test ${mhd_cv_have_func_accept4+y} |
| 41527 |
then : |
| 41528 |
printf %s "(cached) " >&6 |
| 41529 |
else case e in #( |
| 41530 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41531 |
/* end confdefs.h. */ |
| 41532 |
|
| 41533 |
|
| 41534 |
#if defined(HAVE_SYS_TYPES_H) |
| 41535 |
# include <sys/types.h> |
| 41536 |
#endif |
| 41537 |
#include <sys/socket.h> |
| 41538 |
|
| 41539 |
|
| 41540 |
int main(void) |
| 41541 |
{ |
| 41542 |
|
| 41543 |
|
| 41544 |
struct sockaddr sk_addr; |
| 41545 |
socklen_t addr_size; |
| 41546 |
if (0 > accept4(0, &sk_addr, &addr_size, 0)) |
| 41547 |
return 3; |
| 41548 |
|
| 41549 |
|
| 41550 |
|
| 41551 |
return 0; |
| 41552 |
} |
| 41553 |
|
| 41554 |
|
| 41555 |
_ACEOF |
| 41556 |
if ac_fn_c_try_link "$LINENO" |
| 41557 |
then : |
| 41558 |
mhd_cv_have_func_accept4="yes" |
| 41559 |
else case e in #( |
| 41560 |
e) mhd_cv_have_func_accept4="no" ;; |
| 41561 |
esac |
| 41562 |
fi |
| 41563 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41564 |
conftest$ac_exeext conftest.$ac_ext |
| 41565 |
;; |
| 41566 |
esac |
| 41567 |
fi |
| 41568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_accept4" >&5 |
| 41569 |
printf "%s\n" "$mhd_cv_have_func_accept4" >&6; } |
| 41570 |
if test "x$mhd_cv_have_func_accept4" = x"yes" |
| 41571 |
then : |
| 41572 |
|
| 41573 |
printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h |
| 41574 |
|
| 41575 |
|
| 41576 |
fi |
| 41577 |
|
| 41578 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 41579 |
|
| 41580 |
|
| 41581 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 41582 |
if test ${mhd_cv_have_func_gmtime_r+y} |
| 41583 |
then : |
| 41584 |
|
| 41585 |
else case e in #( |
| 41586 |
e) ac_fn_check_decl "$LINENO" "gmtime_r" "ac_cv_have_decl_gmtime_r" " |
| 41587 |
#if defined(HAVE_SYS_TYPES_H) |
| 41588 |
# include <sys/types.h> |
| 41589 |
#endif |
| 41590 |
#include <time.h> |
| 41591 |
|
| 41592 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41593 |
if test "x$ac_cv_have_decl_gmtime_r" = xyes |
| 41594 |
then : |
| 41595 |
|
| 41596 |
else case e in #( |
| 41597 |
e) mhd_cv_have_func_gmtime_r="no" ;; |
| 41598 |
esac |
| 41599 |
fi ;; |
| 41600 |
esac |
| 41601 |
fi |
| 41602 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function gmtime_r" >&5 |
| 41603 |
printf %s "checking for function gmtime_r... " >&6; } |
| 41604 |
if test ${mhd_cv_have_func_gmtime_r+y} |
| 41605 |
then : |
| 41606 |
printf %s "(cached) " >&6 |
| 41607 |
else case e in #( |
| 41608 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41609 |
/* end confdefs.h. */ |
| 41610 |
|
| 41611 |
|
| 41612 |
#if defined(HAVE_SYS_TYPES_H) |
| 41613 |
# include <sys/types.h> |
| 41614 |
#endif |
| 41615 |
#include <time.h> |
| 41616 |
|
| 41617 |
|
| 41618 |
int main(void) |
| 41619 |
{ |
| 41620 |
|
| 41621 |
|
| 41622 |
time_t timer = (time_t) 0; |
| 41623 |
struct tm res; |
| 41624 |
|
| 41625 |
if (&res != gmtime_r(&timer, &res)) |
| 41626 |
return 3; |
| 41627 |
|
| 41628 |
|
| 41629 |
|
| 41630 |
return 0; |
| 41631 |
} |
| 41632 |
|
| 41633 |
|
| 41634 |
_ACEOF |
| 41635 |
if ac_fn_c_try_link "$LINENO" |
| 41636 |
then : |
| 41637 |
mhd_cv_have_func_gmtime_r="yes" |
| 41638 |
else case e in #( |
| 41639 |
e) mhd_cv_have_func_gmtime_r="no" ;; |
| 41640 |
esac |
| 41641 |
fi |
| 41642 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41643 |
conftest$ac_exeext conftest.$ac_ext |
| 41644 |
;; |
| 41645 |
esac |
| 41646 |
fi |
| 41647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_gmtime_r" >&5 |
| 41648 |
printf "%s\n" "$mhd_cv_have_func_gmtime_r" >&6; } |
| 41649 |
if test "x$mhd_cv_have_func_gmtime_r" = x"yes" |
| 41650 |
then : |
| 41651 |
|
| 41652 |
printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h |
| 41653 |
|
| 41654 |
|
| 41655 |
fi |
| 41656 |
|
| 41657 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 41658 |
|
| 41659 |
|
| 41660 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 41661 |
if test ${mhd_cv_have_func_memmem+y} |
| 41662 |
then : |
| 41663 |
|
| 41664 |
else case e in #( |
| 41665 |
e) ac_fn_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" " |
| 41666 |
#if defined(HAVE_STDDEF_H) |
| 41667 |
# include <stddef.h> |
| 41668 |
#elif defined(HAVE_STDLIB_H) |
| 41669 |
# include <stdlib.h> |
| 41670 |
#endif /* HAVE_STDLIB_H */ |
| 41671 |
#include <string.h> |
| 41672 |
|
| 41673 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41674 |
if test "x$ac_cv_have_decl_memmem" = xyes |
| 41675 |
then : |
| 41676 |
|
| 41677 |
else case e in #( |
| 41678 |
e) mhd_cv_have_func_memmem="no" ;; |
| 41679 |
esac |
| 41680 |
fi ;; |
| 41681 |
esac |
| 41682 |
fi |
| 41683 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function memmem" >&5 |
| 41684 |
printf %s "checking for function memmem... " >&6; } |
| 41685 |
if test ${mhd_cv_have_func_memmem+y} |
| 41686 |
then : |
| 41687 |
printf %s "(cached) " >&6 |
| 41688 |
else case e in #( |
| 41689 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41690 |
/* end confdefs.h. */ |
| 41691 |
|
| 41692 |
|
| 41693 |
#if defined(HAVE_STDDEF_H) |
| 41694 |
# include <stddef.h> |
| 41695 |
#elif defined(HAVE_STDLIB_H) |
| 41696 |
# include <stdlib.h> |
| 41697 |
#endif /* HAVE_STDLIB_H */ |
| 41698 |
#include <string.h> |
| 41699 |
|
| 41700 |
|
| 41701 |
int main(void) |
| 41702 |
{ |
| 41703 |
|
| 41704 |
|
| 41705 |
const char *haystack = "abc"; |
| 41706 |
size_t hslen = 3; |
| 41707 |
const char *needle = "b"; |
| 41708 |
size_t needlelen = 1; |
| 41709 |
|
| 41710 |
if ((haystack + 1) != memmem(haystack, hslen, needle, needlelen)) |
| 41711 |
return 3; |
| 41712 |
|
| 41713 |
|
| 41714 |
|
| 41715 |
return 0; |
| 41716 |
} |
| 41717 |
|
| 41718 |
|
| 41719 |
_ACEOF |
| 41720 |
if ac_fn_c_try_link "$LINENO" |
| 41721 |
then : |
| 41722 |
mhd_cv_have_func_memmem="yes" |
| 41723 |
else case e in #( |
| 41724 |
e) mhd_cv_have_func_memmem="no" ;; |
| 41725 |
esac |
| 41726 |
fi |
| 41727 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41728 |
conftest$ac_exeext conftest.$ac_ext |
| 41729 |
;; |
| 41730 |
esac |
| 41731 |
fi |
| 41732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_memmem" >&5 |
| 41733 |
printf "%s\n" "$mhd_cv_have_func_memmem" >&6; } |
| 41734 |
if test "x$mhd_cv_have_func_memmem" = x"yes" |
| 41735 |
then : |
| 41736 |
|
| 41737 |
printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h |
| 41738 |
|
| 41739 |
|
| 41740 |
fi |
| 41741 |
|
| 41742 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 41743 |
|
| 41744 |
|
| 41745 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 41746 |
if test ${mhd_cv_have_func_snprintf+y} |
| 41747 |
then : |
| 41748 |
|
| 41749 |
else case e in #( |
| 41750 |
e) ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" " |
| 41751 |
#include <stdio.h> |
| 41752 |
|
| 41753 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41754 |
if test "x$ac_cv_have_decl_snprintf" = xyes |
| 41755 |
then : |
| 41756 |
|
| 41757 |
else case e in #( |
| 41758 |
e) mhd_cv_have_func_snprintf="no" ;; |
| 41759 |
esac |
| 41760 |
fi ;; |
| 41761 |
esac |
| 41762 |
fi |
| 41763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function snprintf" >&5 |
| 41764 |
printf %s "checking for function snprintf... " >&6; } |
| 41765 |
if test ${mhd_cv_have_func_snprintf+y} |
| 41766 |
then : |
| 41767 |
printf %s "(cached) " >&6 |
| 41768 |
else case e in #( |
| 41769 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41770 |
/* end confdefs.h. */ |
| 41771 |
|
| 41772 |
|
| 41773 |
#include <stdio.h> |
| 41774 |
|
| 41775 |
|
| 41776 |
int main(void) |
| 41777 |
{ |
| 41778 |
|
| 41779 |
|
| 41780 |
char buf[2]; |
| 41781 |
|
| 41782 |
if (1 != snprintf(buf, 2, "a")) |
| 41783 |
return 3; |
| 41784 |
/* Do not use the next check to avoid compiler warning */ |
| 41785 |
/* if (4 != snprintf(buf, 2, "abcd")) |
| 41786 |
return 4; */ |
| 41787 |
|
| 41788 |
|
| 41789 |
|
| 41790 |
return 0; |
| 41791 |
} |
| 41792 |
|
| 41793 |
|
| 41794 |
_ACEOF |
| 41795 |
if ac_fn_c_try_link "$LINENO" |
| 41796 |
then : |
| 41797 |
mhd_cv_have_func_snprintf="yes" |
| 41798 |
else case e in #( |
| 41799 |
e) mhd_cv_have_func_snprintf="no" ;; |
| 41800 |
esac |
| 41801 |
fi |
| 41802 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41803 |
conftest$ac_exeext conftest.$ac_ext |
| 41804 |
;; |
| 41805 |
esac |
| 41806 |
fi |
| 41807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_snprintf" >&5 |
| 41808 |
printf "%s\n" "$mhd_cv_have_func_snprintf" >&6; } |
| 41809 |
if test "x$mhd_cv_have_func_snprintf" = x"yes" |
| 41810 |
then : |
| 41811 |
|
| 41812 |
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 41813 |
|
| 41814 |
|
| 41815 |
fi |
| 41816 |
|
| 41817 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 41818 |
|
| 41819 |
ac_fn_check_decl "$LINENO" "gmtime_s" "ac_cv_have_decl_gmtime_s" "#define __STDC_WANT_LIB_EXT1__ 1 |
| 41820 |
#include <time.h> |
| 41821 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41822 |
if test "x$ac_cv_have_decl_gmtime_s" = xyes |
| 41823 |
then : |
| 41824 |
|
| 41825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_s is in C11 form" >&5 |
| 41826 |
printf %s "checking whether gmtime_s is in C11 form... " >&6; } |
| 41827 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41828 |
/* end confdefs.h. */ |
| 41829 |
|
| 41830 |
#define __STDC_WANT_LIB_EXT1__ 1 |
| 41831 |
#include <time.h> |
| 41832 |
#ifdef __cplusplus |
| 41833 |
extern "C" |
| 41834 |
#endif |
| 41835 |
struct tm* gmtime_s(const time_t* time, struct tm* result); |
| 41836 |
|
| 41837 |
int |
| 41838 |
main (void) |
| 41839 |
{ |
| 41840 |
|
| 41841 |
static struct tm res; |
| 41842 |
static time_t t = 0; |
| 41843 |
gmtime_s (&t, &res); |
| 41844 |
|
| 41845 |
; |
| 41846 |
return 0; |
| 41847 |
} |
| 41848 |
|
| 41849 |
_ACEOF |
| 41850 |
if ac_fn_c_try_link "$LINENO" |
| 41851 |
then : |
| 41852 |
|
| 41853 |
|
| 41854 |
printf "%s\n" "#define HAVE_C11_GMTIME_S 1" >>confdefs.h |
| 41855 |
|
| 41856 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 41857 |
printf "%s\n" "yes" >&6; } |
| 41858 |
|
| 41859 |
else case e in #( |
| 41860 |
e) |
| 41861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 41862 |
printf "%s\n" "no" >&6; } |
| 41863 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gmtime_s is in W32 form" >&5 |
| 41864 |
printf %s "checking whether gmtime_s is in W32 form... " >&6; } |
| 41865 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41866 |
/* end confdefs.h. */ |
| 41867 |
|
| 41868 |
#include <time.h> |
| 41869 |
#ifdef __cplusplus |
| 41870 |
extern "C" |
| 41871 |
#endif |
| 41872 |
errno_t gmtime_s(struct tm* _tm, const time_t* time); |
| 41873 |
|
| 41874 |
int |
| 41875 |
main (void) |
| 41876 |
{ |
| 41877 |
|
| 41878 |
static struct tm res; |
| 41879 |
static time_t t = 0; |
| 41880 |
gmtime_s (&res, &t); |
| 41881 |
|
| 41882 |
; |
| 41883 |
return 0; |
| 41884 |
} |
| 41885 |
|
| 41886 |
_ACEOF |
| 41887 |
if ac_fn_c_try_link "$LINENO" |
| 41888 |
then : |
| 41889 |
|
| 41890 |
|
| 41891 |
printf "%s\n" "#define HAVE_W32_GMTIME_S 1" >>confdefs.h |
| 41892 |
|
| 41893 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 41894 |
printf "%s\n" "yes" >&6; } |
| 41895 |
|
| 41896 |
else case e in #( |
| 41897 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 41898 |
printf "%s\n" "no" >&6; } |
| 41899 |
;; |
| 41900 |
esac |
| 41901 |
fi |
| 41902 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41903 |
conftest$ac_exeext conftest.$ac_ext |
| 41904 |
;; |
| 41905 |
esac |
| 41906 |
fi |
| 41907 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 41908 |
conftest$ac_exeext conftest.$ac_ext |
| 41909 |
|
| 41910 |
fi |
| 41911 |
|
| 41912 |
|
| 41913 |
ac_fn_check_decl "$LINENO" "SOCK_NONBLOCK" "ac_cv_have_decl_SOCK_NONBLOCK" " |
| 41914 |
#if defined(HAVE_SYS_TYPES_H) |
| 41915 |
# include <sys/types.h> |
| 41916 |
#endif |
| 41917 |
#if defined(HAVE_SYS_SOCKET_H) |
| 41918 |
# include <sys/socket.h> |
| 41919 |
#elif defined(HAVE_WINSOCK2_H) |
| 41920 |
# include <winsock2.h> |
| 41921 |
#endif |
| 41922 |
|
| 41923 |
|
| 41924 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41925 |
if test "x$ac_cv_have_decl_SOCK_NONBLOCK" = xyes |
| 41926 |
then : |
| 41927 |
|
| 41928 |
printf "%s\n" "#define HAVE_SOCK_NONBLOCK 1" >>confdefs.h |
| 41929 |
|
| 41930 |
fi |
| 41931 |
|
| 41932 |
|
| 41933 |
# Expansion of MHD_FIND_LIB macro starts here |
| 41934 |
if test ${mhd_cv_find_lib_clock_gettime+y} |
| 41935 |
then : |
| 41936 |
|
| 41937 |
else case e in #( |
| 41938 |
e) ac_fn_check_decl "$LINENO" "clock_gettime" "ac_cv_have_decl_clock_gettime" "#include <time.h> |
| 41939 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 41940 |
if test "x$ac_cv_have_decl_clock_gettime" = xyes |
| 41941 |
then : |
| 41942 |
|
| 41943 |
fi ;; |
| 41944 |
esac |
| 41945 |
fi |
| 41946 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing function clock_gettime" >&5 |
| 41947 |
printf %s "checking for library containing function clock_gettime... " >&6; } |
| 41948 |
if test ${mhd_cv_find_lib_clock_gettime+y} |
| 41949 |
then : |
| 41950 |
printf %s "(cached) " >&6 |
| 41951 |
else case e in #( |
| 41952 |
e) |
| 41953 |
if test "x$ac_cv_have_decl_clock_gettime" = x"yes" |
| 41954 |
then : |
| 41955 |
mhd_find_lib_SAVE_LIBS="$LIBS" |
| 41956 |
mhd_find_lib_CHECK_LIBS="$MHD_LIBDEPS $LIBS" |
| 41957 |
|
| 41958 |
|
| 41959 |
# Reuse the same source file |
| 41960 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 41961 |
/* end confdefs.h. */ |
| 41962 |
|
| 41963 |
#include <time.h> |
| 41964 |
|
| 41965 |
int main(void) |
| 41966 |
{ |
| 41967 |
|
| 41968 |
|
| 41969 |
struct timespec tp; |
| 41970 |
if (0 > clock_gettime(CLOCK_REALTIME, &tp)) |
| 41971 |
return 3; |
| 41972 |
|
| 41973 |
|
| 41974 |
return 0; |
| 41975 |
} |
| 41976 |
|
| 41977 |
|
| 41978 |
|
| 41979 |
_ACEOF |
| 41980 |
for mhd_find_lib_LIB in '' rt |
| 41981 |
do |
| 41982 |
if test -z "${mhd_find_lib_LIB}" |
| 41983 |
then : |
| 41984 |
LIBS="${mhd_find_lib_CHECK_LIBS}" |
| 41985 |
else case e in #( |
| 41986 |
e) LIBS="-l${mhd_find_lib_LIB} ${mhd_find_lib_CHECK_LIBS}" |
| 41987 |
;; |
| 41988 |
esac |
| 41989 |
fi |
| 41990 |
if ac_fn_c_try_link "$LINENO" |
| 41991 |
then : |
| 41992 |
|
| 41993 |
if test -z "${mhd_find_lib_LIB}" |
| 41994 |
then : |
| 41995 |
mhd_cv_find_lib_clock_gettime="none required" |
| 41996 |
else case e in #( |
| 41997 |
e) mhd_cv_find_lib_clock_gettime="-l${mhd_find_lib_LIB}" |
| 41998 |
;; |
| 41999 |
esac |
| 42000 |
fi |
| 42001 |
|
| 42002 |
|
| 42003 |
fi |
| 42004 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42005 |
conftest$ac_exeext |
| 42006 |
if test ${mhd_cv_find_lib_clock_gettime+y} |
| 42007 |
then : |
| 42008 |
break |
| 42009 |
fi |
| 42010 |
done |
| 42011 |
{ mhd_find_lib_LIB=; unset mhd_find_lib_LIB;} |
| 42012 |
rm -f conftest.$ac_ext |
| 42013 |
LIBS="${mhd_find_lib_SAVE_LIBS}" |
| 42014 |
{ mhd_find_lib_SAVE_LIBS=; unset mhd_find_lib_SAVE_LIBS;} |
| 42015 |
|
| 42016 |
|
| 42017 |
fi |
| 42018 |
if test ${mhd_cv_find_lib_clock_gettime+y} |
| 42019 |
then : |
| 42020 |
: |
| 42021 |
else case e in #( |
| 42022 |
e) mhd_cv_find_lib_clock_gettime="no" ;; |
| 42023 |
esac |
| 42024 |
fi |
| 42025 |
|
| 42026 |
;; |
| 42027 |
esac |
| 42028 |
fi |
| 42029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_find_lib_clock_gettime" >&5 |
| 42030 |
printf "%s\n" "$mhd_cv_find_lib_clock_gettime" >&6; } |
| 42031 |
if test "x${mhd_cv_find_lib_clock_gettime}" != "xno" |
| 42032 |
then : |
| 42033 |
if test "x$mhd_cv_find_lib_clock_gettime" = x"none required" |
| 42034 |
then : |
| 42035 |
: |
| 42036 |
else case e in #( |
| 42037 |
e) |
| 42038 |
if test -z "$MHD_LIBDEPS" |
| 42039 |
then : |
| 42040 |
MHD_LIBDEPS="${mhd_cv_find_lib_clock_gettime}" |
| 42041 |
else case e in #( |
| 42042 |
e) MHD_LIBDEPS="${mhd_cv_find_lib_clock_gettime} $MHD_LIBDEPS" ;; |
| 42043 |
esac |
| 42044 |
fi |
| 42045 |
|
| 42046 |
;; |
| 42047 |
esac |
| 42048 |
fi |
| 42049 |
|
| 42050 |
|
| 42051 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 42052 |
|
| 42053 |
if test "x$mhd_cv_find_lib_clock_gettime" = x"none required" |
| 42054 |
then : |
| 42055 |
|
| 42056 |
else case e in #( |
| 42057 |
e) |
| 42058 |
MHD_LIBDEPS_PKGCFG="${mhd_cv_find_lib_clock_gettime} $MHD_LIBDEPS_PKGCFG" |
| 42059 |
|
| 42060 |
;; |
| 42061 |
esac |
| 42062 |
fi |
| 42063 |
|
| 42064 |
|
| 42065 |
fi |
| 42066 |
# Expansion of _MHD_FIND_LIB_BODY macro ends here |
| 42067 |
|
| 42068 |
|
| 42069 |
|
| 42070 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42071 |
if test ${mhd_cv_have_func_clock_get_time+y} |
| 42072 |
then : |
| 42073 |
|
| 42074 |
else case e in #( |
| 42075 |
e) ac_fn_check_decl "$LINENO" "clock_get_time" "ac_cv_have_decl_clock_get_time" " |
| 42076 |
#include <mach/clock.h> |
| 42077 |
#include <mach/mach.h> |
| 42078 |
|
| 42079 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42080 |
if test "x$ac_cv_have_decl_clock_get_time" = xyes |
| 42081 |
then : |
| 42082 |
|
| 42083 |
else case e in #( |
| 42084 |
e) mhd_cv_have_func_clock_get_time="no" ;; |
| 42085 |
esac |
| 42086 |
fi ;; |
| 42087 |
esac |
| 42088 |
fi |
| 42089 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function clock_get_time" >&5 |
| 42090 |
printf %s "checking for function clock_get_time... " >&6; } |
| 42091 |
if test ${mhd_cv_have_func_clock_get_time+y} |
| 42092 |
then : |
| 42093 |
printf %s "(cached) " >&6 |
| 42094 |
else case e in #( |
| 42095 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42096 |
/* end confdefs.h. */ |
| 42097 |
|
| 42098 |
|
| 42099 |
#include <mach/clock.h> |
| 42100 |
#include <mach/mach.h> |
| 42101 |
|
| 42102 |
|
| 42103 |
int main(void) |
| 42104 |
{ |
| 42105 |
|
| 42106 |
|
| 42107 |
clock_serv_t cs; |
| 42108 |
mach_timespec_t mt; |
| 42109 |
host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &cs); |
| 42110 |
clock_get_time(cs, &mt); |
| 42111 |
mach_port_deallocate(mach_task_self(), cs); |
| 42112 |
|
| 42113 |
|
| 42114 |
|
| 42115 |
return 0; |
| 42116 |
} |
| 42117 |
|
| 42118 |
|
| 42119 |
_ACEOF |
| 42120 |
if ac_fn_c_try_link "$LINENO" |
| 42121 |
then : |
| 42122 |
mhd_cv_have_func_clock_get_time="yes" |
| 42123 |
else case e in #( |
| 42124 |
e) mhd_cv_have_func_clock_get_time="no" ;; |
| 42125 |
esac |
| 42126 |
fi |
| 42127 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42128 |
conftest$ac_exeext conftest.$ac_ext |
| 42129 |
;; |
| 42130 |
esac |
| 42131 |
fi |
| 42132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_clock_get_time" >&5 |
| 42133 |
printf "%s\n" "$mhd_cv_have_func_clock_get_time" >&6; } |
| 42134 |
if test "x$mhd_cv_have_func_clock_get_time" = x"yes" |
| 42135 |
then : |
| 42136 |
|
| 42137 |
printf "%s\n" "#define HAVE_CLOCK_GET_TIME 1" >>confdefs.h |
| 42138 |
|
| 42139 |
|
| 42140 |
fi |
| 42141 |
|
| 42142 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42143 |
|
| 42144 |
|
| 42145 |
|
| 42146 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42147 |
if test ${mhd_cv_have_func_gethrtime+y} |
| 42148 |
then : |
| 42149 |
|
| 42150 |
else case e in #( |
| 42151 |
e) ac_fn_check_decl "$LINENO" "gethrtime" "ac_cv_have_decl_gethrtime" " |
| 42152 |
#ifdef HAVE_SYS_TIME_H |
| 42153 |
/* Solaris define gethrtime() in sys/time.h */ |
| 42154 |
#include <sys/time.h> |
| 42155 |
#endif /* HAVE_SYS_TIME_H */ |
| 42156 |
#ifdef HAVE_TIME_H |
| 42157 |
/* HP-UX define gethrtime() in time.h */ |
| 42158 |
#include <time.h> |
| 42159 |
#endif /* HAVE_TIME_H */ |
| 42160 |
|
| 42161 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42162 |
if test "x$ac_cv_have_decl_gethrtime" = xyes |
| 42163 |
then : |
| 42164 |
|
| 42165 |
else case e in #( |
| 42166 |
e) mhd_cv_have_func_gethrtime="no" ;; |
| 42167 |
esac |
| 42168 |
fi ;; |
| 42169 |
esac |
| 42170 |
fi |
| 42171 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function gethrtime" >&5 |
| 42172 |
printf %s "checking for function gethrtime... " >&6; } |
| 42173 |
if test ${mhd_cv_have_func_gethrtime+y} |
| 42174 |
then : |
| 42175 |
printf %s "(cached) " >&6 |
| 42176 |
else case e in #( |
| 42177 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42178 |
/* end confdefs.h. */ |
| 42179 |
|
| 42180 |
|
| 42181 |
#ifdef HAVE_SYS_TIME_H |
| 42182 |
/* Solaris define gethrtime() in sys/time.h */ |
| 42183 |
#include <sys/time.h> |
| 42184 |
#endif /* HAVE_SYS_TIME_H */ |
| 42185 |
#ifdef HAVE_TIME_H |
| 42186 |
/* HP-UX define gethrtime() in time.h */ |
| 42187 |
#include <time.h> |
| 42188 |
#endif /* HAVE_TIME_H */ |
| 42189 |
|
| 42190 |
|
| 42191 |
int main(void) |
| 42192 |
{ |
| 42193 |
|
| 42194 |
|
| 42195 |
hrtime_t hrt = gethrtime(); |
| 42196 |
if (0 == hrt) |
| 42197 |
return 3; |
| 42198 |
|
| 42199 |
|
| 42200 |
|
| 42201 |
return 0; |
| 42202 |
} |
| 42203 |
|
| 42204 |
|
| 42205 |
_ACEOF |
| 42206 |
if ac_fn_c_try_link "$LINENO" |
| 42207 |
then : |
| 42208 |
mhd_cv_have_func_gethrtime="yes" |
| 42209 |
else case e in #( |
| 42210 |
e) mhd_cv_have_func_gethrtime="no" ;; |
| 42211 |
esac |
| 42212 |
fi |
| 42213 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42214 |
conftest$ac_exeext conftest.$ac_ext |
| 42215 |
;; |
| 42216 |
esac |
| 42217 |
fi |
| 42218 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_gethrtime" >&5 |
| 42219 |
printf "%s\n" "$mhd_cv_have_func_gethrtime" >&6; } |
| 42220 |
if test "x$mhd_cv_have_func_gethrtime" = x"yes" |
| 42221 |
then : |
| 42222 |
|
| 42223 |
printf "%s\n" "#define HAVE_GETHRTIME 1" >>confdefs.h |
| 42224 |
|
| 42225 |
|
| 42226 |
fi |
| 42227 |
|
| 42228 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42229 |
|
| 42230 |
|
| 42231 |
if test "x$ac_cv_header_time_h" = x"yes" |
| 42232 |
then : |
| 42233 |
|
| 42234 |
|
| 42235 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42236 |
if test ${mhd_cv_have_func_timespec_get+y} |
| 42237 |
then : |
| 42238 |
|
| 42239 |
else case e in #( |
| 42240 |
e) ac_fn_check_decl "$LINENO" "timespec_get" "ac_cv_have_decl_timespec_get" " |
| 42241 |
#include <time.h> |
| 42242 |
|
| 42243 |
#ifndef TIME_UTC |
| 42244 |
#error TIME_UTC must be defined to use timespec_get() |
| 42245 |
choke me now |
| 42246 |
#endif |
| 42247 |
|
| 42248 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42249 |
if test "x$ac_cv_have_decl_timespec_get" = xyes |
| 42250 |
then : |
| 42251 |
|
| 42252 |
else case e in #( |
| 42253 |
e) mhd_cv_have_func_timespec_get="no" ;; |
| 42254 |
esac |
| 42255 |
fi ;; |
| 42256 |
esac |
| 42257 |
fi |
| 42258 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function timespec_get" >&5 |
| 42259 |
printf %s "checking for function timespec_get... " >&6; } |
| 42260 |
if test ${mhd_cv_have_func_timespec_get+y} |
| 42261 |
then : |
| 42262 |
printf %s "(cached) " >&6 |
| 42263 |
else case e in #( |
| 42264 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42265 |
/* end confdefs.h. */ |
| 42266 |
|
| 42267 |
|
| 42268 |
#include <time.h> |
| 42269 |
|
| 42270 |
#ifndef TIME_UTC |
| 42271 |
#error TIME_UTC must be defined to use timespec_get() |
| 42272 |
choke me now |
| 42273 |
#endif |
| 42274 |
|
| 42275 |
|
| 42276 |
int main(void) |
| 42277 |
{ |
| 42278 |
|
| 42279 |
|
| 42280 |
struct timespec ts; |
| 42281 |
if (TIME_UTC != timespec_get (&ts, TIME_UTC)) |
| 42282 |
return 3; |
| 42283 |
|
| 42284 |
|
| 42285 |
|
| 42286 |
return 0; |
| 42287 |
} |
| 42288 |
|
| 42289 |
|
| 42290 |
_ACEOF |
| 42291 |
if ac_fn_c_try_link "$LINENO" |
| 42292 |
then : |
| 42293 |
mhd_cv_have_func_timespec_get="yes" |
| 42294 |
else case e in #( |
| 42295 |
e) mhd_cv_have_func_timespec_get="no" ;; |
| 42296 |
esac |
| 42297 |
fi |
| 42298 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42299 |
conftest$ac_exeext conftest.$ac_ext |
| 42300 |
;; |
| 42301 |
esac |
| 42302 |
fi |
| 42303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_timespec_get" >&5 |
| 42304 |
printf "%s\n" "$mhd_cv_have_func_timespec_get" >&6; } |
| 42305 |
if test "x$mhd_cv_have_func_timespec_get" = x"yes" |
| 42306 |
then : |
| 42307 |
|
| 42308 |
printf "%s\n" "#define HAVE_TIMESPEC_GET 1" >>confdefs.h |
| 42309 |
|
| 42310 |
|
| 42311 |
fi |
| 42312 |
|
| 42313 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42314 |
|
| 42315 |
|
| 42316 |
|
| 42317 |
fi |
| 42318 |
|
| 42319 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 42320 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 42321 |
then : |
| 42322 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 42323 |
|
| 42324 |
fi |
| 42325 |
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 42326 |
if test "x$ac_cv_header_time_h" = xyes |
| 42327 |
then : |
| 42328 |
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 42329 |
|
| 42330 |
fi |
| 42331 |
|
| 42332 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42333 |
if test ${mhd_cv_have_func_gettimeofday+y} |
| 42334 |
then : |
| 42335 |
|
| 42336 |
else case e in #( |
| 42337 |
e) ac_fn_check_decl "$LINENO" "gettimeofday" "ac_cv_have_decl_gettimeofday" " |
| 42338 |
#ifdef HAVE_SYS_TIME_H |
| 42339 |
#include <sys/time.h> |
| 42340 |
#endif /* HAVE_SYS_TIME_H */ |
| 42341 |
#ifdef HAVE_TIME_H |
| 42342 |
#include <time.h> |
| 42343 |
#endif /* HAVE_TIME_H */ |
| 42344 |
|
| 42345 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42346 |
if test "x$ac_cv_have_decl_gettimeofday" = xyes |
| 42347 |
then : |
| 42348 |
|
| 42349 |
else case e in #( |
| 42350 |
e) mhd_cv_have_func_gettimeofday="no" ;; |
| 42351 |
esac |
| 42352 |
fi ;; |
| 42353 |
esac |
| 42354 |
fi |
| 42355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function gettimeofday" >&5 |
| 42356 |
printf %s "checking for function gettimeofday... " >&6; } |
| 42357 |
if test ${mhd_cv_have_func_gettimeofday+y} |
| 42358 |
then : |
| 42359 |
printf %s "(cached) " >&6 |
| 42360 |
else case e in #( |
| 42361 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42362 |
/* end confdefs.h. */ |
| 42363 |
|
| 42364 |
|
| 42365 |
#ifdef HAVE_SYS_TIME_H |
| 42366 |
#include <sys/time.h> |
| 42367 |
#endif /* HAVE_SYS_TIME_H */ |
| 42368 |
#ifdef HAVE_TIME_H |
| 42369 |
#include <time.h> |
| 42370 |
#endif /* HAVE_TIME_H */ |
| 42371 |
|
| 42372 |
|
| 42373 |
int main(void) |
| 42374 |
{ |
| 42375 |
|
| 42376 |
|
| 42377 |
struct timeval tv; |
| 42378 |
if (0 != gettimeofday (&tv, (void*) 0)) |
| 42379 |
return 1; |
| 42380 |
|
| 42381 |
|
| 42382 |
return 0; |
| 42383 |
} |
| 42384 |
|
| 42385 |
|
| 42386 |
_ACEOF |
| 42387 |
if ac_fn_c_try_link "$LINENO" |
| 42388 |
then : |
| 42389 |
mhd_cv_have_func_gettimeofday="yes" |
| 42390 |
else case e in #( |
| 42391 |
e) mhd_cv_have_func_gettimeofday="no" ;; |
| 42392 |
esac |
| 42393 |
fi |
| 42394 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42395 |
conftest$ac_exeext conftest.$ac_ext |
| 42396 |
;; |
| 42397 |
esac |
| 42398 |
fi |
| 42399 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_gettimeofday" >&5 |
| 42400 |
printf "%s\n" "$mhd_cv_have_func_gettimeofday" >&6; } |
| 42401 |
if test "x$mhd_cv_have_func_gettimeofday" = x"yes" |
| 42402 |
then : |
| 42403 |
|
| 42404 |
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 42405 |
|
| 42406 |
|
| 42407 |
fi |
| 42408 |
|
| 42409 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42410 |
|
| 42411 |
|
| 42412 |
|
| 42413 |
# IPv6 |
| 42414 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPv6" >&5 |
| 42415 |
printf %s "checking for IPv6... " >&6; } |
| 42416 |
if test ${mhd_cv_have_inet6+y} |
| 42417 |
then : |
| 42418 |
printf %s "(cached) " >&6 |
| 42419 |
else case e in #( |
| 42420 |
e) |
| 42421 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42422 |
/* end confdefs.h. */ |
| 42423 |
|
| 42424 |
#include <stdio.h> |
| 42425 |
#ifdef HAVE_NETINET_IN_H |
| 42426 |
#include <netinet/in.h> |
| 42427 |
#endif |
| 42428 |
#ifdef HAVE_SYS_SOCKET_H |
| 42429 |
#include <sys/socket.h> |
| 42430 |
#endif |
| 42431 |
#ifdef HAVE_WINSOCK2_H |
| 42432 |
#include <winsock2.h> |
| 42433 |
#endif |
| 42434 |
#ifdef HAVE_WS2TCPIP_H |
| 42435 |
#include <ws2tcpip.h> |
| 42436 |
#endif |
| 42437 |
|
| 42438 |
int |
| 42439 |
main (void) |
| 42440 |
{ |
| 42441 |
|
| 42442 |
int af=AF_INET6; |
| 42443 |
int pf=PF_INET6; |
| 42444 |
struct sockaddr_in6 sa; |
| 42445 |
printf("%d %d %p\n", af, pf, (void*) &sa); |
| 42446 |
|
| 42447 |
|
| 42448 |
; |
| 42449 |
return 0; |
| 42450 |
} |
| 42451 |
|
| 42452 |
_ACEOF |
| 42453 |
if ac_fn_c_try_compile "$LINENO" |
| 42454 |
then : |
| 42455 |
mhd_cv_have_inet6="yes" |
| 42456 |
else case e in #( |
| 42457 |
e) mhd_cv_have_inet6="no" |
| 42458 |
;; |
| 42459 |
esac |
| 42460 |
fi |
| 42461 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 42462 |
|
| 42463 |
;; |
| 42464 |
esac |
| 42465 |
fi |
| 42466 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_inet6" >&5 |
| 42467 |
printf "%s\n" "$mhd_cv_have_inet6" >&6; } |
| 42468 |
if test "x$mhd_cv_have_inet6" = x"yes" |
| 42469 |
then : |
| 42470 |
|
| 42471 |
printf "%s\n" "#define HAVE_INET6 1" >>confdefs.h |
| 42472 |
|
| 42473 |
|
| 42474 |
fi |
| 42475 |
|
| 42476 |
|
| 42477 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42478 |
if test ${mhd_cv_have_func_sysconf+y} |
| 42479 |
then : |
| 42480 |
|
| 42481 |
else case e in #( |
| 42482 |
e) ac_fn_check_decl "$LINENO" "sysconf" "ac_cv_have_decl_sysconf" "#include <unistd.h> |
| 42483 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42484 |
if test "x$ac_cv_have_decl_sysconf" = xyes |
| 42485 |
then : |
| 42486 |
|
| 42487 |
else case e in #( |
| 42488 |
e) mhd_cv_have_func_sysconf="no" ;; |
| 42489 |
esac |
| 42490 |
fi ;; |
| 42491 |
esac |
| 42492 |
fi |
| 42493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysconf" >&5 |
| 42494 |
printf %s "checking for function sysconf... " >&6; } |
| 42495 |
if test ${mhd_cv_have_func_sysconf+y} |
| 42496 |
then : |
| 42497 |
printf %s "(cached) " >&6 |
| 42498 |
else case e in #( |
| 42499 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42500 |
/* end confdefs.h. */ |
| 42501 |
|
| 42502 |
#include <unistd.h> |
| 42503 |
|
| 42504 |
int main(void) |
| 42505 |
{ |
| 42506 |
|
| 42507 |
long a = sysconf(0); if (a) return 1; |
| 42508 |
|
| 42509 |
return 0; |
| 42510 |
} |
| 42511 |
|
| 42512 |
|
| 42513 |
_ACEOF |
| 42514 |
if ac_fn_c_try_link "$LINENO" |
| 42515 |
then : |
| 42516 |
mhd_cv_have_func_sysconf="yes" |
| 42517 |
else case e in #( |
| 42518 |
e) mhd_cv_have_func_sysconf="no" ;; |
| 42519 |
esac |
| 42520 |
fi |
| 42521 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42522 |
conftest$ac_exeext conftest.$ac_ext |
| 42523 |
;; |
| 42524 |
esac |
| 42525 |
fi |
| 42526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sysconf" >&5 |
| 42527 |
printf "%s\n" "$mhd_cv_have_func_sysconf" >&6; } |
| 42528 |
if test "x$mhd_cv_have_func_sysconf" = x"yes" |
| 42529 |
then : |
| 42530 |
|
| 42531 |
printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 42532 |
|
| 42533 |
|
| 42534 |
fi |
| 42535 |
|
| 42536 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42537 |
|
| 42538 |
|
| 42539 |
|
| 42540 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42541 |
if test ${mhd_cv_have_func_sysctl+y} |
| 42542 |
then : |
| 42543 |
|
| 42544 |
else case e in #( |
| 42545 |
e) ac_fn_check_decl "$LINENO" "sysctl" "ac_cv_have_decl_sysctl" " |
| 42546 |
#ifdef HAVE_SYS_TYPES_H |
| 42547 |
#include <sys/types.h> |
| 42548 |
#endif |
| 42549 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42550 |
#include <sys/sysctl.h> |
| 42551 |
#endif |
| 42552 |
#if defined(HAVE_STDDEF_H) |
| 42553 |
#include <stddef.h> |
| 42554 |
#elif defined(HAVE_STDLIB_H) |
| 42555 |
#include <stdlib.h> |
| 42556 |
#endif |
| 42557 |
|
| 42558 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42559 |
if test "x$ac_cv_have_decl_sysctl" = xyes |
| 42560 |
then : |
| 42561 |
|
| 42562 |
else case e in #( |
| 42563 |
e) mhd_cv_have_func_sysctl="no" ;; |
| 42564 |
esac |
| 42565 |
fi ;; |
| 42566 |
esac |
| 42567 |
fi |
| 42568 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysctl" >&5 |
| 42569 |
printf %s "checking for function sysctl... " >&6; } |
| 42570 |
if test ${mhd_cv_have_func_sysctl+y} |
| 42571 |
then : |
| 42572 |
printf %s "(cached) " >&6 |
| 42573 |
else case e in #( |
| 42574 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42575 |
/* end confdefs.h. */ |
| 42576 |
|
| 42577 |
|
| 42578 |
#ifdef HAVE_SYS_TYPES_H |
| 42579 |
#include <sys/types.h> |
| 42580 |
#endif |
| 42581 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42582 |
#include <sys/sysctl.h> |
| 42583 |
#endif |
| 42584 |
#if defined(HAVE_STDDEF_H) |
| 42585 |
#include <stddef.h> |
| 42586 |
#elif defined(HAVE_STDLIB_H) |
| 42587 |
#include <stdlib.h> |
| 42588 |
#endif |
| 42589 |
|
| 42590 |
|
| 42591 |
int main(void) |
| 42592 |
{ |
| 42593 |
|
| 42594 |
|
| 42595 |
int mib[2] = {0, 0}; /* Avoid any platform-specific values */ |
| 42596 |
if (sysctl(mib, 2, NULL, NULL, NULL, 0)) return 1; |
| 42597 |
|
| 42598 |
|
| 42599 |
return 0; |
| 42600 |
} |
| 42601 |
|
| 42602 |
|
| 42603 |
_ACEOF |
| 42604 |
if ac_fn_c_try_link "$LINENO" |
| 42605 |
then : |
| 42606 |
mhd_cv_have_func_sysctl="yes" |
| 42607 |
else case e in #( |
| 42608 |
e) mhd_cv_have_func_sysctl="no" ;; |
| 42609 |
esac |
| 42610 |
fi |
| 42611 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42612 |
conftest$ac_exeext conftest.$ac_ext |
| 42613 |
;; |
| 42614 |
esac |
| 42615 |
fi |
| 42616 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sysctl" >&5 |
| 42617 |
printf "%s\n" "$mhd_cv_have_func_sysctl" >&6; } |
| 42618 |
if test "x$mhd_cv_have_func_sysctl" = x"yes" |
| 42619 |
then : |
| 42620 |
|
| 42621 |
printf "%s\n" "#define HAVE_SYSCTL 1" >>confdefs.h |
| 42622 |
|
| 42623 |
|
| 42624 |
ac_fn_check_decl "$LINENO" "CTL_NET" "ac_cv_have_decl_CTL_NET" " |
| 42625 |
#ifdef HAVE_SYS_TYPES_H |
| 42626 |
#include <sys/types.h> |
| 42627 |
#endif /* HAVE_SYS_TYPES_H */ |
| 42628 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42629 |
#include <sys/sysctl.h> |
| 42630 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42631 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42632 |
#include <sys/sysctl.h> |
| 42633 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42634 |
#ifdef HAVE_SYS_SOCKET_H |
| 42635 |
#include <sys/socket.h> |
| 42636 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 42637 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 42638 |
#include <netinet/in_systm.h> |
| 42639 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 42640 |
#ifdef HAVE_NETINET_IN_H |
| 42641 |
#include <netinet/in.h> |
| 42642 |
#endif /* HAVE_NETINET_IN_H */ |
| 42643 |
#ifdef HAVE_NETINET_IP_H |
| 42644 |
#include <netinet/ip.h> |
| 42645 |
#endif /* HAVE_NETINET_IP_H */ |
| 42646 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 42647 |
#include <netinet/ip_icmp.h> |
| 42648 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 42649 |
#ifdef HAVE_NETINET_ICMP_VAR_H |
| 42650 |
#include <netinet/icmp_var.h> |
| 42651 |
#endif /* HAVE_NETINET_ICMP_VAR_H */ |
| 42652 |
|
| 42653 |
|
| 42654 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42655 |
if test "x$ac_cv_have_decl_CTL_NET" = xyes |
| 42656 |
then : |
| 42657 |
ac_have_decl=1 |
| 42658 |
else case e in #( |
| 42659 |
e) ac_have_decl=0 ;; |
| 42660 |
esac |
| 42661 |
fi |
| 42662 |
printf "%s\n" "#define HAVE_DECL_CTL_NET $ac_have_decl" >>confdefs.h |
| 42663 |
ac_fn_check_decl "$LINENO" "PF_INET" "ac_cv_have_decl_PF_INET" " |
| 42664 |
#ifdef HAVE_SYS_TYPES_H |
| 42665 |
#include <sys/types.h> |
| 42666 |
#endif /* HAVE_SYS_TYPES_H */ |
| 42667 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42668 |
#include <sys/sysctl.h> |
| 42669 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42670 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42671 |
#include <sys/sysctl.h> |
| 42672 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42673 |
#ifdef HAVE_SYS_SOCKET_H |
| 42674 |
#include <sys/socket.h> |
| 42675 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 42676 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 42677 |
#include <netinet/in_systm.h> |
| 42678 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 42679 |
#ifdef HAVE_NETINET_IN_H |
| 42680 |
#include <netinet/in.h> |
| 42681 |
#endif /* HAVE_NETINET_IN_H */ |
| 42682 |
#ifdef HAVE_NETINET_IP_H |
| 42683 |
#include <netinet/ip.h> |
| 42684 |
#endif /* HAVE_NETINET_IP_H */ |
| 42685 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 42686 |
#include <netinet/ip_icmp.h> |
| 42687 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 42688 |
#ifdef HAVE_NETINET_ICMP_VAR_H |
| 42689 |
#include <netinet/icmp_var.h> |
| 42690 |
#endif /* HAVE_NETINET_ICMP_VAR_H */ |
| 42691 |
|
| 42692 |
|
| 42693 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42694 |
if test "x$ac_cv_have_decl_PF_INET" = xyes |
| 42695 |
then : |
| 42696 |
ac_have_decl=1 |
| 42697 |
else case e in #( |
| 42698 |
e) ac_have_decl=0 ;; |
| 42699 |
esac |
| 42700 |
fi |
| 42701 |
printf "%s\n" "#define HAVE_DECL_PF_INET $ac_have_decl" >>confdefs.h |
| 42702 |
ac_fn_check_decl "$LINENO" "IPPROTO_ICMP" "ac_cv_have_decl_IPPROTO_ICMP" " |
| 42703 |
#ifdef HAVE_SYS_TYPES_H |
| 42704 |
#include <sys/types.h> |
| 42705 |
#endif /* HAVE_SYS_TYPES_H */ |
| 42706 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42707 |
#include <sys/sysctl.h> |
| 42708 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42709 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42710 |
#include <sys/sysctl.h> |
| 42711 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42712 |
#ifdef HAVE_SYS_SOCKET_H |
| 42713 |
#include <sys/socket.h> |
| 42714 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 42715 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 42716 |
#include <netinet/in_systm.h> |
| 42717 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 42718 |
#ifdef HAVE_NETINET_IN_H |
| 42719 |
#include <netinet/in.h> |
| 42720 |
#endif /* HAVE_NETINET_IN_H */ |
| 42721 |
#ifdef HAVE_NETINET_IP_H |
| 42722 |
#include <netinet/ip.h> |
| 42723 |
#endif /* HAVE_NETINET_IP_H */ |
| 42724 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 42725 |
#include <netinet/ip_icmp.h> |
| 42726 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 42727 |
#ifdef HAVE_NETINET_ICMP_VAR_H |
| 42728 |
#include <netinet/icmp_var.h> |
| 42729 |
#endif /* HAVE_NETINET_ICMP_VAR_H */ |
| 42730 |
|
| 42731 |
|
| 42732 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42733 |
if test "x$ac_cv_have_decl_IPPROTO_ICMP" = xyes |
| 42734 |
then : |
| 42735 |
ac_have_decl=1 |
| 42736 |
else case e in #( |
| 42737 |
e) ac_have_decl=0 ;; |
| 42738 |
esac |
| 42739 |
fi |
| 42740 |
printf "%s\n" "#define HAVE_DECL_IPPROTO_ICMP $ac_have_decl" >>confdefs.h |
| 42741 |
ac_fn_check_decl "$LINENO" "ICMPCTL_ICMPLIM" "ac_cv_have_decl_ICMPCTL_ICMPLIM" " |
| 42742 |
#ifdef HAVE_SYS_TYPES_H |
| 42743 |
#include <sys/types.h> |
| 42744 |
#endif /* HAVE_SYS_TYPES_H */ |
| 42745 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42746 |
#include <sys/sysctl.h> |
| 42747 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42748 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42749 |
#include <sys/sysctl.h> |
| 42750 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 42751 |
#ifdef HAVE_SYS_SOCKET_H |
| 42752 |
#include <sys/socket.h> |
| 42753 |
#endif /* HAVE_SYS_SOCKET_H */ |
| 42754 |
#ifdef HAVE_NETINET_IN_SYSTM_H |
| 42755 |
#include <netinet/in_systm.h> |
| 42756 |
#endif /* HAVE_NETINET_IN_SYSTM_H */ |
| 42757 |
#ifdef HAVE_NETINET_IN_H |
| 42758 |
#include <netinet/in.h> |
| 42759 |
#endif /* HAVE_NETINET_IN_H */ |
| 42760 |
#ifdef HAVE_NETINET_IP_H |
| 42761 |
#include <netinet/ip.h> |
| 42762 |
#endif /* HAVE_NETINET_IP_H */ |
| 42763 |
#ifdef HAVE_NETINET_IP_ICMP_H |
| 42764 |
#include <netinet/ip_icmp.h> |
| 42765 |
#endif /* HAVE_NETINET_IP_ICMP_H */ |
| 42766 |
#ifdef HAVE_NETINET_ICMP_VAR_H |
| 42767 |
#include <netinet/icmp_var.h> |
| 42768 |
#endif /* HAVE_NETINET_ICMP_VAR_H */ |
| 42769 |
|
| 42770 |
|
| 42771 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42772 |
if test "x$ac_cv_have_decl_ICMPCTL_ICMPLIM" = xyes |
| 42773 |
then : |
| 42774 |
ac_have_decl=1 |
| 42775 |
else case e in #( |
| 42776 |
e) ac_have_decl=0 ;; |
| 42777 |
esac |
| 42778 |
fi |
| 42779 |
printf "%s\n" "#define HAVE_DECL_ICMPCTL_ICMPLIM $ac_have_decl" >>confdefs.h |
| 42780 |
|
| 42781 |
|
| 42782 |
|
| 42783 |
|
| 42784 |
fi |
| 42785 |
|
| 42786 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42787 |
|
| 42788 |
|
| 42789 |
|
| 42790 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42791 |
if test ${mhd_cv_have_func_sysctlbyname+y} |
| 42792 |
then : |
| 42793 |
|
| 42794 |
else case e in #( |
| 42795 |
e) ac_fn_check_decl "$LINENO" "sysctlbyname" "ac_cv_have_decl_sysctlbyname" " |
| 42796 |
#ifdef HAVE_SYS_TYPES_H |
| 42797 |
#include <sys/types.h> |
| 42798 |
#endif |
| 42799 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42800 |
#include <sys/sysctl.h> |
| 42801 |
#endif |
| 42802 |
#if defined(HAVE_STDDEF_H) |
| 42803 |
#include <stddef.h> |
| 42804 |
#elif defined(HAVE_STDLIB_H) |
| 42805 |
#include <stdlib.h> |
| 42806 |
#endif |
| 42807 |
|
| 42808 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42809 |
if test "x$ac_cv_have_decl_sysctlbyname" = xyes |
| 42810 |
then : |
| 42811 |
|
| 42812 |
else case e in #( |
| 42813 |
e) mhd_cv_have_func_sysctlbyname="no" ;; |
| 42814 |
esac |
| 42815 |
fi ;; |
| 42816 |
esac |
| 42817 |
fi |
| 42818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sysctlbyname" >&5 |
| 42819 |
printf %s "checking for function sysctlbyname... " >&6; } |
| 42820 |
if test ${mhd_cv_have_func_sysctlbyname+y} |
| 42821 |
then : |
| 42822 |
printf %s "(cached) " >&6 |
| 42823 |
else case e in #( |
| 42824 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42825 |
/* end confdefs.h. */ |
| 42826 |
|
| 42827 |
|
| 42828 |
#ifdef HAVE_SYS_TYPES_H |
| 42829 |
#include <sys/types.h> |
| 42830 |
#endif |
| 42831 |
#ifdef HAVE_SYS_SYSCTL_H |
| 42832 |
#include <sys/sysctl.h> |
| 42833 |
#endif |
| 42834 |
#if defined(HAVE_STDDEF_H) |
| 42835 |
#include <stddef.h> |
| 42836 |
#elif defined(HAVE_STDLIB_H) |
| 42837 |
#include <stdlib.h> |
| 42838 |
#endif |
| 42839 |
|
| 42840 |
|
| 42841 |
int main(void) |
| 42842 |
{ |
| 42843 |
|
| 42844 |
sysctlbyname("test", NULL, NULL, NULL, 0); |
| 42845 |
|
| 42846 |
|
| 42847 |
return 0; |
| 42848 |
} |
| 42849 |
|
| 42850 |
|
| 42851 |
_ACEOF |
| 42852 |
if ac_fn_c_try_link "$LINENO" |
| 42853 |
then : |
| 42854 |
mhd_cv_have_func_sysctlbyname="yes" |
| 42855 |
else case e in #( |
| 42856 |
e) mhd_cv_have_func_sysctlbyname="no" ;; |
| 42857 |
esac |
| 42858 |
fi |
| 42859 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42860 |
conftest$ac_exeext conftest.$ac_ext |
| 42861 |
;; |
| 42862 |
esac |
| 42863 |
fi |
| 42864 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sysctlbyname" >&5 |
| 42865 |
printf "%s\n" "$mhd_cv_have_func_sysctlbyname" >&6; } |
| 42866 |
if test "x$mhd_cv_have_func_sysctlbyname" = x"yes" |
| 42867 |
then : |
| 42868 |
|
| 42869 |
printf "%s\n" "#define HAVE_SYSCTLBYNAME 1" >>confdefs.h |
| 42870 |
|
| 42871 |
|
| 42872 |
fi |
| 42873 |
|
| 42874 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42875 |
|
| 42876 |
|
| 42877 |
|
| 42878 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42879 |
if test ${mhd_cv_have_func_usleep+y} |
| 42880 |
then : |
| 42881 |
|
| 42882 |
else case e in #( |
| 42883 |
e) ac_fn_check_decl "$LINENO" "usleep" "ac_cv_have_decl_usleep" "#include <unistd.h> |
| 42884 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42885 |
if test "x$ac_cv_have_decl_usleep" = xyes |
| 42886 |
then : |
| 42887 |
|
| 42888 |
else case e in #( |
| 42889 |
e) mhd_cv_have_func_usleep="no" ;; |
| 42890 |
esac |
| 42891 |
fi ;; |
| 42892 |
esac |
| 42893 |
fi |
| 42894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function usleep" >&5 |
| 42895 |
printf %s "checking for function usleep... " >&6; } |
| 42896 |
if test ${mhd_cv_have_func_usleep+y} |
| 42897 |
then : |
| 42898 |
printf %s "(cached) " >&6 |
| 42899 |
else case e in #( |
| 42900 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42901 |
/* end confdefs.h. */ |
| 42902 |
|
| 42903 |
#include <unistd.h> |
| 42904 |
|
| 42905 |
int main(void) |
| 42906 |
{ |
| 42907 |
|
| 42908 |
usleep(100000); |
| 42909 |
|
| 42910 |
return 0; |
| 42911 |
} |
| 42912 |
|
| 42913 |
|
| 42914 |
_ACEOF |
| 42915 |
if ac_fn_c_try_link "$LINENO" |
| 42916 |
then : |
| 42917 |
mhd_cv_have_func_usleep="yes" |
| 42918 |
else case e in #( |
| 42919 |
e) mhd_cv_have_func_usleep="no" ;; |
| 42920 |
esac |
| 42921 |
fi |
| 42922 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42923 |
conftest$ac_exeext conftest.$ac_ext |
| 42924 |
;; |
| 42925 |
esac |
| 42926 |
fi |
| 42927 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_usleep" >&5 |
| 42928 |
printf "%s\n" "$mhd_cv_have_func_usleep" >&6; } |
| 42929 |
if test "x$mhd_cv_have_func_usleep" = x"yes" |
| 42930 |
then : |
| 42931 |
|
| 42932 |
printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h |
| 42933 |
|
| 42934 |
|
| 42935 |
fi |
| 42936 |
|
| 42937 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 42938 |
|
| 42939 |
|
| 42940 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 42941 |
if test ${mhd_cv_have_func_nanosleep+y} |
| 42942 |
then : |
| 42943 |
|
| 42944 |
else case e in #( |
| 42945 |
e) ac_fn_check_decl "$LINENO" "nanosleep" "ac_cv_have_decl_nanosleep" "#include <time.h> |
| 42946 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 42947 |
if test "x$ac_cv_have_decl_nanosleep" = xyes |
| 42948 |
then : |
| 42949 |
|
| 42950 |
else case e in #( |
| 42951 |
e) mhd_cv_have_func_nanosleep="no" ;; |
| 42952 |
esac |
| 42953 |
fi ;; |
| 42954 |
esac |
| 42955 |
fi |
| 42956 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function nanosleep" >&5 |
| 42957 |
printf %s "checking for function nanosleep... " >&6; } |
| 42958 |
if test ${mhd_cv_have_func_nanosleep+y} |
| 42959 |
then : |
| 42960 |
printf %s "(cached) " >&6 |
| 42961 |
else case e in #( |
| 42962 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 42963 |
/* end confdefs.h. */ |
| 42964 |
|
| 42965 |
#include <time.h> |
| 42966 |
|
| 42967 |
int main(void) |
| 42968 |
{ |
| 42969 |
|
| 42970 |
struct timespec ts2, ts1 = {0, 0}; nanosleep(&ts1, &ts2); |
| 42971 |
|
| 42972 |
return 0; |
| 42973 |
} |
| 42974 |
|
| 42975 |
|
| 42976 |
_ACEOF |
| 42977 |
if ac_fn_c_try_link "$LINENO" |
| 42978 |
then : |
| 42979 |
mhd_cv_have_func_nanosleep="yes" |
| 42980 |
else case e in #( |
| 42981 |
e) mhd_cv_have_func_nanosleep="no" ;; |
| 42982 |
esac |
| 42983 |
fi |
| 42984 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 42985 |
conftest$ac_exeext conftest.$ac_ext |
| 42986 |
;; |
| 42987 |
esac |
| 42988 |
fi |
| 42989 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_nanosleep" >&5 |
| 42990 |
printf "%s\n" "$mhd_cv_have_func_nanosleep" >&6; } |
| 42991 |
if test "x$mhd_cv_have_func_nanosleep" = x"yes" |
| 42992 |
then : |
| 42993 |
|
| 42994 |
printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h |
| 42995 |
|
| 42996 |
|
| 42997 |
fi |
| 42998 |
|
| 42999 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 43000 |
|
| 43001 |
|
| 43002 |
HIDDEN_VISIBILITY_CFLAGS="" |
| 43003 |
|
| 43004 |
CFLAGS="${user_CFLAGS}" |
| 43005 |
|
| 43006 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden flag" >&5 |
| 43007 |
printf %s "checking whether $CC supports -fvisibility=hidden flag... " >&6; } |
| 43008 |
if test ${mhd_cv_cc_cfl_supp__fvisibility_hidden+y} |
| 43009 |
then : |
| 43010 |
printf %s "(cached) " >&6 |
| 43011 |
else case e in #( |
| 43012 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 43013 |
CFLAGS="${CFLAGS_ac} -fvisibility=hidden ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 43014 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 43015 |
ac_c_werror_flag=yes |
| 43016 |
# Reuse the same source for all the checks here |
| 43017 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43018 |
/* end confdefs.h. */ |
| 43019 |
|
| 43020 |
int main(void) |
| 43021 |
{ |
| 43022 |
return 0; |
| 43023 |
} |
| 43024 |
|
| 43025 |
_ACEOF |
| 43026 |
if ac_fn_c_try_link "$LINENO" |
| 43027 |
then : |
| 43028 |
mhd_cv_cc_cfl_supp__fvisibility_hidden="yes" |
| 43029 |
else case e in #( |
| 43030 |
e) # Compile and link failed with test flag added |
| 43031 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 43032 |
if ac_fn_c_try_link "$LINENO" |
| 43033 |
then : |
| 43034 |
mhd_cv_cc_cfl_supp__fvisibility_hidden="no" |
| 43035 |
else case e in #( |
| 43036 |
e) # Compile and link failed with test flag removed as well |
| 43037 |
CFLAGS="${CFLAGS_ac} -fvisibility=hidden ${mhd_check_cc_flag_save_CFLAGS}" |
| 43038 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 43039 |
if ac_fn_c_try_link "$LINENO" |
| 43040 |
then : |
| 43041 |
mhd_cv_cc_cfl_supp__fvisibility_hidden="yes" |
| 43042 |
else case e in #( |
| 43043 |
e) mhd_cv_cc_cfl_supp__fvisibility_hidden="no" ;; |
| 43044 |
esac |
| 43045 |
fi |
| 43046 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43047 |
conftest$ac_exeext |
| 43048 |
|
| 43049 |
;; |
| 43050 |
esac |
| 43051 |
fi |
| 43052 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43053 |
conftest$ac_exeext |
| 43054 |
|
| 43055 |
;; |
| 43056 |
esac |
| 43057 |
fi |
| 43058 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43059 |
conftest$ac_exeext |
| 43060 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 43061 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 43062 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 43063 |
|
| 43064 |
;; |
| 43065 |
esac |
| 43066 |
fi |
| 43067 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__fvisibility_hidden" >&5 |
| 43068 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__fvisibility_hidden" >&6; } |
| 43069 |
if test "x$mhd_cv_cc_cfl_supp__fvisibility_hidden" = x"yes" |
| 43070 |
then : |
| 43071 |
|
| 43072 |
# NOTE: require setting of errattr_CFLAGS above |
| 43073 |
CFLAGS="${CFLAGS_ac} -fvisibility=hidden ${user_CFLAGS} ${errattr_CFLAGS}" |
| 43074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __attribute__((visibility(\"default\")))" >&5 |
| 43075 |
printf %s "checking whether $CC supports __attribute__((visibility(\"default\")))... " >&6; } |
| 43076 |
if test ${mhd_cv_cc_attr_visibility+y} |
| 43077 |
then : |
| 43078 |
printf %s "(cached) " >&6 |
| 43079 |
else case e in #( |
| 43080 |
e) |
| 43081 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43082 |
/* end confdefs.h. */ |
| 43083 |
|
| 43084 |
extern __attribute__((visibility("default"))) int test_extrn_func(void); |
| 43085 |
|
| 43086 |
int test_extrn_func(void) {return 0;} |
| 43087 |
|
| 43088 |
|
| 43089 |
_ACEOF |
| 43090 |
if ac_fn_c_try_compile "$LINENO" |
| 43091 |
then : |
| 43092 |
mhd_cv_cc_attr_visibility="yes" |
| 43093 |
else case e in #( |
| 43094 |
e) mhd_cv_cc_attr_visibility="no" |
| 43095 |
;; |
| 43096 |
esac |
| 43097 |
fi |
| 43098 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 43099 |
|
| 43100 |
;; |
| 43101 |
esac |
| 43102 |
fi |
| 43103 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_attr_visibility" >&5 |
| 43104 |
printf "%s\n" "$mhd_cv_cc_attr_visibility" >&6; } |
| 43105 |
if test "x$mhd_cv_cc_attr_visibility" = x"yes" |
| 43106 |
then : |
| 43107 |
|
| 43108 |
HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden" |
| 43109 |
if test "x$os_is_native_w32" = "xyes" && test "x$enable_shared" = "xyes" |
| 43110 |
then : |
| 43111 |
printf "%s\n" "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h |
| 43112 |
|
| 43113 |
else case e in #( |
| 43114 |
e) printf "%s\n" "#define _MHD_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h |
| 43115 |
|
| 43116 |
;; |
| 43117 |
esac |
| 43118 |
fi |
| 43119 |
|
| 43120 |
else case e in #( |
| 43121 |
e) |
| 43122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CC supports -fvisibility, but does not support __attribute__((visibility(\"default\"))). Check compiler and compiler flags." >&5 |
| 43123 |
printf "%s\n" "$as_me: WARNING: $CC supports -fvisibility, but does not support __attribute__((visibility(\"default\"))). Check compiler and compiler flags." >&2;} |
| 43124 |
printf "%s\n" "#define _MHD_EXTERN extern" >>confdefs.h |
| 43125 |
|
| 43126 |
|
| 43127 |
;; |
| 43128 |
esac |
| 43129 |
fi |
| 43130 |
|
| 43131 |
else case e in #( |
| 43132 |
e) printf "%s\n" "#define _MHD_EXTERN extern" >>confdefs.h |
| 43133 |
|
| 43134 |
;; |
| 43135 |
esac |
| 43136 |
fi |
| 43137 |
|
| 43138 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 43139 |
|
| 43140 |
|
| 43141 |
# libcurl (required for testing) |
| 43142 |
# Check whether --enable-curl was given. |
| 43143 |
if test ${enable_curl+y} |
| 43144 |
then : |
| 43145 |
enableval=$enable_curl; enable_curl=${enableval} |
| 43146 |
fi |
| 43147 |
|
| 43148 |
curl=0 |
| 43149 |
if test "$enable_curl" != "no" |
| 43150 |
then : |
| 43151 |
|
| 43152 |
|
| 43153 |
|
| 43154 |
|
| 43155 |
|
| 43156 |
|
| 43157 |
|
| 43158 |
|
| 43159 |
|
| 43160 |
|
| 43161 |
|
| 43162 |
|
| 43163 |
|
| 43164 |
|
| 43165 |
|
| 43166 |
|
| 43167 |
|
| 43168 |
|
| 43169 |
|
| 43170 |
|
| 43171 |
|
| 43172 |
|
| 43173 |
|
| 43174 |
|
| 43175 |
|
| 43176 |
# Check whether --with-libcurl was given. |
| 43177 |
if test ${with_libcurl+y} |
| 43178 |
then : |
| 43179 |
withval=$with_libcurl; _libcurl_with=$withval |
| 43180 |
else case e in #( |
| 43181 |
e) _libcurl_with=yes ;; |
| 43182 |
esac |
| 43183 |
fi |
| 43184 |
|
| 43185 |
|
| 43186 |
if test "$_libcurl_with" != "no" ; then |
| 43187 |
|
| 43188 |
for ac_prog in gawk mawk nawk awk |
| 43189 |
do |
| 43190 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 43191 |
set dummy $ac_prog; ac_word=$2 |
| 43192 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 43193 |
printf %s "checking for $ac_word... " >&6; } |
| 43194 |
if test ${ac_cv_prog_AWK+y} |
| 43195 |
then : |
| 43196 |
printf %s "(cached) " >&6 |
| 43197 |
else case e in #( |
| 43198 |
e) if test -n "$AWK"; then |
| 43199 |
ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 43200 |
else |
| 43201 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43202 |
for as_dir in $PATH |
| 43203 |
do |
| 43204 |
IFS=$as_save_IFS |
| 43205 |
case $as_dir in #((( |
| 43206 |
'') as_dir=./ ;; |
| 43207 |
*/) ;; |
| 43208 |
*) as_dir=$as_dir/ ;; |
| 43209 |
esac |
| 43210 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 43211 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 43212 |
ac_cv_prog_AWK="$ac_prog" |
| 43213 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 43214 |
break 2 |
| 43215 |
fi |
| 43216 |
done |
| 43217 |
done |
| 43218 |
IFS=$as_save_IFS |
| 43219 |
|
| 43220 |
fi ;; |
| 43221 |
esac |
| 43222 |
fi |
| 43223 |
AWK=$ac_cv_prog_AWK |
| 43224 |
if test -n "$AWK"; then |
| 43225 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 43226 |
printf "%s\n" "$AWK" >&6; } |
| 43227 |
else |
| 43228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 43229 |
printf "%s\n" "no" >&6; } |
| 43230 |
fi |
| 43231 |
|
| 43232 |
|
| 43233 |
test -n "$AWK" && break |
| 43234 |
done |
| 43235 |
|
| 43236 |
|
| 43237 |
_libcurl_version_parse="eval $AWK '{split(\$NF,A,\".\"); X=256*256*A[1]+256*A[2]+A[3]; print X;}'" |
| 43238 |
|
| 43239 |
_libcurl_try_link=yes |
| 43240 |
|
| 43241 |
if test -d "$_libcurl_with" ; then |
| 43242 |
LIBCURL_CPPFLAGS="-I$withval/include" |
| 43243 |
_libcurl_ldflags="-L$withval/lib" |
| 43244 |
# Extract the first word of "curl-config", so it can be a program name with args. |
| 43245 |
set dummy curl-config; ac_word=$2 |
| 43246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 43247 |
printf %s "checking for $ac_word... " >&6; } |
| 43248 |
if test ${ac_cv_path__libcurl_config+y} |
| 43249 |
then : |
| 43250 |
printf %s "(cached) " >&6 |
| 43251 |
else case e in #( |
| 43252 |
e) case $_libcurl_config in |
| 43253 |
[\\/]* | ?:[\\/]*) |
| 43254 |
ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. |
| 43255 |
;; |
| 43256 |
*) |
| 43257 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43258 |
for as_dir in "$withval/bin" |
| 43259 |
do |
| 43260 |
IFS=$as_save_IFS |
| 43261 |
case $as_dir in #((( |
| 43262 |
'') as_dir=./ ;; |
| 43263 |
*/) ;; |
| 43264 |
*) as_dir=$as_dir/ ;; |
| 43265 |
esac |
| 43266 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 43267 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 43268 |
ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" |
| 43269 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 43270 |
break 2 |
| 43271 |
fi |
| 43272 |
done |
| 43273 |
done |
| 43274 |
IFS=$as_save_IFS |
| 43275 |
|
| 43276 |
;; |
| 43277 |
esac ;; |
| 43278 |
esac |
| 43279 |
fi |
| 43280 |
_libcurl_config=$ac_cv_path__libcurl_config |
| 43281 |
if test -n "$_libcurl_config"; then |
| 43282 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 |
| 43283 |
printf "%s\n" "$_libcurl_config" >&6; } |
| 43284 |
else |
| 43285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 43286 |
printf "%s\n" "no" >&6; } |
| 43287 |
fi |
| 43288 |
|
| 43289 |
|
| 43290 |
else |
| 43291 |
# Extract the first word of "curl-config", so it can be a program name with args. |
| 43292 |
set dummy curl-config; ac_word=$2 |
| 43293 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 43294 |
printf %s "checking for $ac_word... " >&6; } |
| 43295 |
if test ${ac_cv_path__libcurl_config+y} |
| 43296 |
then : |
| 43297 |
printf %s "(cached) " >&6 |
| 43298 |
else case e in #( |
| 43299 |
e) case $_libcurl_config in |
| 43300 |
[\\/]* | ?:[\\/]*) |
| 43301 |
ac_cv_path__libcurl_config="$_libcurl_config" # Let the user override the test with a path. |
| 43302 |
;; |
| 43303 |
*) |
| 43304 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 43305 |
for as_dir in $PATH |
| 43306 |
do |
| 43307 |
IFS=$as_save_IFS |
| 43308 |
case $as_dir in #((( |
| 43309 |
'') as_dir=./ ;; |
| 43310 |
*/) ;; |
| 43311 |
*) as_dir=$as_dir/ ;; |
| 43312 |
esac |
| 43313 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 43314 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 43315 |
ac_cv_path__libcurl_config="$as_dir$ac_word$ac_exec_ext" |
| 43316 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 43317 |
break 2 |
| 43318 |
fi |
| 43319 |
done |
| 43320 |
done |
| 43321 |
IFS=$as_save_IFS |
| 43322 |
|
| 43323 |
;; |
| 43324 |
esac ;; |
| 43325 |
esac |
| 43326 |
fi |
| 43327 |
_libcurl_config=$ac_cv_path__libcurl_config |
| 43328 |
if test -n "$_libcurl_config"; then |
| 43329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_libcurl_config" >&5 |
| 43330 |
printf "%s\n" "$_libcurl_config" >&6; } |
| 43331 |
else |
| 43332 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 43333 |
printf "%s\n" "no" >&6; } |
| 43334 |
fi |
| 43335 |
|
| 43336 |
|
| 43337 |
fi |
| 43338 |
|
| 43339 |
if test x$_libcurl_config != "x" ; then |
| 43340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the version of libcurl" >&5 |
| 43341 |
printf %s "checking for the version of libcurl... " >&6; } |
| 43342 |
if test ${libcurl_cv_lib_curl_version+y} |
| 43343 |
then : |
| 43344 |
printf %s "(cached) " >&6 |
| 43345 |
else case e in #( |
| 43346 |
e) libcurl_cv_lib_curl_version=`$_libcurl_config --version | $AWK '{print $2}'` ;; |
| 43347 |
esac |
| 43348 |
fi |
| 43349 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_version" >&5 |
| 43350 |
printf "%s\n" "$libcurl_cv_lib_curl_version" >&6; } |
| 43351 |
|
| 43352 |
_libcurl_version=`echo $libcurl_cv_lib_curl_version | $_libcurl_version_parse` |
| 43353 |
_libcurl_wanted=`echo 7.16.4 | $_libcurl_version_parse` |
| 43354 |
|
| 43355 |
if test $_libcurl_wanted -gt 0 ; then |
| 43356 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcurl >= version 7.16.4" >&5 |
| 43357 |
printf %s "checking for libcurl >= version 7.16.4... " >&6; } |
| 43358 |
if test ${libcurl_cv_lib_version_ok+y} |
| 43359 |
then : |
| 43360 |
printf %s "(cached) " >&6 |
| 43361 |
else case e in #( |
| 43362 |
e) |
| 43363 |
if test $_libcurl_version -ge $_libcurl_wanted ; then |
| 43364 |
libcurl_cv_lib_version_ok=yes |
| 43365 |
else |
| 43366 |
libcurl_cv_lib_version_ok=no |
| 43367 |
fi |
| 43368 |
;; |
| 43369 |
esac |
| 43370 |
fi |
| 43371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_version_ok" >&5 |
| 43372 |
printf "%s\n" "$libcurl_cv_lib_version_ok" >&6; } |
| 43373 |
fi |
| 43374 |
|
| 43375 |
if test $_libcurl_wanted -eq 0 || test x$libcurl_cv_lib_version_ok = xyes ; then |
| 43376 |
if test x"$LIBCURL_CPPFLAGS" = "x" ; then |
| 43377 |
LIBCURL_CPPFLAGS=`$_libcurl_config --cflags` |
| 43378 |
fi |
| 43379 |
if test x"$LIBCURL" = "x" ; then |
| 43380 |
LIBCURL=`$_libcurl_config --libs` |
| 43381 |
|
| 43382 |
# This is so silly, but Apple actually has a bug in their |
| 43383 |
# curl-config script. Fixed in Tiger, but there are still |
| 43384 |
# lots of Panther installs around. |
| 43385 |
case "${host}" in |
| 43386 |
powerpc-apple-darwin7*) |
| 43387 |
LIBCURL=`echo $LIBCURL | sed -e 's|-arch i386||g'` |
| 43388 |
;; |
| 43389 |
esac |
| 43390 |
fi |
| 43391 |
|
| 43392 |
# All curl-config scripts support --feature |
| 43393 |
_libcurl_features=`$_libcurl_config --feature` |
| 43394 |
|
| 43395 |
# Is it modern enough to have --protocols? (7.12.4) |
| 43396 |
if test $_libcurl_version -ge 461828 ; then |
| 43397 |
_libcurl_protocols=`$_libcurl_config --protocols` |
| 43398 |
fi |
| 43399 |
else |
| 43400 |
_libcurl_try_link=no |
| 43401 |
fi |
| 43402 |
|
| 43403 |
unset _libcurl_wanted |
| 43404 |
fi |
| 43405 |
|
| 43406 |
if test $_libcurl_try_link = yes ; then |
| 43407 |
|
| 43408 |
# we didn't find curl-config, so let's see if the user-supplied |
| 43409 |
# link line (or failing that, "-lcurl") is enough. |
| 43410 |
LIBCURL=${LIBCURL-"$_libcurl_ldflags -lcurl"} |
| 43411 |
|
| 43412 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcurl is usable" >&5 |
| 43413 |
printf %s "checking whether libcurl is usable... " >&6; } |
| 43414 |
if test ${libcurl_cv_lib_curl_usable+y} |
| 43415 |
then : |
| 43416 |
printf %s "(cached) " >&6 |
| 43417 |
else case e in #( |
| 43418 |
e) |
| 43419 |
_libcurl_save_cppflags=$CPPFLAGS |
| 43420 |
CPPFLAGS="$LIBCURL_CPPFLAGS $CPPFLAGS" |
| 43421 |
_libcurl_save_libs=$LIBS |
| 43422 |
LIBS="$LIBCURL $LIBS" |
| 43423 |
|
| 43424 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43425 |
/* end confdefs.h. */ |
| 43426 |
#include <curl/curl.h> |
| 43427 |
int |
| 43428 |
main (void) |
| 43429 |
{ |
| 43430 |
|
| 43431 |
/* Try and use a few common options to force a failure if we are |
| 43432 |
missing symbols or can't link. */ |
| 43433 |
int x; |
| 43434 |
curl_easy_setopt(NULL,CURLOPT_URL,NULL); |
| 43435 |
x=CURL_ERROR_SIZE; |
| 43436 |
x=CURLOPT_WRITEFUNCTION; |
| 43437 |
x=CURLOPT_WRITEDATA; |
| 43438 |
x=CURLOPT_ERRORBUFFER; |
| 43439 |
x=CURLOPT_STDERR; |
| 43440 |
x=CURLOPT_VERBOSE; |
| 43441 |
if (x) {;} |
| 43442 |
|
| 43443 |
; |
| 43444 |
return 0; |
| 43445 |
} |
| 43446 |
_ACEOF |
| 43447 |
if ac_fn_c_try_link "$LINENO" |
| 43448 |
then : |
| 43449 |
libcurl_cv_lib_curl_usable=yes |
| 43450 |
else case e in #( |
| 43451 |
e) libcurl_cv_lib_curl_usable=no ;; |
| 43452 |
esac |
| 43453 |
fi |
| 43454 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43455 |
conftest$ac_exeext conftest.$ac_ext |
| 43456 |
|
| 43457 |
CPPFLAGS=$_libcurl_save_cppflags |
| 43458 |
LIBS=$_libcurl_save_libs |
| 43459 |
unset _libcurl_save_cppflags |
| 43460 |
unset _libcurl_save_libs |
| 43461 |
;; |
| 43462 |
esac |
| 43463 |
fi |
| 43464 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libcurl_cv_lib_curl_usable" >&5 |
| 43465 |
printf "%s\n" "$libcurl_cv_lib_curl_usable" >&6; } |
| 43466 |
|
| 43467 |
if test $libcurl_cv_lib_curl_usable = yes ; then |
| 43468 |
|
| 43469 |
# Does curl_free() exist in this version of libcurl? |
| 43470 |
# If not, fake it with free() |
| 43471 |
|
| 43472 |
_libcurl_save_cppflags=$CPPFLAGS |
| 43473 |
CPPFLAGS="$CPPFLAGS $LIBCURL_CPPFLAGS" |
| 43474 |
_libcurl_save_libs=$LIBS |
| 43475 |
LIBS="$LIBS $LIBCURL" |
| 43476 |
|
| 43477 |
ac_fn_check_decl "$LINENO" "curl_free" "ac_cv_have_decl_curl_free" "#include <curl/curl.h> |
| 43478 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43479 |
if test "x$ac_cv_have_decl_curl_free" = xyes |
| 43480 |
then : |
| 43481 |
|
| 43482 |
else case e in #( |
| 43483 |
e) |
| 43484 |
printf "%s\n" "#define curl_free free" >>confdefs.h |
| 43485 |
;; |
| 43486 |
esac |
| 43487 |
fi |
| 43488 |
|
| 43489 |
CPPFLAGS=$_libcurl_save_cppflags |
| 43490 |
LIBS=$_libcurl_save_libs |
| 43491 |
unset _libcurl_save_cppflags |
| 43492 |
unset _libcurl_save_libs |
| 43493 |
|
| 43494 |
|
| 43495 |
printf "%s\n" "#define HAVE_LIBCURL 1" >>confdefs.h |
| 43496 |
|
| 43497 |
|
| 43498 |
|
| 43499 |
|
| 43500 |
for _libcurl_feature in $_libcurl_features ; do |
| 43501 |
cat >>confdefs.h <<_ACEOF |
| 43502 |
#define `printf "%s\n" "libcurl_feature_$_libcurl_feature" | sed "$as_sed_cpp"` 1 |
| 43503 |
_ACEOF |
| 43504 |
|
| 43505 |
eval `printf "%s\n" "libcurl_feature_$_libcurl_feature" | sed "$as_sed_sh"`=yes |
| 43506 |
done |
| 43507 |
|
| 43508 |
if test "x$_libcurl_protocols" = "x" ; then |
| 43509 |
|
| 43510 |
# We don't have --protocols, so just assume that all |
| 43511 |
# protocols are available |
| 43512 |
_libcurl_protocols="HTTP FTP FILE TELNET LDAP DICT TFTP" |
| 43513 |
|
| 43514 |
if test x$libcurl_feature_SSL = xyes ; then |
| 43515 |
_libcurl_protocols="$_libcurl_protocols HTTPS" |
| 43516 |
|
| 43517 |
# FTPS wasn't standards-compliant until version |
| 43518 |
# 7.11.0 (0x070b00 == 461568) |
| 43519 |
if test $_libcurl_version -ge 461568; then |
| 43520 |
_libcurl_protocols="$_libcurl_protocols FTPS" |
| 43521 |
fi |
| 43522 |
fi |
| 43523 |
|
| 43524 |
# RTSP, IMAP, POP3 and SMTP were added in |
| 43525 |
# 7.20.0 (0x071400 == 463872) |
| 43526 |
if test $_libcurl_version -ge 463872; then |
| 43527 |
_libcurl_protocols="$_libcurl_protocols RTSP IMAP POP3 SMTP" |
| 43528 |
fi |
| 43529 |
fi |
| 43530 |
|
| 43531 |
for _libcurl_protocol in $_libcurl_protocols ; do |
| 43532 |
cat >>confdefs.h <<_ACEOF |
| 43533 |
#define `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | sed "$as_sed_cpp"` 1 |
| 43534 |
_ACEOF |
| 43535 |
|
| 43536 |
eval `printf "%s\n" "libcurl_protocol_$_libcurl_protocol" | sed "$as_sed_sh"`=yes |
| 43537 |
done |
| 43538 |
else |
| 43539 |
unset LIBCURL |
| 43540 |
unset LIBCURL_CPPFLAGS |
| 43541 |
fi |
| 43542 |
fi |
| 43543 |
|
| 43544 |
unset _libcurl_try_link |
| 43545 |
unset _libcurl_version_parse |
| 43546 |
unset _libcurl_config |
| 43547 |
unset _libcurl_feature |
| 43548 |
unset _libcurl_features |
| 43549 |
unset _libcurl_protocol |
| 43550 |
unset _libcurl_protocols |
| 43551 |
unset _libcurl_version |
| 43552 |
unset _libcurl_ldflags |
| 43553 |
fi |
| 43554 |
|
| 43555 |
if test x$_libcurl_with = xno || test x$libcurl_cv_lib_curl_usable != xyes ; then |
| 43556 |
# This is the IF-NO path |
| 43557 |
|
| 43558 |
if test "x$enable_curl" = "xyes" |
| 43559 |
then : |
| 43560 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&5 |
| 43561 |
printf "%s\n" "$as_me: WARNING: cURL-based tests cannot be enabled because libcurl is missing" >&2;} |
| 43562 |
fi |
| 43563 |
enable_curl=no |
| 43564 |
|
| 43565 |
else |
| 43566 |
# This is the IF-YES path |
| 43567 |
enable_curl=yes |
| 43568 |
fi |
| 43569 |
|
| 43570 |
unset _libcurl_with |
| 43571 |
|
| 43572 |
|
| 43573 |
fi |
| 43574 |
if test "x$enable_curl" = "xyes"; then |
| 43575 |
RUN_LIBCURL_TESTS_TRUE= |
| 43576 |
RUN_LIBCURL_TESTS_FALSE='#' |
| 43577 |
else |
| 43578 |
RUN_LIBCURL_TESTS_TRUE='#' |
| 43579 |
RUN_LIBCURL_TESTS_FALSE= |
| 43580 |
fi |
| 43581 |
|
| 43582 |
if test "x$enable_curl" = "xyes" |
| 43583 |
then : |
| 43584 |
MSG_CURL="yes" |
| 43585 |
else case e in #( |
| 43586 |
e) MSG_CURL="no, many unit tests will not run" |
| 43587 |
;; |
| 43588 |
esac |
| 43589 |
fi |
| 43590 |
|
| 43591 |
|
| 43592 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 43593 |
if test ${mhd_cv_have_func_magic_open+y} |
| 43594 |
then : |
| 43595 |
|
| 43596 |
else case e in #( |
| 43597 |
e) ac_fn_check_decl "$LINENO" "magic_open" "ac_cv_have_decl_magic_open" " |
| 43598 |
#include <magic.h> |
| 43599 |
|
| 43600 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43601 |
if test "x$ac_cv_have_decl_magic_open" = xyes |
| 43602 |
then : |
| 43603 |
|
| 43604 |
else case e in #( |
| 43605 |
e) mhd_cv_have_func_magic_open="no" ;; |
| 43606 |
esac |
| 43607 |
fi ;; |
| 43608 |
esac |
| 43609 |
fi |
| 43610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function magic_open" >&5 |
| 43611 |
printf %s "checking for function magic_open... " >&6; } |
| 43612 |
if test ${mhd_cv_have_func_magic_open+y} |
| 43613 |
then : |
| 43614 |
printf %s "(cached) " >&6 |
| 43615 |
else case e in #( |
| 43616 |
e) mhd_check_func_SAVE_LIBS="$LIBS" |
| 43617 |
LIBS="-lmagic $LIBS" |
| 43618 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43619 |
/* end confdefs.h. */ |
| 43620 |
|
| 43621 |
|
| 43622 |
#include <magic.h> |
| 43623 |
|
| 43624 |
|
| 43625 |
int main(void) |
| 43626 |
{ |
| 43627 |
|
| 43628 |
|
| 43629 |
char var_data[256]; |
| 43630 |
const char *var_mime; |
| 43631 |
magic_t var_magic = magic_open (MAGIC_MIME_TYPE); |
| 43632 |
(void)magic_load (var_magic, "filename"); |
| 43633 |
var_data[0] = 0; |
| 43634 |
var_mime = magic_buffer (var_magic, var_data, 1); |
| 43635 |
if (! var_mime) |
| 43636 |
return 1; |
| 43637 |
magic_close (var_magic); |
| 43638 |
|
| 43639 |
|
| 43640 |
return 0; |
| 43641 |
} |
| 43642 |
|
| 43643 |
|
| 43644 |
_ACEOF |
| 43645 |
if ac_fn_c_try_link "$LINENO" |
| 43646 |
then : |
| 43647 |
mhd_cv_have_func_magic_open="yes" |
| 43648 |
else case e in #( |
| 43649 |
e) mhd_cv_have_func_magic_open="no" ;; |
| 43650 |
esac |
| 43651 |
fi |
| 43652 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43653 |
conftest$ac_exeext conftest.$ac_ext |
| 43654 |
LIBS="${mhd_check_func_SAVE_LIBS}" |
| 43655 |
{ mhd_check_func_SAVE_LIBS=; unset mhd_check_func_SAVE_LIBS;} |
| 43656 |
;; |
| 43657 |
esac |
| 43658 |
fi |
| 43659 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_magic_open" >&5 |
| 43660 |
printf "%s\n" "$mhd_cv_have_func_magic_open" >&6; } |
| 43661 |
if test "x$mhd_cv_have_func_magic_open" = x"yes" |
| 43662 |
then : |
| 43663 |
|
| 43664 |
printf "%s\n" "#define HAVE_MAGIC_OPEN 1" >>confdefs.h |
| 43665 |
|
| 43666 |
|
| 43667 |
printf "%s\n" "#define MHD_HAVE_LIBMAGIC 1" >>confdefs.h |
| 43668 |
|
| 43669 |
|
| 43670 |
fi |
| 43671 |
|
| 43672 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 43673 |
|
| 43674 |
if test "x$mhd_cv_have_func_magic_open" = "xyes"; then |
| 43675 |
MHD_HAVE_LIBMAGIC_TRUE= |
| 43676 |
MHD_HAVE_LIBMAGIC_FALSE='#' |
| 43677 |
else |
| 43678 |
MHD_HAVE_LIBMAGIC_TRUE='#' |
| 43679 |
MHD_HAVE_LIBMAGIC_FALSE= |
| 43680 |
fi |
| 43681 |
|
| 43682 |
|
| 43683 |
# large file support (> 4 GB) |
| 43684 |
|
| 43685 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 43686 |
if test ${mhd_cv_have_func_lseek64+y} |
| 43687 |
then : |
| 43688 |
|
| 43689 |
else case e in #( |
| 43690 |
e) ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" " |
| 43691 |
#if defined(HAVE_SYS_TYPES_H) |
| 43692 |
# include <sys/types.h> |
| 43693 |
#endif |
| 43694 |
#include <unistd.h> |
| 43695 |
|
| 43696 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43697 |
if test "x$ac_cv_have_decl_lseek64" = xyes |
| 43698 |
then : |
| 43699 |
|
| 43700 |
else case e in #( |
| 43701 |
e) mhd_cv_have_func_lseek64="no" ;; |
| 43702 |
esac |
| 43703 |
fi ;; |
| 43704 |
esac |
| 43705 |
fi |
| 43706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function lseek64" >&5 |
| 43707 |
printf %s "checking for function lseek64... " >&6; } |
| 43708 |
if test ${mhd_cv_have_func_lseek64+y} |
| 43709 |
then : |
| 43710 |
printf %s "(cached) " >&6 |
| 43711 |
else case e in #( |
| 43712 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43713 |
/* end confdefs.h. */ |
| 43714 |
|
| 43715 |
|
| 43716 |
#if defined(HAVE_SYS_TYPES_H) |
| 43717 |
# include <sys/types.h> |
| 43718 |
#endif |
| 43719 |
#include <unistd.h> |
| 43720 |
|
| 43721 |
|
| 43722 |
int main(void) |
| 43723 |
{ |
| 43724 |
|
| 43725 |
|
| 43726 |
if (((off64_t) -1) == lseek64(0, (off64_t) 0, SEEK_SET)) |
| 43727 |
return 3; |
| 43728 |
|
| 43729 |
|
| 43730 |
|
| 43731 |
return 0; |
| 43732 |
} |
| 43733 |
|
| 43734 |
|
| 43735 |
_ACEOF |
| 43736 |
if ac_fn_c_try_link "$LINENO" |
| 43737 |
then : |
| 43738 |
mhd_cv_have_func_lseek64="yes" |
| 43739 |
else case e in #( |
| 43740 |
e) mhd_cv_have_func_lseek64="no" ;; |
| 43741 |
esac |
| 43742 |
fi |
| 43743 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43744 |
conftest$ac_exeext conftest.$ac_ext |
| 43745 |
;; |
| 43746 |
esac |
| 43747 |
fi |
| 43748 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_lseek64" >&5 |
| 43749 |
printf "%s\n" "$mhd_cv_have_func_lseek64" >&6; } |
| 43750 |
if test "x$mhd_cv_have_func_lseek64" = x"yes" |
| 43751 |
then : |
| 43752 |
|
| 43753 |
printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h |
| 43754 |
|
| 43755 |
|
| 43756 |
fi |
| 43757 |
|
| 43758 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 43759 |
|
| 43760 |
|
| 43761 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 43762 |
if test ${mhd_cv_have_func_pread64+y} |
| 43763 |
then : |
| 43764 |
|
| 43765 |
else case e in #( |
| 43766 |
e) ac_fn_check_decl "$LINENO" "pread64" "ac_cv_have_decl_pread64" " |
| 43767 |
#if defined(HAVE_SYS_TYPES_H) |
| 43768 |
# include <sys/types.h> |
| 43769 |
#endif |
| 43770 |
#include <unistd.h> |
| 43771 |
|
| 43772 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43773 |
if test "x$ac_cv_have_decl_pread64" = xyes |
| 43774 |
then : |
| 43775 |
|
| 43776 |
else case e in #( |
| 43777 |
e) mhd_cv_have_func_pread64="no" ;; |
| 43778 |
esac |
| 43779 |
fi ;; |
| 43780 |
esac |
| 43781 |
fi |
| 43782 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function pread64" >&5 |
| 43783 |
printf %s "checking for function pread64... " >&6; } |
| 43784 |
if test ${mhd_cv_have_func_pread64+y} |
| 43785 |
then : |
| 43786 |
printf %s "(cached) " >&6 |
| 43787 |
else case e in #( |
| 43788 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43789 |
/* end confdefs.h. */ |
| 43790 |
|
| 43791 |
|
| 43792 |
#if defined(HAVE_SYS_TYPES_H) |
| 43793 |
# include <sys/types.h> |
| 43794 |
#endif |
| 43795 |
#include <unistd.h> |
| 43796 |
|
| 43797 |
|
| 43798 |
int main(void) |
| 43799 |
{ |
| 43800 |
|
| 43801 |
|
| 43802 |
char buf[5]; |
| 43803 |
if (0 > pread64(0, (void *) buf, 1, (off64_t) 0)) |
| 43804 |
return 3; |
| 43805 |
|
| 43806 |
|
| 43807 |
|
| 43808 |
return 0; |
| 43809 |
} |
| 43810 |
|
| 43811 |
|
| 43812 |
_ACEOF |
| 43813 |
if ac_fn_c_try_link "$LINENO" |
| 43814 |
then : |
| 43815 |
mhd_cv_have_func_pread64="yes" |
| 43816 |
else case e in #( |
| 43817 |
e) mhd_cv_have_func_pread64="no" ;; |
| 43818 |
esac |
| 43819 |
fi |
| 43820 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43821 |
conftest$ac_exeext conftest.$ac_ext |
| 43822 |
;; |
| 43823 |
esac |
| 43824 |
fi |
| 43825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_pread64" >&5 |
| 43826 |
printf "%s\n" "$mhd_cv_have_func_pread64" >&6; } |
| 43827 |
if test "x$mhd_cv_have_func_pread64" = x"yes" |
| 43828 |
then : |
| 43829 |
|
| 43830 |
printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h |
| 43831 |
|
| 43832 |
|
| 43833 |
fi |
| 43834 |
|
| 43835 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 43836 |
|
| 43837 |
|
| 43838 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 43839 |
if test ${mhd_cv_have_func_pread+y} |
| 43840 |
then : |
| 43841 |
|
| 43842 |
else case e in #( |
| 43843 |
e) ac_fn_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" " |
| 43844 |
#if defined(HAVE_SYS_TYPES_H) |
| 43845 |
# include <sys/types.h> |
| 43846 |
#endif |
| 43847 |
#include <unistd.h> |
| 43848 |
|
| 43849 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43850 |
if test "x$ac_cv_have_decl_pread" = xyes |
| 43851 |
then : |
| 43852 |
|
| 43853 |
else case e in #( |
| 43854 |
e) mhd_cv_have_func_pread="no" ;; |
| 43855 |
esac |
| 43856 |
fi ;; |
| 43857 |
esac |
| 43858 |
fi |
| 43859 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function pread" >&5 |
| 43860 |
printf %s "checking for function pread... " >&6; } |
| 43861 |
if test ${mhd_cv_have_func_pread+y} |
| 43862 |
then : |
| 43863 |
printf %s "(cached) " >&6 |
| 43864 |
else case e in #( |
| 43865 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43866 |
/* end confdefs.h. */ |
| 43867 |
|
| 43868 |
|
| 43869 |
#if defined(HAVE_SYS_TYPES_H) |
| 43870 |
# include <sys/types.h> |
| 43871 |
#endif |
| 43872 |
#include <unistd.h> |
| 43873 |
|
| 43874 |
|
| 43875 |
int main(void) |
| 43876 |
{ |
| 43877 |
|
| 43878 |
|
| 43879 |
char buf[5]; |
| 43880 |
if (0 > pread(0, (void *) buf, 1, 0)) |
| 43881 |
return 3; |
| 43882 |
|
| 43883 |
|
| 43884 |
|
| 43885 |
return 0; |
| 43886 |
} |
| 43887 |
|
| 43888 |
|
| 43889 |
_ACEOF |
| 43890 |
if ac_fn_c_try_link "$LINENO" |
| 43891 |
then : |
| 43892 |
mhd_cv_have_func_pread="yes" |
| 43893 |
else case e in #( |
| 43894 |
e) mhd_cv_have_func_pread="no" ;; |
| 43895 |
esac |
| 43896 |
fi |
| 43897 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 43898 |
conftest$ac_exeext conftest.$ac_ext |
| 43899 |
;; |
| 43900 |
esac |
| 43901 |
fi |
| 43902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_pread" >&5 |
| 43903 |
printf "%s\n" "$mhd_cv_have_func_pread" >&6; } |
| 43904 |
if test "x$mhd_cv_have_func_pread" = x"yes" |
| 43905 |
then : |
| 43906 |
|
| 43907 |
printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h |
| 43908 |
|
| 43909 |
|
| 43910 |
fi |
| 43911 |
|
| 43912 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 43913 |
|
| 43914 |
|
| 43915 |
|
| 43916 |
# check for various sendfile functions |
| 43917 |
# Check whether --enable-sendfile was given. |
| 43918 |
if test ${enable_sendfile+y} |
| 43919 |
then : |
| 43920 |
enableval=$enable_sendfile; |
| 43921 |
else case e in #( |
| 43922 |
e) enable_sendfile="auto" ;; |
| 43923 |
esac |
| 43924 |
fi |
| 43925 |
|
| 43926 |
case $enable_sendfile in #( |
| 43927 |
auto | yes) : |
| 43928 |
found_sendfile="no" ;; #( |
| 43929 |
no) : |
| 43930 |
found_sendfile="disabled" ;; #( |
| 43931 |
*) : |
| 43932 |
as_fn_error $? "unknown value specified: --enable-sendfile=$enable_sendfile" "$LINENO" 5 |
| 43933 |
;; |
| 43934 |
esac |
| 43935 |
if test "x$found_sendfile" = x"no" |
| 43936 |
then : |
| 43937 |
|
| 43938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux-style sendfile(2)" >&5 |
| 43939 |
printf %s "checking for Linux-style sendfile(2)... " >&6; } |
| 43940 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 43941 |
/* end confdefs.h. */ |
| 43942 |
|
| 43943 |
#include <sys/sendfile.h> |
| 43944 |
|
| 43945 |
static void empty_func(void) |
| 43946 |
{ |
| 43947 |
/* Check for declaration */ |
| 43948 |
(void)sendfile; |
| 43949 |
} |
| 43950 |
/* Declare again to check form match */ |
| 43951 |
ssize_t sendfile(int, int, off_t*, size_t); |
| 43952 |
|
| 43953 |
int |
| 43954 |
main (void) |
| 43955 |
{ |
| 43956 |
|
| 43957 |
int fd1=0, fd2=2; |
| 43958 |
off_t o = 0; |
| 43959 |
size_t s = 5; |
| 43960 |
ssize_t r; |
| 43961 |
r = sendfile (fd1, fd2, &o, s); |
| 43962 |
if (r) |
| 43963 |
empty_func(); |
| 43964 |
|
| 43965 |
|
| 43966 |
; |
| 43967 |
return 0; |
| 43968 |
} |
| 43969 |
|
| 43970 |
_ACEOF |
| 43971 |
if ac_fn_c_try_link "$LINENO" |
| 43972 |
then : |
| 43973 |
|
| 43974 |
|
| 43975 |
printf "%s\n" "#define HAVE_LINUX_SENDFILE 1" >>confdefs.h |
| 43976 |
|
| 43977 |
found_sendfile="yes, Linux-style" |
| 43978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 43979 |
printf "%s\n" "yes" >&6; } |
| 43980 |
|
| 43981 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 43982 |
if test ${mhd_cv_have_func_sendfile64+y} |
| 43983 |
then : |
| 43984 |
|
| 43985 |
else case e in #( |
| 43986 |
e) ac_fn_check_decl "$LINENO" "sendfile64" "ac_cv_have_decl_sendfile64" " |
| 43987 |
#include <sys/sendfile.h> |
| 43988 |
|
| 43989 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 43990 |
if test "x$ac_cv_have_decl_sendfile64" = xyes |
| 43991 |
then : |
| 43992 |
|
| 43993 |
else case e in #( |
| 43994 |
e) mhd_cv_have_func_sendfile64="no" ;; |
| 43995 |
esac |
| 43996 |
fi ;; |
| 43997 |
esac |
| 43998 |
fi |
| 43999 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sendfile64" >&5 |
| 44000 |
printf %s "checking for function sendfile64... " >&6; } |
| 44001 |
if test ${mhd_cv_have_func_sendfile64+y} |
| 44002 |
then : |
| 44003 |
printf %s "(cached) " >&6 |
| 44004 |
else case e in #( |
| 44005 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44006 |
/* end confdefs.h. */ |
| 44007 |
|
| 44008 |
|
| 44009 |
#include <sys/sendfile.h> |
| 44010 |
|
| 44011 |
|
| 44012 |
int main(void) |
| 44013 |
{ |
| 44014 |
|
| 44015 |
|
| 44016 |
off64_t f_offset = (off64_t) 0; |
| 44017 |
if (0 > sendfile64 (0, 1, &f_offset, 1)) |
| 44018 |
return 3; |
| 44019 |
|
| 44020 |
|
| 44021 |
|
| 44022 |
return 0; |
| 44023 |
} |
| 44024 |
|
| 44025 |
|
| 44026 |
_ACEOF |
| 44027 |
if ac_fn_c_try_link "$LINENO" |
| 44028 |
then : |
| 44029 |
mhd_cv_have_func_sendfile64="yes" |
| 44030 |
else case e in #( |
| 44031 |
e) mhd_cv_have_func_sendfile64="no" ;; |
| 44032 |
esac |
| 44033 |
fi |
| 44034 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44035 |
conftest$ac_exeext conftest.$ac_ext |
| 44036 |
;; |
| 44037 |
esac |
| 44038 |
fi |
| 44039 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sendfile64" >&5 |
| 44040 |
printf "%s\n" "$mhd_cv_have_func_sendfile64" >&6; } |
| 44041 |
if test "x$mhd_cv_have_func_sendfile64" = x"yes" |
| 44042 |
then : |
| 44043 |
|
| 44044 |
printf "%s\n" "#define HAVE_SENDFILE64 1" >>confdefs.h |
| 44045 |
|
| 44046 |
|
| 44047 |
fi |
| 44048 |
|
| 44049 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 44050 |
|
| 44051 |
|
| 44052 |
else case e in #( |
| 44053 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44054 |
printf "%s\n" "no" >&6; } |
| 44055 |
|
| 44056 |
;; |
| 44057 |
esac |
| 44058 |
fi |
| 44059 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44060 |
conftest$ac_exeext conftest.$ac_ext |
| 44061 |
|
| 44062 |
|
| 44063 |
fi |
| 44064 |
if test "x$found_sendfile" = x"no" |
| 44065 |
then : |
| 44066 |
|
| 44067 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FreeBSD-style sendfile(2)" >&5 |
| 44068 |
printf %s "checking for FreeBSD-style sendfile(2)... " >&6; } |
| 44069 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44070 |
/* end confdefs.h. */ |
| 44071 |
|
| 44072 |
#include <sys/types.h> |
| 44073 |
#include <sys/socket.h> |
| 44074 |
#include <sys/uio.h> |
| 44075 |
|
| 44076 |
static void empty_func(void) |
| 44077 |
{ |
| 44078 |
/* Check for declaration */ |
| 44079 |
(void)sendfile; |
| 44080 |
} |
| 44081 |
/* Declare again to check form match */ |
| 44082 |
int sendfile(int, int, off_t, size_t, |
| 44083 |
struct sf_hdtr*, off_t*, int); |
| 44084 |
|
| 44085 |
int |
| 44086 |
main (void) |
| 44087 |
{ |
| 44088 |
|
| 44089 |
int fd1=0, fd2=1; |
| 44090 |
off_t o = 0; |
| 44091 |
size_t s = 5; |
| 44092 |
off_t r1; |
| 44093 |
int r2; |
| 44094 |
r2 = sendfile (fd1, fd2, o, s, (void*)0, &r1, 0); |
| 44095 |
if (r2) |
| 44096 |
empty_func(); |
| 44097 |
|
| 44098 |
|
| 44099 |
; |
| 44100 |
return 0; |
| 44101 |
} |
| 44102 |
|
| 44103 |
_ACEOF |
| 44104 |
if ac_fn_c_try_link "$LINENO" |
| 44105 |
then : |
| 44106 |
|
| 44107 |
|
| 44108 |
printf "%s\n" "#define HAVE_FREEBSD_SENDFILE 1" >>confdefs.h |
| 44109 |
|
| 44110 |
found_sendfile="yes, FreeBSD-style" |
| 44111 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44112 |
printf "%s\n" "yes" >&6; } |
| 44113 |
|
| 44114 |
else case e in #( |
| 44115 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44116 |
printf "%s\n" "no" >&6; } |
| 44117 |
|
| 44118 |
;; |
| 44119 |
esac |
| 44120 |
fi |
| 44121 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44122 |
conftest$ac_exeext conftest.$ac_ext |
| 44123 |
|
| 44124 |
|
| 44125 |
fi |
| 44126 |
if test "x$found_sendfile" = x"no" |
| 44127 |
then : |
| 44128 |
|
| 44129 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Darwin-style sendfile(2)" >&5 |
| 44130 |
printf %s "checking for Darwin-style sendfile(2)... " >&6; } |
| 44131 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44132 |
/* end confdefs.h. */ |
| 44133 |
|
| 44134 |
#include <sys/types.h> |
| 44135 |
#include <sys/socket.h> |
| 44136 |
#include <sys/uio.h> |
| 44137 |
|
| 44138 |
static void empty_func(void) |
| 44139 |
{ |
| 44140 |
/* Check for declaration */ |
| 44141 |
(void)sendfile; |
| 44142 |
} |
| 44143 |
/* Declare again to check form match */ |
| 44144 |
int sendfile(int, int, off_t, off_t*, |
| 44145 |
struct sf_hdtr *, int); |
| 44146 |
|
| 44147 |
int |
| 44148 |
main (void) |
| 44149 |
{ |
| 44150 |
|
| 44151 |
int fd=0, s=1; |
| 44152 |
off_t o = 0; |
| 44153 |
off_t l = 5; |
| 44154 |
int r; |
| 44155 |
r = sendfile (fd, s, o, &l, (void*)0, 0); |
| 44156 |
if (r) |
| 44157 |
empty_func(); |
| 44158 |
|
| 44159 |
|
| 44160 |
; |
| 44161 |
return 0; |
| 44162 |
} |
| 44163 |
|
| 44164 |
_ACEOF |
| 44165 |
if ac_fn_c_try_link "$LINENO" |
| 44166 |
then : |
| 44167 |
|
| 44168 |
|
| 44169 |
printf "%s\n" "#define HAVE_DARWIN_SENDFILE 1" >>confdefs.h |
| 44170 |
|
| 44171 |
found_sendfile="yes, Darwin-style" |
| 44172 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44173 |
printf "%s\n" "yes" >&6; } |
| 44174 |
|
| 44175 |
else case e in #( |
| 44176 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44177 |
printf "%s\n" "no" >&6; } |
| 44178 |
|
| 44179 |
;; |
| 44180 |
esac |
| 44181 |
fi |
| 44182 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44183 |
conftest$ac_exeext conftest.$ac_ext |
| 44184 |
|
| 44185 |
|
| 44186 |
fi |
| 44187 |
|
| 44188 |
if test "x$found_sendfile" = x"no" |
| 44189 |
then : |
| 44190 |
|
| 44191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Solaris-style sendfile(3)" >&5 |
| 44192 |
printf %s "checking for Solaris-style sendfile(3)... " >&6; } |
| 44193 |
SAVE_LIBS="$LIBS" |
| 44194 |
LIBS="-lsendfile $LIBS" |
| 44195 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44196 |
/* end confdefs.h. */ |
| 44197 |
|
| 44198 |
#include <sys/types.h> |
| 44199 |
#include <sys/socket.h> |
| 44200 |
#include <sys/sendfile.h> |
| 44201 |
|
| 44202 |
static void empty_func(void) |
| 44203 |
{ |
| 44204 |
/* Check for declaration */ |
| 44205 |
(void)sendfile; |
| 44206 |
} |
| 44207 |
/* Declare again to check form match */ |
| 44208 |
ssize_t sendfile(int out_fd, int in_fd, |
| 44209 |
off_t *off, size_t len); |
| 44210 |
|
| 44211 |
int |
| 44212 |
main (void) |
| 44213 |
{ |
| 44214 |
|
| 44215 |
int fd1=0, fd2=1; |
| 44216 |
off_t o = 0; |
| 44217 |
size_t l = 5; |
| 44218 |
ssize_t r; |
| 44219 |
r = sendfile (fd1, fd2, &o, l); |
| 44220 |
if (r) |
| 44221 |
empty_func(); |
| 44222 |
|
| 44223 |
|
| 44224 |
; |
| 44225 |
return 0; |
| 44226 |
} |
| 44227 |
|
| 44228 |
_ACEOF |
| 44229 |
if ac_fn_c_try_link "$LINENO" |
| 44230 |
then : |
| 44231 |
|
| 44232 |
|
| 44233 |
printf "%s\n" "#define HAVE_SOLARIS_SENDFILE 1" >>confdefs.h |
| 44234 |
|
| 44235 |
found_sendfile="yes, Solaris-style" |
| 44236 |
MHD_LIBDEPS="-lsendfile $MHD_LIBDEPS" |
| 44237 |
MHD_LIBDEPS_PKGCFG="-lsendfile $MHD_LIBDEPS_PKGCFG" |
| 44238 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44239 |
printf "%s\n" "yes" >&6; } |
| 44240 |
|
| 44241 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 44242 |
if test ${mhd_cv_have_func_sendfile64+y} |
| 44243 |
then : |
| 44244 |
|
| 44245 |
else case e in #( |
| 44246 |
e) ac_fn_check_decl "$LINENO" "sendfile64" "ac_cv_have_decl_sendfile64" " |
| 44247 |
#include <sys/types.h> |
| 44248 |
#include <sys/socket.h> |
| 44249 |
#include <sys/sendfile.h> |
| 44250 |
|
| 44251 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 44252 |
if test "x$ac_cv_have_decl_sendfile64" = xyes |
| 44253 |
then : |
| 44254 |
|
| 44255 |
else case e in #( |
| 44256 |
e) mhd_cv_have_func_sendfile64="no" ;; |
| 44257 |
esac |
| 44258 |
fi ;; |
| 44259 |
esac |
| 44260 |
fi |
| 44261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sendfile64" >&5 |
| 44262 |
printf %s "checking for function sendfile64... " >&6; } |
| 44263 |
if test ${mhd_cv_have_func_sendfile64+y} |
| 44264 |
then : |
| 44265 |
printf %s "(cached) " >&6 |
| 44266 |
else case e in #( |
| 44267 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44268 |
/* end confdefs.h. */ |
| 44269 |
|
| 44270 |
|
| 44271 |
#include <sys/types.h> |
| 44272 |
#include <sys/socket.h> |
| 44273 |
#include <sys/sendfile.h> |
| 44274 |
|
| 44275 |
|
| 44276 |
int main(void) |
| 44277 |
{ |
| 44278 |
|
| 44279 |
|
| 44280 |
off64_t f_offset = (off64_t) 0; |
| 44281 |
if (0 > sendfile64 (0, 1, &f_offset, 1)) |
| 44282 |
return 3; |
| 44283 |
|
| 44284 |
|
| 44285 |
|
| 44286 |
return 0; |
| 44287 |
} |
| 44288 |
|
| 44289 |
|
| 44290 |
_ACEOF |
| 44291 |
if ac_fn_c_try_link "$LINENO" |
| 44292 |
then : |
| 44293 |
mhd_cv_have_func_sendfile64="yes" |
| 44294 |
else case e in #( |
| 44295 |
e) mhd_cv_have_func_sendfile64="no" ;; |
| 44296 |
esac |
| 44297 |
fi |
| 44298 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44299 |
conftest$ac_exeext conftest.$ac_ext |
| 44300 |
;; |
| 44301 |
esac |
| 44302 |
fi |
| 44303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sendfile64" >&5 |
| 44304 |
printf "%s\n" "$mhd_cv_have_func_sendfile64" >&6; } |
| 44305 |
if test "x$mhd_cv_have_func_sendfile64" = x"yes" |
| 44306 |
then : |
| 44307 |
|
| 44308 |
printf "%s\n" "#define HAVE_SENDFILE64 1" >>confdefs.h |
| 44309 |
|
| 44310 |
|
| 44311 |
fi |
| 44312 |
|
| 44313 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 44314 |
|
| 44315 |
|
| 44316 |
else case e in #( |
| 44317 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44318 |
printf "%s\n" "no" >&6; } |
| 44319 |
|
| 44320 |
;; |
| 44321 |
esac |
| 44322 |
fi |
| 44323 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44324 |
conftest$ac_exeext conftest.$ac_ext |
| 44325 |
LIBS="$SAVE_LIBS" |
| 44326 |
|
| 44327 |
|
| 44328 |
fi |
| 44329 |
if test "x$found_sendfile" = "xno" && test "x$enable_sendfile" = "xyes" |
| 44330 |
then : |
| 44331 |
as_fn_error $? "sendfile() usage was requested by configure parameter, but no usable sendfile() function is detected" "$LINENO" 5 |
| 44332 |
|
| 44333 |
fi |
| 44334 |
|
| 44335 |
# optional: enable error and informational messages |
| 44336 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to generate text messages" >&5 |
| 44337 |
printf %s "checking whether to generate text messages... " >&6; } |
| 44338 |
# Check whether --enable-messages was given. |
| 44339 |
if test ${enable_messages+y} |
| 44340 |
then : |
| 44341 |
enableval=$enable_messages; enable_messages=${enableval} |
| 44342 |
else case e in #( |
| 44343 |
e) enable_messages=yes ;; |
| 44344 |
esac |
| 44345 |
fi |
| 44346 |
|
| 44347 |
if test "x$enable_messages" = "xyes" |
| 44348 |
then : |
| 44349 |
|
| 44350 |
printf "%s\n" "#define HAVE_MESSAGES 1" >>confdefs.h |
| 44351 |
|
| 44352 |
else case e in #( |
| 44353 |
e) enable_messages=no ;; |
| 44354 |
esac |
| 44355 |
fi |
| 44356 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_messages" >&5 |
| 44357 |
printf "%s\n" "$enable_messages" >&6; } |
| 44358 |
if test "x$enable_messages" != "xno"; then |
| 44359 |
HAVE_MESSAGES_TRUE= |
| 44360 |
HAVE_MESSAGES_FALSE='#' |
| 44361 |
else |
| 44362 |
HAVE_MESSAGES_TRUE='#' |
| 44363 |
HAVE_MESSAGES_FALSE= |
| 44364 |
fi |
| 44365 |
|
| 44366 |
|
| 44367 |
|
| 44368 |
# optional: have postprocessor? |
| 44369 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable postprocessor" >&5 |
| 44370 |
printf %s "checking whether to enable postprocessor... " >&6; } |
| 44371 |
# Check whether --enable-postprocessor was given. |
| 44372 |
if test ${enable_postprocessor+y} |
| 44373 |
then : |
| 44374 |
enableval=$enable_postprocessor; enable_postprocessor=${enableval} |
| 44375 |
else case e in #( |
| 44376 |
e) enable_postprocessor=yes ;; |
| 44377 |
esac |
| 44378 |
fi |
| 44379 |
|
| 44380 |
if test "x$enable_postprocessor" != "xno" |
| 44381 |
then : |
| 44382 |
enable_postprocessor=yes |
| 44383 |
|
| 44384 |
printf "%s\n" "#define HAVE_POSTPROCESSOR 1" >>confdefs.h |
| 44385 |
|
| 44386 |
fi |
| 44387 |
if test "x$enable_postprocessor" != "xno"; then |
| 44388 |
HAVE_POSTPROCESSOR_TRUE= |
| 44389 |
HAVE_POSTPROCESSOR_FALSE='#' |
| 44390 |
else |
| 44391 |
HAVE_POSTPROCESSOR_TRUE='#' |
| 44392 |
HAVE_POSTPROCESSOR_FALSE= |
| 44393 |
fi |
| 44394 |
|
| 44395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_postprocessor" >&5 |
| 44396 |
printf "%s\n" "$enable_postprocessor" >&6; } |
| 44397 |
|
| 44398 |
have_gnutls=no |
| 44399 |
have_gnutls_sni=no |
| 44400 |
have_gcrypt=no |
| 44401 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 44402 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 44403 |
|
| 44404 |
# optional: HTTPS support. Enabled by default |
| 44405 |
# Check whether --enable-https was given. |
| 44406 |
if test ${enable_https+y} |
| 44407 |
then : |
| 44408 |
enableval=$enable_https; enable_https=${enableval} |
| 44409 |
fi |
| 44410 |
|
| 44411 |
|
| 44412 |
|
| 44413 |
|
| 44414 |
|
| 44415 |
|
| 44416 |
|
| 44417 |
|
| 44418 |
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 44419 |
if test -n "$ac_tool_prefix"; then |
| 44420 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 44421 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 44422 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 44423 |
printf %s "checking for $ac_word... " >&6; } |
| 44424 |
if test ${ac_cv_path_PKG_CONFIG+y} |
| 44425 |
then : |
| 44426 |
printf %s "(cached) " >&6 |
| 44427 |
else case e in #( |
| 44428 |
e) case $PKG_CONFIG in |
| 44429 |
[\\/]* | ?:[\\/]*) |
| 44430 |
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 44431 |
;; |
| 44432 |
*) |
| 44433 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44434 |
for as_dir in $PATH |
| 44435 |
do |
| 44436 |
IFS=$as_save_IFS |
| 44437 |
case $as_dir in #((( |
| 44438 |
'') as_dir=./ ;; |
| 44439 |
*/) ;; |
| 44440 |
*) as_dir=$as_dir/ ;; |
| 44441 |
esac |
| 44442 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 44443 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 44444 |
ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 44445 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 44446 |
break 2 |
| 44447 |
fi |
| 44448 |
done |
| 44449 |
done |
| 44450 |
IFS=$as_save_IFS |
| 44451 |
|
| 44452 |
;; |
| 44453 |
esac ;; |
| 44454 |
esac |
| 44455 |
fi |
| 44456 |
PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 44457 |
if test -n "$PKG_CONFIG"; then |
| 44458 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 44459 |
printf "%s\n" "$PKG_CONFIG" >&6; } |
| 44460 |
else |
| 44461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44462 |
printf "%s\n" "no" >&6; } |
| 44463 |
fi |
| 44464 |
|
| 44465 |
|
| 44466 |
fi |
| 44467 |
if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 44468 |
ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 44469 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 44470 |
set dummy pkg-config; ac_word=$2 |
| 44471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 44472 |
printf %s "checking for $ac_word... " >&6; } |
| 44473 |
if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} |
| 44474 |
then : |
| 44475 |
printf %s "(cached) " >&6 |
| 44476 |
else case e in #( |
| 44477 |
e) case $ac_pt_PKG_CONFIG in |
| 44478 |
[\\/]* | ?:[\\/]*) |
| 44479 |
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 44480 |
;; |
| 44481 |
*) |
| 44482 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 44483 |
for as_dir in $PATH |
| 44484 |
do |
| 44485 |
IFS=$as_save_IFS |
| 44486 |
case $as_dir in #((( |
| 44487 |
'') as_dir=./ ;; |
| 44488 |
*/) ;; |
| 44489 |
*) as_dir=$as_dir/ ;; |
| 44490 |
esac |
| 44491 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 44492 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 44493 |
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 44494 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 44495 |
break 2 |
| 44496 |
fi |
| 44497 |
done |
| 44498 |
done |
| 44499 |
IFS=$as_save_IFS |
| 44500 |
|
| 44501 |
;; |
| 44502 |
esac ;; |
| 44503 |
esac |
| 44504 |
fi |
| 44505 |
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 44506 |
if test -n "$ac_pt_PKG_CONFIG"; then |
| 44507 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 44508 |
printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } |
| 44509 |
else |
| 44510 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44511 |
printf "%s\n" "no" >&6; } |
| 44512 |
fi |
| 44513 |
|
| 44514 |
if test "x$ac_pt_PKG_CONFIG" = x; then |
| 44515 |
PKG_CONFIG="" |
| 44516 |
else |
| 44517 |
case $cross_compiling:$ac_tool_warned in |
| 44518 |
yes:) |
| 44519 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 44520 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 44521 |
ac_tool_warned=yes ;; |
| 44522 |
esac |
| 44523 |
PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 44524 |
fi |
| 44525 |
else |
| 44526 |
PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 44527 |
fi |
| 44528 |
|
| 44529 |
fi |
| 44530 |
if test -n "$PKG_CONFIG"; then |
| 44531 |
_pkg_min_version=0.9.0 |
| 44532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 44533 |
printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 44534 |
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 44535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44536 |
printf "%s\n" "yes" >&6; } |
| 44537 |
else |
| 44538 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44539 |
printf "%s\n" "no" >&6; } |
| 44540 |
PKG_CONFIG="" |
| 44541 |
fi |
| 44542 |
fi |
| 44543 |
if test -z "$PKG_CONFIG"; then |
| 44544 |
as_fn_error $? "pkg-config not found" "$LINENO" 5 |
| 44545 |
fi |
| 44546 |
if test "x$enable_https" != "xno" |
| 44547 |
then : |
| 44548 |
|
| 44549 |
# |
| 44550 |
# Next block is large unindented block |
| 44551 |
# |
| 44552 |
|
| 44553 |
# gnutls |
| 44554 |
have_gnutls_pkgcfg=no |
| 44555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to find GnuTLS library" >&5 |
| 44556 |
printf %s "checking how to find GnuTLS library... " >&6; } |
| 44557 |
|
| 44558 |
# Check whether --with-gnutls was given. |
| 44559 |
if test ${with_gnutls+y} |
| 44560 |
then : |
| 44561 |
withval=$with_gnutls; |
| 44562 |
case $with_gnutls in #( |
| 44563 |
no) : |
| 44564 |
|
| 44565 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: GnuTLS disabled" >&5 |
| 44566 |
printf "%s\n" "GnuTLS disabled" >&6; } |
| 44567 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 44568 |
{ GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;} |
| 44569 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 44570 |
{ GNUTLS_LIBS=; unset GNUTLS_LIBS;} |
| 44571 |
;; #( |
| 44572 |
yes) : |
| 44573 |
|
| 44574 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatically, forced" >&5 |
| 44575 |
printf "%s\n" "automatically, forced" >&6; } |
| 44576 |
;; #( |
| 44577 |
*) : |
| 44578 |
|
| 44579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&5 |
| 44580 |
printf "%s\n" "-I$with_gnutls/include -L$with_gnutls/lib -lgnutls" >&6; } |
| 44581 |
SAVE_LIBS="$LIBS" |
| 44582 |
LDFLAGS="${LDFLAGS_ac} -L$with_gnutls/lib ${user_LDFLAGS}" |
| 44583 |
CPPFLAGS="${CPPFLAGS_ac} -I$with_gnutls/include ${user_CPPFLAGS}" |
| 44584 |
have_gnutls_pkgcfg=no |
| 44585 |
|
| 44586 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 44587 |
if test ${mhd_cv_have_func_gnutls_check_version+y} |
| 44588 |
then : |
| 44589 |
|
| 44590 |
else case e in #( |
| 44591 |
e) ac_fn_check_decl "$LINENO" "gnutls_check_version" "ac_cv_have_decl_gnutls_check_version" "#include <gnutls/gnutls.h> |
| 44592 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 44593 |
if test "x$ac_cv_have_decl_gnutls_check_version" = xyes |
| 44594 |
then : |
| 44595 |
|
| 44596 |
else case e in #( |
| 44597 |
e) mhd_cv_have_func_gnutls_check_version="no" ;; |
| 44598 |
esac |
| 44599 |
fi ;; |
| 44600 |
esac |
| 44601 |
fi |
| 44602 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function gnutls_check_version" >&5 |
| 44603 |
printf %s "checking for function gnutls_check_version... " >&6; } |
| 44604 |
if test ${mhd_cv_have_func_gnutls_check_version+y} |
| 44605 |
then : |
| 44606 |
printf %s "(cached) " >&6 |
| 44607 |
else case e in #( |
| 44608 |
e) mhd_check_func_SAVE_LIBS="$LIBS" |
| 44609 |
LIBS="-lgnutls $LIBS" |
| 44610 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44611 |
/* end confdefs.h. */ |
| 44612 |
|
| 44613 |
#include <gnutls/gnutls.h> |
| 44614 |
|
| 44615 |
int main(void) |
| 44616 |
{ |
| 44617 |
|
| 44618 |
|
| 44619 |
if(!gnutls_check_version("2.0.0")) |
| 44620 |
return 3; |
| 44621 |
|
| 44622 |
|
| 44623 |
return 0; |
| 44624 |
} |
| 44625 |
|
| 44626 |
|
| 44627 |
_ACEOF |
| 44628 |
if ac_fn_c_try_link "$LINENO" |
| 44629 |
then : |
| 44630 |
mhd_cv_have_func_gnutls_check_version="yes" |
| 44631 |
else case e in #( |
| 44632 |
e) mhd_cv_have_func_gnutls_check_version="no" ;; |
| 44633 |
esac |
| 44634 |
fi |
| 44635 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44636 |
conftest$ac_exeext conftest.$ac_ext |
| 44637 |
LIBS="${mhd_check_func_SAVE_LIBS}" |
| 44638 |
{ mhd_check_func_SAVE_LIBS=; unset mhd_check_func_SAVE_LIBS;} |
| 44639 |
;; |
| 44640 |
esac |
| 44641 |
fi |
| 44642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_gnutls_check_version" >&5 |
| 44643 |
printf "%s\n" "$mhd_cv_have_func_gnutls_check_version" >&6; } |
| 44644 |
if test "x$mhd_cv_have_func_gnutls_check_version" = x"yes" |
| 44645 |
then : |
| 44646 |
|
| 44647 |
printf "%s\n" "#define HAVE_GNUTLS_CHECK_VERSION 1" >>confdefs.h |
| 44648 |
|
| 44649 |
|
| 44650 |
GNUTLS_CPPFLAGS="-I$with_gnutls/include" |
| 44651 |
GNUTLS_LDFLAGS="-L$with_gnutls/lib" |
| 44652 |
GNUTLS_LIBS="-lgnutls" |
| 44653 |
have_gnutls=yes |
| 44654 |
|
| 44655 |
|
| 44656 |
else case e in #( |
| 44657 |
e) as_fn_error $? "can't find usable libgnutls at specified prefix $with_gnutls" "$LINENO" 5 ;; |
| 44658 |
esac |
| 44659 |
fi |
| 44660 |
|
| 44661 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 44662 |
|
| 44663 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 44664 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 44665 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 44666 |
LIBS="$SAVE_LIBS" |
| 44667 |
;; |
| 44668 |
esac |
| 44669 |
|
| 44670 |
else case e in #( |
| 44671 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: automatically" >&5 |
| 44672 |
printf "%s\n" "automatically" >&6; } |
| 44673 |
;; |
| 44674 |
esac |
| 44675 |
fi |
| 44676 |
|
| 44677 |
|
| 44678 |
if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes" |
| 44679 |
then : |
| 44680 |
|
| 44681 |
|
| 44682 |
pkg_failed=no |
| 44683 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls" >&5 |
| 44684 |
printf %s "checking for gnutls... " >&6; } |
| 44685 |
|
| 44686 |
if test -n "$GNUTLS_CFLAGS"; then |
| 44687 |
pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS" |
| 44688 |
elif test -n "$PKG_CONFIG"; then |
| 44689 |
if test -n "$PKG_CONFIG" && \ |
| 44690 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
| 44691 |
($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 |
| 44692 |
ac_status=$? |
| 44693 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 44694 |
test $ac_status = 0; }; then |
| 44695 |
pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null` |
| 44696 |
test "x$?" != "x0" && pkg_failed=yes |
| 44697 |
else |
| 44698 |
pkg_failed=yes |
| 44699 |
fi |
| 44700 |
else |
| 44701 |
pkg_failed=untried |
| 44702 |
fi |
| 44703 |
if test -n "$GNUTLS_LIBS"; then |
| 44704 |
pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS" |
| 44705 |
elif test -n "$PKG_CONFIG"; then |
| 44706 |
if test -n "$PKG_CONFIG" && \ |
| 44707 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5 |
| 44708 |
($PKG_CONFIG --exists --print-errors "gnutls") 2>&5 |
| 44709 |
ac_status=$? |
| 44710 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 44711 |
test $ac_status = 0; }; then |
| 44712 |
pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls" 2>/dev/null` |
| 44713 |
test "x$?" != "x0" && pkg_failed=yes |
| 44714 |
else |
| 44715 |
pkg_failed=yes |
| 44716 |
fi |
| 44717 |
else |
| 44718 |
pkg_failed=untried |
| 44719 |
fi |
| 44720 |
|
| 44721 |
|
| 44722 |
|
| 44723 |
if test $pkg_failed = yes; then |
| 44724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44725 |
printf "%s\n" "no" >&6; } |
| 44726 |
|
| 44727 |
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| 44728 |
_pkg_short_errors_supported=yes |
| 44729 |
else |
| 44730 |
_pkg_short_errors_supported=no |
| 44731 |
fi |
| 44732 |
if test $_pkg_short_errors_supported = yes; then |
| 44733 |
GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1` |
| 44734 |
else |
| 44735 |
GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1` |
| 44736 |
fi |
| 44737 |
# Put the nasty error message in config.log where it belongs |
| 44738 |
echo "$GNUTLS_PKG_ERRORS" >&5 |
| 44739 |
|
| 44740 |
|
| 44741 |
# check for GnuTLS at default paths |
| 44742 |
have_gnutls_pkgcfg='no' |
| 44743 |
for ac_header in gnutls/gnutls.h |
| 44744 |
do : |
| 44745 |
ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default |
| 44746 |
" |
| 44747 |
if test "x$ac_cv_header_gnutls_gnutls_h" = xyes |
| 44748 |
then : |
| 44749 |
printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h |
| 44750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 |
| 44751 |
printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; } |
| 44752 |
if test ${ac_cv_lib_gnutls_gnutls_priority_set+y} |
| 44753 |
then : |
| 44754 |
printf %s "(cached) " >&6 |
| 44755 |
else case e in #( |
| 44756 |
e) ac_check_lib_save_LIBS=$LIBS |
| 44757 |
LIBS="-lgnutls $LIBS" |
| 44758 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44759 |
/* end confdefs.h. */ |
| 44760 |
|
| 44761 |
/* Override any GCC internal prototype to avoid an error. |
| 44762 |
Use char because int might match the return type of a GCC |
| 44763 |
builtin and then its argument prototype would still apply. |
| 44764 |
The 'extern "C"' is for builds by C++ compilers; |
| 44765 |
although this is not generally supported in C code supporting it here |
| 44766 |
has little cost and some practical benefit (sr 110532). */ |
| 44767 |
#ifdef __cplusplus |
| 44768 |
extern "C" |
| 44769 |
#endif |
| 44770 |
char gnutls_priority_set (void); |
| 44771 |
int |
| 44772 |
main (void) |
| 44773 |
{ |
| 44774 |
return gnutls_priority_set (); |
| 44775 |
; |
| 44776 |
return 0; |
| 44777 |
} |
| 44778 |
_ACEOF |
| 44779 |
if ac_fn_c_try_link "$LINENO" |
| 44780 |
then : |
| 44781 |
ac_cv_lib_gnutls_gnutls_priority_set=yes |
| 44782 |
else case e in #( |
| 44783 |
e) ac_cv_lib_gnutls_gnutls_priority_set=no ;; |
| 44784 |
esac |
| 44785 |
fi |
| 44786 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44787 |
conftest$ac_exeext conftest.$ac_ext |
| 44788 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 44789 |
esac |
| 44790 |
fi |
| 44791 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 |
| 44792 |
printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } |
| 44793 |
if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes |
| 44794 |
then : |
| 44795 |
|
| 44796 |
GNUTLS_LIBS="-lgnutls" |
| 44797 |
have_gnutls=yes |
| 44798 |
|
| 44799 |
fi |
| 44800 |
|
| 44801 |
fi |
| 44802 |
|
| 44803 |
done |
| 44804 |
|
| 44805 |
elif test $pkg_failed = untried; then |
| 44806 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44807 |
printf "%s\n" "no" >&6; } |
| 44808 |
|
| 44809 |
# check for GnuTLS at default paths |
| 44810 |
have_gnutls_pkgcfg='no' |
| 44811 |
for ac_header in gnutls/gnutls.h |
| 44812 |
do : |
| 44813 |
ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default |
| 44814 |
" |
| 44815 |
if test "x$ac_cv_header_gnutls_gnutls_h" = xyes |
| 44816 |
then : |
| 44817 |
printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h |
| 44818 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 |
| 44819 |
printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; } |
| 44820 |
if test ${ac_cv_lib_gnutls_gnutls_priority_set+y} |
| 44821 |
then : |
| 44822 |
printf %s "(cached) " >&6 |
| 44823 |
else case e in #( |
| 44824 |
e) ac_check_lib_save_LIBS=$LIBS |
| 44825 |
LIBS="-lgnutls $LIBS" |
| 44826 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44827 |
/* end confdefs.h. */ |
| 44828 |
|
| 44829 |
/* Override any GCC internal prototype to avoid an error. |
| 44830 |
Use char because int might match the return type of a GCC |
| 44831 |
builtin and then its argument prototype would still apply. |
| 44832 |
The 'extern "C"' is for builds by C++ compilers; |
| 44833 |
although this is not generally supported in C code supporting it here |
| 44834 |
has little cost and some practical benefit (sr 110532). */ |
| 44835 |
#ifdef __cplusplus |
| 44836 |
extern "C" |
| 44837 |
#endif |
| 44838 |
char gnutls_priority_set (void); |
| 44839 |
int |
| 44840 |
main (void) |
| 44841 |
{ |
| 44842 |
return gnutls_priority_set (); |
| 44843 |
; |
| 44844 |
return 0; |
| 44845 |
} |
| 44846 |
_ACEOF |
| 44847 |
if ac_fn_c_try_link "$LINENO" |
| 44848 |
then : |
| 44849 |
ac_cv_lib_gnutls_gnutls_priority_set=yes |
| 44850 |
else case e in #( |
| 44851 |
e) ac_cv_lib_gnutls_gnutls_priority_set=no ;; |
| 44852 |
esac |
| 44853 |
fi |
| 44854 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44855 |
conftest$ac_exeext conftest.$ac_ext |
| 44856 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 44857 |
esac |
| 44858 |
fi |
| 44859 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 |
| 44860 |
printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } |
| 44861 |
if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes |
| 44862 |
then : |
| 44863 |
|
| 44864 |
GNUTLS_LIBS="-lgnutls" |
| 44865 |
have_gnutls=yes |
| 44866 |
|
| 44867 |
fi |
| 44868 |
|
| 44869 |
fi |
| 44870 |
|
| 44871 |
done |
| 44872 |
|
| 44873 |
else |
| 44874 |
GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS |
| 44875 |
GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS |
| 44876 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44877 |
printf "%s\n" "yes" >&6; } |
| 44878 |
|
| 44879 |
have_gnutls_pkgcfg='yes' |
| 44880 |
SAVE_LIBS="$LIBS" |
| 44881 |
CFLAGS="${CFLAGS_ac} $GNUTLS_CFLAGS ${user_CFLAGS}" |
| 44882 |
LIBS="$GNUTLS_LIBS $LIBS" |
| 44883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS is usable" >&5 |
| 44884 |
printf %s "checking whether GnuTLS is usable... " >&6; } |
| 44885 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 44886 |
/* end confdefs.h. */ |
| 44887 |
|
| 44888 |
|
| 44889 |
#include <gnutls/gnutls.h> |
| 44890 |
|
| 44891 |
int |
| 44892 |
main (void) |
| 44893 |
{ |
| 44894 |
|
| 44895 |
gnutls_session_t session; |
| 44896 |
gnutls_priority_t priorities; |
| 44897 |
gnutls_global_init(); |
| 44898 |
gnutls_priority_init(&priorities, "NORMAL", NULL); |
| 44899 |
gnutls_init(&session, GNUTLS_SERVER); |
| 44900 |
gnutls_priority_set(session, priorities); |
| 44901 |
|
| 44902 |
; |
| 44903 |
return 0; |
| 44904 |
} |
| 44905 |
_ACEOF |
| 44906 |
if ac_fn_c_try_link "$LINENO" |
| 44907 |
then : |
| 44908 |
|
| 44909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 44910 |
printf "%s\n" "yes" >&6; } |
| 44911 |
have_gnutls=yes |
| 44912 |
# GNUTLS_CFLAGS is actually CPPFLAGS |
| 44913 |
GNUTLS_CPPFLAGS="$GNUTLS_CFLAGS" |
| 44914 |
# GNUTLS_LDFLAGS is a combination of LDFLAGS and LIBS |
| 44915 |
GNUTLS_LDFLAGS="$GNUTLS_LIBS" |
| 44916 |
|
| 44917 |
else case e in #( |
| 44918 |
e) |
| 44919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 44920 |
printf "%s\n" "no" >&6; } |
| 44921 |
have_gnutls=no |
| 44922 |
;; |
| 44923 |
esac |
| 44924 |
fi |
| 44925 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 44926 |
conftest$ac_exeext conftest.$ac_ext |
| 44927 |
|
| 44928 |
if test "x$have_gnutls" != "xyes" |
| 44929 |
then : |
| 44930 |
|
| 44931 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&5 |
| 44932 |
printf "%s\n" "$as_me: WARNING: pkg-config reports that GnuTLS is present, but GnuTLS can't be used" >&2;} |
| 44933 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 44934 |
{ GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;} |
| 44935 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 44936 |
{ GNUTLS_LIBS=; unset GNUTLS_LIBS;} |
| 44937 |
|
| 44938 |
|
| 44939 |
fi |
| 44940 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 44941 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 44942 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 44943 |
LIBS="$SAVE_LIBS" |
| 44944 |
|
| 44945 |
fi |
| 44946 |
|
| 44947 |
fi |
| 44948 |
|
| 44949 |
have_gcrypt='unknown' |
| 44950 |
if test "x$with_gnutls" != "xno" && test "x$have_gnutls" != "xyes" |
| 44951 |
then : |
| 44952 |
|
| 44953 |
|
| 44954 |
|
| 44955 |
# Check whether --with-libgcrypt-prefix was given. |
| 44956 |
if test ${with_libgcrypt_prefix+y} |
| 44957 |
then : |
| 44958 |
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" |
| 44959 |
else case e in #( |
| 44960 |
e) libgcrypt_config_prefix="" ;; |
| 44961 |
esac |
| 44962 |
fi |
| 44963 |
|
| 44964 |
if test x"${LIBGCRYPT_CONFIG}" = x ; then |
| 44965 |
if test x"${libgcrypt_config_prefix}" != x ; then |
| 44966 |
LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config" |
| 44967 |
fi |
| 44968 |
fi |
| 44969 |
|
| 44970 |
use_gpgrt_config="" |
| 44971 |
if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then |
| 44972 |
if $GPGRT_CONFIG libgcrypt --exists; then |
| 44973 |
LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt" |
| 44974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5 |
| 44975 |
printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;} |
| 44976 |
use_gpgrt_config=yes |
| 44977 |
fi |
| 44978 |
fi |
| 44979 |
if test -z "$use_gpgrt_config"; then |
| 44980 |
if test x"${LIBGCRYPT_CONFIG}" = x ; then |
| 44981 |
case "${SYSROOT}" in |
| 44982 |
/*) |
| 44983 |
if test -x "${SYSROOT}/bin/libgcrypt-config" ; then |
| 44984 |
LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config" |
| 44985 |
fi |
| 44986 |
;; |
| 44987 |
'') |
| 44988 |
;; |
| 44989 |
*) |
| 44990 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5 |
| 44991 |
printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;} |
| 44992 |
;; |
| 44993 |
esac |
| 44994 |
fi |
| 44995 |
# Extract the first word of "libgcrypt-config", so it can be a program name with args. |
| 44996 |
set dummy libgcrypt-config; ac_word=$2 |
| 44997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 44998 |
printf %s "checking for $ac_word... " >&6; } |
| 44999 |
if test ${ac_cv_path_LIBGCRYPT_CONFIG+y} |
| 45000 |
then : |
| 45001 |
printf %s "(cached) " >&6 |
| 45002 |
else case e in #( |
| 45003 |
e) case $LIBGCRYPT_CONFIG in |
| 45004 |
[\\/]* | ?:[\\/]*) |
| 45005 |
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. |
| 45006 |
;; |
| 45007 |
*) |
| 45008 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45009 |
for as_dir in $PATH |
| 45010 |
do |
| 45011 |
IFS=$as_save_IFS |
| 45012 |
case $as_dir in #((( |
| 45013 |
'') as_dir=./ ;; |
| 45014 |
*/) ;; |
| 45015 |
*) as_dir=$as_dir/ ;; |
| 45016 |
esac |
| 45017 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 45018 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 45019 |
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 45020 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 45021 |
break 2 |
| 45022 |
fi |
| 45023 |
done |
| 45024 |
done |
| 45025 |
IFS=$as_save_IFS |
| 45026 |
|
| 45027 |
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" |
| 45028 |
;; |
| 45029 |
esac ;; |
| 45030 |
esac |
| 45031 |
fi |
| 45032 |
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG |
| 45033 |
if test -n "$LIBGCRYPT_CONFIG"; then |
| 45034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 |
| 45035 |
printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; } |
| 45036 |
else |
| 45037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 45038 |
printf "%s\n" "no" >&6; } |
| 45039 |
fi |
| 45040 |
|
| 45041 |
|
| 45042 |
fi |
| 45043 |
|
| 45044 |
tmp=1.2.2 |
| 45045 |
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
| 45046 |
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` |
| 45047 |
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` |
| 45048 |
else |
| 45049 |
req_libgcrypt_api=0 |
| 45050 |
min_libgcrypt_version="$tmp" |
| 45051 |
fi |
| 45052 |
|
| 45053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 |
| 45054 |
printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } |
| 45055 |
ok=no |
| 45056 |
if test "$LIBGCRYPT_CONFIG" != "no" ; then |
| 45057 |
req_major=`echo $min_libgcrypt_version | \ |
| 45058 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 45059 |
req_minor=`echo $min_libgcrypt_version | \ |
| 45060 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 45061 |
req_micro=`echo $min_libgcrypt_version | \ |
| 45062 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 45063 |
if test -z "$use_gpgrt_config"; then |
| 45064 |
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` |
| 45065 |
else |
| 45066 |
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion` |
| 45067 |
fi |
| 45068 |
major=`echo $libgcrypt_config_version | \ |
| 45069 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 45070 |
minor=`echo $libgcrypt_config_version | \ |
| 45071 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 45072 |
micro=`echo $libgcrypt_config_version | \ |
| 45073 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` |
| 45074 |
if test "$major" -gt "$req_major"; then |
| 45075 |
ok=yes |
| 45076 |
else |
| 45077 |
if test "$major" -eq "$req_major"; then |
| 45078 |
if test "$minor" -gt "$req_minor"; then |
| 45079 |
ok=yes |
| 45080 |
else |
| 45081 |
if test "$minor" -eq "$req_minor"; then |
| 45082 |
if test "$micro" -ge "$req_micro"; then |
| 45083 |
ok=yes |
| 45084 |
fi |
| 45085 |
fi |
| 45086 |
fi |
| 45087 |
fi |
| 45088 |
fi |
| 45089 |
fi |
| 45090 |
if test $ok = yes; then |
| 45091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 |
| 45092 |
printf "%s\n" "yes ($libgcrypt_config_version)" >&6; } |
| 45093 |
else |
| 45094 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 45095 |
printf "%s\n" "no" >&6; } |
| 45096 |
fi |
| 45097 |
if test $ok = yes; then |
| 45098 |
# If we have a recent libgcrypt, we should also check that the |
| 45099 |
# API is compatible |
| 45100 |
if test "$req_libgcrypt_api" -gt 0 ; then |
| 45101 |
if test -z "$use_gpgrt_config"; then |
| 45102 |
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` |
| 45103 |
else |
| 45104 |
tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0` |
| 45105 |
fi |
| 45106 |
if test "$tmp" -gt 0 ; then |
| 45107 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 |
| 45108 |
printf %s "checking LIBGCRYPT API version... " >&6; } |
| 45109 |
if test "$req_libgcrypt_api" -eq "$tmp" ; then |
| 45110 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5 |
| 45111 |
printf "%s\n" "okay" >&6; } |
| 45112 |
else |
| 45113 |
ok=no |
| 45114 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 |
| 45115 |
printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } |
| 45116 |
fi |
| 45117 |
fi |
| 45118 |
fi |
| 45119 |
fi |
| 45120 |
if test $ok = yes; then |
| 45121 |
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` |
| 45122 |
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` |
| 45123 |
have_gcrypt=yes |
| 45124 |
if test -z "$use_gpgrt_config"; then |
| 45125 |
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` |
| 45126 |
else |
| 45127 |
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` |
| 45128 |
fi |
| 45129 |
if test x"$libgcrypt_config_host" != xnone ; then |
| 45130 |
if test x"$libgcrypt_config_host" != x"$host" ; then |
| 45131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
| 45132 |
*** |
| 45133 |
*** The config script \"$LIBGCRYPT_CONFIG\" was |
| 45134 |
*** built for $libgcrypt_config_host and thus may not match the |
| 45135 |
*** used host $host. |
| 45136 |
*** You may want to use the configure option --with-libgcrypt-prefix |
| 45137 |
*** to specify a matching config script or use \$SYSROOT. |
| 45138 |
***" >&5 |
| 45139 |
printf "%s\n" "$as_me: WARNING: |
| 45140 |
*** |
| 45141 |
*** The config script \"$LIBGCRYPT_CONFIG\" was |
| 45142 |
*** built for $libgcrypt_config_host and thus may not match the |
| 45143 |
*** used host $host. |
| 45144 |
*** You may want to use the configure option --with-libgcrypt-prefix |
| 45145 |
*** to specify a matching config script or use \$SYSROOT. |
| 45146 |
***" >&2;} |
| 45147 |
gpg_config_script_warn="$gpg_config_script_warn libgcrypt" |
| 45148 |
fi |
| 45149 |
fi |
| 45150 |
else |
| 45151 |
LIBGCRYPT_CFLAGS="" |
| 45152 |
LIBGCRYPT_LIBS="" |
| 45153 |
have_gcrypt=no |
| 45154 |
fi |
| 45155 |
|
| 45156 |
|
| 45157 |
|
| 45158 |
if test "x$have_gcrypt" = "xyes" |
| 45159 |
then : |
| 45160 |
|
| 45161 |
SAVE_LIBS="$LIBS" |
| 45162 |
CFLAGS="${CFLAGS_ac} $LIBGCRYPT_CFLAGS ${user_CFLAGS}" |
| 45163 |
# LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both |
| 45164 |
CPPFLAGS="${CPPFLAGS_ac} $LIBGCRYPT_CFLAGS ${user_CPPFLAGS}" |
| 45165 |
for ac_header in gcrypt.h |
| 45166 |
do : |
| 45167 |
ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default |
| 45168 |
" |
| 45169 |
if test "x$ac_cv_header_gcrypt_h" = xyes |
| 45170 |
then : |
| 45171 |
printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h |
| 45172 |
|
| 45173 |
else case e in #( |
| 45174 |
e) have_gcrypt=no ;; |
| 45175 |
esac |
| 45176 |
fi |
| 45177 |
|
| 45178 |
done |
| 45179 |
# Check for GnuTLS with gcrypt flags |
| 45180 |
LDFLAGS="${LDFLAGS_ac} ${LIBGCRYPT_LIBS} ${user_LDFLAGS}" |
| 45181 |
# A bit of hack: unset cache variable to force recheck |
| 45182 |
{ ac_cv_header_gnutls_gnutls_h=; unset ac_cv_header_gnutls_gnutls_h;} |
| 45183 |
for ac_header in gnutls/gnutls.h |
| 45184 |
do : |
| 45185 |
ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default |
| 45186 |
" |
| 45187 |
if test "x$ac_cv_header_gnutls_gnutls_h" = xyes |
| 45188 |
then : |
| 45189 |
printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h |
| 45190 |
{ ac_cv_lib_gnutls_gnutls_priority_set=; unset ac_cv_lib_gnutls_gnutls_priority_set;} # A bit of hack: unset cache variable to force recheck |
| 45191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set in -lgnutls" >&5 |
| 45192 |
printf %s "checking for gnutls_priority_set in -lgnutls... " >&6; } |
| 45193 |
if test ${ac_cv_lib_gnutls_gnutls_priority_set+y} |
| 45194 |
then : |
| 45195 |
printf %s "(cached) " >&6 |
| 45196 |
else case e in #( |
| 45197 |
e) ac_check_lib_save_LIBS=$LIBS |
| 45198 |
LIBS="-lgnutls $LIBS" |
| 45199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 45200 |
/* end confdefs.h. */ |
| 45201 |
|
| 45202 |
/* Override any GCC internal prototype to avoid an error. |
| 45203 |
Use char because int might match the return type of a GCC |
| 45204 |
builtin and then its argument prototype would still apply. |
| 45205 |
The 'extern "C"' is for builds by C++ compilers; |
| 45206 |
although this is not generally supported in C code supporting it here |
| 45207 |
has little cost and some practical benefit (sr 110532). */ |
| 45208 |
#ifdef __cplusplus |
| 45209 |
extern "C" |
| 45210 |
#endif |
| 45211 |
char gnutls_priority_set (void); |
| 45212 |
int |
| 45213 |
main (void) |
| 45214 |
{ |
| 45215 |
return gnutls_priority_set (); |
| 45216 |
; |
| 45217 |
return 0; |
| 45218 |
} |
| 45219 |
_ACEOF |
| 45220 |
if ac_fn_c_try_link "$LINENO" |
| 45221 |
then : |
| 45222 |
ac_cv_lib_gnutls_gnutls_priority_set=yes |
| 45223 |
else case e in #( |
| 45224 |
e) ac_cv_lib_gnutls_gnutls_priority_set=no ;; |
| 45225 |
esac |
| 45226 |
fi |
| 45227 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 45228 |
conftest$ac_exeext conftest.$ac_ext |
| 45229 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 45230 |
esac |
| 45231 |
fi |
| 45232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_priority_set" >&5 |
| 45233 |
printf "%s\n" "$ac_cv_lib_gnutls_gnutls_priority_set" >&6; } |
| 45234 |
if test "x$ac_cv_lib_gnutls_gnutls_priority_set" = xyes |
| 45235 |
then : |
| 45236 |
|
| 45237 |
GNUTLS_CPPFLAGS="$LIBGCRYPT_CFLAGS" |
| 45238 |
GNUTLS_CFLAGS="$LIBGCRYPT_CFLAGS" |
| 45239 |
GNUTLS_LDFLAGS="$LIBGCRYPT_LIBS" |
| 45240 |
GNUTLS_LIBS="-lgnutls" |
| 45241 |
have_gnutls=yes |
| 45242 |
|
| 45243 |
fi |
| 45244 |
|
| 45245 |
fi |
| 45246 |
|
| 45247 |
done |
| 45248 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 45249 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 45250 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 45251 |
LIBS="$SAVE_LIBS" |
| 45252 |
|
| 45253 |
|
| 45254 |
fi |
| 45255 |
|
| 45256 |
|
| 45257 |
fi |
| 45258 |
if test "x$have_gnutls" != "xyes" && test "x$with_gnutls" = "xyes" |
| 45259 |
then : |
| 45260 |
as_fn_error $? "can't find usable libgnutls" "$LINENO" 5 |
| 45261 |
fi |
| 45262 |
|
| 45263 |
if test "x$have_gnutls" = "xyes" |
| 45264 |
then : |
| 45265 |
|
| 45266 |
SAVE_LIBS="$LIBS" |
| 45267 |
CPPFLAGS="${CPPFLAGS_ac} ${GNUTLS_CPPFLAGS} ${user_CPPFLAGS}" |
| 45268 |
CFLAGS="${CFLAGS_ac} ${GNUTLS_CFLAGS} ${user_CFLAGS}" |
| 45269 |
LDFLAGS="${LDFLAGS_ac} ${GNUTLS_LDFLAGS} ${user_LDFLAGS}" |
| 45270 |
LIBS="$GNUTLS_LIBS $LIBS" |
| 45271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_privkey_import_x509_raw()" >&5 |
| 45272 |
printf %s "checking for gnutls_privkey_import_x509_raw()... " >&6; } |
| 45273 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 45274 |
/* end confdefs.h. */ |
| 45275 |
|
| 45276 |
|
| 45277 |
#include <gnutls/gnutls.h> |
| 45278 |
#include <gnutls/abstract.h> |
| 45279 |
|
| 45280 |
int |
| 45281 |
main (void) |
| 45282 |
{ |
| 45283 |
|
| 45284 |
gnutls_datum_t data; |
| 45285 |
gnutls_privkey_t key = 0; |
| 45286 |
#ifndef gnutls_load_file |
| 45287 |
(void)gnutls_load_file; /* Check for declaration. */ |
| 45288 |
#endif |
| 45289 |
#ifndef gnutls_privkey_import_x509_raw |
| 45290 |
(void)gnutls_privkey_import_x509_raw; /* Check for declaration. */ |
| 45291 |
#endif |
| 45292 |
gnutls_load_file("key.pem", &data); |
| 45293 |
gnutls_privkey_import_x509_raw(key, &data, GNUTLS_X509_FMT_PEM, NULL, 0); |
| 45294 |
gnutls_free(data.data); |
| 45295 |
|
| 45296 |
; |
| 45297 |
return 0; |
| 45298 |
} |
| 45299 |
_ACEOF |
| 45300 |
if ac_fn_c_try_link "$LINENO" |
| 45301 |
then : |
| 45302 |
have_gnutls_sni=yes |
| 45303 |
else case e in #( |
| 45304 |
e) have_gnutls_sni=no ;; |
| 45305 |
esac |
| 45306 |
fi |
| 45307 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 45308 |
conftest$ac_exeext conftest.$ac_ext |
| 45309 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_gnutls_sni" >&5 |
| 45310 |
printf "%s\n" "$have_gnutls_sni" >&6; } |
| 45311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS require libgcrypt initialisation" >&5 |
| 45312 |
printf %s "checking whether GnuTLS require libgcrypt initialisation... " >&6; } |
| 45313 |
if test ${mhd_cv_gcrypt_required+y} |
| 45314 |
then : |
| 45315 |
printf %s "(cached) " >&6 |
| 45316 |
else case e in #( |
| 45317 |
e) |
| 45318 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 45319 |
/* end confdefs.h. */ |
| 45320 |
|
| 45321 |
|
| 45322 |
#include <gnutls/gnutls.h> |
| 45323 |
|
| 45324 |
int |
| 45325 |
main (void) |
| 45326 |
{ |
| 45327 |
|
| 45328 |
#if !defined(GNUTLS_VERSION_NUMBER) || GNUTLS_VERSION_NUMBER+0 <= 0x020c14 |
| 45329 |
#error Old versions of GnuTLS require libgcript initialisation |
| 45330 |
choke me now |
| 45331 |
#endif |
| 45332 |
|
| 45333 |
|
| 45334 |
; |
| 45335 |
return 0; |
| 45336 |
} |
| 45337 |
|
| 45338 |
_ACEOF |
| 45339 |
if ac_fn_c_try_compile "$LINENO" |
| 45340 |
then : |
| 45341 |
mhd_cv_gcrypt_required='no' |
| 45342 |
else case e in #( |
| 45343 |
e) mhd_cv_gcrypt_required='yes' |
| 45344 |
;; |
| 45345 |
esac |
| 45346 |
fi |
| 45347 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 45348 |
|
| 45349 |
;; |
| 45350 |
esac |
| 45351 |
fi |
| 45352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gcrypt_required" >&5 |
| 45353 |
printf "%s\n" "$mhd_cv_gcrypt_required" >&6; } |
| 45354 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 45355 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 45356 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 45357 |
LIBS="$SAVE_LIBS" |
| 45358 |
|
| 45359 |
else case e in #( |
| 45360 |
e) |
| 45361 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 45362 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 45363 |
|
| 45364 |
;; |
| 45365 |
esac |
| 45366 |
fi |
| 45367 |
|
| 45368 |
if test "x$mhd_cv_gcrypt_required" = "xyes" && test "x$have_gcrypt" = "xunknown" |
| 45369 |
then : |
| 45370 |
|
| 45371 |
|
| 45372 |
|
| 45373 |
# Check whether --with-libgcrypt-prefix was given. |
| 45374 |
if test ${with_libgcrypt_prefix+y} |
| 45375 |
then : |
| 45376 |
withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval" |
| 45377 |
else case e in #( |
| 45378 |
e) libgcrypt_config_prefix="" ;; |
| 45379 |
esac |
| 45380 |
fi |
| 45381 |
|
| 45382 |
if test x"${LIBGCRYPT_CONFIG}" = x ; then |
| 45383 |
if test x"${libgcrypt_config_prefix}" != x ; then |
| 45384 |
LIBGCRYPT_CONFIG="${libgcrypt_config_prefix}/bin/libgcrypt-config" |
| 45385 |
fi |
| 45386 |
fi |
| 45387 |
|
| 45388 |
use_gpgrt_config="" |
| 45389 |
if test x"${LIBGCRYPT_CONFIG}" = x -a x"$GPGRT_CONFIG" != x -a "$GPGRT_CONFIG" != "no"; then |
| 45390 |
if $GPGRT_CONFIG libgcrypt --exists; then |
| 45391 |
LIBGCRYPT_CONFIG="$GPGRT_CONFIG libgcrypt" |
| 45392 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Use gpgrt-config as libgcrypt-config" >&5 |
| 45393 |
printf "%s\n" "$as_me: Use gpgrt-config as libgcrypt-config" >&6;} |
| 45394 |
use_gpgrt_config=yes |
| 45395 |
fi |
| 45396 |
fi |
| 45397 |
if test -z "$use_gpgrt_config"; then |
| 45398 |
if test x"${LIBGCRYPT_CONFIG}" = x ; then |
| 45399 |
case "${SYSROOT}" in |
| 45400 |
/*) |
| 45401 |
if test -x "${SYSROOT}/bin/libgcrypt-config" ; then |
| 45402 |
LIBGCRYPT_CONFIG="${SYSROOT}/bin/libgcrypt-config" |
| 45403 |
fi |
| 45404 |
;; |
| 45405 |
'') |
| 45406 |
;; |
| 45407 |
*) |
| 45408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&5 |
| 45409 |
printf "%s\n" "$as_me: WARNING: Ignoring \$SYSROOT as it is not an absolute path." >&2;} |
| 45410 |
;; |
| 45411 |
esac |
| 45412 |
fi |
| 45413 |
# Extract the first word of "libgcrypt-config", so it can be a program name with args. |
| 45414 |
set dummy libgcrypt-config; ac_word=$2 |
| 45415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 45416 |
printf %s "checking for $ac_word... " >&6; } |
| 45417 |
if test ${ac_cv_path_LIBGCRYPT_CONFIG+y} |
| 45418 |
then : |
| 45419 |
printf %s "(cached) " >&6 |
| 45420 |
else case e in #( |
| 45421 |
e) case $LIBGCRYPT_CONFIG in |
| 45422 |
[\\/]* | ?:[\\/]*) |
| 45423 |
ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path. |
| 45424 |
;; |
| 45425 |
*) |
| 45426 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 45427 |
for as_dir in $PATH |
| 45428 |
do |
| 45429 |
IFS=$as_save_IFS |
| 45430 |
case $as_dir in #((( |
| 45431 |
'') as_dir=./ ;; |
| 45432 |
*/) ;; |
| 45433 |
*) as_dir=$as_dir/ ;; |
| 45434 |
esac |
| 45435 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 45436 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 45437 |
ac_cv_path_LIBGCRYPT_CONFIG="$as_dir$ac_word$ac_exec_ext" |
| 45438 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 45439 |
break 2 |
| 45440 |
fi |
| 45441 |
done |
| 45442 |
done |
| 45443 |
IFS=$as_save_IFS |
| 45444 |
|
| 45445 |
test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no" |
| 45446 |
;; |
| 45447 |
esac ;; |
| 45448 |
esac |
| 45449 |
fi |
| 45450 |
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG |
| 45451 |
if test -n "$LIBGCRYPT_CONFIG"; then |
| 45452 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5 |
| 45453 |
printf "%s\n" "$LIBGCRYPT_CONFIG" >&6; } |
| 45454 |
else |
| 45455 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 45456 |
printf "%s\n" "no" >&6; } |
| 45457 |
fi |
| 45458 |
|
| 45459 |
|
| 45460 |
fi |
| 45461 |
|
| 45462 |
tmp=1.2.2 |
| 45463 |
if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then |
| 45464 |
req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'` |
| 45465 |
min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'` |
| 45466 |
else |
| 45467 |
req_libgcrypt_api=0 |
| 45468 |
min_libgcrypt_version="$tmp" |
| 45469 |
fi |
| 45470 |
|
| 45471 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5 |
| 45472 |
printf %s "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; } |
| 45473 |
ok=no |
| 45474 |
if test "$LIBGCRYPT_CONFIG" != "no" ; then |
| 45475 |
req_major=`echo $min_libgcrypt_version | \ |
| 45476 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'` |
| 45477 |
req_minor=`echo $min_libgcrypt_version | \ |
| 45478 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'` |
| 45479 |
req_micro=`echo $min_libgcrypt_version | \ |
| 45480 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'` |
| 45481 |
if test -z "$use_gpgrt_config"; then |
| 45482 |
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version` |
| 45483 |
else |
| 45484 |
libgcrypt_config_version=`$LIBGCRYPT_CONFIG --modversion` |
| 45485 |
fi |
| 45486 |
major=`echo $libgcrypt_config_version | \ |
| 45487 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'` |
| 45488 |
minor=`echo $libgcrypt_config_version | \ |
| 45489 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'` |
| 45490 |
micro=`echo $libgcrypt_config_version | \ |
| 45491 |
sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'` |
| 45492 |
if test "$major" -gt "$req_major"; then |
| 45493 |
ok=yes |
| 45494 |
else |
| 45495 |
if test "$major" -eq "$req_major"; then |
| 45496 |
if test "$minor" -gt "$req_minor"; then |
| 45497 |
ok=yes |
| 45498 |
else |
| 45499 |
if test "$minor" -eq "$req_minor"; then |
| 45500 |
if test "$micro" -ge "$req_micro"; then |
| 45501 |
ok=yes |
| 45502 |
fi |
| 45503 |
fi |
| 45504 |
fi |
| 45505 |
fi |
| 45506 |
fi |
| 45507 |
fi |
| 45508 |
if test $ok = yes; then |
| 45509 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5 |
| 45510 |
printf "%s\n" "yes ($libgcrypt_config_version)" >&6; } |
| 45511 |
else |
| 45512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 45513 |
printf "%s\n" "no" >&6; } |
| 45514 |
fi |
| 45515 |
if test $ok = yes; then |
| 45516 |
# If we have a recent libgcrypt, we should also check that the |
| 45517 |
# API is compatible |
| 45518 |
if test "$req_libgcrypt_api" -gt 0 ; then |
| 45519 |
if test -z "$use_gpgrt_config"; then |
| 45520 |
tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0` |
| 45521 |
else |
| 45522 |
tmp=`$LIBGCRYPT_CONFIG --variable=api_version 2>/dev/null || echo 0` |
| 45523 |
fi |
| 45524 |
if test "$tmp" -gt 0 ; then |
| 45525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5 |
| 45526 |
printf %s "checking LIBGCRYPT API version... " >&6; } |
| 45527 |
if test "$req_libgcrypt_api" -eq "$tmp" ; then |
| 45528 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: okay" >&5 |
| 45529 |
printf "%s\n" "okay" >&6; } |
| 45530 |
else |
| 45531 |
ok=no |
| 45532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5 |
| 45533 |
printf "%s\n" "does not match. want=$req_libgcrypt_api got=$tmp" >&6; } |
| 45534 |
fi |
| 45535 |
fi |
| 45536 |
fi |
| 45537 |
fi |
| 45538 |
if test $ok = yes; then |
| 45539 |
LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags` |
| 45540 |
LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs` |
| 45541 |
have_gcrypt=yes |
| 45542 |
if test -z "$use_gpgrt_config"; then |
| 45543 |
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none` |
| 45544 |
else |
| 45545 |
libgcrypt_config_host=`$LIBGCRYPT_CONFIG --variable=host 2>/dev/null || echo none` |
| 45546 |
fi |
| 45547 |
if test x"$libgcrypt_config_host" != xnone ; then |
| 45548 |
if test x"$libgcrypt_config_host" != x"$host" ; then |
| 45549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: |
| 45550 |
*** |
| 45551 |
*** The config script \"$LIBGCRYPT_CONFIG\" was |
| 45552 |
*** built for $libgcrypt_config_host and thus may not match the |
| 45553 |
*** used host $host. |
| 45554 |
*** You may want to use the configure option --with-libgcrypt-prefix |
| 45555 |
*** to specify a matching config script or use \$SYSROOT. |
| 45556 |
***" >&5 |
| 45557 |
printf "%s\n" "$as_me: WARNING: |
| 45558 |
*** |
| 45559 |
*** The config script \"$LIBGCRYPT_CONFIG\" was |
| 45560 |
*** built for $libgcrypt_config_host and thus may not match the |
| 45561 |
*** used host $host. |
| 45562 |
*** You may want to use the configure option --with-libgcrypt-prefix |
| 45563 |
*** to specify a matching config script or use \$SYSROOT. |
| 45564 |
***" >&2;} |
| 45565 |
gpg_config_script_warn="$gpg_config_script_warn libgcrypt" |
| 45566 |
fi |
| 45567 |
fi |
| 45568 |
else |
| 45569 |
LIBGCRYPT_CFLAGS="" |
| 45570 |
LIBGCRYPT_LIBS="" |
| 45571 |
have_gcrypt=no |
| 45572 |
fi |
| 45573 |
|
| 45574 |
|
| 45575 |
|
| 45576 |
if test "x$have_gcrypt" = "xyes" |
| 45577 |
then : |
| 45578 |
|
| 45579 |
CFLAGS="${CFLAGS_ac} ${LIBGCRYPT_CFLAGS} ${user_CFLAGS}" |
| 45580 |
# LIBGCRYPT_CFLAGS can be actually a CPPFLAGS, so check them both |
| 45581 |
CPPFLAGS="${CPPFLAGS_ac} ${LIBGCRYPT_CFLAGS} ${user_CPPFLAGS}" |
| 45582 |
for ac_header in gcrypt.h |
| 45583 |
do : |
| 45584 |
ac_fn_c_check_header_compile "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default |
| 45585 |
" |
| 45586 |
if test "x$ac_cv_header_gcrypt_h" = xyes |
| 45587 |
then : |
| 45588 |
printf "%s\n" "#define HAVE_GCRYPT_H 1" >>confdefs.h |
| 45589 |
|
| 45590 |
else case e in #( |
| 45591 |
e) have_gcrypt=no ;; |
| 45592 |
esac |
| 45593 |
fi |
| 45594 |
|
| 45595 |
done |
| 45596 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 45597 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 45598 |
|
| 45599 |
|
| 45600 |
fi |
| 45601 |
|
| 45602 |
|
| 45603 |
fi |
| 45604 |
|
| 45605 |
{ crypt_missing=; unset crypt_missing;} |
| 45606 |
if test "x$have_gnutls" = "xyes" |
| 45607 |
then : |
| 45608 |
|
| 45609 |
if test "x$mhd_cv_gcrypt_required" = "xyes" && test "x$have_gcrypt" != "xyes" |
| 45610 |
then : |
| 45611 |
|
| 45612 |
crypt_missing="required libgcrypt" |
| 45613 |
if test "x$enable_https" = "xyes" |
| 45614 |
then : |
| 45615 |
as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5 |
| 45616 |
fi |
| 45617 |
enable_https=no |
| 45618 |
MSG_HTTPS="no (lacking $crypt_missing)" |
| 45619 |
{ LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;} |
| 45620 |
{ LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;} |
| 45621 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 45622 |
{ GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;} |
| 45623 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 45624 |
{ GNUTLS_LIBS=; unset GNUTLS_LIBS;} |
| 45625 |
|
| 45626 |
else case e in #( |
| 45627 |
e) |
| 45628 |
|
| 45629 |
printf "%s\n" "#define HTTPS_SUPPORT 1" >>confdefs.h |
| 45630 |
|
| 45631 |
enable_https=yes |
| 45632 |
if test "x$mhd_cv_gcrypt_required" = "xyes" |
| 45633 |
then : |
| 45634 |
|
| 45635 |
MSG_HTTPS="yes (using libgnutls and libgcrypt)" |
| 45636 |
MHD_TLS_LIB_CPPFLAGS="$LIBGCRYPT_CFLAGS $GNUTLS_CPPFLAGS" |
| 45637 |
MHD_TLS_LIB_CFLAGS="$LIBGCRYPT_CFLAGS $GNUTLS_CFLAGS" |
| 45638 |
MHD_TLS_LIB_LDFLAGS="$GNUTLS_LDFLAGS" |
| 45639 |
MHD_TLS_LIBDEPS="$GNUTLS_LIBS $LIBGCRYPT_LIBS" |
| 45640 |
|
| 45641 |
printf "%s\n" "#define MHD_HTTPS_REQUIRE_GCRYPT 1" >>confdefs.h |
| 45642 |
|
| 45643 |
|
| 45644 |
else case e in #( |
| 45645 |
e) |
| 45646 |
MSG_HTTPS="yes (using libgnutls)" |
| 45647 |
{ LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;} |
| 45648 |
{ LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;} |
| 45649 |
MHD_TLS_LIB_CPPFLAGS="$GNUTLS_CPPFLAGS" |
| 45650 |
MHD_TLS_LIB_CFLAGS="$GNUTLS_CFLAGS" |
| 45651 |
MHD_TLS_LIB_LDFLAGS="$GNUTLS_LDFLAGS" |
| 45652 |
MHD_TLS_LIBDEPS="$GNUTLS_LIBS" |
| 45653 |
|
| 45654 |
;; |
| 45655 |
esac |
| 45656 |
fi |
| 45657 |
if test "x$have_gnutls_pkgcfg" = "xyes" |
| 45658 |
then : |
| 45659 |
# remove GnuTLS from private libs in .pc file as it defined in Requires.private |
| 45660 |
MHD_REQ_PRIVATE='gnutls' |
| 45661 |
if test "x$mhd_cv_gcrypt_required" = "xyes" |
| 45662 |
then : |
| 45663 |
MHD_LIBDEPS_PKGCFG="$LIBGCRYPT_LIBS $MHD_LIBDEPS_PKGCFG" |
| 45664 |
|
| 45665 |
fi |
| 45666 |
|
| 45667 |
else case e in #( |
| 45668 |
e) |
| 45669 |
MHD_REQ_PRIVATE='' |
| 45670 |
if test "x$mhd_cv_gcrypt_required" = "xyes" |
| 45671 |
then : |
| 45672 |
MHD_LIBDEPS_PKGCFG="$LIBGCRYPT_LIBS $MHD_LIBDEPS_PKGCFG" |
| 45673 |
|
| 45674 |
fi |
| 45675 |
MHD_LIBDEPS_PKGCFG="$GNUTLS_LIBS $MHD_LIBDEPS_PKGCFG" |
| 45676 |
;; |
| 45677 |
esac |
| 45678 |
fi |
| 45679 |
|
| 45680 |
;; |
| 45681 |
esac |
| 45682 |
fi |
| 45683 |
|
| 45684 |
else case e in #( |
| 45685 |
e) |
| 45686 |
crypt_missing="libgnutls" |
| 45687 |
if test "x$enable_https" = "xyes" |
| 45688 |
then : |
| 45689 |
as_fn_error $? "HTTPS support cannot be enabled without $crypt_missing." "$LINENO" 5 |
| 45690 |
fi |
| 45691 |
enable_https=no |
| 45692 |
MSG_HTTPS="no (lacking $crypt_missing)" |
| 45693 |
{ LIBGCRYPT_CFLAGS=; unset LIBGCRYPT_CFLAGS;} |
| 45694 |
{ LIBGCRYPT_LIBS=; unset LIBGCRYPT_LIBS;} |
| 45695 |
{ GNUTLS_CPPFLAGS=; unset GNUTLS_CPPFLAGS;} |
| 45696 |
{ GNUTLS_CFLAGS=; unset GNUTLS_CFLAGS;} |
| 45697 |
{ GNUTLS_LDFLAGS=; unset GNUTLS_LDFLAGS;} |
| 45698 |
{ GNUTLS_LIBS=; unset GNUTLS_LIBS;} |
| 45699 |
|
| 45700 |
;; |
| 45701 |
esac |
| 45702 |
fi |
| 45703 |
|
| 45704 |
else case e in #( |
| 45705 |
e) |
| 45706 |
MSG_HTTPS="no (disabled)" |
| 45707 |
;; |
| 45708 |
esac |
| 45709 |
fi |
| 45710 |
|
| 45711 |
# |
| 45712 |
# End of large unindented block |
| 45713 |
# |
| 45714 |
|
| 45715 |
|
| 45716 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTPS" >&5 |
| 45717 |
printf %s "checking whether to support HTTPS... " >&6; } |
| 45718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSG_HTTPS" >&5 |
| 45719 |
printf "%s\n" "$MSG_HTTPS" >&6; } |
| 45720 |
|
| 45721 |
if test "x$have_gnutls" = "xyes"; then |
| 45722 |
HAVE_GNUTLS_TRUE= |
| 45723 |
HAVE_GNUTLS_FALSE='#' |
| 45724 |
else |
| 45725 |
HAVE_GNUTLS_TRUE='#' |
| 45726 |
HAVE_GNUTLS_FALSE= |
| 45727 |
fi |
| 45728 |
|
| 45729 |
if test "x$have_gnutls_sni" = "xyes"; then |
| 45730 |
HAVE_GNUTLS_SNI_TRUE= |
| 45731 |
HAVE_GNUTLS_SNI_FALSE='#' |
| 45732 |
else |
| 45733 |
HAVE_GNUTLS_SNI_TRUE='#' |
| 45734 |
HAVE_GNUTLS_SNI_FALSE= |
| 45735 |
fi |
| 45736 |
|
| 45737 |
if test "x$enable_https" = "xyes"; then |
| 45738 |
ENABLE_HTTPS_TRUE= |
| 45739 |
ENABLE_HTTPS_FALSE='#' |
| 45740 |
else |
| 45741 |
ENABLE_HTTPS_TRUE='#' |
| 45742 |
ENABLE_HTTPS_FALSE= |
| 45743 |
fi |
| 45744 |
|
| 45745 |
if test "x$enable_https" = "xyes" && test "x$mhd_cv_gcrypt_required" = "xyes"; then |
| 45746 |
HTTPS_REQUIRE_GCRYPT_TRUE= |
| 45747 |
HTTPS_REQUIRE_GCRYPT_FALSE='#' |
| 45748 |
else |
| 45749 |
HTTPS_REQUIRE_GCRYPT_TRUE='#' |
| 45750 |
HTTPS_REQUIRE_GCRYPT_FALSE= |
| 45751 |
fi |
| 45752 |
|
| 45753 |
|
| 45754 |
|
| 45755 |
|
| 45756 |
|
| 45757 |
|
| 45758 |
if test "x$have_gnutls" = x"yes" |
| 45759 |
then : |
| 45760 |
|
| 45761 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS quirks" >&5 |
| 45762 |
printf %s "checking for GnuTLS quirks... " >&6; } |
| 45763 |
if test ${mhd_cv_gnutls_mthread_broken+y} |
| 45764 |
then : |
| 45765 |
printf %s "(cached) " >&6 |
| 45766 |
else case e in #( |
| 45767 |
e) |
| 45768 |
mhd_cv_gnutls_mthread_broken="no" |
| 45769 |
if test -r /etc/redhat-release |
| 45770 |
then : |
| 45771 |
|
| 45772 |
if $FGREP ' release 6.' /etc/redhat-release >/dev/null || $FGREP '(Santiago)' /etc/redhat-release >/dev/null |
| 45773 |
then : |
| 45774 |
mhd_cv_gnutls_mthread_broken="found" |
| 45775 |
fi |
| 45776 |
|
| 45777 |
|
| 45778 |
fi |
| 45779 |
if test "x$mhd_cv_gnutls_mthread_broken" = x"no" |
| 45780 |
then : |
| 45781 |
|
| 45782 |
if command -v rpm >/dev/null |
| 45783 |
then : |
| 45784 |
|
| 45785 |
if test "r`rpm -E '%{rhel}' 2>/dev/null`" = "r6" |
| 45786 |
then : |
| 45787 |
mhd_cv_gnutls_mthread_broken="found" |
| 45788 |
fi |
| 45789 |
|
| 45790 |
|
| 45791 |
fi |
| 45792 |
|
| 45793 |
|
| 45794 |
fi |
| 45795 |
|
| 45796 |
;; |
| 45797 |
esac |
| 45798 |
fi |
| 45799 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_mthread_broken" >&5 |
| 45800 |
printf "%s\n" "$mhd_cv_gnutls_mthread_broken" >&6; } |
| 45801 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls-cli binary" >&5 |
| 45802 |
printf %s "checking for gnutls-cli binary... " >&6; } |
| 45803 |
if test ${mhd_cv_gnutls_cli+y} |
| 45804 |
then : |
| 45805 |
printf %s "(cached) " >&6 |
| 45806 |
else case e in #( |
| 45807 |
e) |
| 45808 |
mhd_cv_gnutls_cli="no" |
| 45809 |
if command -v gnutls-cli >/dev/null 2>&1 |
| 45810 |
then : |
| 45811 |
if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: gnutls-cli --version >&2"; } >&5 |
| 45812 |
(gnutls-cli --version >&2) 2>&5 |
| 45813 |
ac_status=$? |
| 45814 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 45815 |
test $ac_status = 0; } |
| 45816 |
then : |
| 45817 |
mhd_cv_gnutls_cli="yes" |
| 45818 |
fi |
| 45819 |
|
| 45820 |
fi |
| 45821 |
|
| 45822 |
;; |
| 45823 |
esac |
| 45824 |
fi |
| 45825 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_cli" >&5 |
| 45826 |
printf "%s\n" "$mhd_cv_gnutls_cli" >&6; } |
| 45827 |
|
| 45828 |
|
| 45829 |
fi |
| 45830 |
if test "x${mhd_cv_gnutls_mthread_broken}" = "xfound"; then |
| 45831 |
HAVE_GNUTLS_MTHREAD_BROKEN_TRUE= |
| 45832 |
HAVE_GNUTLS_MTHREAD_BROKEN_FALSE='#' |
| 45833 |
else |
| 45834 |
HAVE_GNUTLS_MTHREAD_BROKEN_TRUE='#' |
| 45835 |
HAVE_GNUTLS_MTHREAD_BROKEN_FALSE= |
| 45836 |
fi |
| 45837 |
|
| 45838 |
if test "x${mhd_cv_gnutls_mthread_broken}" = "xno" || test "x${mhd_cv_gnutls_cli}" = "xyes"; then |
| 45839 |
USE_UPGRADE_TLS_TESTS_TRUE= |
| 45840 |
USE_UPGRADE_TLS_TESTS_FALSE='#' |
| 45841 |
else |
| 45842 |
USE_UPGRADE_TLS_TESTS_TRUE='#' |
| 45843 |
USE_UPGRADE_TLS_TESTS_FALSE= |
| 45844 |
fi |
| 45845 |
|
| 45846 |
|
| 45847 |
# optional: HTTP Basic Auth support. Enabled by default |
| 45848 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP Basic authentication" >&5 |
| 45849 |
printf %s "checking whether to support HTTP Basic authentication... " >&6; } |
| 45850 |
# Check whether --enable-bauth was given. |
| 45851 |
if test ${enable_bauth+y} |
| 45852 |
then : |
| 45853 |
enableval=$enable_bauth; enable_bauth=${enableval} |
| 45854 |
else case e in #( |
| 45855 |
e) enable_bauth=yes ;; |
| 45856 |
esac |
| 45857 |
fi |
| 45858 |
|
| 45859 |
if test "x$enable_bauth" != "xno" |
| 45860 |
then : |
| 45861 |
enable_bauth=yes |
| 45862 |
|
| 45863 |
printf "%s\n" "#define BAUTH_SUPPORT 1" >>confdefs.h |
| 45864 |
|
| 45865 |
fi |
| 45866 |
if test "x$enable_bauth" != "xno"; then |
| 45867 |
ENABLE_BAUTH_TRUE= |
| 45868 |
ENABLE_BAUTH_FALSE='#' |
| 45869 |
else |
| 45870 |
ENABLE_BAUTH_TRUE='#' |
| 45871 |
ENABLE_BAUTH_FALSE= |
| 45872 |
fi |
| 45873 |
|
| 45874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_bauth" >&5 |
| 45875 |
printf "%s\n" "$enable_bauth" >&6; } |
| 45876 |
|
| 45877 |
# optional: HTTP Digest Auth support. Enabled by default |
| 45878 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP Digest authentication" >&5 |
| 45879 |
printf %s "checking whether to support HTTP Digest authentication... " >&6; } |
| 45880 |
# Check whether --enable-dauth was given. |
| 45881 |
if test ${enable_dauth+y} |
| 45882 |
then : |
| 45883 |
enableval=$enable_dauth; enable_dauth="${enableval}" |
| 45884 |
else case e in #( |
| 45885 |
e) enable_dauth="yes" ;; |
| 45886 |
esac |
| 45887 |
fi |
| 45888 |
|
| 45889 |
if test "x$enable_dauth" != "xno" |
| 45890 |
then : |
| 45891 |
enable_dauth=yes |
| 45892 |
|
| 45893 |
printf "%s\n" "#define DAUTH_SUPPORT 1" >>confdefs.h |
| 45894 |
|
| 45895 |
fi |
| 45896 |
if test "x$enable_dauth" != "xno"; then |
| 45897 |
ENABLE_DAUTH_TRUE= |
| 45898 |
ENABLE_DAUTH_FALSE='#' |
| 45899 |
else |
| 45900 |
ENABLE_DAUTH_TRUE='#' |
| 45901 |
ENABLE_DAUTH_FALSE= |
| 45902 |
fi |
| 45903 |
|
| 45904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dauth" >&5 |
| 45905 |
printf "%s\n" "$enable_dauth" >&6; } |
| 45906 |
|
| 45907 |
if test "x$enable_dauth" = x"yes" |
| 45908 |
then : |
| 45909 |
|
| 45910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Digest Authentication default nonce timeout value" >&5 |
| 45911 |
printf %s "checking for Digest Authentication default nonce timeout value... " >&6; } |
| 45912 |
# Check whether --enable-dauth-def-timeout was given. |
| 45913 |
if test ${enable_dauth_def_timeout+y} |
| 45914 |
then : |
| 45915 |
enableval=$enable_dauth_def_timeout; enable_dauth_def_timeout="${enableval}" |
| 45916 |
else case e in #( |
| 45917 |
e) enable_dauth_def_timeout="" |
| 45918 |
;; |
| 45919 |
esac |
| 45920 |
fi |
| 45921 |
|
| 45922 |
if test "x$enable_dauth_def_timeout" = x"no" |
| 45923 |
then : |
| 45924 |
|
| 45925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Default Diget Auth nonce validity time cannot be disabled, --disable-dauth-def-timeout parameter is ignored" >&5 |
| 45926 |
printf "%s\n" "$as_me: WARNING: Default Diget Auth nonce validity time cannot be disabled, --disable-dauth-def-timeout parameter is ignored" >&2;} |
| 45927 |
enable_dauth_def_timeout="" |
| 45928 |
|
| 45929 |
|
| 45930 |
fi |
| 45931 |
if test -z "${enable_dauth_def_timeout}" |
| 45932 |
then : |
| 45933 |
|
| 45934 |
enable_dauth_def_timeout="90" |
| 45935 |
enable_dauth_def_timeout_MSG="${enable_dauth_def_timeout} seconds (default)" |
| 45936 |
|
| 45937 |
else case e in #( |
| 45938 |
e) |
| 45939 |
if test "x${enable_dauth_def_timeout}" = "x`echo ${enable_dauth_def_timeout}|${SED-sed} 's/[^0-9]//g'`" && \ |
| 45940 |
test "${enable_dauth_def_timeout}" -ge "0" 2>/dev/null |
| 45941 |
then : |
| 45942 |
: |
| 45943 |
else case e in #( |
| 45944 |
e) as_fn_error $? "Invalid parameter --enable-dauth-def-timeout=${enable_dauth_def_timeout}. Timeout value must be a positive integer." "$LINENO" 5 |
| 45945 |
|
| 45946 |
;; |
| 45947 |
esac |
| 45948 |
fi |
| 45949 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 45950 |
/* end confdefs.h. */ |
| 45951 |
|
| 45952 |
|
| 45953 |
int |
| 45954 |
main (void) |
| 45955 |
{ |
| 45956 |
|
| 45957 |
static int arr[((int) 2) - 4 * (int)(${enable_dauth_def_timeout} != ((unsigned int)${enable_dauth_def_timeout}))]; |
| 45958 |
(void) arr; |
| 45959 |
|
| 45960 |
|
| 45961 |
; |
| 45962 |
return 0; |
| 45963 |
} |
| 45964 |
|
| 45965 |
_ACEOF |
| 45966 |
if ac_fn_c_try_compile "$LINENO" |
| 45967 |
then : |
| 45968 |
|
| 45969 |
else case e in #( |
| 45970 |
e) as_fn_error $? "The value specified by --enable-dauth-def-timeout=${enable_dauth_def_timeout} is too large." "$LINENO" 5 |
| 45971 |
;; |
| 45972 |
esac |
| 45973 |
fi |
| 45974 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 45975 |
enable_dauth_def_timeout_MSG="${enable_dauth_def_timeout} seconds (set by parameter)" |
| 45976 |
|
| 45977 |
;; |
| 45978 |
esac |
| 45979 |
fi |
| 45980 |
|
| 45981 |
printf "%s\n" "#define MHD_DAUTH_DEF_TIMEOUT_ ${enable_dauth_def_timeout}" >>confdefs.h |
| 45982 |
|
| 45983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_dauth_def_timeout_MSG}" >&5 |
| 45984 |
printf "%s\n" "${enable_dauth_def_timeout_MSG}" >&6; } |
| 45985 |
|
| 45986 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Digest Authentication default maximum nc value" >&5 |
| 45987 |
printf %s "checking for Digest Authentication default maximum nc value... " >&6; } |
| 45988 |
# Check whether --enable-dauth-def-max-nc was given. |
| 45989 |
if test ${enable_dauth_def_max_nc+y} |
| 45990 |
then : |
| 45991 |
enableval=$enable_dauth_def_max_nc; enable_dauth_def_max_nc="${enableval}" |
| 45992 |
else case e in #( |
| 45993 |
e) enable_dauth_def_max_nc="" |
| 45994 |
;; |
| 45995 |
esac |
| 45996 |
fi |
| 45997 |
|
| 45998 |
if test "x$enable_dauth_def_max_nc" = x"no" |
| 45999 |
then : |
| 46000 |
|
| 46001 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Default Diget Auth maximum nc cannot be disabled, --disable-dauth-def-max-nc parameter is ignored" >&5 |
| 46002 |
printf "%s\n" "$as_me: WARNING: Default Diget Auth maximum nc cannot be disabled, --disable-dauth-def-max-nc parameter is ignored" >&2;} |
| 46003 |
enable_dauth_def_max_nc="" |
| 46004 |
|
| 46005 |
|
| 46006 |
fi |
| 46007 |
if test -z "${enable_dauth_def_max_nc}" |
| 46008 |
then : |
| 46009 |
|
| 46010 |
enable_dauth_def_max_nc="1000" |
| 46011 |
enable_dauth_def_max_nc_MSG="${enable_dauth_def_max_nc} (default)" |
| 46012 |
|
| 46013 |
else case e in #( |
| 46014 |
e) |
| 46015 |
if test "x${enable_dauth_def_max_nc}" = "x`echo ${enable_dauth_def_max_nc}|${SED-sed} 's/[^0-9]//g'`" && \ |
| 46016 |
test "${enable_dauth_def_max_nc}" -ge "0" 2>/dev/null |
| 46017 |
then : |
| 46018 |
: |
| 46019 |
else case e in #( |
| 46020 |
e) as_fn_error $? "Invalid parameter --enable-dauth-def-max-nc=${enable_dauth_def_max_nc}. The value must be a positive integer." "$LINENO" 5 |
| 46021 |
|
| 46022 |
;; |
| 46023 |
esac |
| 46024 |
fi |
| 46025 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 46026 |
/* end confdefs.h. */ |
| 46027 |
|
| 46028 |
|
| 46029 |
#include <stdint.h> |
| 46030 |
|
| 46031 |
int |
| 46032 |
main (void) |
| 46033 |
{ |
| 46034 |
|
| 46035 |
static int arr[((int) 2) - 4 * (int)(${enable_dauth_def_max_nc} != ((uint32_t)${enable_dauth_def_max_nc}))]; |
| 46036 |
(void) arr; |
| 46037 |
|
| 46038 |
|
| 46039 |
; |
| 46040 |
return 0; |
| 46041 |
} |
| 46042 |
|
| 46043 |
_ACEOF |
| 46044 |
if ac_fn_c_try_compile "$LINENO" |
| 46045 |
then : |
| 46046 |
|
| 46047 |
else case e in #( |
| 46048 |
e) as_fn_error $? "The value specified by --enable-dauth-def-max-nc=${enable_dauth_def_max_nc} is too large." "$LINENO" 5 |
| 46049 |
;; |
| 46050 |
esac |
| 46051 |
fi |
| 46052 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 46053 |
enable_dauth_def_max_nc_MSG="${enable_dauth_def_max_nc} (set by parameter)" |
| 46054 |
|
| 46055 |
;; |
| 46056 |
esac |
| 46057 |
fi |
| 46058 |
|
| 46059 |
printf "%s\n" "#define MHD_DAUTH_DEF_MAX_NC_ ${enable_dauth_def_max_nc}" >>confdefs.h |
| 46060 |
|
| 46061 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_dauth_def_max_nc_MSG}" >&5 |
| 46062 |
printf "%s\n" "${enable_dauth_def_max_nc_MSG}" >&6; } |
| 46063 |
|
| 46064 |
dauth_defs_MSG="timeout: ${enable_dauth_def_timeout_MSG}, max nc: ${enable_dauth_def_max_nc_MSG}" |
| 46065 |
|
| 46066 |
else case e in #( |
| 46067 |
e) |
| 46068 |
dauth_defs_MSG="N/A" |
| 46069 |
|
| 46070 |
;; |
| 46071 |
esac |
| 46072 |
fi |
| 46073 |
|
| 46074 |
if test "x$enable_bauth" != "xno" || test "x$enable_dauth" != "xno"; then |
| 46075 |
HAVE_ANYAUTH_TRUE= |
| 46076 |
HAVE_ANYAUTH_FALSE='#' |
| 46077 |
else |
| 46078 |
HAVE_ANYAUTH_TRUE='#' |
| 46079 |
HAVE_ANYAUTH_FALSE= |
| 46080 |
fi |
| 46081 |
|
| 46082 |
|
| 46083 |
# optional: HTTP "Upgrade" support. Enabled by default |
| 46084 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP \"Upgrade\"" >&5 |
| 46085 |
printf %s "checking whether to support HTTP \"Upgrade\"... " >&6; } |
| 46086 |
# Check whether --enable-httpupgrade was given. |
| 46087 |
if test ${enable_httpupgrade+y} |
| 46088 |
then : |
| 46089 |
enableval=$enable_httpupgrade; if test "x$enable_httpupgrade" = x"no" |
| 46090 |
then : |
| 46091 |
|
| 46092 |
else case e in #( |
| 46093 |
e) enable_httpupgrade='yes' ;; |
| 46094 |
esac |
| 46095 |
fi |
| 46096 |
else case e in #( |
| 46097 |
e) enable_httpupgrade='yes' ;; |
| 46098 |
esac |
| 46099 |
fi |
| 46100 |
|
| 46101 |
if test "x$enable_httpupgrade" = x"yes" |
| 46102 |
then : |
| 46103 |
|
| 46104 |
|
| 46105 |
printf "%s\n" "#define UPGRADE_SUPPORT 1" >>confdefs.h |
| 46106 |
|
| 46107 |
fi |
| 46108 |
if test "x$enable_httpupgrade" = "xyes"; then |
| 46109 |
ENABLE_UPGRADE_TRUE= |
| 46110 |
ENABLE_UPGRADE_FALSE='#' |
| 46111 |
else |
| 46112 |
ENABLE_UPGRADE_TRUE='#' |
| 46113 |
ENABLE_UPGRADE_FALSE= |
| 46114 |
fi |
| 46115 |
|
| 46116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_httpupgrade" >&5 |
| 46117 |
printf "%s\n" "$enable_httpupgrade" >&6; } |
| 46118 |
|
| 46119 |
# optional: HTTP cookie parsing support. Enabled by default |
| 46120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP cookie parsing" >&5 |
| 46121 |
printf %s "checking whether to support HTTP cookie parsing... " >&6; } |
| 46122 |
# Check whether --enable-cookie was given. |
| 46123 |
if test ${enable_cookie+y} |
| 46124 |
then : |
| 46125 |
enableval=$enable_cookie; if test "x$enable_cookie" = x"no" |
| 46126 |
then : |
| 46127 |
|
| 46128 |
else case e in #( |
| 46129 |
e) enable_cookie='yes' ;; |
| 46130 |
esac |
| 46131 |
fi |
| 46132 |
else case e in #( |
| 46133 |
e) enable_cookie='yes' ;; |
| 46134 |
esac |
| 46135 |
fi |
| 46136 |
|
| 46137 |
if test "x$enable_cookie" = x"yes" |
| 46138 |
then : |
| 46139 |
|
| 46140 |
|
| 46141 |
printf "%s\n" "#define COOKIE_SUPPORT 1" >>confdefs.h |
| 46142 |
|
| 46143 |
fi |
| 46144 |
if test "x$enable_cookie" = "xyes"; then |
| 46145 |
ENABLE_COOKIE_TRUE= |
| 46146 |
ENABLE_COOKIE_FALSE='#' |
| 46147 |
else |
| 46148 |
ENABLE_COOKIE_TRUE='#' |
| 46149 |
ENABLE_COOKIE_FALSE= |
| 46150 |
fi |
| 46151 |
|
| 46152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_cookie" >&5 |
| 46153 |
printf "%s\n" "$enable_cookie" >&6; } |
| 46154 |
|
| 46155 |
# optional: MD5 support for Digest Auth. Enabled by default. |
| 46156 |
# Check whether --enable-md5 was given. |
| 46157 |
if test ${enable_md5+y} |
| 46158 |
then : |
| 46159 |
enableval=$enable_md5; |
| 46160 |
if test "x$enable_md5" = x"internal" |
| 46161 |
then : |
| 46162 |
enable_md5='builtin' |
| 46163 |
fi |
| 46164 |
if test "x$enable_md5" = x"built-in" |
| 46165 |
then : |
| 46166 |
enable_md5='builtin' |
| 46167 |
fi |
| 46168 |
if test "x$enable_dauth" = x"yes" |
| 46169 |
then : |
| 46170 |
|
| 46171 |
else case e in #( |
| 46172 |
e) |
| 46173 |
if test "x$enable_md5" = x"no" |
| 46174 |
then : |
| 46175 |
|
| 46176 |
else case e in #( |
| 46177 |
e) |
| 46178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The parameter --enable-md5=${enable_md5} is ignored as Digest Authentication is disabled" >&5 |
| 46179 |
printf "%s\n" "$as_me: WARNING: The parameter --enable-md5=${enable_md5} is ignored as Digest Authentication is disabled" >&2;} |
| 46180 |
enable_md5='no' |
| 46181 |
|
| 46182 |
;; |
| 46183 |
esac |
| 46184 |
fi |
| 46185 |
|
| 46186 |
;; |
| 46187 |
esac |
| 46188 |
fi |
| 46189 |
|
| 46190 |
else case e in #( |
| 46191 |
e) enable_md5="${enable_dauth}" |
| 46192 |
;; |
| 46193 |
esac |
| 46194 |
fi |
| 46195 |
|
| 46196 |
case ${enable_md5} in #( |
| 46197 |
yes|tlslib) : |
| 46198 |
|
| 46199 |
if test "x${enable_compact_code}" != "xno" || test "x$enable_md5" = "xtlslib" |
| 46200 |
then : |
| 46201 |
|
| 46202 |
if test "x$enable_https" = "xyes" |
| 46203 |
then : |
| 46204 |
|
| 46205 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS supports MD5 hashing" >&5 |
| 46206 |
printf %s "checking whether GnuTLS supports MD5 hashing... " >&6; } |
| 46207 |
if test ${mhd_cv_gnutls_md5+y} |
| 46208 |
then : |
| 46209 |
printf %s "(cached) " >&6 |
| 46210 |
else case e in #( |
| 46211 |
e) |
| 46212 |
CFLAGS="${CFLAGS_ac} ${GNUTLS_CFLAGS} ${user_CFLAGS}" |
| 46213 |
CPPFLAGS="${CPPFLAGS_ac} ${MHD_TLS_LIB_CPPFLAGS} ${user_CPPFLAGS}" |
| 46214 |
CFLAGS="${CFLAGS_ac} ${MHD_TLS_LIB_CFLAGS} ${user_CFLAGS}" |
| 46215 |
LDFLAGS="${LDFLAGS_ac} ${MHD_TLS_LIB_LDFLAGS} ${user_LDFLAGS}" |
| 46216 |
save_LIBS="$LIBS" |
| 46217 |
LIBS="${MHD_TLS_LIBDEPS} ${LIBS}" |
| 46218 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 46219 |
/* end confdefs.h. */ |
| 46220 |
|
| 46221 |
|
| 46222 |
#include <gnutls/crypto.h> |
| 46223 |
|
| 46224 |
int |
| 46225 |
main (void) |
| 46226 |
{ |
| 46227 |
|
| 46228 |
gnutls_hash_hd_t hash_handle; |
| 46229 |
unsigned char digest[16]; |
| 46230 |
int exit_code; |
| 46231 |
|
| 46232 |
if (0 == gnutls_hash_init(&hash_handle, GNUTLS_DIG_MD5)) |
| 46233 |
{ |
| 46234 |
if (0 == gnutls_hash(hash_handle, "", 1)) |
| 46235 |
{ |
| 46236 |
gnutls_hash_output(hash_handle, digest); |
| 46237 |
if (0x93 == digest[0]) |
| 46238 |
exit_code = 0; |
| 46239 |
else |
| 46240 |
exit_code = 7; |
| 46241 |
} |
| 46242 |
else |
| 46243 |
exit_code = 5; |
| 46244 |
gnutls_hash_deinit(hash_handle, (void *)0); |
| 46245 |
} |
| 46246 |
else |
| 46247 |
exit_code = 2; |
| 46248 |
if (exit_code) |
| 46249 |
return exit_code; |
| 46250 |
|
| 46251 |
|
| 46252 |
; |
| 46253 |
return 0; |
| 46254 |
} |
| 46255 |
|
| 46256 |
_ACEOF |
| 46257 |
if ac_fn_c_try_link "$LINENO" |
| 46258 |
then : |
| 46259 |
mhd_cv_gnutls_md5='yes' |
| 46260 |
else case e in #( |
| 46261 |
e) mhd_cv_gnutls_md5='no' |
| 46262 |
;; |
| 46263 |
esac |
| 46264 |
fi |
| 46265 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 46266 |
conftest$ac_exeext conftest.$ac_ext |
| 46267 |
LIBS="${save_LIBS}" |
| 46268 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 46269 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 46270 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 46271 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 46272 |
|
| 46273 |
;; |
| 46274 |
esac |
| 46275 |
fi |
| 46276 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_md5" >&5 |
| 46277 |
printf "%s\n" "$mhd_cv_gnutls_md5" >&6; } |
| 46278 |
if test "x$mhd_cv_gnutls_md5" = x"no" |
| 46279 |
then : |
| 46280 |
|
| 46281 |
if test "x$enable_md5" = x"tlslib" |
| 46282 |
then : |
| 46283 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 46284 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 46285 |
as_fn_error $? "TLS library MD5 implementation is not available |
| 46286 |
See 'config.log' for more details" "$LINENO" 5; } |
| 46287 |
|
| 46288 |
fi |
| 46289 |
enable_md5="builtin" |
| 46290 |
|
| 46291 |
else case e in #( |
| 46292 |
e) enable_md5="tlslib" |
| 46293 |
;; |
| 46294 |
esac |
| 46295 |
fi |
| 46296 |
|
| 46297 |
else case e in #( |
| 46298 |
e) |
| 46299 |
if test "x$enable_md5" = x"tlslib" |
| 46300 |
then : |
| 46301 |
as_fn_error $? "HTTPS is not enabled, TLS library MD5 implementation cannot be used" "$LINENO" 5 |
| 46302 |
|
| 46303 |
fi |
| 46304 |
enable_md5="builtin" |
| 46305 |
|
| 46306 |
;; |
| 46307 |
esac |
| 46308 |
fi |
| 46309 |
|
| 46310 |
else case e in #( |
| 46311 |
e) |
| 46312 |
enable_md5="builtin" |
| 46313 |
|
| 46314 |
;; |
| 46315 |
esac |
| 46316 |
fi |
| 46317 |
|
| 46318 |
;; #( |
| 46319 |
*) : |
| 46320 |
;; |
| 46321 |
esac |
| 46322 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support MD5" >&5 |
| 46323 |
printf %s "checking whether to support MD5... " >&6; } |
| 46324 |
{ enable_md5_MSG=; unset enable_md5_MSG;} |
| 46325 |
case ${enable_md5} in #( |
| 46326 |
builtin) : |
| 46327 |
enable_md5_MSG='yes, built-in' ;; #( |
| 46328 |
tlslib) : |
| 46329 |
enable_md5_MSG='yes, external (TLS library)' ;; #( |
| 46330 |
no) : |
| 46331 |
enable_md5_MSG='no' ;; #( |
| 46332 |
yes) : |
| 46333 |
as_fn_error $? "configure internal error: unexpected variable value" "$LINENO" 5 ;; #( |
| 46334 |
*) : |
| 46335 |
as_fn_error $? "Unrecognized parameter --enable-md5=${enable_md5}" "$LINENO" 5 |
| 46336 |
;; |
| 46337 |
esac |
| 46338 |
if test "x${enable_md5}" = "xbuiltin" || test "x${enable_md5}" = "xtlslib" |
| 46339 |
then : |
| 46340 |
|
| 46341 |
|
| 46342 |
printf "%s\n" "#define MHD_MD5_SUPPORT 1" >>confdefs.h |
| 46343 |
|
| 46344 |
|
| 46345 |
|
| 46346 |
fi |
| 46347 |
if test "x${enable_md5}" = "xtlslib" |
| 46348 |
then : |
| 46349 |
|
| 46350 |
|
| 46351 |
printf "%s\n" "#define MHD_MD5_TLSLIB 1" >>confdefs.h |
| 46352 |
|
| 46353 |
|
| 46354 |
|
| 46355 |
fi |
| 46356 |
if test "x${enable_md5}" = "xbuiltin" || test "x${enable_md5}" = "xtlslib" ; then |
| 46357 |
ENABLE_MD5_TRUE= |
| 46358 |
ENABLE_MD5_FALSE='#' |
| 46359 |
else |
| 46360 |
ENABLE_MD5_TRUE='#' |
| 46361 |
ENABLE_MD5_FALSE= |
| 46362 |
fi |
| 46363 |
|
| 46364 |
if test "x${enable_md5}" = "xtlslib" ; then |
| 46365 |
ENABLE_MD5_EXT_TRUE= |
| 46366 |
ENABLE_MD5_EXT_FALSE='#' |
| 46367 |
else |
| 46368 |
ENABLE_MD5_EXT_TRUE='#' |
| 46369 |
ENABLE_MD5_EXT_FALSE= |
| 46370 |
fi |
| 46371 |
|
| 46372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_md5_MSG}" >&5 |
| 46373 |
printf "%s\n" "${enable_md5_MSG}" >&6; } |
| 46374 |
|
| 46375 |
# optional: SHA-256 support for Digest Auth. Enabled by default. |
| 46376 |
# Check whether --enable-sha256 was given. |
| 46377 |
if test ${enable_sha256+y} |
| 46378 |
then : |
| 46379 |
enableval=$enable_sha256; |
| 46380 |
if test "x$enable_sha256" = x"internal" |
| 46381 |
then : |
| 46382 |
enable_sha256='builtin' |
| 46383 |
fi |
| 46384 |
if test "x$enable_sha256" = x"built-in" |
| 46385 |
then : |
| 46386 |
enable_sha256='builtin' |
| 46387 |
fi |
| 46388 |
if test "x$enable_dauth" = x"yes" |
| 46389 |
then : |
| 46390 |
|
| 46391 |
else case e in #( |
| 46392 |
e) |
| 46393 |
if test "x$enable_sha256" = x"no" |
| 46394 |
then : |
| 46395 |
|
| 46396 |
else case e in #( |
| 46397 |
e) |
| 46398 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The parameter --enable-sha256=${enable_sha256} is ignored as Digest Authentication is disabled" >&5 |
| 46399 |
printf "%s\n" "$as_me: WARNING: The parameter --enable-sha256=${enable_sha256} is ignored as Digest Authentication is disabled" >&2;} |
| 46400 |
enable_sha256='no' |
| 46401 |
|
| 46402 |
;; |
| 46403 |
esac |
| 46404 |
fi |
| 46405 |
|
| 46406 |
;; |
| 46407 |
esac |
| 46408 |
fi |
| 46409 |
|
| 46410 |
else case e in #( |
| 46411 |
e) enable_sha256="${enable_dauth}" |
| 46412 |
;; |
| 46413 |
esac |
| 46414 |
fi |
| 46415 |
|
| 46416 |
case ${enable_sha256} in #( |
| 46417 |
yes|tlslib) : |
| 46418 |
|
| 46419 |
if test "x${enable_compact_code}" != "xno" || test "x$enable_sha256" = "xtlslib" |
| 46420 |
then : |
| 46421 |
|
| 46422 |
if test "x$enable_https" = "xyes" |
| 46423 |
then : |
| 46424 |
|
| 46425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GnuTLS supports sha256 hashing" >&5 |
| 46426 |
printf %s "checking whether GnuTLS supports sha256 hashing... " >&6; } |
| 46427 |
if test ${mhd_cv_gnutls_sha256+y} |
| 46428 |
then : |
| 46429 |
printf %s "(cached) " >&6 |
| 46430 |
else case e in #( |
| 46431 |
e) |
| 46432 |
CFLAGS="${CFLAGS_ac} ${GNUTLS_CFLAGS} ${user_CFLAGS}" |
| 46433 |
CPPFLAGS="${CPPFLAGS_ac} ${MHD_TLS_LIB_CPPFLAGS} ${user_CPPFLAGS}" |
| 46434 |
CFLAGS="${CFLAGS_ac} ${MHD_TLS_LIB_CFLAGS} ${user_CFLAGS}" |
| 46435 |
LDFLAGS="${LDFLAGS_ac} ${MHD_TLS_LIB_LDFLAGS} ${user_LDFLAGS}" |
| 46436 |
save_LIBS="$LIBS" |
| 46437 |
LIBS="${MHD_TLS_LIBDEPS} ${LIBS}" |
| 46438 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 46439 |
/* end confdefs.h. */ |
| 46440 |
|
| 46441 |
|
| 46442 |
#include <gnutls/crypto.h> |
| 46443 |
|
| 46444 |
int |
| 46445 |
main (void) |
| 46446 |
{ |
| 46447 |
|
| 46448 |
gnutls_hash_hd_t hash_handle; |
| 46449 |
unsigned char digest[32]; |
| 46450 |
int exit_code; |
| 46451 |
|
| 46452 |
if (0 == gnutls_hash_init(&hash_handle, GNUTLS_DIG_SHA256)) |
| 46453 |
{ |
| 46454 |
if (0 == gnutls_hash(hash_handle, "", 1)) |
| 46455 |
{ |
| 46456 |
gnutls_hash_output(hash_handle, digest); |
| 46457 |
if (0x6e == digest[0]) |
| 46458 |
exit_code = 0; |
| 46459 |
else |
| 46460 |
exit_code = 7; |
| 46461 |
} |
| 46462 |
else |
| 46463 |
exit_code = 5; |
| 46464 |
gnutls_hash_deinit(hash_handle, (void *)0); |
| 46465 |
} |
| 46466 |
else |
| 46467 |
exit_code = 2; |
| 46468 |
if (exit_code) |
| 46469 |
return exit_code; |
| 46470 |
|
| 46471 |
|
| 46472 |
; |
| 46473 |
return 0; |
| 46474 |
} |
| 46475 |
|
| 46476 |
_ACEOF |
| 46477 |
if ac_fn_c_try_link "$LINENO" |
| 46478 |
then : |
| 46479 |
mhd_cv_gnutls_sha256='yes' |
| 46480 |
else case e in #( |
| 46481 |
e) mhd_cv_gnutls_sha256='no' |
| 46482 |
;; |
| 46483 |
esac |
| 46484 |
fi |
| 46485 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 46486 |
conftest$ac_exeext conftest.$ac_ext |
| 46487 |
LIBS="${save_LIBS}" |
| 46488 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 46489 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 46490 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 46491 |
LDFLAGS="${LDFLAGS_ac} ${user_LDFLAGS}" |
| 46492 |
|
| 46493 |
;; |
| 46494 |
esac |
| 46495 |
fi |
| 46496 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_gnutls_sha256" >&5 |
| 46497 |
printf "%s\n" "$mhd_cv_gnutls_sha256" >&6; } |
| 46498 |
if test "x$mhd_cv_gnutls_sha256" = x"no" |
| 46499 |
then : |
| 46500 |
|
| 46501 |
if test "x$enable_sha256" = x"tlslib" |
| 46502 |
then : |
| 46503 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 46504 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 46505 |
as_fn_error $? "TLS library SHA-256 implementation is not available |
| 46506 |
See 'config.log' for more details" "$LINENO" 5; } |
| 46507 |
|
| 46508 |
fi |
| 46509 |
enable_sha256="builtin" |
| 46510 |
|
| 46511 |
else case e in #( |
| 46512 |
e) enable_sha256="tlslib" |
| 46513 |
;; |
| 46514 |
esac |
| 46515 |
fi |
| 46516 |
|
| 46517 |
else case e in #( |
| 46518 |
e) |
| 46519 |
if test "x$enable_sha256" = x"tlslib" |
| 46520 |
then : |
| 46521 |
as_fn_error $? "HTTPS is not enabled, TLS library SHA-256 implementation cannot be used" "$LINENO" 5 |
| 46522 |
|
| 46523 |
fi |
| 46524 |
enable_sha256="builtin" |
| 46525 |
|
| 46526 |
;; |
| 46527 |
esac |
| 46528 |
fi |
| 46529 |
|
| 46530 |
else case e in #( |
| 46531 |
e) |
| 46532 |
enable_sha256="builtin" |
| 46533 |
|
| 46534 |
;; |
| 46535 |
esac |
| 46536 |
fi |
| 46537 |
|
| 46538 |
;; #( |
| 46539 |
*) : |
| 46540 |
;; |
| 46541 |
esac |
| 46542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SHA-256" >&5 |
| 46543 |
printf %s "checking whether to support SHA-256... " >&6; } |
| 46544 |
{ enable_sha256_MSG=; unset enable_sha256_MSG;} |
| 46545 |
case ${enable_sha256} in #( |
| 46546 |
builtin) : |
| 46547 |
enable_sha256_MSG='yes, built-in' ;; #( |
| 46548 |
tlslib) : |
| 46549 |
enable_sha256_MSG='yes, external (TLS library)' ;; #( |
| 46550 |
no) : |
| 46551 |
enable_sha256_MSG='no' ;; #( |
| 46552 |
yes) : |
| 46553 |
as_fn_error $? "configure internal error: unexpected variable value" "$LINENO" 5 ;; #( |
| 46554 |
*) : |
| 46555 |
as_fn_error $? "Unrecognized parameter --enable-sha256=${enable_sha256}" "$LINENO" 5 |
| 46556 |
;; |
| 46557 |
esac |
| 46558 |
if test "x${enable_sha256}" = "xbuiltin" || test "x${enable_sha256}" = "xtlslib" |
| 46559 |
then : |
| 46560 |
|
| 46561 |
|
| 46562 |
printf "%s\n" "#define MHD_SHA256_SUPPORT 1" >>confdefs.h |
| 46563 |
|
| 46564 |
|
| 46565 |
|
| 46566 |
fi |
| 46567 |
if test "x${enable_sha256}" = "xtlslib" |
| 46568 |
then : |
| 46569 |
|
| 46570 |
|
| 46571 |
printf "%s\n" "#define MHD_SHA256_TLSLIB 1" >>confdefs.h |
| 46572 |
|
| 46573 |
|
| 46574 |
|
| 46575 |
fi |
| 46576 |
if test "x${enable_sha256}" = "xbuiltin" || test "x${enable_sha256}" = "xtlslib" ; then |
| 46577 |
ENABLE_SHA256_TRUE= |
| 46578 |
ENABLE_SHA256_FALSE='#' |
| 46579 |
else |
| 46580 |
ENABLE_SHA256_TRUE='#' |
| 46581 |
ENABLE_SHA256_FALSE= |
| 46582 |
fi |
| 46583 |
|
| 46584 |
if test "x${enable_sha256}" = "xtlslib" ; then |
| 46585 |
ENABLE_SHA256_EXT_TRUE= |
| 46586 |
ENABLE_SHA256_EXT_FALSE='#' |
| 46587 |
else |
| 46588 |
ENABLE_SHA256_EXT_TRUE='#' |
| 46589 |
ENABLE_SHA256_EXT_FALSE= |
| 46590 |
fi |
| 46591 |
|
| 46592 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_sha256_MSG}" >&5 |
| 46593 |
printf "%s\n" "${enable_sha256_MSG}" >&6; } |
| 46594 |
|
| 46595 |
# optional: SHA-512/256 support for Digest Auth. Enabled by default. |
| 46596 |
# Check whether --enable-sha512-256 was given. |
| 46597 |
if test ${enable_sha512_256+y} |
| 46598 |
then : |
| 46599 |
enableval=$enable_sha512_256; |
| 46600 |
if test "x$enable_sha512_256" = x"yes" |
| 46601 |
then : |
| 46602 |
|
| 46603 |
if test "x$enable_dauth" = x"yes" |
| 46604 |
then : |
| 46605 |
|
| 46606 |
else case e in #( |
| 46607 |
e) |
| 46608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The parameter --enable-sha512-256 is ignored as Digest Authentication is disabled" >&5 |
| 46609 |
printf "%s\n" "$as_me: WARNING: The parameter --enable-sha512-256 is ignored as Digest Authentication is disabled" >&2;} |
| 46610 |
enable_sha512_256='no' |
| 46611 |
|
| 46612 |
;; |
| 46613 |
esac |
| 46614 |
fi |
| 46615 |
|
| 46616 |
else case e in #( |
| 46617 |
e) enable_sha512_256='no' |
| 46618 |
;; |
| 46619 |
esac |
| 46620 |
fi |
| 46621 |
|
| 46622 |
else case e in #( |
| 46623 |
e) enable_sha512_256="${enable_dauth}" |
| 46624 |
;; |
| 46625 |
esac |
| 46626 |
fi |
| 46627 |
|
| 46628 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support SHA-512/256" >&5 |
| 46629 |
printf %s "checking whether to support SHA-512/256... " >&6; } |
| 46630 |
{ enable_sha512_256_MSG=; unset enable_sha512_256_MSG;} |
| 46631 |
case ${enable_sha512_256} in #( |
| 46632 |
yes) : |
| 46633 |
enable_sha512_256_MSG='yes, built-in' ;; #( |
| 46634 |
no) : |
| 46635 |
enable_sha512_256_MSG='no' ;; #( |
| 46636 |
*) : |
| 46637 |
as_fn_error $? "Unrecognized parameter --enable-sha512-256=${enable_sha512_256}" "$LINENO" 5 |
| 46638 |
;; |
| 46639 |
esac |
| 46640 |
if test "x$enable_sha512_256" = x"yes" |
| 46641 |
then : |
| 46642 |
|
| 46643 |
|
| 46644 |
printf "%s\n" "#define MHD_SHA512_256_SUPPORT 1" >>confdefs.h |
| 46645 |
|
| 46646 |
|
| 46647 |
|
| 46648 |
fi |
| 46649 |
if test "x${enable_sha512_256}" = "xyes"; then |
| 46650 |
ENABLE_SHA512_256_TRUE= |
| 46651 |
ENABLE_SHA512_256_FALSE='#' |
| 46652 |
else |
| 46653 |
ENABLE_SHA512_256_TRUE='#' |
| 46654 |
ENABLE_SHA512_256_FALSE= |
| 46655 |
fi |
| 46656 |
|
| 46657 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${enable_sha512_256_MSG}" >&5 |
| 46658 |
printf "%s\n" "${enable_sha512_256_MSG}" >&6; } |
| 46659 |
|
| 46660 |
if test "x$enable_dauth" != "xno" |
| 46661 |
then : |
| 46662 |
|
| 46663 |
if test "x${enable_md5}" = "xno" && test "x${enable_sha256}" = "xno" && test "x${enable_sha512_256}" != "xyes" |
| 46664 |
then : |
| 46665 |
as_fn_error $? "At least one hashing algorithm must be enabled if Digest Auth is enabled" "$LINENO" 5 |
| 46666 |
|
| 46667 |
fi |
| 46668 |
|
| 46669 |
|
| 46670 |
fi |
| 46671 |
|
| 46672 |
|
| 46673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for calloc()" >&5 |
| 46674 |
printf %s "checking for calloc()... " >&6; } |
| 46675 |
if test ${mhd_cv_have_func_calloc+y} |
| 46676 |
then : |
| 46677 |
printf %s "(cached) " >&6 |
| 46678 |
else case e in #( |
| 46679 |
e) |
| 46680 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 46681 |
/* end confdefs.h. */ |
| 46682 |
|
| 46683 |
#include <stdlib.h> |
| 46684 |
|
| 46685 |
int |
| 46686 |
main (void) |
| 46687 |
{ |
| 46688 |
void * ptr = calloc(1, 2); if (ptr) return 1; |
| 46689 |
; |
| 46690 |
return 0; |
| 46691 |
} |
| 46692 |
|
| 46693 |
_ACEOF |
| 46694 |
if ac_fn_c_try_link "$LINENO" |
| 46695 |
then : |
| 46696 |
mhd_cv_have_func_calloc='yes' |
| 46697 |
else case e in #( |
| 46698 |
e) mhd_cv_have_func_calloc='no' |
| 46699 |
;; |
| 46700 |
esac |
| 46701 |
fi |
| 46702 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 46703 |
conftest$ac_exeext conftest.$ac_ext |
| 46704 |
|
| 46705 |
;; |
| 46706 |
esac |
| 46707 |
fi |
| 46708 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_calloc" >&5 |
| 46709 |
printf "%s\n" "$mhd_cv_have_func_calloc" >&6; } |
| 46710 |
if test "x$mhd_cv_have_func_calloc" = x"yes" |
| 46711 |
then : |
| 46712 |
|
| 46713 |
printf "%s\n" "#define HAVE_CALLOC 1" >>confdefs.h |
| 46714 |
|
| 46715 |
fi |
| 46716 |
|
| 46717 |
# Some systems have IPv6 disabled in kernel at run-time |
| 46718 |
if test "x${mhd_cv_have_inet6}" = "xyes" && test "x${cross_compiling}" = "xno" |
| 46719 |
then : |
| 46720 |
|
| 46721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether IPv6 could be used for testing" >&5 |
| 46722 |
printf %s "checking whether IPv6 could be used for testing... " >&6; } |
| 46723 |
if test ${mhd_cv_ipv6_for_testing+y} |
| 46724 |
then : |
| 46725 |
printf %s "(cached) " >&6 |
| 46726 |
else case e in #( |
| 46727 |
e) |
| 46728 |
if test "$cross_compiling" = yes |
| 46729 |
then : |
| 46730 |
mhd_cv_ipv6_for_testing="no" |
| 46731 |
|
| 46732 |
else case e in #( |
| 46733 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 46734 |
/* end confdefs.h. */ |
| 46735 |
|
| 46736 |
|
| 46737 |
#ifdef HAVE_UNISTD_H |
| 46738 |
#include <unistd.h> |
| 46739 |
#endif |
| 46740 |
#ifdef HAVE_SYS_TYPES_H |
| 46741 |
#include <sys/types.h> |
| 46742 |
#endif |
| 46743 |
#ifdef HAVE_SYS_SOCKET_H |
| 46744 |
#include <sys/socket.h> |
| 46745 |
#endif |
| 46746 |
#ifdef HAVE_WINSOCK2_H |
| 46747 |
#include <winsock2.h> |
| 46748 |
#endif |
| 46749 |
#ifdef HAVE_WS2TCPIP_H |
| 46750 |
#include <ws2tcpip.h> |
| 46751 |
#endif |
| 46752 |
#ifdef HAVE_NETINET_IN_H |
| 46753 |
#include <netinet/in.h> |
| 46754 |
#endif |
| 46755 |
#ifdef HAVE_NETINET_IP_H |
| 46756 |
#include <netinet/ip.h> |
| 46757 |
#endif |
| 46758 |
#ifdef HAVE_ARPA_INET_H |
| 46759 |
#include <arpa/inet.h> |
| 46760 |
#endif |
| 46761 |
#ifdef HAVE_NETINET_TCP_H |
| 46762 |
#include <netinet/tcp.h> |
| 46763 |
#endif |
| 46764 |
|
| 46765 |
static void zr_mem(void *ptr, socklen_t size) |
| 46766 |
{ char *mem = ptr; while(size--) {mem[0] = 0; mem++;} } |
| 46767 |
|
| 46768 |
int main(void) |
| 46769 |
{ |
| 46770 |
int ret = 30; |
| 46771 |
struct sockaddr_in6 sa; |
| 46772 |
#if !defined(_WIN32) || defined(__CYGWIN__) |
| 46773 |
int sckt; |
| 46774 |
const int invld_sckt = -1; |
| 46775 |
#else |
| 46776 |
SOCKET sckt; |
| 46777 |
const SOCKET invld_sckt = INVALID_SOCKET; |
| 46778 |
WSADATA wsa_data; |
| 46779 |
|
| 46780 |
WSAStartup(MAKEWORD(2, 2), &wsa_data); |
| 46781 |
#endif |
| 46782 |
zr_mem(&sa, sizeof(sa)); |
| 46783 |
sa.sin6_family = AF_INET6; |
| 46784 |
sa.sin6_port = 0; |
| 46785 |
sa.sin6_addr = in6addr_loopback; |
| 46786 |
#ifdef HAVE_STRUCT_SOCKADDR_IN6_SIN6_LEN |
| 46787 |
sa.sin6_len = sizeof(sa); |
| 46788 |
#endif |
| 46789 |
sckt = socket (PF_INET6, SOCK_STREAM, 0); |
| 46790 |
if (invld_sckt != sckt) |
| 46791 |
{ |
| 46792 |
if (0 == bind (sckt, (struct sockaddr *)&sa, sizeof(sa))) |
| 46793 |
{ |
| 46794 |
if (0 == listen (sckt, 1)) |
| 46795 |
ret = 0; |
| 46796 |
else |
| 46797 |
ret = 1; /* listen() failed */ |
| 46798 |
} else ret = 2; /* bind() failed */ |
| 46799 |
#if !defined(_WIN32) || defined(__CYGWIN__) |
| 46800 |
close (sckt); |
| 46801 |
#else |
| 46802 |
closesocket (sckt); |
| 46803 |
#endif |
| 46804 |
} else ret = 3; /* socket() failed */ |
| 46805 |
#if defined(_WIN32) && !defined(__CYGWIN__) |
| 46806 |
WSACleanup(); |
| 46807 |
#endif |
| 46808 |
return ret; |
| 46809 |
} |
| 46810 |
|
| 46811 |
|
| 46812 |
_ACEOF |
| 46813 |
if ac_fn_c_try_run "$LINENO" |
| 46814 |
then : |
| 46815 |
mhd_cv_ipv6_for_testing="yes" |
| 46816 |
else case e in #( |
| 46817 |
e) mhd_cv_ipv6_for_testing="no" ;; |
| 46818 |
esac |
| 46819 |
fi |
| 46820 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 46821 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 46822 |
esac |
| 46823 |
fi |
| 46824 |
|
| 46825 |
|
| 46826 |
;; |
| 46827 |
esac |
| 46828 |
fi |
| 46829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_ipv6_for_testing" >&5 |
| 46830 |
printf "%s\n" "$mhd_cv_ipv6_for_testing" >&6; } |
| 46831 |
|
| 46832 |
|
| 46833 |
fi |
| 46834 |
if test "x$mhd_cv_ipv6_for_testing" = x"yes" |
| 46835 |
then : |
| 46836 |
|
| 46837 |
printf "%s\n" "#define USE_IPV6_TESTING 1" >>confdefs.h |
| 46838 |
|
| 46839 |
|
| 46840 |
fi |
| 46841 |
|
| 46842 |
if test "x$enable_tools" = x"yes" |
| 46843 |
then : |
| 46844 |
|
| 46845 |
ac_fn_c_check_header_compile "$LINENO" "features.h" "ac_cv_header_features_h" "$ac_includes_default |
| 46846 |
" |
| 46847 |
if test "x$ac_cv_header_features_h" = xyes |
| 46848 |
then : |
| 46849 |
printf "%s\n" "#define HAVE_FEATURES_H 1" >>confdefs.h |
| 46850 |
|
| 46851 |
fi |
| 46852 |
ac_fn_c_check_header_compile "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default |
| 46853 |
" |
| 46854 |
if test "x$ac_cv_header_sys_pstat_h" = xyes |
| 46855 |
then : |
| 46856 |
printf "%s\n" "#define HAVE_SYS_PSTAT_H 1" >>confdefs.h |
| 46857 |
|
| 46858 |
fi |
| 46859 |
ac_fn_c_check_header_compile "$LINENO" "vxCpuLib.h" "ac_cv_header_vxCpuLib_h" "$ac_includes_default |
| 46860 |
" |
| 46861 |
if test "x$ac_cv_header_vxCpuLib_h" = xyes |
| 46862 |
then : |
| 46863 |
printf "%s\n" "#define HAVE_VXCPULIB_H 1" >>confdefs.h |
| 46864 |
|
| 46865 |
fi |
| 46866 |
|
| 46867 |
ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_ONLN" "ac_cv_have_decl__SC_NPROCESSORS_ONLN" " |
| 46868 |
#ifdef HAVE_SYS_TYPES_H |
| 46869 |
#include <sys/types.h> |
| 46870 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46871 |
#ifdef HAVE_SYS_PARAM_H |
| 46872 |
#include <sys/param.h> |
| 46873 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46874 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46875 |
#include <sys/sysctl.h> |
| 46876 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46877 |
#ifdef HAVE_UNISTD_H |
| 46878 |
#include <unistd.h> |
| 46879 |
#endif /* HAVE_UNISTD_H */ |
| 46880 |
|
| 46881 |
|
| 46882 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 46883 |
if test "x$ac_cv_have_decl__SC_NPROCESSORS_ONLN" = xyes |
| 46884 |
then : |
| 46885 |
ac_have_decl=1 |
| 46886 |
else case e in #( |
| 46887 |
e) ac_have_decl=0 ;; |
| 46888 |
esac |
| 46889 |
fi |
| 46890 |
printf "%s\n" "#define HAVE_DECL__SC_NPROCESSORS_ONLN $ac_have_decl" >>confdefs.h |
| 46891 |
ac_fn_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" " |
| 46892 |
#ifdef HAVE_SYS_TYPES_H |
| 46893 |
#include <sys/types.h> |
| 46894 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46895 |
#ifdef HAVE_SYS_PARAM_H |
| 46896 |
#include <sys/param.h> |
| 46897 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46898 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46899 |
#include <sys/sysctl.h> |
| 46900 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46901 |
#ifdef HAVE_UNISTD_H |
| 46902 |
#include <unistd.h> |
| 46903 |
#endif /* HAVE_UNISTD_H */ |
| 46904 |
|
| 46905 |
|
| 46906 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 46907 |
if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes |
| 46908 |
then : |
| 46909 |
ac_have_decl=1 |
| 46910 |
else case e in #( |
| 46911 |
e) ac_have_decl=0 ;; |
| 46912 |
esac |
| 46913 |
fi |
| 46914 |
printf "%s\n" "#define HAVE_DECL__SC_NPROC_ONLN $ac_have_decl" >>confdefs.h |
| 46915 |
ac_fn_check_decl "$LINENO" "_SC_CRAY_NCPU" "ac_cv_have_decl__SC_CRAY_NCPU" " |
| 46916 |
#ifdef HAVE_SYS_TYPES_H |
| 46917 |
#include <sys/types.h> |
| 46918 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46919 |
#ifdef HAVE_SYS_PARAM_H |
| 46920 |
#include <sys/param.h> |
| 46921 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46922 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46923 |
#include <sys/sysctl.h> |
| 46924 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46925 |
#ifdef HAVE_UNISTD_H |
| 46926 |
#include <unistd.h> |
| 46927 |
#endif /* HAVE_UNISTD_H */ |
| 46928 |
|
| 46929 |
|
| 46930 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 46931 |
if test "x$ac_cv_have_decl__SC_CRAY_NCPU" = xyes |
| 46932 |
then : |
| 46933 |
ac_have_decl=1 |
| 46934 |
else case e in #( |
| 46935 |
e) ac_have_decl=0 ;; |
| 46936 |
esac |
| 46937 |
fi |
| 46938 |
printf "%s\n" "#define HAVE_DECL__SC_CRAY_NCPU $ac_have_decl" >>confdefs.h |
| 46939 |
ac_fn_check_decl "$LINENO" "_SC_NPROCESSORS_CONF" "ac_cv_have_decl__SC_NPROCESSORS_CONF" " |
| 46940 |
#ifdef HAVE_SYS_TYPES_H |
| 46941 |
#include <sys/types.h> |
| 46942 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46943 |
#ifdef HAVE_SYS_PARAM_H |
| 46944 |
#include <sys/param.h> |
| 46945 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46946 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46947 |
#include <sys/sysctl.h> |
| 46948 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46949 |
#ifdef HAVE_UNISTD_H |
| 46950 |
#include <unistd.h> |
| 46951 |
#endif /* HAVE_UNISTD_H */ |
| 46952 |
|
| 46953 |
|
| 46954 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 46955 |
if test "x$ac_cv_have_decl__SC_NPROCESSORS_CONF" = xyes |
| 46956 |
then : |
| 46957 |
ac_have_decl=1 |
| 46958 |
else case e in #( |
| 46959 |
e) ac_have_decl=0 ;; |
| 46960 |
esac |
| 46961 |
fi |
| 46962 |
printf "%s\n" "#define HAVE_DECL__SC_NPROCESSORS_CONF $ac_have_decl" >>confdefs.h |
| 46963 |
ac_fn_check_decl "$LINENO" "CTL_HW" "ac_cv_have_decl_CTL_HW" " |
| 46964 |
#ifdef HAVE_SYS_TYPES_H |
| 46965 |
#include <sys/types.h> |
| 46966 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46967 |
#ifdef HAVE_SYS_PARAM_H |
| 46968 |
#include <sys/param.h> |
| 46969 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46970 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46971 |
#include <sys/sysctl.h> |
| 46972 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46973 |
#ifdef HAVE_UNISTD_H |
| 46974 |
#include <unistd.h> |
| 46975 |
#endif /* HAVE_UNISTD_H */ |
| 46976 |
|
| 46977 |
|
| 46978 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 46979 |
if test "x$ac_cv_have_decl_CTL_HW" = xyes |
| 46980 |
then : |
| 46981 |
ac_have_decl=1 |
| 46982 |
else case e in #( |
| 46983 |
e) ac_have_decl=0 ;; |
| 46984 |
esac |
| 46985 |
fi |
| 46986 |
printf "%s\n" "#define HAVE_DECL_CTL_HW $ac_have_decl" >>confdefs.h |
| 46987 |
ac_fn_check_decl "$LINENO" "HW_NCPUONLINE" "ac_cv_have_decl_HW_NCPUONLINE" " |
| 46988 |
#ifdef HAVE_SYS_TYPES_H |
| 46989 |
#include <sys/types.h> |
| 46990 |
#endif /* HAVE_SYS_TYPES_H */ |
| 46991 |
#ifdef HAVE_SYS_PARAM_H |
| 46992 |
#include <sys/param.h> |
| 46993 |
#endif /* HAVE_SYS_PARAM_H */ |
| 46994 |
#ifdef HAVE_SYS_SYSCTL_H |
| 46995 |
#include <sys/sysctl.h> |
| 46996 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 46997 |
#ifdef HAVE_UNISTD_H |
| 46998 |
#include <unistd.h> |
| 46999 |
#endif /* HAVE_UNISTD_H */ |
| 47000 |
|
| 47001 |
|
| 47002 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47003 |
if test "x$ac_cv_have_decl_HW_NCPUONLINE" = xyes |
| 47004 |
then : |
| 47005 |
ac_have_decl=1 |
| 47006 |
else case e in #( |
| 47007 |
e) ac_have_decl=0 ;; |
| 47008 |
esac |
| 47009 |
fi |
| 47010 |
printf "%s\n" "#define HAVE_DECL_HW_NCPUONLINE $ac_have_decl" >>confdefs.h |
| 47011 |
ac_fn_check_decl "$LINENO" "HW_NCPU" "ac_cv_have_decl_HW_NCPU" " |
| 47012 |
#ifdef HAVE_SYS_TYPES_H |
| 47013 |
#include <sys/types.h> |
| 47014 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47015 |
#ifdef HAVE_SYS_PARAM_H |
| 47016 |
#include <sys/param.h> |
| 47017 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47018 |
#ifdef HAVE_SYS_SYSCTL_H |
| 47019 |
#include <sys/sysctl.h> |
| 47020 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 47021 |
#ifdef HAVE_UNISTD_H |
| 47022 |
#include <unistd.h> |
| 47023 |
#endif /* HAVE_UNISTD_H */ |
| 47024 |
|
| 47025 |
|
| 47026 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47027 |
if test "x$ac_cv_have_decl_HW_NCPU" = xyes |
| 47028 |
then : |
| 47029 |
ac_have_decl=1 |
| 47030 |
else case e in #( |
| 47031 |
e) ac_have_decl=0 ;; |
| 47032 |
esac |
| 47033 |
fi |
| 47034 |
printf "%s\n" "#define HAVE_DECL_HW_NCPU $ac_have_decl" >>confdefs.h |
| 47035 |
ac_fn_check_decl "$LINENO" "HW_AVAILCPU" "ac_cv_have_decl_HW_AVAILCPU" " |
| 47036 |
#ifdef HAVE_SYS_TYPES_H |
| 47037 |
#include <sys/types.h> |
| 47038 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47039 |
#ifdef HAVE_SYS_PARAM_H |
| 47040 |
#include <sys/param.h> |
| 47041 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47042 |
#ifdef HAVE_SYS_SYSCTL_H |
| 47043 |
#include <sys/sysctl.h> |
| 47044 |
#endif /* HAVE_SYS_SYSCTL_H */ |
| 47045 |
#ifdef HAVE_UNISTD_H |
| 47046 |
#include <unistd.h> |
| 47047 |
#endif /* HAVE_UNISTD_H */ |
| 47048 |
|
| 47049 |
|
| 47050 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47051 |
if test "x$ac_cv_have_decl_HW_AVAILCPU" = xyes |
| 47052 |
then : |
| 47053 |
ac_have_decl=1 |
| 47054 |
else case e in #( |
| 47055 |
e) ac_have_decl=0 ;; |
| 47056 |
esac |
| 47057 |
fi |
| 47058 |
printf "%s\n" "#define HAVE_DECL_HW_AVAILCPU $ac_have_decl" >>confdefs.h |
| 47059 |
|
| 47060 |
|
| 47061 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47062 |
if test ${mhd_cv_have_func_pstat_getdynamic+y} |
| 47063 |
then : |
| 47064 |
|
| 47065 |
else case e in #( |
| 47066 |
e) ac_fn_check_decl "$LINENO" "pstat_getdynamic" "ac_cv_have_decl_pstat_getdynamic" " |
| 47067 |
#include <sys/param.h> |
| 47068 |
#include <sys/pstat.h> |
| 47069 |
|
| 47070 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47071 |
if test "x$ac_cv_have_decl_pstat_getdynamic" = xyes |
| 47072 |
then : |
| 47073 |
|
| 47074 |
else case e in #( |
| 47075 |
e) mhd_cv_have_func_pstat_getdynamic="no" ;; |
| 47076 |
esac |
| 47077 |
fi ;; |
| 47078 |
esac |
| 47079 |
fi |
| 47080 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function pstat_getdynamic" >&5 |
| 47081 |
printf %s "checking for function pstat_getdynamic... " >&6; } |
| 47082 |
if test ${mhd_cv_have_func_pstat_getdynamic+y} |
| 47083 |
then : |
| 47084 |
printf %s "(cached) " >&6 |
| 47085 |
else case e in #( |
| 47086 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47087 |
/* end confdefs.h. */ |
| 47088 |
|
| 47089 |
|
| 47090 |
#include <sys/param.h> |
| 47091 |
#include <sys/pstat.h> |
| 47092 |
|
| 47093 |
|
| 47094 |
int main(void) |
| 47095 |
{ |
| 47096 |
|
| 47097 |
|
| 47098 |
struct pst_dynamic psd_data; |
| 47099 |
if (1 != pstat_getdynamic(&psd_data, sizeof(psd_data), (size_t)1, 0)) |
| 47100 |
return 2; |
| 47101 |
if (0 >= psd_data.psd_proc_cnt) |
| 47102 |
return 3; |
| 47103 |
|
| 47104 |
|
| 47105 |
|
| 47106 |
return 0; |
| 47107 |
} |
| 47108 |
|
| 47109 |
|
| 47110 |
_ACEOF |
| 47111 |
if ac_fn_c_try_link "$LINENO" |
| 47112 |
then : |
| 47113 |
mhd_cv_have_func_pstat_getdynamic="yes" |
| 47114 |
else case e in #( |
| 47115 |
e) mhd_cv_have_func_pstat_getdynamic="no" ;; |
| 47116 |
esac |
| 47117 |
fi |
| 47118 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47119 |
conftest$ac_exeext conftest.$ac_ext |
| 47120 |
;; |
| 47121 |
esac |
| 47122 |
fi |
| 47123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_pstat_getdynamic" >&5 |
| 47124 |
printf "%s\n" "$mhd_cv_have_func_pstat_getdynamic" >&6; } |
| 47125 |
if test "x$mhd_cv_have_func_pstat_getdynamic" = x"yes" |
| 47126 |
then : |
| 47127 |
|
| 47128 |
printf "%s\n" "#define HAVE_PSTAT_GETDYNAMIC 1" >>confdefs.h |
| 47129 |
|
| 47130 |
|
| 47131 |
fi |
| 47132 |
|
| 47133 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47134 |
|
| 47135 |
|
| 47136 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47137 |
if test ${mhd_cv_have_func_vxCpuEnabledGet+y} |
| 47138 |
then : |
| 47139 |
|
| 47140 |
else case e in #( |
| 47141 |
e) ac_fn_check_decl "$LINENO" "vxCpuEnabledGet" "ac_cv_have_decl_vxCpuEnabledGet" "#include <vxCpuLib.h> |
| 47142 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47143 |
if test "x$ac_cv_have_decl_vxCpuEnabledGet" = xyes |
| 47144 |
then : |
| 47145 |
|
| 47146 |
else case e in #( |
| 47147 |
e) mhd_cv_have_func_vxCpuEnabledGet="no" ;; |
| 47148 |
esac |
| 47149 |
fi ;; |
| 47150 |
esac |
| 47151 |
fi |
| 47152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function vxCpuEnabledGet" >&5 |
| 47153 |
printf %s "checking for function vxCpuEnabledGet... " >&6; } |
| 47154 |
if test ${mhd_cv_have_func_vxCpuEnabledGet+y} |
| 47155 |
then : |
| 47156 |
printf %s "(cached) " >&6 |
| 47157 |
else case e in #( |
| 47158 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47159 |
/* end confdefs.h. */ |
| 47160 |
|
| 47161 |
#include <vxCpuLib.h> |
| 47162 |
|
| 47163 |
int main(void) |
| 47164 |
{ |
| 47165 |
|
| 47166 |
|
| 47167 |
cpuset_t enb_set; |
| 47168 |
enb_set = vxCpuEnabledGet(); |
| 47169 |
(void) enb_set; |
| 47170 |
|
| 47171 |
|
| 47172 |
|
| 47173 |
return 0; |
| 47174 |
} |
| 47175 |
|
| 47176 |
|
| 47177 |
_ACEOF |
| 47178 |
if ac_fn_c_try_link "$LINENO" |
| 47179 |
then : |
| 47180 |
mhd_cv_have_func_vxCpuEnabledGet="yes" |
| 47181 |
else case e in #( |
| 47182 |
e) mhd_cv_have_func_vxCpuEnabledGet="no" ;; |
| 47183 |
esac |
| 47184 |
fi |
| 47185 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47186 |
conftest$ac_exeext conftest.$ac_ext |
| 47187 |
;; |
| 47188 |
esac |
| 47189 |
fi |
| 47190 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_vxCpuEnabledGet" >&5 |
| 47191 |
printf "%s\n" "$mhd_cv_have_func_vxCpuEnabledGet" >&6; } |
| 47192 |
if test "x$mhd_cv_have_func_vxCpuEnabledGet" = x"yes" |
| 47193 |
then : |
| 47194 |
|
| 47195 |
printf "%s\n" "#define HAVE_VXCPUENABLEDGET 1" >>confdefs.h |
| 47196 |
|
| 47197 |
|
| 47198 |
fi |
| 47199 |
|
| 47200 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47201 |
|
| 47202 |
ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default |
| 47203 |
" |
| 47204 |
if test "x$ac_cv_header_sched_h" = xyes |
| 47205 |
then : |
| 47206 |
printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h |
| 47207 |
|
| 47208 |
fi |
| 47209 |
ac_fn_c_check_header_compile "$LINENO" "sys/_cpuset.h" "ac_cv_header_sys__cpuset_h" "$ac_includes_default |
| 47210 |
" |
| 47211 |
if test "x$ac_cv_header_sys__cpuset_h" = xyes |
| 47212 |
then : |
| 47213 |
printf "%s\n" "#define HAVE_SYS__CPUSET_H 1" >>confdefs.h |
| 47214 |
|
| 47215 |
fi |
| 47216 |
ac_fn_c_check_header_compile "$LINENO" "sys/cpuset.h" "ac_cv_header_sys_cpuset_h" "$ac_includes_default |
| 47217 |
" |
| 47218 |
if test "x$ac_cv_header_sys_cpuset_h" = xyes |
| 47219 |
then : |
| 47220 |
printf "%s\n" "#define HAVE_SYS_CPUSET_H 1" >>confdefs.h |
| 47221 |
|
| 47222 |
fi |
| 47223 |
|
| 47224 |
# glibc / Linux kernel |
| 47225 |
|
| 47226 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47227 |
if test ${mhd_cv_have_func_getpid+y} |
| 47228 |
then : |
| 47229 |
|
| 47230 |
else case e in #( |
| 47231 |
e) ac_fn_check_decl "$LINENO" "getpid" "ac_cv_have_decl_getpid" " |
| 47232 |
#ifdef HAVE_SYS_TYPES_H |
| 47233 |
#include <sys/types.h> |
| 47234 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47235 |
#include <unistd.h> |
| 47236 |
|
| 47237 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47238 |
if test "x$ac_cv_have_decl_getpid" = xyes |
| 47239 |
then : |
| 47240 |
|
| 47241 |
else case e in #( |
| 47242 |
e) mhd_cv_have_func_getpid="no" ;; |
| 47243 |
esac |
| 47244 |
fi ;; |
| 47245 |
esac |
| 47246 |
fi |
| 47247 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function getpid" >&5 |
| 47248 |
printf %s "checking for function getpid... " >&6; } |
| 47249 |
if test ${mhd_cv_have_func_getpid+y} |
| 47250 |
then : |
| 47251 |
printf %s "(cached) " >&6 |
| 47252 |
else case e in #( |
| 47253 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47254 |
/* end confdefs.h. */ |
| 47255 |
|
| 47256 |
|
| 47257 |
#ifdef HAVE_SYS_TYPES_H |
| 47258 |
#include <sys/types.h> |
| 47259 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47260 |
#include <unistd.h> |
| 47261 |
|
| 47262 |
|
| 47263 |
int main(void) |
| 47264 |
{ |
| 47265 |
|
| 47266 |
|
| 47267 |
pid_t cur_pid; |
| 47268 |
cur_pid = getpid(); |
| 47269 |
(void) &cur_pid; /* Mute possible warning */ |
| 47270 |
|
| 47271 |
|
| 47272 |
return 0; |
| 47273 |
} |
| 47274 |
|
| 47275 |
|
| 47276 |
_ACEOF |
| 47277 |
if ac_fn_c_try_link "$LINENO" |
| 47278 |
then : |
| 47279 |
mhd_cv_have_func_getpid="yes" |
| 47280 |
else case e in #( |
| 47281 |
e) mhd_cv_have_func_getpid="no" ;; |
| 47282 |
esac |
| 47283 |
fi |
| 47284 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47285 |
conftest$ac_exeext conftest.$ac_ext |
| 47286 |
;; |
| 47287 |
esac |
| 47288 |
fi |
| 47289 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_getpid" >&5 |
| 47290 |
printf "%s\n" "$mhd_cv_have_func_getpid" >&6; } |
| 47291 |
if test "x$mhd_cv_have_func_getpid" = x"yes" |
| 47292 |
then : |
| 47293 |
|
| 47294 |
printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h |
| 47295 |
|
| 47296 |
|
| 47297 |
|
| 47298 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47299 |
if test ${mhd_cv_have_func_sched_getaffinity+y} |
| 47300 |
then : |
| 47301 |
|
| 47302 |
else case e in #( |
| 47303 |
e) ac_fn_check_decl "$LINENO" "sched_getaffinity" "ac_cv_have_decl_sched_getaffinity" " |
| 47304 |
#ifdef HAVE_SYS_TYPES_H |
| 47305 |
#include <sys/types.h> |
| 47306 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47307 |
#include <unistd.h> |
| 47308 |
#include <sched.h> |
| 47309 |
|
| 47310 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47311 |
if test "x$ac_cv_have_decl_sched_getaffinity" = xyes |
| 47312 |
then : |
| 47313 |
|
| 47314 |
else case e in #( |
| 47315 |
e) mhd_cv_have_func_sched_getaffinity="no" ;; |
| 47316 |
esac |
| 47317 |
fi ;; |
| 47318 |
esac |
| 47319 |
fi |
| 47320 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sched_getaffinity" >&5 |
| 47321 |
printf %s "checking for function sched_getaffinity... " >&6; } |
| 47322 |
if test ${mhd_cv_have_func_sched_getaffinity+y} |
| 47323 |
then : |
| 47324 |
printf %s "(cached) " >&6 |
| 47325 |
else case e in #( |
| 47326 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47327 |
/* end confdefs.h. */ |
| 47328 |
|
| 47329 |
|
| 47330 |
#ifdef HAVE_SYS_TYPES_H |
| 47331 |
#include <sys/types.h> |
| 47332 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47333 |
#include <unistd.h> |
| 47334 |
#include <sched.h> |
| 47335 |
|
| 47336 |
|
| 47337 |
int main(void) |
| 47338 |
{ |
| 47339 |
|
| 47340 |
|
| 47341 |
cpu_set_t cur_set; |
| 47342 |
if (0 != sched_getaffinity(getpid(), sizeof(cur_set), &cur_set)) |
| 47343 |
return 2; |
| 47344 |
if (0 == CPU_SET (0, &cur_set)) |
| 47345 |
return 3; /* Actually this could be a valid result */ |
| 47346 |
|
| 47347 |
|
| 47348 |
return 0; |
| 47349 |
} |
| 47350 |
|
| 47351 |
|
| 47352 |
_ACEOF |
| 47353 |
if ac_fn_c_try_link "$LINENO" |
| 47354 |
then : |
| 47355 |
mhd_cv_have_func_sched_getaffinity="yes" |
| 47356 |
else case e in #( |
| 47357 |
e) mhd_cv_have_func_sched_getaffinity="no" ;; |
| 47358 |
esac |
| 47359 |
fi |
| 47360 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47361 |
conftest$ac_exeext conftest.$ac_ext |
| 47362 |
;; |
| 47363 |
esac |
| 47364 |
fi |
| 47365 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sched_getaffinity" >&5 |
| 47366 |
printf "%s\n" "$mhd_cv_have_func_sched_getaffinity" >&6; } |
| 47367 |
if test "x$mhd_cv_have_func_sched_getaffinity" = x"yes" |
| 47368 |
then : |
| 47369 |
|
| 47370 |
printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h |
| 47371 |
|
| 47372 |
|
| 47373 |
|
| 47374 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47375 |
if test ${mhd_cv_have_func_CPU_COUNT+y} |
| 47376 |
then : |
| 47377 |
|
| 47378 |
else case e in #( |
| 47379 |
e) ac_fn_check_decl "$LINENO" "CPU_COUNT" "ac_cv_have_decl_CPU_COUNT" " |
| 47380 |
#include <stddef.h> |
| 47381 |
#include <sched.h> |
| 47382 |
|
| 47383 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47384 |
if test "x$ac_cv_have_decl_CPU_COUNT" = xyes |
| 47385 |
then : |
| 47386 |
|
| 47387 |
else case e in #( |
| 47388 |
e) mhd_cv_have_func_CPU_COUNT="no" ;; |
| 47389 |
esac |
| 47390 |
fi ;; |
| 47391 |
esac |
| 47392 |
fi |
| 47393 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function CPU_COUNT" >&5 |
| 47394 |
printf %s "checking for function CPU_COUNT... " >&6; } |
| 47395 |
if test ${mhd_cv_have_func_CPU_COUNT+y} |
| 47396 |
then : |
| 47397 |
printf %s "(cached) " >&6 |
| 47398 |
else case e in #( |
| 47399 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47400 |
/* end confdefs.h. */ |
| 47401 |
|
| 47402 |
|
| 47403 |
#include <stddef.h> |
| 47404 |
#include <sched.h> |
| 47405 |
|
| 47406 |
|
| 47407 |
int main(void) |
| 47408 |
{ |
| 47409 |
|
| 47410 |
|
| 47411 |
cpu_set_t cur_set; |
| 47412 |
CPU_ZERO(&cur_set); |
| 47413 |
if (0 != CPU_COUNT(&cur_set)) |
| 47414 |
return 2; |
| 47415 |
|
| 47416 |
|
| 47417 |
return 0; |
| 47418 |
} |
| 47419 |
|
| 47420 |
|
| 47421 |
_ACEOF |
| 47422 |
if ac_fn_c_try_link "$LINENO" |
| 47423 |
then : |
| 47424 |
mhd_cv_have_func_CPU_COUNT="yes" |
| 47425 |
else case e in #( |
| 47426 |
e) mhd_cv_have_func_CPU_COUNT="no" ;; |
| 47427 |
esac |
| 47428 |
fi |
| 47429 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47430 |
conftest$ac_exeext conftest.$ac_ext |
| 47431 |
;; |
| 47432 |
esac |
| 47433 |
fi |
| 47434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_CPU_COUNT" >&5 |
| 47435 |
printf "%s\n" "$mhd_cv_have_func_CPU_COUNT" >&6; } |
| 47436 |
if test "x$mhd_cv_have_func_CPU_COUNT" = x"yes" |
| 47437 |
then : |
| 47438 |
|
| 47439 |
printf "%s\n" "#define HAVE_CPU_COUNT 1" >>confdefs.h |
| 47440 |
|
| 47441 |
|
| 47442 |
|
| 47443 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47444 |
if test ${mhd_cv_have_func_CPU_COUNT_S+y} |
| 47445 |
then : |
| 47446 |
|
| 47447 |
else case e in #( |
| 47448 |
e) ac_fn_check_decl "$LINENO" "CPU_COUNT_S" "ac_cv_have_decl_CPU_COUNT_S" " |
| 47449 |
#include <stddef.h> |
| 47450 |
#include <sched.h> |
| 47451 |
|
| 47452 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47453 |
if test "x$ac_cv_have_decl_CPU_COUNT_S" = xyes |
| 47454 |
then : |
| 47455 |
|
| 47456 |
else case e in #( |
| 47457 |
e) mhd_cv_have_func_CPU_COUNT_S="no" ;; |
| 47458 |
esac |
| 47459 |
fi ;; |
| 47460 |
esac |
| 47461 |
fi |
| 47462 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function CPU_COUNT_S" >&5 |
| 47463 |
printf %s "checking for function CPU_COUNT_S... " >&6; } |
| 47464 |
if test ${mhd_cv_have_func_CPU_COUNT_S+y} |
| 47465 |
then : |
| 47466 |
printf %s "(cached) " >&6 |
| 47467 |
else case e in #( |
| 47468 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47469 |
/* end confdefs.h. */ |
| 47470 |
|
| 47471 |
|
| 47472 |
#include <stddef.h> |
| 47473 |
#include <sched.h> |
| 47474 |
|
| 47475 |
|
| 47476 |
int main(void) |
| 47477 |
{ |
| 47478 |
|
| 47479 |
|
| 47480 |
static const unsigned int set_size_cpus = 2048u; |
| 47481 |
const size_t set_size_bytes = (size_t) CPU_ALLOC_SIZE(set_size_cpus); |
| 47482 |
cpu_set_t *p_set; |
| 47483 |
p_set = CPU_ALLOC(set_size_cpus); |
| 47484 |
if (!p_set) |
| 47485 |
return 2; |
| 47486 |
CPU_ZERO_S(set_size_bytes, p_set); |
| 47487 |
if (0 != CPU_COUNT_S(set_size_bytes, p_set)) |
| 47488 |
{ |
| 47489 |
CPU_FREE(p_set); |
| 47490 |
return 3; |
| 47491 |
} |
| 47492 |
CPU_FREE(p_set); |
| 47493 |
|
| 47494 |
|
| 47495 |
return 0; |
| 47496 |
} |
| 47497 |
|
| 47498 |
|
| 47499 |
_ACEOF |
| 47500 |
if ac_fn_c_try_link "$LINENO" |
| 47501 |
then : |
| 47502 |
mhd_cv_have_func_CPU_COUNT_S="yes" |
| 47503 |
else case e in #( |
| 47504 |
e) mhd_cv_have_func_CPU_COUNT_S="no" ;; |
| 47505 |
esac |
| 47506 |
fi |
| 47507 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47508 |
conftest$ac_exeext conftest.$ac_ext |
| 47509 |
;; |
| 47510 |
esac |
| 47511 |
fi |
| 47512 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_CPU_COUNT_S" >&5 |
| 47513 |
printf "%s\n" "$mhd_cv_have_func_CPU_COUNT_S" >&6; } |
| 47514 |
if test "x$mhd_cv_have_func_CPU_COUNT_S" = x"yes" |
| 47515 |
then : |
| 47516 |
|
| 47517 |
printf "%s\n" "#define HAVE_CPU_COUNT_S 1" >>confdefs.h |
| 47518 |
|
| 47519 |
ac_fn_check_decl "$LINENO" "CPU_SETSIZE" "ac_cv_have_decl_CPU_SETSIZE" "#include <sched.h> |
| 47520 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47521 |
if test "x$ac_cv_have_decl_CPU_SETSIZE" = xyes |
| 47522 |
then : |
| 47523 |
ac_have_decl=1 |
| 47524 |
else case e in #( |
| 47525 |
e) ac_have_decl=0 ;; |
| 47526 |
esac |
| 47527 |
fi |
| 47528 |
printf "%s\n" "#define HAVE_DECL_CPU_SETSIZE $ac_have_decl" >>confdefs.h |
| 47529 |
|
| 47530 |
|
| 47531 |
|
| 47532 |
fi |
| 47533 |
|
| 47534 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47535 |
|
| 47536 |
|
| 47537 |
|
| 47538 |
|
| 47539 |
fi |
| 47540 |
|
| 47541 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47542 |
|
| 47543 |
|
| 47544 |
|
| 47545 |
|
| 47546 |
fi |
| 47547 |
|
| 47548 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47549 |
|
| 47550 |
# NetBSD |
| 47551 |
# Should work only with -lrt, but actually works without it. |
| 47552 |
|
| 47553 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47554 |
if test ${mhd_cv_have_func_sched_getaffinity_np+y} |
| 47555 |
then : |
| 47556 |
|
| 47557 |
else case e in #( |
| 47558 |
e) ac_fn_check_decl "$LINENO" "sched_getaffinity_np" "ac_cv_have_decl_sched_getaffinity_np" " |
| 47559 |
#ifdef HAVE_SYS_TYPES_H |
| 47560 |
#include <sys/types.h> |
| 47561 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47562 |
#include <unistd.h> |
| 47563 |
#include <sched.h> |
| 47564 |
|
| 47565 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47566 |
if test "x$ac_cv_have_decl_sched_getaffinity_np" = xyes |
| 47567 |
then : |
| 47568 |
|
| 47569 |
else case e in #( |
| 47570 |
e) mhd_cv_have_func_sched_getaffinity_np="no" ;; |
| 47571 |
esac |
| 47572 |
fi ;; |
| 47573 |
esac |
| 47574 |
fi |
| 47575 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function sched_getaffinity_np" >&5 |
| 47576 |
printf %s "checking for function sched_getaffinity_np... " >&6; } |
| 47577 |
if test ${mhd_cv_have_func_sched_getaffinity_np+y} |
| 47578 |
then : |
| 47579 |
printf %s "(cached) " >&6 |
| 47580 |
else case e in #( |
| 47581 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47582 |
/* end confdefs.h. */ |
| 47583 |
|
| 47584 |
|
| 47585 |
#ifdef HAVE_SYS_TYPES_H |
| 47586 |
#include <sys/types.h> |
| 47587 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47588 |
#include <unistd.h> |
| 47589 |
#include <sched.h> |
| 47590 |
|
| 47591 |
|
| 47592 |
int main(void) |
| 47593 |
{ |
| 47594 |
|
| 47595 |
|
| 47596 |
cpuset_t *cpuset_ptr; |
| 47597 |
cpuid_t cpu_num = 0; |
| 47598 |
cpuset_ptr = cpuset_create(); |
| 47599 |
if (!cpuset_ptr) |
| 47600 |
return 2; |
| 47601 |
if (0 != sched_getaffinity_np(getpid(), cpuset_size(cpuset_ptr), cpuset_ptr)) |
| 47602 |
{ |
| 47603 |
cpuset_destroy(cpuset_ptr); |
| 47604 |
return 3; |
| 47605 |
} |
| 47606 |
if (0 >= cpuset_isset(cpu_num, cpuset_ptr)) |
| 47607 |
{ |
| 47608 |
cpuset_destroy(cpuset_ptr); |
| 47609 |
return 4; /* Actually this could be a valid result */ |
| 47610 |
} |
| 47611 |
cpuset_destroy(cpuset_ptr); |
| 47612 |
|
| 47613 |
|
| 47614 |
|
| 47615 |
return 0; |
| 47616 |
} |
| 47617 |
|
| 47618 |
|
| 47619 |
_ACEOF |
| 47620 |
if ac_fn_c_try_link "$LINENO" |
| 47621 |
then : |
| 47622 |
mhd_cv_have_func_sched_getaffinity_np="yes" |
| 47623 |
else case e in #( |
| 47624 |
e) mhd_cv_have_func_sched_getaffinity_np="no" ;; |
| 47625 |
esac |
| 47626 |
fi |
| 47627 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47628 |
conftest$ac_exeext conftest.$ac_ext |
| 47629 |
;; |
| 47630 |
esac |
| 47631 |
fi |
| 47632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_sched_getaffinity_np" >&5 |
| 47633 |
printf "%s\n" "$mhd_cv_have_func_sched_getaffinity_np" >&6; } |
| 47634 |
if test "x$mhd_cv_have_func_sched_getaffinity_np" = x"yes" |
| 47635 |
then : |
| 47636 |
|
| 47637 |
printf "%s\n" "#define HAVE_SCHED_GETAFFINITY_NP 1" >>confdefs.h |
| 47638 |
|
| 47639 |
|
| 47640 |
fi |
| 47641 |
|
| 47642 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47643 |
|
| 47644 |
|
| 47645 |
|
| 47646 |
|
| 47647 |
fi |
| 47648 |
|
| 47649 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47650 |
|
| 47651 |
# FreeBSD |
| 47652 |
|
| 47653 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47654 |
if test ${mhd_cv_have_func_cpuset_getaffinity+y} |
| 47655 |
then : |
| 47656 |
|
| 47657 |
else case e in #( |
| 47658 |
e) ac_fn_check_decl "$LINENO" "cpuset_getaffinity" "ac_cv_have_decl_cpuset_getaffinity" " |
| 47659 |
#ifdef HAVE_SYS_PARAM_H |
| 47660 |
#include <sys/param.h> |
| 47661 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47662 |
#include <sys/cpuset.h> |
| 47663 |
|
| 47664 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47665 |
if test "x$ac_cv_have_decl_cpuset_getaffinity" = xyes |
| 47666 |
then : |
| 47667 |
|
| 47668 |
else case e in #( |
| 47669 |
e) mhd_cv_have_func_cpuset_getaffinity="no" ;; |
| 47670 |
esac |
| 47671 |
fi ;; |
| 47672 |
esac |
| 47673 |
fi |
| 47674 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function cpuset_getaffinity" >&5 |
| 47675 |
printf %s "checking for function cpuset_getaffinity... " >&6; } |
| 47676 |
if test ${mhd_cv_have_func_cpuset_getaffinity+y} |
| 47677 |
then : |
| 47678 |
printf %s "(cached) " >&6 |
| 47679 |
else case e in #( |
| 47680 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47681 |
/* end confdefs.h. */ |
| 47682 |
|
| 47683 |
|
| 47684 |
#ifdef HAVE_SYS_PARAM_H |
| 47685 |
#include <sys/param.h> |
| 47686 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47687 |
#include <sys/cpuset.h> |
| 47688 |
|
| 47689 |
|
| 47690 |
int main(void) |
| 47691 |
{ |
| 47692 |
|
| 47693 |
|
| 47694 |
cpuset_t cur_mask; |
| 47695 |
if (0 != cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, (id_t) -1, sizeof(cur_mask), &cur_mask)) |
| 47696 |
return 2; |
| 47697 |
|
| 47698 |
|
| 47699 |
return 0; |
| 47700 |
} |
| 47701 |
|
| 47702 |
|
| 47703 |
_ACEOF |
| 47704 |
if ac_fn_c_try_link "$LINENO" |
| 47705 |
then : |
| 47706 |
mhd_cv_have_func_cpuset_getaffinity="yes" |
| 47707 |
else case e in #( |
| 47708 |
e) mhd_cv_have_func_cpuset_getaffinity="no" ;; |
| 47709 |
esac |
| 47710 |
fi |
| 47711 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47712 |
conftest$ac_exeext conftest.$ac_ext |
| 47713 |
;; |
| 47714 |
esac |
| 47715 |
fi |
| 47716 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_cpuset_getaffinity" >&5 |
| 47717 |
printf "%s\n" "$mhd_cv_have_func_cpuset_getaffinity" >&6; } |
| 47718 |
if test "x$mhd_cv_have_func_cpuset_getaffinity" = x"yes" |
| 47719 |
then : |
| 47720 |
|
| 47721 |
printf "%s\n" "#define HAVE_CPUSET_GETAFFINITY 1" >>confdefs.h |
| 47722 |
|
| 47723 |
|
| 47724 |
|
| 47725 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47726 |
if test ${mhd_cv_have_func_CPU_COUNT+y} |
| 47727 |
then : |
| 47728 |
|
| 47729 |
else case e in #( |
| 47730 |
e) ac_fn_check_decl "$LINENO" "CPU_COUNT" "ac_cv_have_decl_CPU_COUNT" " |
| 47731 |
#ifdef HAVE_SYS_PARAM_H |
| 47732 |
#include <sys/param.h> |
| 47733 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47734 |
#ifdef HAVE_SYS__CPUSET_H |
| 47735 |
#include <sys/_cpuset.h> |
| 47736 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47737 |
#include <sys/cpuset.h> |
| 47738 |
|
| 47739 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47740 |
if test "x$ac_cv_have_decl_CPU_COUNT" = xyes |
| 47741 |
then : |
| 47742 |
|
| 47743 |
else case e in #( |
| 47744 |
e) mhd_cv_have_func_CPU_COUNT="no" ;; |
| 47745 |
esac |
| 47746 |
fi ;; |
| 47747 |
esac |
| 47748 |
fi |
| 47749 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function CPU_COUNT" >&5 |
| 47750 |
printf %s "checking for function CPU_COUNT... " >&6; } |
| 47751 |
if test ${mhd_cv_have_func_CPU_COUNT+y} |
| 47752 |
then : |
| 47753 |
printf %s "(cached) " >&6 |
| 47754 |
else case e in #( |
| 47755 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47756 |
/* end confdefs.h. */ |
| 47757 |
|
| 47758 |
|
| 47759 |
#ifdef HAVE_SYS_PARAM_H |
| 47760 |
#include <sys/param.h> |
| 47761 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47762 |
#ifdef HAVE_SYS__CPUSET_H |
| 47763 |
#include <sys/_cpuset.h> |
| 47764 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47765 |
#include <sys/cpuset.h> |
| 47766 |
|
| 47767 |
|
| 47768 |
int main(void) |
| 47769 |
{ |
| 47770 |
|
| 47771 |
|
| 47772 |
cpuset_t test_mask; |
| 47773 |
CPU_ZERO(&test_mask); |
| 47774 |
if (0 != CPU_COUNT(&test_mask)) |
| 47775 |
return 2; |
| 47776 |
|
| 47777 |
|
| 47778 |
return 0; |
| 47779 |
} |
| 47780 |
|
| 47781 |
|
| 47782 |
_ACEOF |
| 47783 |
if ac_fn_c_try_link "$LINENO" |
| 47784 |
then : |
| 47785 |
mhd_cv_have_func_CPU_COUNT="yes" |
| 47786 |
else case e in #( |
| 47787 |
e) mhd_cv_have_func_CPU_COUNT="no" ;; |
| 47788 |
esac |
| 47789 |
fi |
| 47790 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47791 |
conftest$ac_exeext conftest.$ac_ext |
| 47792 |
;; |
| 47793 |
esac |
| 47794 |
fi |
| 47795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_CPU_COUNT" >&5 |
| 47796 |
printf "%s\n" "$mhd_cv_have_func_CPU_COUNT" >&6; } |
| 47797 |
if test "x$mhd_cv_have_func_CPU_COUNT" = x"yes" |
| 47798 |
then : |
| 47799 |
|
| 47800 |
printf "%s\n" "#define HAVE_CPU_COUNT 1" >>confdefs.h |
| 47801 |
|
| 47802 |
|
| 47803 |
|
| 47804 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 47805 |
if test ${mhd_cv_have_func_CPU_COUNT_S+y} |
| 47806 |
then : |
| 47807 |
|
| 47808 |
else case e in #( |
| 47809 |
e) ac_fn_check_decl "$LINENO" "CPU_COUNT_S" "ac_cv_have_decl_CPU_COUNT_S" " |
| 47810 |
#ifdef HAVE_SYS_PARAM_H |
| 47811 |
#include <sys/param.h> |
| 47812 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47813 |
#ifdef HAVE_SYS__CPUSET_H |
| 47814 |
#include <sys/_cpuset.h> |
| 47815 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47816 |
#include <sys/cpuset.h> |
| 47817 |
|
| 47818 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 47819 |
if test "x$ac_cv_have_decl_CPU_COUNT_S" = xyes |
| 47820 |
then : |
| 47821 |
|
| 47822 |
else case e in #( |
| 47823 |
e) mhd_cv_have_func_CPU_COUNT_S="no" ;; |
| 47824 |
esac |
| 47825 |
fi ;; |
| 47826 |
esac |
| 47827 |
fi |
| 47828 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function CPU_COUNT_S" >&5 |
| 47829 |
printf %s "checking for function CPU_COUNT_S... " >&6; } |
| 47830 |
if test ${mhd_cv_have_func_CPU_COUNT_S+y} |
| 47831 |
then : |
| 47832 |
printf %s "(cached) " >&6 |
| 47833 |
else case e in #( |
| 47834 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47835 |
/* end confdefs.h. */ |
| 47836 |
|
| 47837 |
|
| 47838 |
#ifdef HAVE_SYS_PARAM_H |
| 47839 |
#include <sys/param.h> |
| 47840 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47841 |
#ifdef HAVE_SYS__CPUSET_H |
| 47842 |
#include <sys/_cpuset.h> |
| 47843 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47844 |
#include <sys/cpuset.h> |
| 47845 |
|
| 47846 |
|
| 47847 |
int main(void) |
| 47848 |
{ |
| 47849 |
|
| 47850 |
|
| 47851 |
static const unsigned int max_cpu_num = 2048u; |
| 47852 |
cpuset_t *mask_ptr; |
| 47853 |
mask_ptr = CPU_ALLOC(max_cpu_num); |
| 47854 |
if (! mask_ptr) |
| 47855 |
return 2; |
| 47856 |
if (0 != cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, (id_t) -1, |
| 47857 |
CPU_ALLOC_SIZE(max_cpu_num), mask_ptr)) |
| 47858 |
{ |
| 47859 |
CPU_FREE(mask_ptr); |
| 47860 |
return 3; |
| 47861 |
} |
| 47862 |
if (0 == CPU_COUNT_S(CPU_ALLOC_SIZE(max_cpu_num), &test_mask)) |
| 47863 |
{ |
| 47864 |
CPU_FREE(mask_ptr); |
| 47865 |
return 4; |
| 47866 |
} |
| 47867 |
CPU_FREE(mask_ptr); |
| 47868 |
|
| 47869 |
|
| 47870 |
|
| 47871 |
return 0; |
| 47872 |
} |
| 47873 |
|
| 47874 |
|
| 47875 |
_ACEOF |
| 47876 |
if ac_fn_c_try_link "$LINENO" |
| 47877 |
then : |
| 47878 |
mhd_cv_have_func_CPU_COUNT_S="yes" |
| 47879 |
else case e in #( |
| 47880 |
e) mhd_cv_have_func_CPU_COUNT_S="no" ;; |
| 47881 |
esac |
| 47882 |
fi |
| 47883 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 47884 |
conftest$ac_exeext conftest.$ac_ext |
| 47885 |
;; |
| 47886 |
esac |
| 47887 |
fi |
| 47888 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func_CPU_COUNT_S" >&5 |
| 47889 |
printf "%s\n" "$mhd_cv_have_func_CPU_COUNT_S" >&6; } |
| 47890 |
if test "x$mhd_cv_have_func_CPU_COUNT_S" = x"yes" |
| 47891 |
then : |
| 47892 |
|
| 47893 |
printf "%s\n" "#define HAVE_CPU_COUNT_S 1" >>confdefs.h |
| 47894 |
|
| 47895 |
|
| 47896 |
fi |
| 47897 |
|
| 47898 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47899 |
|
| 47900 |
|
| 47901 |
|
| 47902 |
|
| 47903 |
fi |
| 47904 |
|
| 47905 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47906 |
|
| 47907 |
|
| 47908 |
|
| 47909 |
|
| 47910 |
fi |
| 47911 |
|
| 47912 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 47913 |
|
| 47914 |
if test "x$mhd_cv_have_func_CPU_COUNT_S" = x"yes" |
| 47915 |
then : |
| 47916 |
|
| 47917 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CPU_COUNT_S() expects max CPU number as 'size' parameter" >&5 |
| 47918 |
printf %s "checking whether CPU_COUNT_S() expects max CPU number as 'size' parameter... " >&6; } |
| 47919 |
if test ${mhd_cv_func_cpu_count_s_cpus+y} |
| 47920 |
then : |
| 47921 |
printf %s "(cached) " >&6 |
| 47922 |
else case e in #( |
| 47923 |
e) |
| 47924 |
if test "x$cross-compiling" = x"yes" |
| 47925 |
then : |
| 47926 |
mhd_cv_func_cpu_count_s_cpus="assuming no" |
| 47927 |
else case e in #( |
| 47928 |
e) |
| 47929 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 47930 |
/* end confdefs.h. */ |
| 47931 |
|
| 47932 |
|
| 47933 |
#ifdef HAVE_SYS_TYPES_H |
| 47934 |
#include <sys/types.h> |
| 47935 |
#endif /* HAVE_SYS_TYPES_H */ |
| 47936 |
#ifdef HAVE_SYS_PARAM_H |
| 47937 |
#include <sys/param.h> |
| 47938 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47939 |
#ifdef HAVE_SYS__CPUSET_H |
| 47940 |
#include <sys/_cpuset.h> |
| 47941 |
#endif /* HAVE_SYS_PARAM_H */ |
| 47942 |
#ifdef HAVE_SYS_CPUSET_H |
| 47943 |
#include <sys/cpuset.h> |
| 47944 |
#endif /* HAVE_SYS_CPUSET_H */ |
| 47945 |
#ifdef HAVE_STDDEF_H |
| 47946 |
#include <stddef.h> |
| 47947 |
#endif /* HAVE_STDDEF_H */ |
| 47948 |
#ifdef HAVE_UNISTD_H |
| 47949 |
#include <unistd.h> |
| 47950 |
#endif /* HAVE_UNISTD_H */ |
| 47951 |
#ifdef HAVE_SCHED_H |
| 47952 |
#include <sched.h> |
| 47953 |
#endif /* HAVE_SCHED_H */ |
| 47954 |
#include <stdio.h> |
| 47955 |
|
| 47956 |
#ifdef HAVE_SCHED_GETAFFINITY |
| 47957 |
#define TEST_CPUSET_TYPE cpu_set_t |
| 47958 |
#else /* ! HAVE_SCHED_GETAFFINITY */ |
| 47959 |
#define TEST_CPUSET_TYPE cpuset_t |
| 47960 |
#endif /* ! HAVE_SCHED_GETAFFINITY */ |
| 47961 |
|
| 47962 |
int |
| 47963 |
main (void) |
| 47964 |
{ |
| 47965 |
|
| 47966 |
TEST_CPUSET_TYPE *p_testset; |
| 47967 |
/* The size of the cpuset that is larger then the test cpuset (in CPUs) */ |
| 47968 |
static const unsigned int testset_size_oversized_cpus = (8 * sizeof(long)) * 1024; |
| 47969 |
const size_t testset_size_oversized_bytes = CPU_ALLOC_SIZE(testset_size_oversized_cpus); |
| 47970 |
/* The size of the test cpuset in number of CPUs */ |
| 47971 |
const unsigned int testset_size_cpus = (unsigned int) testset_size_oversized_bytes; |
| 47972 |
/* The size of the test cpuset in bytes */ |
| 47973 |
const size_t testset_size_bytes = CPU_ALLOC_SIZE(testset_size_cpus); |
| 47974 |
/* The last one CPU in the test set */ |
| 47975 |
const unsigned int test_cpu_num1 = testset_size_cpus - 1; |
| 47976 |
/* The penultimate CPU in the test set */ |
| 47977 |
const unsigned int test_cpu_num2 = testset_size_cpus - 2; |
| 47978 |
/* The CPU numbers that should be cleared */ |
| 47979 |
const unsigned int test_cpu_clear1 = testset_size_cpus - 3; |
| 47980 |
const unsigned int test_cpu_clear2 = testset_size_cpus - 4; |
| 47981 |
unsigned int count_res; |
| 47982 |
int ret = 0; |
| 47983 |
|
| 47984 |
/* Allocate oversize area to ensure that memory outside the buffer is not used */ |
| 47985 |
p_testset = CPU_ALLOC(testset_size_oversized_cpus); |
| 47986 |
if (! p_testset) |
| 47987 |
{ |
| 47988 |
fprintf (stderr, "Error allocating memory.\n"); |
| 47989 |
return 99; |
| 47990 |
} |
| 47991 |
/* Set the some CPU numbers and then clear them */ |
| 47992 |
CPU_SET_S(test_cpu_clear1, testset_size_bytes, p_testset); |
| 47993 |
CPU_SET_S(test_cpu_clear2, testset_size_bytes, p_testset); |
| 47994 |
CPU_ZERO_S(testset_size_bytes, p_testset); |
| 47995 |
/* Set two CPUs on */ |
| 47996 |
CPU_SET_S(test_cpu_num1, testset_size_bytes, p_testset); |
| 47997 |
CPU_SET_S(test_cpu_num2, testset_size_bytes, p_testset); |
| 47998 |
count_res = (unsigned int) CPU_COUNT_S(testset_size_bytes, p_testset); |
| 47999 |
if (0 == count_res) |
| 48000 |
{ |
| 48001 |
fprintf (stderr, "Full cpuset cannot be read by CPU_COUNT_S() when using the number of bytes as the size parameter.\n"); |
| 48002 |
/* Set the some CPU numbers and then clear them */ |
| 48003 |
CPU_SET_S(test_cpu_clear1, testset_size_cpus, p_testset); |
| 48004 |
CPU_SET_S(test_cpu_clear2, testset_size_cpus, p_testset); |
| 48005 |
CPU_ZERO_S(testset_size_cpus, p_testset); |
| 48006 |
/* Set two CPUs on */ |
| 48007 |
CPU_SET_S(test_cpu_num1, testset_size_cpus, p_testset); |
| 48008 |
CPU_SET_S(test_cpu_num2, testset_size_cpus, p_testset); |
| 48009 |
count_res = (unsigned int) CPU_COUNT_S(testset_size_cpus, p_testset); |
| 48010 |
if (2 == count_res) |
| 48011 |
{ |
| 48012 |
fprintf (stderr, "Full cpuset is read by CPU_COUNT_S() only when using the maximum CPU number as the size parameter.\n"); |
| 48013 |
ret = 3; |
| 48014 |
} |
| 48015 |
else |
| 48016 |
{ |
| 48017 |
fprintf (stderr, "Wrong result returned by CPU_COUNT_S() when using the maximum CPU number as the size parameter.\n"); |
| 48018 |
fprintf (stderr, "Number of 'enabled' CPUs: 2\n"); |
| 48019 |
fprintf (stderr, "Number of counted CPUs: %u\n", count_res); |
| 48020 |
fprintf (stderr, "CPU_COUNT_S() could be unreliable.\n"); |
| 48021 |
ret = 70; |
| 48022 |
} |
| 48023 |
} |
| 48024 |
else if (2 == count_res) |
| 48025 |
{ |
| 48026 |
fprintf (stderr, "Full cpuset is read by CPU_COUNT_S() when using the number of bytes as the size parameter.\n"); |
| 48027 |
} |
| 48028 |
else |
| 48029 |
{ |
| 48030 |
fprintf (stderr, "Wrong result returned by CPU_COUNT_S() when using the number of bytes as the size parameter.\n"); |
| 48031 |
fprintf (stderr, "Number of 'enabled' CPUs: 2\n"); |
| 48032 |
fprintf (stderr, "Number of counted CPUs: %u\n", count_res); |
| 48033 |
fprintf (stderr, "CPU_COUNT_S() could be unreliable.\n"); |
| 48034 |
ret = 71; |
| 48035 |
} |
| 48036 |
CPU_FREE(p_testset); |
| 48037 |
if (0 != ret) |
| 48038 |
return ret; |
| 48039 |
|
| 48040 |
|
| 48041 |
; |
| 48042 |
return 0; |
| 48043 |
} |
| 48044 |
|
| 48045 |
_ACEOF |
| 48046 |
if ac_fn_c_try_link "$LINENO" |
| 48047 |
then : |
| 48048 |
|
| 48049 |
{ echo "$as_me:$LINENO: ./conftest$EXEEXT" >&5 |
| 48050 |
(./conftest$EXEEXT) >&5 2>&5 |
| 48051 |
ac_status=$? |
| 48052 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 48053 |
(exit $ac_status); } |
| 48054 |
count_test_res=$? |
| 48055 |
if test $count_test_res -eq 0 |
| 48056 |
then : |
| 48057 |
mhd_cv_func_cpu_count_s_cpus="no" |
| 48058 |
elif test $count_test_res -eq 3 |
| 48059 |
then : |
| 48060 |
mhd_cv_func_cpu_count_s_cpus="yes" |
| 48061 |
else case e in #( |
| 48062 |
e) |
| 48063 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unexpected value returned by CPU_COUNT_S() test program. Please report to ${PACKAGE_BUGREPORT}" >&5 |
| 48064 |
printf "%s\n" "$as_me: WARNING: Unexpected value returned by CPU_COUNT_S() test program. Please report to ${PACKAGE_BUGREPORT}" >&2;} |
| 48065 |
mhd_cv_func_cpu_count_s_cpus="assuming no" |
| 48066 |
|
| 48067 |
;; |
| 48068 |
esac |
| 48069 |
fi |
| 48070 |
|
| 48071 |
else case e in #( |
| 48072 |
e) |
| 48073 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot build CPU_COUNT_S() test program. Please report to ${PACKAGE_BUGREPORT}" >&5 |
| 48074 |
printf "%s\n" "$as_me: WARNING: Cannot build CPU_COUNT_S() test program. Please report to ${PACKAGE_BUGREPORT}" >&2;} |
| 48075 |
mhd_cv_func_cpu_count_s_cpus="assuming no" |
| 48076 |
|
| 48077 |
;; |
| 48078 |
esac |
| 48079 |
fi |
| 48080 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48081 |
conftest$ac_exeext conftest.$ac_ext |
| 48082 |
|
| 48083 |
;; |
| 48084 |
esac |
| 48085 |
fi |
| 48086 |
|
| 48087 |
;; |
| 48088 |
esac |
| 48089 |
fi |
| 48090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_cpu_count_s_cpus" >&5 |
| 48091 |
printf "%s\n" "$mhd_cv_func_cpu_count_s_cpus" >&6; } |
| 48092 |
if test "x$mhd_cv_func_cpu_count_s_cpus" = x"yes" |
| 48093 |
then : |
| 48094 |
|
| 48095 |
printf "%s\n" "#define MHD_FUNC_CPU_COUNT_S_GETS_CPUS 1" >>confdefs.h |
| 48096 |
|
| 48097 |
|
| 48098 |
|
| 48099 |
fi |
| 48100 |
|
| 48101 |
|
| 48102 |
fi |
| 48103 |
|
| 48104 |
|
| 48105 |
fi |
| 48106 |
|
| 48107 |
# Check for fork() and waitpid(). They are used for tests. |
| 48108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fork()" >&5 |
| 48109 |
printf %s "checking for fork()... " >&6; } |
| 48110 |
mhd_have_fork_waitpid='no' |
| 48111 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48112 |
/* end confdefs.h. */ |
| 48113 |
|
| 48114 |
|
| 48115 |
#ifdef HAVE_SYS_TYPES_H |
| 48116 |
#include <sys/types.h> |
| 48117 |
#endif |
| 48118 |
#ifdef HAVE_UNISTD_H |
| 48119 |
#include <unistd.h> |
| 48120 |
#endif |
| 48121 |
|
| 48122 |
int |
| 48123 |
main (void) |
| 48124 |
{ |
| 48125 |
|
| 48126 |
pid_t p = fork (); |
| 48127 |
if (0 == p) |
| 48128 |
return 1; |
| 48129 |
|
| 48130 |
; |
| 48131 |
return 0; |
| 48132 |
} |
| 48133 |
|
| 48134 |
_ACEOF |
| 48135 |
if ac_fn_c_try_link "$LINENO" |
| 48136 |
then : |
| 48137 |
|
| 48138 |
|
| 48139 |
printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h |
| 48140 |
|
| 48141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 48142 |
printf "%s\n" "yes" >&6; } |
| 48143 |
|
| 48144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for waitpid()" >&5 |
| 48145 |
printf %s "checking for waitpid()... " >&6; } |
| 48146 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48147 |
/* end confdefs.h. */ |
| 48148 |
|
| 48149 |
|
| 48150 |
#ifdef HAVE_SYS_TYPES_H |
| 48151 |
#include <sys/types.h> |
| 48152 |
#endif |
| 48153 |
#ifdef HAVE_UNISTD_H |
| 48154 |
#include <unistd.h> |
| 48155 |
#endif |
| 48156 |
#include <sys/wait.h> |
| 48157 |
|
| 48158 |
int |
| 48159 |
main (void) |
| 48160 |
{ |
| 48161 |
|
| 48162 |
pid_t p = fork (); |
| 48163 |
if (0 == p) |
| 48164 |
return 1; |
| 48165 |
waitpid (p, (void*)0, 0) |
| 48166 |
|
| 48167 |
; |
| 48168 |
return 0; |
| 48169 |
} |
| 48170 |
|
| 48171 |
_ACEOF |
| 48172 |
if ac_fn_c_try_link "$LINENO" |
| 48173 |
then : |
| 48174 |
|
| 48175 |
|
| 48176 |
printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 48177 |
|
| 48178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 48179 |
printf "%s\n" "yes" >&6; } |
| 48180 |
mhd_have_fork_waitpid='yes' |
| 48181 |
|
| 48182 |
else case e in #( |
| 48183 |
e) |
| 48184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 48185 |
printf "%s\n" "no" >&6; } |
| 48186 |
;; |
| 48187 |
esac |
| 48188 |
fi |
| 48189 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48190 |
conftest$ac_exeext conftest.$ac_ext |
| 48191 |
|
| 48192 |
else case e in #( |
| 48193 |
e) |
| 48194 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 48195 |
printf "%s\n" "no" >&6; } |
| 48196 |
;; |
| 48197 |
esac |
| 48198 |
fi |
| 48199 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48200 |
conftest$ac_exeext conftest.$ac_ext |
| 48201 |
|
| 48202 |
if test "x$mhd_have_fork_waitpid" = "xyes"; then |
| 48203 |
HAVE_FORK_WAITPID_TRUE= |
| 48204 |
HAVE_FORK_WAITPID_FALSE='#' |
| 48205 |
else |
| 48206 |
HAVE_FORK_WAITPID_TRUE='#' |
| 48207 |
HAVE_FORK_WAITPID_FALSE= |
| 48208 |
fi |
| 48209 |
|
| 48210 |
|
| 48211 |
# gcov compilation |
| 48212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile with support for code coverage analysis" >&5 |
| 48213 |
printf %s "checking whether to compile with support for code coverage analysis... " >&6; } |
| 48214 |
# Check whether --enable-coverage was given. |
| 48215 |
if test ${enable_coverage+y} |
| 48216 |
then : |
| 48217 |
enableval=$enable_coverage; use_gcov=${enableval} |
| 48218 |
else case e in #( |
| 48219 |
e) use_gcov=no ;; |
| 48220 |
esac |
| 48221 |
fi |
| 48222 |
|
| 48223 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $use_gcov" >&5 |
| 48224 |
printf "%s\n" "$use_gcov" >&6; } |
| 48225 |
if test "x$use_gcov" = "xyes"; then |
| 48226 |
USE_COVERAGE_TRUE= |
| 48227 |
USE_COVERAGE_FALSE='#' |
| 48228 |
else |
| 48229 |
USE_COVERAGE_TRUE='#' |
| 48230 |
USE_COVERAGE_FALSE= |
| 48231 |
fi |
| 48232 |
|
| 48233 |
|
| 48234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5 |
| 48235 |
printf %s "checking the number of available CPUs... " >&6; } |
| 48236 |
CPU_COUNT="0" |
| 48237 |
|
| 48238 |
# Try generic methods |
| 48239 |
|
| 48240 |
# 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and |
| 48241 |
# 'NPROCESSORS_ONLN' are platform-specific |
| 48242 |
command -v getconf >/dev/null 2>&1 && \ |
| 48243 |
CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0" |
| 48244 |
if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1 |
| 48245 |
then : |
| 48246 |
: # empty |
| 48247 |
else case e in #( |
| 48248 |
e) # 'nproc' is part of GNU Coreutils and is widely available |
| 48249 |
CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0" |
| 48250 |
;; |
| 48251 |
esac |
| 48252 |
fi |
| 48253 |
if test "$CPU_COUNT" -gt "0" 2>/dev/null |
| 48254 |
then : |
| 48255 |
: # empty |
| 48256 |
else case e in #( |
| 48257 |
e) # Try platform-specific preferred methods |
| 48258 |
case $host_os in #( |
| 48259 |
*linux*) : |
| 48260 |
CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #( |
| 48261 |
*darwin*) : |
| 48262 |
CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #( |
| 48263 |
freebsd*) : |
| 48264 |
command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #( |
| 48265 |
netbsd*) : |
| 48266 |
command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #( |
| 48267 |
solaris*) : |
| 48268 |
command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #( |
| 48269 |
mingw*) : |
| 48270 |
CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( |
| 48271 |
msys*) : |
| 48272 |
CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( |
| 48273 |
cygwin*) : |
| 48274 |
CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #( |
| 48275 |
*) : |
| 48276 |
;; |
| 48277 |
esac ;; |
| 48278 |
esac |
| 48279 |
fi |
| 48280 |
if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1 |
| 48281 |
then : |
| 48282 |
: # empty |
| 48283 |
else case e in #( |
| 48284 |
e) # Try less preferred generic method |
| 48285 |
# 'hw.ncpu' exist on many platforms, but not on GNU/Linux |
| 48286 |
CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0" |
| 48287 |
;; |
| 48288 |
esac |
| 48289 |
fi |
| 48290 |
if test "$CPU_COUNT" -gt "0" 2>/dev/null |
| 48291 |
then : |
| 48292 |
: # empty |
| 48293 |
else case e in #( |
| 48294 |
e) # Try platform-specific fallback methods |
| 48295 |
# They can be less accurate and slower then preferred methods |
| 48296 |
case $host_os in #( |
| 48297 |
*linux*) : |
| 48298 |
CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #( |
| 48299 |
*darwin*) : |
| 48300 |
CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #( |
| 48301 |
freebsd*) : |
| 48302 |
CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( |
| 48303 |
netbsd*) : |
| 48304 |
CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \ |
| 48305 |
CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #( |
| 48306 |
solaris*) : |
| 48307 |
command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \ |
| 48308 |
CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #( |
| 48309 |
mingw*) : |
| 48310 |
if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c` |
| 48311 |
then : |
| 48312 |
: # empty |
| 48313 |
else case e in #( |
| 48314 |
e) test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; |
| 48315 |
esac |
| 48316 |
fi ;; #( |
| 48317 |
msys*) : |
| 48318 |
test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( |
| 48319 |
cygwin*) : |
| 48320 |
test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #( |
| 48321 |
*) : |
| 48322 |
;; |
| 48323 |
esac ;; |
| 48324 |
esac |
| 48325 |
fi |
| 48326 |
if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null |
| 48327 |
then : |
| 48328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 |
| 48329 |
printf "%s\n" "$CPU_COUNT" >&6; } |
| 48330 |
|
| 48331 |
else case e in #( |
| 48332 |
e) CPU_COUNT="1" |
| 48333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5 |
| 48334 |
printf "%s\n" "unable to detect (assuming 1)" >&6; } |
| 48335 |
;; |
| 48336 |
esac |
| 48337 |
fi |
| 48338 |
MHD_REAL_CPU_COUNT=${CPU_COUNT} |
| 48339 |
|
| 48340 |
|
| 48341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for number of CPU cores to use in tests" >&5 |
| 48342 |
printf %s "checking for number of CPU cores to use in tests... " >&6; } |
| 48343 |
if test "x$use_heavy_tests" = x"yes" |
| 48344 |
then : |
| 48345 |
|
| 48346 |
# Enable usage of many core if heavy tests are enabled |
| 48347 |
if test "$CPU_COUNT" -gt "32" |
| 48348 |
then : |
| 48349 |
CPU_COUNT="32" |
| 48350 |
fi |
| 48351 |
else case e in #( |
| 48352 |
e) |
| 48353 |
# Limit usage to just a few cores if heavy tests are not enabled |
| 48354 |
if test "$CPU_COUNT" -gt "6" |
| 48355 |
then : |
| 48356 |
CPU_COUNT="6" |
| 48357 |
fi |
| 48358 |
if test "$CPU_COUNT" -lt "2" |
| 48359 |
then : |
| 48360 |
CPU_COUNT="2" |
| 48361 |
fi |
| 48362 |
|
| 48363 |
;; |
| 48364 |
esac |
| 48365 |
fi |
| 48366 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5 |
| 48367 |
printf "%s\n" "$CPU_COUNT" >&6; } |
| 48368 |
|
| 48369 |
|
| 48370 |
# Check whether --enable-asserts was given. |
| 48371 |
if test ${enable_asserts+y} |
| 48372 |
then : |
| 48373 |
enableval=$enable_asserts; |
| 48374 |
else case e in #( |
| 48375 |
e) enable_asserts='auto' |
| 48376 |
;; |
| 48377 |
esac |
| 48378 |
fi |
| 48379 |
|
| 48380 |
{ use_asserts_MSG=; unset use_asserts_MSG;} |
| 48381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NDEBUG macro is defined" >&5 |
| 48382 |
printf %s "checking whether NDEBUG macro is defined... " >&6; } |
| 48383 |
if test ${mhd_cv_macro_ndebug_def+y} |
| 48384 |
then : |
| 48385 |
printf %s "(cached) " >&6 |
| 48386 |
else case e in #( |
| 48387 |
e) |
| 48388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48389 |
/* end confdefs.h. */ |
| 48390 |
|
| 48391 |
|
| 48392 |
#ifndef NDEBUG |
| 48393 |
#error NDEBUG is NOT defined |
| 48394 |
chome me now |
| 48395 |
#endif |
| 48396 |
|
| 48397 |
int main(void) |
| 48398 |
{ |
| 48399 |
return 0; |
| 48400 |
} |
| 48401 |
|
| 48402 |
|
| 48403 |
|
| 48404 |
_ACEOF |
| 48405 |
if ac_fn_c_try_link "$LINENO" |
| 48406 |
then : |
| 48407 |
mhd_cv_macro_ndebug_def='yes' |
| 48408 |
else case e in #( |
| 48409 |
e) mhd_cv_macro_ndebug_def='no' |
| 48410 |
;; |
| 48411 |
esac |
| 48412 |
fi |
| 48413 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48414 |
conftest$ac_exeext conftest.$ac_ext |
| 48415 |
|
| 48416 |
;; |
| 48417 |
esac |
| 48418 |
fi |
| 48419 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_ndebug_def" >&5 |
| 48420 |
printf "%s\n" "$mhd_cv_macro_ndebug_def" >&6; } |
| 48421 |
if test "x$enable_asserts" = x"yes" |
| 48422 |
then : |
| 48423 |
|
| 48424 |
if test "x$mhd_cv_macro_ndebug_def" = x"yes" |
| 48425 |
then : |
| 48426 |
|
| 48427 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 48428 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 48429 |
as_fn_error $? "Parameter --enable-asserts is specified, but NDEBUG macro is defined as well |
| 48430 |
See 'config.log' for more details" "$LINENO" 5; } |
| 48431 |
|
| 48432 |
|
| 48433 |
fi |
| 48434 |
use_asserts_MSG="yes, enabled by configure parameter" |
| 48435 |
|
| 48436 |
|
| 48437 |
fi |
| 48438 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _DEBUG macro is defined" >&5 |
| 48439 |
printf %s "checking whether _DEBUG macro is defined... " >&6; } |
| 48440 |
if test ${mhd_cv_macro__debug_def+y} |
| 48441 |
then : |
| 48442 |
printf %s "(cached) " >&6 |
| 48443 |
else case e in #( |
| 48444 |
e) |
| 48445 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48446 |
/* end confdefs.h. */ |
| 48447 |
|
| 48448 |
|
| 48449 |
#ifndef _DEBUG |
| 48450 |
#error _DEBUG is NOT defined |
| 48451 |
chome me now |
| 48452 |
#endif |
| 48453 |
|
| 48454 |
int main(void) |
| 48455 |
{ |
| 48456 |
return 0; |
| 48457 |
} |
| 48458 |
|
| 48459 |
|
| 48460 |
|
| 48461 |
_ACEOF |
| 48462 |
if ac_fn_c_try_link "$LINENO" |
| 48463 |
then : |
| 48464 |
mhd_cv_macro__debug_def='yes' |
| 48465 |
else case e in #( |
| 48466 |
e) mhd_cv_macro__debug_def='no' |
| 48467 |
;; |
| 48468 |
esac |
| 48469 |
fi |
| 48470 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48471 |
conftest$ac_exeext conftest.$ac_ext |
| 48472 |
|
| 48473 |
;; |
| 48474 |
esac |
| 48475 |
fi |
| 48476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro__debug_def" >&5 |
| 48477 |
printf "%s\n" "$mhd_cv_macro__debug_def" >&6; } |
| 48478 |
if test "x$enable_asserts" = x"no" |
| 48479 |
then : |
| 48480 |
|
| 48481 |
if test "x$mhd_cv_macro__debug_def" = x"yes" |
| 48482 |
then : |
| 48483 |
|
| 48484 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 48485 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 48486 |
as_fn_error $? "Parameter --disable-asserts is specified, but _DEBUG macro is defined as well |
| 48487 |
See 'config.log' for more details" "$LINENO" 5; } |
| 48488 |
|
| 48489 |
|
| 48490 |
fi |
| 48491 |
use_asserts_MSG="no, set by configure parameter" |
| 48492 |
|
| 48493 |
|
| 48494 |
fi |
| 48495 |
if test "x${mhd_cv_macro_ndebug_def}" = "xyes" && test "x${mhd_cv_macro__debug_def}" = "xyes" |
| 48496 |
then : |
| 48497 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 48498 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 48499 |
as_fn_error $? "Both NDEBUG and _DEBUG macros are defined |
| 48500 |
See 'config.log' for more details" "$LINENO" 5; } |
| 48501 |
|
| 48502 |
fi |
| 48503 |
if test "x$enable_asserts" = x"auto" |
| 48504 |
then : |
| 48505 |
|
| 48506 |
if test "x$mhd_cv_macro_ndebug_def" = x"yes" |
| 48507 |
then : |
| 48508 |
|
| 48509 |
enable_asserts="no" |
| 48510 |
use_asserts_MSG="no, set by NDEBUG preprocessor macro" |
| 48511 |
|
| 48512 |
|
| 48513 |
fi |
| 48514 |
|
| 48515 |
|
| 48516 |
fi |
| 48517 |
if test "x$enable_asserts" = x"auto" |
| 48518 |
then : |
| 48519 |
|
| 48520 |
if test "x$mhd_cv_macro__debug_def" = x"yes" |
| 48521 |
then : |
| 48522 |
|
| 48523 |
enable_asserts="yes" |
| 48524 |
use_asserts_MSG="yes, enabled by _DEBUG preprocessor macro" |
| 48525 |
|
| 48526 |
|
| 48527 |
fi |
| 48528 |
|
| 48529 |
|
| 48530 |
fi |
| 48531 |
if test "x$enable_asserts" = x"auto" |
| 48532 |
then : |
| 48533 |
|
| 48534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DEBUG macro is defined" >&5 |
| 48535 |
printf %s "checking whether DEBUG macro is defined... " >&6; } |
| 48536 |
if test ${mhd_cv_macro_debug_def+y} |
| 48537 |
then : |
| 48538 |
printf %s "(cached) " >&6 |
| 48539 |
else case e in #( |
| 48540 |
e) |
| 48541 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48542 |
/* end confdefs.h. */ |
| 48543 |
|
| 48544 |
|
| 48545 |
#ifndef DEBUG |
| 48546 |
#error DEBUG is NOT defined |
| 48547 |
chome me now |
| 48548 |
#endif |
| 48549 |
|
| 48550 |
int main(void) |
| 48551 |
{ |
| 48552 |
return 0; |
| 48553 |
} |
| 48554 |
|
| 48555 |
|
| 48556 |
|
| 48557 |
_ACEOF |
| 48558 |
if ac_fn_c_try_link "$LINENO" |
| 48559 |
then : |
| 48560 |
mhd_cv_macro_debug_def='yes' |
| 48561 |
else case e in #( |
| 48562 |
e) mhd_cv_macro_debug_def='no' |
| 48563 |
;; |
| 48564 |
esac |
| 48565 |
fi |
| 48566 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48567 |
conftest$ac_exeext conftest.$ac_ext |
| 48568 |
|
| 48569 |
;; |
| 48570 |
esac |
| 48571 |
fi |
| 48572 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_macro_debug_def" >&5 |
| 48573 |
printf "%s\n" "$mhd_cv_macro_debug_def" >&6; } |
| 48574 |
if test "x$mhd_cv_macro_debug_def" = x"yes" |
| 48575 |
then : |
| 48576 |
|
| 48577 |
enable_asserts="yes" |
| 48578 |
use_asserts_MSG="yes, enabled by DEBUG preprocessor macro" |
| 48579 |
|
| 48580 |
|
| 48581 |
fi |
| 48582 |
|
| 48583 |
|
| 48584 |
fi |
| 48585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug asserts" >&5 |
| 48586 |
printf %s "checking whether to enable debug asserts... " >&6; } |
| 48587 |
if test "x$enable_asserts" = x"auto" |
| 48588 |
then : |
| 48589 |
|
| 48590 |
case ${enable_build_type} in #( |
| 48591 |
debug|debugger) : |
| 48592 |
|
| 48593 |
enable_asserts="yes" |
| 48594 |
use_asserts_MSG="yes, enabled by --enable-bulid-type=${enable_build_type}" |
| 48595 |
;; #( |
| 48596 |
*) : |
| 48597 |
|
| 48598 |
enable_asserts="no" |
| 48599 |
use_asserts_MSG="no" |
| 48600 |
|
| 48601 |
;; |
| 48602 |
esac |
| 48603 |
|
| 48604 |
|
| 48605 |
fi |
| 48606 |
case $enable_asserts in #( |
| 48607 |
yes) : |
| 48608 |
: ;; #( |
| 48609 |
no) : |
| 48610 |
: ;; #( |
| 48611 |
*) : |
| 48612 |
enable_asserts='no' ;; |
| 48613 |
esac |
| 48614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${use_asserts_MSG=no}" >&5 |
| 48615 |
printf "%s\n" "${use_asserts_MSG=no}" >&6; } |
| 48616 |
|
| 48617 |
if test "x$enable_asserts" = x"yes" |
| 48618 |
then : |
| 48619 |
|
| 48620 |
if test "x$mhd_cv_macro__debug_def" = x"yes" |
| 48621 |
then : |
| 48622 |
: |
| 48623 |
else case e in #( |
| 48624 |
e) |
| 48625 |
if test -z "${CPPFLAGS_ac}" |
| 48626 |
then : |
| 48627 |
CPPFLAGS_ac="-D_DEBUG=1" |
| 48628 |
else case e in #( |
| 48629 |
e) CPPFLAGS_ac="-D_DEBUG=1 ${CPPFLAGS_ac}" ;; |
| 48630 |
esac |
| 48631 |
fi |
| 48632 |
|
| 48633 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 48634 |
|
| 48635 |
;; |
| 48636 |
esac |
| 48637 |
fi |
| 48638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system assert() is available" >&5 |
| 48639 |
printf %s "checking whether system assert() is available... " >&6; } |
| 48640 |
if test ${mhd_cv_sys_assert_avail+y} |
| 48641 |
then : |
| 48642 |
printf %s "(cached) " >&6 |
| 48643 |
else case e in #( |
| 48644 |
e) |
| 48645 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48646 |
/* end confdefs.h. */ |
| 48647 |
|
| 48648 |
|
| 48649 |
#include <assert.h> |
| 48650 |
|
| 48651 |
static int pos_val(void) {return 5;} |
| 48652 |
static int neg_val(void) {return -5;} |
| 48653 |
int main(void) |
| 48654 |
{ |
| 48655 |
int pos_var = pos_val(), neg_var = neg_val(); |
| 48656 |
assert(neg_var > pos_var); /* Must trigger assert. */ |
| 48657 |
return pos_var + neg_var; |
| 48658 |
} |
| 48659 |
|
| 48660 |
|
| 48661 |
_ACEOF |
| 48662 |
if ac_fn_c_try_link "$LINENO" |
| 48663 |
then : |
| 48664 |
mhd_cv_sys_assert_avail='yes' |
| 48665 |
else case e in #( |
| 48666 |
e) mhd_cv_sys_assert_avail='no' |
| 48667 |
;; |
| 48668 |
esac |
| 48669 |
fi |
| 48670 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48671 |
conftest$ac_exeext conftest.$ac_ext |
| 48672 |
|
| 48673 |
;; |
| 48674 |
esac |
| 48675 |
fi |
| 48676 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_sys_assert_avail" >&5 |
| 48677 |
printf "%s\n" "$mhd_cv_sys_assert_avail" >&6; } |
| 48678 |
if test "x$mhd_cv_sys_assert_avail" = x"no" |
| 48679 |
then : |
| 48680 |
|
| 48681 |
else case e in #( |
| 48682 |
e) |
| 48683 |
printf "%s\n" "#define HAVE_ASSERT 1" >>confdefs.h |
| 48684 |
;; |
| 48685 |
esac |
| 48686 |
fi |
| 48687 |
|
| 48688 |
else case e in #( |
| 48689 |
e) |
| 48690 |
if test "x$mhd_cv_macro_ndebug_def" = x"yes" |
| 48691 |
then : |
| 48692 |
: |
| 48693 |
else case e in #( |
| 48694 |
e) |
| 48695 |
if test -z "${CPPFLAGS_ac}" |
| 48696 |
then : |
| 48697 |
CPPFLAGS_ac="-DNDEBUG=1" |
| 48698 |
else case e in #( |
| 48699 |
e) CPPFLAGS_ac="-DNDEBUG=1 ${CPPFLAGS_ac}" ;; |
| 48700 |
esac |
| 48701 |
fi |
| 48702 |
|
| 48703 |
CPPFLAGS="${CPPFLAGS_ac} ${user_CPPFLAGS}" |
| 48704 |
|
| 48705 |
;; |
| 48706 |
esac |
| 48707 |
fi |
| 48708 |
|
| 48709 |
;; |
| 48710 |
esac |
| 48711 |
fi |
| 48712 |
|
| 48713 |
{ enabled_sanitizers=; unset enabled_sanitizers;} |
| 48714 |
TESTS_ENVIRONMENT_ac="" |
| 48715 |
AM_ASAN_OPTIONS="" |
| 48716 |
AM_UBSAN_OPTIONS="" |
| 48717 |
AM_LSAN_OPTIONS="" |
| 48718 |
{ ASAN_OPTIONS=; unset ASAN_OPTIONS;} |
| 48719 |
{ UBSAN_OPTIONS=; unset UBSAN_OPTIONS;} |
| 48720 |
{ LSAN_OPTIONS=; unset LSAN_OPTIONS;} |
| 48721 |
|
| 48722 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable run-time sanitizers" >&5 |
| 48723 |
printf %s "checking whether to enable run-time sanitizers... " >&6; } |
| 48724 |
# Check whether --enable-sanitizers was given. |
| 48725 |
if test ${enable_sanitizers+y} |
| 48726 |
then : |
| 48727 |
enableval=$enable_sanitizers; |
| 48728 |
else case e in #( |
| 48729 |
e) case ${enable_build_type} in #( |
| 48730 |
debug) : |
| 48731 |
enable_sanitizers='auto-optional' ;; #( |
| 48732 |
*) : |
| 48733 |
enable_sanitizers='no' ;; |
| 48734 |
esac |
| 48735 |
;; |
| 48736 |
esac |
| 48737 |
fi |
| 48738 |
|
| 48739 |
if test "x${enable_sanitizers}" = "x" |
| 48740 |
then : |
| 48741 |
enable_sanitizers="auto" |
| 48742 |
fi |
| 48743 |
if test "x$enable_sanitizers" = x"yes" |
| 48744 |
then : |
| 48745 |
enable_sanitizers="auto" |
| 48746 |
fi |
| 48747 |
if test "x$enable_sanitizers" = x"autofallback" |
| 48748 |
then : |
| 48749 |
enable_sanitizers="auto-fallback" |
| 48750 |
fi |
| 48751 |
if test "x$enable_sanitizers" = x"autooptional" |
| 48752 |
then : |
| 48753 |
enable_sanitizers="auto-optional" |
| 48754 |
fi |
| 48755 |
if test "x${enable_sanitizers}" = "xno" |
| 48756 |
then : |
| 48757 |
|
| 48758 |
enable_sanitizers="no" |
| 48759 |
enable_san_address="no" |
| 48760 |
enable_san_undef="no" |
| 48761 |
enable_san_leak="no" |
| 48762 |
enable_san_upoison="no" |
| 48763 |
|
| 48764 |
elif test "x${enable_sanitizers}" = "xauto" || test "x${enable_sanitizers}" = "xauto-optional" |
| 48765 |
then : |
| 48766 |
|
| 48767 |
if test "x$enable_compiler_hardening" = x"yes" |
| 48768 |
then : |
| 48769 |
|
| 48770 |
if test "x$enable_sanitizers" = x"auto" |
| 48771 |
then : |
| 48772 |
as_fn_error $? "sanitizers cannot be enabled with compiler hardnening" "$LINENO" 5 |
| 48773 |
else case e in #( |
| 48774 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: sanitizers cannot be enabled with compiler hardnening" >&5 |
| 48775 |
printf "%s\n" "$as_me: WARNING: sanitizers cannot be enabled with compiler hardnening" >&2;} |
| 48776 |
;; |
| 48777 |
esac |
| 48778 |
fi |
| 48779 |
enable_sanitizers="no" |
| 48780 |
enable_san_address="no" |
| 48781 |
enable_san_undef="no" |
| 48782 |
enable_san_leak="no" |
| 48783 |
enable_san_upoison="no" |
| 48784 |
|
| 48785 |
else case e in #( |
| 48786 |
e) |
| 48787 |
enable_san_address="auto" |
| 48788 |
enable_san_undef="auto" |
| 48789 |
enable_san_leak="auto" |
| 48790 |
enable_san_upoison="auto" |
| 48791 |
|
| 48792 |
;; |
| 48793 |
esac |
| 48794 |
fi |
| 48795 |
|
| 48796 |
elif test "x${enable_sanitizers}" = "xauto-fallback" |
| 48797 |
then : |
| 48798 |
|
| 48799 |
enable_san_address="auto" |
| 48800 |
enable_san_undef="auto-fallback" |
| 48801 |
enable_san_leak="auto" |
| 48802 |
enable_san_upoison="auto" |
| 48803 |
|
| 48804 |
else case e in #( |
| 48805 |
e) |
| 48806 |
{ san=; unset san;} |
| 48807 |
enable_san_address="no" |
| 48808 |
enable_san_undef="no" |
| 48809 |
enable_san_leak="no" |
| 48810 |
enable_san_upoison="no" |
| 48811 |
for san in `printf "%s\n" ${enable_sanitizers} | tr ',' ' '` |
| 48812 |
do |
| 48813 |
case $san in #( |
| 48814 |
address) : |
| 48815 |
enable_san_address="yes" ;; #( |
| 48816 |
undefined) : |
| 48817 |
enable_san_undef="yes" ;; #( |
| 48818 |
leak) : |
| 48819 |
enable_san_leak="yes" ;; #( |
| 48820 |
user-poison|user_poison) : |
| 48821 |
enable_san_upoison="yes" ;; #( |
| 48822 |
no|yes|auto|auto-fallback|autofallback) : |
| 48823 |
as_fn_error $? "\"$san\" cannot be used with other options for --enable-sanitizers=" "$LINENO" 5 ;; #( |
| 48824 |
*) : |
| 48825 |
as_fn_error $? "Unknown parameter \"$san\" for --enable-sanitizers=" "$LINENO" 5 |
| 48826 |
;; |
| 48827 |
esac |
| 48828 |
done |
| 48829 |
if test "x${enable_san_upoison}" = "xyes" && test "x${enable_san_address}" = "xno" |
| 48830 |
then : |
| 48831 |
as_fn_error $? "User memory poisoning cannot be used without address sanitizer" "$LINENO" 5 |
| 48832 |
|
| 48833 |
fi |
| 48834 |
enable_sanitizers="selected" |
| 48835 |
|
| 48836 |
;; |
| 48837 |
esac |
| 48838 |
fi |
| 48839 |
case ${enable_sanitizers} in #( |
| 48840 |
selected) : |
| 48841 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: selected" >&5 |
| 48842 |
printf "%s\n" "selected" >&6; } ;; #( |
| 48843 |
auto) : |
| 48844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, detect and use supported sanitizers" >&5 |
| 48845 |
printf "%s\n" "yes, detect and use supported sanitizers" >&6; } ;; #( |
| 48846 |
auto-fallback) : |
| 48847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, detect and use supported sanitizers even without run-time lib" >&5 |
| 48848 |
printf "%s\n" "yes, detect and use supported sanitizers even without run-time lib" >&6; } ;; #( |
| 48849 |
auto-optional) : |
| 48850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, detect and use supported sanitizers if any" >&5 |
| 48851 |
printf "%s\n" "yes, detect and use supported sanitizers if any" >&6; } ;; #( |
| 48852 |
*) : |
| 48853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 48854 |
printf "%s\n" "no" >&6; } |
| 48855 |
;; |
| 48856 |
esac |
| 48857 |
if test "x$enable_sanitizers" = x"no" |
| 48858 |
then : |
| 48859 |
: |
| 48860 |
else case e in #( |
| 48861 |
e) |
| 48862 |
{ san_FLAGS=; unset san_FLAGS;} # the sanitizer flags to be added to both CFLAGS and LDFLAGS |
| 48863 |
{ san_CFLAGS=; unset san_CFLAGS;} # the sanitizer flags to be added to CFLAGS |
| 48864 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '-fsanitize=' works for $CC" >&5 |
| 48865 |
printf %s "checking whether '-fsanitize=' works for $CC... " >&6; } |
| 48866 |
if test ${mhd_cv_cc_sanitizer_works+y} |
| 48867 |
then : |
| 48868 |
printf %s "(cached) " >&6 |
| 48869 |
else case e in #( |
| 48870 |
e) |
| 48871 |
CFLAGS="${CFLAGS_ac} -fsanitize=wrongFeatureName ${user_CFLAGS}" |
| 48872 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48873 |
/* end confdefs.h. */ |
| 48874 |
|
| 48875 |
int |
| 48876 |
main (void) |
| 48877 |
{ |
| 48878 |
|
| 48879 |
; |
| 48880 |
return 0; |
| 48881 |
} |
| 48882 |
_ACEOF |
| 48883 |
if ac_fn_c_try_compile "$LINENO" |
| 48884 |
then : |
| 48885 |
mhd_cv_cc_sanitizer_works=no |
| 48886 |
else case e in #( |
| 48887 |
e) mhd_cv_cc_sanitizer_works=yes ;; |
| 48888 |
esac |
| 48889 |
fi |
| 48890 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 48891 |
|
| 48892 |
;; |
| 48893 |
esac |
| 48894 |
fi |
| 48895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_works" >&5 |
| 48896 |
printf "%s\n" "$mhd_cv_cc_sanitizer_works" >&6; } |
| 48897 |
if test "x$mhd_cv_cc_sanitizer_works" = x"yes" |
| 48898 |
then : |
| 48899 |
|
| 48900 |
if test "x$enable_san_address" = x"no" |
| 48901 |
then : |
| 48902 |
: |
| 48903 |
else case e in #( |
| 48904 |
e) |
| 48905 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for address sanitizer" >&5 |
| 48906 |
printf %s "checking for address sanitizer... " >&6; } |
| 48907 |
if test ${mhd_cv_cc_sanitizer_address+y} |
| 48908 |
then : |
| 48909 |
printf %s "(cached) " >&6 |
| 48910 |
else case e in #( |
| 48911 |
e) |
| 48912 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} -fsanitize=address ${user_CFLAGS}" |
| 48913 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 48914 |
/* end confdefs.h. */ |
| 48915 |
|
| 48916 |
int |
| 48917 |
main (void) |
| 48918 |
{ |
| 48919 |
|
| 48920 |
; |
| 48921 |
return 0; |
| 48922 |
} |
| 48923 |
_ACEOF |
| 48924 |
if ac_fn_c_try_link "$LINENO" |
| 48925 |
then : |
| 48926 |
mhd_cv_cc_sanitizer_address=yes |
| 48927 |
else case e in #( |
| 48928 |
e) mhd_cv_cc_sanitizer_address=no ;; |
| 48929 |
esac |
| 48930 |
fi |
| 48931 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 48932 |
conftest$ac_exeext conftest.$ac_ext |
| 48933 |
|
| 48934 |
;; |
| 48935 |
esac |
| 48936 |
fi |
| 48937 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_address" >&5 |
| 48938 |
printf "%s\n" "$mhd_cv_cc_sanitizer_address" >&6; } |
| 48939 |
if test "x$mhd_cv_cc_sanitizer_address" = x"yes" |
| 48940 |
then : |
| 48941 |
|
| 48942 |
|
| 48943 |
printf "%s\n" "#define MHD_ASAN_ACTIVE 1" >>confdefs.h |
| 48944 |
|
| 48945 |
|
| 48946 |
if test ${san_FLAGS+y} |
| 48947 |
then : |
| 48948 |
|
| 48949 |
case " $san_FLAGS " in #( |
| 48950 |
*" -fsanitize=address "*) : |
| 48951 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=address"; } >&5 |
| 48952 |
(: san_FLAGS already contains -fsanitize=address) 2>&5 |
| 48953 |
ac_status=$? |
| 48954 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 48955 |
test $ac_status = 0; } ;; #( |
| 48956 |
*) : |
| 48957 |
|
| 48958 |
as_fn_append san_FLAGS " -fsanitize=address" |
| 48959 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 48960 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 48961 |
ac_status=$? |
| 48962 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 48963 |
test $ac_status = 0; } |
| 48964 |
;; |
| 48965 |
esac |
| 48966 |
|
| 48967 |
else case e in #( |
| 48968 |
e) |
| 48969 |
san_FLAGS=-fsanitize=address |
| 48970 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 48971 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 48972 |
ac_status=$? |
| 48973 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 48974 |
test $ac_status = 0; } |
| 48975 |
;; |
| 48976 |
esac |
| 48977 |
fi |
| 48978 |
|
| 48979 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }address" |
| 48980 |
if test "x$enable_san_leak" = x"no" |
| 48981 |
then : |
| 48982 |
: |
| 48983 |
else case e in #( |
| 48984 |
e) |
| 48985 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether leak detect is not rejected by address sanitizer" >&5 |
| 48986 |
printf %s "checking whether leak detect is not rejected by address sanitizer... " >&6; } |
| 48987 |
if test ${mhd_cv_cc_sanitizer_address_leak+y} |
| 48988 |
then : |
| 48989 |
printf %s "(cached) " >&6 |
| 48990 |
else case e in #( |
| 48991 |
e) |
| 48992 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} ${user_CFLAGS}" |
| 48993 |
ASAN_OPTIONS="exitcode=88:detect_leaks=1:halt_on_error=1" |
| 48994 |
export ASAN_OPTIONS |
| 48995 |
if test "$cross_compiling" = yes |
| 48996 |
then : |
| 48997 |
|
| 48998 |
# Cross-compiling with sanitizers? |
| 48999 |
mhd_cv_cc_sanitizer_address_leak='assuming no' |
| 49000 |
|
| 49001 |
|
| 49002 |
else case e in #( |
| 49003 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49004 |
/* end confdefs.h. */ |
| 49005 |
|
| 49006 |
int |
| 49007 |
main (void) |
| 49008 |
{ |
| 49009 |
|
| 49010 |
; |
| 49011 |
return 0; |
| 49012 |
} |
| 49013 |
_ACEOF |
| 49014 |
if ac_fn_c_try_run "$LINENO" |
| 49015 |
then : |
| 49016 |
mhd_cv_cc_sanitizer_address_leak=yes |
| 49017 |
else case e in #( |
| 49018 |
e) mhd_cv_cc_sanitizer_address_leak=no ;; |
| 49019 |
esac |
| 49020 |
fi |
| 49021 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 49022 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 49023 |
esac |
| 49024 |
fi |
| 49025 |
|
| 49026 |
{ ASAN_OPTIONS=; unset ASAN_OPTIONS;} |
| 49027 |
|
| 49028 |
;; |
| 49029 |
esac |
| 49030 |
fi |
| 49031 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_address_leak" >&5 |
| 49032 |
printf "%s\n" "$mhd_cv_cc_sanitizer_address_leak" >&6; } |
| 49033 |
|
| 49034 |
;; |
| 49035 |
esac |
| 49036 |
fi |
| 49037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer compare sanitizer" >&5 |
| 49038 |
printf %s "checking for pointer compare sanitizer... " >&6; } |
| 49039 |
if test ${mhd_cv_cc_sanitizer_pointer_compare+y} |
| 49040 |
then : |
| 49041 |
printf %s "(cached) " >&6 |
| 49042 |
else case e in #( |
| 49043 |
e) |
| 49044 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} -fsanitize=pointer-compare ${user_CFLAGS}" |
| 49045 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49046 |
/* end confdefs.h. */ |
| 49047 |
|
| 49048 |
int |
| 49049 |
main (void) |
| 49050 |
{ |
| 49051 |
|
| 49052 |
; |
| 49053 |
return 0; |
| 49054 |
} |
| 49055 |
_ACEOF |
| 49056 |
if ac_fn_c_try_link "$LINENO" |
| 49057 |
then : |
| 49058 |
mhd_cv_cc_sanitizer_pointer_compare=yes |
| 49059 |
else case e in #( |
| 49060 |
e) mhd_cv_cc_sanitizer_pointer_compare=no ;; |
| 49061 |
esac |
| 49062 |
fi |
| 49063 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49064 |
conftest$ac_exeext conftest.$ac_ext |
| 49065 |
|
| 49066 |
;; |
| 49067 |
esac |
| 49068 |
fi |
| 49069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_pointer_compare" >&5 |
| 49070 |
printf "%s\n" "$mhd_cv_cc_sanitizer_pointer_compare" >&6; } |
| 49071 |
if test "x$mhd_cv_cc_sanitizer_pointer_compare" = x"yes" |
| 49072 |
then : |
| 49073 |
|
| 49074 |
|
| 49075 |
if test ${san_FLAGS+y} |
| 49076 |
then : |
| 49077 |
|
| 49078 |
case " $san_FLAGS " in #( |
| 49079 |
*" -fsanitize=pointer-compare "*) : |
| 49080 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=pointer-compare"; } >&5 |
| 49081 |
(: san_FLAGS already contains -fsanitize=pointer-compare) 2>&5 |
| 49082 |
ac_status=$? |
| 49083 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49084 |
test $ac_status = 0; } ;; #( |
| 49085 |
*) : |
| 49086 |
|
| 49087 |
as_fn_append san_FLAGS " -fsanitize=pointer-compare" |
| 49088 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49089 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49090 |
ac_status=$? |
| 49091 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49092 |
test $ac_status = 0; } |
| 49093 |
;; |
| 49094 |
esac |
| 49095 |
|
| 49096 |
else case e in #( |
| 49097 |
e) |
| 49098 |
san_FLAGS=-fsanitize=pointer-compare |
| 49099 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49100 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49101 |
ac_status=$? |
| 49102 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49103 |
test $ac_status = 0; } |
| 49104 |
;; |
| 49105 |
esac |
| 49106 |
fi |
| 49107 |
|
| 49108 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }pointer compare" |
| 49109 |
|
| 49110 |
|
| 49111 |
fi |
| 49112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pointer subtract sanitizer" >&5 |
| 49113 |
printf %s "checking for pointer subtract sanitizer... " >&6; } |
| 49114 |
if test ${mhd_cv_cc_sanitizer_pointer_subtract+y} |
| 49115 |
then : |
| 49116 |
printf %s "(cached) " >&6 |
| 49117 |
else case e in #( |
| 49118 |
e) |
| 49119 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} -fsanitize=pointer-subtract ${user_CFLAGS}" |
| 49120 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49121 |
/* end confdefs.h. */ |
| 49122 |
|
| 49123 |
int |
| 49124 |
main (void) |
| 49125 |
{ |
| 49126 |
|
| 49127 |
; |
| 49128 |
return 0; |
| 49129 |
} |
| 49130 |
_ACEOF |
| 49131 |
if ac_fn_c_try_link "$LINENO" |
| 49132 |
then : |
| 49133 |
mhd_cv_cc_sanitizer_pointer_subtract=yes |
| 49134 |
else case e in #( |
| 49135 |
e) mhd_cv_cc_sanitizer_pointer_subtract=no ;; |
| 49136 |
esac |
| 49137 |
fi |
| 49138 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49139 |
conftest$ac_exeext conftest.$ac_ext |
| 49140 |
|
| 49141 |
;; |
| 49142 |
esac |
| 49143 |
fi |
| 49144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_pointer_subtract" >&5 |
| 49145 |
printf "%s\n" "$mhd_cv_cc_sanitizer_pointer_subtract" >&6; } |
| 49146 |
if test "x$mhd_cv_cc_sanitizer_pointer_subtract" = x"yes" |
| 49147 |
then : |
| 49148 |
|
| 49149 |
|
| 49150 |
if test ${san_FLAGS+y} |
| 49151 |
then : |
| 49152 |
|
| 49153 |
case " $san_FLAGS " in #( |
| 49154 |
*" -fsanitize=pointer-subtract "*) : |
| 49155 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=pointer-subtract"; } >&5 |
| 49156 |
(: san_FLAGS already contains -fsanitize=pointer-subtract) 2>&5 |
| 49157 |
ac_status=$? |
| 49158 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49159 |
test $ac_status = 0; } ;; #( |
| 49160 |
*) : |
| 49161 |
|
| 49162 |
as_fn_append san_FLAGS " -fsanitize=pointer-subtract" |
| 49163 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49164 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49165 |
ac_status=$? |
| 49166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49167 |
test $ac_status = 0; } |
| 49168 |
;; |
| 49169 |
esac |
| 49170 |
|
| 49171 |
else case e in #( |
| 49172 |
e) |
| 49173 |
san_FLAGS=-fsanitize=pointer-subtract |
| 49174 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49175 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49176 |
ac_status=$? |
| 49177 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49178 |
test $ac_status = 0; } |
| 49179 |
;; |
| 49180 |
esac |
| 49181 |
fi |
| 49182 |
|
| 49183 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }pointer subtract" |
| 49184 |
|
| 49185 |
|
| 49186 |
fi |
| 49187 |
if test "x$enable_san_upoison" = x"no" |
| 49188 |
then : |
| 49189 |
: |
| 49190 |
else case e in #( |
| 49191 |
e) |
| 49192 |
ac_fn_c_check_header_compile "$LINENO" "sanitizer/asan_interface.h" "ac_cv_header_sanitizer_asan_interface_h" "$ac_includes_default |
| 49193 |
" |
| 49194 |
if test "x$ac_cv_header_sanitizer_asan_interface_h" = xyes |
| 49195 |
then : |
| 49196 |
printf "%s\n" "#define HAVE_SANITIZER_ASAN_INTERFACE_H 1" >>confdefs.h |
| 49197 |
|
| 49198 |
fi |
| 49199 |
|
| 49200 |
if test "x$ac_cv_header_sanitizer_asan_interface_h" = x"yes" |
| 49201 |
then : |
| 49202 |
|
| 49203 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS} ${user_CFLAGS}" |
| 49204 |
|
| 49205 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 49206 |
if test ${mhd_cv_have_func___asan_address_is_poisoned+y} |
| 49207 |
then : |
| 49208 |
|
| 49209 |
else case e in #( |
| 49210 |
e) ac_fn_check_decl "$LINENO" "__asan_address_is_poisoned" "ac_cv_have_decl___asan_address_is_poisoned" "#include <sanitizer/asan_interface.h> |
| 49211 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 49212 |
if test "x$ac_cv_have_decl___asan_address_is_poisoned" = xyes |
| 49213 |
then : |
| 49214 |
|
| 49215 |
else case e in #( |
| 49216 |
e) mhd_cv_have_func___asan_address_is_poisoned="no" ;; |
| 49217 |
esac |
| 49218 |
fi ;; |
| 49219 |
esac |
| 49220 |
fi |
| 49221 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function __asan_address_is_poisoned" >&5 |
| 49222 |
printf %s "checking for function __asan_address_is_poisoned... " >&6; } |
| 49223 |
if test ${mhd_cv_have_func___asan_address_is_poisoned+y} |
| 49224 |
then : |
| 49225 |
printf %s "(cached) " >&6 |
| 49226 |
else case e in #( |
| 49227 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49228 |
/* end confdefs.h. */ |
| 49229 |
|
| 49230 |
#include <sanitizer/asan_interface.h> |
| 49231 |
|
| 49232 |
int main(void) |
| 49233 |
{ |
| 49234 |
|
| 49235 |
int a_var=1; if(__asan_address_is_poisoned((void*) &a_var)) return 3; |
| 49236 |
|
| 49237 |
|
| 49238 |
return 0; |
| 49239 |
} |
| 49240 |
|
| 49241 |
|
| 49242 |
_ACEOF |
| 49243 |
if ac_fn_c_try_link "$LINENO" |
| 49244 |
then : |
| 49245 |
mhd_cv_have_func___asan_address_is_poisoned="yes" |
| 49246 |
else case e in #( |
| 49247 |
e) mhd_cv_have_func___asan_address_is_poisoned="no" ;; |
| 49248 |
esac |
| 49249 |
fi |
| 49250 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49251 |
conftest$ac_exeext conftest.$ac_ext |
| 49252 |
;; |
| 49253 |
esac |
| 49254 |
fi |
| 49255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func___asan_address_is_poisoned" >&5 |
| 49256 |
printf "%s\n" "$mhd_cv_have_func___asan_address_is_poisoned" >&6; } |
| 49257 |
if test "x$mhd_cv_have_func___asan_address_is_poisoned" = x"yes" |
| 49258 |
then : |
| 49259 |
|
| 49260 |
printf "%s\n" "#define HAVE___ASAN_ADDRESS_IS_POISONED 1" >>confdefs.h |
| 49261 |
|
| 49262 |
|
| 49263 |
fi |
| 49264 |
|
| 49265 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 49266 |
|
| 49267 |
|
| 49268 |
# Expansion of MHD_CHECK_FUNC macro starts here |
| 49269 |
if test ${mhd_cv_have_func___asan_region_is_poisoned+y} |
| 49270 |
then : |
| 49271 |
|
| 49272 |
else case e in #( |
| 49273 |
e) ac_fn_check_decl "$LINENO" "__asan_region_is_poisoned" "ac_cv_have_decl___asan_region_is_poisoned" "#include <sanitizer/asan_interface.h> |
| 49274 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 49275 |
if test "x$ac_cv_have_decl___asan_region_is_poisoned" = xyes |
| 49276 |
then : |
| 49277 |
|
| 49278 |
else case e in #( |
| 49279 |
e) mhd_cv_have_func___asan_region_is_poisoned="no" ;; |
| 49280 |
esac |
| 49281 |
fi ;; |
| 49282 |
esac |
| 49283 |
fi |
| 49284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function __asan_region_is_poisoned" >&5 |
| 49285 |
printf %s "checking for function __asan_region_is_poisoned... " >&6; } |
| 49286 |
if test ${mhd_cv_have_func___asan_region_is_poisoned+y} |
| 49287 |
then : |
| 49288 |
printf %s "(cached) " >&6 |
| 49289 |
else case e in #( |
| 49290 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49291 |
/* end confdefs.h. */ |
| 49292 |
|
| 49293 |
#include <sanitizer/asan_interface.h> |
| 49294 |
|
| 49295 |
int main(void) |
| 49296 |
{ |
| 49297 |
|
| 49298 |
int a_var=1; if(((void*) 0) != __asan_region_is_poisoned((void*) &a_var, sizeof(a_var))) return 3; |
| 49299 |
|
| 49300 |
|
| 49301 |
return 0; |
| 49302 |
} |
| 49303 |
|
| 49304 |
|
| 49305 |
_ACEOF |
| 49306 |
if ac_fn_c_try_link "$LINENO" |
| 49307 |
then : |
| 49308 |
mhd_cv_have_func___asan_region_is_poisoned="yes" |
| 49309 |
else case e in #( |
| 49310 |
e) mhd_cv_have_func___asan_region_is_poisoned="no" ;; |
| 49311 |
esac |
| 49312 |
fi |
| 49313 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49314 |
conftest$ac_exeext conftest.$ac_ext |
| 49315 |
;; |
| 49316 |
esac |
| 49317 |
fi |
| 49318 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_have_func___asan_region_is_poisoned" >&5 |
| 49319 |
printf "%s\n" "$mhd_cv_have_func___asan_region_is_poisoned" >&6; } |
| 49320 |
if test "x$mhd_cv_have_func___asan_region_is_poisoned" = x"yes" |
| 49321 |
then : |
| 49322 |
|
| 49323 |
printf "%s\n" "#define HAVE___ASAN_REGION_IS_POISONED 1" >>confdefs.h |
| 49324 |
|
| 49325 |
|
| 49326 |
fi |
| 49327 |
|
| 49328 |
# Expansion of MHD_CHECK_FUNC macro ends here |
| 49329 |
|
| 49330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether special function attribute is needed for user-poison" >&5 |
| 49331 |
printf %s "checking whether special function attribute is needed for user-poison... " >&6; } |
| 49332 |
if test ${mhd_cv_func_u_p_attribute_needed+y} |
| 49333 |
then : |
| 49334 |
printf %s "(cached) " >&6 |
| 49335 |
else case e in #( |
| 49336 |
e) |
| 49337 |
ASAN_OPTIONS="exitcode=88:detect_invalid_pointer_pairs=3:halt_on_error=1" |
| 49338 |
export ASAN_OPTIONS |
| 49339 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS} ${user_CFLAGS}" |
| 49340 |
if test "$cross_compiling" = yes |
| 49341 |
then : |
| 49342 |
|
| 49343 |
# Cross-compiling with sanitizers?? |
| 49344 |
mhd_cv_func_up_attribute_needed='assuming no' |
| 49345 |
|
| 49346 |
|
| 49347 |
else case e in #( |
| 49348 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49349 |
/* end confdefs.h. */ |
| 49350 |
|
| 49351 |
|
| 49352 |
#include <stdint.h> |
| 49353 |
#include <stdlib.h> |
| 49354 |
#include <sanitizer/asan_interface.h> |
| 49355 |
|
| 49356 |
static const size_t first_pos = 0; |
| 49357 |
static const size_t mid_pos = 64; |
| 49358 |
static const size_t last_pos = 128; |
| 49359 |
static const size_t zone_size = 16; |
| 49360 |
static const size_t buf_size = 128 + 16; |
| 49361 |
|
| 49362 |
static int ptr_compare(void *ptr1, uint8_t *ptr2) |
| 49363 |
{ |
| 49364 |
if ((((uintptr_t) (uint8_t *)ptr1) >= ((uintptr_t)ptr2))) |
| 49365 |
return ((char *) ptr1)[0] < ((char *) ptr2)[0]; |
| 49366 |
return ((char *) ptr1)[0] > ((char *) ptr2)[0]; |
| 49367 |
} |
| 49368 |
|
| 49369 |
static int ptr_subtract(void *ptr1, uint8_t *ptr2) |
| 49370 |
{ |
| 49371 |
return ((size_t)(((uintptr_t)(uint8_t*)ptr1) - ((uintptr_t)ptr2))) <= last_pos; |
| 49372 |
} |
| 49373 |
|
| 49374 |
int main(int argc, char *argv[]) |
| 49375 |
{ |
| 49376 |
char *buf = (char*) malloc (buf_size); |
| 49377 |
char *a; |
| 49378 |
char *b; |
| 49379 |
int ret; |
| 49380 |
|
| 49381 |
(void) argv; |
| 49382 |
if (NULL == buf) |
| 49383 |
return 10; |
| 49384 |
ASAN_POISON_MEMORY_REGION (buf + first_pos + zone_size, mid_pos - first_pos - zone_size); |
| 49385 |
ASAN_POISON_MEMORY_REGION (buf + mid_pos + zone_size, last_pos - mid_pos - zone_size); |
| 49386 |
|
| 49387 |
if (0 < argc) |
| 49388 |
a = buf + last_pos; |
| 49389 |
else |
| 49390 |
a = buf + first_pos; |
| 49391 |
b = buf + mid_pos; |
| 49392 |
|
| 49393 |
*a = '0'; |
| 49394 |
*b = '9'; |
| 49395 |
|
| 49396 |
if (ptr_compare((void *)a, (uint8_t*) b)) |
| 49397 |
{ |
| 49398 |
if (ptr_subtract((void *)a, (uint8_t*) b)) |
| 49399 |
ret = 0; |
| 49400 |
else |
| 49401 |
ret = 10; |
| 49402 |
} |
| 49403 |
else |
| 49404 |
ret = 5; |
| 49405 |
ASAN_UNPOISON_MEMORY_REGION (buf, buf_size); |
| 49406 |
free (buf); |
| 49407 |
|
| 49408 |
return ret; |
| 49409 |
} |
| 49410 |
|
| 49411 |
|
| 49412 |
|
| 49413 |
_ACEOF |
| 49414 |
if ac_fn_c_try_run "$LINENO" |
| 49415 |
then : |
| 49416 |
mhd_cv_func_u_p_attribute_needed="no" |
| 49417 |
else case e in #( |
| 49418 |
e) mhd_cv_func_u_p_attribute_needed="yes" ;; |
| 49419 |
esac |
| 49420 |
fi |
| 49421 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 49422 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 49423 |
esac |
| 49424 |
fi |
| 49425 |
|
| 49426 |
{ ASAN_OPTIONS=; unset ASAN_OPTIONS;} |
| 49427 |
|
| 49428 |
;; |
| 49429 |
esac |
| 49430 |
fi |
| 49431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_u_p_attribute_needed" >&5 |
| 49432 |
printf "%s\n" "$mhd_cv_func_u_p_attribute_needed" >&6; } |
| 49433 |
|
| 49434 |
|
| 49435 |
fi |
| 49436 |
if test "x$mhd_cv_func_u_p_attribute_needed" = x"yes" |
| 49437 |
then : |
| 49438 |
: |
| 49439 |
else case e in #( |
| 49440 |
e) |
| 49441 |
|
| 49442 |
printf "%s\n" "#define FUNC_PTRCOMPARE_CAST_WORKAROUND_WORKS 1" >>confdefs.h |
| 49443 |
|
| 49444 |
|
| 49445 |
;; |
| 49446 |
esac |
| 49447 |
fi |
| 49448 |
if test "x${mhd_cv_func_u_p_attribute_needed}" = "xyes" && test "x${ac_cv_header_sanitizer_asan_interface_h}" = "xyes" |
| 49449 |
then : |
| 49450 |
|
| 49451 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__((no_sanitize(\"pointer-compare\")))' and '__attribute__((no_sanitize(\"pointer-subtract\")))' work" >&5 |
| 49452 |
printf %s "checking whether '__attribute__((no_sanitize(\"pointer-compare\")))' and '__attribute__((no_sanitize(\"pointer-subtract\")))' work... " >&6; } |
| 49453 |
if test ${mhd_cv_func_attribute_nosanitize_ptr+y} |
| 49454 |
then : |
| 49455 |
printf %s "(cached) " >&6 |
| 49456 |
else case e in #( |
| 49457 |
e) |
| 49458 |
ASAN_OPTIONS="exitcode=88:detect_invalid_pointer_pairs=3:halt_on_error=1" |
| 49459 |
export ASAN_OPTIONS |
| 49460 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS} ${user_CFLAGS}" |
| 49461 |
if test "$cross_compiling" = yes |
| 49462 |
then : |
| 49463 |
|
| 49464 |
# Cross-compiling with sanitizers?? |
| 49465 |
mhd_cv_func_attribute_nosanitize_ptr='assuming no' |
| 49466 |
|
| 49467 |
|
| 49468 |
else case e in #( |
| 49469 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49470 |
/* end confdefs.h. */ |
| 49471 |
|
| 49472 |
|
| 49473 |
#include <stdint.h> |
| 49474 |
#include <stdlib.h> |
| 49475 |
#include <sanitizer/asan_interface.h> |
| 49476 |
|
| 49477 |
static const size_t first_pos = 0; |
| 49478 |
static const size_t mid_pos = 64; |
| 49479 |
static const size_t last_pos = 128; |
| 49480 |
static const size_t zone_size = 16; |
| 49481 |
static const size_t buf_size = 128 + 16; |
| 49482 |
|
| 49483 |
__attribute__((no_sanitize("pointer-compare"))) |
| 49484 |
static int ptr_compare(void *ptr1, uint8_t *ptr2) |
| 49485 |
{ |
| 49486 |
if ((((const uint8_t*)ptr1) >= ((const uint8_t*)ptr2))) |
| 49487 |
return ((char *) ptr1)[0] < ((char *) ptr2)[0]; |
| 49488 |
return ((char *) ptr1)[0] > ((char *) ptr2)[0]; |
| 49489 |
} |
| 49490 |
|
| 49491 |
__attribute__((no_sanitize("pointer-subtract"))) |
| 49492 |
static int ptr_subtract(void *ptr1, uint8_t *ptr2) |
| 49493 |
{ |
| 49494 |
return ((size_t)(((const uint8_t*)ptr1) - \ |
| 49495 |
((const uint8_t*)ptr2))) <= last_pos; |
| 49496 |
} |
| 49497 |
|
| 49498 |
int main(int argc, char *argv[]) |
| 49499 |
{ |
| 49500 |
char *buf = (char*) malloc (buf_size); |
| 49501 |
char *a; |
| 49502 |
char *b; |
| 49503 |
int ret; |
| 49504 |
|
| 49505 |
(void) argv; |
| 49506 |
if (NULL == buf) |
| 49507 |
return 10; |
| 49508 |
ASAN_POISON_MEMORY_REGION (buf + first_pos + zone_size, mid_pos - first_pos - zone_size); |
| 49509 |
ASAN_POISON_MEMORY_REGION (buf + mid_pos + zone_size, last_pos - mid_pos - zone_size); |
| 49510 |
|
| 49511 |
if (0 < argc) |
| 49512 |
a = buf + last_pos; |
| 49513 |
else |
| 49514 |
a = buf + first_pos; |
| 49515 |
b = buf + mid_pos; |
| 49516 |
|
| 49517 |
*a = '0'; |
| 49518 |
*b = '9'; |
| 49519 |
|
| 49520 |
if (ptr_compare((void *)a, (uint8_t*) b)) |
| 49521 |
{ |
| 49522 |
if (ptr_subtract((void *)a, (uint8_t*) b)) |
| 49523 |
ret = 0; |
| 49524 |
else |
| 49525 |
ret = 10; |
| 49526 |
} |
| 49527 |
else |
| 49528 |
ret = 5; |
| 49529 |
ASAN_UNPOISON_MEMORY_REGION (buf, buf_size); |
| 49530 |
free (buf); |
| 49531 |
|
| 49532 |
return ret; |
| 49533 |
} |
| 49534 |
|
| 49535 |
|
| 49536 |
|
| 49537 |
_ACEOF |
| 49538 |
if ac_fn_c_try_run "$LINENO" |
| 49539 |
then : |
| 49540 |
mhd_cv_func_attribute_nosanitize_ptr=yes |
| 49541 |
else case e in #( |
| 49542 |
e) mhd_cv_func_attribute_nosanitize_ptr=no ;; |
| 49543 |
esac |
| 49544 |
fi |
| 49545 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 49546 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 49547 |
esac |
| 49548 |
fi |
| 49549 |
|
| 49550 |
{ ASAN_OPTIONS=; unset ASAN_OPTIONS;} |
| 49551 |
|
| 49552 |
;; |
| 49553 |
esac |
| 49554 |
fi |
| 49555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_attribute_nosanitize_ptr" >&5 |
| 49556 |
printf "%s\n" "$mhd_cv_func_attribute_nosanitize_ptr" >&6; } |
| 49557 |
if test "x$mhd_cv_func_attribute_nosanitize_ptr" = x"yes" |
| 49558 |
then : |
| 49559 |
|
| 49560 |
|
| 49561 |
printf "%s\n" "#define FUNC_ATTR_PTRCOMPARE_WORKS 1" >>confdefs.h |
| 49562 |
|
| 49563 |
|
| 49564 |
printf "%s\n" "#define FUNC_ATTR_PTRSUBTRACT_WORKS 1" >>confdefs.h |
| 49565 |
|
| 49566 |
|
| 49567 |
else case e in #( |
| 49568 |
e) |
| 49569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether '__attribute__((no_sanitize(\"address\")))' works for pointers compare" >&5 |
| 49570 |
printf %s "checking whether '__attribute__((no_sanitize(\"address\")))' works for pointers compare... " >&6; } |
| 49571 |
if test ${mhd_cv_func_attribute_nosanitize_addr+y} |
| 49572 |
then : |
| 49573 |
printf %s "(cached) " >&6 |
| 49574 |
else case e in #( |
| 49575 |
e) |
| 49576 |
ASAN_OPTIONS="exitcode=88:detect_invalid_pointer_pairs=3:halt_on_error=1" |
| 49577 |
export ASAN_OPTIONS |
| 49578 |
CFLAGS="${CFLAGS_ac} ${san_CFLAGS} ${san_FLAGS} ${errattr_CFLAGS} ${user_CFLAGS}" |
| 49579 |
if test "$cross_compiling" = yes |
| 49580 |
then : |
| 49581 |
|
| 49582 |
# Cross-compiling with sanitizers?? |
| 49583 |
mhd_cv_func_attribute_nosanitize_addr='assuming no' |
| 49584 |
|
| 49585 |
|
| 49586 |
else case e in #( |
| 49587 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49588 |
/* end confdefs.h. */ |
| 49589 |
|
| 49590 |
|
| 49591 |
#include <stdint.h> |
| 49592 |
#include <stdlib.h> |
| 49593 |
#include <sanitizer/asan_interface.h> |
| 49594 |
|
| 49595 |
static const size_t first_pos = 0; |
| 49596 |
static const size_t mid_pos = 64; |
| 49597 |
static const size_t last_pos = 128; |
| 49598 |
static const size_t zone_size = 16; |
| 49599 |
static const size_t buf_size = 128 + 16; |
| 49600 |
|
| 49601 |
__attribute__((no_sanitize("address"))) |
| 49602 |
static int ptr_compare(void *ptr1, uint8_t *ptr2) |
| 49603 |
{ |
| 49604 |
if ((((const uint8_t*)ptr1) >= ((const uint8_t*)ptr2))) |
| 49605 |
return ((char *) ptr1)[0] < ((char *) ptr2)[0]; |
| 49606 |
return ((char *) ptr1)[0] > ((char *) ptr2)[0]; |
| 49607 |
} |
| 49608 |
|
| 49609 |
__attribute__((no_sanitize("address"))) |
| 49610 |
static int ptr_subtract(void *ptr1, uint8_t *ptr2) |
| 49611 |
{ |
| 49612 |
return ((size_t)(((const uint8_t*)ptr1) - \ |
| 49613 |
((const uint8_t*)ptr2))) <= last_pos; |
| 49614 |
} |
| 49615 |
|
| 49616 |
int main(int argc, char *argv[]) |
| 49617 |
{ |
| 49618 |
char *buf = (char*) malloc (buf_size); |
| 49619 |
char *a; |
| 49620 |
char *b; |
| 49621 |
int ret; |
| 49622 |
|
| 49623 |
(void) argv; |
| 49624 |
if (NULL == buf) |
| 49625 |
return 10; |
| 49626 |
ASAN_POISON_MEMORY_REGION (buf + first_pos + zone_size, mid_pos - first_pos - zone_size); |
| 49627 |
ASAN_POISON_MEMORY_REGION (buf + mid_pos + zone_size, last_pos - mid_pos - zone_size); |
| 49628 |
|
| 49629 |
if (0 < argc) |
| 49630 |
a = buf + last_pos; |
| 49631 |
else |
| 49632 |
a = buf + first_pos; |
| 49633 |
b = buf + mid_pos; |
| 49634 |
|
| 49635 |
*a = '0'; |
| 49636 |
*b = '9'; |
| 49637 |
|
| 49638 |
if (ptr_compare((void *)a, (uint8_t*) b)) |
| 49639 |
{ |
| 49640 |
if (ptr_subtract((void *)a, (uint8_t*) b)) |
| 49641 |
ret = 0; |
| 49642 |
else |
| 49643 |
ret = 10; |
| 49644 |
} |
| 49645 |
else |
| 49646 |
ret = 5; |
| 49647 |
ASAN_UNPOISON_MEMORY_REGION (buf, buf_size); |
| 49648 |
free (buf); |
| 49649 |
|
| 49650 |
return ret; |
| 49651 |
} |
| 49652 |
|
| 49653 |
|
| 49654 |
|
| 49655 |
_ACEOF |
| 49656 |
if ac_fn_c_try_run "$LINENO" |
| 49657 |
then : |
| 49658 |
mhd_cv_func_attribute_nosanitize_addr=yes |
| 49659 |
else case e in #( |
| 49660 |
e) mhd_cv_func_attribute_nosanitize_addr=no ;; |
| 49661 |
esac |
| 49662 |
fi |
| 49663 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 49664 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 49665 |
esac |
| 49666 |
fi |
| 49667 |
|
| 49668 |
{ ASAN_OPTIONS=; unset ASAN_OPTIONS;} |
| 49669 |
|
| 49670 |
;; |
| 49671 |
esac |
| 49672 |
fi |
| 49673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_func_attribute_nosanitize_addr" >&5 |
| 49674 |
printf "%s\n" "$mhd_cv_func_attribute_nosanitize_addr" >&6; } |
| 49675 |
if test "x$mhd_cv_func_attribute_nosanitize_addr" = x"yes" |
| 49676 |
then : |
| 49677 |
|
| 49678 |
printf "%s\n" "#define FUNC_ATTR_NOSANITIZE_WORKS 1" >>confdefs.h |
| 49679 |
|
| 49680 |
|
| 49681 |
fi |
| 49682 |
|
| 49683 |
;; |
| 49684 |
esac |
| 49685 |
fi |
| 49686 |
|
| 49687 |
|
| 49688 |
fi |
| 49689 |
|
| 49690 |
;; |
| 49691 |
esac |
| 49692 |
fi |
| 49693 |
|
| 49694 |
|
| 49695 |
fi |
| 49696 |
if test "x${enable_san_address}" = "xyes" && test "x${mhd_cv_cc_sanitizer_address}" != "xyes" |
| 49697 |
then : |
| 49698 |
as_fn_error $? "Address sanitizer cannot be enabled" "$LINENO" 5 |
| 49699 |
|
| 49700 |
fi |
| 49701 |
enable_san_address="${mhd_cv_cc_sanitizer_address}" |
| 49702 |
|
| 49703 |
;; |
| 49704 |
esac |
| 49705 |
fi |
| 49706 |
if test "x$enable_san_undef" = x"no" |
| 49707 |
then : |
| 49708 |
: |
| 49709 |
else case e in #( |
| 49710 |
e) |
| 49711 |
|
| 49712 |
test_undf_prog=' |
| 49713 |
#include <stdio.h> |
| 49714 |
|
| 49715 |
static void func_out_b(char *arr) |
| 49716 |
{ |
| 49717 |
arr[0] = 0; |
| 49718 |
arr[16] = 2; |
| 49719 |
} |
| 49720 |
|
| 49721 |
static unsigned int int_deref(void *ptr) |
| 49722 |
{ |
| 49723 |
return (*((unsigned int*)ptr)) + 2; |
| 49724 |
} |
| 49725 |
|
| 49726 |
static int func1(void) |
| 49727 |
{ |
| 49728 |
char chr[16]; |
| 49729 |
func_out_b (chr); |
| 49730 |
return (int) (int_deref(chr + 1) + int_deref(chr + 2)); |
| 49731 |
} |
| 49732 |
|
| 49733 |
int main(void) |
| 49734 |
{ |
| 49735 |
unsigned long ulvar; |
| 49736 |
signed char ch1; |
| 49737 |
ulvar = -1 * func1(); |
| 49738 |
ch1 = ulvar * 6UL; |
| 49739 |
printf("%lu\n", ulvar + ch1); |
| 49740 |
return 0; |
| 49741 |
} |
| 49742 |
' |
| 49743 |
|
| 49744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer" >&5 |
| 49745 |
printf %s "checking for undefined behavior sanitizer... " >&6; } |
| 49746 |
if test ${mhd_cv_cc_sanitizer_undefined+y} |
| 49747 |
then : |
| 49748 |
printf %s "(cached) " >&6 |
| 49749 |
else case e in #( |
| 49750 |
e) |
| 49751 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined ${user_CFLAGS}" |
| 49752 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49753 |
/* end confdefs.h. */ |
| 49754 |
${test_undf_prog} |
| 49755 |
_ACEOF |
| 49756 |
if ac_fn_c_try_link "$LINENO" |
| 49757 |
then : |
| 49758 |
mhd_cv_cc_sanitizer_undefined=yes |
| 49759 |
else case e in #( |
| 49760 |
e) mhd_cv_cc_sanitizer_undefined=no ;; |
| 49761 |
esac |
| 49762 |
fi |
| 49763 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49764 |
conftest$ac_exeext conftest.$ac_ext |
| 49765 |
|
| 49766 |
;; |
| 49767 |
esac |
| 49768 |
fi |
| 49769 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined" >&5 |
| 49770 |
printf "%s\n" "$mhd_cv_cc_sanitizer_undefined" >&6; } |
| 49771 |
if test "x$mhd_cv_cc_sanitizer_undefined" = x"yes" |
| 49772 |
then : |
| 49773 |
|
| 49774 |
|
| 49775 |
if test ${san_FLAGS+y} |
| 49776 |
then : |
| 49777 |
|
| 49778 |
case " $san_FLAGS " in #( |
| 49779 |
*" -fsanitize=undefined "*) : |
| 49780 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5 |
| 49781 |
(: san_FLAGS already contains -fsanitize=undefined) 2>&5 |
| 49782 |
ac_status=$? |
| 49783 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49784 |
test $ac_status = 0; } ;; #( |
| 49785 |
*) : |
| 49786 |
|
| 49787 |
as_fn_append san_FLAGS " -fsanitize=undefined" |
| 49788 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49789 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49790 |
ac_status=$? |
| 49791 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49792 |
test $ac_status = 0; } |
| 49793 |
;; |
| 49794 |
esac |
| 49795 |
|
| 49796 |
else case e in #( |
| 49797 |
e) |
| 49798 |
san_FLAGS=-fsanitize=undefined |
| 49799 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49800 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49801 |
ac_status=$? |
| 49802 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49803 |
test $ac_status = 0; } |
| 49804 |
;; |
| 49805 |
esac |
| 49806 |
fi |
| 49807 |
|
| 49808 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined" |
| 49809 |
|
| 49810 |
else case e in #( |
| 49811 |
e) |
| 49812 |
case ${enable_san_undef} in #( |
| 49813 |
yes|auto-fallback) : |
| 49814 |
|
| 49815 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer with '-fsanitize-undefined-trap-on-error'" >&5 |
| 49816 |
printf %s "checking for undefined behavior sanitizer with '-fsanitize-undefined-trap-on-error'... " >&6; } |
| 49817 |
if test ${mhd_cv_cc_sanitizer_undefined_trap+y} |
| 49818 |
then : |
| 49819 |
printf %s "(cached) " >&6 |
| 49820 |
else case e in #( |
| 49821 |
e) |
| 49822 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-undefined-trap-on-error ${user_CFLAGS}" |
| 49823 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49824 |
/* end confdefs.h. */ |
| 49825 |
${test_undf_prog} |
| 49826 |
_ACEOF |
| 49827 |
if ac_fn_c_try_link "$LINENO" |
| 49828 |
then : |
| 49829 |
mhd_cv_cc_sanitizer_undefined_trap=yes |
| 49830 |
else case e in #( |
| 49831 |
e) mhd_cv_cc_sanitizer_undefined_trap=no ;; |
| 49832 |
esac |
| 49833 |
fi |
| 49834 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49835 |
conftest$ac_exeext conftest.$ac_ext |
| 49836 |
|
| 49837 |
;; |
| 49838 |
esac |
| 49839 |
fi |
| 49840 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined_trap" >&5 |
| 49841 |
printf "%s\n" "$mhd_cv_cc_sanitizer_undefined_trap" >&6; } |
| 49842 |
if test "x$mhd_cv_cc_sanitizer_undefined_trap" = x"yes" |
| 49843 |
then : |
| 49844 |
|
| 49845 |
|
| 49846 |
if test ${san_FLAGS+y} |
| 49847 |
then : |
| 49848 |
|
| 49849 |
case " $san_FLAGS " in #( |
| 49850 |
*" -fsanitize=undefined "*) : |
| 49851 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5 |
| 49852 |
(: san_FLAGS already contains -fsanitize=undefined) 2>&5 |
| 49853 |
ac_status=$? |
| 49854 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49855 |
test $ac_status = 0; } ;; #( |
| 49856 |
*) : |
| 49857 |
|
| 49858 |
as_fn_append san_FLAGS " -fsanitize=undefined" |
| 49859 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49860 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49861 |
ac_status=$? |
| 49862 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49863 |
test $ac_status = 0; } |
| 49864 |
;; |
| 49865 |
esac |
| 49866 |
|
| 49867 |
else case e in #( |
| 49868 |
e) |
| 49869 |
san_FLAGS=-fsanitize=undefined |
| 49870 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49871 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49872 |
ac_status=$? |
| 49873 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49874 |
test $ac_status = 0; } |
| 49875 |
;; |
| 49876 |
esac |
| 49877 |
fi |
| 49878 |
|
| 49879 |
|
| 49880 |
if test ${san_FLAGS+y} |
| 49881 |
then : |
| 49882 |
|
| 49883 |
case " $san_FLAGS " in #( |
| 49884 |
*" -fsanitize-undefined-trap-on-error "*) : |
| 49885 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize-undefined-trap-on-error"; } >&5 |
| 49886 |
(: san_FLAGS already contains -fsanitize-undefined-trap-on-error) 2>&5 |
| 49887 |
ac_status=$? |
| 49888 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49889 |
test $ac_status = 0; } ;; #( |
| 49890 |
*) : |
| 49891 |
|
| 49892 |
as_fn_append san_FLAGS " -fsanitize-undefined-trap-on-error" |
| 49893 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49894 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49895 |
ac_status=$? |
| 49896 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49897 |
test $ac_status = 0; } |
| 49898 |
;; |
| 49899 |
esac |
| 49900 |
|
| 49901 |
else case e in #( |
| 49902 |
e) |
| 49903 |
san_FLAGS=-fsanitize-undefined-trap-on-error |
| 49904 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49905 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49906 |
ac_status=$? |
| 49907 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49908 |
test $ac_status = 0; } |
| 49909 |
;; |
| 49910 |
esac |
| 49911 |
fi |
| 49912 |
|
| 49913 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined" |
| 49914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&5 |
| 49915 |
printf "%s\n" "$as_me: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&2;} |
| 49916 |
|
| 49917 |
else case e in #( |
| 49918 |
e) |
| 49919 |
if test -z "${enabled_sanitizers}" |
| 49920 |
then : |
| 49921 |
|
| 49922 |
# Last resort |
| 49923 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for undefined behavior sanitizer with '-fsanitize-trap=all'" >&5 |
| 49924 |
printf %s "checking for undefined behavior sanitizer with '-fsanitize-trap=all'... " >&6; } |
| 49925 |
if test ${mhd_cv_cc_sanitizer_undefined_trap_all+y} |
| 49926 |
then : |
| 49927 |
printf %s "(cached) " >&6 |
| 49928 |
else case e in #( |
| 49929 |
e) |
| 49930 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-trap=all ${user_CFLAGS}" |
| 49931 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 49932 |
/* end confdefs.h. */ |
| 49933 |
${test_undf_prog} |
| 49934 |
_ACEOF |
| 49935 |
if ac_fn_c_try_link "$LINENO" |
| 49936 |
then : |
| 49937 |
mhd_cv_cc_sanitizer_undefined_trap_all=yes |
| 49938 |
else case e in #( |
| 49939 |
e) mhd_cv_cc_sanitizer_undefined_trap_all=no ;; |
| 49940 |
esac |
| 49941 |
fi |
| 49942 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 49943 |
conftest$ac_exeext conftest.$ac_ext |
| 49944 |
|
| 49945 |
;; |
| 49946 |
esac |
| 49947 |
fi |
| 49948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_undefined_trap_all" >&5 |
| 49949 |
printf "%s\n" "$mhd_cv_cc_sanitizer_undefined_trap_all" >&6; } |
| 49950 |
if test "x$mhd_cv_cc_sanitizer_undefined_trap_all" = x"yes" |
| 49951 |
then : |
| 49952 |
|
| 49953 |
|
| 49954 |
if test ${san_FLAGS+y} |
| 49955 |
then : |
| 49956 |
|
| 49957 |
case " $san_FLAGS " in #( |
| 49958 |
*" -fsanitize=undefined "*) : |
| 49959 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=undefined"; } >&5 |
| 49960 |
(: san_FLAGS already contains -fsanitize=undefined) 2>&5 |
| 49961 |
ac_status=$? |
| 49962 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49963 |
test $ac_status = 0; } ;; #( |
| 49964 |
*) : |
| 49965 |
|
| 49966 |
as_fn_append san_FLAGS " -fsanitize=undefined" |
| 49967 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49968 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49969 |
ac_status=$? |
| 49970 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49971 |
test $ac_status = 0; } |
| 49972 |
;; |
| 49973 |
esac |
| 49974 |
|
| 49975 |
else case e in #( |
| 49976 |
e) |
| 49977 |
san_FLAGS=-fsanitize=undefined |
| 49978 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 49979 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 49980 |
ac_status=$? |
| 49981 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49982 |
test $ac_status = 0; } |
| 49983 |
;; |
| 49984 |
esac |
| 49985 |
fi |
| 49986 |
|
| 49987 |
|
| 49988 |
if test ${san_FLAGS+y} |
| 49989 |
then : |
| 49990 |
|
| 49991 |
case " $san_FLAGS " in #( |
| 49992 |
*" -fsanitize-trap=all "*) : |
| 49993 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize-trap=all"; } >&5 |
| 49994 |
(: san_FLAGS already contains -fsanitize-trap=all) 2>&5 |
| 49995 |
ac_status=$? |
| 49996 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 49997 |
test $ac_status = 0; } ;; #( |
| 49998 |
*) : |
| 49999 |
|
| 50000 |
as_fn_append san_FLAGS " -fsanitize-trap=all" |
| 50001 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50002 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50003 |
ac_status=$? |
| 50004 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50005 |
test $ac_status = 0; } |
| 50006 |
;; |
| 50007 |
esac |
| 50008 |
|
| 50009 |
else case e in #( |
| 50010 |
e) |
| 50011 |
san_FLAGS=-fsanitize-trap=all |
| 50012 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50013 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50014 |
ac_status=$? |
| 50015 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50016 |
test $ac_status = 0; } |
| 50017 |
;; |
| 50018 |
esac |
| 50019 |
fi |
| 50020 |
|
| 50021 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} -fsanitize=undefined -fsanitize-trap=all ${user_CFLAGS}" |
| 50022 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }undefined" |
| 50023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&5 |
| 50024 |
printf "%s\n" "$as_me: WARNING: Enabled sanitizer without run-time library, error reporting will be limited" >&2;} |
| 50025 |
|
| 50026 |
|
| 50027 |
fi |
| 50028 |
|
| 50029 |
|
| 50030 |
fi |
| 50031 |
|
| 50032 |
;; |
| 50033 |
esac |
| 50034 |
fi |
| 50035 |
case "$enabled_sanitizers" in #( |
| 50036 |
*undefined) : |
| 50037 |
|
| 50038 |
if test "x$mhd_cv_cc_sanitizer_undefined" = x"yes" |
| 50039 |
then : |
| 50040 |
|
| 50041 |
else case e in #( |
| 50042 |
e) |
| 50043 |
# A workaround for broken clang which is trying to use UBSan lib |
| 50044 |
# even when instructed to not use it |
| 50045 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" |
| 50046 |
|
| 50047 |
|
| 50048 |
|
| 50049 |
|
| 50050 |
for flag in -fsanitize-trap=implicit-conversion; do |
| 50051 |
as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"` |
| 50052 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 |
| 50053 |
printf %s "checking whether the linker accepts $flag... " >&6; } |
| 50054 |
if eval test \${$as_CACHEVAR+y} |
| 50055 |
then : |
| 50056 |
printf %s "(cached) " >&6 |
| 50057 |
else case e in #( |
| 50058 |
e) |
| 50059 |
ax_check_save_flags=$LDFLAGS |
| 50060 |
LDFLAGS="$LDFLAGS $flag" |
| 50061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50062 |
/* end confdefs.h. */ |
| 50063 |
${test_undf_prog} |
| 50064 |
_ACEOF |
| 50065 |
if ac_fn_c_try_link "$LINENO" |
| 50066 |
then : |
| 50067 |
eval "$as_CACHEVAR=yes" |
| 50068 |
else case e in #( |
| 50069 |
e) eval "$as_CACHEVAR=no" ;; |
| 50070 |
esac |
| 50071 |
fi |
| 50072 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50073 |
conftest$ac_exeext conftest.$ac_ext |
| 50074 |
LDFLAGS=$ax_check_save_flags ;; |
| 50075 |
esac |
| 50076 |
fi |
| 50077 |
eval ac_res=\$$as_CACHEVAR |
| 50078 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 50079 |
printf "%s\n" "$ac_res" >&6; } |
| 50080 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 50081 |
then : |
| 50082 |
|
| 50083 |
if test ${san_FLAGS+y} |
| 50084 |
then : |
| 50085 |
|
| 50086 |
case " $san_FLAGS " in #( |
| 50087 |
*" $flag "*) : |
| 50088 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains \$flag"; } >&5 |
| 50089 |
(: san_FLAGS already contains $flag) 2>&5 |
| 50090 |
ac_status=$? |
| 50091 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50092 |
test $ac_status = 0; } ;; #( |
| 50093 |
*) : |
| 50094 |
|
| 50095 |
as_fn_append san_FLAGS " $flag" |
| 50096 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50097 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50098 |
ac_status=$? |
| 50099 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50100 |
test $ac_status = 0; } |
| 50101 |
;; |
| 50102 |
esac |
| 50103 |
|
| 50104 |
else case e in #( |
| 50105 |
e) |
| 50106 |
san_FLAGS=$flag |
| 50107 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50108 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50109 |
ac_status=$? |
| 50110 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50111 |
test $ac_status = 0; } |
| 50112 |
;; |
| 50113 |
esac |
| 50114 |
fi |
| 50115 |
|
| 50116 |
else case e in #( |
| 50117 |
e) : ;; |
| 50118 |
esac |
| 50119 |
fi |
| 50120 |
|
| 50121 |
done |
| 50122 |
|
| 50123 |
|
| 50124 |
;; |
| 50125 |
esac |
| 50126 |
fi |
| 50127 |
|
| 50128 |
;; #( |
| 50129 |
*) : |
| 50130 |
;; |
| 50131 |
esac |
| 50132 |
|
| 50133 |
;; #( |
| 50134 |
*) : |
| 50135 |
;; |
| 50136 |
esac |
| 50137 |
|
| 50138 |
;; |
| 50139 |
esac |
| 50140 |
fi |
| 50141 |
case "$enabled_sanitizers" in #( |
| 50142 |
*undefined) : |
| 50143 |
|
| 50144 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" |
| 50145 |
|
| 50146 |
|
| 50147 |
|
| 50148 |
|
| 50149 |
for flag in -fsanitize=bounds-strict -fsanitize=local-bounds -fsanitize=implicit-conversion -fsanitize=nullability-arg; do |
| 50150 |
as_CACHEVAR=`printf "%s\n" "ax_cv_check_ldflags__$flag" | sed "$as_sed_sh"` |
| 50151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 |
| 50152 |
printf %s "checking whether the linker accepts $flag... " >&6; } |
| 50153 |
if eval test \${$as_CACHEVAR+y} |
| 50154 |
then : |
| 50155 |
printf %s "(cached) " >&6 |
| 50156 |
else case e in #( |
| 50157 |
e) |
| 50158 |
ax_check_save_flags=$LDFLAGS |
| 50159 |
LDFLAGS="$LDFLAGS $flag" |
| 50160 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50161 |
/* end confdefs.h. */ |
| 50162 |
${test_undf_prog} |
| 50163 |
_ACEOF |
| 50164 |
if ac_fn_c_try_link "$LINENO" |
| 50165 |
then : |
| 50166 |
eval "$as_CACHEVAR=yes" |
| 50167 |
else case e in #( |
| 50168 |
e) eval "$as_CACHEVAR=no" ;; |
| 50169 |
esac |
| 50170 |
fi |
| 50171 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50172 |
conftest$ac_exeext conftest.$ac_ext |
| 50173 |
LDFLAGS=$ax_check_save_flags ;; |
| 50174 |
esac |
| 50175 |
fi |
| 50176 |
eval ac_res=\$$as_CACHEVAR |
| 50177 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 50178 |
printf "%s\n" "$ac_res" >&6; } |
| 50179 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 50180 |
then : |
| 50181 |
|
| 50182 |
if test ${san_CFLAGS+y} |
| 50183 |
then : |
| 50184 |
|
| 50185 |
case " $san_CFLAGS " in #( |
| 50186 |
*" $flag "*) : |
| 50187 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5 |
| 50188 |
(: san_CFLAGS already contains $flag) 2>&5 |
| 50189 |
ac_status=$? |
| 50190 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50191 |
test $ac_status = 0; } ;; #( |
| 50192 |
*) : |
| 50193 |
|
| 50194 |
as_fn_append san_CFLAGS " $flag" |
| 50195 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50196 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50197 |
ac_status=$? |
| 50198 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50199 |
test $ac_status = 0; } |
| 50200 |
;; |
| 50201 |
esac |
| 50202 |
|
| 50203 |
else case e in #( |
| 50204 |
e) |
| 50205 |
san_CFLAGS=$flag |
| 50206 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50207 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50208 |
ac_status=$? |
| 50209 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50210 |
test $ac_status = 0; } |
| 50211 |
;; |
| 50212 |
esac |
| 50213 |
fi |
| 50214 |
|
| 50215 |
else case e in #( |
| 50216 |
e) : ;; |
| 50217 |
esac |
| 50218 |
fi |
| 50219 |
|
| 50220 |
done |
| 50221 |
|
| 50222 |
|
| 50223 |
;; #( |
| 50224 |
*) : |
| 50225 |
;; |
| 50226 |
esac |
| 50227 |
{ test_undf_prog=; unset test_undf_prog;} |
| 50228 |
case "$enabled_sanitizers" in #( |
| 50229 |
*undefined) : |
| 50230 |
enable_san_undef="yes" ;; #( |
| 50231 |
*) : |
| 50232 |
|
| 50233 |
if test "x$enable_san_undef" = xyes |
| 50234 |
then : |
| 50235 |
as_fn_error $? "Undefined behavior sanitizer cannot be enabled" "$LINENO" 5 |
| 50236 |
fi |
| 50237 |
enable_san_undef="no" |
| 50238 |
|
| 50239 |
;; |
| 50240 |
esac |
| 50241 |
|
| 50242 |
;; |
| 50243 |
esac |
| 50244 |
fi |
| 50245 |
if test "x$enable_san_leak" = x"no" |
| 50246 |
then : |
| 50247 |
: |
| 50248 |
else case e in #( |
| 50249 |
e) |
| 50250 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for leak sanitizer" >&5 |
| 50251 |
printf %s "checking for leak sanitizer... " >&6; } |
| 50252 |
if test ${mhd_cv_cc_sanitizer_leak+y} |
| 50253 |
then : |
| 50254 |
printf %s "(cached) " >&6 |
| 50255 |
else case e in #( |
| 50256 |
e) |
| 50257 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} -fsanitize=leak ${user_CFLAGS}" |
| 50258 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50259 |
/* end confdefs.h. */ |
| 50260 |
|
| 50261 |
int |
| 50262 |
main (void) |
| 50263 |
{ |
| 50264 |
|
| 50265 |
; |
| 50266 |
return 0; |
| 50267 |
} |
| 50268 |
_ACEOF |
| 50269 |
if ac_fn_c_try_link "$LINENO" |
| 50270 |
then : |
| 50271 |
mhd_cv_cc_sanitizer_leak=yes |
| 50272 |
else case e in #( |
| 50273 |
e) mhd_cv_cc_sanitizer_leak=no ;; |
| 50274 |
esac |
| 50275 |
fi |
| 50276 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50277 |
conftest$ac_exeext conftest.$ac_ext |
| 50278 |
|
| 50279 |
;; |
| 50280 |
esac |
| 50281 |
fi |
| 50282 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_sanitizer_leak" >&5 |
| 50283 |
printf "%s\n" "$mhd_cv_cc_sanitizer_leak" >&6; } |
| 50284 |
if test "x$mhd_cv_cc_sanitizer_leak" = x"yes" |
| 50285 |
then : |
| 50286 |
|
| 50287 |
|
| 50288 |
if test ${san_FLAGS+y} |
| 50289 |
then : |
| 50290 |
|
| 50291 |
case " $san_FLAGS " in #( |
| 50292 |
*" -fsanitize=leak "*) : |
| 50293 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS already contains -fsanitize=leak"; } >&5 |
| 50294 |
(: san_FLAGS already contains -fsanitize=leak) 2>&5 |
| 50295 |
ac_status=$? |
| 50296 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50297 |
test $ac_status = 0; } ;; #( |
| 50298 |
*) : |
| 50299 |
|
| 50300 |
as_fn_append san_FLAGS " -fsanitize=leak" |
| 50301 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50302 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50303 |
ac_status=$? |
| 50304 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50305 |
test $ac_status = 0; } |
| 50306 |
;; |
| 50307 |
esac |
| 50308 |
|
| 50309 |
else case e in #( |
| 50310 |
e) |
| 50311 |
san_FLAGS=-fsanitize=leak |
| 50312 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_FLAGS=\"\$san_FLAGS\""; } >&5 |
| 50313 |
(: san_FLAGS="$san_FLAGS") 2>&5 |
| 50314 |
ac_status=$? |
| 50315 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50316 |
test $ac_status = 0; } |
| 50317 |
;; |
| 50318 |
esac |
| 50319 |
fi |
| 50320 |
|
| 50321 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }leak" |
| 50322 |
|
| 50323 |
|
| 50324 |
fi |
| 50325 |
if test "x${enable_san_leak}" = "xyes" && test "x${mhd_cv_cc_sanitizer_leak}" != "xyes" |
| 50326 |
then : |
| 50327 |
as_fn_error $? "User poison cannot be enabled" "$LINENO" 5 |
| 50328 |
|
| 50329 |
fi |
| 50330 |
enable_san_leak="${mhd_cv_cc_sanitizer_leak}" |
| 50331 |
|
| 50332 |
;; |
| 50333 |
esac |
| 50334 |
fi |
| 50335 |
if test -z "${enabled_sanitizers}" |
| 50336 |
then : |
| 50337 |
|
| 50338 |
if test "x$enable_sanitizers" = x"auto-optional" |
| 50339 |
then : |
| 50340 |
|
| 50341 |
san_FLAGS="" |
| 50342 |
san_CFLAGS="" |
| 50343 |
|
| 50344 |
else case e in #( |
| 50345 |
e) |
| 50346 |
as_fn_error $? "cannot find any sanitizer supported by $CC" "$LINENO" 5 |
| 50347 |
|
| 50348 |
;; |
| 50349 |
esac |
| 50350 |
fi |
| 50351 |
|
| 50352 |
else case e in #( |
| 50353 |
e) |
| 50354 |
if test "x$enable_san_upoison" = x"no" |
| 50355 |
then : |
| 50356 |
: |
| 50357 |
else case e in #( |
| 50358 |
e) |
| 50359 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable user memory poisoning" >&5 |
| 50360 |
printf %s "checking whether to enable user memory poisoning... " >&6; } |
| 50361 |
if test "x${mhd_cv_cc_sanitizer_address}" = "xyes" && test "x${ac_cv_header_sanitizer_asan_interface_h}" = "xyes" && \ |
| 50362 |
(test "x${mhd_cv_func_u_p_attribute_needed}" != "xyes" || test "x${mhd_cv_func_attribute_nosanitize_ptr}" = "xyes" || \ |
| 50363 |
test "x${mhd_cv_func_attribute_nosanitize_addr}" = "xyes") |
| 50364 |
then : |
| 50365 |
|
| 50366 |
|
| 50367 |
printf "%s\n" "#define MHD_ASAN_POISON_ACTIVE 1" >>confdefs.h |
| 50368 |
|
| 50369 |
enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, }user-poison" |
| 50370 |
enable_san_upoison="yes" |
| 50371 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 50372 |
printf "%s\n" "yes" >&6; } |
| 50373 |
|
| 50374 |
else case e in #( |
| 50375 |
e) |
| 50376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 50377 |
printf "%s\n" "no" >&6; } |
| 50378 |
if test "x$enable_san_upoison" = x"yes" |
| 50379 |
then : |
| 50380 |
as_fn_error $? "User memory poisoning cannot be enabled" "$LINENO" 5 |
| 50381 |
fi |
| 50382 |
enable_san_upoison="no" |
| 50383 |
|
| 50384 |
;; |
| 50385 |
esac |
| 50386 |
fi |
| 50387 |
|
| 50388 |
;; |
| 50389 |
esac |
| 50390 |
fi |
| 50391 |
if test "x$enable_san_address" = x"yes" |
| 50392 |
then : |
| 50393 |
|
| 50394 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" |
| 50395 |
ac_fn_check_decl "$LINENO" "_FORTIFY_SOURCE" "ac_cv_have_decl__FORTIFY_SOURCE" "/* no includes */ |
| 50396 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 50397 |
if test "x$ac_cv_have_decl__FORTIFY_SOURCE" = xyes |
| 50398 |
then : |
| 50399 |
if test -z "${CPPFLAGS_ac}" |
| 50400 |
then : |
| 50401 |
CPPFLAGS_ac="-U_FORTIFY_SOURCE" |
| 50402 |
else case e in #( |
| 50403 |
e) CPPFLAGS_ac="${CPPFLAGS_ac} -U_FORTIFY_SOURCE" ;; |
| 50404 |
esac |
| 50405 |
fi |
| 50406 |
|
| 50407 |
fi |
| 50408 |
|
| 50409 |
if test ${san_CFLAGS+y} |
| 50410 |
then : |
| 50411 |
|
| 50412 |
case " $san_CFLAGS " in #( |
| 50413 |
*" -D_FORTIFY_SOURCE=0 "*) : |
| 50414 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains -D_FORTIFY_SOURCE=0"; } >&5 |
| 50415 |
(: san_CFLAGS already contains -D_FORTIFY_SOURCE=0) 2>&5 |
| 50416 |
ac_status=$? |
| 50417 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50418 |
test $ac_status = 0; } ;; #( |
| 50419 |
*) : |
| 50420 |
|
| 50421 |
as_fn_append san_CFLAGS " -D_FORTIFY_SOURCE=0" |
| 50422 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50423 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50424 |
ac_status=$? |
| 50425 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50426 |
test $ac_status = 0; } |
| 50427 |
;; |
| 50428 |
esac |
| 50429 |
|
| 50430 |
else case e in #( |
| 50431 |
e) |
| 50432 |
san_CFLAGS=-D_FORTIFY_SOURCE=0 |
| 50433 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50434 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50435 |
ac_status=$? |
| 50436 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50437 |
test $ac_status = 0; } |
| 50438 |
;; |
| 50439 |
esac |
| 50440 |
fi |
| 50441 |
|
| 50442 |
|
| 50443 |
else case e in #( |
| 50444 |
e) |
| 50445 |
case $enable_sanitizers in #( |
| 50446 |
auto|auto-fallback) : |
| 50447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CC does not support address sanitizer" >&5 |
| 50448 |
printf "%s\n" "$as_me: WARNING: $CC does not support address sanitizer" >&2;} ;; #( |
| 50449 |
*) : |
| 50450 |
;; |
| 50451 |
esac |
| 50452 |
|
| 50453 |
;; |
| 50454 |
esac |
| 50455 |
fi |
| 50456 |
CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}" |
| 50457 |
# Always stop on sanitizer error |
| 50458 |
|
| 50459 |
|
| 50460 |
|
| 50461 |
|
| 50462 |
for flag in -fno-sanitize-recover=all; do |
| 50463 |
as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` |
| 50464 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 |
| 50465 |
printf %s "checking whether the C compiler accepts $flag... " >&6; } |
| 50466 |
if eval test \${$as_CACHEVAR+y} |
| 50467 |
then : |
| 50468 |
printf %s "(cached) " >&6 |
| 50469 |
else case e in #( |
| 50470 |
e) |
| 50471 |
ax_check_save_flags=$CFLAGS |
| 50472 |
if test x"$GCC" = xyes ; then |
| 50473 |
add_gnu_werror="-Werror" |
| 50474 |
fi |
| 50475 |
CFLAGS="$CFLAGS $flag $add_gnu_werror" |
| 50476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50477 |
/* end confdefs.h. */ |
| 50478 |
|
| 50479 |
int |
| 50480 |
main (void) |
| 50481 |
{ |
| 50482 |
|
| 50483 |
; |
| 50484 |
return 0; |
| 50485 |
} |
| 50486 |
_ACEOF |
| 50487 |
if ac_fn_c_try_compile "$LINENO" |
| 50488 |
then : |
| 50489 |
eval "$as_CACHEVAR=yes" |
| 50490 |
else case e in #( |
| 50491 |
e) eval "$as_CACHEVAR=no" ;; |
| 50492 |
esac |
| 50493 |
fi |
| 50494 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 50495 |
CFLAGS=$ax_check_save_flags ;; |
| 50496 |
esac |
| 50497 |
fi |
| 50498 |
eval ac_res=\$$as_CACHEVAR |
| 50499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 50500 |
printf "%s\n" "$ac_res" >&6; } |
| 50501 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 50502 |
then : |
| 50503 |
|
| 50504 |
if test ${san_CFLAGS+y} |
| 50505 |
then : |
| 50506 |
|
| 50507 |
case " $san_CFLAGS " in #( |
| 50508 |
*" $flag "*) : |
| 50509 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5 |
| 50510 |
(: san_CFLAGS already contains $flag) 2>&5 |
| 50511 |
ac_status=$? |
| 50512 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50513 |
test $ac_status = 0; } ;; #( |
| 50514 |
*) : |
| 50515 |
|
| 50516 |
as_fn_append san_CFLAGS " $flag" |
| 50517 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50518 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50519 |
ac_status=$? |
| 50520 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50521 |
test $ac_status = 0; } |
| 50522 |
;; |
| 50523 |
esac |
| 50524 |
|
| 50525 |
else case e in #( |
| 50526 |
e) |
| 50527 |
san_CFLAGS=$flag |
| 50528 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50529 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50530 |
ac_status=$? |
| 50531 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50532 |
test $ac_status = 0; } |
| 50533 |
;; |
| 50534 |
esac |
| 50535 |
fi |
| 50536 |
|
| 50537 |
else case e in #( |
| 50538 |
e) : ;; |
| 50539 |
esac |
| 50540 |
fi |
| 50541 |
|
| 50542 |
done |
| 50543 |
|
| 50544 |
# Get a better output for sanitizers error reporting |
| 50545 |
|
| 50546 |
|
| 50547 |
|
| 50548 |
|
| 50549 |
for flag in -fno-omit-frame-pointer -fno-optimize-sibling-calls; do |
| 50550 |
as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` |
| 50551 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 |
| 50552 |
printf %s "checking whether the C compiler accepts $flag... " >&6; } |
| 50553 |
if eval test \${$as_CACHEVAR+y} |
| 50554 |
then : |
| 50555 |
printf %s "(cached) " >&6 |
| 50556 |
else case e in #( |
| 50557 |
e) |
| 50558 |
ax_check_save_flags=$CFLAGS |
| 50559 |
if test x"$GCC" = xyes ; then |
| 50560 |
add_gnu_werror="-Werror" |
| 50561 |
fi |
| 50562 |
CFLAGS="$CFLAGS $flag $add_gnu_werror" |
| 50563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50564 |
/* end confdefs.h. */ |
| 50565 |
|
| 50566 |
int |
| 50567 |
main (void) |
| 50568 |
{ |
| 50569 |
|
| 50570 |
; |
| 50571 |
return 0; |
| 50572 |
} |
| 50573 |
_ACEOF |
| 50574 |
if ac_fn_c_try_compile "$LINENO" |
| 50575 |
then : |
| 50576 |
eval "$as_CACHEVAR=yes" |
| 50577 |
else case e in #( |
| 50578 |
e) eval "$as_CACHEVAR=no" ;; |
| 50579 |
esac |
| 50580 |
fi |
| 50581 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 50582 |
CFLAGS=$ax_check_save_flags ;; |
| 50583 |
esac |
| 50584 |
fi |
| 50585 |
eval ac_res=\$$as_CACHEVAR |
| 50586 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 50587 |
printf "%s\n" "$ac_res" >&6; } |
| 50588 |
if eval test \"x\$"$as_CACHEVAR"\" = x"yes" |
| 50589 |
then : |
| 50590 |
|
| 50591 |
if test ${san_CFLAGS+y} |
| 50592 |
then : |
| 50593 |
|
| 50594 |
case " $san_CFLAGS " in #( |
| 50595 |
*" $flag "*) : |
| 50596 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS already contains \$flag"; } >&5 |
| 50597 |
(: san_CFLAGS already contains $flag) 2>&5 |
| 50598 |
ac_status=$? |
| 50599 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50600 |
test $ac_status = 0; } ;; #( |
| 50601 |
*) : |
| 50602 |
|
| 50603 |
as_fn_append san_CFLAGS " $flag" |
| 50604 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50605 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50606 |
ac_status=$? |
| 50607 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50608 |
test $ac_status = 0; } |
| 50609 |
;; |
| 50610 |
esac |
| 50611 |
|
| 50612 |
else case e in #( |
| 50613 |
e) |
| 50614 |
san_CFLAGS=$flag |
| 50615 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : san_CFLAGS=\"\$san_CFLAGS\""; } >&5 |
| 50616 |
(: san_CFLAGS="$san_CFLAGS") 2>&5 |
| 50617 |
ac_status=$? |
| 50618 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 50619 |
test $ac_status = 0; } |
| 50620 |
;; |
| 50621 |
esac |
| 50622 |
fi |
| 50623 |
|
| 50624 |
else case e in #( |
| 50625 |
e) : ;; |
| 50626 |
esac |
| 50627 |
fi |
| 50628 |
|
| 50629 |
done |
| 50630 |
|
| 50631 |
if test "x$enable_san_address" = x"yes" |
| 50632 |
then : |
| 50633 |
|
| 50634 |
AM_ASAN_OPTIONS="exitcode=88:strict_string_checks=1:detect_stack_use_after_return=1" |
| 50635 |
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:check_initialization_order=1:strict_init_order=1:redzone=64" |
| 50636 |
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:max_free_fill_size=1024:detect_invalid_pointer_pairs=3" |
| 50637 |
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:handle_ioctl=1:halt_on_error=1" |
| 50638 |
if test "x$enable_san_upoison" = x"yes" |
| 50639 |
then : |
| 50640 |
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:allow_user_poisoning=1" |
| 50641 |
fi |
| 50642 |
if test "x$enable_san_leak" = x"yes" |
| 50643 |
then : |
| 50644 |
if test "x$mhd_cv_cc_sanitizer_address_leak" = x"yes" |
| 50645 |
then : |
| 50646 |
AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=1" |
| 50647 |
fi |
| 50648 |
|
| 50649 |
else case e in #( |
| 50650 |
e) AM_ASAN_OPTIONS="${AM_ASAN_OPTIONS}:detect_leaks=0" |
| 50651 |
;; |
| 50652 |
esac |
| 50653 |
fi |
| 50654 |
|
| 50655 |
|
| 50656 |
fi |
| 50657 |
if test "x$enable_san_undef" = xyes |
| 50658 |
then : |
| 50659 |
AM_UBSAN_OPTIONS="exitcode=87:print_stacktrace=1:halt_on_error=1" |
| 50660 |
fi |
| 50661 |
if test "x$enable_san_leak" = x"yes" |
| 50662 |
then : |
| 50663 |
AM_LSAN_OPTIONS="use_unaligned=1" |
| 50664 |
|
| 50665 |
fi |
| 50666 |
TESTS_ENVIRONMENT_ac='\ |
| 50667 |
ASAN_OPTIONS="$(AM_ASAN_OPTIONS)" ; export ASAN_OPTIONS ; \ |
| 50668 |
UBSAN_OPTIONS="$(AM_UBSAN_OPTIONS)" ; export UBSAN_OPTIONS ; \ |
| 50669 |
LSAN_OPTIONS="$(AM_LSAN_OPTIONS)" ; export LSAN_OPTIONS ;' |
| 50670 |
|
| 50671 |
;; |
| 50672 |
esac |
| 50673 |
fi |
| 50674 |
|
| 50675 |
|
| 50676 |
fi |
| 50677 |
CFLAGS_ac="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS}" |
| 50678 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 50679 |
|
| 50680 |
;; |
| 50681 |
esac |
| 50682 |
fi |
| 50683 |
|
| 50684 |
# fuzzing tests |
| 50685 |
run_zzuf_tests="no" |
| 50686 |
zzuf_socat_mandatory="no" |
| 50687 |
if test "x$use_heavy_tests" = x"yes" |
| 50688 |
then : |
| 50689 |
|
| 50690 |
if test "x$enable_curl" = x"yes" |
| 50691 |
then : |
| 50692 |
|
| 50693 |
# Extract the first word of "zzuf", so it can be a program name with args. |
| 50694 |
set dummy zzuf; ac_word=$2 |
| 50695 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 50696 |
printf %s "checking for $ac_word... " >&6; } |
| 50697 |
if test ${ac_cv_path_ZZUF+y} |
| 50698 |
then : |
| 50699 |
printf %s "(cached) " >&6 |
| 50700 |
else case e in #( |
| 50701 |
e) case $ZZUF in |
| 50702 |
[\\/]* | ?:[\\/]*) |
| 50703 |
ac_cv_path_ZZUF="$ZZUF" # Let the user override the test with a path. |
| 50704 |
;; |
| 50705 |
*) |
| 50706 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 50707 |
for as_dir in $PATH |
| 50708 |
do |
| 50709 |
IFS=$as_save_IFS |
| 50710 |
case $as_dir in #((( |
| 50711 |
'') as_dir=./ ;; |
| 50712 |
*/) ;; |
| 50713 |
*) as_dir=$as_dir/ ;; |
| 50714 |
esac |
| 50715 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 50716 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 50717 |
ac_cv_path_ZZUF="$as_dir$ac_word$ac_exec_ext" |
| 50718 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 50719 |
break 2 |
| 50720 |
fi |
| 50721 |
done |
| 50722 |
done |
| 50723 |
IFS=$as_save_IFS |
| 50724 |
|
| 50725 |
test -z "$ac_cv_path_ZZUF" && ac_cv_path_ZZUF="no" |
| 50726 |
;; |
| 50727 |
esac ;; |
| 50728 |
esac |
| 50729 |
fi |
| 50730 |
ZZUF=$ac_cv_path_ZZUF |
| 50731 |
if test -n "$ZZUF"; then |
| 50732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZZUF" >&5 |
| 50733 |
printf "%s\n" "$ZZUF" >&6; } |
| 50734 |
else |
| 50735 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 50736 |
printf "%s\n" "no" >&6; } |
| 50737 |
fi |
| 50738 |
|
| 50739 |
|
| 50740 |
if test "x$ZZUF" = x"no" |
| 50741 |
then : |
| 50742 |
|
| 50743 |
run_zzuf_tests="no" |
| 50744 |
run_zzuf_tests_MSG="no, zzuf tool not found" |
| 50745 |
|
| 50746 |
else case e in #( |
| 50747 |
e) |
| 50748 |
# Extract the first word of "socat", so it can be a program name with args. |
| 50749 |
set dummy socat; ac_word=$2 |
| 50750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 50751 |
printf %s "checking for $ac_word... " >&6; } |
| 50752 |
if test ${ac_cv_path_SOCAT+y} |
| 50753 |
then : |
| 50754 |
printf %s "(cached) " >&6 |
| 50755 |
else case e in #( |
| 50756 |
e) case $SOCAT in |
| 50757 |
[\\/]* | ?:[\\/]*) |
| 50758 |
ac_cv_path_SOCAT="$SOCAT" # Let the user override the test with a path. |
| 50759 |
;; |
| 50760 |
*) |
| 50761 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 50762 |
for as_dir in $PATH |
| 50763 |
do |
| 50764 |
IFS=$as_save_IFS |
| 50765 |
case $as_dir in #((( |
| 50766 |
'') as_dir=./ ;; |
| 50767 |
*/) ;; |
| 50768 |
*) as_dir=$as_dir/ ;; |
| 50769 |
esac |
| 50770 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 50771 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 50772 |
ac_cv_path_SOCAT="$as_dir$ac_word$ac_exec_ext" |
| 50773 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 50774 |
break 2 |
| 50775 |
fi |
| 50776 |
done |
| 50777 |
done |
| 50778 |
IFS=$as_save_IFS |
| 50779 |
|
| 50780 |
test -z "$ac_cv_path_SOCAT" && ac_cv_path_SOCAT="no" |
| 50781 |
;; |
| 50782 |
esac ;; |
| 50783 |
esac |
| 50784 |
fi |
| 50785 |
SOCAT=$ac_cv_path_SOCAT |
| 50786 |
if test -n "$SOCAT"; then |
| 50787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOCAT" >&5 |
| 50788 |
printf "%s\n" "$SOCAT" >&6; } |
| 50789 |
else |
| 50790 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 50791 |
printf "%s\n" "no" >&6; } |
| 50792 |
fi |
| 50793 |
|
| 50794 |
|
| 50795 |
if test "x${ac_cv_func_accept4}" = "xyes" && test "x${enable_asserts}" = "xno" |
| 50796 |
then : |
| 50797 |
|
| 50798 |
zzuf_socat_mandatory="yes" |
| 50799 |
if test "x$SOCAT" = x"no" |
| 50800 |
then : |
| 50801 |
run_zzuf_tests_MSG="no, socat not found, but required for fuzzing tests on this platform without asserts enabled" |
| 50802 |
else case e in #( |
| 50803 |
e) |
| 50804 |
run_zzuf_tests="yes" |
| 50805 |
run_zzuf_tests_MSG="yes, with zzuf and socat tools" |
| 50806 |
|
| 50807 |
;; |
| 50808 |
esac |
| 50809 |
fi |
| 50810 |
|
| 50811 |
elif test -n "${enabled_sanitizers}" |
| 50812 |
then : |
| 50813 |
|
| 50814 |
zzuf_socat_mandatory="yes" |
| 50815 |
if test "x$SOCAT" = x"no" |
| 50816 |
then : |
| 50817 |
run_zzuf_tests_MSG="no, socat not found, but required for fuzzing tests when sanitizers enabled" |
| 50818 |
else case e in #( |
| 50819 |
e) |
| 50820 |
run_zzuf_tests="yes" |
| 50821 |
run_zzuf_tests_MSG="yes, with zzuf and socat tools" |
| 50822 |
|
| 50823 |
;; |
| 50824 |
esac |
| 50825 |
fi |
| 50826 |
|
| 50827 |
else case e in #( |
| 50828 |
e) |
| 50829 |
run_zzuf_tests="yes" |
| 50830 |
run_zzuf_tests_MSG="yes, with zzuf tool" |
| 50831 |
|
| 50832 |
;; |
| 50833 |
esac |
| 50834 |
fi |
| 50835 |
|
| 50836 |
;; |
| 50837 |
esac |
| 50838 |
fi |
| 50839 |
|
| 50840 |
else case e in #( |
| 50841 |
e) |
| 50842 |
run_zzuf_tests="no" |
| 50843 |
run_zzuf_tests_MSG="no, tests with libcurl are not enabled" |
| 50844 |
|
| 50845 |
;; |
| 50846 |
esac |
| 50847 |
fi |
| 50848 |
|
| 50849 |
else case e in #( |
| 50850 |
e) |
| 50851 |
run_zzuf_tests="no" |
| 50852 |
run_zzuf_tests_MSG="no, heavy tests are not enabled" |
| 50853 |
|
| 50854 |
;; |
| 50855 |
esac |
| 50856 |
fi |
| 50857 |
if test "x$run_zzuf_tests" = "xyes"; then |
| 50858 |
RUN_ZZUF_TESTS_TRUE= |
| 50859 |
RUN_ZZUF_TESTS_FALSE='#' |
| 50860 |
else |
| 50861 |
RUN_ZZUF_TESTS_TRUE='#' |
| 50862 |
RUN_ZZUF_TESTS_FALSE= |
| 50863 |
fi |
| 50864 |
|
| 50865 |
if test "x$zzuf_socat_mandatory" = "xyes"; then |
| 50866 |
FORCE_USE_ZZUF_SOCAT_TRUE= |
| 50867 |
FORCE_USE_ZZUF_SOCAT_FALSE='#' |
| 50868 |
else |
| 50869 |
FORCE_USE_ZZUF_SOCAT_TRUE='#' |
| 50870 |
FORCE_USE_ZZUF_SOCAT_FALSE= |
| 50871 |
fi |
| 50872 |
|
| 50873 |
|
| 50874 |
# Final flags that may interfere with autoconf detections |
| 50875 |
case ${enable_build_type} in #( |
| 50876 |
debug|debugger) : |
| 50877 |
# Debug build or build for walking with debugger |
| 50878 |
CFLAGS="${user_CFLAGS}" |
| 50879 |
|
| 50880 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra-semi flag" >&5 |
| 50881 |
printf %s "checking whether $CC supports -Wextra-semi flag... " >&6; } |
| 50882 |
if test ${mhd_cv_cc_cfl_supp__Wextra_semi+y} |
| 50883 |
then : |
| 50884 |
printf %s "(cached) " >&6 |
| 50885 |
else case e in #( |
| 50886 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 50887 |
CFLAGS="${CFLAGS_ac} -Wextra-semi ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 50888 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 50889 |
ac_c_werror_flag=yes |
| 50890 |
# Reuse the same source for all the checks here |
| 50891 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50892 |
/* end confdefs.h. */ |
| 50893 |
|
| 50894 |
int main(void) |
| 50895 |
{ |
| 50896 |
return 0; |
| 50897 |
} |
| 50898 |
|
| 50899 |
_ACEOF |
| 50900 |
if ac_fn_c_try_link "$LINENO" |
| 50901 |
then : |
| 50902 |
mhd_cv_cc_cfl_supp__Wextra_semi="yes" |
| 50903 |
else case e in #( |
| 50904 |
e) # Compile and link failed with test flag added |
| 50905 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 50906 |
if ac_fn_c_try_link "$LINENO" |
| 50907 |
then : |
| 50908 |
mhd_cv_cc_cfl_supp__Wextra_semi="no" |
| 50909 |
else case e in #( |
| 50910 |
e) # Compile and link failed with test flag removed as well |
| 50911 |
CFLAGS="${CFLAGS_ac} -Wextra-semi ${mhd_check_cc_flag_save_CFLAGS}" |
| 50912 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 50913 |
if ac_fn_c_try_link "$LINENO" |
| 50914 |
then : |
| 50915 |
mhd_cv_cc_cfl_supp__Wextra_semi="yes" |
| 50916 |
else case e in #( |
| 50917 |
e) mhd_cv_cc_cfl_supp__Wextra_semi="no" ;; |
| 50918 |
esac |
| 50919 |
fi |
| 50920 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50921 |
conftest$ac_exeext |
| 50922 |
|
| 50923 |
;; |
| 50924 |
esac |
| 50925 |
fi |
| 50926 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50927 |
conftest$ac_exeext |
| 50928 |
|
| 50929 |
;; |
| 50930 |
esac |
| 50931 |
fi |
| 50932 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50933 |
conftest$ac_exeext |
| 50934 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 50935 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 50936 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 50937 |
|
| 50938 |
;; |
| 50939 |
esac |
| 50940 |
fi |
| 50941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wextra_semi" >&5 |
| 50942 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wextra_semi" >&6; } |
| 50943 |
if test "x$mhd_cv_cc_cfl_supp__Wextra_semi" = x"yes" |
| 50944 |
then : |
| 50945 |
if test -z "${CFLAGS_ac}" |
| 50946 |
then : |
| 50947 |
CFLAGS_ac="-Wextra-semi" |
| 50948 |
else case e in #( |
| 50949 |
e) CFLAGS_ac="${CFLAGS_ac} -Wextra-semi" ;; |
| 50950 |
esac |
| 50951 |
fi |
| 50952 |
|
| 50953 |
|
| 50954 |
fi |
| 50955 |
|
| 50956 |
|
| 50957 |
|
| 50958 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -Wextra-semi-stmt flag" >&5 |
| 50959 |
printf %s "checking whether $CC supports -Wextra-semi-stmt flag... " >&6; } |
| 50960 |
if test ${mhd_cv_cc_cfl_supp__Wextra_semi_stmt+y} |
| 50961 |
then : |
| 50962 |
printf %s "(cached) " >&6 |
| 50963 |
else case e in #( |
| 50964 |
e) mhd_check_cc_flag_save_CFLAGS="${CFLAGS}" |
| 50965 |
CFLAGS="${CFLAGS_ac} -Wextra-semi-stmt ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 50966 |
mhd_check_cc_flag_save_c_werror_flag="$ac_c_werror_flag" |
| 50967 |
ac_c_werror_flag=yes |
| 50968 |
# Reuse the same source for all the checks here |
| 50969 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 50970 |
/* end confdefs.h. */ |
| 50971 |
|
| 50972 |
int main(void) |
| 50973 |
{ |
| 50974 |
return 0; |
| 50975 |
} |
| 50976 |
|
| 50977 |
_ACEOF |
| 50978 |
if ac_fn_c_try_link "$LINENO" |
| 50979 |
then : |
| 50980 |
mhd_cv_cc_cfl_supp__Wextra_semi_stmt="yes" |
| 50981 |
else case e in #( |
| 50982 |
e) # Compile and link failed with test flag added |
| 50983 |
CFLAGS="${CFLAGS_ac} ${mhd_check_cc_flag_save_CFLAGS} ${mhd_xFLAGS_params_warn}" |
| 50984 |
if ac_fn_c_try_link "$LINENO" |
| 50985 |
then : |
| 50986 |
mhd_cv_cc_cfl_supp__Wextra_semi_stmt="no" |
| 50987 |
else case e in #( |
| 50988 |
e) # Compile and link failed with test flag removed as well |
| 50989 |
CFLAGS="${CFLAGS_ac} -Wextra-semi-stmt ${mhd_check_cc_flag_save_CFLAGS}" |
| 50990 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 50991 |
if ac_fn_c_try_link "$LINENO" |
| 50992 |
then : |
| 50993 |
mhd_cv_cc_cfl_supp__Wextra_semi_stmt="yes" |
| 50994 |
else case e in #( |
| 50995 |
e) mhd_cv_cc_cfl_supp__Wextra_semi_stmt="no" ;; |
| 50996 |
esac |
| 50997 |
fi |
| 50998 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 50999 |
conftest$ac_exeext |
| 51000 |
|
| 51001 |
;; |
| 51002 |
esac |
| 51003 |
fi |
| 51004 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 51005 |
conftest$ac_exeext |
| 51006 |
|
| 51007 |
;; |
| 51008 |
esac |
| 51009 |
fi |
| 51010 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 51011 |
conftest$ac_exeext |
| 51012 |
ac_c_werror_flag="$mhd_check_cc_flag_save_c_werror_flag" |
| 51013 |
CFLAGS="${mhd_check_cc_flag_save_CFLAGS}" |
| 51014 |
{ mhd_check_cc_flag_save_CFLAGS=; unset mhd_check_cc_flag_save_CFLAGS;} |
| 51015 |
|
| 51016 |
;; |
| 51017 |
esac |
| 51018 |
fi |
| 51019 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mhd_cv_cc_cfl_supp__Wextra_semi_stmt" >&5 |
| 51020 |
printf "%s\n" "$mhd_cv_cc_cfl_supp__Wextra_semi_stmt" >&6; } |
| 51021 |
if test "x$mhd_cv_cc_cfl_supp__Wextra_semi_stmt" = x"yes" |
| 51022 |
then : |
| 51023 |
if test -z "${CFLAGS_ac}" |
| 51024 |
then : |
| 51025 |
CFLAGS_ac="-Wextra-semi-stmt" |
| 51026 |
else case e in #( |
| 51027 |
e) CFLAGS_ac="${CFLAGS_ac} -Wextra-semi-stmt" ;; |
| 51028 |
esac |
| 51029 |
fi |
| 51030 |
|
| 51031 |
|
| 51032 |
fi |
| 51033 |
|
| 51034 |
|
| 51035 |
|
| 51036 |
CFLAGS="${CFLAGS_ac} ${user_CFLAGS}" |
| 51037 |
|
| 51038 |
;; #( |
| 51039 |
*) : |
| 51040 |
;; |
| 51041 |
esac |
| 51042 |
|
| 51043 |
if test -n "$enabled_sanitizers" && test "x$mhd_cv_cc_sanitizer_works" = "xyes"; then |
| 51044 |
USE_SANITIZERS_TRUE= |
| 51045 |
USE_SANITIZERS_FALSE='#' |
| 51046 |
else |
| 51047 |
USE_SANITIZERS_TRUE='#' |
| 51048 |
USE_SANITIZERS_FALSE= |
| 51049 |
fi |
| 51050 |
|
| 51051 |
|
| 51052 |
|
| 51053 |
|
| 51054 |
|
| 51055 |
|
| 51056 |
MHD_LIB_LDFLAGS="$MHD_LIB_LDFLAGS" |
| 51057 |
|
| 51058 |
|
| 51059 |
|
| 51060 |
|
| 51061 |
|
| 51062 |
|
| 51063 |
|
| 51064 |
|
| 51065 |
|
| 51066 |
|
| 51067 |
|
| 51068 |
|
| 51069 |
|
| 51070 |
# for pkg-config |
| 51071 |
|
| 51072 |
|
| 51073 |
|
| 51074 |
# Restore flags as set by the user |
| 51075 |
CFLAGS="${user_CFLAGS}" |
| 51076 |
LDFLAGS="${user_LDFLAGS}" |
| 51077 |
CPPFLAGS="${user_CPPFLAGS}" |
| 51078 |
|
| 51079 |
|
| 51080 |
|
| 51081 |
|
| 51082 |
|
| 51083 |
# Configure-defined flags |
| 51084 |
|
| 51085 |
|
| 51086 |
|
| 51087 |
|
| 51088 |
# Used for 'po' directory staff |
| 51089 |
|
| 51090 |
|
| 51091 |
|
| 51092 |
ac_config_files="$ac_config_files po/po-configure.ac" |
| 51093 |
|
| 51094 |
ac_config_commands="$ac_config_commands po/Makefile.in" |
| 51095 |
|
| 51096 |
ac_config_commands="$ac_config_commands po-directories" |
| 51097 |
|
| 51098 |
|
| 51099 |
# We define the paths here, because MinGW/GCC expands paths |
| 51100 |
# passed through the command line ("-DDIR=..."). This would |
| 51101 |
# lead to hard-coded paths ("C:\mingw\mingw\bin...") that do |
| 51102 |
# not contain the actual installation. |
| 51103 |
|
| 51104 |
prefix_NONE= |
| 51105 |
exec_prefix_NONE= |
| 51106 |
test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix |
| 51107 |
test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix |
| 51108 |
eval ac_define_dir="\"$libdir/libmicrohttpd\"" |
| 51109 |
eval ac_define_dir="\"$ac_define_dir\"" |
| 51110 |
MHD_PLUGIN_INSTALL_PREFIX="$ac_define_dir" |
| 51111 |
|
| 51112 |
|
| 51113 |
printf "%s\n" "#define MHD_PLUGIN_INSTALL_PREFIX \"$ac_define_dir\"" >>confdefs.h |
| 51114 |
|
| 51115 |
test "$prefix_NONE" && prefix=NONE |
| 51116 |
test "$exec_prefix_NONE" && exec_prefix=NONE |
| 51117 |
|
| 51118 |
|
| 51119 |
|
| 51120 |
|
| 51121 |
|
| 51122 |
# should experimental code be compiled (code that may not yet compile)? |
| 51123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile experimental code" >&5 |
| 51124 |
printf %s "checking whether to compile experimental code... " >&6; } |
| 51125 |
# Check whether --enable-experimental was given. |
| 51126 |
if test ${enable_experimental+y} |
| 51127 |
then : |
| 51128 |
enableval=$enable_experimental; enable_experimental=${enableval} |
| 51129 |
else case e in #( |
| 51130 |
e) enable_experimental=no ;; |
| 51131 |
esac |
| 51132 |
fi |
| 51133 |
|
| 51134 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_experimental" >&5 |
| 51135 |
printf "%s\n" "$enable_experimental" >&6; } |
| 51136 |
if test "x$enable_experimental" = "xyes"; then |
| 51137 |
HAVE_EXPERIMENTAL_TRUE= |
| 51138 |
HAVE_EXPERIMENTAL_FALSE='#' |
| 51139 |
else |
| 51140 |
HAVE_EXPERIMENTAL_TRUE='#' |
| 51141 |
HAVE_EXPERIMENTAL_FALSE= |
| 51142 |
fi |
| 51143 |
|
| 51144 |
|
| 51145 |
|
| 51146 |
ac_config_files="$ac_config_files libmicrohttpd.pc w32/common/microhttpd_dll_res_vc.rc Makefile contrib/Makefile doc/Makefile doc/doxygen/libmicrohttpd.doxy doc/doxygen/Makefile doc/examples/Makefile m4/Makefile src/Makefile src/include/Makefile src/microhttpd/Makefile src/examples/Makefile src/tools/Makefile src/testcurl/Makefile src/testcurl/https/Makefile src/testzzuf/Makefile" |
| 51147 |
|
| 51148 |
cat >confcache <<\_ACEOF |
| 51149 |
# This file is a shell script that caches the results of configure |
| 51150 |
# tests run on this system so they can be shared between configure |
| 51151 |
# scripts and configure runs, see configure's option --config-cache. |
| 51152 |
# It is not useful on other systems. If it contains results you don't |
| 51153 |
# want to keep, you may remove or edit it. |
| 51154 |
# |
| 51155 |
# config.status only pays attention to the cache file if you give it |
| 51156 |
# the --recheck option to rerun configure. |
| 51157 |
# |
| 51158 |
# 'ac_cv_env_foo' variables (set or unset) will be overridden when |
| 51159 |
# loading this file, other *unset* 'ac_cv_foo' will be assigned the |
| 51160 |
# following values. |
| 51161 |
|
| 51162 |
_ACEOF |
| 51163 |
|
| 51164 |
# The following way of writing the cache mishandles newlines in values, |
| 51165 |
# but we know of no workaround that is simple, portable, and efficient. |
| 51166 |
# So, we kill variables containing newlines. |
| 51167 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 51168 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 51169 |
( |
| 51170 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 51171 |
eval ac_val=\$$ac_var |
| 51172 |
case $ac_val in #( |
| 51173 |
*${as_nl}*) |
| 51174 |
case $ac_var in #( |
| 51175 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 51176 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 51177 |
esac |
| 51178 |
case $ac_var in #( |
| 51179 |
_ | IFS | as_nl) ;; #( |
| 51180 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 51181 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 51182 |
esac ;; |
| 51183 |
esac |
| 51184 |
done |
| 51185 |
|
| 51186 |
(set) 2>&1 | |
| 51187 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 51188 |
*${as_nl}ac_space=\ *) |
| 51189 |
# 'set' does not quote correctly, so add quotes: double-quote |
| 51190 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 51191 |
sed -n \ |
| 51192 |
"s/'/'\\\\''/g; |
| 51193 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 51194 |
;; #( |
| 51195 |
*) |
| 51196 |
# 'set' quotes correctly as required by POSIX, so do not add quotes. |
| 51197 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 51198 |
;; |
| 51199 |
esac | |
| 51200 |
sort |
| 51201 |
) | |
| 51202 |
sed ' |
| 51203 |
/^ac_cv_env_/b end |
| 51204 |
t clear |
| 51205 |
:clear |
| 51206 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 51207 |
t end |
| 51208 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 51209 |
:end' >>confcache |
| 51210 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 51211 |
if test -w "$cache_file"; then |
| 51212 |
if test "x$cache_file" != "x/dev/null"; then |
| 51213 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 51214 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 51215 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 51216 |
cat confcache >"$cache_file" |
| 51217 |
else |
| 51218 |
case $cache_file in #( |
| 51219 |
*/* | ?:*) |
| 51220 |
mv -f confcache "$cache_file"$$ && |
| 51221 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 51222 |
*) |
| 51223 |
mv -f confcache "$cache_file" ;; |
| 51224 |
esac |
| 51225 |
fi |
| 51226 |
fi |
| 51227 |
else |
| 51228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 51229 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 51230 |
fi |
| 51231 |
fi |
| 51232 |
rm -f confcache |
| 51233 |
|
| 51234 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 51235 |
# Let make expand exec_prefix. |
| 51236 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 51237 |
|
| 51238 |
DEFS=-DHAVE_CONFIG_H |
| 51239 |
|
| 51240 |
ac_libobjs= |
| 51241 |
ac_ltlibobjs= |
| 51242 |
U= |
| 51243 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 51244 |
# 1. Remove the extension, and $U if already installed. |
| 51245 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 51246 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 51247 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 51248 |
# will be set to the directory where LIBOBJS objects are built. |
| 51249 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 51250 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 51251 |
done |
| 51252 |
LIBOBJS=$ac_libobjs |
| 51253 |
|
| 51254 |
LTLIBOBJS=$ac_ltlibobjs |
| 51255 |
|
| 51256 |
|
| 51257 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
| 51258 |
printf %s "checking that generated files are newer than configure... " >&6; } |
| 51259 |
if test -n "$am_sleep_pid"; then |
| 51260 |
# Hide warnings about reused PIDs. |
| 51261 |
wait $am_sleep_pid 2>/dev/null |
| 51262 |
fi |
| 51263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 |
| 51264 |
printf "%s\n" "done" >&6; } |
| 51265 |
case $enable_silent_rules in # ((( |
| 51266 |
yes) AM_DEFAULT_VERBOSITY=0;; |
| 51267 |
no) AM_DEFAULT_VERBOSITY=1;; |
| 51268 |
esac |
| 51269 |
if test $am_cv_make_support_nested_variables = yes; then |
| 51270 |
AM_V='$(V)' |
| 51271 |
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' |
| 51272 |
else |
| 51273 |
AM_V=$AM_DEFAULT_VERBOSITY |
| 51274 |
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY |
| 51275 |
fi |
| 51276 |
|
| 51277 |
if test -n "$EXEEXT"; then |
| 51278 |
am__EXEEXT_TRUE= |
| 51279 |
am__EXEEXT_FALSE='#' |
| 51280 |
else |
| 51281 |
am__EXEEXT_TRUE='#' |
| 51282 |
am__EXEEXT_FALSE= |
| 51283 |
fi |
| 51284 |
|
| 51285 |
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 51286 |
as_fn_error $? "conditional \"AMDEP\" was never defined. |
| 51287 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51288 |
fi |
| 51289 |
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 51290 |
as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
| 51291 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51292 |
fi |
| 51293 |
# Check whether --enable-year2038 was given. |
| 51294 |
if test ${enable_year2038+y} |
| 51295 |
then : |
| 51296 |
enableval=$enable_year2038; |
| 51297 |
fi |
| 51298 |
|
| 51299 |
if test -z "${MHD_USE_SYS_TSEARCH_TRUE}" && test -z "${MHD_USE_SYS_TSEARCH_FALSE}"; then |
| 51300 |
as_fn_error $? "conditional \"MHD_USE_SYS_TSEARCH\" was never defined. |
| 51301 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51302 |
fi |
| 51303 |
if test -z "${CYGWIN_TARGET_TRUE}" && test -z "${CYGWIN_TARGET_FALSE}"; then |
| 51304 |
as_fn_error $? "conditional \"CYGWIN_TARGET\" was never defined. |
| 51305 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51306 |
fi |
| 51307 |
if test -z "${HAVE_POSIX_THREADS_TRUE}" && test -z "${HAVE_POSIX_THREADS_FALSE}"; then |
| 51308 |
as_fn_error $? "conditional \"HAVE_POSIX_THREADS\" was never defined. |
| 51309 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51310 |
fi |
| 51311 |
if test -z "${USE_POSIX_THREADS_TRUE}" && test -z "${USE_POSIX_THREADS_FALSE}"; then |
| 51312 |
as_fn_error $? "conditional \"USE_POSIX_THREADS\" was never defined. |
| 51313 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51314 |
fi |
| 51315 |
if test -z "${USE_W32_THREADS_TRUE}" && test -z "${USE_W32_THREADS_FALSE}"; then |
| 51316 |
as_fn_error $? "conditional \"USE_W32_THREADS\" was never defined. |
| 51317 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51318 |
fi |
| 51319 |
if test -z "${USE_THREADS_TRUE}" && test -z "${USE_THREADS_FALSE}"; then |
| 51320 |
as_fn_error $? "conditional \"USE_THREADS\" was never defined. |
| 51321 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51322 |
fi |
| 51323 |
if test -z "${DISABLE_THREADS_TRUE}" && test -z "${DISABLE_THREADS_FALSE}"; then |
| 51324 |
as_fn_error $? "conditional \"DISABLE_THREADS\" was never defined. |
| 51325 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51326 |
fi |
| 51327 |
if test -z "${HAVE_W32_TRUE}" && test -z "${HAVE_W32_FALSE}"; then |
| 51328 |
as_fn_error $? "conditional \"HAVE_W32\" was never defined. |
| 51329 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51330 |
fi |
| 51331 |
if test -z "${W32_SHARED_LIB_EXP_TRUE}" && test -z "${W32_SHARED_LIB_EXP_FALSE}"; then |
| 51332 |
as_fn_error $? "conditional \"W32_SHARED_LIB_EXP\" was never defined. |
| 51333 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51334 |
fi |
| 51335 |
if test -z "${USE_MS_LIB_TOOL_TRUE}" && test -z "${USE_MS_LIB_TOOL_FALSE}"; then |
| 51336 |
as_fn_error $? "conditional \"USE_MS_LIB_TOOL\" was never defined. |
| 51337 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51338 |
fi |
| 51339 |
if test -z "${USE_EXPORT_FILE_TRUE}" && test -z "${USE_EXPORT_FILE_FALSE}"; then |
| 51340 |
as_fn_error $? "conditional \"USE_EXPORT_FILE\" was never defined. |
| 51341 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51342 |
fi |
| 51343 |
if test -z "${HAVE_LISTEN_SHUTDOWN_TRUE}" && test -z "${HAVE_LISTEN_SHUTDOWN_FALSE}"; then |
| 51344 |
as_fn_error $? "conditional \"HAVE_LISTEN_SHUTDOWN\" was never defined. |
| 51345 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51346 |
fi |
| 51347 |
if test -z "${NEED_SYS_FD_SET_SIZE_VALUE_TRUE}" && test -z "${NEED_SYS_FD_SET_SIZE_VALUE_FALSE}"; then |
| 51348 |
as_fn_error $? "conditional \"NEED_SYS_FD_SET_SIZE_VALUE\" was never defined. |
| 51349 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51350 |
fi |
| 51351 |
|
| 51352 |
if test -z "${HAVE_CURL_BINARY_TRUE}" && test -z "${HAVE_CURL_BINARY_FALSE}"; then |
| 51353 |
as_fn_error $? "conditional \"HAVE_CURL_BINARY\" was never defined. |
| 51354 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51355 |
fi |
| 51356 |
if test -z "${HAVE_MAKEINFO_BINARY_TRUE}" && test -z "${HAVE_MAKEINFO_BINARY_FALSE}"; then |
| 51357 |
as_fn_error $? "conditional \"HAVE_MAKEINFO_BINARY\" was never defined. |
| 51358 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51359 |
fi |
| 51360 |
if test -z "${W32_STATIC_LIB_TRUE}" && test -z "${W32_STATIC_LIB_FALSE}"; then |
| 51361 |
as_fn_error $? "conditional \"W32_STATIC_LIB\" was never defined. |
| 51362 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51363 |
fi |
| 51364 |
if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then |
| 51365 |
as_fn_error $? "conditional \"BUILD_DOC\" was never defined. |
| 51366 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51367 |
fi |
| 51368 |
if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then |
| 51369 |
as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. |
| 51370 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51371 |
fi |
| 51372 |
if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then |
| 51373 |
as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined. |
| 51374 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51375 |
fi |
| 51376 |
if test -z "${HEAVY_TESTS_TRUE}" && test -z "${HEAVY_TESTS_FALSE}"; then |
| 51377 |
as_fn_error $? "conditional \"HEAVY_TESTS\" was never defined. |
| 51378 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51379 |
fi |
| 51380 |
if test -z "${VHEAVY_TESTS_TRUE}" && test -z "${VHEAVY_TESTS_FALSE}"; then |
| 51381 |
as_fn_error $? "conditional \"VHEAVY_TESTS\" was never defined. |
| 51382 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51383 |
fi |
| 51384 |
if test -z "${TESTS_STRESS_OS_TRUE}" && test -z "${TESTS_STRESS_OS_FALSE}"; then |
| 51385 |
as_fn_error $? "conditional \"TESTS_STRESS_OS\" was never defined. |
| 51386 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51387 |
fi |
| 51388 |
if test -z "${MHD_HAVE_EPOLL_TRUE}" && test -z "${MHD_HAVE_EPOLL_FALSE}"; then |
| 51389 |
as_fn_error $? "conditional \"MHD_HAVE_EPOLL\" was never defined. |
| 51390 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51391 |
fi |
| 51392 |
if test -z "${MHD_HAVE_TLS_PLUGIN_TRUE}" && test -z "${MHD_HAVE_TLS_PLUGIN_FALSE}"; then |
| 51393 |
as_fn_error $? "conditional \"MHD_HAVE_TLS_PLUGIN\" was never defined. |
| 51394 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51395 |
fi |
| 51396 |
if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then |
| 51397 |
as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined. |
| 51398 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51399 |
fi |
| 51400 |
if test -z "${HAVE_JANSSON_TRUE}" && test -z "${HAVE_JANSSON_FALSE}"; then |
| 51401 |
as_fn_error $? "conditional \"HAVE_JANSSON\" was never defined. |
| 51402 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51403 |
fi |
| 51404 |
if test -z "${RUN_LIBCURL_TESTS_TRUE}" && test -z "${RUN_LIBCURL_TESTS_FALSE}"; then |
| 51405 |
as_fn_error $? "conditional \"RUN_LIBCURL_TESTS\" was never defined. |
| 51406 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51407 |
fi |
| 51408 |
if test -z "${MHD_HAVE_LIBMAGIC_TRUE}" && test -z "${MHD_HAVE_LIBMAGIC_FALSE}"; then |
| 51409 |
as_fn_error $? "conditional \"MHD_HAVE_LIBMAGIC\" was never defined. |
| 51410 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51411 |
fi |
| 51412 |
if test -z "${HAVE_MESSAGES_TRUE}" && test -z "${HAVE_MESSAGES_FALSE}"; then |
| 51413 |
as_fn_error $? "conditional \"HAVE_MESSAGES\" was never defined. |
| 51414 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51415 |
fi |
| 51416 |
if test -z "${HAVE_POSTPROCESSOR_TRUE}" && test -z "${HAVE_POSTPROCESSOR_FALSE}"; then |
| 51417 |
as_fn_error $? "conditional \"HAVE_POSTPROCESSOR\" was never defined. |
| 51418 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51419 |
fi |
| 51420 |
if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then |
| 51421 |
as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined. |
| 51422 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51423 |
fi |
| 51424 |
if test -z "${HAVE_GNUTLS_SNI_TRUE}" && test -z "${HAVE_GNUTLS_SNI_FALSE}"; then |
| 51425 |
as_fn_error $? "conditional \"HAVE_GNUTLS_SNI\" was never defined. |
| 51426 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51427 |
fi |
| 51428 |
if test -z "${ENABLE_HTTPS_TRUE}" && test -z "${ENABLE_HTTPS_FALSE}"; then |
| 51429 |
as_fn_error $? "conditional \"ENABLE_HTTPS\" was never defined. |
| 51430 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51431 |
fi |
| 51432 |
if test -z "${HTTPS_REQUIRE_GCRYPT_TRUE}" && test -z "${HTTPS_REQUIRE_GCRYPT_FALSE}"; then |
| 51433 |
as_fn_error $? "conditional \"HTTPS_REQUIRE_GCRYPT\" was never defined. |
| 51434 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51435 |
fi |
| 51436 |
if test -z "${HAVE_GNUTLS_MTHREAD_BROKEN_TRUE}" && test -z "${HAVE_GNUTLS_MTHREAD_BROKEN_FALSE}"; then |
| 51437 |
as_fn_error $? "conditional \"HAVE_GNUTLS_MTHREAD_BROKEN\" was never defined. |
| 51438 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51439 |
fi |
| 51440 |
if test -z "${USE_UPGRADE_TLS_TESTS_TRUE}" && test -z "${USE_UPGRADE_TLS_TESTS_FALSE}"; then |
| 51441 |
as_fn_error $? "conditional \"USE_UPGRADE_TLS_TESTS\" was never defined. |
| 51442 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51443 |
fi |
| 51444 |
if test -z "${ENABLE_BAUTH_TRUE}" && test -z "${ENABLE_BAUTH_FALSE}"; then |
| 51445 |
as_fn_error $? "conditional \"ENABLE_BAUTH\" was never defined. |
| 51446 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51447 |
fi |
| 51448 |
if test -z "${ENABLE_DAUTH_TRUE}" && test -z "${ENABLE_DAUTH_FALSE}"; then |
| 51449 |
as_fn_error $? "conditional \"ENABLE_DAUTH\" was never defined. |
| 51450 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51451 |
fi |
| 51452 |
if test -z "${HAVE_ANYAUTH_TRUE}" && test -z "${HAVE_ANYAUTH_FALSE}"; then |
| 51453 |
as_fn_error $? "conditional \"HAVE_ANYAUTH\" was never defined. |
| 51454 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51455 |
fi |
| 51456 |
if test -z "${ENABLE_UPGRADE_TRUE}" && test -z "${ENABLE_UPGRADE_FALSE}"; then |
| 51457 |
as_fn_error $? "conditional \"ENABLE_UPGRADE\" was never defined. |
| 51458 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51459 |
fi |
| 51460 |
if test -z "${ENABLE_COOKIE_TRUE}" && test -z "${ENABLE_COOKIE_FALSE}"; then |
| 51461 |
as_fn_error $? "conditional \"ENABLE_COOKIE\" was never defined. |
| 51462 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51463 |
fi |
| 51464 |
if test -z "${ENABLE_MD5_TRUE}" && test -z "${ENABLE_MD5_FALSE}"; then |
| 51465 |
as_fn_error $? "conditional \"ENABLE_MD5\" was never defined. |
| 51466 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51467 |
fi |
| 51468 |
if test -z "${ENABLE_MD5_EXT_TRUE}" && test -z "${ENABLE_MD5_EXT_FALSE}"; then |
| 51469 |
as_fn_error $? "conditional \"ENABLE_MD5_EXT\" was never defined. |
| 51470 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51471 |
fi |
| 51472 |
if test -z "${ENABLE_SHA256_TRUE}" && test -z "${ENABLE_SHA256_FALSE}"; then |
| 51473 |
as_fn_error $? "conditional \"ENABLE_SHA256\" was never defined. |
| 51474 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51475 |
fi |
| 51476 |
if test -z "${ENABLE_SHA256_EXT_TRUE}" && test -z "${ENABLE_SHA256_EXT_FALSE}"; then |
| 51477 |
as_fn_error $? "conditional \"ENABLE_SHA256_EXT\" was never defined. |
| 51478 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51479 |
fi |
| 51480 |
if test -z "${ENABLE_SHA512_256_TRUE}" && test -z "${ENABLE_SHA512_256_FALSE}"; then |
| 51481 |
as_fn_error $? "conditional \"ENABLE_SHA512_256\" was never defined. |
| 51482 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51483 |
fi |
| 51484 |
if test -z "${HAVE_FORK_WAITPID_TRUE}" && test -z "${HAVE_FORK_WAITPID_FALSE}"; then |
| 51485 |
as_fn_error $? "conditional \"HAVE_FORK_WAITPID\" was never defined. |
| 51486 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51487 |
fi |
| 51488 |
if test -z "${USE_COVERAGE_TRUE}" && test -z "${USE_COVERAGE_FALSE}"; then |
| 51489 |
as_fn_error $? "conditional \"USE_COVERAGE\" was never defined. |
| 51490 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51491 |
fi |
| 51492 |
if test -z "${RUN_ZZUF_TESTS_TRUE}" && test -z "${RUN_ZZUF_TESTS_FALSE}"; then |
| 51493 |
as_fn_error $? "conditional \"RUN_ZZUF_TESTS\" was never defined. |
| 51494 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51495 |
fi |
| 51496 |
if test -z "${FORCE_USE_ZZUF_SOCAT_TRUE}" && test -z "${FORCE_USE_ZZUF_SOCAT_FALSE}"; then |
| 51497 |
as_fn_error $? "conditional \"FORCE_USE_ZZUF_SOCAT\" was never defined. |
| 51498 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51499 |
fi |
| 51500 |
if test -z "${USE_SANITIZERS_TRUE}" && test -z "${USE_SANITIZERS_FALSE}"; then |
| 51501 |
as_fn_error $? "conditional \"USE_SANITIZERS\" was never defined. |
| 51502 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51503 |
fi |
| 51504 |
if test -z "${HAVE_EXPERIMENTAL_TRUE}" && test -z "${HAVE_EXPERIMENTAL_FALSE}"; then |
| 51505 |
as_fn_error $? "conditional \"HAVE_EXPERIMENTAL\" was never defined. |
| 51506 |
Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 51507 |
fi |
| 51508 |
|
| 51509 |
: "${CONFIG_STATUS=./config.status}" |
| 51510 |
ac_write_fail=0 |
| 51511 |
ac_clean_files_save=$ac_clean_files |
| 51512 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 51513 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 51514 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 51515 |
as_write_fail=0 |
| 51516 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 51517 |
#! $SHELL |
| 51518 |
# Generated by $as_me. |
| 51519 |
# Run this file to recreate the current configuration. |
| 51520 |
# Compiler output produced by configure, useful for debugging |
| 51521 |
# configure, is in config.log if it exists. |
| 51522 |
|
| 51523 |
debug=false |
| 51524 |
ac_cs_recheck=false |
| 51525 |
ac_cs_silent=false |
| 51526 |
|
| 51527 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 51528 |
export SHELL |
| 51529 |
_ASEOF |
| 51530 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 51531 |
## -------------------- ## |
| 51532 |
## M4sh Initialization. ## |
| 51533 |
## -------------------- ## |
| 51534 |
|
| 51535 |
# Be more Bourne compatible |
| 51536 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 51537 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 51538 |
then : |
| 51539 |
emulate sh |
| 51540 |
NULLCMD=: |
| 51541 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 51542 |
# is contrary to our usage. Disable this feature. |
| 51543 |
alias -g '${1+"$@"}'='"$@"' |
| 51544 |
setopt NO_GLOB_SUBST |
| 51545 |
else case e in #( |
| 51546 |
e) case `(set -o) 2>/dev/null` in #( |
| 51547 |
*posix*) : |
| 51548 |
set -o posix ;; #( |
| 51549 |
*) : |
| 51550 |
;; |
| 51551 |
esac ;; |
| 51552 |
esac |
| 51553 |
fi |
| 51554 |
|
| 51555 |
|
| 51556 |
|
| 51557 |
# Reset variables that may have inherited troublesome values from |
| 51558 |
# the environment. |
| 51559 |
|
| 51560 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 51561 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 51562 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 51563 |
# Quoting is to prevent editors from complaining about space-tab. |
| 51564 |
as_nl=' |
| 51565 |
' |
| 51566 |
export as_nl |
| 51567 |
IFS=" "" $as_nl" |
| 51568 |
|
| 51569 |
PS1='$ ' |
| 51570 |
PS2='> ' |
| 51571 |
PS4='+ ' |
| 51572 |
|
| 51573 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 51574 |
LC_ALL=C |
| 51575 |
export LC_ALL |
| 51576 |
LANGUAGE=C |
| 51577 |
export LANGUAGE |
| 51578 |
|
| 51579 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 51580 |
# to be unset--not just set to an empty or harmless value--now, to |
| 51581 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 51582 |
# also avoids known problems related to "unset" and subshell syntax |
| 51583 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 51584 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 51585 |
do eval test \${$as_var+y} \ |
| 51586 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 51587 |
done |
| 51588 |
|
| 51589 |
# Ensure that fds 0, 1, and 2 are open. |
| 51590 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 51591 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 51592 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 51593 |
|
| 51594 |
# The user is always right. |
| 51595 |
if ${PATH_SEPARATOR+false} :; then |
| 51596 |
PATH_SEPARATOR=: |
| 51597 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 51598 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 51599 |
PATH_SEPARATOR=';' |
| 51600 |
} |
| 51601 |
fi |
| 51602 |
|
| 51603 |
|
| 51604 |
# Find who we are. Look in the path if we contain no directory separator. |
| 51605 |
as_myself= |
| 51606 |
case $0 in #(( |
| 51607 |
*[\\/]* ) as_myself=$0 ;; |
| 51608 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 51609 |
for as_dir in $PATH |
| 51610 |
do |
| 51611 |
IFS=$as_save_IFS |
| 51612 |
case $as_dir in #((( |
| 51613 |
'') as_dir=./ ;; |
| 51614 |
*/) ;; |
| 51615 |
*) as_dir=$as_dir/ ;; |
| 51616 |
esac |
| 51617 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 51618 |
done |
| 51619 |
IFS=$as_save_IFS |
| 51620 |
|
| 51621 |
;; |
| 51622 |
esac |
| 51623 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 51624 |
# in which case we are not to be found in the path. |
| 51625 |
if test "x$as_myself" = x; then |
| 51626 |
as_myself=$0 |
| 51627 |
fi |
| 51628 |
if test ! -f "$as_myself"; then |
| 51629 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 51630 |
exit 1 |
| 51631 |
fi |
| 51632 |
|
| 51633 |
|
| 51634 |
|
| 51635 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 51636 |
# ---------------------------------------- |
| 51637 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 51638 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 51639 |
# script with STATUS, using 1 if that was 0. |
| 51640 |
as_fn_error () |
| 51641 |
{ |
| 51642 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 51643 |
if test "$4"; then |
| 51644 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 51645 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 51646 |
fi |
| 51647 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 51648 |
as_fn_exit $as_status |
| 51649 |
} # as_fn_error |
| 51650 |
|
| 51651 |
|
| 51652 |
# as_fn_set_status STATUS |
| 51653 |
# ----------------------- |
| 51654 |
# Set $? to STATUS, without forking. |
| 51655 |
as_fn_set_status () |
| 51656 |
{ |
| 51657 |
return $1 |
| 51658 |
} # as_fn_set_status |
| 51659 |
|
| 51660 |
# as_fn_exit STATUS |
| 51661 |
# ----------------- |
| 51662 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 51663 |
as_fn_exit () |
| 51664 |
{ |
| 51665 |
set +e |
| 51666 |
as_fn_set_status $1 |
| 51667 |
exit $1 |
| 51668 |
} # as_fn_exit |
| 51669 |
|
| 51670 |
# as_fn_unset VAR |
| 51671 |
# --------------- |
| 51672 |
# Portably unset VAR. |
| 51673 |
as_fn_unset () |
| 51674 |
{ |
| 51675 |
{ eval $1=; unset $1;} |
| 51676 |
} |
| 51677 |
as_unset=as_fn_unset |
| 51678 |
|
| 51679 |
# as_fn_append VAR VALUE |
| 51680 |
# ---------------------- |
| 51681 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 51682 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 51683 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 51684 |
# implementations. |
| 51685 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 51686 |
then : |
| 51687 |
eval 'as_fn_append () |
| 51688 |
{ |
| 51689 |
eval $1+=\$2 |
| 51690 |
}' |
| 51691 |
else case e in #( |
| 51692 |
e) as_fn_append () |
| 51693 |
{ |
| 51694 |
eval $1=\$$1\$2 |
| 51695 |
} ;; |
| 51696 |
esac |
| 51697 |
fi # as_fn_append |
| 51698 |
|
| 51699 |
# as_fn_arith ARG... |
| 51700 |
# ------------------ |
| 51701 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 51702 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 51703 |
# must be portable across $(()) and expr. |
| 51704 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 51705 |
then : |
| 51706 |
eval 'as_fn_arith () |
| 51707 |
{ |
| 51708 |
as_val=$(( $* )) |
| 51709 |
}' |
| 51710 |
else case e in #( |
| 51711 |
e) as_fn_arith () |
| 51712 |
{ |
| 51713 |
as_val=`expr "$@" || test $? -eq 1` |
| 51714 |
} ;; |
| 51715 |
esac |
| 51716 |
fi # as_fn_arith |
| 51717 |
|
| 51718 |
|
| 51719 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 51720 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 51721 |
as_expr=expr |
| 51722 |
else |
| 51723 |
as_expr=false |
| 51724 |
fi |
| 51725 |
|
| 51726 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 51727 |
as_basename=basename |
| 51728 |
else |
| 51729 |
as_basename=false |
| 51730 |
fi |
| 51731 |
|
| 51732 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 51733 |
as_dirname=dirname |
| 51734 |
else |
| 51735 |
as_dirname=false |
| 51736 |
fi |
| 51737 |
|
| 51738 |
as_me=`$as_basename -- "$0" || |
| 51739 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 51740 |
X"$0" : 'X\(//\)$' \| \ |
| 51741 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 51742 |
printf "%s\n" X/"$0" | |
| 51743 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 51744 |
s//\1/ |
| 51745 |
q |
| 51746 |
} |
| 51747 |
/^X\/\(\/\/\)$/{ |
| 51748 |
s//\1/ |
| 51749 |
q |
| 51750 |
} |
| 51751 |
/^X\/\(\/\).*/{ |
| 51752 |
s//\1/ |
| 51753 |
q |
| 51754 |
} |
| 51755 |
s/.*/./; q'` |
| 51756 |
|
| 51757 |
# Avoid depending upon Character Ranges. |
| 51758 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 51759 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 51760 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 51761 |
as_cr_digits='0123456789' |
| 51762 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 51763 |
|
| 51764 |
|
| 51765 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 51766 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 51767 |
# for compatibility with existing Makefiles. |
| 51768 |
ECHO_C= ECHO_N= ECHO_T= |
| 51769 |
case `echo -n x` in #((((( |
| 51770 |
-n*) |
| 51771 |
case `echo 'xy\c'` in |
| 51772 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 51773 |
xy) ECHO_C='\c';; |
| 51774 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 51775 |
ECHO_T=' ';; |
| 51776 |
esac;; |
| 51777 |
*) |
| 51778 |
ECHO_N='-n';; |
| 51779 |
esac |
| 51780 |
|
| 51781 |
# For backward compatibility with old third-party macros, we provide |
| 51782 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 51783 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 51784 |
as_echo='printf %s\n' |
| 51785 |
as_echo_n='printf %s' |
| 51786 |
|
| 51787 |
rm -f conf$$ conf$$.exe conf$$.file |
| 51788 |
if test -d conf$$.dir; then |
| 51789 |
rm -f conf$$.dir/conf$$.file |
| 51790 |
else |
| 51791 |
rm -f conf$$.dir |
| 51792 |
mkdir conf$$.dir 2>/dev/null |
| 51793 |
fi |
| 51794 |
if (echo >conf$$.file) 2>/dev/null; then |
| 51795 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 51796 |
as_ln_s='ln -s' |
| 51797 |
# ... but there are two gotchas: |
| 51798 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 51799 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 51800 |
# In both cases, we have to default to 'cp -pR'. |
| 51801 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 51802 |
as_ln_s='cp -pR' |
| 51803 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 51804 |
as_ln_s=ln |
| 51805 |
else |
| 51806 |
as_ln_s='cp -pR' |
| 51807 |
fi |
| 51808 |
else |
| 51809 |
as_ln_s='cp -pR' |
| 51810 |
fi |
| 51811 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 51812 |
rmdir conf$$.dir 2>/dev/null |
| 51813 |
|
| 51814 |
|
| 51815 |
# as_fn_mkdir_p |
| 51816 |
# ------------- |
| 51817 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 51818 |
as_fn_mkdir_p () |
| 51819 |
{ |
| 51820 |
|
| 51821 |
case $as_dir in #( |
| 51822 |
-*) as_dir=./$as_dir;; |
| 51823 |
esac |
| 51824 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 51825 |
as_dirs= |
| 51826 |
while :; do |
| 51827 |
case $as_dir in #( |
| 51828 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 51829 |
*) as_qdir=$as_dir;; |
| 51830 |
esac |
| 51831 |
as_dirs="'$as_qdir' $as_dirs" |
| 51832 |
as_dir=`$as_dirname -- "$as_dir" || |
| 51833 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 51834 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 51835 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 51836 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 51837 |
printf "%s\n" X"$as_dir" | |
| 51838 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 51839 |
s//\1/ |
| 51840 |
q |
| 51841 |
} |
| 51842 |
/^X\(\/\/\)[^/].*/{ |
| 51843 |
s//\1/ |
| 51844 |
q |
| 51845 |
} |
| 51846 |
/^X\(\/\/\)$/{ |
| 51847 |
s//\1/ |
| 51848 |
q |
| 51849 |
} |
| 51850 |
/^X\(\/\).*/{ |
| 51851 |
s//\1/ |
| 51852 |
q |
| 51853 |
} |
| 51854 |
s/.*/./; q'` |
| 51855 |
test -d "$as_dir" && break |
| 51856 |
done |
| 51857 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 51858 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 51859 |
|
| 51860 |
|
| 51861 |
} # as_fn_mkdir_p |
| 51862 |
if mkdir -p . 2>/dev/null; then |
| 51863 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 51864 |
else |
| 51865 |
test -d ./-p && rmdir ./-p |
| 51866 |
as_mkdir_p=false |
| 51867 |
fi |
| 51868 |
|
| 51869 |
|
| 51870 |
# as_fn_executable_p FILE |
| 51871 |
# ----------------------- |
| 51872 |
# Test if FILE is an executable regular file. |
| 51873 |
as_fn_executable_p () |
| 51874 |
{ |
| 51875 |
test -f "$1" && test -x "$1" |
| 51876 |
} # as_fn_executable_p |
| 51877 |
as_test_x='test -x' |
| 51878 |
as_executable_p=as_fn_executable_p |
| 51879 |
|
| 51880 |
# Sed expression to map a string onto a valid CPP name. |
| 51881 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 51882 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 51883 |
|
| 51884 |
# Sed expression to map a string onto a valid variable name. |
| 51885 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 51886 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 51887 |
|
| 51888 |
|
| 51889 |
exec 6>&1 |
| 51890 |
## ----------------------------------- ## |
| 51891 |
## Main body of $CONFIG_STATUS script. ## |
| 51892 |
## ----------------------------------- ## |
| 51893 |
_ASEOF |
| 51894 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 51895 |
|
| 51896 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 51897 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 51898 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 51899 |
# values after options handling. |
| 51900 |
ac_log=" |
| 51901 |
This file was extended by GNU libmicrohttpd $as_me 1.0.6, which was |
| 51902 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 51903 |
|
| 51904 |
CONFIG_FILES = $CONFIG_FILES |
| 51905 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 51906 |
CONFIG_LINKS = $CONFIG_LINKS |
| 51907 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 51908 |
$ $0 $@ |
| 51909 |
|
| 51910 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 51911 |
" |
| 51912 |
|
| 51913 |
_ACEOF |
| 51914 |
|
| 51915 |
case $ac_config_files in *" |
| 51916 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 51917 |
esac |
| 51918 |
|
| 51919 |
case $ac_config_headers in *" |
| 51920 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 51921 |
esac |
| 51922 |
|
| 51923 |
|
| 51924 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 51925 |
# Files that config.status was made for. |
| 51926 |
config_files="$ac_config_files" |
| 51927 |
config_headers="$ac_config_headers" |
| 51928 |
config_commands="$ac_config_commands" |
| 51929 |
|
| 51930 |
_ACEOF |
| 51931 |
|
| 51932 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 51933 |
ac_cs_usage="\ |
| 51934 |
'$as_me' instantiates files and other configuration actions |
| 51935 |
from templates according to the current configuration. Unless the files |
| 51936 |
and actions are specified as TAGs, all are instantiated by default. |
| 51937 |
|
| 51938 |
Usage: $0 [OPTION]... [TAG]... |
| 51939 |
|
| 51940 |
-h, --help print this help, then exit |
| 51941 |
-V, --version print version number and configuration settings, then exit |
| 51942 |
--config print configuration, then exit |
| 51943 |
-q, --quiet, --silent |
| 51944 |
do not print progress messages |
| 51945 |
-d, --debug don't remove temporary files |
| 51946 |
--recheck update $as_me by reconfiguring in the same conditions |
| 51947 |
--file=FILE[:TEMPLATE] |
| 51948 |
instantiate the configuration file FILE |
| 51949 |
--header=FILE[:TEMPLATE] |
| 51950 |
instantiate the configuration header FILE |
| 51951 |
|
| 51952 |
Configuration files: |
| 51953 |
$config_files |
| 51954 |
|
| 51955 |
Configuration headers: |
| 51956 |
$config_headers |
| 51957 |
|
| 51958 |
Configuration commands: |
| 51959 |
$config_commands |
| 51960 |
|
| 51961 |
Report bugs to <[email protected]>. |
| 51962 |
GNU libmicrohttpd home page: <https://www.gnu.org/software/libmicrohttpd/>. |
| 51963 |
General help using GNU software: <https://www.gnu.org/gethelp/>." |
| 51964 |
|
| 51965 |
_ACEOF |
| 51966 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 51967 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 51968 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 51969 |
ac_cs_config='$ac_cs_config_escaped' |
| 51970 |
ac_cs_version="\\ |
| 51971 |
GNU libmicrohttpd config.status 1.0.6 |
| 51972 |
configured by $0, generated by GNU Autoconf 2.72, |
| 51973 |
with options \\"\$ac_cs_config\\" |
| 51974 |
|
| 51975 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 51976 |
This config.status script is free software; the Free Software Foundation |
| 51977 |
gives unlimited permission to copy, distribute and modify it." |
| 51978 |
|
| 51979 |
ac_pwd='$ac_pwd' |
| 51980 |
srcdir='$srcdir' |
| 51981 |
INSTALL='$INSTALL' |
| 51982 |
MKDIR_P='$MKDIR_P' |
| 51983 |
AWK='$AWK' |
| 51984 |
test -n "\$AWK" || AWK=awk |
| 51985 |
_ACEOF |
| 51986 |
|
| 51987 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 51988 |
# The default lists apply if the user does not specify any file. |
| 51989 |
ac_need_defaults=: |
| 51990 |
while test $# != 0 |
| 51991 |
do |
| 51992 |
case $1 in |
| 51993 |
--*=?*) |
| 51994 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 51995 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 51996 |
ac_shift=: |
| 51997 |
;; |
| 51998 |
--*=) |
| 51999 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 52000 |
ac_optarg= |
| 52001 |
ac_shift=: |
| 52002 |
;; |
| 52003 |
*) |
| 52004 |
ac_option=$1 |
| 52005 |
ac_optarg=$2 |
| 52006 |
ac_shift=shift |
| 52007 |
;; |
| 52008 |
esac |
| 52009 |
|
| 52010 |
case $ac_option in |
| 52011 |
# Handling of the options. |
| 52012 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 52013 |
ac_cs_recheck=: ;; |
| 52014 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 52015 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 52016 |
--config | --confi | --conf | --con | --co | --c ) |
| 52017 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 52018 |
--debug | --debu | --deb | --de | --d | -d ) |
| 52019 |
debug=: ;; |
| 52020 |
--file | --fil | --fi | --f ) |
| 52021 |
$ac_shift |
| 52022 |
case $ac_optarg in |
| 52023 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 52024 |
'') as_fn_error $? "missing file argument" ;; |
| 52025 |
esac |
| 52026 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 52027 |
ac_need_defaults=false;; |
| 52028 |
--header | --heade | --head | --hea ) |
| 52029 |
$ac_shift |
| 52030 |
case $ac_optarg in |
| 52031 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 52032 |
esac |
| 52033 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 52034 |
ac_need_defaults=false;; |
| 52035 |
--he | --h) |
| 52036 |
# Conflict between --help and --header |
| 52037 |
as_fn_error $? "ambiguous option: '$1' |
| 52038 |
Try '$0 --help' for more information.";; |
| 52039 |
--help | --hel | -h ) |
| 52040 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 52041 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 52042 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 52043 |
ac_cs_silent=: ;; |
| 52044 |
|
| 52045 |
# This is an error. |
| 52046 |
-*) as_fn_error $? "unrecognized option: '$1' |
| 52047 |
Try '$0 --help' for more information." ;; |
| 52048 |
|
| 52049 |
*) as_fn_append ac_config_targets " $1" |
| 52050 |
ac_need_defaults=false ;; |
| 52051 |
|
| 52052 |
esac |
| 52053 |
shift |
| 52054 |
done |
| 52055 |
|
| 52056 |
ac_configure_extra_args= |
| 52057 |
|
| 52058 |
if $ac_cs_silent; then |
| 52059 |
exec 6>/dev/null |
| 52060 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 52061 |
fi |
| 52062 |
|
| 52063 |
_ACEOF |
| 52064 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52065 |
if \$ac_cs_recheck; then |
| 52066 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 52067 |
shift |
| 52068 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 52069 |
CONFIG_SHELL='$SHELL' |
| 52070 |
export CONFIG_SHELL |
| 52071 |
exec "\$@" |
| 52072 |
fi |
| 52073 |
|
| 52074 |
_ACEOF |
| 52075 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52076 |
exec 5>>config.log |
| 52077 |
{ |
| 52078 |
echo |
| 52079 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 52080 |
## Running $as_me. ## |
| 52081 |
_ASBOX |
| 52082 |
printf "%s\n" "$ac_log" |
| 52083 |
} >&5 |
| 52084 |
|
| 52085 |
_ACEOF |
| 52086 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52087 |
# |
| 52088 |
# INIT-COMMANDS |
| 52089 |
# |
| 52090 |
AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" |
| 52091 |
|
| 52092 |
|
| 52093 |
# The HP-UX ksh and POSIX shell print the target directory to stdout |
| 52094 |
# if CDPATH is set. |
| 52095 |
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 52096 |
|
| 52097 |
sed_quote_subst='$sed_quote_subst' |
| 52098 |
double_quote_subst='$double_quote_subst' |
| 52099 |
delay_variable_subst='$delay_variable_subst' |
| 52100 |
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' |
| 52101 |
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' |
| 52102 |
AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' |
| 52103 |
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' |
| 52104 |
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
| 52105 |
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
| 52106 |
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' |
| 52107 |
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' |
| 52108 |
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' |
| 52109 |
shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' |
| 52110 |
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' |
| 52111 |
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' |
| 52112 |
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' |
| 52113 |
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' |
| 52114 |
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' |
| 52115 |
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' |
| 52116 |
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' |
| 52117 |
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' |
| 52118 |
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' |
| 52119 |
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' |
| 52120 |
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' |
| 52121 |
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' |
| 52122 |
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' |
| 52123 |
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' |
| 52124 |
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' |
| 52125 |
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' |
| 52126 |
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' |
| 52127 |
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' |
| 52128 |
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' |
| 52129 |
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' |
| 52130 |
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
| 52131 |
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
| 52132 |
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
| 52133 |
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 52134 |
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' |
| 52135 |
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
| 52136 |
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
| 52137 |
FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' |
| 52138 |
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
| 52139 |
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
| 52140 |
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' |
| 52141 |
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' |
| 52142 |
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' |
| 52143 |
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
| 52144 |
lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' |
| 52145 |
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
| 52146 |
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' |
| 52147 |
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
| 52148 |
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
| 52149 |
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 52150 |
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 52151 |
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 52152 |
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' |
| 52153 |
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' |
| 52154 |
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' |
| 52155 |
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' |
| 52156 |
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' |
| 52157 |
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' |
| 52158 |
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
| 52159 |
lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' |
| 52160 |
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
| 52161 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 52162 |
lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' |
| 52163 |
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 52164 |
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' |
| 52165 |
lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' |
| 52166 |
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
| 52167 |
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
| 52168 |
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
| 52169 |
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' |
| 52170 |
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
| 52171 |
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
| 52172 |
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
| 52173 |
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
| 52174 |
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' |
| 52175 |
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
| 52176 |
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
| 52177 |
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
| 52178 |
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' |
| 52179 |
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' |
| 52180 |
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' |
| 52181 |
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' |
| 52182 |
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 52183 |
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' |
| 52184 |
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' |
| 52185 |
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 52186 |
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 52187 |
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' |
| 52188 |
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' |
| 52189 |
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' |
| 52190 |
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' |
| 52191 |
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 52192 |
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' |
| 52193 |
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' |
| 52194 |
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' |
| 52195 |
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 52196 |
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' |
| 52197 |
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' |
| 52198 |
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' |
| 52199 |
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' |
| 52200 |
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' |
| 52201 |
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' |
| 52202 |
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 52203 |
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
| 52204 |
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
| 52205 |
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
| 52206 |
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
| 52207 |
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
| 52208 |
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
| 52209 |
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
| 52210 |
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
| 52211 |
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' |
| 52212 |
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
| 52213 |
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
| 52214 |
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
| 52215 |
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' |
| 52216 |
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' |
| 52217 |
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' |
| 52218 |
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' |
| 52219 |
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' |
| 52220 |
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' |
| 52221 |
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' |
| 52222 |
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' |
| 52223 |
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' |
| 52224 |
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 52225 |
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' |
| 52226 |
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' |
| 52227 |
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' |
| 52228 |
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' |
| 52229 |
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' |
| 52230 |
configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' |
| 52231 |
configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' |
| 52232 |
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' |
| 52233 |
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' |
| 52234 |
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' |
| 52235 |
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' |
| 52236 |
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' |
| 52237 |
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' |
| 52238 |
LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`' |
| 52239 |
reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 52240 |
reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52241 |
old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52242 |
compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`' |
| 52243 |
GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`' |
| 52244 |
lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 52245 |
lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`' |
| 52246 |
lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`' |
| 52247 |
lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`' |
| 52248 |
lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`' |
| 52249 |
archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`' |
| 52250 |
enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`' |
| 52251 |
export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 52252 |
whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 52253 |
compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`' |
| 52254 |
old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52255 |
old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52256 |
archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52257 |
archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52258 |
module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52259 |
module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52260 |
with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`' |
| 52261 |
allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 52262 |
no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`' |
| 52263 |
hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 52264 |
hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`' |
| 52265 |
hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`' |
| 52266 |
hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`' |
| 52267 |
hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`' |
| 52268 |
hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`' |
| 52269 |
hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`' |
| 52270 |
inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`' |
| 52271 |
link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`' |
| 52272 |
always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`' |
| 52273 |
export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52274 |
exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`' |
| 52275 |
include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`' |
| 52276 |
prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52277 |
postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`' |
| 52278 |
file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`' |
| 52279 |
hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`' |
| 52280 |
|
| 52281 |
LTCC='$LTCC' |
| 52282 |
LTCFLAGS='$LTCFLAGS' |
| 52283 |
compiler='$compiler_DEFAULT' |
| 52284 |
|
| 52285 |
# A function that is used when there is no print builtin or printf. |
| 52286 |
func_fallback_echo () |
| 52287 |
{ |
| 52288 |
eval 'cat <<_LTECHO_EOF |
| 52289 |
\$1 |
| 52290 |
_LTECHO_EOF' |
| 52291 |
} |
| 52292 |
|
| 52293 |
# Quote evaled strings. |
| 52294 |
for var in AS \ |
| 52295 |
DLLTOOL \ |
| 52296 |
OBJDUMP \ |
| 52297 |
SHELL \ |
| 52298 |
ECHO \ |
| 52299 |
PATH_SEPARATOR \ |
| 52300 |
SED \ |
| 52301 |
GREP \ |
| 52302 |
EGREP \ |
| 52303 |
FGREP \ |
| 52304 |
LD \ |
| 52305 |
NM \ |
| 52306 |
LN_S \ |
| 52307 |
lt_SP2NL \ |
| 52308 |
lt_NL2SP \ |
| 52309 |
reload_flag \ |
| 52310 |
FILECMD \ |
| 52311 |
deplibs_check_method \ |
| 52312 |
file_magic_cmd \ |
| 52313 |
file_magic_glob \ |
| 52314 |
want_nocaseglob \ |
| 52315 |
sharedlib_from_linklib_cmd \ |
| 52316 |
AR \ |
| 52317 |
archiver_list_spec \ |
| 52318 |
STRIP \ |
| 52319 |
RANLIB \ |
| 52320 |
CC \ |
| 52321 |
CFLAGS \ |
| 52322 |
compiler \ |
| 52323 |
lt_cv_sys_global_symbol_pipe \ |
| 52324 |
lt_cv_sys_global_symbol_to_cdecl \ |
| 52325 |
lt_cv_sys_global_symbol_to_import \ |
| 52326 |
lt_cv_sys_global_symbol_to_c_name_address \ |
| 52327 |
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
| 52328 |
lt_cv_nm_interface \ |
| 52329 |
nm_file_list_spec \ |
| 52330 |
lt_cv_truncate_bin \ |
| 52331 |
lt_prog_compiler_no_builtin_flag \ |
| 52332 |
lt_prog_compiler_pic \ |
| 52333 |
lt_prog_compiler_wl \ |
| 52334 |
lt_prog_compiler_static \ |
| 52335 |
lt_cv_prog_compiler_c_o \ |
| 52336 |
need_locks \ |
| 52337 |
MANIFEST_TOOL \ |
| 52338 |
DSYMUTIL \ |
| 52339 |
NMEDIT \ |
| 52340 |
LIPO \ |
| 52341 |
OTOOL \ |
| 52342 |
OTOOL64 \ |
| 52343 |
shrext_cmds \ |
| 52344 |
export_dynamic_flag_spec \ |
| 52345 |
whole_archive_flag_spec \ |
| 52346 |
compiler_needs_object \ |
| 52347 |
with_gnu_ld \ |
| 52348 |
allow_undefined_flag \ |
| 52349 |
no_undefined_flag \ |
| 52350 |
hardcode_libdir_flag_spec \ |
| 52351 |
hardcode_libdir_separator \ |
| 52352 |
exclude_expsyms \ |
| 52353 |
include_expsyms \ |
| 52354 |
file_list_spec \ |
| 52355 |
variables_saved_for_relink \ |
| 52356 |
libname_spec \ |
| 52357 |
library_names_spec \ |
| 52358 |
soname_spec \ |
| 52359 |
install_override_mode \ |
| 52360 |
finish_eval \ |
| 52361 |
old_striplib \ |
| 52362 |
striplib \ |
| 52363 |
LD_RC \ |
| 52364 |
reload_flag_RC \ |
| 52365 |
compiler_RC \ |
| 52366 |
lt_prog_compiler_no_builtin_flag_RC \ |
| 52367 |
lt_prog_compiler_pic_RC \ |
| 52368 |
lt_prog_compiler_wl_RC \ |
| 52369 |
lt_prog_compiler_static_RC \ |
| 52370 |
lt_cv_prog_compiler_c_o_RC \ |
| 52371 |
export_dynamic_flag_spec_RC \ |
| 52372 |
whole_archive_flag_spec_RC \ |
| 52373 |
compiler_needs_object_RC \ |
| 52374 |
with_gnu_ld_RC \ |
| 52375 |
allow_undefined_flag_RC \ |
| 52376 |
no_undefined_flag_RC \ |
| 52377 |
hardcode_libdir_flag_spec_RC \ |
| 52378 |
hardcode_libdir_separator_RC \ |
| 52379 |
exclude_expsyms_RC \ |
| 52380 |
include_expsyms_RC \ |
| 52381 |
file_list_spec_RC; do |
| 52382 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 52383 |
*[\\\\\\\`\\"\\\$]*) |
| 52384 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 52385 |
;; |
| 52386 |
*) |
| 52387 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 52388 |
;; |
| 52389 |
esac |
| 52390 |
done |
| 52391 |
|
| 52392 |
# Double-quote double-evaled strings. |
| 52393 |
for var in reload_cmds \ |
| 52394 |
old_postinstall_cmds \ |
| 52395 |
old_postuninstall_cmds \ |
| 52396 |
old_archive_cmds \ |
| 52397 |
extract_expsyms_cmds \ |
| 52398 |
old_archive_from_new_cmds \ |
| 52399 |
old_archive_from_expsyms_cmds \ |
| 52400 |
archive_cmds \ |
| 52401 |
archive_expsym_cmds \ |
| 52402 |
module_cmds \ |
| 52403 |
module_expsym_cmds \ |
| 52404 |
export_symbols_cmds \ |
| 52405 |
prelink_cmds \ |
| 52406 |
postlink_cmds \ |
| 52407 |
postinstall_cmds \ |
| 52408 |
postuninstall_cmds \ |
| 52409 |
finish_cmds \ |
| 52410 |
sys_lib_search_path_spec \ |
| 52411 |
configure_time_dlsearch_path \ |
| 52412 |
configure_time_lt_sys_library_path \ |
| 52413 |
reload_cmds_RC \ |
| 52414 |
old_archive_cmds_RC \ |
| 52415 |
old_archive_from_new_cmds_RC \ |
| 52416 |
old_archive_from_expsyms_cmds_RC \ |
| 52417 |
archive_cmds_RC \ |
| 52418 |
archive_expsym_cmds_RC \ |
| 52419 |
module_cmds_RC \ |
| 52420 |
module_expsym_cmds_RC \ |
| 52421 |
export_symbols_cmds_RC \ |
| 52422 |
prelink_cmds_RC \ |
| 52423 |
postlink_cmds_RC; do |
| 52424 |
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
| 52425 |
*[\\\\\\\`\\"\\\$]*) |
| 52426 |
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes |
| 52427 |
;; |
| 52428 |
*) |
| 52429 |
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" |
| 52430 |
;; |
| 52431 |
esac |
| 52432 |
done |
| 52433 |
|
| 52434 |
ac_aux_dir='$ac_aux_dir' |
| 52435 |
|
| 52436 |
# See if we are running on zsh, and set the options that allow our |
| 52437 |
# commands through without removal of \ escapes INIT. |
| 52438 |
if test -n "\${ZSH_VERSION+set}"; then |
| 52439 |
setopt NO_GLOB_SUBST |
| 52440 |
fi |
| 52441 |
|
| 52442 |
|
| 52443 |
PACKAGE='$PACKAGE' |
| 52444 |
VERSION='$VERSION' |
| 52445 |
RM='$RM' |
| 52446 |
ofile='$ofile' |
| 52447 |
|
| 52448 |
|
| 52449 |
|
| 52450 |
|
| 52451 |
|
| 52452 |
|
| 52453 |
_ACEOF |
| 52454 |
|
| 52455 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52456 |
|
| 52457 |
# Handling of arguments. |
| 52458 |
for ac_config_target in $ac_config_targets |
| 52459 |
do |
| 52460 |
case $ac_config_target in |
| 52461 |
"MHD_config.h") CONFIG_HEADERS="$CONFIG_HEADERS MHD_config.h" ;; |
| 52462 |
"src/microhttpd/microhttpd_dll_res.rc") CONFIG_FILES="$CONFIG_FILES src/microhttpd/microhttpd_dll_res.rc" ;; |
| 52463 |
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 52464 |
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
| 52465 |
"po/po-configure.ac") CONFIG_FILES="$CONFIG_FILES po/po-configure.ac" ;; |
| 52466 |
"po/Makefile.in") CONFIG_COMMANDS="$CONFIG_COMMANDS po/Makefile.in" ;; |
| 52467 |
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
| 52468 |
"libmicrohttpd.pc") CONFIG_FILES="$CONFIG_FILES libmicrohttpd.pc" ;; |
| 52469 |
"w32/common/microhttpd_dll_res_vc.rc") CONFIG_FILES="$CONFIG_FILES w32/common/microhttpd_dll_res_vc.rc" ;; |
| 52470 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 52471 |
"contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
| 52472 |
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 52473 |
"doc/doxygen/libmicrohttpd.doxy") CONFIG_FILES="$CONFIG_FILES doc/doxygen/libmicrohttpd.doxy" ;; |
| 52474 |
"doc/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doc/doxygen/Makefile" ;; |
| 52475 |
"doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;; |
| 52476 |
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
| 52477 |
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 52478 |
"src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;; |
| 52479 |
"src/microhttpd/Makefile") CONFIG_FILES="$CONFIG_FILES src/microhttpd/Makefile" ;; |
| 52480 |
"src/examples/Makefile") CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;; |
| 52481 |
"src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;; |
| 52482 |
"src/testcurl/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/Makefile" ;; |
| 52483 |
"src/testcurl/https/Makefile") CONFIG_FILES="$CONFIG_FILES src/testcurl/https/Makefile" ;; |
| 52484 |
"src/testzzuf/Makefile") CONFIG_FILES="$CONFIG_FILES src/testzzuf/Makefile" ;; |
| 52485 |
|
| 52486 |
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 52487 |
esac |
| 52488 |
done |
| 52489 |
|
| 52490 |
|
| 52491 |
# If the user did not use the arguments to specify the items to instantiate, |
| 52492 |
# then the envvar interface is used. Set only those that are not. |
| 52493 |
# We use the long form for the default assignment because of an extremely |
| 52494 |
# bizarre bug on SunOS 4.1.3. |
| 52495 |
if $ac_need_defaults; then |
| 52496 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 52497 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 52498 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 52499 |
fi |
| 52500 |
|
| 52501 |
# Have a temporary directory for convenience. Make it in the build tree |
| 52502 |
# simply because there is no reason against having it here, and in addition, |
| 52503 |
# creating and moving files from /tmp can sometimes cause problems. |
| 52504 |
# Hook for its removal unless debugging. |
| 52505 |
# Note that there is a small window in which the directory will not be cleaned: |
| 52506 |
# after its creation but before its name has been assigned to '$tmp'. |
| 52507 |
$debug || |
| 52508 |
{ |
| 52509 |
tmp= ac_tmp= |
| 52510 |
trap 'exit_status=$? |
| 52511 |
: "${ac_tmp:=$tmp}" |
| 52512 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 52513 |
' 0 |
| 52514 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 52515 |
} |
| 52516 |
# Create a (secure) tmp directory for tmp files. |
| 52517 |
|
| 52518 |
{ |
| 52519 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 52520 |
test -d "$tmp" |
| 52521 |
} || |
| 52522 |
{ |
| 52523 |
tmp=./conf$$-$RANDOM |
| 52524 |
(umask 077 && mkdir "$tmp") |
| 52525 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 52526 |
ac_tmp=$tmp |
| 52527 |
|
| 52528 |
# Set up the scripts for CONFIG_FILES section. |
| 52529 |
# No need to generate them if there are no CONFIG_FILES. |
| 52530 |
# This happens for instance with './config.status config.h'. |
| 52531 |
if test -n "$CONFIG_FILES"; then |
| 52532 |
|
| 52533 |
|
| 52534 |
ac_cr=`echo X | tr X '\015'` |
| 52535 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 52536 |
# But we know of no other shell where ac_cr would be empty at this |
| 52537 |
# point, so we can use a bashism as a fallback. |
| 52538 |
if test "x$ac_cr" = x; then |
| 52539 |
eval ac_cr=\$\'\\r\' |
| 52540 |
fi |
| 52541 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 52542 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 52543 |
ac_cs_awk_cr='\\r' |
| 52544 |
else |
| 52545 |
ac_cs_awk_cr=$ac_cr |
| 52546 |
fi |
| 52547 |
|
| 52548 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 52549 |
_ACEOF |
| 52550 |
|
| 52551 |
|
| 52552 |
{ |
| 52553 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 52554 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 52555 |
echo "_ACEOF" |
| 52556 |
} >conf$$subs.sh || |
| 52557 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 52558 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 52559 |
ac_delim='%!_!# ' |
| 52560 |
for ac_last_try in false false false false false :; do |
| 52561 |
. ./conf$$subs.sh || |
| 52562 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 52563 |
|
| 52564 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 52565 |
if test $ac_delim_n = $ac_delim_num; then |
| 52566 |
break |
| 52567 |
elif $ac_last_try; then |
| 52568 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 52569 |
else |
| 52570 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 52571 |
fi |
| 52572 |
done |
| 52573 |
rm -f conf$$subs.sh |
| 52574 |
|
| 52575 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52576 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 52577 |
_ACEOF |
| 52578 |
sed -n ' |
| 52579 |
h |
| 52580 |
s/^/S["/; s/!.*/"]=/ |
| 52581 |
p |
| 52582 |
g |
| 52583 |
s/^[^!]*!// |
| 52584 |
:repl |
| 52585 |
t repl |
| 52586 |
s/'"$ac_delim"'$// |
| 52587 |
t delim |
| 52588 |
:nl |
| 52589 |
h |
| 52590 |
s/\(.\{148\}\)..*/\1/ |
| 52591 |
t more1 |
| 52592 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 52593 |
p |
| 52594 |
n |
| 52595 |
b repl |
| 52596 |
:more1 |
| 52597 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 52598 |
p |
| 52599 |
g |
| 52600 |
s/.\{148\}// |
| 52601 |
t nl |
| 52602 |
:delim |
| 52603 |
h |
| 52604 |
s/\(.\{148\}\)..*/\1/ |
| 52605 |
t more2 |
| 52606 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 52607 |
p |
| 52608 |
b |
| 52609 |
:more2 |
| 52610 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 52611 |
p |
| 52612 |
g |
| 52613 |
s/.\{148\}// |
| 52614 |
t delim |
| 52615 |
' <conf$$subs.awk | sed ' |
| 52616 |
/^[^""]/{ |
| 52617 |
N |
| 52618 |
s/\n// |
| 52619 |
} |
| 52620 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 52621 |
rm -f conf$$subs.awk |
| 52622 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52623 |
_ACAWK |
| 52624 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 52625 |
for (key in S) S_is_set[key] = 1 |
| 52626 |
FS = "" |
| 52627 |
|
| 52628 |
} |
| 52629 |
{ |
| 52630 |
line = $ 0 |
| 52631 |
nfields = split(line, field, "@") |
| 52632 |
substed = 0 |
| 52633 |
len = length(field[1]) |
| 52634 |
for (i = 2; i < nfields; i++) { |
| 52635 |
key = field[i] |
| 52636 |
keylen = length(key) |
| 52637 |
if (S_is_set[key]) { |
| 52638 |
value = S[key] |
| 52639 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 52640 |
len += length(value) + length(field[++i]) |
| 52641 |
substed = 1 |
| 52642 |
} else |
| 52643 |
len += 1 + keylen |
| 52644 |
} |
| 52645 |
|
| 52646 |
print line |
| 52647 |
} |
| 52648 |
|
| 52649 |
_ACAWK |
| 52650 |
_ACEOF |
| 52651 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52652 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 52653 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 52654 |
else |
| 52655 |
cat |
| 52656 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 52657 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 52658 |
_ACEOF |
| 52659 |
|
| 52660 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 52661 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 52662 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 52663 |
# (actually we leave an empty line to preserve line numbers). |
| 52664 |
if test "x$srcdir" = x.; then |
| 52665 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 52666 |
h |
| 52667 |
s/// |
| 52668 |
s/^/:/ |
| 52669 |
s/[ ]*$/:/ |
| 52670 |
s/:\$(srcdir):/:/g |
| 52671 |
s/:\${srcdir}:/:/g |
| 52672 |
s/:@srcdir@:/:/g |
| 52673 |
s/^:*// |
| 52674 |
s/:*$// |
| 52675 |
x |
| 52676 |
s/\(=[ ]*\).*/\1/ |
| 52677 |
G |
| 52678 |
s/\n// |
| 52679 |
s/^[^=]*=[ ]*$// |
| 52680 |
}' |
| 52681 |
fi |
| 52682 |
|
| 52683 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52684 |
fi # test -n "$CONFIG_FILES" |
| 52685 |
|
| 52686 |
# Set up the scripts for CONFIG_HEADERS section. |
| 52687 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 52688 |
# This happens for instance with './config.status Makefile'. |
| 52689 |
if test -n "$CONFIG_HEADERS"; then |
| 52690 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 52691 |
BEGIN { |
| 52692 |
_ACEOF |
| 52693 |
|
| 52694 |
# Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 52695 |
# here-document in config.status, that substitutes the proper values into |
| 52696 |
# config.h.in to produce config.h. |
| 52697 |
|
| 52698 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 52699 |
# handling of long lines. |
| 52700 |
ac_delim='%!_!# ' |
| 52701 |
for ac_last_try in false false :; do |
| 52702 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 52703 |
if test -z "$ac_tt"; then |
| 52704 |
break |
| 52705 |
elif $ac_last_try; then |
| 52706 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 52707 |
else |
| 52708 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 52709 |
fi |
| 52710 |
done |
| 52711 |
|
| 52712 |
# For the awk script, D is an array of macro values keyed by name, |
| 52713 |
# likewise P contains macro parameters if any. Preserve backslash |
| 52714 |
# newline sequences. |
| 52715 |
|
| 52716 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 52717 |
sed -n ' |
| 52718 |
s/.\{148\}/&'"$ac_delim"'/g |
| 52719 |
t rset |
| 52720 |
:rset |
| 52721 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 52722 |
t def |
| 52723 |
d |
| 52724 |
:def |
| 52725 |
s/\\$// |
| 52726 |
t bsnl |
| 52727 |
s/["\\]/\\&/g |
| 52728 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 52729 |
D["\1"]=" \3"/p |
| 52730 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 52731 |
d |
| 52732 |
:bsnl |
| 52733 |
s/["\\]/\\&/g |
| 52734 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 52735 |
D["\1"]=" \3\\\\\\n"\\/p |
| 52736 |
t cont |
| 52737 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 52738 |
t cont |
| 52739 |
d |
| 52740 |
:cont |
| 52741 |
n |
| 52742 |
s/.\{148\}/&'"$ac_delim"'/g |
| 52743 |
t clear |
| 52744 |
:clear |
| 52745 |
s/\\$// |
| 52746 |
t bsnlc |
| 52747 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 52748 |
d |
| 52749 |
:bsnlc |
| 52750 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 52751 |
b cont |
| 52752 |
' <confdefs.h | sed ' |
| 52753 |
s/'"$ac_delim"'/"\\\ |
| 52754 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 52755 |
|
| 52756 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52757 |
for (key in D) D_is_set[key] = 1 |
| 52758 |
FS = "" |
| 52759 |
} |
| 52760 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 52761 |
line = \$ 0 |
| 52762 |
split(line, arg, " ") |
| 52763 |
if (arg[1] == "#") { |
| 52764 |
defundef = arg[2] |
| 52765 |
mac1 = arg[3] |
| 52766 |
} else { |
| 52767 |
defundef = substr(arg[1], 2) |
| 52768 |
mac1 = arg[2] |
| 52769 |
} |
| 52770 |
split(mac1, mac2, "(") #) |
| 52771 |
macro = mac2[1] |
| 52772 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 52773 |
if (D_is_set[macro]) { |
| 52774 |
# Preserve the white space surrounding the "#". |
| 52775 |
print prefix "define", macro P[macro] D[macro] |
| 52776 |
next |
| 52777 |
} else { |
| 52778 |
# Replace #undef with comments. This is necessary, for example, |
| 52779 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 52780 |
# on some systems where configure will not decide to define it. |
| 52781 |
if (defundef == "undef") { |
| 52782 |
print "/*", prefix defundef, macro, "*/" |
| 52783 |
next |
| 52784 |
} |
| 52785 |
} |
| 52786 |
} |
| 52787 |
{ print } |
| 52788 |
_ACAWK |
| 52789 |
_ACEOF |
| 52790 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52791 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 52792 |
fi # test -n "$CONFIG_HEADERS" |
| 52793 |
|
| 52794 |
|
| 52795 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 52796 |
shift |
| 52797 |
for ac_tag |
| 52798 |
do |
| 52799 |
case $ac_tag in |
| 52800 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 52801 |
esac |
| 52802 |
case $ac_mode$ac_tag in |
| 52803 |
:[FHL]*:*);; |
| 52804 |
:L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 52805 |
:[FH]-) ac_tag=-:-;; |
| 52806 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 52807 |
esac |
| 52808 |
ac_save_IFS=$IFS |
| 52809 |
IFS=: |
| 52810 |
set x $ac_tag |
| 52811 |
IFS=$ac_save_IFS |
| 52812 |
shift |
| 52813 |
ac_file=$1 |
| 52814 |
shift |
| 52815 |
|
| 52816 |
case $ac_mode in |
| 52817 |
:L) ac_source=$1;; |
| 52818 |
:[FH]) |
| 52819 |
ac_file_inputs= |
| 52820 |
for ac_f |
| 52821 |
do |
| 52822 |
case $ac_f in |
| 52823 |
-) ac_f="$ac_tmp/stdin";; |
| 52824 |
*) # Look for the file first in the build tree, then in the source tree |
| 52825 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 52826 |
# because $ac_f cannot contain ':'. |
| 52827 |
test -f "$ac_f" || |
| 52828 |
case $ac_f in |
| 52829 |
[\\/$]*) false;; |
| 52830 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 52831 |
esac || |
| 52832 |
as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 52833 |
esac |
| 52834 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 52835 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 52836 |
done |
| 52837 |
|
| 52838 |
# Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 52839 |
# use $as_me), people would be surprised to read: |
| 52840 |
# /* config.h. Generated by config.status. */ |
| 52841 |
configure_input='Generated from '` |
| 52842 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 52843 |
`' by configure.' |
| 52844 |
if test x"$ac_file" != x-; then |
| 52845 |
configure_input="$ac_file. $configure_input" |
| 52846 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 52847 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 52848 |
fi |
| 52849 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 52850 |
case $configure_input in #( |
| 52851 |
*\&* | *\|* | *\\* ) |
| 52852 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 52853 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 52854 |
*) ac_sed_conf_input=$configure_input;; |
| 52855 |
esac |
| 52856 |
|
| 52857 |
case $ac_tag in |
| 52858 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 52859 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 52860 |
esac |
| 52861 |
;; |
| 52862 |
esac |
| 52863 |
|
| 52864 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 52865 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 52866 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 52867 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 52868 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 52869 |
printf "%s\n" X"$ac_file" | |
| 52870 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 52871 |
s//\1/ |
| 52872 |
q |
| 52873 |
} |
| 52874 |
/^X\(\/\/\)[^/].*/{ |
| 52875 |
s//\1/ |
| 52876 |
q |
| 52877 |
} |
| 52878 |
/^X\(\/\/\)$/{ |
| 52879 |
s//\1/ |
| 52880 |
q |
| 52881 |
} |
| 52882 |
/^X\(\/\).*/{ |
| 52883 |
s//\1/ |
| 52884 |
q |
| 52885 |
} |
| 52886 |
s/.*/./; q'` |
| 52887 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 52888 |
ac_builddir=. |
| 52889 |
|
| 52890 |
case "$ac_dir" in |
| 52891 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 52892 |
*) |
| 52893 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 52894 |
# A ".." for each directory in $ac_dir_suffix. |
| 52895 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 52896 |
case $ac_top_builddir_sub in |
| 52897 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 52898 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 52899 |
esac ;; |
| 52900 |
esac |
| 52901 |
ac_abs_top_builddir=$ac_pwd |
| 52902 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 52903 |
# for backward compatibility: |
| 52904 |
ac_top_builddir=$ac_top_build_prefix |
| 52905 |
|
| 52906 |
case $srcdir in |
| 52907 |
.) # We are building in place. |
| 52908 |
ac_srcdir=. |
| 52909 |
ac_top_srcdir=$ac_top_builddir_sub |
| 52910 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 52911 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 52912 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 52913 |
ac_top_srcdir=$srcdir |
| 52914 |
ac_abs_top_srcdir=$srcdir ;; |
| 52915 |
*) # Relative name. |
| 52916 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 52917 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 52918 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 52919 |
esac |
| 52920 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 52921 |
|
| 52922 |
|
| 52923 |
case $ac_mode in |
| 52924 |
:F) |
| 52925 |
# |
| 52926 |
# CONFIG_FILE |
| 52927 |
# |
| 52928 |
|
| 52929 |
case $INSTALL in |
| 52930 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 52931 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 52932 |
esac |
| 52933 |
ac_MKDIR_P=$MKDIR_P |
| 52934 |
case $MKDIR_P in |
| 52935 |
[\\/$]* | ?:[\\/]* ) ;; |
| 52936 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 52937 |
esac |
| 52938 |
_ACEOF |
| 52939 |
|
| 52940 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52941 |
# If the template does not know about datarootdir, expand it. |
| 52942 |
# FIXME: This hack should be removed a few years after 2.60. |
| 52943 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 52944 |
ac_sed_dataroot=' |
| 52945 |
/datarootdir/ { |
| 52946 |
p |
| 52947 |
q |
| 52948 |
} |
| 52949 |
/@datadir@/p |
| 52950 |
/@docdir@/p |
| 52951 |
/@infodir@/p |
| 52952 |
/@localedir@/p |
| 52953 |
/@mandir@/p' |
| 52954 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 52955 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 52956 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 52957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 52958 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 52959 |
_ACEOF |
| 52960 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52961 |
ac_datarootdir_hack=' |
| 52962 |
s&@datadir@&$datadir&g |
| 52963 |
s&@docdir@&$docdir&g |
| 52964 |
s&@infodir@&$infodir&g |
| 52965 |
s&@localedir@&$localedir&g |
| 52966 |
s&@mandir@&$mandir&g |
| 52967 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 52968 |
esac |
| 52969 |
_ACEOF |
| 52970 |
|
| 52971 |
# Neutralize VPATH when '$srcdir' = '.'. |
| 52972 |
# Shell code in configure.ac might set extrasub. |
| 52973 |
# FIXME: do we really want to maintain this feature? |
| 52974 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 52975 |
ac_sed_extra="$ac_vpsub |
| 52976 |
$extrasub |
| 52977 |
_ACEOF |
| 52978 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 52979 |
:t |
| 52980 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 52981 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 52982 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 52983 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 52984 |
s&@srcdir@&$ac_srcdir&;t t |
| 52985 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 52986 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 52987 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 52988 |
s&@builddir@&$ac_builddir&;t t |
| 52989 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 52990 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 52991 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 52992 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 52993 |
$ac_datarootdir_hack |
| 52994 |
" |
| 52995 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 52996 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 52997 |
|
| 52998 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 52999 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 53000 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 53001 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 53002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 53003 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 53004 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 53005 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 53006 |
|
| 53007 |
rm -f "$ac_tmp/stdin" |
| 53008 |
case $ac_file in |
| 53009 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 53010 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 53011 |
esac \ |
| 53012 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 53013 |
;; |
| 53014 |
:H) |
| 53015 |
# |
| 53016 |
# CONFIG_HEADER |
| 53017 |
# |
| 53018 |
if test x"$ac_file" != x-; then |
| 53019 |
{ |
| 53020 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 53021 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 53022 |
} >"$ac_tmp/config.h" \ |
| 53023 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 53024 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 53025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 53026 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 53027 |
else |
| 53028 |
rm -f "$ac_file" |
| 53029 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 53030 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 53031 |
fi |
| 53032 |
else |
| 53033 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 53034 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 53035 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 53036 |
fi |
| 53037 |
# Compute "$ac_file"'s index in $config_headers. |
| 53038 |
_am_arg="$ac_file" |
| 53039 |
_am_stamp_count=1 |
| 53040 |
for _am_header in $config_headers :; do |
| 53041 |
case $_am_header in |
| 53042 |
$_am_arg | $_am_arg:* ) |
| 53043 |
break ;; |
| 53044 |
* ) |
| 53045 |
_am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 53046 |
esac |
| 53047 |
done |
| 53048 |
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 53049 |
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 53050 |
X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 53051 |
X"$_am_arg" : 'X\(//\)$' \| \ |
| 53052 |
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 53053 |
printf "%s\n" X"$_am_arg" | |
| 53054 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 53055 |
s//\1/ |
| 53056 |
q |
| 53057 |
} |
| 53058 |
/^X\(\/\/\)[^/].*/{ |
| 53059 |
s//\1/ |
| 53060 |
q |
| 53061 |
} |
| 53062 |
/^X\(\/\/\)$/{ |
| 53063 |
s//\1/ |
| 53064 |
q |
| 53065 |
} |
| 53066 |
/^X\(\/\).*/{ |
| 53067 |
s//\1/ |
| 53068 |
q |
| 53069 |
} |
| 53070 |
s/.*/./; q'`/stamp-h$_am_stamp_count |
| 53071 |
;; |
| 53072 |
|
| 53073 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 53074 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 53075 |
;; |
| 53076 |
esac |
| 53077 |
|
| 53078 |
|
| 53079 |
case $ac_file$ac_mode in |
| 53080 |
"depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 53081 |
# Older Autoconf quotes --file arguments for eval, but not when files |
| 53082 |
# are listed without --file. Let's play safe and only enable the eval |
| 53083 |
# if we detect the quoting. |
| 53084 |
# TODO: see whether this extra hack can be removed once we start |
| 53085 |
# requiring Autoconf 2.70 or later. |
| 53086 |
case $CONFIG_FILES in #( |
| 53087 |
*\'*) : |
| 53088 |
eval set x "$CONFIG_FILES" ;; #( |
| 53089 |
*) : |
| 53090 |
set x $CONFIG_FILES ;; #( |
| 53091 |
*) : |
| 53092 |
;; |
| 53093 |
esac |
| 53094 |
shift |
| 53095 |
# Used to flag and report bootstrapping failures. |
| 53096 |
am_rc=0 |
| 53097 |
for am_mf |
| 53098 |
do |
| 53099 |
# Strip MF so we end up with the name of the file. |
| 53100 |
am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` |
| 53101 |
# Check whether this is an Automake generated Makefile which includes |
| 53102 |
# dependency-tracking related rules and includes. |
| 53103 |
# Grep'ing the whole file directly is not great: AIX grep has a line |
| 53104 |
# limit of 2048, but all sed's we know have understand at least 4000. |
| 53105 |
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ |
| 53106 |
|| continue |
| 53107 |
am_dirpart=`$as_dirname -- "$am_mf" || |
| 53108 |
$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 53109 |
X"$am_mf" : 'X\(//\)[^/]' \| \ |
| 53110 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 53111 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 53112 |
printf "%s\n" X"$am_mf" | |
| 53113 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 53114 |
s//\1/ |
| 53115 |
q |
| 53116 |
} |
| 53117 |
/^X\(\/\/\)[^/].*/{ |
| 53118 |
s//\1/ |
| 53119 |
q |
| 53120 |
} |
| 53121 |
/^X\(\/\/\)$/{ |
| 53122 |
s//\1/ |
| 53123 |
q |
| 53124 |
} |
| 53125 |
/^X\(\/\).*/{ |
| 53126 |
s//\1/ |
| 53127 |
q |
| 53128 |
} |
| 53129 |
s/.*/./; q'` |
| 53130 |
am_filepart=`$as_basename -- "$am_mf" || |
| 53131 |
$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ |
| 53132 |
X"$am_mf" : 'X\(//\)$' \| \ |
| 53133 |
X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || |
| 53134 |
printf "%s\n" X/"$am_mf" | |
| 53135 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 53136 |
s//\1/ |
| 53137 |
q |
| 53138 |
} |
| 53139 |
/^X\/\(\/\/\)$/{ |
| 53140 |
s//\1/ |
| 53141 |
q |
| 53142 |
} |
| 53143 |
/^X\/\(\/\).*/{ |
| 53144 |
s//\1/ |
| 53145 |
q |
| 53146 |
} |
| 53147 |
s/.*/./; q'` |
| 53148 |
{ echo "$as_me:$LINENO: cd "$am_dirpart" \ |
| 53149 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 53150 |
| $MAKE -f - am--depfiles" >&5 |
| 53151 |
(cd "$am_dirpart" \ |
| 53152 |
&& sed -e '/# am--include-marker/d' "$am_filepart" \ |
| 53153 |
| $MAKE -f - am--depfiles) >&5 2>&5 |
| 53154 |
ac_status=$? |
| 53155 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 53156 |
(exit $ac_status); } || am_rc=$? |
| 53157 |
done |
| 53158 |
if test $am_rc -ne 0; then |
| 53159 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 53160 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 53161 |
as_fn_error $? "Something went wrong bootstrapping makefile fragments |
| 53162 |
for automatic dependency tracking. If GNU make was not used, consider |
| 53163 |
re-running the configure script with MAKE=\"gmake\" (or whatever is |
| 53164 |
necessary). You can also try re-running configure with the |
| 53165 |
'--disable-dependency-tracking' option to at least be able to build |
| 53166 |
the package (albeit without support for automatic dependency tracking). |
| 53167 |
See 'config.log' for more details" "$LINENO" 5; } |
| 53168 |
fi |
| 53169 |
{ am_dirpart=; unset am_dirpart;} |
| 53170 |
{ am_filepart=; unset am_filepart;} |
| 53171 |
{ am_mf=; unset am_mf;} |
| 53172 |
{ am_rc=; unset am_rc;} |
| 53173 |
rm -f conftest-deps.mk |
| 53174 |
} |
| 53175 |
;; |
| 53176 |
"libtool":C) |
| 53177 |
|
| 53178 |
# See if we are running on zsh, and set the options that allow our |
| 53179 |
# commands through without removal of \ escapes. |
| 53180 |
if test -n "${ZSH_VERSION+set}"; then |
| 53181 |
setopt NO_GLOB_SUBST |
| 53182 |
fi |
| 53183 |
|
| 53184 |
cfgfile=${ofile}T |
| 53185 |
trap "$RM \"$cfgfile\"; exit 1" 1 2 15 |
| 53186 |
$RM "$cfgfile" |
| 53187 |
|
| 53188 |
cat <<_LT_EOF >> "$cfgfile" |
| 53189 |
#! $SHELL |
| 53190 |
# Generated automatically by $as_me ($PACKAGE) $VERSION |
| 53191 |
# NOTE: Changes made to this file will be lost: look at ltmain.sh. |
| 53192 |
|
| 53193 |
# Provide generalized library-building support services. |
| 53194 |
# Written by Gordon Matzigkeit, 1996 |
| 53195 |
|
| 53196 |
# Copyright (C) 2024 Free Software Foundation, Inc. |
| 53197 |
# This is free software; see the source for copying conditions. There is NO |
| 53198 |
# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 53199 |
|
| 53200 |
# GNU Libtool is free software; you can redistribute it and/or modify |
| 53201 |
# it under the terms of the GNU General Public License as published by |
| 53202 |
# the Free Software Foundation; either version 2 of the License, or |
| 53203 |
# (at your option) any later version. |
| 53204 |
# |
| 53205 |
# As a special exception to the GNU General Public License, if you |
| 53206 |
# distribute this file as part of a program or library that is built |
| 53207 |
# using GNU Libtool, you may include this file under the same |
| 53208 |
# distribution terms that you use for the rest of that program. |
| 53209 |
# |
| 53210 |
# GNU Libtool is distributed in the hope that it will be useful, but |
| 53211 |
# WITHOUT ANY WARRANTY; without even the implied warranty of |
| 53212 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 53213 |
# GNU General Public License for more details. |
| 53214 |
# |
| 53215 |
# You should have received a copy of the GNU General Public License |
| 53216 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 53217 |
|
| 53218 |
|
| 53219 |
# The names of the tagged configurations supported by this script. |
| 53220 |
available_tags='RC ' |
| 53221 |
|
| 53222 |
# Configured defaults for sys_lib_dlsearch_path munging. |
| 53223 |
: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} |
| 53224 |
|
| 53225 |
# ### BEGIN LIBTOOL CONFIG |
| 53226 |
|
| 53227 |
# Which release of libtool.m4 was used? |
| 53228 |
macro_version=$macro_version |
| 53229 |
macro_revision=$macro_revision |
| 53230 |
|
| 53231 |
# Assembler program. |
| 53232 |
AS=$lt_AS |
| 53233 |
|
| 53234 |
# DLL creation program. |
| 53235 |
DLLTOOL=$lt_DLLTOOL |
| 53236 |
|
| 53237 |
# Object dumper program. |
| 53238 |
OBJDUMP=$lt_OBJDUMP |
| 53239 |
|
| 53240 |
# Whether or not to build shared libraries. |
| 53241 |
build_libtool_libs=$enable_shared |
| 53242 |
|
| 53243 |
# Whether or not to build static libraries. |
| 53244 |
build_old_libs=$enable_static |
| 53245 |
|
| 53246 |
# What type of objects to build. |
| 53247 |
pic_mode=$pic_mode |
| 53248 |
|
| 53249 |
# Whether or not to optimize for fast installation. |
| 53250 |
fast_install=$enable_fast_install |
| 53251 |
|
| 53252 |
# Shared archive member basename,for filename based shared library versioning on AIX. |
| 53253 |
shared_archive_member_spec=$shared_archive_member_spec |
| 53254 |
|
| 53255 |
# Shell to use when invoking shell scripts. |
| 53256 |
SHELL=$lt_SHELL |
| 53257 |
|
| 53258 |
# An echo program that protects backslashes. |
| 53259 |
ECHO=$lt_ECHO |
| 53260 |
|
| 53261 |
# The PATH separator for the build system. |
| 53262 |
PATH_SEPARATOR=$lt_PATH_SEPARATOR |
| 53263 |
|
| 53264 |
# The host system. |
| 53265 |
host_alias=$host_alias |
| 53266 |
host=$host |
| 53267 |
host_os=$host_os |
| 53268 |
|
| 53269 |
# The build system. |
| 53270 |
build_alias=$build_alias |
| 53271 |
build=$build |
| 53272 |
build_os=$build_os |
| 53273 |
|
| 53274 |
# A sed program that does not truncate output. |
| 53275 |
SED=$lt_SED |
| 53276 |
|
| 53277 |
# Sed that helps us avoid accidentally triggering echo(1) options like -n. |
| 53278 |
Xsed="\$SED -e 1s/^X//" |
| 53279 |
|
| 53280 |
# A grep program that handles long lines. |
| 53281 |
GREP=$lt_GREP |
| 53282 |
|
| 53283 |
# An ERE matcher. |
| 53284 |
EGREP=$lt_EGREP |
| 53285 |
|
| 53286 |
# A literal string matcher. |
| 53287 |
FGREP=$lt_FGREP |
| 53288 |
|
| 53289 |
# A BSD- or MS-compatible name lister. |
| 53290 |
NM=$lt_NM |
| 53291 |
|
| 53292 |
# Whether we need soft or hard links. |
| 53293 |
LN_S=$lt_LN_S |
| 53294 |
|
| 53295 |
# What is the maximum length of a command? |
| 53296 |
max_cmd_len=$max_cmd_len |
| 53297 |
|
| 53298 |
# Object file suffix (normally "o"). |
| 53299 |
objext=$ac_objext |
| 53300 |
|
| 53301 |
# Executable file suffix (normally ""). |
| 53302 |
exeext=$exeext |
| 53303 |
|
| 53304 |
# whether the shell understands "unset". |
| 53305 |
lt_unset=$lt_unset |
| 53306 |
|
| 53307 |
# turn spaces into newlines. |
| 53308 |
SP2NL=$lt_lt_SP2NL |
| 53309 |
|
| 53310 |
# turn newlines into spaces. |
| 53311 |
NL2SP=$lt_lt_NL2SP |
| 53312 |
|
| 53313 |
# convert \$build file names to \$host format. |
| 53314 |
to_host_file_cmd=$lt_cv_to_host_file_cmd |
| 53315 |
|
| 53316 |
# convert \$build files to toolchain format. |
| 53317 |
to_tool_file_cmd=$lt_cv_to_tool_file_cmd |
| 53318 |
|
| 53319 |
# A file(cmd) program that detects file types. |
| 53320 |
FILECMD=$lt_FILECMD |
| 53321 |
|
| 53322 |
# Method to check whether dependent libraries are shared objects. |
| 53323 |
deplibs_check_method=$lt_deplibs_check_method |
| 53324 |
|
| 53325 |
# Command to use when deplibs_check_method = "file_magic". |
| 53326 |
file_magic_cmd=$lt_file_magic_cmd |
| 53327 |
|
| 53328 |
# How to find potential files when deplibs_check_method = "file_magic". |
| 53329 |
file_magic_glob=$lt_file_magic_glob |
| 53330 |
|
| 53331 |
# Find potential files using nocaseglob when deplibs_check_method = "file_magic". |
| 53332 |
want_nocaseglob=$lt_want_nocaseglob |
| 53333 |
|
| 53334 |
# Command to associate shared and link libraries. |
| 53335 |
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd |
| 53336 |
|
| 53337 |
# The archiver. |
| 53338 |
AR=$lt_AR |
| 53339 |
|
| 53340 |
# Flags to create an archive (by configure). |
| 53341 |
lt_ar_flags=$lt_ar_flags |
| 53342 |
|
| 53343 |
# Flags to create an archive. |
| 53344 |
AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} |
| 53345 |
|
| 53346 |
# How to feed a file listing to the archiver. |
| 53347 |
archiver_list_spec=$lt_archiver_list_spec |
| 53348 |
|
| 53349 |
# A symbol stripping program. |
| 53350 |
STRIP=$lt_STRIP |
| 53351 |
|
| 53352 |
# Commands used to install an old-style archive. |
| 53353 |
RANLIB=$lt_RANLIB |
| 53354 |
old_postinstall_cmds=$lt_old_postinstall_cmds |
| 53355 |
old_postuninstall_cmds=$lt_old_postuninstall_cmds |
| 53356 |
|
| 53357 |
# Whether to use a lock for old archive extraction. |
| 53358 |
lock_old_archive_extraction=$lock_old_archive_extraction |
| 53359 |
|
| 53360 |
# A C compiler. |
| 53361 |
LTCC=$lt_CC |
| 53362 |
|
| 53363 |
# LTCC compiler flags. |
| 53364 |
LTCFLAGS=$lt_CFLAGS |
| 53365 |
|
| 53366 |
# Take the output of nm and produce a listing of raw symbols and C names. |
| 53367 |
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
| 53368 |
|
| 53369 |
# Transform the output of nm in a proper C declaration. |
| 53370 |
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
| 53371 |
|
| 53372 |
# Transform the output of nm into a list of symbols to manually relocate. |
| 53373 |
global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import |
| 53374 |
|
| 53375 |
# Transform the output of nm in a C name address pair. |
| 53376 |
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
| 53377 |
|
| 53378 |
# Transform the output of nm in a C name address pair when lib prefix is needed. |
| 53379 |
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
| 53380 |
|
| 53381 |
# The name lister interface. |
| 53382 |
nm_interface=$lt_lt_cv_nm_interface |
| 53383 |
|
| 53384 |
# Specify filename containing input files for \$NM. |
| 53385 |
nm_file_list_spec=$lt_nm_file_list_spec |
| 53386 |
|
| 53387 |
# The root where to search for dependent libraries,and where our libraries should be installed. |
| 53388 |
lt_sysroot=$lt_sysroot |
| 53389 |
|
| 53390 |
# Command to truncate a binary pipe. |
| 53391 |
lt_truncate_bin=$lt_lt_cv_truncate_bin |
| 53392 |
|
| 53393 |
# The name of the directory that contains temporary libtool files. |
| 53394 |
objdir=$objdir |
| 53395 |
|
| 53396 |
# Used to examine libraries when file_magic_cmd begins with "file". |
| 53397 |
MAGIC_CMD=$MAGIC_CMD |
| 53398 |
|
| 53399 |
# Must we lock files when doing compilation? |
| 53400 |
need_locks=$lt_need_locks |
| 53401 |
|
| 53402 |
# Manifest tool. |
| 53403 |
MANIFEST_TOOL=$lt_MANIFEST_TOOL |
| 53404 |
|
| 53405 |
# Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
| 53406 |
DSYMUTIL=$lt_DSYMUTIL |
| 53407 |
|
| 53408 |
# Tool to change global to local symbols on Mac OS X. |
| 53409 |
NMEDIT=$lt_NMEDIT |
| 53410 |
|
| 53411 |
# Tool to manipulate fat objects and archives on Mac OS X. |
| 53412 |
LIPO=$lt_LIPO |
| 53413 |
|
| 53414 |
# ldd/readelf like tool for Mach-O binaries on Mac OS X. |
| 53415 |
OTOOL=$lt_OTOOL |
| 53416 |
|
| 53417 |
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. |
| 53418 |
OTOOL64=$lt_OTOOL64 |
| 53419 |
|
| 53420 |
# Old archive suffix (normally "a"). |
| 53421 |
libext=$libext |
| 53422 |
|
| 53423 |
# Shared library suffix (normally ".so"). |
| 53424 |
shrext_cmds=$lt_shrext_cmds |
| 53425 |
|
| 53426 |
# The commands to extract the exported symbol list from a shared archive. |
| 53427 |
extract_expsyms_cmds=$lt_extract_expsyms_cmds |
| 53428 |
|
| 53429 |
# Variables whose values should be saved in libtool wrapper scripts and |
| 53430 |
# restored at link time. |
| 53431 |
variables_saved_for_relink=$lt_variables_saved_for_relink |
| 53432 |
|
| 53433 |
# Do we need the "lib" prefix for modules? |
| 53434 |
need_lib_prefix=$need_lib_prefix |
| 53435 |
|
| 53436 |
# Do we need a version for libraries? |
| 53437 |
need_version=$need_version |
| 53438 |
|
| 53439 |
# Library versioning type. |
| 53440 |
version_type=$version_type |
| 53441 |
|
| 53442 |
# Shared library runtime path variable. |
| 53443 |
runpath_var=$runpath_var |
| 53444 |
|
| 53445 |
# Shared library path variable. |
| 53446 |
shlibpath_var=$shlibpath_var |
| 53447 |
|
| 53448 |
# Is shlibpath searched before the hard-coded library search path? |
| 53449 |
shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
| 53450 |
|
| 53451 |
# Format of library name prefix. |
| 53452 |
libname_spec=$lt_libname_spec |
| 53453 |
|
| 53454 |
# List of archive names. First name is the real one, the rest are links. |
| 53455 |
# The last name is the one that the linker finds with -lNAME |
| 53456 |
library_names_spec=$lt_library_names_spec |
| 53457 |
|
| 53458 |
# The coded name of the library, if different from the real name. |
| 53459 |
soname_spec=$lt_soname_spec |
| 53460 |
|
| 53461 |
# Permission mode override for installation of shared libraries. |
| 53462 |
install_override_mode=$lt_install_override_mode |
| 53463 |
|
| 53464 |
# Command to use after installation of a shared archive. |
| 53465 |
postinstall_cmds=$lt_postinstall_cmds |
| 53466 |
|
| 53467 |
# Command to use after uninstallation of a shared archive. |
| 53468 |
postuninstall_cmds=$lt_postuninstall_cmds |
| 53469 |
|
| 53470 |
# Commands used to finish a libtool library installation in a directory. |
| 53471 |
finish_cmds=$lt_finish_cmds |
| 53472 |
|
| 53473 |
# As "finish_cmds", except a single script fragment to be evaled but |
| 53474 |
# not shown. |
| 53475 |
finish_eval=$lt_finish_eval |
| 53476 |
|
| 53477 |
# Whether we should hardcode library paths into libraries. |
| 53478 |
hardcode_into_libs=$hardcode_into_libs |
| 53479 |
|
| 53480 |
# Compile-time system search path for libraries. |
| 53481 |
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
| 53482 |
|
| 53483 |
# Detected run-time system search path for libraries. |
| 53484 |
sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path |
| 53485 |
|
| 53486 |
# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. |
| 53487 |
configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path |
| 53488 |
|
| 53489 |
# Whether dlopen is supported. |
| 53490 |
dlopen_support=$enable_dlopen |
| 53491 |
|
| 53492 |
# Whether dlopen of programs is supported. |
| 53493 |
dlopen_self=$enable_dlopen_self |
| 53494 |
|
| 53495 |
# Whether dlopen of statically linked programs is supported. |
| 53496 |
dlopen_self_static=$enable_dlopen_self_static |
| 53497 |
|
| 53498 |
# Commands to strip libraries. |
| 53499 |
old_striplib=$lt_old_striplib |
| 53500 |
striplib=$lt_striplib |
| 53501 |
|
| 53502 |
|
| 53503 |
# The linker used to build libraries. |
| 53504 |
LD=$lt_LD |
| 53505 |
|
| 53506 |
# How to create reloadable object files. |
| 53507 |
reload_flag=$lt_reload_flag |
| 53508 |
reload_cmds=$lt_reload_cmds |
| 53509 |
|
| 53510 |
# Commands used to build an old-style archive. |
| 53511 |
old_archive_cmds=$lt_old_archive_cmds |
| 53512 |
|
| 53513 |
# A language specific compiler. |
| 53514 |
CC=$lt_compiler |
| 53515 |
|
| 53516 |
# Is the compiler the GNU compiler? |
| 53517 |
with_gcc=$GCC |
| 53518 |
|
| 53519 |
# Compiler flag to turn off builtin functions. |
| 53520 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
| 53521 |
|
| 53522 |
# Additional compiler flags for building library objects. |
| 53523 |
pic_flag=$lt_lt_prog_compiler_pic |
| 53524 |
|
| 53525 |
# How to pass a linker flag through the compiler. |
| 53526 |
wl=$lt_lt_prog_compiler_wl |
| 53527 |
|
| 53528 |
# Compiler flag to prevent dynamic linking. |
| 53529 |
link_static_flag=$lt_lt_prog_compiler_static |
| 53530 |
|
| 53531 |
# Does compiler simultaneously support -c and -o options? |
| 53532 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
| 53533 |
|
| 53534 |
# Whether or not to add -lc for building shared libraries. |
| 53535 |
build_libtool_need_lc=$archive_cmds_need_lc |
| 53536 |
|
| 53537 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 53538 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
| 53539 |
|
| 53540 |
# Compiler flag to allow reflexive dlopens. |
| 53541 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
| 53542 |
|
| 53543 |
# Compiler flag to generate shared objects directly from archives. |
| 53544 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec |
| 53545 |
|
| 53546 |
# Whether the compiler copes with passing no objects directly. |
| 53547 |
compiler_needs_object=$lt_compiler_needs_object |
| 53548 |
|
| 53549 |
# Create an old-style archive from a shared archive. |
| 53550 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
| 53551 |
|
| 53552 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 53553 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
| 53554 |
|
| 53555 |
# Commands used to build a shared archive. |
| 53556 |
archive_cmds=$lt_archive_cmds |
| 53557 |
archive_expsym_cmds=$lt_archive_expsym_cmds |
| 53558 |
|
| 53559 |
# Commands used to build a loadable module if different from building |
| 53560 |
# a shared archive. |
| 53561 |
module_cmds=$lt_module_cmds |
| 53562 |
module_expsym_cmds=$lt_module_expsym_cmds |
| 53563 |
|
| 53564 |
# Whether we are building with GNU ld or not. |
| 53565 |
with_gnu_ld=$lt_with_gnu_ld |
| 53566 |
|
| 53567 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 53568 |
allow_undefined_flag=$lt_allow_undefined_flag |
| 53569 |
|
| 53570 |
# Flag that enforces no undefined symbols. |
| 53571 |
no_undefined_flag=$lt_no_undefined_flag |
| 53572 |
|
| 53573 |
# Flag to hardcode \$libdir into a binary during linking. |
| 53574 |
# This must work even if \$libdir does not exist |
| 53575 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
| 53576 |
|
| 53577 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 53578 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator |
| 53579 |
|
| 53580 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 53581 |
# DIR into the resulting binary. |
| 53582 |
hardcode_direct=$hardcode_direct |
| 53583 |
|
| 53584 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 53585 |
# DIR into the resulting binary and the resulting library dependency is |
| 53586 |
# "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 53587 |
# library is relocated. |
| 53588 |
hardcode_direct_absolute=$hardcode_direct_absolute |
| 53589 |
|
| 53590 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 53591 |
# into the resulting binary. |
| 53592 |
hardcode_minus_L=$hardcode_minus_L |
| 53593 |
|
| 53594 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 53595 |
# into the resulting binary. |
| 53596 |
hardcode_shlibpath_var=$hardcode_shlibpath_var |
| 53597 |
|
| 53598 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 53599 |
# into the library and all subsequent libraries and executables linked |
| 53600 |
# against it. |
| 53601 |
hardcode_automatic=$hardcode_automatic |
| 53602 |
|
| 53603 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 53604 |
# to runtime path list. |
| 53605 |
inherit_rpath=$inherit_rpath |
| 53606 |
|
| 53607 |
# Whether libtool must link a program against all its dependency libraries. |
| 53608 |
link_all_deplibs=$link_all_deplibs |
| 53609 |
|
| 53610 |
# Set to "yes" if exported symbols are required. |
| 53611 |
always_export_symbols=$always_export_symbols |
| 53612 |
|
| 53613 |
# The commands to list exported symbols. |
| 53614 |
export_symbols_cmds=$lt_export_symbols_cmds |
| 53615 |
|
| 53616 |
# Symbols that should not be listed in the preloaded symbols. |
| 53617 |
exclude_expsyms=$lt_exclude_expsyms |
| 53618 |
|
| 53619 |
# Symbols that must always be exported. |
| 53620 |
include_expsyms=$lt_include_expsyms |
| 53621 |
|
| 53622 |
# Commands necessary for linking programs (against libraries) with templates. |
| 53623 |
prelink_cmds=$lt_prelink_cmds |
| 53624 |
|
| 53625 |
# Commands necessary for finishing linking programs. |
| 53626 |
postlink_cmds=$lt_postlink_cmds |
| 53627 |
|
| 53628 |
# Specify filename containing input files. |
| 53629 |
file_list_spec=$lt_file_list_spec |
| 53630 |
|
| 53631 |
# How to hardcode a shared library path into an executable. |
| 53632 |
hardcode_action=$hardcode_action |
| 53633 |
|
| 53634 |
# ### END LIBTOOL CONFIG |
| 53635 |
|
| 53636 |
_LT_EOF |
| 53637 |
|
| 53638 |
cat <<'_LT_EOF' >> "$cfgfile" |
| 53639 |
|
| 53640 |
# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE |
| 53641 |
|
| 53642 |
# func_munge_path_list VARIABLE PATH |
| 53643 |
# ----------------------------------- |
| 53644 |
# VARIABLE is name of variable containing _space_ separated list of |
| 53645 |
# directories to be munged by the contents of PATH, which is string |
| 53646 |
# having a format: |
| 53647 |
# "DIR[:DIR]:" |
| 53648 |
# string "DIR[ DIR]" will be prepended to VARIABLE |
| 53649 |
# ":DIR[:DIR]" |
| 53650 |
# string "DIR[ DIR]" will be appended to VARIABLE |
| 53651 |
# "DIRP[:DIRP]::[DIRA:]DIRA" |
| 53652 |
# string "DIRP[ DIRP]" will be prepended to VARIABLE and string |
| 53653 |
# "DIRA[ DIRA]" will be appended to VARIABLE |
| 53654 |
# "DIR[:DIR]" |
| 53655 |
# VARIABLE will be replaced by "DIR[ DIR]" |
| 53656 |
func_munge_path_list () |
| 53657 |
{ |
| 53658 |
case x$2 in |
| 53659 |
x) |
| 53660 |
;; |
| 53661 |
*:) |
| 53662 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" |
| 53663 |
;; |
| 53664 |
x:*) |
| 53665 |
eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" |
| 53666 |
;; |
| 53667 |
*::*) |
| 53668 |
eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" |
| 53669 |
eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" |
| 53670 |
;; |
| 53671 |
*) |
| 53672 |
eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" |
| 53673 |
;; |
| 53674 |
esac |
| 53675 |
} |
| 53676 |
|
| 53677 |
|
| 53678 |
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
| 53679 |
func_cc_basename () |
| 53680 |
{ |
| 53681 |
for cc_temp in $*""; do |
| 53682 |
case $cc_temp in |
| 53683 |
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
| 53684 |
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
| 53685 |
\-*) ;; |
| 53686 |
*) break;; |
| 53687 |
esac |
| 53688 |
done |
| 53689 |
func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
| 53690 |
} |
| 53691 |
|
| 53692 |
|
| 53693 |
# ### END FUNCTIONS SHARED WITH CONFIGURE |
| 53694 |
|
| 53695 |
_LT_EOF |
| 53696 |
|
| 53697 |
case $host_os in |
| 53698 |
aix3*) |
| 53699 |
cat <<\_LT_EOF >> "$cfgfile" |
| 53700 |
# AIX sometimes has problems with the GCC collect2 program. For some |
| 53701 |
# reason, if we set the COLLECT_NAMES environment variable, the problems |
| 53702 |
# vanish in a puff of smoke. |
| 53703 |
if test set != "${COLLECT_NAMES+set}"; then |
| 53704 |
COLLECT_NAMES= |
| 53705 |
export COLLECT_NAMES |
| 53706 |
fi |
| 53707 |
_LT_EOF |
| 53708 |
;; |
| 53709 |
esac |
| 53710 |
|
| 53711 |
|
| 53712 |
|
| 53713 |
ltmain=$ac_aux_dir/ltmain.sh |
| 53714 |
|
| 53715 |
|
| 53716 |
# We use sed instead of cat because bash on DJGPP gets confused if |
| 53717 |
# if finds mixed CR/LF and LF-only lines. Since sed operates in |
| 53718 |
# text mode, it properly converts lines to CR/LF. This bash problem |
| 53719 |
# is reportedly fixed, but why not run on old versions too? |
| 53720 |
$SED '$q' "$ltmain" >> "$cfgfile" \ |
| 53721 |
|| (rm -f "$cfgfile"; exit 1) |
| 53722 |
|
| 53723 |
mv -f "$cfgfile" "$ofile" || |
| 53724 |
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
| 53725 |
chmod +x "$ofile" |
| 53726 |
|
| 53727 |
|
| 53728 |
cat <<_LT_EOF >> "$ofile" |
| 53729 |
|
| 53730 |
# ### BEGIN LIBTOOL TAG CONFIG: RC |
| 53731 |
|
| 53732 |
# The linker used to build libraries. |
| 53733 |
LD=$lt_LD_RC |
| 53734 |
|
| 53735 |
# How to create reloadable object files. |
| 53736 |
reload_flag=$lt_reload_flag_RC |
| 53737 |
reload_cmds=$lt_reload_cmds_RC |
| 53738 |
|
| 53739 |
# Commands used to build an old-style archive. |
| 53740 |
old_archive_cmds=$lt_old_archive_cmds_RC |
| 53741 |
|
| 53742 |
# A language specific compiler. |
| 53743 |
CC=$lt_compiler_RC |
| 53744 |
|
| 53745 |
# Is the compiler the GNU compiler? |
| 53746 |
with_gcc=$GCC_RC |
| 53747 |
|
| 53748 |
# Compiler flag to turn off builtin functions. |
| 53749 |
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
| 53750 |
|
| 53751 |
# Additional compiler flags for building library objects. |
| 53752 |
pic_flag=$lt_lt_prog_compiler_pic_RC |
| 53753 |
|
| 53754 |
# How to pass a linker flag through the compiler. |
| 53755 |
wl=$lt_lt_prog_compiler_wl_RC |
| 53756 |
|
| 53757 |
# Compiler flag to prevent dynamic linking. |
| 53758 |
link_static_flag=$lt_lt_prog_compiler_static_RC |
| 53759 |
|
| 53760 |
# Does compiler simultaneously support -c and -o options? |
| 53761 |
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
| 53762 |
|
| 53763 |
# Whether or not to add -lc for building shared libraries. |
| 53764 |
build_libtool_need_lc=$archive_cmds_need_lc_RC |
| 53765 |
|
| 53766 |
# Whether or not to disallow shared libs when runtime libs are static. |
| 53767 |
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
| 53768 |
|
| 53769 |
# Compiler flag to allow reflexive dlopens. |
| 53770 |
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
| 53771 |
|
| 53772 |
# Compiler flag to generate shared objects directly from archives. |
| 53773 |
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
| 53774 |
|
| 53775 |
# Whether the compiler copes with passing no objects directly. |
| 53776 |
compiler_needs_object=$lt_compiler_needs_object_RC |
| 53777 |
|
| 53778 |
# Create an old-style archive from a shared archive. |
| 53779 |
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
| 53780 |
|
| 53781 |
# Create a temporary old-style archive to link instead of a shared archive. |
| 53782 |
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
| 53783 |
|
| 53784 |
# Commands used to build a shared archive. |
| 53785 |
archive_cmds=$lt_archive_cmds_RC |
| 53786 |
archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
| 53787 |
|
| 53788 |
# Commands used to build a loadable module if different from building |
| 53789 |
# a shared archive. |
| 53790 |
module_cmds=$lt_module_cmds_RC |
| 53791 |
module_expsym_cmds=$lt_module_expsym_cmds_RC |
| 53792 |
|
| 53793 |
# Whether we are building with GNU ld or not. |
| 53794 |
with_gnu_ld=$lt_with_gnu_ld_RC |
| 53795 |
|
| 53796 |
# Flag that allows shared libraries with undefined symbols to be built. |
| 53797 |
allow_undefined_flag=$lt_allow_undefined_flag_RC |
| 53798 |
|
| 53799 |
# Flag that enforces no undefined symbols. |
| 53800 |
no_undefined_flag=$lt_no_undefined_flag_RC |
| 53801 |
|
| 53802 |
# Flag to hardcode \$libdir into a binary during linking. |
| 53803 |
# This must work even if \$libdir does not exist |
| 53804 |
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
| 53805 |
|
| 53806 |
# Whether we need a single "-rpath" flag with a separated argument. |
| 53807 |
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
| 53808 |
|
| 53809 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 53810 |
# DIR into the resulting binary. |
| 53811 |
hardcode_direct=$hardcode_direct_RC |
| 53812 |
|
| 53813 |
# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes |
| 53814 |
# DIR into the resulting binary and the resulting library dependency is |
| 53815 |
# "absolute",i.e. impossible to change by setting \$shlibpath_var if the |
| 53816 |
# library is relocated. |
| 53817 |
hardcode_direct_absolute=$hardcode_direct_absolute_RC |
| 53818 |
|
| 53819 |
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR |
| 53820 |
# into the resulting binary. |
| 53821 |
hardcode_minus_L=$hardcode_minus_L_RC |
| 53822 |
|
| 53823 |
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR |
| 53824 |
# into the resulting binary. |
| 53825 |
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
| 53826 |
|
| 53827 |
# Set to "yes" if building a shared library automatically hardcodes DIR |
| 53828 |
# into the library and all subsequent libraries and executables linked |
| 53829 |
# against it. |
| 53830 |
hardcode_automatic=$hardcode_automatic_RC |
| 53831 |
|
| 53832 |
# Set to yes if linker adds runtime paths of dependent libraries |
| 53833 |
# to runtime path list. |
| 53834 |
inherit_rpath=$inherit_rpath_RC |
| 53835 |
|
| 53836 |
# Whether libtool must link a program against all its dependency libraries. |
| 53837 |
link_all_deplibs=$link_all_deplibs_RC |
| 53838 |
|
| 53839 |
# Set to "yes" if exported symbols are required. |
| 53840 |
always_export_symbols=$always_export_symbols_RC |
| 53841 |
|
| 53842 |
# The commands to list exported symbols. |
| 53843 |
export_symbols_cmds=$lt_export_symbols_cmds_RC |
| 53844 |
|
| 53845 |
# Symbols that should not be listed in the preloaded symbols. |
| 53846 |
exclude_expsyms=$lt_exclude_expsyms_RC |
| 53847 |
|
| 53848 |
# Symbols that must always be exported. |
| 53849 |
include_expsyms=$lt_include_expsyms_RC |
| 53850 |
|
| 53851 |
# Commands necessary for linking programs (against libraries) with templates. |
| 53852 |
prelink_cmds=$lt_prelink_cmds_RC |
| 53853 |
|
| 53854 |
# Commands necessary for finishing linking programs. |
| 53855 |
postlink_cmds=$lt_postlink_cmds_RC |
| 53856 |
|
| 53857 |
# Specify filename containing input files. |
| 53858 |
file_list_spec=$lt_file_list_spec_RC |
| 53859 |
|
| 53860 |
# How to hardcode a shared library path into an executable. |
| 53861 |
hardcode_action=$hardcode_action_RC |
| 53862 |
|
| 53863 |
# ### END LIBTOOL TAG CONFIG: RC |
| 53864 |
_LT_EOF |
| 53865 |
|
| 53866 |
;; |
| 53867 |
"po/Makefile.in":C) |
| 53868 |
echo "Skipping update of po/Makefile.in" |
| 53869 |
echo "Real update of po/Makefile.in for 'make dist' is performed by po-config.status" |
| 53870 |
|
| 53871 |
;; |
| 53872 |
"po-directories":C) |
| 53873 |
echo "Skipping po-directories command." |
| 53874 |
echo "Real po-directories command for 'make dist' is implemented in po-config.status" |
| 53875 |
|
| 53876 |
;; |
| 53877 |
|
| 53878 |
esac |
| 53879 |
done # for ac_tag |
| 53880 |
|
| 53881 |
|
| 53882 |
as_fn_exit 0 |
| 53883 |
_ACEOF |
| 53884 |
ac_clean_files=$ac_clean_files_save |
| 53885 |
|
| 53886 |
test $ac_write_fail = 0 || |
| 53887 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 53888 |
|
| 53889 |
|
| 53890 |
# configure is writing to config.log, and then calls config.status. |
| 53891 |
# config.status does its own redirection, appending to config.log. |
| 53892 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 53893 |
# by configure, so config.status won't be able to write to it; its |
| 53894 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 53895 |
# effectively closing config.log, so it can be properly (re)opened and |
| 53896 |
# appended to by config.status. When coming back to configure, we |
| 53897 |
# need to make the FD available again. |
| 53898 |
if test "$no_create" != yes; then |
| 53899 |
ac_cs_success=: |
| 53900 |
ac_config_status_args= |
| 53901 |
test "$silent" = yes && |
| 53902 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 53903 |
exec 5>/dev/null |
| 53904 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 53905 |
exec 5>>config.log |
| 53906 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 53907 |
# would make configure fail if this is the last instruction. |
| 53908 |
$ac_cs_success || as_fn_exit 1 |
| 53909 |
fi |
| 53910 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 53911 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 53912 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 53913 |
fi |
| 53914 |
|
| 53915 |
|
| 53916 |
# Finally: summary |
| 53917 |
# Format flags without extra spaces for visual beauty |
| 53918 |
fin_CPPFLAGS="$user_CPPFLAGS" |
| 53919 |
fin_CFLAGS="$user_CFLAGS" |
| 53920 |
fin_LDFLAGS="$user_LDFLAGS" |
| 53921 |
if test -z "$CPPFLAGS_ac" |
| 53922 |
then : |
| 53923 |
fin_CPPFLAGS="${fin_CPPFLAGS}" |
| 53924 |
elif test -z "${fin_CPPFLAGS}" |
| 53925 |
then : |
| 53926 |
fin_CPPFLAGS="$CPPFLAGS_ac" |
| 53927 |
else case e in #( |
| 53928 |
e) fin_CPPFLAGS="$CPPFLAGS_ac ${fin_CPPFLAGS}" ;; |
| 53929 |
esac |
| 53930 |
fi |
| 53931 |
|
| 53932 |
if test -z "$CFLAGS_ac" |
| 53933 |
then : |
| 53934 |
fin_CFLAGS="${fin_CFLAGS}" |
| 53935 |
elif test -z "${fin_CFLAGS}" |
| 53936 |
then : |
| 53937 |
fin_CFLAGS="$CFLAGS_ac" |
| 53938 |
else case e in #( |
| 53939 |
e) fin_CFLAGS="$CFLAGS_ac ${fin_CFLAGS}" ;; |
| 53940 |
esac |
| 53941 |
fi |
| 53942 |
|
| 53943 |
if test -z "$LDFLAGS_ac" |
| 53944 |
then : |
| 53945 |
fin_LDFLAGS="${fin_LDFLAGS}" |
| 53946 |
elif test -z "${fin_LDFLAGS}" |
| 53947 |
then : |
| 53948 |
fin_LDFLAGS="$LDFLAGS_ac" |
| 53949 |
else case e in #( |
| 53950 |
e) fin_LDFLAGS="$LDFLAGS_ac ${fin_LDFLAGS}" ;; |
| 53951 |
esac |
| 53952 |
fi |
| 53953 |
|
| 53954 |
fin_lib_CPPFLAGS="$user_CPPFLAGS" |
| 53955 |
fin_lib_CFLAGS="$user_CFLAGS" |
| 53956 |
fin_lib_LDFLAGS="$user_LDFLAGS" |
| 53957 |
if test -z "$MHD_LIB_CPPFLAGS" |
| 53958 |
then : |
| 53959 |
fin_lib_CPPFLAGS="${fin_lib_CPPFLAGS}" |
| 53960 |
elif test -z "${fin_lib_CPPFLAGS}" |
| 53961 |
then : |
| 53962 |
fin_lib_CPPFLAGS="$MHD_LIB_CPPFLAGS" |
| 53963 |
else case e in #( |
| 53964 |
e) fin_lib_CPPFLAGS="$MHD_LIB_CPPFLAGS ${fin_lib_CPPFLAGS}" ;; |
| 53965 |
esac |
| 53966 |
fi |
| 53967 |
|
| 53968 |
if test -z "$MHD_LIB_CFLAGS" |
| 53969 |
then : |
| 53970 |
fin_lib_CFLAGS="${fin_lib_CFLAGS}" |
| 53971 |
elif test -z "${fin_lib_CFLAGS}" |
| 53972 |
then : |
| 53973 |
fin_lib_CFLAGS="$MHD_LIB_CFLAGS" |
| 53974 |
else case e in #( |
| 53975 |
e) fin_lib_CFLAGS="$MHD_LIB_CFLAGS ${fin_lib_CFLAGS}" ;; |
| 53976 |
esac |
| 53977 |
fi |
| 53978 |
|
| 53979 |
if test -z "$MHD_LIB_LDFLAGS" |
| 53980 |
then : |
| 53981 |
fin_lib_LDFLAGS="${fin_lib_LDFLAGS}" |
| 53982 |
elif test -z "${fin_lib_LDFLAGS}" |
| 53983 |
then : |
| 53984 |
fin_lib_LDFLAGS="$MHD_LIB_LDFLAGS" |
| 53985 |
else case e in #( |
| 53986 |
e) fin_lib_LDFLAGS="$MHD_LIB_LDFLAGS ${fin_lib_LDFLAGS}" ;; |
| 53987 |
esac |
| 53988 |
fi |
| 53989 |
|
| 53990 |
if test -z "$CPPFLAGS_ac" |
| 53991 |
then : |
| 53992 |
fin_lib_CPPFLAGS="${fin_lib_CPPFLAGS}" |
| 53993 |
elif test -z "${fin_lib_CPPFLAGS}" |
| 53994 |
then : |
| 53995 |
fin_lib_CPPFLAGS="$CPPFLAGS_ac" |
| 53996 |
else case e in #( |
| 53997 |
e) fin_lib_CPPFLAGS="$CPPFLAGS_ac ${fin_lib_CPPFLAGS}" ;; |
| 53998 |
esac |
| 53999 |
fi |
| 54000 |
|
| 54001 |
if test -z "$CFLAGS_ac" |
| 54002 |
then : |
| 54003 |
fin_lib_CFLAGS="${fin_lib_CFLAGS}" |
| 54004 |
elif test -z "${fin_lib_CFLAGS}" |
| 54005 |
then : |
| 54006 |
fin_lib_CFLAGS="$CFLAGS_ac" |
| 54007 |
else case e in #( |
| 54008 |
e) fin_lib_CFLAGS="$CFLAGS_ac ${fin_lib_CFLAGS}" ;; |
| 54009 |
esac |
| 54010 |
fi |
| 54011 |
|
| 54012 |
if test -z "$LDFLAGS_ac" |
| 54013 |
then : |
| 54014 |
fin_lib_LDFLAGS="${fin_lib_LDFLAGS}" |
| 54015 |
elif test -z "${fin_lib_LDFLAGS}" |
| 54016 |
then : |
| 54017 |
fin_lib_LDFLAGS="$LDFLAGS_ac" |
| 54018 |
else case e in #( |
| 54019 |
e) fin_lib_LDFLAGS="$LDFLAGS_ac ${fin_lib_LDFLAGS}" ;; |
| 54020 |
esac |
| 54021 |
fi |
| 54022 |
|
| 54023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Toolchain settings: |
| 54024 |
CC=$CC |
| 54025 |
User/system/default flags: |
| 54026 |
CPPFLAGS=\"$user_CPPFLAGS\" |
| 54027 |
CFLAGS= \"$user_CFLAGS\" |
| 54028 |
LDFLAGS= \"$user_LDFLAGS\" |
| 54029 |
Final set of the flags for tests and examples: |
| 54030 |
CPPFLAGS=\"$fin_CPPFLAGS\" |
| 54031 |
CFLAGS= \"$fin_CFLAGS\" |
| 54032 |
LDFLAGS= \"$fin_LDFLAGS\" |
| 54033 |
Final set of the flags for ${PACKAGE_NAME} library: |
| 54034 |
CPPFLAGS=\"$fin_lib_CPPFLAGS\" |
| 54035 |
CFLAGS= \"$fin_lib_CFLAGS\" |
| 54036 |
LDFLAGS= \"$fin_lib_LDFLAGS\" |
| 54037 |
" >&5 |
| 54038 |
printf "%s\n" "$as_me: Toolchain settings: |
| 54039 |
CC=$CC |
| 54040 |
User/system/default flags: |
| 54041 |
CPPFLAGS=\"$user_CPPFLAGS\" |
| 54042 |
CFLAGS= \"$user_CFLAGS\" |
| 54043 |
LDFLAGS= \"$user_LDFLAGS\" |
| 54044 |
Final set of the flags for tests and examples: |
| 54045 |
CPPFLAGS=\"$fin_CPPFLAGS\" |
| 54046 |
CFLAGS= \"$fin_CFLAGS\" |
| 54047 |
LDFLAGS= \"$fin_LDFLAGS\" |
| 54048 |
Final set of the flags for ${PACKAGE_NAME} library: |
| 54049 |
CPPFLAGS=\"$fin_lib_CPPFLAGS\" |
| 54050 |
CFLAGS= \"$fin_lib_CFLAGS\" |
| 54051 |
LDFLAGS= \"$fin_lib_LDFLAGS\" |
| 54052 |
" >&6;} |
| 54053 |
{ fin_CPPFLAGS=; unset fin_CPPFLAGS;} |
| 54054 |
{ fin_CFLAGS=; unset fin_CFLAGS;} |
| 54055 |
{ fin_LDFLAGS=; unset fin_LDFLAGS;} |
| 54056 |
{ fin_lib_CPPFLAGS=; unset fin_lib_CPPFLAGS;} |
| 54057 |
{ fin_lib_CFLAGS=; unset fin_lib_CFLAGS;} |
| 54058 |
{ fin_lib_LDFLAGS=; unset fin_lib_LDFLAGS;} |
| 54059 |
|
| 54060 |
if test "x$os_is_windows" = x"yes" |
| 54061 |
then : |
| 54062 |
os_ver_msg=" |
| 54063 |
Target W32 ver: ${mhd_w32_ver_msg}" |
| 54064 |
else case e in #( |
| 54065 |
e) { os_ver_msg=; unset os_ver_msg;} ;; |
| 54066 |
esac |
| 54067 |
fi |
| 54068 |
|
| 54069 |
|
| 54070 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: GNU libmicrohttpd ${PACKAGE_VERSION} Configuration Summary: |
| 54071 |
Target directory: ${prefix} |
| 54072 |
Cross-compiling: ${cross_compiling} |
| 54073 |
Operating System: ${mhd_host_os}${os_ver_msg} |
| 54074 |
Threading lib: ${USE_THREADS} |
| 54075 |
Inter-thread comm: ${use_itc} |
| 54076 |
Shutdown of listening socket triggers select: ${mhd_cv_host_shtdwn_trgr_select} |
| 54077 |
poll support: ${enable_poll=no} |
| 54078 |
epoll support: ${enable_epoll=no} |
| 54079 |
sendfile used: ${found_sendfile} |
| 54080 |
HTTPS support: ${MSG_HTTPS} |
| 54081 |
Messages: ${enable_messages} |
| 54082 |
Cookie parsing: ${enable_cookie} |
| 54083 |
Postproc: ${enable_postprocessor} |
| 54084 |
Basic auth.: ${enable_bauth} |
| 54085 |
Digest auth.: ${enable_dauth} |
| 54086 |
Digest auth. defaults: ${dauth_defs_MSG} |
| 54087 |
MD5: ${enable_md5_MSG} |
| 54088 |
SHA-256: ${enable_sha256_MSG} |
| 54089 |
SHA-512/256: ${enable_sha512_256_MSG} |
| 54090 |
HTTP \"Upgrade\": ${enable_httpupgrade} |
| 54091 |
Compact code: ${enable_compact_code} (${compact_code_MSG}) |
| 54092 |
Use thread names: ${enable_thread_names} |
| 54093 |
Use debug asserts: ${use_asserts_MSG=no} |
| 54094 |
Use sanitizers: ${enabled_sanitizers:=no} |
| 54095 |
Build static lib: ${enable_static} |
| 54096 |
Build shared lib: ${enable_shared} |
| 54097 |
Build docs: ${enable_doc} |
| 54098 |
Build examples: ${enable_examples} |
| 54099 |
Build tools: ${enable_tools} |
| 54100 |
Test with libcurl: ${MSG_CURL} |
| 54101 |
Heavy tests: ${use_heavy_tests_MSG} |
| 54102 |
Fuzzing tests: ${run_zzuf_tests_MSG=no} |
| 54103 |
" >&5 |
| 54104 |
printf "%s\n" "$as_me: GNU libmicrohttpd ${PACKAGE_VERSION} Configuration Summary: |
| 54105 |
Target directory: ${prefix} |
| 54106 |
Cross-compiling: ${cross_compiling} |
| 54107 |
Operating System: ${mhd_host_os}${os_ver_msg} |
| 54108 |
Threading lib: ${USE_THREADS} |
| 54109 |
Inter-thread comm: ${use_itc} |
| 54110 |
Shutdown of listening socket triggers select: ${mhd_cv_host_shtdwn_trgr_select} |
| 54111 |
poll support: ${enable_poll=no} |
| 54112 |
epoll support: ${enable_epoll=no} |
| 54113 |
sendfile used: ${found_sendfile} |
| 54114 |
HTTPS support: ${MSG_HTTPS} |
| 54115 |
Messages: ${enable_messages} |
| 54116 |
Cookie parsing: ${enable_cookie} |
| 54117 |
Postproc: ${enable_postprocessor} |
| 54118 |
Basic auth.: ${enable_bauth} |
| 54119 |
Digest auth.: ${enable_dauth} |
| 54120 |
Digest auth. defaults: ${dauth_defs_MSG} |
| 54121 |
MD5: ${enable_md5_MSG} |
| 54122 |
SHA-256: ${enable_sha256_MSG} |
| 54123 |
SHA-512/256: ${enable_sha512_256_MSG} |
| 54124 |
HTTP \"Upgrade\": ${enable_httpupgrade} |
| 54125 |
Compact code: ${enable_compact_code} (${compact_code_MSG}) |
| 54126 |
Use thread names: ${enable_thread_names} |
| 54127 |
Use debug asserts: ${use_asserts_MSG=no} |
| 54128 |
Use sanitizers: ${enabled_sanitizers:=no} |
| 54129 |
Build static lib: ${enable_static} |
| 54130 |
Build shared lib: ${enable_shared} |
| 54131 |
Build docs: ${enable_doc} |
| 54132 |
Build examples: ${enable_examples} |
| 54133 |
Build tools: ${enable_tools} |
| 54134 |
Test with libcurl: ${MSG_CURL} |
| 54135 |
Heavy tests: ${use_heavy_tests_MSG} |
| 54136 |
Fuzzing tests: ${run_zzuf_tests_MSG=no} |
| 54137 |
" >&6;} |
| 54138 |
|
| 54139 |
if test "x$enable_https" = "xyes" |
| 54140 |
then : |
| 54141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTPS subsystem configuration: |
| 54142 |
License : LGPL version 2.1 or any later version |
| 54143 |
" >&5 |
| 54144 |
printf "%s\n" "$as_me: HTTPS subsystem configuration: |
| 54145 |
License : LGPL version 2.1 or any later version |
| 54146 |
" >&6;} |
| 54147 |
else case e in #( |
| 54148 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: |
| 54149 |
License : LGPLv2.1+ or eCos |
| 54150 |
" >&5 |
| 54151 |
printf "%s\n" "$as_me: |
| 54152 |
License : LGPLv2.1+ or eCos |
| 54153 |
" >&6;} ;; |
| 54154 |
esac |
| 54155 |
fi |
| 54156 |
|
| 54157 |
if test "x$enable_bauth" != "xyes" || \ |
| 54158 |
test "x$enable_dauth" != "xyes" || \ |
| 54159 |
test "x${enable_md5}" = "xno" || \ |
| 54160 |
test "x${enable_sha256}" = "xno" || \ |
| 54161 |
test "x${enable_sha512_256}" != "xyes" || \ |
| 54162 |
test "x${USE_THREADS}" = "xnone" || \ |
| 54163 |
test "x$enable_httpupgrade" != "xyes" || \ |
| 54164 |
test "x$enable_cookie" != "xyes" || \ |
| 54165 |
test "x$enable_httpupgrade" != "xyes" || \ |
| 54166 |
test "x$enable_postprocessor" != "xyes" |
| 54167 |
then : |
| 54168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&5 |
| 54169 |
printf "%s\n" "$as_me: WARNING: This will be a custom build with missing symbols. Do NOT use this build in a distribution. Building with these kinds of configure options is only for custom builds for embedded systems." >&2;} |
| 54170 |
|
| 54171 |
fi |
| 54172 |
if test -n "${CONF_FINAL_WARNS}" |
| 54173 |
then : |
| 54174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ${CONF_FINAL_WARNS}" >&5 |
| 54175 |
printf "%s\n" "$as_me: WARNING: ${CONF_FINAL_WARNS}" >&2;} |
| 54176 |
fi |
| 54177 |
|