| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.71. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
| 7 |
# Inc. |
| 8 |
# |
| 9 |
# |
| 10 |
# This configure script is free software; the Free Software Foundation |
| 11 |
# gives unlimited permission to copy, distribute and modify it. |
| 12 |
## -------------------- ## |
| 13 |
## M4sh Initialization. ## |
| 14 |
## -------------------- ## |
| 15 |
|
| 16 |
# Be more Bourne compatible |
| 17 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 18 |
as_nop=: |
| 19 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 20 |
then : |
| 21 |
emulate sh |
| 22 |
NULLCMD=: |
| 23 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 24 |
# is contrary to our usage. Disable this feature. |
| 25 |
alias -g '${1+"$@"}'='"$@"' |
| 26 |
setopt NO_GLOB_SUBST |
| 27 |
else $as_nop |
| 28 |
case `(set -o) 2>/dev/null` in #( |
| 29 |
*posix*) : |
| 30 |
set -o posix ;; #( |
| 31 |
*) : |
| 32 |
;; |
| 33 |
esac |
| 34 |
fi |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
# Reset variables that may have inherited troublesome values from |
| 39 |
# the environment. |
| 40 |
|
| 41 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 42 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 43 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 44 |
# Quoting is to prevent editors from complaining about space-tab. |
| 45 |
as_nl=' |
| 46 |
' |
| 47 |
export as_nl |
| 48 |
IFS=" "" $as_nl" |
| 49 |
|
| 50 |
PS1='$ ' |
| 51 |
PS2='> ' |
| 52 |
PS4='+ ' |
| 53 |
|
| 54 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 55 |
LC_ALL=C |
| 56 |
export LC_ALL |
| 57 |
LANGUAGE=C |
| 58 |
export LANGUAGE |
| 59 |
|
| 60 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 61 |
# to be unset--not just set to an empty or harmless value--now, to |
| 62 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 63 |
# also avoids known problems related to "unset" and subshell syntax |
| 64 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 65 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 66 |
do eval test \${$as_var+y} \ |
| 67 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 68 |
done |
| 69 |
|
| 70 |
# Ensure that fds 0, 1, and 2 are open. |
| 71 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 72 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 73 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 74 |
|
| 75 |
# The user is always right. |
| 76 |
if ${PATH_SEPARATOR+false} :; then |
| 77 |
PATH_SEPARATOR=: |
| 78 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 79 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 80 |
PATH_SEPARATOR=';' |
| 81 |
} |
| 82 |
fi |
| 83 |
|
| 84 |
|
| 85 |
# Find who we are. Look in the path if we contain no directory separator. |
| 86 |
as_myself= |
| 87 |
case $0 in #(( |
| 88 |
*[\\/]* ) as_myself=$0 ;; |
| 89 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 90 |
for as_dir in $PATH |
| 91 |
do |
| 92 |
IFS=$as_save_IFS |
| 93 |
case $as_dir in #((( |
| 94 |
'') as_dir=./ ;; |
| 95 |
*/) ;; |
| 96 |
*) as_dir=$as_dir/ ;; |
| 97 |
esac |
| 98 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 99 |
done |
| 100 |
IFS=$as_save_IFS |
| 101 |
|
| 102 |
;; |
| 103 |
esac |
| 104 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 105 |
# in which case we are not to be found in the path. |
| 106 |
if test "x$as_myself" = x; then |
| 107 |
as_myself=$0 |
| 108 |
fi |
| 109 |
if test ! -f "$as_myself"; then |
| 110 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 111 |
exit 1 |
| 112 |
fi |
| 113 |
|
| 114 |
|
| 115 |
# Use a proper internal environment variable to ensure we don't fall |
| 116 |
# into an infinite loop, continuously re-executing ourselves. |
| 117 |
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then |
| 118 |
_as_can_reexec=no; export _as_can_reexec; |
| 119 |
# We cannot yet assume a decent shell, so we have to provide a |
| 120 |
# neutralization value for shells without unset; and this also |
| 121 |
# works around shells that cannot unset nonexistent variables. |
| 122 |
# Preserve -v and -x to the replacement shell. |
| 123 |
BASH_ENV=/dev/null |
| 124 |
ENV=/dev/null |
| 125 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 126 |
case $- in # (((( |
| 127 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 128 |
*v* ) as_opts=-v ;; |
| 129 |
*x* ) as_opts=-x ;; |
| 130 |
* ) as_opts= ;; |
| 131 |
esac |
| 132 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 133 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 134 |
# out after a failed `exec'. |
| 135 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 136 |
exit 255 |
| 137 |
fi |
| 138 |
# We don't want this to propagate to other subprocesses. |
| 139 |
{ _as_can_reexec=; unset _as_can_reexec;} |
| 140 |
if test "x$CONFIG_SHELL" = x; then |
| 141 |
as_bourne_compatible="as_nop=: |
| 142 |
if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 143 |
then : |
| 144 |
emulate sh |
| 145 |
NULLCMD=: |
| 146 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 147 |
# is contrary to our usage. Disable this feature. |
| 148 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 149 |
setopt NO_GLOB_SUBST |
| 150 |
else \$as_nop |
| 151 |
case \`(set -o) 2>/dev/null\` in #( |
| 152 |
*posix*) : |
| 153 |
set -o posix ;; #( |
| 154 |
*) : |
| 155 |
;; |
| 156 |
esac |
| 157 |
fi |
| 158 |
" |
| 159 |
as_required="as_fn_return () { (exit \$1); } |
| 160 |
as_fn_success () { as_fn_return 0; } |
| 161 |
as_fn_failure () { as_fn_return 1; } |
| 162 |
as_fn_ret_success () { return 0; } |
| 163 |
as_fn_ret_failure () { return 1; } |
| 164 |
|
| 165 |
exitcode=0 |
| 166 |
as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 167 |
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 168 |
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 169 |
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 170 |
if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
| 171 |
then : |
| 172 |
|
| 173 |
else \$as_nop |
| 174 |
exitcode=1; echo positional parameters were not saved. |
| 175 |
fi |
| 176 |
test x\$exitcode = x0 || exit 1 |
| 177 |
blah=\$(echo \$(echo blah)) |
| 178 |
test x\"\$blah\" = xblah || exit 1 |
| 179 |
test -x / || exit 1" |
| 180 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 181 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 182 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 183 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 184 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 185 |
if (eval "$as_required") 2>/dev/null |
| 186 |
then : |
| 187 |
as_have_required=yes |
| 188 |
else $as_nop |
| 189 |
as_have_required=no |
| 190 |
fi |
| 191 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 192 |
then : |
| 193 |
|
| 194 |
else $as_nop |
| 195 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 196 |
as_found=false |
| 197 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 198 |
do |
| 199 |
IFS=$as_save_IFS |
| 200 |
case $as_dir in #((( |
| 201 |
'') as_dir=./ ;; |
| 202 |
*/) ;; |
| 203 |
*) as_dir=$as_dir/ ;; |
| 204 |
esac |
| 205 |
as_found=: |
| 206 |
case $as_dir in #( |
| 207 |
/*) |
| 208 |
for as_base in sh bash ksh sh5; do |
| 209 |
# Try only shells that exist, to save several forks. |
| 210 |
as_shell=$as_dir$as_base |
| 211 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 212 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 213 |
then : |
| 214 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 215 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 216 |
then : |
| 217 |
break 2 |
| 218 |
fi |
| 219 |
fi |
| 220 |
done;; |
| 221 |
esac |
| 222 |
as_found=false |
| 223 |
done |
| 224 |
IFS=$as_save_IFS |
| 225 |
if $as_found |
| 226 |
then : |
| 227 |
|
| 228 |
else $as_nop |
| 229 |
if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 230 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 231 |
then : |
| 232 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 233 |
fi |
| 234 |
fi |
| 235 |
|
| 236 |
|
| 237 |
if test "x$CONFIG_SHELL" != x |
| 238 |
then : |
| 239 |
export CONFIG_SHELL |
| 240 |
# We cannot yet assume a decent shell, so we have to provide a |
| 241 |
# neutralization value for shells without unset; and this also |
| 242 |
# works around shells that cannot unset nonexistent variables. |
| 243 |
# Preserve -v and -x to the replacement shell. |
| 244 |
BASH_ENV=/dev/null |
| 245 |
ENV=/dev/null |
| 246 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 247 |
case $- in # (((( |
| 248 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 249 |
*v* ) as_opts=-v ;; |
| 250 |
*x* ) as_opts=-x ;; |
| 251 |
* ) as_opts= ;; |
| 252 |
esac |
| 253 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 254 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 255 |
# out after a failed `exec'. |
| 256 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 257 |
exit 255 |
| 258 |
fi |
| 259 |
|
| 260 |
if test x$as_have_required = xno |
| 261 |
then : |
| 262 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 263 |
printf "%s\n" "$0: the shells that I found on your system." |
| 264 |
if test ${ZSH_VERSION+y} ; then |
| 265 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 266 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 267 |
else |
| 268 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 269 |
$0: including any error possibly output before this |
| 270 |
$0: message. Then install a modern shell, or manually run |
| 271 |
$0: the script under such a shell if you do have one." |
| 272 |
fi |
| 273 |
exit 1 |
| 274 |
fi |
| 275 |
fi |
| 276 |
fi |
| 277 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 278 |
export SHELL |
| 279 |
# Unset more variables known to interfere with behavior of common tools. |
| 280 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 281 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 282 |
|
| 283 |
## --------------------- ## |
| 284 |
## M4sh Shell Functions. ## |
| 285 |
## --------------------- ## |
| 286 |
# as_fn_unset VAR |
| 287 |
# --------------- |
| 288 |
# Portably unset VAR. |
| 289 |
as_fn_unset () |
| 290 |
{ |
| 291 |
{ eval $1=; unset $1;} |
| 292 |
} |
| 293 |
as_unset=as_fn_unset |
| 294 |
|
| 295 |
|
| 296 |
# as_fn_set_status STATUS |
| 297 |
# ----------------------- |
| 298 |
# Set $? to STATUS, without forking. |
| 299 |
as_fn_set_status () |
| 300 |
{ |
| 301 |
return $1 |
| 302 |
} # as_fn_set_status |
| 303 |
|
| 304 |
# as_fn_exit STATUS |
| 305 |
# ----------------- |
| 306 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 307 |
as_fn_exit () |
| 308 |
{ |
| 309 |
set +e |
| 310 |
as_fn_set_status $1 |
| 311 |
exit $1 |
| 312 |
} # as_fn_exit |
| 313 |
# as_fn_nop |
| 314 |
# --------- |
| 315 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 316 |
as_fn_nop () |
| 317 |
{ |
| 318 |
return $? |
| 319 |
} |
| 320 |
as_nop=as_fn_nop |
| 321 |
|
| 322 |
# as_fn_mkdir_p |
| 323 |
# ------------- |
| 324 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 325 |
as_fn_mkdir_p () |
| 326 |
{ |
| 327 |
|
| 328 |
case $as_dir in #( |
| 329 |
-*) as_dir=./$as_dir;; |
| 330 |
esac |
| 331 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 332 |
as_dirs= |
| 333 |
while :; do |
| 334 |
case $as_dir in #( |
| 335 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 336 |
*) as_qdir=$as_dir;; |
| 337 |
esac |
| 338 |
as_dirs="'$as_qdir' $as_dirs" |
| 339 |
as_dir=`$as_dirname -- "$as_dir" || |
| 340 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 341 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 342 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 343 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 344 |
printf "%s\n" X"$as_dir" | |
| 345 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 346 |
s//\1/ |
| 347 |
q |
| 348 |
} |
| 349 |
/^X\(\/\/\)[^/].*/{ |
| 350 |
s//\1/ |
| 351 |
q |
| 352 |
} |
| 353 |
/^X\(\/\/\)$/{ |
| 354 |
s//\1/ |
| 355 |
q |
| 356 |
} |
| 357 |
/^X\(\/\).*/{ |
| 358 |
s//\1/ |
| 359 |
q |
| 360 |
} |
| 361 |
s/.*/./; q'` |
| 362 |
test -d "$as_dir" && break |
| 363 |
done |
| 364 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 365 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 366 |
|
| 367 |
|
| 368 |
} # as_fn_mkdir_p |
| 369 |
|
| 370 |
# as_fn_executable_p FILE |
| 371 |
# ----------------------- |
| 372 |
# Test if FILE is an executable regular file. |
| 373 |
as_fn_executable_p () |
| 374 |
{ |
| 375 |
test -f "$1" && test -x "$1" |
| 376 |
} # as_fn_executable_p |
| 377 |
# as_fn_append VAR VALUE |
| 378 |
# ---------------------- |
| 379 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 380 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 381 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 382 |
# implementations. |
| 383 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 384 |
then : |
| 385 |
eval 'as_fn_append () |
| 386 |
{ |
| 387 |
eval $1+=\$2 |
| 388 |
}' |
| 389 |
else $as_nop |
| 390 |
as_fn_append () |
| 391 |
{ |
| 392 |
eval $1=\$$1\$2 |
| 393 |
} |
| 394 |
fi # as_fn_append |
| 395 |
|
| 396 |
# as_fn_arith ARG... |
| 397 |
# ------------------ |
| 398 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 399 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 400 |
# must be portable across $(()) and expr. |
| 401 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 402 |
then : |
| 403 |
eval 'as_fn_arith () |
| 404 |
{ |
| 405 |
as_val=$(( $* )) |
| 406 |
}' |
| 407 |
else $as_nop |
| 408 |
as_fn_arith () |
| 409 |
{ |
| 410 |
as_val=`expr "$@" || test $? -eq 1` |
| 411 |
} |
| 412 |
fi # as_fn_arith |
| 413 |
|
| 414 |
|
| 415 |
# colorize_result MSG |
| 416 |
# ------------------- |
| 417 |
# Colorize result |
| 418 |
colorize_result () |
| 419 |
{ |
| 420 |
case "$1" in #( |
| 421 |
yes) : |
| 422 |
printf "%s\n" "${msg_result_yes}$1${msg_reset}" >&6 ;; #( |
| 423 |
no) : |
| 424 |
printf "%s\n" "${msg_result_no}$1${msg_reset}" >&6 ;; #( |
| 425 |
*) : |
| 426 |
printf "%s\n" "${msg_result_other}$1${msg_reset}" >&6 ;; |
| 427 |
esac |
| 428 |
} # colorize_result |
| 429 |
# as_fn_nop |
| 430 |
# --------- |
| 431 |
# Do nothing but, unlike ":", preserve the value of $?. |
| 432 |
as_fn_nop () |
| 433 |
{ |
| 434 |
return $? |
| 435 |
} |
| 436 |
as_nop=as_fn_nop |
| 437 |
|
| 438 |
# config_summary NAME, VAL |
| 439 |
# ------------------------ |
| 440 |
# configuration summary |
| 441 |
config_summary () |
| 442 |
{ |
| 443 |
if test -z "$2" |
| 444 |
then : |
| 445 |
|
| 446 |
else $as_nop |
| 447 |
|
| 448 |
printf %s " * $1: " | dd bs=1 count=26 2>/dev/null |
| 449 |
if test "$FOLD" |
| 450 |
then : |
| 451 |
|
| 452 |
echo "$2" | fold -s -w$fold_width | |
| 453 |
sed '1!s/^/ /;$!s/$/\\/' |
| 454 |
|
| 455 |
else $as_nop |
| 456 |
echo "$2" |
| 457 |
fi |
| 458 |
|
| 459 |
fi |
| 460 |
|
| 461 |
} # config_summary |
| 462 |
|
| 463 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 464 |
# ---------------------------------------- |
| 465 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 466 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 467 |
# script with STATUS, using 1 if that was 0. |
| 468 |
as_fn_error () |
| 469 |
{ |
| 470 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 471 |
if test "$4"; then |
| 472 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 473 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 474 |
fi |
| 475 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 476 |
as_fn_exit $as_status |
| 477 |
} # as_fn_error |
| 478 |
|
| 479 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 480 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 481 |
as_expr=expr |
| 482 |
else |
| 483 |
as_expr=false |
| 484 |
fi |
| 485 |
|
| 486 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 487 |
as_basename=basename |
| 488 |
else |
| 489 |
as_basename=false |
| 490 |
fi |
| 491 |
|
| 492 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 493 |
as_dirname=dirname |
| 494 |
else |
| 495 |
as_dirname=false |
| 496 |
fi |
| 497 |
|
| 498 |
as_me=`$as_basename -- "$0" || |
| 499 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 500 |
X"$0" : 'X\(//\)$' \| \ |
| 501 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 502 |
printf "%s\n" X/"$0" | |
| 503 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 504 |
s//\1/ |
| 505 |
q |
| 506 |
} |
| 507 |
/^X\/\(\/\/\)$/{ |
| 508 |
s//\1/ |
| 509 |
q |
| 510 |
} |
| 511 |
/^X\/\(\/\).*/{ |
| 512 |
s//\1/ |
| 513 |
q |
| 514 |
} |
| 515 |
s/.*/./; q'` |
| 516 |
|
| 517 |
# Avoid depending upon Character Ranges. |
| 518 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 519 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 520 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 521 |
as_cr_digits='0123456789' |
| 522 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 523 |
|
| 524 |
|
| 525 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 526 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 527 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 528 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 529 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 530 |
sed -n ' |
| 531 |
p |
| 532 |
/[$]LINENO/= |
| 533 |
' <$as_myself | |
| 534 |
sed ' |
| 535 |
s/[$]LINENO.*/&-/ |
| 536 |
t lineno |
| 537 |
b |
| 538 |
:lineno |
| 539 |
N |
| 540 |
:loop |
| 541 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 542 |
t loop |
| 543 |
s/-\n.*// |
| 544 |
' >$as_me.lineno && |
| 545 |
chmod +x "$as_me.lineno" || |
| 546 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 547 |
|
| 548 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 549 |
# already done that, so ensure we don't try to do so again and fall |
| 550 |
# in an infinite loop. This has already happened in practice. |
| 551 |
_as_can_reexec=no; export _as_can_reexec |
| 552 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 553 |
# (the dirname of $[0] is not the place where we might find the |
| 554 |
# original and so on. Autoconf is especially sensitive to this). |
| 555 |
. "./$as_me.lineno" |
| 556 |
# Exit status is that of the last command. |
| 557 |
exit |
| 558 |
} |
| 559 |
|
| 560 |
|
| 561 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 562 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 563 |
# for compatibility with existing Makefiles. |
| 564 |
ECHO_C= ECHO_N= ECHO_T= |
| 565 |
case `echo -n x` in #((((( |
| 566 |
-n*) |
| 567 |
case `echo 'xy\c'` in |
| 568 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 569 |
xy) ECHO_C='\c';; |
| 570 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 571 |
ECHO_T=' ';; |
| 572 |
esac;; |
| 573 |
*) |
| 574 |
ECHO_N='-n';; |
| 575 |
esac |
| 576 |
|
| 577 |
# For backward compatibility with old third-party macros, we provide |
| 578 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 579 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 580 |
as_echo='printf %s\n' |
| 581 |
as_echo_n='printf %s' |
| 582 |
|
| 583 |
|
| 584 |
rm -f conf$$ conf$$.exe conf$$.file |
| 585 |
if test -d conf$$.dir; then |
| 586 |
rm -f conf$$.dir/conf$$.file |
| 587 |
else |
| 588 |
rm -f conf$$.dir |
| 589 |
mkdir conf$$.dir 2>/dev/null |
| 590 |
fi |
| 591 |
if (echo >conf$$.file) 2>/dev/null; then |
| 592 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 593 |
as_ln_s='ln -s' |
| 594 |
# ... but there are two gotchas: |
| 595 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 596 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 597 |
# In both cases, we have to default to `cp -pR'. |
| 598 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 599 |
as_ln_s='cp -pR' |
| 600 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 601 |
as_ln_s=ln |
| 602 |
else |
| 603 |
as_ln_s='cp -pR' |
| 604 |
fi |
| 605 |
else |
| 606 |
as_ln_s='cp -pR' |
| 607 |
fi |
| 608 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 609 |
rmdir conf$$.dir 2>/dev/null |
| 610 |
|
| 611 |
if mkdir -p . 2>/dev/null; then |
| 612 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 613 |
else |
| 614 |
test -d ./-p && rmdir ./-p |
| 615 |
as_mkdir_p=false |
| 616 |
fi |
| 617 |
|
| 618 |
as_test_x='test -x' |
| 619 |
as_executable_p=as_fn_executable_p |
| 620 |
|
| 621 |
# Sed expression to map a string onto a valid CPP name. |
| 622 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 623 |
|
| 624 |
# Sed expression to map a string onto a valid variable name. |
| 625 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 626 |
|
| 627 |
|
| 628 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 629 |
exec 6>&1 |
| 630 |
|
| 631 |
# Name of the host. |
| 632 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 633 |
# so uname gets run too. |
| 634 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 635 |
|
| 636 |
# |
| 637 |
# Initializations. |
| 638 |
# |
| 639 |
ac_default_prefix=/usr/local |
| 640 |
ac_clean_files= |
| 641 |
ac_config_libobj_dir=. |
| 642 |
LIBOBJS= |
| 643 |
cross_compiling=no |
| 644 |
subdirs= |
| 645 |
MFLAGS= |
| 646 |
MAKEFLAGS= |
| 647 |
|
| 648 |
# Identity of this package. |
| 649 |
PACKAGE_NAME='' |
| 650 |
PACKAGE_TARNAME='' |
| 651 |
PACKAGE_VERSION='' |
| 652 |
PACKAGE_STRING='' |
| 653 |
PACKAGE_BUGREPORT='' |
| 654 |
PACKAGE_URL='' |
| 655 |
|
| 656 |
enable_option_checking=no |
| 657 |
# Factoring default headers for most tests. |
| 658 |
ac_includes_default="\ |
| 659 |
#include <stddef.h> |
| 660 |
#ifdef HAVE_STDIO_H |
| 661 |
# include <stdio.h> |
| 662 |
#endif |
| 663 |
#ifdef HAVE_STDLIB_H |
| 664 |
# include <stdlib.h> |
| 665 |
#endif |
| 666 |
#ifdef HAVE_STRING_H |
| 667 |
# include <string.h> |
| 668 |
#endif |
| 669 |
#ifdef HAVE_INTTYPES_H |
| 670 |
# include <inttypes.h> |
| 671 |
#endif |
| 672 |
#ifdef HAVE_STDINT_H |
| 673 |
# include <stdint.h> |
| 674 |
#endif |
| 675 |
#ifdef HAVE_STRINGS_H |
| 676 |
# include <strings.h> |
| 677 |
#endif |
| 678 |
#ifdef HAVE_SYS_TYPES_H |
| 679 |
# include <sys/types.h> |
| 680 |
#endif |
| 681 |
#ifdef HAVE_SYS_STAT_H |
| 682 |
# include <sys/stat.h> |
| 683 |
#endif |
| 684 |
#ifdef HAVE_UNISTD_H |
| 685 |
# include <unistd.h> |
| 686 |
#endif" |
| 687 |
|
| 688 |
ac_header_c_list= |
| 689 |
ac_func_c_list= |
| 690 |
ac_subst_vars='LTLIBOBJS |
| 691 |
DESTDIR |
| 692 |
exec |
| 693 |
ruby_pc |
| 694 |
XCC_WRAPPER |
| 695 |
CC_WRAPPER |
| 696 |
PACKAGE |
| 697 |
BUILTIN_TRANSOBJS |
| 698 |
BUILTIN_TRANSSRCS |
| 699 |
BUILTIN_ENCOBJS |
| 700 |
USE_RUBYGEMS |
| 701 |
MKMF_VERBOSE |
| 702 |
MANTYPE |
| 703 |
vendorarchhdrdir |
| 704 |
sitearchhdrdir |
| 705 |
rubyarchhdrdir |
| 706 |
vendorhdrdir |
| 707 |
sitehdrdir |
| 708 |
rubyhdrdir |
| 709 |
RUBY_SEARCH_PATH |
| 710 |
UNIVERSAL_INTS |
| 711 |
UNIVERSAL_ARCHNAMES |
| 712 |
configure_args |
| 713 |
CONFIGURE |
| 714 |
vendorarchdir |
| 715 |
vendorlibdir |
| 716 |
vendordir |
| 717 |
sitearchdir |
| 718 |
sitelibdir |
| 719 |
sitedir |
| 720 |
rubyarchdir |
| 721 |
rubylibdir |
| 722 |
ruby_version |
| 723 |
sitearch |
| 724 |
arch |
| 725 |
sitearchincludedir |
| 726 |
archincludedir |
| 727 |
sitearchlibdir |
| 728 |
archlibdir |
| 729 |
libdirname |
| 730 |
RUBY_EXEC_PREFIX |
| 731 |
RUBY_LIB_VERSION |
| 732 |
RUBY_LIB_VERSION_STYLE |
| 733 |
RI_BASE_NAME |
| 734 |
ridir |
| 735 |
rubysitearchprefix |
| 736 |
rubyarchprefix |
| 737 |
MAKEFILES |
| 738 |
USE_LLVM_WINDRES |
| 739 |
PLATFORM_DIR |
| 740 |
COROUTINE_TYPE |
| 741 |
THREAD_MODEL |
| 742 |
MINIOBJS |
| 743 |
SYMBOL_PREFIX |
| 744 |
EXPORT_PREFIX |
| 745 |
COMMON_HEADERS |
| 746 |
COMMON_MACROS |
| 747 |
COMMON_LIBS |
| 748 |
MAINLIBS |
| 749 |
ENABLE_SHARED |
| 750 |
DLDSHARED |
| 751 |
DLDLIBS |
| 752 |
SOLIBS |
| 753 |
LIBRUBYARG_SHARED |
| 754 |
LIBRUBYARG_STATIC |
| 755 |
LIBRUBYARG |
| 756 |
LIBRUBY |
| 757 |
LIBRUBY_ALIASES |
| 758 |
LIBRUBY_SONAME |
| 759 |
LIBRUBY_SO |
| 760 |
LIBRUBY_A |
| 761 |
RUBY_SO_NAME |
| 762 |
RUBYW_INSTALL_NAME |
| 763 |
rubyw_install_name |
| 764 |
RUBY_INSTALL_NAME |
| 765 |
LIBRUBY_DLDFLAGS |
| 766 |
LIBRUBY_LDSHARED |
| 767 |
EXTDLDFLAGS |
| 768 |
EXTLDFLAGS |
| 769 |
XLDFLAGS |
| 770 |
XCFLAGS |
| 771 |
strict_warnflags |
| 772 |
warnflags |
| 773 |
debugflags |
| 774 |
optflags |
| 775 |
NULLCMD |
| 776 |
ENABLE_DEBUG_ENV |
| 777 |
DLNOBJ |
| 778 |
XSYMBOLS_IN_EMPTYLIB |
| 779 |
RJIT_SUPPORT |
| 780 |
YJIT_OBJ |
| 781 |
YJIT_LIBS |
| 782 |
CARGO_BUILD_ARGS |
| 783 |
YJIT_SUPPORT |
| 784 |
CARGO |
| 785 |
RUSTC |
| 786 |
INSTALL_STATIC_LIBRARY |
| 787 |
INSTALLDOC |
| 788 |
CAPITARGET |
| 789 |
RDOCTARGET |
| 790 |
LIBRUBY_A_OBJS |
| 791 |
DTRACE_OPT |
| 792 |
DTRACE_REBUILD |
| 793 |
DTRACE_OBJ |
| 794 |
DTRACE_EXT |
| 795 |
XRUBY_LIBPATHENV_WRAPPER |
| 796 |
EXECUTABLE_EXTS |
| 797 |
ARCHFILE |
| 798 |
LIBRUBY_RELATIVE |
| 799 |
EXTOUT |
| 800 |
XRUBY |
| 801 |
RUNRUBY |
| 802 |
RUNRUBY_COMMAND |
| 803 |
PREP |
| 804 |
BTESTRUBY |
| 805 |
MINIRUBY |
| 806 |
CROSS_COMPILING |
| 807 |
TEST_RUNNABLE |
| 808 |
XRUBY_RUBYHDRDIR |
| 809 |
XRUBY_RUBYLIBDIR |
| 810 |
XRUBY_LIBDIR |
| 811 |
rubylibprefix |
| 812 |
setup |
| 813 |
SOEXT |
| 814 |
TRY_LINK |
| 815 |
PRELOADENV |
| 816 |
LIBPATHENV |
| 817 |
RPATHFLAG |
| 818 |
LIBPATHFLAG |
| 819 |
LINK_SO |
| 820 |
ADDITIONAL_DLDFLAGS |
| 821 |
EXTOBJS |
| 822 |
ENCOBJS |
| 823 |
ENCSTATIC |
| 824 |
EXTSTATIC |
| 825 |
ASMEXT |
| 826 |
LIBEXT |
| 827 |
DLEXT |
| 828 |
LDSHAREDXX |
| 829 |
LDSHARED |
| 830 |
CCDLFLAGS |
| 831 |
STATIC |
| 832 |
ARCH_FLAG |
| 833 |
DLDFLAGS |
| 834 |
X_COROUTINE_SRC |
| 835 |
X_COROUTINE_H |
| 836 |
ALLOCA |
| 837 |
EGREP |
| 838 |
GREP |
| 839 |
X_BUILTIN_BINARY |
| 840 |
LIBOBJS |
| 841 |
dsymutil |
| 842 |
codesign |
| 843 |
cleanlibs |
| 844 |
POSTLINK |
| 845 |
incflags |
| 846 |
WERRORFLAG |
| 847 |
RUBY_DEVEL |
| 848 |
CHDIR |
| 849 |
RMALL |
| 850 |
RMDIRS |
| 851 |
RMDIR |
| 852 |
CP |
| 853 |
RM |
| 854 |
PKG_CONFIG |
| 855 |
DOXYGEN |
| 856 |
DOT |
| 857 |
DTRACE |
| 858 |
MKDIR_P |
| 859 |
INSTALL_DATA |
| 860 |
INSTALL_SCRIPT |
| 861 |
INSTALL_PROGRAM |
| 862 |
SET_MAKE |
| 863 |
LN_S |
| 864 |
DLLWRAP |
| 865 |
WINDRES |
| 866 |
ASFLAGS |
| 867 |
ARFLAGS |
| 868 |
try_header |
| 869 |
CC_VERSION_MESSAGE |
| 870 |
CC_VERSION |
| 871 |
CSRCFLAG |
| 872 |
COUTFLAG |
| 873 |
OUTFLAG |
| 874 |
CPPOUTFILE |
| 875 |
GNU_LD |
| 876 |
GCC |
| 877 |
ac_ct_STRIP |
| 878 |
ac_ct_OBJDUMP |
| 879 |
ac_ct_OBJCOPY |
| 880 |
ac_ct_NM |
| 881 |
ac_ct_LD |
| 882 |
ac_ct_AS |
| 883 |
ac_ct_AR |
| 884 |
CPP |
| 885 |
ac_ct_CXX |
| 886 |
CXXFLAGS |
| 887 |
OBJEXT |
| 888 |
EXEEXT |
| 889 |
CPPFLAGS |
| 890 |
LDFLAGS |
| 891 |
CFLAGS |
| 892 |
STRIP |
| 893 |
RANLIB |
| 894 |
OBJDUMP |
| 895 |
OBJCOPY |
| 896 |
NM |
| 897 |
LD |
| 898 |
CXX |
| 899 |
AS |
| 900 |
AR |
| 901 |
ac_ct_CC |
| 902 |
CC |
| 903 |
wasmoptflags |
| 904 |
WASMOPT |
| 905 |
target_os |
| 906 |
target_vendor |
| 907 |
target_cpu |
| 908 |
target |
| 909 |
host_os |
| 910 |
host_vendor |
| 911 |
host_cpu |
| 912 |
host |
| 913 |
build_os |
| 914 |
build_vendor |
| 915 |
build_cpu |
| 916 |
build |
| 917 |
RUBY_VERSION_NAME |
| 918 |
RUBYW_BASE_NAME |
| 919 |
RUBY_BASE_NAME |
| 920 |
RUBY_PROGRAM_VERSION |
| 921 |
RUBY_API_VERSION |
| 922 |
TEENY |
| 923 |
MINOR |
| 924 |
MAJOR |
| 925 |
HAVE_GIT |
| 926 |
GIT |
| 927 |
HAVE_BASERUBY |
| 928 |
BASERUBY |
| 929 |
cxxflags |
| 930 |
cppflags |
| 931 |
cflags |
| 932 |
MAKEDIRS |
| 933 |
target_alias |
| 934 |
host_alias |
| 935 |
build_alias |
| 936 |
LIBS |
| 937 |
ECHO_T |
| 938 |
ECHO_N |
| 939 |
ECHO_C |
| 940 |
DEFS |
| 941 |
mandir |
| 942 |
localedir |
| 943 |
libdir |
| 944 |
psdir |
| 945 |
pdfdir |
| 946 |
dvidir |
| 947 |
htmldir |
| 948 |
infodir |
| 949 |
docdir |
| 950 |
oldincludedir |
| 951 |
includedir |
| 952 |
runstatedir |
| 953 |
localstatedir |
| 954 |
sharedstatedir |
| 955 |
sysconfdir |
| 956 |
datadir |
| 957 |
datarootdir |
| 958 |
libexecdir |
| 959 |
sbindir |
| 960 |
bindir |
| 961 |
program_transform_name |
| 962 |
prefix |
| 963 |
exec_prefix |
| 964 |
PACKAGE_URL |
| 965 |
PACKAGE_BUGREPORT |
| 966 |
PACKAGE_STRING |
| 967 |
PACKAGE_VERSION |
| 968 |
PACKAGE_TARNAME |
| 969 |
PACKAGE_NAME |
| 970 |
PATH_SEPARATOR |
| 971 |
SHELL' |
| 972 |
ac_subst_files='' |
| 973 |
ac_user_opts=' |
| 974 |
enable_option_checking |
| 975 |
with_baseruby |
| 976 |
with_git |
| 977 |
with_gcc |
| 978 |
with_os_version_style |
| 979 |
with_arch |
| 980 |
enable_load_relative |
| 981 |
enable_rpath |
| 982 |
enable_devel |
| 983 |
enable_werror |
| 984 |
with_compress_debug_sections |
| 985 |
enable_fortify_source |
| 986 |
with_gmp_dir |
| 987 |
with_gmp |
| 988 |
with_opt_dir |
| 989 |
with_winnt_ver |
| 990 |
with_thread |
| 991 |
with_jemalloc |
| 992 |
enable_largefile |
| 993 |
enable_mathn |
| 994 |
enable_setreuid |
| 995 |
with_coroutine |
| 996 |
with_dln_a_out |
| 997 |
with_static_linked_ext |
| 998 |
with_valgrind |
| 999 |
with_ext |
| 1000 |
with_out_ext |
| 1001 |
with_setup |
| 1002 |
with_rubylibprefix |
| 1003 |
enable_multiarch |
| 1004 |
with_soname |
| 1005 |
enable_shared |
| 1006 |
enable_pie |
| 1007 |
enable_dtrace |
| 1008 |
enable_gcov |
| 1009 |
with_setjmp_type |
| 1010 |
enable_install_doc |
| 1011 |
with_rdoc |
| 1012 |
enable_install_rdoc |
| 1013 |
enable_install_capi |
| 1014 |
enable_install_static_library |
| 1015 |
enable_yjit |
| 1016 |
enable_rjit |
| 1017 |
enable_dln |
| 1018 |
enable_debug_env |
| 1019 |
with_rubyarchprefix |
| 1020 |
with_rubysitearchprefix |
| 1021 |
with_ridir |
| 1022 |
with_ruby_version |
| 1023 |
with_sitedir |
| 1024 |
with_sitearchdir |
| 1025 |
with_vendordir |
| 1026 |
with_vendorarchdir |
| 1027 |
with_search_path |
| 1028 |
with_rubyhdrdir |
| 1029 |
with_rubyarchhdrdir |
| 1030 |
with_sitehdrdir |
| 1031 |
with_sitearchhdrdir |
| 1032 |
with_vendorhdrdir |
| 1033 |
with_vendorarchhdrdir |
| 1034 |
with_mantype |
| 1035 |
enable_mkmf_verbose |
| 1036 |
enable_rubygems |
| 1037 |
with_ruby_pc |
| 1038 |
with_destdir |
| 1039 |
' |
| 1040 |
ac_precious_vars='build_alias |
| 1041 |
host_alias |
| 1042 |
target_alias |
| 1043 |
cflags |
| 1044 |
cppflags |
| 1045 |
cxxflags |
| 1046 |
AR |
| 1047 |
AS |
| 1048 |
CC |
| 1049 |
CXX |
| 1050 |
LD |
| 1051 |
NM |
| 1052 |
OBJCOPY |
| 1053 |
OBJDUMP |
| 1054 |
RANLIB |
| 1055 |
STRIP |
| 1056 |
CFLAGS |
| 1057 |
LDFLAGS |
| 1058 |
LIBS |
| 1059 |
CPPFLAGS |
| 1060 |
CXXFLAGS |
| 1061 |
CCC |
| 1062 |
CPP' |
| 1063 |
|
| 1064 |
|
| 1065 |
# Initialize some variables set by options. |
| 1066 |
ac_init_help= |
| 1067 |
ac_init_version=false |
| 1068 |
ac_unrecognized_opts= |
| 1069 |
ac_unrecognized_sep= |
| 1070 |
# The variables have the same names as the options, with |
| 1071 |
# dashes changed to underlines. |
| 1072 |
cache_file=/dev/null |
| 1073 |
exec_prefix=NONE |
| 1074 |
no_create= |
| 1075 |
no_recursion= |
| 1076 |
prefix=NONE |
| 1077 |
program_prefix=NONE |
| 1078 |
program_suffix=NONE |
| 1079 |
program_transform_name=s,x,x, |
| 1080 |
silent= |
| 1081 |
site= |
| 1082 |
srcdir= |
| 1083 |
verbose= |
| 1084 |
x_includes=NONE |
| 1085 |
x_libraries=NONE |
| 1086 |
|
| 1087 |
# Installation directory options. |
| 1088 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1089 |
# and all the variables that are supposed to be based on exec_prefix |
| 1090 |
# by default will actually change. |
| 1091 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 1092 |
# (The list follows the same order as the GNU Coding Standards.) |
| 1093 |
bindir='${exec_prefix}/bin' |
| 1094 |
sbindir='${exec_prefix}/sbin' |
| 1095 |
libexecdir='${exec_prefix}/libexec' |
| 1096 |
datarootdir='${prefix}/share' |
| 1097 |
datadir='${datarootdir}' |
| 1098 |
sysconfdir='${prefix}/etc' |
| 1099 |
sharedstatedir='${prefix}/com' |
| 1100 |
localstatedir='${prefix}/var' |
| 1101 |
runstatedir='${localstatedir}/run' |
| 1102 |
includedir='${prefix}/include' |
| 1103 |
oldincludedir='/usr/include' |
| 1104 |
docdir='${datarootdir}/doc/${PACKAGE}' |
| 1105 |
infodir='${datarootdir}/info' |
| 1106 |
htmldir='${docdir}' |
| 1107 |
dvidir='${docdir}' |
| 1108 |
pdfdir='${docdir}' |
| 1109 |
psdir='${docdir}' |
| 1110 |
libdir='${exec_prefix}/lib' |
| 1111 |
localedir='${datarootdir}/locale' |
| 1112 |
mandir='${datarootdir}/man' |
| 1113 |
|
| 1114 |
ac_prev= |
| 1115 |
ac_dashdash= |
| 1116 |
for ac_option |
| 1117 |
do |
| 1118 |
# If the previous option needs an argument, assign it. |
| 1119 |
if test -n "$ac_prev"; then |
| 1120 |
eval $ac_prev=\$ac_option |
| 1121 |
ac_prev= |
| 1122 |
continue |
| 1123 |
fi |
| 1124 |
|
| 1125 |
case $ac_option in |
| 1126 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1127 |
*=) ac_optarg= ;; |
| 1128 |
*) ac_optarg=yes ;; |
| 1129 |
esac |
| 1130 |
|
| 1131 |
case $ac_dashdash$ac_option in |
| 1132 |
--) |
| 1133 |
ac_dashdash=yes ;; |
| 1134 |
|
| 1135 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1136 |
ac_prev=bindir ;; |
| 1137 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1138 |
bindir=$ac_optarg ;; |
| 1139 |
|
| 1140 |
-build | --build | --buil | --bui | --bu) |
| 1141 |
ac_prev=build_alias ;; |
| 1142 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1143 |
build_alias=$ac_optarg ;; |
| 1144 |
|
| 1145 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1146 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1147 |
ac_prev=cache_file ;; |
| 1148 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1149 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1150 |
cache_file=$ac_optarg ;; |
| 1151 |
|
| 1152 |
--config-cache | -C) |
| 1153 |
cache_file=config.cache ;; |
| 1154 |
|
| 1155 |
-datadir | --datadir | --datadi | --datad) |
| 1156 |
ac_prev=datadir ;; |
| 1157 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1158 |
datadir=$ac_optarg ;; |
| 1159 |
|
| 1160 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1161 |
| --dataroo | --dataro | --datar) |
| 1162 |
ac_prev=datarootdir ;; |
| 1163 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1164 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1165 |
datarootdir=$ac_optarg ;; |
| 1166 |
|
| 1167 |
-disable-* | --disable-*) |
| 1168 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1169 |
# Reject names that are not valid shell variable names. |
| 1170 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1171 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1172 |
ac_useropt_orig=$ac_useropt |
| 1173 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1174 |
case $ac_user_opts in |
| 1175 |
*" |
| 1176 |
"enable_$ac_useropt" |
| 1177 |
"*) ;; |
| 1178 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1179 |
ac_unrecognized_sep=', ';; |
| 1180 |
esac |
| 1181 |
eval enable_$ac_useropt=no ;; |
| 1182 |
|
| 1183 |
-docdir | --docdir | --docdi | --doc | --do) |
| 1184 |
ac_prev=docdir ;; |
| 1185 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1186 |
docdir=$ac_optarg ;; |
| 1187 |
|
| 1188 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1189 |
ac_prev=dvidir ;; |
| 1190 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1191 |
dvidir=$ac_optarg ;; |
| 1192 |
|
| 1193 |
-enable-* | --enable-*) |
| 1194 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1195 |
# Reject names that are not valid shell variable names. |
| 1196 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1197 |
as_fn_error $? "invalid feature name: \`$ac_useropt'" |
| 1198 |
ac_useropt_orig=$ac_useropt |
| 1199 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1200 |
case $ac_user_opts in |
| 1201 |
*" |
| 1202 |
"enable_$ac_useropt" |
| 1203 |
"*) ;; |
| 1204 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1205 |
ac_unrecognized_sep=', ';; |
| 1206 |
esac |
| 1207 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 1208 |
|
| 1209 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1210 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1211 |
| --exec | --exe | --ex) |
| 1212 |
ac_prev=exec_prefix ;; |
| 1213 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1214 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1215 |
| --exec=* | --exe=* | --ex=*) |
| 1216 |
exec_prefix=$ac_optarg ;; |
| 1217 |
|
| 1218 |
-gas | --gas | --ga | --g) |
| 1219 |
# Obsolete; use --with-gas. |
| 1220 |
with_gas=yes ;; |
| 1221 |
|
| 1222 |
-help | --help | --hel | --he | -h) |
| 1223 |
ac_init_help=long ;; |
| 1224 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1225 |
ac_init_help=recursive ;; |
| 1226 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1227 |
ac_init_help=short ;; |
| 1228 |
|
| 1229 |
-host | --host | --hos | --ho) |
| 1230 |
ac_prev=host_alias ;; |
| 1231 |
-host=* | --host=* | --hos=* | --ho=*) |
| 1232 |
host_alias=$ac_optarg ;; |
| 1233 |
|
| 1234 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1235 |
ac_prev=htmldir ;; |
| 1236 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1237 |
| --ht=*) |
| 1238 |
htmldir=$ac_optarg ;; |
| 1239 |
|
| 1240 |
-includedir | --includedir | --includedi | --included | --include \ |
| 1241 |
| --includ | --inclu | --incl | --inc) |
| 1242 |
ac_prev=includedir ;; |
| 1243 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1244 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1245 |
includedir=$ac_optarg ;; |
| 1246 |
|
| 1247 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1248 |
ac_prev=infodir ;; |
| 1249 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1250 |
infodir=$ac_optarg ;; |
| 1251 |
|
| 1252 |
-libdir | --libdir | --libdi | --libd) |
| 1253 |
ac_prev=libdir ;; |
| 1254 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1255 |
libdir=$ac_optarg ;; |
| 1256 |
|
| 1257 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1258 |
| --libexe | --libex | --libe) |
| 1259 |
ac_prev=libexecdir ;; |
| 1260 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1261 |
| --libexe=* | --libex=* | --libe=*) |
| 1262 |
libexecdir=$ac_optarg ;; |
| 1263 |
|
| 1264 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 1265 |
ac_prev=localedir ;; |
| 1266 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1267 |
localedir=$ac_optarg ;; |
| 1268 |
|
| 1269 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1270 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 1271 |
ac_prev=localstatedir ;; |
| 1272 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1273 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1274 |
localstatedir=$ac_optarg ;; |
| 1275 |
|
| 1276 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1277 |
ac_prev=mandir ;; |
| 1278 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1279 |
mandir=$ac_optarg ;; |
| 1280 |
|
| 1281 |
-nfp | --nfp | --nf) |
| 1282 |
# Obsolete; use --without-fp. |
| 1283 |
with_fp=no ;; |
| 1284 |
|
| 1285 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1286 |
| --no-cr | --no-c | -n) |
| 1287 |
no_create=yes ;; |
| 1288 |
|
| 1289 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1290 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1291 |
no_recursion=yes ;; |
| 1292 |
|
| 1293 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1294 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1295 |
| --oldin | --oldi | --old | --ol | --o) |
| 1296 |
ac_prev=oldincludedir ;; |
| 1297 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1298 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1299 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1300 |
oldincludedir=$ac_optarg ;; |
| 1301 |
|
| 1302 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1303 |
ac_prev=prefix ;; |
| 1304 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1305 |
prefix=$ac_optarg ;; |
| 1306 |
|
| 1307 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1308 |
| --program-pre | --program-pr | --program-p) |
| 1309 |
ac_prev=program_prefix ;; |
| 1310 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1311 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1312 |
program_prefix=$ac_optarg ;; |
| 1313 |
|
| 1314 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1315 |
| --program-suf | --program-su | --program-s) |
| 1316 |
ac_prev=program_suffix ;; |
| 1317 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1318 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1319 |
program_suffix=$ac_optarg ;; |
| 1320 |
|
| 1321 |
-program-transform-name | --program-transform-name \ |
| 1322 |
| --program-transform-nam | --program-transform-na \ |
| 1323 |
| --program-transform-n | --program-transform- \ |
| 1324 |
| --program-transform | --program-transfor \ |
| 1325 |
| --program-transfo | --program-transf \ |
| 1326 |
| --program-trans | --program-tran \ |
| 1327 |
| --progr-tra | --program-tr | --program-t) |
| 1328 |
ac_prev=program_transform_name ;; |
| 1329 |
-program-transform-name=* | --program-transform-name=* \ |
| 1330 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 1331 |
| --program-transform-n=* | --program-transform-=* \ |
| 1332 |
| --program-transform=* | --program-transfor=* \ |
| 1333 |
| --program-transfo=* | --program-transf=* \ |
| 1334 |
| --program-trans=* | --program-tran=* \ |
| 1335 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 1336 |
program_transform_name=$ac_optarg ;; |
| 1337 |
|
| 1338 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1339 |
ac_prev=pdfdir ;; |
| 1340 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1341 |
pdfdir=$ac_optarg ;; |
| 1342 |
|
| 1343 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 1344 |
ac_prev=psdir ;; |
| 1345 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1346 |
psdir=$ac_optarg ;; |
| 1347 |
|
| 1348 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1349 |
| -silent | --silent | --silen | --sile | --sil) |
| 1350 |
silent=yes ;; |
| 1351 |
|
| 1352 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 1353 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 1354 |
| --run | --ru | --r) |
| 1355 |
ac_prev=runstatedir ;; |
| 1356 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 1357 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 1358 |
| --run=* | --ru=* | --r=*) |
| 1359 |
runstatedir=$ac_optarg ;; |
| 1360 |
|
| 1361 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1362 |
ac_prev=sbindir ;; |
| 1363 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1364 |
| --sbi=* | --sb=*) |
| 1365 |
sbindir=$ac_optarg ;; |
| 1366 |
|
| 1367 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1368 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1369 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 1370 |
| --sha | --sh) |
| 1371 |
ac_prev=sharedstatedir ;; |
| 1372 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1373 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1374 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1375 |
| --sha=* | --sh=*) |
| 1376 |
sharedstatedir=$ac_optarg ;; |
| 1377 |
|
| 1378 |
-site | --site | --sit) |
| 1379 |
ac_prev=site ;; |
| 1380 |
-site=* | --site=* | --sit=*) |
| 1381 |
site=$ac_optarg ;; |
| 1382 |
|
| 1383 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1384 |
ac_prev=srcdir ;; |
| 1385 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1386 |
srcdir=$ac_optarg ;; |
| 1387 |
|
| 1388 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1389 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1390 |
ac_prev=sysconfdir ;; |
| 1391 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1392 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1393 |
sysconfdir=$ac_optarg ;; |
| 1394 |
|
| 1395 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1396 |
ac_prev=target_alias ;; |
| 1397 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1398 |
target_alias=$ac_optarg ;; |
| 1399 |
|
| 1400 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1401 |
verbose=yes ;; |
| 1402 |
|
| 1403 |
-version | --version | --versio | --versi | --vers | -V) |
| 1404 |
ac_init_version=: ;; |
| 1405 |
|
| 1406 |
-with-* | --with-*) |
| 1407 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1408 |
# Reject names that are not valid shell variable names. |
| 1409 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1410 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1411 |
ac_useropt_orig=$ac_useropt |
| 1412 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1413 |
case $ac_user_opts in |
| 1414 |
*" |
| 1415 |
"with_$ac_useropt" |
| 1416 |
"*) ;; |
| 1417 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1418 |
ac_unrecognized_sep=', ';; |
| 1419 |
esac |
| 1420 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1421 |
|
| 1422 |
-without-* | --without-*) |
| 1423 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1424 |
# Reject names that are not valid shell variable names. |
| 1425 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1426 |
as_fn_error $? "invalid package name: \`$ac_useropt'" |
| 1427 |
ac_useropt_orig=$ac_useropt |
| 1428 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1429 |
case $ac_user_opts in |
| 1430 |
*" |
| 1431 |
"with_$ac_useropt" |
| 1432 |
"*) ;; |
| 1433 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1434 |
ac_unrecognized_sep=', ';; |
| 1435 |
esac |
| 1436 |
eval with_$ac_useropt=no ;; |
| 1437 |
|
| 1438 |
--x) |
| 1439 |
# Obsolete; use --with-x. |
| 1440 |
with_x=yes ;; |
| 1441 |
|
| 1442 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1443 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1444 |
ac_prev=x_includes ;; |
| 1445 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1446 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1447 |
x_includes=$ac_optarg ;; |
| 1448 |
|
| 1449 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1450 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1451 |
ac_prev=x_libraries ;; |
| 1452 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1453 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1454 |
x_libraries=$ac_optarg ;; |
| 1455 |
|
| 1456 |
-*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1457 |
Try \`$0 --help' for more information" |
| 1458 |
;; |
| 1459 |
|
| 1460 |
*=*) |
| 1461 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1462 |
# Reject names that are not valid shell variable names. |
| 1463 |
case $ac_envvar in #( |
| 1464 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1465 |
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
| 1466 |
esac |
| 1467 |
eval $ac_envvar=\$ac_optarg |
| 1468 |
export $ac_envvar ;; |
| 1469 |
|
| 1470 |
*) |
| 1471 |
# FIXME: should be removed in autoconf 3.0. |
| 1472 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1473 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1474 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1475 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1476 |
;; |
| 1477 |
|
| 1478 |
esac |
| 1479 |
done |
| 1480 |
|
| 1481 |
if test -n "$ac_prev"; then |
| 1482 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1483 |
as_fn_error $? "missing argument to $ac_option" |
| 1484 |
fi |
| 1485 |
|
| 1486 |
if test -n "$ac_unrecognized_opts"; then |
| 1487 |
case $enable_option_checking in |
| 1488 |
no) ;; |
| 1489 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1490 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1491 |
esac |
| 1492 |
fi |
| 1493 |
|
| 1494 |
# Check all directory arguments for consistency. |
| 1495 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1496 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1497 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1498 |
libdir localedir mandir runstatedir |
| 1499 |
do |
| 1500 |
eval ac_val=\$$ac_var |
| 1501 |
# Remove trailing slashes. |
| 1502 |
case $ac_val in |
| 1503 |
*/ ) |
| 1504 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1505 |
eval $ac_var=\$ac_val;; |
| 1506 |
esac |
| 1507 |
# Be sure to have absolute directory names. |
| 1508 |
case $ac_val in |
| 1509 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1510 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1511 |
esac |
| 1512 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1513 |
done |
| 1514 |
|
| 1515 |
# There might be people who depend on the old broken behavior: `$host' |
| 1516 |
# used to hold the argument of --host etc. |
| 1517 |
# FIXME: To remove some day. |
| 1518 |
build=$build_alias |
| 1519 |
host=$host_alias |
| 1520 |
target=$target_alias |
| 1521 |
|
| 1522 |
# FIXME: To remove some day. |
| 1523 |
if test "x$host_alias" != x; then |
| 1524 |
if test "x$build_alias" = x; then |
| 1525 |
cross_compiling=maybe |
| 1526 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1527 |
cross_compiling=yes |
| 1528 |
fi |
| 1529 |
fi |
| 1530 |
|
| 1531 |
ac_tool_prefix= |
| 1532 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1533 |
|
| 1534 |
test "$silent" = yes && exec 6>/dev/null |
| 1535 |
|
| 1536 |
|
| 1537 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1538 |
ac_ls_di=`ls -di .` && |
| 1539 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1540 |
as_fn_error $? "working directory cannot be determined" |
| 1541 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1542 |
as_fn_error $? "pwd does not report name of working directory" |
| 1543 |
|
| 1544 |
|
| 1545 |
# Find the source files, if location was not specified. |
| 1546 |
if test -z "$srcdir"; then |
| 1547 |
ac_srcdir_defaulted=yes |
| 1548 |
# Try the directory containing this script, then the parent directory. |
| 1549 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1550 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1551 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1552 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1553 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1554 |
printf "%s\n" X"$as_myself" | |
| 1555 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1556 |
s//\1/ |
| 1557 |
q |
| 1558 |
} |
| 1559 |
/^X\(\/\/\)[^/].*/{ |
| 1560 |
s//\1/ |
| 1561 |
q |
| 1562 |
} |
| 1563 |
/^X\(\/\/\)$/{ |
| 1564 |
s//\1/ |
| 1565 |
q |
| 1566 |
} |
| 1567 |
/^X\(\/\).*/{ |
| 1568 |
s//\1/ |
| 1569 |
q |
| 1570 |
} |
| 1571 |
s/.*/./; q'` |
| 1572 |
srcdir=$ac_confdir |
| 1573 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1574 |
srcdir=.. |
| 1575 |
fi |
| 1576 |
else |
| 1577 |
ac_srcdir_defaulted=no |
| 1578 |
fi |
| 1579 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1580 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1581 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1582 |
fi |
| 1583 |
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1584 |
ac_abs_confdir=`( |
| 1585 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1586 |
pwd)` |
| 1587 |
# When building in place, set srcdir=. |
| 1588 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1589 |
srcdir=. |
| 1590 |
fi |
| 1591 |
# Remove unnecessary trailing slashes from srcdir. |
| 1592 |
# Double slashes in file names in object file debugging info |
| 1593 |
# mess up M-x gdb in Emacs. |
| 1594 |
case $srcdir in |
| 1595 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1596 |
esac |
| 1597 |
for ac_var in $ac_precious_vars; do |
| 1598 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1599 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1600 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1601 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1602 |
done |
| 1603 |
|
| 1604 |
# |
| 1605 |
# Report the --help message. |
| 1606 |
# |
| 1607 |
if test "$ac_init_help" = "long"; then |
| 1608 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1609 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1610 |
cat <<_ACEOF |
| 1611 |
\`configure' configures this package to adapt to many kinds of systems. |
| 1612 |
|
| 1613 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1614 |
|
| 1615 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1616 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1617 |
|
| 1618 |
Defaults for the options are specified in brackets. |
| 1619 |
|
| 1620 |
Configuration: |
| 1621 |
-h, --help display this help and exit |
| 1622 |
--help=short display options specific to this package |
| 1623 |
--help=recursive display the short help of all the included packages |
| 1624 |
-V, --version display version information and exit |
| 1625 |
-q, --quiet, --silent do not print \`checking ...' messages |
| 1626 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1627 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 1628 |
-n, --no-create do not create output files |
| 1629 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1630 |
|
| 1631 |
Installation directories: |
| 1632 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1633 |
[$ac_default_prefix] |
| 1634 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1635 |
[PREFIX] |
| 1636 |
|
| 1637 |
By default, \`make install' will install all the files in |
| 1638 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1639 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1640 |
for instance \`--prefix=\$HOME'. |
| 1641 |
|
| 1642 |
For better control, use the options below. |
| 1643 |
|
| 1644 |
Fine tuning of the installation directories: |
| 1645 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1646 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1647 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1648 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1649 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1650 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1651 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1652 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1653 |
--includedir=DIR C header files [PREFIX/include] |
| 1654 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1655 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1656 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1657 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1658 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1659 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1660 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1661 |
--htmldir=DIR html documentation [DOCDIR] |
| 1662 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1663 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1664 |
--psdir=DIR ps documentation [DOCDIR] |
| 1665 |
_ACEOF |
| 1666 |
|
| 1667 |
cat <<\_ACEOF |
| 1668 |
|
| 1669 |
Program names: |
| 1670 |
--program-prefix=PREFIX prepend PREFIX to installed program names |
| 1671 |
--program-suffix=SUFFIX append SUFFIX to installed program names |
| 1672 |
--program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1673 |
|
| 1674 |
System types: |
| 1675 |
--build=BUILD configure for building on BUILD [guessed] |
| 1676 |
--host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1677 |
--target=TARGET configure for building compilers for TARGET [HOST] |
| 1678 |
_ACEOF |
| 1679 |
fi |
| 1680 |
|
| 1681 |
if test -n "$ac_init_help"; then |
| 1682 |
|
| 1683 |
cat <<\_ACEOF |
| 1684 |
|
| 1685 |
Optional Features: |
| 1686 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1687 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1688 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1689 |
--enable-load-relative resolve load paths at run time |
| 1690 |
--enable-rpath embed run path into extension libraries. enabled by |
| 1691 |
default on ELF platforms |
| 1692 |
--enable-devel enable development build |
| 1693 |
--disable-werror don't make warnings into errors even if a compiler |
| 1694 |
support -Werror feature [[disabled by default unless |
| 1695 |
development version]] |
| 1696 |
--disable-fortify-source |
| 1697 |
disable -D_FORTIFY_SOURCE=2 option, which causes |
| 1698 |
link error on mingw |
| 1699 |
--disable-largefile omit support for large files |
| 1700 |
--enable-mathn enable canonicalization for mathn |
| 1701 |
--enable-setreuid use setreuid()/setregid() according to need even if |
| 1702 |
obsolete |
| 1703 |
--enable-multiarch enable multiarch compatible directories |
| 1704 |
--enable-shared build a shared library for Ruby |
| 1705 |
--disable-pie disable PIE feature |
| 1706 |
--enable-dtrace enable DTrace for tracing inside ruby. enabled by |
| 1707 |
default on systems having dtrace |
| 1708 |
--enable-gcov enable coverage measurement by gcov |
| 1709 |
--disable-install-doc do not install either rdoc indexes or C API |
| 1710 |
documents during install |
| 1711 |
--disable-install-rdoc do not install rdoc indexes during install |
| 1712 |
--disable-install-capi do not install C API documents during install |
| 1713 |
--disable-install-static-library |
| 1714 |
do not install static ruby library |
| 1715 |
--enable-yjit enable in-process JIT compiler that requires Rust |
| 1716 |
build tools. enabled by default on supported |
| 1717 |
platforms if rustc 1.58.0+ is available |
| 1718 |
--enable-rjit enable pure-Ruby JIT compiler. enabled by default on |
| 1719 |
Unix x86_64 platforms |
| 1720 |
--disable-dln disable dynamic link feature |
| 1721 |
--enable-debug-env enable RUBY_DEBUG environment variable |
| 1722 |
--enable-mkmf-verbose enable verbose in mkmf |
| 1723 |
--disable-rubygems disable rubygems by default |
| 1724 |
|
| 1725 |
Optional Packages: |
| 1726 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1727 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1728 |
--with-baseruby=RUBY use RUBY as baseruby; RUBY is the pathname of ruby |
| 1729 |
--without-git never use git |
| 1730 |
--without-gcc never use gcc |
| 1731 |
--with-os-version-style=TYPE |
| 1732 |
OS version number for target and target_os [[full]] |
| 1733 |
(full|teeny|minor+0|minor|major+0|major|none) |
| 1734 |
--with-arch=ARCHS build an Apple/NeXT Multi Architecture Binary (MAB); |
| 1735 |
ARCHS is a comma-delimited list of architectures for |
| 1736 |
which to build; if this option is disabled or |
| 1737 |
omitted entirely, then the package will be built |
| 1738 |
only for the target platform |
| 1739 |
--with-compress-debug-sections=type |
| 1740 |
enable debug section compression |
| 1741 |
--with-gmp-dir=DIR specify the prefix directory where gmp is installed |
| 1742 |
--without-gmp disable GNU GMP to accelerate Bignum operations |
| 1743 |
--with-opt-dir=DIR-LIST add optional headers and libraries directories |
| 1744 |
separated by $PATH_SEPARATOR |
| 1745 |
--with-winnt-ver=0xXXXX target Windows NT version (default to 0x0600) |
| 1746 |
--with-thread=IMPLEMENTATION |
| 1747 |
specify the thread implementation to use |
| 1748 |
--with-jemalloc use jemalloc allocator |
| 1749 |
--with-coroutine=IMPLEMENTATION |
| 1750 |
specify the coroutine implementation to use |
| 1751 |
--with-dln-a-out dln_a_out is deprecated |
| 1752 |
--with-static-linked-ext |
| 1753 |
link external modules statically |
| 1754 |
--without-valgrind disable valgrind memcheck support |
| 1755 |
--with-ext=EXTS pass to --with-ext option of extmk.rb |
| 1756 |
--with-out-ext=EXTS pass to --without-ext option of extmk.rb |
| 1757 |
--with-setup=SETUP use extension libraries setup |
| 1758 |
--with-rubylibprefix=DIR |
| 1759 |
prefix for ruby libraries [[LIBDIR/RUBY_BASE_NAME]] |
| 1760 |
--with-soname=SONAME base name of shared library |
| 1761 |
--with-setjmp-type select setjmp type |
| 1762 |
--with-rdoc=ri,html comma/space separated list of RDoc formats to |
| 1763 |
install |
| 1764 |
--with-rubyarchprefix=DIR |
| 1765 |
prefix for architecture dependent ruby libraries |
| 1766 |
[[RUBYLIBPREFIX/ARCH]] |
| 1767 |
--with-rubysitearchprefix=DIR |
| 1768 |
prefix for architecture dependent site libraries |
| 1769 |
[[RUBYLIBPREFIX/SITEARCH]] |
| 1770 |
--with-ridir=DIR ri documentation [[DATAROOTDIR/ri]] |
| 1771 |
--with-ruby-version=STR ruby version string for version specific directories |
| 1772 |
[[full]] (full|minor|STR) |
| 1773 |
--with-sitedir=DIR site libraries in DIR [[RUBY_LIB_PREFIX/site_ruby]], |
| 1774 |
"no" to disable site directory |
| 1775 |
--with-sitearchdir=DIR architecture dependent site libraries in DIR |
| 1776 |
[[SITEDIR/SITEARCH]], "no" to disable site directory |
| 1777 |
--with-vendordir=DIR vendor libraries in DIR |
| 1778 |
[[RUBY_LIB_PREFIX/vendor_ruby]], "no" to disable |
| 1779 |
vendor directory |
| 1780 |
--with-vendorarchdir=DIR |
| 1781 |
architecture dependent vendor libraries in DIR |
| 1782 |
[[VENDORDIR/SITEARCH]], "no" to disable vendor |
| 1783 |
directory |
| 1784 |
--with-search-path=DIR specify the additional search path |
| 1785 |
--with-rubyhdrdir=DIR core headers in DIR |
| 1786 |
[[INCLUDEDIR/RUBY_BASE_NAME-RUBY_VERSION]] |
| 1787 |
--with-rubyarchhdrdir=DIR |
| 1788 |
architecture dependent core headers in DIR |
| 1789 |
[[$(rubyhdrdir)/$(arch)]] |
| 1790 |
--with-sitehdrdir=DIR core site headers in DIR [[RUBYHDRDIR/site_ruby]] |
| 1791 |
--with-sitearchhdrdir=DIR |
| 1792 |
architecture dependent core site headers in DIR |
| 1793 |
[[RUBYHDRDIR/site_ruby]] |
| 1794 |
--with-vendorhdrdir=DIR core vendor headers in DIR |
| 1795 |
[[RUBYHDRDIR/vendor_ruby]] |
| 1796 |
--with-vendorarchhdrdir=DIR |
| 1797 |
architecture dependent core vendor headers in DIR |
| 1798 |
[[RUBYHDRDIR/vendor_ruby]] |
| 1799 |
--with-mantype=TYPE specify man page type; TYPE is one of man and doc |
| 1800 |
--with-ruby-pc=FILENAME pc file basename |
| 1801 |
--with-destdir=DESTDIR specify default directory to install |
| 1802 |
|
| 1803 |
Some influential environment variables: |
| 1804 |
cflags additional CFLAGS (ignored when CFLAGS is given) |
| 1805 |
cppflags additional CPPFLAGS (ignored when CPPFLAGS is given) |
| 1806 |
cxxflags additional CXXFLAGS (ignored when CXXFLAGS is given) |
| 1807 |
AR Archiver command |
| 1808 |
AS Assembler command |
| 1809 |
CC C compiler command |
| 1810 |
CXX C++ compiler command |
| 1811 |
LD Linker command |
| 1812 |
NM Symbol list command |
| 1813 |
OBJCOPY Objcopy command |
| 1814 |
OBJDUMP Objdump command |
| 1815 |
RANLIB Ranlib command |
| 1816 |
STRIP Strip command |
| 1817 |
CFLAGS C compiler flags |
| 1818 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1819 |
nonstandard directory <lib dir> |
| 1820 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1821 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1822 |
you have headers in a nonstandard directory <include dir> |
| 1823 |
CXXFLAGS C++ compiler flags |
| 1824 |
CPP C preprocessor |
| 1825 |
|
| 1826 |
Use these variables to override the choices made by `configure' or to help |
| 1827 |
it to find libraries and programs with nonstandard names/locations. |
| 1828 |
|
| 1829 |
Report bugs to the package provider. |
| 1830 |
_ACEOF |
| 1831 |
ac_status=$? |
| 1832 |
fi |
| 1833 |
|
| 1834 |
if test "$ac_init_help" = "recursive"; then |
| 1835 |
# If there are subdirs, report their specific --help. |
| 1836 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1837 |
test -d "$ac_dir" || |
| 1838 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1839 |
continue |
| 1840 |
ac_builddir=. |
| 1841 |
|
| 1842 |
case "$ac_dir" in |
| 1843 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1844 |
*) |
| 1845 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1846 |
# A ".." for each directory in $ac_dir_suffix. |
| 1847 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1848 |
case $ac_top_builddir_sub in |
| 1849 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1850 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1851 |
esac ;; |
| 1852 |
esac |
| 1853 |
ac_abs_top_builddir=$ac_pwd |
| 1854 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1855 |
# for backward compatibility: |
| 1856 |
ac_top_builddir=$ac_top_build_prefix |
| 1857 |
|
| 1858 |
case $srcdir in |
| 1859 |
.) # We are building in place. |
| 1860 |
ac_srcdir=. |
| 1861 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1862 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1863 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1864 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1865 |
ac_top_srcdir=$srcdir |
| 1866 |
ac_abs_top_srcdir=$srcdir ;; |
| 1867 |
*) # Relative name. |
| 1868 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1869 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1870 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1871 |
esac |
| 1872 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1873 |
|
| 1874 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1875 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1876 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1877 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1878 |
echo && |
| 1879 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1880 |
elif test -f "$ac_srcdir/configure"; then |
| 1881 |
echo && |
| 1882 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1883 |
else |
| 1884 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1885 |
fi || ac_status=$? |
| 1886 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1887 |
done |
| 1888 |
fi |
| 1889 |
|
| 1890 |
test -n "$ac_init_help" && exit $ac_status |
| 1891 |
if $ac_init_version; then |
| 1892 |
cat <<\_ACEOF |
| 1893 |
configure |
| 1894 |
generated by GNU Autoconf 2.71 |
| 1895 |
|
| 1896 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 1897 |
This configure script is free software; the Free Software Foundation |
| 1898 |
gives unlimited permission to copy, distribute and modify it. |
| 1899 |
_ACEOF |
| 1900 |
exit |
| 1901 |
fi |
| 1902 |
|
| 1903 |
## ------------------------ ## |
| 1904 |
## Autoconf initialization. ## |
| 1905 |
## ------------------------ ## |
| 1906 |
|
| 1907 |
# ac_fn_c_try_compile LINENO |
| 1908 |
# -------------------------- |
| 1909 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1910 |
ac_fn_c_try_compile () |
| 1911 |
{ |
| 1912 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1913 |
rm -f conftest.$ac_objext conftest.beam |
| 1914 |
if { { ac_try="$ac_compile" |
| 1915 |
case "(($ac_try" in |
| 1916 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1917 |
*) ac_try_echo=$ac_try;; |
| 1918 |
esac |
| 1919 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1920 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1921 |
(eval "$ac_compile") 2>conftest.err |
| 1922 |
ac_status=$? |
| 1923 |
if test -s conftest.err; then |
| 1924 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1925 |
cat conftest.er1 >&5 |
| 1926 |
mv -f conftest.er1 conftest.err |
| 1927 |
fi |
| 1928 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1929 |
test $ac_status = 0; } && { |
| 1930 |
test -z "$ac_c_werror_flag" || |
| 1931 |
test ! -s conftest.err |
| 1932 |
} && test -s conftest.$ac_objext |
| 1933 |
then : |
| 1934 |
ac_retval=0 |
| 1935 |
else $as_nop |
| 1936 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1937 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1938 |
|
| 1939 |
ac_retval=1 |
| 1940 |
fi |
| 1941 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1942 |
as_fn_set_status $ac_retval |
| 1943 |
|
| 1944 |
} # ac_fn_c_try_compile |
| 1945 |
|
| 1946 |
# ac_fn_cxx_try_compile LINENO |
| 1947 |
# ---------------------------- |
| 1948 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1949 |
ac_fn_cxx_try_compile () |
| 1950 |
{ |
| 1951 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1952 |
rm -f conftest.$ac_objext conftest.beam |
| 1953 |
if { { ac_try="$ac_compile" |
| 1954 |
case "(($ac_try" in |
| 1955 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1956 |
*) ac_try_echo=$ac_try;; |
| 1957 |
esac |
| 1958 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1959 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1960 |
(eval "$ac_compile") 2>conftest.err |
| 1961 |
ac_status=$? |
| 1962 |
if test -s conftest.err; then |
| 1963 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1964 |
cat conftest.er1 >&5 |
| 1965 |
mv -f conftest.er1 conftest.err |
| 1966 |
fi |
| 1967 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1968 |
test $ac_status = 0; } && { |
| 1969 |
test -z "$ac_cxx_werror_flag" || |
| 1970 |
test ! -s conftest.err |
| 1971 |
} && test -s conftest.$ac_objext |
| 1972 |
then : |
| 1973 |
ac_retval=0 |
| 1974 |
else $as_nop |
| 1975 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 1976 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1977 |
|
| 1978 |
ac_retval=1 |
| 1979 |
fi |
| 1980 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1981 |
as_fn_set_status $ac_retval |
| 1982 |
|
| 1983 |
} # ac_fn_cxx_try_compile |
| 1984 |
|
| 1985 |
# ac_fn_c_try_cpp LINENO |
| 1986 |
# ---------------------- |
| 1987 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1988 |
ac_fn_c_try_cpp () |
| 1989 |
{ |
| 1990 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1991 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1992 |
case "(($ac_try" in |
| 1993 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1994 |
*) ac_try_echo=$ac_try;; |
| 1995 |
esac |
| 1996 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1997 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1998 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1999 |
ac_status=$? |
| 2000 |
if test -s conftest.err; then |
| 2001 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2002 |
cat conftest.er1 >&5 |
| 2003 |
mv -f conftest.er1 conftest.err |
| 2004 |
fi |
| 2005 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2006 |
test $ac_status = 0; } > conftest.i && { |
| 2007 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2008 |
test ! -s conftest.err |
| 2009 |
} |
| 2010 |
then : |
| 2011 |
ac_retval=0 |
| 2012 |
else $as_nop |
| 2013 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2014 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2015 |
|
| 2016 |
ac_retval=1 |
| 2017 |
fi |
| 2018 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2019 |
as_fn_set_status $ac_retval |
| 2020 |
|
| 2021 |
} # ac_fn_c_try_cpp |
| 2022 |
|
| 2023 |
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2024 |
# ------------------------------------------------------- |
| 2025 |
# Tests whether HEADER exists and can be compiled using the include files in |
| 2026 |
# INCLUDES, setting the cache variable VAR accordingly. |
| 2027 |
ac_fn_c_check_header_compile () |
| 2028 |
{ |
| 2029 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2030 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2031 |
printf %s "checking for $2... " >&6; } |
| 2032 |
if eval test \${$3+y} |
| 2033 |
then : |
| 2034 |
printf %s "(cached) " >&6 |
| 2035 |
else $as_nop |
| 2036 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2037 |
/* end confdefs.h. */ |
| 2038 |
$4 |
| 2039 |
#include <$2> |
| 2040 |
_ACEOF |
| 2041 |
if ac_fn_c_try_compile "$LINENO" |
| 2042 |
then : |
| 2043 |
eval "$3=yes" |
| 2044 |
else $as_nop |
| 2045 |
eval "$3=no" |
| 2046 |
fi |
| 2047 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2048 |
fi |
| 2049 |
eval ac_res=\$$3 |
| 2050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2051 |
colorize_result "$ac_res" ; } |
| 2052 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2053 |
|
| 2054 |
} # ac_fn_c_check_header_compile |
| 2055 |
|
| 2056 |
# ac_fn_c_try_link LINENO |
| 2057 |
# ----------------------- |
| 2058 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2059 |
ac_fn_c_try_link () |
| 2060 |
{ |
| 2061 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2062 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2063 |
if { { ac_try="$ac_link" |
| 2064 |
case "(($ac_try" in |
| 2065 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2066 |
*) ac_try_echo=$ac_try;; |
| 2067 |
esac |
| 2068 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2069 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2070 |
(eval "$ac_link") 2>conftest.err |
| 2071 |
ac_status=$? |
| 2072 |
if test -s conftest.err; then |
| 2073 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2074 |
cat conftest.er1 >&5 |
| 2075 |
mv -f conftest.er1 conftest.err |
| 2076 |
fi |
| 2077 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2078 |
test $ac_status = 0; } && { |
| 2079 |
test -z "$ac_c_werror_flag" || |
| 2080 |
test ! -s conftest.err |
| 2081 |
} && test -s conftest$ac_exeext && { |
| 2082 |
test "$cross_compiling" = yes || |
| 2083 |
test -x conftest$ac_exeext |
| 2084 |
} |
| 2085 |
then : |
| 2086 |
ac_retval=0 |
| 2087 |
else $as_nop |
| 2088 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2089 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2090 |
|
| 2091 |
ac_retval=1 |
| 2092 |
fi |
| 2093 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2094 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2095 |
# interfere with the next link command; also delete a directory that is |
| 2096 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2097 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2098 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2099 |
as_fn_set_status $ac_retval |
| 2100 |
|
| 2101 |
} # ac_fn_c_try_link |
| 2102 |
|
| 2103 |
# ac_fn_cxx_try_link LINENO |
| 2104 |
# ------------------------- |
| 2105 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2106 |
ac_fn_cxx_try_link () |
| 2107 |
{ |
| 2108 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2109 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 2110 |
if { { ac_try="$ac_link" |
| 2111 |
case "(($ac_try" in |
| 2112 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2113 |
*) ac_try_echo=$ac_try;; |
| 2114 |
esac |
| 2115 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2116 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2117 |
(eval "$ac_link") 2>conftest.err |
| 2118 |
ac_status=$? |
| 2119 |
if test -s conftest.err; then |
| 2120 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 2121 |
cat conftest.er1 >&5 |
| 2122 |
mv -f conftest.er1 conftest.err |
| 2123 |
fi |
| 2124 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2125 |
test $ac_status = 0; } && { |
| 2126 |
test -z "$ac_cxx_werror_flag" || |
| 2127 |
test ! -s conftest.err |
| 2128 |
} && test -s conftest$ac_exeext && { |
| 2129 |
test "$cross_compiling" = yes || |
| 2130 |
test -x conftest$ac_exeext |
| 2131 |
} |
| 2132 |
then : |
| 2133 |
ac_retval=0 |
| 2134 |
else $as_nop |
| 2135 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2136 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2137 |
|
| 2138 |
ac_retval=1 |
| 2139 |
fi |
| 2140 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2141 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2142 |
# interfere with the next link command; also delete a directory that is |
| 2143 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 2144 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2145 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2146 |
as_fn_set_status $ac_retval |
| 2147 |
|
| 2148 |
} # ac_fn_cxx_try_link |
| 2149 |
|
| 2150 |
# ac_fn_c_try_run LINENO |
| 2151 |
# ---------------------- |
| 2152 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 2153 |
# executables *can* be run. |
| 2154 |
ac_fn_c_try_run () |
| 2155 |
{ |
| 2156 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2157 |
if { { ac_try="$ac_link" |
| 2158 |
case "(($ac_try" in |
| 2159 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2160 |
*) ac_try_echo=$ac_try;; |
| 2161 |
esac |
| 2162 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2163 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2164 |
(eval "$ac_link") 2>&5 |
| 2165 |
ac_status=$? |
| 2166 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2167 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2168 |
{ { case "(($ac_try" in |
| 2169 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2170 |
*) ac_try_echo=$ac_try;; |
| 2171 |
esac |
| 2172 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2173 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2174 |
(eval "$ac_try") 2>&5 |
| 2175 |
ac_status=$? |
| 2176 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2177 |
test $ac_status = 0; }; } |
| 2178 |
then : |
| 2179 |
ac_retval=0 |
| 2180 |
else $as_nop |
| 2181 |
printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 2182 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2183 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2184 |
|
| 2185 |
ac_retval=$ac_status |
| 2186 |
fi |
| 2187 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2188 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2189 |
as_fn_set_status $ac_retval |
| 2190 |
|
| 2191 |
} # ac_fn_c_try_run |
| 2192 |
|
| 2193 |
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2194 |
# ------------------------------------------- |
| 2195 |
# Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2196 |
# variable VAR accordingly. |
| 2197 |
ac_fn_c_check_type () |
| 2198 |
{ |
| 2199 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2201 |
printf %s "checking for $2... " >&6; } |
| 2202 |
if eval test \${$3+y} |
| 2203 |
then : |
| 2204 |
printf %s "(cached) " >&6 |
| 2205 |
else $as_nop |
| 2206 |
eval "$3=no" |
| 2207 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2208 |
/* end confdefs.h. */ |
| 2209 |
$4 |
| 2210 |
int |
| 2211 |
main (void) |
| 2212 |
{ |
| 2213 |
if (sizeof ($2)) |
| 2214 |
return 0; |
| 2215 |
; |
| 2216 |
return 0; |
| 2217 |
} |
| 2218 |
_ACEOF |
| 2219 |
if ac_fn_c_try_compile "$LINENO" |
| 2220 |
then : |
| 2221 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2222 |
/* end confdefs.h. */ |
| 2223 |
$4 |
| 2224 |
int |
| 2225 |
main (void) |
| 2226 |
{ |
| 2227 |
if (sizeof (($2))) |
| 2228 |
return 0; |
| 2229 |
; |
| 2230 |
return 0; |
| 2231 |
} |
| 2232 |
_ACEOF |
| 2233 |
if ac_fn_c_try_compile "$LINENO" |
| 2234 |
then : |
| 2235 |
|
| 2236 |
else $as_nop |
| 2237 |
eval "$3=yes" |
| 2238 |
fi |
| 2239 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2240 |
fi |
| 2241 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2242 |
fi |
| 2243 |
eval ac_res=\$$3 |
| 2244 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2245 |
colorize_result "$ac_res" ; } |
| 2246 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2247 |
|
| 2248 |
} # ac_fn_c_check_type |
| 2249 |
|
| 2250 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 2251 |
# ---------------------------------- |
| 2252 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2253 |
ac_fn_c_check_func () |
| 2254 |
{ |
| 2255 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2257 |
printf %s "checking for $2... " >&6; } |
| 2258 |
if eval test \${$3+y} |
| 2259 |
then : |
| 2260 |
printf %s "(cached) " >&6 |
| 2261 |
else $as_nop |
| 2262 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2263 |
/* end confdefs.h. */ |
| 2264 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2265 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2266 |
#define $2 innocuous_$2 |
| 2267 |
|
| 2268 |
/* System header to define __stub macros and hopefully few prototypes, |
| 2269 |
which can conflict with char $2 (); below. */ |
| 2270 |
|
| 2271 |
#include <limits.h> |
| 2272 |
#undef $2 |
| 2273 |
|
| 2274 |
/* Override any GCC internal prototype to avoid an error. |
| 2275 |
Use char because int might match the return type of a GCC |
| 2276 |
builtin and then its argument prototype would still apply. */ |
| 2277 |
#ifdef __cplusplus |
| 2278 |
extern "C" |
| 2279 |
#endif |
| 2280 |
char $2 (); |
| 2281 |
/* The GNU C library defines this for functions which it implements |
| 2282 |
to always fail with ENOSYS. Some functions are actually named |
| 2283 |
something starting with __ and the normal name is an alias. */ |
| 2284 |
#if defined __stub_$2 || defined __stub___$2 |
| 2285 |
choke me |
| 2286 |
#endif |
| 2287 |
|
| 2288 |
int |
| 2289 |
main (void) |
| 2290 |
{ |
| 2291 |
return $2 (); |
| 2292 |
; |
| 2293 |
return 0; |
| 2294 |
} |
| 2295 |
_ACEOF |
| 2296 |
if ac_fn_c_try_link "$LINENO" |
| 2297 |
then : |
| 2298 |
eval "$3=yes" |
| 2299 |
else $as_nop |
| 2300 |
eval "$3=no" |
| 2301 |
fi |
| 2302 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 2303 |
conftest$ac_exeext conftest.$ac_ext |
| 2304 |
fi |
| 2305 |
eval ac_res=\$$3 |
| 2306 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2307 |
colorize_result "$ac_res" ; } |
| 2308 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2309 |
|
| 2310 |
} # ac_fn_c_check_func |
| 2311 |
|
| 2312 |
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2313 |
# -------------------------------------------- |
| 2314 |
# Tries to find the compile-time value of EXPR in a program that includes |
| 2315 |
# INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2316 |
# computed |
| 2317 |
ac_fn_c_compute_int () |
| 2318 |
{ |
| 2319 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2320 |
if test "$cross_compiling" = yes; then |
| 2321 |
# Depending upon the size, compute the lo and hi bounds. |
| 2322 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2323 |
/* end confdefs.h. */ |
| 2324 |
$4 |
| 2325 |
int |
| 2326 |
main (void) |
| 2327 |
{ |
| 2328 |
static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2329 |
test_array [0] = 0; |
| 2330 |
return test_array [0]; |
| 2331 |
|
| 2332 |
; |
| 2333 |
return 0; |
| 2334 |
} |
| 2335 |
_ACEOF |
| 2336 |
if ac_fn_c_try_compile "$LINENO" |
| 2337 |
then : |
| 2338 |
ac_lo=0 ac_mid=0 |
| 2339 |
while :; do |
| 2340 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2341 |
/* end confdefs.h. */ |
| 2342 |
$4 |
| 2343 |
int |
| 2344 |
main (void) |
| 2345 |
{ |
| 2346 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2347 |
test_array [0] = 0; |
| 2348 |
return test_array [0]; |
| 2349 |
|
| 2350 |
; |
| 2351 |
return 0; |
| 2352 |
} |
| 2353 |
_ACEOF |
| 2354 |
if ac_fn_c_try_compile "$LINENO" |
| 2355 |
then : |
| 2356 |
ac_hi=$ac_mid; break |
| 2357 |
else $as_nop |
| 2358 |
as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2359 |
if test $ac_lo -le $ac_mid; then |
| 2360 |
ac_lo= ac_hi= |
| 2361 |
break |
| 2362 |
fi |
| 2363 |
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2364 |
fi |
| 2365 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2366 |
done |
| 2367 |
else $as_nop |
| 2368 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2369 |
/* end confdefs.h. */ |
| 2370 |
$4 |
| 2371 |
int |
| 2372 |
main (void) |
| 2373 |
{ |
| 2374 |
static int test_array [1 - 2 * !(($2) < 0)]; |
| 2375 |
test_array [0] = 0; |
| 2376 |
return test_array [0]; |
| 2377 |
|
| 2378 |
; |
| 2379 |
return 0; |
| 2380 |
} |
| 2381 |
_ACEOF |
| 2382 |
if ac_fn_c_try_compile "$LINENO" |
| 2383 |
then : |
| 2384 |
ac_hi=-1 ac_mid=-1 |
| 2385 |
while :; do |
| 2386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2387 |
/* end confdefs.h. */ |
| 2388 |
$4 |
| 2389 |
int |
| 2390 |
main (void) |
| 2391 |
{ |
| 2392 |
static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2393 |
test_array [0] = 0; |
| 2394 |
return test_array [0]; |
| 2395 |
|
| 2396 |
; |
| 2397 |
return 0; |
| 2398 |
} |
| 2399 |
_ACEOF |
| 2400 |
if ac_fn_c_try_compile "$LINENO" |
| 2401 |
then : |
| 2402 |
ac_lo=$ac_mid; break |
| 2403 |
else $as_nop |
| 2404 |
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2405 |
if test $ac_mid -le $ac_hi; then |
| 2406 |
ac_lo= ac_hi= |
| 2407 |
break |
| 2408 |
fi |
| 2409 |
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2410 |
fi |
| 2411 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2412 |
done |
| 2413 |
else $as_nop |
| 2414 |
ac_lo= ac_hi= |
| 2415 |
fi |
| 2416 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2417 |
fi |
| 2418 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2419 |
# Binary search between lo and hi bounds. |
| 2420 |
while test "x$ac_lo" != "x$ac_hi"; do |
| 2421 |
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2422 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2423 |
/* end confdefs.h. */ |
| 2424 |
$4 |
| 2425 |
int |
| 2426 |
main (void) |
| 2427 |
{ |
| 2428 |
static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2429 |
test_array [0] = 0; |
| 2430 |
return test_array [0]; |
| 2431 |
|
| 2432 |
; |
| 2433 |
return 0; |
| 2434 |
} |
| 2435 |
_ACEOF |
| 2436 |
if ac_fn_c_try_compile "$LINENO" |
| 2437 |
then : |
| 2438 |
ac_hi=$ac_mid |
| 2439 |
else $as_nop |
| 2440 |
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2441 |
fi |
| 2442 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2443 |
done |
| 2444 |
case $ac_lo in #(( |
| 2445 |
?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2446 |
'') ac_retval=1 ;; |
| 2447 |
esac |
| 2448 |
else |
| 2449 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2450 |
/* end confdefs.h. */ |
| 2451 |
$4 |
| 2452 |
static long int longval (void) { return $2; } |
| 2453 |
static unsigned long int ulongval (void) { return $2; } |
| 2454 |
#include <stdio.h> |
| 2455 |
#include <stdlib.h> |
| 2456 |
int |
| 2457 |
main (void) |
| 2458 |
{ |
| 2459 |
|
| 2460 |
FILE *f = fopen ("conftest.val", "w"); |
| 2461 |
if (! f) |
| 2462 |
return 1; |
| 2463 |
if (($2) < 0) |
| 2464 |
{ |
| 2465 |
long int i = longval (); |
| 2466 |
if (i != ($2)) |
| 2467 |
return 1; |
| 2468 |
fprintf (f, "%ld", i); |
| 2469 |
} |
| 2470 |
else |
| 2471 |
{ |
| 2472 |
unsigned long int i = ulongval (); |
| 2473 |
if (i != ($2)) |
| 2474 |
return 1; |
| 2475 |
fprintf (f, "%lu", i); |
| 2476 |
} |
| 2477 |
/* Do not output a trailing newline, as this causes \r\n confusion |
| 2478 |
on some platforms. */ |
| 2479 |
return ferror (f) || fclose (f) != 0; |
| 2480 |
|
| 2481 |
; |
| 2482 |
return 0; |
| 2483 |
} |
| 2484 |
_ACEOF |
| 2485 |
if ac_fn_c_try_run "$LINENO" |
| 2486 |
then : |
| 2487 |
echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2488 |
else $as_nop |
| 2489 |
ac_retval=1 |
| 2490 |
fi |
| 2491 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2492 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2493 |
rm -f conftest.val |
| 2494 |
|
| 2495 |
fi |
| 2496 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2497 |
as_fn_set_status $ac_retval |
| 2498 |
|
| 2499 |
} # ac_fn_c_compute_int |
| 2500 |
|
| 2501 |
# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
| 2502 |
# ------------------------------------------------------------------ |
| 2503 |
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
| 2504 |
# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
| 2505 |
ac_fn_check_decl () |
| 2506 |
{ |
| 2507 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2508 |
as_decl_name=`echo $2|sed 's/ *(.*//'` |
| 2509 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
| 2510 |
printf %s "checking whether $as_decl_name is declared... " >&6; } |
| 2511 |
if eval test \${$3+y} |
| 2512 |
then : |
| 2513 |
printf %s "(cached) " >&6 |
| 2514 |
else $as_nop |
| 2515 |
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
| 2516 |
eval ac_save_FLAGS=\$$6 |
| 2517 |
as_fn_append $6 " $5" |
| 2518 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2519 |
/* end confdefs.h. */ |
| 2520 |
$4 |
| 2521 |
int |
| 2522 |
main (void) |
| 2523 |
{ |
| 2524 |
#ifndef $as_decl_name |
| 2525 |
#ifdef __cplusplus |
| 2526 |
(void) $as_decl_use; |
| 2527 |
#else |
| 2528 |
(void) $as_decl_name; |
| 2529 |
#endif |
| 2530 |
#endif |
| 2531 |
|
| 2532 |
; |
| 2533 |
return 0; |
| 2534 |
} |
| 2535 |
_ACEOF |
| 2536 |
if ac_fn_c_try_compile "$LINENO" |
| 2537 |
then : |
| 2538 |
eval "$3=yes" |
| 2539 |
else $as_nop |
| 2540 |
eval "$3=no" |
| 2541 |
fi |
| 2542 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2543 |
eval $6=\$ac_save_FLAGS |
| 2544 |
|
| 2545 |
fi |
| 2546 |
eval ac_res=\$$3 |
| 2547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2548 |
colorize_result "$ac_res" ; } |
| 2549 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2550 |
|
| 2551 |
} # ac_fn_check_decl |
| 2552 |
|
| 2553 |
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2554 |
# ---------------------------------------------------- |
| 2555 |
# Tries to find if the field MEMBER exists in type AGGR, after including |
| 2556 |
# INCLUDES, setting cache variable VAR accordingly. |
| 2557 |
ac_fn_c_check_member () |
| 2558 |
{ |
| 2559 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2560 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2561 |
printf %s "checking for $2.$3... " >&6; } |
| 2562 |
if eval test \${$4+y} |
| 2563 |
then : |
| 2564 |
printf %s "(cached) " >&6 |
| 2565 |
else $as_nop |
| 2566 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2567 |
/* end confdefs.h. */ |
| 2568 |
$5 |
| 2569 |
int |
| 2570 |
main (void) |
| 2571 |
{ |
| 2572 |
static $2 ac_aggr; |
| 2573 |
if (ac_aggr.$3) |
| 2574 |
return 0; |
| 2575 |
; |
| 2576 |
return 0; |
| 2577 |
} |
| 2578 |
_ACEOF |
| 2579 |
if ac_fn_c_try_compile "$LINENO" |
| 2580 |
then : |
| 2581 |
eval "$4=yes" |
| 2582 |
else $as_nop |
| 2583 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2584 |
/* end confdefs.h. */ |
| 2585 |
$5 |
| 2586 |
int |
| 2587 |
main (void) |
| 2588 |
{ |
| 2589 |
static $2 ac_aggr; |
| 2590 |
if (sizeof ac_aggr.$3) |
| 2591 |
return 0; |
| 2592 |
; |
| 2593 |
return 0; |
| 2594 |
} |
| 2595 |
_ACEOF |
| 2596 |
if ac_fn_c_try_compile "$LINENO" |
| 2597 |
then : |
| 2598 |
eval "$4=yes" |
| 2599 |
else $as_nop |
| 2600 |
eval "$4=no" |
| 2601 |
fi |
| 2602 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2603 |
fi |
| 2604 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2605 |
fi |
| 2606 |
eval ac_res=\$$4 |
| 2607 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2608 |
colorize_result "$ac_res" ; } |
| 2609 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 2610 |
|
| 2611 |
} # ac_fn_c_check_member |
| 2612 |
ac_configure_args_raw= |
| 2613 |
for ac_arg |
| 2614 |
do |
| 2615 |
case $ac_arg in |
| 2616 |
*\'*) |
| 2617 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2618 |
esac |
| 2619 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 2620 |
done |
| 2621 |
|
| 2622 |
case $ac_configure_args_raw in |
| 2623 |
*$as_nl*) |
| 2624 |
ac_safe_unquote= ;; |
| 2625 |
*) |
| 2626 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 2627 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 2628 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 2629 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 2630 |
esac |
| 2631 |
|
| 2632 |
cat >config.log <<_ACEOF |
| 2633 |
This file contains any messages produced by compilers while |
| 2634 |
running configure, to aid debugging if configure makes a mistake. |
| 2635 |
|
| 2636 |
It was created by $as_me, which was |
| 2637 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 2638 |
|
| 2639 |
$ $0$ac_configure_args_raw |
| 2640 |
|
| 2641 |
_ACEOF |
| 2642 |
exec 5>>config.log |
| 2643 |
{ |
| 2644 |
cat <<_ASUNAME |
| 2645 |
## --------- ## |
| 2646 |
## Platform. ## |
| 2647 |
## --------- ## |
| 2648 |
|
| 2649 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2650 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2651 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2652 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2653 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2654 |
|
| 2655 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2656 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2657 |
|
| 2658 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2659 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2660 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2661 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2662 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2663 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2664 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2665 |
|
| 2666 |
_ASUNAME |
| 2667 |
|
| 2668 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2669 |
for as_dir in $PATH |
| 2670 |
do |
| 2671 |
IFS=$as_save_IFS |
| 2672 |
case $as_dir in #((( |
| 2673 |
'') as_dir=./ ;; |
| 2674 |
*/) ;; |
| 2675 |
*) as_dir=$as_dir/ ;; |
| 2676 |
esac |
| 2677 |
printf "%s\n" "PATH: $as_dir" |
| 2678 |
done |
| 2679 |
IFS=$as_save_IFS |
| 2680 |
|
| 2681 |
} >&5 |
| 2682 |
|
| 2683 |
cat >&5 <<_ACEOF |
| 2684 |
|
| 2685 |
|
| 2686 |
## ----------- ## |
| 2687 |
## Core tests. ## |
| 2688 |
## ----------- ## |
| 2689 |
|
| 2690 |
_ACEOF |
| 2691 |
|
| 2692 |
|
| 2693 |
# Keep a trace of the command line. |
| 2694 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 2695 |
# Strip out --silent because we don't want to record it for future runs. |
| 2696 |
# Also quote any args containing shell meta-characters. |
| 2697 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 2698 |
ac_configure_args= |
| 2699 |
ac_configure_args0= |
| 2700 |
ac_configure_args1= |
| 2701 |
ac_must_keep_next=false |
| 2702 |
for ac_pass in 1 2 |
| 2703 |
do |
| 2704 |
for ac_arg |
| 2705 |
do |
| 2706 |
case $ac_arg in |
| 2707 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2708 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2709 |
| -silent | --silent | --silen | --sile | --sil) |
| 2710 |
continue ;; |
| 2711 |
*\'*) |
| 2712 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2713 |
esac |
| 2714 |
case $ac_pass in |
| 2715 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 2716 |
2) |
| 2717 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 2718 |
if test $ac_must_keep_next = true; then |
| 2719 |
ac_must_keep_next=false # Got value, back to normal. |
| 2720 |
else |
| 2721 |
case $ac_arg in |
| 2722 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2723 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2724 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2725 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 2726 |
case "$ac_configure_args0 " in |
| 2727 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2728 |
esac |
| 2729 |
;; |
| 2730 |
-* ) ac_must_keep_next=true ;; |
| 2731 |
esac |
| 2732 |
fi |
| 2733 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 2734 |
;; |
| 2735 |
esac |
| 2736 |
done |
| 2737 |
done |
| 2738 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 2739 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 2740 |
|
| 2741 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 2742 |
# config.log. We remove comments because anyway the quotes in there |
| 2743 |
# would cause problems or look ugly. |
| 2744 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2745 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 2746 |
trap 'exit_status=$? |
| 2747 |
# Sanitize IFS. |
| 2748 |
IFS=" "" $as_nl" |
| 2749 |
# Save into config.log some information that might help in debugging. |
| 2750 |
{ |
| 2751 |
echo |
| 2752 |
|
| 2753 |
printf "%s\n" "## ---------------- ## |
| 2754 |
## Cache variables. ## |
| 2755 |
## ---------------- ##" |
| 2756 |
echo |
| 2757 |
# The following way of writing the cache mishandles newlines in values, |
| 2758 |
( |
| 2759 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2760 |
eval ac_val=\$$ac_var |
| 2761 |
case $ac_val in #( |
| 2762 |
*${as_nl}*) |
| 2763 |
case $ac_var in #( |
| 2764 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2765 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2766 |
esac |
| 2767 |
case $ac_var in #( |
| 2768 |
_ | IFS | as_nl) ;; #( |
| 2769 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2770 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 2771 |
esac ;; |
| 2772 |
esac |
| 2773 |
done |
| 2774 |
(set) 2>&1 | |
| 2775 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2776 |
*${as_nl}ac_space=\ *) |
| 2777 |
sed -n \ |
| 2778 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 2779 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2780 |
;; #( |
| 2781 |
*) |
| 2782 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2783 |
;; |
| 2784 |
esac | |
| 2785 |
sort |
| 2786 |
) |
| 2787 |
echo |
| 2788 |
|
| 2789 |
printf "%s\n" "## ----------------- ## |
| 2790 |
## Output variables. ## |
| 2791 |
## ----------------- ##" |
| 2792 |
echo |
| 2793 |
for ac_var in $ac_subst_vars |
| 2794 |
do |
| 2795 |
eval ac_val=\$$ac_var |
| 2796 |
case $ac_val in |
| 2797 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2798 |
esac |
| 2799 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2800 |
done | sort |
| 2801 |
echo |
| 2802 |
|
| 2803 |
if test -n "$ac_subst_files"; then |
| 2804 |
printf "%s\n" "## ------------------- ## |
| 2805 |
## File substitutions. ## |
| 2806 |
## ------------------- ##" |
| 2807 |
echo |
| 2808 |
for ac_var in $ac_subst_files |
| 2809 |
do |
| 2810 |
eval ac_val=\$$ac_var |
| 2811 |
case $ac_val in |
| 2812 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 2813 |
esac |
| 2814 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 2815 |
done | sort |
| 2816 |
echo |
| 2817 |
fi |
| 2818 |
|
| 2819 |
if test -s confdefs.h; then |
| 2820 |
printf "%s\n" "## ----------- ## |
| 2821 |
## confdefs.h. ## |
| 2822 |
## ----------- ##" |
| 2823 |
echo |
| 2824 |
cat confdefs.h |
| 2825 |
echo |
| 2826 |
fi |
| 2827 |
test "$ac_signal" != 0 && |
| 2828 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 2829 |
printf "%s\n" "$as_me: exit $exit_status" |
| 2830 |
} >&5 |
| 2831 |
rm -f core *.core core.conftest.* && |
| 2832 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 2833 |
exit $exit_status |
| 2834 |
' 0 |
| 2835 |
for ac_signal in 1 2 13 15; do |
| 2836 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 2837 |
done |
| 2838 |
ac_signal=0 |
| 2839 |
|
| 2840 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 2841 |
rm -f -r conftest* confdefs.h |
| 2842 |
|
| 2843 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 2844 |
|
| 2845 |
# Predefined preprocessor variables. |
| 2846 |
|
| 2847 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 2848 |
|
| 2849 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 2850 |
|
| 2851 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 2852 |
|
| 2853 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 2854 |
|
| 2855 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 2856 |
|
| 2857 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 2858 |
|
| 2859 |
|
| 2860 |
# Let the site file select an alternate cache file if it wants to. |
| 2861 |
# Prefer an explicitly selected file to automatically selected ones. |
| 2862 |
if test -n "$CONFIG_SITE"; then |
| 2863 |
ac_site_files="$CONFIG_SITE" |
| 2864 |
elif test "x$prefix" != xNONE; then |
| 2865 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 2866 |
else |
| 2867 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 2868 |
fi |
| 2869 |
|
| 2870 |
for ac_site_file in $ac_site_files |
| 2871 |
do |
| 2872 |
case $ac_site_file in #( |
| 2873 |
*/*) : |
| 2874 |
;; #( |
| 2875 |
*) : |
| 2876 |
ac_site_file=./$ac_site_file ;; |
| 2877 |
esac |
| 2878 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 2879 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 2880 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 2881 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 2882 |
. "$ac_site_file" \ |
| 2883 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 2884 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 2885 |
as_fn_error $? "failed to load site script $ac_site_file |
| 2886 |
See \`config.log' for more details" "$LINENO" 5; } |
| 2887 |
fi |
| 2888 |
done |
| 2889 |
|
| 2890 |
if test -r "$cache_file"; then |
| 2891 |
# Some versions of bash will fail to source /dev/null (special files |
| 2892 |
# actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2893 |
if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 2894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 2895 |
printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
| 2896 |
case $cache_file in |
| 2897 |
[\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2898 |
*) . "./$cache_file";; |
| 2899 |
esac |
| 2900 |
fi |
| 2901 |
else |
| 2902 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 2903 |
printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
| 2904 |
>$cache_file |
| 2905 |
fi |
| 2906 |
|
| 2907 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 2908 |
ac_c_conftest_c89_globals=' |
| 2909 |
/* Does the compiler advertise C89 conformance? |
| 2910 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 2911 |
while being otherwise adequately conformant. */ |
| 2912 |
#if !defined __STDC__ |
| 2913 |
# error "Compiler does not advertise C89 conformance" |
| 2914 |
#endif |
| 2915 |
|
| 2916 |
#include <stddef.h> |
| 2917 |
#include <stdarg.h> |
| 2918 |
struct stat; |
| 2919 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 2920 |
struct buf { int x; }; |
| 2921 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 2922 |
static char *e (p, i) |
| 2923 |
char **p; |
| 2924 |
int i; |
| 2925 |
{ |
| 2926 |
return p[i]; |
| 2927 |
} |
| 2928 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 2929 |
{ |
| 2930 |
char *s; |
| 2931 |
va_list v; |
| 2932 |
va_start (v,p); |
| 2933 |
s = g (p, va_arg (v,int)); |
| 2934 |
va_end (v); |
| 2935 |
return s; |
| 2936 |
} |
| 2937 |
|
| 2938 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 2939 |
function prototypes and stuff, but not \xHH hex character constants. |
| 2940 |
These do not provoke an error unfortunately, instead are silently treated |
| 2941 |
as an "x". The following induces an error, until -std is added to get |
| 2942 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 2943 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 2944 |
that is true only with -std. */ |
| 2945 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 2946 |
|
| 2947 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 2948 |
inside strings and character constants. */ |
| 2949 |
#define FOO(x) '\''x'\'' |
| 2950 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 2951 |
|
| 2952 |
int test (int i, double x); |
| 2953 |
struct s1 {int (*f) (int a);}; |
| 2954 |
struct s2 {int (*f) (double a);}; |
| 2955 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 2956 |
int, int);' |
| 2957 |
|
| 2958 |
# Test code for whether the C compiler supports C89 (body of main). |
| 2959 |
ac_c_conftest_c89_main=' |
| 2960 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 2961 |
' |
| 2962 |
|
| 2963 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 2964 |
ac_c_conftest_c99_globals=' |
| 2965 |
// Does the compiler advertise C99 conformance? |
| 2966 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 2967 |
# error "Compiler does not advertise C99 conformance" |
| 2968 |
#endif |
| 2969 |
|
| 2970 |
#include <stdbool.h> |
| 2971 |
extern int puts (const char *); |
| 2972 |
extern int printf (const char *, ...); |
| 2973 |
extern int dprintf (int, const char *, ...); |
| 2974 |
extern void *malloc (size_t); |
| 2975 |
|
| 2976 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 2977 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 2978 |
// FILE and stderr. |
| 2979 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 2980 |
#define showlist(...) puts (#__VA_ARGS__) |
| 2981 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 2982 |
static void |
| 2983 |
test_varargs_macros (void) |
| 2984 |
{ |
| 2985 |
int x = 1234; |
| 2986 |
int y = 5678; |
| 2987 |
debug ("Flag"); |
| 2988 |
debug ("X = %d\n", x); |
| 2989 |
showlist (The first, second, and third items.); |
| 2990 |
report (x>y, "x is %d but y is %d", x, y); |
| 2991 |
} |
| 2992 |
|
| 2993 |
// Check long long types. |
| 2994 |
#define BIG64 18446744073709551615ull |
| 2995 |
#define BIG32 4294967295ul |
| 2996 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 2997 |
#if !BIG_OK |
| 2998 |
#error "your preprocessor is broken" |
| 2999 |
#endif |
| 3000 |
#if BIG_OK |
| 3001 |
#else |
| 3002 |
#error "your preprocessor is broken" |
| 3003 |
#endif |
| 3004 |
static long long int bignum = -9223372036854775807LL; |
| 3005 |
static unsigned long long int ubignum = BIG64; |
| 3006 |
|
| 3007 |
struct incomplete_array |
| 3008 |
{ |
| 3009 |
int datasize; |
| 3010 |
double data[]; |
| 3011 |
}; |
| 3012 |
|
| 3013 |
struct named_init { |
| 3014 |
int number; |
| 3015 |
const wchar_t *name; |
| 3016 |
double average; |
| 3017 |
}; |
| 3018 |
|
| 3019 |
typedef const char *ccp; |
| 3020 |
|
| 3021 |
static inline int |
| 3022 |
test_restrict (ccp restrict text) |
| 3023 |
{ |
| 3024 |
// See if C++-style comments work. |
| 3025 |
// Iterate through items via the restricted pointer. |
| 3026 |
// Also check for declarations in for loops. |
| 3027 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 3028 |
continue; |
| 3029 |
return 0; |
| 3030 |
} |
| 3031 |
|
| 3032 |
// Check varargs and va_copy. |
| 3033 |
static bool |
| 3034 |
test_varargs (const char *format, ...) |
| 3035 |
{ |
| 3036 |
va_list args; |
| 3037 |
va_start (args, format); |
| 3038 |
va_list args_copy; |
| 3039 |
va_copy (args_copy, args); |
| 3040 |
|
| 3041 |
const char *str = ""; |
| 3042 |
int number = 0; |
| 3043 |
float fnumber = 0; |
| 3044 |
|
| 3045 |
while (*format) |
| 3046 |
{ |
| 3047 |
switch (*format++) |
| 3048 |
{ |
| 3049 |
case '\''s'\'': // string |
| 3050 |
str = va_arg (args_copy, const char *); |
| 3051 |
break; |
| 3052 |
case '\''d'\'': // int |
| 3053 |
number = va_arg (args_copy, int); |
| 3054 |
break; |
| 3055 |
case '\''f'\'': // float |
| 3056 |
fnumber = va_arg (args_copy, double); |
| 3057 |
break; |
| 3058 |
default: |
| 3059 |
break; |
| 3060 |
} |
| 3061 |
} |
| 3062 |
va_end (args_copy); |
| 3063 |
va_end (args); |
| 3064 |
|
| 3065 |
return *str && number && fnumber; |
| 3066 |
} |
| 3067 |
' |
| 3068 |
|
| 3069 |
# Test code for whether the C compiler supports C99 (body of main). |
| 3070 |
ac_c_conftest_c99_main=' |
| 3071 |
// Check bool. |
| 3072 |
_Bool success = false; |
| 3073 |
success |= (argc != 0); |
| 3074 |
|
| 3075 |
// Check restrict. |
| 3076 |
if (test_restrict ("String literal") == 0) |
| 3077 |
success = true; |
| 3078 |
char *restrict newvar = "Another string"; |
| 3079 |
|
| 3080 |
// Check varargs. |
| 3081 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 3082 |
test_varargs_macros (); |
| 3083 |
|
| 3084 |
// Check flexible array members. |
| 3085 |
struct incomplete_array *ia = |
| 3086 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 3087 |
ia->datasize = 10; |
| 3088 |
for (int i = 0; i < ia->datasize; ++i) |
| 3089 |
ia->data[i] = i * 1.234; |
| 3090 |
|
| 3091 |
// Check named initializers. |
| 3092 |
struct named_init ni = { |
| 3093 |
.number = 34, |
| 3094 |
.name = L"Test wide string", |
| 3095 |
.average = 543.34343, |
| 3096 |
}; |
| 3097 |
|
| 3098 |
ni.number = 58; |
| 3099 |
|
| 3100 |
int dynamic_array[ni.number]; |
| 3101 |
dynamic_array[0] = argv[0][0]; |
| 3102 |
dynamic_array[ni.number - 1] = 543; |
| 3103 |
|
| 3104 |
// work around unused variable warnings |
| 3105 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 3106 |
|| dynamic_array[ni.number - 1] != 543); |
| 3107 |
' |
| 3108 |
|
| 3109 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 3110 |
ac_c_conftest_c11_globals=' |
| 3111 |
// Does the compiler advertise C11 conformance? |
| 3112 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 3113 |
# error "Compiler does not advertise C11 conformance" |
| 3114 |
#endif |
| 3115 |
|
| 3116 |
// Check _Alignas. |
| 3117 |
char _Alignas (double) aligned_as_double; |
| 3118 |
char _Alignas (0) no_special_alignment; |
| 3119 |
extern char aligned_as_int; |
| 3120 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 3121 |
|
| 3122 |
// Check _Alignof. |
| 3123 |
enum |
| 3124 |
{ |
| 3125 |
int_alignment = _Alignof (int), |
| 3126 |
int_array_alignment = _Alignof (int[100]), |
| 3127 |
char_alignment = _Alignof (char) |
| 3128 |
}; |
| 3129 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 3130 |
|
| 3131 |
// Check _Noreturn. |
| 3132 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 3133 |
|
| 3134 |
// Check _Static_assert. |
| 3135 |
struct test_static_assert |
| 3136 |
{ |
| 3137 |
int x; |
| 3138 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 3139 |
"_Static_assert does not work in struct"); |
| 3140 |
long int y; |
| 3141 |
}; |
| 3142 |
|
| 3143 |
// Check UTF-8 literals. |
| 3144 |
#define u8 syntax error! |
| 3145 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 3146 |
|
| 3147 |
// Check duplicate typedefs. |
| 3148 |
typedef long *long_ptr; |
| 3149 |
typedef long int *long_ptr; |
| 3150 |
typedef long_ptr long_ptr; |
| 3151 |
|
| 3152 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 3153 |
struct anonymous |
| 3154 |
{ |
| 3155 |
union { |
| 3156 |
struct { int i; int j; }; |
| 3157 |
struct { int k; long int l; } w; |
| 3158 |
}; |
| 3159 |
int m; |
| 3160 |
} v1; |
| 3161 |
' |
| 3162 |
|
| 3163 |
# Test code for whether the C compiler supports C11 (body of main). |
| 3164 |
ac_c_conftest_c11_main=' |
| 3165 |
_Static_assert ((offsetof (struct anonymous, i) |
| 3166 |
== offsetof (struct anonymous, w.k)), |
| 3167 |
"Anonymous union alignment botch"); |
| 3168 |
v1.i = 2; |
| 3169 |
v1.w.k = 5; |
| 3170 |
ok |= v1.i != 5; |
| 3171 |
' |
| 3172 |
|
| 3173 |
# Test code for whether the C compiler supports C11 (complete). |
| 3174 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 3175 |
${ac_c_conftest_c99_globals} |
| 3176 |
${ac_c_conftest_c11_globals} |
| 3177 |
|
| 3178 |
int |
| 3179 |
main (int argc, char **argv) |
| 3180 |
{ |
| 3181 |
int ok = 0; |
| 3182 |
${ac_c_conftest_c89_main} |
| 3183 |
${ac_c_conftest_c99_main} |
| 3184 |
${ac_c_conftest_c11_main} |
| 3185 |
return ok; |
| 3186 |
} |
| 3187 |
" |
| 3188 |
|
| 3189 |
# Test code for whether the C compiler supports C99 (complete). |
| 3190 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 3191 |
${ac_c_conftest_c99_globals} |
| 3192 |
|
| 3193 |
int |
| 3194 |
main (int argc, char **argv) |
| 3195 |
{ |
| 3196 |
int ok = 0; |
| 3197 |
${ac_c_conftest_c89_main} |
| 3198 |
${ac_c_conftest_c99_main} |
| 3199 |
return ok; |
| 3200 |
} |
| 3201 |
" |
| 3202 |
|
| 3203 |
# Test code for whether the C compiler supports C89 (complete). |
| 3204 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 3205 |
|
| 3206 |
int |
| 3207 |
main (int argc, char **argv) |
| 3208 |
{ |
| 3209 |
int ok = 0; |
| 3210 |
${ac_c_conftest_c89_main} |
| 3211 |
return ok; |
| 3212 |
} |
| 3213 |
" |
| 3214 |
|
| 3215 |
# Test code for whether the C++ compiler supports C++98 (global declarations) |
| 3216 |
ac_cxx_conftest_cxx98_globals=' |
| 3217 |
// Does the compiler advertise C++98 conformance? |
| 3218 |
#if !defined __cplusplus || __cplusplus < 199711L |
| 3219 |
# error "Compiler does not advertise C++98 conformance" |
| 3220 |
#endif |
| 3221 |
|
| 3222 |
// These inclusions are to reject old compilers that |
| 3223 |
// lack the unsuffixed header files. |
| 3224 |
#include <cstdlib> |
| 3225 |
#include <exception> |
| 3226 |
|
| 3227 |
// <cassert> and <cstring> are *not* freestanding headers in C++98. |
| 3228 |
extern void assert (int); |
| 3229 |
namespace std { |
| 3230 |
extern int strcmp (const char *, const char *); |
| 3231 |
} |
| 3232 |
|
| 3233 |
// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
| 3234 |
using std::exception; |
| 3235 |
using std::strcmp; |
| 3236 |
|
| 3237 |
namespace { |
| 3238 |
|
| 3239 |
void test_exception_syntax() |
| 3240 |
{ |
| 3241 |
try { |
| 3242 |
throw "test"; |
| 3243 |
} catch (const char *s) { |
| 3244 |
// Extra parentheses suppress a warning when building autoconf itself, |
| 3245 |
// due to lint rules shared with more typical C programs. |
| 3246 |
assert (!(strcmp) (s, "test")); |
| 3247 |
} |
| 3248 |
} |
| 3249 |
|
| 3250 |
template <typename T> struct test_template |
| 3251 |
{ |
| 3252 |
T const val; |
| 3253 |
explicit test_template(T t) : val(t) {} |
| 3254 |
template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
| 3255 |
}; |
| 3256 |
|
| 3257 |
} // anonymous namespace |
| 3258 |
' |
| 3259 |
|
| 3260 |
# Test code for whether the C++ compiler supports C++98 (body of main) |
| 3261 |
ac_cxx_conftest_cxx98_main=' |
| 3262 |
assert (argc); |
| 3263 |
assert (! argv[0]); |
| 3264 |
{ |
| 3265 |
test_exception_syntax (); |
| 3266 |
test_template<double> tt (2.0); |
| 3267 |
assert (tt.add (4) == 6.0); |
| 3268 |
assert (true && !false); |
| 3269 |
} |
| 3270 |
' |
| 3271 |
|
| 3272 |
# Test code for whether the C++ compiler supports C++11 (global declarations) |
| 3273 |
ac_cxx_conftest_cxx11_globals=' |
| 3274 |
// Does the compiler advertise C++ 2011 conformance? |
| 3275 |
#if !defined __cplusplus || __cplusplus < 201103L |
| 3276 |
# error "Compiler does not advertise C++11 conformance" |
| 3277 |
#endif |
| 3278 |
|
| 3279 |
namespace cxx11test |
| 3280 |
{ |
| 3281 |
constexpr int get_val() { return 20; } |
| 3282 |
|
| 3283 |
struct testinit |
| 3284 |
{ |
| 3285 |
int i; |
| 3286 |
double d; |
| 3287 |
}; |
| 3288 |
|
| 3289 |
class delegate |
| 3290 |
{ |
| 3291 |
public: |
| 3292 |
delegate(int n) : n(n) {} |
| 3293 |
delegate(): delegate(2354) {} |
| 3294 |
|
| 3295 |
virtual int getval() { return this->n; }; |
| 3296 |
protected: |
| 3297 |
int n; |
| 3298 |
}; |
| 3299 |
|
| 3300 |
class overridden : public delegate |
| 3301 |
{ |
| 3302 |
public: |
| 3303 |
overridden(int n): delegate(n) {} |
| 3304 |
virtual int getval() override final { return this->n * 2; } |
| 3305 |
}; |
| 3306 |
|
| 3307 |
class nocopy |
| 3308 |
{ |
| 3309 |
public: |
| 3310 |
nocopy(int i): i(i) {} |
| 3311 |
nocopy() = default; |
| 3312 |
nocopy(const nocopy&) = delete; |
| 3313 |
nocopy & operator=(const nocopy&) = delete; |
| 3314 |
private: |
| 3315 |
int i; |
| 3316 |
}; |
| 3317 |
|
| 3318 |
// for testing lambda expressions |
| 3319 |
template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
| 3320 |
{ |
| 3321 |
return f(v); |
| 3322 |
} |
| 3323 |
|
| 3324 |
// for testing variadic templates and trailing return types |
| 3325 |
template <typename V> auto sum(V first) -> V |
| 3326 |
{ |
| 3327 |
return first; |
| 3328 |
} |
| 3329 |
template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
| 3330 |
{ |
| 3331 |
return first + sum(rest...); |
| 3332 |
} |
| 3333 |
} |
| 3334 |
' |
| 3335 |
|
| 3336 |
# Test code for whether the C++ compiler supports C++11 (body of main) |
| 3337 |
ac_cxx_conftest_cxx11_main=' |
| 3338 |
{ |
| 3339 |
// Test auto and decltype |
| 3340 |
auto a1 = 6538; |
| 3341 |
auto a2 = 48573953.4; |
| 3342 |
auto a3 = "String literal"; |
| 3343 |
|
| 3344 |
int total = 0; |
| 3345 |
for (auto i = a3; *i; ++i) { total += *i; } |
| 3346 |
|
| 3347 |
decltype(a2) a4 = 34895.034; |
| 3348 |
} |
| 3349 |
{ |
| 3350 |
// Test constexpr |
| 3351 |
short sa[cxx11test::get_val()] = { 0 }; |
| 3352 |
} |
| 3353 |
{ |
| 3354 |
// Test initializer lists |
| 3355 |
cxx11test::testinit il = { 4323, 435234.23544 }; |
| 3356 |
} |
| 3357 |
{ |
| 3358 |
// Test range-based for |
| 3359 |
int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
| 3360 |
14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
| 3361 |
for (auto &x : array) { x += 23; } |
| 3362 |
} |
| 3363 |
{ |
| 3364 |
// Test lambda expressions |
| 3365 |
using cxx11test::eval; |
| 3366 |
assert (eval ([](int x) { return x*2; }, 21) == 42); |
| 3367 |
double d = 2.0; |
| 3368 |
assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
| 3369 |
assert (d == 5.0); |
| 3370 |
assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
| 3371 |
assert (d == 5.0); |
| 3372 |
} |
| 3373 |
{ |
| 3374 |
// Test use of variadic templates |
| 3375 |
using cxx11test::sum; |
| 3376 |
auto a = sum(1); |
| 3377 |
auto b = sum(1, 2); |
| 3378 |
auto c = sum(1.0, 2.0, 3.0); |
| 3379 |
} |
| 3380 |
{ |
| 3381 |
// Test constructor delegation |
| 3382 |
cxx11test::delegate d1; |
| 3383 |
cxx11test::delegate d2(); |
| 3384 |
cxx11test::delegate d3(45); |
| 3385 |
} |
| 3386 |
{ |
| 3387 |
// Test override and final |
| 3388 |
cxx11test::overridden o1(55464); |
| 3389 |
} |
| 3390 |
{ |
| 3391 |
// Test nullptr |
| 3392 |
char *c = nullptr; |
| 3393 |
} |
| 3394 |
{ |
| 3395 |
// Test template brackets |
| 3396 |
test_template<::test_template<int>> v(test_template<int>(12)); |
| 3397 |
} |
| 3398 |
{ |
| 3399 |
// Unicode literals |
| 3400 |
char const *utf8 = u8"UTF-8 string \u2500"; |
| 3401 |
char16_t const *utf16 = u"UTF-8 string \u2500"; |
| 3402 |
char32_t const *utf32 = U"UTF-32 string \u2500"; |
| 3403 |
} |
| 3404 |
' |
| 3405 |
|
| 3406 |
# Test code for whether the C compiler supports C++11 (complete). |
| 3407 |
ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
| 3408 |
${ac_cxx_conftest_cxx11_globals} |
| 3409 |
|
| 3410 |
int |
| 3411 |
main (int argc, char **argv) |
| 3412 |
{ |
| 3413 |
int ok = 0; |
| 3414 |
${ac_cxx_conftest_cxx98_main} |
| 3415 |
${ac_cxx_conftest_cxx11_main} |
| 3416 |
return ok; |
| 3417 |
} |
| 3418 |
" |
| 3419 |
|
| 3420 |
# Test code for whether the C compiler supports C++98 (complete). |
| 3421 |
ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
| 3422 |
int |
| 3423 |
main (int argc, char **argv) |
| 3424 |
{ |
| 3425 |
int ok = 0; |
| 3426 |
${ac_cxx_conftest_cxx98_main} |
| 3427 |
return ok; |
| 3428 |
} |
| 3429 |
" |
| 3430 |
|
| 3431 |
as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
| 3432 |
as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
| 3433 |
as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
| 3434 |
as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
| 3435 |
as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
| 3436 |
as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
| 3437 |
as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
| 3438 |
as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
| 3439 |
as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
| 3440 |
as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
| 3441 |
as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
| 3442 |
as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" |
| 3443 |
as_fn_append ac_func_c_list " fork HAVE_FORK" |
| 3444 |
as_fn_append ac_func_c_list " vfork HAVE_VFORK" |
| 3445 |
|
| 3446 |
# Auxiliary files required by this configure script. |
| 3447 |
ac_aux_files="install-sh config.guess config.sub" |
| 3448 |
|
| 3449 |
# Locations in which to look for auxiliary files. |
| 3450 |
ac_aux_dir_candidates="${srcdir}/tool" |
| 3451 |
|
| 3452 |
# Search for a directory containing all of the required auxiliary files, |
| 3453 |
# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
| 3454 |
# If we don't find one directory that contains all the files we need, |
| 3455 |
# we report the set of missing files from the *first* directory in |
| 3456 |
# $ac_aux_dir_candidates and give up. |
| 3457 |
ac_missing_aux_files="" |
| 3458 |
ac_first_candidate=: |
| 3459 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
| 3460 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3461 |
as_found=false |
| 3462 |
for as_dir in $ac_aux_dir_candidates |
| 3463 |
do |
| 3464 |
IFS=$as_save_IFS |
| 3465 |
case $as_dir in #((( |
| 3466 |
'') as_dir=./ ;; |
| 3467 |
*/) ;; |
| 3468 |
*) as_dir=$as_dir/ ;; |
| 3469 |
esac |
| 3470 |
as_found=: |
| 3471 |
|
| 3472 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
| 3473 |
ac_aux_dir_found=yes |
| 3474 |
ac_install_sh= |
| 3475 |
for ac_aux in $ac_aux_files |
| 3476 |
do |
| 3477 |
# As a special case, if "install-sh" is required, that requirement |
| 3478 |
# can be satisfied by any of "install-sh", "install.sh", or "shtool", |
| 3479 |
# and $ac_install_sh is set appropriately for whichever one is found. |
| 3480 |
if test x"$ac_aux" = x"install-sh" |
| 3481 |
then |
| 3482 |
if test -f "${as_dir}install-sh"; then |
| 3483 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
| 3484 |
ac_install_sh="${as_dir}install-sh -c" |
| 3485 |
elif test -f "${as_dir}install.sh"; then |
| 3486 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
| 3487 |
ac_install_sh="${as_dir}install.sh -c" |
| 3488 |
elif test -f "${as_dir}shtool"; then |
| 3489 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
| 3490 |
ac_install_sh="${as_dir}shtool install -c" |
| 3491 |
else |
| 3492 |
ac_aux_dir_found=no |
| 3493 |
if $ac_first_candidate; then |
| 3494 |
ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
| 3495 |
else |
| 3496 |
break |
| 3497 |
fi |
| 3498 |
fi |
| 3499 |
else |
| 3500 |
if test -f "${as_dir}${ac_aux}"; then |
| 3501 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
| 3502 |
else |
| 3503 |
ac_aux_dir_found=no |
| 3504 |
if $ac_first_candidate; then |
| 3505 |
ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
| 3506 |
else |
| 3507 |
break |
| 3508 |
fi |
| 3509 |
fi |
| 3510 |
fi |
| 3511 |
done |
| 3512 |
if test "$ac_aux_dir_found" = yes; then |
| 3513 |
ac_aux_dir="$as_dir" |
| 3514 |
break |
| 3515 |
fi |
| 3516 |
ac_first_candidate=false |
| 3517 |
|
| 3518 |
as_found=false |
| 3519 |
done |
| 3520 |
IFS=$as_save_IFS |
| 3521 |
if $as_found |
| 3522 |
then : |
| 3523 |
|
| 3524 |
else $as_nop |
| 3525 |
as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
| 3526 |
fi |
| 3527 |
|
| 3528 |
|
| 3529 |
# These three variables are undocumented and unsupported, |
| 3530 |
# and are intended to be withdrawn in a future Autoconf release. |
| 3531 |
# They can cause serious problems if a builder's source tree is in a directory |
| 3532 |
# whose full name contains unusual characters. |
| 3533 |
if test -f "${ac_aux_dir}config.guess"; then |
| 3534 |
ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
| 3535 |
fi |
| 3536 |
if test -f "${ac_aux_dir}config.sub"; then |
| 3537 |
ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
| 3538 |
fi |
| 3539 |
if test -f "$ac_aux_dir/configure"; then |
| 3540 |
ac_configure="$SHELL ${ac_aux_dir}configure" |
| 3541 |
fi |
| 3542 |
|
| 3543 |
# Check that the precious variables saved in the cache have kept the same |
| 3544 |
# value. |
| 3545 |
ac_cache_corrupted=false |
| 3546 |
for ac_var in $ac_precious_vars; do |
| 3547 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3548 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 3549 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3550 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 3551 |
case $ac_old_set,$ac_new_set in |
| 3552 |
set,) |
| 3553 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3554 |
printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3555 |
ac_cache_corrupted=: ;; |
| 3556 |
,set) |
| 3557 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3558 |
printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3559 |
ac_cache_corrupted=: ;; |
| 3560 |
,);; |
| 3561 |
*) |
| 3562 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3563 |
# differences in whitespace do not lead to failure. |
| 3564 |
ac_old_val_w=`echo x $ac_old_val` |
| 3565 |
ac_new_val_w=`echo x $ac_new_val` |
| 3566 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3567 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3568 |
printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3569 |
ac_cache_corrupted=: |
| 3570 |
else |
| 3571 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3572 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3573 |
eval $ac_var=\$ac_old_val |
| 3574 |
fi |
| 3575 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3576 |
printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3577 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3578 |
printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3579 |
fi;; |
| 3580 |
esac |
| 3581 |
# Pass precious variables to config.status. |
| 3582 |
if test "$ac_new_set" = set; then |
| 3583 |
case $ac_new_val in |
| 3584 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3585 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 3586 |
esac |
| 3587 |
case " $ac_configure_args " in |
| 3588 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3589 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3590 |
esac |
| 3591 |
fi |
| 3592 |
done |
| 3593 |
if $ac_cache_corrupted; then |
| 3594 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3595 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3596 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3597 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3598 |
as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
| 3599 |
and start over" "$LINENO" 5 |
| 3600 |
fi |
| 3601 |
## -------------------- ## |
| 3602 |
## Main body of script. ## |
| 3603 |
## -------------------- ## |
| 3604 |
|
| 3605 |
ac_ext=c |
| 3606 |
ac_cpp='$CPP $CPPFLAGS' |
| 3607 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3608 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3609 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3610 |
|
| 3611 |
|
| 3612 |
{ |
| 3613 |
|
| 3614 |
|
| 3615 |
|
| 3616 |
|
| 3617 |
tooldir="$srcdir/tool" |
| 3618 |
|
| 3619 |
|
| 3620 |
|
| 3621 |
|
| 3622 |
|
| 3623 |
|
| 3624 |
|
| 3625 |
|
| 3626 |
msg_checking= msg_result_yes= msg_result_no= msg_result_other= msg_reset= |
| 3627 |
case "x${CONFIGURE_TTY}" in #( |
| 3628 |
xyes|xalways) : |
| 3629 |
configure_tty=1 ;; #( |
| 3630 |
xno|xnever) : |
| 3631 |
configure_tty=0 ;; #( |
| 3632 |
*) : |
| 3633 |
if test -t 1 |
| 3634 |
then : |
| 3635 |
configure_tty=1 |
| 3636 |
else $as_nop |
| 3637 |
configure_tty=0 |
| 3638 |
fi ;; |
| 3639 |
esac |
| 3640 |
if test $configure_tty -eq 1 |
| 3641 |
then : |
| 3642 |
|
| 3643 |
msg_begin="`tput smso 2>/dev/null`" |
| 3644 |
if test -z "$msg_begin" |
| 3645 |
then : |
| 3646 |
msg_begin="`tput so 2>/dev/null`" |
| 3647 |
fi |
| 3648 |
case "$msg_begin" in #( |
| 3649 |
'['*m) : |
| 3650 |
msg_begin="`echo "$msg_begin" | sed 's/[0-9]*m$//'`" |
| 3651 |
msg_checking="${msg_begin}33m" |
| 3652 |
if test ${TEST_COLORS:+set} |
| 3653 |
then : |
| 3654 |
|
| 3655 |
msg_result_yes=`expr ":$TEST_COLORS:" : ".*:pass=\([^:]*\):"` |
| 3656 |
msg_result_no=`expr ":$TEST_COLORS:" : ".*:fail=\([^:]*\):"` |
| 3657 |
msg_result_other=`expr ":$TEST_COLORS:" : ".*:skip=\([^:]*\):"` |
| 3658 |
|
| 3659 |
fi |
| 3660 |
msg_result_yes="${msg_begin}${msg_result_yes:-32;1}m" |
| 3661 |
msg_result_no="${msg_begin}${msg_result_no:-31;1}m" |
| 3662 |
msg_result_other="${msg_begin}${msg_result_other:-33;1}m" |
| 3663 |
msg_reset="${msg_begin}m" |
| 3664 |
;; #( |
| 3665 |
*) : |
| 3666 |
;; |
| 3667 |
esac |
| 3668 |
{ msg_begin=; unset msg_begin;} |
| 3669 |
|
| 3670 |
fi |
| 3671 |
|
| 3672 |
|
| 3673 |
if test "x${GITHUB_ACTIONS}" = xtrue |
| 3674 |
then : |
| 3675 |
begin_group() { printf "%s\n" "::group::[93m$1[m";} |
| 3676 |
end_group() { printf "%s\n" "::endgroup::";} |
| 3677 |
|
| 3678 |
else $as_nop |
| 3679 |
begin_group() { :;} |
| 3680 |
end_group() { :;} |
| 3681 |
|
| 3682 |
fi |
| 3683 |
|
| 3684 |
|
| 3685 |
begin_group "environment section" && { |
| 3686 |
HAVE_BASERUBY=yes |
| 3687 |
BASERUBY_VERSION= |
| 3688 |
|
| 3689 |
# Check whether --with-baseruby was given. |
| 3690 |
if test ${with_baseruby+y} |
| 3691 |
then : |
| 3692 |
withval=$with_baseruby; case "$withval" in #( |
| 3693 |
*ruby*) : |
| 3694 |
BASERUBY=$withval ;; #( |
| 3695 |
no) : |
| 3696 |
HAVE_BASERUBY=no ;; #( |
| 3697 |
*) : |
| 3698 |
as_fn_error $? "need ruby" "$LINENO" 5 ;; |
| 3699 |
esac |
| 3700 |
|
| 3701 |
else $as_nop |
| 3702 |
|
| 3703 |
# Extract the first word of "ruby", so it can be a program name with args. |
| 3704 |
set dummy ruby; ac_word=$2 |
| 3705 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3706 |
printf %s "checking for $ac_word... " >&6; } |
| 3707 |
if test ${ac_cv_path_BASERUBY+y} |
| 3708 |
then : |
| 3709 |
printf %s "(cached) " >&6 |
| 3710 |
else $as_nop |
| 3711 |
case $BASERUBY in |
| 3712 |
[\\/]* | ?:[\\/]*) |
| 3713 |
ac_cv_path_BASERUBY="$BASERUBY" # Let the user override the test with a path. |
| 3714 |
;; |
| 3715 |
*) |
| 3716 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3717 |
for as_dir in $PATH |
| 3718 |
do |
| 3719 |
IFS=$as_save_IFS |
| 3720 |
case $as_dir in #((( |
| 3721 |
'') as_dir=./ ;; |
| 3722 |
*/) ;; |
| 3723 |
*) as_dir=$as_dir/ ;; |
| 3724 |
esac |
| 3725 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 3726 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 3727 |
ac_cv_path_BASERUBY="$as_dir$ac_word$ac_exec_ext" |
| 3728 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 3729 |
break 2 |
| 3730 |
fi |
| 3731 |
done |
| 3732 |
done |
| 3733 |
IFS=$as_save_IFS |
| 3734 |
|
| 3735 |
test -z "$ac_cv_path_BASERUBY" && ac_cv_path_BASERUBY="false" |
| 3736 |
;; |
| 3737 |
esac |
| 3738 |
fi |
| 3739 |
BASERUBY=$ac_cv_path_BASERUBY |
| 3740 |
if test -n "$BASERUBY"; then |
| 3741 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BASERUBY" >&5 |
| 3742 |
colorize_result "$BASERUBY" ; } |
| 3743 |
else |
| 3744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3745 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 3746 |
fi |
| 3747 |
|
| 3748 |
|
| 3749 |
|
| 3750 |
fi |
| 3751 |
|
| 3752 |
# BASERUBY must be >= 2.5.0. Note that `"2.5.0" > "2.5"` is true. |
| 3753 |
if test "$HAVE_BASERUBY" != no -a "`RUBYOPT=- $BASERUBY --disable=gems -e 'print 42 if RUBY_VERSION > "2.5"' 2>/dev/null`" = 42 |
| 3754 |
then : |
| 3755 |
|
| 3756 |
case "$build_os" in #( |
| 3757 |
mingw*) : |
| 3758 |
|
| 3759 |
# Can MSys shell run a command with a drive letter? |
| 3760 |
RUBYOPT=- `cygpath -ma "$BASERUBY"` --disable=gems -e exit 2>/dev/null || HAVE_BASERUBY=no |
| 3761 |
;; #( |
| 3762 |
*) : |
| 3763 |
;; |
| 3764 |
esac |
| 3765 |
# RUBY_APPEND_OPTION(BASERUBY) |
| 3766 |
case " ${BASERUBY-} " in #( |
| 3767 |
*" "--disable=gems" "*) : |
| 3768 |
;; #( |
| 3769 |
' ') : |
| 3770 |
BASERUBY=""--disable=gems"" ;; #( |
| 3771 |
*) : |
| 3772 |
BASERUBY="$BASERUBY "--disable=gems"" ;; |
| 3773 |
esac |
| 3774 |
BASERUBY_VERSION=`$BASERUBY -v` |
| 3775 |
$BASERUBY -C "$srcdir" tool/downloader.rb -d tool -e gnu config.guess config.sub >&6 |
| 3776 |
|
| 3777 |
else $as_nop |
| 3778 |
|
| 3779 |
HAVE_BASERUBY=no |
| 3780 |
|
| 3781 |
fi |
| 3782 |
if test "$HAVE_BASERUBY" = no |
| 3783 |
then : |
| 3784 |
|
| 3785 |
if test "$cross_compiling" = yes |
| 3786 |
then : |
| 3787 |
as_fn_error $? "executable host ruby is required for cross-compiling" "$LINENO" 5 |
| 3788 |
fi |
| 3789 |
BASERUBY=$srcdir/tool/missing-baseruby.bat |
| 3790 |
|
| 3791 |
fi |
| 3792 |
|
| 3793 |
|
| 3794 |
|
| 3795 |
: ${GIT=git} |
| 3796 |
HAVE_GIT=yes |
| 3797 |
|
| 3798 |
# Check whether --with-git was given. |
| 3799 |
if test ${with_git+y} |
| 3800 |
then : |
| 3801 |
withval=$with_git; case $withval in #( |
| 3802 |
no) : |
| 3803 |
GIT=never-use HAVE_GIT=no ;; #( |
| 3804 |
yes) : |
| 3805 |
;; #( |
| 3806 |
*) : |
| 3807 |
GIT=$withval ;; |
| 3808 |
esac |
| 3809 |
fi |
| 3810 |
|
| 3811 |
if test x"$HAVE_GIT" = xyes |
| 3812 |
then : |
| 3813 |
command -v "$GIT" > /dev/null || HAVE_GIT=no |
| 3814 |
fi |
| 3815 |
|
| 3816 |
|
| 3817 |
|
| 3818 |
eval `sed -n -e 's/^#define RUBY_[A-Z_]*VERSION_\([A-Z][A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)$/\1=\2/p' \ |
| 3819 |
-e 's/^#define \(RUBY_ABI_VERSION\) \([0-9][0-9]*\).*/\1=\2/p' \ |
| 3820 |
-e 's/^#define \(RUBY_PATCHLEVEL\) \(.*\)/\1=\2/p' \ |
| 3821 |
$srcdir/include/ruby/internal/abi.h \ |
| 3822 |
$srcdir/include/ruby/version.h $srcdir/version.h` |
| 3823 |
for v in MAJOR MINOR TEENY; do |
| 3824 |
if eval "test \"\$$v\" = ''" |
| 3825 |
then : |
| 3826 |
|
| 3827 |
as_fn_error $? "could not determine $v number from version.h" "$LINENO" 5 |
| 3828 |
|
| 3829 |
fi |
| 3830 |
done |
| 3831 |
|
| 3832 |
|
| 3833 |
|
| 3834 |
RUBY_API_VERSION='$(MAJOR).$(MINOR)' |
| 3835 |
|
| 3836 |
RUBY_PROGRAM_VERSION='$(MAJOR).$(MINOR).$(TEENY)' |
| 3837 |
|
| 3838 |
case $RUBY_PATCHLEVEL in #( |
| 3839 |
-*) : |
| 3840 |
|
| 3841 |
printf "%s\n" "#define RUBY_ABI_VERSION ${RUBY_ABI_VERSION}" >>confdefs.h |
| 3842 |
|
| 3843 |
;; #( |
| 3844 |
*) : |
| 3845 |
RUBY_ABI_VERSION= ;; |
| 3846 |
esac |
| 3847 |
|
| 3848 |
if test "$program_prefix" = NONE |
| 3849 |
then : |
| 3850 |
|
| 3851 |
program_prefix= |
| 3852 |
|
| 3853 |
fi |
| 3854 |
if test "$prefix" -ef . |
| 3855 |
then : |
| 3856 |
|
| 3857 |
as_fn_error $? "--prefix cannot be the current working directory." "$LINENO" 5 |
| 3858 |
|
| 3859 |
fi |
| 3860 |
RUBY_BASE_NAME=`echo ruby | sed "$program_transform_name"` |
| 3861 |
RUBYW_BASE_NAME=`echo rubyw | sed "$program_transform_name"` |
| 3862 |
|
| 3863 |
|
| 3864 |
RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}' |
| 3865 |
|
| 3866 |
|
| 3867 |
|
| 3868 |
|
| 3869 |
|
| 3870 |
# Make sure we can run config.sub. |
| 3871 |
$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
| 3872 |
as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
| 3873 |
|
| 3874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 3875 |
printf %s "checking build system type... " >&6; } |
| 3876 |
if test ${ac_cv_build+y} |
| 3877 |
then : |
| 3878 |
printf %s "(cached) " >&6 |
| 3879 |
else $as_nop |
| 3880 |
ac_build_alias=$build_alias |
| 3881 |
test "x$ac_build_alias" = x && |
| 3882 |
ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
| 3883 |
test "x$ac_build_alias" = x && |
| 3884 |
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
| 3885 |
ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
| 3886 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
| 3887 |
|
| 3888 |
fi |
| 3889 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 3890 |
colorize_result "$ac_cv_build" ; } |
| 3891 |
case $ac_cv_build in |
| 3892 |
*-*-*) ;; |
| 3893 |
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
| 3894 |
esac |
| 3895 |
build=$ac_cv_build |
| 3896 |
ac_save_IFS=$IFS; IFS='-' |
| 3897 |
set x $ac_cv_build |
| 3898 |
shift |
| 3899 |
build_cpu=$1 |
| 3900 |
build_vendor=$2 |
| 3901 |
shift; shift |
| 3902 |
# Remember, the first character of IFS is used to create $*, |
| 3903 |
# except with old shells: |
| 3904 |
build_os=$* |
| 3905 |
IFS=$ac_save_IFS |
| 3906 |
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 3907 |
|
| 3908 |
|
| 3909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 3910 |
printf %s "checking host system type... " >&6; } |
| 3911 |
if test ${ac_cv_host+y} |
| 3912 |
then : |
| 3913 |
printf %s "(cached) " >&6 |
| 3914 |
else $as_nop |
| 3915 |
if test "x$host_alias" = x; then |
| 3916 |
ac_cv_host=$ac_cv_build |
| 3917 |
else |
| 3918 |
ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
| 3919 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
| 3920 |
fi |
| 3921 |
|
| 3922 |
fi |
| 3923 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 3924 |
colorize_result "$ac_cv_host" ; } |
| 3925 |
case $ac_cv_host in |
| 3926 |
*-*-*) ;; |
| 3927 |
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
| 3928 |
esac |
| 3929 |
host=$ac_cv_host |
| 3930 |
ac_save_IFS=$IFS; IFS='-' |
| 3931 |
set x $ac_cv_host |
| 3932 |
shift |
| 3933 |
host_cpu=$1 |
| 3934 |
host_vendor=$2 |
| 3935 |
shift; shift |
| 3936 |
# Remember, the first character of IFS is used to create $*, |
| 3937 |
# except with old shells: |
| 3938 |
host_os=$* |
| 3939 |
IFS=$ac_save_IFS |
| 3940 |
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 3941 |
|
| 3942 |
|
| 3943 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
| 3944 |
printf %s "checking target system type... " >&6; } |
| 3945 |
if test ${ac_cv_target+y} |
| 3946 |
then : |
| 3947 |
printf %s "(cached) " >&6 |
| 3948 |
else $as_nop |
| 3949 |
if test "x$target_alias" = x; then |
| 3950 |
ac_cv_target=$ac_cv_host |
| 3951 |
else |
| 3952 |
ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || |
| 3953 |
as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 |
| 3954 |
fi |
| 3955 |
|
| 3956 |
fi |
| 3957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
| 3958 |
colorize_result "$ac_cv_target" ; } |
| 3959 |
case $ac_cv_target in |
| 3960 |
*-*-*) ;; |
| 3961 |
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
| 3962 |
esac |
| 3963 |
target=$ac_cv_target |
| 3964 |
ac_save_IFS=$IFS; IFS='-' |
| 3965 |
set x $ac_cv_target |
| 3966 |
shift |
| 3967 |
target_cpu=$1 |
| 3968 |
target_vendor=$2 |
| 3969 |
shift; shift |
| 3970 |
# Remember, the first character of IFS is used to create $*, |
| 3971 |
# except with old shells: |
| 3972 |
target_os=$* |
| 3973 |
IFS=$ac_save_IFS |
| 3974 |
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
| 3975 |
|
| 3976 |
|
| 3977 |
# The aliases save the names the user supplied, while $host etc. |
| 3978 |
# will get canonicalized. |
| 3979 |
test -n "$target_alias" && |
| 3980 |
test "$program_prefix$program_suffix$program_transform_name" = \ |
| 3981 |
NONENONEs,x,x, && |
| 3982 |
program_prefix=${target_alias}- |
| 3983 |
case "$target_cpu-$target_os" in #( |
| 3984 |
aarch64-darwin*) : |
| 3985 |
|
| 3986 |
target_cpu=arm64 |
| 3987 |
case "$target_vendor" in #( |
| 3988 |
unknown) : |
| 3989 |
|
| 3990 |
target_vendor=apple |
| 3991 |
target=${target%%-unknown-*}-apple-${target#*-unknown-} |
| 3992 |
;; #( |
| 3993 |
*) : |
| 3994 |
;; |
| 3995 |
esac |
| 3996 |
target="arm64-${target#aarch64-}" |
| 3997 |
if test -n "$target_alias" |
| 3998 |
then : |
| 3999 |
target_alias="arm64-${target_alias#aarch64-}" |
| 4000 |
fi |
| 4001 |
;; #( |
| 4002 |
*) : |
| 4003 |
;; |
| 4004 |
esac |
| 4005 |
|
| 4006 |
test "$program_prefix" != NONE && |
| 4007 |
program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 4008 |
# Use a double $ so make ignores it. |
| 4009 |
test "$program_suffix" != NONE && |
| 4010 |
program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 4011 |
# Double any \ or $. |
| 4012 |
# By default was `s,x,x', remove it if useless. |
| 4013 |
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 4014 |
program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` |
| 4015 |
|
| 4016 |
|
| 4017 |
|
| 4018 |
# Check whether --with-gcc was given. |
| 4019 |
if test ${with_gcc+y} |
| 4020 |
then : |
| 4021 |
withval=$with_gcc; |
| 4022 |
case $withval in #( |
| 4023 |
no) : |
| 4024 |
: ${CC=cc} ;; #( |
| 4025 |
yes) : |
| 4026 |
: ${CC=gcc} ;; #( |
| 4027 |
*) : |
| 4028 |
CC=$withval ;; |
| 4029 |
esac |
| 4030 |
fi |
| 4031 |
|
| 4032 |
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" |
| 4033 |
then : |
| 4034 |
|
| 4035 |
as_fn_error $? "cached CC is different -- throw away $cache_file |
| 4036 |
(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 |
| 4037 |
|
| 4038 |
fi |
| 4039 |
|
| 4040 |
case "$target_os" in #( |
| 4041 |
wasi*) : |
| 4042 |
|
| 4043 |
if test -n "$ac_tool_prefix"; then |
| 4044 |
# Extract the first word of "${ac_tool_prefix}wasm-opt", so it can be a program name with args. |
| 4045 |
set dummy ${ac_tool_prefix}wasm-opt; ac_word=$2 |
| 4046 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4047 |
printf %s "checking for $ac_word... " >&6; } |
| 4048 |
if test ${ac_cv_prog_WASMOPT+y} |
| 4049 |
then : |
| 4050 |
printf %s "(cached) " >&6 |
| 4051 |
else $as_nop |
| 4052 |
if test -n "$WASMOPT"; then |
| 4053 |
ac_cv_prog_WASMOPT="$WASMOPT" # Let the user override the test. |
| 4054 |
else |
| 4055 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4056 |
for as_dir in $PATH |
| 4057 |
do |
| 4058 |
IFS=$as_save_IFS |
| 4059 |
case $as_dir in #((( |
| 4060 |
'') as_dir=./ ;; |
| 4061 |
*/) ;; |
| 4062 |
*) as_dir=$as_dir/ ;; |
| 4063 |
esac |
| 4064 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4065 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4066 |
ac_cv_prog_WASMOPT="${ac_tool_prefix}wasm-opt" |
| 4067 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4068 |
break 2 |
| 4069 |
fi |
| 4070 |
done |
| 4071 |
done |
| 4072 |
IFS=$as_save_IFS |
| 4073 |
|
| 4074 |
fi |
| 4075 |
fi |
| 4076 |
WASMOPT=$ac_cv_prog_WASMOPT |
| 4077 |
if test -n "$WASMOPT"; then |
| 4078 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WASMOPT" >&5 |
| 4079 |
colorize_result "$WASMOPT" ; } |
| 4080 |
else |
| 4081 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4082 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4083 |
fi |
| 4084 |
|
| 4085 |
|
| 4086 |
fi |
| 4087 |
if test -z "$ac_cv_prog_WASMOPT"; then |
| 4088 |
ac_ct_WASMOPT=$WASMOPT |
| 4089 |
# Extract the first word of "wasm-opt", so it can be a program name with args. |
| 4090 |
set dummy wasm-opt; ac_word=$2 |
| 4091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4092 |
printf %s "checking for $ac_word... " >&6; } |
| 4093 |
if test ${ac_cv_prog_ac_ct_WASMOPT+y} |
| 4094 |
then : |
| 4095 |
printf %s "(cached) " >&6 |
| 4096 |
else $as_nop |
| 4097 |
if test -n "$ac_ct_WASMOPT"; then |
| 4098 |
ac_cv_prog_ac_ct_WASMOPT="$ac_ct_WASMOPT" # Let the user override the test. |
| 4099 |
else |
| 4100 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4101 |
for as_dir in $PATH |
| 4102 |
do |
| 4103 |
IFS=$as_save_IFS |
| 4104 |
case $as_dir in #((( |
| 4105 |
'') as_dir=./ ;; |
| 4106 |
*/) ;; |
| 4107 |
*) as_dir=$as_dir/ ;; |
| 4108 |
esac |
| 4109 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4110 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4111 |
ac_cv_prog_ac_ct_WASMOPT="wasm-opt" |
| 4112 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4113 |
break 2 |
| 4114 |
fi |
| 4115 |
done |
| 4116 |
done |
| 4117 |
IFS=$as_save_IFS |
| 4118 |
|
| 4119 |
fi |
| 4120 |
fi |
| 4121 |
ac_ct_WASMOPT=$ac_cv_prog_ac_ct_WASMOPT |
| 4122 |
if test -n "$ac_ct_WASMOPT"; then |
| 4123 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WASMOPT" >&5 |
| 4124 |
colorize_result "$ac_ct_WASMOPT" ; } |
| 4125 |
else |
| 4126 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4127 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4128 |
fi |
| 4129 |
|
| 4130 |
if test "x$ac_ct_WASMOPT" = x; then |
| 4131 |
WASMOPT="" |
| 4132 |
else |
| 4133 |
case $cross_compiling:$ac_tool_warned in |
| 4134 |
yes:) |
| 4135 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4136 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4137 |
ac_tool_warned=yes ;; |
| 4138 |
esac |
| 4139 |
WASMOPT=$ac_ct_WASMOPT |
| 4140 |
fi |
| 4141 |
else |
| 4142 |
WASMOPT="$ac_cv_prog_WASMOPT" |
| 4143 |
fi |
| 4144 |
|
| 4145 |
if test x"${WASMOPT}" = x |
| 4146 |
then : |
| 4147 |
|
| 4148 |
as_fn_error $? "wasm-opt is required" "$LINENO" 5 |
| 4149 |
|
| 4150 |
fi |
| 4151 |
|
| 4152 |
: ${wasmoptflags=-O3} |
| 4153 |
|
| 4154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking wheather \$WASI_SDK_PATH is set" >&5 |
| 4155 |
printf %s "checking wheather \$WASI_SDK_PATH is set... " >&6; } |
| 4156 |
if test x"${WASI_SDK_PATH}" = x |
| 4157 |
then : |
| 4158 |
|
| 4159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4160 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4161 |
as_fn_error $? "WASI_SDK_PATH environment variable is required" "$LINENO" 5 |
| 4162 |
|
| 4163 |
else $as_nop |
| 4164 |
|
| 4165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4166 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 4167 |
CC="${CC:-${WASI_SDK_PATH}/bin/clang}" |
| 4168 |
LD="${LD:-${WASI_SDK_PATH}/bin/clang}" |
| 4169 |
AR="${AR:-${WASI_SDK_PATH}/bin/llvm-ar}" |
| 4170 |
RANLIB="${RANLIB:-${WASI_SDK_PATH}/bin/llvm-ranlib}" |
| 4171 |
|
| 4172 |
fi |
| 4173 |
;; #( |
| 4174 |
*) : |
| 4175 |
;; |
| 4176 |
esac |
| 4177 |
|
| 4178 |
|
| 4179 |
case "${build_os}" in #( |
| 4180 |
linux*|cygwin*|msys*) : |
| 4181 |
|
| 4182 |
# Naruse prefers GCC on Linux |
| 4183 |
if test -n "$ac_tool_prefix"; then |
| 4184 |
for ac_prog in gcc clang cc |
| 4185 |
do |
| 4186 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4187 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4189 |
printf %s "checking for $ac_word... " >&6; } |
| 4190 |
if test ${ac_cv_prog_CC+y} |
| 4191 |
then : |
| 4192 |
printf %s "(cached) " >&6 |
| 4193 |
else $as_nop |
| 4194 |
if test -n "$CC"; then |
| 4195 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4196 |
else |
| 4197 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4198 |
for as_dir in $PATH |
| 4199 |
do |
| 4200 |
IFS=$as_save_IFS |
| 4201 |
case $as_dir in #((( |
| 4202 |
'') as_dir=./ ;; |
| 4203 |
*/) ;; |
| 4204 |
*) as_dir=$as_dir/ ;; |
| 4205 |
esac |
| 4206 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4207 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4208 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4209 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4210 |
break 2 |
| 4211 |
fi |
| 4212 |
done |
| 4213 |
done |
| 4214 |
IFS=$as_save_IFS |
| 4215 |
|
| 4216 |
fi |
| 4217 |
fi |
| 4218 |
CC=$ac_cv_prog_CC |
| 4219 |
if test -n "$CC"; then |
| 4220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4221 |
colorize_result "$CC" ; } |
| 4222 |
else |
| 4223 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4224 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4225 |
fi |
| 4226 |
|
| 4227 |
|
| 4228 |
test -n "$CC" && break |
| 4229 |
done |
| 4230 |
fi |
| 4231 |
if test -z "$CC"; then |
| 4232 |
ac_ct_CC=$CC |
| 4233 |
for ac_prog in gcc clang cc |
| 4234 |
do |
| 4235 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4236 |
set dummy $ac_prog; ac_word=$2 |
| 4237 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4238 |
printf %s "checking for $ac_word... " >&6; } |
| 4239 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4240 |
then : |
| 4241 |
printf %s "(cached) " >&6 |
| 4242 |
else $as_nop |
| 4243 |
if test -n "$ac_ct_CC"; then |
| 4244 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4245 |
else |
| 4246 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4247 |
for as_dir in $PATH |
| 4248 |
do |
| 4249 |
IFS=$as_save_IFS |
| 4250 |
case $as_dir in #((( |
| 4251 |
'') as_dir=./ ;; |
| 4252 |
*/) ;; |
| 4253 |
*) as_dir=$as_dir/ ;; |
| 4254 |
esac |
| 4255 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4256 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4257 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4258 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4259 |
break 2 |
| 4260 |
fi |
| 4261 |
done |
| 4262 |
done |
| 4263 |
IFS=$as_save_IFS |
| 4264 |
|
| 4265 |
fi |
| 4266 |
fi |
| 4267 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4268 |
if test -n "$ac_ct_CC"; then |
| 4269 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4270 |
colorize_result "$ac_ct_CC" ; } |
| 4271 |
else |
| 4272 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4273 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4274 |
fi |
| 4275 |
|
| 4276 |
|
| 4277 |
test -n "$ac_ct_CC" && break |
| 4278 |
done |
| 4279 |
|
| 4280 |
if test "x$ac_ct_CC" = x; then |
| 4281 |
CC="" |
| 4282 |
else |
| 4283 |
case $cross_compiling:$ac_tool_warned in |
| 4284 |
yes:) |
| 4285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4286 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4287 |
ac_tool_warned=yes ;; |
| 4288 |
esac |
| 4289 |
CC=$ac_ct_CC |
| 4290 |
fi |
| 4291 |
fi |
| 4292 |
|
| 4293 |
;; #( |
| 4294 |
solaris*) : |
| 4295 |
|
| 4296 |
# Clang on Solaris is largely untested. |
| 4297 |
# https://bugs.ruby-lang.org/issues/17949 |
| 4298 |
if test -n "$ac_tool_prefix"; then |
| 4299 |
for ac_prog in cc gcc |
| 4300 |
do |
| 4301 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4302 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4304 |
printf %s "checking for $ac_word... " >&6; } |
| 4305 |
if test ${ac_cv_prog_CC+y} |
| 4306 |
then : |
| 4307 |
printf %s "(cached) " >&6 |
| 4308 |
else $as_nop |
| 4309 |
if test -n "$CC"; then |
| 4310 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4311 |
else |
| 4312 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4313 |
for as_dir in $PATH |
| 4314 |
do |
| 4315 |
IFS=$as_save_IFS |
| 4316 |
case $as_dir in #((( |
| 4317 |
'') as_dir=./ ;; |
| 4318 |
*/) ;; |
| 4319 |
*) as_dir=$as_dir/ ;; |
| 4320 |
esac |
| 4321 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4322 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4323 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4324 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4325 |
break 2 |
| 4326 |
fi |
| 4327 |
done |
| 4328 |
done |
| 4329 |
IFS=$as_save_IFS |
| 4330 |
|
| 4331 |
fi |
| 4332 |
fi |
| 4333 |
CC=$ac_cv_prog_CC |
| 4334 |
if test -n "$CC"; then |
| 4335 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4336 |
colorize_result "$CC" ; } |
| 4337 |
else |
| 4338 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4339 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4340 |
fi |
| 4341 |
|
| 4342 |
|
| 4343 |
test -n "$CC" && break |
| 4344 |
done |
| 4345 |
fi |
| 4346 |
if test -z "$CC"; then |
| 4347 |
ac_ct_CC=$CC |
| 4348 |
for ac_prog in cc gcc |
| 4349 |
do |
| 4350 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4351 |
set dummy $ac_prog; ac_word=$2 |
| 4352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4353 |
printf %s "checking for $ac_word... " >&6; } |
| 4354 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4355 |
then : |
| 4356 |
printf %s "(cached) " >&6 |
| 4357 |
else $as_nop |
| 4358 |
if test -n "$ac_ct_CC"; then |
| 4359 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4360 |
else |
| 4361 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4362 |
for as_dir in $PATH |
| 4363 |
do |
| 4364 |
IFS=$as_save_IFS |
| 4365 |
case $as_dir in #((( |
| 4366 |
'') as_dir=./ ;; |
| 4367 |
*/) ;; |
| 4368 |
*) as_dir=$as_dir/ ;; |
| 4369 |
esac |
| 4370 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4371 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4372 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4373 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4374 |
break 2 |
| 4375 |
fi |
| 4376 |
done |
| 4377 |
done |
| 4378 |
IFS=$as_save_IFS |
| 4379 |
|
| 4380 |
fi |
| 4381 |
fi |
| 4382 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4383 |
if test -n "$ac_ct_CC"; then |
| 4384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4385 |
colorize_result "$ac_ct_CC" ; } |
| 4386 |
else |
| 4387 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4388 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4389 |
fi |
| 4390 |
|
| 4391 |
|
| 4392 |
test -n "$ac_ct_CC" && break |
| 4393 |
done |
| 4394 |
|
| 4395 |
if test "x$ac_ct_CC" = x; then |
| 4396 |
CC="" |
| 4397 |
else |
| 4398 |
case $cross_compiling:$ac_tool_warned in |
| 4399 |
yes:) |
| 4400 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4401 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4402 |
ac_tool_warned=yes ;; |
| 4403 |
esac |
| 4404 |
CC=$ac_ct_CC |
| 4405 |
fi |
| 4406 |
fi |
| 4407 |
|
| 4408 |
;; #( |
| 4409 |
*) : |
| 4410 |
|
| 4411 |
# OpenBSD wants to prefer cc over gcc. |
| 4412 |
# See https://github.com/ruby/ruby/pull/2443 |
| 4413 |
if test -n "$ac_tool_prefix"; then |
| 4414 |
for ac_prog in cl.exe clang cc gcc c99 /usr/ucb/cc |
| 4415 |
do |
| 4416 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4417 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4418 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4419 |
printf %s "checking for $ac_word... " >&6; } |
| 4420 |
if test ${ac_cv_prog_CC+y} |
| 4421 |
then : |
| 4422 |
printf %s "(cached) " >&6 |
| 4423 |
else $as_nop |
| 4424 |
if test -n "$CC"; then |
| 4425 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4426 |
else |
| 4427 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4428 |
for as_dir in $PATH |
| 4429 |
do |
| 4430 |
IFS=$as_save_IFS |
| 4431 |
case $as_dir in #((( |
| 4432 |
'') as_dir=./ ;; |
| 4433 |
*/) ;; |
| 4434 |
*) as_dir=$as_dir/ ;; |
| 4435 |
esac |
| 4436 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4437 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4438 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4439 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4440 |
break 2 |
| 4441 |
fi |
| 4442 |
done |
| 4443 |
done |
| 4444 |
IFS=$as_save_IFS |
| 4445 |
|
| 4446 |
fi |
| 4447 |
fi |
| 4448 |
CC=$ac_cv_prog_CC |
| 4449 |
if test -n "$CC"; then |
| 4450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4451 |
colorize_result "$CC" ; } |
| 4452 |
else |
| 4453 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4454 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4455 |
fi |
| 4456 |
|
| 4457 |
|
| 4458 |
test -n "$CC" && break |
| 4459 |
done |
| 4460 |
fi |
| 4461 |
if test -z "$CC"; then |
| 4462 |
ac_ct_CC=$CC |
| 4463 |
for ac_prog in cl.exe clang cc gcc c99 /usr/ucb/cc |
| 4464 |
do |
| 4465 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4466 |
set dummy $ac_prog; ac_word=$2 |
| 4467 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4468 |
printf %s "checking for $ac_word... " >&6; } |
| 4469 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 4470 |
then : |
| 4471 |
printf %s "(cached) " >&6 |
| 4472 |
else $as_nop |
| 4473 |
if test -n "$ac_ct_CC"; then |
| 4474 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4475 |
else |
| 4476 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4477 |
for as_dir in $PATH |
| 4478 |
do |
| 4479 |
IFS=$as_save_IFS |
| 4480 |
case $as_dir in #((( |
| 4481 |
'') as_dir=./ ;; |
| 4482 |
*/) ;; |
| 4483 |
*) as_dir=$as_dir/ ;; |
| 4484 |
esac |
| 4485 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4486 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4487 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4488 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4489 |
break 2 |
| 4490 |
fi |
| 4491 |
done |
| 4492 |
done |
| 4493 |
IFS=$as_save_IFS |
| 4494 |
|
| 4495 |
fi |
| 4496 |
fi |
| 4497 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4498 |
if test -n "$ac_ct_CC"; then |
| 4499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4500 |
colorize_result "$ac_ct_CC" ; } |
| 4501 |
else |
| 4502 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4503 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4504 |
fi |
| 4505 |
|
| 4506 |
|
| 4507 |
test -n "$ac_ct_CC" && break |
| 4508 |
done |
| 4509 |
|
| 4510 |
if test "x$ac_ct_CC" = x; then |
| 4511 |
CC="" |
| 4512 |
else |
| 4513 |
case $cross_compiling:$ac_tool_warned in |
| 4514 |
yes:) |
| 4515 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4516 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4517 |
ac_tool_warned=yes ;; |
| 4518 |
esac |
| 4519 |
CC=$ac_ct_CC |
| 4520 |
fi |
| 4521 |
fi |
| 4522 |
|
| 4523 |
;; |
| 4524 |
esac |
| 4525 |
|
| 4526 |
|
| 4527 |
|
| 4528 |
|
| 4529 |
|
| 4530 |
|
| 4531 |
|
| 4532 |
|
| 4533 |
|
| 4534 |
|
| 4535 |
|
| 4536 |
|
| 4537 |
# We don't want to bother things like `ccache gcc`, `clang -shared-libgcc`, ... |
| 4538 |
set rb_dummy ${CC} |
| 4539 |
rb_CC=$2 |
| 4540 |
|
| 4541 |
case "/${rb_CC} " in #( |
| 4542 |
*[\ /]"cc "*) : |
| 4543 |
|
| 4544 |
# Don't try g++/clang++ when CC=cc |
| 4545 |
for ac_prog in cl.exe CC c++ |
| 4546 |
do |
| 4547 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4548 |
set dummy $ac_prog; ac_word=$2 |
| 4549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4550 |
printf %s "checking for $ac_word... " >&6; } |
| 4551 |
if test ${ac_cv_prog_CXX+y} |
| 4552 |
then : |
| 4553 |
printf %s "(cached) " >&6 |
| 4554 |
else $as_nop |
| 4555 |
if test -n "$CXX"; then |
| 4556 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4557 |
else |
| 4558 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4559 |
for as_dir in $PATH |
| 4560 |
do |
| 4561 |
IFS=$as_save_IFS |
| 4562 |
case $as_dir in #((( |
| 4563 |
'') as_dir=./ ;; |
| 4564 |
*/) ;; |
| 4565 |
*) as_dir=$as_dir/ ;; |
| 4566 |
esac |
| 4567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4568 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4569 |
ac_cv_prog_CXX="$ac_prog" |
| 4570 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4571 |
break 2 |
| 4572 |
fi |
| 4573 |
done |
| 4574 |
done |
| 4575 |
IFS=$as_save_IFS |
| 4576 |
|
| 4577 |
fi |
| 4578 |
fi |
| 4579 |
CXX=$ac_cv_prog_CXX |
| 4580 |
if test -n "$CXX"; then |
| 4581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4582 |
colorize_result "$CXX" ; } |
| 4583 |
else |
| 4584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4585 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4586 |
fi |
| 4587 |
|
| 4588 |
|
| 4589 |
test -n "$CXX" && break |
| 4590 |
done |
| 4591 |
|
| 4592 |
;; #( |
| 4593 |
*icc*) : |
| 4594 |
|
| 4595 |
# Intel C++ has interprocedural optimizations. It tends to come with its |
| 4596 |
# own linker etc. |
| 4597 |
|
| 4598 |
rb_prog=`echo "${rb_CC}" | sed "s/icc/xiar/"` |
| 4599 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4600 |
set dummy $rb_prog; ac_word=$2 |
| 4601 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4602 |
printf %s "checking for $ac_word... " >&6; } |
| 4603 |
if test ${ac_cv_prog_AR+y} |
| 4604 |
then : |
| 4605 |
printf %s "(cached) " >&6 |
| 4606 |
else $as_nop |
| 4607 |
if test -n "$AR"; then |
| 4608 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4609 |
else |
| 4610 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4611 |
for as_dir in $PATH |
| 4612 |
do |
| 4613 |
IFS=$as_save_IFS |
| 4614 |
case $as_dir in #((( |
| 4615 |
'') as_dir=./ ;; |
| 4616 |
*/) ;; |
| 4617 |
*) as_dir=$as_dir/ ;; |
| 4618 |
esac |
| 4619 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4620 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4621 |
ac_cv_prog_AR="$rb_prog" |
| 4622 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4623 |
break 2 |
| 4624 |
fi |
| 4625 |
done |
| 4626 |
done |
| 4627 |
IFS=$as_save_IFS |
| 4628 |
|
| 4629 |
fi |
| 4630 |
fi |
| 4631 |
AR=$ac_cv_prog_AR |
| 4632 |
if test -n "$AR"; then |
| 4633 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4634 |
colorize_result "$AR" ; } |
| 4635 |
else |
| 4636 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4637 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4638 |
fi |
| 4639 |
|
| 4640 |
|
| 4641 |
|
| 4642 |
|
| 4643 |
rb_prog=`echo "${rb_CC}" | sed "s/icc/icpc/"` |
| 4644 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4645 |
set dummy $rb_prog; ac_word=$2 |
| 4646 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4647 |
printf %s "checking for $ac_word... " >&6; } |
| 4648 |
if test ${ac_cv_prog_CXX+y} |
| 4649 |
then : |
| 4650 |
printf %s "(cached) " >&6 |
| 4651 |
else $as_nop |
| 4652 |
if test -n "$CXX"; then |
| 4653 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4654 |
else |
| 4655 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4656 |
for as_dir in $PATH |
| 4657 |
do |
| 4658 |
IFS=$as_save_IFS |
| 4659 |
case $as_dir in #((( |
| 4660 |
'') as_dir=./ ;; |
| 4661 |
*/) ;; |
| 4662 |
*) as_dir=$as_dir/ ;; |
| 4663 |
esac |
| 4664 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4665 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4666 |
ac_cv_prog_CXX="$rb_prog" |
| 4667 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4668 |
break 2 |
| 4669 |
fi |
| 4670 |
done |
| 4671 |
done |
| 4672 |
IFS=$as_save_IFS |
| 4673 |
|
| 4674 |
fi |
| 4675 |
fi |
| 4676 |
CXX=$ac_cv_prog_CXX |
| 4677 |
if test -n "$CXX"; then |
| 4678 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4679 |
colorize_result "$CXX" ; } |
| 4680 |
else |
| 4681 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4682 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4683 |
fi |
| 4684 |
|
| 4685 |
|
| 4686 |
|
| 4687 |
|
| 4688 |
rb_prog=`echo "${rb_CC}" | sed "s/icc/xild/"` |
| 4689 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4690 |
set dummy $rb_prog; ac_word=$2 |
| 4691 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4692 |
printf %s "checking for $ac_word... " >&6; } |
| 4693 |
if test ${ac_cv_prog_LD+y} |
| 4694 |
then : |
| 4695 |
printf %s "(cached) " >&6 |
| 4696 |
else $as_nop |
| 4697 |
if test -n "$LD"; then |
| 4698 |
ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4699 |
else |
| 4700 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4701 |
for as_dir in $PATH |
| 4702 |
do |
| 4703 |
IFS=$as_save_IFS |
| 4704 |
case $as_dir in #((( |
| 4705 |
'') as_dir=./ ;; |
| 4706 |
*/) ;; |
| 4707 |
*) as_dir=$as_dir/ ;; |
| 4708 |
esac |
| 4709 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4710 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4711 |
ac_cv_prog_LD="$rb_prog" |
| 4712 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4713 |
break 2 |
| 4714 |
fi |
| 4715 |
done |
| 4716 |
done |
| 4717 |
IFS=$as_save_IFS |
| 4718 |
|
| 4719 |
fi |
| 4720 |
fi |
| 4721 |
LD=$ac_cv_prog_LD |
| 4722 |
if test -n "$LD"; then |
| 4723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4724 |
colorize_result "$LD" ; } |
| 4725 |
else |
| 4726 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4727 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4728 |
fi |
| 4729 |
|
| 4730 |
|
| 4731 |
|
| 4732 |
;; #( |
| 4733 |
*gcc*) : |
| 4734 |
|
| 4735 |
# Ditto for GCC. |
| 4736 |
|
| 4737 |
rb_prog=`echo "${rb_CC}" | sed "s/gcc/ld/"` |
| 4738 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4739 |
set dummy $rb_prog; ac_word=$2 |
| 4740 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4741 |
printf %s "checking for $ac_word... " >&6; } |
| 4742 |
if test ${ac_cv_prog_LD+y} |
| 4743 |
then : |
| 4744 |
printf %s "(cached) " >&6 |
| 4745 |
else $as_nop |
| 4746 |
if test -n "$LD"; then |
| 4747 |
ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4748 |
else |
| 4749 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4750 |
for as_dir in $PATH |
| 4751 |
do |
| 4752 |
IFS=$as_save_IFS |
| 4753 |
case $as_dir in #((( |
| 4754 |
'') as_dir=./ ;; |
| 4755 |
*/) ;; |
| 4756 |
*) as_dir=$as_dir/ ;; |
| 4757 |
esac |
| 4758 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4759 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4760 |
ac_cv_prog_LD="$rb_prog" |
| 4761 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4762 |
break 2 |
| 4763 |
fi |
| 4764 |
done |
| 4765 |
done |
| 4766 |
IFS=$as_save_IFS |
| 4767 |
|
| 4768 |
fi |
| 4769 |
fi |
| 4770 |
LD=$ac_cv_prog_LD |
| 4771 |
if test -n "$LD"; then |
| 4772 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 4773 |
colorize_result "$LD" ; } |
| 4774 |
else |
| 4775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4776 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4777 |
fi |
| 4778 |
|
| 4779 |
|
| 4780 |
|
| 4781 |
|
| 4782 |
rb_prog=`echo "${rb_CC}" | sed "s/gcc/gcc-ar/"` |
| 4783 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4784 |
set dummy $rb_prog; ac_word=$2 |
| 4785 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4786 |
printf %s "checking for $ac_word... " >&6; } |
| 4787 |
if test ${ac_cv_prog_AR+y} |
| 4788 |
then : |
| 4789 |
printf %s "(cached) " >&6 |
| 4790 |
else $as_nop |
| 4791 |
if test -n "$AR"; then |
| 4792 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 4793 |
else |
| 4794 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4795 |
for as_dir in $PATH |
| 4796 |
do |
| 4797 |
IFS=$as_save_IFS |
| 4798 |
case $as_dir in #((( |
| 4799 |
'') as_dir=./ ;; |
| 4800 |
*/) ;; |
| 4801 |
*) as_dir=$as_dir/ ;; |
| 4802 |
esac |
| 4803 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4804 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4805 |
ac_cv_prog_AR="$rb_prog" |
| 4806 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4807 |
break 2 |
| 4808 |
fi |
| 4809 |
done |
| 4810 |
done |
| 4811 |
IFS=$as_save_IFS |
| 4812 |
|
| 4813 |
fi |
| 4814 |
fi |
| 4815 |
AR=$ac_cv_prog_AR |
| 4816 |
if test -n "$AR"; then |
| 4817 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 4818 |
colorize_result "$AR" ; } |
| 4819 |
else |
| 4820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4821 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4822 |
fi |
| 4823 |
|
| 4824 |
|
| 4825 |
|
| 4826 |
|
| 4827 |
rb_prog=`echo "${rb_CC}" | sed "s/gcc/g++/"` |
| 4828 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4829 |
set dummy $rb_prog; ac_word=$2 |
| 4830 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4831 |
printf %s "checking for $ac_word... " >&6; } |
| 4832 |
if test ${ac_cv_prog_CXX+y} |
| 4833 |
then : |
| 4834 |
printf %s "(cached) " >&6 |
| 4835 |
else $as_nop |
| 4836 |
if test -n "$CXX"; then |
| 4837 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 4838 |
else |
| 4839 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4840 |
for as_dir in $PATH |
| 4841 |
do |
| 4842 |
IFS=$as_save_IFS |
| 4843 |
case $as_dir in #((( |
| 4844 |
'') as_dir=./ ;; |
| 4845 |
*/) ;; |
| 4846 |
*) as_dir=$as_dir/ ;; |
| 4847 |
esac |
| 4848 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4849 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4850 |
ac_cv_prog_CXX="$rb_prog" |
| 4851 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4852 |
break 2 |
| 4853 |
fi |
| 4854 |
done |
| 4855 |
done |
| 4856 |
IFS=$as_save_IFS |
| 4857 |
|
| 4858 |
fi |
| 4859 |
fi |
| 4860 |
CXX=$ac_cv_prog_CXX |
| 4861 |
if test -n "$CXX"; then |
| 4862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 4863 |
colorize_result "$CXX" ; } |
| 4864 |
else |
| 4865 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4866 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4867 |
fi |
| 4868 |
|
| 4869 |
|
| 4870 |
|
| 4871 |
|
| 4872 |
rb_prog=`echo "${rb_CC}" | sed "s/gcc/gcc-nm/"` |
| 4873 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4874 |
set dummy $rb_prog; ac_word=$2 |
| 4875 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4876 |
printf %s "checking for $ac_word... " >&6; } |
| 4877 |
if test ${ac_cv_prog_NM+y} |
| 4878 |
then : |
| 4879 |
printf %s "(cached) " >&6 |
| 4880 |
else $as_nop |
| 4881 |
if test -n "$NM"; then |
| 4882 |
ac_cv_prog_NM="$NM" # Let the user override the test. |
| 4883 |
else |
| 4884 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4885 |
for as_dir in $PATH |
| 4886 |
do |
| 4887 |
IFS=$as_save_IFS |
| 4888 |
case $as_dir in #((( |
| 4889 |
'') as_dir=./ ;; |
| 4890 |
*/) ;; |
| 4891 |
*) as_dir=$as_dir/ ;; |
| 4892 |
esac |
| 4893 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4894 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4895 |
ac_cv_prog_NM="$rb_prog" |
| 4896 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4897 |
break 2 |
| 4898 |
fi |
| 4899 |
done |
| 4900 |
done |
| 4901 |
IFS=$as_save_IFS |
| 4902 |
|
| 4903 |
fi |
| 4904 |
fi |
| 4905 |
NM=$ac_cv_prog_NM |
| 4906 |
if test -n "$NM"; then |
| 4907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 4908 |
colorize_result "$NM" ; } |
| 4909 |
else |
| 4910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4911 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4912 |
fi |
| 4913 |
|
| 4914 |
|
| 4915 |
|
| 4916 |
|
| 4917 |
rb_prog=`echo "${rb_CC}" | sed "s/gcc/gcc-ranlib/"` |
| 4918 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4919 |
set dummy $rb_prog; ac_word=$2 |
| 4920 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4921 |
printf %s "checking for $ac_word... " >&6; } |
| 4922 |
if test ${ac_cv_prog_RANLIB+y} |
| 4923 |
then : |
| 4924 |
printf %s "(cached) " >&6 |
| 4925 |
else $as_nop |
| 4926 |
if test -n "$RANLIB"; then |
| 4927 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 4928 |
else |
| 4929 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4930 |
for as_dir in $PATH |
| 4931 |
do |
| 4932 |
IFS=$as_save_IFS |
| 4933 |
case $as_dir in #((( |
| 4934 |
'') as_dir=./ ;; |
| 4935 |
*/) ;; |
| 4936 |
*) as_dir=$as_dir/ ;; |
| 4937 |
esac |
| 4938 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4939 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 4940 |
ac_cv_prog_RANLIB="$rb_prog" |
| 4941 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 4942 |
break 2 |
| 4943 |
fi |
| 4944 |
done |
| 4945 |
done |
| 4946 |
IFS=$as_save_IFS |
| 4947 |
|
| 4948 |
fi |
| 4949 |
fi |
| 4950 |
RANLIB=$ac_cv_prog_RANLIB |
| 4951 |
if test -n "$RANLIB"; then |
| 4952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 4953 |
colorize_result "$RANLIB" ; } |
| 4954 |
else |
| 4955 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4956 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 4957 |
fi |
| 4958 |
|
| 4959 |
|
| 4960 |
|
| 4961 |
;; #( |
| 4962 |
*clang*) : |
| 4963 |
|
| 4964 |
# Ditto for LLVM. Note however that llvm-as is a LLVM-IR to LLVM bitcode |
| 4965 |
# assembler that does not target your machine native binary. |
| 4966 |
|
| 4967 |
# Xcode has its own version tools that may be incompatible with |
| 4968 |
# genuine LLVM tools, use the tools in the same directory. |
| 4969 |
|
| 4970 |
if $rb_CC -E -dM -xc - < /dev/null | grep -F __apple_build_version__ > /dev/null |
| 4971 |
then : |
| 4972 |
llvm_prefix= |
| 4973 |
else $as_nop |
| 4974 |
llvm_prefix=llvm- |
| 4975 |
fi |
| 4976 |
# AC_PREPROC_IFELSE cannot be used before AC_USE_SYSTEM_EXTENSIONS |
| 4977 |
|
| 4978 |
|
| 4979 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/ld/"` |
| 4980 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 4981 |
set dummy $rb_prog; ac_word=$2 |
| 4982 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4983 |
printf %s "checking for $ac_word... " >&6; } |
| 4984 |
if test ${ac_cv_prog_LD+y} |
| 4985 |
then : |
| 4986 |
printf %s "(cached) " >&6 |
| 4987 |
else $as_nop |
| 4988 |
if test -n "$LD"; then |
| 4989 |
ac_cv_prog_LD="$LD" # Let the user override the test. |
| 4990 |
else |
| 4991 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4992 |
for as_dir in $PATH |
| 4993 |
do |
| 4994 |
IFS=$as_save_IFS |
| 4995 |
case $as_dir in #((( |
| 4996 |
'') as_dir=./ ;; |
| 4997 |
*/) ;; |
| 4998 |
*) as_dir=$as_dir/ ;; |
| 4999 |
esac |
| 5000 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5001 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5002 |
ac_cv_prog_LD="$rb_prog" |
| 5003 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5004 |
break 2 |
| 5005 |
fi |
| 5006 |
done |
| 5007 |
done |
| 5008 |
IFS=$as_save_IFS |
| 5009 |
|
| 5010 |
fi |
| 5011 |
fi |
| 5012 |
LD=$ac_cv_prog_LD |
| 5013 |
if test -n "$LD"; then |
| 5014 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5015 |
colorize_result "$LD" ; } |
| 5016 |
else |
| 5017 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5018 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5019 |
fi |
| 5020 |
|
| 5021 |
|
| 5022 |
# ... maybe try lld ? |
| 5023 |
|
| 5024 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}ar/"` |
| 5025 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5026 |
set dummy $rb_prog; ac_word=$2 |
| 5027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5028 |
printf %s "checking for $ac_word... " >&6; } |
| 5029 |
if test ${ac_cv_prog_AR+y} |
| 5030 |
then : |
| 5031 |
printf %s "(cached) " >&6 |
| 5032 |
else $as_nop |
| 5033 |
if test -n "$AR"; then |
| 5034 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 5035 |
else |
| 5036 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5037 |
for as_dir in $PATH |
| 5038 |
do |
| 5039 |
IFS=$as_save_IFS |
| 5040 |
case $as_dir in #((( |
| 5041 |
'') as_dir=./ ;; |
| 5042 |
*/) ;; |
| 5043 |
*) as_dir=$as_dir/ ;; |
| 5044 |
esac |
| 5045 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5046 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5047 |
ac_cv_prog_AR="$rb_prog" |
| 5048 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5049 |
break 2 |
| 5050 |
fi |
| 5051 |
done |
| 5052 |
done |
| 5053 |
IFS=$as_save_IFS |
| 5054 |
|
| 5055 |
fi |
| 5056 |
fi |
| 5057 |
AR=$ac_cv_prog_AR |
| 5058 |
if test -n "$AR"; then |
| 5059 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 5060 |
colorize_result "$AR" ; } |
| 5061 |
else |
| 5062 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5063 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5064 |
fi |
| 5065 |
|
| 5066 |
|
| 5067 |
|
| 5068 |
# RUBY_CHECK_PROG_FOR_CC([AS], [s/clang/${llvm_prefix}as/]) |
| 5069 |
|
| 5070 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/clang++/"` |
| 5071 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5072 |
set dummy $rb_prog; ac_word=$2 |
| 5073 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5074 |
printf %s "checking for $ac_word... " >&6; } |
| 5075 |
if test ${ac_cv_prog_CXX+y} |
| 5076 |
then : |
| 5077 |
printf %s "(cached) " >&6 |
| 5078 |
else $as_nop |
| 5079 |
if test -n "$CXX"; then |
| 5080 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 5081 |
else |
| 5082 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5083 |
for as_dir in $PATH |
| 5084 |
do |
| 5085 |
IFS=$as_save_IFS |
| 5086 |
case $as_dir in #((( |
| 5087 |
'') as_dir=./ ;; |
| 5088 |
*/) ;; |
| 5089 |
*) as_dir=$as_dir/ ;; |
| 5090 |
esac |
| 5091 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5092 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5093 |
ac_cv_prog_CXX="$rb_prog" |
| 5094 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5095 |
break 2 |
| 5096 |
fi |
| 5097 |
done |
| 5098 |
done |
| 5099 |
IFS=$as_save_IFS |
| 5100 |
|
| 5101 |
fi |
| 5102 |
fi |
| 5103 |
CXX=$ac_cv_prog_CXX |
| 5104 |
if test -n "$CXX"; then |
| 5105 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 5106 |
colorize_result "$CXX" ; } |
| 5107 |
else |
| 5108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5109 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5110 |
fi |
| 5111 |
|
| 5112 |
|
| 5113 |
|
| 5114 |
|
| 5115 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}nm/"` |
| 5116 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5117 |
set dummy $rb_prog; ac_word=$2 |
| 5118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5119 |
printf %s "checking for $ac_word... " >&6; } |
| 5120 |
if test ${ac_cv_prog_NM+y} |
| 5121 |
then : |
| 5122 |
printf %s "(cached) " >&6 |
| 5123 |
else $as_nop |
| 5124 |
if test -n "$NM"; then |
| 5125 |
ac_cv_prog_NM="$NM" # Let the user override the test. |
| 5126 |
else |
| 5127 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5128 |
for as_dir in $PATH |
| 5129 |
do |
| 5130 |
IFS=$as_save_IFS |
| 5131 |
case $as_dir in #((( |
| 5132 |
'') as_dir=./ ;; |
| 5133 |
*/) ;; |
| 5134 |
*) as_dir=$as_dir/ ;; |
| 5135 |
esac |
| 5136 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5137 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5138 |
ac_cv_prog_NM="$rb_prog" |
| 5139 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5140 |
break 2 |
| 5141 |
fi |
| 5142 |
done |
| 5143 |
done |
| 5144 |
IFS=$as_save_IFS |
| 5145 |
|
| 5146 |
fi |
| 5147 |
fi |
| 5148 |
NM=$ac_cv_prog_NM |
| 5149 |
if test -n "$NM"; then |
| 5150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 5151 |
colorize_result "$NM" ; } |
| 5152 |
else |
| 5153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5154 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5155 |
fi |
| 5156 |
|
| 5157 |
|
| 5158 |
|
| 5159 |
|
| 5160 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}objcopy/"` |
| 5161 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5162 |
set dummy $rb_prog; ac_word=$2 |
| 5163 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5164 |
printf %s "checking for $ac_word... " >&6; } |
| 5165 |
if test ${ac_cv_prog_OBJCOPY+y} |
| 5166 |
then : |
| 5167 |
printf %s "(cached) " >&6 |
| 5168 |
else $as_nop |
| 5169 |
if test -n "$OBJCOPY"; then |
| 5170 |
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. |
| 5171 |
else |
| 5172 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5173 |
for as_dir in $PATH |
| 5174 |
do |
| 5175 |
IFS=$as_save_IFS |
| 5176 |
case $as_dir in #((( |
| 5177 |
'') as_dir=./ ;; |
| 5178 |
*/) ;; |
| 5179 |
*) as_dir=$as_dir/ ;; |
| 5180 |
esac |
| 5181 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5182 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5183 |
ac_cv_prog_OBJCOPY="$rb_prog" |
| 5184 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5185 |
break 2 |
| 5186 |
fi |
| 5187 |
done |
| 5188 |
done |
| 5189 |
IFS=$as_save_IFS |
| 5190 |
|
| 5191 |
fi |
| 5192 |
fi |
| 5193 |
OBJCOPY=$ac_cv_prog_OBJCOPY |
| 5194 |
if test -n "$OBJCOPY"; then |
| 5195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
| 5196 |
colorize_result "$OBJCOPY" ; } |
| 5197 |
else |
| 5198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5199 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5200 |
fi |
| 5201 |
|
| 5202 |
|
| 5203 |
|
| 5204 |
|
| 5205 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}objdump/"` |
| 5206 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5207 |
set dummy $rb_prog; ac_word=$2 |
| 5208 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5209 |
printf %s "checking for $ac_word... " >&6; } |
| 5210 |
if test ${ac_cv_prog_OBJDUMP+y} |
| 5211 |
then : |
| 5212 |
printf %s "(cached) " >&6 |
| 5213 |
else $as_nop |
| 5214 |
if test -n "$OBJDUMP"; then |
| 5215 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 5216 |
else |
| 5217 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5218 |
for as_dir in $PATH |
| 5219 |
do |
| 5220 |
IFS=$as_save_IFS |
| 5221 |
case $as_dir in #((( |
| 5222 |
'') as_dir=./ ;; |
| 5223 |
*/) ;; |
| 5224 |
*) as_dir=$as_dir/ ;; |
| 5225 |
esac |
| 5226 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5227 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5228 |
ac_cv_prog_OBJDUMP="$rb_prog" |
| 5229 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5230 |
break 2 |
| 5231 |
fi |
| 5232 |
done |
| 5233 |
done |
| 5234 |
IFS=$as_save_IFS |
| 5235 |
|
| 5236 |
fi |
| 5237 |
fi |
| 5238 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 5239 |
if test -n "$OBJDUMP"; then |
| 5240 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 5241 |
colorize_result "$OBJDUMP" ; } |
| 5242 |
else |
| 5243 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5244 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5245 |
fi |
| 5246 |
|
| 5247 |
|
| 5248 |
|
| 5249 |
|
| 5250 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}ranlib/"` |
| 5251 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5252 |
set dummy $rb_prog; ac_word=$2 |
| 5253 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5254 |
printf %s "checking for $ac_word... " >&6; } |
| 5255 |
if test ${ac_cv_prog_RANLIB+y} |
| 5256 |
then : |
| 5257 |
printf %s "(cached) " >&6 |
| 5258 |
else $as_nop |
| 5259 |
if test -n "$RANLIB"; then |
| 5260 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5261 |
else |
| 5262 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5263 |
for as_dir in $PATH |
| 5264 |
do |
| 5265 |
IFS=$as_save_IFS |
| 5266 |
case $as_dir in #((( |
| 5267 |
'') as_dir=./ ;; |
| 5268 |
*/) ;; |
| 5269 |
*) as_dir=$as_dir/ ;; |
| 5270 |
esac |
| 5271 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5272 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5273 |
ac_cv_prog_RANLIB="$rb_prog" |
| 5274 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5275 |
break 2 |
| 5276 |
fi |
| 5277 |
done |
| 5278 |
done |
| 5279 |
IFS=$as_save_IFS |
| 5280 |
|
| 5281 |
fi |
| 5282 |
fi |
| 5283 |
RANLIB=$ac_cv_prog_RANLIB |
| 5284 |
if test -n "$RANLIB"; then |
| 5285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 5286 |
colorize_result "$RANLIB" ; } |
| 5287 |
else |
| 5288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5289 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5290 |
fi |
| 5291 |
|
| 5292 |
|
| 5293 |
|
| 5294 |
|
| 5295 |
rb_prog=`echo "${rb_CC}" | sed "s/clang/${llvm_prefix}strip/"` |
| 5296 |
# Extract the first word of "$rb_prog", so it can be a program name with args. |
| 5297 |
set dummy $rb_prog; ac_word=$2 |
| 5298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5299 |
printf %s "checking for $ac_word... " >&6; } |
| 5300 |
if test ${ac_cv_prog_STRIP+y} |
| 5301 |
then : |
| 5302 |
printf %s "(cached) " >&6 |
| 5303 |
else $as_nop |
| 5304 |
if test -n "$STRIP"; then |
| 5305 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 5306 |
else |
| 5307 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5308 |
for as_dir in $PATH |
| 5309 |
do |
| 5310 |
IFS=$as_save_IFS |
| 5311 |
case $as_dir in #((( |
| 5312 |
'') as_dir=./ ;; |
| 5313 |
*/) ;; |
| 5314 |
*) as_dir=$as_dir/ ;; |
| 5315 |
esac |
| 5316 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5317 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5318 |
ac_cv_prog_STRIP="$rb_prog" |
| 5319 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5320 |
break 2 |
| 5321 |
fi |
| 5322 |
done |
| 5323 |
done |
| 5324 |
IFS=$as_save_IFS |
| 5325 |
|
| 5326 |
fi |
| 5327 |
fi |
| 5328 |
STRIP=$ac_cv_prog_STRIP |
| 5329 |
if test -n "$STRIP"; then |
| 5330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 5331 |
colorize_result "$STRIP" ; } |
| 5332 |
else |
| 5333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5334 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5335 |
fi |
| 5336 |
|
| 5337 |
|
| 5338 |
|
| 5339 |
;; #( |
| 5340 |
*) : |
| 5341 |
;; |
| 5342 |
esac |
| 5343 |
{ rb_CC=; unset rb_CC;} |
| 5344 |
{ rb_dummy=; unset rb_dummy;} |
| 5345 |
|
| 5346 |
case "${build_os}" in #( |
| 5347 |
solaris*) : |
| 5348 |
|
| 5349 |
if test -n "$ac_tool_prefix"; then |
| 5350 |
# Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args. |
| 5351 |
set dummy ${ac_tool_prefix}ld; ac_word=$2 |
| 5352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5353 |
printf %s "checking for $ac_word... " >&6; } |
| 5354 |
if test ${ac_cv_path_LD+y} |
| 5355 |
then : |
| 5356 |
printf %s "(cached) " >&6 |
| 5357 |
else $as_nop |
| 5358 |
case $LD in |
| 5359 |
[\\/]* | ?:[\\/]*) |
| 5360 |
ac_cv_path_LD="$LD" # Let the user override the test with a path. |
| 5361 |
;; |
| 5362 |
*) |
| 5363 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5364 |
as_dummy="/usr/ccs/bin:$PATH" |
| 5365 |
for as_dir in $as_dummy |
| 5366 |
do |
| 5367 |
IFS=$as_save_IFS |
| 5368 |
case $as_dir in #((( |
| 5369 |
'') as_dir=./ ;; |
| 5370 |
*/) ;; |
| 5371 |
*) as_dir=$as_dir/ ;; |
| 5372 |
esac |
| 5373 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5374 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5375 |
ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext" |
| 5376 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5377 |
break 2 |
| 5378 |
fi |
| 5379 |
done |
| 5380 |
done |
| 5381 |
IFS=$as_save_IFS |
| 5382 |
|
| 5383 |
;; |
| 5384 |
esac |
| 5385 |
fi |
| 5386 |
LD=$ac_cv_path_LD |
| 5387 |
if test -n "$LD"; then |
| 5388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 5389 |
colorize_result "$LD" ; } |
| 5390 |
else |
| 5391 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5392 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5393 |
fi |
| 5394 |
|
| 5395 |
|
| 5396 |
fi |
| 5397 |
if test -z "$ac_cv_path_LD"; then |
| 5398 |
ac_pt_LD=$LD |
| 5399 |
# Extract the first word of "ld", so it can be a program name with args. |
| 5400 |
set dummy ld; ac_word=$2 |
| 5401 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5402 |
printf %s "checking for $ac_word... " >&6; } |
| 5403 |
if test ${ac_cv_path_ac_pt_LD+y} |
| 5404 |
then : |
| 5405 |
printf %s "(cached) " >&6 |
| 5406 |
else $as_nop |
| 5407 |
case $ac_pt_LD in |
| 5408 |
[\\/]* | ?:[\\/]*) |
| 5409 |
ac_cv_path_ac_pt_LD="$ac_pt_LD" # Let the user override the test with a path. |
| 5410 |
;; |
| 5411 |
*) |
| 5412 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5413 |
as_dummy="/usr/ccs/bin:$PATH" |
| 5414 |
for as_dir in $as_dummy |
| 5415 |
do |
| 5416 |
IFS=$as_save_IFS |
| 5417 |
case $as_dir in #((( |
| 5418 |
'') as_dir=./ ;; |
| 5419 |
*/) ;; |
| 5420 |
*) as_dir=$as_dir/ ;; |
| 5421 |
esac |
| 5422 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5423 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5424 |
ac_cv_path_ac_pt_LD="$as_dir$ac_word$ac_exec_ext" |
| 5425 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5426 |
break 2 |
| 5427 |
fi |
| 5428 |
done |
| 5429 |
done |
| 5430 |
IFS=$as_save_IFS |
| 5431 |
|
| 5432 |
;; |
| 5433 |
esac |
| 5434 |
fi |
| 5435 |
ac_pt_LD=$ac_cv_path_ac_pt_LD |
| 5436 |
if test -n "$ac_pt_LD"; then |
| 5437 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LD" >&5 |
| 5438 |
colorize_result "$ac_pt_LD" ; } |
| 5439 |
else |
| 5440 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5441 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5442 |
fi |
| 5443 |
|
| 5444 |
if test "x$ac_pt_LD" = x; then |
| 5445 |
LD="/usr/ccs/bin/ld" |
| 5446 |
else |
| 5447 |
case $cross_compiling:$ac_tool_warned in |
| 5448 |
yes:) |
| 5449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5450 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5451 |
ac_tool_warned=yes ;; |
| 5452 |
esac |
| 5453 |
LD=$ac_pt_LD |
| 5454 |
fi |
| 5455 |
else |
| 5456 |
LD="$ac_cv_path_LD" |
| 5457 |
fi |
| 5458 |
|
| 5459 |
;; #( |
| 5460 |
aix*) : |
| 5461 |
|
| 5462 |
if test -n "$ac_tool_prefix"; then |
| 5463 |
# Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. |
| 5464 |
set dummy ${ac_tool_prefix}nm; ac_word=$2 |
| 5465 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5466 |
printf %s "checking for $ac_word... " >&6; } |
| 5467 |
if test ${ac_cv_path_NM+y} |
| 5468 |
then : |
| 5469 |
printf %s "(cached) " >&6 |
| 5470 |
else $as_nop |
| 5471 |
case $NM in |
| 5472 |
[\\/]* | ?:[\\/]*) |
| 5473 |
ac_cv_path_NM="$NM" # Let the user override the test with a path. |
| 5474 |
;; |
| 5475 |
*) |
| 5476 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5477 |
as_dummy="/usr/ccs/bin:$PATH" |
| 5478 |
for as_dir in $as_dummy |
| 5479 |
do |
| 5480 |
IFS=$as_save_IFS |
| 5481 |
case $as_dir in #((( |
| 5482 |
'') as_dir=./ ;; |
| 5483 |
*/) ;; |
| 5484 |
*) as_dir=$as_dir/ ;; |
| 5485 |
esac |
| 5486 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5487 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5488 |
ac_cv_path_NM="$as_dir$ac_word$ac_exec_ext" |
| 5489 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5490 |
break 2 |
| 5491 |
fi |
| 5492 |
done |
| 5493 |
done |
| 5494 |
IFS=$as_save_IFS |
| 5495 |
|
| 5496 |
;; |
| 5497 |
esac |
| 5498 |
fi |
| 5499 |
NM=$ac_cv_path_NM |
| 5500 |
if test -n "$NM"; then |
| 5501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 5502 |
colorize_result "$NM" ; } |
| 5503 |
else |
| 5504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5505 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5506 |
fi |
| 5507 |
|
| 5508 |
|
| 5509 |
fi |
| 5510 |
if test -z "$ac_cv_path_NM"; then |
| 5511 |
ac_pt_NM=$NM |
| 5512 |
# Extract the first word of "nm", so it can be a program name with args. |
| 5513 |
set dummy nm; ac_word=$2 |
| 5514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5515 |
printf %s "checking for $ac_word... " >&6; } |
| 5516 |
if test ${ac_cv_path_ac_pt_NM+y} |
| 5517 |
then : |
| 5518 |
printf %s "(cached) " >&6 |
| 5519 |
else $as_nop |
| 5520 |
case $ac_pt_NM in |
| 5521 |
[\\/]* | ?:[\\/]*) |
| 5522 |
ac_cv_path_ac_pt_NM="$ac_pt_NM" # Let the user override the test with a path. |
| 5523 |
;; |
| 5524 |
*) |
| 5525 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5526 |
as_dummy="/usr/ccs/bin:$PATH" |
| 5527 |
for as_dir in $as_dummy |
| 5528 |
do |
| 5529 |
IFS=$as_save_IFS |
| 5530 |
case $as_dir in #((( |
| 5531 |
'') as_dir=./ ;; |
| 5532 |
*/) ;; |
| 5533 |
*) as_dir=$as_dir/ ;; |
| 5534 |
esac |
| 5535 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5536 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5537 |
ac_cv_path_ac_pt_NM="$as_dir$ac_word$ac_exec_ext" |
| 5538 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5539 |
break 2 |
| 5540 |
fi |
| 5541 |
done |
| 5542 |
done |
| 5543 |
IFS=$as_save_IFS |
| 5544 |
|
| 5545 |
;; |
| 5546 |
esac |
| 5547 |
fi |
| 5548 |
ac_pt_NM=$ac_cv_path_ac_pt_NM |
| 5549 |
if test -n "$ac_pt_NM"; then |
| 5550 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NM" >&5 |
| 5551 |
colorize_result "$ac_pt_NM" ; } |
| 5552 |
else |
| 5553 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5554 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5555 |
fi |
| 5556 |
|
| 5557 |
if test "x$ac_pt_NM" = x; then |
| 5558 |
NM="/usr/ccs/bin/nm" |
| 5559 |
else |
| 5560 |
case $cross_compiling:$ac_tool_warned in |
| 5561 |
yes:) |
| 5562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5563 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5564 |
ac_tool_warned=yes ;; |
| 5565 |
esac |
| 5566 |
NM=$ac_pt_NM |
| 5567 |
fi |
| 5568 |
else |
| 5569 |
NM="$ac_cv_path_NM" |
| 5570 |
fi |
| 5571 |
|
| 5572 |
;; #( |
| 5573 |
*) : |
| 5574 |
;; |
| 5575 |
esac |
| 5576 |
case "${target_os}" in #( |
| 5577 |
cygwin*|msys*|mingw*|darwin*) : |
| 5578 |
|
| 5579 |
ac_cv_prog_ac_ct_OBJCOPY=":" |
| 5580 |
;; #( |
| 5581 |
*) : |
| 5582 |
;; |
| 5583 |
esac |
| 5584 |
|
| 5585 |
rb_test_CFLAGS=${CFLAGS+yes} |
| 5586 |
rb_test_CXXFLAGS=${CXXFLAGS+yes} |
| 5587 |
|
| 5588 |
# BSD's ports and MacPorts prefix GNU binutils with 'g' |
| 5589 |
|
| 5590 |
|
| 5591 |
|
| 5592 |
|
| 5593 |
|
| 5594 |
|
| 5595 |
|
| 5596 |
|
| 5597 |
|
| 5598 |
|
| 5599 |
ac_ext=c |
| 5600 |
ac_cpp='$CPP $CPPFLAGS' |
| 5601 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5602 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5603 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5604 |
if test -n "$ac_tool_prefix"; then |
| 5605 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 5606 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 5607 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5608 |
printf %s "checking for $ac_word... " >&6; } |
| 5609 |
if test ${ac_cv_prog_CC+y} |
| 5610 |
then : |
| 5611 |
printf %s "(cached) " >&6 |
| 5612 |
else $as_nop |
| 5613 |
if test -n "$CC"; then |
| 5614 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5615 |
else |
| 5616 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5617 |
for as_dir in $PATH |
| 5618 |
do |
| 5619 |
IFS=$as_save_IFS |
| 5620 |
case $as_dir in #((( |
| 5621 |
'') as_dir=./ ;; |
| 5622 |
*/) ;; |
| 5623 |
*) as_dir=$as_dir/ ;; |
| 5624 |
esac |
| 5625 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5626 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5627 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 5628 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5629 |
break 2 |
| 5630 |
fi |
| 5631 |
done |
| 5632 |
done |
| 5633 |
IFS=$as_save_IFS |
| 5634 |
|
| 5635 |
fi |
| 5636 |
fi |
| 5637 |
CC=$ac_cv_prog_CC |
| 5638 |
if test -n "$CC"; then |
| 5639 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5640 |
colorize_result "$CC" ; } |
| 5641 |
else |
| 5642 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5643 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5644 |
fi |
| 5645 |
|
| 5646 |
|
| 5647 |
fi |
| 5648 |
if test -z "$ac_cv_prog_CC"; then |
| 5649 |
ac_ct_CC=$CC |
| 5650 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 5651 |
set dummy gcc; ac_word=$2 |
| 5652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5653 |
printf %s "checking for $ac_word... " >&6; } |
| 5654 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 5655 |
then : |
| 5656 |
printf %s "(cached) " >&6 |
| 5657 |
else $as_nop |
| 5658 |
if test -n "$ac_ct_CC"; then |
| 5659 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5660 |
else |
| 5661 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5662 |
for as_dir in $PATH |
| 5663 |
do |
| 5664 |
IFS=$as_save_IFS |
| 5665 |
case $as_dir in #((( |
| 5666 |
'') as_dir=./ ;; |
| 5667 |
*/) ;; |
| 5668 |
*) as_dir=$as_dir/ ;; |
| 5669 |
esac |
| 5670 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5671 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5672 |
ac_cv_prog_ac_ct_CC="gcc" |
| 5673 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5674 |
break 2 |
| 5675 |
fi |
| 5676 |
done |
| 5677 |
done |
| 5678 |
IFS=$as_save_IFS |
| 5679 |
|
| 5680 |
fi |
| 5681 |
fi |
| 5682 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5683 |
if test -n "$ac_ct_CC"; then |
| 5684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5685 |
colorize_result "$ac_ct_CC" ; } |
| 5686 |
else |
| 5687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5688 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5689 |
fi |
| 5690 |
|
| 5691 |
if test "x$ac_ct_CC" = x; then |
| 5692 |
CC="" |
| 5693 |
else |
| 5694 |
case $cross_compiling:$ac_tool_warned in |
| 5695 |
yes:) |
| 5696 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5697 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5698 |
ac_tool_warned=yes ;; |
| 5699 |
esac |
| 5700 |
CC=$ac_ct_CC |
| 5701 |
fi |
| 5702 |
else |
| 5703 |
CC="$ac_cv_prog_CC" |
| 5704 |
fi |
| 5705 |
|
| 5706 |
if test -z "$CC"; then |
| 5707 |
if test -n "$ac_tool_prefix"; then |
| 5708 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 5709 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 5710 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5711 |
printf %s "checking for $ac_word... " >&6; } |
| 5712 |
if test ${ac_cv_prog_CC+y} |
| 5713 |
then : |
| 5714 |
printf %s "(cached) " >&6 |
| 5715 |
else $as_nop |
| 5716 |
if test -n "$CC"; then |
| 5717 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5718 |
else |
| 5719 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5720 |
for as_dir in $PATH |
| 5721 |
do |
| 5722 |
IFS=$as_save_IFS |
| 5723 |
case $as_dir in #((( |
| 5724 |
'') as_dir=./ ;; |
| 5725 |
*/) ;; |
| 5726 |
*) as_dir=$as_dir/ ;; |
| 5727 |
esac |
| 5728 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5729 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5730 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 5731 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5732 |
break 2 |
| 5733 |
fi |
| 5734 |
done |
| 5735 |
done |
| 5736 |
IFS=$as_save_IFS |
| 5737 |
|
| 5738 |
fi |
| 5739 |
fi |
| 5740 |
CC=$ac_cv_prog_CC |
| 5741 |
if test -n "$CC"; then |
| 5742 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5743 |
colorize_result "$CC" ; } |
| 5744 |
else |
| 5745 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5746 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5747 |
fi |
| 5748 |
|
| 5749 |
|
| 5750 |
fi |
| 5751 |
fi |
| 5752 |
if test -z "$CC"; then |
| 5753 |
# Extract the first word of "cc", so it can be a program name with args. |
| 5754 |
set dummy cc; ac_word=$2 |
| 5755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5756 |
printf %s "checking for $ac_word... " >&6; } |
| 5757 |
if test ${ac_cv_prog_CC+y} |
| 5758 |
then : |
| 5759 |
printf %s "(cached) " >&6 |
| 5760 |
else $as_nop |
| 5761 |
if test -n "$CC"; then |
| 5762 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5763 |
else |
| 5764 |
ac_prog_rejected=no |
| 5765 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5766 |
for as_dir in $PATH |
| 5767 |
do |
| 5768 |
IFS=$as_save_IFS |
| 5769 |
case $as_dir in #((( |
| 5770 |
'') as_dir=./ ;; |
| 5771 |
*/) ;; |
| 5772 |
*) as_dir=$as_dir/ ;; |
| 5773 |
esac |
| 5774 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5775 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5776 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 5777 |
ac_prog_rejected=yes |
| 5778 |
continue |
| 5779 |
fi |
| 5780 |
ac_cv_prog_CC="cc" |
| 5781 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5782 |
break 2 |
| 5783 |
fi |
| 5784 |
done |
| 5785 |
done |
| 5786 |
IFS=$as_save_IFS |
| 5787 |
|
| 5788 |
if test $ac_prog_rejected = yes; then |
| 5789 |
# We found a bogon in the path, so make sure we never use it. |
| 5790 |
set dummy $ac_cv_prog_CC |
| 5791 |
shift |
| 5792 |
if test $# != 0; then |
| 5793 |
# We chose a different compiler from the bogus one. |
| 5794 |
# However, it has the same basename, so the bogon will be chosen |
| 5795 |
# first if we set CC to just the basename; use the full file name. |
| 5796 |
shift |
| 5797 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 5798 |
fi |
| 5799 |
fi |
| 5800 |
fi |
| 5801 |
fi |
| 5802 |
CC=$ac_cv_prog_CC |
| 5803 |
if test -n "$CC"; then |
| 5804 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5805 |
colorize_result "$CC" ; } |
| 5806 |
else |
| 5807 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5808 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5809 |
fi |
| 5810 |
|
| 5811 |
|
| 5812 |
fi |
| 5813 |
if test -z "$CC"; then |
| 5814 |
if test -n "$ac_tool_prefix"; then |
| 5815 |
for ac_prog in cl.exe |
| 5816 |
do |
| 5817 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 5818 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 5819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5820 |
printf %s "checking for $ac_word... " >&6; } |
| 5821 |
if test ${ac_cv_prog_CC+y} |
| 5822 |
then : |
| 5823 |
printf %s "(cached) " >&6 |
| 5824 |
else $as_nop |
| 5825 |
if test -n "$CC"; then |
| 5826 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5827 |
else |
| 5828 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5829 |
for as_dir in $PATH |
| 5830 |
do |
| 5831 |
IFS=$as_save_IFS |
| 5832 |
case $as_dir in #((( |
| 5833 |
'') as_dir=./ ;; |
| 5834 |
*/) ;; |
| 5835 |
*) as_dir=$as_dir/ ;; |
| 5836 |
esac |
| 5837 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5838 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5839 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 5840 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5841 |
break 2 |
| 5842 |
fi |
| 5843 |
done |
| 5844 |
done |
| 5845 |
IFS=$as_save_IFS |
| 5846 |
|
| 5847 |
fi |
| 5848 |
fi |
| 5849 |
CC=$ac_cv_prog_CC |
| 5850 |
if test -n "$CC"; then |
| 5851 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5852 |
colorize_result "$CC" ; } |
| 5853 |
else |
| 5854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5855 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5856 |
fi |
| 5857 |
|
| 5858 |
|
| 5859 |
test -n "$CC" && break |
| 5860 |
done |
| 5861 |
fi |
| 5862 |
if test -z "$CC"; then |
| 5863 |
ac_ct_CC=$CC |
| 5864 |
for ac_prog in cl.exe |
| 5865 |
do |
| 5866 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 5867 |
set dummy $ac_prog; ac_word=$2 |
| 5868 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5869 |
printf %s "checking for $ac_word... " >&6; } |
| 5870 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 5871 |
then : |
| 5872 |
printf %s "(cached) " >&6 |
| 5873 |
else $as_nop |
| 5874 |
if test -n "$ac_ct_CC"; then |
| 5875 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5876 |
else |
| 5877 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5878 |
for as_dir in $PATH |
| 5879 |
do |
| 5880 |
IFS=$as_save_IFS |
| 5881 |
case $as_dir in #((( |
| 5882 |
'') as_dir=./ ;; |
| 5883 |
*/) ;; |
| 5884 |
*) as_dir=$as_dir/ ;; |
| 5885 |
esac |
| 5886 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5887 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5888 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 5889 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5890 |
break 2 |
| 5891 |
fi |
| 5892 |
done |
| 5893 |
done |
| 5894 |
IFS=$as_save_IFS |
| 5895 |
|
| 5896 |
fi |
| 5897 |
fi |
| 5898 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 5899 |
if test -n "$ac_ct_CC"; then |
| 5900 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 5901 |
colorize_result "$ac_ct_CC" ; } |
| 5902 |
else |
| 5903 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5904 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5905 |
fi |
| 5906 |
|
| 5907 |
|
| 5908 |
test -n "$ac_ct_CC" && break |
| 5909 |
done |
| 5910 |
|
| 5911 |
if test "x$ac_ct_CC" = x; then |
| 5912 |
CC="" |
| 5913 |
else |
| 5914 |
case $cross_compiling:$ac_tool_warned in |
| 5915 |
yes:) |
| 5916 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5917 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5918 |
ac_tool_warned=yes ;; |
| 5919 |
esac |
| 5920 |
CC=$ac_ct_CC |
| 5921 |
fi |
| 5922 |
fi |
| 5923 |
|
| 5924 |
fi |
| 5925 |
if test -z "$CC"; then |
| 5926 |
if test -n "$ac_tool_prefix"; then |
| 5927 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 5928 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 5929 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5930 |
printf %s "checking for $ac_word... " >&6; } |
| 5931 |
if test ${ac_cv_prog_CC+y} |
| 5932 |
then : |
| 5933 |
printf %s "(cached) " >&6 |
| 5934 |
else $as_nop |
| 5935 |
if test -n "$CC"; then |
| 5936 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 5937 |
else |
| 5938 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5939 |
for as_dir in $PATH |
| 5940 |
do |
| 5941 |
IFS=$as_save_IFS |
| 5942 |
case $as_dir in #((( |
| 5943 |
'') as_dir=./ ;; |
| 5944 |
*/) ;; |
| 5945 |
*) as_dir=$as_dir/ ;; |
| 5946 |
esac |
| 5947 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5948 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5949 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 5950 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5951 |
break 2 |
| 5952 |
fi |
| 5953 |
done |
| 5954 |
done |
| 5955 |
IFS=$as_save_IFS |
| 5956 |
|
| 5957 |
fi |
| 5958 |
fi |
| 5959 |
CC=$ac_cv_prog_CC |
| 5960 |
if test -n "$CC"; then |
| 5961 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 5962 |
colorize_result "$CC" ; } |
| 5963 |
else |
| 5964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5965 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 5966 |
fi |
| 5967 |
|
| 5968 |
|
| 5969 |
fi |
| 5970 |
if test -z "$ac_cv_prog_CC"; then |
| 5971 |
ac_ct_CC=$CC |
| 5972 |
# Extract the first word of "clang", so it can be a program name with args. |
| 5973 |
set dummy clang; ac_word=$2 |
| 5974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5975 |
printf %s "checking for $ac_word... " >&6; } |
| 5976 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 5977 |
then : |
| 5978 |
printf %s "(cached) " >&6 |
| 5979 |
else $as_nop |
| 5980 |
if test -n "$ac_ct_CC"; then |
| 5981 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 5982 |
else |
| 5983 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5984 |
for as_dir in $PATH |
| 5985 |
do |
| 5986 |
IFS=$as_save_IFS |
| 5987 |
case $as_dir in #((( |
| 5988 |
'') as_dir=./ ;; |
| 5989 |
*/) ;; |
| 5990 |
*) as_dir=$as_dir/ ;; |
| 5991 |
esac |
| 5992 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 5993 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 5994 |
ac_cv_prog_ac_ct_CC="clang" |
| 5995 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 5996 |
break 2 |
| 5997 |
fi |
| 5998 |
done |
| 5999 |
done |
| 6000 |
IFS=$as_save_IFS |
| 6001 |
|
| 6002 |
fi |
| 6003 |
fi |
| 6004 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 6005 |
if test -n "$ac_ct_CC"; then |
| 6006 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 6007 |
colorize_result "$ac_ct_CC" ; } |
| 6008 |
else |
| 6009 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6010 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 6011 |
fi |
| 6012 |
|
| 6013 |
if test "x$ac_ct_CC" = x; then |
| 6014 |
CC="" |
| 6015 |
else |
| 6016 |
case $cross_compiling:$ac_tool_warned in |
| 6017 |
yes:) |
| 6018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6019 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6020 |
ac_tool_warned=yes ;; |
| 6021 |
esac |
| 6022 |
CC=$ac_ct_CC |
| 6023 |
fi |
| 6024 |
else |
| 6025 |
CC="$ac_cv_prog_CC" |
| 6026 |
fi |
| 6027 |
|
| 6028 |
fi |
| 6029 |
|
| 6030 |
|
| 6031 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6032 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6033 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 6034 |
See \`config.log' for more details" "$LINENO" 5; } |
| 6035 |
|
| 6036 |
# Provide some information about the compiler. |
| 6037 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 6038 |
set X $ac_compile |
| 6039 |
ac_compiler=$2 |
| 6040 |
for ac_option in --version -v -V -qversion -version; do |
| 6041 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 6042 |
case "(($ac_try" in |
| 6043 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6044 |
*) ac_try_echo=$ac_try;; |
| 6045 |
esac |
| 6046 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6047 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6048 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6049 |
ac_status=$? |
| 6050 |
if test -s conftest.err; then |
| 6051 |
sed '10a\ |
| 6052 |
... rest of stderr output deleted ... |
| 6053 |
10q' conftest.err >conftest.er1 |
| 6054 |
cat conftest.er1 >&5 |
| 6055 |
fi |
| 6056 |
rm -f conftest.er1 conftest.err |
| 6057 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6058 |
test $ac_status = 0; } |
| 6059 |
done |
| 6060 |
|
| 6061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6062 |
/* end confdefs.h. */ |
| 6063 |
|
| 6064 |
int |
| 6065 |
main (void) |
| 6066 |
{ |
| 6067 |
|
| 6068 |
; |
| 6069 |
return 0; |
| 6070 |
} |
| 6071 |
_ACEOF |
| 6072 |
ac_clean_files_save=$ac_clean_files |
| 6073 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 6074 |
# Try to create an executable without -o first, disregard a.out. |
| 6075 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 6076 |
# of exeext. |
| 6077 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 6078 |
printf %s "checking whether the C compiler works... " >&6; } |
| 6079 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 6080 |
|
| 6081 |
# The possible output files: |
| 6082 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 6083 |
|
| 6084 |
ac_rmfiles= |
| 6085 |
for ac_file in $ac_files |
| 6086 |
do |
| 6087 |
case $ac_file in |
| 6088 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 6089 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 6090 |
esac |
| 6091 |
done |
| 6092 |
rm -f $ac_rmfiles |
| 6093 |
|
| 6094 |
if { { ac_try="$ac_link_default" |
| 6095 |
case "(($ac_try" in |
| 6096 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6097 |
*) ac_try_echo=$ac_try;; |
| 6098 |
esac |
| 6099 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6100 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6101 |
(eval "$ac_link_default") 2>&5 |
| 6102 |
ac_status=$? |
| 6103 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6104 |
test $ac_status = 0; } |
| 6105 |
then : |
| 6106 |
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 6107 |
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 6108 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 6109 |
# so that the user can short-circuit this test for compilers unknown to |
| 6110 |
# Autoconf. |
| 6111 |
for ac_file in $ac_files '' |
| 6112 |
do |
| 6113 |
test -f "$ac_file" || continue |
| 6114 |
case $ac_file in |
| 6115 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 6116 |
;; |
| 6117 |
[ab].out ) |
| 6118 |
# We found the default executable, but exeext='' is most |
| 6119 |
# certainly right. |
| 6120 |
break;; |
| 6121 |
*.* ) |
| 6122 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 6123 |
then :; else |
| 6124 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 6125 |
fi |
| 6126 |
# We set ac_cv_exeext here because the later test for it is not |
| 6127 |
# safe: cross compilers may not add the suffix if given an `-o' |
| 6128 |
# argument, so we may need to know it at that point already. |
| 6129 |
# Even if this section looks crufty: it has the advantage of |
| 6130 |
# actually working. |
| 6131 |
break;; |
| 6132 |
* ) |
| 6133 |
break;; |
| 6134 |
esac |
| 6135 |
done |
| 6136 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 6137 |
|
| 6138 |
else $as_nop |
| 6139 |
ac_file='' |
| 6140 |
fi |
| 6141 |
if test -z "$ac_file" |
| 6142 |
then : |
| 6143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6144 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 6145 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 6146 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6147 |
|
| 6148 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6149 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6150 |
as_fn_error 77 "C compiler cannot create executables |
| 6151 |
See \`config.log' for more details" "$LINENO" 5; } |
| 6152 |
else $as_nop |
| 6153 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 6154 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 6155 |
fi |
| 6156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 6157 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 6158 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 6159 |
colorize_result "$ac_file" ; } |
| 6160 |
ac_exeext=$ac_cv_exeext |
| 6161 |
|
| 6162 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 6163 |
ac_clean_files=$ac_clean_files_save |
| 6164 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 6165 |
printf %s "checking for suffix of executables... " >&6; } |
| 6166 |
if { { ac_try="$ac_link" |
| 6167 |
case "(($ac_try" in |
| 6168 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6169 |
*) ac_try_echo=$ac_try;; |
| 6170 |
esac |
| 6171 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6172 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6173 |
(eval "$ac_link") 2>&5 |
| 6174 |
ac_status=$? |
| 6175 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6176 |
test $ac_status = 0; } |
| 6177 |
then : |
| 6178 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 6179 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 6180 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 6181 |
# `rm'. |
| 6182 |
for ac_file in conftest.exe conftest conftest.*; do |
| 6183 |
test -f "$ac_file" || continue |
| 6184 |
case $ac_file in |
| 6185 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 6186 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 6187 |
break;; |
| 6188 |
* ) break;; |
| 6189 |
esac |
| 6190 |
done |
| 6191 |
else $as_nop |
| 6192 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6193 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6194 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 6195 |
See \`config.log' for more details" "$LINENO" 5; } |
| 6196 |
fi |
| 6197 |
rm -f conftest conftest$ac_cv_exeext |
| 6198 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 6199 |
colorize_result "$ac_cv_exeext" ; } |
| 6200 |
|
| 6201 |
rm -f conftest.$ac_ext |
| 6202 |
EXEEXT=$ac_cv_exeext |
| 6203 |
ac_exeext=$EXEEXT |
| 6204 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6205 |
/* end confdefs.h. */ |
| 6206 |
#include <stdio.h> |
| 6207 |
int |
| 6208 |
main (void) |
| 6209 |
{ |
| 6210 |
FILE *f = fopen ("conftest.out", "w"); |
| 6211 |
return ferror (f) || fclose (f) != 0; |
| 6212 |
|
| 6213 |
; |
| 6214 |
return 0; |
| 6215 |
} |
| 6216 |
_ACEOF |
| 6217 |
ac_clean_files="$ac_clean_files conftest.out" |
| 6218 |
# Check that the compiler produces executables we can run. If not, either |
| 6219 |
# the compiler is broken, or we cross compile. |
| 6220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 6221 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 6222 |
if test "$cross_compiling" != yes; then |
| 6223 |
{ { ac_try="$ac_link" |
| 6224 |
case "(($ac_try" in |
| 6225 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6226 |
*) ac_try_echo=$ac_try;; |
| 6227 |
esac |
| 6228 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6229 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6230 |
(eval "$ac_link") 2>&5 |
| 6231 |
ac_status=$? |
| 6232 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6233 |
test $ac_status = 0; } |
| 6234 |
if { ac_try='./conftest$ac_cv_exeext' |
| 6235 |
{ { case "(($ac_try" in |
| 6236 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6237 |
*) ac_try_echo=$ac_try;; |
| 6238 |
esac |
| 6239 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6240 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6241 |
(eval "$ac_try") 2>&5 |
| 6242 |
ac_status=$? |
| 6243 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6244 |
test $ac_status = 0; }; }; then |
| 6245 |
cross_compiling=no |
| 6246 |
else |
| 6247 |
if test "$cross_compiling" = maybe; then |
| 6248 |
cross_compiling=yes |
| 6249 |
else |
| 6250 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6251 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6252 |
as_fn_error 77 "cannot run C compiled programs. |
| 6253 |
If you meant to cross compile, use \`--host'. |
| 6254 |
See \`config.log' for more details" "$LINENO" 5; } |
| 6255 |
fi |
| 6256 |
fi |
| 6257 |
fi |
| 6258 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 6259 |
colorize_result "$cross_compiling" ; } |
| 6260 |
|
| 6261 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 6262 |
ac_clean_files=$ac_clean_files_save |
| 6263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 6264 |
printf %s "checking for suffix of object files... " >&6; } |
| 6265 |
if test ${ac_cv_objext+y} |
| 6266 |
then : |
| 6267 |
printf %s "(cached) " >&6 |
| 6268 |
else $as_nop |
| 6269 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6270 |
/* end confdefs.h. */ |
| 6271 |
|
| 6272 |
int |
| 6273 |
main (void) |
| 6274 |
{ |
| 6275 |
|
| 6276 |
; |
| 6277 |
return 0; |
| 6278 |
} |
| 6279 |
_ACEOF |
| 6280 |
rm -f conftest.o conftest.obj |
| 6281 |
if { { ac_try="$ac_compile" |
| 6282 |
case "(($ac_try" in |
| 6283 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6284 |
*) ac_try_echo=$ac_try;; |
| 6285 |
esac |
| 6286 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6287 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6288 |
(eval "$ac_compile") 2>&5 |
| 6289 |
ac_status=$? |
| 6290 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6291 |
test $ac_status = 0; } |
| 6292 |
then : |
| 6293 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 6294 |
test -f "$ac_file" || continue; |
| 6295 |
case $ac_file in |
| 6296 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 6297 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 6298 |
break;; |
| 6299 |
esac |
| 6300 |
done |
| 6301 |
else $as_nop |
| 6302 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 6303 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 6304 |
|
| 6305 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 6306 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 6307 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 6308 |
See \`config.log' for more details" "$LINENO" 5; } |
| 6309 |
fi |
| 6310 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 6311 |
fi |
| 6312 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 6313 |
colorize_result "$ac_cv_objext" ; } |
| 6314 |
OBJEXT=$ac_cv_objext |
| 6315 |
ac_objext=$OBJEXT |
| 6316 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 6317 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 6318 |
if test ${ac_cv_c_compiler_gnu+y} |
| 6319 |
then : |
| 6320 |
printf %s "(cached) " >&6 |
| 6321 |
else $as_nop |
| 6322 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6323 |
/* end confdefs.h. */ |
| 6324 |
|
| 6325 |
int |
| 6326 |
main (void) |
| 6327 |
{ |
| 6328 |
#ifndef __GNUC__ |
| 6329 |
choke me |
| 6330 |
#endif |
| 6331 |
|
| 6332 |
; |
| 6333 |
return 0; |
| 6334 |
} |
| 6335 |
_ACEOF |
| 6336 |
if ac_fn_c_try_compile "$LINENO" |
| 6337 |
then : |
| 6338 |
ac_compiler_gnu=yes |
| 6339 |
else $as_nop |
| 6340 |
ac_compiler_gnu=no |
| 6341 |
fi |
| 6342 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6343 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 6344 |
|
| 6345 |
fi |
| 6346 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 6347 |
colorize_result "$ac_cv_c_compiler_gnu" ; } |
| 6348 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6349 |
|
| 6350 |
if test $ac_compiler_gnu = yes; then |
| 6351 |
GCC=yes |
| 6352 |
else |
| 6353 |
GCC= |
| 6354 |
fi |
| 6355 |
ac_test_CFLAGS=${CFLAGS+y} |
| 6356 |
ac_save_CFLAGS=$CFLAGS |
| 6357 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 6358 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 6359 |
if test ${ac_cv_prog_cc_g+y} |
| 6360 |
then : |
| 6361 |
printf %s "(cached) " >&6 |
| 6362 |
else $as_nop |
| 6363 |
ac_save_c_werror_flag=$ac_c_werror_flag |
| 6364 |
ac_c_werror_flag=yes |
| 6365 |
ac_cv_prog_cc_g=no |
| 6366 |
CFLAGS="-g" |
| 6367 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6368 |
/* end confdefs.h. */ |
| 6369 |
|
| 6370 |
int |
| 6371 |
main (void) |
| 6372 |
{ |
| 6373 |
|
| 6374 |
; |
| 6375 |
return 0; |
| 6376 |
} |
| 6377 |
_ACEOF |
| 6378 |
if ac_fn_c_try_compile "$LINENO" |
| 6379 |
then : |
| 6380 |
ac_cv_prog_cc_g=yes |
| 6381 |
else $as_nop |
| 6382 |
CFLAGS="" |
| 6383 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6384 |
/* end confdefs.h. */ |
| 6385 |
|
| 6386 |
int |
| 6387 |
main (void) |
| 6388 |
{ |
| 6389 |
|
| 6390 |
; |
| 6391 |
return 0; |
| 6392 |
} |
| 6393 |
_ACEOF |
| 6394 |
if ac_fn_c_try_compile "$LINENO" |
| 6395 |
then : |
| 6396 |
|
| 6397 |
else $as_nop |
| 6398 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 6399 |
CFLAGS="-g" |
| 6400 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6401 |
/* end confdefs.h. */ |
| 6402 |
|
| 6403 |
int |
| 6404 |
main (void) |
| 6405 |
{ |
| 6406 |
|
| 6407 |
; |
| 6408 |
return 0; |
| 6409 |
} |
| 6410 |
_ACEOF |
| 6411 |
if ac_fn_c_try_compile "$LINENO" |
| 6412 |
then : |
| 6413 |
ac_cv_prog_cc_g=yes |
| 6414 |
fi |
| 6415 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6416 |
fi |
| 6417 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6418 |
fi |
| 6419 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6420 |
ac_c_werror_flag=$ac_save_c_werror_flag |
| 6421 |
fi |
| 6422 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 6423 |
colorize_result "$ac_cv_prog_cc_g" ; } |
| 6424 |
if test $ac_test_CFLAGS; then |
| 6425 |
CFLAGS=$ac_save_CFLAGS |
| 6426 |
elif test $ac_cv_prog_cc_g = yes; then |
| 6427 |
if test "$GCC" = yes; then |
| 6428 |
CFLAGS="-g -O2" |
| 6429 |
else |
| 6430 |
CFLAGS="-g" |
| 6431 |
fi |
| 6432 |
else |
| 6433 |
if test "$GCC" = yes; then |
| 6434 |
CFLAGS="-O2" |
| 6435 |
else |
| 6436 |
CFLAGS= |
| 6437 |
fi |
| 6438 |
fi |
| 6439 |
ac_prog_cc_stdc=no |
| 6440 |
if test x$ac_prog_cc_stdc = xno |
| 6441 |
then : |
| 6442 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 6443 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 6444 |
if test ${ac_cv_prog_cc_c11+y} |
| 6445 |
then : |
| 6446 |
printf %s "(cached) " >&6 |
| 6447 |
else $as_nop |
| 6448 |
ac_cv_prog_cc_c11=no |
| 6449 |
ac_save_CC=$CC |
| 6450 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6451 |
/* end confdefs.h. */ |
| 6452 |
$ac_c_conftest_c11_program |
| 6453 |
_ACEOF |
| 6454 |
for ac_arg in '' -std=gnu11 |
| 6455 |
do |
| 6456 |
CC="$ac_save_CC $ac_arg" |
| 6457 |
if ac_fn_c_try_compile "$LINENO" |
| 6458 |
then : |
| 6459 |
ac_cv_prog_cc_c11=$ac_arg |
| 6460 |
fi |
| 6461 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 6462 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 6463 |
done |
| 6464 |
rm -f conftest.$ac_ext |
| 6465 |
CC=$ac_save_CC |
| 6466 |
fi |
| 6467 |
|
| 6468 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 6469 |
then : |
| 6470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6471 |
printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } |
| 6472 |
else $as_nop |
| 6473 |
if test "x$ac_cv_prog_cc_c11" = x |
| 6474 |
then : |
| 6475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6476 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 6477 |
else $as_nop |
| 6478 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 6479 |
colorize_result "$ac_cv_prog_cc_c11" ; } |
| 6480 |
CC="$CC $ac_cv_prog_cc_c11" |
| 6481 |
fi |
| 6482 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 6483 |
ac_prog_cc_stdc=c11 |
| 6484 |
fi |
| 6485 |
fi |
| 6486 |
if test x$ac_prog_cc_stdc = xno |
| 6487 |
then : |
| 6488 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 6489 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 6490 |
if test ${ac_cv_prog_cc_c99+y} |
| 6491 |
then : |
| 6492 |
printf %s "(cached) " >&6 |
| 6493 |
else $as_nop |
| 6494 |
ac_cv_prog_cc_c99=no |
| 6495 |
ac_save_CC=$CC |
| 6496 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6497 |
/* end confdefs.h. */ |
| 6498 |
$ac_c_conftest_c99_program |
| 6499 |
_ACEOF |
| 6500 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 6501 |
do |
| 6502 |
CC="$ac_save_CC $ac_arg" |
| 6503 |
if ac_fn_c_try_compile "$LINENO" |
| 6504 |
then : |
| 6505 |
ac_cv_prog_cc_c99=$ac_arg |
| 6506 |
fi |
| 6507 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 6508 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6509 |
done |
| 6510 |
rm -f conftest.$ac_ext |
| 6511 |
CC=$ac_save_CC |
| 6512 |
fi |
| 6513 |
|
| 6514 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 6515 |
then : |
| 6516 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6517 |
printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } |
| 6518 |
else $as_nop |
| 6519 |
if test "x$ac_cv_prog_cc_c99" = x |
| 6520 |
then : |
| 6521 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6522 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 6523 |
else $as_nop |
| 6524 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 6525 |
colorize_result "$ac_cv_prog_cc_c99" ; } |
| 6526 |
CC="$CC $ac_cv_prog_cc_c99" |
| 6527 |
fi |
| 6528 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6529 |
ac_prog_cc_stdc=c99 |
| 6530 |
fi |
| 6531 |
fi |
| 6532 |
if test x$ac_prog_cc_stdc = xno |
| 6533 |
then : |
| 6534 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 6535 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 6536 |
if test ${ac_cv_prog_cc_c89+y} |
| 6537 |
then : |
| 6538 |
printf %s "(cached) " >&6 |
| 6539 |
else $as_nop |
| 6540 |
ac_cv_prog_cc_c89=no |
| 6541 |
ac_save_CC=$CC |
| 6542 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6543 |
/* end confdefs.h. */ |
| 6544 |
$ac_c_conftest_c89_program |
| 6545 |
_ACEOF |
| 6546 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6547 |
do |
| 6548 |
CC="$ac_save_CC $ac_arg" |
| 6549 |
if ac_fn_c_try_compile "$LINENO" |
| 6550 |
then : |
| 6551 |
ac_cv_prog_cc_c89=$ac_arg |
| 6552 |
fi |
| 6553 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 6554 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6555 |
done |
| 6556 |
rm -f conftest.$ac_ext |
| 6557 |
CC=$ac_save_CC |
| 6558 |
fi |
| 6559 |
|
| 6560 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 6561 |
then : |
| 6562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6563 |
printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } |
| 6564 |
else $as_nop |
| 6565 |
if test "x$ac_cv_prog_cc_c89" = x |
| 6566 |
then : |
| 6567 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6568 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 6569 |
else $as_nop |
| 6570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6571 |
colorize_result "$ac_cv_prog_cc_c89" ; } |
| 6572 |
CC="$CC $ac_cv_prog_cc_c89" |
| 6573 |
fi |
| 6574 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6575 |
ac_prog_cc_stdc=c89 |
| 6576 |
fi |
| 6577 |
fi |
| 6578 |
|
| 6579 |
ac_ext=c |
| 6580 |
ac_cpp='$CPP $CPPFLAGS' |
| 6581 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6582 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6583 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6584 |
|
| 6585 |
|
| 6586 |
|
| 6587 |
|
| 6588 |
|
| 6589 |
|
| 6590 |
|
| 6591 |
|
| 6592 |
ac_ext=cpp |
| 6593 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 6594 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6595 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6596 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6597 |
if test -z "$CXX"; then |
| 6598 |
if test -n "$CCC"; then |
| 6599 |
CXX=$CCC |
| 6600 |
else |
| 6601 |
if test -n "$ac_tool_prefix"; then |
| 6602 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 6603 |
do |
| 6604 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 6605 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 6606 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6607 |
printf %s "checking for $ac_word... " >&6; } |
| 6608 |
if test ${ac_cv_prog_CXX+y} |
| 6609 |
then : |
| 6610 |
printf %s "(cached) " >&6 |
| 6611 |
else $as_nop |
| 6612 |
if test -n "$CXX"; then |
| 6613 |
ac_cv_prog_CXX="$CXX" # Let the user override the test. |
| 6614 |
else |
| 6615 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6616 |
for as_dir in $PATH |
| 6617 |
do |
| 6618 |
IFS=$as_save_IFS |
| 6619 |
case $as_dir in #((( |
| 6620 |
'') as_dir=./ ;; |
| 6621 |
*/) ;; |
| 6622 |
*) as_dir=$as_dir/ ;; |
| 6623 |
esac |
| 6624 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6625 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6626 |
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
| 6627 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6628 |
break 2 |
| 6629 |
fi |
| 6630 |
done |
| 6631 |
done |
| 6632 |
IFS=$as_save_IFS |
| 6633 |
|
| 6634 |
fi |
| 6635 |
fi |
| 6636 |
CXX=$ac_cv_prog_CXX |
| 6637 |
if test -n "$CXX"; then |
| 6638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
| 6639 |
colorize_result "$CXX" ; } |
| 6640 |
else |
| 6641 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6642 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 6643 |
fi |
| 6644 |
|
| 6645 |
|
| 6646 |
test -n "$CXX" && break |
| 6647 |
done |
| 6648 |
fi |
| 6649 |
if test -z "$CXX"; then |
| 6650 |
ac_ct_CXX=$CXX |
| 6651 |
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
| 6652 |
do |
| 6653 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 6654 |
set dummy $ac_prog; ac_word=$2 |
| 6655 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6656 |
printf %s "checking for $ac_word... " >&6; } |
| 6657 |
if test ${ac_cv_prog_ac_ct_CXX+y} |
| 6658 |
then : |
| 6659 |
printf %s "(cached) " >&6 |
| 6660 |
else $as_nop |
| 6661 |
if test -n "$ac_ct_CXX"; then |
| 6662 |
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
| 6663 |
else |
| 6664 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6665 |
for as_dir in $PATH |
| 6666 |
do |
| 6667 |
IFS=$as_save_IFS |
| 6668 |
case $as_dir in #((( |
| 6669 |
'') as_dir=./ ;; |
| 6670 |
*/) ;; |
| 6671 |
*) as_dir=$as_dir/ ;; |
| 6672 |
esac |
| 6673 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 6674 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 6675 |
ac_cv_prog_ac_ct_CXX="$ac_prog" |
| 6676 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 6677 |
break 2 |
| 6678 |
fi |
| 6679 |
done |
| 6680 |
done |
| 6681 |
IFS=$as_save_IFS |
| 6682 |
|
| 6683 |
fi |
| 6684 |
fi |
| 6685 |
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
| 6686 |
if test -n "$ac_ct_CXX"; then |
| 6687 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
| 6688 |
colorize_result "$ac_ct_CXX" ; } |
| 6689 |
else |
| 6690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6691 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 6692 |
fi |
| 6693 |
|
| 6694 |
|
| 6695 |
test -n "$ac_ct_CXX" && break |
| 6696 |
done |
| 6697 |
|
| 6698 |
if test "x$ac_ct_CXX" = x; then |
| 6699 |
CXX="g++" |
| 6700 |
else |
| 6701 |
case $cross_compiling:$ac_tool_warned in |
| 6702 |
yes:) |
| 6703 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6704 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6705 |
ac_tool_warned=yes ;; |
| 6706 |
esac |
| 6707 |
CXX=$ac_ct_CXX |
| 6708 |
fi |
| 6709 |
fi |
| 6710 |
|
| 6711 |
fi |
| 6712 |
fi |
| 6713 |
# Provide some information about the compiler. |
| 6714 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
| 6715 |
set X $ac_compile |
| 6716 |
ac_compiler=$2 |
| 6717 |
for ac_option in --version -v -V -qversion; do |
| 6718 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 6719 |
case "(($ac_try" in |
| 6720 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 6721 |
*) ac_try_echo=$ac_try;; |
| 6722 |
esac |
| 6723 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 6724 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 6725 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 6726 |
ac_status=$? |
| 6727 |
if test -s conftest.err; then |
| 6728 |
sed '10a\ |
| 6729 |
... rest of stderr output deleted ... |
| 6730 |
10q' conftest.err >conftest.er1 |
| 6731 |
cat conftest.er1 >&5 |
| 6732 |
fi |
| 6733 |
rm -f conftest.er1 conftest.err |
| 6734 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 6735 |
test $ac_status = 0; } |
| 6736 |
done |
| 6737 |
|
| 6738 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
| 6739 |
printf %s "checking whether the compiler supports GNU C++... " >&6; } |
| 6740 |
if test ${ac_cv_cxx_compiler_gnu+y} |
| 6741 |
then : |
| 6742 |
printf %s "(cached) " >&6 |
| 6743 |
else $as_nop |
| 6744 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6745 |
/* end confdefs.h. */ |
| 6746 |
|
| 6747 |
int |
| 6748 |
main (void) |
| 6749 |
{ |
| 6750 |
#ifndef __GNUC__ |
| 6751 |
choke me |
| 6752 |
#endif |
| 6753 |
|
| 6754 |
; |
| 6755 |
return 0; |
| 6756 |
} |
| 6757 |
_ACEOF |
| 6758 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6759 |
then : |
| 6760 |
ac_compiler_gnu=yes |
| 6761 |
else $as_nop |
| 6762 |
ac_compiler_gnu=no |
| 6763 |
fi |
| 6764 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6765 |
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
| 6766 |
|
| 6767 |
fi |
| 6768 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
| 6769 |
colorize_result "$ac_cv_cxx_compiler_gnu" ; } |
| 6770 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 6771 |
|
| 6772 |
if test $ac_compiler_gnu = yes; then |
| 6773 |
GXX=yes |
| 6774 |
else |
| 6775 |
GXX= |
| 6776 |
fi |
| 6777 |
ac_test_CXXFLAGS=${CXXFLAGS+y} |
| 6778 |
ac_save_CXXFLAGS=$CXXFLAGS |
| 6779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
| 6780 |
printf %s "checking whether $CXX accepts -g... " >&6; } |
| 6781 |
if test ${ac_cv_prog_cxx_g+y} |
| 6782 |
then : |
| 6783 |
printf %s "(cached) " >&6 |
| 6784 |
else $as_nop |
| 6785 |
ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
| 6786 |
ac_cxx_werror_flag=yes |
| 6787 |
ac_cv_prog_cxx_g=no |
| 6788 |
CXXFLAGS="-g" |
| 6789 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6790 |
/* end confdefs.h. */ |
| 6791 |
|
| 6792 |
int |
| 6793 |
main (void) |
| 6794 |
{ |
| 6795 |
|
| 6796 |
; |
| 6797 |
return 0; |
| 6798 |
} |
| 6799 |
_ACEOF |
| 6800 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6801 |
then : |
| 6802 |
ac_cv_prog_cxx_g=yes |
| 6803 |
else $as_nop |
| 6804 |
CXXFLAGS="" |
| 6805 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6806 |
/* end confdefs.h. */ |
| 6807 |
|
| 6808 |
int |
| 6809 |
main (void) |
| 6810 |
{ |
| 6811 |
|
| 6812 |
; |
| 6813 |
return 0; |
| 6814 |
} |
| 6815 |
_ACEOF |
| 6816 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6817 |
then : |
| 6818 |
|
| 6819 |
else $as_nop |
| 6820 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6821 |
CXXFLAGS="-g" |
| 6822 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6823 |
/* end confdefs.h. */ |
| 6824 |
|
| 6825 |
int |
| 6826 |
main (void) |
| 6827 |
{ |
| 6828 |
|
| 6829 |
; |
| 6830 |
return 0; |
| 6831 |
} |
| 6832 |
_ACEOF |
| 6833 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6834 |
then : |
| 6835 |
ac_cv_prog_cxx_g=yes |
| 6836 |
fi |
| 6837 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6838 |
fi |
| 6839 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6840 |
fi |
| 6841 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6842 |
ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
| 6843 |
fi |
| 6844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
| 6845 |
colorize_result "$ac_cv_prog_cxx_g" ; } |
| 6846 |
if test $ac_test_CXXFLAGS; then |
| 6847 |
CXXFLAGS=$ac_save_CXXFLAGS |
| 6848 |
elif test $ac_cv_prog_cxx_g = yes; then |
| 6849 |
if test "$GXX" = yes; then |
| 6850 |
CXXFLAGS="-g -O2" |
| 6851 |
else |
| 6852 |
CXXFLAGS="-g" |
| 6853 |
fi |
| 6854 |
else |
| 6855 |
if test "$GXX" = yes; then |
| 6856 |
CXXFLAGS="-O2" |
| 6857 |
else |
| 6858 |
CXXFLAGS= |
| 6859 |
fi |
| 6860 |
fi |
| 6861 |
ac_prog_cxx_stdcxx=no |
| 6862 |
if test x$ac_prog_cxx_stdcxx = xno |
| 6863 |
then : |
| 6864 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 |
| 6865 |
printf %s "checking for $CXX option to enable C++11 features... " >&6; } |
| 6866 |
if test ${ac_cv_prog_cxx_cxx11+y} |
| 6867 |
then : |
| 6868 |
printf %s "(cached) " >&6 |
| 6869 |
else $as_nop |
| 6870 |
ac_cv_prog_cxx_cxx11=no |
| 6871 |
ac_save_CXX=$CXX |
| 6872 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6873 |
/* end confdefs.h. */ |
| 6874 |
$ac_cxx_conftest_cxx11_program |
| 6875 |
_ACEOF |
| 6876 |
for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA |
| 6877 |
do |
| 6878 |
CXX="$ac_save_CXX $ac_arg" |
| 6879 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6880 |
then : |
| 6881 |
ac_cv_prog_cxx_cxx11=$ac_arg |
| 6882 |
fi |
| 6883 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 6884 |
test "x$ac_cv_prog_cxx_cxx11" != "xno" && break |
| 6885 |
done |
| 6886 |
rm -f conftest.$ac_ext |
| 6887 |
CXX=$ac_save_CXX |
| 6888 |
fi |
| 6889 |
|
| 6890 |
if test "x$ac_cv_prog_cxx_cxx11" = xno |
| 6891 |
then : |
| 6892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6893 |
printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } |
| 6894 |
else $as_nop |
| 6895 |
if test "x$ac_cv_prog_cxx_cxx11" = x |
| 6896 |
then : |
| 6897 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6898 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 6899 |
else $as_nop |
| 6900 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 |
| 6901 |
colorize_result "$ac_cv_prog_cxx_cxx11" ; } |
| 6902 |
CXX="$CXX $ac_cv_prog_cxx_cxx11" |
| 6903 |
fi |
| 6904 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 |
| 6905 |
ac_prog_cxx_stdcxx=cxx11 |
| 6906 |
fi |
| 6907 |
fi |
| 6908 |
if test x$ac_prog_cxx_stdcxx = xno |
| 6909 |
then : |
| 6910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 |
| 6911 |
printf %s "checking for $CXX option to enable C++98 features... " >&6; } |
| 6912 |
if test ${ac_cv_prog_cxx_cxx98+y} |
| 6913 |
then : |
| 6914 |
printf %s "(cached) " >&6 |
| 6915 |
else $as_nop |
| 6916 |
ac_cv_prog_cxx_cxx98=no |
| 6917 |
ac_save_CXX=$CXX |
| 6918 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6919 |
/* end confdefs.h. */ |
| 6920 |
$ac_cxx_conftest_cxx98_program |
| 6921 |
_ACEOF |
| 6922 |
for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA |
| 6923 |
do |
| 6924 |
CXX="$ac_save_CXX $ac_arg" |
| 6925 |
if ac_fn_cxx_try_compile "$LINENO" |
| 6926 |
then : |
| 6927 |
ac_cv_prog_cxx_cxx98=$ac_arg |
| 6928 |
fi |
| 6929 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 6930 |
test "x$ac_cv_prog_cxx_cxx98" != "xno" && break |
| 6931 |
done |
| 6932 |
rm -f conftest.$ac_ext |
| 6933 |
CXX=$ac_save_CXX |
| 6934 |
fi |
| 6935 |
|
| 6936 |
if test "x$ac_cv_prog_cxx_cxx98" = xno |
| 6937 |
then : |
| 6938 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6939 |
printf "%s\n" "${msg_result_other}unsupported${msg_reset}" >&6 ; } |
| 6940 |
else $as_nop |
| 6941 |
if test "x$ac_cv_prog_cxx_cxx98" = x |
| 6942 |
then : |
| 6943 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6944 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 6945 |
else $as_nop |
| 6946 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 |
| 6947 |
colorize_result "$ac_cv_prog_cxx_cxx98" ; } |
| 6948 |
CXX="$CXX $ac_cv_prog_cxx_cxx98" |
| 6949 |
fi |
| 6950 |
ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 |
| 6951 |
ac_prog_cxx_stdcxx=cxx98 |
| 6952 |
fi |
| 6953 |
fi |
| 6954 |
|
| 6955 |
ac_ext=c |
| 6956 |
ac_cpp='$CPP $CPPFLAGS' |
| 6957 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6958 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6959 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6960 |
|
| 6961 |
ac_ext=c |
| 6962 |
ac_cpp='$CPP $CPPFLAGS' |
| 6963 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 6964 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 6965 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 6966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 6967 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 6968 |
# On Suns, sometimes $CPP names a directory. |
| 6969 |
if test -n "$CPP" && test -d "$CPP"; then |
| 6970 |
CPP= |
| 6971 |
fi |
| 6972 |
if test -z "$CPP"; then |
| 6973 |
if test ${ac_cv_prog_CPP+y} |
| 6974 |
then : |
| 6975 |
printf %s "(cached) " >&6 |
| 6976 |
else $as_nop |
| 6977 |
# Double quotes because $CC needs to be expanded |
| 6978 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 6979 |
do |
| 6980 |
ac_preproc_ok=false |
| 6981 |
for ac_c_preproc_warn_flag in '' yes |
| 6982 |
do |
| 6983 |
# Use a header file that comes with gcc, so configuring glibc |
| 6984 |
# with a fresh cross-compiler works. |
| 6985 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 6986 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 6987 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6988 |
/* end confdefs.h. */ |
| 6989 |
#include <limits.h> |
| 6990 |
Syntax error |
| 6991 |
_ACEOF |
| 6992 |
if ac_fn_c_try_cpp "$LINENO" |
| 6993 |
then : |
| 6994 |
|
| 6995 |
else $as_nop |
| 6996 |
# Broken: fails on valid input. |
| 6997 |
continue |
| 6998 |
fi |
| 6999 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7000 |
|
| 7001 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7002 |
# can be detected and how. |
| 7003 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7004 |
/* end confdefs.h. */ |
| 7005 |
#include <ac_nonexistent.h> |
| 7006 |
_ACEOF |
| 7007 |
if ac_fn_c_try_cpp "$LINENO" |
| 7008 |
then : |
| 7009 |
# Broken: success on invalid input. |
| 7010 |
continue |
| 7011 |
else $as_nop |
| 7012 |
# Passes both tests. |
| 7013 |
ac_preproc_ok=: |
| 7014 |
break |
| 7015 |
fi |
| 7016 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7017 |
|
| 7018 |
done |
| 7019 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7020 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7021 |
if $ac_preproc_ok |
| 7022 |
then : |
| 7023 |
break |
| 7024 |
fi |
| 7025 |
|
| 7026 |
done |
| 7027 |
ac_cv_prog_CPP=$CPP |
| 7028 |
|
| 7029 |
fi |
| 7030 |
CPP=$ac_cv_prog_CPP |
| 7031 |
else |
| 7032 |
ac_cv_prog_CPP=$CPP |
| 7033 |
fi |
| 7034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 7035 |
colorize_result "$CPP" ; } |
| 7036 |
ac_preproc_ok=false |
| 7037 |
for ac_c_preproc_warn_flag in '' yes |
| 7038 |
do |
| 7039 |
# Use a header file that comes with gcc, so configuring glibc |
| 7040 |
# with a fresh cross-compiler works. |
| 7041 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 7042 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 7043 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7044 |
/* end confdefs.h. */ |
| 7045 |
#include <limits.h> |
| 7046 |
Syntax error |
| 7047 |
_ACEOF |
| 7048 |
if ac_fn_c_try_cpp "$LINENO" |
| 7049 |
then : |
| 7050 |
|
| 7051 |
else $as_nop |
| 7052 |
# Broken: fails on valid input. |
| 7053 |
continue |
| 7054 |
fi |
| 7055 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7056 |
|
| 7057 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 7058 |
# can be detected and how. |
| 7059 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7060 |
/* end confdefs.h. */ |
| 7061 |
#include <ac_nonexistent.h> |
| 7062 |
_ACEOF |
| 7063 |
if ac_fn_c_try_cpp "$LINENO" |
| 7064 |
then : |
| 7065 |
# Broken: success on invalid input. |
| 7066 |
continue |
| 7067 |
else $as_nop |
| 7068 |
# Passes both tests. |
| 7069 |
ac_preproc_ok=: |
| 7070 |
break |
| 7071 |
fi |
| 7072 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 7073 |
|
| 7074 |
done |
| 7075 |
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 7076 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 7077 |
if $ac_preproc_ok |
| 7078 |
then : |
| 7079 |
|
| 7080 |
else $as_nop |
| 7081 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 7082 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 7083 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 7084 |
See \`config.log' for more details" "$LINENO" 5; } |
| 7085 |
fi |
| 7086 |
|
| 7087 |
ac_ext=c |
| 7088 |
ac_cpp='$CPP $CPPFLAGS' |
| 7089 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 7090 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 7091 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 7092 |
|
| 7093 |
if test -n "$ac_tool_prefix"; then |
| 7094 |
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 7095 |
set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 7096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7097 |
printf %s "checking for $ac_word... " >&6; } |
| 7098 |
if test ${ac_cv_prog_RANLIB+y} |
| 7099 |
then : |
| 7100 |
printf %s "(cached) " >&6 |
| 7101 |
else $as_nop |
| 7102 |
if test -n "$RANLIB"; then |
| 7103 |
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 7104 |
else |
| 7105 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7106 |
for as_dir in $PATH |
| 7107 |
do |
| 7108 |
IFS=$as_save_IFS |
| 7109 |
case $as_dir in #((( |
| 7110 |
'') as_dir=./ ;; |
| 7111 |
*/) ;; |
| 7112 |
*) as_dir=$as_dir/ ;; |
| 7113 |
esac |
| 7114 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7115 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7116 |
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 7117 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7118 |
break 2 |
| 7119 |
fi |
| 7120 |
done |
| 7121 |
done |
| 7122 |
IFS=$as_save_IFS |
| 7123 |
|
| 7124 |
fi |
| 7125 |
fi |
| 7126 |
RANLIB=$ac_cv_prog_RANLIB |
| 7127 |
if test -n "$RANLIB"; then |
| 7128 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 7129 |
colorize_result "$RANLIB" ; } |
| 7130 |
else |
| 7131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7132 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7133 |
fi |
| 7134 |
|
| 7135 |
|
| 7136 |
fi |
| 7137 |
if test -z "$ac_cv_prog_RANLIB"; then |
| 7138 |
ac_ct_RANLIB=$RANLIB |
| 7139 |
# Extract the first word of "ranlib", so it can be a program name with args. |
| 7140 |
set dummy ranlib; ac_word=$2 |
| 7141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7142 |
printf %s "checking for $ac_word... " >&6; } |
| 7143 |
if test ${ac_cv_prog_ac_ct_RANLIB+y} |
| 7144 |
then : |
| 7145 |
printf %s "(cached) " >&6 |
| 7146 |
else $as_nop |
| 7147 |
if test -n "$ac_ct_RANLIB"; then |
| 7148 |
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 7149 |
else |
| 7150 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7151 |
for as_dir in $PATH |
| 7152 |
do |
| 7153 |
IFS=$as_save_IFS |
| 7154 |
case $as_dir in #((( |
| 7155 |
'') as_dir=./ ;; |
| 7156 |
*/) ;; |
| 7157 |
*) as_dir=$as_dir/ ;; |
| 7158 |
esac |
| 7159 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7160 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7161 |
ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 7162 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7163 |
break 2 |
| 7164 |
fi |
| 7165 |
done |
| 7166 |
done |
| 7167 |
IFS=$as_save_IFS |
| 7168 |
|
| 7169 |
fi |
| 7170 |
fi |
| 7171 |
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 7172 |
if test -n "$ac_ct_RANLIB"; then |
| 7173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 7174 |
colorize_result "$ac_ct_RANLIB" ; } |
| 7175 |
else |
| 7176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7177 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7178 |
fi |
| 7179 |
|
| 7180 |
if test "x$ac_ct_RANLIB" = x; then |
| 7181 |
RANLIB=":" |
| 7182 |
else |
| 7183 |
case $cross_compiling:$ac_tool_warned in |
| 7184 |
yes:) |
| 7185 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7186 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7187 |
ac_tool_warned=yes ;; |
| 7188 |
esac |
| 7189 |
RANLIB=$ac_ct_RANLIB |
| 7190 |
fi |
| 7191 |
else |
| 7192 |
RANLIB="$ac_cv_prog_RANLIB" |
| 7193 |
fi |
| 7194 |
|
| 7195 |
if test -n "$ac_tool_prefix"; then |
| 7196 |
for ac_prog in gar ar |
| 7197 |
do |
| 7198 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7199 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7201 |
printf %s "checking for $ac_word... " >&6; } |
| 7202 |
if test ${ac_cv_prog_AR+y} |
| 7203 |
then : |
| 7204 |
printf %s "(cached) " >&6 |
| 7205 |
else $as_nop |
| 7206 |
if test -n "$AR"; then |
| 7207 |
ac_cv_prog_AR="$AR" # Let the user override the test. |
| 7208 |
else |
| 7209 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7210 |
for as_dir in $PATH |
| 7211 |
do |
| 7212 |
IFS=$as_save_IFS |
| 7213 |
case $as_dir in #((( |
| 7214 |
'') as_dir=./ ;; |
| 7215 |
*/) ;; |
| 7216 |
*) as_dir=$as_dir/ ;; |
| 7217 |
esac |
| 7218 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7219 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7220 |
ac_cv_prog_AR="$ac_tool_prefix$ac_prog" |
| 7221 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7222 |
break 2 |
| 7223 |
fi |
| 7224 |
done |
| 7225 |
done |
| 7226 |
IFS=$as_save_IFS |
| 7227 |
|
| 7228 |
fi |
| 7229 |
fi |
| 7230 |
AR=$ac_cv_prog_AR |
| 7231 |
if test -n "$AR"; then |
| 7232 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 7233 |
colorize_result "$AR" ; } |
| 7234 |
else |
| 7235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7236 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7237 |
fi |
| 7238 |
|
| 7239 |
|
| 7240 |
test -n "$AR" && break |
| 7241 |
done |
| 7242 |
fi |
| 7243 |
if test -z "$AR"; then |
| 7244 |
ac_ct_AR=$AR |
| 7245 |
for ac_prog in gar ar |
| 7246 |
do |
| 7247 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7248 |
set dummy $ac_prog; ac_word=$2 |
| 7249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7250 |
printf %s "checking for $ac_word... " >&6; } |
| 7251 |
if test ${ac_cv_prog_ac_ct_AR+y} |
| 7252 |
then : |
| 7253 |
printf %s "(cached) " >&6 |
| 7254 |
else $as_nop |
| 7255 |
if test -n "$ac_ct_AR"; then |
| 7256 |
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 7257 |
else |
| 7258 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7259 |
for as_dir in $PATH |
| 7260 |
do |
| 7261 |
IFS=$as_save_IFS |
| 7262 |
case $as_dir in #((( |
| 7263 |
'') as_dir=./ ;; |
| 7264 |
*/) ;; |
| 7265 |
*) as_dir=$as_dir/ ;; |
| 7266 |
esac |
| 7267 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7268 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7269 |
ac_cv_prog_ac_ct_AR="$ac_prog" |
| 7270 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7271 |
break 2 |
| 7272 |
fi |
| 7273 |
done |
| 7274 |
done |
| 7275 |
IFS=$as_save_IFS |
| 7276 |
|
| 7277 |
fi |
| 7278 |
fi |
| 7279 |
ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 7280 |
if test -n "$ac_ct_AR"; then |
| 7281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 7282 |
colorize_result "$ac_ct_AR" ; } |
| 7283 |
else |
| 7284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7285 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7286 |
fi |
| 7287 |
|
| 7288 |
|
| 7289 |
test -n "$ac_ct_AR" && break |
| 7290 |
done |
| 7291 |
|
| 7292 |
if test "x$ac_ct_AR" = x; then |
| 7293 |
AR="" |
| 7294 |
else |
| 7295 |
case $cross_compiling:$ac_tool_warned in |
| 7296 |
yes:) |
| 7297 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7298 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7299 |
ac_tool_warned=yes ;; |
| 7300 |
esac |
| 7301 |
AR=$ac_ct_AR |
| 7302 |
fi |
| 7303 |
fi |
| 7304 |
|
| 7305 |
if test -n "$ac_tool_prefix"; then |
| 7306 |
for ac_prog in gas as |
| 7307 |
do |
| 7308 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7309 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7311 |
printf %s "checking for $ac_word... " >&6; } |
| 7312 |
if test ${ac_cv_prog_AS+y} |
| 7313 |
then : |
| 7314 |
printf %s "(cached) " >&6 |
| 7315 |
else $as_nop |
| 7316 |
if test -n "$AS"; then |
| 7317 |
ac_cv_prog_AS="$AS" # Let the user override the test. |
| 7318 |
else |
| 7319 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7320 |
for as_dir in $PATH |
| 7321 |
do |
| 7322 |
IFS=$as_save_IFS |
| 7323 |
case $as_dir in #((( |
| 7324 |
'') as_dir=./ ;; |
| 7325 |
*/) ;; |
| 7326 |
*) as_dir=$as_dir/ ;; |
| 7327 |
esac |
| 7328 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7329 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7330 |
ac_cv_prog_AS="$ac_tool_prefix$ac_prog" |
| 7331 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7332 |
break 2 |
| 7333 |
fi |
| 7334 |
done |
| 7335 |
done |
| 7336 |
IFS=$as_save_IFS |
| 7337 |
|
| 7338 |
fi |
| 7339 |
fi |
| 7340 |
AS=$ac_cv_prog_AS |
| 7341 |
if test -n "$AS"; then |
| 7342 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 |
| 7343 |
colorize_result "$AS" ; } |
| 7344 |
else |
| 7345 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7346 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7347 |
fi |
| 7348 |
|
| 7349 |
|
| 7350 |
test -n "$AS" && break |
| 7351 |
done |
| 7352 |
fi |
| 7353 |
if test -z "$AS"; then |
| 7354 |
ac_ct_AS=$AS |
| 7355 |
for ac_prog in gas as |
| 7356 |
do |
| 7357 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7358 |
set dummy $ac_prog; ac_word=$2 |
| 7359 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7360 |
printf %s "checking for $ac_word... " >&6; } |
| 7361 |
if test ${ac_cv_prog_ac_ct_AS+y} |
| 7362 |
then : |
| 7363 |
printf %s "(cached) " >&6 |
| 7364 |
else $as_nop |
| 7365 |
if test -n "$ac_ct_AS"; then |
| 7366 |
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. |
| 7367 |
else |
| 7368 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7369 |
for as_dir in $PATH |
| 7370 |
do |
| 7371 |
IFS=$as_save_IFS |
| 7372 |
case $as_dir in #((( |
| 7373 |
'') as_dir=./ ;; |
| 7374 |
*/) ;; |
| 7375 |
*) as_dir=$as_dir/ ;; |
| 7376 |
esac |
| 7377 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7378 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7379 |
ac_cv_prog_ac_ct_AS="$ac_prog" |
| 7380 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7381 |
break 2 |
| 7382 |
fi |
| 7383 |
done |
| 7384 |
done |
| 7385 |
IFS=$as_save_IFS |
| 7386 |
|
| 7387 |
fi |
| 7388 |
fi |
| 7389 |
ac_ct_AS=$ac_cv_prog_ac_ct_AS |
| 7390 |
if test -n "$ac_ct_AS"; then |
| 7391 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 |
| 7392 |
colorize_result "$ac_ct_AS" ; } |
| 7393 |
else |
| 7394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7395 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7396 |
fi |
| 7397 |
|
| 7398 |
|
| 7399 |
test -n "$ac_ct_AS" && break |
| 7400 |
done |
| 7401 |
|
| 7402 |
if test "x$ac_ct_AS" = x; then |
| 7403 |
AS="" |
| 7404 |
else |
| 7405 |
case $cross_compiling:$ac_tool_warned in |
| 7406 |
yes:) |
| 7407 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7408 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7409 |
ac_tool_warned=yes ;; |
| 7410 |
esac |
| 7411 |
AS=$ac_ct_AS |
| 7412 |
fi |
| 7413 |
fi |
| 7414 |
|
| 7415 |
if test -n "$ac_tool_prefix"; then |
| 7416 |
for ac_prog in gld ld |
| 7417 |
do |
| 7418 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7419 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7421 |
printf %s "checking for $ac_word... " >&6; } |
| 7422 |
if test ${ac_cv_prog_LD+y} |
| 7423 |
then : |
| 7424 |
printf %s "(cached) " >&6 |
| 7425 |
else $as_nop |
| 7426 |
if test -n "$LD"; then |
| 7427 |
ac_cv_prog_LD="$LD" # Let the user override the test. |
| 7428 |
else |
| 7429 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7430 |
for as_dir in $PATH |
| 7431 |
do |
| 7432 |
IFS=$as_save_IFS |
| 7433 |
case $as_dir in #((( |
| 7434 |
'') as_dir=./ ;; |
| 7435 |
*/) ;; |
| 7436 |
*) as_dir=$as_dir/ ;; |
| 7437 |
esac |
| 7438 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7439 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7440 |
ac_cv_prog_LD="$ac_tool_prefix$ac_prog" |
| 7441 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7442 |
break 2 |
| 7443 |
fi |
| 7444 |
done |
| 7445 |
done |
| 7446 |
IFS=$as_save_IFS |
| 7447 |
|
| 7448 |
fi |
| 7449 |
fi |
| 7450 |
LD=$ac_cv_prog_LD |
| 7451 |
if test -n "$LD"; then |
| 7452 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
| 7453 |
colorize_result "$LD" ; } |
| 7454 |
else |
| 7455 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7456 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7457 |
fi |
| 7458 |
|
| 7459 |
|
| 7460 |
test -n "$LD" && break |
| 7461 |
done |
| 7462 |
fi |
| 7463 |
if test -z "$LD"; then |
| 7464 |
ac_ct_LD=$LD |
| 7465 |
for ac_prog in gld ld |
| 7466 |
do |
| 7467 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7468 |
set dummy $ac_prog; ac_word=$2 |
| 7469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7470 |
printf %s "checking for $ac_word... " >&6; } |
| 7471 |
if test ${ac_cv_prog_ac_ct_LD+y} |
| 7472 |
then : |
| 7473 |
printf %s "(cached) " >&6 |
| 7474 |
else $as_nop |
| 7475 |
if test -n "$ac_ct_LD"; then |
| 7476 |
ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test. |
| 7477 |
else |
| 7478 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7479 |
for as_dir in $PATH |
| 7480 |
do |
| 7481 |
IFS=$as_save_IFS |
| 7482 |
case $as_dir in #((( |
| 7483 |
'') as_dir=./ ;; |
| 7484 |
*/) ;; |
| 7485 |
*) as_dir=$as_dir/ ;; |
| 7486 |
esac |
| 7487 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7488 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7489 |
ac_cv_prog_ac_ct_LD="$ac_prog" |
| 7490 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7491 |
break 2 |
| 7492 |
fi |
| 7493 |
done |
| 7494 |
done |
| 7495 |
IFS=$as_save_IFS |
| 7496 |
|
| 7497 |
fi |
| 7498 |
fi |
| 7499 |
ac_ct_LD=$ac_cv_prog_ac_ct_LD |
| 7500 |
if test -n "$ac_ct_LD"; then |
| 7501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5 |
| 7502 |
colorize_result "$ac_ct_LD" ; } |
| 7503 |
else |
| 7504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7505 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7506 |
fi |
| 7507 |
|
| 7508 |
|
| 7509 |
test -n "$ac_ct_LD" && break |
| 7510 |
done |
| 7511 |
|
| 7512 |
if test "x$ac_ct_LD" = x; then |
| 7513 |
LD="" |
| 7514 |
else |
| 7515 |
case $cross_compiling:$ac_tool_warned in |
| 7516 |
yes:) |
| 7517 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7518 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7519 |
ac_tool_warned=yes ;; |
| 7520 |
esac |
| 7521 |
LD=$ac_ct_LD |
| 7522 |
fi |
| 7523 |
fi |
| 7524 |
# ... try gold ? |
| 7525 |
if test -n "$ac_tool_prefix"; then |
| 7526 |
for ac_prog in gnm nm |
| 7527 |
do |
| 7528 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7529 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7530 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7531 |
printf %s "checking for $ac_word... " >&6; } |
| 7532 |
if test ${ac_cv_prog_NM+y} |
| 7533 |
then : |
| 7534 |
printf %s "(cached) " >&6 |
| 7535 |
else $as_nop |
| 7536 |
if test -n "$NM"; then |
| 7537 |
ac_cv_prog_NM="$NM" # Let the user override the test. |
| 7538 |
else |
| 7539 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7540 |
for as_dir in $PATH |
| 7541 |
do |
| 7542 |
IFS=$as_save_IFS |
| 7543 |
case $as_dir in #((( |
| 7544 |
'') as_dir=./ ;; |
| 7545 |
*/) ;; |
| 7546 |
*) as_dir=$as_dir/ ;; |
| 7547 |
esac |
| 7548 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7549 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7550 |
ac_cv_prog_NM="$ac_tool_prefix$ac_prog" |
| 7551 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7552 |
break 2 |
| 7553 |
fi |
| 7554 |
done |
| 7555 |
done |
| 7556 |
IFS=$as_save_IFS |
| 7557 |
|
| 7558 |
fi |
| 7559 |
fi |
| 7560 |
NM=$ac_cv_prog_NM |
| 7561 |
if test -n "$NM"; then |
| 7562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 |
| 7563 |
colorize_result "$NM" ; } |
| 7564 |
else |
| 7565 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7566 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7567 |
fi |
| 7568 |
|
| 7569 |
|
| 7570 |
test -n "$NM" && break |
| 7571 |
done |
| 7572 |
fi |
| 7573 |
if test -z "$NM"; then |
| 7574 |
ac_ct_NM=$NM |
| 7575 |
for ac_prog in gnm nm |
| 7576 |
do |
| 7577 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7578 |
set dummy $ac_prog; ac_word=$2 |
| 7579 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7580 |
printf %s "checking for $ac_word... " >&6; } |
| 7581 |
if test ${ac_cv_prog_ac_ct_NM+y} |
| 7582 |
then : |
| 7583 |
printf %s "(cached) " >&6 |
| 7584 |
else $as_nop |
| 7585 |
if test -n "$ac_ct_NM"; then |
| 7586 |
ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. |
| 7587 |
else |
| 7588 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7589 |
for as_dir in $PATH |
| 7590 |
do |
| 7591 |
IFS=$as_save_IFS |
| 7592 |
case $as_dir in #((( |
| 7593 |
'') as_dir=./ ;; |
| 7594 |
*/) ;; |
| 7595 |
*) as_dir=$as_dir/ ;; |
| 7596 |
esac |
| 7597 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7598 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7599 |
ac_cv_prog_ac_ct_NM="$ac_prog" |
| 7600 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7601 |
break 2 |
| 7602 |
fi |
| 7603 |
done |
| 7604 |
done |
| 7605 |
IFS=$as_save_IFS |
| 7606 |
|
| 7607 |
fi |
| 7608 |
fi |
| 7609 |
ac_ct_NM=$ac_cv_prog_ac_ct_NM |
| 7610 |
if test -n "$ac_ct_NM"; then |
| 7611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 |
| 7612 |
colorize_result "$ac_ct_NM" ; } |
| 7613 |
else |
| 7614 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7615 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7616 |
fi |
| 7617 |
|
| 7618 |
|
| 7619 |
test -n "$ac_ct_NM" && break |
| 7620 |
done |
| 7621 |
|
| 7622 |
if test "x$ac_ct_NM" = x; then |
| 7623 |
NM="" |
| 7624 |
else |
| 7625 |
case $cross_compiling:$ac_tool_warned in |
| 7626 |
yes:) |
| 7627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7628 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7629 |
ac_tool_warned=yes ;; |
| 7630 |
esac |
| 7631 |
NM=$ac_ct_NM |
| 7632 |
fi |
| 7633 |
fi |
| 7634 |
|
| 7635 |
if test -n "$ac_tool_prefix"; then |
| 7636 |
for ac_prog in gobjcopy objcopy |
| 7637 |
do |
| 7638 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7639 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7640 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7641 |
printf %s "checking for $ac_word... " >&6; } |
| 7642 |
if test ${ac_cv_prog_OBJCOPY+y} |
| 7643 |
then : |
| 7644 |
printf %s "(cached) " >&6 |
| 7645 |
else $as_nop |
| 7646 |
if test -n "$OBJCOPY"; then |
| 7647 |
ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. |
| 7648 |
else |
| 7649 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7650 |
for as_dir in $PATH |
| 7651 |
do |
| 7652 |
IFS=$as_save_IFS |
| 7653 |
case $as_dir in #((( |
| 7654 |
'') as_dir=./ ;; |
| 7655 |
*/) ;; |
| 7656 |
*) as_dir=$as_dir/ ;; |
| 7657 |
esac |
| 7658 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7659 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7660 |
ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" |
| 7661 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7662 |
break 2 |
| 7663 |
fi |
| 7664 |
done |
| 7665 |
done |
| 7666 |
IFS=$as_save_IFS |
| 7667 |
|
| 7668 |
fi |
| 7669 |
fi |
| 7670 |
OBJCOPY=$ac_cv_prog_OBJCOPY |
| 7671 |
if test -n "$OBJCOPY"; then |
| 7672 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 |
| 7673 |
colorize_result "$OBJCOPY" ; } |
| 7674 |
else |
| 7675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7676 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7677 |
fi |
| 7678 |
|
| 7679 |
|
| 7680 |
test -n "$OBJCOPY" && break |
| 7681 |
done |
| 7682 |
fi |
| 7683 |
if test -z "$OBJCOPY"; then |
| 7684 |
ac_ct_OBJCOPY=$OBJCOPY |
| 7685 |
for ac_prog in gobjcopy objcopy |
| 7686 |
do |
| 7687 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7688 |
set dummy $ac_prog; ac_word=$2 |
| 7689 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7690 |
printf %s "checking for $ac_word... " >&6; } |
| 7691 |
if test ${ac_cv_prog_ac_ct_OBJCOPY+y} |
| 7692 |
then : |
| 7693 |
printf %s "(cached) " >&6 |
| 7694 |
else $as_nop |
| 7695 |
if test -n "$ac_ct_OBJCOPY"; then |
| 7696 |
ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. |
| 7697 |
else |
| 7698 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7699 |
for as_dir in $PATH |
| 7700 |
do |
| 7701 |
IFS=$as_save_IFS |
| 7702 |
case $as_dir in #((( |
| 7703 |
'') as_dir=./ ;; |
| 7704 |
*/) ;; |
| 7705 |
*) as_dir=$as_dir/ ;; |
| 7706 |
esac |
| 7707 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7708 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7709 |
ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" |
| 7710 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7711 |
break 2 |
| 7712 |
fi |
| 7713 |
done |
| 7714 |
done |
| 7715 |
IFS=$as_save_IFS |
| 7716 |
|
| 7717 |
fi |
| 7718 |
fi |
| 7719 |
ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY |
| 7720 |
if test -n "$ac_ct_OBJCOPY"; then |
| 7721 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 |
| 7722 |
colorize_result "$ac_ct_OBJCOPY" ; } |
| 7723 |
else |
| 7724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7725 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7726 |
fi |
| 7727 |
|
| 7728 |
|
| 7729 |
test -n "$ac_ct_OBJCOPY" && break |
| 7730 |
done |
| 7731 |
|
| 7732 |
if test "x$ac_ct_OBJCOPY" = x; then |
| 7733 |
OBJCOPY=":" |
| 7734 |
else |
| 7735 |
case $cross_compiling:$ac_tool_warned in |
| 7736 |
yes:) |
| 7737 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7738 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7739 |
ac_tool_warned=yes ;; |
| 7740 |
esac |
| 7741 |
OBJCOPY=$ac_ct_OBJCOPY |
| 7742 |
fi |
| 7743 |
fi |
| 7744 |
|
| 7745 |
if test -n "$ac_tool_prefix"; then |
| 7746 |
for ac_prog in gobjdump objdump |
| 7747 |
do |
| 7748 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7749 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7750 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7751 |
printf %s "checking for $ac_word... " >&6; } |
| 7752 |
if test ${ac_cv_prog_OBJDUMP+y} |
| 7753 |
then : |
| 7754 |
printf %s "(cached) " >&6 |
| 7755 |
else $as_nop |
| 7756 |
if test -n "$OBJDUMP"; then |
| 7757 |
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. |
| 7758 |
else |
| 7759 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7760 |
for as_dir in $PATH |
| 7761 |
do |
| 7762 |
IFS=$as_save_IFS |
| 7763 |
case $as_dir in #((( |
| 7764 |
'') as_dir=./ ;; |
| 7765 |
*/) ;; |
| 7766 |
*) as_dir=$as_dir/ ;; |
| 7767 |
esac |
| 7768 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7769 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7770 |
ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" |
| 7771 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7772 |
break 2 |
| 7773 |
fi |
| 7774 |
done |
| 7775 |
done |
| 7776 |
IFS=$as_save_IFS |
| 7777 |
|
| 7778 |
fi |
| 7779 |
fi |
| 7780 |
OBJDUMP=$ac_cv_prog_OBJDUMP |
| 7781 |
if test -n "$OBJDUMP"; then |
| 7782 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
| 7783 |
colorize_result "$OBJDUMP" ; } |
| 7784 |
else |
| 7785 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7786 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7787 |
fi |
| 7788 |
|
| 7789 |
|
| 7790 |
test -n "$OBJDUMP" && break |
| 7791 |
done |
| 7792 |
fi |
| 7793 |
if test -z "$OBJDUMP"; then |
| 7794 |
ac_ct_OBJDUMP=$OBJDUMP |
| 7795 |
for ac_prog in gobjdump objdump |
| 7796 |
do |
| 7797 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7798 |
set dummy $ac_prog; ac_word=$2 |
| 7799 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7800 |
printf %s "checking for $ac_word... " >&6; } |
| 7801 |
if test ${ac_cv_prog_ac_ct_OBJDUMP+y} |
| 7802 |
then : |
| 7803 |
printf %s "(cached) " >&6 |
| 7804 |
else $as_nop |
| 7805 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7806 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. |
| 7807 |
else |
| 7808 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7809 |
for as_dir in $PATH |
| 7810 |
do |
| 7811 |
IFS=$as_save_IFS |
| 7812 |
case $as_dir in #((( |
| 7813 |
'') as_dir=./ ;; |
| 7814 |
*/) ;; |
| 7815 |
*) as_dir=$as_dir/ ;; |
| 7816 |
esac |
| 7817 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7818 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7819 |
ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" |
| 7820 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7821 |
break 2 |
| 7822 |
fi |
| 7823 |
done |
| 7824 |
done |
| 7825 |
IFS=$as_save_IFS |
| 7826 |
|
| 7827 |
fi |
| 7828 |
fi |
| 7829 |
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP |
| 7830 |
if test -n "$ac_ct_OBJDUMP"; then |
| 7831 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
| 7832 |
colorize_result "$ac_ct_OBJDUMP" ; } |
| 7833 |
else |
| 7834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7835 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7836 |
fi |
| 7837 |
|
| 7838 |
|
| 7839 |
test -n "$ac_ct_OBJDUMP" && break |
| 7840 |
done |
| 7841 |
|
| 7842 |
if test "x$ac_ct_OBJDUMP" = x; then |
| 7843 |
OBJDUMP="" |
| 7844 |
else |
| 7845 |
case $cross_compiling:$ac_tool_warned in |
| 7846 |
yes:) |
| 7847 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7848 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7849 |
ac_tool_warned=yes ;; |
| 7850 |
esac |
| 7851 |
OBJDUMP=$ac_ct_OBJDUMP |
| 7852 |
fi |
| 7853 |
fi |
| 7854 |
|
| 7855 |
if test -n "$ac_tool_prefix"; then |
| 7856 |
for ac_prog in gstrip strip |
| 7857 |
do |
| 7858 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 7859 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 7860 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7861 |
printf %s "checking for $ac_word... " >&6; } |
| 7862 |
if test ${ac_cv_prog_STRIP+y} |
| 7863 |
then : |
| 7864 |
printf %s "(cached) " >&6 |
| 7865 |
else $as_nop |
| 7866 |
if test -n "$STRIP"; then |
| 7867 |
ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 7868 |
else |
| 7869 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7870 |
for as_dir in $PATH |
| 7871 |
do |
| 7872 |
IFS=$as_save_IFS |
| 7873 |
case $as_dir in #((( |
| 7874 |
'') as_dir=./ ;; |
| 7875 |
*/) ;; |
| 7876 |
*) as_dir=$as_dir/ ;; |
| 7877 |
esac |
| 7878 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7879 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7880 |
ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" |
| 7881 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7882 |
break 2 |
| 7883 |
fi |
| 7884 |
done |
| 7885 |
done |
| 7886 |
IFS=$as_save_IFS |
| 7887 |
|
| 7888 |
fi |
| 7889 |
fi |
| 7890 |
STRIP=$ac_cv_prog_STRIP |
| 7891 |
if test -n "$STRIP"; then |
| 7892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 7893 |
colorize_result "$STRIP" ; } |
| 7894 |
else |
| 7895 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7896 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7897 |
fi |
| 7898 |
|
| 7899 |
|
| 7900 |
test -n "$STRIP" && break |
| 7901 |
done |
| 7902 |
fi |
| 7903 |
if test -z "$STRIP"; then |
| 7904 |
ac_ct_STRIP=$STRIP |
| 7905 |
for ac_prog in gstrip strip |
| 7906 |
do |
| 7907 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 7908 |
set dummy $ac_prog; ac_word=$2 |
| 7909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7910 |
printf %s "checking for $ac_word... " >&6; } |
| 7911 |
if test ${ac_cv_prog_ac_ct_STRIP+y} |
| 7912 |
then : |
| 7913 |
printf %s "(cached) " >&6 |
| 7914 |
else $as_nop |
| 7915 |
if test -n "$ac_ct_STRIP"; then |
| 7916 |
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 7917 |
else |
| 7918 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7919 |
for as_dir in $PATH |
| 7920 |
do |
| 7921 |
IFS=$as_save_IFS |
| 7922 |
case $as_dir in #((( |
| 7923 |
'') as_dir=./ ;; |
| 7924 |
*/) ;; |
| 7925 |
*) as_dir=$as_dir/ ;; |
| 7926 |
esac |
| 7927 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 7928 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 7929 |
ac_cv_prog_ac_ct_STRIP="$ac_prog" |
| 7930 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 7931 |
break 2 |
| 7932 |
fi |
| 7933 |
done |
| 7934 |
done |
| 7935 |
IFS=$as_save_IFS |
| 7936 |
|
| 7937 |
fi |
| 7938 |
fi |
| 7939 |
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 7940 |
if test -n "$ac_ct_STRIP"; then |
| 7941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 7942 |
colorize_result "$ac_ct_STRIP" ; } |
| 7943 |
else |
| 7944 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7945 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 7946 |
fi |
| 7947 |
|
| 7948 |
|
| 7949 |
test -n "$ac_ct_STRIP" && break |
| 7950 |
done |
| 7951 |
|
| 7952 |
if test "x$ac_ct_STRIP" = x; then |
| 7953 |
STRIP=":" |
| 7954 |
else |
| 7955 |
case $cross_compiling:$ac_tool_warned in |
| 7956 |
yes:) |
| 7957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 7958 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 7959 |
ac_tool_warned=yes ;; |
| 7960 |
esac |
| 7961 |
STRIP=$ac_ct_STRIP |
| 7962 |
fi |
| 7963 |
fi |
| 7964 |
|
| 7965 |
|
| 7966 |
# nm errors with Rust's LLVM bitcode when Rust uses a newer LLVM version than nm. |
| 7967 |
# In case we're working with llvm-nm, tell it to not worry about the bitcode. |
| 7968 |
if ${NM} --help | grep -q 'llvm-bc' |
| 7969 |
then : |
| 7970 |
NM="$NM --no-llvm-bc" |
| 7971 |
fi |
| 7972 |
|
| 7973 |
if test ! $rb_test_CFLAGS |
| 7974 |
then : |
| 7975 |
{ CFLAGS=; unset CFLAGS;} |
| 7976 |
fi; { rb_test_CFLAGS=; unset rb_test_CFLAGS;} |
| 7977 |
if test ! $rb_test_CXXFLAGS |
| 7978 |
then : |
| 7979 |
{ CXXFLAGS=; unset CXXFLAGS;} |
| 7980 |
fi; { rb_save_CXXFLAGS=; unset rb_save_CXXFLAGS;} |
| 7981 |
|
| 7982 |
if test "${CXX}" = "g++" -a -z "${GXX}" |
| 7983 |
then : |
| 7984 |
|
| 7985 |
# AC_PROG_CXX sets $CXX to "g++" when it purposefully finds that there is |
| 7986 |
# _no_ g++. This brain-damaged design must be worked around. Thankfully, |
| 7987 |
# similar thing doesn't happen for AC_PROG_CC. |
| 7988 |
rb_there_is_in_fact_no_gplusplus_but_autoconf_is_cheating_us=true |
| 7989 |
|
| 7990 |
fi |
| 7991 |
|
| 7992 |
test x"$target_alias" = x && |
| 7993 |
target_os=`echo $target_os | sed 's/linux-gnu$/linux/;s/linux-gnu/linux-/'` |
| 7994 |
ac_install_sh='' # unusable for extension libraries. |
| 7995 |
|
| 7996 |
|
| 7997 |
# Check whether --with-os-version-style was given. |
| 7998 |
if test ${with_os_version_style+y} |
| 7999 |
then : |
| 8000 |
withval=$with_os_version_style; os_version_style=$withval |
| 8001 |
else $as_nop |
| 8002 |
os_version_style=full |
| 8003 |
case $target_os in #( |
| 8004 |
*[0-9].*) : |
| 8005 |
case `/usr/bin/ruby -e 'puts RUBY_PLATFORM' 2>/dev/null` in #( |
| 8006 |
*-*[0-9].*.0) : |
| 8007 |
os_version_style=minor+0 ;; #( |
| 8008 |
*-*[0-9].*.*) : |
| 8009 |
os_version_style=full ;; #( |
| 8010 |
*-*[0-9].0 ) : |
| 8011 |
os_version_style=major+0 ;; #( |
| 8012 |
*-*[0-9].* ) : |
| 8013 |
os_version_style=minor ;; #( |
| 8014 |
*-*[0-9] ) : |
| 8015 |
os_version_style=major ;; #( |
| 8016 |
*) : |
| 8017 |
;; |
| 8018 |
esac ;; #( |
| 8019 |
*) : |
| 8020 |
;; |
| 8021 |
esac |
| 8022 |
|
| 8023 |
fi |
| 8024 |
|
| 8025 |
os_version_style_transform= |
| 8026 |
case "${os_version_style}" in #( |
| 8027 |
full|teeny) : |
| 8028 |
;; #( |
| 8029 |
minor+0) : |
| 8030 |
os_version_style_transform='s/\([0-9]\.[0-9][0-9]*\)\.[0-9][.0-9]*$/\1.0/' ;; #( |
| 8031 |
minor) : |
| 8032 |
os_version_style_transform='s/\([0-9]\.[0-9][0-9]*\)\.[0-9][.0-9]*$/\1/' ;; #( |
| 8033 |
major+0) : |
| 8034 |
os_version_style_transform='s/\([0-9]\)\.[0-9][.0-9]*$/\1.0/' ;; #( |
| 8035 |
major) : |
| 8036 |
os_version_style_transform='s/\([0-9]\)\.[0-9][.0-9]*$/\1/' ;; #( |
| 8037 |
none) : |
| 8038 |
os_version_style_transform='s/[0-9]*\.[0-9][.0-9]*$//' ;; #( |
| 8039 |
*) : |
| 8040 |
as_fn_error $? "unknown --with-os-version-style: $withval" "$LINENO" 5 ;; |
| 8041 |
esac |
| 8042 |
if test -z "$target_alias" -a -n "$os_version_style_transform" |
| 8043 |
then : |
| 8044 |
|
| 8045 |
target=`echo ${target} | sed "$os_version_style_transform"` |
| 8046 |
target_os=`echo ${target_os} | sed "$os_version_style_transform"` |
| 8047 |
|
| 8048 |
fi |
| 8049 |
|
| 8050 |
|
| 8051 |
# Check whether --with-arch was given. |
| 8052 |
if test ${with_arch+y} |
| 8053 |
then : |
| 8054 |
withval=$with_arch; target_archs="$withval" |
| 8055 |
else $as_nop |
| 8056 |
unset target_archs |
| 8057 |
fi |
| 8058 |
|
| 8059 |
|
| 8060 |
# Check whether --enable-load-relative was given. |
| 8061 |
if test ${enable_load_relative+y} |
| 8062 |
then : |
| 8063 |
enableval=$enable_load_relative; load_relative=$enableval |
| 8064 |
fi |
| 8065 |
|
| 8066 |
|
| 8067 |
# checks for UNIX variants that set C preprocessor variables |
| 8068 |
|
| 8069 |
ac_header= ac_cache= |
| 8070 |
for ac_item in $ac_header_c_list |
| 8071 |
do |
| 8072 |
if test $ac_cache; then |
| 8073 |
ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" |
| 8074 |
if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then |
| 8075 |
printf "%s\n" "#define $ac_item 1" >> confdefs.h |
| 8076 |
fi |
| 8077 |
ac_header= ac_cache= |
| 8078 |
elif test $ac_header; then |
| 8079 |
ac_cache=$ac_item |
| 8080 |
else |
| 8081 |
ac_header=$ac_item |
| 8082 |
fi |
| 8083 |
done |
| 8084 |
|
| 8085 |
|
| 8086 |
|
| 8087 |
|
| 8088 |
|
| 8089 |
|
| 8090 |
|
| 8091 |
|
| 8092 |
if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes |
| 8093 |
then : |
| 8094 |
|
| 8095 |
printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h |
| 8096 |
|
| 8097 |
fi |
| 8098 |
|
| 8099 |
|
| 8100 |
|
| 8101 |
|
| 8102 |
|
| 8103 |
|
| 8104 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 8105 |
printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 8106 |
if test ${ac_cv_safe_to_define___extensions__+y} |
| 8107 |
then : |
| 8108 |
printf %s "(cached) " >&6 |
| 8109 |
else $as_nop |
| 8110 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8111 |
/* end confdefs.h. */ |
| 8112 |
|
| 8113 |
# define __EXTENSIONS__ 1 |
| 8114 |
$ac_includes_default |
| 8115 |
int |
| 8116 |
main (void) |
| 8117 |
{ |
| 8118 |
|
| 8119 |
; |
| 8120 |
return 0; |
| 8121 |
} |
| 8122 |
_ACEOF |
| 8123 |
if ac_fn_c_try_compile "$LINENO" |
| 8124 |
then : |
| 8125 |
ac_cv_safe_to_define___extensions__=yes |
| 8126 |
else $as_nop |
| 8127 |
ac_cv_safe_to_define___extensions__=no |
| 8128 |
fi |
| 8129 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8130 |
fi |
| 8131 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 8132 |
colorize_result "$ac_cv_safe_to_define___extensions__" ; } |
| 8133 |
|
| 8134 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 |
| 8135 |
printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } |
| 8136 |
if test ${ac_cv_should_define__xopen_source+y} |
| 8137 |
then : |
| 8138 |
printf %s "(cached) " >&6 |
| 8139 |
else $as_nop |
| 8140 |
ac_cv_should_define__xopen_source=no |
| 8141 |
if test $ac_cv_header_wchar_h = yes |
| 8142 |
then : |
| 8143 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8144 |
/* end confdefs.h. */ |
| 8145 |
|
| 8146 |
#include <wchar.h> |
| 8147 |
mbstate_t x; |
| 8148 |
int |
| 8149 |
main (void) |
| 8150 |
{ |
| 8151 |
|
| 8152 |
; |
| 8153 |
return 0; |
| 8154 |
} |
| 8155 |
_ACEOF |
| 8156 |
if ac_fn_c_try_compile "$LINENO" |
| 8157 |
then : |
| 8158 |
|
| 8159 |
else $as_nop |
| 8160 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8161 |
/* end confdefs.h. */ |
| 8162 |
|
| 8163 |
#define _XOPEN_SOURCE 500 |
| 8164 |
#include <wchar.h> |
| 8165 |
mbstate_t x; |
| 8166 |
int |
| 8167 |
main (void) |
| 8168 |
{ |
| 8169 |
|
| 8170 |
; |
| 8171 |
return 0; |
| 8172 |
} |
| 8173 |
_ACEOF |
| 8174 |
if ac_fn_c_try_compile "$LINENO" |
| 8175 |
then : |
| 8176 |
ac_cv_should_define__xopen_source=yes |
| 8177 |
fi |
| 8178 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8179 |
fi |
| 8180 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8181 |
fi |
| 8182 |
fi |
| 8183 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 |
| 8184 |
colorize_result "$ac_cv_should_define__xopen_source" ; } |
| 8185 |
|
| 8186 |
printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h |
| 8187 |
|
| 8188 |
printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 8189 |
|
| 8190 |
printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h |
| 8191 |
|
| 8192 |
printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h |
| 8193 |
|
| 8194 |
printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h |
| 8195 |
|
| 8196 |
printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h |
| 8197 |
|
| 8198 |
printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 8199 |
|
| 8200 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h |
| 8201 |
|
| 8202 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h |
| 8203 |
|
| 8204 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h |
| 8205 |
|
| 8206 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h |
| 8207 |
|
| 8208 |
printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h |
| 8209 |
|
| 8210 |
printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h |
| 8211 |
|
| 8212 |
printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h |
| 8213 |
|
| 8214 |
printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 8215 |
|
| 8216 |
if test $ac_cv_header_minix_config_h = yes |
| 8217 |
then : |
| 8218 |
MINIX=yes |
| 8219 |
printf "%s\n" "#define _MINIX 1" >>confdefs.h |
| 8220 |
|
| 8221 |
printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h |
| 8222 |
|
| 8223 |
printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 8224 |
|
| 8225 |
else $as_nop |
| 8226 |
MINIX= |
| 8227 |
fi |
| 8228 |
if test $ac_cv_safe_to_define___extensions__ = yes |
| 8229 |
then : |
| 8230 |
printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h |
| 8231 |
|
| 8232 |
fi |
| 8233 |
if test $ac_cv_should_define__xopen_source = yes |
| 8234 |
then : |
| 8235 |
printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 8236 |
|
| 8237 |
fi |
| 8238 |
|
| 8239 |
|
| 8240 |
|
| 8241 |
cflagspat= |
| 8242 |
test -z "$optflags" || |
| 8243 |
cflagspat="$cflagspat;s|"`eval echo '"'"${optflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' |
| 8244 |
test -z "$debugflags" || |
| 8245 |
cflagspat="$cflagspat;s|"`eval echo '"'"${debugflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' |
| 8246 |
test -z "$warnflags" || |
| 8247 |
cflagspat="$cflagspat;s|"`eval echo '"'"${warnflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g' |
| 8248 |
if test -z "${CFLAGS+set}" |
| 8249 |
then : |
| 8250 |
|
| 8251 |
cflags=`echo " $cflags " | sed "$cflagspat;s/^ *//;s/ *$//"` |
| 8252 |
orig_cflags="$cflags" |
| 8253 |
cflags="$cflags "'${optflags} ${debugflags} ${warnflags}' |
| 8254 |
|
| 8255 |
fi |
| 8256 |
|
| 8257 |
|
| 8258 |
case "$host_os:$build_os" in #( |
| 8259 |
darwin*:darwin*) : |
| 8260 |
|
| 8261 |
# Following Apple deployed clang are broken |
| 8262 |
# clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/tags/Apple/clang-23 exported) |
| 8263 |
# Apple clang version 2.0 (tags/Apple/clang-137) (based on LLVM 2.9svn) |
| 8264 |
# Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn) |
| 8265 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8266 |
/* end confdefs.h. */ |
| 8267 |
|
| 8268 |
#if defined __APPLE_CC__ && defined __clang_major__ && __clang_major__ < 3 |
| 8269 |
#error premature clang |
| 8270 |
#endif |
| 8271 |
|
| 8272 |
int |
| 8273 |
main (void) |
| 8274 |
{ |
| 8275 |
|
| 8276 |
; |
| 8277 |
return 0; |
| 8278 |
} |
| 8279 |
_ACEOF |
| 8280 |
if ac_fn_c_try_cpp "$LINENO" |
| 8281 |
then : |
| 8282 |
|
| 8283 |
else $as_nop |
| 8284 |
as_fn_error $? "clang version 3.0 or later is required" "$LINENO" 5 |
| 8285 |
fi |
| 8286 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 8287 |
;; #( |
| 8288 |
*) : |
| 8289 |
;; |
| 8290 |
esac |
| 8291 |
|
| 8292 |
case "$target_os" in #( |
| 8293 |
darwin*) : |
| 8294 |
|
| 8295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if minimum required OS X version is supported" >&5 |
| 8296 |
printf %s "checking if minimum required OS X version is supported... " >&6; } |
| 8297 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8298 |
/* end confdefs.h. */ |
| 8299 |
#include <AvailabilityMacros.h> |
| 8300 |
#if MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_5 |
| 8301 |
#error pre OS X 10.5 |
| 8302 |
[!<===== pre OS X 10.5 =====>] |
| 8303 |
#endif |
| 8304 |
|
| 8305 |
_ACEOF |
| 8306 |
if ac_fn_c_try_cpp "$LINENO" |
| 8307 |
then : |
| 8308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8309 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 8310 |
else $as_nop |
| 8311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8312 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 8313 |
as_fn_error $? "Unsupported OS X version is required" "$LINENO" 5 |
| 8314 |
fi |
| 8315 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 8316 |
;; #( |
| 8317 |
*) : |
| 8318 |
;; |
| 8319 |
esac |
| 8320 |
|
| 8321 |
case "$host_os" in #( |
| 8322 |
cygwin*) : |
| 8323 |
|
| 8324 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mingw32 environment" >&5 |
| 8325 |
printf %s "checking for mingw32 environment... " >&6; } |
| 8326 |
if test ${rb_cv_mingw32+y} |
| 8327 |
then : |
| 8328 |
printf %s "(cached) " >&6 |
| 8329 |
else $as_nop |
| 8330 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8331 |
/* end confdefs.h. */ |
| 8332 |
|
| 8333 |
#ifndef __MINGW32__ |
| 8334 |
# error |
| 8335 |
#endif |
| 8336 |
|
| 8337 |
_ACEOF |
| 8338 |
if ac_fn_c_try_cpp "$LINENO" |
| 8339 |
then : |
| 8340 |
rb_cv_mingw32=yes |
| 8341 |
else $as_nop |
| 8342 |
rb_cv_mingw32=no |
| 8343 |
fi |
| 8344 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 8345 |
rm -f conftest* |
| 8346 |
fi |
| 8347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mingw32" >&5 |
| 8348 |
colorize_result "$rb_cv_mingw32" ; } |
| 8349 |
if test "$rb_cv_mingw32" = yes |
| 8350 |
then : |
| 8351 |
|
| 8352 |
target_os="mingw32" |
| 8353 |
: ${ac_tool_prefix:="`expr "$CC" : '\(.*-\)g\?cc[^/]*$'`"} |
| 8354 |
printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h |
| 8355 |
|
| 8356 |
fi |
| 8357 |
;; #( |
| 8358 |
*) : |
| 8359 |
;; |
| 8360 |
esac |
| 8361 |
case "$target_os" in #( |
| 8362 |
mingw*msvc) : |
| 8363 |
|
| 8364 |
target_os="`echo ${target_os} | sed 's/msvc$//'`" |
| 8365 |
;; #( |
| 8366 |
*) : |
| 8367 |
;; |
| 8368 |
esac |
| 8369 |
case "$target_cpu-$target_os" in #( |
| 8370 |
x86_64-mingw*) : |
| 8371 |
|
| 8372 |
target_cpu=x64 |
| 8373 |
;; #( |
| 8374 |
*) : |
| 8375 |
;; |
| 8376 |
esac |
| 8377 |
|
| 8378 |
|
| 8379 |
|
| 8380 |
if test "$GCC" = yes |
| 8381 |
then : |
| 8382 |
|
| 8383 |
linker_flag=-Wl, |
| 8384 |
: ${optflags=-O3} |
| 8385 |
gcc_major=`echo =__GNUC__ | $CC -E -xc - | sed '/^=/!d;s///'` |
| 8386 |
gcc_minor=`echo =__GNUC_MINOR__ | $CC -E -xc - | sed '/^=/!d;s///'` |
| 8387 |
test -n "$gcc_major" || gcc_major=0 |
| 8388 |
test -n "$gcc_minor" || gcc_minor=0 |
| 8389 |
icc_version=`echo =__ICC | $CC -E -xc - | sed '/^=/!d;s///;/^__ICC/d'` |
| 8390 |
test -n "$icc_version" || icc_version=0 |
| 8391 |
# RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"]) |
| 8392 |
|
| 8393 |
if test "$gcc_major" -lt 4 |
| 8394 |
then : |
| 8395 |
|
| 8396 |
as_fn_error $? "too old GCC: $gcc_major.$gcc_minor" "$LINENO" 5 |
| 8397 |
|
| 8398 |
fi |
| 8399 |
|
| 8400 |
else $as_nop |
| 8401 |
|
| 8402 |
linker_flag= |
| 8403 |
|
| 8404 |
fi |
| 8405 |
|
| 8406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker is GNU ld" >&5 |
| 8407 |
printf %s "checking whether the linker is GNU ld... " >&6; } |
| 8408 |
if test ${rb_cv_prog_gnu_ld+y} |
| 8409 |
then : |
| 8410 |
printf %s "(cached) " >&6 |
| 8411 |
else $as_nop |
| 8412 |
if `$CC $CFLAGS $CPPFLAGS $LDFLAGS --print-prog-name=ld 2>&1` -v 2>&1 | grep "GNU ld" > /dev/null |
| 8413 |
then : |
| 8414 |
|
| 8415 |
rb_cv_prog_gnu_ld=yes |
| 8416 |
|
| 8417 |
else $as_nop |
| 8418 |
|
| 8419 |
rb_cv_prog_gnu_ld=no |
| 8420 |
|
| 8421 |
fi |
| 8422 |
fi |
| 8423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_gnu_ld" >&5 |
| 8424 |
colorize_result "$rb_cv_prog_gnu_ld" ; } |
| 8425 |
GNU_LD=$rb_cv_prog_gnu_ld |
| 8426 |
|
| 8427 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${CPP} accepts -o" >&5 |
| 8428 |
printf %s "checking whether ${CPP} accepts -o... " >&6; } |
| 8429 |
if test ${rb_cv_cppoutfile+y} |
| 8430 |
then : |
| 8431 |
printf %s "(cached) " >&6 |
| 8432 |
else $as_nop |
| 8433 |
save_CPPFLAGS="$CPPFLAGS" |
| 8434 |
CPPFLAGS='-o conftest-1.i' |
| 8435 |
rb_cv_cppoutfile=no |
| 8436 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8437 |
/* end confdefs.h. */ |
| 8438 |
test-for-cppout |
| 8439 |
_ACEOF |
| 8440 |
if ac_fn_c_try_cpp "$LINENO" |
| 8441 |
then : |
| 8442 |
grep test-for-cppout conftest-1.i > /dev/null && rb_cv_cppoutfile=yes |
| 8443 |
fi |
| 8444 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 8445 |
CPPFLAGS="$save_CPPFLAGS" |
| 8446 |
rm -f conftest* |
| 8447 |
fi |
| 8448 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_cppoutfile" >&5 |
| 8449 |
colorize_result "$rb_cv_cppoutfile" ; } |
| 8450 |
if test "$rb_cv_cppoutfile" = yes |
| 8451 |
then : |
| 8452 |
|
| 8453 |
CPPOUTFILE='-o conftest.i' |
| 8454 |
|
| 8455 |
elif test "$rb_cv_cppoutfile" = no |
| 8456 |
then : |
| 8457 |
|
| 8458 |
CPPOUTFILE='> conftest.i' |
| 8459 |
|
| 8460 |
elif test -n "$rb_cv_cppoutfile" |
| 8461 |
then : |
| 8462 |
|
| 8463 |
CPPOUTFILE="$rb_cv_cppoutfile" |
| 8464 |
|
| 8465 |
fi |
| 8466 |
|
| 8467 |
|
| 8468 |
: ${OUTFLAG='-o '} |
| 8469 |
: ${COUTFLAG=${OUTFLAG}} |
| 8470 |
: ${CSRCFLAG=''} |
| 8471 |
|
| 8472 |
|
| 8473 |
|
| 8474 |
|
| 8475 |
case "$build_os" in #( |
| 8476 |
darwin*) : |
| 8477 |
|
| 8478 |
# gcc 13 warns duplicate -l options, which are added by the |
| 8479 |
# default spec. |
| 8480 |
# Xcode linker warns for deprecated architecture and wrongly |
| 8481 |
# installed TBD files. |
| 8482 |
CC_WRAPPER="" CC_NO_WRAPPER="$CC" |
| 8483 |
echo 'int main(void) {return 0;}' > conftest.c |
| 8484 |
if $CC -framework Foundation -o conftest conftest.c 2>&1 | |
| 8485 |
grep -e '^ld: warning: ignoring duplicate libraries:' \ |
| 8486 |
-e '^ld: warning: text-based stub file' >/dev/null |
| 8487 |
then : |
| 8488 |
|
| 8489 |
CC_WRAPPER=`cd -P "${tooldir}" && pwd`/darwin-cc |
| 8490 |
CC="$CC_WRAPPER $CC" |
| 8491 |
|
| 8492 |
fi |
| 8493 |
rm -fr conftest* |
| 8494 |
;; #( |
| 8495 |
*) : |
| 8496 |
;; |
| 8497 |
esac |
| 8498 |
case "$target_os" in #( |
| 8499 |
wasi*) : |
| 8500 |
|
| 8501 |
# Clang linker automatically uses wasm-opt with -O if it found. |
| 8502 |
# https://github.com/llvm/llvm-project/blob/812828984c10857a4cd260eb638c52a4411f9143/clang/lib/Driver/ToolChains/WebAssembly.cpp#L95-L118 |
| 8503 |
# However optimization before asyncify causes misoptimization, |
| 8504 |
# so wrap clang to insert our fake wasm-opt, which does nothing, in PATH. |
| 8505 |
CC_WRAPPER=`cd -P "${tooldir}" && pwd`/wasm-clangw |
| 8506 |
CC="$CC_WRAPPER $CC" |
| 8507 |
;; #( |
| 8508 |
*) : |
| 8509 |
;; |
| 8510 |
esac |
| 8511 |
|
| 8512 |
cc_version= |
| 8513 |
for option in --version -v -V -qversion; do |
| 8514 |
cc_version_message=`$CC $option 2>&1` |
| 8515 |
cc_version_status=$? |
| 8516 |
case $cc_version_status in #( |
| 8517 |
0) : |
| 8518 |
: ;; #( |
| 8519 |
*) : |
| 8520 |
continue ;; |
| 8521 |
esac |
| 8522 |
case $cc_version_message in #( |
| 8523 |
*Warning*) : |
| 8524 |
continue ;; #( |
| 8525 |
*) : |
| 8526 |
;; |
| 8527 |
esac |
| 8528 |
cc_version='$(CC) '$option |
| 8529 |
break |
| 8530 |
done |
| 8531 |
CC_VERSION=$cc_version |
| 8532 |
|
| 8533 |
CC_VERSION_MESSAGE=$cc_version_message |
| 8534 |
|
| 8535 |
|
| 8536 |
: ${DLDFLAGS="$LDFLAGS"} |
| 8537 |
|
| 8538 |
|
| 8539 |
# RUBY_UNIVERSAL_ARCH begin |
| 8540 |
ARCH_FLAG=`expr " $CXXFLAGS " : '.* \(-m[0-9][0-9]*\) '` |
| 8541 |
test ${CXXFLAGS+set} && CXXFLAGS=`echo "$CXXFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'` |
| 8542 |
ARCH_FLAG=`expr " $CFLAGS " : '.* \(-m[0-9][0-9]*\) '` |
| 8543 |
test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'` |
| 8544 |
test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'` |
| 8545 |
unset universal_binary universal_archnames |
| 8546 |
if test ${target_archs+set} |
| 8547 |
then : |
| 8548 |
|
| 8549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target architectures" >&5 |
| 8550 |
printf %s "checking target architectures... " >&6; } |
| 8551 |
target_archs=`echo $target_archs | tr , ' '` |
| 8552 |
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS |
| 8553 |
for archs in $target_archs |
| 8554 |
do |
| 8555 |
case ",$universal_binary," in #( |
| 8556 |
*",$archs,"*) : |
| 8557 |
;; #( |
| 8558 |
*) : |
| 8559 |
|
| 8560 |
cpu=$archs |
| 8561 |
cpu=`echo $cpu | sed 's/-.*-.*//'` |
| 8562 |
universal_binary="${universal_binary+$universal_binary,}$cpu" |
| 8563 |
universal_archnames="${universal_archnames:+$universal_archnames }${archs}=${cpu}" |
| 8564 |
ARCH_FLAG="${ARCH_FLAG+$ARCH_FLAG }-arch $archs" |
| 8565 |
;; |
| 8566 |
esac |
| 8567 |
done |
| 8568 |
target_archs="$universal_binary" |
| 8569 |
unset universal_binary |
| 8570 |
case "$target_archs" in #( |
| 8571 |
*,*) : |
| 8572 |
universal_binary=yes ;; #( |
| 8573 |
*) : |
| 8574 |
unset universal_archnames ;; |
| 8575 |
esac |
| 8576 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $target_archs" >&5 |
| 8577 |
colorize_result "$target_archs" ; } |
| 8578 |
|
| 8579 |
target=`echo $target | sed "s/^$target_cpu-/-/"` |
| 8580 |
target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"` |
| 8581 |
if test "${universal_binary-no}" = yes |
| 8582 |
then : |
| 8583 |
|
| 8584 |
try_header=try_compile |
| 8585 |
|
| 8586 |
target_cpu=universal |
| 8587 |
real_cross_compiling=$cross_compiling |
| 8588 |
|
| 8589 |
else $as_nop |
| 8590 |
|
| 8591 |
if test x"$target_cpu" != x"${target_archs}" |
| 8592 |
then : |
| 8593 |
|
| 8594 |
echo 'int main(){return 0;}' > conftest.c |
| 8595 |
if $CC $CFLAGS $ARCH_FLAG -o conftest conftest.c > /dev/null 2>&1 |
| 8596 |
then : |
| 8597 |
|
| 8598 |
rm -fr conftest.* |
| 8599 |
|
| 8600 |
elif test -z "$ARCH_FLAG" |
| 8601 |
then : |
| 8602 |
|
| 8603 |
|
| 8604 |
# Set ARCH_FLAG for different width but family CPU |
| 8605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arch option" >&5 |
| 8606 |
printf %s "checking arch option... " >&6; } |
| 8607 |
case $target_archs:"$host_cpu" in #( |
| 8608 |
arm64:arm*) : |
| 8609 |
ARCH_FLAG=-m64 ;; #( |
| 8610 |
arm*:arm*) : |
| 8611 |
ARCH_FLAG=-m32 ;; #( |
| 8612 |
x86_64:i[3-6]86) : |
| 8613 |
ARCH_FLAG=-m64 ;; #( |
| 8614 |
x64:x86_64) : |
| 8615 |
;; #( |
| 8616 |
i[3-6]86:x86_64) : |
| 8617 |
ARCH_FLAG=-m32 ;; #( |
| 8618 |
ppc64:ppc*) : |
| 8619 |
ARCH_FLAG=-m64 ;; #( |
| 8620 |
ppc*:ppc64) : |
| 8621 |
ARCH_FLAG=-m32 ;; #( |
| 8622 |
*) : |
| 8623 |
|
| 8624 |
ARCH_FLAG= |
| 8625 |
for flag in "-arch "$target_archs -march=$target_archs; do |
| 8626 |
|
| 8627 |
save_CFLAGS="$CFLAGS" |
| 8628 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 8629 |
if test "${ac_c_werror_flag+set}" |
| 8630 |
then : |
| 8631 |
|
| 8632 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 8633 |
|
| 8634 |
else $as_nop |
| 8635 |
|
| 8636 |
unset rb_c_werror_flag |
| 8637 |
|
| 8638 |
fi |
| 8639 |
ac_c_werror_flag=yes |
| 8640 |
|
| 8641 |
CFLAGS="$CFLAGS $flag" |
| 8642 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8643 |
/* end confdefs.h. */ |
| 8644 |
|
| 8645 |
int |
| 8646 |
main (void) |
| 8647 |
{ |
| 8648 |
|
| 8649 |
; |
| 8650 |
return 0; |
| 8651 |
} |
| 8652 |
_ACEOF |
| 8653 |
if ac_fn_c_try_compile "$LINENO" |
| 8654 |
then : |
| 8655 |
ARCH_FLAG="$flag" |
| 8656 |
fi |
| 8657 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8658 |
|
| 8659 |
CFLAGS="$save_CFLAGS" |
| 8660 |
save_CFLAGS= |
| 8661 |
if test "${rb_c_werror_flag+set}" |
| 8662 |
then : |
| 8663 |
|
| 8664 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 8665 |
|
| 8666 |
else $as_nop |
| 8667 |
|
| 8668 |
unset ac_c_werror_flag |
| 8669 |
|
| 8670 |
fi |
| 8671 |
test x"$ARCH_FLAG" = x || break |
| 8672 |
done |
| 8673 |
;; |
| 8674 |
esac |
| 8675 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ARCH_FLAG:-'(none)'}" >&5 |
| 8676 |
colorize_result "${ARCH_FLAG:-'(none)'}" ; } |
| 8677 |
|
| 8678 |
|
| 8679 |
fi |
| 8680 |
|
| 8681 |
fi |
| 8682 |
target_cpu=${target_archs} |
| 8683 |
|
| 8684 |
fi |
| 8685 |
case "$target" in #( |
| 8686 |
-*) : |
| 8687 |
target="$target_cpu${target}" ;; #( |
| 8688 |
*) : |
| 8689 |
;; |
| 8690 |
esac |
| 8691 |
case "$target_alias" in #( |
| 8692 |
-*) : |
| 8693 |
target_alias="$target_cpu${target_alias}" ;; #( |
| 8694 |
*) : |
| 8695 |
;; |
| 8696 |
esac |
| 8697 |
|
| 8698 |
else $as_nop |
| 8699 |
|
| 8700 |
if test x"$target_alias" = x |
| 8701 |
then : |
| 8702 |
|
| 8703 |
case "$target_os" in #( |
| 8704 |
darwin*) : |
| 8705 |
|
| 8706 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for real target cpu" >&5 |
| 8707 |
printf %s "checking for real target cpu... " >&6; } |
| 8708 |
target=`echo $target | sed "s/^$target_cpu-/-/"` |
| 8709 |
target_cpu=`$CC -E - 2>/dev/null <<EOF | |
| 8710 |
#ifdef __x86_64__ |
| 8711 |
"processor-name=x86_64" |
| 8712 |
#endif |
| 8713 |
#ifdef __i386__ |
| 8714 |
"processor-name=i386" |
| 8715 |
#endif |
| 8716 |
#ifdef __ppc__ |
| 8717 |
"processor-name=powerpc" |
| 8718 |
#endif |
| 8719 |
#ifdef __ppc64__ |
| 8720 |
"processor-name=powerpc64" |
| 8721 |
#endif |
| 8722 |
#ifdef __arm64__ |
| 8723 |
"processor-name=arm64" |
| 8724 |
#endif |
| 8725 |
EOF |
| 8726 |
sed -n 's/^"processor-name=\(.*\)"/\1/p'` |
| 8727 |
target="$target_cpu${target}" |
| 8728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $target_cpu" >&5 |
| 8729 |
colorize_result "$target_cpu" ; } |
| 8730 |
;; #( |
| 8731 |
*) : |
| 8732 |
;; |
| 8733 |
esac |
| 8734 |
|
| 8735 |
fi |
| 8736 |
target_archs="$target_cpu" |
| 8737 |
|
| 8738 |
fi |
| 8739 |
if test "${target_archs}" != "${rb_cv_target_archs-${target_archs}}" |
| 8740 |
then : |
| 8741 |
|
| 8742 |
as_fn_error $? "target arch(s) has changed from ${rb_cv_target_archs-nothing} to ${target_archs}" "$LINENO" 5 |
| 8743 |
|
| 8744 |
else $as_nop |
| 8745 |
|
| 8746 |
rb_cv_target_archs=${target_archs} |
| 8747 |
|
| 8748 |
fi |
| 8749 |
if test "x${ARCH_FLAG}" != x |
| 8750 |
then : |
| 8751 |
|
| 8752 |
CFLAGS="${CFLAGS:+$CFLAGS }${ARCH_FLAG}" |
| 8753 |
LDFLAGS="${LDFLAGS:+$LDFLAGS }${ARCH_FLAG}" |
| 8754 |
|
| 8755 |
fi |
| 8756 |
# RUBY_UNIVERSAL_ARCH end |
| 8757 |
|
| 8758 |
if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "${universal_binary:-no}" = no |
| 8759 |
then : |
| 8760 |
|
| 8761 |
|
| 8762 |
# Set ARCH_FLAG for different width but family CPU |
| 8763 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arch option" >&5 |
| 8764 |
printf %s "checking arch option... " >&6; } |
| 8765 |
case $target_cpu:"$host_cpu" in #( |
| 8766 |
arm64:arm*) : |
| 8767 |
ARCH_FLAG=-m64 ;; #( |
| 8768 |
arm*:arm*) : |
| 8769 |
ARCH_FLAG=-m32 ;; #( |
| 8770 |
x86_64:i[3-6]86) : |
| 8771 |
ARCH_FLAG=-m64 ;; #( |
| 8772 |
x64:x86_64) : |
| 8773 |
;; #( |
| 8774 |
i[3-6]86:x86_64) : |
| 8775 |
ARCH_FLAG=-m32 ;; #( |
| 8776 |
ppc64:ppc*) : |
| 8777 |
ARCH_FLAG=-m64 ;; #( |
| 8778 |
ppc*:ppc64) : |
| 8779 |
ARCH_FLAG=-m32 ;; #( |
| 8780 |
*) : |
| 8781 |
|
| 8782 |
ARCH_FLAG= |
| 8783 |
for flag in "-arch "$target_cpu -march=$target_cpu; do |
| 8784 |
|
| 8785 |
save_CFLAGS="$CFLAGS" |
| 8786 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 8787 |
if test "${ac_c_werror_flag+set}" |
| 8788 |
then : |
| 8789 |
|
| 8790 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 8791 |
|
| 8792 |
else $as_nop |
| 8793 |
|
| 8794 |
unset rb_c_werror_flag |
| 8795 |
|
| 8796 |
fi |
| 8797 |
ac_c_werror_flag=yes |
| 8798 |
|
| 8799 |
CFLAGS="$CFLAGS $flag" |
| 8800 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8801 |
/* end confdefs.h. */ |
| 8802 |
|
| 8803 |
int |
| 8804 |
main (void) |
| 8805 |
{ |
| 8806 |
|
| 8807 |
; |
| 8808 |
return 0; |
| 8809 |
} |
| 8810 |
_ACEOF |
| 8811 |
if ac_fn_c_try_compile "$LINENO" |
| 8812 |
then : |
| 8813 |
ARCH_FLAG="$flag" |
| 8814 |
fi |
| 8815 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 8816 |
|
| 8817 |
CFLAGS="$save_CFLAGS" |
| 8818 |
save_CFLAGS= |
| 8819 |
if test "${rb_c_werror_flag+set}" |
| 8820 |
then : |
| 8821 |
|
| 8822 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 8823 |
|
| 8824 |
else $as_nop |
| 8825 |
|
| 8826 |
unset ac_c_werror_flag |
| 8827 |
|
| 8828 |
fi |
| 8829 |
test x"$ARCH_FLAG" = x || break |
| 8830 |
done |
| 8831 |
;; |
| 8832 |
esac |
| 8833 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ARCH_FLAG:-'(none)'}" >&5 |
| 8834 |
colorize_result "${ARCH_FLAG:-'(none)'}" ; } |
| 8835 |
|
| 8836 |
|
| 8837 |
fi |
| 8838 |
host_os=$target_os |
| 8839 |
host_vendor=$target_vendor |
| 8840 |
host_cpu=$target_cpu |
| 8841 |
host=$target |
| 8842 |
host_alias=$target_alias |
| 8843 |
|
| 8844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $AR flags" >&5 |
| 8845 |
printf %s "checking for $AR flags... " >&6; } |
| 8846 |
if test ${rb_cv_arflags+y} |
| 8847 |
then : |
| 8848 |
printf %s "(cached) " >&6 |
| 8849 |
else $as_nop |
| 8850 |
|
| 8851 |
if $AR rcD conftest.a > /dev/null 2>&1 && rm conftest.a |
| 8852 |
then : |
| 8853 |
rb_cv_arflags=rcD |
| 8854 |
else $as_nop |
| 8855 |
rb_cv_arflags=rcu |
| 8856 |
fi |
| 8857 |
|
| 8858 |
fi |
| 8859 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_arflags" >&5 |
| 8860 |
colorize_result "$rb_cv_arflags" ; } |
| 8861 |
ARFLAGS="$rb_cv_arflags " |
| 8862 |
|
| 8863 |
|
| 8864 |
|
| 8865 |
case "$target_os" in #( |
| 8866 |
cygwin*|msys*|mingw*) : |
| 8867 |
|
| 8868 |
if test -n "$ac_tool_prefix"; then |
| 8869 |
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. |
| 8870 |
set dummy ${ac_tool_prefix}windres; ac_word=$2 |
| 8871 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8872 |
printf %s "checking for $ac_word... " >&6; } |
| 8873 |
if test ${ac_cv_prog_WINDRES+y} |
| 8874 |
then : |
| 8875 |
printf %s "(cached) " >&6 |
| 8876 |
else $as_nop |
| 8877 |
if test -n "$WINDRES"; then |
| 8878 |
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. |
| 8879 |
else |
| 8880 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8881 |
for as_dir in $PATH |
| 8882 |
do |
| 8883 |
IFS=$as_save_IFS |
| 8884 |
case $as_dir in #((( |
| 8885 |
'') as_dir=./ ;; |
| 8886 |
*/) ;; |
| 8887 |
*) as_dir=$as_dir/ ;; |
| 8888 |
esac |
| 8889 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8890 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8891 |
ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
| 8892 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8893 |
break 2 |
| 8894 |
fi |
| 8895 |
done |
| 8896 |
done |
| 8897 |
IFS=$as_save_IFS |
| 8898 |
|
| 8899 |
fi |
| 8900 |
fi |
| 8901 |
WINDRES=$ac_cv_prog_WINDRES |
| 8902 |
if test -n "$WINDRES"; then |
| 8903 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 |
| 8904 |
colorize_result "$WINDRES" ; } |
| 8905 |
else |
| 8906 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8907 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 8908 |
fi |
| 8909 |
|
| 8910 |
|
| 8911 |
fi |
| 8912 |
if test -z "$ac_cv_prog_WINDRES"; then |
| 8913 |
ac_ct_WINDRES=$WINDRES |
| 8914 |
# Extract the first word of "windres", so it can be a program name with args. |
| 8915 |
set dummy windres; ac_word=$2 |
| 8916 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8917 |
printf %s "checking for $ac_word... " >&6; } |
| 8918 |
if test ${ac_cv_prog_ac_ct_WINDRES+y} |
| 8919 |
then : |
| 8920 |
printf %s "(cached) " >&6 |
| 8921 |
else $as_nop |
| 8922 |
if test -n "$ac_ct_WINDRES"; then |
| 8923 |
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. |
| 8924 |
else |
| 8925 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8926 |
for as_dir in $PATH |
| 8927 |
do |
| 8928 |
IFS=$as_save_IFS |
| 8929 |
case $as_dir in #((( |
| 8930 |
'') as_dir=./ ;; |
| 8931 |
*/) ;; |
| 8932 |
*) as_dir=$as_dir/ ;; |
| 8933 |
esac |
| 8934 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8935 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8936 |
ac_cv_prog_ac_ct_WINDRES="windres" |
| 8937 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8938 |
break 2 |
| 8939 |
fi |
| 8940 |
done |
| 8941 |
done |
| 8942 |
IFS=$as_save_IFS |
| 8943 |
|
| 8944 |
fi |
| 8945 |
fi |
| 8946 |
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES |
| 8947 |
if test -n "$ac_ct_WINDRES"; then |
| 8948 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 |
| 8949 |
colorize_result "$ac_ct_WINDRES" ; } |
| 8950 |
else |
| 8951 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8952 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 8953 |
fi |
| 8954 |
|
| 8955 |
if test "x$ac_ct_WINDRES" = x; then |
| 8956 |
WINDRES="" |
| 8957 |
else |
| 8958 |
case $cross_compiling:$ac_tool_warned in |
| 8959 |
yes:) |
| 8960 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 8961 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 8962 |
ac_tool_warned=yes ;; |
| 8963 |
esac |
| 8964 |
WINDRES=$ac_ct_WINDRES |
| 8965 |
fi |
| 8966 |
else |
| 8967 |
WINDRES="$ac_cv_prog_WINDRES" |
| 8968 |
fi |
| 8969 |
|
| 8970 |
if test -n "$ac_tool_prefix"; then |
| 8971 |
# Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args. |
| 8972 |
set dummy ${ac_tool_prefix}dllwrap; ac_word=$2 |
| 8973 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8974 |
printf %s "checking for $ac_word... " >&6; } |
| 8975 |
if test ${ac_cv_prog_DLLWRAP+y} |
| 8976 |
then : |
| 8977 |
printf %s "(cached) " >&6 |
| 8978 |
else $as_nop |
| 8979 |
if test -n "$DLLWRAP"; then |
| 8980 |
ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test. |
| 8981 |
else |
| 8982 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8983 |
for as_dir in $PATH |
| 8984 |
do |
| 8985 |
IFS=$as_save_IFS |
| 8986 |
case $as_dir in #((( |
| 8987 |
'') as_dir=./ ;; |
| 8988 |
*/) ;; |
| 8989 |
*) as_dir=$as_dir/ ;; |
| 8990 |
esac |
| 8991 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 8992 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 8993 |
ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap" |
| 8994 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 8995 |
break 2 |
| 8996 |
fi |
| 8997 |
done |
| 8998 |
done |
| 8999 |
IFS=$as_save_IFS |
| 9000 |
|
| 9001 |
fi |
| 9002 |
fi |
| 9003 |
DLLWRAP=$ac_cv_prog_DLLWRAP |
| 9004 |
if test -n "$DLLWRAP"; then |
| 9005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5 |
| 9006 |
colorize_result "$DLLWRAP" ; } |
| 9007 |
else |
| 9008 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9009 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9010 |
fi |
| 9011 |
|
| 9012 |
|
| 9013 |
fi |
| 9014 |
if test -z "$ac_cv_prog_DLLWRAP"; then |
| 9015 |
ac_ct_DLLWRAP=$DLLWRAP |
| 9016 |
# Extract the first word of "dllwrap", so it can be a program name with args. |
| 9017 |
set dummy dllwrap; ac_word=$2 |
| 9018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9019 |
printf %s "checking for $ac_word... " >&6; } |
| 9020 |
if test ${ac_cv_prog_ac_ct_DLLWRAP+y} |
| 9021 |
then : |
| 9022 |
printf %s "(cached) " >&6 |
| 9023 |
else $as_nop |
| 9024 |
if test -n "$ac_ct_DLLWRAP"; then |
| 9025 |
ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test. |
| 9026 |
else |
| 9027 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9028 |
for as_dir in $PATH |
| 9029 |
do |
| 9030 |
IFS=$as_save_IFS |
| 9031 |
case $as_dir in #((( |
| 9032 |
'') as_dir=./ ;; |
| 9033 |
*/) ;; |
| 9034 |
*) as_dir=$as_dir/ ;; |
| 9035 |
esac |
| 9036 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9037 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9038 |
ac_cv_prog_ac_ct_DLLWRAP="dllwrap" |
| 9039 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9040 |
break 2 |
| 9041 |
fi |
| 9042 |
done |
| 9043 |
done |
| 9044 |
IFS=$as_save_IFS |
| 9045 |
|
| 9046 |
fi |
| 9047 |
fi |
| 9048 |
ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP |
| 9049 |
if test -n "$ac_ct_DLLWRAP"; then |
| 9050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5 |
| 9051 |
colorize_result "$ac_ct_DLLWRAP" ; } |
| 9052 |
else |
| 9053 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9054 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9055 |
fi |
| 9056 |
|
| 9057 |
if test "x$ac_ct_DLLWRAP" = x; then |
| 9058 |
DLLWRAP="" |
| 9059 |
else |
| 9060 |
case $cross_compiling:$ac_tool_warned in |
| 9061 |
yes:) |
| 9062 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9063 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9064 |
ac_tool_warned=yes ;; |
| 9065 |
esac |
| 9066 |
DLLWRAP=$ac_ct_DLLWRAP |
| 9067 |
fi |
| 9068 |
else |
| 9069 |
DLLWRAP="$ac_cv_prog_DLLWRAP" |
| 9070 |
fi |
| 9071 |
|
| 9072 |
target=`echo $target | sed "s/^$target_cpu-/-/"` |
| 9073 |
target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"` |
| 9074 |
target_cpu=`echo $target_cpu | sed s/i.86/i386/` |
| 9075 |
case "$target" in #( |
| 9076 |
-*) : |
| 9077 |
target="$target_cpu${target}" ;; #( |
| 9078 |
*) : |
| 9079 |
;; |
| 9080 |
esac |
| 9081 |
case "$target_alias" in #( |
| 9082 |
-*) : |
| 9083 |
target_alias="$target_cpu${target_alias}" ;; #( |
| 9084 |
*) : |
| 9085 |
;; |
| 9086 |
esac |
| 9087 |
case "$target_os" in #( |
| 9088 |
mingw*) : |
| 9089 |
|
| 9090 |
test "$rb_cv_msvcrt" = "" && unset rb_cv_msvcrt |
| 9091 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mingw32 runtime DLL" >&5 |
| 9092 |
printf %s "checking for mingw32 runtime DLL... " >&6; } |
| 9093 |
if test ${rb_cv_msvcrt+y} |
| 9094 |
then : |
| 9095 |
printf %s "(cached) " >&6 |
| 9096 |
else $as_nop |
| 9097 |
|
| 9098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9099 |
/* end confdefs.h. */ |
| 9100 |
#include <stdio.h> |
| 9101 |
int |
| 9102 |
main (void) |
| 9103 |
{ |
| 9104 |
FILE* volatile f = stdin; return 0; |
| 9105 |
; |
| 9106 |
return 0; |
| 9107 |
} |
| 9108 |
_ACEOF |
| 9109 |
if ac_fn_c_try_link "$LINENO" |
| 9110 |
then : |
| 9111 |
rb_cv_msvcrt=`$OBJDUMP -p conftest$ac_exeext | |
| 9112 |
tr A-Z a-z | |
| 9113 |
sed -n '/^[ ]*dll name: \(msvc.*\)\.dll$/{s//\1/p;q;}; |
| 9114 |
/^[ ]*dll name: \(ucrtbase\|api-ms-win-crt-.*\)\.dll$/{s//ucrt/p;q;}'` |
| 9115 |
else $as_nop |
| 9116 |
rb_cv_msvcrt=msvcrt |
| 9117 |
fi |
| 9118 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9119 |
conftest$ac_exeext conftest.$ac_ext |
| 9120 |
test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt |
| 9121 |
fi |
| 9122 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_msvcrt" >&5 |
| 9123 |
colorize_result "$rb_cv_msvcrt" ; } |
| 9124 |
RT_VER=`echo "$rb_cv_msvcrt" | tr -cd 0-9` |
| 9125 |
test "$RT_VER" = "" && RT_VER=60 |
| 9126 |
test "$rb_cv_msvcrt" = "ucrt" && RT_VER=140 |
| 9127 |
printf "%s\n" "#define RUBY_MSVCRT_VERSION $RT_VER" >>confdefs.h |
| 9128 |
|
| 9129 |
sysconfdir= |
| 9130 |
;; #( |
| 9131 |
*) : |
| 9132 |
;; |
| 9133 |
esac |
| 9134 |
rb_cv_binary_elf=no |
| 9135 |
: ${enable_shared=yes} |
| 9136 |
if $WINDRES --version | grep LLVM > /dev/null |
| 9137 |
then : |
| 9138 |
USE_LLVM_WINDRES=yes |
| 9139 |
else $as_nop |
| 9140 |
USE_LLVM_WINDRES=no |
| 9141 |
fi |
| 9142 |
;; #( |
| 9143 |
hiuxmpp*) : |
| 9144 |
printf "%s\n" "#define __HIUX_MPP__ 1" >>confdefs.h |
| 9145 |
;; #( |
| 9146 |
*) : |
| 9147 |
;; |
| 9148 |
esac # by TOYODA Eizi <[email protected]> |
| 9149 |
|
| 9150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 9151 |
printf %s "checking whether ln -s works... " >&6; } |
| 9152 |
LN_S=$as_ln_s |
| 9153 |
if test "$LN_S" = "ln -s"; then |
| 9154 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9155 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9156 |
else |
| 9157 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 9158 |
colorize_result "no, using $LN_S" ; } |
| 9159 |
fi |
| 9160 |
|
| 9161 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 9162 |
printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9163 |
set x ${MAKE-make} |
| 9164 |
ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 9165 |
if eval test \${ac_cv_prog_make_${ac_make}_set+y} |
| 9166 |
then : |
| 9167 |
printf %s "(cached) " >&6 |
| 9168 |
else $as_nop |
| 9169 |
cat >conftest.make <<\_ACEOF |
| 9170 |
SHELL = /bin/sh |
| 9171 |
all: |
| 9172 |
@echo '@@@%%%=$(MAKE)=@@@%%%' |
| 9173 |
_ACEOF |
| 9174 |
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
| 9175 |
case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9176 |
*@@@%%%=?*=@@@%%%*) |
| 9177 |
eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9178 |
*) |
| 9179 |
eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9180 |
esac |
| 9181 |
rm -f conftest.make |
| 9182 |
fi |
| 9183 |
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 9184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9185 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9186 |
SET_MAKE= |
| 9187 |
else |
| 9188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9189 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9190 |
SET_MAKE="MAKE=${MAKE-make}" |
| 9191 |
fi |
| 9192 |
|
| 9193 |
|
| 9194 |
# Find a good install program. We prefer a C program (faster), |
| 9195 |
# so one script is as good as another. But avoid the broken or |
| 9196 |
# incompatible versions: |
| 9197 |
# SysV /etc/install, /usr/sbin/install |
| 9198 |
# SunOS /usr/etc/install |
| 9199 |
# IRIX /sbin/install |
| 9200 |
# AIX /bin/install |
| 9201 |
# AmigaOS /C/install, which installs bootblocks on floppy discs |
| 9202 |
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 9203 |
# AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 9204 |
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 9205 |
# OS/2's system install, which has a completely different semantic |
| 9206 |
# ./install, which can be erroneously created by make from ./install.sh. |
| 9207 |
# Reject install programs that cannot install multiple files. |
| 9208 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 9209 |
printf %s "checking for a BSD-compatible install... " >&6; } |
| 9210 |
if test -z "$INSTALL"; then |
| 9211 |
if test ${ac_cv_path_install+y} |
| 9212 |
then : |
| 9213 |
printf %s "(cached) " >&6 |
| 9214 |
else $as_nop |
| 9215 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9216 |
for as_dir in $PATH |
| 9217 |
do |
| 9218 |
IFS=$as_save_IFS |
| 9219 |
case $as_dir in #((( |
| 9220 |
'') as_dir=./ ;; |
| 9221 |
*/) ;; |
| 9222 |
*) as_dir=$as_dir/ ;; |
| 9223 |
esac |
| 9224 |
# Account for fact that we put trailing slashes in our PATH walk. |
| 9225 |
case $as_dir in #(( |
| 9226 |
./ | /[cC]/* | \ |
| 9227 |
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 9228 |
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 9229 |
/usr/ucb/* ) ;; |
| 9230 |
*) |
| 9231 |
# OSF1 and SCO ODT 3.0 have their own names for install. |
| 9232 |
# Don't use installbsd from OSF since it installs stuff as root |
| 9233 |
# by default. |
| 9234 |
for ac_prog in ginstall scoinst install; do |
| 9235 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9236 |
if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then |
| 9237 |
if test $ac_prog = install && |
| 9238 |
grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9239 |
# AIX install. It has an incompatible calling convention. |
| 9240 |
: |
| 9241 |
elif test $ac_prog = install && |
| 9242 |
grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 9243 |
# program-specific install script used by HP pwplus--don't use. |
| 9244 |
: |
| 9245 |
else |
| 9246 |
rm -rf conftest.one conftest.two conftest.dir |
| 9247 |
echo one > conftest.one |
| 9248 |
echo two > conftest.two |
| 9249 |
mkdir conftest.dir |
| 9250 |
if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && |
| 9251 |
test -s conftest.one && test -s conftest.two && |
| 9252 |
test -s conftest.dir/conftest.one && |
| 9253 |
test -s conftest.dir/conftest.two |
| 9254 |
then |
| 9255 |
ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" |
| 9256 |
break 3 |
| 9257 |
fi |
| 9258 |
fi |
| 9259 |
fi |
| 9260 |
done |
| 9261 |
done |
| 9262 |
;; |
| 9263 |
esac |
| 9264 |
|
| 9265 |
done |
| 9266 |
IFS=$as_save_IFS |
| 9267 |
|
| 9268 |
rm -rf conftest.one conftest.two conftest.dir |
| 9269 |
|
| 9270 |
fi |
| 9271 |
if test ${ac_cv_path_install+y}; then |
| 9272 |
INSTALL=$ac_cv_path_install |
| 9273 |
else |
| 9274 |
# As a last resort, use the slow shell script. Don't cache a |
| 9275 |
# value for INSTALL within a source directory, because that will |
| 9276 |
# break other packages using the cache if that directory is |
| 9277 |
# removed, or if the value is a relative name. |
| 9278 |
INSTALL=$ac_install_sh |
| 9279 |
fi |
| 9280 |
fi |
| 9281 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 9282 |
colorize_result "$INSTALL" ; } |
| 9283 |
|
| 9284 |
# Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 9285 |
# It thinks the first close brace ends the variable substitution. |
| 9286 |
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 9287 |
|
| 9288 |
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 9289 |
|
| 9290 |
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 9291 |
|
| 9292 |
|
| 9293 |
case "$target_os" in #( |
| 9294 |
openbsd*) : |
| 9295 |
|
| 9296 |
ac_cv_path_mkdir="mkdir" |
| 9297 |
;; #( |
| 9298 |
*) : |
| 9299 |
;; |
| 9300 |
esac |
| 9301 |
|
| 9302 |
|
| 9303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 |
| 9304 |
printf %s "checking for a race-free mkdir -p... " >&6; } |
| 9305 |
if test -z "$MKDIR_P"; then |
| 9306 |
if test ${ac_cv_path_mkdir+y} |
| 9307 |
then : |
| 9308 |
printf %s "(cached) " >&6 |
| 9309 |
else $as_nop |
| 9310 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9311 |
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 9312 |
do |
| 9313 |
IFS=$as_save_IFS |
| 9314 |
case $as_dir in #((( |
| 9315 |
'') as_dir=./ ;; |
| 9316 |
*/) ;; |
| 9317 |
*) as_dir=$as_dir/ ;; |
| 9318 |
esac |
| 9319 |
for ac_prog in mkdir gmkdir; do |
| 9320 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9321 |
as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue |
| 9322 |
case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 9323 |
'mkdir ('*'coreutils) '* | \ |
| 9324 |
'BusyBox '* | \ |
| 9325 |
'mkdir (fileutils) '4.1*) |
| 9326 |
ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext |
| 9327 |
break 3;; |
| 9328 |
esac |
| 9329 |
done |
| 9330 |
done |
| 9331 |
done |
| 9332 |
IFS=$as_save_IFS |
| 9333 |
|
| 9334 |
fi |
| 9335 |
|
| 9336 |
test -d ./--version && rmdir ./--version |
| 9337 |
if test ${ac_cv_path_mkdir+y}; then |
| 9338 |
MKDIR_P="$ac_cv_path_mkdir -p" |
| 9339 |
else |
| 9340 |
# As a last resort, use the slow shell script. Don't cache a |
| 9341 |
# value for MKDIR_P within a source directory, because that will |
| 9342 |
# break other packages using the cache if that directory is |
| 9343 |
# removed, or if the value is a relative name. |
| 9344 |
|
| 9345 |
if test "x$MKDIR_P" = "xfalse" |
| 9346 |
then : |
| 9347 |
as_fn_error $? "mkdir -p is required" "$LINENO" 5 |
| 9348 |
fi |
| 9349 |
MKDIR_P="mkdir -p" |
| 9350 |
fi |
| 9351 |
fi |
| 9352 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 9353 |
colorize_result "$MKDIR_P" ; } |
| 9354 |
|
| 9355 |
|
| 9356 |
MAKEDIRS="$MKDIR_P" |
| 9357 |
|
| 9358 |
|
| 9359 |
|
| 9360 |
# Extract the first word of "${ac_tool_prefix}dtrace", so it can be a program name with args. |
| 9361 |
set dummy ${ac_tool_prefix}dtrace; ac_word=$2 |
| 9362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9363 |
printf %s "checking for $ac_word... " >&6; } |
| 9364 |
if test ${ac_cv_prog_DTRACE+y} |
| 9365 |
then : |
| 9366 |
printf %s "(cached) " >&6 |
| 9367 |
else $as_nop |
| 9368 |
if test -n "$DTRACE"; then |
| 9369 |
ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. |
| 9370 |
else |
| 9371 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9372 |
for as_dir in $PATH |
| 9373 |
do |
| 9374 |
IFS=$as_save_IFS |
| 9375 |
case $as_dir in #((( |
| 9376 |
'') as_dir=./ ;; |
| 9377 |
*/) ;; |
| 9378 |
*) as_dir=$as_dir/ ;; |
| 9379 |
esac |
| 9380 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9381 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9382 |
ac_cv_prog_DTRACE="${ac_tool_prefix}dtrace" |
| 9383 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9384 |
break 2 |
| 9385 |
fi |
| 9386 |
done |
| 9387 |
done |
| 9388 |
IFS=$as_save_IFS |
| 9389 |
|
| 9390 |
fi |
| 9391 |
fi |
| 9392 |
DTRACE=$ac_cv_prog_DTRACE |
| 9393 |
if test -n "$DTRACE"; then |
| 9394 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 9395 |
colorize_result "$DTRACE" ; } |
| 9396 |
else |
| 9397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9398 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9399 |
fi |
| 9400 |
|
| 9401 |
|
| 9402 |
if test "$cross_compiling:$ac_cv_prog_DTRACE" = no: -a -n "$ac_tool_prefix" |
| 9403 |
then : |
| 9404 |
|
| 9405 |
# Extract the first word of "dtrace", so it can be a program name with args. |
| 9406 |
set dummy dtrace; ac_word=$2 |
| 9407 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9408 |
printf %s "checking for $ac_word... " >&6; } |
| 9409 |
if test ${ac_cv_prog_DTRACE+y} |
| 9410 |
then : |
| 9411 |
printf %s "(cached) " >&6 |
| 9412 |
else $as_nop |
| 9413 |
if test -n "$DTRACE"; then |
| 9414 |
ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test. |
| 9415 |
else |
| 9416 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9417 |
for as_dir in $PATH |
| 9418 |
do |
| 9419 |
IFS=$as_save_IFS |
| 9420 |
case $as_dir in #((( |
| 9421 |
'') as_dir=./ ;; |
| 9422 |
*/) ;; |
| 9423 |
*) as_dir=$as_dir/ ;; |
| 9424 |
esac |
| 9425 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9426 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9427 |
ac_cv_prog_DTRACE="dtrace" |
| 9428 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9429 |
break 2 |
| 9430 |
fi |
| 9431 |
done |
| 9432 |
done |
| 9433 |
IFS=$as_save_IFS |
| 9434 |
|
| 9435 |
fi |
| 9436 |
fi |
| 9437 |
DTRACE=$ac_cv_prog_DTRACE |
| 9438 |
if test -n "$DTRACE"; then |
| 9439 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 |
| 9440 |
colorize_result "$DTRACE" ; } |
| 9441 |
else |
| 9442 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9443 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9444 |
fi |
| 9445 |
|
| 9446 |
|
| 9447 |
|
| 9448 |
fi |
| 9449 |
|
| 9450 |
for ac_prog in dot |
| 9451 |
do |
| 9452 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9453 |
set dummy $ac_prog; ac_word=$2 |
| 9454 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9455 |
printf %s "checking for $ac_word... " >&6; } |
| 9456 |
if test ${ac_cv_prog_DOT+y} |
| 9457 |
then : |
| 9458 |
printf %s "(cached) " >&6 |
| 9459 |
else $as_nop |
| 9460 |
if test -n "$DOT"; then |
| 9461 |
ac_cv_prog_DOT="$DOT" # Let the user override the test. |
| 9462 |
else |
| 9463 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9464 |
for as_dir in $PATH |
| 9465 |
do |
| 9466 |
IFS=$as_save_IFS |
| 9467 |
case $as_dir in #((( |
| 9468 |
'') as_dir=./ ;; |
| 9469 |
*/) ;; |
| 9470 |
*) as_dir=$as_dir/ ;; |
| 9471 |
esac |
| 9472 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9473 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9474 |
ac_cv_prog_DOT="$ac_prog" |
| 9475 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9476 |
break 2 |
| 9477 |
fi |
| 9478 |
done |
| 9479 |
done |
| 9480 |
IFS=$as_save_IFS |
| 9481 |
|
| 9482 |
fi |
| 9483 |
fi |
| 9484 |
DOT=$ac_cv_prog_DOT |
| 9485 |
if test -n "$DOT"; then |
| 9486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 |
| 9487 |
colorize_result "$DOT" ; } |
| 9488 |
else |
| 9489 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9490 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9491 |
fi |
| 9492 |
|
| 9493 |
|
| 9494 |
test -n "$DOT" && break |
| 9495 |
done |
| 9496 |
|
| 9497 |
for ac_prog in doxygen |
| 9498 |
do |
| 9499 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9500 |
set dummy $ac_prog; ac_word=$2 |
| 9501 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9502 |
printf %s "checking for $ac_word... " >&6; } |
| 9503 |
if test ${ac_cv_prog_DOXYGEN+y} |
| 9504 |
then : |
| 9505 |
printf %s "(cached) " >&6 |
| 9506 |
else $as_nop |
| 9507 |
if test -n "$DOXYGEN"; then |
| 9508 |
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test. |
| 9509 |
else |
| 9510 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9511 |
for as_dir in $PATH |
| 9512 |
do |
| 9513 |
IFS=$as_save_IFS |
| 9514 |
case $as_dir in #((( |
| 9515 |
'') as_dir=./ ;; |
| 9516 |
*/) ;; |
| 9517 |
*) as_dir=$as_dir/ ;; |
| 9518 |
esac |
| 9519 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9520 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9521 |
ac_cv_prog_DOXYGEN="$ac_prog" |
| 9522 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9523 |
break 2 |
| 9524 |
fi |
| 9525 |
done |
| 9526 |
done |
| 9527 |
IFS=$as_save_IFS |
| 9528 |
|
| 9529 |
fi |
| 9530 |
fi |
| 9531 |
DOXYGEN=$ac_cv_prog_DOXYGEN |
| 9532 |
if test -n "$DOXYGEN"; then |
| 9533 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
| 9534 |
colorize_result "$DOXYGEN" ; } |
| 9535 |
else |
| 9536 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9537 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9538 |
fi |
| 9539 |
|
| 9540 |
|
| 9541 |
test -n "$DOXYGEN" && break |
| 9542 |
done |
| 9543 |
|
| 9544 |
|
| 9545 |
tool_warned=$ac_tool_warned ac_tool_warned=no |
| 9546 |
if test -n "$ac_tool_prefix"; then |
| 9547 |
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 9548 |
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 9549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9550 |
printf %s "checking for $ac_word... " >&6; } |
| 9551 |
if test ${ac_cv_prog_PKG_CONFIG+y} |
| 9552 |
then : |
| 9553 |
printf %s "(cached) " >&6 |
| 9554 |
else $as_nop |
| 9555 |
if test -n "$PKG_CONFIG"; then |
| 9556 |
ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. |
| 9557 |
else |
| 9558 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9559 |
for as_dir in $PATH |
| 9560 |
do |
| 9561 |
IFS=$as_save_IFS |
| 9562 |
case $as_dir in #((( |
| 9563 |
'') as_dir=./ ;; |
| 9564 |
*/) ;; |
| 9565 |
*) as_dir=$as_dir/ ;; |
| 9566 |
esac |
| 9567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9568 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9569 |
ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" |
| 9570 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9571 |
break 2 |
| 9572 |
fi |
| 9573 |
done |
| 9574 |
done |
| 9575 |
IFS=$as_save_IFS |
| 9576 |
|
| 9577 |
fi |
| 9578 |
fi |
| 9579 |
PKG_CONFIG=$ac_cv_prog_PKG_CONFIG |
| 9580 |
if test -n "$PKG_CONFIG"; then |
| 9581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 9582 |
colorize_result "$PKG_CONFIG" ; } |
| 9583 |
else |
| 9584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9585 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9586 |
fi |
| 9587 |
|
| 9588 |
|
| 9589 |
fi |
| 9590 |
if test -z "$ac_cv_prog_PKG_CONFIG"; then |
| 9591 |
ac_ct_PKG_CONFIG=$PKG_CONFIG |
| 9592 |
# Extract the first word of "pkg-config", so it can be a program name with args. |
| 9593 |
set dummy pkg-config; ac_word=$2 |
| 9594 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9595 |
printf %s "checking for $ac_word... " >&6; } |
| 9596 |
if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} |
| 9597 |
then : |
| 9598 |
printf %s "(cached) " >&6 |
| 9599 |
else $as_nop |
| 9600 |
if test -n "$ac_ct_PKG_CONFIG"; then |
| 9601 |
ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. |
| 9602 |
else |
| 9603 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9604 |
for as_dir in $PATH |
| 9605 |
do |
| 9606 |
IFS=$as_save_IFS |
| 9607 |
case $as_dir in #((( |
| 9608 |
'') as_dir=./ ;; |
| 9609 |
*/) ;; |
| 9610 |
*) as_dir=$as_dir/ ;; |
| 9611 |
esac |
| 9612 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 9613 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 9614 |
ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" |
| 9615 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 9616 |
break 2 |
| 9617 |
fi |
| 9618 |
done |
| 9619 |
done |
| 9620 |
IFS=$as_save_IFS |
| 9621 |
|
| 9622 |
fi |
| 9623 |
fi |
| 9624 |
ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG |
| 9625 |
if test -n "$ac_ct_PKG_CONFIG"; then |
| 9626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 |
| 9627 |
colorize_result "$ac_ct_PKG_CONFIG" ; } |
| 9628 |
else |
| 9629 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9630 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9631 |
fi |
| 9632 |
|
| 9633 |
if test "x$ac_ct_PKG_CONFIG" = x; then |
| 9634 |
PKG_CONFIG="" |
| 9635 |
else |
| 9636 |
case $cross_compiling:$ac_tool_warned in |
| 9637 |
yes:) |
| 9638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 9639 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 9640 |
ac_tool_warned=yes ;; |
| 9641 |
esac |
| 9642 |
PKG_CONFIG=$ac_ct_PKG_CONFIG |
| 9643 |
fi |
| 9644 |
else |
| 9645 |
PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" |
| 9646 |
fi |
| 9647 |
|
| 9648 |
ac_tool_warned=$tool_warned |
| 9649 |
if test -z "$PKG_CONFIG" |
| 9650 |
then : |
| 9651 |
|
| 9652 |
elif "$PKG_CONFIG" --print-errors --version > /dev/null 2>&1 |
| 9653 |
then : |
| 9654 |
|
| 9655 |
else $as_nop |
| 9656 |
|
| 9657 |
unset ac_cv_prog_PKG_CONFIG |
| 9658 |
PKG_CONFIG= |
| 9659 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $PKG_CONFIG does not work; ignore" >&5 |
| 9660 |
printf "%s\n" "$as_me: WARNING: $PKG_CONFIG does not work; ignore" >&2;} |
| 9661 |
|
| 9662 |
fi |
| 9663 |
|
| 9664 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is Android" >&5 |
| 9665 |
printf %s "checking whether it is Android... " >&6; } |
| 9666 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9667 |
/* end confdefs.h. */ |
| 9668 |
|
| 9669 |
#ifndef __ANDROID__ |
| 9670 |
#error Not android |
| 9671 |
#endif |
| 9672 |
|
| 9673 |
int |
| 9674 |
main (void) |
| 9675 |
{ |
| 9676 |
|
| 9677 |
; |
| 9678 |
return 0; |
| 9679 |
} |
| 9680 |
_ACEOF |
| 9681 |
if ac_fn_c_try_compile "$LINENO" |
| 9682 |
then : |
| 9683 |
|
| 9684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9685 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9686 |
target_os=${target_os}-android |
| 9687 |
if test "x$cross_compiling" = xno |
| 9688 |
then : |
| 9689 |
|
| 9690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Android API version" >&5 |
| 9691 |
printf %s "checking for Android API version... " >&6; } |
| 9692 |
# hacky workaround: https://github.com/termux/termux-packages/issues/6176 |
| 9693 |
rb_android_api=`getprop ro.build.version.sdk` |
| 9694 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_android_api" >&5 |
| 9695 |
colorize_result "$rb_android_api" ; } |
| 9696 |
# RUBY_APPEND_OPTIONS(CPPFLAGS) |
| 9697 |
for rb_opt in -D__ANDROID_API__=$rb_android_api -Wno-macro-redefined; do |
| 9698 |
case " ${CPPFLAGS-} " in #( |
| 9699 |
*" ${rb_opt} "*) : |
| 9700 |
;; #( |
| 9701 |
' ') : |
| 9702 |
CPPFLAGS="${rb_opt}" ;; #( |
| 9703 |
*) : |
| 9704 |
CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; |
| 9705 |
esac |
| 9706 |
done |
| 9707 |
|
| 9708 |
fi |
| 9709 |
|
| 9710 |
else $as_nop |
| 9711 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9712 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9713 |
fi |
| 9714 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9715 |
|
| 9716 |
RM='rm -f' |
| 9717 |
|
| 9718 |
CP='cp' |
| 9719 |
|
| 9720 |
RMDIRS='$(top_srcdir)/tool/rmdirs' |
| 9721 |
RMDIR=rmdir |
| 9722 |
mkdir "rmdirs_$$_test" "rmdirs_$$_test/a" |
| 9723 |
rmdir --ignore-fail-on-non-empty "rmdirs_$$_test" 2>/dev/null && |
| 9724 |
RMDIR='rmdir --ignore-fail-on-non-empty' |
| 9725 |
$RMDIR -p "rmdirs_$$_test/a" 2>/dev/null && |
| 9726 |
{ test -d "rmdirs_$$_test" || RMDIRS="$RMDIR -p"; } |
| 9727 |
rmdir "rmdirs_$$_test/a" "rmdirs_$$_test" 2>/dev/null |
| 9728 |
|
| 9729 |
|
| 9730 |
RMALL='rm -fr' |
| 9731 |
|
| 9732 |
|
| 9733 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cd using physical directory" >&5 |
| 9734 |
printf %s "checking for cd using physical directory... " >&6; } |
| 9735 |
rm -fr conf$$.dir |
| 9736 |
mkdir conf$$.dir && |
| 9737 |
(cd conf$$.dir && mkdir src build && cd src && |
| 9738 |
$as_ln_s ../build . > /dev/null 2>&1 && cd build && |
| 9739 |
for chdir in 'cd -P' 'PWD= cd'; do |
| 9740 |
/bin/sh -c "$chdir ../src && echo '$chdir' > cdcmd" 2> /dev/null && break |
| 9741 |
done) |
| 9742 |
if test -f conf$$.dir/src/cdcmd |
| 9743 |
then : |
| 9744 |
|
| 9745 |
read CHDIR < conf$$.dir/src/cdcmd 2> /dev/null |
| 9746 |
|
| 9747 |
else $as_nop |
| 9748 |
|
| 9749 |
CHDIR=cd |
| 9750 |
|
| 9751 |
fi |
| 9752 |
rm -fr conf$$.dir |
| 9753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHDIR" >&5 |
| 9754 |
colorize_result "$CHDIR" ; } |
| 9755 |
|
| 9756 |
} |
| 9757 |
|
| 9758 |
begin_group "compiler section" && { |
| 9759 |
save_CFLAGS="$CFLAGS" |
| 9760 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 9761 |
if test "${ac_c_werror_flag+set}" |
| 9762 |
then : |
| 9763 |
|
| 9764 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 9765 |
|
| 9766 |
else $as_nop |
| 9767 |
|
| 9768 |
unset rb_c_werror_flag |
| 9769 |
|
| 9770 |
fi |
| 9771 |
ac_c_werror_flag=yes |
| 9772 |
|
| 9773 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS is valid" >&5 |
| 9774 |
printf %s "checking whether CFLAGS is valid... " >&6; } |
| 9775 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9776 |
/* end confdefs.h. */ |
| 9777 |
|
| 9778 |
int |
| 9779 |
main (void) |
| 9780 |
{ |
| 9781 |
|
| 9782 |
; |
| 9783 |
return 0; |
| 9784 |
} |
| 9785 |
_ACEOF |
| 9786 |
if ac_fn_c_try_compile "$LINENO" |
| 9787 |
then : |
| 9788 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9789 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9790 |
else $as_nop |
| 9791 |
|
| 9792 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9793 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9794 |
as_fn_error $? "something wrong with CFLAGS=\"$CFLAGS\"" "$LINENO" 5 |
| 9795 |
|
| 9796 |
|
| 9797 |
fi |
| 9798 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 9799 |
|
| 9800 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether LDFLAGS is valid" >&5 |
| 9801 |
printf %s "checking whether LDFLAGS is valid... " >&6; } |
| 9802 |
{ |
| 9803 |
mkdir tmp.$$.try_link && |
| 9804 |
cd tmp.$$.try_link && |
| 9805 |
cp ../confdefs.h . && |
| 9806 |
echo '<?xml?><plist><dict><key>CFBundleIdentifier</key><string></string></dict></plist>' > Info.plist && |
| 9807 |
: |
| 9808 |
} || as_fn_error $? "failed to make temporary directory" "$LINENO" 5 |
| 9809 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9810 |
/* end confdefs.h. */ |
| 9811 |
|
| 9812 |
int |
| 9813 |
main (void) |
| 9814 |
{ |
| 9815 |
|
| 9816 |
; |
| 9817 |
return 0; |
| 9818 |
} |
| 9819 |
_ACEOF |
| 9820 |
if ac_fn_c_try_link "$LINENO" |
| 9821 |
then : |
| 9822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9823 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9824 |
else $as_nop |
| 9825 |
|
| 9826 |
cd .. && rm -fr tmp.$$.try_link |
| 9827 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9828 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9829 |
as_fn_error $? "something wrong with LDFLAGS=\"$LDFLAGS\"" "$LINENO" 5 |
| 9830 |
|
| 9831 |
|
| 9832 |
fi |
| 9833 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9834 |
conftest$ac_exeext conftest.$ac_ext |
| 9835 |
cd .. && rm -fr tmp.$$.try_link |
| 9836 |
|
| 9837 |
CFLAGS="$save_CFLAGS" |
| 9838 |
save_CFLAGS= |
| 9839 |
if test "${rb_c_werror_flag+set}" |
| 9840 |
then : |
| 9841 |
|
| 9842 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 9843 |
|
| 9844 |
else $as_nop |
| 9845 |
|
| 9846 |
unset ac_c_werror_flag |
| 9847 |
|
| 9848 |
fi |
| 9849 |
|
| 9850 |
: "rpath" && { |
| 9851 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ELF binaries are produced" >&5 |
| 9852 |
printf %s "checking whether ELF binaries are produced... " >&6; } |
| 9853 |
if test ${rb_cv_binary_elf+y} |
| 9854 |
then : |
| 9855 |
printf %s "(cached) " >&6 |
| 9856 |
else $as_nop |
| 9857 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9858 |
/* end confdefs.h. */ |
| 9859 |
|
| 9860 |
int |
| 9861 |
main (void) |
| 9862 |
{ |
| 9863 |
|
| 9864 |
; |
| 9865 |
return 0; |
| 9866 |
} |
| 9867 |
_ACEOF |
| 9868 |
if ac_fn_c_try_link "$LINENO" |
| 9869 |
then : |
| 9870 |
|
| 9871 |
case "`head -1 conftest$EXEEXT | tr -dc '\177ELF' | tr '\177' .`" in #( |
| 9872 |
.ELF*) : |
| 9873 |
rb_cv_binary_elf=yes ;; #( |
| 9874 |
*) : |
| 9875 |
rb_cv_binary_elf=no ;; |
| 9876 |
esac |
| 9877 |
else $as_nop |
| 9878 |
rb_cv_binary_elf=no |
| 9879 |
fi |
| 9880 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9881 |
conftest$ac_exeext conftest.$ac_ext |
| 9882 |
fi |
| 9883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_binary_elf" >&5 |
| 9884 |
colorize_result "$rb_cv_binary_elf" ; } |
| 9885 |
|
| 9886 |
rpathflag='' |
| 9887 |
if test x"${RPATHFLAG=}" = x |
| 9888 |
then : |
| 9889 |
|
| 9890 |
case "$target_os" in #( |
| 9891 |
aix*) : |
| 9892 |
rpathflag='-blibpath:' ;; #( |
| 9893 |
*) : |
| 9894 |
for rpathflag in "-rpath " -R; do |
| 9895 |
case "$rpathflag" in #( |
| 9896 |
*" ") : |
| 9897 |
case "${linker_flag}" in #( |
| 9898 |
*,) : |
| 9899 |
rpathflag=`echo "$rpathflag" | tr ' ' ,` ;; #( |
| 9900 |
*) : |
| 9901 |
;; |
| 9902 |
esac ;; #( |
| 9903 |
*) : |
| 9904 |
;; |
| 9905 |
esac |
| 9906 |
rpathflag="${linker_flag}${rpathflag}" |
| 9907 |
|
| 9908 |
save_LDFLAGS="$LDFLAGS" |
| 9909 |
LDFLAGS="$LDFLAGS ${rpathflag}." |
| 9910 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${rpathflag}. is accepted as LDFLAGS" >&5 |
| 9911 |
printf %s "checking whether ${rpathflag}. is accepted as LDFLAGS... " >&6; } |
| 9912 |
save_CFLAGS="$CFLAGS" |
| 9913 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 9914 |
if test "${ac_c_werror_flag+set}" |
| 9915 |
then : |
| 9916 |
|
| 9917 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 9918 |
|
| 9919 |
else $as_nop |
| 9920 |
|
| 9921 |
unset rb_c_werror_flag |
| 9922 |
|
| 9923 |
fi |
| 9924 |
ac_c_werror_flag=yes |
| 9925 |
|
| 9926 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9927 |
/* end confdefs.h. */ |
| 9928 |
|
| 9929 |
int |
| 9930 |
main (void) |
| 9931 |
{ |
| 9932 |
|
| 9933 |
; |
| 9934 |
return 0; |
| 9935 |
} |
| 9936 |
_ACEOF |
| 9937 |
if ac_fn_c_try_link "$LINENO" |
| 9938 |
then : |
| 9939 |
|
| 9940 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 9941 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 9942 |
else $as_nop |
| 9943 |
rpathflag= |
| 9944 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9945 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 9946 |
fi |
| 9947 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 9948 |
conftest$ac_exeext conftest.$ac_ext |
| 9949 |
|
| 9950 |
CFLAGS="$save_CFLAGS" |
| 9951 |
save_CFLAGS= |
| 9952 |
if test "${rb_c_werror_flag+set}" |
| 9953 |
then : |
| 9954 |
|
| 9955 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 9956 |
|
| 9957 |
else $as_nop |
| 9958 |
|
| 9959 |
unset ac_c_werror_flag |
| 9960 |
|
| 9961 |
fi |
| 9962 |
LDFLAGS="$save_LDFLAGS" |
| 9963 |
save_LDFLAGS= |
| 9964 |
|
| 9965 |
if test "x${rpathflag}" != x |
| 9966 |
then : |
| 9967 |
break |
| 9968 |
fi |
| 9969 |
done ;; |
| 9970 |
esac |
| 9971 |
|
| 9972 |
else $as_nop |
| 9973 |
|
| 9974 |
rpathflag=`echo "$RPATHFLAG" | sed 's/%.*//'` |
| 9975 |
|
| 9976 |
fi |
| 9977 |
|
| 9978 |
# Check whether --enable-rpath was given. |
| 9979 |
if test ${enable_rpath+y} |
| 9980 |
then : |
| 9981 |
enableval=$enable_rpath; enable_rpath=$enableval |
| 9982 |
else $as_nop |
| 9983 |
enable_rpath="$rb_cv_binary_elf" |
| 9984 |
fi |
| 9985 |
|
| 9986 |
|
| 9987 |
if test "$enable_rpath:${RPATHFLAG}" = yes: |
| 9988 |
then : |
| 9989 |
|
| 9990 |
RPATHFLAG="${rpathflag:+ ${rpathflag}%1\$-s}" |
| 9991 |
|
| 9992 |
fi |
| 9993 |
case ${RPATHFLAG} in #( |
| 9994 |
*'%1$'*) : |
| 9995 |
: ${LIBPATHFLAG=' -L%1$-s'} ;; #( |
| 9996 |
*) : |
| 9997 |
: ${LIBPATHFLAG=' -L%s'} ;; |
| 9998 |
esac |
| 9999 |
} |
| 10000 |
|
| 10001 |
|
| 10002 |
save_LDFLAGS="$LDFLAGS" |
| 10003 |
LDFLAGS="$LDFLAGS -fdeclspec" |
| 10004 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as LDFLAGS" >&5 |
| 10005 |
printf %s "checking whether -fdeclspec is accepted as LDFLAGS... " >&6; } |
| 10006 |
save_CFLAGS="$CFLAGS" |
| 10007 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10008 |
if test "${ac_c_werror_flag+set}" |
| 10009 |
then : |
| 10010 |
|
| 10011 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10012 |
|
| 10013 |
else $as_nop |
| 10014 |
|
| 10015 |
unset rb_c_werror_flag |
| 10016 |
|
| 10017 |
fi |
| 10018 |
ac_c_werror_flag=yes |
| 10019 |
|
| 10020 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10021 |
/* end confdefs.h. */ |
| 10022 |
|
| 10023 |
int |
| 10024 |
main (void) |
| 10025 |
{ |
| 10026 |
|
| 10027 |
; |
| 10028 |
return 0; |
| 10029 |
} |
| 10030 |
_ACEOF |
| 10031 |
if ac_fn_c_try_link "$LINENO" |
| 10032 |
then : |
| 10033 |
fdeclspec=yes |
| 10034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10035 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10036 |
else $as_nop |
| 10037 |
fdeclspec=no |
| 10038 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10039 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10040 |
fi |
| 10041 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10042 |
conftest$ac_exeext conftest.$ac_ext |
| 10043 |
|
| 10044 |
CFLAGS="$save_CFLAGS" |
| 10045 |
save_CFLAGS= |
| 10046 |
if test "${rb_c_werror_flag+set}" |
| 10047 |
then : |
| 10048 |
|
| 10049 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10050 |
|
| 10051 |
else $as_nop |
| 10052 |
|
| 10053 |
unset ac_c_werror_flag |
| 10054 |
|
| 10055 |
fi |
| 10056 |
LDFLAGS="$save_LDFLAGS" |
| 10057 |
save_LDFLAGS= |
| 10058 |
|
| 10059 |
if test "$fdeclspec" = yes |
| 10060 |
then : |
| 10061 |
|
| 10062 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 10063 |
for rb_opt in -fdeclspec; do |
| 10064 |
case " ${CFLAGS-} " in #( |
| 10065 |
*" ${rb_opt} "*) : |
| 10066 |
;; #( |
| 10067 |
' ') : |
| 10068 |
CFLAGS="${rb_opt}" ;; #( |
| 10069 |
*) : |
| 10070 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 10071 |
esac |
| 10072 |
done |
| 10073 |
# RUBY_APPEND_OPTIONS(cflags) |
| 10074 |
for rb_opt in -fdeclspec; do |
| 10075 |
case " ${cflags-} " in #( |
| 10076 |
*" ${rb_opt} "*) : |
| 10077 |
;; #( |
| 10078 |
' ') : |
| 10079 |
cflags="${rb_opt}" ;; #( |
| 10080 |
*) : |
| 10081 |
cflags="$cflags ${rb_opt}" ;; |
| 10082 |
esac |
| 10083 |
done |
| 10084 |
# RUBY_APPEND_OPTIONS(orig_cflags) |
| 10085 |
for rb_opt in -fdeclspec; do |
| 10086 |
case " ${orig_cflags-} " in #( |
| 10087 |
*" ${rb_opt} "*) : |
| 10088 |
;; #( |
| 10089 |
' ') : |
| 10090 |
orig_cflags="${rb_opt}" ;; #( |
| 10091 |
*) : |
| 10092 |
orig_cflags="$orig_cflags ${rb_opt}" ;; |
| 10093 |
esac |
| 10094 |
done |
| 10095 |
|
| 10096 |
fi |
| 10097 |
|
| 10098 |
|
| 10099 |
save_CXXFLAGS="$CXXFLAGS" |
| 10100 |
CXXFLAGS="$CXXFLAGS -fdeclspec" |
| 10101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fdeclspec is accepted as CXXFLAGS" >&5 |
| 10102 |
printf %s "checking whether -fdeclspec is accepted as CXXFLAGS... " >&6; } |
| 10103 |
save_CFLAGS="$CFLAGS" |
| 10104 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10105 |
if test "${ac_c_werror_flag+set}" |
| 10106 |
then : |
| 10107 |
|
| 10108 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10109 |
|
| 10110 |
else $as_nop |
| 10111 |
|
| 10112 |
unset rb_c_werror_flag |
| 10113 |
|
| 10114 |
fi |
| 10115 |
ac_c_werror_flag=yes |
| 10116 |
|
| 10117 |
ac_ext=cpp |
| 10118 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 10119 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10120 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10121 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 10122 |
|
| 10123 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10124 |
/* end confdefs.h. */ |
| 10125 |
|
| 10126 |
int |
| 10127 |
main (void) |
| 10128 |
{ |
| 10129 |
|
| 10130 |
; |
| 10131 |
return 0; |
| 10132 |
} |
| 10133 |
_ACEOF |
| 10134 |
if ac_fn_cxx_try_link "$LINENO" |
| 10135 |
then : |
| 10136 |
fdeclspec=yes |
| 10137 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10138 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10139 |
else $as_nop |
| 10140 |
fdeclspec=no |
| 10141 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10142 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10143 |
fi |
| 10144 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10145 |
conftest$ac_exeext conftest.$ac_ext |
| 10146 |
|
| 10147 |
CFLAGS="$save_CFLAGS" |
| 10148 |
save_CFLAGS= |
| 10149 |
if test "${rb_c_werror_flag+set}" |
| 10150 |
then : |
| 10151 |
|
| 10152 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10153 |
|
| 10154 |
else $as_nop |
| 10155 |
|
| 10156 |
unset ac_c_werror_flag |
| 10157 |
|
| 10158 |
fi |
| 10159 |
ac_ext=c |
| 10160 |
ac_cpp='$CPP $CPPFLAGS' |
| 10161 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 10162 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 10163 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 10164 |
|
| 10165 |
CXXFLAGS="$save_CXXFLAGS" |
| 10166 |
save_CXXFLAGS= |
| 10167 |
|
| 10168 |
if test "$fdeclspec" = yes |
| 10169 |
then : |
| 10170 |
|
| 10171 |
# RUBY_APPEND_OPTIONS(CXXFLAGS) |
| 10172 |
for rb_opt in -fdeclspec; do |
| 10173 |
case " ${CXXFLAGS-} " in #( |
| 10174 |
*" ${rb_opt} "*) : |
| 10175 |
;; #( |
| 10176 |
' ') : |
| 10177 |
CXXFLAGS="${rb_opt}" ;; #( |
| 10178 |
*) : |
| 10179 |
CXXFLAGS="$CXXFLAGS ${rb_opt}" ;; |
| 10180 |
esac |
| 10181 |
done |
| 10182 |
|
| 10183 |
fi |
| 10184 |
|
| 10185 |
# Check whether --enable-devel was given. |
| 10186 |
if test ${enable_devel+y} |
| 10187 |
then : |
| 10188 |
enableval=$enable_devel; RUBY_DEVEL=$enableval |
| 10189 |
else $as_nop |
| 10190 |
if test "x${RUBY_DEVEL-no}" != xyes |
| 10191 |
then : |
| 10192 |
RUBY_DEVEL= |
| 10193 |
fi |
| 10194 |
|
| 10195 |
fi |
| 10196 |
|
| 10197 |
particular_werror_flags=${RUBY_DEVEL:-no} |
| 10198 |
# Check whether --enable-werror was given. |
| 10199 |
if test ${enable_werror+y} |
| 10200 |
then : |
| 10201 |
enableval=$enable_werror; particular_werror_flags=$enableval |
| 10202 |
fi |
| 10203 |
|
| 10204 |
|
| 10205 |
rb_cv_warnflags="$warnflags" |
| 10206 |
case "$GCC:${warnflags+set}:${extra_warnflags:+set}:" in #( |
| 10207 |
yes::*|yes:*:set:) : |
| 10208 |
# GCC && (!warnflags || extra_warnflags) |
| 10209 |
if test $gcc_major -le 6 |
| 10210 |
then : |
| 10211 |
|
| 10212 |
extra_warnflags="$extra_warnflags -Wno-maybe-uninitialized" |
| 10213 |
|
| 10214 |
fi |
| 10215 |
case $CFLAGS in #( |
| 10216 |
*" -save-temps="*|*" -save-temps "*) : |
| 10217 |
;; #( |
| 10218 |
*) : |
| 10219 |
|
| 10220 |
extra_warnflags="$extra_warnflags -Werror=misleading-indentation" |
| 10221 |
;; |
| 10222 |
esac |
| 10223 |
|
| 10224 |
# ICC doesn't support -Werror= |
| 10225 |
if test $icc_version -gt 0 |
| 10226 |
then : |
| 10227 |
|
| 10228 |
particular_werror_flags=no |
| 10229 |
|
| 10230 |
fi |
| 10231 |
for wflag in \ |
| 10232 |
-Werror=extra-tokens \ |
| 10233 |
-Werror=deprecated-declarations \ |
| 10234 |
-Werror=division-by-zero -Werror=div-by-zero \ |
| 10235 |
-Werror=duplicated-cond \ |
| 10236 |
-Werror=implicit-function-declaration \ |
| 10237 |
-Werror=implicit-int \ |
| 10238 |
-Werror=pointer-arith \ |
| 10239 |
-Werror=shorten-64-to-32 \ |
| 10240 |
-Werror=write-strings \ |
| 10241 |
-Werror=old-style-definition \ |
| 10242 |
-Wimplicit-fallthrough=0 \ |
| 10243 |
-Wmissing-noreturn \ |
| 10244 |
-Wno-cast-function-type \ |
| 10245 |
-Wno-constant-logical-operand \ |
| 10246 |
-Wno-long-long \ |
| 10247 |
-Wno-missing-field-initializers \ |
| 10248 |
-Wno-overlength-strings \ |
| 10249 |
-Wno-packed-bitfield-compat \ |
| 10250 |
-Wno-parentheses-equality \ |
| 10251 |
-Wno-self-assign \ |
| 10252 |
-Wno-tautological-compare \ |
| 10253 |
-Wno-unused-parameter \ |
| 10254 |
-Wno-unused-value \ |
| 10255 |
-Wsuggest-attribute=format \ |
| 10256 |
-Wsuggest-attribute=noreturn \ |
| 10257 |
-Wunused-variable \ |
| 10258 |
-diag-disable=175,188,1684,2259,2312 \ |
| 10259 |
$extra_warnflags \ |
| 10260 |
; do |
| 10261 |
if test "$particular_werror_flags" != yes |
| 10262 |
then : |
| 10263 |
|
| 10264 |
wflag=`echo x$wflag | sed 's/^x-Werror=/-W/;s/^x//'` |
| 10265 |
|
| 10266 |
fi |
| 10267 |
ok=no |
| 10268 |
|
| 10269 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 |
| 10270 |
printf %s "checking whether $wflag is accepted as CFLAGS... " >&6; } |
| 10271 |
save_CFLAGS="$CFLAGS" |
| 10272 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10273 |
if test "${ac_c_werror_flag+set}" |
| 10274 |
then : |
| 10275 |
|
| 10276 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10277 |
|
| 10278 |
else $as_nop |
| 10279 |
|
| 10280 |
unset rb_c_werror_flag |
| 10281 |
|
| 10282 |
fi |
| 10283 |
ac_c_werror_flag=yes |
| 10284 |
|
| 10285 |
CFLAGS="$CFLAGS $wflag" |
| 10286 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10287 |
/* end confdefs.h. */ |
| 10288 |
|
| 10289 |
int |
| 10290 |
main (void) |
| 10291 |
{ |
| 10292 |
|
| 10293 |
; |
| 10294 |
return 0; |
| 10295 |
} |
| 10296 |
_ACEOF |
| 10297 |
if ac_fn_c_try_compile "$LINENO" |
| 10298 |
then : |
| 10299 |
|
| 10300 |
# RUBY_APPEND_OPTIONS(warnflags) |
| 10301 |
for rb_opt in $wflag; do |
| 10302 |
case " ${warnflags-} " in #( |
| 10303 |
*" ${rb_opt} "*) : |
| 10304 |
;; #( |
| 10305 |
' ') : |
| 10306 |
warnflags="${rb_opt}" ;; #( |
| 10307 |
*) : |
| 10308 |
warnflags="$warnflags ${rb_opt}" ;; |
| 10309 |
esac |
| 10310 |
done |
| 10311 |
ok=yes |
| 10312 |
|
| 10313 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10314 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10315 |
else $as_nop |
| 10316 |
|
| 10317 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10318 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10319 |
fi |
| 10320 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10321 |
|
| 10322 |
CFLAGS="$save_CFLAGS" |
| 10323 |
save_CFLAGS= |
| 10324 |
if test "${rb_c_werror_flag+set}" |
| 10325 |
then : |
| 10326 |
|
| 10327 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10328 |
|
| 10329 |
else $as_nop |
| 10330 |
|
| 10331 |
unset ac_c_werror_flag |
| 10332 |
|
| 10333 |
fi |
| 10334 |
|
| 10335 |
case $ok:$wflag in #( |
| 10336 |
no:-Werror=*) : |
| 10337 |
|
| 10338 |
wflag=`echo x$wflag | sed 's/^x-Werror=/-W/'` |
| 10339 |
|
| 10340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 |
| 10341 |
printf %s "checking whether $wflag is accepted as CFLAGS... " >&6; } |
| 10342 |
save_CFLAGS="$CFLAGS" |
| 10343 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10344 |
if test "${ac_c_werror_flag+set}" |
| 10345 |
then : |
| 10346 |
|
| 10347 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10348 |
|
| 10349 |
else $as_nop |
| 10350 |
|
| 10351 |
unset rb_c_werror_flag |
| 10352 |
|
| 10353 |
fi |
| 10354 |
ac_c_werror_flag=yes |
| 10355 |
|
| 10356 |
CFLAGS="$CFLAGS $wflag" |
| 10357 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10358 |
/* end confdefs.h. */ |
| 10359 |
|
| 10360 |
int |
| 10361 |
main (void) |
| 10362 |
{ |
| 10363 |
|
| 10364 |
; |
| 10365 |
return 0; |
| 10366 |
} |
| 10367 |
_ACEOF |
| 10368 |
if ac_fn_c_try_compile "$LINENO" |
| 10369 |
then : |
| 10370 |
|
| 10371 |
# RUBY_APPEND_OPTIONS(warnflags) |
| 10372 |
for rb_opt in $wflag; do |
| 10373 |
case " ${warnflags-} " in #( |
| 10374 |
*" ${rb_opt} "*) : |
| 10375 |
;; #( |
| 10376 |
' ') : |
| 10377 |
warnflags="${rb_opt}" ;; #( |
| 10378 |
*) : |
| 10379 |
warnflags="$warnflags ${rb_opt}" ;; |
| 10380 |
esac |
| 10381 |
done |
| 10382 |
particular_werror_flags=no |
| 10383 |
|
| 10384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10385 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10386 |
else $as_nop |
| 10387 |
|
| 10388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10389 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10390 |
fi |
| 10391 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10392 |
|
| 10393 |
CFLAGS="$save_CFLAGS" |
| 10394 |
save_CFLAGS= |
| 10395 |
if test "${rb_c_werror_flag+set}" |
| 10396 |
then : |
| 10397 |
|
| 10398 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10399 |
|
| 10400 |
else $as_nop |
| 10401 |
|
| 10402 |
unset ac_c_werror_flag |
| 10403 |
|
| 10404 |
fi |
| 10405 |
|
| 10406 |
;; #( |
| 10407 |
*) : |
| 10408 |
;; |
| 10409 |
esac |
| 10410 |
done |
| 10411 |
if test "$particular_werror_flags" = "yes" |
| 10412 |
then : |
| 10413 |
|
| 10414 |
wflag=-Werror=undef |
| 10415 |
|
| 10416 |
else $as_nop |
| 10417 |
|
| 10418 |
wflag=-Wundef |
| 10419 |
|
| 10420 |
fi |
| 10421 |
|
| 10422 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 |
| 10423 |
printf %s "checking whether $wflag is accepted as CFLAGS... " >&6; } |
| 10424 |
save_CFLAGS="$CFLAGS" |
| 10425 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10426 |
if test "${ac_c_werror_flag+set}" |
| 10427 |
then : |
| 10428 |
|
| 10429 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10430 |
|
| 10431 |
else $as_nop |
| 10432 |
|
| 10433 |
unset rb_c_werror_flag |
| 10434 |
|
| 10435 |
fi |
| 10436 |
ac_c_werror_flag=yes |
| 10437 |
|
| 10438 |
CFLAGS="$CFLAGS $wflag" |
| 10439 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10440 |
/* end confdefs.h. */ |
| 10441 |
|
| 10442 |
#if !defined(RUBY_CONFIG_TEST_NEVER_DEFINED_SYMBOL) |
| 10443 |
#elif RUBY_CONFIG_TEST_NEVER_DEFINED_SYMBOL |
| 10444 |
#endif |
| 10445 |
|
| 10446 |
int |
| 10447 |
main (void) |
| 10448 |
{ |
| 10449 |
|
| 10450 |
; |
| 10451 |
return 0; |
| 10452 |
} |
| 10453 |
_ACEOF |
| 10454 |
if ac_fn_c_try_compile "$LINENO" |
| 10455 |
then : |
| 10456 |
|
| 10457 |
# RUBY_APPEND_OPTIONS(warnflags) |
| 10458 |
for rb_opt in $wflag; do |
| 10459 |
case " ${warnflags-} " in #( |
| 10460 |
*" ${rb_opt} "*) : |
| 10461 |
;; #( |
| 10462 |
' ') : |
| 10463 |
warnflags="${rb_opt}" ;; #( |
| 10464 |
*) : |
| 10465 |
warnflags="$warnflags ${rb_opt}" ;; |
| 10466 |
esac |
| 10467 |
done |
| 10468 |
|
| 10469 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10470 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10471 |
else $as_nop |
| 10472 |
|
| 10473 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10474 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10475 |
fi |
| 10476 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10477 |
|
| 10478 |
CFLAGS="$save_CFLAGS" |
| 10479 |
save_CFLAGS= |
| 10480 |
if test "${rb_c_werror_flag+set}" |
| 10481 |
then : |
| 10482 |
|
| 10483 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10484 |
|
| 10485 |
else $as_nop |
| 10486 |
|
| 10487 |
unset ac_c_werror_flag |
| 10488 |
|
| 10489 |
fi |
| 10490 |
|
| 10491 |
case " $warnflags " in #( |
| 10492 |
*" -Wno-missing-field-initializers "*) : |
| 10493 |
wflag="-Wall -Wextra" ;; #( |
| 10494 |
*) : |
| 10495 |
wflag=-Wall ;; |
| 10496 |
esac |
| 10497 |
|
| 10498 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $wflag is accepted as CFLAGS" >&5 |
| 10499 |
printf %s "checking whether $wflag is accepted as CFLAGS... " >&6; } |
| 10500 |
save_CFLAGS="$CFLAGS" |
| 10501 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10502 |
if test "${ac_c_werror_flag+set}" |
| 10503 |
then : |
| 10504 |
|
| 10505 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10506 |
|
| 10507 |
else $as_nop |
| 10508 |
|
| 10509 |
unset rb_c_werror_flag |
| 10510 |
|
| 10511 |
fi |
| 10512 |
ac_c_werror_flag=yes |
| 10513 |
|
| 10514 |
CFLAGS="$CFLAGS $wflag" |
| 10515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10516 |
/* end confdefs.h. */ |
| 10517 |
|
| 10518 |
int |
| 10519 |
main (void) |
| 10520 |
{ |
| 10521 |
|
| 10522 |
; |
| 10523 |
return 0; |
| 10524 |
} |
| 10525 |
_ACEOF |
| 10526 |
if ac_fn_c_try_compile "$LINENO" |
| 10527 |
then : |
| 10528 |
warnflags="$wflag${warnflags+ $warnflags}" |
| 10529 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10530 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10531 |
else $as_nop |
| 10532 |
|
| 10533 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10534 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10535 |
fi |
| 10536 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10537 |
|
| 10538 |
CFLAGS="$save_CFLAGS" |
| 10539 |
save_CFLAGS= |
| 10540 |
if test "${rb_c_werror_flag+set}" |
| 10541 |
then : |
| 10542 |
|
| 10543 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10544 |
|
| 10545 |
else $as_nop |
| 10546 |
|
| 10547 |
unset ac_c_werror_flag |
| 10548 |
|
| 10549 |
fi |
| 10550 |
|
| 10551 |
# Disable warnflags while conftest. -Werror=* flags might make bad OS capability guess. |
| 10552 |
rb_cv_warnflags="$warnflags" |
| 10553 |
warnflags= |
| 10554 |
;; #( |
| 10555 |
*) : |
| 10556 |
;; |
| 10557 |
esac |
| 10558 |
|
| 10559 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Qunused-arguments is accepted as CFLAGS" >&5 |
| 10560 |
printf %s "checking whether -Qunused-arguments is accepted as CFLAGS... " >&6; } |
| 10561 |
save_CFLAGS="$CFLAGS" |
| 10562 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10563 |
if test "${ac_c_werror_flag+set}" |
| 10564 |
then : |
| 10565 |
|
| 10566 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10567 |
|
| 10568 |
else $as_nop |
| 10569 |
|
| 10570 |
unset rb_c_werror_flag |
| 10571 |
|
| 10572 |
fi |
| 10573 |
ac_c_werror_flag=yes |
| 10574 |
|
| 10575 |
CFLAGS="$CFLAGS -Qunused-arguments" |
| 10576 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10577 |
/* end confdefs.h. */ |
| 10578 |
|
| 10579 |
int |
| 10580 |
main (void) |
| 10581 |
{ |
| 10582 |
|
| 10583 |
; |
| 10584 |
return 0; |
| 10585 |
} |
| 10586 |
_ACEOF |
| 10587 |
if ac_fn_c_try_compile "$LINENO" |
| 10588 |
then : |
| 10589 |
# RUBY_APPEND_OPTIONS(rb_cv_wsuppress_flags) |
| 10590 |
for rb_opt in -Qunused-arguments; do |
| 10591 |
case " ${rb_cv_wsuppress_flags-} " in #( |
| 10592 |
*" ${rb_opt} "*) : |
| 10593 |
;; #( |
| 10594 |
' ') : |
| 10595 |
rb_cv_wsuppress_flags="${rb_opt}" ;; #( |
| 10596 |
*) : |
| 10597 |
rb_cv_wsuppress_flags="$rb_cv_wsuppress_flags ${rb_opt}" ;; |
| 10598 |
esac |
| 10599 |
done |
| 10600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10601 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10602 |
else $as_nop |
| 10603 |
|
| 10604 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10605 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10606 |
fi |
| 10607 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10608 |
|
| 10609 |
CFLAGS="$save_CFLAGS" |
| 10610 |
save_CFLAGS= |
| 10611 |
if test "${rb_c_werror_flag+set}" |
| 10612 |
then : |
| 10613 |
|
| 10614 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10615 |
|
| 10616 |
else $as_nop |
| 10617 |
|
| 10618 |
unset ac_c_werror_flag |
| 10619 |
|
| 10620 |
fi |
| 10621 |
|
| 10622 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10623 |
/* end confdefs.h. */ |
| 10624 |
|
| 10625 |
|
| 10626 |
#if !(defined(__SUNPRO_C)||defined(__SUNPRO_CC)) |
| 10627 |
#error not sunpro |
| 10628 |
#endif |
| 10629 |
int |
| 10630 |
main (void) |
| 10631 |
{ |
| 10632 |
|
| 10633 |
; |
| 10634 |
return 0; |
| 10635 |
} |
| 10636 |
_ACEOF |
| 10637 |
if ac_fn_c_try_compile "$LINENO" |
| 10638 |
then : |
| 10639 |
|
| 10640 |
for e in \ |
| 10641 |
E_STATEMENT_NOT_REACHED \ |
| 10642 |
E_INIT_SIGN_EXTEND \ |
| 10643 |
E_INIT_DOES_NOT_FIT \ |
| 10644 |
E_INITIALIZATION_TYPE_MISMATCH |
| 10645 |
do |
| 10646 |
|
| 10647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -erroff=${e} is accepted as CFLAGS" >&5 |
| 10648 |
printf %s "checking whether -erroff=${e} is accepted as CFLAGS... " >&6; } |
| 10649 |
save_CFLAGS="$CFLAGS" |
| 10650 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10651 |
if test "${ac_c_werror_flag+set}" |
| 10652 |
then : |
| 10653 |
|
| 10654 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10655 |
|
| 10656 |
else $as_nop |
| 10657 |
|
| 10658 |
unset rb_c_werror_flag |
| 10659 |
|
| 10660 |
fi |
| 10661 |
ac_c_werror_flag=yes |
| 10662 |
|
| 10663 |
CFLAGS="$CFLAGS -erroff=${e}" |
| 10664 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10665 |
/* end confdefs.h. */ |
| 10666 |
|
| 10667 |
int |
| 10668 |
main (void) |
| 10669 |
{ |
| 10670 |
|
| 10671 |
; |
| 10672 |
return 0; |
| 10673 |
} |
| 10674 |
_ACEOF |
| 10675 |
if ac_fn_c_try_compile "$LINENO" |
| 10676 |
then : |
| 10677 |
|
| 10678 |
# RUBY_APPEND_OPTIONS(rb_cv_warnflags) |
| 10679 |
for rb_opt in -erroff=${e}; do |
| 10680 |
case " ${rb_cv_warnflags-} " in #( |
| 10681 |
*" ${rb_opt} "*) : |
| 10682 |
;; #( |
| 10683 |
' ') : |
| 10684 |
rb_cv_warnflags="${rb_opt}" ;; #( |
| 10685 |
*) : |
| 10686 |
rb_cv_warnflags="$rb_cv_warnflags ${rb_opt}" ;; |
| 10687 |
esac |
| 10688 |
done |
| 10689 |
|
| 10690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10691 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10692 |
else $as_nop |
| 10693 |
|
| 10694 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10695 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10696 |
fi |
| 10697 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10698 |
|
| 10699 |
CFLAGS="$save_CFLAGS" |
| 10700 |
save_CFLAGS= |
| 10701 |
if test "${rb_c_werror_flag+set}" |
| 10702 |
then : |
| 10703 |
|
| 10704 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10705 |
|
| 10706 |
else $as_nop |
| 10707 |
|
| 10708 |
unset ac_c_werror_flag |
| 10709 |
|
| 10710 |
fi |
| 10711 |
|
| 10712 |
done |
| 10713 |
|
| 10714 |
fi |
| 10715 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10716 |
|
| 10717 |
|
| 10718 |
# Check whether --with-compress-debug-sections was given. |
| 10719 |
if test ${with_compress_debug_sections+y} |
| 10720 |
then : |
| 10721 |
withval=$with_compress_debug_sections; compress_debug_sections=$withval |
| 10722 |
else $as_nop |
| 10723 |
compress_debug_sections= |
| 10724 |
fi |
| 10725 |
|
| 10726 |
|
| 10727 |
if test "$GCC" = yes |
| 10728 |
then : |
| 10729 |
|
| 10730 |
# -D_FORTIFY_SOURCE |
| 10731 |
# When defined _FORTIFY_SOURCE, glibc enables some additional sanity |
| 10732 |
# argument check. The performance drop is very little and Ubuntu enables |
| 10733 |
# _FORTIFY_SOURCE=2 by default. So, let's support it for protecting us from |
| 10734 |
# a mistake of silly C extensions. |
| 10735 |
|
| 10736 |
# TODO: check if link succeeds with _FORTIFY_SOURCE=2. |
| 10737 |
case "$target_os" in #( |
| 10738 |
mingw*) : |
| 10739 |
|
| 10740 |
fortify_source=no |
| 10741 |
;; #( |
| 10742 |
*) : |
| 10743 |
;; |
| 10744 |
esac |
| 10745 |
# Check whether --enable-fortify_source was given. |
| 10746 |
if test ${enable_fortify_source+y} |
| 10747 |
then : |
| 10748 |
enableval=$enable_fortify_source; fortify_source=$enableval |
| 10749 |
fi |
| 10750 |
|
| 10751 |
if test "x$fortify_source" != xno |
| 10752 |
then : |
| 10753 |
|
| 10754 |
|
| 10755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $optflags -D_FORTIFY_SOURCE=2 is accepted as CFLAGS" >&5 |
| 10756 |
printf %s "checking whether $optflags -D_FORTIFY_SOURCE=2 is accepted as CFLAGS... " >&6; } |
| 10757 |
save_CFLAGS="$CFLAGS" |
| 10758 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10759 |
if test "${ac_c_werror_flag+set}" |
| 10760 |
then : |
| 10761 |
|
| 10762 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10763 |
|
| 10764 |
else $as_nop |
| 10765 |
|
| 10766 |
unset rb_c_werror_flag |
| 10767 |
|
| 10768 |
fi |
| 10769 |
ac_c_werror_flag=yes |
| 10770 |
|
| 10771 |
CFLAGS="$CFLAGS $optflags -D_FORTIFY_SOURCE=2" |
| 10772 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10773 |
/* end confdefs.h. */ |
| 10774 |
#include <stdio.h> |
| 10775 |
int |
| 10776 |
main (void) |
| 10777 |
{ |
| 10778 |
|
| 10779 |
; |
| 10780 |
return 0; |
| 10781 |
} |
| 10782 |
_ACEOF |
| 10783 |
if ac_fn_c_try_compile "$LINENO" |
| 10784 |
then : |
| 10785 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 10786 |
case " ${XCFLAGS-} " in #( |
| 10787 |
*" -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 "*) : |
| 10788 |
;; #( |
| 10789 |
' ') : |
| 10790 |
XCFLAGS="-U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" ;; #( |
| 10791 |
*) : |
| 10792 |
XCFLAGS="$XCFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" ;; |
| 10793 |
esac |
| 10794 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10795 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10796 |
else $as_nop |
| 10797 |
|
| 10798 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10799 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10800 |
fi |
| 10801 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10802 |
|
| 10803 |
CFLAGS="$save_CFLAGS" |
| 10804 |
save_CFLAGS= |
| 10805 |
if test "${rb_c_werror_flag+set}" |
| 10806 |
then : |
| 10807 |
|
| 10808 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10809 |
|
| 10810 |
else $as_nop |
| 10811 |
|
| 10812 |
unset ac_c_werror_flag |
| 10813 |
|
| 10814 |
fi |
| 10815 |
|
| 10816 |
|
| 10817 |
fi |
| 10818 |
|
| 10819 |
# -fstack-protector |
| 10820 |
case "$target_os" in #( |
| 10821 |
emscripten*|wasi*) : |
| 10822 |
|
| 10823 |
stack_protector=no |
| 10824 |
;; #( |
| 10825 |
*) : |
| 10826 |
;; |
| 10827 |
esac |
| 10828 |
if test -z "${stack_protector+set}" |
| 10829 |
then : |
| 10830 |
|
| 10831 |
for opt in -fstack-protector-strong -fstack-protector |
| 10832 |
do : |
| 10833 |
|
| 10834 |
|
| 10835 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $opt is accepted as CFLAGS" >&5 |
| 10836 |
printf %s "checking whether $opt is accepted as CFLAGS... " >&6; } |
| 10837 |
save_CFLAGS="$CFLAGS" |
| 10838 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10839 |
if test "${ac_c_werror_flag+set}" |
| 10840 |
then : |
| 10841 |
|
| 10842 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10843 |
|
| 10844 |
else $as_nop |
| 10845 |
|
| 10846 |
unset rb_c_werror_flag |
| 10847 |
|
| 10848 |
fi |
| 10849 |
ac_c_werror_flag=yes |
| 10850 |
|
| 10851 |
CFLAGS="$CFLAGS $opt" |
| 10852 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10853 |
/* end confdefs.h. */ |
| 10854 |
|
| 10855 |
int |
| 10856 |
main (void) |
| 10857 |
{ |
| 10858 |
|
| 10859 |
; |
| 10860 |
return 0; |
| 10861 |
} |
| 10862 |
_ACEOF |
| 10863 |
if ac_fn_c_try_compile "$LINENO" |
| 10864 |
then : |
| 10865 |
stack_protector=yes |
| 10866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10867 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10868 |
else $as_nop |
| 10869 |
|
| 10870 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10871 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10872 |
fi |
| 10873 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10874 |
|
| 10875 |
CFLAGS="$save_CFLAGS" |
| 10876 |
save_CFLAGS= |
| 10877 |
if test "${rb_c_werror_flag+set}" |
| 10878 |
then : |
| 10879 |
|
| 10880 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10881 |
|
| 10882 |
else $as_nop |
| 10883 |
|
| 10884 |
unset ac_c_werror_flag |
| 10885 |
|
| 10886 |
fi |
| 10887 |
|
| 10888 |
if test "x$stack_protector" = xyes |
| 10889 |
then : |
| 10890 |
|
| 10891 |
|
| 10892 |
save_LDFLAGS="$LDFLAGS" |
| 10893 |
LDFLAGS="$LDFLAGS $opt" |
| 10894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $opt is accepted as LDFLAGS" >&5 |
| 10895 |
printf %s "checking whether $opt is accepted as LDFLAGS... " >&6; } |
| 10896 |
save_CFLAGS="$CFLAGS" |
| 10897 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 10898 |
if test "${ac_c_werror_flag+set}" |
| 10899 |
then : |
| 10900 |
|
| 10901 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 10902 |
|
| 10903 |
else $as_nop |
| 10904 |
|
| 10905 |
unset rb_c_werror_flag |
| 10906 |
|
| 10907 |
fi |
| 10908 |
ac_c_werror_flag=yes |
| 10909 |
|
| 10910 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10911 |
/* end confdefs.h. */ |
| 10912 |
|
| 10913 |
int |
| 10914 |
main (void) |
| 10915 |
{ |
| 10916 |
|
| 10917 |
; |
| 10918 |
return 0; |
| 10919 |
} |
| 10920 |
_ACEOF |
| 10921 |
if ac_fn_c_try_link "$LINENO" |
| 10922 |
then : |
| 10923 |
|
| 10924 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10925 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 10926 |
else $as_nop |
| 10927 |
stack_protector= |
| 10928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10929 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 10930 |
fi |
| 10931 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 10932 |
conftest$ac_exeext conftest.$ac_ext |
| 10933 |
|
| 10934 |
CFLAGS="$save_CFLAGS" |
| 10935 |
save_CFLAGS= |
| 10936 |
if test "${rb_c_werror_flag+set}" |
| 10937 |
then : |
| 10938 |
|
| 10939 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 10940 |
|
| 10941 |
else $as_nop |
| 10942 |
|
| 10943 |
unset ac_c_werror_flag |
| 10944 |
|
| 10945 |
fi |
| 10946 |
LDFLAGS="$save_LDFLAGS" |
| 10947 |
save_LDFLAGS= |
| 10948 |
|
| 10949 |
|
| 10950 |
fi |
| 10951 |
if test "x$stack_protector" = xyes |
| 10952 |
then : |
| 10953 |
stack_protector=$opt; break |
| 10954 |
fi |
| 10955 |
|
| 10956 |
done |
| 10957 |
|
| 10958 |
fi |
| 10959 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fstack-protector" >&5 |
| 10960 |
printf %s "checking for -fstack-protector... " >&6; } |
| 10961 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$stack_protector\"" >&5 |
| 10962 |
colorize_result ""$stack_protector"" ; } |
| 10963 |
case "$stack_protector" in #( |
| 10964 |
-*) : |
| 10965 |
|
| 10966 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 10967 |
case " ${XCFLAGS-} " in #( |
| 10968 |
*" $stack_protector "*) : |
| 10969 |
;; #( |
| 10970 |
' ') : |
| 10971 |
XCFLAGS="$stack_protector" ;; #( |
| 10972 |
*) : |
| 10973 |
XCFLAGS="$XCFLAGS $stack_protector" ;; |
| 10974 |
esac |
| 10975 |
# RUBY_APPEND_OPTION(XLDFLAGS) |
| 10976 |
case " ${XLDFLAGS-} " in #( |
| 10977 |
*" $stack_protector "*) : |
| 10978 |
;; #( |
| 10979 |
' ') : |
| 10980 |
XLDFLAGS="$stack_protector" ;; #( |
| 10981 |
*) : |
| 10982 |
XLDFLAGS="$XLDFLAGS $stack_protector" ;; |
| 10983 |
esac |
| 10984 |
# RUBY_APPEND_OPTION(LDFLAGS) |
| 10985 |
case " ${LDFLAGS-} " in #( |
| 10986 |
*" $stack_protector "*) : |
| 10987 |
;; #( |
| 10988 |
' ') : |
| 10989 |
LDFLAGS="$stack_protector" ;; #( |
| 10990 |
*) : |
| 10991 |
LDFLAGS="$LDFLAGS $stack_protector" ;; |
| 10992 |
esac |
| 10993 |
;; #( |
| 10994 |
*) : |
| 10995 |
;; |
| 10996 |
esac |
| 10997 |
|
| 10998 |
# aarch64 branch protection |
| 10999 |
case "$target_cpu" in #( |
| 11000 |
aarch64) : |
| 11001 |
|
| 11002 |
for opt in -mbranch-protection=pac-ret -msign-return-address=all |
| 11003 |
do : |
| 11004 |
|
| 11005 |
|
| 11006 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $opt is accepted as CFLAGS" >&5 |
| 11007 |
printf %s "checking whether $opt is accepted as CFLAGS... " >&6; } |
| 11008 |
save_CFLAGS="$CFLAGS" |
| 11009 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11010 |
if test "${ac_c_werror_flag+set}" |
| 11011 |
then : |
| 11012 |
|
| 11013 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11014 |
|
| 11015 |
else $as_nop |
| 11016 |
|
| 11017 |
unset rb_c_werror_flag |
| 11018 |
|
| 11019 |
fi |
| 11020 |
ac_c_werror_flag=yes |
| 11021 |
|
| 11022 |
CFLAGS="$CFLAGS $opt" |
| 11023 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11024 |
/* end confdefs.h. */ |
| 11025 |
|
| 11026 |
int |
| 11027 |
main (void) |
| 11028 |
{ |
| 11029 |
|
| 11030 |
; |
| 11031 |
return 0; |
| 11032 |
} |
| 11033 |
_ACEOF |
| 11034 |
if ac_fn_c_try_compile "$LINENO" |
| 11035 |
then : |
| 11036 |
branch_protection=yes |
| 11037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11038 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11039 |
else $as_nop |
| 11040 |
branch_protection=no |
| 11041 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11042 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11043 |
fi |
| 11044 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11045 |
|
| 11046 |
CFLAGS="$save_CFLAGS" |
| 11047 |
save_CFLAGS= |
| 11048 |
if test "${rb_c_werror_flag+set}" |
| 11049 |
then : |
| 11050 |
|
| 11051 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11052 |
|
| 11053 |
else $as_nop |
| 11054 |
|
| 11055 |
unset ac_c_werror_flag |
| 11056 |
|
| 11057 |
fi |
| 11058 |
|
| 11059 |
if test "x$branch_protection" = xyes |
| 11060 |
then : |
| 11061 |
|
| 11062 |
# C compiler and assembler must be consistent for -mbranch-protection |
| 11063 |
# since they both check `__ARM_FEATURE_PAC_DEFAULT` definition. |
| 11064 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 11065 |
case " ${XCFLAGS-} " in #( |
| 11066 |
*" $opt "*) : |
| 11067 |
;; #( |
| 11068 |
' ') : |
| 11069 |
XCFLAGS="$opt" ;; #( |
| 11070 |
*) : |
| 11071 |
XCFLAGS="$XCFLAGS $opt" ;; |
| 11072 |
esac |
| 11073 |
# RUBY_APPEND_OPTION(ASFLAGS) |
| 11074 |
case " ${ASFLAGS-} " in #( |
| 11075 |
*" $opt "*) : |
| 11076 |
;; #( |
| 11077 |
' ') : |
| 11078 |
ASFLAGS="$opt" ;; #( |
| 11079 |
*) : |
| 11080 |
ASFLAGS="$ASFLAGS $opt" ;; |
| 11081 |
esac |
| 11082 |
break |
| 11083 |
|
| 11084 |
fi |
| 11085 |
|
| 11086 |
done |
| 11087 |
;; #( |
| 11088 |
*) : |
| 11089 |
;; |
| 11090 |
esac |
| 11091 |
|
| 11092 |
case "${compress_debug_sections:-zlib}" in #( |
| 11093 |
none|no) : |
| 11094 |
;; #( |
| 11095 |
*) : |
| 11096 |
|
| 11097 |
|
| 11098 |
save_LDFLAGS="$LDFLAGS" |
| 11099 |
LDFLAGS="$LDFLAGS ${linker_flag}--compress-debug-sections=${compress_debug_sections:-zlib}" |
| 11100 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${linker_flag}--compress-debug-sections=${compress_debug_sections:-zlib} is accepted as LDFLAGS" >&5 |
| 11101 |
printf %s "checking whether ${linker_flag}--compress-debug-sections=${compress_debug_sections:-zlib} is accepted as LDFLAGS... " >&6; } |
| 11102 |
save_CFLAGS="$CFLAGS" |
| 11103 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11104 |
if test "${ac_c_werror_flag+set}" |
| 11105 |
then : |
| 11106 |
|
| 11107 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11108 |
|
| 11109 |
else $as_nop |
| 11110 |
|
| 11111 |
unset rb_c_werror_flag |
| 11112 |
|
| 11113 |
fi |
| 11114 |
ac_c_werror_flag=yes |
| 11115 |
|
| 11116 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11117 |
/* end confdefs.h. */ |
| 11118 |
|
| 11119 |
int |
| 11120 |
main (void) |
| 11121 |
{ |
| 11122 |
|
| 11123 |
; |
| 11124 |
return 0; |
| 11125 |
} |
| 11126 |
_ACEOF |
| 11127 |
if ac_fn_c_try_link "$LINENO" |
| 11128 |
then : |
| 11129 |
compress_debug_sections=${compress_debug_sections:-zlib} |
| 11130 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11131 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11132 |
else $as_nop |
| 11133 |
compress_debug_sections=no |
| 11134 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11135 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11136 |
fi |
| 11137 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11138 |
conftest$ac_exeext conftest.$ac_ext |
| 11139 |
|
| 11140 |
CFLAGS="$save_CFLAGS" |
| 11141 |
save_CFLAGS= |
| 11142 |
if test "${rb_c_werror_flag+set}" |
| 11143 |
then : |
| 11144 |
|
| 11145 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11146 |
|
| 11147 |
else $as_nop |
| 11148 |
|
| 11149 |
unset ac_c_werror_flag |
| 11150 |
|
| 11151 |
fi |
| 11152 |
LDFLAGS="$save_LDFLAGS" |
| 11153 |
save_LDFLAGS= |
| 11154 |
|
| 11155 |
;; |
| 11156 |
esac |
| 11157 |
if test "x$compress_debug_sections" != xno |
| 11158 |
then : |
| 11159 |
|
| 11160 |
# RUBY_APPEND_OPTION(DLDFLAGS) |
| 11161 |
case " ${DLDFLAGS-} " in #( |
| 11162 |
*" ${linker_flag}--compress-debug-sections=$compress_debug_sections "*) : |
| 11163 |
;; #( |
| 11164 |
' ') : |
| 11165 |
DLDFLAGS="${linker_flag}--compress-debug-sections=$compress_debug_sections" ;; #( |
| 11166 |
*) : |
| 11167 |
DLDFLAGS="$DLDFLAGS ${linker_flag}--compress-debug-sections=$compress_debug_sections" ;; |
| 11168 |
esac |
| 11169 |
|
| 11170 |
fi |
| 11171 |
|
| 11172 |
case "$target_os" in #( |
| 11173 |
mingw*) : |
| 11174 |
|
| 11175 |
# On Windows platforms, system provided headers are VC++ |
| 11176 |
# optimized. That is, C++ habits are often contaminated into |
| 11177 |
# various headers. Most frequent situation is the use of // |
| 11178 |
# comments. We bypass ANSI C mode for them. Otherwise |
| 11179 |
# extension libs cannot include those headers. |
| 11180 |
|
| 11181 |
# Since math.h in some mingw64 wrongly declares frexp and modf |
| 11182 |
# to be pure, the variables pointed by the second arguments are |
| 11183 |
# considered uninitialized unexpectedly. |
| 11184 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp and modf are broken" >&5 |
| 11185 |
printf %s "checking whether frexp and modf are broken... " >&6; } |
| 11186 |
if test ${rb_cv_mingw64_broken_frexp_modf+y} |
| 11187 |
then : |
| 11188 |
printf %s "(cached) " >&6 |
| 11189 |
else $as_nop |
| 11190 |
|
| 11191 |
save_CFLAGS="$CFLAGS" |
| 11192 |
if test "$particular_werror_flags" = "yes" |
| 11193 |
then : |
| 11194 |
|
| 11195 |
CFLAGS="$CFLAGS -Werror=uninitialized" |
| 11196 |
|
| 11197 |
else $as_nop |
| 11198 |
|
| 11199 |
CFLAGS="$CFLAGS -Werror -Wuninitialized" |
| 11200 |
|
| 11201 |
fi |
| 11202 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11203 |
/* end confdefs.h. */ |
| 11204 |
#include <math.h> |
| 11205 |
int foo(double x) |
| 11206 |
{ |
| 11207 |
int exp; |
| 11208 |
frexp(x, &exp); |
| 11209 |
return exp; |
| 11210 |
} |
| 11211 |
int |
| 11212 |
main (void) |
| 11213 |
{ |
| 11214 |
if (foo(0.0)) return 1; |
| 11215 |
; |
| 11216 |
return 0; |
| 11217 |
} |
| 11218 |
_ACEOF |
| 11219 |
if ac_fn_c_try_compile "$LINENO" |
| 11220 |
then : |
| 11221 |
rb_cv_mingw64_broken_frexp_modf=no |
| 11222 |
else $as_nop |
| 11223 |
rb_cv_mingw64_broken_frexp_modf=yes |
| 11224 |
fi |
| 11225 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11226 |
CFLAGS="$save_CFLAGS" |
| 11227 |
|
| 11228 |
fi |
| 11229 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mingw64_broken_frexp_modf" >&5 |
| 11230 |
colorize_result "$rb_cv_mingw64_broken_frexp_modf" ; } |
| 11231 |
if test "$rb_cv_mingw64_broken_frexp_modf" = yes |
| 11232 |
then : |
| 11233 |
|
| 11234 |
printf "%s\n" "#define RUBY_MINGW64_BROKEN_FREXP_MODF 1" >>confdefs.h |
| 11235 |
|
| 11236 |
|
| 11237 |
fi |
| 11238 |
;; #( |
| 11239 |
cygwin*|msys*|darwin*|netbsd*) : |
| 11240 |
|
| 11241 |
# need lgamma_r() |
| 11242 |
;; #( |
| 11243 |
*) : |
| 11244 |
;; |
| 11245 |
esac |
| 11246 |
|
| 11247 |
# suppress annoying -Wstrict-overflow warnings |
| 11248 |
|
| 11249 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fno-strict-overflow is accepted as CFLAGS" >&5 |
| 11250 |
printf %s "checking whether -fno-strict-overflow is accepted as CFLAGS... " >&6; } |
| 11251 |
save_CFLAGS="$CFLAGS" |
| 11252 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11253 |
if test "${ac_c_werror_flag+set}" |
| 11254 |
then : |
| 11255 |
|
| 11256 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11257 |
|
| 11258 |
else $as_nop |
| 11259 |
|
| 11260 |
unset rb_c_werror_flag |
| 11261 |
|
| 11262 |
fi |
| 11263 |
ac_c_werror_flag=yes |
| 11264 |
|
| 11265 |
CFLAGS="$CFLAGS -fno-strict-overflow" |
| 11266 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11267 |
/* end confdefs.h. */ |
| 11268 |
|
| 11269 |
int |
| 11270 |
main (void) |
| 11271 |
{ |
| 11272 |
|
| 11273 |
; |
| 11274 |
return 0; |
| 11275 |
} |
| 11276 |
_ACEOF |
| 11277 |
if ac_fn_c_try_compile "$LINENO" |
| 11278 |
then : |
| 11279 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 11280 |
case " ${XCFLAGS-} " in #( |
| 11281 |
*" -fno-strict-overflow "*) : |
| 11282 |
;; #( |
| 11283 |
' ') : |
| 11284 |
XCFLAGS="-fno-strict-overflow" ;; #( |
| 11285 |
*) : |
| 11286 |
XCFLAGS="$XCFLAGS -fno-strict-overflow" ;; |
| 11287 |
esac |
| 11288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11289 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11290 |
else $as_nop |
| 11291 |
|
| 11292 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11293 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11294 |
fi |
| 11295 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11296 |
|
| 11297 |
CFLAGS="$save_CFLAGS" |
| 11298 |
save_CFLAGS= |
| 11299 |
if test "${rb_c_werror_flag+set}" |
| 11300 |
then : |
| 11301 |
|
| 11302 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11303 |
|
| 11304 |
else $as_nop |
| 11305 |
|
| 11306 |
unset ac_c_werror_flag |
| 11307 |
|
| 11308 |
fi |
| 11309 |
|
| 11310 |
|
| 11311 |
test "${debugflags+set}" || { |
| 11312 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -ggdb3 is accepted as CFLAGS" >&5 |
| 11313 |
printf %s "checking whether -ggdb3 is accepted as CFLAGS... " >&6; } |
| 11314 |
save_CFLAGS="$CFLAGS" |
| 11315 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11316 |
if test "${ac_c_werror_flag+set}" |
| 11317 |
then : |
| 11318 |
|
| 11319 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11320 |
|
| 11321 |
else $as_nop |
| 11322 |
|
| 11323 |
unset rb_c_werror_flag |
| 11324 |
|
| 11325 |
fi |
| 11326 |
ac_c_werror_flag=yes |
| 11327 |
|
| 11328 |
CFLAGS="$CFLAGS -ggdb3" |
| 11329 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11330 |
/* end confdefs.h. */ |
| 11331 |
|
| 11332 |
int |
| 11333 |
main (void) |
| 11334 |
{ |
| 11335 |
|
| 11336 |
; |
| 11337 |
return 0; |
| 11338 |
} |
| 11339 |
_ACEOF |
| 11340 |
if ac_fn_c_try_compile "$LINENO" |
| 11341 |
then : |
| 11342 |
debugflags=-ggdb3 |
| 11343 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11344 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11345 |
else $as_nop |
| 11346 |
|
| 11347 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11348 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11349 |
fi |
| 11350 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11351 |
|
| 11352 |
CFLAGS="$save_CFLAGS" |
| 11353 |
save_CFLAGS= |
| 11354 |
if test "${rb_c_werror_flag+set}" |
| 11355 |
then : |
| 11356 |
|
| 11357 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11358 |
|
| 11359 |
else $as_nop |
| 11360 |
|
| 11361 |
unset ac_c_werror_flag |
| 11362 |
|
| 11363 |
fi |
| 11364 |
} |
| 11365 |
test "${debugflags+set}" || { |
| 11366 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -ggdb is accepted as CFLAGS" >&5 |
| 11367 |
printf %s "checking whether -ggdb is accepted as CFLAGS... " >&6; } |
| 11368 |
save_CFLAGS="$CFLAGS" |
| 11369 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11370 |
if test "${ac_c_werror_flag+set}" |
| 11371 |
then : |
| 11372 |
|
| 11373 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11374 |
|
| 11375 |
else $as_nop |
| 11376 |
|
| 11377 |
unset rb_c_werror_flag |
| 11378 |
|
| 11379 |
fi |
| 11380 |
ac_c_werror_flag=yes |
| 11381 |
|
| 11382 |
CFLAGS="$CFLAGS -ggdb" |
| 11383 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11384 |
/* end confdefs.h. */ |
| 11385 |
|
| 11386 |
int |
| 11387 |
main (void) |
| 11388 |
{ |
| 11389 |
|
| 11390 |
; |
| 11391 |
return 0; |
| 11392 |
} |
| 11393 |
_ACEOF |
| 11394 |
if ac_fn_c_try_compile "$LINENO" |
| 11395 |
then : |
| 11396 |
debugflags=-ggdb |
| 11397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11398 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11399 |
else $as_nop |
| 11400 |
|
| 11401 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11402 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11403 |
fi |
| 11404 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11405 |
|
| 11406 |
CFLAGS="$save_CFLAGS" |
| 11407 |
save_CFLAGS= |
| 11408 |
if test "${rb_c_werror_flag+set}" |
| 11409 |
then : |
| 11410 |
|
| 11411 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11412 |
|
| 11413 |
else $as_nop |
| 11414 |
|
| 11415 |
unset ac_c_werror_flag |
| 11416 |
|
| 11417 |
fi |
| 11418 |
} |
| 11419 |
test "${debugflags+set}" || { |
| 11420 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -g3 is accepted as CFLAGS" >&5 |
| 11421 |
printf %s "checking whether -g3 is accepted as CFLAGS... " >&6; } |
| 11422 |
save_CFLAGS="$CFLAGS" |
| 11423 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11424 |
if test "${ac_c_werror_flag+set}" |
| 11425 |
then : |
| 11426 |
|
| 11427 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11428 |
|
| 11429 |
else $as_nop |
| 11430 |
|
| 11431 |
unset rb_c_werror_flag |
| 11432 |
|
| 11433 |
fi |
| 11434 |
ac_c_werror_flag=yes |
| 11435 |
|
| 11436 |
CFLAGS="$CFLAGS -g3" |
| 11437 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11438 |
/* end confdefs.h. */ |
| 11439 |
|
| 11440 |
int |
| 11441 |
main (void) |
| 11442 |
{ |
| 11443 |
|
| 11444 |
; |
| 11445 |
return 0; |
| 11446 |
} |
| 11447 |
_ACEOF |
| 11448 |
if ac_fn_c_try_compile "$LINENO" |
| 11449 |
then : |
| 11450 |
debugflags=-g3 |
| 11451 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11452 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11453 |
else $as_nop |
| 11454 |
|
| 11455 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11456 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11457 |
fi |
| 11458 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11459 |
|
| 11460 |
CFLAGS="$save_CFLAGS" |
| 11461 |
save_CFLAGS= |
| 11462 |
if test "${rb_c_werror_flag+set}" |
| 11463 |
then : |
| 11464 |
|
| 11465 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11466 |
|
| 11467 |
else $as_nop |
| 11468 |
|
| 11469 |
unset ac_c_werror_flag |
| 11470 |
|
| 11471 |
fi |
| 11472 |
} |
| 11473 |
|
| 11474 |
fi |
| 11475 |
test $ac_cv_prog_cc_g = yes && : ${debugflags=-g} |
| 11476 |
|
| 11477 |
if test "$GCC" = "" |
| 11478 |
then : |
| 11479 |
|
| 11480 |
case "$target_os" in #( |
| 11481 |
aix*) : |
| 11482 |
warnflags="$warnflags -qinfo=por" rb_cv_warnflags="$rb_cv_warnflags -qinfo=por" ;; #( |
| 11483 |
*) : |
| 11484 |
;; |
| 11485 |
esac |
| 11486 |
|
| 11487 |
fi |
| 11488 |
if test "$GCC" = yes |
| 11489 |
then : |
| 11490 |
|
| 11491 |
|
| 11492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fvisibility=hidden is accepted as CFLAGS" >&5 |
| 11493 |
printf %s "checking whether -fvisibility=hidden is accepted as CFLAGS... " >&6; } |
| 11494 |
save_CFLAGS="$CFLAGS" |
| 11495 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11496 |
if test "${ac_c_werror_flag+set}" |
| 11497 |
then : |
| 11498 |
|
| 11499 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11500 |
|
| 11501 |
else $as_nop |
| 11502 |
|
| 11503 |
unset rb_c_werror_flag |
| 11504 |
|
| 11505 |
fi |
| 11506 |
ac_c_werror_flag=yes |
| 11507 |
|
| 11508 |
CFLAGS="$CFLAGS -fvisibility=hidden" |
| 11509 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11510 |
/* end confdefs.h. */ |
| 11511 |
|
| 11512 |
int |
| 11513 |
main (void) |
| 11514 |
{ |
| 11515 |
|
| 11516 |
; |
| 11517 |
return 0; |
| 11518 |
} |
| 11519 |
_ACEOF |
| 11520 |
if ac_fn_c_try_compile "$LINENO" |
| 11521 |
then : |
| 11522 |
visibility_option=yes |
| 11523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11524 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11525 |
else $as_nop |
| 11526 |
visibility_option=no |
| 11527 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11528 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11529 |
fi |
| 11530 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11531 |
|
| 11532 |
CFLAGS="$save_CFLAGS" |
| 11533 |
save_CFLAGS= |
| 11534 |
if test "${rb_c_werror_flag+set}" |
| 11535 |
then : |
| 11536 |
|
| 11537 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11538 |
|
| 11539 |
else $as_nop |
| 11540 |
|
| 11541 |
unset ac_c_werror_flag |
| 11542 |
|
| 11543 |
fi |
| 11544 |
|
| 11545 |
WERRORFLAG="-Werror" |
| 11546 |
|
| 11547 |
if test "$visibility_option" = yes |
| 11548 |
then : |
| 11549 |
|
| 11550 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 11551 |
case " ${XCFLAGS-} " in #( |
| 11552 |
*" -fvisibility=hidden "*) : |
| 11553 |
;; #( |
| 11554 |
' ') : |
| 11555 |
XCFLAGS="-fvisibility=hidden" ;; #( |
| 11556 |
*) : |
| 11557 |
XCFLAGS="$XCFLAGS -fvisibility=hidden" ;; |
| 11558 |
esac |
| 11559 |
printf "%s\n" "#define RUBY_SYMBOL_EXPORT_BEGIN _Pragma(\"GCC visibility push(default)\")" >>confdefs.h |
| 11560 |
|
| 11561 |
printf "%s\n" "#define RUBY_SYMBOL_EXPORT_END _Pragma(\"GCC visibility pop\")" >>confdefs.h |
| 11562 |
|
| 11563 |
|
| 11564 |
else $as_nop |
| 11565 |
|
| 11566 |
|
| 11567 |
save_LDFLAGS="$LDFLAGS" |
| 11568 |
LDFLAGS="$LDFLAGS -Wl,-unexported_symbol,_Init_*" |
| 11569 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wl,-unexported_symbol,_Init_* is accepted as LDFLAGS" >&5 |
| 11570 |
printf %s "checking whether -Wl,-unexported_symbol,_Init_* is accepted as LDFLAGS... " >&6; } |
| 11571 |
save_CFLAGS="$CFLAGS" |
| 11572 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11573 |
if test "${ac_c_werror_flag+set}" |
| 11574 |
then : |
| 11575 |
|
| 11576 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11577 |
|
| 11578 |
else $as_nop |
| 11579 |
|
| 11580 |
unset rb_c_werror_flag |
| 11581 |
|
| 11582 |
fi |
| 11583 |
ac_c_werror_flag=yes |
| 11584 |
|
| 11585 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11586 |
/* end confdefs.h. */ |
| 11587 |
|
| 11588 |
int |
| 11589 |
main (void) |
| 11590 |
{ |
| 11591 |
|
| 11592 |
; |
| 11593 |
return 0; |
| 11594 |
} |
| 11595 |
_ACEOF |
| 11596 |
if ac_fn_c_try_link "$LINENO" |
| 11597 |
then : |
| 11598 |
visibility_option=ld |
| 11599 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11600 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11601 |
else $as_nop |
| 11602 |
visibility_option=no |
| 11603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11604 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11605 |
fi |
| 11606 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11607 |
conftest$ac_exeext conftest.$ac_ext |
| 11608 |
|
| 11609 |
CFLAGS="$save_CFLAGS" |
| 11610 |
save_CFLAGS= |
| 11611 |
if test "${rb_c_werror_flag+set}" |
| 11612 |
then : |
| 11613 |
|
| 11614 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11615 |
|
| 11616 |
else $as_nop |
| 11617 |
|
| 11618 |
unset ac_c_werror_flag |
| 11619 |
|
| 11620 |
fi |
| 11621 |
LDFLAGS="$save_LDFLAGS" |
| 11622 |
save_LDFLAGS= |
| 11623 |
|
| 11624 |
|
| 11625 |
fi |
| 11626 |
|
| 11627 |
fi |
| 11628 |
|
| 11629 |
if test "$GCC" = yes |
| 11630 |
then : |
| 11631 |
|
| 11632 |
# optflags |
| 11633 |
|
| 11634 |
case "$target_os" in #( |
| 11635 |
mingw*) : |
| 11636 |
|
| 11637 |
|
| 11638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fno-omit-frame-pointer is accepted as CFLAGS" >&5 |
| 11639 |
printf %s "checking whether -fno-omit-frame-pointer is accepted as CFLAGS... " >&6; } |
| 11640 |
save_CFLAGS="$CFLAGS" |
| 11641 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11642 |
if test "${ac_c_werror_flag+set}" |
| 11643 |
then : |
| 11644 |
|
| 11645 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11646 |
|
| 11647 |
else $as_nop |
| 11648 |
|
| 11649 |
unset rb_c_werror_flag |
| 11650 |
|
| 11651 |
fi |
| 11652 |
ac_c_werror_flag=yes |
| 11653 |
|
| 11654 |
CFLAGS="$CFLAGS -fno-omit-frame-pointer" |
| 11655 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11656 |
/* end confdefs.h. */ |
| 11657 |
|
| 11658 |
int |
| 11659 |
main (void) |
| 11660 |
{ |
| 11661 |
|
| 11662 |
; |
| 11663 |
return 0; |
| 11664 |
} |
| 11665 |
_ACEOF |
| 11666 |
if ac_fn_c_try_compile "$LINENO" |
| 11667 |
then : |
| 11668 |
optflags="${optflags+$optflags }-fno-omit-frame-pointer" |
| 11669 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11670 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11671 |
else $as_nop |
| 11672 |
|
| 11673 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11674 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11675 |
fi |
| 11676 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11677 |
|
| 11678 |
CFLAGS="$save_CFLAGS" |
| 11679 |
save_CFLAGS= |
| 11680 |
if test "${rb_c_werror_flag+set}" |
| 11681 |
then : |
| 11682 |
|
| 11683 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11684 |
|
| 11685 |
else $as_nop |
| 11686 |
|
| 11687 |
unset ac_c_werror_flag |
| 11688 |
|
| 11689 |
fi |
| 11690 |
|
| 11691 |
|
| 11692 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -static-libgcc is accepted as CFLAGS" >&5 |
| 11693 |
printf %s "checking whether -static-libgcc is accepted as CFLAGS... " >&6; } |
| 11694 |
save_CFLAGS="$CFLAGS" |
| 11695 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11696 |
if test "${ac_c_werror_flag+set}" |
| 11697 |
then : |
| 11698 |
|
| 11699 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11700 |
|
| 11701 |
else $as_nop |
| 11702 |
|
| 11703 |
unset rb_c_werror_flag |
| 11704 |
|
| 11705 |
fi |
| 11706 |
ac_c_werror_flag=yes |
| 11707 |
|
| 11708 |
CFLAGS="$CFLAGS -static-libgcc" |
| 11709 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11710 |
/* end confdefs.h. */ |
| 11711 |
|
| 11712 |
int |
| 11713 |
main (void) |
| 11714 |
{ |
| 11715 |
|
| 11716 |
; |
| 11717 |
return 0; |
| 11718 |
} |
| 11719 |
_ACEOF |
| 11720 |
if ac_fn_c_try_compile "$LINENO" |
| 11721 |
then : |
| 11722 |
static_libgcc=yes |
| 11723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11724 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11725 |
else $as_nop |
| 11726 |
static_libgcc=no |
| 11727 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11728 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11729 |
fi |
| 11730 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11731 |
|
| 11732 |
CFLAGS="$save_CFLAGS" |
| 11733 |
save_CFLAGS= |
| 11734 |
if test "${rb_c_werror_flag+set}" |
| 11735 |
then : |
| 11736 |
|
| 11737 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11738 |
|
| 11739 |
else $as_nop |
| 11740 |
|
| 11741 |
unset ac_c_werror_flag |
| 11742 |
|
| 11743 |
fi |
| 11744 |
|
| 11745 |
if test "$static_libgcc" = yes |
| 11746 |
then : |
| 11747 |
|
| 11748 |
# RUBY_APPEND_OPTION(EXTLDFLAGS) |
| 11749 |
case " ${EXTLDFLAGS-} " in #( |
| 11750 |
*" -static-libgcc "*) : |
| 11751 |
;; #( |
| 11752 |
' ') : |
| 11753 |
EXTLDFLAGS="-static-libgcc" ;; #( |
| 11754 |
*) : |
| 11755 |
EXTLDFLAGS="$EXTLDFLAGS -static-libgcc" ;; |
| 11756 |
esac |
| 11757 |
|
| 11758 |
fi |
| 11759 |
;; #( |
| 11760 |
*) : |
| 11761 |
;; |
| 11762 |
esac |
| 11763 |
|
| 11764 |
# disable fast-math |
| 11765 |
for oflag in -fno-fast-math; do |
| 11766 |
|
| 11767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $oflag is accepted as CFLAGS" >&5 |
| 11768 |
printf %s "checking whether $oflag is accepted as CFLAGS... " >&6; } |
| 11769 |
save_CFLAGS="$CFLAGS" |
| 11770 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11771 |
if test "${ac_c_werror_flag+set}" |
| 11772 |
then : |
| 11773 |
|
| 11774 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11775 |
|
| 11776 |
else $as_nop |
| 11777 |
|
| 11778 |
unset rb_c_werror_flag |
| 11779 |
|
| 11780 |
fi |
| 11781 |
ac_c_werror_flag=yes |
| 11782 |
|
| 11783 |
CFLAGS="$CFLAGS $oflag" |
| 11784 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11785 |
/* end confdefs.h. */ |
| 11786 |
|
| 11787 |
int |
| 11788 |
main (void) |
| 11789 |
{ |
| 11790 |
|
| 11791 |
; |
| 11792 |
return 0; |
| 11793 |
} |
| 11794 |
_ACEOF |
| 11795 |
if ac_fn_c_try_compile "$LINENO" |
| 11796 |
then : |
| 11797 |
# RUBY_APPEND_OPTION(optflags) |
| 11798 |
case " ${optflags-} " in #( |
| 11799 |
*" $oflag "*) : |
| 11800 |
;; #( |
| 11801 |
' ') : |
| 11802 |
optflags="$oflag" ;; #( |
| 11803 |
*) : |
| 11804 |
optflags="$optflags $oflag" ;; |
| 11805 |
esac |
| 11806 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11807 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11808 |
else $as_nop |
| 11809 |
|
| 11810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11811 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11812 |
fi |
| 11813 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11814 |
|
| 11815 |
CFLAGS="$save_CFLAGS" |
| 11816 |
save_CFLAGS= |
| 11817 |
if test "${rb_c_werror_flag+set}" |
| 11818 |
then : |
| 11819 |
|
| 11820 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11821 |
|
| 11822 |
else $as_nop |
| 11823 |
|
| 11824 |
unset ac_c_werror_flag |
| 11825 |
|
| 11826 |
fi |
| 11827 |
|
| 11828 |
done |
| 11829 |
for oflag in -fexcess-precision=standard -fp-model\ precise; do |
| 11830 |
|
| 11831 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $oflag is accepted as CFLAGS" >&5 |
| 11832 |
printf %s "checking whether $oflag is accepted as CFLAGS... " >&6; } |
| 11833 |
save_CFLAGS="$CFLAGS" |
| 11834 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 11835 |
if test "${ac_c_werror_flag+set}" |
| 11836 |
then : |
| 11837 |
|
| 11838 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 11839 |
|
| 11840 |
else $as_nop |
| 11841 |
|
| 11842 |
unset rb_c_werror_flag |
| 11843 |
|
| 11844 |
fi |
| 11845 |
ac_c_werror_flag=yes |
| 11846 |
|
| 11847 |
CFLAGS="$CFLAGS $oflag" |
| 11848 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11849 |
/* end confdefs.h. */ |
| 11850 |
|
| 11851 |
int |
| 11852 |
main (void) |
| 11853 |
{ |
| 11854 |
|
| 11855 |
; |
| 11856 |
return 0; |
| 11857 |
} |
| 11858 |
_ACEOF |
| 11859 |
if ac_fn_c_try_compile "$LINENO" |
| 11860 |
then : |
| 11861 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 11862 |
case " ${XCFLAGS-} " in #( |
| 11863 |
*" $oflag "*) : |
| 11864 |
;; #( |
| 11865 |
' ') : |
| 11866 |
XCFLAGS="$oflag" ;; #( |
| 11867 |
*) : |
| 11868 |
XCFLAGS="$XCFLAGS $oflag" ;; |
| 11869 |
esac |
| 11870 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 11871 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 11872 |
else $as_nop |
| 11873 |
|
| 11874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11875 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 11876 |
fi |
| 11877 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 11878 |
|
| 11879 |
CFLAGS="$save_CFLAGS" |
| 11880 |
save_CFLAGS= |
| 11881 |
if test "${rb_c_werror_flag+set}" |
| 11882 |
then : |
| 11883 |
|
| 11884 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 11885 |
|
| 11886 |
else $as_nop |
| 11887 |
|
| 11888 |
unset ac_c_werror_flag |
| 11889 |
|
| 11890 |
fi |
| 11891 |
|
| 11892 |
done |
| 11893 |
|
| 11894 |
fi |
| 11895 |
|
| 11896 |
case "$target_cpu" in #( |
| 11897 |
i[3-6]86*) : |
| 11898 |
|
| 11899 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5 |
| 11900 |
printf %s "checking for __sync_val_compare_and_swap... " >&6; } |
| 11901 |
if test ${rb_cv_gcc_compiler_cas+y} |
| 11902 |
then : |
| 11903 |
printf %s "(cached) " >&6 |
| 11904 |
else $as_nop |
| 11905 |
|
| 11906 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11907 |
/* end confdefs.h. */ |
| 11908 |
unsigned long atomic_var; |
| 11909 |
int |
| 11910 |
main (void) |
| 11911 |
{ |
| 11912 |
__sync_val_compare_and_swap(&atomic_var, 0, 1); |
| 11913 |
; |
| 11914 |
return 0; |
| 11915 |
} |
| 11916 |
_ACEOF |
| 11917 |
if ac_fn_c_try_link "$LINENO" |
| 11918 |
then : |
| 11919 |
rb_cv_gcc_compiler_cas=yes |
| 11920 |
else $as_nop |
| 11921 |
|
| 11922 |
save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -march=i486" |
| 11923 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11924 |
/* end confdefs.h. */ |
| 11925 |
unsigned long atomic_var; |
| 11926 |
int |
| 11927 |
main (void) |
| 11928 |
{ |
| 11929 |
__sync_val_compare_and_swap(&atomic_var, 0, 1); |
| 11930 |
; |
| 11931 |
return 0; |
| 11932 |
} |
| 11933 |
_ACEOF |
| 11934 |
if ac_fn_c_try_link "$LINENO" |
| 11935 |
then : |
| 11936 |
rb_cv_gcc_compiler_cas=i486 |
| 11937 |
else $as_nop |
| 11938 |
rb_cv_gcc_compiler_cas=no |
| 11939 |
fi |
| 11940 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11941 |
conftest$ac_exeext conftest.$ac_ext |
| 11942 |
CFLAGS="$save_CFLAGS" |
| 11943 |
|
| 11944 |
fi |
| 11945 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 11946 |
conftest$ac_exeext conftest.$ac_ext |
| 11947 |
|
| 11948 |
fi |
| 11949 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_compiler_cas" >&5 |
| 11950 |
colorize_result "$rb_cv_gcc_compiler_cas" ; } |
| 11951 |
if test "$rb_cv_gcc_compiler_cas" = i486 |
| 11952 |
then : |
| 11953 |
ARCH_FLAG="-march=i486" |
| 11954 |
fi |
| 11955 |
;; #( |
| 11956 |
*) : |
| 11957 |
;; |
| 11958 |
esac |
| 11959 |
|
| 11960 |
OPT_DIR= |
| 11961 |
|
| 11962 |
# Check whether --with-gmp-dir was given. |
| 11963 |
if test ${with_gmp_dir+y} |
| 11964 |
then : |
| 11965 |
withval=$with_gmp_dir; OPT_DIR="${OPT_DIR:+$OPT_DIR$PATH_SEPARATOR}$withval" |
| 11966 |
fi |
| 11967 |
|
| 11968 |
|
| 11969 |
# Check whether --with-gmp was given. |
| 11970 |
if test ${with_gmp+y} |
| 11971 |
then : |
| 11972 |
withval=$with_gmp; |
| 11973 |
else $as_nop |
| 11974 |
with_gmp=yes |
| 11975 |
fi |
| 11976 |
|
| 11977 |
|
| 11978 |
|
| 11979 |
# Check whether --with-opt-dir was given. |
| 11980 |
if test ${with_opt_dir+y} |
| 11981 |
then : |
| 11982 |
withval=$with_opt_dir; OPT_DIR="${OPT_DIR:+$OPT_DIR$PATH_SEPARATOR}$withval" |
| 11983 |
fi |
| 11984 |
|
| 11985 |
|
| 11986 |
if test "x$OPT_DIR" != x |
| 11987 |
then : |
| 11988 |
|
| 11989 |
val=`IFS="$PATH_SEPARATOR" |
| 11990 |
for dir in $OPT_DIR; do |
| 11991 |
test -z "$dir" && continue |
| 11992 |
echo x ${LIBPATHFLAG} ${RPATHFLAG} | |
| 11993 |
sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${dir}/lib${IFS}g;s${IFS}%s${IFS}${dir}/lib${IFS}g" |
| 11994 |
done | tr '\012' ' ' | sed 's/ *$//'` |
| 11995 |
LDFLAGS="${LDFLAGS:+$LDFLAGS }$val" |
| 11996 |
DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }$val" |
| 11997 |
LDFLAGS_OPTDIR="$val" |
| 11998 |
INCFLAGS="${INCFLAGS:+$INCFLAGS }"`echo "$OPT_DIR" | tr "${PATH_SEPARATOR}" '\012' | |
| 11999 |
sed '/^$/d;s|^|-I|;s|$|/include|' | tr '\012' ' ' | sed 's/ *$//'` |
| 12000 |
|
| 12001 |
fi |
| 12002 |
incflags="$INCFLAGS" |
| 12003 |
|
| 12004 |
|
| 12005 |
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\"" |
| 12006 |
test -z "${ac_env_CXXFLAGS_set}" -a -n "${cxxflags+set}" && eval CXXFLAGS="\"$cxxflags $ARCH_FLAG\"" |
| 12007 |
} |
| 12008 |
|
| 12009 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler has statement and declarations in expressions" >&5 |
| 12010 |
printf %s "checking whether compiler has statement and declarations in expressions... " >&6; } |
| 12011 |
if test ${rb_cv_have_stmt_and_decl_in_expr+y} |
| 12012 |
then : |
| 12013 |
printf %s "(cached) " >&6 |
| 12014 |
else $as_nop |
| 12015 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12016 |
/* end confdefs.h. */ |
| 12017 |
|
| 12018 |
int |
| 12019 |
main (void) |
| 12020 |
{ |
| 12021 |
__extension__ ({ int a = 0; a; }); |
| 12022 |
; |
| 12023 |
return 0; |
| 12024 |
} |
| 12025 |
_ACEOF |
| 12026 |
if ac_fn_c_try_compile "$LINENO" |
| 12027 |
then : |
| 12028 |
rb_cv_have_stmt_and_decl_in_expr=yes |
| 12029 |
else $as_nop |
| 12030 |
rb_cv_have_stmt_and_decl_in_expr=no |
| 12031 |
fi |
| 12032 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12033 |
fi |
| 12034 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_stmt_and_decl_in_expr" >&5 |
| 12035 |
colorize_result "$rb_cv_have_stmt_and_decl_in_expr" ; } |
| 12036 |
if test "$rb_cv_have_stmt_and_decl_in_expr" = yes |
| 12037 |
then : |
| 12038 |
|
| 12039 |
printf "%s\n" "#define HAVE_STMT_AND_DECL_IN_EXPR 1" >>confdefs.h |
| 12040 |
|
| 12041 |
|
| 12042 |
fi |
| 12043 |
|
| 12044 |
begin_group "header and library section" && { |
| 12045 |
|
| 12046 |
# Check whether --with-winnt-ver was given. |
| 12047 |
if test ${with_winnt_ver+y} |
| 12048 |
then : |
| 12049 |
withval=$with_winnt_ver; with_winnt_ver="$withval" |
| 12050 |
else $as_nop |
| 12051 |
with_winnt_ver="0x0600" |
| 12052 |
fi |
| 12053 |
|
| 12054 |
case "$target_os" in #( |
| 12055 |
mingw*) : |
| 12056 |
|
| 12057 |
# RUBY_APPEND_OPTION(CPPFLAGS) |
| 12058 |
case " ${CPPFLAGS-} " in #( |
| 12059 |
*" -D_WIN32_WINNT=$with_winnt_ver "*) : |
| 12060 |
;; #( |
| 12061 |
' ') : |
| 12062 |
CPPFLAGS="-D_WIN32_WINNT=$with_winnt_ver" ;; #( |
| 12063 |
*) : |
| 12064 |
CPPFLAGS="$CPPFLAGS -D_WIN32_WINNT=$with_winnt_ver" ;; |
| 12065 |
esac |
| 12066 |
# RUBY_APPEND_OPTION(CPPFLAGS) |
| 12067 |
case " ${CPPFLAGS-} " in #( |
| 12068 |
*" -D__MINGW_USE_VC2005_COMPAT "*) : |
| 12069 |
;; #( |
| 12070 |
' ') : |
| 12071 |
CPPFLAGS="-D__MINGW_USE_VC2005_COMPAT" ;; #( |
| 12072 |
*) : |
| 12073 |
CPPFLAGS="$CPPFLAGS -D__MINGW_USE_VC2005_COMPAT" ;; |
| 12074 |
esac |
| 12075 |
;; #( |
| 12076 |
*) : |
| 12077 |
;; |
| 12078 |
esac |
| 12079 |
|
| 12080 |
|
| 12081 |
|
| 12082 |
# Check whether --with-thread was given. |
| 12083 |
if test ${with_thread+y} |
| 12084 |
then : |
| 12085 |
withval=$with_thread; THREAD_MODEL=$withval |
| 12086 |
else $as_nop |
| 12087 |
|
| 12088 |
THREAD_MODEL= |
| 12089 |
case "$target_os" in #( |
| 12090 |
freebsd*) : |
| 12091 |
|
| 12092 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread should be enabled by default" >&5 |
| 12093 |
printf %s "checking whether pthread should be enabled by default... " >&6; } |
| 12094 |
if test ${rb_cv_enable_pthread_default+y} |
| 12095 |
then : |
| 12096 |
printf %s "(cached) " >&6 |
| 12097 |
else $as_nop |
| 12098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12099 |
/* end confdefs.h. */ |
| 12100 |
|
| 12101 |
#include <osreldate.h> |
| 12102 |
#if __FreeBSD_version < 502102 |
| 12103 |
#error pthread should be disabled on this platform |
| 12104 |
#endif |
| 12105 |
|
| 12106 |
_ACEOF |
| 12107 |
if ac_fn_c_try_cpp "$LINENO" |
| 12108 |
then : |
| 12109 |
rb_cv_enable_pthread_default=yes |
| 12110 |
else $as_nop |
| 12111 |
rb_cv_enable_pthread_default=no |
| 12112 |
fi |
| 12113 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 12114 |
fi |
| 12115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_enable_pthread_default" >&5 |
| 12116 |
colorize_result "$rb_cv_enable_pthread_default" ; } |
| 12117 |
if test $rb_cv_enable_pthread_default = yes |
| 12118 |
then : |
| 12119 |
THREAD_MODEL=pthread |
| 12120 |
else $as_nop |
| 12121 |
THREAD_MODEL=none |
| 12122 |
fi |
| 12123 |
;; #( |
| 12124 |
mingw*) : |
| 12125 |
|
| 12126 |
THREAD_MODEL=win32 |
| 12127 |
;; #( |
| 12128 |
wasi*) : |
| 12129 |
|
| 12130 |
THREAD_MODEL=none |
| 12131 |
;; #( |
| 12132 |
*) : |
| 12133 |
|
| 12134 |
THREAD_MODEL=pthread |
| 12135 |
|
| 12136 |
;; |
| 12137 |
esac |
| 12138 |
|
| 12139 |
fi |
| 12140 |
|
| 12141 |
|
| 12142 |
if test x"$THREAD_MODEL" = xpthread |
| 12143 |
then : |
| 12144 |
|
| 12145 |
ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" |
| 12146 |
if test "x$ac_cv_header_pthread_h" = xyes |
| 12147 |
then : |
| 12148 |
printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h |
| 12149 |
|
| 12150 |
fi |
| 12151 |
|
| 12152 |
if test x"$ac_cv_header_pthread_h" = xyes |
| 12153 |
then : |
| 12154 |
|
| 12155 |
else $as_nop |
| 12156 |
|
| 12157 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Don't know how to find pthread header on your system -- thread support disabled\"" >&5 |
| 12158 |
printf "%s\n" "$as_me: WARNING: \"Don't know how to find pthread header on your system -- thread support disabled\"" >&2;} |
| 12159 |
THREAD_MODEL=none |
| 12160 |
|
| 12161 |
fi |
| 12162 |
|
| 12163 |
fi |
| 12164 |
if test x"$THREAD_MODEL" = xpthread |
| 12165 |
then : |
| 12166 |
|
| 12167 |
THREAD_MODEL=none |
| 12168 |
for pthread_lib in thr pthread pthreads c c_r root; do |
| 12169 |
as_ac_Lib=`printf "%s\n" "ac_cv_lib_$pthread_lib""_pthread_create" | $as_tr_sh` |
| 12170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$pthread_lib" >&5 |
| 12171 |
printf %s "checking for pthread_create in -l$pthread_lib... " >&6; } |
| 12172 |
if eval test \${$as_ac_Lib+y} |
| 12173 |
then : |
| 12174 |
printf %s "(cached) " >&6 |
| 12175 |
else $as_nop |
| 12176 |
ac_check_lib_save_LIBS=$LIBS |
| 12177 |
LIBS="-l$pthread_lib $LIBS" |
| 12178 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12179 |
/* end confdefs.h. */ |
| 12180 |
|
| 12181 |
/* Override any GCC internal prototype to avoid an error. |
| 12182 |
Use char because int might match the return type of a GCC |
| 12183 |
builtin and then its argument prototype would still apply. */ |
| 12184 |
char pthread_create (); |
| 12185 |
int |
| 12186 |
main (void) |
| 12187 |
{ |
| 12188 |
return pthread_create (); |
| 12189 |
; |
| 12190 |
return 0; |
| 12191 |
} |
| 12192 |
_ACEOF |
| 12193 |
if ac_fn_c_try_link "$LINENO" |
| 12194 |
then : |
| 12195 |
eval "$as_ac_Lib=yes" |
| 12196 |
else $as_nop |
| 12197 |
eval "$as_ac_Lib=no" |
| 12198 |
fi |
| 12199 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 12200 |
conftest$ac_exeext conftest.$ac_ext |
| 12201 |
LIBS=$ac_check_lib_save_LIBS |
| 12202 |
fi |
| 12203 |
eval ac_res=\$$as_ac_Lib |
| 12204 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 12205 |
colorize_result "$ac_res" ; } |
| 12206 |
if eval test \"x\$"$as_ac_Lib"\" = x"yes" |
| 12207 |
then : |
| 12208 |
THREAD_MODEL=pthread; break |
| 12209 |
fi |
| 12210 |
|
| 12211 |
done |
| 12212 |
if test x"$THREAD_MODEL" = xpthread |
| 12213 |
then : |
| 12214 |
|
| 12215 |
printf "%s\n" "#define _REENTRANT 1" >>confdefs.h |
| 12216 |
|
| 12217 |
printf "%s\n" "#define _THREAD_SAFE 1" >>confdefs.h |
| 12218 |
|
| 12219 |
printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h |
| 12220 |
|
| 12221 |
ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#include <pthread.h> |
| 12222 |
" |
| 12223 |
if test "x$ac_cv_header_pthread_np_h" = xyes |
| 12224 |
then : |
| 12225 |
printf "%s\n" "#define HAVE_PTHREAD_NP_H 1" >>confdefs.h |
| 12226 |
|
| 12227 |
fi |
| 12228 |
|
| 12229 |
case "$pthread_lib:$target_os" in #( |
| 12230 |
c:*) : |
| 12231 |
;; #( |
| 12232 |
root:*) : |
| 12233 |
;; #( |
| 12234 |
c_r:*|*:openbsd*|*:mirbsd*) : |
| 12235 |
LIBS="-pthread $LIBS" ;; #( |
| 12236 |
*) : |
| 12237 |
LIBS="-l$pthread_lib $LIBS" ;; |
| 12238 |
esac |
| 12239 |
|
| 12240 |
else $as_nop |
| 12241 |
|
| 12242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&5 |
| 12243 |
printf "%s\n" "$as_me: WARNING: \"Don't know how to find pthread library on your system -- thread support disabled\"" >&2;} |
| 12244 |
|
| 12245 |
fi |
| 12246 |
|
| 12247 |
fi |
| 12248 |
|
| 12249 |
case "$THREAD_MODEL" in #( |
| 12250 |
pthread) : |
| 12251 |
;; #( |
| 12252 |
win32) : |
| 12253 |
;; #( |
| 12254 |
none) : |
| 12255 |
;; #( |
| 12256 |
"") : |
| 12257 |
as_fn_error $? "thread model is missing" "$LINENO" 5 ;; #( |
| 12258 |
*) : |
| 12259 |
as_fn_error $? "unknown thread model $THREAD_MODEL" "$LINENO" 5 ;; |
| 12260 |
esac |
| 12261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking thread model" >&5 |
| 12262 |
printf %s "checking thread model... " >&6; } |
| 12263 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THREAD_MODEL" >&5 |
| 12264 |
colorize_result "$THREAD_MODEL" ; } |
| 12265 |
|
| 12266 |
THREAD_IMPL_H=thread_$THREAD_MODEL.h |
| 12267 |
if test ! -f "$srcdir/$THREAD_IMPL_H" |
| 12268 |
then : |
| 12269 |
as_fn_error $? "'$srcdir/$THREAD_IMPL_H' must exist" "$LINENO" 5 |
| 12270 |
fi |
| 12271 |
THREAD_IMPL_SRC=thread_$THREAD_MODEL.c |
| 12272 |
if test ! -f "$srcdir/$THREAD_IMPL_SRC" |
| 12273 |
then : |
| 12274 |
as_fn_error $? "'$srcdir/$THREAD_IMPL_SRC' must exist" "$LINENO" 5 |
| 12275 |
fi |
| 12276 |
printf "%s\n" "#define THREAD_IMPL_H \"$THREAD_IMPL_H\"" >>confdefs.h |
| 12277 |
|
| 12278 |
printf "%s\n" "#define THREAD_IMPL_SRC \"$THREAD_IMPL_SRC\"" >>confdefs.h |
| 12279 |
|
| 12280 |
|
| 12281 |
|
| 12282 |
case "$target_os" in #( |
| 12283 |
*bsd*|dragonfly*) : |
| 12284 |
;; #( |
| 12285 |
*) : |
| 12286 |
ac_cv_func_daemon=no ;; |
| 12287 |
esac |
| 12288 |
|
| 12289 |
case "$target_os" in #( |
| 12290 |
*android*) : |
| 12291 |
|
| 12292 |
case "$target_cpu" in #( |
| 12293 |
arm*) : |
| 12294 |
|
| 12295 |
ac_cv_func___builtin_setjmp=no |
| 12296 |
;; #( |
| 12297 |
*) : |
| 12298 |
;; |
| 12299 |
esac |
| 12300 |
;; #( |
| 12301 |
*) : |
| 12302 |
;; |
| 12303 |
esac |
| 12304 |
|
| 12305 |
{ ORIG_LIBS=; unset ORIG_LIBS;} |
| 12306 |
POSTLINK=: |
| 12307 |
|
| 12308 |
cleanlibs= |
| 12309 |
|
| 12310 |
case "$target_os" in #( |
| 12311 |
nextstep*) : |
| 12312 |
;; #( |
| 12313 |
openstep*) : |
| 12314 |
;; #( |
| 12315 |
rhapsody*) : |
| 12316 |
;; #( |
| 12317 |
darwin*) : |
| 12318 |
|
| 12319 |
ORIG_LIBS="$LIBS" |
| 12320 |
# RUBY_PREPEND_OPTION(LIBS) |
| 12321 |
case " ${LIBS-} " in #( |
| 12322 |
*" -lobjc "*) : |
| 12323 |
;; #( |
| 12324 |
' ') : |
| 12325 |
LIBS="-lobjc" ;; #( |
| 12326 |
*) : |
| 12327 |
LIBS="-lobjc $LIBS" ;; |
| 12328 |
esac |
| 12329 |
# RUBY_APPEND_OPTIONS(CPPFLAGS) |
| 12330 |
for rb_opt in -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT; do |
| 12331 |
case " ${CPPFLAGS-} " in #( |
| 12332 |
*" ${rb_opt} "*) : |
| 12333 |
;; #( |
| 12334 |
' ') : |
| 12335 |
CPPFLAGS="${rb_opt}" ;; #( |
| 12336 |
*) : |
| 12337 |
CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; |
| 12338 |
esac |
| 12339 |
done |
| 12340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether syscall(2) is deprecated" >&5 |
| 12341 |
printf %s "checking whether syscall(2) is deprecated... " >&6; } |
| 12342 |
if test ${rb_cv_syscall_deprecated+y} |
| 12343 |
then : |
| 12344 |
printf %s "(cached) " >&6 |
| 12345 |
else $as_nop |
| 12346 |
save_CFLAGS="$CFLAGS" |
| 12347 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 12348 |
if test "${ac_c_werror_flag+set}" |
| 12349 |
then : |
| 12350 |
|
| 12351 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 12352 |
|
| 12353 |
else $as_nop |
| 12354 |
|
| 12355 |
unset rb_c_werror_flag |
| 12356 |
|
| 12357 |
fi |
| 12358 |
ac_c_werror_flag=yes |
| 12359 |
|
| 12360 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12361 |
/* end confdefs.h. */ |
| 12362 |
#include <unistd.h> |
| 12363 |
int |
| 12364 |
main (void) |
| 12365 |
{ |
| 12366 |
if (syscall(0)) return 1; |
| 12367 |
; |
| 12368 |
return 0; |
| 12369 |
} |
| 12370 |
_ACEOF |
| 12371 |
if ac_fn_c_try_compile "$LINENO" |
| 12372 |
then : |
| 12373 |
rb_cv_syscall_deprecated=no |
| 12374 |
else $as_nop |
| 12375 |
rb_cv_syscall_deprecated=yes |
| 12376 |
fi |
| 12377 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12378 |
CFLAGS="$save_CFLAGS" |
| 12379 |
save_CFLAGS= |
| 12380 |
if test "${rb_c_werror_flag+set}" |
| 12381 |
then : |
| 12382 |
|
| 12383 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 12384 |
|
| 12385 |
else $as_nop |
| 12386 |
|
| 12387 |
unset ac_c_werror_flag |
| 12388 |
|
| 12389 |
fi |
| 12390 |
fi |
| 12391 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_syscall_deprecated" >&5 |
| 12392 |
colorize_result "$rb_cv_syscall_deprecated" ; } |
| 12393 |
if test $rb_cv_syscall_deprecated = yes |
| 12394 |
then : |
| 12395 |
|
| 12396 |
ac_cv_func___syscall=no |
| 12397 |
ac_cv_func_syscall=no |
| 12398 |
ac_cv_header_sys_syscall_h=no |
| 12399 |
ac_cv_header_syscall_h=no |
| 12400 |
|
| 12401 |
fi |
| 12402 |
ac_cv_func_getcontext=no |
| 12403 |
ac_cv_func_setcontext=no |
| 12404 |
ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage |
| 12405 |
ac_cv_lib_crypt_crypt=no |
| 12406 |
ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync() |
| 12407 |
ac_cv_func_vfork=no |
| 12408 |
if test $gcc_major -eq 4 -a $gcc_minor -lt 3 |
| 12409 |
then : |
| 12410 |
|
| 12411 |
ac_cv_func___builtin_setjmp=no |
| 12412 |
|
| 12413 |
fi |
| 12414 |
with_setjmp_type=sigsetjmp # to hijack SIGCHLD handler |
| 12415 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken crypt with 8bit chars" >&5 |
| 12416 |
printf %s "checking for broken crypt with 8bit chars... " >&6; } |
| 12417 |
if test ${rb_cv_broken_crypt+y} |
| 12418 |
then : |
| 12419 |
printf %s "(cached) " >&6 |
| 12420 |
else $as_nop |
| 12421 |
if test "$cross_compiling" = yes |
| 12422 |
then : |
| 12423 |
rb_cv_broken_crypt=yes |
| 12424 |
else $as_nop |
| 12425 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12426 |
/* end confdefs.h. */ |
| 12427 |
|
| 12428 |
#include <stdio.h> |
| 12429 |
#include <unistd.h> |
| 12430 |
#include <string.h> |
| 12431 |
|
| 12432 |
void |
| 12433 |
broken_crypt(const char *salt, const char *buf1, const char *buf2) |
| 12434 |
{ |
| 12435 |
#if 0 |
| 12436 |
printf("%.2x%.2x: %s -> %s\n", (unsigned char)salt[0], (unsigned char)salt[1], |
| 12437 |
buf1+2, buf2+2); |
| 12438 |
#endif |
| 12439 |
} |
| 12440 |
|
| 12441 |
int |
| 12442 |
main() |
| 12443 |
{ |
| 12444 |
int i; |
| 12445 |
char salt[2], buf[256], *s; |
| 12446 |
for (i = 0; i < 128*128; i++) { |
| 12447 |
salt[0] = 0x80 | (i & 0x7f); |
| 12448 |
salt[1] = 0x80 | (i >> 7); |
| 12449 |
strcpy(buf, crypt("", salt)); |
| 12450 |
if (strcmp(buf, s = crypt("", salt))) { |
| 12451 |
broken_crypt(salt, buf, s); |
| 12452 |
return 1; |
| 12453 |
} |
| 12454 |
} |
| 12455 |
salt[0] = salt[1] = ' '; |
| 12456 |
strcpy(buf, crypt("", salt)); |
| 12457 |
salt[0] = salt[1] = 0x80 | ' '; |
| 12458 |
if (strcmp(buf, s = crypt("", salt))) { |
| 12459 |
broken_crypt(salt, buf, s); |
| 12460 |
return 1; |
| 12461 |
} |
| 12462 |
return 0; |
| 12463 |
} |
| 12464 |
|
| 12465 |
_ACEOF |
| 12466 |
if ac_fn_c_try_run "$LINENO" |
| 12467 |
then : |
| 12468 |
rb_cv_broken_crypt=no |
| 12469 |
else $as_nop |
| 12470 |
rb_cv_broken_crypt=yes |
| 12471 |
fi |
| 12472 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 12473 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12474 |
fi |
| 12475 |
|
| 12476 |
fi |
| 12477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_crypt" >&5 |
| 12478 |
colorize_result "$rb_cv_broken_crypt" ; } |
| 12479 |
if test "$rb_cv_broken_crypt" = yes |
| 12480 |
then : |
| 12481 |
|
| 12482 |
printf "%s\n" "#define BROKEN_CRYPT 1" >>confdefs.h |
| 12483 |
|
| 12484 |
|
| 12485 |
fi |
| 12486 |
POSTLINK="" |
| 12487 |
for ac_prog in codesign |
| 12488 |
do |
| 12489 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12490 |
set dummy $ac_prog; ac_word=$2 |
| 12491 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12492 |
printf %s "checking for $ac_word... " >&6; } |
| 12493 |
if test ${ac_cv_prog_codesign+y} |
| 12494 |
then : |
| 12495 |
printf %s "(cached) " >&6 |
| 12496 |
else $as_nop |
| 12497 |
if test -n "$codesign"; then |
| 12498 |
ac_cv_prog_codesign="$codesign" # Let the user override the test. |
| 12499 |
else |
| 12500 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12501 |
for as_dir in $PATH |
| 12502 |
do |
| 12503 |
IFS=$as_save_IFS |
| 12504 |
case $as_dir in #((( |
| 12505 |
'') as_dir=./ ;; |
| 12506 |
*/) ;; |
| 12507 |
*) as_dir=$as_dir/ ;; |
| 12508 |
esac |
| 12509 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12510 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12511 |
ac_cv_prog_codesign="$ac_prog" |
| 12512 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12513 |
break 2 |
| 12514 |
fi |
| 12515 |
done |
| 12516 |
done |
| 12517 |
IFS=$as_save_IFS |
| 12518 |
|
| 12519 |
fi |
| 12520 |
fi |
| 12521 |
codesign=$ac_cv_prog_codesign |
| 12522 |
if test -n "$codesign"; then |
| 12523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $codesign" >&5 |
| 12524 |
colorize_result "$codesign" ; } |
| 12525 |
else |
| 12526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12527 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 12528 |
fi |
| 12529 |
|
| 12530 |
|
| 12531 |
test -n "$codesign" && break |
| 12532 |
done |
| 12533 |
|
| 12534 |
dsymutils= |
| 12535 |
case "$CC_NO_WRAPPER" in #( |
| 12536 |
gcc*-1[3-9]) : |
| 12537 |
|
| 12538 |
dsymutils=${CC_NO_WRAPPER#gcc} |
| 12539 |
dsymutils=dsymutil${dsymutils%-1*} |
| 12540 |
dsymutils="$dsymutils-19 $dsymutils-18 $dsymutils-17" |
| 12541 |
;; #( |
| 12542 |
*) : |
| 12543 |
;; |
| 12544 |
esac |
| 12545 |
for ac_prog in $dsymutils dsymutil |
| 12546 |
do |
| 12547 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 12548 |
set dummy $ac_prog; ac_word=$2 |
| 12549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 12550 |
printf %s "checking for $ac_word... " >&6; } |
| 12551 |
if test ${ac_cv_prog_dsymutil+y} |
| 12552 |
then : |
| 12553 |
printf %s "(cached) " >&6 |
| 12554 |
else $as_nop |
| 12555 |
if test -n "$dsymutil"; then |
| 12556 |
ac_cv_prog_dsymutil="$dsymutil" # Let the user override the test. |
| 12557 |
else |
| 12558 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 12559 |
for as_dir in $PATH |
| 12560 |
do |
| 12561 |
IFS=$as_save_IFS |
| 12562 |
case $as_dir in #((( |
| 12563 |
'') as_dir=./ ;; |
| 12564 |
*/) ;; |
| 12565 |
*) as_dir=$as_dir/ ;; |
| 12566 |
esac |
| 12567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 12568 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 12569 |
ac_cv_prog_dsymutil="$ac_prog" |
| 12570 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 12571 |
break 2 |
| 12572 |
fi |
| 12573 |
done |
| 12574 |
done |
| 12575 |
IFS=$as_save_IFS |
| 12576 |
|
| 12577 |
fi |
| 12578 |
fi |
| 12579 |
dsymutil=$ac_cv_prog_dsymutil |
| 12580 |
if test -n "$dsymutil"; then |
| 12581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dsymutil" >&5 |
| 12582 |
colorize_result "$dsymutil" ; } |
| 12583 |
else |
| 12584 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12585 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 12586 |
fi |
| 12587 |
|
| 12588 |
|
| 12589 |
test -n "$dsymutil" && break |
| 12590 |
done |
| 12591 |
|
| 12592 |
if test -n "$codesign" |
| 12593 |
then : |
| 12594 |
|
| 12595 |
POSTLINK="{ test -z '\$(RUBY_CODESIGN)' || $codesign -s '\$(RUBY_CODESIGN)' -f \$@; }${POSTLINK:+; $POSTLINK}" |
| 12596 |
|
| 12597 |
fi |
| 12598 |
if test -n "$dsymutil" |
| 12599 |
then : |
| 12600 |
|
| 12601 |
POSTLINK="$dsymutil \$@ 2>/dev/null${POSTLINK:+; $POSTLINK}" |
| 12602 |
|
| 12603 |
fi |
| 12604 |
if test -n "${POSTLINK}" |
| 12605 |
then : |
| 12606 |
|
| 12607 |
LINK_SO="$LINK_SO |
| 12608 |
\$(POSTLINK)" |
| 12609 |
|
| 12610 |
fi |
| 12611 |
ac_fn_c_check_header_compile "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" " |
| 12612 |
#include <crt_externs.h> |
| 12613 |
|
| 12614 |
" |
| 12615 |
if test "x$ac_cv_header_crt_externs_h" = xyes |
| 12616 |
then : |
| 12617 |
printf "%s\n" "#define HAVE_CRT_EXTERNS_H 1" >>confdefs.h |
| 12618 |
|
| 12619 |
fi |
| 12620 |
|
| 12621 |
cleanlibs='$(TARGET_SO).dSYM' |
| 12622 |
;; #( |
| 12623 |
solaris*) : |
| 12624 |
LIBS="-lm $LIBS" |
| 12625 |
ac_cv_func_vfork=no |
| 12626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE is already given" >&5 |
| 12627 |
printf %s "checking whether _XOPEN_SOURCE is already given... " >&6; } |
| 12628 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12629 |
/* end confdefs.h. */ |
| 12630 |
#include <unistd.h> |
| 12631 |
#ifndef _XOPEN_SOURCE |
| 12632 |
#error _XOPEN_SOURCE is not defined |
| 12633 |
#endif |
| 12634 |
|
| 12635 |
int |
| 12636 |
main (void) |
| 12637 |
{ |
| 12638 |
|
| 12639 |
; |
| 12640 |
return 0; |
| 12641 |
} |
| 12642 |
_ACEOF |
| 12643 |
if ac_fn_c_try_compile "$LINENO" |
| 12644 |
then : |
| 12645 |
given_xopen_source=yes |
| 12646 |
else $as_nop |
| 12647 |
given_xopen_source=no |
| 12648 |
fi |
| 12649 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12650 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $given_xopen_source" >&5 |
| 12651 |
colorize_result "$given_xopen_source" ; } |
| 12652 |
if test $given_xopen_source = no |
| 12653 |
then : |
| 12654 |
|
| 12655 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking appropriate _XOPEN_SOURCE value to define" >&5 |
| 12656 |
printf %s "checking appropriate _XOPEN_SOURCE value to define... " >&6; } |
| 12657 |
define_xopen_source="" |
| 12658 |
for tmp_xpg in 7 6 5; do |
| 12659 |
if test x"$define_xopen_source" != x |
| 12660 |
then : |
| 12661 |
|
| 12662 |
break |
| 12663 |
|
| 12664 |
fi |
| 12665 |
save_CFLAGS="$CFLAGS" |
| 12666 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 12667 |
if test "${ac_c_werror_flag+set}" |
| 12668 |
then : |
| 12669 |
|
| 12670 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 12671 |
|
| 12672 |
else $as_nop |
| 12673 |
|
| 12674 |
unset rb_c_werror_flag |
| 12675 |
|
| 12676 |
fi |
| 12677 |
ac_c_werror_flag=yes |
| 12678 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12679 |
/* end confdefs.h. */ |
| 12680 |
|
| 12681 |
#define _XOPEN_SOURCE ${tmp_xpg}00 |
| 12682 |
#include <unistd.h> |
| 12683 |
#ifndef _XPG${tmp_xpg} |
| 12684 |
#error _XPG${tmp_xpg} should be defined by _XOPEN_SOURCE=${tmp_xpg}00 |
| 12685 |
#endif |
| 12686 |
|
| 12687 |
int |
| 12688 |
main (void) |
| 12689 |
{ |
| 12690 |
|
| 12691 |
; |
| 12692 |
return 0; |
| 12693 |
} |
| 12694 |
_ACEOF |
| 12695 |
if ac_fn_c_try_compile "$LINENO" |
| 12696 |
then : |
| 12697 |
define_xopen_source=${tmp_xpg}00 |
| 12698 |
fi |
| 12699 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12700 |
|
| 12701 |
CFLAGS="$save_CFLAGS" |
| 12702 |
save_CFLAGS= |
| 12703 |
if test "${rb_c_werror_flag+set}" |
| 12704 |
then : |
| 12705 |
|
| 12706 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 12707 |
|
| 12708 |
else $as_nop |
| 12709 |
|
| 12710 |
unset ac_c_werror_flag |
| 12711 |
|
| 12712 |
fi |
| 12713 |
done |
| 12714 |
if test x"$define_xopen_source" = x |
| 12715 |
then : |
| 12716 |
|
| 12717 |
define_xopen_source=no |
| 12718 |
|
| 12719 |
fi |
| 12720 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $define_xopen_source" >&5 |
| 12721 |
colorize_result "$define_xopen_source" ; } |
| 12722 |
if test x"$define_xopen_source" != xno |
| 12723 |
then : |
| 12724 |
|
| 12725 |
# RUBY_APPEND_OPTIONS(CPPFLAGS) |
| 12726 |
for rb_opt in -D_XOPEN_SOURCE=$define_xopen_source; do |
| 12727 |
case " ${CPPFLAGS-} " in #( |
| 12728 |
*" ${rb_opt} "*) : |
| 12729 |
;; #( |
| 12730 |
' ') : |
| 12731 |
CPPFLAGS="${rb_opt}" ;; #( |
| 12732 |
*) : |
| 12733 |
CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; |
| 12734 |
esac |
| 12735 |
done |
| 12736 |
# _XOPEN_SOURCE should not be defined for C++ on Solaris. |
| 12737 |
# RUBY_APPEND_OPTIONS(CXXFLAGS) |
| 12738 |
for rb_opt in -U_XOPEN_SOURCE; do |
| 12739 |
case " ${CXXFLAGS-} " in #( |
| 12740 |
*" ${rb_opt} "*) : |
| 12741 |
;; #( |
| 12742 |
' ') : |
| 12743 |
CXXFLAGS="${rb_opt}" ;; #( |
| 12744 |
*) : |
| 12745 |
CXXFLAGS="$CXXFLAGS ${rb_opt}" ;; |
| 12746 |
esac |
| 12747 |
done |
| 12748 |
|
| 12749 |
fi |
| 12750 |
|
| 12751 |
fi |
| 12752 |
ac_fn_c_check_type "$LINENO" "caddr_t" "ac_cv_type_caddr_t" "#include <sys/types.h> |
| 12753 |
" |
| 12754 |
if test "x$ac_cv_type_caddr_t" = xyes |
| 12755 |
then : |
| 12756 |
|
| 12757 |
printf "%s\n" "#define HAVE_CADDR_T 1" >>confdefs.h |
| 12758 |
|
| 12759 |
|
| 12760 |
fi |
| 12761 |
|
| 12762 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether madvise declaration is needed" >&5 |
| 12763 |
printf %s "checking whether madvise declaration is needed... " >&6; } |
| 12764 |
if test ${rb_cv_madvice_prototype_using_caddr_t+y} |
| 12765 |
then : |
| 12766 |
printf %s "(cached) " >&6 |
| 12767 |
else $as_nop |
| 12768 |
save_CFLAGS="$CFLAGS" |
| 12769 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 12770 |
if test "${ac_c_werror_flag+set}" |
| 12771 |
then : |
| 12772 |
|
| 12773 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 12774 |
|
| 12775 |
else $as_nop |
| 12776 |
|
| 12777 |
unset rb_c_werror_flag |
| 12778 |
|
| 12779 |
fi |
| 12780 |
ac_c_werror_flag=yes |
| 12781 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12782 |
/* end confdefs.h. */ |
| 12783 |
|
| 12784 |
#include <sys/unistd.h> |
| 12785 |
#include <sys/mman.h> |
| 12786 |
#include <sys/types.h> |
| 12787 |
extern int madvise(caddr_t, size_t, int); |
| 12788 |
|
| 12789 |
int |
| 12790 |
main (void) |
| 12791 |
{ |
| 12792 |
|
| 12793 |
; |
| 12794 |
return 0; |
| 12795 |
} |
| 12796 |
_ACEOF |
| 12797 |
if ac_fn_c_try_compile "$LINENO" |
| 12798 |
then : |
| 12799 |
rb_cv_madvice_prototype_using_caddr_t=yes |
| 12800 |
else $as_nop |
| 12801 |
rb_cv_madvice_prototype_using_caddr_t=no |
| 12802 |
fi |
| 12803 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 12804 |
|
| 12805 |
CFLAGS="$save_CFLAGS" |
| 12806 |
save_CFLAGS= |
| 12807 |
if test "${rb_c_werror_flag+set}" |
| 12808 |
then : |
| 12809 |
|
| 12810 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 12811 |
|
| 12812 |
else $as_nop |
| 12813 |
|
| 12814 |
unset ac_c_werror_flag |
| 12815 |
|
| 12816 |
fi |
| 12817 |
|
| 12818 |
fi |
| 12819 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_madvice_prototype_using_caddr_t" >&5 |
| 12820 |
colorize_result "$rb_cv_madvice_prototype_using_caddr_t" ; } |
| 12821 |
if test $rb_cv_madvice_prototype_using_caddr_t = yes |
| 12822 |
then : |
| 12823 |
printf "%s\n" "#define NEED_MADVICE_PROTOTYPE_USING_CADDR_T 1" >>confdefs.h |
| 12824 |
|
| 12825 |
fi |
| 12826 |
;; #( |
| 12827 |
haiku*) : |
| 12828 |
|
| 12829 |
LIBS="$LIBS" # m lib is include in root |
| 12830 |
;; #( |
| 12831 |
cygwin*|msys*) : |
| 12832 |
|
| 12833 |
ac_cv_header_langinfo_h=yes |
| 12834 |
# RUBY_APPEND_OPTIONS(CPPFLAGS) |
| 12835 |
for rb_opt in -D_XOPEN_SOURCE -D_GNU_SOURCE; do |
| 12836 |
case " ${CPPFLAGS-} " in #( |
| 12837 |
*" ${rb_opt} "*) : |
| 12838 |
;; #( |
| 12839 |
' ') : |
| 12840 |
CPPFLAGS="${rb_opt}" ;; #( |
| 12841 |
*) : |
| 12842 |
CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; |
| 12843 |
esac |
| 12844 |
done |
| 12845 |
ac_fn_c_check_func "$LINENO" "cygwin_conv_path" "ac_cv_func_cygwin_conv_path" |
| 12846 |
if test "x$ac_cv_func_cygwin_conv_path" = xyes |
| 12847 |
then : |
| 12848 |
printf "%s\n" "#define HAVE_CYGWIN_CONV_PATH 1" >>confdefs.h |
| 12849 |
|
| 12850 |
fi |
| 12851 |
|
| 12852 |
case " $LIBOBJS " in |
| 12853 |
*" langinfo.$ac_objext "* ) ;; |
| 12854 |
*) LIBOBJS="$LIBOBJS langinfo.$ac_objext" |
| 12855 |
;; |
| 12856 |
esac |
| 12857 |
|
| 12858 |
;; #( |
| 12859 |
mingw*) : |
| 12860 |
LIBS="-lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi -lbcrypt $LIBS" |
| 12861 |
ac_cv_header_pwd_h=no |
| 12862 |
ac_cv_header_utime_h=no |
| 12863 |
ac_cv_header_sys_ioctl_h=no |
| 12864 |
ac_cv_header_sys_param_h=no |
| 12865 |
ac_cv_header_sys_resource_h=no |
| 12866 |
ac_cv_header_sys_select_h=no |
| 12867 |
ac_cv_header_sys_time_h=no |
| 12868 |
ac_cv_header_sys_times_h=no |
| 12869 |
ac_cv_header_sys_socket_h=no |
| 12870 |
ac_cv_func_execv=yes |
| 12871 |
ac_cv_func_lstat=yes |
| 12872 |
ac_cv_func_times=yes |
| 12873 |
ac_cv_func_waitpid=yes |
| 12874 |
ac_cv_func_fsync=yes |
| 12875 |
ac_cv_func_seekdir=yes |
| 12876 |
ac_cv_func_telldir=yes |
| 12877 |
ac_cv_func_lchown=yes |
| 12878 |
ac_cv_func_link=yes |
| 12879 |
ac_cv_func_readlink=yes |
| 12880 |
ac_cv_func_shutdown=yes |
| 12881 |
ac_cv_func_symlink=yes |
| 12882 |
ac_cv_lib_crypt_crypt=no |
| 12883 |
ac_cv_func_getpgrp_void=no |
| 12884 |
ac_cv_func_memcmp_working=yes |
| 12885 |
ac_cv_lib_dl_dlopen=no |
| 12886 |
rb_cv_negative_time_t=yes |
| 12887 |
ac_cv_func_fcntl=yes |
| 12888 |
ac_cv_func_flock=yes |
| 12889 |
ac_cv_func_gmtime_r=yes |
| 12890 |
rb_cv_large_fd_select=yes |
| 12891 |
ac_cv_type_struct_timeval=yes |
| 12892 |
ac_cv_func_clock_gettime=yes |
| 12893 |
ac_cv_func_clock_getres=yes |
| 12894 |
ac_cv_func_malloc_usable_size=no |
| 12895 |
ac_cv_type_off_t=yes |
| 12896 |
ac_cv_sizeof_off_t=8 |
| 12897 |
if test "$target_cpu" = x64 |
| 12898 |
then : |
| 12899 |
|
| 12900 |
ac_cv_func___builtin_setjmp=yes |
| 12901 |
ac_cv_func_round=no |
| 12902 |
|
| 12903 |
fi |
| 12904 |
ac_cv_func_tgamma=no |
| 12905 |
ac_fn_c_check_type "$LINENO" "NET_LUID" "ac_cv_type_NET_LUID" "#include <winsock2.h> |
| 12906 |
#include <iphlpapi.h> |
| 12907 |
" |
| 12908 |
if test "x$ac_cv_type_NET_LUID" = xyes |
| 12909 |
then : |
| 12910 |
|
| 12911 |
fi |
| 12912 |
|
| 12913 |
if test x"$ac_cv_type_NET_LUID" = xyes |
| 12914 |
then : |
| 12915 |
|
| 12916 |
printf "%s\n" "#define HAVE_TYPE_NET_LUID 1" >>confdefs.h |
| 12917 |
|
| 12918 |
|
| 12919 |
fi |
| 12920 |
ac_fn_c_check_func "$LINENO" "_gmtime64_s" "ac_cv_func__gmtime64_s" |
| 12921 |
if test "x$ac_cv_func__gmtime64_s" = xyes |
| 12922 |
then : |
| 12923 |
printf "%s\n" "#define HAVE__GMTIME64_S 1" >>confdefs.h |
| 12924 |
|
| 12925 |
fi |
| 12926 |
|
| 12927 |
ac_fn_c_check_func "$LINENO" "_wfreopen_s" "ac_cv_func__wfreopen_s" |
| 12928 |
if test "x$ac_cv_func__wfreopen_s" = xyes |
| 12929 |
then : |
| 12930 |
printf "%s\n" "#define HAVE__WFREOPEN_S 1" >>confdefs.h |
| 12931 |
|
| 12932 |
fi |
| 12933 |
|
| 12934 |
case " $LIBOBJS " in |
| 12935 |
*" langinfo.$ac_objext "* ) ;; |
| 12936 |
*) LIBOBJS="$LIBOBJS langinfo.$ac_objext" |
| 12937 |
;; |
| 12938 |
esac |
| 12939 |
|
| 12940 |
;; #( |
| 12941 |
bsdi*) : |
| 12942 |
LIBS="-lm $LIBS" |
| 12943 |
printf "%s\n" "#define BROKEN_SETREUID 1" >>confdefs.h |
| 12944 |
|
| 12945 |
printf "%s\n" "#define BROKEN_SETREGID 1" >>confdefs.h |
| 12946 |
|
| 12947 |
ac_cv_sizeof_rlim_t=8 ;; #( |
| 12948 |
freebsd*) : |
| 12949 |
LIBS="-lm $LIBS" |
| 12950 |
ac_cv_func_getpeername=no |
| 12951 |
ac_cv_func_getsockname=no |
| 12952 |
ac_cv_func_shutdown=no |
| 12953 |
ac_cv_func_close=no |
| 12954 |
;; #( |
| 12955 |
netbsd*) : |
| 12956 |
LIBS="-lm $LIBS" |
| 12957 |
;; #( |
| 12958 |
dragonfly*) : |
| 12959 |
LIBS="-lm $LIBS" |
| 12960 |
;; #( |
| 12961 |
aix*) : |
| 12962 |
LIBS="-lm $LIBS" |
| 12963 |
ac_cv_func_round=no |
| 12964 |
ac_cv_func___builtin_setjmp=no |
| 12965 |
;; #( |
| 12966 |
linux*) : |
| 12967 |
LIBS="-lm $LIBS" |
| 12968 |
# __builtin_longjmp in ppc64* Linux does not restore |
| 12969 |
# the TOC register (r2), which is problematic |
| 12970 |
# when a global exit happens from JITted .so code. |
| 12971 |
case "$target_cpu" in #( |
| 12972 |
powerpc64*) : |
| 12973 |
|
| 12974 |
ac_cv_func___builtin_setjmp=no |
| 12975 |
;; #( |
| 12976 |
*) : |
| 12977 |
;; |
| 12978 |
esac |
| 12979 |
# With gcc-8's -fcf-protection, RJIT's __builtin_longjmp fails. |
| 12980 |
case "$CC $CFLAGS " in #( |
| 12981 |
*" -fcf-protection "*) : |
| 12982 |
cf_protection=yes ;; #( |
| 12983 |
*) : |
| 12984 |
cf_protection=no ;; |
| 12985 |
esac |
| 12986 |
if test "$cf_protection" = yes |
| 12987 |
then : |
| 12988 |
|
| 12989 |
ac_cv_func___builtin_setjmp=no |
| 12990 |
|
| 12991 |
fi |
| 12992 |
;; #( |
| 12993 |
emscripten*) : |
| 12994 |
LIBS="-lm -lc $LIBS" |
| 12995 |
# RUBY_APPEND_OPTIONS(LDFLAGS) |
| 12996 |
for rb_opt in "-sALLOW_MEMORY_GROWTH=1"; do |
| 12997 |
case " ${LDFLAGS-} " in #( |
| 12998 |
*" ${rb_opt} "*) : |
| 12999 |
;; #( |
| 13000 |
' ') : |
| 13001 |
LDFLAGS="${rb_opt}" ;; #( |
| 13002 |
*) : |
| 13003 |
LDFLAGS="$LDFLAGS ${rb_opt}" ;; |
| 13004 |
esac |
| 13005 |
done |
| 13006 |
# RUBY_APPEND_OPTIONS(LDFLAGS) |
| 13007 |
for rb_opt in "-sASYNCIFY"; do |
| 13008 |
case " ${LDFLAGS-} " in #( |
| 13009 |
*" ${rb_opt} "*) : |
| 13010 |
;; #( |
| 13011 |
' ') : |
| 13012 |
LDFLAGS="${rb_opt}" ;; #( |
| 13013 |
*) : |
| 13014 |
LDFLAGS="$LDFLAGS ${rb_opt}" ;; |
| 13015 |
esac |
| 13016 |
done |
| 13017 |
# RUBY_APPEND_OPTIONS(LDFLAGS) |
| 13018 |
for rb_opt in "-sFORCE_FILESYSTEM=1"; do |
| 13019 |
case " ${LDFLAGS-} " in #( |
| 13020 |
*" ${rb_opt} "*) : |
| 13021 |
;; #( |
| 13022 |
' ') : |
| 13023 |
LDFLAGS="${rb_opt}" ;; #( |
| 13024 |
*) : |
| 13025 |
LDFLAGS="$LDFLAGS ${rb_opt}" ;; |
| 13026 |
esac |
| 13027 |
done |
| 13028 |
ac_cv_func_shutdown=no |
| 13029 |
;; #( |
| 13030 |
wasi*) : |
| 13031 |
LIBS="-lm -lwasi-emulated-mman -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks $LIBS" |
| 13032 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 13033 |
for rb_opt in -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_GETPID -D_WASI_EMULATED_PROCESS_CLOCKS; do |
| 13034 |
case " ${CFLAGS-} " in #( |
| 13035 |
*" ${rb_opt} "*) : |
| 13036 |
;; #( |
| 13037 |
' ') : |
| 13038 |
CFLAGS="${rb_opt}" ;; #( |
| 13039 |
*) : |
| 13040 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 13041 |
esac |
| 13042 |
done |
| 13043 |
# RUBY_APPEND_OPTIONS(CPPFLAGS) |
| 13044 |
for rb_opt in -D_WASI_EMULATED_SIGNAL -D_WASI_EMULATED_MMAN -D_WASI_EMULATED_GETPID -D_WASI_EMULATED_PROCESS_CLOCKS; do |
| 13045 |
case " ${CPPFLAGS-} " in #( |
| 13046 |
*" ${rb_opt} "*) : |
| 13047 |
;; #( |
| 13048 |
' ') : |
| 13049 |
CPPFLAGS="${rb_opt}" ;; #( |
| 13050 |
*) : |
| 13051 |
CPPFLAGS="$CPPFLAGS ${rb_opt}" ;; |
| 13052 |
esac |
| 13053 |
done |
| 13054 |
POSTLINK="\$(WASMOPT) --asyncify \$(wasmoptflags) --pass-arg=asyncify-ignore-imports -o \$@ \$@${POSTLINK:+; $POSTLINK}" |
| 13055 |
# wasi-libc's sys/socket.h is not compatible with -std=gnu99, |
| 13056 |
# so re-declare shutdown in include/ruby/missing.h |
| 13057 |
ac_cv_func_shutdown=no |
| 13058 |
;; #( |
| 13059 |
*) : |
| 13060 |
LIBS="-lm $LIBS" ;; |
| 13061 |
esac |
| 13062 |
: ${ORIG_LIBS=$LIBS} |
| 13063 |
|
| 13064 |
if test -n "${rb_there_is_in_fact_no_gplusplus_but_autoconf_is_cheating_us}" |
| 13065 |
then : |
| 13066 |
|
| 13067 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Test skipped due to lack of a C++ compiler." >&5 |
| 13068 |
printf "%s\n" "$as_me: Test skipped due to lack of a C++ compiler." >&6;} |
| 13069 |
|
| 13070 |
elif test -n "${CXX}" |
| 13071 |
then : |
| 13072 |
|
| 13073 |
save_CFLAGS="$CFLAGS" |
| 13074 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 13075 |
if test "${ac_c_werror_flag+set}" |
| 13076 |
then : |
| 13077 |
|
| 13078 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 13079 |
|
| 13080 |
else $as_nop |
| 13081 |
|
| 13082 |
unset rb_c_werror_flag |
| 13083 |
|
| 13084 |
fi |
| 13085 |
ac_c_werror_flag=yes |
| 13086 |
|
| 13087 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether CXXFLAGS is valid" >&5 |
| 13088 |
printf %s "checking whether CXXFLAGS is valid... " >&6; } |
| 13089 |
ac_ext=cpp |
| 13090 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 13091 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13092 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13093 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 13094 |
|
| 13095 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13096 |
/* end confdefs.h. */ |
| 13097 |
#include <cstdio> |
| 13098 |
int |
| 13099 |
main (void) |
| 13100 |
{ |
| 13101 |
|
| 13102 |
; |
| 13103 |
return 0; |
| 13104 |
} |
| 13105 |
_ACEOF |
| 13106 |
if ac_fn_cxx_try_compile "$LINENO" |
| 13107 |
then : |
| 13108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 13109 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 13110 |
else $as_nop |
| 13111 |
|
| 13112 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13113 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 13114 |
# The message mentions CXXFLAGS, but CPPFLAGS might also affects. |
| 13115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: something wrong with CXXFLAGS=\"$CXXFLAGS\"" >&5 |
| 13116 |
printf "%s\n" "$as_me: WARNING: something wrong with CXXFLAGS=\"$CXXFLAGS\"" >&2;} |
| 13117 |
CXX=false |
| 13118 |
|
| 13119 |
fi |
| 13120 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13121 |
ac_ext=c |
| 13122 |
ac_cpp='$CPP $CPPFLAGS' |
| 13123 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 13124 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 13125 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 13126 |
|
| 13127 |
|
| 13128 |
CFLAGS="$save_CFLAGS" |
| 13129 |
save_CFLAGS= |
| 13130 |
if test "${rb_c_werror_flag+set}" |
| 13131 |
then : |
| 13132 |
|
| 13133 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 13134 |
|
| 13135 |
else $as_nop |
| 13136 |
|
| 13137 |
unset ac_c_werror_flag |
| 13138 |
|
| 13139 |
fi |
| 13140 |
|
| 13141 |
fi |
| 13142 |
|
| 13143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 |
| 13144 |
printf %s "checking for crypt in -lcrypt... " >&6; } |
| 13145 |
if test ${ac_cv_lib_crypt_crypt+y} |
| 13146 |
then : |
| 13147 |
printf %s "(cached) " >&6 |
| 13148 |
else $as_nop |
| 13149 |
ac_check_lib_save_LIBS=$LIBS |
| 13150 |
LIBS="-lcrypt $LIBS" |
| 13151 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13152 |
/* end confdefs.h. */ |
| 13153 |
|
| 13154 |
/* Override any GCC internal prototype to avoid an error. |
| 13155 |
Use char because int might match the return type of a GCC |
| 13156 |
builtin and then its argument prototype would still apply. */ |
| 13157 |
char crypt (); |
| 13158 |
int |
| 13159 |
main (void) |
| 13160 |
{ |
| 13161 |
return crypt (); |
| 13162 |
; |
| 13163 |
return 0; |
| 13164 |
} |
| 13165 |
_ACEOF |
| 13166 |
if ac_fn_c_try_link "$LINENO" |
| 13167 |
then : |
| 13168 |
ac_cv_lib_crypt_crypt=yes |
| 13169 |
else $as_nop |
| 13170 |
ac_cv_lib_crypt_crypt=no |
| 13171 |
fi |
| 13172 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13173 |
conftest$ac_exeext conftest.$ac_ext |
| 13174 |
LIBS=$ac_check_lib_save_LIBS |
| 13175 |
fi |
| 13176 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 |
| 13177 |
colorize_result "$ac_cv_lib_crypt_crypt" ; } |
| 13178 |
if test "x$ac_cv_lib_crypt_crypt" = xyes |
| 13179 |
then : |
| 13180 |
printf "%s\n" "#define HAVE_LIBCRYPT 1" >>confdefs.h |
| 13181 |
|
| 13182 |
LIBS="-lcrypt $LIBS" |
| 13183 |
|
| 13184 |
fi |
| 13185 |
# glibc (GNU/Linux, GNU/Hurd, GNU/kFreeBSD) |
| 13186 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 13187 |
printf %s "checking for dlopen in -ldl... " >&6; } |
| 13188 |
if test ${ac_cv_lib_dl_dlopen+y} |
| 13189 |
then : |
| 13190 |
printf %s "(cached) " >&6 |
| 13191 |
else $as_nop |
| 13192 |
ac_check_lib_save_LIBS=$LIBS |
| 13193 |
LIBS="-ldl $LIBS" |
| 13194 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13195 |
/* end confdefs.h. */ |
| 13196 |
|
| 13197 |
/* Override any GCC internal prototype to avoid an error. |
| 13198 |
Use char because int might match the return type of a GCC |
| 13199 |
builtin and then its argument prototype would still apply. */ |
| 13200 |
char dlopen (); |
| 13201 |
int |
| 13202 |
main (void) |
| 13203 |
{ |
| 13204 |
return dlopen (); |
| 13205 |
; |
| 13206 |
return 0; |
| 13207 |
} |
| 13208 |
_ACEOF |
| 13209 |
if ac_fn_c_try_link "$LINENO" |
| 13210 |
then : |
| 13211 |
ac_cv_lib_dl_dlopen=yes |
| 13212 |
else $as_nop |
| 13213 |
ac_cv_lib_dl_dlopen=no |
| 13214 |
fi |
| 13215 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13216 |
conftest$ac_exeext conftest.$ac_ext |
| 13217 |
LIBS=$ac_check_lib_save_LIBS |
| 13218 |
fi |
| 13219 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 13220 |
colorize_result "$ac_cv_lib_dl_dlopen" ; } |
| 13221 |
if test "x$ac_cv_lib_dl_dlopen" = xyes |
| 13222 |
then : |
| 13223 |
printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h |
| 13224 |
|
| 13225 |
LIBS="-ldl $LIBS" |
| 13226 |
|
| 13227 |
fi |
| 13228 |
# Dynamic linking for SunOS/Solaris and SYSV |
| 13229 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shutdown in -lsocket" >&5 |
| 13230 |
printf %s "checking for shutdown in -lsocket... " >&6; } |
| 13231 |
if test ${ac_cv_lib_socket_shutdown+y} |
| 13232 |
then : |
| 13233 |
printf %s "(cached) " >&6 |
| 13234 |
else $as_nop |
| 13235 |
ac_check_lib_save_LIBS=$LIBS |
| 13236 |
LIBS="-lsocket $LIBS" |
| 13237 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13238 |
/* end confdefs.h. */ |
| 13239 |
|
| 13240 |
/* Override any GCC internal prototype to avoid an error. |
| 13241 |
Use char because int might match the return type of a GCC |
| 13242 |
builtin and then its argument prototype would still apply. */ |
| 13243 |
char shutdown (); |
| 13244 |
int |
| 13245 |
main (void) |
| 13246 |
{ |
| 13247 |
return shutdown (); |
| 13248 |
; |
| 13249 |
return 0; |
| 13250 |
} |
| 13251 |
_ACEOF |
| 13252 |
if ac_fn_c_try_link "$LINENO" |
| 13253 |
then : |
| 13254 |
ac_cv_lib_socket_shutdown=yes |
| 13255 |
else $as_nop |
| 13256 |
ac_cv_lib_socket_shutdown=no |
| 13257 |
fi |
| 13258 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13259 |
conftest$ac_exeext conftest.$ac_ext |
| 13260 |
LIBS=$ac_check_lib_save_LIBS |
| 13261 |
fi |
| 13262 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_shutdown" >&5 |
| 13263 |
colorize_result "$ac_cv_lib_socket_shutdown" ; } |
| 13264 |
if test "x$ac_cv_lib_socket_shutdown" = xyes |
| 13265 |
then : |
| 13266 |
printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h |
| 13267 |
|
| 13268 |
LIBS="-lsocket $LIBS" |
| 13269 |
|
| 13270 |
fi |
| 13271 |
# SunOS/Solaris |
| 13272 |
|
| 13273 |
ac_header_dirent=no |
| 13274 |
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
| 13275 |
as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` |
| 13276 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 |
| 13277 |
printf %s "checking for $ac_hdr that defines DIR... " >&6; } |
| 13278 |
if eval test \${$as_ac_Header+y} |
| 13279 |
then : |
| 13280 |
printf %s "(cached) " >&6 |
| 13281 |
else $as_nop |
| 13282 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13283 |
/* end confdefs.h. */ |
| 13284 |
#include <sys/types.h> |
| 13285 |
#include <$ac_hdr> |
| 13286 |
|
| 13287 |
int |
| 13288 |
main (void) |
| 13289 |
{ |
| 13290 |
if ((DIR *) 0) |
| 13291 |
return 0; |
| 13292 |
; |
| 13293 |
return 0; |
| 13294 |
} |
| 13295 |
_ACEOF |
| 13296 |
if ac_fn_c_try_compile "$LINENO" |
| 13297 |
then : |
| 13298 |
eval "$as_ac_Header=yes" |
| 13299 |
else $as_nop |
| 13300 |
eval "$as_ac_Header=no" |
| 13301 |
fi |
| 13302 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13303 |
fi |
| 13304 |
eval ac_res=\$$as_ac_Header |
| 13305 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 13306 |
colorize_result "$ac_res" ; } |
| 13307 |
if eval test \"x\$"$as_ac_Header"\" = x"yes" |
| 13308 |
then : |
| 13309 |
cat >>confdefs.h <<_ACEOF |
| 13310 |
#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 |
| 13311 |
_ACEOF |
| 13312 |
|
| 13313 |
ac_header_dirent=$ac_hdr; break |
| 13314 |
fi |
| 13315 |
|
| 13316 |
done |
| 13317 |
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. |
| 13318 |
if test $ac_header_dirent = dirent.h; then |
| 13319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 13320 |
printf %s "checking for library containing opendir... " >&6; } |
| 13321 |
if test ${ac_cv_search_opendir+y} |
| 13322 |
then : |
| 13323 |
printf %s "(cached) " >&6 |
| 13324 |
else $as_nop |
| 13325 |
ac_func_search_save_LIBS=$LIBS |
| 13326 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13327 |
/* end confdefs.h. */ |
| 13328 |
|
| 13329 |
/* Override any GCC internal prototype to avoid an error. |
| 13330 |
Use char because int might match the return type of a GCC |
| 13331 |
builtin and then its argument prototype would still apply. */ |
| 13332 |
char opendir (); |
| 13333 |
int |
| 13334 |
main (void) |
| 13335 |
{ |
| 13336 |
return opendir (); |
| 13337 |
; |
| 13338 |
return 0; |
| 13339 |
} |
| 13340 |
_ACEOF |
| 13341 |
for ac_lib in '' dir |
| 13342 |
do |
| 13343 |
if test -z "$ac_lib"; then |
| 13344 |
ac_res="none required" |
| 13345 |
else |
| 13346 |
ac_res=-l$ac_lib |
| 13347 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13348 |
fi |
| 13349 |
if ac_fn_c_try_link "$LINENO" |
| 13350 |
then : |
| 13351 |
ac_cv_search_opendir=$ac_res |
| 13352 |
fi |
| 13353 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13354 |
conftest$ac_exeext |
| 13355 |
if test ${ac_cv_search_opendir+y} |
| 13356 |
then : |
| 13357 |
break |
| 13358 |
fi |
| 13359 |
done |
| 13360 |
if test ${ac_cv_search_opendir+y} |
| 13361 |
then : |
| 13362 |
|
| 13363 |
else $as_nop |
| 13364 |
ac_cv_search_opendir=no |
| 13365 |
fi |
| 13366 |
rm conftest.$ac_ext |
| 13367 |
LIBS=$ac_func_search_save_LIBS |
| 13368 |
fi |
| 13369 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 13370 |
colorize_result "$ac_cv_search_opendir" ; } |
| 13371 |
ac_res=$ac_cv_search_opendir |
| 13372 |
if test "$ac_res" != no |
| 13373 |
then : |
| 13374 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13375 |
|
| 13376 |
fi |
| 13377 |
|
| 13378 |
else |
| 13379 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 |
| 13380 |
printf %s "checking for library containing opendir... " >&6; } |
| 13381 |
if test ${ac_cv_search_opendir+y} |
| 13382 |
then : |
| 13383 |
printf %s "(cached) " >&6 |
| 13384 |
else $as_nop |
| 13385 |
ac_func_search_save_LIBS=$LIBS |
| 13386 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13387 |
/* end confdefs.h. */ |
| 13388 |
|
| 13389 |
/* Override any GCC internal prototype to avoid an error. |
| 13390 |
Use char because int might match the return type of a GCC |
| 13391 |
builtin and then its argument prototype would still apply. */ |
| 13392 |
char opendir (); |
| 13393 |
int |
| 13394 |
main (void) |
| 13395 |
{ |
| 13396 |
return opendir (); |
| 13397 |
; |
| 13398 |
return 0; |
| 13399 |
} |
| 13400 |
_ACEOF |
| 13401 |
for ac_lib in '' x |
| 13402 |
do |
| 13403 |
if test -z "$ac_lib"; then |
| 13404 |
ac_res="none required" |
| 13405 |
else |
| 13406 |
ac_res=-l$ac_lib |
| 13407 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 13408 |
fi |
| 13409 |
if ac_fn_c_try_link "$LINENO" |
| 13410 |
then : |
| 13411 |
ac_cv_search_opendir=$ac_res |
| 13412 |
fi |
| 13413 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 13414 |
conftest$ac_exeext |
| 13415 |
if test ${ac_cv_search_opendir+y} |
| 13416 |
then : |
| 13417 |
break |
| 13418 |
fi |
| 13419 |
done |
| 13420 |
if test ${ac_cv_search_opendir+y} |
| 13421 |
then : |
| 13422 |
|
| 13423 |
else $as_nop |
| 13424 |
ac_cv_search_opendir=no |
| 13425 |
fi |
| 13426 |
rm conftest.$ac_ext |
| 13427 |
LIBS=$ac_func_search_save_LIBS |
| 13428 |
fi |
| 13429 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 |
| 13430 |
colorize_result "$ac_cv_search_opendir" ; } |
| 13431 |
ac_res=$ac_cv_search_opendir |
| 13432 |
if test "$ac_res" != no |
| 13433 |
then : |
| 13434 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 13435 |
|
| 13436 |
fi |
| 13437 |
|
| 13438 |
fi |
| 13439 |
|
| 13440 |
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 13441 |
if test "x$ac_cv_type__Bool" = xyes |
| 13442 |
then : |
| 13443 |
|
| 13444 |
printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h |
| 13445 |
|
| 13446 |
|
| 13447 |
fi |
| 13448 |
|
| 13449 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 13450 |
printf %s "checking for stdbool.h that conforms to C99... " >&6; } |
| 13451 |
if test ${ac_cv_header_stdbool_h+y} |
| 13452 |
then : |
| 13453 |
printf %s "(cached) " >&6 |
| 13454 |
else $as_nop |
| 13455 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13456 |
/* end confdefs.h. */ |
| 13457 |
#include <stdbool.h> |
| 13458 |
|
| 13459 |
#ifndef __bool_true_false_are_defined |
| 13460 |
#error "__bool_true_false_are_defined is not defined" |
| 13461 |
#endif |
| 13462 |
char a[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 13463 |
|
| 13464 |
/* Regardless of whether this is C++ or "_Bool" is a |
| 13465 |
valid type name, "true" and "false" should be usable |
| 13466 |
in #if expressions and integer constant expressions, |
| 13467 |
and "bool" should be a valid type name. */ |
| 13468 |
|
| 13469 |
#if !true |
| 13470 |
#error "'true' is not true" |
| 13471 |
#endif |
| 13472 |
#if true != 1 |
| 13473 |
#error "'true' is not equal to 1" |
| 13474 |
#endif |
| 13475 |
char b[true == 1 ? 1 : -1]; |
| 13476 |
char c[true]; |
| 13477 |
|
| 13478 |
#if false |
| 13479 |
#error "'false' is not false" |
| 13480 |
#endif |
| 13481 |
#if false != 0 |
| 13482 |
#error "'false' is not equal to 0" |
| 13483 |
#endif |
| 13484 |
char d[false == 0 ? 1 : -1]; |
| 13485 |
|
| 13486 |
enum { e = false, f = true, g = false * true, h = true * 256 }; |
| 13487 |
|
| 13488 |
char i[(bool) 0.5 == true ? 1 : -1]; |
| 13489 |
char j[(bool) 0.0 == false ? 1 : -1]; |
| 13490 |
char k[sizeof (bool) > 0 ? 1 : -1]; |
| 13491 |
|
| 13492 |
struct sb { bool s: 1; bool t; } s; |
| 13493 |
char l[sizeof s.t > 0 ? 1 : -1]; |
| 13494 |
|
| 13495 |
/* The following fails for |
| 13496 |
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 13497 |
bool m[h]; |
| 13498 |
char n[sizeof m == h * sizeof m[0] ? 1 : -1]; |
| 13499 |
char o[-1 - (bool) 0 < 0 ? 1 : -1]; |
| 13500 |
/* Catch a bug in an HP-UX C compiler. See |
| 13501 |
https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 13502 |
https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 13503 |
*/ |
| 13504 |
bool p = true; |
| 13505 |
bool *pp = &p; |
| 13506 |
|
| 13507 |
/* C 1999 specifies that bool, true, and false are to be |
| 13508 |
macros, but C++ 2011 and later overrule this. */ |
| 13509 |
#if __cplusplus < 201103 |
| 13510 |
#ifndef bool |
| 13511 |
#error "bool is not defined" |
| 13512 |
#endif |
| 13513 |
#ifndef false |
| 13514 |
#error "false is not defined" |
| 13515 |
#endif |
| 13516 |
#ifndef true |
| 13517 |
#error "true is not defined" |
| 13518 |
#endif |
| 13519 |
#endif |
| 13520 |
|
| 13521 |
/* If _Bool is available, repeat with it all the tests |
| 13522 |
above that used bool. */ |
| 13523 |
#ifdef HAVE__BOOL |
| 13524 |
struct sB { _Bool s: 1; _Bool t; } t; |
| 13525 |
|
| 13526 |
char q[(_Bool) 0.5 == true ? 1 : -1]; |
| 13527 |
char r[(_Bool) 0.0 == false ? 1 : -1]; |
| 13528 |
char u[sizeof (_Bool) > 0 ? 1 : -1]; |
| 13529 |
char v[sizeof t.t > 0 ? 1 : -1]; |
| 13530 |
|
| 13531 |
_Bool w[h]; |
| 13532 |
char x[sizeof m == h * sizeof m[0] ? 1 : -1]; |
| 13533 |
char y[-1 - (_Bool) 0 < 0 ? 1 : -1]; |
| 13534 |
_Bool z = true; |
| 13535 |
_Bool *pz = &p; |
| 13536 |
#endif |
| 13537 |
|
| 13538 |
int |
| 13539 |
main (void) |
| 13540 |
{ |
| 13541 |
|
| 13542 |
bool ps = &s; |
| 13543 |
*pp |= p; |
| 13544 |
*pp |= ! p; |
| 13545 |
|
| 13546 |
#ifdef HAVE__BOOL |
| 13547 |
_Bool pt = &t; |
| 13548 |
*pz |= z; |
| 13549 |
*pz |= ! z; |
| 13550 |
#endif |
| 13551 |
|
| 13552 |
/* Refer to every declared value, so they cannot be |
| 13553 |
discarded as unused. */ |
| 13554 |
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k |
| 13555 |
+ !l + !m + !n + !o + !p + !pp + !ps |
| 13556 |
#ifdef HAVE__BOOL |
| 13557 |
+ !q + !r + !u + !v + !w + !x + !y + !z + !pt |
| 13558 |
#endif |
| 13559 |
); |
| 13560 |
|
| 13561 |
; |
| 13562 |
return 0; |
| 13563 |
} |
| 13564 |
_ACEOF |
| 13565 |
if ac_fn_c_try_compile "$LINENO" |
| 13566 |
then : |
| 13567 |
ac_cv_header_stdbool_h=yes |
| 13568 |
else $as_nop |
| 13569 |
ac_cv_header_stdbool_h=no |
| 13570 |
fi |
| 13571 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13572 |
fi |
| 13573 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 13574 |
colorize_result "$ac_cv_header_stdbool_h" ; } |
| 13575 |
|
| 13576 |
if test $ac_cv_header_stdbool_h = yes; then |
| 13577 |
|
| 13578 |
printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h |
| 13579 |
|
| 13580 |
fi |
| 13581 |
|
| 13582 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 13583 |
printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 13584 |
if test ${ac_cv_header_sys_wait_h+y} |
| 13585 |
then : |
| 13586 |
printf %s "(cached) " >&6 |
| 13587 |
else $as_nop |
| 13588 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13589 |
/* end confdefs.h. */ |
| 13590 |
#include <sys/types.h> |
| 13591 |
#include <sys/wait.h> |
| 13592 |
#ifndef WEXITSTATUS |
| 13593 |
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 13594 |
#endif |
| 13595 |
#ifndef WIFEXITED |
| 13596 |
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 13597 |
#endif |
| 13598 |
|
| 13599 |
int |
| 13600 |
main (void) |
| 13601 |
{ |
| 13602 |
int s; |
| 13603 |
wait (&s); |
| 13604 |
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 13605 |
; |
| 13606 |
return 0; |
| 13607 |
} |
| 13608 |
_ACEOF |
| 13609 |
if ac_fn_c_try_compile "$LINENO" |
| 13610 |
then : |
| 13611 |
ac_cv_header_sys_wait_h=yes |
| 13612 |
else $as_nop |
| 13613 |
ac_cv_header_sys_wait_h=no |
| 13614 |
fi |
| 13615 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13616 |
fi |
| 13617 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 13618 |
colorize_result "$ac_cv_header_sys_wait_h" ; } |
| 13619 |
if test $ac_cv_header_sys_wait_h = yes; then |
| 13620 |
|
| 13621 |
printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 13622 |
|
| 13623 |
fi |
| 13624 |
|
| 13625 |
|
| 13626 |
ac_fn_c_check_header_compile "$LINENO" "afunix.h" "ac_cv_header_afunix_h" "#ifdef _WIN32 |
| 13627 |
# include <winsock2.h> |
| 13628 |
#endif |
| 13629 |
|
| 13630 |
" |
| 13631 |
if test "x$ac_cv_header_afunix_h" = xyes |
| 13632 |
then : |
| 13633 |
printf "%s\n" "#define HAVE_AFUNIX_H 1" >>confdefs.h |
| 13634 |
|
| 13635 |
fi |
| 13636 |
|
| 13637 |
ac_fn_c_check_header_compile "$LINENO" "atomic.h" "ac_cv_header_atomic_h" "$ac_includes_default" |
| 13638 |
if test "x$ac_cv_header_atomic_h" = xyes |
| 13639 |
then : |
| 13640 |
printf "%s\n" "#define HAVE_ATOMIC_H 1" >>confdefs.h |
| 13641 |
|
| 13642 |
fi |
| 13643 |
|
| 13644 |
ac_fn_c_check_header_compile "$LINENO" "copyfile.h" "ac_cv_header_copyfile_h" "$ac_includes_default" |
| 13645 |
if test "x$ac_cv_header_copyfile_h" = xyes |
| 13646 |
then : |
| 13647 |
printf "%s\n" "#define HAVE_COPYFILE_H 1" >>confdefs.h |
| 13648 |
|
| 13649 |
fi |
| 13650 |
|
| 13651 |
ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" |
| 13652 |
if test "x$ac_cv_header_direct_h" = xyes |
| 13653 |
then : |
| 13654 |
printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h |
| 13655 |
|
| 13656 |
fi |
| 13657 |
|
| 13658 |
ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" |
| 13659 |
if test "x$ac_cv_header_grp_h" = xyes |
| 13660 |
then : |
| 13661 |
printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h |
| 13662 |
|
| 13663 |
fi |
| 13664 |
|
| 13665 |
ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" |
| 13666 |
if test "x$ac_cv_header_fcntl_h" = xyes |
| 13667 |
then : |
| 13668 |
printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h |
| 13669 |
|
| 13670 |
fi |
| 13671 |
|
| 13672 |
ac_fn_c_check_header_compile "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default" |
| 13673 |
if test "x$ac_cv_header_float_h" = xyes |
| 13674 |
then : |
| 13675 |
printf "%s\n" "#define HAVE_FLOAT_H 1" >>confdefs.h |
| 13676 |
|
| 13677 |
fi |
| 13678 |
|
| 13679 |
ac_fn_c_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default" |
| 13680 |
if test "x$ac_cv_header_ieeefp_h" = xyes |
| 13681 |
then : |
| 13682 |
printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h |
| 13683 |
|
| 13684 |
fi |
| 13685 |
|
| 13686 |
ac_fn_c_check_header_compile "$LINENO" "intrinsics.h" "ac_cv_header_intrinsics_h" "$ac_includes_default" |
| 13687 |
if test "x$ac_cv_header_intrinsics_h" = xyes |
| 13688 |
then : |
| 13689 |
printf "%s\n" "#define HAVE_INTRINSICS_H 1" >>confdefs.h |
| 13690 |
|
| 13691 |
fi |
| 13692 |
|
| 13693 |
ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" |
| 13694 |
if test "x$ac_cv_header_langinfo_h" = xyes |
| 13695 |
then : |
| 13696 |
printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h |
| 13697 |
|
| 13698 |
fi |
| 13699 |
|
| 13700 |
ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" |
| 13701 |
if test "x$ac_cv_header_limits_h" = xyes |
| 13702 |
then : |
| 13703 |
printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h |
| 13704 |
|
| 13705 |
fi |
| 13706 |
|
| 13707 |
ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
| 13708 |
if test "x$ac_cv_header_locale_h" = xyes |
| 13709 |
then : |
| 13710 |
printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h |
| 13711 |
|
| 13712 |
fi |
| 13713 |
|
| 13714 |
ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" |
| 13715 |
if test "x$ac_cv_header_malloc_h" = xyes |
| 13716 |
then : |
| 13717 |
printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h |
| 13718 |
|
| 13719 |
fi |
| 13720 |
|
| 13721 |
ac_fn_c_check_header_compile "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" |
| 13722 |
if test "x$ac_cv_header_malloc_malloc_h" = xyes |
| 13723 |
then : |
| 13724 |
printf "%s\n" "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h |
| 13725 |
|
| 13726 |
fi |
| 13727 |
|
| 13728 |
ac_fn_c_check_header_compile "$LINENO" "malloc_np.h" "ac_cv_header_malloc_np_h" "$ac_includes_default" |
| 13729 |
if test "x$ac_cv_header_malloc_np_h" = xyes |
| 13730 |
then : |
| 13731 |
printf "%s\n" "#define HAVE_MALLOC_NP_H 1" >>confdefs.h |
| 13732 |
|
| 13733 |
fi |
| 13734 |
|
| 13735 |
ac_fn_c_check_header_compile "$LINENO" "net/socket.h" "ac_cv_header_net_socket_h" "$ac_includes_default" |
| 13736 |
if test "x$ac_cv_header_net_socket_h" = xyes |
| 13737 |
then : |
| 13738 |
printf "%s\n" "#define HAVE_NET_SOCKET_H 1" >>confdefs.h |
| 13739 |
|
| 13740 |
fi |
| 13741 |
|
| 13742 |
ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" |
| 13743 |
if test "x$ac_cv_header_process_h" = xyes |
| 13744 |
then : |
| 13745 |
printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h |
| 13746 |
|
| 13747 |
fi |
| 13748 |
|
| 13749 |
ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default" |
| 13750 |
if test "x$ac_cv_header_pwd_h" = xyes |
| 13751 |
then : |
| 13752 |
printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h |
| 13753 |
|
| 13754 |
fi |
| 13755 |
|
| 13756 |
ac_fn_c_check_header_compile "$LINENO" "sanitizer/asan_interface.h" "ac_cv_header_sanitizer_asan_interface_h" "$ac_includes_default" |
| 13757 |
if test "x$ac_cv_header_sanitizer_asan_interface_h" = xyes |
| 13758 |
then : |
| 13759 |
printf "%s\n" "#define HAVE_SANITIZER_ASAN_INTERFACE_H 1" >>confdefs.h |
| 13760 |
|
| 13761 |
fi |
| 13762 |
|
| 13763 |
ac_fn_c_check_header_compile "$LINENO" "sanitizer/msan_interface.h" "ac_cv_header_sanitizer_msan_interface_h" "$ac_includes_default" |
| 13764 |
if test "x$ac_cv_header_sanitizer_msan_interface_h" = xyes |
| 13765 |
then : |
| 13766 |
printf "%s\n" "#define HAVE_SANITIZER_MSAN_INTERFACE_H 1" >>confdefs.h |
| 13767 |
|
| 13768 |
fi |
| 13769 |
|
| 13770 |
ac_fn_c_check_header_compile "$LINENO" "setjmpex.h" "ac_cv_header_setjmpex_h" "$ac_includes_default" |
| 13771 |
if test "x$ac_cv_header_setjmpex_h" = xyes |
| 13772 |
then : |
| 13773 |
printf "%s\n" "#define HAVE_SETJMPEX_H 1" >>confdefs.h |
| 13774 |
|
| 13775 |
fi |
| 13776 |
|
| 13777 |
ac_fn_c_check_header_compile "$LINENO" "stdalign.h" "ac_cv_header_stdalign_h" "$ac_includes_default" |
| 13778 |
if test "x$ac_cv_header_stdalign_h" = xyes |
| 13779 |
then : |
| 13780 |
printf "%s\n" "#define HAVE_STDALIGN_H 1" >>confdefs.h |
| 13781 |
|
| 13782 |
fi |
| 13783 |
|
| 13784 |
ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" |
| 13785 |
if test "x$ac_cv_header_stdio_h" = xyes |
| 13786 |
then : |
| 13787 |
printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h |
| 13788 |
|
| 13789 |
fi |
| 13790 |
|
| 13791 |
ac_fn_c_check_header_compile "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default" |
| 13792 |
if test "x$ac_cv_header_sys_attr_h" = xyes |
| 13793 |
then : |
| 13794 |
printf "%s\n" "#define HAVE_SYS_ATTR_H 1" >>confdefs.h |
| 13795 |
|
| 13796 |
fi |
| 13797 |
|
| 13798 |
ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" |
| 13799 |
if test "x$ac_cv_header_sys_eventfd_h" = xyes |
| 13800 |
then : |
| 13801 |
printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h |
| 13802 |
|
| 13803 |
fi |
| 13804 |
|
| 13805 |
ac_fn_c_check_header_compile "$LINENO" "sys/fcntl.h" "ac_cv_header_sys_fcntl_h" "$ac_includes_default" |
| 13806 |
if test "x$ac_cv_header_sys_fcntl_h" = xyes |
| 13807 |
then : |
| 13808 |
printf "%s\n" "#define HAVE_SYS_FCNTL_H 1" >>confdefs.h |
| 13809 |
|
| 13810 |
fi |
| 13811 |
|
| 13812 |
ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" |
| 13813 |
if test "x$ac_cv_header_sys_file_h" = xyes |
| 13814 |
then : |
| 13815 |
printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h |
| 13816 |
|
| 13817 |
fi |
| 13818 |
|
| 13819 |
ac_fn_c_check_header_compile "$LINENO" "sys/id.h" "ac_cv_header_sys_id_h" "$ac_includes_default" |
| 13820 |
if test "x$ac_cv_header_sys_id_h" = xyes |
| 13821 |
then : |
| 13822 |
printf "%s\n" "#define HAVE_SYS_ID_H 1" >>confdefs.h |
| 13823 |
|
| 13824 |
fi |
| 13825 |
|
| 13826 |
ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" |
| 13827 |
if test "x$ac_cv_header_sys_ioctl_h" = xyes |
| 13828 |
then : |
| 13829 |
printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h |
| 13830 |
|
| 13831 |
fi |
| 13832 |
|
| 13833 |
ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" |
| 13834 |
if test "x$ac_cv_header_sys_mkdev_h" = xyes |
| 13835 |
then : |
| 13836 |
printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h |
| 13837 |
|
| 13838 |
fi |
| 13839 |
|
| 13840 |
ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" |
| 13841 |
if test "x$ac_cv_header_sys_param_h" = xyes |
| 13842 |
then : |
| 13843 |
printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h |
| 13844 |
|
| 13845 |
fi |
| 13846 |
|
| 13847 |
ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default" |
| 13848 |
if test "x$ac_cv_header_sys_prctl_h" = xyes |
| 13849 |
then : |
| 13850 |
printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h |
| 13851 |
|
| 13852 |
fi |
| 13853 |
|
| 13854 |
ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" |
| 13855 |
if test "x$ac_cv_header_sys_random_h" = xyes |
| 13856 |
then : |
| 13857 |
printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h |
| 13858 |
|
| 13859 |
fi |
| 13860 |
|
| 13861 |
ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" |
| 13862 |
if test "x$ac_cv_header_sys_resource_h" = xyes |
| 13863 |
then : |
| 13864 |
printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h |
| 13865 |
|
| 13866 |
fi |
| 13867 |
|
| 13868 |
ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" |
| 13869 |
if test "x$ac_cv_header_sys_select_h" = xyes |
| 13870 |
then : |
| 13871 |
printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h |
| 13872 |
|
| 13873 |
fi |
| 13874 |
|
| 13875 |
ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" |
| 13876 |
if test "x$ac_cv_header_sys_sendfile_h" = xyes |
| 13877 |
then : |
| 13878 |
printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h |
| 13879 |
|
| 13880 |
fi |
| 13881 |
|
| 13882 |
ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" |
| 13883 |
if test "x$ac_cv_header_sys_socket_h" = xyes |
| 13884 |
then : |
| 13885 |
printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h |
| 13886 |
|
| 13887 |
fi |
| 13888 |
|
| 13889 |
ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" |
| 13890 |
if test "x$ac_cv_header_sys_syscall_h" = xyes |
| 13891 |
then : |
| 13892 |
printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h |
| 13893 |
|
| 13894 |
fi |
| 13895 |
|
| 13896 |
ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" |
| 13897 |
if test "x$ac_cv_header_sys_sysmacros_h" = xyes |
| 13898 |
then : |
| 13899 |
printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h |
| 13900 |
|
| 13901 |
fi |
| 13902 |
|
| 13903 |
ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" |
| 13904 |
if test "x$ac_cv_header_sys_time_h" = xyes |
| 13905 |
then : |
| 13906 |
printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h |
| 13907 |
|
| 13908 |
fi |
| 13909 |
|
| 13910 |
ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" |
| 13911 |
if test "x$ac_cv_header_sys_times_h" = xyes |
| 13912 |
then : |
| 13913 |
printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h |
| 13914 |
|
| 13915 |
fi |
| 13916 |
|
| 13917 |
ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" |
| 13918 |
if test "x$ac_cv_header_sys_uio_h" = xyes |
| 13919 |
then : |
| 13920 |
printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h |
| 13921 |
|
| 13922 |
fi |
| 13923 |
|
| 13924 |
ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "$ac_includes_default" |
| 13925 |
if test "x$ac_cv_header_sys_utime_h" = xyes |
| 13926 |
then : |
| 13927 |
printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h |
| 13928 |
|
| 13929 |
fi |
| 13930 |
|
| 13931 |
ac_fn_c_check_header_compile "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default" |
| 13932 |
if test "x$ac_cv_header_syscall_h" = xyes |
| 13933 |
then : |
| 13934 |
printf "%s\n" "#define HAVE_SYSCALL_H 1" >>confdefs.h |
| 13935 |
|
| 13936 |
fi |
| 13937 |
|
| 13938 |
ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" |
| 13939 |
if test "x$ac_cv_header_time_h" = xyes |
| 13940 |
then : |
| 13941 |
printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h |
| 13942 |
|
| 13943 |
fi |
| 13944 |
|
| 13945 |
ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default" |
| 13946 |
if test "x$ac_cv_header_ucontext_h" = xyes |
| 13947 |
then : |
| 13948 |
printf "%s\n" "#define HAVE_UCONTEXT_H 1" >>confdefs.h |
| 13949 |
|
| 13950 |
fi |
| 13951 |
|
| 13952 |
ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" |
| 13953 |
if test "x$ac_cv_header_utime_h" = xyes |
| 13954 |
then : |
| 13955 |
printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h |
| 13956 |
|
| 13957 |
fi |
| 13958 |
|
| 13959 |
ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" |
| 13960 |
if test "x$ac_cv_header_sys_epoll_h" = xyes |
| 13961 |
then : |
| 13962 |
printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h |
| 13963 |
|
| 13964 |
fi |
| 13965 |
|
| 13966 |
ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" |
| 13967 |
if test "x$ac_cv_header_sys_event_h" = xyes |
| 13968 |
then : |
| 13969 |
printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h |
| 13970 |
|
| 13971 |
fi |
| 13972 |
|
| 13973 |
ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default" |
| 13974 |
if test "x$ac_cv_header_stdatomic_h" = xyes |
| 13975 |
then : |
| 13976 |
printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h |
| 13977 |
|
| 13978 |
fi |
| 13979 |
|
| 13980 |
|
| 13981 |
case "$target_cpu" in #( |
| 13982 |
x64|x86_64|i3-686*) : |
| 13983 |
|
| 13984 |
ac_fn_c_check_header_compile "$LINENO" "x86intrin.h" "ac_cv_header_x86intrin_h" "$ac_includes_default" |
| 13985 |
if test "x$ac_cv_header_x86intrin_h" = xyes |
| 13986 |
then : |
| 13987 |
printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h |
| 13988 |
|
| 13989 |
fi |
| 13990 |
|
| 13991 |
;; #( |
| 13992 |
*) : |
| 13993 |
;; |
| 13994 |
esac |
| 13995 |
case ",$target_archs," in #( |
| 13996 |
*,x86_64,*) : |
| 13997 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86intrin.h when defined(__x86_64__)" >&5 |
| 13998 |
printf %s "checking for x86intrin.h when defined(__x86_64__)... " >&6; } |
| 13999 |
if test ${rb_cv_header_x86intrin_h_on_x86_64+y} |
| 14000 |
then : |
| 14001 |
printf %s "(cached) " >&6 |
| 14002 |
else $as_nop |
| 14003 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14004 |
/* end confdefs.h. */ |
| 14005 |
$ac_includes_default |
| 14006 |
#if defined(__x86_64__) |
| 14007 |
#include <x86intrin.h> |
| 14008 |
#endif |
| 14009 |
int |
| 14010 |
main (void) |
| 14011 |
{ |
| 14012 |
|
| 14013 |
; |
| 14014 |
return 0; |
| 14015 |
} |
| 14016 |
_ACEOF |
| 14017 |
if ac_fn_c_try_compile "$LINENO" |
| 14018 |
then : |
| 14019 |
rb_cv_header_x86intrin_h_on_x86_64=yes |
| 14020 |
else $as_nop |
| 14021 |
rb_cv_header_x86intrin_h_on_x86_64=no |
| 14022 |
fi |
| 14023 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14024 |
fi |
| 14025 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_header_x86intrin_h_on_x86_64" >&5 |
| 14026 |
colorize_result "$rb_cv_header_x86intrin_h_on_x86_64" ; } |
| 14027 |
if test "x$rb_cv_header_x86intrin_h_on_x86_64" = xyes |
| 14028 |
then : |
| 14029 |
printf "#if %s\n" "defined(__x86_64__)" >>confdefs.h |
| 14030 |
printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h |
| 14031 |
printf "#endif\n" >>confdefs.h |
| 14032 |
fi |
| 14033 |
|
| 14034 |
;; #( |
| 14035 |
*) : |
| 14036 |
;; |
| 14037 |
esac |
| 14038 |
case ",$target_archs," in #( |
| 14039 |
*,i386,*) : |
| 14040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x86intrin.h when defined(__i386__)" >&5 |
| 14041 |
printf %s "checking for x86intrin.h when defined(__i386__)... " >&6; } |
| 14042 |
if test ${rb_cv_header_x86intrin_h_on_i386+y} |
| 14043 |
then : |
| 14044 |
printf %s "(cached) " >&6 |
| 14045 |
else $as_nop |
| 14046 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14047 |
/* end confdefs.h. */ |
| 14048 |
$ac_includes_default |
| 14049 |
#if defined(__i386__) |
| 14050 |
#include <x86intrin.h> |
| 14051 |
#endif |
| 14052 |
int |
| 14053 |
main (void) |
| 14054 |
{ |
| 14055 |
|
| 14056 |
; |
| 14057 |
return 0; |
| 14058 |
} |
| 14059 |
_ACEOF |
| 14060 |
if ac_fn_c_try_compile "$LINENO" |
| 14061 |
then : |
| 14062 |
rb_cv_header_x86intrin_h_on_i386=yes |
| 14063 |
else $as_nop |
| 14064 |
rb_cv_header_x86intrin_h_on_i386=no |
| 14065 |
fi |
| 14066 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14067 |
fi |
| 14068 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_header_x86intrin_h_on_i386" >&5 |
| 14069 |
colorize_result "$rb_cv_header_x86intrin_h_on_i386" ; } |
| 14070 |
if test "x$rb_cv_header_x86intrin_h_on_i386" = xyes |
| 14071 |
then : |
| 14072 |
printf "#if %s\n" "defined(__i386__)" >>confdefs.h |
| 14073 |
printf "%s\n" "#define HAVE_X86INTRIN_H 1" >>confdefs.h |
| 14074 |
printf "#endif\n" >>confdefs.h |
| 14075 |
fi |
| 14076 |
|
| 14077 |
;; #( |
| 14078 |
*) : |
| 14079 |
;; |
| 14080 |
esac |
| 14081 |
|
| 14082 |
|
| 14083 |
|
| 14084 |
if test "x$with_gmp" != xno |
| 14085 |
then : |
| 14086 |
# RUBY_CHECK_HEADER([gmp.h]) |
| 14087 |
save_CPPFLAGS="$CPPFLAGS" |
| 14088 |
CPPFLAGS="$CPPFLAGS $INCFLAGS" |
| 14089 |
ac_fn_c_check_header_compile "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default" |
| 14090 |
if test "x$ac_cv_header_gmp_h" = xyes |
| 14091 |
then : |
| 14092 |
printf "%s\n" "#define HAVE_GMP_H 1" >>confdefs.h |
| 14093 |
|
| 14094 |
fi |
| 14095 |
|
| 14096 |
CPPFLAGS="$save_CPPFLAGS" |
| 14097 |
unset save_CPPFLAGS |
| 14098 |
if test "x$ac_cv_header_gmp_h" != xno |
| 14099 |
then : |
| 14100 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __gmpz_init" >&5 |
| 14101 |
printf %s "checking for library containing __gmpz_init... " >&6; } |
| 14102 |
if test ${ac_cv_search___gmpz_init+y} |
| 14103 |
then : |
| 14104 |
printf %s "(cached) " >&6 |
| 14105 |
else $as_nop |
| 14106 |
ac_func_search_save_LIBS=$LIBS |
| 14107 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14108 |
/* end confdefs.h. */ |
| 14109 |
|
| 14110 |
/* Override any GCC internal prototype to avoid an error. |
| 14111 |
Use char because int might match the return type of a GCC |
| 14112 |
builtin and then its argument prototype would still apply. */ |
| 14113 |
char __gmpz_init (); |
| 14114 |
int |
| 14115 |
main (void) |
| 14116 |
{ |
| 14117 |
return __gmpz_init (); |
| 14118 |
; |
| 14119 |
return 0; |
| 14120 |
} |
| 14121 |
_ACEOF |
| 14122 |
for ac_lib in '' gmp |
| 14123 |
do |
| 14124 |
if test -z "$ac_lib"; then |
| 14125 |
ac_res="none required" |
| 14126 |
else |
| 14127 |
ac_res=-l$ac_lib |
| 14128 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 14129 |
fi |
| 14130 |
if ac_fn_c_try_link "$LINENO" |
| 14131 |
then : |
| 14132 |
ac_cv_search___gmpz_init=$ac_res |
| 14133 |
fi |
| 14134 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14135 |
conftest$ac_exeext |
| 14136 |
if test ${ac_cv_search___gmpz_init+y} |
| 14137 |
then : |
| 14138 |
break |
| 14139 |
fi |
| 14140 |
done |
| 14141 |
if test ${ac_cv_search___gmpz_init+y} |
| 14142 |
then : |
| 14143 |
|
| 14144 |
else $as_nop |
| 14145 |
ac_cv_search___gmpz_init=no |
| 14146 |
fi |
| 14147 |
rm conftest.$ac_ext |
| 14148 |
LIBS=$ac_func_search_save_LIBS |
| 14149 |
fi |
| 14150 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___gmpz_init" >&5 |
| 14151 |
colorize_result "$ac_cv_search___gmpz_init" ; } |
| 14152 |
ac_res=$ac_cv_search___gmpz_init |
| 14153 |
if test "$ac_res" != no |
| 14154 |
then : |
| 14155 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 14156 |
printf "%s\n" "#define HAVE_LIBGMP 1" >>confdefs.h |
| 14157 |
|
| 14158 |
fi |
| 14159 |
|
| 14160 |
fi |
| 14161 |
fi |
| 14162 |
|
| 14163 |
|
| 14164 |
# Check whether --with-jemalloc was given. |
| 14165 |
if test ${with_jemalloc+y} |
| 14166 |
then : |
| 14167 |
withval=$with_jemalloc; with_jemalloc=$withval |
| 14168 |
else $as_nop |
| 14169 |
with_jemalloc=no |
| 14170 |
fi |
| 14171 |
|
| 14172 |
if test "x$with_jemalloc" != xno |
| 14173 |
then : |
| 14174 |
|
| 14175 |
# find jemalloc header first |
| 14176 |
save_CPPFLAGS="${CPPFLAGS}" |
| 14177 |
CPPFLAGS="${INCFLAGS} ${CPPFLAGS}" |
| 14178 |
malloc_header= |
| 14179 |
ac_fn_c_check_header_compile "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default" |
| 14180 |
if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes |
| 14181 |
then : |
| 14182 |
malloc_header=jemalloc/jemalloc.h |
| 14183 |
else $as_nop |
| 14184 |
|
| 14185 |
ac_fn_c_check_header_compile "$LINENO" "jemalloc.h" "ac_cv_header_jemalloc_h" "$ac_includes_default" |
| 14186 |
if test "x$ac_cv_header_jemalloc_h" = xyes |
| 14187 |
then : |
| 14188 |
malloc_header=jemalloc.h |
| 14189 |
fi |
| 14190 |
|
| 14191 |
|
| 14192 |
fi |
| 14193 |
|
| 14194 |
if test "$malloc_header" != "" |
| 14195 |
then : |
| 14196 |
|
| 14197 |
printf "%s\n" "#define RUBY_ALTERNATIVE_MALLOC_HEADER <$malloc_header>" >>confdefs.h |
| 14198 |
|
| 14199 |
|
| 14200 |
fi |
| 14201 |
save_LIBS="$LIBS" |
| 14202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for jemalloc library" >&5 |
| 14203 |
printf %s "checking for jemalloc library... " >&6; } |
| 14204 |
if test ${rb_cv_jemalloc_library+y} |
| 14205 |
then : |
| 14206 |
printf %s "(cached) " >&6 |
| 14207 |
else $as_nop |
| 14208 |
|
| 14209 |
rb_cv_jemalloc_library=no |
| 14210 |
# try [with mangle, without mangle] x [no more additional |
| 14211 |
# libraries, adding jemalloc] combination, using the jemalloc |
| 14212 |
# header found above. |
| 14213 |
for mangle in '' mangle; do |
| 14214 |
for lib in '' -ljemalloc; do |
| 14215 |
LIBS="${lib:+$lib }$LIBS" |
| 14216 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14217 |
/* end confdefs.h. */ |
| 14218 |
${mangle:+#define JEMALLOC_MANGLE 1} |
| 14219 |
#include <stdio.h> |
| 14220 |
#ifdef RUBY_ALTERNATIVE_MALLOC_HEADER |
| 14221 |
#include RUBY_ALTERNATIVE_MALLOC_HEADER |
| 14222 |
#else |
| 14223 |
extern const char *malloc_conf; |
| 14224 |
#endif |
| 14225 |
int |
| 14226 |
main (void) |
| 14227 |
{ |
| 14228 |
/* access at runtime not to be optimized away */ |
| 14229 |
if (malloc_conf) printf("malloc_conf=%s\n", malloc_conf); |
| 14230 |
; |
| 14231 |
return 0; |
| 14232 |
} |
| 14233 |
_ACEOF |
| 14234 |
if ac_fn_c_try_link "$LINENO" |
| 14235 |
then : |
| 14236 |
rb_cv_jemalloc_library="${lib:-none required}${mangle:+ with mangle}" |
| 14237 |
fi |
| 14238 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 14239 |
conftest$ac_exeext conftest.$ac_ext |
| 14240 |
LIBS="$save_LIBS" |
| 14241 |
test "${rb_cv_jemalloc_library}" = no || break 2 |
| 14242 |
done |
| 14243 |
done |
| 14244 |
|
| 14245 |
fi |
| 14246 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_jemalloc_library" >&5 |
| 14247 |
colorize_result "$rb_cv_jemalloc_library" ; } |
| 14248 |
CPPFLAGS="${save_CPPFLAGS}" |
| 14249 |
unset save_CPPFLAGS |
| 14250 |
with_jemalloc=${rb_cv_jemalloc_library} |
| 14251 |
case "$with_jemalloc" in #( |
| 14252 |
no) : |
| 14253 |
as_fn_error $? "jemalloc requested but not found" "$LINENO" 5 ;; #( |
| 14254 |
-l*) : |
| 14255 |
|
| 14256 |
set dummy $with_jemalloc |
| 14257 |
LIBS="$2 $LIBS" |
| 14258 |
DLDLIBS="$2${DLDLIBS:+ $DLDLIBS}" # probably needed also in extension libraries |
| 14259 |
;; #( |
| 14260 |
*) : |
| 14261 |
;; |
| 14262 |
esac |
| 14263 |
case "$with_jemalloc" in #( |
| 14264 |
*" with mangle") : |
| 14265 |
|
| 14266 |
printf "%s\n" "#define JEMALLOC_MANGLE 1" >>confdefs.h |
| 14267 |
|
| 14268 |
;; #( |
| 14269 |
*) : |
| 14270 |
;; |
| 14271 |
esac |
| 14272 |
printf "%s\n" "#define HAVE_MALLOC_CONF 1" >>confdefs.h |
| 14273 |
|
| 14274 |
ac_cv_func_malloc_usable_size=yes |
| 14275 |
|
| 14276 |
fi # with_jemalloc |
| 14277 |
|
| 14278 |
mv confdefs.h confdefs1.h |
| 14279 |
: > confdefs.h |
| 14280 |
# Check whether --enable-largefile was given. |
| 14281 |
if test ${enable_largefile+y} |
| 14282 |
then : |
| 14283 |
enableval=$enable_largefile; |
| 14284 |
fi |
| 14285 |
|
| 14286 |
if test "$enable_largefile" != no; then |
| 14287 |
|
| 14288 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 14289 |
printf %s "checking for special C compiler options needed for large files... " >&6; } |
| 14290 |
if test ${ac_cv_sys_largefile_CC+y} |
| 14291 |
then : |
| 14292 |
printf %s "(cached) " >&6 |
| 14293 |
else $as_nop |
| 14294 |
ac_cv_sys_largefile_CC=no |
| 14295 |
if test "$GCC" != yes; then |
| 14296 |
ac_save_CC=$CC |
| 14297 |
while :; do |
| 14298 |
# IRIX 6.2 and later do not support large files by default, |
| 14299 |
# so use the C compiler's -n32 option if that helps. |
| 14300 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14301 |
/* end confdefs.h. */ |
| 14302 |
#include <sys/types.h> |
| 14303 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 14304 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14305 |
since some C++ compilers masquerading as C compilers |
| 14306 |
incorrectly reject 9223372036854775807. */ |
| 14307 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 14308 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14309 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 14310 |
? 1 : -1]; |
| 14311 |
int |
| 14312 |
main (void) |
| 14313 |
{ |
| 14314 |
|
| 14315 |
; |
| 14316 |
return 0; |
| 14317 |
} |
| 14318 |
_ACEOF |
| 14319 |
if ac_fn_c_try_compile "$LINENO" |
| 14320 |
then : |
| 14321 |
break |
| 14322 |
fi |
| 14323 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 14324 |
CC="$CC -n32" |
| 14325 |
if ac_fn_c_try_compile "$LINENO" |
| 14326 |
then : |
| 14327 |
ac_cv_sys_largefile_CC=' -n32'; break |
| 14328 |
fi |
| 14329 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 14330 |
break |
| 14331 |
done |
| 14332 |
CC=$ac_save_CC |
| 14333 |
rm -f conftest.$ac_ext |
| 14334 |
fi |
| 14335 |
fi |
| 14336 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 14337 |
colorize_result "$ac_cv_sys_largefile_CC" ; } |
| 14338 |
if test "$ac_cv_sys_largefile_CC" != no; then |
| 14339 |
CC=$CC$ac_cv_sys_largefile_CC |
| 14340 |
fi |
| 14341 |
|
| 14342 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 14343 |
printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 14344 |
if test ${ac_cv_sys_file_offset_bits+y} |
| 14345 |
then : |
| 14346 |
printf %s "(cached) " >&6 |
| 14347 |
else $as_nop |
| 14348 |
while :; do |
| 14349 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14350 |
/* end confdefs.h. */ |
| 14351 |
#include <sys/types.h> |
| 14352 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 14353 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14354 |
since some C++ compilers masquerading as C compilers |
| 14355 |
incorrectly reject 9223372036854775807. */ |
| 14356 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 14357 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14358 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 14359 |
? 1 : -1]; |
| 14360 |
int |
| 14361 |
main (void) |
| 14362 |
{ |
| 14363 |
|
| 14364 |
; |
| 14365 |
return 0; |
| 14366 |
} |
| 14367 |
_ACEOF |
| 14368 |
if ac_fn_c_try_compile "$LINENO" |
| 14369 |
then : |
| 14370 |
ac_cv_sys_file_offset_bits=no; break |
| 14371 |
fi |
| 14372 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14373 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14374 |
/* end confdefs.h. */ |
| 14375 |
#define _FILE_OFFSET_BITS 64 |
| 14376 |
#include <sys/types.h> |
| 14377 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 14378 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14379 |
since some C++ compilers masquerading as C compilers |
| 14380 |
incorrectly reject 9223372036854775807. */ |
| 14381 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 14382 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14383 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 14384 |
? 1 : -1]; |
| 14385 |
int |
| 14386 |
main (void) |
| 14387 |
{ |
| 14388 |
|
| 14389 |
; |
| 14390 |
return 0; |
| 14391 |
} |
| 14392 |
_ACEOF |
| 14393 |
if ac_fn_c_try_compile "$LINENO" |
| 14394 |
then : |
| 14395 |
ac_cv_sys_file_offset_bits=64; break |
| 14396 |
fi |
| 14397 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14398 |
ac_cv_sys_file_offset_bits=unknown |
| 14399 |
break |
| 14400 |
done |
| 14401 |
fi |
| 14402 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 14403 |
colorize_result "$ac_cv_sys_file_offset_bits" ; } |
| 14404 |
case $ac_cv_sys_file_offset_bits in #( |
| 14405 |
no | unknown) ;; |
| 14406 |
*) |
| 14407 |
printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h |
| 14408 |
;; |
| 14409 |
esac |
| 14410 |
rm -rf conftest* |
| 14411 |
if test $ac_cv_sys_file_offset_bits = unknown; then |
| 14412 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 14413 |
printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 14414 |
if test ${ac_cv_sys_large_files+y} |
| 14415 |
then : |
| 14416 |
printf %s "(cached) " >&6 |
| 14417 |
else $as_nop |
| 14418 |
while :; do |
| 14419 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14420 |
/* end confdefs.h. */ |
| 14421 |
#include <sys/types.h> |
| 14422 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 14423 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14424 |
since some C++ compilers masquerading as C compilers |
| 14425 |
incorrectly reject 9223372036854775807. */ |
| 14426 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 14427 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14428 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 14429 |
? 1 : -1]; |
| 14430 |
int |
| 14431 |
main (void) |
| 14432 |
{ |
| 14433 |
|
| 14434 |
; |
| 14435 |
return 0; |
| 14436 |
} |
| 14437 |
_ACEOF |
| 14438 |
if ac_fn_c_try_compile "$LINENO" |
| 14439 |
then : |
| 14440 |
ac_cv_sys_large_files=no; break |
| 14441 |
fi |
| 14442 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14443 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14444 |
/* end confdefs.h. */ |
| 14445 |
#define _LARGE_FILES 1 |
| 14446 |
#include <sys/types.h> |
| 14447 |
/* Check that off_t can represent 2**63 - 1 correctly. |
| 14448 |
We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 14449 |
since some C++ compilers masquerading as C compilers |
| 14450 |
incorrectly reject 9223372036854775807. */ |
| 14451 |
#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) |
| 14452 |
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 14453 |
&& LARGE_OFF_T % 2147483647 == 1) |
| 14454 |
? 1 : -1]; |
| 14455 |
int |
| 14456 |
main (void) |
| 14457 |
{ |
| 14458 |
|
| 14459 |
; |
| 14460 |
return 0; |
| 14461 |
} |
| 14462 |
_ACEOF |
| 14463 |
if ac_fn_c_try_compile "$LINENO" |
| 14464 |
then : |
| 14465 |
ac_cv_sys_large_files=1; break |
| 14466 |
fi |
| 14467 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14468 |
ac_cv_sys_large_files=unknown |
| 14469 |
break |
| 14470 |
done |
| 14471 |
fi |
| 14472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 14473 |
colorize_result "$ac_cv_sys_large_files" ; } |
| 14474 |
case $ac_cv_sys_large_files in #( |
| 14475 |
no | unknown) ;; |
| 14476 |
*) |
| 14477 |
printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h |
| 14478 |
;; |
| 14479 |
esac |
| 14480 |
rm -rf conftest* |
| 14481 |
fi |
| 14482 |
fi |
| 14483 |
|
| 14484 |
# On 32-bit Solaris, it is safe to define _LARGEFILE_SOURCE |
| 14485 |
# which is not added by AC_SYS_LARGEFILE. |
| 14486 |
if test x"$enable_largefile" != xno |
| 14487 |
then : |
| 14488 |
|
| 14489 |
case "$target_os" in #( |
| 14490 |
solaris*) : |
| 14491 |
|
| 14492 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking wheather _LARGEFILE_SOURCE should be defined" >&5 |
| 14493 |
printf %s "checking wheather _LARGEFILE_SOURCE should be defined... " >&6; } |
| 14494 |
case "${ac_cv_sys_file_offset_bits}:${ac_cv_sys_large_files}" in #( |
| 14495 |
"64:"|"64:no"|"64:unknown") : |
| 14496 |
|
| 14497 |
# insert _LARGEFILE_SOURCE before _FILE_OFFSET_BITS line |
| 14498 |
# that is the same order as "getconf LFS_CFLAGS" output |
| 14499 |
mv confdefs.h largefile0.h |
| 14500 |
: > confdefs.h |
| 14501 |
printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h |
| 14502 |
|
| 14503 |
cat largefile0.h >> confdefs.h |
| 14504 |
rm largefile0.h |
| 14505 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14506 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 14507 |
;; #( |
| 14508 |
*) : |
| 14509 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14510 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } ;; |
| 14511 |
esac |
| 14512 |
;; #( |
| 14513 |
*) : |
| 14514 |
;; |
| 14515 |
esac |
| 14516 |
|
| 14517 |
fi |
| 14518 |
mv confdefs.h largefile.h |
| 14519 |
mv confdefs1.h confdefs.h |
| 14520 |
cat largefile.h >> confdefs.h |
| 14521 |
|
| 14522 |
case "$target_os" in #( |
| 14523 |
aix*) : |
| 14524 |
|
| 14525 |
case "$target_cpu:$ac_cv_sys_large_files" in #( |
| 14526 |
ppc64:*|powerpc64:*) : |
| 14527 |
;; #( |
| 14528 |
*:no|*:unknown) : |
| 14529 |
;; #( |
| 14530 |
*) : |
| 14531 |
|
| 14532 |
# AIX currently does not support a 32-bit call to posix_fadvise() |
| 14533 |
# if _LARGE_FILES is defined. |
| 14534 |
ac_cv_func_posix_fadvise=no |
| 14535 |
;; |
| 14536 |
esac |
| 14537 |
;; #( |
| 14538 |
*) : |
| 14539 |
;; |
| 14540 |
esac |
| 14541 |
|
| 14542 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 14543 |
printf %s "checking whether byte ordering is bigendian... " >&6; } |
| 14544 |
if test ${ac_cv_c_bigendian+y} |
| 14545 |
then : |
| 14546 |
printf %s "(cached) " >&6 |
| 14547 |
else $as_nop |
| 14548 |
ac_cv_c_bigendian=unknown |
| 14549 |
# See if we're dealing with a universal compiler. |
| 14550 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14551 |
/* end confdefs.h. */ |
| 14552 |
#ifndef __APPLE_CC__ |
| 14553 |
not a universal capable compiler |
| 14554 |
#endif |
| 14555 |
typedef int dummy; |
| 14556 |
|
| 14557 |
_ACEOF |
| 14558 |
if ac_fn_c_try_compile "$LINENO" |
| 14559 |
then : |
| 14560 |
|
| 14561 |
# Check for potential -arch flags. It is not universal unless |
| 14562 |
# there are at least two -arch flags with different values. |
| 14563 |
ac_arch= |
| 14564 |
ac_prev= |
| 14565 |
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 14566 |
if test -n "$ac_prev"; then |
| 14567 |
case $ac_word in |
| 14568 |
i?86 | x86_64 | ppc | ppc64) |
| 14569 |
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 14570 |
ac_arch=$ac_word |
| 14571 |
else |
| 14572 |
ac_cv_c_bigendian=universal |
| 14573 |
break |
| 14574 |
fi |
| 14575 |
;; |
| 14576 |
esac |
| 14577 |
ac_prev= |
| 14578 |
elif test "x$ac_word" = "x-arch"; then |
| 14579 |
ac_prev=arch |
| 14580 |
fi |
| 14581 |
done |
| 14582 |
fi |
| 14583 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14584 |
if test $ac_cv_c_bigendian = unknown; then |
| 14585 |
# See if sys/param.h defines the BYTE_ORDER macro. |
| 14586 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14587 |
/* end confdefs.h. */ |
| 14588 |
#include <sys/types.h> |
| 14589 |
#include <sys/param.h> |
| 14590 |
|
| 14591 |
int |
| 14592 |
main (void) |
| 14593 |
{ |
| 14594 |
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 14595 |
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 14596 |
&& LITTLE_ENDIAN) |
| 14597 |
bogus endian macros |
| 14598 |
#endif |
| 14599 |
|
| 14600 |
; |
| 14601 |
return 0; |
| 14602 |
} |
| 14603 |
_ACEOF |
| 14604 |
if ac_fn_c_try_compile "$LINENO" |
| 14605 |
then : |
| 14606 |
# It does; now see whether it defined to BIG_ENDIAN or not. |
| 14607 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14608 |
/* end confdefs.h. */ |
| 14609 |
#include <sys/types.h> |
| 14610 |
#include <sys/param.h> |
| 14611 |
|
| 14612 |
int |
| 14613 |
main (void) |
| 14614 |
{ |
| 14615 |
#if BYTE_ORDER != BIG_ENDIAN |
| 14616 |
not big endian |
| 14617 |
#endif |
| 14618 |
|
| 14619 |
; |
| 14620 |
return 0; |
| 14621 |
} |
| 14622 |
_ACEOF |
| 14623 |
if ac_fn_c_try_compile "$LINENO" |
| 14624 |
then : |
| 14625 |
ac_cv_c_bigendian=yes |
| 14626 |
else $as_nop |
| 14627 |
ac_cv_c_bigendian=no |
| 14628 |
fi |
| 14629 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14630 |
fi |
| 14631 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14632 |
fi |
| 14633 |
if test $ac_cv_c_bigendian = unknown; then |
| 14634 |
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 14635 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14636 |
/* end confdefs.h. */ |
| 14637 |
#include <limits.h> |
| 14638 |
|
| 14639 |
int |
| 14640 |
main (void) |
| 14641 |
{ |
| 14642 |
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 14643 |
bogus endian macros |
| 14644 |
#endif |
| 14645 |
|
| 14646 |
; |
| 14647 |
return 0; |
| 14648 |
} |
| 14649 |
_ACEOF |
| 14650 |
if ac_fn_c_try_compile "$LINENO" |
| 14651 |
then : |
| 14652 |
# It does; now see whether it defined to _BIG_ENDIAN or not. |
| 14653 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14654 |
/* end confdefs.h. */ |
| 14655 |
#include <limits.h> |
| 14656 |
|
| 14657 |
int |
| 14658 |
main (void) |
| 14659 |
{ |
| 14660 |
#ifndef _BIG_ENDIAN |
| 14661 |
not big endian |
| 14662 |
#endif |
| 14663 |
|
| 14664 |
; |
| 14665 |
return 0; |
| 14666 |
} |
| 14667 |
_ACEOF |
| 14668 |
if ac_fn_c_try_compile "$LINENO" |
| 14669 |
then : |
| 14670 |
ac_cv_c_bigendian=yes |
| 14671 |
else $as_nop |
| 14672 |
ac_cv_c_bigendian=no |
| 14673 |
fi |
| 14674 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14675 |
fi |
| 14676 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14677 |
fi |
| 14678 |
if test $ac_cv_c_bigendian = unknown; then |
| 14679 |
# Compile a test program. |
| 14680 |
if test "$cross_compiling" = yes |
| 14681 |
then : |
| 14682 |
# Try to guess by grepping values from an object file. |
| 14683 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14684 |
/* end confdefs.h. */ |
| 14685 |
unsigned short int ascii_mm[] = |
| 14686 |
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 14687 |
unsigned short int ascii_ii[] = |
| 14688 |
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 14689 |
int use_ascii (int i) { |
| 14690 |
return ascii_mm[i] + ascii_ii[i]; |
| 14691 |
} |
| 14692 |
unsigned short int ebcdic_ii[] = |
| 14693 |
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 14694 |
unsigned short int ebcdic_mm[] = |
| 14695 |
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 14696 |
int use_ebcdic (int i) { |
| 14697 |
return ebcdic_mm[i] + ebcdic_ii[i]; |
| 14698 |
} |
| 14699 |
extern int foo; |
| 14700 |
|
| 14701 |
int |
| 14702 |
main (void) |
| 14703 |
{ |
| 14704 |
return use_ascii (foo) == use_ebcdic (foo); |
| 14705 |
; |
| 14706 |
return 0; |
| 14707 |
} |
| 14708 |
_ACEOF |
| 14709 |
if ac_fn_c_try_compile "$LINENO" |
| 14710 |
then : |
| 14711 |
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 14712 |
ac_cv_c_bigendian=yes |
| 14713 |
fi |
| 14714 |
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 14715 |
if test "$ac_cv_c_bigendian" = unknown; then |
| 14716 |
ac_cv_c_bigendian=no |
| 14717 |
else |
| 14718 |
# finding both strings is unlikely to happen, but who knows? |
| 14719 |
ac_cv_c_bigendian=unknown |
| 14720 |
fi |
| 14721 |
fi |
| 14722 |
fi |
| 14723 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14724 |
else $as_nop |
| 14725 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14726 |
/* end confdefs.h. */ |
| 14727 |
$ac_includes_default |
| 14728 |
int |
| 14729 |
main (void) |
| 14730 |
{ |
| 14731 |
|
| 14732 |
/* Are we little or big endian? From Harbison&Steele. */ |
| 14733 |
union |
| 14734 |
{ |
| 14735 |
long int l; |
| 14736 |
char c[sizeof (long int)]; |
| 14737 |
} u; |
| 14738 |
u.l = 1; |
| 14739 |
return u.c[sizeof (long int) - 1] == 1; |
| 14740 |
|
| 14741 |
; |
| 14742 |
return 0; |
| 14743 |
} |
| 14744 |
_ACEOF |
| 14745 |
if ac_fn_c_try_run "$LINENO" |
| 14746 |
then : |
| 14747 |
ac_cv_c_bigendian=no |
| 14748 |
else $as_nop |
| 14749 |
ac_cv_c_bigendian=yes |
| 14750 |
fi |
| 14751 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14752 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14753 |
fi |
| 14754 |
|
| 14755 |
fi |
| 14756 |
fi |
| 14757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 14758 |
colorize_result "$ac_cv_c_bigendian" ; } |
| 14759 |
case $ac_cv_c_bigendian in #( |
| 14760 |
yes) |
| 14761 |
printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 14762 |
;; #( |
| 14763 |
no) |
| 14764 |
;; #( |
| 14765 |
universal) |
| 14766 |
printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 14767 |
|
| 14768 |
;; #( |
| 14769 |
*) |
| 14770 |
as_fn_error $? "unknown endianness |
| 14771 |
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 14772 |
esac |
| 14773 |
|
| 14774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
| 14775 |
printf %s "checking for an ANSI C-conforming const... " >&6; } |
| 14776 |
if test ${ac_cv_c_const+y} |
| 14777 |
then : |
| 14778 |
printf %s "(cached) " >&6 |
| 14779 |
else $as_nop |
| 14780 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14781 |
/* end confdefs.h. */ |
| 14782 |
|
| 14783 |
int |
| 14784 |
main (void) |
| 14785 |
{ |
| 14786 |
|
| 14787 |
#ifndef __cplusplus |
| 14788 |
/* Ultrix mips cc rejects this sort of thing. */ |
| 14789 |
typedef int charset[2]; |
| 14790 |
const charset cs = { 0, 0 }; |
| 14791 |
/* SunOS 4.1.1 cc rejects this. */ |
| 14792 |
char const *const *pcpcc; |
| 14793 |
char **ppc; |
| 14794 |
/* NEC SVR4.0.2 mips cc rejects this. */ |
| 14795 |
struct point {int x, y;}; |
| 14796 |
static struct point const zero = {0,0}; |
| 14797 |
/* IBM XL C 1.02.0.0 rejects this. |
| 14798 |
It does not let you subtract one const X* pointer from another in |
| 14799 |
an arm of an if-expression whose if-part is not a constant |
| 14800 |
expression */ |
| 14801 |
const char *g = "string"; |
| 14802 |
pcpcc = &g + (g ? g-g : 0); |
| 14803 |
/* HPUX 7.0 cc rejects these. */ |
| 14804 |
++pcpcc; |
| 14805 |
ppc = (char**) pcpcc; |
| 14806 |
pcpcc = (char const *const *) ppc; |
| 14807 |
{ /* SCO 3.2v4 cc rejects this sort of thing. */ |
| 14808 |
char tx; |
| 14809 |
char *t = &tx; |
| 14810 |
char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 14811 |
|
| 14812 |
*t++ = 0; |
| 14813 |
if (s) return 0; |
| 14814 |
} |
| 14815 |
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 14816 |
int x[] = {25, 17}; |
| 14817 |
const int *foo = &x[0]; |
| 14818 |
++foo; |
| 14819 |
} |
| 14820 |
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 14821 |
typedef const int *iptr; |
| 14822 |
iptr p = 0; |
| 14823 |
++p; |
| 14824 |
} |
| 14825 |
{ /* IBM XL C 1.02.0.0 rejects this sort of thing, saying |
| 14826 |
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 14827 |
struct s { int j; const int *ap[3]; } bx; |
| 14828 |
struct s *b = &bx; b->j = 5; |
| 14829 |
} |
| 14830 |
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 14831 |
const int foo = 10; |
| 14832 |
if (!foo) return 0; |
| 14833 |
} |
| 14834 |
return !cs[0] && !zero.x; |
| 14835 |
#endif |
| 14836 |
|
| 14837 |
; |
| 14838 |
return 0; |
| 14839 |
} |
| 14840 |
_ACEOF |
| 14841 |
if ac_fn_c_try_compile "$LINENO" |
| 14842 |
then : |
| 14843 |
ac_cv_c_const=yes |
| 14844 |
else $as_nop |
| 14845 |
ac_cv_c_const=no |
| 14846 |
fi |
| 14847 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14848 |
fi |
| 14849 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
| 14850 |
colorize_result "$ac_cv_c_const" ; } |
| 14851 |
if test $ac_cv_c_const = no; then |
| 14852 |
|
| 14853 |
printf "%s\n" "#define const /**/" >>confdefs.h |
| 14854 |
|
| 14855 |
fi |
| 14856 |
|
| 14857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 |
| 14858 |
printf %s "checking whether char is unsigned... " >&6; } |
| 14859 |
if test ${ac_cv_c_char_unsigned+y} |
| 14860 |
then : |
| 14861 |
printf %s "(cached) " >&6 |
| 14862 |
else $as_nop |
| 14863 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14864 |
/* end confdefs.h. */ |
| 14865 |
$ac_includes_default |
| 14866 |
int |
| 14867 |
main (void) |
| 14868 |
{ |
| 14869 |
static int test_array [1 - 2 * !(((char) -1) < 0)]; |
| 14870 |
test_array [0] = 0; |
| 14871 |
return test_array [0]; |
| 14872 |
|
| 14873 |
; |
| 14874 |
return 0; |
| 14875 |
} |
| 14876 |
_ACEOF |
| 14877 |
if ac_fn_c_try_compile "$LINENO" |
| 14878 |
then : |
| 14879 |
ac_cv_c_char_unsigned=no |
| 14880 |
else $as_nop |
| 14881 |
ac_cv_c_char_unsigned=yes |
| 14882 |
fi |
| 14883 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14884 |
fi |
| 14885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 |
| 14886 |
colorize_result "$ac_cv_c_char_unsigned" ; } |
| 14887 |
if test $ac_cv_c_char_unsigned = yes; then |
| 14888 |
printf "%s\n" "#define __CHAR_UNSIGNED__ 1" >>confdefs.h |
| 14889 |
|
| 14890 |
fi |
| 14891 |
|
| 14892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
| 14893 |
printf %s "checking for inline... " >&6; } |
| 14894 |
if test ${ac_cv_c_inline+y} |
| 14895 |
then : |
| 14896 |
printf %s "(cached) " >&6 |
| 14897 |
else $as_nop |
| 14898 |
ac_cv_c_inline=no |
| 14899 |
for ac_kw in inline __inline__ __inline; do |
| 14900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14901 |
/* end confdefs.h. */ |
| 14902 |
#ifndef __cplusplus |
| 14903 |
typedef int foo_t; |
| 14904 |
static $ac_kw foo_t static_foo (void) {return 0; } |
| 14905 |
$ac_kw foo_t foo (void) {return 0; } |
| 14906 |
#endif |
| 14907 |
|
| 14908 |
_ACEOF |
| 14909 |
if ac_fn_c_try_compile "$LINENO" |
| 14910 |
then : |
| 14911 |
ac_cv_c_inline=$ac_kw |
| 14912 |
fi |
| 14913 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14914 |
test "$ac_cv_c_inline" != no && break |
| 14915 |
done |
| 14916 |
|
| 14917 |
fi |
| 14918 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
| 14919 |
colorize_result "$ac_cv_c_inline" ; } |
| 14920 |
|
| 14921 |
case $ac_cv_c_inline in |
| 14922 |
inline | yes) ;; |
| 14923 |
*) |
| 14924 |
case $ac_cv_c_inline in |
| 14925 |
no) ac_val=;; |
| 14926 |
*) ac_val=$ac_cv_c_inline;; |
| 14927 |
esac |
| 14928 |
cat >>confdefs.h <<_ACEOF |
| 14929 |
#ifndef __cplusplus |
| 14930 |
#define inline $ac_val |
| 14931 |
#endif |
| 14932 |
_ACEOF |
| 14933 |
;; |
| 14934 |
esac |
| 14935 |
|
| 14936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 |
| 14937 |
printf %s "checking for working volatile... " >&6; } |
| 14938 |
if test ${ac_cv_c_volatile+y} |
| 14939 |
then : |
| 14940 |
printf %s "(cached) " >&6 |
| 14941 |
else $as_nop |
| 14942 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14943 |
/* end confdefs.h. */ |
| 14944 |
|
| 14945 |
int |
| 14946 |
main (void) |
| 14947 |
{ |
| 14948 |
|
| 14949 |
volatile int x; |
| 14950 |
int * volatile y = (int *) 0; |
| 14951 |
return !x && !y; |
| 14952 |
; |
| 14953 |
return 0; |
| 14954 |
} |
| 14955 |
_ACEOF |
| 14956 |
if ac_fn_c_try_compile "$LINENO" |
| 14957 |
then : |
| 14958 |
ac_cv_c_volatile=yes |
| 14959 |
else $as_nop |
| 14960 |
ac_cv_c_volatile=no |
| 14961 |
fi |
| 14962 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14963 |
fi |
| 14964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 |
| 14965 |
colorize_result "$ac_cv_c_volatile" ; } |
| 14966 |
if test $ac_cv_c_volatile = no; then |
| 14967 |
|
| 14968 |
printf "%s\n" "#define volatile /**/" >>confdefs.h |
| 14969 |
|
| 14970 |
fi |
| 14971 |
|
| 14972 |
|
| 14973 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for typeof syntax and keyword spelling" >&5 |
| 14974 |
printf %s "checking for typeof syntax and keyword spelling... " >&6; } |
| 14975 |
if test ${ac_cv_c_typeof+y} |
| 14976 |
then : |
| 14977 |
printf %s "(cached) " >&6 |
| 14978 |
else $as_nop |
| 14979 |
ac_cv_c_typeof=no |
| 14980 |
for ac_kw in typeof __typeof__ no; do |
| 14981 |
test $ac_kw = no && break |
| 14982 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14983 |
/* end confdefs.h. */ |
| 14984 |
|
| 14985 |
int |
| 14986 |
main (void) |
| 14987 |
{ |
| 14988 |
|
| 14989 |
int value; |
| 14990 |
typedef struct { |
| 14991 |
char a [1 |
| 14992 |
+ ! (($ac_kw (value)) |
| 14993 |
(($ac_kw (value)) 0 < ($ac_kw (value)) -1 |
| 14994 |
? ($ac_kw (value)) - 1 |
| 14995 |
: ~ (~ ($ac_kw (value)) 0 |
| 14996 |
<< sizeof ($ac_kw (value)))))]; } |
| 14997 |
ac__typeof_type_; |
| 14998 |
return |
| 14999 |
(! ((void) ((ac__typeof_type_ *) 0), 0)); |
| 15000 |
|
| 15001 |
; |
| 15002 |
return 0; |
| 15003 |
} |
| 15004 |
_ACEOF |
| 15005 |
if ac_fn_c_try_compile "$LINENO" |
| 15006 |
then : |
| 15007 |
ac_cv_c_typeof=$ac_kw |
| 15008 |
fi |
| 15009 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15010 |
test $ac_cv_c_typeof != no && break |
| 15011 |
done |
| 15012 |
fi |
| 15013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_typeof" >&5 |
| 15014 |
colorize_result "$ac_cv_c_typeof" ; } |
| 15015 |
if test $ac_cv_c_typeof != no; then |
| 15016 |
|
| 15017 |
printf "%s\n" "#define HAVE_TYPEOF 1" >>confdefs.h |
| 15018 |
|
| 15019 |
if test $ac_cv_c_typeof != typeof; then |
| 15020 |
|
| 15021 |
printf "%s\n" "#define typeof $ac_cv_c_typeof" >>confdefs.h |
| 15022 |
|
| 15023 |
fi |
| 15024 |
fi |
| 15025 |
|
| 15026 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 15027 |
printf %s "checking for C/C++ restrict keyword... " >&6; } |
| 15028 |
if test ${ac_cv_c_restrict+y} |
| 15029 |
then : |
| 15030 |
printf %s "(cached) " >&6 |
| 15031 |
else $as_nop |
| 15032 |
ac_cv_c_restrict=no |
| 15033 |
# Put '__restrict__' first, to avoid problems with glibc and non-GCC; see: |
| 15034 |
# https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html |
| 15035 |
# Put 'restrict' last, because C++ lacks it. |
| 15036 |
for ac_kw in __restrict__ __restrict _Restrict restrict; do |
| 15037 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15038 |
/* end confdefs.h. */ |
| 15039 |
typedef int *int_ptr; |
| 15040 |
int foo (int_ptr $ac_kw ip) { return ip[0]; } |
| 15041 |
int bar (int [$ac_kw]); /* Catch GCC bug 14050. */ |
| 15042 |
int bar (int ip[$ac_kw]) { return ip[0]; } |
| 15043 |
|
| 15044 |
int |
| 15045 |
main (void) |
| 15046 |
{ |
| 15047 |
int s[1]; |
| 15048 |
int *$ac_kw t = s; |
| 15049 |
t[0] = 0; |
| 15050 |
return foo (t) + bar (t); |
| 15051 |
|
| 15052 |
; |
| 15053 |
return 0; |
| 15054 |
} |
| 15055 |
_ACEOF |
| 15056 |
if ac_fn_c_try_compile "$LINENO" |
| 15057 |
then : |
| 15058 |
ac_cv_c_restrict=$ac_kw |
| 15059 |
fi |
| 15060 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15061 |
test "$ac_cv_c_restrict" != no && break |
| 15062 |
done |
| 15063 |
|
| 15064 |
fi |
| 15065 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 15066 |
colorize_result "$ac_cv_c_restrict" ; } |
| 15067 |
|
| 15068 |
case $ac_cv_c_restrict in |
| 15069 |
restrict) ;; |
| 15070 |
no) printf "%s\n" "#define restrict /**/" >>confdefs.h |
| 15071 |
;; |
| 15072 |
*) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h |
| 15073 |
;; |
| 15074 |
esac |
| 15075 |
|
| 15076 |
|
| 15077 |
case ":$ac_cv_c_const:$ac_cv_c_volatile:" in #( |
| 15078 |
*:no:*) : |
| 15079 |
as_fn_error $? "ANSI C-conforming const and volatile are mandatory" "$LINENO" 5 ;; #( |
| 15080 |
*) : |
| 15081 |
;; |
| 15082 |
esac |
| 15083 |
|
| 15084 |
ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" |
| 15085 |
if test "x$ac_cv_type_long_long" = xyes |
| 15086 |
then : |
| 15087 |
|
| 15088 |
printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h |
| 15089 |
|
| 15090 |
|
| 15091 |
fi |
| 15092 |
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 15093 |
if test "x$ac_cv_type_off_t" = xyes |
| 15094 |
then : |
| 15095 |
|
| 15096 |
printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h |
| 15097 |
|
| 15098 |
|
| 15099 |
fi |
| 15100 |
|
| 15101 |
|
| 15102 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking char bit" >&5 |
| 15103 |
printf %s "checking char bit... " >&6; } |
| 15104 |
if test ${rb_cv_char_bit+y} |
| 15105 |
then : |
| 15106 |
printf %s "(cached) " >&6 |
| 15107 |
else $as_nop |
| 15108 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15109 |
if ac_fn_c_compute_int "$LINENO" "CHAR_BIT" "rb_cv_char_bit" "#include <limits.h> |
| 15110 |
" |
| 15111 |
then : |
| 15112 |
|
| 15113 |
else $as_nop |
| 15114 |
rb_cv_char_bit=8 |
| 15115 |
fi |
| 15116 |
|
| 15117 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15118 |
fi |
| 15119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_char_bit" >&5 |
| 15120 |
colorize_result "$rb_cv_char_bit" ; } |
| 15121 |
|
| 15122 |
|
| 15123 |
if test "$universal_binary" = yes; then |
| 15124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 15125 |
printf %s "checking size of int... " >&6; } |
| 15126 |
if test ${ac_cv_sizeof_int+y} |
| 15127 |
then : |
| 15128 |
printf %s "(cached) " >&6 |
| 15129 |
else $as_nop |
| 15130 |
|
| 15131 |
unset ac_cv_sizeof_int |
| 15132 |
rbcv_sizeof_var=" |
| 15133 |
typedef int ac__type_sizeof_; |
| 15134 |
static ac__type_sizeof_ *rbcv_ptr; |
| 15135 |
#define SIZEOF_INT sizeof((*rbcv_ptr)) |
| 15136 |
" |
| 15137 |
|
| 15138 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_INT" "ac_cv_sizeof_int" "$ac_includes_default |
| 15139 |
$rbcv_sizeof_var" |
| 15140 |
then : |
| 15141 |
|
| 15142 |
else $as_nop |
| 15143 |
ac_cv_sizeof_int= |
| 15144 |
fi |
| 15145 |
|
| 15146 |
|
| 15147 |
unset rbcv_sizeof_cond |
| 15148 |
test -z "${ac_cv_sizeof_int+set}" && { |
| 15149 |
for rbcv_sizeof_size in 32 64 128; do |
| 15150 |
for rbcv_sizeof_type in ILP; do |
| 15151 |
rbcv_sizeof_cond="${rbcv_sizeof_cond} |
| 15152 |
#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size})" |
| 15153 |
hdr=" |
| 15154 |
#if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size}) |
| 15155 |
# define HAVE_INT 1 |
| 15156 |
#else |
| 15157 |
# define HAVE_INT 0 |
| 15158 |
#endif |
| 15159 |
" |
| 15160 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15161 |
/* end confdefs.h. */ |
| 15162 |
$hdr |
| 15163 |
int |
| 15164 |
main (void) |
| 15165 |
{ |
| 15166 |
static int test_array [1 - 2 * !(!HAVE_INT)]; |
| 15167 |
test_array [0] = 0; |
| 15168 |
return test_array [0]; |
| 15169 |
|
| 15170 |
; |
| 15171 |
return 0; |
| 15172 |
} |
| 15173 |
_ACEOF |
| 15174 |
if ac_fn_c_try_compile "$LINENO" |
| 15175 |
then : |
| 15176 |
continue |
| 15177 |
fi |
| 15178 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15179 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15180 |
/* end confdefs.h. */ |
| 15181 |
$hdr |
| 15182 |
$rbcv_sizeof_var |
| 15183 |
int |
| 15184 |
main (void) |
| 15185 |
{ |
| 15186 |
static int test_array [1 - 2 * !(HAVE_INT == (SIZEOF_INT == ($rbcv_sizeof_size / $rb_cv_char_bit)))]; |
| 15187 |
test_array [0] = 0; |
| 15188 |
return test_array [0]; |
| 15189 |
|
| 15190 |
; |
| 15191 |
return 0; |
| 15192 |
} |
| 15193 |
_ACEOF |
| 15194 |
if ac_fn_c_try_compile "$LINENO" |
| 15195 |
then : |
| 15196 |
ac_cv_sizeof_int="${ac_cv_sizeof_int+${ac_cv_sizeof_int-} }${rbcv_sizeof_type}${rbcv_sizeof_size}"; continue |
| 15197 |
fi |
| 15198 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15199 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15200 |
/* end confdefs.h. */ |
| 15201 |
$hdr |
| 15202 |
|
| 15203 |
#if HAVE_INT |
| 15204 |
$rbcv_sizeof_var |
| 15205 |
#else |
| 15206 |
#define SIZEOF_INT 0 |
| 15207 |
#endif |
| 15208 |
|
| 15209 |
int |
| 15210 |
main (void) |
| 15211 |
{ |
| 15212 |
static int test_array [1 - 2 * !(HAVE_INT == (SIZEOF_INT == (($rbcv_sizeof_size / $rb_cv_char_bit))))]; |
| 15213 |
test_array [0] = 0; |
| 15214 |
return test_array [0]; |
| 15215 |
|
| 15216 |
; |
| 15217 |
return 0; |
| 15218 |
} |
| 15219 |
_ACEOF |
| 15220 |
if ac_fn_c_try_compile "$LINENO" |
| 15221 |
then : |
| 15222 |
ac_cv_sizeof_int="${ac_cv_sizeof_int+${ac_cv_sizeof_int-} }${rbcv_sizeof_type}${rbcv_sizeof_size}" |
| 15223 |
fi |
| 15224 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15225 |
done |
| 15226 |
done |
| 15227 |
} |
| 15228 |
test "${ac_cv_sizeof_int#[1-9]}" = "${ac_cv_sizeof_int}" && |
| 15229 |
test "${ac_cv_sizeof_int#SIZEOF_}" = "${ac_cv_sizeof_int}" && { |
| 15230 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15231 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_INT" "rbcv_sizeof_type" "$ac_includes_default |
| 15232 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 15233 |
#else} |
| 15234 |
$rbcv_sizeof_var |
| 15235 |
${rbcv_sizeof_cond+#endif} |
| 15236 |
#ifndef SIZEOF_INT |
| 15237 |
#define SIZEOF_INT 0 |
| 15238 |
#endif" |
| 15239 |
then : |
| 15240 |
|
| 15241 |
else $as_nop |
| 15242 |
rbcv_sizeof_type=0 |
| 15243 |
fi |
| 15244 |
|
| 15245 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15246 |
if test ${rbcv_sizeof_type-0} != 0 |
| 15247 |
then : |
| 15248 |
|
| 15249 |
ac_cv_sizeof_int="${ac_cv_sizeof_int+${ac_cv_sizeof_int-} }${rbcv_sizeof_type}" |
| 15250 |
|
| 15251 |
fi |
| 15252 |
} |
| 15253 |
: ${ac_cv_sizeof_int=0} |
| 15254 |
|
| 15255 |
fi |
| 15256 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 15257 |
colorize_result "$ac_cv_sizeof_int" ; } |
| 15258 |
{ |
| 15259 |
unset rbcv_sizeof_cond |
| 15260 |
for rbcv_sizeof_type in ${ac_cv_sizeof_int-}; do |
| 15261 |
case "$rbcv_sizeof_type" in #( |
| 15262 |
[0-9]*|SIZEOF_*) : |
| 15263 |
|
| 15264 |
${rbcv_sizeof_cond+echo "#else"} |
| 15265 |
echo "#define SIZEOF_INT $rbcv_sizeof_type" |
| 15266 |
break |
| 15267 |
;; #( |
| 15268 |
*) : |
| 15269 |
|
| 15270 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 15271 |
case $rbcv_sizeof_type in #( |
| 15272 |
*:*) : |
| 15273 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 15274 |
*) : |
| 15275 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 15276 |
esac |
| 15277 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 15278 |
echo "#define SIZEOF_INT $rbcv_sizeof_size" |
| 15279 |
rbcv_sizeof_cond=1 |
| 15280 |
;; |
| 15281 |
esac |
| 15282 |
done |
| 15283 |
${rbcv_sizeof_cond+echo "#endif"} |
| 15284 |
} >> confdefs.h |
| 15285 |
else |
| 15286 |
# The cast to long int works around a bug in the HP C Compiler |
| 15287 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15288 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15289 |
# This bug is HP SR number 8606223364. |
| 15290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
| 15291 |
printf %s "checking size of int... " >&6; } |
| 15292 |
if test ${ac_cv_sizeof_int+y} |
| 15293 |
then : |
| 15294 |
printf %s "(cached) " >&6 |
| 15295 |
else $as_nop |
| 15296 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" |
| 15297 |
then : |
| 15298 |
|
| 15299 |
else $as_nop |
| 15300 |
if test "$ac_cv_type_int" = yes; then |
| 15301 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15302 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15303 |
as_fn_error 77 "cannot compute sizeof (int) |
| 15304 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15305 |
else |
| 15306 |
ac_cv_sizeof_int=0 |
| 15307 |
fi |
| 15308 |
fi |
| 15309 |
|
| 15310 |
fi |
| 15311 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
| 15312 |
colorize_result "$ac_cv_sizeof_int" ; } |
| 15313 |
|
| 15314 |
|
| 15315 |
|
| 15316 |
printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h |
| 15317 |
|
| 15318 |
|
| 15319 |
fi |
| 15320 |
|
| 15321 |
|
| 15322 |
if test "$universal_binary" = yes; then |
| 15323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 15324 |
printf %s "checking size of short... " >&6; } |
| 15325 |
if test ${ac_cv_sizeof_short+y} |
| 15326 |
then : |
| 15327 |
printf %s "(cached) " >&6 |
| 15328 |
else $as_nop |
| 15329 |
|
| 15330 |
unset ac_cv_sizeof_short |
| 15331 |
rbcv_sizeof_var=" |
| 15332 |
typedef short ac__type_sizeof_; |
| 15333 |
static ac__type_sizeof_ *rbcv_ptr; |
| 15334 |
#define SIZEOF_SHORT sizeof((*rbcv_ptr)) |
| 15335 |
" |
| 15336 |
|
| 15337 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_SHORT" "ac_cv_sizeof_short" "$ac_includes_default |
| 15338 |
$rbcv_sizeof_var" |
| 15339 |
then : |
| 15340 |
|
| 15341 |
else $as_nop |
| 15342 |
ac_cv_sizeof_short= |
| 15343 |
fi |
| 15344 |
|
| 15345 |
|
| 15346 |
unset rbcv_sizeof_cond |
| 15347 |
|
| 15348 |
test "${ac_cv_sizeof_short#[1-9]}" = "${ac_cv_sizeof_short}" && |
| 15349 |
{ |
| 15350 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15351 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_SHORT" "rbcv_sizeof_type" "$ac_includes_default |
| 15352 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 15353 |
#else} |
| 15354 |
$rbcv_sizeof_var |
| 15355 |
${rbcv_sizeof_cond+#endif} |
| 15356 |
#ifndef SIZEOF_SHORT |
| 15357 |
#define SIZEOF_SHORT 0 |
| 15358 |
#endif" |
| 15359 |
then : |
| 15360 |
|
| 15361 |
else $as_nop |
| 15362 |
rbcv_sizeof_type=0 |
| 15363 |
fi |
| 15364 |
|
| 15365 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15366 |
if test ${rbcv_sizeof_type-0} != 0 |
| 15367 |
then : |
| 15368 |
|
| 15369 |
ac_cv_sizeof_short="${ac_cv_sizeof_short+${ac_cv_sizeof_short-} }${rbcv_sizeof_type}" |
| 15370 |
|
| 15371 |
fi |
| 15372 |
} |
| 15373 |
: ${ac_cv_sizeof_short=0} |
| 15374 |
|
| 15375 |
fi |
| 15376 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 15377 |
colorize_result "$ac_cv_sizeof_short" ; } |
| 15378 |
{ |
| 15379 |
unset rbcv_sizeof_cond |
| 15380 |
for rbcv_sizeof_type in ${ac_cv_sizeof_short-}; do |
| 15381 |
case "$rbcv_sizeof_type" in #( |
| 15382 |
[0-9]*|SIZEOF_*) : |
| 15383 |
|
| 15384 |
${rbcv_sizeof_cond+echo "#else"} |
| 15385 |
echo "#define SIZEOF_SHORT $rbcv_sizeof_type" |
| 15386 |
break |
| 15387 |
;; #( |
| 15388 |
*) : |
| 15389 |
|
| 15390 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 15391 |
case $rbcv_sizeof_type in #( |
| 15392 |
*:*) : |
| 15393 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 15394 |
*) : |
| 15395 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 15396 |
esac |
| 15397 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 15398 |
echo "#define SIZEOF_SHORT $rbcv_sizeof_size" |
| 15399 |
rbcv_sizeof_cond=1 |
| 15400 |
;; |
| 15401 |
esac |
| 15402 |
done |
| 15403 |
${rbcv_sizeof_cond+echo "#endif"} |
| 15404 |
} >> confdefs.h |
| 15405 |
else |
| 15406 |
# The cast to long int works around a bug in the HP C Compiler |
| 15407 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15408 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15409 |
# This bug is HP SR number 8606223364. |
| 15410 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
| 15411 |
printf %s "checking size of short... " >&6; } |
| 15412 |
if test ${ac_cv_sizeof_short+y} |
| 15413 |
then : |
| 15414 |
printf %s "(cached) " >&6 |
| 15415 |
else $as_nop |
| 15416 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" |
| 15417 |
then : |
| 15418 |
|
| 15419 |
else $as_nop |
| 15420 |
if test "$ac_cv_type_short" = yes; then |
| 15421 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15422 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15423 |
as_fn_error 77 "cannot compute sizeof (short) |
| 15424 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15425 |
else |
| 15426 |
ac_cv_sizeof_short=0 |
| 15427 |
fi |
| 15428 |
fi |
| 15429 |
|
| 15430 |
fi |
| 15431 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
| 15432 |
colorize_result "$ac_cv_sizeof_short" ; } |
| 15433 |
|
| 15434 |
|
| 15435 |
|
| 15436 |
printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h |
| 15437 |
|
| 15438 |
|
| 15439 |
fi |
| 15440 |
|
| 15441 |
|
| 15442 |
if test "$universal_binary" = yes; then |
| 15443 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 15444 |
printf %s "checking size of long... " >&6; } |
| 15445 |
if test ${ac_cv_sizeof_long+y} |
| 15446 |
then : |
| 15447 |
printf %s "(cached) " >&6 |
| 15448 |
else $as_nop |
| 15449 |
|
| 15450 |
unset ac_cv_sizeof_long |
| 15451 |
rbcv_sizeof_var=" |
| 15452 |
typedef long ac__type_sizeof_; |
| 15453 |
static ac__type_sizeof_ *rbcv_ptr; |
| 15454 |
#define SIZEOF_LONG sizeof((*rbcv_ptr)) |
| 15455 |
" |
| 15456 |
test -z "${ac_cv_sizeof_long+set}" && { |
| 15457 |
for rbcv_sizeof_type in int; do |
| 15458 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15459 |
/* end confdefs.h. */ |
| 15460 |
|
| 15461 |
$rbcv_sizeof_var |
| 15462 |
|
| 15463 |
int |
| 15464 |
main (void) |
| 15465 |
{ |
| 15466 |
static int test_array [1 - 2 * !(SIZEOF_LONG == sizeof($rbcv_sizeof_type))]; |
| 15467 |
test_array [0] = 0; |
| 15468 |
return test_array [0]; |
| 15469 |
|
| 15470 |
; |
| 15471 |
return 0; |
| 15472 |
} |
| 15473 |
_ACEOF |
| 15474 |
if ac_fn_c_try_compile "$LINENO" |
| 15475 |
then : |
| 15476 |
|
| 15477 |
ac_cv_sizeof_long=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 15478 |
break |
| 15479 |
fi |
| 15480 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15481 |
done |
| 15482 |
} |
| 15483 |
unset rbcv_sizeof_cond |
| 15484 |
test -z "${ac_cv_sizeof_long+set}" && { |
| 15485 |
for rbcv_sizeof_size in 32 64 128; do |
| 15486 |
for rbcv_sizeof_type in ILP LP; do |
| 15487 |
rbcv_sizeof_cond="${rbcv_sizeof_cond} |
| 15488 |
#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size})" |
| 15489 |
hdr=" |
| 15490 |
#if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size}) |
| 15491 |
# define HAVE_LONG 1 |
| 15492 |
#else |
| 15493 |
# define HAVE_LONG 0 |
| 15494 |
#endif |
| 15495 |
" |
| 15496 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15497 |
/* end confdefs.h. */ |
| 15498 |
$hdr |
| 15499 |
int |
| 15500 |
main (void) |
| 15501 |
{ |
| 15502 |
static int test_array [1 - 2 * !(!HAVE_LONG)]; |
| 15503 |
test_array [0] = 0; |
| 15504 |
return test_array [0]; |
| 15505 |
|
| 15506 |
; |
| 15507 |
return 0; |
| 15508 |
} |
| 15509 |
_ACEOF |
| 15510 |
if ac_fn_c_try_compile "$LINENO" |
| 15511 |
then : |
| 15512 |
continue |
| 15513 |
fi |
| 15514 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15515 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15516 |
/* end confdefs.h. */ |
| 15517 |
$hdr |
| 15518 |
$rbcv_sizeof_var |
| 15519 |
int |
| 15520 |
main (void) |
| 15521 |
{ |
| 15522 |
static int test_array [1 - 2 * !(HAVE_LONG == (SIZEOF_LONG == ($rbcv_sizeof_size / $rb_cv_char_bit)))]; |
| 15523 |
test_array [0] = 0; |
| 15524 |
return test_array [0]; |
| 15525 |
|
| 15526 |
; |
| 15527 |
return 0; |
| 15528 |
} |
| 15529 |
_ACEOF |
| 15530 |
if ac_fn_c_try_compile "$LINENO" |
| 15531 |
then : |
| 15532 |
ac_cv_sizeof_long="${ac_cv_sizeof_long+${ac_cv_sizeof_long-} }${rbcv_sizeof_type}${rbcv_sizeof_size}"; continue |
| 15533 |
fi |
| 15534 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15535 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15536 |
/* end confdefs.h. */ |
| 15537 |
$hdr |
| 15538 |
|
| 15539 |
#if HAVE_LONG |
| 15540 |
$rbcv_sizeof_var |
| 15541 |
#else |
| 15542 |
#define SIZEOF_LONG 0 |
| 15543 |
#endif |
| 15544 |
|
| 15545 |
int |
| 15546 |
main (void) |
| 15547 |
{ |
| 15548 |
static int test_array [1 - 2 * !(HAVE_LONG == (SIZEOF_LONG == (($rbcv_sizeof_size / $rb_cv_char_bit))))]; |
| 15549 |
test_array [0] = 0; |
| 15550 |
return test_array [0]; |
| 15551 |
|
| 15552 |
; |
| 15553 |
return 0; |
| 15554 |
} |
| 15555 |
_ACEOF |
| 15556 |
if ac_fn_c_try_compile "$LINENO" |
| 15557 |
then : |
| 15558 |
ac_cv_sizeof_long="${ac_cv_sizeof_long+${ac_cv_sizeof_long-} }${rbcv_sizeof_type}${rbcv_sizeof_size}" |
| 15559 |
fi |
| 15560 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15561 |
done |
| 15562 |
done |
| 15563 |
} |
| 15564 |
test "${ac_cv_sizeof_long#[1-9]}" = "${ac_cv_sizeof_long}" && |
| 15565 |
test "${ac_cv_sizeof_long#SIZEOF_}" = "${ac_cv_sizeof_long}" && { |
| 15566 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15567 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_LONG" "rbcv_sizeof_type" "$ac_includes_default |
| 15568 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 15569 |
#else} |
| 15570 |
$rbcv_sizeof_var |
| 15571 |
${rbcv_sizeof_cond+#endif} |
| 15572 |
#ifndef SIZEOF_LONG |
| 15573 |
#define SIZEOF_LONG 0 |
| 15574 |
#endif" |
| 15575 |
then : |
| 15576 |
|
| 15577 |
else $as_nop |
| 15578 |
rbcv_sizeof_type=0 |
| 15579 |
fi |
| 15580 |
|
| 15581 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15582 |
if test ${rbcv_sizeof_type-0} != 0 |
| 15583 |
then : |
| 15584 |
|
| 15585 |
ac_cv_sizeof_long="${ac_cv_sizeof_long+${ac_cv_sizeof_long-} }${rbcv_sizeof_type}" |
| 15586 |
|
| 15587 |
fi |
| 15588 |
} |
| 15589 |
: ${ac_cv_sizeof_long=0} |
| 15590 |
|
| 15591 |
fi |
| 15592 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 15593 |
colorize_result "$ac_cv_sizeof_long" ; } |
| 15594 |
{ |
| 15595 |
unset rbcv_sizeof_cond |
| 15596 |
for rbcv_sizeof_type in ${ac_cv_sizeof_long-}; do |
| 15597 |
case "$rbcv_sizeof_type" in #( |
| 15598 |
[0-9]*|SIZEOF_*) : |
| 15599 |
|
| 15600 |
${rbcv_sizeof_cond+echo "#else"} |
| 15601 |
echo "#define SIZEOF_LONG $rbcv_sizeof_type" |
| 15602 |
break |
| 15603 |
;; #( |
| 15604 |
*) : |
| 15605 |
|
| 15606 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 15607 |
case $rbcv_sizeof_type in #( |
| 15608 |
*:*) : |
| 15609 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 15610 |
*) : |
| 15611 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 15612 |
esac |
| 15613 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 15614 |
echo "#define SIZEOF_LONG $rbcv_sizeof_size" |
| 15615 |
rbcv_sizeof_cond=1 |
| 15616 |
;; |
| 15617 |
esac |
| 15618 |
done |
| 15619 |
${rbcv_sizeof_cond+echo "#endif"} |
| 15620 |
} >> confdefs.h |
| 15621 |
else |
| 15622 |
# The cast to long int works around a bug in the HP C Compiler |
| 15623 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15624 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15625 |
# This bug is HP SR number 8606223364. |
| 15626 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
| 15627 |
printf %s "checking size of long... " >&6; } |
| 15628 |
if test ${ac_cv_sizeof_long+y} |
| 15629 |
then : |
| 15630 |
printf %s "(cached) " >&6 |
| 15631 |
else $as_nop |
| 15632 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" |
| 15633 |
then : |
| 15634 |
|
| 15635 |
else $as_nop |
| 15636 |
if test "$ac_cv_type_long" = yes; then |
| 15637 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15638 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15639 |
as_fn_error 77 "cannot compute sizeof (long) |
| 15640 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15641 |
else |
| 15642 |
ac_cv_sizeof_long=0 |
| 15643 |
fi |
| 15644 |
fi |
| 15645 |
|
| 15646 |
fi |
| 15647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
| 15648 |
colorize_result "$ac_cv_sizeof_long" ; } |
| 15649 |
|
| 15650 |
|
| 15651 |
|
| 15652 |
printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h |
| 15653 |
|
| 15654 |
|
| 15655 |
fi |
| 15656 |
|
| 15657 |
|
| 15658 |
if test "$universal_binary" = yes; then |
| 15659 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 15660 |
printf %s "checking size of long long... " >&6; } |
| 15661 |
if test ${ac_cv_sizeof_long_long+y} |
| 15662 |
then : |
| 15663 |
printf %s "(cached) " >&6 |
| 15664 |
else $as_nop |
| 15665 |
|
| 15666 |
unset ac_cv_sizeof_long_long |
| 15667 |
rbcv_sizeof_var=" |
| 15668 |
typedef long long ac__type_sizeof_; |
| 15669 |
static ac__type_sizeof_ *rbcv_ptr; |
| 15670 |
#define SIZEOF_LONG_LONG sizeof((*rbcv_ptr)) |
| 15671 |
" |
| 15672 |
|
| 15673 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_LONG_LONG" "ac_cv_sizeof_long_long" "$ac_includes_default |
| 15674 |
$rbcv_sizeof_var" |
| 15675 |
then : |
| 15676 |
|
| 15677 |
else $as_nop |
| 15678 |
ac_cv_sizeof_long_long= |
| 15679 |
fi |
| 15680 |
|
| 15681 |
|
| 15682 |
unset rbcv_sizeof_cond |
| 15683 |
|
| 15684 |
test "${ac_cv_sizeof_long_long#[1-9]}" = "${ac_cv_sizeof_long_long}" && |
| 15685 |
{ |
| 15686 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15687 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_LONG_LONG" "rbcv_sizeof_type" "$ac_includes_default |
| 15688 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 15689 |
#else} |
| 15690 |
$rbcv_sizeof_var |
| 15691 |
${rbcv_sizeof_cond+#endif} |
| 15692 |
#ifndef SIZEOF_LONG_LONG |
| 15693 |
#define SIZEOF_LONG_LONG 0 |
| 15694 |
#endif" |
| 15695 |
then : |
| 15696 |
|
| 15697 |
else $as_nop |
| 15698 |
rbcv_sizeof_type=0 |
| 15699 |
fi |
| 15700 |
|
| 15701 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15702 |
if test ${rbcv_sizeof_type-0} != 0 |
| 15703 |
then : |
| 15704 |
|
| 15705 |
ac_cv_sizeof_long_long="${ac_cv_sizeof_long_long+${ac_cv_sizeof_long_long-} }${rbcv_sizeof_type}" |
| 15706 |
|
| 15707 |
fi |
| 15708 |
} |
| 15709 |
: ${ac_cv_sizeof_long_long=0} |
| 15710 |
|
| 15711 |
fi |
| 15712 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 15713 |
colorize_result "$ac_cv_sizeof_long_long" ; } |
| 15714 |
{ |
| 15715 |
unset rbcv_sizeof_cond |
| 15716 |
for rbcv_sizeof_type in ${ac_cv_sizeof_long_long-}; do |
| 15717 |
case "$rbcv_sizeof_type" in #( |
| 15718 |
[0-9]*|SIZEOF_*) : |
| 15719 |
|
| 15720 |
${rbcv_sizeof_cond+echo "#else"} |
| 15721 |
echo "#define SIZEOF_LONG_LONG $rbcv_sizeof_type" |
| 15722 |
break |
| 15723 |
;; #( |
| 15724 |
*) : |
| 15725 |
|
| 15726 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 15727 |
case $rbcv_sizeof_type in #( |
| 15728 |
*:*) : |
| 15729 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 15730 |
*) : |
| 15731 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 15732 |
esac |
| 15733 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 15734 |
echo "#define SIZEOF_LONG_LONG $rbcv_sizeof_size" |
| 15735 |
rbcv_sizeof_cond=1 |
| 15736 |
;; |
| 15737 |
esac |
| 15738 |
done |
| 15739 |
${rbcv_sizeof_cond+echo "#endif"} |
| 15740 |
} >> confdefs.h |
| 15741 |
else |
| 15742 |
# The cast to long int works around a bug in the HP C Compiler |
| 15743 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15744 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15745 |
# This bug is HP SR number 8606223364. |
| 15746 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
| 15747 |
printf %s "checking size of long long... " >&6; } |
| 15748 |
if test ${ac_cv_sizeof_long_long+y} |
| 15749 |
then : |
| 15750 |
printf %s "(cached) " >&6 |
| 15751 |
else $as_nop |
| 15752 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" |
| 15753 |
then : |
| 15754 |
|
| 15755 |
else $as_nop |
| 15756 |
if test "$ac_cv_type_long_long" = yes; then |
| 15757 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15758 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15759 |
as_fn_error 77 "cannot compute sizeof (long long) |
| 15760 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15761 |
else |
| 15762 |
ac_cv_sizeof_long_long=0 |
| 15763 |
fi |
| 15764 |
fi |
| 15765 |
|
| 15766 |
fi |
| 15767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
| 15768 |
colorize_result "$ac_cv_sizeof_long_long" ; } |
| 15769 |
|
| 15770 |
|
| 15771 |
|
| 15772 |
printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h |
| 15773 |
|
| 15774 |
|
| 15775 |
fi |
| 15776 |
|
| 15777 |
|
| 15778 |
if test "$universal_binary" = yes; then |
| 15779 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 |
| 15780 |
printf %s "checking size of __int64... " >&6; } |
| 15781 |
if test ${ac_cv_sizeof___int64+y} |
| 15782 |
then : |
| 15783 |
printf %s "(cached) " >&6 |
| 15784 |
else $as_nop |
| 15785 |
|
| 15786 |
unset ac_cv_sizeof___int64 |
| 15787 |
rbcv_sizeof_var=" |
| 15788 |
typedef __int64 ac__type_sizeof_; |
| 15789 |
static ac__type_sizeof_ *rbcv_ptr; |
| 15790 |
#define SIZEOF___INT64 sizeof((*rbcv_ptr)) |
| 15791 |
" |
| 15792 |
test -z "${ac_cv_sizeof___int64+set}" && { |
| 15793 |
for rbcv_sizeof_type in 8; do |
| 15794 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15795 |
/* end confdefs.h. */ |
| 15796 |
|
| 15797 |
$rbcv_sizeof_var |
| 15798 |
|
| 15799 |
int |
| 15800 |
main (void) |
| 15801 |
{ |
| 15802 |
static int test_array [1 - 2 * !(SIZEOF___INT64 == sizeof($rbcv_sizeof_type))]; |
| 15803 |
test_array [0] = 0; |
| 15804 |
return test_array [0]; |
| 15805 |
|
| 15806 |
; |
| 15807 |
return 0; |
| 15808 |
} |
| 15809 |
_ACEOF |
| 15810 |
if ac_fn_c_try_compile "$LINENO" |
| 15811 |
then : |
| 15812 |
|
| 15813 |
ac_cv_sizeof___int64=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 15814 |
break |
| 15815 |
fi |
| 15816 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15817 |
done |
| 15818 |
} |
| 15819 |
unset rbcv_sizeof_cond |
| 15820 |
test -z "${ac_cv_sizeof___int64+set}" && { |
| 15821 |
for rbcv_sizeof_size in 32 64 128; do |
| 15822 |
for rbcv_sizeof_type in ILP LP; do |
| 15823 |
rbcv_sizeof_cond="${rbcv_sizeof_cond} |
| 15824 |
#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size})" |
| 15825 |
hdr=" |
| 15826 |
#if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size}) |
| 15827 |
# define HAVE___INT64 1 |
| 15828 |
#else |
| 15829 |
# define HAVE___INT64 0 |
| 15830 |
#endif |
| 15831 |
" |
| 15832 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15833 |
/* end confdefs.h. */ |
| 15834 |
$hdr |
| 15835 |
int |
| 15836 |
main (void) |
| 15837 |
{ |
| 15838 |
static int test_array [1 - 2 * !(!HAVE___INT64)]; |
| 15839 |
test_array [0] = 0; |
| 15840 |
return test_array [0]; |
| 15841 |
|
| 15842 |
; |
| 15843 |
return 0; |
| 15844 |
} |
| 15845 |
_ACEOF |
| 15846 |
if ac_fn_c_try_compile "$LINENO" |
| 15847 |
then : |
| 15848 |
continue |
| 15849 |
fi |
| 15850 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15851 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15852 |
/* end confdefs.h. */ |
| 15853 |
$hdr |
| 15854 |
$rbcv_sizeof_var |
| 15855 |
int |
| 15856 |
main (void) |
| 15857 |
{ |
| 15858 |
static int test_array [1 - 2 * !(HAVE___INT64 == (SIZEOF___INT64 == ($rbcv_sizeof_size / $rb_cv_char_bit)))]; |
| 15859 |
test_array [0] = 0; |
| 15860 |
return test_array [0]; |
| 15861 |
|
| 15862 |
; |
| 15863 |
return 0; |
| 15864 |
} |
| 15865 |
_ACEOF |
| 15866 |
if ac_fn_c_try_compile "$LINENO" |
| 15867 |
then : |
| 15868 |
ac_cv_sizeof___int64="${ac_cv_sizeof___int64+${ac_cv_sizeof___int64-} }${rbcv_sizeof_type}${rbcv_sizeof_size}"; continue |
| 15869 |
fi |
| 15870 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15871 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15872 |
/* end confdefs.h. */ |
| 15873 |
$hdr |
| 15874 |
|
| 15875 |
#if HAVE___INT64 |
| 15876 |
$rbcv_sizeof_var |
| 15877 |
#else |
| 15878 |
#define SIZEOF___INT64 0 |
| 15879 |
#endif |
| 15880 |
|
| 15881 |
int |
| 15882 |
main (void) |
| 15883 |
{ |
| 15884 |
static int test_array [1 - 2 * !(HAVE___INT64 == (SIZEOF___INT64 == (8)))]; |
| 15885 |
test_array [0] = 0; |
| 15886 |
return test_array [0]; |
| 15887 |
|
| 15888 |
; |
| 15889 |
return 0; |
| 15890 |
} |
| 15891 |
_ACEOF |
| 15892 |
if ac_fn_c_try_compile "$LINENO" |
| 15893 |
then : |
| 15894 |
ac_cv_sizeof___int64="${ac_cv_sizeof___int64+${ac_cv_sizeof___int64-} }${rbcv_sizeof_type}${rbcv_sizeof_size}:8" |
| 15895 |
fi |
| 15896 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 15897 |
done |
| 15898 |
done |
| 15899 |
} |
| 15900 |
test "${ac_cv_sizeof___int64#[1-9]}" = "${ac_cv_sizeof___int64}" && |
| 15901 |
test "${ac_cv_sizeof___int64#SIZEOF_}" = "${ac_cv_sizeof___int64}" && { |
| 15902 |
test "$universal_binary" = yes && cross_compiling=yes |
| 15903 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF___INT64" "rbcv_sizeof_type" "$ac_includes_default |
| 15904 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 15905 |
#else} |
| 15906 |
$rbcv_sizeof_var |
| 15907 |
${rbcv_sizeof_cond+#endif} |
| 15908 |
#ifndef SIZEOF___INT64 |
| 15909 |
#define SIZEOF___INT64 0 |
| 15910 |
#endif" |
| 15911 |
then : |
| 15912 |
|
| 15913 |
else $as_nop |
| 15914 |
rbcv_sizeof_type=0 |
| 15915 |
fi |
| 15916 |
|
| 15917 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 15918 |
if test ${rbcv_sizeof_type-0} != 0 |
| 15919 |
then : |
| 15920 |
|
| 15921 |
ac_cv_sizeof___int64="${ac_cv_sizeof___int64+${ac_cv_sizeof___int64-} }${rbcv_sizeof_type}" |
| 15922 |
|
| 15923 |
fi |
| 15924 |
} |
| 15925 |
: ${ac_cv_sizeof___int64=0} |
| 15926 |
|
| 15927 |
fi |
| 15928 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 |
| 15929 |
colorize_result "$ac_cv_sizeof___int64" ; } |
| 15930 |
{ |
| 15931 |
unset rbcv_sizeof_cond |
| 15932 |
for rbcv_sizeof_type in ${ac_cv_sizeof___int64-}; do |
| 15933 |
case "$rbcv_sizeof_type" in #( |
| 15934 |
[0-9]*|SIZEOF_*) : |
| 15935 |
|
| 15936 |
${rbcv_sizeof_cond+echo "#else"} |
| 15937 |
echo "#define SIZEOF___INT64 $rbcv_sizeof_type" |
| 15938 |
break |
| 15939 |
;; #( |
| 15940 |
*) : |
| 15941 |
|
| 15942 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 15943 |
case $rbcv_sizeof_type in #( |
| 15944 |
*:*) : |
| 15945 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 15946 |
*) : |
| 15947 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 15948 |
esac |
| 15949 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 15950 |
echo "#define SIZEOF___INT64 $rbcv_sizeof_size" |
| 15951 |
rbcv_sizeof_cond=1 |
| 15952 |
;; |
| 15953 |
esac |
| 15954 |
done |
| 15955 |
${rbcv_sizeof_cond+echo "#endif"} |
| 15956 |
} >> confdefs.h |
| 15957 |
else |
| 15958 |
# The cast to long int works around a bug in the HP C Compiler |
| 15959 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 15960 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 15961 |
# This bug is HP SR number 8606223364. |
| 15962 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5 |
| 15963 |
printf %s "checking size of __int64... " >&6; } |
| 15964 |
if test ${ac_cv_sizeof___int64+y} |
| 15965 |
then : |
| 15966 |
printf %s "(cached) " >&6 |
| 15967 |
else $as_nop |
| 15968 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64" "$ac_includes_default" |
| 15969 |
then : |
| 15970 |
|
| 15971 |
else $as_nop |
| 15972 |
if test "$ac_cv_type___int64" = yes; then |
| 15973 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 15974 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 15975 |
as_fn_error 77 "cannot compute sizeof (__int64) |
| 15976 |
See \`config.log' for more details" "$LINENO" 5; } |
| 15977 |
else |
| 15978 |
ac_cv_sizeof___int64=0 |
| 15979 |
fi |
| 15980 |
fi |
| 15981 |
|
| 15982 |
fi |
| 15983 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5 |
| 15984 |
colorize_result "$ac_cv_sizeof___int64" ; } |
| 15985 |
|
| 15986 |
|
| 15987 |
|
| 15988 |
printf "%s\n" "#define SIZEOF___INT64 $ac_cv_sizeof___int64" >>confdefs.h |
| 15989 |
|
| 15990 |
|
| 15991 |
fi |
| 15992 |
|
| 15993 |
|
| 15994 |
if test "$universal_binary" = yes; then |
| 15995 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5 |
| 15996 |
printf %s "checking size of __int128... " >&6; } |
| 15997 |
if test ${ac_cv_sizeof___int128+y} |
| 15998 |
then : |
| 15999 |
printf %s "(cached) " >&6 |
| 16000 |
else $as_nop |
| 16001 |
|
| 16002 |
unset ac_cv_sizeof___int128 |
| 16003 |
rbcv_sizeof_var=" |
| 16004 |
typedef __int128 ac__type_sizeof_; |
| 16005 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16006 |
#define SIZEOF___INT128 sizeof((*rbcv_ptr)) |
| 16007 |
" |
| 16008 |
test -z "${ac_cv_sizeof___int128+set}" && { |
| 16009 |
for rbcv_sizeof_type in 16; do |
| 16010 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16011 |
/* end confdefs.h. */ |
| 16012 |
|
| 16013 |
$rbcv_sizeof_var |
| 16014 |
|
| 16015 |
int |
| 16016 |
main (void) |
| 16017 |
{ |
| 16018 |
static int test_array [1 - 2 * !(SIZEOF___INT128 == sizeof($rbcv_sizeof_type))]; |
| 16019 |
test_array [0] = 0; |
| 16020 |
return test_array [0]; |
| 16021 |
|
| 16022 |
; |
| 16023 |
return 0; |
| 16024 |
} |
| 16025 |
_ACEOF |
| 16026 |
if ac_fn_c_try_compile "$LINENO" |
| 16027 |
then : |
| 16028 |
|
| 16029 |
ac_cv_sizeof___int128=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 16030 |
break |
| 16031 |
fi |
| 16032 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16033 |
done |
| 16034 |
} |
| 16035 |
unset rbcv_sizeof_cond |
| 16036 |
test -z "${ac_cv_sizeof___int128+set}" && { |
| 16037 |
for rbcv_sizeof_size in 32 64 128; do |
| 16038 |
for rbcv_sizeof_type in ILP LP; do |
| 16039 |
rbcv_sizeof_cond="${rbcv_sizeof_cond} |
| 16040 |
#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size})" |
| 16041 |
hdr=" |
| 16042 |
#if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size}) |
| 16043 |
# define HAVE___INT128 1 |
| 16044 |
#else |
| 16045 |
# define HAVE___INT128 0 |
| 16046 |
#endif |
| 16047 |
" |
| 16048 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16049 |
/* end confdefs.h. */ |
| 16050 |
$hdr |
| 16051 |
int |
| 16052 |
main (void) |
| 16053 |
{ |
| 16054 |
static int test_array [1 - 2 * !(!HAVE___INT128)]; |
| 16055 |
test_array [0] = 0; |
| 16056 |
return test_array [0]; |
| 16057 |
|
| 16058 |
; |
| 16059 |
return 0; |
| 16060 |
} |
| 16061 |
_ACEOF |
| 16062 |
if ac_fn_c_try_compile "$LINENO" |
| 16063 |
then : |
| 16064 |
continue |
| 16065 |
fi |
| 16066 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16067 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16068 |
/* end confdefs.h. */ |
| 16069 |
$hdr |
| 16070 |
$rbcv_sizeof_var |
| 16071 |
int |
| 16072 |
main (void) |
| 16073 |
{ |
| 16074 |
static int test_array [1 - 2 * !(HAVE___INT128 == (SIZEOF___INT128 == ($rbcv_sizeof_size / $rb_cv_char_bit)))]; |
| 16075 |
test_array [0] = 0; |
| 16076 |
return test_array [0]; |
| 16077 |
|
| 16078 |
; |
| 16079 |
return 0; |
| 16080 |
} |
| 16081 |
_ACEOF |
| 16082 |
if ac_fn_c_try_compile "$LINENO" |
| 16083 |
then : |
| 16084 |
ac_cv_sizeof___int128="${ac_cv_sizeof___int128+${ac_cv_sizeof___int128-} }${rbcv_sizeof_type}${rbcv_sizeof_size}"; continue |
| 16085 |
fi |
| 16086 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16087 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16088 |
/* end confdefs.h. */ |
| 16089 |
$hdr |
| 16090 |
|
| 16091 |
#if HAVE___INT128 |
| 16092 |
$rbcv_sizeof_var |
| 16093 |
#else |
| 16094 |
#define SIZEOF___INT128 0 |
| 16095 |
#endif |
| 16096 |
|
| 16097 |
int |
| 16098 |
main (void) |
| 16099 |
{ |
| 16100 |
static int test_array [1 - 2 * !(HAVE___INT128 == (SIZEOF___INT128 == (16)))]; |
| 16101 |
test_array [0] = 0; |
| 16102 |
return test_array [0]; |
| 16103 |
|
| 16104 |
; |
| 16105 |
return 0; |
| 16106 |
} |
| 16107 |
_ACEOF |
| 16108 |
if ac_fn_c_try_compile "$LINENO" |
| 16109 |
then : |
| 16110 |
ac_cv_sizeof___int128="${ac_cv_sizeof___int128+${ac_cv_sizeof___int128-} }${rbcv_sizeof_type}${rbcv_sizeof_size}:16" |
| 16111 |
fi |
| 16112 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16113 |
done |
| 16114 |
done |
| 16115 |
} |
| 16116 |
test "${ac_cv_sizeof___int128#[1-9]}" = "${ac_cv_sizeof___int128}" && |
| 16117 |
test "${ac_cv_sizeof___int128#SIZEOF_}" = "${ac_cv_sizeof___int128}" && { |
| 16118 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16119 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF___INT128" "rbcv_sizeof_type" "$ac_includes_default |
| 16120 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16121 |
#else} |
| 16122 |
$rbcv_sizeof_var |
| 16123 |
${rbcv_sizeof_cond+#endif} |
| 16124 |
#ifndef SIZEOF___INT128 |
| 16125 |
#define SIZEOF___INT128 0 |
| 16126 |
#endif" |
| 16127 |
then : |
| 16128 |
|
| 16129 |
else $as_nop |
| 16130 |
rbcv_sizeof_type=0 |
| 16131 |
fi |
| 16132 |
|
| 16133 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16134 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16135 |
then : |
| 16136 |
|
| 16137 |
ac_cv_sizeof___int128="${ac_cv_sizeof___int128+${ac_cv_sizeof___int128-} }${rbcv_sizeof_type}" |
| 16138 |
|
| 16139 |
fi |
| 16140 |
} |
| 16141 |
: ${ac_cv_sizeof___int128=0} |
| 16142 |
|
| 16143 |
fi |
| 16144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5 |
| 16145 |
colorize_result "$ac_cv_sizeof___int128" ; } |
| 16146 |
{ |
| 16147 |
unset rbcv_sizeof_cond |
| 16148 |
for rbcv_sizeof_type in ${ac_cv_sizeof___int128-}; do |
| 16149 |
case "$rbcv_sizeof_type" in #( |
| 16150 |
[0-9]*|SIZEOF_*) : |
| 16151 |
|
| 16152 |
${rbcv_sizeof_cond+echo "#else"} |
| 16153 |
echo "#define SIZEOF___INT128 $rbcv_sizeof_type" |
| 16154 |
break |
| 16155 |
;; #( |
| 16156 |
*) : |
| 16157 |
|
| 16158 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16159 |
case $rbcv_sizeof_type in #( |
| 16160 |
*:*) : |
| 16161 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16162 |
*) : |
| 16163 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16164 |
esac |
| 16165 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16166 |
echo "#define SIZEOF___INT128 $rbcv_sizeof_size" |
| 16167 |
rbcv_sizeof_cond=1 |
| 16168 |
;; |
| 16169 |
esac |
| 16170 |
done |
| 16171 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16172 |
} >> confdefs.h |
| 16173 |
else |
| 16174 |
# The cast to long int works around a bug in the HP C Compiler |
| 16175 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16176 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16177 |
# This bug is HP SR number 8606223364. |
| 16178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of __int128" >&5 |
| 16179 |
printf %s "checking size of __int128... " >&6; } |
| 16180 |
if test ${ac_cv_sizeof___int128+y} |
| 16181 |
then : |
| 16182 |
printf %s "(cached) " >&6 |
| 16183 |
else $as_nop |
| 16184 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int128))" "ac_cv_sizeof___int128" "$ac_includes_default" |
| 16185 |
then : |
| 16186 |
|
| 16187 |
else $as_nop |
| 16188 |
if test "$ac_cv_type___int128" = yes; then |
| 16189 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16190 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16191 |
as_fn_error 77 "cannot compute sizeof (__int128) |
| 16192 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16193 |
else |
| 16194 |
ac_cv_sizeof___int128=0 |
| 16195 |
fi |
| 16196 |
fi |
| 16197 |
|
| 16198 |
fi |
| 16199 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int128" >&5 |
| 16200 |
colorize_result "$ac_cv_sizeof___int128" ; } |
| 16201 |
|
| 16202 |
|
| 16203 |
|
| 16204 |
printf "%s\n" "#define SIZEOF___INT128 $ac_cv_sizeof___int128" >>confdefs.h |
| 16205 |
|
| 16206 |
|
| 16207 |
fi |
| 16208 |
|
| 16209 |
|
| 16210 |
if test "$universal_binary" = yes; then |
| 16211 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 16212 |
printf %s "checking size of off_t... " >&6; } |
| 16213 |
if test ${ac_cv_sizeof_off_t+y} |
| 16214 |
then : |
| 16215 |
printf %s "(cached) " >&6 |
| 16216 |
else $as_nop |
| 16217 |
|
| 16218 |
unset ac_cv_sizeof_off_t |
| 16219 |
rbcv_sizeof_var=" |
| 16220 |
typedef off_t ac__type_sizeof_; |
| 16221 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16222 |
#define SIZEOF_OFF_T sizeof((*rbcv_ptr)) |
| 16223 |
" |
| 16224 |
|
| 16225 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_OFF_T" "ac_cv_sizeof_off_t" "$ac_includes_default |
| 16226 |
$rbcv_sizeof_var" |
| 16227 |
then : |
| 16228 |
|
| 16229 |
else $as_nop |
| 16230 |
ac_cv_sizeof_off_t= |
| 16231 |
fi |
| 16232 |
|
| 16233 |
|
| 16234 |
unset rbcv_sizeof_cond |
| 16235 |
|
| 16236 |
test "${ac_cv_sizeof_off_t#[1-9]}" = "${ac_cv_sizeof_off_t}" && |
| 16237 |
{ |
| 16238 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16239 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_OFF_T" "rbcv_sizeof_type" "$ac_includes_default |
| 16240 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16241 |
#else} |
| 16242 |
$rbcv_sizeof_var |
| 16243 |
${rbcv_sizeof_cond+#endif} |
| 16244 |
#ifndef SIZEOF_OFF_T |
| 16245 |
#define SIZEOF_OFF_T 0 |
| 16246 |
#endif" |
| 16247 |
then : |
| 16248 |
|
| 16249 |
else $as_nop |
| 16250 |
rbcv_sizeof_type=0 |
| 16251 |
fi |
| 16252 |
|
| 16253 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16254 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16255 |
then : |
| 16256 |
|
| 16257 |
ac_cv_sizeof_off_t="${ac_cv_sizeof_off_t+${ac_cv_sizeof_off_t-} }${rbcv_sizeof_type}" |
| 16258 |
|
| 16259 |
fi |
| 16260 |
} |
| 16261 |
: ${ac_cv_sizeof_off_t=0} |
| 16262 |
|
| 16263 |
fi |
| 16264 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 16265 |
colorize_result "$ac_cv_sizeof_off_t" ; } |
| 16266 |
{ |
| 16267 |
unset rbcv_sizeof_cond |
| 16268 |
for rbcv_sizeof_type in ${ac_cv_sizeof_off_t-}; do |
| 16269 |
case "$rbcv_sizeof_type" in #( |
| 16270 |
[0-9]*|SIZEOF_*) : |
| 16271 |
|
| 16272 |
${rbcv_sizeof_cond+echo "#else"} |
| 16273 |
echo "#define SIZEOF_OFF_T $rbcv_sizeof_type" |
| 16274 |
break |
| 16275 |
;; #( |
| 16276 |
*) : |
| 16277 |
|
| 16278 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16279 |
case $rbcv_sizeof_type in #( |
| 16280 |
*:*) : |
| 16281 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16282 |
*) : |
| 16283 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16284 |
esac |
| 16285 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16286 |
echo "#define SIZEOF_OFF_T $rbcv_sizeof_size" |
| 16287 |
rbcv_sizeof_cond=1 |
| 16288 |
;; |
| 16289 |
esac |
| 16290 |
done |
| 16291 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16292 |
} >> confdefs.h |
| 16293 |
else |
| 16294 |
# The cast to long int works around a bug in the HP C Compiler |
| 16295 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16296 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16297 |
# This bug is HP SR number 8606223364. |
| 16298 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 |
| 16299 |
printf %s "checking size of off_t... " >&6; } |
| 16300 |
if test ${ac_cv_sizeof_off_t+y} |
| 16301 |
then : |
| 16302 |
printf %s "(cached) " >&6 |
| 16303 |
else $as_nop |
| 16304 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" |
| 16305 |
then : |
| 16306 |
|
| 16307 |
else $as_nop |
| 16308 |
if test "$ac_cv_type_off_t" = yes; then |
| 16309 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16310 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16311 |
as_fn_error 77 "cannot compute sizeof (off_t) |
| 16312 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16313 |
else |
| 16314 |
ac_cv_sizeof_off_t=0 |
| 16315 |
fi |
| 16316 |
fi |
| 16317 |
|
| 16318 |
fi |
| 16319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
| 16320 |
colorize_result "$ac_cv_sizeof_off_t" ; } |
| 16321 |
|
| 16322 |
|
| 16323 |
|
| 16324 |
printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h |
| 16325 |
|
| 16326 |
|
| 16327 |
fi |
| 16328 |
|
| 16329 |
|
| 16330 |
if test "$universal_binary" = yes; then |
| 16331 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 |
| 16332 |
printf %s "checking size of void*... " >&6; } |
| 16333 |
if test ${ac_cv_sizeof_voidp+y} |
| 16334 |
then : |
| 16335 |
printf %s "(cached) " >&6 |
| 16336 |
else $as_nop |
| 16337 |
|
| 16338 |
unset ac_cv_sizeof_voidp |
| 16339 |
rbcv_sizeof_var=" |
| 16340 |
typedef void* ac__type_sizeof_; |
| 16341 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16342 |
#define SIZEOF_VOIDP sizeof((*rbcv_ptr)) |
| 16343 |
" |
| 16344 |
test -z "${ac_cv_sizeof_voidp+set}" && { |
| 16345 |
for rbcv_sizeof_type in int long "long long"; do |
| 16346 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16347 |
/* end confdefs.h. */ |
| 16348 |
|
| 16349 |
$rbcv_sizeof_var |
| 16350 |
|
| 16351 |
int |
| 16352 |
main (void) |
| 16353 |
{ |
| 16354 |
static int test_array [1 - 2 * !(SIZEOF_VOIDP == sizeof($rbcv_sizeof_type))]; |
| 16355 |
test_array [0] = 0; |
| 16356 |
return test_array [0]; |
| 16357 |
|
| 16358 |
; |
| 16359 |
return 0; |
| 16360 |
} |
| 16361 |
_ACEOF |
| 16362 |
if ac_fn_c_try_compile "$LINENO" |
| 16363 |
then : |
| 16364 |
|
| 16365 |
ac_cv_sizeof_voidp=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 16366 |
break |
| 16367 |
fi |
| 16368 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16369 |
done |
| 16370 |
} |
| 16371 |
unset rbcv_sizeof_cond |
| 16372 |
test -z "${ac_cv_sizeof_voidp+set}" && { |
| 16373 |
for rbcv_sizeof_size in 32 64 128; do |
| 16374 |
for rbcv_sizeof_type in ILP LP LLP; do |
| 16375 |
rbcv_sizeof_cond="${rbcv_sizeof_cond} |
| 16376 |
#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size})" |
| 16377 |
hdr=" |
| 16378 |
#if defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}__) || defined(__${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(_${rbcv_sizeof_type}${rbcv_sizeof_size}) || defined(${rbcv_sizeof_type}${rbcv_sizeof_size}) |
| 16379 |
# define HAVE_VOIDP 1 |
| 16380 |
#else |
| 16381 |
# define HAVE_VOIDP 0 |
| 16382 |
#endif |
| 16383 |
" |
| 16384 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16385 |
/* end confdefs.h. */ |
| 16386 |
$hdr |
| 16387 |
int |
| 16388 |
main (void) |
| 16389 |
{ |
| 16390 |
static int test_array [1 - 2 * !(!HAVE_VOIDP)]; |
| 16391 |
test_array [0] = 0; |
| 16392 |
return test_array [0]; |
| 16393 |
|
| 16394 |
; |
| 16395 |
return 0; |
| 16396 |
} |
| 16397 |
_ACEOF |
| 16398 |
if ac_fn_c_try_compile "$LINENO" |
| 16399 |
then : |
| 16400 |
continue |
| 16401 |
fi |
| 16402 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16403 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16404 |
/* end confdefs.h. */ |
| 16405 |
$hdr |
| 16406 |
$rbcv_sizeof_var |
| 16407 |
int |
| 16408 |
main (void) |
| 16409 |
{ |
| 16410 |
static int test_array [1 - 2 * !(HAVE_VOIDP == (SIZEOF_VOIDP == ($rbcv_sizeof_size / $rb_cv_char_bit)))]; |
| 16411 |
test_array [0] = 0; |
| 16412 |
return test_array [0]; |
| 16413 |
|
| 16414 |
; |
| 16415 |
return 0; |
| 16416 |
} |
| 16417 |
_ACEOF |
| 16418 |
if ac_fn_c_try_compile "$LINENO" |
| 16419 |
then : |
| 16420 |
ac_cv_sizeof_voidp="${ac_cv_sizeof_voidp+${ac_cv_sizeof_voidp-} }${rbcv_sizeof_type}${rbcv_sizeof_size}"; continue |
| 16421 |
fi |
| 16422 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16423 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16424 |
/* end confdefs.h. */ |
| 16425 |
$hdr |
| 16426 |
|
| 16427 |
#if HAVE_VOIDP |
| 16428 |
$rbcv_sizeof_var |
| 16429 |
#else |
| 16430 |
#define SIZEOF_VOIDP 0 |
| 16431 |
#endif |
| 16432 |
|
| 16433 |
int |
| 16434 |
main (void) |
| 16435 |
{ |
| 16436 |
static int test_array [1 - 2 * !(HAVE_VOIDP == (SIZEOF_VOIDP == (($rbcv_sizeof_size / $rb_cv_char_bit))))]; |
| 16437 |
test_array [0] = 0; |
| 16438 |
return test_array [0]; |
| 16439 |
|
| 16440 |
; |
| 16441 |
return 0; |
| 16442 |
} |
| 16443 |
_ACEOF |
| 16444 |
if ac_fn_c_try_compile "$LINENO" |
| 16445 |
then : |
| 16446 |
ac_cv_sizeof_voidp="${ac_cv_sizeof_voidp+${ac_cv_sizeof_voidp-} }${rbcv_sizeof_type}${rbcv_sizeof_size}" |
| 16447 |
fi |
| 16448 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16449 |
done |
| 16450 |
done |
| 16451 |
} |
| 16452 |
test "${ac_cv_sizeof_voidp#[1-9]}" = "${ac_cv_sizeof_voidp}" && |
| 16453 |
test "${ac_cv_sizeof_voidp#SIZEOF_}" = "${ac_cv_sizeof_voidp}" && { |
| 16454 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16455 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_VOIDP" "rbcv_sizeof_type" "$ac_includes_default |
| 16456 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16457 |
#else} |
| 16458 |
$rbcv_sizeof_var |
| 16459 |
${rbcv_sizeof_cond+#endif} |
| 16460 |
#ifndef SIZEOF_VOIDP |
| 16461 |
#define SIZEOF_VOIDP 0 |
| 16462 |
#endif" |
| 16463 |
then : |
| 16464 |
|
| 16465 |
else $as_nop |
| 16466 |
rbcv_sizeof_type=0 |
| 16467 |
fi |
| 16468 |
|
| 16469 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16470 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16471 |
then : |
| 16472 |
|
| 16473 |
ac_cv_sizeof_voidp="${ac_cv_sizeof_voidp+${ac_cv_sizeof_voidp-} }${rbcv_sizeof_type}" |
| 16474 |
|
| 16475 |
fi |
| 16476 |
} |
| 16477 |
: ${ac_cv_sizeof_voidp=0} |
| 16478 |
|
| 16479 |
fi |
| 16480 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 |
| 16481 |
colorize_result "$ac_cv_sizeof_voidp" ; } |
| 16482 |
{ |
| 16483 |
unset rbcv_sizeof_cond |
| 16484 |
for rbcv_sizeof_type in ${ac_cv_sizeof_voidp-}; do |
| 16485 |
case "$rbcv_sizeof_type" in #( |
| 16486 |
[0-9]*|SIZEOF_*) : |
| 16487 |
|
| 16488 |
${rbcv_sizeof_cond+echo "#else"} |
| 16489 |
echo "#define SIZEOF_VOIDP $rbcv_sizeof_type" |
| 16490 |
break |
| 16491 |
;; #( |
| 16492 |
*) : |
| 16493 |
|
| 16494 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16495 |
case $rbcv_sizeof_type in #( |
| 16496 |
*:*) : |
| 16497 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16498 |
*) : |
| 16499 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16500 |
esac |
| 16501 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16502 |
echo "#define SIZEOF_VOIDP $rbcv_sizeof_size" |
| 16503 |
rbcv_sizeof_cond=1 |
| 16504 |
;; |
| 16505 |
esac |
| 16506 |
done |
| 16507 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16508 |
} >> confdefs.h |
| 16509 |
else |
| 16510 |
# The cast to long int works around a bug in the HP C Compiler |
| 16511 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16512 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16513 |
# This bug is HP SR number 8606223364. |
| 16514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5 |
| 16515 |
printf %s "checking size of void*... " >&6; } |
| 16516 |
if test ${ac_cv_sizeof_voidp+y} |
| 16517 |
then : |
| 16518 |
printf %s "(cached) " >&6 |
| 16519 |
else $as_nop |
| 16520 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default" |
| 16521 |
then : |
| 16522 |
|
| 16523 |
else $as_nop |
| 16524 |
if test "$ac_cv_type_voidp" = yes; then |
| 16525 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16526 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16527 |
as_fn_error 77 "cannot compute sizeof (void*) |
| 16528 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16529 |
else |
| 16530 |
ac_cv_sizeof_voidp=0 |
| 16531 |
fi |
| 16532 |
fi |
| 16533 |
|
| 16534 |
fi |
| 16535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5 |
| 16536 |
colorize_result "$ac_cv_sizeof_voidp" ; } |
| 16537 |
|
| 16538 |
|
| 16539 |
|
| 16540 |
printf "%s\n" "#define SIZEOF_VOIDP $ac_cv_sizeof_voidp" >>confdefs.h |
| 16541 |
|
| 16542 |
|
| 16543 |
fi |
| 16544 |
|
| 16545 |
|
| 16546 |
if test "$universal_binary" = yes; then |
| 16547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 16548 |
printf %s "checking size of float... " >&6; } |
| 16549 |
if test ${ac_cv_sizeof_float+y} |
| 16550 |
then : |
| 16551 |
printf %s "(cached) " >&6 |
| 16552 |
else $as_nop |
| 16553 |
|
| 16554 |
unset ac_cv_sizeof_float |
| 16555 |
rbcv_sizeof_var=" |
| 16556 |
typedef float ac__type_sizeof_; |
| 16557 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16558 |
#define SIZEOF_FLOAT sizeof((*rbcv_ptr)) |
| 16559 |
" |
| 16560 |
|
| 16561 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_FLOAT" "ac_cv_sizeof_float" "$ac_includes_default |
| 16562 |
$rbcv_sizeof_var" |
| 16563 |
then : |
| 16564 |
|
| 16565 |
else $as_nop |
| 16566 |
ac_cv_sizeof_float= |
| 16567 |
fi |
| 16568 |
|
| 16569 |
|
| 16570 |
unset rbcv_sizeof_cond |
| 16571 |
|
| 16572 |
test "${ac_cv_sizeof_float#[1-9]}" = "${ac_cv_sizeof_float}" && |
| 16573 |
{ |
| 16574 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16575 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_FLOAT" "rbcv_sizeof_type" "$ac_includes_default |
| 16576 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16577 |
#else} |
| 16578 |
$rbcv_sizeof_var |
| 16579 |
${rbcv_sizeof_cond+#endif} |
| 16580 |
#ifndef SIZEOF_FLOAT |
| 16581 |
#define SIZEOF_FLOAT 0 |
| 16582 |
#endif" |
| 16583 |
then : |
| 16584 |
|
| 16585 |
else $as_nop |
| 16586 |
rbcv_sizeof_type=0 |
| 16587 |
fi |
| 16588 |
|
| 16589 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16590 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16591 |
then : |
| 16592 |
|
| 16593 |
ac_cv_sizeof_float="${ac_cv_sizeof_float+${ac_cv_sizeof_float-} }${rbcv_sizeof_type}" |
| 16594 |
|
| 16595 |
fi |
| 16596 |
} |
| 16597 |
: ${ac_cv_sizeof_float=0} |
| 16598 |
|
| 16599 |
fi |
| 16600 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 16601 |
colorize_result "$ac_cv_sizeof_float" ; } |
| 16602 |
{ |
| 16603 |
unset rbcv_sizeof_cond |
| 16604 |
for rbcv_sizeof_type in ${ac_cv_sizeof_float-}; do |
| 16605 |
case "$rbcv_sizeof_type" in #( |
| 16606 |
[0-9]*|SIZEOF_*) : |
| 16607 |
|
| 16608 |
${rbcv_sizeof_cond+echo "#else"} |
| 16609 |
echo "#define SIZEOF_FLOAT $rbcv_sizeof_type" |
| 16610 |
break |
| 16611 |
;; #( |
| 16612 |
*) : |
| 16613 |
|
| 16614 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16615 |
case $rbcv_sizeof_type in #( |
| 16616 |
*:*) : |
| 16617 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16618 |
*) : |
| 16619 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16620 |
esac |
| 16621 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16622 |
echo "#define SIZEOF_FLOAT $rbcv_sizeof_size" |
| 16623 |
rbcv_sizeof_cond=1 |
| 16624 |
;; |
| 16625 |
esac |
| 16626 |
done |
| 16627 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16628 |
} >> confdefs.h |
| 16629 |
else |
| 16630 |
# The cast to long int works around a bug in the HP C Compiler |
| 16631 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16632 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16633 |
# This bug is HP SR number 8606223364. |
| 16634 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 |
| 16635 |
printf %s "checking size of float... " >&6; } |
| 16636 |
if test ${ac_cv_sizeof_float+y} |
| 16637 |
then : |
| 16638 |
printf %s "(cached) " >&6 |
| 16639 |
else $as_nop |
| 16640 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" |
| 16641 |
then : |
| 16642 |
|
| 16643 |
else $as_nop |
| 16644 |
if test "$ac_cv_type_float" = yes; then |
| 16645 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16646 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16647 |
as_fn_error 77 "cannot compute sizeof (float) |
| 16648 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16649 |
else |
| 16650 |
ac_cv_sizeof_float=0 |
| 16651 |
fi |
| 16652 |
fi |
| 16653 |
|
| 16654 |
fi |
| 16655 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 |
| 16656 |
colorize_result "$ac_cv_sizeof_float" ; } |
| 16657 |
|
| 16658 |
|
| 16659 |
|
| 16660 |
printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h |
| 16661 |
|
| 16662 |
|
| 16663 |
fi |
| 16664 |
|
| 16665 |
|
| 16666 |
if test "$universal_binary" = yes; then |
| 16667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 16668 |
printf %s "checking size of double... " >&6; } |
| 16669 |
if test ${ac_cv_sizeof_double+y} |
| 16670 |
then : |
| 16671 |
printf %s "(cached) " >&6 |
| 16672 |
else $as_nop |
| 16673 |
|
| 16674 |
unset ac_cv_sizeof_double |
| 16675 |
rbcv_sizeof_var=" |
| 16676 |
typedef double ac__type_sizeof_; |
| 16677 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16678 |
#define SIZEOF_DOUBLE sizeof((*rbcv_ptr)) |
| 16679 |
" |
| 16680 |
|
| 16681 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_DOUBLE" "ac_cv_sizeof_double" "$ac_includes_default |
| 16682 |
$rbcv_sizeof_var" |
| 16683 |
then : |
| 16684 |
|
| 16685 |
else $as_nop |
| 16686 |
ac_cv_sizeof_double= |
| 16687 |
fi |
| 16688 |
|
| 16689 |
|
| 16690 |
unset rbcv_sizeof_cond |
| 16691 |
|
| 16692 |
test "${ac_cv_sizeof_double#[1-9]}" = "${ac_cv_sizeof_double}" && |
| 16693 |
{ |
| 16694 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16695 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_DOUBLE" "rbcv_sizeof_type" "$ac_includes_default |
| 16696 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16697 |
#else} |
| 16698 |
$rbcv_sizeof_var |
| 16699 |
${rbcv_sizeof_cond+#endif} |
| 16700 |
#ifndef SIZEOF_DOUBLE |
| 16701 |
#define SIZEOF_DOUBLE 0 |
| 16702 |
#endif" |
| 16703 |
then : |
| 16704 |
|
| 16705 |
else $as_nop |
| 16706 |
rbcv_sizeof_type=0 |
| 16707 |
fi |
| 16708 |
|
| 16709 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16710 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16711 |
then : |
| 16712 |
|
| 16713 |
ac_cv_sizeof_double="${ac_cv_sizeof_double+${ac_cv_sizeof_double-} }${rbcv_sizeof_type}" |
| 16714 |
|
| 16715 |
fi |
| 16716 |
} |
| 16717 |
: ${ac_cv_sizeof_double=0} |
| 16718 |
|
| 16719 |
fi |
| 16720 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 16721 |
colorize_result "$ac_cv_sizeof_double" ; } |
| 16722 |
{ |
| 16723 |
unset rbcv_sizeof_cond |
| 16724 |
for rbcv_sizeof_type in ${ac_cv_sizeof_double-}; do |
| 16725 |
case "$rbcv_sizeof_type" in #( |
| 16726 |
[0-9]*|SIZEOF_*) : |
| 16727 |
|
| 16728 |
${rbcv_sizeof_cond+echo "#else"} |
| 16729 |
echo "#define SIZEOF_DOUBLE $rbcv_sizeof_type" |
| 16730 |
break |
| 16731 |
;; #( |
| 16732 |
*) : |
| 16733 |
|
| 16734 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16735 |
case $rbcv_sizeof_type in #( |
| 16736 |
*:*) : |
| 16737 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16738 |
*) : |
| 16739 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16740 |
esac |
| 16741 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16742 |
echo "#define SIZEOF_DOUBLE $rbcv_sizeof_size" |
| 16743 |
rbcv_sizeof_cond=1 |
| 16744 |
;; |
| 16745 |
esac |
| 16746 |
done |
| 16747 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16748 |
} >> confdefs.h |
| 16749 |
else |
| 16750 |
# The cast to long int works around a bug in the HP C Compiler |
| 16751 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16752 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16753 |
# This bug is HP SR number 8606223364. |
| 16754 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 |
| 16755 |
printf %s "checking size of double... " >&6; } |
| 16756 |
if test ${ac_cv_sizeof_double+y} |
| 16757 |
then : |
| 16758 |
printf %s "(cached) " >&6 |
| 16759 |
else $as_nop |
| 16760 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" |
| 16761 |
then : |
| 16762 |
|
| 16763 |
else $as_nop |
| 16764 |
if test "$ac_cv_type_double" = yes; then |
| 16765 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16766 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16767 |
as_fn_error 77 "cannot compute sizeof (double) |
| 16768 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16769 |
else |
| 16770 |
ac_cv_sizeof_double=0 |
| 16771 |
fi |
| 16772 |
fi |
| 16773 |
|
| 16774 |
fi |
| 16775 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 |
| 16776 |
colorize_result "$ac_cv_sizeof_double" ; } |
| 16777 |
|
| 16778 |
|
| 16779 |
|
| 16780 |
printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h |
| 16781 |
|
| 16782 |
|
| 16783 |
fi |
| 16784 |
|
| 16785 |
|
| 16786 |
if test "$universal_binary" = yes; then |
| 16787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 16788 |
printf %s "checking size of time_t... " >&6; } |
| 16789 |
if test ${ac_cv_sizeof_time_t+y} |
| 16790 |
then : |
| 16791 |
printf %s "(cached) " >&6 |
| 16792 |
else $as_nop |
| 16793 |
|
| 16794 |
unset ac_cv_sizeof_time_t |
| 16795 |
rbcv_sizeof_var=" |
| 16796 |
typedef time_t ac__type_sizeof_; |
| 16797 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16798 |
#define SIZEOF_TIME_T sizeof((*rbcv_ptr)) |
| 16799 |
" |
| 16800 |
test -z "${ac_cv_sizeof_time_t+set}" && { |
| 16801 |
for rbcv_sizeof_type in long "long long"; do |
| 16802 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16803 |
/* end confdefs.h. */ |
| 16804 |
#include <time.h> |
| 16805 |
$rbcv_sizeof_var |
| 16806 |
|
| 16807 |
int |
| 16808 |
main (void) |
| 16809 |
{ |
| 16810 |
static int test_array [1 - 2 * !(SIZEOF_TIME_T == sizeof($rbcv_sizeof_type))]; |
| 16811 |
test_array [0] = 0; |
| 16812 |
return test_array [0]; |
| 16813 |
|
| 16814 |
; |
| 16815 |
return 0; |
| 16816 |
} |
| 16817 |
_ACEOF |
| 16818 |
if ac_fn_c_try_compile "$LINENO" |
| 16819 |
then : |
| 16820 |
|
| 16821 |
ac_cv_sizeof_time_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 16822 |
break |
| 16823 |
fi |
| 16824 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16825 |
done |
| 16826 |
} |
| 16827 |
unset rbcv_sizeof_cond |
| 16828 |
|
| 16829 |
test "${ac_cv_sizeof_time_t#[1-9]}" = "${ac_cv_sizeof_time_t}" && |
| 16830 |
test "${ac_cv_sizeof_time_t#SIZEOF_}" = "${ac_cv_sizeof_time_t}" && { |
| 16831 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16832 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_TIME_T" "rbcv_sizeof_type" "#include <time.h> |
| 16833 |
|
| 16834 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16835 |
#else} |
| 16836 |
$rbcv_sizeof_var |
| 16837 |
${rbcv_sizeof_cond+#endif} |
| 16838 |
#ifndef SIZEOF_TIME_T |
| 16839 |
#define SIZEOF_TIME_T 0 |
| 16840 |
#endif" |
| 16841 |
then : |
| 16842 |
|
| 16843 |
else $as_nop |
| 16844 |
rbcv_sizeof_type=0 |
| 16845 |
fi |
| 16846 |
|
| 16847 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16848 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16849 |
then : |
| 16850 |
|
| 16851 |
ac_cv_sizeof_time_t="${ac_cv_sizeof_time_t+${ac_cv_sizeof_time_t-} }${rbcv_sizeof_type}" |
| 16852 |
|
| 16853 |
fi |
| 16854 |
} |
| 16855 |
: ${ac_cv_sizeof_time_t=0} |
| 16856 |
|
| 16857 |
fi |
| 16858 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 16859 |
colorize_result "$ac_cv_sizeof_time_t" ; } |
| 16860 |
{ |
| 16861 |
unset rbcv_sizeof_cond |
| 16862 |
for rbcv_sizeof_type in ${ac_cv_sizeof_time_t-}; do |
| 16863 |
case "$rbcv_sizeof_type" in #( |
| 16864 |
[0-9]*|SIZEOF_*) : |
| 16865 |
|
| 16866 |
${rbcv_sizeof_cond+echo "#else"} |
| 16867 |
echo "#define SIZEOF_TIME_T $rbcv_sizeof_type" |
| 16868 |
break |
| 16869 |
;; #( |
| 16870 |
*) : |
| 16871 |
|
| 16872 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16873 |
case $rbcv_sizeof_type in #( |
| 16874 |
*:*) : |
| 16875 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16876 |
*) : |
| 16877 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 16878 |
esac |
| 16879 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 16880 |
echo "#define SIZEOF_TIME_T $rbcv_sizeof_size" |
| 16881 |
rbcv_sizeof_cond=1 |
| 16882 |
;; |
| 16883 |
esac |
| 16884 |
done |
| 16885 |
${rbcv_sizeof_cond+echo "#endif"} |
| 16886 |
} >> confdefs.h |
| 16887 |
else |
| 16888 |
# The cast to long int works around a bug in the HP C Compiler |
| 16889 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 16890 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 16891 |
# This bug is HP SR number 8606223364. |
| 16892 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 |
| 16893 |
printf %s "checking size of time_t... " >&6; } |
| 16894 |
if test ${ac_cv_sizeof_time_t+y} |
| 16895 |
then : |
| 16896 |
printf %s "(cached) " >&6 |
| 16897 |
else $as_nop |
| 16898 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "#include <time.h> |
| 16899 |
" |
| 16900 |
then : |
| 16901 |
|
| 16902 |
else $as_nop |
| 16903 |
if test "$ac_cv_type_time_t" = yes; then |
| 16904 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 16905 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 16906 |
as_fn_error 77 "cannot compute sizeof (time_t) |
| 16907 |
See \`config.log' for more details" "$LINENO" 5; } |
| 16908 |
else |
| 16909 |
ac_cv_sizeof_time_t=0 |
| 16910 |
fi |
| 16911 |
fi |
| 16912 |
|
| 16913 |
fi |
| 16914 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 |
| 16915 |
colorize_result "$ac_cv_sizeof_time_t" ; } |
| 16916 |
|
| 16917 |
|
| 16918 |
|
| 16919 |
printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h |
| 16920 |
|
| 16921 |
|
| 16922 |
fi |
| 16923 |
|
| 16924 |
|
| 16925 |
if test "$universal_binary" = yes; then |
| 16926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of clock_t" >&5 |
| 16927 |
printf %s "checking size of clock_t... " >&6; } |
| 16928 |
if test ${ac_cv_sizeof_clock_t+y} |
| 16929 |
then : |
| 16930 |
printf %s "(cached) " >&6 |
| 16931 |
else $as_nop |
| 16932 |
|
| 16933 |
unset ac_cv_sizeof_clock_t |
| 16934 |
rbcv_sizeof_var=" |
| 16935 |
typedef clock_t ac__type_sizeof_; |
| 16936 |
static ac__type_sizeof_ *rbcv_ptr; |
| 16937 |
#define SIZEOF_CLOCK_T sizeof((*rbcv_ptr)) |
| 16938 |
" |
| 16939 |
|
| 16940 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_CLOCK_T" "ac_cv_sizeof_clock_t" "#include <time.h> |
| 16941 |
|
| 16942 |
$rbcv_sizeof_var" |
| 16943 |
then : |
| 16944 |
|
| 16945 |
else $as_nop |
| 16946 |
ac_cv_sizeof_clock_t= |
| 16947 |
fi |
| 16948 |
|
| 16949 |
|
| 16950 |
unset rbcv_sizeof_cond |
| 16951 |
|
| 16952 |
test "${ac_cv_sizeof_clock_t#[1-9]}" = "${ac_cv_sizeof_clock_t}" && |
| 16953 |
{ |
| 16954 |
test "$universal_binary" = yes && cross_compiling=yes |
| 16955 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_CLOCK_T" "rbcv_sizeof_type" "#include <time.h> |
| 16956 |
|
| 16957 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 16958 |
#else} |
| 16959 |
$rbcv_sizeof_var |
| 16960 |
${rbcv_sizeof_cond+#endif} |
| 16961 |
#ifndef SIZEOF_CLOCK_T |
| 16962 |
#define SIZEOF_CLOCK_T 0 |
| 16963 |
#endif" |
| 16964 |
then : |
| 16965 |
|
| 16966 |
else $as_nop |
| 16967 |
rbcv_sizeof_type=0 |
| 16968 |
fi |
| 16969 |
|
| 16970 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 16971 |
if test ${rbcv_sizeof_type-0} != 0 |
| 16972 |
then : |
| 16973 |
|
| 16974 |
ac_cv_sizeof_clock_t="${ac_cv_sizeof_clock_t+${ac_cv_sizeof_clock_t-} }${rbcv_sizeof_type}" |
| 16975 |
|
| 16976 |
fi |
| 16977 |
} |
| 16978 |
: ${ac_cv_sizeof_clock_t=0} |
| 16979 |
|
| 16980 |
fi |
| 16981 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_clock_t" >&5 |
| 16982 |
colorize_result "$ac_cv_sizeof_clock_t" ; } |
| 16983 |
{ |
| 16984 |
unset rbcv_sizeof_cond |
| 16985 |
for rbcv_sizeof_type in ${ac_cv_sizeof_clock_t-}; do |
| 16986 |
case "$rbcv_sizeof_type" in #( |
| 16987 |
[0-9]*|SIZEOF_*) : |
| 16988 |
|
| 16989 |
${rbcv_sizeof_cond+echo "#else"} |
| 16990 |
echo "#define SIZEOF_CLOCK_T $rbcv_sizeof_type" |
| 16991 |
break |
| 16992 |
;; #( |
| 16993 |
*) : |
| 16994 |
|
| 16995 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 16996 |
case $rbcv_sizeof_type in #( |
| 16997 |
*:*) : |
| 16998 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 16999 |
*) : |
| 17000 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 17001 |
esac |
| 17002 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 17003 |
echo "#define SIZEOF_CLOCK_T $rbcv_sizeof_size" |
| 17004 |
rbcv_sizeof_cond=1 |
| 17005 |
;; |
| 17006 |
esac |
| 17007 |
done |
| 17008 |
${rbcv_sizeof_cond+echo "#endif"} |
| 17009 |
} >> confdefs.h |
| 17010 |
else |
| 17011 |
# The cast to long int works around a bug in the HP C Compiler |
| 17012 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 17013 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 17014 |
# This bug is HP SR number 8606223364. |
| 17015 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of clock_t" >&5 |
| 17016 |
printf %s "checking size of clock_t... " >&6; } |
| 17017 |
if test ${ac_cv_sizeof_clock_t+y} |
| 17018 |
then : |
| 17019 |
printf %s "(cached) " >&6 |
| 17020 |
else $as_nop |
| 17021 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (clock_t))" "ac_cv_sizeof_clock_t" "#include <time.h> |
| 17022 |
" |
| 17023 |
then : |
| 17024 |
|
| 17025 |
else $as_nop |
| 17026 |
if test "$ac_cv_type_clock_t" = yes; then |
| 17027 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17028 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17029 |
as_fn_error 77 "cannot compute sizeof (clock_t) |
| 17030 |
See \`config.log' for more details" "$LINENO" 5; } |
| 17031 |
else |
| 17032 |
ac_cv_sizeof_clock_t=0 |
| 17033 |
fi |
| 17034 |
fi |
| 17035 |
|
| 17036 |
fi |
| 17037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_clock_t" >&5 |
| 17038 |
colorize_result "$ac_cv_sizeof_clock_t" ; } |
| 17039 |
|
| 17040 |
|
| 17041 |
|
| 17042 |
printf "%s\n" "#define SIZEOF_CLOCK_T $ac_cv_sizeof_clock_t" >>confdefs.h |
| 17043 |
|
| 17044 |
|
| 17045 |
fi |
| 17046 |
|
| 17047 |
X_BUILTIN_BINARY=yes |
| 17048 |
|
| 17049 |
if test "$cross_compiling" = yes |
| 17050 |
then : |
| 17051 |
X_BUILTIN_BINARY=no |
| 17052 |
|
| 17053 |
else $as_nop |
| 17054 |
|
| 17055 |
case ac_cv_sizeof_voidp in #( |
| 17056 |
1-9*) : |
| 17057 |
;; #( |
| 17058 |
*) : |
| 17059 |
|
| 17060 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking word size" >&5 |
| 17061 |
printf %s "checking word size... " >&6; } |
| 17062 |
if test ${rb_cv_word_size+y} |
| 17063 |
then : |
| 17064 |
printf %s "(cached) " >&6 |
| 17065 |
else $as_nop |
| 17066 |
for w in 4 8; do |
| 17067 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17068 |
/* end confdefs.h. */ |
| 17069 |
#if SIZEOF_VOIDP != ${w} |
| 17070 |
#error SIZEOF_VOIDP |
| 17071 |
#endif |
| 17072 |
int |
| 17073 |
main (void) |
| 17074 |
{ |
| 17075 |
|
| 17076 |
; |
| 17077 |
return 0; |
| 17078 |
} |
| 17079 |
_ACEOF |
| 17080 |
if ac_fn_c_try_compile "$LINENO" |
| 17081 |
then : |
| 17082 |
rb_cv_word_size=${w}; break |
| 17083 |
fi |
| 17084 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17085 |
done |
| 17086 |
fi |
| 17087 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_word_size" >&5 |
| 17088 |
colorize_result "$rb_cv_word_size" ; } |
| 17089 |
if test -z $rb_cv_word_size |
| 17090 |
then : |
| 17091 |
X_BUILTIN_BINARY=no |
| 17092 |
fi |
| 17093 |
;; |
| 17094 |
esac |
| 17095 |
|
| 17096 |
fi |
| 17097 |
|
| 17098 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking packed struct attribute" >&5 |
| 17099 |
printf %s "checking packed struct attribute... " >&6; } |
| 17100 |
if test ${rb_cv_packed_struct+y} |
| 17101 |
then : |
| 17102 |
printf %s "(cached) " >&6 |
| 17103 |
else $as_nop |
| 17104 |
rb_cv_packed_struct=no |
| 17105 |
for mac in \ |
| 17106 |
"__pragma(pack(push, 1)) x __pragma(pack(pop))" \ |
| 17107 |
"x __attribute__((packed))" \ |
| 17108 |
; do |
| 17109 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17110 |
/* end confdefs.h. */ |
| 17111 |
#define PACKED_STRUCT(x) $mac |
| 17112 |
PACKED_STRUCT(struct { int a; }); |
| 17113 |
int |
| 17114 |
main (void) |
| 17115 |
{ |
| 17116 |
|
| 17117 |
; |
| 17118 |
return 0; |
| 17119 |
} |
| 17120 |
_ACEOF |
| 17121 |
if ac_fn_c_try_compile "$LINENO" |
| 17122 |
then : |
| 17123 |
rb_cv_packed_struct=$mac; break |
| 17124 |
fi |
| 17125 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17126 |
done |
| 17127 |
fi |
| 17128 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_packed_struct" >&5 |
| 17129 |
colorize_result "$rb_cv_packed_struct" ; } |
| 17130 |
if test "$rb_cv_packed_struct" != no |
| 17131 |
then : |
| 17132 |
|
| 17133 |
cat >>confdefs.h <<_ACEOF |
| 17134 |
#define RBIMPL_ATTR_PACKED_STRUCT_BEGIN() `echo " $rb_cv_packed_struct " | sed 's/ x .*//;s/^ *//'` |
| 17135 |
_ACEOF |
| 17136 |
|
| 17137 |
cat >>confdefs.h <<_ACEOF |
| 17138 |
#define RBIMPL_ATTR_PACKED_STRUCT_END() `echo " $rb_cv_packed_struct " | sed 's/.* x //;s/ *$//'` |
| 17139 |
_ACEOF |
| 17140 |
|
| 17141 |
|
| 17142 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-address-of-packed-member is accepted as CFLAGS" >&5 |
| 17143 |
printf %s "checking whether -Wno-address-of-packed-member is accepted as CFLAGS... " >&6; } |
| 17144 |
save_CFLAGS="$CFLAGS" |
| 17145 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 17146 |
if test "${ac_c_werror_flag+set}" |
| 17147 |
then : |
| 17148 |
|
| 17149 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 17150 |
|
| 17151 |
else $as_nop |
| 17152 |
|
| 17153 |
unset rb_c_werror_flag |
| 17154 |
|
| 17155 |
fi |
| 17156 |
ac_c_werror_flag=yes |
| 17157 |
|
| 17158 |
CFLAGS="$CFLAGS -Wno-address-of-packed-member" |
| 17159 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17160 |
/* end confdefs.h. */ |
| 17161 |
|
| 17162 |
int |
| 17163 |
main (void) |
| 17164 |
{ |
| 17165 |
|
| 17166 |
; |
| 17167 |
return 0; |
| 17168 |
} |
| 17169 |
_ACEOF |
| 17170 |
if ac_fn_c_try_compile "$LINENO" |
| 17171 |
then : |
| 17172 |
printf "%s\n" "#define USE_UNALIGNED_MEMBER_ACCESS 1" >>confdefs.h |
| 17173 |
|
| 17174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 17175 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 17176 |
else $as_nop |
| 17177 |
|
| 17178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 17179 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 17180 |
fi |
| 17181 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17182 |
|
| 17183 |
CFLAGS="$save_CFLAGS" |
| 17184 |
save_CFLAGS= |
| 17185 |
if test "${rb_c_werror_flag+set}" |
| 17186 |
then : |
| 17187 |
|
| 17188 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 17189 |
|
| 17190 |
else $as_nop |
| 17191 |
|
| 17192 |
unset ac_c_werror_flag |
| 17193 |
|
| 17194 |
fi |
| 17195 |
|
| 17196 |
|
| 17197 |
fi |
| 17198 |
|
| 17199 |
if test "x$ac_cv_type_long_long" = xyes |
| 17200 |
then : |
| 17201 |
|
| 17202 |
|
| 17203 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for long long" >&5 |
| 17204 |
printf %s "checking for printf prefix for long long... " >&6; } |
| 17205 |
if test ${rb_cv_pri_prefix_long_long+y} |
| 17206 |
then : |
| 17207 |
printf %s "(cached) " >&6 |
| 17208 |
else $as_nop |
| 17209 |
|
| 17210 |
rb_cv_pri_prefix_long_long=NONE |
| 17211 |
save_CFLAGS="$CFLAGS" |
| 17212 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 17213 |
if test "${ac_c_werror_flag+set}" |
| 17214 |
then : |
| 17215 |
|
| 17216 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 17217 |
|
| 17218 |
else $as_nop |
| 17219 |
|
| 17220 |
unset rb_c_werror_flag |
| 17221 |
|
| 17222 |
fi |
| 17223 |
ac_c_werror_flag=yes |
| 17224 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 17225 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 17226 |
case " ${CFLAGS-} " in #( |
| 17227 |
*" ${rb_opt} "*) : |
| 17228 |
;; #( |
| 17229 |
' ') : |
| 17230 |
CFLAGS="${rb_opt}" ;; #( |
| 17231 |
*) : |
| 17232 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 17233 |
esac |
| 17234 |
done |
| 17235 |
for pri in ll I64; do |
| 17236 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17237 |
/* end confdefs.h. */ |
| 17238 |
#include <stdio.h> |
| 17239 |
#include <stddef.h> |
| 17240 |
#ifdef __GNUC__ |
| 17241 |
#if defined __MINGW_PRINTF_FORMAT |
| 17242 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 17243 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 17244 |
#else |
| 17245 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 17246 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 17247 |
#endif |
| 17248 |
#else |
| 17249 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 17250 |
#endif |
| 17251 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 17252 |
int |
| 17253 |
main (void) |
| 17254 |
{ |
| 17255 |
printf("%${pri}d", (long long)42); |
| 17256 |
test_sprintf("%${pri}d", (long long)42); |
| 17257 |
; |
| 17258 |
return 0; |
| 17259 |
} |
| 17260 |
_ACEOF |
| 17261 |
if ac_fn_c_try_compile "$LINENO" |
| 17262 |
then : |
| 17263 |
rb_cv_pri_prefix_long_long=$pri; break |
| 17264 |
fi |
| 17265 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17266 |
done |
| 17267 |
CFLAGS="$save_CFLAGS" |
| 17268 |
save_CFLAGS= |
| 17269 |
if test "${rb_c_werror_flag+set}" |
| 17270 |
then : |
| 17271 |
|
| 17272 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 17273 |
|
| 17274 |
else $as_nop |
| 17275 |
|
| 17276 |
unset ac_c_werror_flag |
| 17277 |
|
| 17278 |
fi |
| 17279 |
fi |
| 17280 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_long_long" >&5 |
| 17281 |
colorize_result "$rb_cv_pri_prefix_long_long" ; } |
| 17282 |
if test "$rb_cv_pri_prefix_long_long" != NONE |
| 17283 |
then : |
| 17284 |
|
| 17285 |
printf "%s\n" "#define PRI_LL_PREFIX \"$rb_cv_pri_prefix_long_long\"" >>confdefs.h |
| 17286 |
|
| 17287 |
|
| 17288 |
fi |
| 17289 |
|
| 17290 |
|
| 17291 |
elif test "x$ac_cv_type___int64" = xyes |
| 17292 |
then : |
| 17293 |
|
| 17294 |
|
| 17295 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for __int64" >&5 |
| 17296 |
printf %s "checking for printf prefix for __int64... " >&6; } |
| 17297 |
if test ${rb_cv_pri_prefix___int64+y} |
| 17298 |
then : |
| 17299 |
printf %s "(cached) " >&6 |
| 17300 |
else $as_nop |
| 17301 |
|
| 17302 |
rb_cv_pri_prefix___int64=NONE |
| 17303 |
save_CFLAGS="$CFLAGS" |
| 17304 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 17305 |
if test "${ac_c_werror_flag+set}" |
| 17306 |
then : |
| 17307 |
|
| 17308 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 17309 |
|
| 17310 |
else $as_nop |
| 17311 |
|
| 17312 |
unset rb_c_werror_flag |
| 17313 |
|
| 17314 |
fi |
| 17315 |
ac_c_werror_flag=yes |
| 17316 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 17317 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 17318 |
case " ${CFLAGS-} " in #( |
| 17319 |
*" ${rb_opt} "*) : |
| 17320 |
;; #( |
| 17321 |
' ') : |
| 17322 |
CFLAGS="${rb_opt}" ;; #( |
| 17323 |
*) : |
| 17324 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 17325 |
esac |
| 17326 |
done |
| 17327 |
for pri in ll I64; do |
| 17328 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17329 |
/* end confdefs.h. */ |
| 17330 |
#include <stdio.h> |
| 17331 |
#include <stddef.h> |
| 17332 |
#ifdef __GNUC__ |
| 17333 |
#if defined __MINGW_PRINTF_FORMAT |
| 17334 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 17335 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 17336 |
#else |
| 17337 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 17338 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 17339 |
#endif |
| 17340 |
#else |
| 17341 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 17342 |
#endif |
| 17343 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 17344 |
int |
| 17345 |
main (void) |
| 17346 |
{ |
| 17347 |
printf("%${pri}d", (__int64)42); |
| 17348 |
test_sprintf("%${pri}d", (__int64)42); |
| 17349 |
; |
| 17350 |
return 0; |
| 17351 |
} |
| 17352 |
_ACEOF |
| 17353 |
if ac_fn_c_try_compile "$LINENO" |
| 17354 |
then : |
| 17355 |
rb_cv_pri_prefix___int64=$pri; break |
| 17356 |
fi |
| 17357 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17358 |
done |
| 17359 |
CFLAGS="$save_CFLAGS" |
| 17360 |
save_CFLAGS= |
| 17361 |
if test "${rb_c_werror_flag+set}" |
| 17362 |
then : |
| 17363 |
|
| 17364 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 17365 |
|
| 17366 |
else $as_nop |
| 17367 |
|
| 17368 |
unset ac_c_werror_flag |
| 17369 |
|
| 17370 |
fi |
| 17371 |
fi |
| 17372 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix___int64" >&5 |
| 17373 |
colorize_result "$rb_cv_pri_prefix___int64" ; } |
| 17374 |
if test "$rb_cv_pri_prefix___int64" != NONE |
| 17375 |
then : |
| 17376 |
|
| 17377 |
printf "%s\n" "#define PRI_LL_PREFIX \"$rb_cv_pri_prefix___int64\"" >>confdefs.h |
| 17378 |
|
| 17379 |
|
| 17380 |
fi |
| 17381 |
|
| 17382 |
|
| 17383 |
fi |
| 17384 |
|
| 17385 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 17386 |
if test "x$ac_cv_type_pid_t" = xyes |
| 17387 |
then : |
| 17388 |
|
| 17389 |
printf "%s\n" "#define HAVE_PID_T 1" >>confdefs.h |
| 17390 |
|
| 17391 |
n="pid_t" |
| 17392 |
else $as_nop |
| 17393 |
n="int" |
| 17394 |
fi |
| 17395 |
|
| 17396 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of pid_t" >&5 |
| 17397 |
printf %s "checking for convertible type of pid_t... " >&6; } |
| 17398 |
if test ${rb_cv_pid_t_convertible+y} |
| 17399 |
then : |
| 17400 |
printf %s "(cached) " >&6 |
| 17401 |
else $as_nop |
| 17402 |
|
| 17403 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17404 |
/* end confdefs.h. */ |
| 17405 |
$ac_includes_default |
| 17406 |
typedef $n rbcv_conftest_target_type; |
| 17407 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17408 |
|
| 17409 |
int |
| 17410 |
main (void) |
| 17411 |
{ |
| 17412 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 17413 |
test_array [0] = 0; |
| 17414 |
return test_array [0]; |
| 17415 |
|
| 17416 |
; |
| 17417 |
return 0; |
| 17418 |
} |
| 17419 |
_ACEOF |
| 17420 |
if ac_fn_c_try_compile "$LINENO" |
| 17421 |
then : |
| 17422 |
rb_cv_pid_t_convertible=PTR |
| 17423 |
else $as_nop |
| 17424 |
|
| 17425 |
u= t= |
| 17426 |
case "$n " in #( |
| 17427 |
*" signed "*) : |
| 17428 |
;; #( |
| 17429 |
*" unsigned "*) : |
| 17430 |
|
| 17431 |
u=U ;; #( |
| 17432 |
*) : |
| 17433 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17434 |
/* end confdefs.h. */ |
| 17435 |
$ac_includes_default |
| 17436 |
int |
| 17437 |
main (void) |
| 17438 |
{ |
| 17439 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 17440 |
test_array [0] = 0; |
| 17441 |
return test_array [0]; |
| 17442 |
|
| 17443 |
; |
| 17444 |
return 0; |
| 17445 |
} |
| 17446 |
_ACEOF |
| 17447 |
if ac_fn_c_try_compile "$LINENO" |
| 17448 |
then : |
| 17449 |
u=U |
| 17450 |
fi |
| 17451 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17452 |
esac |
| 17453 |
if test x"$t" = x |
| 17454 |
then : |
| 17455 |
|
| 17456 |
for t in "long long" long int short; do |
| 17457 |
test -n "$u" && t="unsigned $t" |
| 17458 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17459 |
/* end confdefs.h. */ |
| 17460 |
$ac_includes_default |
| 17461 |
typedef $n rbcv_conftest_target_type; |
| 17462 |
typedef $t rbcv_conftest_replace_type; |
| 17463 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17464 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 17465 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 17466 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 17467 |
|
| 17468 |
int |
| 17469 |
main (void) |
| 17470 |
{ |
| 17471 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 17472 |
test_array [0] = 0; |
| 17473 |
return test_array [0]; |
| 17474 |
|
| 17475 |
; |
| 17476 |
return 0; |
| 17477 |
} |
| 17478 |
_ACEOF |
| 17479 |
if ac_fn_c_try_compile "$LINENO" |
| 17480 |
then : |
| 17481 |
n="$t"; break |
| 17482 |
fi |
| 17483 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17484 |
done |
| 17485 |
|
| 17486 |
fi |
| 17487 |
case " $n " in #( |
| 17488 |
*" long long "*) : |
| 17489 |
|
| 17490 |
t=LL ;; #( |
| 17491 |
*" long "*) : |
| 17492 |
|
| 17493 |
t=LONG ;; #( |
| 17494 |
*" short "*) : |
| 17495 |
|
| 17496 |
t=SHORT ;; #( |
| 17497 |
*) : |
| 17498 |
|
| 17499 |
t=INT ;; |
| 17500 |
esac |
| 17501 |
rb_cv_pid_t_convertible=${u}${t} |
| 17502 |
fi |
| 17503 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17504 |
|
| 17505 |
fi |
| 17506 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pid_t_convertible" >&5 |
| 17507 |
colorize_result "$rb_cv_pid_t_convertible" ; } |
| 17508 |
if test "${ac_cv_type_pid_t}" = "yes" |
| 17509 |
then : |
| 17510 |
|
| 17511 |
n="pid_t" |
| 17512 |
|
| 17513 |
else $as_nop |
| 17514 |
|
| 17515 |
case "${rb_cv_pid_t_convertible}" in #( |
| 17516 |
*LL) : |
| 17517 |
n="long long" ;; #( |
| 17518 |
*LONG) : |
| 17519 |
n="long" ;; #( |
| 17520 |
*SHORT) : |
| 17521 |
n="short" ;; #( |
| 17522 |
*) : |
| 17523 |
n="int" ;; |
| 17524 |
esac |
| 17525 |
case "${rb_cv_pid_t_convertible}" in #( |
| 17526 |
U*) : |
| 17527 |
n="unsigned $n" ;; #( |
| 17528 |
*) : |
| 17529 |
;; |
| 17530 |
esac |
| 17531 |
|
| 17532 |
fi |
| 17533 |
case "${rb_cv_pid_t_convertible}" in #( |
| 17534 |
PTR) : |
| 17535 |
u= ;; #( |
| 17536 |
U*) : |
| 17537 |
u=+1 ;; #( |
| 17538 |
*) : |
| 17539 |
u=-1 ;; |
| 17540 |
esac |
| 17541 |
printf "%s\n" "#define rb_pid_t $n" >>confdefs.h |
| 17542 |
|
| 17543 |
if test $u |
| 17544 |
then : |
| 17545 |
|
| 17546 |
printf "%s\n" "#define SIGNEDNESS_OF_PID_T $u" >>confdefs.h |
| 17547 |
|
| 17548 |
printf "%s\n" "#define PIDT2NUM(v) ${rb_cv_pid_t_convertible}2NUM(v)" >>confdefs.h |
| 17549 |
|
| 17550 |
printf "%s\n" "#define NUM2PIDT(v) NUM2${rb_cv_pid_t_convertible}(v)" >>confdefs.h |
| 17551 |
|
| 17552 |
cat >>confdefs.h <<_ACEOF |
| 17553 |
#define PRI_PIDT_PREFIX PRI_`echo ${rb_cv_pid_t_convertible} | sed 's/^U//'`_PREFIX |
| 17554 |
_ACEOF |
| 17555 |
|
| 17556 |
|
| 17557 |
fi |
| 17558 |
|
| 17559 |
ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" |
| 17560 |
if test "x$ac_cv_type_uid_t" = xyes |
| 17561 |
then : |
| 17562 |
|
| 17563 |
printf "%s\n" "#define HAVE_UID_T 1" >>confdefs.h |
| 17564 |
|
| 17565 |
n="uid_t" |
| 17566 |
else $as_nop |
| 17567 |
n="int" |
| 17568 |
fi |
| 17569 |
|
| 17570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of uid_t" >&5 |
| 17571 |
printf %s "checking for convertible type of uid_t... " >&6; } |
| 17572 |
if test ${rb_cv_uid_t_convertible+y} |
| 17573 |
then : |
| 17574 |
printf %s "(cached) " >&6 |
| 17575 |
else $as_nop |
| 17576 |
|
| 17577 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17578 |
/* end confdefs.h. */ |
| 17579 |
$ac_includes_default |
| 17580 |
typedef $n rbcv_conftest_target_type; |
| 17581 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17582 |
|
| 17583 |
int |
| 17584 |
main (void) |
| 17585 |
{ |
| 17586 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 17587 |
test_array [0] = 0; |
| 17588 |
return test_array [0]; |
| 17589 |
|
| 17590 |
; |
| 17591 |
return 0; |
| 17592 |
} |
| 17593 |
_ACEOF |
| 17594 |
if ac_fn_c_try_compile "$LINENO" |
| 17595 |
then : |
| 17596 |
rb_cv_uid_t_convertible=PTR |
| 17597 |
else $as_nop |
| 17598 |
|
| 17599 |
u= t= |
| 17600 |
case "$n " in #( |
| 17601 |
*" signed "*) : |
| 17602 |
;; #( |
| 17603 |
*" unsigned "*) : |
| 17604 |
|
| 17605 |
u=U ;; #( |
| 17606 |
*) : |
| 17607 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17608 |
/* end confdefs.h. */ |
| 17609 |
$ac_includes_default |
| 17610 |
int |
| 17611 |
main (void) |
| 17612 |
{ |
| 17613 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 17614 |
test_array [0] = 0; |
| 17615 |
return test_array [0]; |
| 17616 |
|
| 17617 |
; |
| 17618 |
return 0; |
| 17619 |
} |
| 17620 |
_ACEOF |
| 17621 |
if ac_fn_c_try_compile "$LINENO" |
| 17622 |
then : |
| 17623 |
u=U |
| 17624 |
fi |
| 17625 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17626 |
esac |
| 17627 |
if test x"$t" = x |
| 17628 |
then : |
| 17629 |
|
| 17630 |
for t in "long long" long int short; do |
| 17631 |
test -n "$u" && t="unsigned $t" |
| 17632 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17633 |
/* end confdefs.h. */ |
| 17634 |
$ac_includes_default |
| 17635 |
typedef $n rbcv_conftest_target_type; |
| 17636 |
typedef $t rbcv_conftest_replace_type; |
| 17637 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17638 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 17639 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 17640 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 17641 |
|
| 17642 |
int |
| 17643 |
main (void) |
| 17644 |
{ |
| 17645 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 17646 |
test_array [0] = 0; |
| 17647 |
return test_array [0]; |
| 17648 |
|
| 17649 |
; |
| 17650 |
return 0; |
| 17651 |
} |
| 17652 |
_ACEOF |
| 17653 |
if ac_fn_c_try_compile "$LINENO" |
| 17654 |
then : |
| 17655 |
n="$t"; break |
| 17656 |
fi |
| 17657 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17658 |
done |
| 17659 |
|
| 17660 |
fi |
| 17661 |
case " $n " in #( |
| 17662 |
*" long long "*) : |
| 17663 |
|
| 17664 |
t=LL ;; #( |
| 17665 |
*" long "*) : |
| 17666 |
|
| 17667 |
t=LONG ;; #( |
| 17668 |
*" short "*) : |
| 17669 |
|
| 17670 |
t=SHORT ;; #( |
| 17671 |
*) : |
| 17672 |
|
| 17673 |
t=INT ;; |
| 17674 |
esac |
| 17675 |
rb_cv_uid_t_convertible=${u}${t} |
| 17676 |
fi |
| 17677 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17678 |
|
| 17679 |
fi |
| 17680 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_uid_t_convertible" >&5 |
| 17681 |
colorize_result "$rb_cv_uid_t_convertible" ; } |
| 17682 |
if test "${ac_cv_type_uid_t}" = "yes" |
| 17683 |
then : |
| 17684 |
|
| 17685 |
n="uid_t" |
| 17686 |
|
| 17687 |
else $as_nop |
| 17688 |
|
| 17689 |
case "${rb_cv_uid_t_convertible}" in #( |
| 17690 |
*LL) : |
| 17691 |
n="long long" ;; #( |
| 17692 |
*LONG) : |
| 17693 |
n="long" ;; #( |
| 17694 |
*SHORT) : |
| 17695 |
n="short" ;; #( |
| 17696 |
*) : |
| 17697 |
n="int" ;; |
| 17698 |
esac |
| 17699 |
case "${rb_cv_uid_t_convertible}" in #( |
| 17700 |
U*) : |
| 17701 |
n="unsigned $n" ;; #( |
| 17702 |
*) : |
| 17703 |
;; |
| 17704 |
esac |
| 17705 |
|
| 17706 |
fi |
| 17707 |
case "${rb_cv_uid_t_convertible}" in #( |
| 17708 |
PTR) : |
| 17709 |
u= ;; #( |
| 17710 |
U*) : |
| 17711 |
u=+1 ;; #( |
| 17712 |
*) : |
| 17713 |
u=-1 ;; |
| 17714 |
esac |
| 17715 |
printf "%s\n" "#define rb_uid_t $n" >>confdefs.h |
| 17716 |
|
| 17717 |
if test $u |
| 17718 |
then : |
| 17719 |
|
| 17720 |
printf "%s\n" "#define SIGNEDNESS_OF_UID_T $u" >>confdefs.h |
| 17721 |
|
| 17722 |
printf "%s\n" "#define UIDT2NUM(v) ${rb_cv_uid_t_convertible}2NUM(v)" >>confdefs.h |
| 17723 |
|
| 17724 |
printf "%s\n" "#define NUM2UIDT(v) NUM2${rb_cv_uid_t_convertible}(v)" >>confdefs.h |
| 17725 |
|
| 17726 |
cat >>confdefs.h <<_ACEOF |
| 17727 |
#define PRI_UIDT_PREFIX PRI_`echo ${rb_cv_uid_t_convertible} | sed 's/^U//'`_PREFIX |
| 17728 |
_ACEOF |
| 17729 |
|
| 17730 |
|
| 17731 |
fi |
| 17732 |
|
| 17733 |
ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" |
| 17734 |
if test "x$ac_cv_type_gid_t" = xyes |
| 17735 |
then : |
| 17736 |
|
| 17737 |
printf "%s\n" "#define HAVE_GID_T 1" >>confdefs.h |
| 17738 |
|
| 17739 |
n="gid_t" |
| 17740 |
else $as_nop |
| 17741 |
n="int" |
| 17742 |
fi |
| 17743 |
|
| 17744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of gid_t" >&5 |
| 17745 |
printf %s "checking for convertible type of gid_t... " >&6; } |
| 17746 |
if test ${rb_cv_gid_t_convertible+y} |
| 17747 |
then : |
| 17748 |
printf %s "(cached) " >&6 |
| 17749 |
else $as_nop |
| 17750 |
|
| 17751 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17752 |
/* end confdefs.h. */ |
| 17753 |
$ac_includes_default |
| 17754 |
typedef $n rbcv_conftest_target_type; |
| 17755 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17756 |
|
| 17757 |
int |
| 17758 |
main (void) |
| 17759 |
{ |
| 17760 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 17761 |
test_array [0] = 0; |
| 17762 |
return test_array [0]; |
| 17763 |
|
| 17764 |
; |
| 17765 |
return 0; |
| 17766 |
} |
| 17767 |
_ACEOF |
| 17768 |
if ac_fn_c_try_compile "$LINENO" |
| 17769 |
then : |
| 17770 |
rb_cv_gid_t_convertible=PTR |
| 17771 |
else $as_nop |
| 17772 |
|
| 17773 |
u= t= |
| 17774 |
case "$n " in #( |
| 17775 |
*" signed "*) : |
| 17776 |
;; #( |
| 17777 |
*" unsigned "*) : |
| 17778 |
|
| 17779 |
u=U ;; #( |
| 17780 |
*) : |
| 17781 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17782 |
/* end confdefs.h. */ |
| 17783 |
$ac_includes_default |
| 17784 |
int |
| 17785 |
main (void) |
| 17786 |
{ |
| 17787 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 17788 |
test_array [0] = 0; |
| 17789 |
return test_array [0]; |
| 17790 |
|
| 17791 |
; |
| 17792 |
return 0; |
| 17793 |
} |
| 17794 |
_ACEOF |
| 17795 |
if ac_fn_c_try_compile "$LINENO" |
| 17796 |
then : |
| 17797 |
u=U |
| 17798 |
fi |
| 17799 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17800 |
esac |
| 17801 |
if test x"$t" = x |
| 17802 |
then : |
| 17803 |
|
| 17804 |
for t in "long long" long int short; do |
| 17805 |
test -n "$u" && t="unsigned $t" |
| 17806 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17807 |
/* end confdefs.h. */ |
| 17808 |
$ac_includes_default |
| 17809 |
typedef $n rbcv_conftest_target_type; |
| 17810 |
typedef $t rbcv_conftest_replace_type; |
| 17811 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17812 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 17813 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 17814 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 17815 |
|
| 17816 |
int |
| 17817 |
main (void) |
| 17818 |
{ |
| 17819 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 17820 |
test_array [0] = 0; |
| 17821 |
return test_array [0]; |
| 17822 |
|
| 17823 |
; |
| 17824 |
return 0; |
| 17825 |
} |
| 17826 |
_ACEOF |
| 17827 |
if ac_fn_c_try_compile "$LINENO" |
| 17828 |
then : |
| 17829 |
n="$t"; break |
| 17830 |
fi |
| 17831 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17832 |
done |
| 17833 |
|
| 17834 |
fi |
| 17835 |
case " $n " in #( |
| 17836 |
*" long long "*) : |
| 17837 |
|
| 17838 |
t=LL ;; #( |
| 17839 |
*" long "*) : |
| 17840 |
|
| 17841 |
t=LONG ;; #( |
| 17842 |
*" short "*) : |
| 17843 |
|
| 17844 |
t=SHORT ;; #( |
| 17845 |
*) : |
| 17846 |
|
| 17847 |
t=INT ;; |
| 17848 |
esac |
| 17849 |
rb_cv_gid_t_convertible=${u}${t} |
| 17850 |
fi |
| 17851 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17852 |
|
| 17853 |
fi |
| 17854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gid_t_convertible" >&5 |
| 17855 |
colorize_result "$rb_cv_gid_t_convertible" ; } |
| 17856 |
if test "${ac_cv_type_gid_t}" = "yes" |
| 17857 |
then : |
| 17858 |
|
| 17859 |
n="gid_t" |
| 17860 |
|
| 17861 |
else $as_nop |
| 17862 |
|
| 17863 |
case "${rb_cv_gid_t_convertible}" in #( |
| 17864 |
*LL) : |
| 17865 |
n="long long" ;; #( |
| 17866 |
*LONG) : |
| 17867 |
n="long" ;; #( |
| 17868 |
*SHORT) : |
| 17869 |
n="short" ;; #( |
| 17870 |
*) : |
| 17871 |
n="int" ;; |
| 17872 |
esac |
| 17873 |
case "${rb_cv_gid_t_convertible}" in #( |
| 17874 |
U*) : |
| 17875 |
n="unsigned $n" ;; #( |
| 17876 |
*) : |
| 17877 |
;; |
| 17878 |
esac |
| 17879 |
|
| 17880 |
fi |
| 17881 |
case "${rb_cv_gid_t_convertible}" in #( |
| 17882 |
PTR) : |
| 17883 |
u= ;; #( |
| 17884 |
U*) : |
| 17885 |
u=+1 ;; #( |
| 17886 |
*) : |
| 17887 |
u=-1 ;; |
| 17888 |
esac |
| 17889 |
printf "%s\n" "#define rb_gid_t $n" >>confdefs.h |
| 17890 |
|
| 17891 |
if test $u |
| 17892 |
then : |
| 17893 |
|
| 17894 |
printf "%s\n" "#define SIGNEDNESS_OF_GID_T $u" >>confdefs.h |
| 17895 |
|
| 17896 |
printf "%s\n" "#define GIDT2NUM(v) ${rb_cv_gid_t_convertible}2NUM(v)" >>confdefs.h |
| 17897 |
|
| 17898 |
printf "%s\n" "#define NUM2GIDT(v) NUM2${rb_cv_gid_t_convertible}(v)" >>confdefs.h |
| 17899 |
|
| 17900 |
cat >>confdefs.h <<_ACEOF |
| 17901 |
#define PRI_GIDT_PREFIX PRI_`echo ${rb_cv_gid_t_convertible} | sed 's/^U//'`_PREFIX |
| 17902 |
_ACEOF |
| 17903 |
|
| 17904 |
|
| 17905 |
fi |
| 17906 |
|
| 17907 |
ac_fn_c_check_type "$LINENO" "time_t" "ac_cv_type_time_t" "#include <time.h> |
| 17908 |
" |
| 17909 |
if test "x$ac_cv_type_time_t" = xyes |
| 17910 |
then : |
| 17911 |
|
| 17912 |
printf "%s\n" "#define HAVE_TIME_T 1" >>confdefs.h |
| 17913 |
|
| 17914 |
n="time_t" |
| 17915 |
else $as_nop |
| 17916 |
n="" |
| 17917 |
fi |
| 17918 |
|
| 17919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of time_t" >&5 |
| 17920 |
printf %s "checking for convertible type of time_t... " >&6; } |
| 17921 |
if test ${rb_cv_time_t_convertible+y} |
| 17922 |
then : |
| 17923 |
printf %s "(cached) " >&6 |
| 17924 |
else $as_nop |
| 17925 |
|
| 17926 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17927 |
/* end confdefs.h. */ |
| 17928 |
#include <time.h> |
| 17929 |
|
| 17930 |
typedef $n rbcv_conftest_target_type; |
| 17931 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17932 |
|
| 17933 |
int |
| 17934 |
main (void) |
| 17935 |
{ |
| 17936 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 17937 |
test_array [0] = 0; |
| 17938 |
return test_array [0]; |
| 17939 |
|
| 17940 |
; |
| 17941 |
return 0; |
| 17942 |
} |
| 17943 |
_ACEOF |
| 17944 |
if ac_fn_c_try_compile "$LINENO" |
| 17945 |
then : |
| 17946 |
rb_cv_time_t_convertible=PTR |
| 17947 |
else $as_nop |
| 17948 |
|
| 17949 |
u= t= |
| 17950 |
case "$n " in #( |
| 17951 |
*" signed "*) : |
| 17952 |
;; #( |
| 17953 |
*" unsigned "*) : |
| 17954 |
|
| 17955 |
u=U ;; #( |
| 17956 |
*) : |
| 17957 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17958 |
/* end confdefs.h. */ |
| 17959 |
#include <time.h> |
| 17960 |
|
| 17961 |
int |
| 17962 |
main (void) |
| 17963 |
{ |
| 17964 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 17965 |
test_array [0] = 0; |
| 17966 |
return test_array [0]; |
| 17967 |
|
| 17968 |
; |
| 17969 |
return 0; |
| 17970 |
} |
| 17971 |
_ACEOF |
| 17972 |
if ac_fn_c_try_compile "$LINENO" |
| 17973 |
then : |
| 17974 |
u=U |
| 17975 |
fi |
| 17976 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 17977 |
esac |
| 17978 |
if test x"$t" = x |
| 17979 |
then : |
| 17980 |
|
| 17981 |
for t in "long long" long int short; do |
| 17982 |
test -n "$u" && t="unsigned $t" |
| 17983 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17984 |
/* end confdefs.h. */ |
| 17985 |
#include <time.h> |
| 17986 |
|
| 17987 |
typedef $n rbcv_conftest_target_type; |
| 17988 |
typedef $t rbcv_conftest_replace_type; |
| 17989 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 17990 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 17991 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 17992 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 17993 |
|
| 17994 |
int |
| 17995 |
main (void) |
| 17996 |
{ |
| 17997 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 17998 |
test_array [0] = 0; |
| 17999 |
return test_array [0]; |
| 18000 |
|
| 18001 |
; |
| 18002 |
return 0; |
| 18003 |
} |
| 18004 |
_ACEOF |
| 18005 |
if ac_fn_c_try_compile "$LINENO" |
| 18006 |
then : |
| 18007 |
n="$t"; break |
| 18008 |
fi |
| 18009 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18010 |
done |
| 18011 |
|
| 18012 |
fi |
| 18013 |
case " $n " in #( |
| 18014 |
*" long long "*) : |
| 18015 |
|
| 18016 |
t=LL ;; #( |
| 18017 |
*" long "*) : |
| 18018 |
|
| 18019 |
t=LONG ;; #( |
| 18020 |
*" short "*) : |
| 18021 |
|
| 18022 |
t=SHORT ;; #( |
| 18023 |
*) : |
| 18024 |
|
| 18025 |
t=INT ;; |
| 18026 |
esac |
| 18027 |
rb_cv_time_t_convertible=${u}${t} |
| 18028 |
fi |
| 18029 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18030 |
|
| 18031 |
fi |
| 18032 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_time_t_convertible" >&5 |
| 18033 |
colorize_result "$rb_cv_time_t_convertible" ; } |
| 18034 |
if test "${ac_cv_type_time_t}" = "yes" |
| 18035 |
then : |
| 18036 |
|
| 18037 |
n="time_t" |
| 18038 |
|
| 18039 |
else $as_nop |
| 18040 |
|
| 18041 |
case "${rb_cv_time_t_convertible}" in #( |
| 18042 |
*LL) : |
| 18043 |
n="long long" ;; #( |
| 18044 |
*LONG) : |
| 18045 |
n="long" ;; #( |
| 18046 |
*SHORT) : |
| 18047 |
n="short" ;; #( |
| 18048 |
*) : |
| 18049 |
n="int" ;; |
| 18050 |
esac |
| 18051 |
case "${rb_cv_time_t_convertible}" in #( |
| 18052 |
U*) : |
| 18053 |
n="unsigned $n" ;; #( |
| 18054 |
*) : |
| 18055 |
;; |
| 18056 |
esac |
| 18057 |
|
| 18058 |
fi |
| 18059 |
case "${rb_cv_time_t_convertible}" in #( |
| 18060 |
PTR) : |
| 18061 |
u= ;; #( |
| 18062 |
U*) : |
| 18063 |
u=+1 ;; #( |
| 18064 |
*) : |
| 18065 |
u=-1 ;; |
| 18066 |
esac |
| 18067 |
printf "%s\n" "#define rb_time_t $n" >>confdefs.h |
| 18068 |
|
| 18069 |
if test $u |
| 18070 |
then : |
| 18071 |
|
| 18072 |
printf "%s\n" "#define SIGNEDNESS_OF_TIME_T $u" >>confdefs.h |
| 18073 |
|
| 18074 |
printf "%s\n" "#define TIMET2NUM(v) ${rb_cv_time_t_convertible}2NUM(v)" >>confdefs.h |
| 18075 |
|
| 18076 |
printf "%s\n" "#define NUM2TIMET(v) NUM2${rb_cv_time_t_convertible}(v)" >>confdefs.h |
| 18077 |
|
| 18078 |
cat >>confdefs.h <<_ACEOF |
| 18079 |
#define PRI_TIMET_PREFIX PRI_`echo ${rb_cv_time_t_convertible} | sed 's/^U//'`_PREFIX |
| 18080 |
_ACEOF |
| 18081 |
|
| 18082 |
|
| 18083 |
fi |
| 18084 |
|
| 18085 |
ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" |
| 18086 |
if test "x$ac_cv_type_dev_t" = xyes |
| 18087 |
then : |
| 18088 |
|
| 18089 |
printf "%s\n" "#define HAVE_DEV_T 1" >>confdefs.h |
| 18090 |
|
| 18091 |
n="dev_t" |
| 18092 |
else $as_nop |
| 18093 |
n="int long \"long long\"" |
| 18094 |
fi |
| 18095 |
|
| 18096 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of dev_t" >&5 |
| 18097 |
printf %s "checking for convertible type of dev_t... " >&6; } |
| 18098 |
if test ${rb_cv_dev_t_convertible+y} |
| 18099 |
then : |
| 18100 |
printf %s "(cached) " >&6 |
| 18101 |
else $as_nop |
| 18102 |
|
| 18103 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18104 |
/* end confdefs.h. */ |
| 18105 |
$ac_includes_default |
| 18106 |
typedef $n rbcv_conftest_target_type; |
| 18107 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18108 |
|
| 18109 |
int |
| 18110 |
main (void) |
| 18111 |
{ |
| 18112 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 18113 |
test_array [0] = 0; |
| 18114 |
return test_array [0]; |
| 18115 |
|
| 18116 |
; |
| 18117 |
return 0; |
| 18118 |
} |
| 18119 |
_ACEOF |
| 18120 |
if ac_fn_c_try_compile "$LINENO" |
| 18121 |
then : |
| 18122 |
rb_cv_dev_t_convertible=PTR |
| 18123 |
else $as_nop |
| 18124 |
|
| 18125 |
u= t= |
| 18126 |
case "$n " in #( |
| 18127 |
*" signed "*) : |
| 18128 |
;; #( |
| 18129 |
*" unsigned "*) : |
| 18130 |
|
| 18131 |
u=U ;; #( |
| 18132 |
*) : |
| 18133 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18134 |
/* end confdefs.h. */ |
| 18135 |
$ac_includes_default |
| 18136 |
int |
| 18137 |
main (void) |
| 18138 |
{ |
| 18139 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 18140 |
test_array [0] = 0; |
| 18141 |
return test_array [0]; |
| 18142 |
|
| 18143 |
; |
| 18144 |
return 0; |
| 18145 |
} |
| 18146 |
_ACEOF |
| 18147 |
if ac_fn_c_try_compile "$LINENO" |
| 18148 |
then : |
| 18149 |
u=U |
| 18150 |
fi |
| 18151 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 18152 |
esac |
| 18153 |
if test x"$t" = x |
| 18154 |
then : |
| 18155 |
|
| 18156 |
for t in "long long" long int short; do |
| 18157 |
test -n "$u" && t="unsigned $t" |
| 18158 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18159 |
/* end confdefs.h. */ |
| 18160 |
$ac_includes_default |
| 18161 |
typedef $n rbcv_conftest_target_type; |
| 18162 |
typedef $t rbcv_conftest_replace_type; |
| 18163 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18164 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 18165 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 18166 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 18167 |
|
| 18168 |
int |
| 18169 |
main (void) |
| 18170 |
{ |
| 18171 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 18172 |
test_array [0] = 0; |
| 18173 |
return test_array [0]; |
| 18174 |
|
| 18175 |
; |
| 18176 |
return 0; |
| 18177 |
} |
| 18178 |
_ACEOF |
| 18179 |
if ac_fn_c_try_compile "$LINENO" |
| 18180 |
then : |
| 18181 |
n="$t"; break |
| 18182 |
fi |
| 18183 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18184 |
done |
| 18185 |
|
| 18186 |
fi |
| 18187 |
case " $n " in #( |
| 18188 |
*" long long "*) : |
| 18189 |
|
| 18190 |
t=LL ;; #( |
| 18191 |
*" long "*) : |
| 18192 |
|
| 18193 |
t=LONG ;; #( |
| 18194 |
*" short "*) : |
| 18195 |
|
| 18196 |
t=SHORT ;; #( |
| 18197 |
*) : |
| 18198 |
|
| 18199 |
t=INT ;; |
| 18200 |
esac |
| 18201 |
rb_cv_dev_t_convertible=${u}${t} |
| 18202 |
fi |
| 18203 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18204 |
|
| 18205 |
fi |
| 18206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dev_t_convertible" >&5 |
| 18207 |
colorize_result "$rb_cv_dev_t_convertible" ; } |
| 18208 |
if test "${ac_cv_type_dev_t}" = "yes" |
| 18209 |
then : |
| 18210 |
|
| 18211 |
n="dev_t" |
| 18212 |
|
| 18213 |
else $as_nop |
| 18214 |
|
| 18215 |
case "${rb_cv_dev_t_convertible}" in #( |
| 18216 |
*LL) : |
| 18217 |
n="long long" ;; #( |
| 18218 |
*LONG) : |
| 18219 |
n="long" ;; #( |
| 18220 |
*SHORT) : |
| 18221 |
n="short" ;; #( |
| 18222 |
*) : |
| 18223 |
n="int" ;; |
| 18224 |
esac |
| 18225 |
case "${rb_cv_dev_t_convertible}" in #( |
| 18226 |
U*) : |
| 18227 |
n="unsigned $n" ;; #( |
| 18228 |
*) : |
| 18229 |
;; |
| 18230 |
esac |
| 18231 |
|
| 18232 |
fi |
| 18233 |
case "${rb_cv_dev_t_convertible}" in #( |
| 18234 |
PTR) : |
| 18235 |
u= ;; #( |
| 18236 |
U*) : |
| 18237 |
u=+1 ;; #( |
| 18238 |
*) : |
| 18239 |
u=-1 ;; |
| 18240 |
esac |
| 18241 |
printf "%s\n" "#define rb_dev_t $n" >>confdefs.h |
| 18242 |
|
| 18243 |
if test $u |
| 18244 |
then : |
| 18245 |
|
| 18246 |
printf "%s\n" "#define SIGNEDNESS_OF_DEV_T $u" >>confdefs.h |
| 18247 |
|
| 18248 |
printf "%s\n" "#define DEVT2NUM(v) ${rb_cv_dev_t_convertible}2NUM(v)" >>confdefs.h |
| 18249 |
|
| 18250 |
printf "%s\n" "#define NUM2DEVT(v) NUM2${rb_cv_dev_t_convertible}(v)" >>confdefs.h |
| 18251 |
|
| 18252 |
cat >>confdefs.h <<_ACEOF |
| 18253 |
#define PRI_DEVT_PREFIX PRI_`echo ${rb_cv_dev_t_convertible} | sed 's/^U//'`_PREFIX |
| 18254 |
_ACEOF |
| 18255 |
|
| 18256 |
|
| 18257 |
fi |
| 18258 |
|
| 18259 |
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "#include <sys/stat.h> |
| 18260 |
" |
| 18261 |
if test "x$ac_cv_type_mode_t" = xyes |
| 18262 |
then : |
| 18263 |
|
| 18264 |
printf "%s\n" "#define HAVE_MODE_T 1" >>confdefs.h |
| 18265 |
|
| 18266 |
n="mode_t" |
| 18267 |
else $as_nop |
| 18268 |
n="\"unsigned short\" \"unsigned int\" long" |
| 18269 |
fi |
| 18270 |
|
| 18271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of mode_t" >&5 |
| 18272 |
printf %s "checking for convertible type of mode_t... " >&6; } |
| 18273 |
if test ${rb_cv_mode_t_convertible+y} |
| 18274 |
then : |
| 18275 |
printf %s "(cached) " >&6 |
| 18276 |
else $as_nop |
| 18277 |
|
| 18278 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18279 |
/* end confdefs.h. */ |
| 18280 |
#include <sys/stat.h> |
| 18281 |
|
| 18282 |
typedef $n rbcv_conftest_target_type; |
| 18283 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18284 |
|
| 18285 |
int |
| 18286 |
main (void) |
| 18287 |
{ |
| 18288 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 18289 |
test_array [0] = 0; |
| 18290 |
return test_array [0]; |
| 18291 |
|
| 18292 |
; |
| 18293 |
return 0; |
| 18294 |
} |
| 18295 |
_ACEOF |
| 18296 |
if ac_fn_c_try_compile "$LINENO" |
| 18297 |
then : |
| 18298 |
rb_cv_mode_t_convertible=PTR |
| 18299 |
else $as_nop |
| 18300 |
|
| 18301 |
u= t= |
| 18302 |
case "$n " in #( |
| 18303 |
*" signed "*) : |
| 18304 |
;; #( |
| 18305 |
*" unsigned "*) : |
| 18306 |
|
| 18307 |
u=U ;; #( |
| 18308 |
*) : |
| 18309 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18310 |
/* end confdefs.h. */ |
| 18311 |
#include <sys/stat.h> |
| 18312 |
|
| 18313 |
int |
| 18314 |
main (void) |
| 18315 |
{ |
| 18316 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 18317 |
test_array [0] = 0; |
| 18318 |
return test_array [0]; |
| 18319 |
|
| 18320 |
; |
| 18321 |
return 0; |
| 18322 |
} |
| 18323 |
_ACEOF |
| 18324 |
if ac_fn_c_try_compile "$LINENO" |
| 18325 |
then : |
| 18326 |
u=U |
| 18327 |
fi |
| 18328 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 18329 |
esac |
| 18330 |
if test x"$t" = x |
| 18331 |
then : |
| 18332 |
|
| 18333 |
for t in "long long" long int short; do |
| 18334 |
test -n "$u" && t="unsigned $t" |
| 18335 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18336 |
/* end confdefs.h. */ |
| 18337 |
#include <sys/stat.h> |
| 18338 |
|
| 18339 |
typedef $n rbcv_conftest_target_type; |
| 18340 |
typedef $t rbcv_conftest_replace_type; |
| 18341 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18342 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 18343 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 18344 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 18345 |
|
| 18346 |
int |
| 18347 |
main (void) |
| 18348 |
{ |
| 18349 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 18350 |
test_array [0] = 0; |
| 18351 |
return test_array [0]; |
| 18352 |
|
| 18353 |
; |
| 18354 |
return 0; |
| 18355 |
} |
| 18356 |
_ACEOF |
| 18357 |
if ac_fn_c_try_compile "$LINENO" |
| 18358 |
then : |
| 18359 |
n="$t"; break |
| 18360 |
fi |
| 18361 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18362 |
done |
| 18363 |
|
| 18364 |
fi |
| 18365 |
case " $n " in #( |
| 18366 |
*" long long "*) : |
| 18367 |
|
| 18368 |
t=LL ;; #( |
| 18369 |
*" long "*) : |
| 18370 |
|
| 18371 |
t=LONG ;; #( |
| 18372 |
*" short "*) : |
| 18373 |
|
| 18374 |
t=SHORT ;; #( |
| 18375 |
*) : |
| 18376 |
|
| 18377 |
t=INT ;; |
| 18378 |
esac |
| 18379 |
rb_cv_mode_t_convertible=${u}${t} |
| 18380 |
fi |
| 18381 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18382 |
|
| 18383 |
fi |
| 18384 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mode_t_convertible" >&5 |
| 18385 |
colorize_result "$rb_cv_mode_t_convertible" ; } |
| 18386 |
if test "${ac_cv_type_mode_t}" = "yes" |
| 18387 |
then : |
| 18388 |
|
| 18389 |
n="mode_t" |
| 18390 |
|
| 18391 |
else $as_nop |
| 18392 |
|
| 18393 |
case "${rb_cv_mode_t_convertible}" in #( |
| 18394 |
*LL) : |
| 18395 |
n="long long" ;; #( |
| 18396 |
*LONG) : |
| 18397 |
n="long" ;; #( |
| 18398 |
*SHORT) : |
| 18399 |
n="short" ;; #( |
| 18400 |
*) : |
| 18401 |
n="int" ;; |
| 18402 |
esac |
| 18403 |
case "${rb_cv_mode_t_convertible}" in #( |
| 18404 |
U*) : |
| 18405 |
n="unsigned $n" ;; #( |
| 18406 |
*) : |
| 18407 |
;; |
| 18408 |
esac |
| 18409 |
|
| 18410 |
fi |
| 18411 |
case "${rb_cv_mode_t_convertible}" in #( |
| 18412 |
PTR) : |
| 18413 |
u= ;; #( |
| 18414 |
U*) : |
| 18415 |
u=+1 ;; #( |
| 18416 |
*) : |
| 18417 |
u=-1 ;; |
| 18418 |
esac |
| 18419 |
printf "%s\n" "#define rb_mode_t $n" >>confdefs.h |
| 18420 |
|
| 18421 |
if test $u |
| 18422 |
then : |
| 18423 |
|
| 18424 |
printf "%s\n" "#define SIGNEDNESS_OF_MODE_T $u" >>confdefs.h |
| 18425 |
|
| 18426 |
printf "%s\n" "#define MODET2NUM(v) ${rb_cv_mode_t_convertible}2NUM(v)" >>confdefs.h |
| 18427 |
|
| 18428 |
printf "%s\n" "#define NUM2MODET(v) NUM2${rb_cv_mode_t_convertible}(v)" >>confdefs.h |
| 18429 |
|
| 18430 |
cat >>confdefs.h <<_ACEOF |
| 18431 |
#define PRI_MODET_PREFIX PRI_`echo ${rb_cv_mode_t_convertible} | sed 's/^U//'`_PREFIX |
| 18432 |
_ACEOF |
| 18433 |
|
| 18434 |
|
| 18435 |
fi |
| 18436 |
|
| 18437 |
ac_fn_c_check_type "$LINENO" "rlim_t" "ac_cv_type_rlim_t" " |
| 18438 |
#ifdef HAVE_SYS_TYPES_H |
| 18439 |
#include <sys/types.h> |
| 18440 |
#endif |
| 18441 |
#ifdef HAVE_SYS_TYPES_H |
| 18442 |
#include <sys/time.h> |
| 18443 |
#endif |
| 18444 |
#include <sys/resource.h> |
| 18445 |
|
| 18446 |
" |
| 18447 |
if test "x$ac_cv_type_rlim_t" = xyes |
| 18448 |
then : |
| 18449 |
|
| 18450 |
printf "%s\n" "#define HAVE_RLIM_T 1" >>confdefs.h |
| 18451 |
|
| 18452 |
n="rlim_t" |
| 18453 |
else $as_nop |
| 18454 |
n="int long \"long long\"" |
| 18455 |
fi |
| 18456 |
|
| 18457 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of rlim_t" >&5 |
| 18458 |
printf %s "checking for convertible type of rlim_t... " >&6; } |
| 18459 |
if test ${rb_cv_rlim_t_convertible+y} |
| 18460 |
then : |
| 18461 |
printf %s "(cached) " >&6 |
| 18462 |
else $as_nop |
| 18463 |
|
| 18464 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18465 |
/* end confdefs.h. */ |
| 18466 |
|
| 18467 |
#ifdef HAVE_SYS_TYPES_H |
| 18468 |
#include <sys/types.h> |
| 18469 |
#endif |
| 18470 |
#ifdef HAVE_SYS_TYPES_H |
| 18471 |
#include <sys/time.h> |
| 18472 |
#endif |
| 18473 |
#include <sys/resource.h> |
| 18474 |
|
| 18475 |
|
| 18476 |
typedef $n rbcv_conftest_target_type; |
| 18477 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18478 |
|
| 18479 |
int |
| 18480 |
main (void) |
| 18481 |
{ |
| 18482 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 18483 |
test_array [0] = 0; |
| 18484 |
return test_array [0]; |
| 18485 |
|
| 18486 |
; |
| 18487 |
return 0; |
| 18488 |
} |
| 18489 |
_ACEOF |
| 18490 |
if ac_fn_c_try_compile "$LINENO" |
| 18491 |
then : |
| 18492 |
rb_cv_rlim_t_convertible=PTR |
| 18493 |
else $as_nop |
| 18494 |
|
| 18495 |
u= t= |
| 18496 |
case "$n " in #( |
| 18497 |
*" signed "*) : |
| 18498 |
;; #( |
| 18499 |
*" unsigned "*) : |
| 18500 |
|
| 18501 |
u=U ;; #( |
| 18502 |
*) : |
| 18503 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18504 |
/* end confdefs.h. */ |
| 18505 |
|
| 18506 |
#ifdef HAVE_SYS_TYPES_H |
| 18507 |
#include <sys/types.h> |
| 18508 |
#endif |
| 18509 |
#ifdef HAVE_SYS_TYPES_H |
| 18510 |
#include <sys/time.h> |
| 18511 |
#endif |
| 18512 |
#include <sys/resource.h> |
| 18513 |
|
| 18514 |
|
| 18515 |
int |
| 18516 |
main (void) |
| 18517 |
{ |
| 18518 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 18519 |
test_array [0] = 0; |
| 18520 |
return test_array [0]; |
| 18521 |
|
| 18522 |
; |
| 18523 |
return 0; |
| 18524 |
} |
| 18525 |
_ACEOF |
| 18526 |
if ac_fn_c_try_compile "$LINENO" |
| 18527 |
then : |
| 18528 |
u=U |
| 18529 |
fi |
| 18530 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 18531 |
esac |
| 18532 |
if test x"$t" = x |
| 18533 |
then : |
| 18534 |
|
| 18535 |
for t in "long long" long int short; do |
| 18536 |
test -n "$u" && t="unsigned $t" |
| 18537 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18538 |
/* end confdefs.h. */ |
| 18539 |
|
| 18540 |
#ifdef HAVE_SYS_TYPES_H |
| 18541 |
#include <sys/types.h> |
| 18542 |
#endif |
| 18543 |
#ifdef HAVE_SYS_TYPES_H |
| 18544 |
#include <sys/time.h> |
| 18545 |
#endif |
| 18546 |
#include <sys/resource.h> |
| 18547 |
|
| 18548 |
|
| 18549 |
typedef $n rbcv_conftest_target_type; |
| 18550 |
typedef $t rbcv_conftest_replace_type; |
| 18551 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18552 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 18553 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 18554 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 18555 |
|
| 18556 |
int |
| 18557 |
main (void) |
| 18558 |
{ |
| 18559 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 18560 |
test_array [0] = 0; |
| 18561 |
return test_array [0]; |
| 18562 |
|
| 18563 |
; |
| 18564 |
return 0; |
| 18565 |
} |
| 18566 |
_ACEOF |
| 18567 |
if ac_fn_c_try_compile "$LINENO" |
| 18568 |
then : |
| 18569 |
n="$t"; break |
| 18570 |
fi |
| 18571 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18572 |
done |
| 18573 |
|
| 18574 |
fi |
| 18575 |
case " $n " in #( |
| 18576 |
*" long long "*) : |
| 18577 |
|
| 18578 |
t=LL ;; #( |
| 18579 |
*" long "*) : |
| 18580 |
|
| 18581 |
t=LONG ;; #( |
| 18582 |
*" short "*) : |
| 18583 |
|
| 18584 |
t=SHORT ;; #( |
| 18585 |
*) : |
| 18586 |
|
| 18587 |
t=INT ;; |
| 18588 |
esac |
| 18589 |
rb_cv_rlim_t_convertible=${u}${t} |
| 18590 |
fi |
| 18591 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18592 |
|
| 18593 |
fi |
| 18594 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rlim_t_convertible" >&5 |
| 18595 |
colorize_result "$rb_cv_rlim_t_convertible" ; } |
| 18596 |
if test "${ac_cv_type_rlim_t}" = "yes" |
| 18597 |
then : |
| 18598 |
|
| 18599 |
n="rlim_t" |
| 18600 |
|
| 18601 |
else $as_nop |
| 18602 |
|
| 18603 |
case "${rb_cv_rlim_t_convertible}" in #( |
| 18604 |
*LL) : |
| 18605 |
n="long long" ;; #( |
| 18606 |
*LONG) : |
| 18607 |
n="long" ;; #( |
| 18608 |
*SHORT) : |
| 18609 |
n="short" ;; #( |
| 18610 |
*) : |
| 18611 |
n="int" ;; |
| 18612 |
esac |
| 18613 |
case "${rb_cv_rlim_t_convertible}" in #( |
| 18614 |
U*) : |
| 18615 |
n="unsigned $n" ;; #( |
| 18616 |
*) : |
| 18617 |
;; |
| 18618 |
esac |
| 18619 |
|
| 18620 |
fi |
| 18621 |
case "${rb_cv_rlim_t_convertible}" in #( |
| 18622 |
PTR) : |
| 18623 |
u= ;; #( |
| 18624 |
U*) : |
| 18625 |
u=+1 ;; #( |
| 18626 |
*) : |
| 18627 |
u=-1 ;; |
| 18628 |
esac |
| 18629 |
printf "%s\n" "#define rb_rlim_t $n" >>confdefs.h |
| 18630 |
|
| 18631 |
if test $u |
| 18632 |
then : |
| 18633 |
|
| 18634 |
printf "%s\n" "#define SIGNEDNESS_OF_RLIM_T $u" >>confdefs.h |
| 18635 |
|
| 18636 |
printf "%s\n" "#define RLIM2NUM(v) ${rb_cv_rlim_t_convertible}2NUM(v)" >>confdefs.h |
| 18637 |
|
| 18638 |
printf "%s\n" "#define NUM2RLIM(v) NUM2${rb_cv_rlim_t_convertible}(v)" >>confdefs.h |
| 18639 |
|
| 18640 |
cat >>confdefs.h <<_ACEOF |
| 18641 |
#define PRI_RLIM_PREFIX PRI_`echo ${rb_cv_rlim_t_convertible} | sed 's/^U//'`_PREFIX |
| 18642 |
_ACEOF |
| 18643 |
|
| 18644 |
|
| 18645 |
fi |
| 18646 |
|
| 18647 |
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 18648 |
if test "x$ac_cv_type_off_t" = xyes |
| 18649 |
then : |
| 18650 |
|
| 18651 |
printf "%s\n" "#define HAVE_OFF_T 1" >>confdefs.h |
| 18652 |
|
| 18653 |
n="off_t" |
| 18654 |
else $as_nop |
| 18655 |
n="" |
| 18656 |
fi |
| 18657 |
|
| 18658 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of off_t" >&5 |
| 18659 |
printf %s "checking for convertible type of off_t... " >&6; } |
| 18660 |
if test ${rb_cv_off_t_convertible+y} |
| 18661 |
then : |
| 18662 |
printf %s "(cached) " >&6 |
| 18663 |
else $as_nop |
| 18664 |
|
| 18665 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18666 |
/* end confdefs.h. */ |
| 18667 |
$ac_includes_default |
| 18668 |
typedef $n rbcv_conftest_target_type; |
| 18669 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18670 |
|
| 18671 |
int |
| 18672 |
main (void) |
| 18673 |
{ |
| 18674 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 18675 |
test_array [0] = 0; |
| 18676 |
return test_array [0]; |
| 18677 |
|
| 18678 |
; |
| 18679 |
return 0; |
| 18680 |
} |
| 18681 |
_ACEOF |
| 18682 |
if ac_fn_c_try_compile "$LINENO" |
| 18683 |
then : |
| 18684 |
rb_cv_off_t_convertible=PTR |
| 18685 |
else $as_nop |
| 18686 |
|
| 18687 |
u= t= |
| 18688 |
case "$n " in #( |
| 18689 |
*" signed "*) : |
| 18690 |
;; #( |
| 18691 |
*" unsigned "*) : |
| 18692 |
|
| 18693 |
u=U ;; #( |
| 18694 |
*) : |
| 18695 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18696 |
/* end confdefs.h. */ |
| 18697 |
$ac_includes_default |
| 18698 |
int |
| 18699 |
main (void) |
| 18700 |
{ |
| 18701 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 18702 |
test_array [0] = 0; |
| 18703 |
return test_array [0]; |
| 18704 |
|
| 18705 |
; |
| 18706 |
return 0; |
| 18707 |
} |
| 18708 |
_ACEOF |
| 18709 |
if ac_fn_c_try_compile "$LINENO" |
| 18710 |
then : |
| 18711 |
u=U |
| 18712 |
fi |
| 18713 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 18714 |
esac |
| 18715 |
if test x"$t" = x |
| 18716 |
then : |
| 18717 |
|
| 18718 |
for t in "long long" long int short; do |
| 18719 |
test -n "$u" && t="unsigned $t" |
| 18720 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18721 |
/* end confdefs.h. */ |
| 18722 |
$ac_includes_default |
| 18723 |
typedef $n rbcv_conftest_target_type; |
| 18724 |
typedef $t rbcv_conftest_replace_type; |
| 18725 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18726 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 18727 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 18728 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 18729 |
|
| 18730 |
int |
| 18731 |
main (void) |
| 18732 |
{ |
| 18733 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 18734 |
test_array [0] = 0; |
| 18735 |
return test_array [0]; |
| 18736 |
|
| 18737 |
; |
| 18738 |
return 0; |
| 18739 |
} |
| 18740 |
_ACEOF |
| 18741 |
if ac_fn_c_try_compile "$LINENO" |
| 18742 |
then : |
| 18743 |
n="$t"; break |
| 18744 |
fi |
| 18745 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18746 |
done |
| 18747 |
|
| 18748 |
fi |
| 18749 |
case " $n " in #( |
| 18750 |
*" long long "*) : |
| 18751 |
|
| 18752 |
t=LL ;; #( |
| 18753 |
*" long "*) : |
| 18754 |
|
| 18755 |
t=LONG ;; #( |
| 18756 |
*" short "*) : |
| 18757 |
|
| 18758 |
t=SHORT ;; #( |
| 18759 |
*) : |
| 18760 |
|
| 18761 |
t=INT ;; |
| 18762 |
esac |
| 18763 |
rb_cv_off_t_convertible=${u}${t} |
| 18764 |
fi |
| 18765 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18766 |
|
| 18767 |
fi |
| 18768 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_off_t_convertible" >&5 |
| 18769 |
colorize_result "$rb_cv_off_t_convertible" ; } |
| 18770 |
if test "${ac_cv_type_off_t}" = "yes" |
| 18771 |
then : |
| 18772 |
|
| 18773 |
n="off_t" |
| 18774 |
|
| 18775 |
else $as_nop |
| 18776 |
|
| 18777 |
case "${rb_cv_off_t_convertible}" in #( |
| 18778 |
*LL) : |
| 18779 |
n="long long" ;; #( |
| 18780 |
*LONG) : |
| 18781 |
n="long" ;; #( |
| 18782 |
*SHORT) : |
| 18783 |
n="short" ;; #( |
| 18784 |
*) : |
| 18785 |
n="int" ;; |
| 18786 |
esac |
| 18787 |
case "${rb_cv_off_t_convertible}" in #( |
| 18788 |
U*) : |
| 18789 |
n="unsigned $n" ;; #( |
| 18790 |
*) : |
| 18791 |
;; |
| 18792 |
esac |
| 18793 |
|
| 18794 |
fi |
| 18795 |
case "${rb_cv_off_t_convertible}" in #( |
| 18796 |
PTR) : |
| 18797 |
u= ;; #( |
| 18798 |
U*) : |
| 18799 |
u=+1 ;; #( |
| 18800 |
*) : |
| 18801 |
u=-1 ;; |
| 18802 |
esac |
| 18803 |
printf "%s\n" "#define rb_off_t $n" >>confdefs.h |
| 18804 |
|
| 18805 |
if test $u |
| 18806 |
then : |
| 18807 |
|
| 18808 |
printf "%s\n" "#define SIGNEDNESS_OF_OFF_T $u" >>confdefs.h |
| 18809 |
|
| 18810 |
printf "%s\n" "#define OFFT2NUM(v) ${rb_cv_off_t_convertible}2NUM(v)" >>confdefs.h |
| 18811 |
|
| 18812 |
printf "%s\n" "#define NUM2OFFT(v) NUM2${rb_cv_off_t_convertible}(v)" >>confdefs.h |
| 18813 |
|
| 18814 |
cat >>confdefs.h <<_ACEOF |
| 18815 |
#define PRI_OFFT_PREFIX PRI_`echo ${rb_cv_off_t_convertible} | sed 's/^U//'`_PREFIX |
| 18816 |
_ACEOF |
| 18817 |
|
| 18818 |
|
| 18819 |
fi |
| 18820 |
|
| 18821 |
ac_fn_c_check_type "$LINENO" "clockid_t" "ac_cv_type_clockid_t" "#ifdef HAVE_TIME_H |
| 18822 |
# include <time.h> |
| 18823 |
#endif |
| 18824 |
#ifdef HAVE_SYS_TIME_H |
| 18825 |
# include <sys/time.h> |
| 18826 |
#endif |
| 18827 |
" |
| 18828 |
if test "x$ac_cv_type_clockid_t" = xyes |
| 18829 |
then : |
| 18830 |
|
| 18831 |
printf "%s\n" "#define HAVE_CLOCKID_T 1" >>confdefs.h |
| 18832 |
|
| 18833 |
n="clockid_t" |
| 18834 |
else $as_nop |
| 18835 |
n="" |
| 18836 |
fi |
| 18837 |
|
| 18838 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for convertible type of clockid_t" >&5 |
| 18839 |
printf %s "checking for convertible type of clockid_t... " >&6; } |
| 18840 |
if test ${rb_cv_clockid_t_convertible+y} |
| 18841 |
then : |
| 18842 |
printf %s "(cached) " >&6 |
| 18843 |
else $as_nop |
| 18844 |
|
| 18845 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18846 |
/* end confdefs.h. */ |
| 18847 |
#ifdef HAVE_TIME_H |
| 18848 |
# include <time.h> |
| 18849 |
#endif |
| 18850 |
#ifdef HAVE_SYS_TIME_H |
| 18851 |
# include <sys/time.h> |
| 18852 |
#endif |
| 18853 |
|
| 18854 |
typedef $n rbcv_conftest_target_type; |
| 18855 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18856 |
|
| 18857 |
int |
| 18858 |
main (void) |
| 18859 |
{ |
| 18860 |
static int test_array [1 - 2 * !(sizeof(&*rbcv_conftest_var))]; |
| 18861 |
test_array [0] = 0; |
| 18862 |
return test_array [0]; |
| 18863 |
|
| 18864 |
; |
| 18865 |
return 0; |
| 18866 |
} |
| 18867 |
_ACEOF |
| 18868 |
if ac_fn_c_try_compile "$LINENO" |
| 18869 |
then : |
| 18870 |
rb_cv_clockid_t_convertible=PTR |
| 18871 |
else $as_nop |
| 18872 |
|
| 18873 |
u= t= |
| 18874 |
case "$n " in #( |
| 18875 |
*" signed "*) : |
| 18876 |
;; #( |
| 18877 |
*" unsigned "*) : |
| 18878 |
|
| 18879 |
u=U ;; #( |
| 18880 |
*) : |
| 18881 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18882 |
/* end confdefs.h. */ |
| 18883 |
#ifdef HAVE_TIME_H |
| 18884 |
# include <time.h> |
| 18885 |
#endif |
| 18886 |
#ifdef HAVE_SYS_TIME_H |
| 18887 |
# include <sys/time.h> |
| 18888 |
#endif |
| 18889 |
|
| 18890 |
int |
| 18891 |
main (void) |
| 18892 |
{ |
| 18893 |
static int test_array [1 - 2 * !(($n)-1 > 0)]; |
| 18894 |
test_array [0] = 0; |
| 18895 |
return test_array [0]; |
| 18896 |
|
| 18897 |
; |
| 18898 |
return 0; |
| 18899 |
} |
| 18900 |
_ACEOF |
| 18901 |
if ac_fn_c_try_compile "$LINENO" |
| 18902 |
then : |
| 18903 |
u=U |
| 18904 |
fi |
| 18905 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 18906 |
esac |
| 18907 |
if test x"$t" = x |
| 18908 |
then : |
| 18909 |
|
| 18910 |
for t in "long long" long int short; do |
| 18911 |
test -n "$u" && t="unsigned $t" |
| 18912 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18913 |
/* end confdefs.h. */ |
| 18914 |
#ifdef HAVE_TIME_H |
| 18915 |
# include <time.h> |
| 18916 |
#endif |
| 18917 |
#ifdef HAVE_SYS_TIME_H |
| 18918 |
# include <sys/time.h> |
| 18919 |
#endif |
| 18920 |
|
| 18921 |
typedef $n rbcv_conftest_target_type; |
| 18922 |
typedef $t rbcv_conftest_replace_type; |
| 18923 |
extern rbcv_conftest_target_type rbcv_conftest_var; |
| 18924 |
extern rbcv_conftest_replace_type rbcv_conftest_var; |
| 18925 |
extern rbcv_conftest_target_type rbcv_conftest_func(void); |
| 18926 |
extern rbcv_conftest_replace_type rbcv_conftest_func(void); |
| 18927 |
|
| 18928 |
int |
| 18929 |
main (void) |
| 18930 |
{ |
| 18931 |
static int test_array [1 - 2 * !(sizeof(rbcv_conftest_target_type) == sizeof(rbcv_conftest_replace_type))]; |
| 18932 |
test_array [0] = 0; |
| 18933 |
return test_array [0]; |
| 18934 |
|
| 18935 |
; |
| 18936 |
return 0; |
| 18937 |
} |
| 18938 |
_ACEOF |
| 18939 |
if ac_fn_c_try_compile "$LINENO" |
| 18940 |
then : |
| 18941 |
n="$t"; break |
| 18942 |
fi |
| 18943 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18944 |
done |
| 18945 |
|
| 18946 |
fi |
| 18947 |
case " $n " in #( |
| 18948 |
*" long long "*) : |
| 18949 |
|
| 18950 |
t=LL ;; #( |
| 18951 |
*" long "*) : |
| 18952 |
|
| 18953 |
t=LONG ;; #( |
| 18954 |
*" short "*) : |
| 18955 |
|
| 18956 |
t=SHORT ;; #( |
| 18957 |
*) : |
| 18958 |
|
| 18959 |
t=INT ;; |
| 18960 |
esac |
| 18961 |
rb_cv_clockid_t_convertible=${u}${t} |
| 18962 |
fi |
| 18963 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18964 |
|
| 18965 |
fi |
| 18966 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_clockid_t_convertible" >&5 |
| 18967 |
colorize_result "$rb_cv_clockid_t_convertible" ; } |
| 18968 |
if test "${ac_cv_type_clockid_t}" = "yes" |
| 18969 |
then : |
| 18970 |
|
| 18971 |
n="clockid_t" |
| 18972 |
|
| 18973 |
else $as_nop |
| 18974 |
|
| 18975 |
case "${rb_cv_clockid_t_convertible}" in #( |
| 18976 |
*LL) : |
| 18977 |
n="long long" ;; #( |
| 18978 |
*LONG) : |
| 18979 |
n="long" ;; #( |
| 18980 |
*SHORT) : |
| 18981 |
n="short" ;; #( |
| 18982 |
*) : |
| 18983 |
n="int" ;; |
| 18984 |
esac |
| 18985 |
case "${rb_cv_clockid_t_convertible}" in #( |
| 18986 |
U*) : |
| 18987 |
n="unsigned $n" ;; #( |
| 18988 |
*) : |
| 18989 |
;; |
| 18990 |
esac |
| 18991 |
|
| 18992 |
fi |
| 18993 |
case "${rb_cv_clockid_t_convertible}" in #( |
| 18994 |
PTR) : |
| 18995 |
u= ;; #( |
| 18996 |
U*) : |
| 18997 |
u=+1 ;; #( |
| 18998 |
*) : |
| 18999 |
u=-1 ;; |
| 19000 |
esac |
| 19001 |
printf "%s\n" "#define rb_clockid_t $n" >>confdefs.h |
| 19002 |
|
| 19003 |
if test $u |
| 19004 |
then : |
| 19005 |
|
| 19006 |
printf "%s\n" "#define SIGNEDNESS_OF_CLOCKID_T $u" >>confdefs.h |
| 19007 |
|
| 19008 |
printf "%s\n" "#define CLOCKID2NUM(v) ${rb_cv_clockid_t_convertible}2NUM(v)" >>confdefs.h |
| 19009 |
|
| 19010 |
printf "%s\n" "#define NUM2CLOCKID(v) NUM2${rb_cv_clockid_t_convertible}(v)" >>confdefs.h |
| 19011 |
|
| 19012 |
cat >>confdefs.h <<_ACEOF |
| 19013 |
#define PRI_CLOCKID_PREFIX PRI_`echo ${rb_cv_clockid_t_convertible} | sed 's/^U//'`_PREFIX |
| 19014 |
_ACEOF |
| 19015 |
|
| 19016 |
|
| 19017 |
fi |
| 19018 |
|
| 19019 |
|
| 19020 |
# __VA_ARGS__ is also tested in AC_PROG_CC_C99 since autoconf 2.60a (around |
| 19021 |
# 2006). The check below is redundant and should always success. Remain not |
| 19022 |
# deleted for backward compat. |
| 19023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable length macro" >&5 |
| 19024 |
printf %s "checking for variable length macro... " >&6; } |
| 19025 |
if test ${rb_cv_va_args_macro+y} |
| 19026 |
then : |
| 19027 |
printf %s "(cached) " >&6 |
| 19028 |
else $as_nop |
| 19029 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19030 |
/* end confdefs.h. */ |
| 19031 |
|
| 19032 |
int foo(const char*); |
| 19033 |
#define FOO(...) foo(#__VA_ARGS__) |
| 19034 |
|
| 19035 |
int |
| 19036 |
main (void) |
| 19037 |
{ |
| 19038 |
FOO(1);FOO(1,2);FOO(1,2,3); |
| 19039 |
; |
| 19040 |
return 0; |
| 19041 |
} |
| 19042 |
_ACEOF |
| 19043 |
if ac_fn_c_try_compile "$LINENO" |
| 19044 |
then : |
| 19045 |
rb_cv_va_args_macro=yes |
| 19046 |
else $as_nop |
| 19047 |
rb_cv_va_args_macro=no |
| 19048 |
fi |
| 19049 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19050 |
fi |
| 19051 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_va_args_macro" >&5 |
| 19052 |
colorize_result "$rb_cv_va_args_macro" ; } |
| 19053 |
if test "$rb_cv_va_args_macro" = yes |
| 19054 |
then : |
| 19055 |
|
| 19056 |
printf "%s\n" "#define HAVE_VA_ARGS_MACRO 1" >>confdefs.h |
| 19057 |
|
| 19058 |
|
| 19059 |
fi |
| 19060 |
|
| 19061 |
# We want C11's `_Alignof`. GCC (and alike) have `__alignof__`, which behave |
| 19062 |
# slightly differently than the C11's. We cannot use `__alignof__` for our |
| 19063 |
# purpose. The problem is, however, that old gcc and old clang had both |
| 19064 |
# implemented `_Alignof` as a synonym of `__alignof__`. They are not what we |
| 19065 |
# want. We have to check sanity. |
| 19066 |
# |
| 19067 |
# See also: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023 |
| 19068 |
# See also: https://bugs.llvm.org/show_bug.cgi?id=26547 |
| 19069 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Alignof() works" >&5 |
| 19070 |
printf %s "checking if _Alignof() works... " >&6; } |
| 19071 |
if test ${rb_cv_have__alignof+y} |
| 19072 |
then : |
| 19073 |
printf %s "(cached) " >&6 |
| 19074 |
else $as_nop |
| 19075 |
|
| 19076 |
rb_cv_have__alignof=no |
| 19077 |
save_CFLAGS="$CFLAGS" |
| 19078 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19079 |
if test "${ac_c_werror_flag+set}" |
| 19080 |
then : |
| 19081 |
|
| 19082 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19083 |
|
| 19084 |
else $as_nop |
| 19085 |
|
| 19086 |
unset rb_c_werror_flag |
| 19087 |
|
| 19088 |
fi |
| 19089 |
ac_c_werror_flag=yes |
| 19090 |
|
| 19091 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19092 |
/* end confdefs.h. */ |
| 19093 |
|
| 19094 |
#ifdef HAVE_STDALIGN_H |
| 19095 |
#include <stdalign.h> |
| 19096 |
#endif |
| 19097 |
#ifdef STDC_HEADERS |
| 19098 |
#include <stddef.h> |
| 19099 |
#endif |
| 19100 |
#ifndef __GNUC__ |
| 19101 |
#define __extension__ |
| 19102 |
#endif |
| 19103 |
|
| 19104 |
int |
| 19105 |
main (void) |
| 19106 |
{ |
| 19107 |
|
| 19108 |
typedef struct conftest_tag { |
| 19109 |
char _; |
| 19110 |
double d; |
| 19111 |
} T; |
| 19112 |
static int conftest_ary[ |
| 19113 |
offsetof(T, d) == __extension__ _Alignof(double) |
| 19114 |
? 1 : -1 |
| 19115 |
]; |
| 19116 |
return conftest_ary[0]; |
| 19117 |
|
| 19118 |
; |
| 19119 |
return 0; |
| 19120 |
} |
| 19121 |
_ACEOF |
| 19122 |
if ac_fn_c_try_compile "$LINENO" |
| 19123 |
then : |
| 19124 |
|
| 19125 |
rb_cv_have__alignof=yes |
| 19126 |
|
| 19127 |
fi |
| 19128 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19129 |
|
| 19130 |
CFLAGS="$save_CFLAGS" |
| 19131 |
save_CFLAGS= |
| 19132 |
if test "${rb_c_werror_flag+set}" |
| 19133 |
then : |
| 19134 |
|
| 19135 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19136 |
|
| 19137 |
else $as_nop |
| 19138 |
|
| 19139 |
unset ac_c_werror_flag |
| 19140 |
|
| 19141 |
fi |
| 19142 |
|
| 19143 |
fi |
| 19144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have__alignof" >&5 |
| 19145 |
colorize_result "$rb_cv_have__alignof" ; } |
| 19146 |
if test "$rb_cv_have__alignof" != no |
| 19147 |
then : |
| 19148 |
|
| 19149 |
printf "%s\n" "#define HAVE__ALIGNOF 1" >>confdefs.h |
| 19150 |
|
| 19151 |
|
| 19152 |
fi |
| 19153 |
|
| 19154 |
|
| 19155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CONSTFUNC function attribute" >&5 |
| 19156 |
printf %s "checking for CONSTFUNC function attribute... " >&6; } |
| 19157 |
if test ${rb_cv_func___const__+y} |
| 19158 |
then : |
| 19159 |
printf %s "(cached) " >&6 |
| 19160 |
else $as_nop |
| 19161 |
rb_cv_func___const__=x |
| 19162 |
save_CFLAGS="$CFLAGS" |
| 19163 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19164 |
if test "${ac_c_werror_flag+set}" |
| 19165 |
then : |
| 19166 |
|
| 19167 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19168 |
|
| 19169 |
else $as_nop |
| 19170 |
|
| 19171 |
unset rb_c_werror_flag |
| 19172 |
|
| 19173 |
fi |
| 19174 |
ac_c_werror_flag=yes |
| 19175 |
|
| 19176 |
for mac in \ |
| 19177 |
"__attribute__ ((__const__)) x" \ |
| 19178 |
"x __attribute__ ((__const__))" \ |
| 19179 |
"__declspec(__const__) x" \ |
| 19180 |
x; do |
| 19181 |
|
| 19182 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19183 |
/* end confdefs.h. */ |
| 19184 |
|
| 19185 |
|
| 19186 |
#define CONSTFUNC(x) $mac |
| 19187 |
|
| 19188 |
#define x int conftest_attribute_check(void) |
| 19189 |
|
| 19190 |
#define mesg ("") |
| 19191 |
#define san "address" |
| 19192 |
CONSTFUNC(x); |
| 19193 |
int |
| 19194 |
main (void) |
| 19195 |
{ |
| 19196 |
|
| 19197 |
; |
| 19198 |
return 0; |
| 19199 |
} |
| 19200 |
_ACEOF |
| 19201 |
if ac_fn_c_try_compile "$LINENO" |
| 19202 |
then : |
| 19203 |
rb_cv_func___const__="$mac"; break |
| 19204 |
fi |
| 19205 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19206 |
done |
| 19207 |
|
| 19208 |
CFLAGS="$save_CFLAGS" |
| 19209 |
save_CFLAGS= |
| 19210 |
if test "${rb_c_werror_flag+set}" |
| 19211 |
then : |
| 19212 |
|
| 19213 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19214 |
|
| 19215 |
else $as_nop |
| 19216 |
|
| 19217 |
unset ac_c_werror_flag |
| 19218 |
|
| 19219 |
fi |
| 19220 |
fi |
| 19221 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___const__" >&5 |
| 19222 |
colorize_result "$rb_cv_func___const__" ; } |
| 19223 |
if test "$rb_cv_func___const__" != x |
| 19224 |
then : |
| 19225 |
|
| 19226 |
|
| 19227 |
printf "%s\n" "#define CONSTFUNC(x) $rb_cv_func___const__" >>confdefs.h |
| 19228 |
|
| 19229 |
|
| 19230 |
|
| 19231 |
fi |
| 19232 |
|
| 19233 |
|
| 19234 |
|
| 19235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PUREFUNC function attribute" >&5 |
| 19236 |
printf %s "checking for PUREFUNC function attribute... " >&6; } |
| 19237 |
if test ${rb_cv_func___pure__+y} |
| 19238 |
then : |
| 19239 |
printf %s "(cached) " >&6 |
| 19240 |
else $as_nop |
| 19241 |
rb_cv_func___pure__=x |
| 19242 |
save_CFLAGS="$CFLAGS" |
| 19243 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19244 |
if test "${ac_c_werror_flag+set}" |
| 19245 |
then : |
| 19246 |
|
| 19247 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19248 |
|
| 19249 |
else $as_nop |
| 19250 |
|
| 19251 |
unset rb_c_werror_flag |
| 19252 |
|
| 19253 |
fi |
| 19254 |
ac_c_werror_flag=yes |
| 19255 |
|
| 19256 |
for mac in \ |
| 19257 |
"__attribute__ ((__pure__)) x" \ |
| 19258 |
"x __attribute__ ((__pure__))" \ |
| 19259 |
"__declspec(__pure__) x" \ |
| 19260 |
x; do |
| 19261 |
|
| 19262 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19263 |
/* end confdefs.h. */ |
| 19264 |
|
| 19265 |
|
| 19266 |
#define PUREFUNC(x) $mac |
| 19267 |
|
| 19268 |
#define x int conftest_attribute_check(void) |
| 19269 |
|
| 19270 |
#define mesg ("") |
| 19271 |
#define san "address" |
| 19272 |
PUREFUNC(x); |
| 19273 |
int |
| 19274 |
main (void) |
| 19275 |
{ |
| 19276 |
|
| 19277 |
; |
| 19278 |
return 0; |
| 19279 |
} |
| 19280 |
_ACEOF |
| 19281 |
if ac_fn_c_try_compile "$LINENO" |
| 19282 |
then : |
| 19283 |
rb_cv_func___pure__="$mac"; break |
| 19284 |
fi |
| 19285 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19286 |
done |
| 19287 |
|
| 19288 |
CFLAGS="$save_CFLAGS" |
| 19289 |
save_CFLAGS= |
| 19290 |
if test "${rb_c_werror_flag+set}" |
| 19291 |
then : |
| 19292 |
|
| 19293 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19294 |
|
| 19295 |
else $as_nop |
| 19296 |
|
| 19297 |
unset ac_c_werror_flag |
| 19298 |
|
| 19299 |
fi |
| 19300 |
fi |
| 19301 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___pure__" >&5 |
| 19302 |
colorize_result "$rb_cv_func___pure__" ; } |
| 19303 |
if test "$rb_cv_func___pure__" != x |
| 19304 |
then : |
| 19305 |
|
| 19306 |
|
| 19307 |
printf "%s\n" "#define PUREFUNC(x) $rb_cv_func___pure__" >>confdefs.h |
| 19308 |
|
| 19309 |
|
| 19310 |
|
| 19311 |
fi |
| 19312 |
|
| 19313 |
|
| 19314 |
|
| 19315 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NORETURN function attribute" >&5 |
| 19316 |
printf %s "checking for NORETURN function attribute... " >&6; } |
| 19317 |
if test ${rb_cv_func___noreturn__+y} |
| 19318 |
then : |
| 19319 |
printf %s "(cached) " >&6 |
| 19320 |
else $as_nop |
| 19321 |
rb_cv_func___noreturn__=x |
| 19322 |
save_CFLAGS="$CFLAGS" |
| 19323 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19324 |
if test "${ac_c_werror_flag+set}" |
| 19325 |
then : |
| 19326 |
|
| 19327 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19328 |
|
| 19329 |
else $as_nop |
| 19330 |
|
| 19331 |
unset rb_c_werror_flag |
| 19332 |
|
| 19333 |
fi |
| 19334 |
ac_c_werror_flag=yes |
| 19335 |
|
| 19336 |
for mac in \ |
| 19337 |
"__attribute__ ((__noreturn__)) x" \ |
| 19338 |
"x __attribute__ ((__noreturn__))" \ |
| 19339 |
"__declspec(__noreturn__) x" \ |
| 19340 |
x; do |
| 19341 |
|
| 19342 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19343 |
/* end confdefs.h. */ |
| 19344 |
|
| 19345 |
|
| 19346 |
#define NORETURN(x) $mac |
| 19347 |
|
| 19348 |
#define x int conftest_attribute_check(void) |
| 19349 |
|
| 19350 |
#define mesg ("") |
| 19351 |
#define san "address" |
| 19352 |
NORETURN(x); |
| 19353 |
int |
| 19354 |
main (void) |
| 19355 |
{ |
| 19356 |
|
| 19357 |
; |
| 19358 |
return 0; |
| 19359 |
} |
| 19360 |
_ACEOF |
| 19361 |
if ac_fn_c_try_compile "$LINENO" |
| 19362 |
then : |
| 19363 |
rb_cv_func___noreturn__="$mac"; break |
| 19364 |
fi |
| 19365 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19366 |
done |
| 19367 |
|
| 19368 |
CFLAGS="$save_CFLAGS" |
| 19369 |
save_CFLAGS= |
| 19370 |
if test "${rb_c_werror_flag+set}" |
| 19371 |
then : |
| 19372 |
|
| 19373 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19374 |
|
| 19375 |
else $as_nop |
| 19376 |
|
| 19377 |
unset ac_c_werror_flag |
| 19378 |
|
| 19379 |
fi |
| 19380 |
fi |
| 19381 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___noreturn__" >&5 |
| 19382 |
colorize_result "$rb_cv_func___noreturn__" ; } |
| 19383 |
if test "$rb_cv_func___noreturn__" != x |
| 19384 |
then : |
| 19385 |
|
| 19386 |
|
| 19387 |
printf "%s\n" "#define NORETURN(x) $rb_cv_func___noreturn__" >>confdefs.h |
| 19388 |
|
| 19389 |
|
| 19390 |
|
| 19391 |
fi |
| 19392 |
|
| 19393 |
|
| 19394 |
|
| 19395 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DEPRECATED function attribute" >&5 |
| 19396 |
printf %s "checking for DEPRECATED function attribute... " >&6; } |
| 19397 |
if test ${rb_cv_func___deprecated__+y} |
| 19398 |
then : |
| 19399 |
printf %s "(cached) " >&6 |
| 19400 |
else $as_nop |
| 19401 |
rb_cv_func___deprecated__=x |
| 19402 |
save_CFLAGS="$CFLAGS" |
| 19403 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19404 |
if test "${ac_c_werror_flag+set}" |
| 19405 |
then : |
| 19406 |
|
| 19407 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19408 |
|
| 19409 |
else $as_nop |
| 19410 |
|
| 19411 |
unset rb_c_werror_flag |
| 19412 |
|
| 19413 |
fi |
| 19414 |
ac_c_werror_flag=yes |
| 19415 |
|
| 19416 |
for mac in \ |
| 19417 |
"__attribute__ ((__deprecated__)) x" \ |
| 19418 |
"x __attribute__ ((__deprecated__))" \ |
| 19419 |
"__declspec(__deprecated__) x" \ |
| 19420 |
x; do |
| 19421 |
|
| 19422 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19423 |
/* end confdefs.h. */ |
| 19424 |
|
| 19425 |
|
| 19426 |
#define DEPRECATED(x) $mac |
| 19427 |
|
| 19428 |
#define x int conftest_attribute_check(void) |
| 19429 |
|
| 19430 |
#define mesg ("") |
| 19431 |
#define san "address" |
| 19432 |
DEPRECATED(x); |
| 19433 |
int |
| 19434 |
main (void) |
| 19435 |
{ |
| 19436 |
|
| 19437 |
; |
| 19438 |
return 0; |
| 19439 |
} |
| 19440 |
_ACEOF |
| 19441 |
if ac_fn_c_try_compile "$LINENO" |
| 19442 |
then : |
| 19443 |
rb_cv_func___deprecated__="$mac"; break |
| 19444 |
fi |
| 19445 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19446 |
done |
| 19447 |
|
| 19448 |
CFLAGS="$save_CFLAGS" |
| 19449 |
save_CFLAGS= |
| 19450 |
if test "${rb_c_werror_flag+set}" |
| 19451 |
then : |
| 19452 |
|
| 19453 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19454 |
|
| 19455 |
else $as_nop |
| 19456 |
|
| 19457 |
unset ac_c_werror_flag |
| 19458 |
|
| 19459 |
fi |
| 19460 |
fi |
| 19461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___deprecated__" >&5 |
| 19462 |
colorize_result "$rb_cv_func___deprecated__" ; } |
| 19463 |
if test "$rb_cv_func___deprecated__" != x |
| 19464 |
then : |
| 19465 |
|
| 19466 |
|
| 19467 |
printf "%s\n" "#define DEPRECATED(x) $rb_cv_func___deprecated__" >>confdefs.h |
| 19468 |
|
| 19469 |
|
| 19470 |
|
| 19471 |
fi |
| 19472 |
|
| 19473 |
|
| 19474 |
|
| 19475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DEPRECATED_BY function attribute" >&5 |
| 19476 |
printf %s "checking for DEPRECATED_BY function attribute... " >&6; } |
| 19477 |
if test ${rb_cv_func_deprecated_by+y} |
| 19478 |
then : |
| 19479 |
printf %s "(cached) " >&6 |
| 19480 |
else $as_nop |
| 19481 |
rb_cv_func_deprecated_by=x |
| 19482 |
save_CFLAGS="$CFLAGS" |
| 19483 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19484 |
if test "${ac_c_werror_flag+set}" |
| 19485 |
then : |
| 19486 |
|
| 19487 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19488 |
|
| 19489 |
else $as_nop |
| 19490 |
|
| 19491 |
unset rb_c_werror_flag |
| 19492 |
|
| 19493 |
fi |
| 19494 |
ac_c_werror_flag=yes |
| 19495 |
|
| 19496 |
for mac in \ |
| 19497 |
"__attribute__ ((__deprecated__(\"by \"#n))) x" \ |
| 19498 |
"x __attribute__ ((__deprecated__(\"by \"#n)))" \ |
| 19499 |
"__declspec(__deprecated__(\"by \"#n)) x" \ |
| 19500 |
x; do |
| 19501 |
|
| 19502 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19503 |
/* end confdefs.h. */ |
| 19504 |
|
| 19505 |
|
| 19506 |
#define DEPRECATED_BY(n,x) $mac |
| 19507 |
|
| 19508 |
#define x int conftest_attribute_check(void) |
| 19509 |
|
| 19510 |
#define mesg ("") |
| 19511 |
#define san "address" |
| 19512 |
DEPRECATED_BY(n,x); |
| 19513 |
int |
| 19514 |
main (void) |
| 19515 |
{ |
| 19516 |
|
| 19517 |
; |
| 19518 |
return 0; |
| 19519 |
} |
| 19520 |
_ACEOF |
| 19521 |
if ac_fn_c_try_compile "$LINENO" |
| 19522 |
then : |
| 19523 |
rb_cv_func_deprecated_by="$mac"; break |
| 19524 |
fi |
| 19525 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19526 |
done |
| 19527 |
|
| 19528 |
CFLAGS="$save_CFLAGS" |
| 19529 |
save_CFLAGS= |
| 19530 |
if test "${rb_c_werror_flag+set}" |
| 19531 |
then : |
| 19532 |
|
| 19533 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19534 |
|
| 19535 |
else $as_nop |
| 19536 |
|
| 19537 |
unset ac_c_werror_flag |
| 19538 |
|
| 19539 |
fi |
| 19540 |
fi |
| 19541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_deprecated_by" >&5 |
| 19542 |
colorize_result "$rb_cv_func_deprecated_by" ; } |
| 19543 |
if test "$rb_cv_func_deprecated_by" != x |
| 19544 |
then : |
| 19545 |
|
| 19546 |
|
| 19547 |
printf "%s\n" "#define DEPRECATED_BY(n,x) $rb_cv_func_deprecated_by" >>confdefs.h |
| 19548 |
|
| 19549 |
|
| 19550 |
|
| 19551 |
fi |
| 19552 |
|
| 19553 |
|
| 19554 |
|
| 19555 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NOINLINE function attribute" >&5 |
| 19556 |
printf %s "checking for NOINLINE function attribute... " >&6; } |
| 19557 |
if test ${rb_cv_func___noinline__+y} |
| 19558 |
then : |
| 19559 |
printf %s "(cached) " >&6 |
| 19560 |
else $as_nop |
| 19561 |
rb_cv_func___noinline__=x |
| 19562 |
save_CFLAGS="$CFLAGS" |
| 19563 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19564 |
if test "${ac_c_werror_flag+set}" |
| 19565 |
then : |
| 19566 |
|
| 19567 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19568 |
|
| 19569 |
else $as_nop |
| 19570 |
|
| 19571 |
unset rb_c_werror_flag |
| 19572 |
|
| 19573 |
fi |
| 19574 |
ac_c_werror_flag=yes |
| 19575 |
|
| 19576 |
for mac in \ |
| 19577 |
"__attribute__ ((__noinline__)) x" \ |
| 19578 |
"x __attribute__ ((__noinline__))" \ |
| 19579 |
"__declspec(__noinline__) x" \ |
| 19580 |
x; do |
| 19581 |
|
| 19582 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19583 |
/* end confdefs.h. */ |
| 19584 |
|
| 19585 |
|
| 19586 |
#define NOINLINE(x) $mac |
| 19587 |
|
| 19588 |
#define x int conftest_attribute_check(void) |
| 19589 |
|
| 19590 |
#define mesg ("") |
| 19591 |
#define san "address" |
| 19592 |
NOINLINE(x); |
| 19593 |
int |
| 19594 |
main (void) |
| 19595 |
{ |
| 19596 |
|
| 19597 |
; |
| 19598 |
return 0; |
| 19599 |
} |
| 19600 |
_ACEOF |
| 19601 |
if ac_fn_c_try_compile "$LINENO" |
| 19602 |
then : |
| 19603 |
rb_cv_func___noinline__="$mac"; break |
| 19604 |
fi |
| 19605 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19606 |
done |
| 19607 |
|
| 19608 |
CFLAGS="$save_CFLAGS" |
| 19609 |
save_CFLAGS= |
| 19610 |
if test "${rb_c_werror_flag+set}" |
| 19611 |
then : |
| 19612 |
|
| 19613 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19614 |
|
| 19615 |
else $as_nop |
| 19616 |
|
| 19617 |
unset ac_c_werror_flag |
| 19618 |
|
| 19619 |
fi |
| 19620 |
fi |
| 19621 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___noinline__" >&5 |
| 19622 |
colorize_result "$rb_cv_func___noinline__" ; } |
| 19623 |
if test "$rb_cv_func___noinline__" != x |
| 19624 |
then : |
| 19625 |
|
| 19626 |
|
| 19627 |
printf "%s\n" "#define NOINLINE(x) $rb_cv_func___noinline__" >>confdefs.h |
| 19628 |
|
| 19629 |
|
| 19630 |
|
| 19631 |
fi |
| 19632 |
|
| 19633 |
|
| 19634 |
|
| 19635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ALWAYS_INLINE function attribute" >&5 |
| 19636 |
printf %s "checking for ALWAYS_INLINE function attribute... " >&6; } |
| 19637 |
if test ${rb_cv_func___always_inline__+y} |
| 19638 |
then : |
| 19639 |
printf %s "(cached) " >&6 |
| 19640 |
else $as_nop |
| 19641 |
rb_cv_func___always_inline__=x |
| 19642 |
save_CFLAGS="$CFLAGS" |
| 19643 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19644 |
if test "${ac_c_werror_flag+set}" |
| 19645 |
then : |
| 19646 |
|
| 19647 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19648 |
|
| 19649 |
else $as_nop |
| 19650 |
|
| 19651 |
unset rb_c_werror_flag |
| 19652 |
|
| 19653 |
fi |
| 19654 |
ac_c_werror_flag=yes |
| 19655 |
|
| 19656 |
for mac in \ |
| 19657 |
"__attribute__ ((__always_inline__)) x" \ |
| 19658 |
"x __attribute__ ((__always_inline__))" \ |
| 19659 |
"__declspec(__always_inline__) x" \ |
| 19660 |
x; do |
| 19661 |
|
| 19662 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19663 |
/* end confdefs.h. */ |
| 19664 |
|
| 19665 |
|
| 19666 |
#define ALWAYS_INLINE(x) $mac |
| 19667 |
|
| 19668 |
#define x int conftest_attribute_check(void) |
| 19669 |
|
| 19670 |
#define mesg ("") |
| 19671 |
#define san "address" |
| 19672 |
ALWAYS_INLINE(x); |
| 19673 |
int |
| 19674 |
main (void) |
| 19675 |
{ |
| 19676 |
|
| 19677 |
; |
| 19678 |
return 0; |
| 19679 |
} |
| 19680 |
_ACEOF |
| 19681 |
if ac_fn_c_try_compile "$LINENO" |
| 19682 |
then : |
| 19683 |
rb_cv_func___always_inline__="$mac"; break |
| 19684 |
fi |
| 19685 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19686 |
done |
| 19687 |
|
| 19688 |
CFLAGS="$save_CFLAGS" |
| 19689 |
save_CFLAGS= |
| 19690 |
if test "${rb_c_werror_flag+set}" |
| 19691 |
then : |
| 19692 |
|
| 19693 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19694 |
|
| 19695 |
else $as_nop |
| 19696 |
|
| 19697 |
unset ac_c_werror_flag |
| 19698 |
|
| 19699 |
fi |
| 19700 |
fi |
| 19701 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___always_inline__" >&5 |
| 19702 |
colorize_result "$rb_cv_func___always_inline__" ; } |
| 19703 |
if test "$rb_cv_func___always_inline__" != x |
| 19704 |
then : |
| 19705 |
|
| 19706 |
|
| 19707 |
printf "%s\n" "#define ALWAYS_INLINE(x) $rb_cv_func___always_inline__" >>confdefs.h |
| 19708 |
|
| 19709 |
|
| 19710 |
|
| 19711 |
fi |
| 19712 |
|
| 19713 |
|
| 19714 |
|
| 19715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NO_SANITIZE function attribute" >&5 |
| 19716 |
printf %s "checking for NO_SANITIZE function attribute... " >&6; } |
| 19717 |
if test ${rb_cv_func_no_sanitize+y} |
| 19718 |
then : |
| 19719 |
printf %s "(cached) " >&6 |
| 19720 |
else $as_nop |
| 19721 |
rb_cv_func_no_sanitize=x |
| 19722 |
save_CFLAGS="$CFLAGS" |
| 19723 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19724 |
if test "${ac_c_werror_flag+set}" |
| 19725 |
then : |
| 19726 |
|
| 19727 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19728 |
|
| 19729 |
else $as_nop |
| 19730 |
|
| 19731 |
unset rb_c_werror_flag |
| 19732 |
|
| 19733 |
fi |
| 19734 |
ac_c_werror_flag=yes |
| 19735 |
|
| 19736 |
for mac in \ |
| 19737 |
"__attribute__ ((__no_sanitize__(san))) x" \ |
| 19738 |
"x __attribute__ ((__no_sanitize__(san)))" \ |
| 19739 |
"__declspec(__no_sanitize__(san)) x" \ |
| 19740 |
x; do |
| 19741 |
|
| 19742 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19743 |
/* end confdefs.h. */ |
| 19744 |
|
| 19745 |
|
| 19746 |
#define NO_SANITIZE(san, x) $mac |
| 19747 |
|
| 19748 |
#define x int conftest_attribute_check(void) |
| 19749 |
|
| 19750 |
#define mesg ("") |
| 19751 |
#define san "address" |
| 19752 |
NO_SANITIZE(san, x); |
| 19753 |
int |
| 19754 |
main (void) |
| 19755 |
{ |
| 19756 |
|
| 19757 |
; |
| 19758 |
return 0; |
| 19759 |
} |
| 19760 |
_ACEOF |
| 19761 |
if ac_fn_c_try_compile "$LINENO" |
| 19762 |
then : |
| 19763 |
rb_cv_func_no_sanitize="$mac"; break |
| 19764 |
fi |
| 19765 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19766 |
done |
| 19767 |
|
| 19768 |
CFLAGS="$save_CFLAGS" |
| 19769 |
save_CFLAGS= |
| 19770 |
if test "${rb_c_werror_flag+set}" |
| 19771 |
then : |
| 19772 |
|
| 19773 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19774 |
|
| 19775 |
else $as_nop |
| 19776 |
|
| 19777 |
unset ac_c_werror_flag |
| 19778 |
|
| 19779 |
fi |
| 19780 |
fi |
| 19781 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_no_sanitize" >&5 |
| 19782 |
colorize_result "$rb_cv_func_no_sanitize" ; } |
| 19783 |
if test "$rb_cv_func_no_sanitize" != x |
| 19784 |
then : |
| 19785 |
|
| 19786 |
|
| 19787 |
printf "%s\n" "#define NO_SANITIZE(san, x) $rb_cv_func_no_sanitize" >>confdefs.h |
| 19788 |
|
| 19789 |
|
| 19790 |
|
| 19791 |
fi |
| 19792 |
|
| 19793 |
|
| 19794 |
|
| 19795 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NO_SANITIZE_ADDRESS function attribute" >&5 |
| 19796 |
printf %s "checking for NO_SANITIZE_ADDRESS function attribute... " >&6; } |
| 19797 |
if test ${rb_cv_func___no_sanitize_address__+y} |
| 19798 |
then : |
| 19799 |
printf %s "(cached) " >&6 |
| 19800 |
else $as_nop |
| 19801 |
rb_cv_func___no_sanitize_address__=x |
| 19802 |
save_CFLAGS="$CFLAGS" |
| 19803 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19804 |
if test "${ac_c_werror_flag+set}" |
| 19805 |
then : |
| 19806 |
|
| 19807 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19808 |
|
| 19809 |
else $as_nop |
| 19810 |
|
| 19811 |
unset rb_c_werror_flag |
| 19812 |
|
| 19813 |
fi |
| 19814 |
ac_c_werror_flag=yes |
| 19815 |
|
| 19816 |
for mac in \ |
| 19817 |
"__attribute__ ((__no_sanitize_address__)) x" \ |
| 19818 |
"x __attribute__ ((__no_sanitize_address__))" \ |
| 19819 |
"__declspec(__no_sanitize_address__) x" \ |
| 19820 |
x; do |
| 19821 |
|
| 19822 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19823 |
/* end confdefs.h. */ |
| 19824 |
|
| 19825 |
|
| 19826 |
#define NO_SANITIZE_ADDRESS(x) $mac |
| 19827 |
|
| 19828 |
#define x int conftest_attribute_check(void) |
| 19829 |
|
| 19830 |
#define mesg ("") |
| 19831 |
#define san "address" |
| 19832 |
NO_SANITIZE_ADDRESS(x); |
| 19833 |
int |
| 19834 |
main (void) |
| 19835 |
{ |
| 19836 |
|
| 19837 |
; |
| 19838 |
return 0; |
| 19839 |
} |
| 19840 |
_ACEOF |
| 19841 |
if ac_fn_c_try_compile "$LINENO" |
| 19842 |
then : |
| 19843 |
rb_cv_func___no_sanitize_address__="$mac"; break |
| 19844 |
fi |
| 19845 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19846 |
done |
| 19847 |
|
| 19848 |
CFLAGS="$save_CFLAGS" |
| 19849 |
save_CFLAGS= |
| 19850 |
if test "${rb_c_werror_flag+set}" |
| 19851 |
then : |
| 19852 |
|
| 19853 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19854 |
|
| 19855 |
else $as_nop |
| 19856 |
|
| 19857 |
unset ac_c_werror_flag |
| 19858 |
|
| 19859 |
fi |
| 19860 |
fi |
| 19861 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___no_sanitize_address__" >&5 |
| 19862 |
colorize_result "$rb_cv_func___no_sanitize_address__" ; } |
| 19863 |
if test "$rb_cv_func___no_sanitize_address__" != x |
| 19864 |
then : |
| 19865 |
|
| 19866 |
|
| 19867 |
printf "%s\n" "#define NO_SANITIZE_ADDRESS(x) $rb_cv_func___no_sanitize_address__" >>confdefs.h |
| 19868 |
|
| 19869 |
|
| 19870 |
|
| 19871 |
fi |
| 19872 |
|
| 19873 |
|
| 19874 |
|
| 19875 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NO_ADDRESS_SAFETY_ANALYSIS function attribute" >&5 |
| 19876 |
printf %s "checking for NO_ADDRESS_SAFETY_ANALYSIS function attribute... " >&6; } |
| 19877 |
if test ${rb_cv_func___no_address_safety_analysis__+y} |
| 19878 |
then : |
| 19879 |
printf %s "(cached) " >&6 |
| 19880 |
else $as_nop |
| 19881 |
rb_cv_func___no_address_safety_analysis__=x |
| 19882 |
save_CFLAGS="$CFLAGS" |
| 19883 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19884 |
if test "${ac_c_werror_flag+set}" |
| 19885 |
then : |
| 19886 |
|
| 19887 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19888 |
|
| 19889 |
else $as_nop |
| 19890 |
|
| 19891 |
unset rb_c_werror_flag |
| 19892 |
|
| 19893 |
fi |
| 19894 |
ac_c_werror_flag=yes |
| 19895 |
|
| 19896 |
for mac in \ |
| 19897 |
"__attribute__ ((__no_address_safety_analysis__)) x" \ |
| 19898 |
"x __attribute__ ((__no_address_safety_analysis__))" \ |
| 19899 |
"__declspec(__no_address_safety_analysis__) x" \ |
| 19900 |
x; do |
| 19901 |
|
| 19902 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19903 |
/* end confdefs.h. */ |
| 19904 |
|
| 19905 |
|
| 19906 |
#define NO_ADDRESS_SAFETY_ANALYSIS(x) $mac |
| 19907 |
|
| 19908 |
#define x int conftest_attribute_check(void) |
| 19909 |
|
| 19910 |
#define mesg ("") |
| 19911 |
#define san "address" |
| 19912 |
NO_ADDRESS_SAFETY_ANALYSIS(x); |
| 19913 |
int |
| 19914 |
main (void) |
| 19915 |
{ |
| 19916 |
|
| 19917 |
; |
| 19918 |
return 0; |
| 19919 |
} |
| 19920 |
_ACEOF |
| 19921 |
if ac_fn_c_try_compile "$LINENO" |
| 19922 |
then : |
| 19923 |
rb_cv_func___no_address_safety_analysis__="$mac"; break |
| 19924 |
fi |
| 19925 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19926 |
done |
| 19927 |
|
| 19928 |
CFLAGS="$save_CFLAGS" |
| 19929 |
save_CFLAGS= |
| 19930 |
if test "${rb_c_werror_flag+set}" |
| 19931 |
then : |
| 19932 |
|
| 19933 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 19934 |
|
| 19935 |
else $as_nop |
| 19936 |
|
| 19937 |
unset ac_c_werror_flag |
| 19938 |
|
| 19939 |
fi |
| 19940 |
fi |
| 19941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___no_address_safety_analysis__" >&5 |
| 19942 |
colorize_result "$rb_cv_func___no_address_safety_analysis__" ; } |
| 19943 |
if test "$rb_cv_func___no_address_safety_analysis__" != x |
| 19944 |
then : |
| 19945 |
|
| 19946 |
|
| 19947 |
printf "%s\n" "#define NO_ADDRESS_SAFETY_ANALYSIS(x) $rb_cv_func___no_address_safety_analysis__" >>confdefs.h |
| 19948 |
|
| 19949 |
|
| 19950 |
|
| 19951 |
fi |
| 19952 |
|
| 19953 |
|
| 19954 |
|
| 19955 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WARN_UNUSED_RESULT function attribute" >&5 |
| 19956 |
printf %s "checking for WARN_UNUSED_RESULT function attribute... " >&6; } |
| 19957 |
if test ${rb_cv_func___warn_unused_result__+y} |
| 19958 |
then : |
| 19959 |
printf %s "(cached) " >&6 |
| 19960 |
else $as_nop |
| 19961 |
rb_cv_func___warn_unused_result__=x |
| 19962 |
save_CFLAGS="$CFLAGS" |
| 19963 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 19964 |
if test "${ac_c_werror_flag+set}" |
| 19965 |
then : |
| 19966 |
|
| 19967 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 19968 |
|
| 19969 |
else $as_nop |
| 19970 |
|
| 19971 |
unset rb_c_werror_flag |
| 19972 |
|
| 19973 |
fi |
| 19974 |
ac_c_werror_flag=yes |
| 19975 |
|
| 19976 |
for mac in \ |
| 19977 |
"__attribute__ ((__warn_unused_result__)) x" \ |
| 19978 |
"x __attribute__ ((__warn_unused_result__))" \ |
| 19979 |
"__declspec(__warn_unused_result__) x" \ |
| 19980 |
x; do |
| 19981 |
|
| 19982 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19983 |
/* end confdefs.h. */ |
| 19984 |
|
| 19985 |
|
| 19986 |
#define WARN_UNUSED_RESULT(x) $mac |
| 19987 |
|
| 19988 |
#define x int conftest_attribute_check(void) |
| 19989 |
|
| 19990 |
#define mesg ("") |
| 19991 |
#define san "address" |
| 19992 |
WARN_UNUSED_RESULT(x); |
| 19993 |
int |
| 19994 |
main (void) |
| 19995 |
{ |
| 19996 |
|
| 19997 |
; |
| 19998 |
return 0; |
| 19999 |
} |
| 20000 |
_ACEOF |
| 20001 |
if ac_fn_c_try_compile "$LINENO" |
| 20002 |
then : |
| 20003 |
rb_cv_func___warn_unused_result__="$mac"; break |
| 20004 |
fi |
| 20005 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20006 |
done |
| 20007 |
|
| 20008 |
CFLAGS="$save_CFLAGS" |
| 20009 |
save_CFLAGS= |
| 20010 |
if test "${rb_c_werror_flag+set}" |
| 20011 |
then : |
| 20012 |
|
| 20013 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20014 |
|
| 20015 |
else $as_nop |
| 20016 |
|
| 20017 |
unset ac_c_werror_flag |
| 20018 |
|
| 20019 |
fi |
| 20020 |
fi |
| 20021 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___warn_unused_result__" >&5 |
| 20022 |
colorize_result "$rb_cv_func___warn_unused_result__" ; } |
| 20023 |
if test "$rb_cv_func___warn_unused_result__" != x |
| 20024 |
then : |
| 20025 |
|
| 20026 |
|
| 20027 |
printf "%s\n" "#define WARN_UNUSED_RESULT(x) $rb_cv_func___warn_unused_result__" >>confdefs.h |
| 20028 |
|
| 20029 |
|
| 20030 |
|
| 20031 |
fi |
| 20032 |
|
| 20033 |
|
| 20034 |
|
| 20035 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAYBE_UNUSED function attribute" >&5 |
| 20036 |
printf %s "checking for MAYBE_UNUSED function attribute... " >&6; } |
| 20037 |
if test ${rb_cv_func___unused__+y} |
| 20038 |
then : |
| 20039 |
printf %s "(cached) " >&6 |
| 20040 |
else $as_nop |
| 20041 |
rb_cv_func___unused__=x |
| 20042 |
save_CFLAGS="$CFLAGS" |
| 20043 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20044 |
if test "${ac_c_werror_flag+set}" |
| 20045 |
then : |
| 20046 |
|
| 20047 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20048 |
|
| 20049 |
else $as_nop |
| 20050 |
|
| 20051 |
unset rb_c_werror_flag |
| 20052 |
|
| 20053 |
fi |
| 20054 |
ac_c_werror_flag=yes |
| 20055 |
|
| 20056 |
for mac in \ |
| 20057 |
"__attribute__ ((__unused__)) x" \ |
| 20058 |
"x __attribute__ ((__unused__))" \ |
| 20059 |
"__declspec(__unused__) x" \ |
| 20060 |
x; do |
| 20061 |
|
| 20062 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20063 |
/* end confdefs.h. */ |
| 20064 |
|
| 20065 |
|
| 20066 |
#define MAYBE_UNUSED(x) $mac |
| 20067 |
|
| 20068 |
#define x int conftest_attribute_check(void) |
| 20069 |
|
| 20070 |
#define mesg ("") |
| 20071 |
#define san "address" |
| 20072 |
MAYBE_UNUSED(x); |
| 20073 |
int |
| 20074 |
main (void) |
| 20075 |
{ |
| 20076 |
|
| 20077 |
; |
| 20078 |
return 0; |
| 20079 |
} |
| 20080 |
_ACEOF |
| 20081 |
if ac_fn_c_try_compile "$LINENO" |
| 20082 |
then : |
| 20083 |
rb_cv_func___unused__="$mac"; break |
| 20084 |
fi |
| 20085 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20086 |
done |
| 20087 |
|
| 20088 |
CFLAGS="$save_CFLAGS" |
| 20089 |
save_CFLAGS= |
| 20090 |
if test "${rb_c_werror_flag+set}" |
| 20091 |
then : |
| 20092 |
|
| 20093 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20094 |
|
| 20095 |
else $as_nop |
| 20096 |
|
| 20097 |
unset ac_c_werror_flag |
| 20098 |
|
| 20099 |
fi |
| 20100 |
fi |
| 20101 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___unused__" >&5 |
| 20102 |
colorize_result "$rb_cv_func___unused__" ; } |
| 20103 |
if test "$rb_cv_func___unused__" != x |
| 20104 |
then : |
| 20105 |
|
| 20106 |
|
| 20107 |
printf "%s\n" "#define MAYBE_UNUSED(x) $rb_cv_func___unused__" >>confdefs.h |
| 20108 |
|
| 20109 |
|
| 20110 |
|
| 20111 |
fi |
| 20112 |
|
| 20113 |
|
| 20114 |
|
| 20115 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ERRORFUNC function attribute" >&5 |
| 20116 |
printf %s "checking for ERRORFUNC function attribute... " >&6; } |
| 20117 |
if test ${rb_cv_func___error__+y} |
| 20118 |
then : |
| 20119 |
printf %s "(cached) " >&6 |
| 20120 |
else $as_nop |
| 20121 |
rb_cv_func___error__=x |
| 20122 |
save_CFLAGS="$CFLAGS" |
| 20123 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20124 |
if test "${ac_c_werror_flag+set}" |
| 20125 |
then : |
| 20126 |
|
| 20127 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20128 |
|
| 20129 |
else $as_nop |
| 20130 |
|
| 20131 |
unset rb_c_werror_flag |
| 20132 |
|
| 20133 |
fi |
| 20134 |
ac_c_werror_flag=yes |
| 20135 |
|
| 20136 |
for mac in \ |
| 20137 |
"__attribute__ ((__error__ mesg)) x" \ |
| 20138 |
"x __attribute__ ((__error__ mesg))" \ |
| 20139 |
"__declspec(__error__ mesg) x" \ |
| 20140 |
x; do |
| 20141 |
|
| 20142 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20143 |
/* end confdefs.h. */ |
| 20144 |
|
| 20145 |
|
| 20146 |
#define ERRORFUNC(mesg,x) $mac |
| 20147 |
|
| 20148 |
#define x int conftest_attribute_check(void) |
| 20149 |
|
| 20150 |
#define mesg ("") |
| 20151 |
#define san "address" |
| 20152 |
ERRORFUNC(mesg,x); |
| 20153 |
int |
| 20154 |
main (void) |
| 20155 |
{ |
| 20156 |
|
| 20157 |
; |
| 20158 |
return 0; |
| 20159 |
} |
| 20160 |
_ACEOF |
| 20161 |
if ac_fn_c_try_compile "$LINENO" |
| 20162 |
then : |
| 20163 |
rb_cv_func___error__="$mac"; break |
| 20164 |
fi |
| 20165 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20166 |
done |
| 20167 |
|
| 20168 |
CFLAGS="$save_CFLAGS" |
| 20169 |
save_CFLAGS= |
| 20170 |
if test "${rb_c_werror_flag+set}" |
| 20171 |
then : |
| 20172 |
|
| 20173 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20174 |
|
| 20175 |
else $as_nop |
| 20176 |
|
| 20177 |
unset ac_c_werror_flag |
| 20178 |
|
| 20179 |
fi |
| 20180 |
fi |
| 20181 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___error__" >&5 |
| 20182 |
colorize_result "$rb_cv_func___error__" ; } |
| 20183 |
if test "$rb_cv_func___error__" != x |
| 20184 |
then : |
| 20185 |
|
| 20186 |
|
| 20187 |
printf "%s\n" "#define ERRORFUNC(mesg,x) $rb_cv_func___error__" >>confdefs.h |
| 20188 |
|
| 20189 |
|
| 20190 |
|
| 20191 |
fi |
| 20192 |
|
| 20193 |
|
| 20194 |
|
| 20195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WARNINGFUNC function attribute" >&5 |
| 20196 |
printf %s "checking for WARNINGFUNC function attribute... " >&6; } |
| 20197 |
if test ${rb_cv_func___warning__+y} |
| 20198 |
then : |
| 20199 |
printf %s "(cached) " >&6 |
| 20200 |
else $as_nop |
| 20201 |
rb_cv_func___warning__=x |
| 20202 |
save_CFLAGS="$CFLAGS" |
| 20203 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20204 |
if test "${ac_c_werror_flag+set}" |
| 20205 |
then : |
| 20206 |
|
| 20207 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20208 |
|
| 20209 |
else $as_nop |
| 20210 |
|
| 20211 |
unset rb_c_werror_flag |
| 20212 |
|
| 20213 |
fi |
| 20214 |
ac_c_werror_flag=yes |
| 20215 |
|
| 20216 |
for mac in \ |
| 20217 |
"__attribute__ ((__warning__ mesg)) x" \ |
| 20218 |
"x __attribute__ ((__warning__ mesg))" \ |
| 20219 |
"__declspec(__warning__ mesg) x" \ |
| 20220 |
x; do |
| 20221 |
|
| 20222 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20223 |
/* end confdefs.h. */ |
| 20224 |
|
| 20225 |
|
| 20226 |
#define WARNINGFUNC(mesg,x) $mac |
| 20227 |
|
| 20228 |
#define x int conftest_attribute_check(void) |
| 20229 |
|
| 20230 |
#define mesg ("") |
| 20231 |
#define san "address" |
| 20232 |
WARNINGFUNC(mesg,x); |
| 20233 |
int |
| 20234 |
main (void) |
| 20235 |
{ |
| 20236 |
|
| 20237 |
; |
| 20238 |
return 0; |
| 20239 |
} |
| 20240 |
_ACEOF |
| 20241 |
if ac_fn_c_try_compile "$LINENO" |
| 20242 |
then : |
| 20243 |
rb_cv_func___warning__="$mac"; break |
| 20244 |
fi |
| 20245 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20246 |
done |
| 20247 |
|
| 20248 |
CFLAGS="$save_CFLAGS" |
| 20249 |
save_CFLAGS= |
| 20250 |
if test "${rb_c_werror_flag+set}" |
| 20251 |
then : |
| 20252 |
|
| 20253 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20254 |
|
| 20255 |
else $as_nop |
| 20256 |
|
| 20257 |
unset ac_c_werror_flag |
| 20258 |
|
| 20259 |
fi |
| 20260 |
fi |
| 20261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___warning__" >&5 |
| 20262 |
colorize_result "$rb_cv_func___warning__" ; } |
| 20263 |
if test "$rb_cv_func___warning__" != x |
| 20264 |
then : |
| 20265 |
|
| 20266 |
|
| 20267 |
printf "%s\n" "#define WARNINGFUNC(mesg,x) $rb_cv_func___warning__" >>confdefs.h |
| 20268 |
|
| 20269 |
|
| 20270 |
|
| 20271 |
fi |
| 20272 |
|
| 20273 |
|
| 20274 |
|
| 20275 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for WEAK function attribute" >&5 |
| 20276 |
printf %s "checking for WEAK function attribute... " >&6; } |
| 20277 |
if test ${rb_cv_func_weak+y} |
| 20278 |
then : |
| 20279 |
printf %s "(cached) " >&6 |
| 20280 |
else $as_nop |
| 20281 |
rb_cv_func_weak=x |
| 20282 |
save_CFLAGS="$CFLAGS" |
| 20283 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20284 |
if test "${ac_c_werror_flag+set}" |
| 20285 |
then : |
| 20286 |
|
| 20287 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20288 |
|
| 20289 |
else $as_nop |
| 20290 |
|
| 20291 |
unset rb_c_werror_flag |
| 20292 |
|
| 20293 |
fi |
| 20294 |
ac_c_werror_flag=yes |
| 20295 |
|
| 20296 |
for mac in \ |
| 20297 |
"__attribute__ ((__weak__)) x" \ |
| 20298 |
"x __attribute__ ((__weak__))" \ |
| 20299 |
"__declspec(__weak__) x" \ |
| 20300 |
x; do |
| 20301 |
|
| 20302 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20303 |
/* end confdefs.h. */ |
| 20304 |
|
| 20305 |
|
| 20306 |
#define WEAK(x) $mac |
| 20307 |
|
| 20308 |
#define x int conftest_attribute_check(void) |
| 20309 |
|
| 20310 |
#define mesg ("") |
| 20311 |
#define san "address" |
| 20312 |
WEAK(x); |
| 20313 |
int |
| 20314 |
main (void) |
| 20315 |
{ |
| 20316 |
|
| 20317 |
; |
| 20318 |
return 0; |
| 20319 |
} |
| 20320 |
_ACEOF |
| 20321 |
if ac_fn_c_try_compile "$LINENO" |
| 20322 |
then : |
| 20323 |
rb_cv_func_weak="$mac"; break |
| 20324 |
fi |
| 20325 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20326 |
done |
| 20327 |
|
| 20328 |
CFLAGS="$save_CFLAGS" |
| 20329 |
save_CFLAGS= |
| 20330 |
if test "${rb_c_werror_flag+set}" |
| 20331 |
then : |
| 20332 |
|
| 20333 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20334 |
|
| 20335 |
else $as_nop |
| 20336 |
|
| 20337 |
unset ac_c_werror_flag |
| 20338 |
|
| 20339 |
fi |
| 20340 |
fi |
| 20341 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_weak" >&5 |
| 20342 |
colorize_result "$rb_cv_func_weak" ; } |
| 20343 |
if test "$rb_cv_func_weak" != x |
| 20344 |
then : |
| 20345 |
|
| 20346 |
|
| 20347 |
printf "%s\n" "#define WEAK(x) $rb_cv_func_weak" >>confdefs.h |
| 20348 |
|
| 20349 |
|
| 20350 |
|
| 20351 |
fi |
| 20352 |
|
| 20353 |
|
| 20354 |
if test "$rb_cv_func_weak" != x |
| 20355 |
then : |
| 20356 |
|
| 20357 |
printf "%s\n" "#define HAVE_FUNC_WEAK 1" >>confdefs.h |
| 20358 |
|
| 20359 |
|
| 20360 |
fi |
| 20361 |
|
| 20362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((__depreacted__(msg))) in C++" >&5 |
| 20363 |
printf %s "checking for __attribute__((__depreacted__(msg))) in C++... " >&6; } |
| 20364 |
if test ${rb_cv_CentOS6_CXX_workaround+y} |
| 20365 |
then : |
| 20366 |
printf %s "(cached) " >&6 |
| 20367 |
else $as_nop |
| 20368 |
save_CFLAGS="$CFLAGS" |
| 20369 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20370 |
if test "${ac_c_werror_flag+set}" |
| 20371 |
then : |
| 20372 |
|
| 20373 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20374 |
|
| 20375 |
else $as_nop |
| 20376 |
|
| 20377 |
unset rb_c_werror_flag |
| 20378 |
|
| 20379 |
fi |
| 20380 |
ac_c_werror_flag=yes |
| 20381 |
|
| 20382 |
ac_ext=cpp |
| 20383 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 20384 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20385 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20386 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20387 |
|
| 20388 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20389 |
/* end confdefs.h. */ |
| 20390 |
|
| 20391 |
int |
| 20392 |
main (void) |
| 20393 |
{ |
| 20394 |
__attribute__((__deprecated__("message"))) int conftest(...); |
| 20395 |
; |
| 20396 |
return 0; |
| 20397 |
} |
| 20398 |
_ACEOF |
| 20399 |
if ac_fn_cxx_try_compile "$LINENO" |
| 20400 |
then : |
| 20401 |
rb_cv_CentOS6_CXX_workaround=yes |
| 20402 |
else $as_nop |
| 20403 |
rb_cv_CentOS6_CXX_workaround=no |
| 20404 |
fi |
| 20405 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20406 |
ac_ext=c |
| 20407 |
ac_cpp='$CPP $CPPFLAGS' |
| 20408 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20409 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20410 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20411 |
|
| 20412 |
CFLAGS="$save_CFLAGS" |
| 20413 |
save_CFLAGS= |
| 20414 |
if test "${rb_c_werror_flag+set}" |
| 20415 |
then : |
| 20416 |
|
| 20417 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20418 |
|
| 20419 |
else $as_nop |
| 20420 |
|
| 20421 |
unset ac_c_werror_flag |
| 20422 |
|
| 20423 |
fi |
| 20424 |
fi |
| 20425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_CentOS6_CXX_workaround" >&5 |
| 20426 |
colorize_result "$rb_cv_CentOS6_CXX_workaround" ; } |
| 20427 |
if test "$rb_cv_CentOS6_CXX_workaround" != no |
| 20428 |
then : |
| 20429 |
|
| 20430 |
printf "%s\n" "#define RUBY_CXX_DEPRECATED(msg) __attribute__((__deprecated__(msg)))" >>confdefs.h |
| 20431 |
|
| 20432 |
fi |
| 20433 |
|
| 20434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for std::nullptr_t" >&5 |
| 20435 |
printf %s "checking for std::nullptr_t... " >&6; } |
| 20436 |
if test ${rb_cv_CXX_nullptr+y} |
| 20437 |
then : |
| 20438 |
printf %s "(cached) " >&6 |
| 20439 |
else $as_nop |
| 20440 |
|
| 20441 |
ac_ext=cpp |
| 20442 |
ac_cpp='$CXXCPP $CPPFLAGS' |
| 20443 |
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20444 |
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20445 |
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
| 20446 |
|
| 20447 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20448 |
/* end confdefs.h. */ |
| 20449 |
#include <cstddef> |
| 20450 |
int |
| 20451 |
main (void) |
| 20452 |
{ |
| 20453 |
static std::nullptr_t const *const conftest = nullptr; |
| 20454 |
; |
| 20455 |
return 0; |
| 20456 |
} |
| 20457 |
_ACEOF |
| 20458 |
if ac_fn_cxx_try_compile "$LINENO" |
| 20459 |
then : |
| 20460 |
rb_cv_CXX_nullptr=yes |
| 20461 |
else $as_nop |
| 20462 |
rb_cv_CXX_nullptr=no |
| 20463 |
fi |
| 20464 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20465 |
ac_ext=c |
| 20466 |
ac_cpp='$CPP $CPPFLAGS' |
| 20467 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 20468 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 20469 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 20470 |
|
| 20471 |
fi |
| 20472 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_CXX_nullptr" >&5 |
| 20473 |
colorize_result "$rb_cv_CXX_nullptr" ; } |
| 20474 |
if test "$rb_cv_CXX_nullptr" != no |
| 20475 |
then : |
| 20476 |
printf "%s\n" "#define HAVE_NULLPTR 1" >>confdefs.h |
| 20477 |
|
| 20478 |
fi |
| 20479 |
|
| 20480 |
if_i386=${universal_binary+defined __i386__} |
| 20481 |
rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond |
| 20482 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUNC_STDCALL function attribute" >&5 |
| 20483 |
printf %s "checking for FUNC_STDCALL function attribute... " >&6; } |
| 20484 |
if test ${rb_cv_func_stdcall+y} |
| 20485 |
then : |
| 20486 |
printf %s "(cached) " >&6 |
| 20487 |
else $as_nop |
| 20488 |
rb_cv_func_stdcall=x |
| 20489 |
save_CFLAGS="$CFLAGS" |
| 20490 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20491 |
if test "${ac_c_werror_flag+set}" |
| 20492 |
then : |
| 20493 |
|
| 20494 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20495 |
|
| 20496 |
else $as_nop |
| 20497 |
|
| 20498 |
unset rb_c_werror_flag |
| 20499 |
|
| 20500 |
fi |
| 20501 |
ac_c_werror_flag=yes |
| 20502 |
|
| 20503 |
for mac in \ |
| 20504 |
"__attribute__ ((__stdcall__)) x" \ |
| 20505 |
"x __attribute__ ((__stdcall__))" \ |
| 20506 |
"__declspec(__stdcall__) x" \ |
| 20507 |
x; do |
| 20508 |
mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} |
| 20509 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20510 |
/* end confdefs.h. */ |
| 20511 |
|
| 20512 |
${rbcv_cond+#if $rbcv_cond} |
| 20513 |
#define FUNC_STDCALL(x) $mac |
| 20514 |
${rbcv_cond+#else} |
| 20515 |
${rbcv_cond+#define FUNC_STDCALL(x) x} |
| 20516 |
${rbcv_cond+#endif} |
| 20517 |
#define x int conftest_attribute_check(void) |
| 20518 |
|
| 20519 |
#define mesg ("") |
| 20520 |
#define san "address" |
| 20521 |
FUNC_STDCALL(x); |
| 20522 |
int |
| 20523 |
main (void) |
| 20524 |
{ |
| 20525 |
|
| 20526 |
; |
| 20527 |
return 0; |
| 20528 |
} |
| 20529 |
_ACEOF |
| 20530 |
if ac_fn_c_try_compile "$LINENO" |
| 20531 |
then : |
| 20532 |
rb_cv_func_stdcall="$mac"; break |
| 20533 |
fi |
| 20534 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20535 |
done |
| 20536 |
|
| 20537 |
CFLAGS="$save_CFLAGS" |
| 20538 |
save_CFLAGS= |
| 20539 |
if test "${rb_c_werror_flag+set}" |
| 20540 |
then : |
| 20541 |
|
| 20542 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20543 |
|
| 20544 |
else $as_nop |
| 20545 |
|
| 20546 |
unset ac_c_werror_flag |
| 20547 |
|
| 20548 |
fi |
| 20549 |
fi |
| 20550 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_stdcall" >&5 |
| 20551 |
colorize_result "$rb_cv_func_stdcall" ; } |
| 20552 |
if test "$rb_cv_func_stdcall" != x |
| 20553 |
then : |
| 20554 |
|
| 20555 |
test "X${rbcv_cond}" = X || printf "#if %s\n" "${rbcv_cond}" >>confdefs.h |
| 20556 |
printf "%s\n" "#define FUNC_STDCALL(x) $rb_cv_func_stdcall" >>confdefs.h |
| 20557 |
test "X${rbcv_cond}" = X || printf "#endif /* %s */\n" "${rbcv_cond}" >>confdefs.h |
| 20558 |
|
| 20559 |
|
| 20560 |
fi |
| 20561 |
unset rbcv_cond |
| 20562 |
|
| 20563 |
rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond |
| 20564 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUNC_CDECL function attribute" >&5 |
| 20565 |
printf %s "checking for FUNC_CDECL function attribute... " >&6; } |
| 20566 |
if test ${rb_cv_func_cdecl+y} |
| 20567 |
then : |
| 20568 |
printf %s "(cached) " >&6 |
| 20569 |
else $as_nop |
| 20570 |
rb_cv_func_cdecl=x |
| 20571 |
save_CFLAGS="$CFLAGS" |
| 20572 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20573 |
if test "${ac_c_werror_flag+set}" |
| 20574 |
then : |
| 20575 |
|
| 20576 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20577 |
|
| 20578 |
else $as_nop |
| 20579 |
|
| 20580 |
unset rb_c_werror_flag |
| 20581 |
|
| 20582 |
fi |
| 20583 |
ac_c_werror_flag=yes |
| 20584 |
|
| 20585 |
for mac in \ |
| 20586 |
"__attribute__ ((__cdecl__)) x" \ |
| 20587 |
"x __attribute__ ((__cdecl__))" \ |
| 20588 |
"__declspec(__cdecl__) x" \ |
| 20589 |
x; do |
| 20590 |
mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} |
| 20591 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20592 |
/* end confdefs.h. */ |
| 20593 |
|
| 20594 |
${rbcv_cond+#if $rbcv_cond} |
| 20595 |
#define FUNC_CDECL(x) $mac |
| 20596 |
${rbcv_cond+#else} |
| 20597 |
${rbcv_cond+#define FUNC_CDECL(x) x} |
| 20598 |
${rbcv_cond+#endif} |
| 20599 |
#define x int conftest_attribute_check(void) |
| 20600 |
|
| 20601 |
#define mesg ("") |
| 20602 |
#define san "address" |
| 20603 |
FUNC_CDECL(x); |
| 20604 |
int |
| 20605 |
main (void) |
| 20606 |
{ |
| 20607 |
|
| 20608 |
; |
| 20609 |
return 0; |
| 20610 |
} |
| 20611 |
_ACEOF |
| 20612 |
if ac_fn_c_try_compile "$LINENO" |
| 20613 |
then : |
| 20614 |
rb_cv_func_cdecl="$mac"; break |
| 20615 |
fi |
| 20616 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20617 |
done |
| 20618 |
|
| 20619 |
CFLAGS="$save_CFLAGS" |
| 20620 |
save_CFLAGS= |
| 20621 |
if test "${rb_c_werror_flag+set}" |
| 20622 |
then : |
| 20623 |
|
| 20624 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20625 |
|
| 20626 |
else $as_nop |
| 20627 |
|
| 20628 |
unset ac_c_werror_flag |
| 20629 |
|
| 20630 |
fi |
| 20631 |
fi |
| 20632 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_cdecl" >&5 |
| 20633 |
colorize_result "$rb_cv_func_cdecl" ; } |
| 20634 |
if test "$rb_cv_func_cdecl" != x |
| 20635 |
then : |
| 20636 |
|
| 20637 |
test "X${rbcv_cond}" = X || printf "#if %s\n" "${rbcv_cond}" >>confdefs.h |
| 20638 |
printf "%s\n" "#define FUNC_CDECL(x) $rb_cv_func_cdecl" >>confdefs.h |
| 20639 |
test "X${rbcv_cond}" = X || printf "#endif /* %s */\n" "${rbcv_cond}" >>confdefs.h |
| 20640 |
|
| 20641 |
|
| 20642 |
fi |
| 20643 |
unset rbcv_cond |
| 20644 |
|
| 20645 |
rbcv_cond="${if_i386}"; test "$rbcv_cond" || unset rbcv_cond |
| 20646 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUNC_FASTCALL function attribute" >&5 |
| 20647 |
printf %s "checking for FUNC_FASTCALL function attribute... " >&6; } |
| 20648 |
if test ${rb_cv_func_fastcall+y} |
| 20649 |
then : |
| 20650 |
printf %s "(cached) " >&6 |
| 20651 |
else $as_nop |
| 20652 |
rb_cv_func_fastcall=x |
| 20653 |
save_CFLAGS="$CFLAGS" |
| 20654 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20655 |
if test "${ac_c_werror_flag+set}" |
| 20656 |
then : |
| 20657 |
|
| 20658 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20659 |
|
| 20660 |
else $as_nop |
| 20661 |
|
| 20662 |
unset rb_c_werror_flag |
| 20663 |
|
| 20664 |
fi |
| 20665 |
ac_c_werror_flag=yes |
| 20666 |
|
| 20667 |
for mac in \ |
| 20668 |
"__attribute__ ((__fastcall__)) x" \ |
| 20669 |
"x __attribute__ ((__fastcall__))" \ |
| 20670 |
"__declspec(__fastcall__) x" \ |
| 20671 |
x; do |
| 20672 |
mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"} |
| 20673 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20674 |
/* end confdefs.h. */ |
| 20675 |
|
| 20676 |
${rbcv_cond+#if $rbcv_cond} |
| 20677 |
#define FUNC_FASTCALL(x) $mac |
| 20678 |
${rbcv_cond+#else} |
| 20679 |
${rbcv_cond+#define FUNC_FASTCALL(x) x} |
| 20680 |
${rbcv_cond+#endif} |
| 20681 |
#define x int conftest_attribute_check(void) |
| 20682 |
|
| 20683 |
#define mesg ("") |
| 20684 |
#define san "address" |
| 20685 |
FUNC_FASTCALL(x); |
| 20686 |
int |
| 20687 |
main (void) |
| 20688 |
{ |
| 20689 |
|
| 20690 |
; |
| 20691 |
return 0; |
| 20692 |
} |
| 20693 |
_ACEOF |
| 20694 |
if ac_fn_c_try_compile "$LINENO" |
| 20695 |
then : |
| 20696 |
rb_cv_func_fastcall="$mac"; break |
| 20697 |
fi |
| 20698 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20699 |
done |
| 20700 |
|
| 20701 |
CFLAGS="$save_CFLAGS" |
| 20702 |
save_CFLAGS= |
| 20703 |
if test "${rb_c_werror_flag+set}" |
| 20704 |
then : |
| 20705 |
|
| 20706 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20707 |
|
| 20708 |
else $as_nop |
| 20709 |
|
| 20710 |
unset ac_c_werror_flag |
| 20711 |
|
| 20712 |
fi |
| 20713 |
fi |
| 20714 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_fastcall" >&5 |
| 20715 |
colorize_result "$rb_cv_func_fastcall" ; } |
| 20716 |
if test "$rb_cv_func_fastcall" != x |
| 20717 |
then : |
| 20718 |
|
| 20719 |
test "X${rbcv_cond}" = X || printf "#if %s\n" "${rbcv_cond}" >>confdefs.h |
| 20720 |
printf "%s\n" "#define FUNC_FASTCALL(x) $rb_cv_func_fastcall" >>confdefs.h |
| 20721 |
test "X${rbcv_cond}" = X || printf "#endif /* %s */\n" "${rbcv_cond}" >>confdefs.h |
| 20722 |
|
| 20723 |
|
| 20724 |
fi |
| 20725 |
unset rbcv_cond |
| 20726 |
|
| 20727 |
|
| 20728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUNC_UNOPTIMIZED function attribute" >&5 |
| 20729 |
printf %s "checking for FUNC_UNOPTIMIZED function attribute... " >&6; } |
| 20730 |
if test ${rb_cv_func_unoptimized+y} |
| 20731 |
then : |
| 20732 |
printf %s "(cached) " >&6 |
| 20733 |
else $as_nop |
| 20734 |
rb_cv_func_unoptimized=x |
| 20735 |
save_CFLAGS="$CFLAGS" |
| 20736 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20737 |
if test "${ac_c_werror_flag+set}" |
| 20738 |
then : |
| 20739 |
|
| 20740 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20741 |
|
| 20742 |
else $as_nop |
| 20743 |
|
| 20744 |
unset rb_c_werror_flag |
| 20745 |
|
| 20746 |
fi |
| 20747 |
ac_c_werror_flag=yes |
| 20748 |
|
| 20749 |
for mac in \ |
| 20750 |
"__attribute__ ((__optimize__(\"O0\"))) x" \ |
| 20751 |
"x __attribute__ ((__optimize__(\"O0\")))" \ |
| 20752 |
"__declspec(__optimize__(\"O0\")) x" \ |
| 20753 |
x; do |
| 20754 |
|
| 20755 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20756 |
/* end confdefs.h. */ |
| 20757 |
|
| 20758 |
|
| 20759 |
#define FUNC_UNOPTIMIZED(x) $mac |
| 20760 |
|
| 20761 |
#define x int conftest_attribute_check(void) |
| 20762 |
|
| 20763 |
#define mesg ("") |
| 20764 |
#define san "address" |
| 20765 |
FUNC_UNOPTIMIZED(x); |
| 20766 |
int |
| 20767 |
main (void) |
| 20768 |
{ |
| 20769 |
|
| 20770 |
; |
| 20771 |
return 0; |
| 20772 |
} |
| 20773 |
_ACEOF |
| 20774 |
if ac_fn_c_try_compile "$LINENO" |
| 20775 |
then : |
| 20776 |
rb_cv_func_unoptimized="$mac"; break |
| 20777 |
fi |
| 20778 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20779 |
done |
| 20780 |
|
| 20781 |
CFLAGS="$save_CFLAGS" |
| 20782 |
save_CFLAGS= |
| 20783 |
if test "${rb_c_werror_flag+set}" |
| 20784 |
then : |
| 20785 |
|
| 20786 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20787 |
|
| 20788 |
else $as_nop |
| 20789 |
|
| 20790 |
unset ac_c_werror_flag |
| 20791 |
|
| 20792 |
fi |
| 20793 |
fi |
| 20794 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_unoptimized" >&5 |
| 20795 |
colorize_result "$rb_cv_func_unoptimized" ; } |
| 20796 |
if test "$rb_cv_func_unoptimized" != x |
| 20797 |
then : |
| 20798 |
|
| 20799 |
|
| 20800 |
printf "%s\n" "#define FUNC_UNOPTIMIZED(x) $rb_cv_func_unoptimized" >>confdefs.h |
| 20801 |
|
| 20802 |
|
| 20803 |
|
| 20804 |
fi |
| 20805 |
|
| 20806 |
|
| 20807 |
|
| 20808 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FUNC_MINIMIZED function attribute" >&5 |
| 20809 |
printf %s "checking for FUNC_MINIMIZED function attribute... " >&6; } |
| 20810 |
if test ${rb_cv_func_minimized+y} |
| 20811 |
then : |
| 20812 |
printf %s "(cached) " >&6 |
| 20813 |
else $as_nop |
| 20814 |
rb_cv_func_minimized=x |
| 20815 |
save_CFLAGS="$CFLAGS" |
| 20816 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 20817 |
if test "${ac_c_werror_flag+set}" |
| 20818 |
then : |
| 20819 |
|
| 20820 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 20821 |
|
| 20822 |
else $as_nop |
| 20823 |
|
| 20824 |
unset rb_c_werror_flag |
| 20825 |
|
| 20826 |
fi |
| 20827 |
ac_c_werror_flag=yes |
| 20828 |
|
| 20829 |
for mac in \ |
| 20830 |
"__attribute__ ((__optimize__(\"-Os\",\"-fomit-frame-pointer\"))) x" \ |
| 20831 |
"x __attribute__ ((__optimize__(\"-Os\",\"-fomit-frame-pointer\")))" \ |
| 20832 |
"__declspec(__optimize__(\"-Os\",\"-fomit-frame-pointer\")) x" \ |
| 20833 |
x; do |
| 20834 |
|
| 20835 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20836 |
/* end confdefs.h. */ |
| 20837 |
|
| 20838 |
|
| 20839 |
#define FUNC_MINIMIZED(x) $mac |
| 20840 |
|
| 20841 |
#define x int conftest_attribute_check(void) |
| 20842 |
|
| 20843 |
#define mesg ("") |
| 20844 |
#define san "address" |
| 20845 |
FUNC_MINIMIZED(x); |
| 20846 |
int |
| 20847 |
main (void) |
| 20848 |
{ |
| 20849 |
|
| 20850 |
; |
| 20851 |
return 0; |
| 20852 |
} |
| 20853 |
_ACEOF |
| 20854 |
if ac_fn_c_try_compile "$LINENO" |
| 20855 |
then : |
| 20856 |
rb_cv_func_minimized="$mac"; break |
| 20857 |
fi |
| 20858 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20859 |
done |
| 20860 |
|
| 20861 |
CFLAGS="$save_CFLAGS" |
| 20862 |
save_CFLAGS= |
| 20863 |
if test "${rb_c_werror_flag+set}" |
| 20864 |
then : |
| 20865 |
|
| 20866 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 20867 |
|
| 20868 |
else $as_nop |
| 20869 |
|
| 20870 |
unset ac_c_werror_flag |
| 20871 |
|
| 20872 |
fi |
| 20873 |
fi |
| 20874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_minimized" >&5 |
| 20875 |
colorize_result "$rb_cv_func_minimized" ; } |
| 20876 |
if test "$rb_cv_func_minimized" != x |
| 20877 |
then : |
| 20878 |
|
| 20879 |
|
| 20880 |
printf "%s\n" "#define FUNC_MINIMIZED(x) $rb_cv_func_minimized" >>confdefs.h |
| 20881 |
|
| 20882 |
|
| 20883 |
|
| 20884 |
fi |
| 20885 |
|
| 20886 |
|
| 20887 |
|
| 20888 |
if test "$GCC" = yes |
| 20889 |
then : |
| 20890 |
|
| 20891 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function alias" >&5 |
| 20892 |
printf %s "checking for function alias... " >&6; } |
| 20893 |
if test ${rb_cv_gcc_function_alias+y} |
| 20894 |
then : |
| 20895 |
printf %s "(cached) " >&6 |
| 20896 |
else $as_nop |
| 20897 |
rb_cv_gcc_function_alias=no |
| 20898 |
for a in alias weak,alias; do |
| 20899 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20900 |
/* end confdefs.h. */ |
| 20901 |
void foo(void) {} |
| 20902 |
void bar(void) __attribute__(($a("foo"))); |
| 20903 |
int |
| 20904 |
main (void) |
| 20905 |
{ |
| 20906 |
bar() |
| 20907 |
; |
| 20908 |
return 0; |
| 20909 |
} |
| 20910 |
_ACEOF |
| 20911 |
if ac_fn_c_try_link "$LINENO" |
| 20912 |
then : |
| 20913 |
rb_cv_gcc_function_alias=$a; break |
| 20914 |
fi |
| 20915 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20916 |
conftest$ac_exeext conftest.$ac_ext |
| 20917 |
done |
| 20918 |
fi |
| 20919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_function_alias" >&5 |
| 20920 |
colorize_result "$rb_cv_gcc_function_alias" ; } |
| 20921 |
if test "$rb_cv_gcc_function_alias" != no |
| 20922 |
then : |
| 20923 |
|
| 20924 |
printf "%s\n" "#define HAVE_ATTRIBUTE_FUNCTION_ALIAS 1" >>confdefs.h |
| 20925 |
|
| 20926 |
printf "%s\n" "#define RUBY_ALIAS_FUNCTION_TYPE(type, prot, name, args) type prot __attribute__(($rb_cv_gcc_function_alias(#name)));" >>confdefs.h |
| 20927 |
|
| 20928 |
printf "%s\n" "#define RUBY_ALIAS_FUNCTION_VOID(prot, name, args) RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args)" >>confdefs.h |
| 20929 |
|
| 20930 |
|
| 20931 |
fi |
| 20932 |
|
| 20933 |
fi |
| 20934 |
|
| 20935 |
{ |
| 20936 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __atomic builtins" >&5 |
| 20937 |
printf %s "checking for __atomic builtins... " >&6; } |
| 20938 |
if test ${rb_cv_gcc_atomic_builtins+y} |
| 20939 |
then : |
| 20940 |
printf %s "(cached) " >&6 |
| 20941 |
else $as_nop |
| 20942 |
|
| 20943 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20944 |
/* end confdefs.h. */ |
| 20945 |
unsigned int atomic_var; |
| 20946 |
int |
| 20947 |
main (void) |
| 20948 |
{ |
| 20949 |
|
| 20950 |
__atomic_exchange_n(&atomic_var, 0, __ATOMIC_SEQ_CST); |
| 20951 |
__atomic_exchange_n(&atomic_var, 1, __ATOMIC_SEQ_CST); |
| 20952 |
__atomic_fetch_add(&atomic_var, 1, __ATOMIC_SEQ_CST); |
| 20953 |
__atomic_fetch_sub(&atomic_var, 1, __ATOMIC_SEQ_CST); |
| 20954 |
__atomic_or_fetch(&atomic_var, 1, __ATOMIC_SEQ_CST); |
| 20955 |
|
| 20956 |
; |
| 20957 |
return 0; |
| 20958 |
} |
| 20959 |
_ACEOF |
| 20960 |
if ac_fn_c_try_link "$LINENO" |
| 20961 |
then : |
| 20962 |
rb_cv_gcc_atomic_builtins=yes |
| 20963 |
else $as_nop |
| 20964 |
rb_cv_gcc_atomic_builtins=no |
| 20965 |
fi |
| 20966 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 20967 |
conftest$ac_exeext conftest.$ac_ext |
| 20968 |
fi |
| 20969 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_atomic_builtins" >&5 |
| 20970 |
colorize_result "$rb_cv_gcc_atomic_builtins" ; } |
| 20971 |
if test "$rb_cv_gcc_atomic_builtins" = yes |
| 20972 |
then : |
| 20973 |
|
| 20974 |
printf "%s\n" "#define HAVE_GCC_ATOMIC_BUILTINS 1" >>confdefs.h |
| 20975 |
|
| 20976 |
|
| 20977 |
fi |
| 20978 |
|
| 20979 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __sync builtins" >&5 |
| 20980 |
printf %s "checking for __sync builtins... " >&6; } |
| 20981 |
if test ${rb_cv_gcc_sync_builtins+y} |
| 20982 |
then : |
| 20983 |
printf %s "(cached) " >&6 |
| 20984 |
else $as_nop |
| 20985 |
|
| 20986 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20987 |
/* end confdefs.h. */ |
| 20988 |
unsigned int atomic_var; |
| 20989 |
int |
| 20990 |
main (void) |
| 20991 |
{ |
| 20992 |
|
| 20993 |
__sync_lock_test_and_set(&atomic_var, 0); |
| 20994 |
__sync_lock_test_and_set(&atomic_var, 1); |
| 20995 |
__sync_fetch_and_add(&atomic_var, 1); |
| 20996 |
__sync_fetch_and_sub(&atomic_var, 1); |
| 20997 |
__sync_or_and_fetch(&atomic_var, 1); |
| 20998 |
__sync_val_compare_and_swap(&atomic_var, 0, 1); |
| 20999 |
|
| 21000 |
; |
| 21001 |
return 0; |
| 21002 |
} |
| 21003 |
_ACEOF |
| 21004 |
if ac_fn_c_try_link "$LINENO" |
| 21005 |
then : |
| 21006 |
rb_cv_gcc_sync_builtins=yes |
| 21007 |
else $as_nop |
| 21008 |
rb_cv_gcc_sync_builtins=no |
| 21009 |
fi |
| 21010 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21011 |
conftest$ac_exeext conftest.$ac_ext |
| 21012 |
fi |
| 21013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gcc_sync_builtins" >&5 |
| 21014 |
colorize_result "$rb_cv_gcc_sync_builtins" ; } |
| 21015 |
if test "$rb_cv_gcc_sync_builtins" = yes |
| 21016 |
then : |
| 21017 |
|
| 21018 |
printf "%s\n" "#define HAVE_GCC_SYNC_BUILTINS 1" >>confdefs.h |
| 21019 |
|
| 21020 |
|
| 21021 |
fi |
| 21022 |
|
| 21023 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_unreachable" >&5 |
| 21024 |
printf %s "checking for __builtin_unreachable... " >&6; } |
| 21025 |
if test ${rb_cv_func___builtin_unreachable+y} |
| 21026 |
then : |
| 21027 |
printf %s "(cached) " >&6 |
| 21028 |
else $as_nop |
| 21029 |
save_CFLAGS="$CFLAGS" |
| 21030 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21031 |
if test "${ac_c_werror_flag+set}" |
| 21032 |
then : |
| 21033 |
|
| 21034 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21035 |
|
| 21036 |
else $as_nop |
| 21037 |
|
| 21038 |
unset rb_c_werror_flag |
| 21039 |
|
| 21040 |
fi |
| 21041 |
ac_c_werror_flag=yes |
| 21042 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21043 |
/* end confdefs.h. */ |
| 21044 |
volatile int zero; |
| 21045 |
int |
| 21046 |
main (void) |
| 21047 |
{ |
| 21048 |
if (zero) __builtin_unreachable(); |
| 21049 |
; |
| 21050 |
return 0; |
| 21051 |
} |
| 21052 |
_ACEOF |
| 21053 |
if ac_fn_c_try_link "$LINENO" |
| 21054 |
then : |
| 21055 |
rb_cv_func___builtin_unreachable=yes |
| 21056 |
else $as_nop |
| 21057 |
rb_cv_func___builtin_unreachable=no |
| 21058 |
fi |
| 21059 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21060 |
conftest$ac_exeext conftest.$ac_ext |
| 21061 |
|
| 21062 |
CFLAGS="$save_CFLAGS" |
| 21063 |
save_CFLAGS= |
| 21064 |
if test "${rb_c_werror_flag+set}" |
| 21065 |
then : |
| 21066 |
|
| 21067 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21068 |
|
| 21069 |
else $as_nop |
| 21070 |
|
| 21071 |
unset ac_c_werror_flag |
| 21072 |
|
| 21073 |
fi |
| 21074 |
|
| 21075 |
fi |
| 21076 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___builtin_unreachable" >&5 |
| 21077 |
colorize_result "$rb_cv_func___builtin_unreachable" ; } |
| 21078 |
if test "$rb_cv_func___builtin_unreachable" = yes |
| 21079 |
then : |
| 21080 |
|
| 21081 |
printf "%s\n" "#define HAVE___BUILTIN_UNREACHABLE 1" >>confdefs.h |
| 21082 |
|
| 21083 |
|
| 21084 |
fi |
| 21085 |
|
| 21086 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __assume" >&5 |
| 21087 |
printf %s "checking for __assume... " >&6; } |
| 21088 |
if test ${rb_cv_func___assume+y} |
| 21089 |
then : |
| 21090 |
printf %s "(cached) " >&6 |
| 21091 |
else $as_nop |
| 21092 |
save_CFLAGS="$CFLAGS" |
| 21093 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21094 |
if test "${ac_c_werror_flag+set}" |
| 21095 |
then : |
| 21096 |
|
| 21097 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21098 |
|
| 21099 |
else $as_nop |
| 21100 |
|
| 21101 |
unset rb_c_werror_flag |
| 21102 |
|
| 21103 |
fi |
| 21104 |
ac_c_werror_flag=yes |
| 21105 |
|
| 21106 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21107 |
/* end confdefs.h. */ |
| 21108 |
|
| 21109 |
int |
| 21110 |
main (void) |
| 21111 |
{ |
| 21112 |
__assume(1); |
| 21113 |
; |
| 21114 |
return 0; |
| 21115 |
} |
| 21116 |
_ACEOF |
| 21117 |
if ac_fn_c_try_link "$LINENO" |
| 21118 |
then : |
| 21119 |
rb_cv_func___assume=yes |
| 21120 |
else $as_nop |
| 21121 |
rb_cv_func___assume=no |
| 21122 |
fi |
| 21123 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21124 |
conftest$ac_exeext conftest.$ac_ext |
| 21125 |
|
| 21126 |
CFLAGS="$save_CFLAGS" |
| 21127 |
save_CFLAGS= |
| 21128 |
if test "${rb_c_werror_flag+set}" |
| 21129 |
then : |
| 21130 |
|
| 21131 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21132 |
|
| 21133 |
else $as_nop |
| 21134 |
|
| 21135 |
unset ac_c_werror_flag |
| 21136 |
|
| 21137 |
fi |
| 21138 |
|
| 21139 |
fi |
| 21140 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func___assume" >&5 |
| 21141 |
colorize_result "$rb_cv_func___assume" ; } |
| 21142 |
if test "$rb_cv_func___assume" = yes |
| 21143 |
then : |
| 21144 |
|
| 21145 |
printf "%s\n" "#define HAVE___ASSUME 1" >>confdefs.h |
| 21146 |
|
| 21147 |
|
| 21148 |
fi |
| 21149 |
} |
| 21150 |
|
| 21151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for exported function attribute" >&5 |
| 21152 |
printf %s "checking for exported function attribute... " >&6; } |
| 21153 |
if test ${rb_cv_func_exported+y} |
| 21154 |
then : |
| 21155 |
printf %s "(cached) " >&6 |
| 21156 |
else $as_nop |
| 21157 |
|
| 21158 |
rb_cv_func_exported=no |
| 21159 |
save_CFLAGS="$CFLAGS" |
| 21160 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21161 |
if test "${ac_c_werror_flag+set}" |
| 21162 |
then : |
| 21163 |
|
| 21164 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21165 |
|
| 21166 |
else $as_nop |
| 21167 |
|
| 21168 |
unset rb_c_werror_flag |
| 21169 |
|
| 21170 |
fi |
| 21171 |
ac_c_werror_flag=yes |
| 21172 |
|
| 21173 |
for mac in '__attribute__ ((__visibility__("default")))' '__declspec(dllexport)'; do |
| 21174 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21175 |
/* end confdefs.h. */ |
| 21176 |
#define RUBY_FUNC_EXPORTED $mac extern |
| 21177 |
RUBY_FUNC_EXPORTED void conftest_attribute_check(void); |
| 21178 |
int |
| 21179 |
main (void) |
| 21180 |
{ |
| 21181 |
|
| 21182 |
; |
| 21183 |
return 0; |
| 21184 |
} |
| 21185 |
_ACEOF |
| 21186 |
if ac_fn_c_try_compile "$LINENO" |
| 21187 |
then : |
| 21188 |
rb_cv_func_exported="$mac"; break |
| 21189 |
fi |
| 21190 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21191 |
done |
| 21192 |
|
| 21193 |
CFLAGS="$save_CFLAGS" |
| 21194 |
save_CFLAGS= |
| 21195 |
if test "${rb_c_werror_flag+set}" |
| 21196 |
then : |
| 21197 |
|
| 21198 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21199 |
|
| 21200 |
else $as_nop |
| 21201 |
|
| 21202 |
unset ac_c_werror_flag |
| 21203 |
|
| 21204 |
fi |
| 21205 |
fi |
| 21206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_exported" >&5 |
| 21207 |
colorize_result "$rb_cv_func_exported" ; } |
| 21208 |
if test "$rb_cv_func_exported" != no |
| 21209 |
then : |
| 21210 |
|
| 21211 |
printf "%s\n" "#define RUBY_FUNC_EXPORTED $rb_cv_func_exported extern" >>confdefs.h |
| 21212 |
|
| 21213 |
|
| 21214 |
fi |
| 21215 |
|
| 21216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RUBY_FUNC_NONNULL function attribute" >&5 |
| 21217 |
printf %s "checking for RUBY_FUNC_NONNULL function attribute... " >&6; } |
| 21218 |
if test ${rb_cv_func_nonnull+y} |
| 21219 |
then : |
| 21220 |
printf %s "(cached) " >&6 |
| 21221 |
else $as_nop |
| 21222 |
rb_cv_func_nonnull=x |
| 21223 |
save_CFLAGS="$CFLAGS" |
| 21224 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21225 |
if test "${ac_c_werror_flag+set}" |
| 21226 |
then : |
| 21227 |
|
| 21228 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21229 |
|
| 21230 |
else $as_nop |
| 21231 |
|
| 21232 |
unset rb_c_werror_flag |
| 21233 |
|
| 21234 |
fi |
| 21235 |
ac_c_werror_flag=yes |
| 21236 |
|
| 21237 |
for mac in \ |
| 21238 |
"__attribute__ ((__nonnull__(n))) x" \ |
| 21239 |
"x __attribute__ ((__nonnull__(n)))" \ |
| 21240 |
"__declspec(__nonnull__(n)) x" \ |
| 21241 |
x; do |
| 21242 |
|
| 21243 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21244 |
/* end confdefs.h. */ |
| 21245 |
|
| 21246 |
|
| 21247 |
#define RUBY_FUNC_NONNULL(n,x) $mac |
| 21248 |
|
| 21249 |
|
| 21250 |
#define x int conftest_attribute_check(void *p) |
| 21251 |
#define n 1 |
| 21252 |
|
| 21253 |
#define mesg ("") |
| 21254 |
#define san "address" |
| 21255 |
RUBY_FUNC_NONNULL(n,x); |
| 21256 |
int |
| 21257 |
main (void) |
| 21258 |
{ |
| 21259 |
|
| 21260 |
; |
| 21261 |
return 0; |
| 21262 |
} |
| 21263 |
_ACEOF |
| 21264 |
if ac_fn_c_try_compile "$LINENO" |
| 21265 |
then : |
| 21266 |
rb_cv_func_nonnull="$mac"; break |
| 21267 |
fi |
| 21268 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21269 |
done |
| 21270 |
|
| 21271 |
CFLAGS="$save_CFLAGS" |
| 21272 |
save_CFLAGS= |
| 21273 |
if test "${rb_c_werror_flag+set}" |
| 21274 |
then : |
| 21275 |
|
| 21276 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21277 |
|
| 21278 |
else $as_nop |
| 21279 |
|
| 21280 |
unset ac_c_werror_flag |
| 21281 |
|
| 21282 |
fi |
| 21283 |
fi |
| 21284 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_nonnull" >&5 |
| 21285 |
colorize_result "$rb_cv_func_nonnull" ; } |
| 21286 |
if test "$rb_cv_func_nonnull" != x |
| 21287 |
then : |
| 21288 |
|
| 21289 |
|
| 21290 |
printf "%s\n" "#define RUBY_FUNC_NONNULL(n,x) $rb_cv_func_nonnull" >>confdefs.h |
| 21291 |
|
| 21292 |
|
| 21293 |
|
| 21294 |
fi |
| 21295 |
|
| 21296 |
|
| 21297 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 21298 |
case " ${XCFLAGS-} " in #( |
| 21299 |
*" -DRUBY_EXPORT "*) : |
| 21300 |
;; #( |
| 21301 |
' ') : |
| 21302 |
XCFLAGS="-DRUBY_EXPORT" ;; #( |
| 21303 |
*) : |
| 21304 |
XCFLAGS="$XCFLAGS -DRUBY_EXPORT" ;; |
| 21305 |
esac |
| 21306 |
|
| 21307 |
# Check whether --enable-mathn was given. |
| 21308 |
if test ${enable_mathn+y} |
| 21309 |
then : |
| 21310 |
enableval=$enable_mathn; as_fn_error $? "mathn support has been dropped" "$LINENO" 5 |
| 21311 |
fi |
| 21312 |
|
| 21313 |
|
| 21314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for function name string predefined identifier" >&5 |
| 21315 |
printf %s "checking for function name string predefined identifier... " >&6; } |
| 21316 |
if test ${rb_cv_function_name_string+y} |
| 21317 |
then : |
| 21318 |
printf %s "(cached) " >&6 |
| 21319 |
else $as_nop |
| 21320 |
case "$target_os" in #( |
| 21321 |
openbsd*) : |
| 21322 |
|
| 21323 |
rb_cv_function_name_string=__func__ |
| 21324 |
;; #( |
| 21325 |
*) : |
| 21326 |
|
| 21327 |
rb_cv_function_name_string=no |
| 21328 |
save_CFLAGS="$CFLAGS" |
| 21329 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21330 |
if test "${ac_c_werror_flag+set}" |
| 21331 |
then : |
| 21332 |
|
| 21333 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21334 |
|
| 21335 |
else $as_nop |
| 21336 |
|
| 21337 |
unset rb_c_werror_flag |
| 21338 |
|
| 21339 |
fi |
| 21340 |
ac_c_werror_flag=yes |
| 21341 |
|
| 21342 |
for func in __func__ __FUNCTION__; do |
| 21343 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21344 |
/* end confdefs.h. */ |
| 21345 |
#include <stdio.h> |
| 21346 |
int |
| 21347 |
main (void) |
| 21348 |
{ |
| 21349 |
puts($func); |
| 21350 |
; |
| 21351 |
return 0; |
| 21352 |
} |
| 21353 |
_ACEOF |
| 21354 |
if ac_fn_c_try_link "$LINENO" |
| 21355 |
then : |
| 21356 |
rb_cv_function_name_string=$func |
| 21357 |
break |
| 21358 |
fi |
| 21359 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 21360 |
conftest$ac_exeext conftest.$ac_ext |
| 21361 |
done |
| 21362 |
|
| 21363 |
CFLAGS="$save_CFLAGS" |
| 21364 |
save_CFLAGS= |
| 21365 |
if test "${rb_c_werror_flag+set}" |
| 21366 |
then : |
| 21367 |
|
| 21368 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21369 |
|
| 21370 |
else $as_nop |
| 21371 |
|
| 21372 |
unset ac_c_werror_flag |
| 21373 |
|
| 21374 |
fi ;; |
| 21375 |
esac |
| 21376 |
|
| 21377 |
fi |
| 21378 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_function_name_string" >&5 |
| 21379 |
colorize_result "$rb_cv_function_name_string" ; } |
| 21380 |
if test "$rb_cv_function_name_string" != no |
| 21381 |
then : |
| 21382 |
|
| 21383 |
printf "%s\n" "#define RUBY_FUNCTION_NAME_STRING $rb_cv_function_name_string" >>confdefs.h |
| 21384 |
|
| 21385 |
|
| 21386 |
fi |
| 21387 |
|
| 21388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if enum over int is allowed" >&5 |
| 21389 |
printf %s "checking if enum over int is allowed... " >&6; } |
| 21390 |
if test ${rb_cv_enum_over_int+y} |
| 21391 |
then : |
| 21392 |
printf %s "(cached) " >&6 |
| 21393 |
else $as_nop |
| 21394 |
|
| 21395 |
rb_cv_enum_over_int=no |
| 21396 |
if test "x$ac_cv_type_long_long" = xyes |
| 21397 |
then : |
| 21398 |
|
| 21399 |
type="unsigned long long" max="ULLONG_MAX" |
| 21400 |
|
| 21401 |
else $as_nop |
| 21402 |
|
| 21403 |
type="unsigned long" max="ULONG_MAX" |
| 21404 |
|
| 21405 |
fi |
| 21406 |
save_CFLAGS="$CFLAGS" |
| 21407 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 21408 |
if test "${ac_c_werror_flag+set}" |
| 21409 |
then : |
| 21410 |
|
| 21411 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 21412 |
|
| 21413 |
else $as_nop |
| 21414 |
|
| 21415 |
unset rb_c_werror_flag |
| 21416 |
|
| 21417 |
fi |
| 21418 |
ac_c_werror_flag=yes |
| 21419 |
|
| 21420 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21421 |
/* end confdefs.h. */ |
| 21422 |
|
| 21423 |
|
| 21424 |
#include <limits.h> |
| 21425 |
enum {conftest_max = $max}; |
| 21426 |
|
| 21427 |
int |
| 21428 |
main (void) |
| 21429 |
{ |
| 21430 |
static int test_array [1 - 2 * !( |
| 21431 |
(conftest_max == $max) && |
| 21432 |
(sizeof(conftest_max) == sizeof($type)) |
| 21433 |
|
| 21434 |
)]; |
| 21435 |
test_array [0] = 0; |
| 21436 |
return test_array [0]; |
| 21437 |
|
| 21438 |
; |
| 21439 |
return 0; |
| 21440 |
} |
| 21441 |
_ACEOF |
| 21442 |
if ac_fn_c_try_compile "$LINENO" |
| 21443 |
then : |
| 21444 |
rb_cv_enum_over_int=yes |
| 21445 |
else $as_nop |
| 21446 |
rb_cv_enum_over_int=no |
| 21447 |
|
| 21448 |
fi |
| 21449 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21450 |
|
| 21451 |
CFLAGS="$save_CFLAGS" |
| 21452 |
save_CFLAGS= |
| 21453 |
if test "${rb_c_werror_flag+set}" |
| 21454 |
then : |
| 21455 |
|
| 21456 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 21457 |
|
| 21458 |
else $as_nop |
| 21459 |
|
| 21460 |
unset ac_c_werror_flag |
| 21461 |
|
| 21462 |
fi |
| 21463 |
|
| 21464 |
fi |
| 21465 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_enum_over_int" >&5 |
| 21466 |
colorize_result "$rb_cv_enum_over_int" ; } |
| 21467 |
if test $rb_cv_enum_over_int = yes |
| 21468 |
then : |
| 21469 |
|
| 21470 |
printf "%s\n" "#define ENUM_OVER_INT 1" >>confdefs.h |
| 21471 |
|
| 21472 |
|
| 21473 |
fi |
| 21474 |
|
| 21475 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 |
| 21476 |
printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } |
| 21477 |
if test ${ac_cv_c_undeclared_builtin_options+y} |
| 21478 |
then : |
| 21479 |
printf %s "(cached) " >&6 |
| 21480 |
else $as_nop |
| 21481 |
ac_save_CFLAGS=$CFLAGS |
| 21482 |
ac_cv_c_undeclared_builtin_options='cannot detect' |
| 21483 |
for ac_arg in '' -fno-builtin; do |
| 21484 |
CFLAGS="$ac_save_CFLAGS $ac_arg" |
| 21485 |
# This test program should *not* compile successfully. |
| 21486 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21487 |
/* end confdefs.h. */ |
| 21488 |
|
| 21489 |
int |
| 21490 |
main (void) |
| 21491 |
{ |
| 21492 |
(void) strchr; |
| 21493 |
; |
| 21494 |
return 0; |
| 21495 |
} |
| 21496 |
_ACEOF |
| 21497 |
if ac_fn_c_try_compile "$LINENO" |
| 21498 |
then : |
| 21499 |
|
| 21500 |
else $as_nop |
| 21501 |
# This test program should compile successfully. |
| 21502 |
# No library function is consistently available on |
| 21503 |
# freestanding implementations, so test against a dummy |
| 21504 |
# declaration. Include always-available headers on the |
| 21505 |
# off chance that they somehow elicit warnings. |
| 21506 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21507 |
/* end confdefs.h. */ |
| 21508 |
#include <float.h> |
| 21509 |
#include <limits.h> |
| 21510 |
#include <stdarg.h> |
| 21511 |
#include <stddef.h> |
| 21512 |
extern void ac_decl (int, char *); |
| 21513 |
|
| 21514 |
int |
| 21515 |
main (void) |
| 21516 |
{ |
| 21517 |
(void) ac_decl (0, (char *) 0); |
| 21518 |
(void) ac_decl; |
| 21519 |
|
| 21520 |
; |
| 21521 |
return 0; |
| 21522 |
} |
| 21523 |
_ACEOF |
| 21524 |
if ac_fn_c_try_compile "$LINENO" |
| 21525 |
then : |
| 21526 |
if test x"$ac_arg" = x |
| 21527 |
then : |
| 21528 |
ac_cv_c_undeclared_builtin_options='none needed' |
| 21529 |
else $as_nop |
| 21530 |
ac_cv_c_undeclared_builtin_options=$ac_arg |
| 21531 |
fi |
| 21532 |
break |
| 21533 |
fi |
| 21534 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21535 |
fi |
| 21536 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21537 |
done |
| 21538 |
CFLAGS=$ac_save_CFLAGS |
| 21539 |
|
| 21540 |
fi |
| 21541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 |
| 21542 |
colorize_result "$ac_cv_c_undeclared_builtin_options" ; } |
| 21543 |
case $ac_cv_c_undeclared_builtin_options in #( |
| 21544 |
'cannot detect') : |
| 21545 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21546 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21547 |
as_fn_error $? "cannot make $CC report undeclared builtins |
| 21548 |
See \`config.log' for more details" "$LINENO" 5; } ;; #( |
| 21549 |
'none needed') : |
| 21550 |
ac_c_undeclared_builtin_options='' ;; #( |
| 21551 |
*) : |
| 21552 |
ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; |
| 21553 |
esac |
| 21554 |
|
| 21555 |
ac_fn_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "$ac_includes_default |
| 21556 |
#include <errno.h> |
| 21557 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 21558 |
if test "x$ac_cv_have_decl_sys_nerr" = xyes |
| 21559 |
then : |
| 21560 |
ac_have_decl=1 |
| 21561 |
else $as_nop |
| 21562 |
ac_have_decl=0 |
| 21563 |
fi |
| 21564 |
printf "%s\n" "#define HAVE_DECL_SYS_NERR $ac_have_decl" >>confdefs.h |
| 21565 |
|
| 21566 |
|
| 21567 |
ac_fn_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 21568 |
if test "x$ac_cv_have_decl_getenv" = xyes |
| 21569 |
then : |
| 21570 |
ac_have_decl=1 |
| 21571 |
else $as_nop |
| 21572 |
ac_have_decl=0 |
| 21573 |
fi |
| 21574 |
printf "%s\n" "#define HAVE_DECL_GETENV $ac_have_decl" >>confdefs.h |
| 21575 |
|
| 21576 |
|
| 21577 |
case "$target_cpu" in #( |
| 21578 |
alpha*|sh4|sh4el|sh4eb) : |
| 21579 |
case "$target_os"::"$GCC" in #( |
| 21580 |
*::yes) : |
| 21581 |
# gcc |
| 21582 |
CFLAGS="-mieee $CFLAGS" ;; #( |
| 21583 |
osf*) : |
| 21584 |
# ccc |
| 21585 |
CFLAGS="-ieee $CFLAGS" ;; #( |
| 21586 |
*) : |
| 21587 |
;; |
| 21588 |
esac ;; #( |
| 21589 |
sparc*) : |
| 21590 |
case " $LIBOBJS " in |
| 21591 |
*" sparc.$ac_objext "* ) ;; |
| 21592 |
*) LIBOBJS="$LIBOBJS sparc.$ac_objext" |
| 21593 |
;; |
| 21594 |
esac |
| 21595 |
;; #( |
| 21596 |
*) : |
| 21597 |
;; |
| 21598 |
esac |
| 21599 |
|
| 21600 |
ac_cv_header_net_socket_h=${ac_cv_header_net_socket_h=no} |
| 21601 |
if test "$ac_cv_header_net_socket_h" = yes |
| 21602 |
then : |
| 21603 |
|
| 21604 |
ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=no} |
| 21605 |
|
| 21606 |
else $as_nop |
| 21607 |
|
| 21608 |
ac_cv_header_sys_socket_h=${ac_cv_header_sys_socket_h=yes} |
| 21609 |
|
| 21610 |
fi |
| 21611 |
|
| 21612 |
|
| 21613 |
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 21614 |
if test "x$ac_cv_type_size_t" = xyes |
| 21615 |
then : |
| 21616 |
|
| 21617 |
else $as_nop |
| 21618 |
|
| 21619 |
printf "%s\n" "#define size_t unsigned int" >>confdefs.h |
| 21620 |
|
| 21621 |
fi |
| 21622 |
|
| 21623 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21624 |
/* end confdefs.h. */ |
| 21625 |
#include <sys/types.h> |
| 21626 |
|
| 21627 |
int |
| 21628 |
main (void) |
| 21629 |
{ |
| 21630 |
static int test_array [1 - 2 * !((size_t)-1 > 0)]; |
| 21631 |
test_array [0] = 0; |
| 21632 |
return test_array [0]; |
| 21633 |
|
| 21634 |
; |
| 21635 |
return 0; |
| 21636 |
} |
| 21637 |
_ACEOF |
| 21638 |
if ac_fn_c_try_compile "$LINENO" |
| 21639 |
then : |
| 21640 |
|
| 21641 |
else $as_nop |
| 21642 |
as_fn_error $? "size_t is signed" "$LINENO" 5 |
| 21643 |
fi |
| 21644 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21645 |
|
| 21646 |
if test "$universal_binary" = yes; then |
| 21647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 21648 |
printf %s "checking size of size_t... " >&6; } |
| 21649 |
if test ${ac_cv_sizeof_size_t+y} |
| 21650 |
then : |
| 21651 |
printf %s "(cached) " >&6 |
| 21652 |
else $as_nop |
| 21653 |
|
| 21654 |
unset ac_cv_sizeof_size_t |
| 21655 |
rbcv_sizeof_var=" |
| 21656 |
typedef size_t ac__type_sizeof_; |
| 21657 |
static ac__type_sizeof_ *rbcv_ptr; |
| 21658 |
#define SIZEOF_SIZE_T sizeof((*rbcv_ptr)) |
| 21659 |
" |
| 21660 |
test -z "${ac_cv_sizeof_size_t+set}" && { |
| 21661 |
for rbcv_sizeof_type in int long void*; do |
| 21662 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21663 |
/* end confdefs.h. */ |
| 21664 |
#include <sys/types.h> |
| 21665 |
$rbcv_sizeof_var |
| 21666 |
|
| 21667 |
int |
| 21668 |
main (void) |
| 21669 |
{ |
| 21670 |
static int test_array [1 - 2 * !(SIZEOF_SIZE_T == sizeof($rbcv_sizeof_type))]; |
| 21671 |
test_array [0] = 0; |
| 21672 |
return test_array [0]; |
| 21673 |
|
| 21674 |
; |
| 21675 |
return 0; |
| 21676 |
} |
| 21677 |
_ACEOF |
| 21678 |
if ac_fn_c_try_compile "$LINENO" |
| 21679 |
then : |
| 21680 |
|
| 21681 |
ac_cv_sizeof_size_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 21682 |
break |
| 21683 |
fi |
| 21684 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21685 |
done |
| 21686 |
} |
| 21687 |
unset rbcv_sizeof_cond |
| 21688 |
|
| 21689 |
test "${ac_cv_sizeof_size_t#[1-9]}" = "${ac_cv_sizeof_size_t}" && |
| 21690 |
test "${ac_cv_sizeof_size_t#SIZEOF_}" = "${ac_cv_sizeof_size_t}" && { |
| 21691 |
test "$universal_binary" = yes && cross_compiling=yes |
| 21692 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_SIZE_T" "rbcv_sizeof_type" "#include <sys/types.h> |
| 21693 |
|
| 21694 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 21695 |
#else} |
| 21696 |
$rbcv_sizeof_var |
| 21697 |
${rbcv_sizeof_cond+#endif} |
| 21698 |
#ifndef SIZEOF_SIZE_T |
| 21699 |
#define SIZEOF_SIZE_T 0 |
| 21700 |
#endif" |
| 21701 |
then : |
| 21702 |
|
| 21703 |
else $as_nop |
| 21704 |
rbcv_sizeof_type=0 |
| 21705 |
fi |
| 21706 |
|
| 21707 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 21708 |
if test ${rbcv_sizeof_type-0} != 0 |
| 21709 |
then : |
| 21710 |
|
| 21711 |
ac_cv_sizeof_size_t="${ac_cv_sizeof_size_t+${ac_cv_sizeof_size_t-} }${rbcv_sizeof_type}" |
| 21712 |
|
| 21713 |
fi |
| 21714 |
} |
| 21715 |
: ${ac_cv_sizeof_size_t=0} |
| 21716 |
|
| 21717 |
fi |
| 21718 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 21719 |
colorize_result "$ac_cv_sizeof_size_t" ; } |
| 21720 |
{ |
| 21721 |
unset rbcv_sizeof_cond |
| 21722 |
for rbcv_sizeof_type in ${ac_cv_sizeof_size_t-}; do |
| 21723 |
case "$rbcv_sizeof_type" in #( |
| 21724 |
[0-9]*|SIZEOF_*) : |
| 21725 |
|
| 21726 |
${rbcv_sizeof_cond+echo "#else"} |
| 21727 |
echo "#define SIZEOF_SIZE_T $rbcv_sizeof_type" |
| 21728 |
break |
| 21729 |
;; #( |
| 21730 |
*) : |
| 21731 |
|
| 21732 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 21733 |
case $rbcv_sizeof_type in #( |
| 21734 |
*:*) : |
| 21735 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 21736 |
*) : |
| 21737 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 21738 |
esac |
| 21739 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 21740 |
echo "#define SIZEOF_SIZE_T $rbcv_sizeof_size" |
| 21741 |
rbcv_sizeof_cond=1 |
| 21742 |
;; |
| 21743 |
esac |
| 21744 |
done |
| 21745 |
${rbcv_sizeof_cond+echo "#endif"} |
| 21746 |
} >> confdefs.h |
| 21747 |
else |
| 21748 |
# The cast to long int works around a bug in the HP C Compiler |
| 21749 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21750 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21751 |
# This bug is HP SR number 8606223364. |
| 21752 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 |
| 21753 |
printf %s "checking size of size_t... " >&6; } |
| 21754 |
if test ${ac_cv_sizeof_size_t+y} |
| 21755 |
then : |
| 21756 |
printf %s "(cached) " >&6 |
| 21757 |
else $as_nop |
| 21758 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "#include <sys/types.h> |
| 21759 |
" |
| 21760 |
then : |
| 21761 |
|
| 21762 |
else $as_nop |
| 21763 |
if test "$ac_cv_type_size_t" = yes; then |
| 21764 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21765 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21766 |
as_fn_error 77 "cannot compute sizeof (size_t) |
| 21767 |
See \`config.log' for more details" "$LINENO" 5; } |
| 21768 |
else |
| 21769 |
ac_cv_sizeof_size_t=0 |
| 21770 |
fi |
| 21771 |
fi |
| 21772 |
|
| 21773 |
fi |
| 21774 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 |
| 21775 |
colorize_result "$ac_cv_sizeof_size_t" ; } |
| 21776 |
|
| 21777 |
|
| 21778 |
|
| 21779 |
printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h |
| 21780 |
|
| 21781 |
|
| 21782 |
fi |
| 21783 |
|
| 21784 |
|
| 21785 |
if test "$universal_binary" = yes; then |
| 21786 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 |
| 21787 |
printf %s "checking size of ptrdiff_t... " >&6; } |
| 21788 |
if test ${ac_cv_sizeof_ptrdiff_t+y} |
| 21789 |
then : |
| 21790 |
printf %s "(cached) " >&6 |
| 21791 |
else $as_nop |
| 21792 |
|
| 21793 |
unset ac_cv_sizeof_ptrdiff_t |
| 21794 |
rbcv_sizeof_var=" |
| 21795 |
typedef ptrdiff_t ac__type_sizeof_; |
| 21796 |
static ac__type_sizeof_ *rbcv_ptr; |
| 21797 |
#define SIZEOF_PTRDIFF_T sizeof((*rbcv_ptr)) |
| 21798 |
" |
| 21799 |
test -z "${ac_cv_sizeof_ptrdiff_t+set}" && { |
| 21800 |
for rbcv_sizeof_type in size_t; do |
| 21801 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21802 |
/* end confdefs.h. */ |
| 21803 |
#include <stddef.h> |
| 21804 |
$rbcv_sizeof_var |
| 21805 |
|
| 21806 |
int |
| 21807 |
main (void) |
| 21808 |
{ |
| 21809 |
static int test_array [1 - 2 * !(SIZEOF_PTRDIFF_T == sizeof($rbcv_sizeof_type))]; |
| 21810 |
test_array [0] = 0; |
| 21811 |
return test_array [0]; |
| 21812 |
|
| 21813 |
; |
| 21814 |
return 0; |
| 21815 |
} |
| 21816 |
_ACEOF |
| 21817 |
if ac_fn_c_try_compile "$LINENO" |
| 21818 |
then : |
| 21819 |
|
| 21820 |
ac_cv_sizeof_ptrdiff_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 21821 |
break |
| 21822 |
fi |
| 21823 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21824 |
done |
| 21825 |
} |
| 21826 |
unset rbcv_sizeof_cond |
| 21827 |
|
| 21828 |
test "${ac_cv_sizeof_ptrdiff_t#[1-9]}" = "${ac_cv_sizeof_ptrdiff_t}" && |
| 21829 |
test "${ac_cv_sizeof_ptrdiff_t#SIZEOF_}" = "${ac_cv_sizeof_ptrdiff_t}" && { |
| 21830 |
test "$universal_binary" = yes && cross_compiling=yes |
| 21831 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_PTRDIFF_T" "rbcv_sizeof_type" "#include <stddef.h> |
| 21832 |
|
| 21833 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 21834 |
#else} |
| 21835 |
$rbcv_sizeof_var |
| 21836 |
${rbcv_sizeof_cond+#endif} |
| 21837 |
#ifndef SIZEOF_PTRDIFF_T |
| 21838 |
#define SIZEOF_PTRDIFF_T 0 |
| 21839 |
#endif" |
| 21840 |
then : |
| 21841 |
|
| 21842 |
else $as_nop |
| 21843 |
rbcv_sizeof_type=0 |
| 21844 |
fi |
| 21845 |
|
| 21846 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 21847 |
if test ${rbcv_sizeof_type-0} != 0 |
| 21848 |
then : |
| 21849 |
|
| 21850 |
ac_cv_sizeof_ptrdiff_t="${ac_cv_sizeof_ptrdiff_t+${ac_cv_sizeof_ptrdiff_t-} }${rbcv_sizeof_type}" |
| 21851 |
|
| 21852 |
fi |
| 21853 |
} |
| 21854 |
: ${ac_cv_sizeof_ptrdiff_t=0} |
| 21855 |
|
| 21856 |
fi |
| 21857 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 |
| 21858 |
colorize_result "$ac_cv_sizeof_ptrdiff_t" ; } |
| 21859 |
{ |
| 21860 |
unset rbcv_sizeof_cond |
| 21861 |
for rbcv_sizeof_type in ${ac_cv_sizeof_ptrdiff_t-}; do |
| 21862 |
case "$rbcv_sizeof_type" in #( |
| 21863 |
[0-9]*|SIZEOF_*) : |
| 21864 |
|
| 21865 |
${rbcv_sizeof_cond+echo "#else"} |
| 21866 |
echo "#define SIZEOF_PTRDIFF_T $rbcv_sizeof_type" |
| 21867 |
break |
| 21868 |
;; #( |
| 21869 |
*) : |
| 21870 |
|
| 21871 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 21872 |
case $rbcv_sizeof_type in #( |
| 21873 |
*:*) : |
| 21874 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 21875 |
*) : |
| 21876 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 21877 |
esac |
| 21878 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 21879 |
echo "#define SIZEOF_PTRDIFF_T $rbcv_sizeof_size" |
| 21880 |
rbcv_sizeof_cond=1 |
| 21881 |
;; |
| 21882 |
esac |
| 21883 |
done |
| 21884 |
${rbcv_sizeof_cond+echo "#endif"} |
| 21885 |
} >> confdefs.h |
| 21886 |
else |
| 21887 |
# The cast to long int works around a bug in the HP C Compiler |
| 21888 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 21889 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 21890 |
# This bug is HP SR number 8606223364. |
| 21891 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5 |
| 21892 |
printf %s "checking size of ptrdiff_t... " >&6; } |
| 21893 |
if test ${ac_cv_sizeof_ptrdiff_t+y} |
| 21894 |
then : |
| 21895 |
printf %s "(cached) " >&6 |
| 21896 |
else $as_nop |
| 21897 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t" "#include <stddef.h> |
| 21898 |
" |
| 21899 |
then : |
| 21900 |
|
| 21901 |
else $as_nop |
| 21902 |
if test "$ac_cv_type_ptrdiff_t" = yes; then |
| 21903 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 21904 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 21905 |
as_fn_error 77 "cannot compute sizeof (ptrdiff_t) |
| 21906 |
See \`config.log' for more details" "$LINENO" 5; } |
| 21907 |
else |
| 21908 |
ac_cv_sizeof_ptrdiff_t=0 |
| 21909 |
fi |
| 21910 |
fi |
| 21911 |
|
| 21912 |
fi |
| 21913 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5 |
| 21914 |
colorize_result "$ac_cv_sizeof_ptrdiff_t" ; } |
| 21915 |
|
| 21916 |
|
| 21917 |
|
| 21918 |
printf "%s\n" "#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t" >>confdefs.h |
| 21919 |
|
| 21920 |
|
| 21921 |
fi |
| 21922 |
|
| 21923 |
|
| 21924 |
if test "$universal_binary" = yes; then |
| 21925 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 |
| 21926 |
printf %s "checking size of dev_t... " >&6; } |
| 21927 |
if test ${ac_cv_sizeof_dev_t+y} |
| 21928 |
then : |
| 21929 |
printf %s "(cached) " >&6 |
| 21930 |
else $as_nop |
| 21931 |
|
| 21932 |
unset ac_cv_sizeof_dev_t |
| 21933 |
rbcv_sizeof_var=" |
| 21934 |
typedef dev_t ac__type_sizeof_; |
| 21935 |
static ac__type_sizeof_ *rbcv_ptr; |
| 21936 |
#define SIZEOF_DEV_T sizeof((*rbcv_ptr)) |
| 21937 |
" |
| 21938 |
|
| 21939 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_DEV_T" "ac_cv_sizeof_dev_t" "$ac_includes_default |
| 21940 |
$rbcv_sizeof_var" |
| 21941 |
then : |
| 21942 |
|
| 21943 |
else $as_nop |
| 21944 |
ac_cv_sizeof_dev_t= |
| 21945 |
fi |
| 21946 |
|
| 21947 |
|
| 21948 |
unset rbcv_sizeof_cond |
| 21949 |
|
| 21950 |
test "${ac_cv_sizeof_dev_t#[1-9]}" = "${ac_cv_sizeof_dev_t}" && |
| 21951 |
{ |
| 21952 |
test "$universal_binary" = yes && cross_compiling=yes |
| 21953 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_DEV_T" "rbcv_sizeof_type" "$ac_includes_default |
| 21954 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 21955 |
#else} |
| 21956 |
$rbcv_sizeof_var |
| 21957 |
${rbcv_sizeof_cond+#endif} |
| 21958 |
#ifndef SIZEOF_DEV_T |
| 21959 |
#define SIZEOF_DEV_T 0 |
| 21960 |
#endif" |
| 21961 |
then : |
| 21962 |
|
| 21963 |
else $as_nop |
| 21964 |
rbcv_sizeof_type=0 |
| 21965 |
fi |
| 21966 |
|
| 21967 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 21968 |
if test ${rbcv_sizeof_type-0} != 0 |
| 21969 |
then : |
| 21970 |
|
| 21971 |
ac_cv_sizeof_dev_t="${ac_cv_sizeof_dev_t+${ac_cv_sizeof_dev_t-} }${rbcv_sizeof_type}" |
| 21972 |
|
| 21973 |
fi |
| 21974 |
} |
| 21975 |
: ${ac_cv_sizeof_dev_t=0} |
| 21976 |
|
| 21977 |
fi |
| 21978 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 |
| 21979 |
colorize_result "$ac_cv_sizeof_dev_t" ; } |
| 21980 |
{ |
| 21981 |
unset rbcv_sizeof_cond |
| 21982 |
for rbcv_sizeof_type in ${ac_cv_sizeof_dev_t-}; do |
| 21983 |
case "$rbcv_sizeof_type" in #( |
| 21984 |
[0-9]*|SIZEOF_*) : |
| 21985 |
|
| 21986 |
${rbcv_sizeof_cond+echo "#else"} |
| 21987 |
echo "#define SIZEOF_DEV_T $rbcv_sizeof_type" |
| 21988 |
break |
| 21989 |
;; #( |
| 21990 |
*) : |
| 21991 |
|
| 21992 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 21993 |
case $rbcv_sizeof_type in #( |
| 21994 |
*:*) : |
| 21995 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 21996 |
*) : |
| 21997 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 21998 |
esac |
| 21999 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22000 |
echo "#define SIZEOF_DEV_T $rbcv_sizeof_size" |
| 22001 |
rbcv_sizeof_cond=1 |
| 22002 |
;; |
| 22003 |
esac |
| 22004 |
done |
| 22005 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22006 |
} >> confdefs.h |
| 22007 |
else |
| 22008 |
# The cast to long int works around a bug in the HP C Compiler |
| 22009 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 22010 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 22011 |
# This bug is HP SR number 8606223364. |
| 22012 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of dev_t" >&5 |
| 22013 |
printf %s "checking size of dev_t... " >&6; } |
| 22014 |
if test ${ac_cv_sizeof_dev_t+y} |
| 22015 |
then : |
| 22016 |
printf %s "(cached) " >&6 |
| 22017 |
else $as_nop |
| 22018 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (dev_t))" "ac_cv_sizeof_dev_t" "$ac_includes_default" |
| 22019 |
then : |
| 22020 |
|
| 22021 |
else $as_nop |
| 22022 |
if test "$ac_cv_type_dev_t" = yes; then |
| 22023 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 22024 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 22025 |
as_fn_error 77 "cannot compute sizeof (dev_t) |
| 22026 |
See \`config.log' for more details" "$LINENO" 5; } |
| 22027 |
else |
| 22028 |
ac_cv_sizeof_dev_t=0 |
| 22029 |
fi |
| 22030 |
fi |
| 22031 |
|
| 22032 |
fi |
| 22033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_dev_t" >&5 |
| 22034 |
colorize_result "$ac_cv_sizeof_dev_t" ; } |
| 22035 |
|
| 22036 |
|
| 22037 |
|
| 22038 |
printf "%s\n" "#define SIZEOF_DEV_T $ac_cv_sizeof_dev_t" >>confdefs.h |
| 22039 |
|
| 22040 |
|
| 22041 |
fi |
| 22042 |
|
| 22043 |
|
| 22044 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for size_t" >&5 |
| 22045 |
printf %s "checking for printf prefix for size_t... " >&6; } |
| 22046 |
if test ${rb_cv_pri_prefix_size_t+y} |
| 22047 |
then : |
| 22048 |
printf %s "(cached) " >&6 |
| 22049 |
else $as_nop |
| 22050 |
|
| 22051 |
rb_cv_pri_prefix_size_t=NONE |
| 22052 |
save_CFLAGS="$CFLAGS" |
| 22053 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 22054 |
if test "${ac_c_werror_flag+set}" |
| 22055 |
then : |
| 22056 |
|
| 22057 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 22058 |
|
| 22059 |
else $as_nop |
| 22060 |
|
| 22061 |
unset rb_c_werror_flag |
| 22062 |
|
| 22063 |
fi |
| 22064 |
ac_c_werror_flag=yes |
| 22065 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 22066 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 22067 |
case " ${CFLAGS-} " in #( |
| 22068 |
*" ${rb_opt} "*) : |
| 22069 |
;; #( |
| 22070 |
' ') : |
| 22071 |
CFLAGS="${rb_opt}" ;; #( |
| 22072 |
*) : |
| 22073 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 22074 |
esac |
| 22075 |
done |
| 22076 |
for pri in z; do |
| 22077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22078 |
/* end confdefs.h. */ |
| 22079 |
#include <stdio.h> |
| 22080 |
#include <stddef.h> |
| 22081 |
#ifdef __GNUC__ |
| 22082 |
#if defined __MINGW_PRINTF_FORMAT |
| 22083 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 22084 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 22085 |
#else |
| 22086 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 22087 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 22088 |
#endif |
| 22089 |
#else |
| 22090 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 22091 |
#endif |
| 22092 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 22093 |
int |
| 22094 |
main (void) |
| 22095 |
{ |
| 22096 |
printf("%${pri}d", (size_t)42); |
| 22097 |
test_sprintf("%${pri}d", (size_t)42); |
| 22098 |
; |
| 22099 |
return 0; |
| 22100 |
} |
| 22101 |
_ACEOF |
| 22102 |
if ac_fn_c_try_compile "$LINENO" |
| 22103 |
then : |
| 22104 |
rb_cv_pri_prefix_size_t=$pri; break |
| 22105 |
fi |
| 22106 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22107 |
done |
| 22108 |
CFLAGS="$save_CFLAGS" |
| 22109 |
save_CFLAGS= |
| 22110 |
if test "${rb_c_werror_flag+set}" |
| 22111 |
then : |
| 22112 |
|
| 22113 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 22114 |
|
| 22115 |
else $as_nop |
| 22116 |
|
| 22117 |
unset ac_c_werror_flag |
| 22118 |
|
| 22119 |
fi |
| 22120 |
fi |
| 22121 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_size_t" >&5 |
| 22122 |
colorize_result "$rb_cv_pri_prefix_size_t" ; } |
| 22123 |
if test "$rb_cv_pri_prefix_size_t" != NONE |
| 22124 |
then : |
| 22125 |
|
| 22126 |
printf "%s\n" "#define PRI_SIZE_PREFIX \"$rb_cv_pri_prefix_size_t\"" >>confdefs.h |
| 22127 |
|
| 22128 |
|
| 22129 |
fi |
| 22130 |
|
| 22131 |
|
| 22132 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for ptrdiff_t" >&5 |
| 22133 |
printf %s "checking for printf prefix for ptrdiff_t... " >&6; } |
| 22134 |
if test ${rb_cv_pri_prefix_ptrdiff_t+y} |
| 22135 |
then : |
| 22136 |
printf %s "(cached) " >&6 |
| 22137 |
else $as_nop |
| 22138 |
|
| 22139 |
rb_cv_pri_prefix_ptrdiff_t=NONE |
| 22140 |
save_CFLAGS="$CFLAGS" |
| 22141 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 22142 |
if test "${ac_c_werror_flag+set}" |
| 22143 |
then : |
| 22144 |
|
| 22145 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 22146 |
|
| 22147 |
else $as_nop |
| 22148 |
|
| 22149 |
unset rb_c_werror_flag |
| 22150 |
|
| 22151 |
fi |
| 22152 |
ac_c_werror_flag=yes |
| 22153 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 22154 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 22155 |
case " ${CFLAGS-} " in #( |
| 22156 |
*" ${rb_opt} "*) : |
| 22157 |
;; #( |
| 22158 |
' ') : |
| 22159 |
CFLAGS="${rb_opt}" ;; #( |
| 22160 |
*) : |
| 22161 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 22162 |
esac |
| 22163 |
done |
| 22164 |
for pri in t; do |
| 22165 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22166 |
/* end confdefs.h. */ |
| 22167 |
#include <stdio.h> |
| 22168 |
#include <stddef.h> |
| 22169 |
#ifdef __GNUC__ |
| 22170 |
#if defined __MINGW_PRINTF_FORMAT |
| 22171 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 22172 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 22173 |
#else |
| 22174 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 22175 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 22176 |
#endif |
| 22177 |
#else |
| 22178 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 22179 |
#endif |
| 22180 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 22181 |
int |
| 22182 |
main (void) |
| 22183 |
{ |
| 22184 |
printf("%${pri}d", (ptrdiff_t)42); |
| 22185 |
test_sprintf("%${pri}d", (ptrdiff_t)42); |
| 22186 |
; |
| 22187 |
return 0; |
| 22188 |
} |
| 22189 |
_ACEOF |
| 22190 |
if ac_fn_c_try_compile "$LINENO" |
| 22191 |
then : |
| 22192 |
rb_cv_pri_prefix_ptrdiff_t=$pri; break |
| 22193 |
fi |
| 22194 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22195 |
done |
| 22196 |
CFLAGS="$save_CFLAGS" |
| 22197 |
save_CFLAGS= |
| 22198 |
if test "${rb_c_werror_flag+set}" |
| 22199 |
then : |
| 22200 |
|
| 22201 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 22202 |
|
| 22203 |
else $as_nop |
| 22204 |
|
| 22205 |
unset ac_c_werror_flag |
| 22206 |
|
| 22207 |
fi |
| 22208 |
fi |
| 22209 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_ptrdiff_t" >&5 |
| 22210 |
colorize_result "$rb_cv_pri_prefix_ptrdiff_t" ; } |
| 22211 |
if test "$rb_cv_pri_prefix_ptrdiff_t" != NONE |
| 22212 |
then : |
| 22213 |
|
| 22214 |
printf "%s\n" "#define PRI_PTRDIFF_PREFIX \"$rb_cv_pri_prefix_ptrdiff_t\"" >>confdefs.h |
| 22215 |
|
| 22216 |
|
| 22217 |
fi |
| 22218 |
|
| 22219 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" |
| 22220 |
if test "x$ac_cv_member_struct_stat_st_blksize" = xyes |
| 22221 |
then : |
| 22222 |
|
| 22223 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h |
| 22224 |
|
| 22225 |
|
| 22226 |
fi |
| 22227 |
|
| 22228 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" |
| 22229 |
if test "x$ac_cv_member_struct_stat_st_blocks" = xyes |
| 22230 |
then : |
| 22231 |
|
| 22232 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h |
| 22233 |
|
| 22234 |
|
| 22235 |
fi |
| 22236 |
|
| 22237 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" |
| 22238 |
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes |
| 22239 |
then : |
| 22240 |
|
| 22241 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h |
| 22242 |
|
| 22243 |
|
| 22244 |
fi |
| 22245 |
|
| 22246 |
|
| 22247 |
|
| 22248 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_size" >&5 |
| 22249 |
printf %s "checking size of struct stat.st_size... " >&6; } |
| 22250 |
if test ${ac_cv_sizeof_struct_stat_st_size+y} |
| 22251 |
then : |
| 22252 |
printf %s "(cached) " >&6 |
| 22253 |
else $as_nop |
| 22254 |
|
| 22255 |
unset ac_cv_sizeof_struct_stat_st_size |
| 22256 |
rbcv_sizeof_var=" |
| 22257 |
typedef struct stat ac__type_sizeof_; |
| 22258 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22259 |
#define SIZEOF_STRUCT_STAT_ST_SIZE sizeof((*rbcv_ptr).st_size) |
| 22260 |
" |
| 22261 |
test -z "${ac_cv_sizeof_struct_stat_st_size+set}" && { |
| 22262 |
for rbcv_sizeof_type in off_t int long "long long"; do |
| 22263 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22264 |
/* end confdefs.h. */ |
| 22265 |
#include <sys/stat.h> |
| 22266 |
$rbcv_sizeof_var |
| 22267 |
|
| 22268 |
int |
| 22269 |
main (void) |
| 22270 |
{ |
| 22271 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_SIZE == sizeof($rbcv_sizeof_type))]; |
| 22272 |
test_array [0] = 0; |
| 22273 |
return test_array [0]; |
| 22274 |
|
| 22275 |
; |
| 22276 |
return 0; |
| 22277 |
} |
| 22278 |
_ACEOF |
| 22279 |
if ac_fn_c_try_compile "$LINENO" |
| 22280 |
then : |
| 22281 |
|
| 22282 |
ac_cv_sizeof_struct_stat_st_size=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22283 |
break |
| 22284 |
fi |
| 22285 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22286 |
done |
| 22287 |
} |
| 22288 |
unset rbcv_sizeof_cond |
| 22289 |
|
| 22290 |
test "${ac_cv_sizeof_struct_stat_st_size#[1-9]}" = "${ac_cv_sizeof_struct_stat_st_size}" && |
| 22291 |
test "${ac_cv_sizeof_struct_stat_st_size#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_size}" && { |
| 22292 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22293 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_SIZE" "rbcv_sizeof_type" "#include <sys/stat.h> |
| 22294 |
|
| 22295 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22296 |
#else} |
| 22297 |
$rbcv_sizeof_var |
| 22298 |
${rbcv_sizeof_cond+#endif} |
| 22299 |
#ifndef SIZEOF_STRUCT_STAT_ST_SIZE |
| 22300 |
#define SIZEOF_STRUCT_STAT_ST_SIZE 0 |
| 22301 |
#endif" |
| 22302 |
then : |
| 22303 |
|
| 22304 |
else $as_nop |
| 22305 |
rbcv_sizeof_type=0 |
| 22306 |
fi |
| 22307 |
|
| 22308 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22309 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22310 |
then : |
| 22311 |
|
| 22312 |
ac_cv_sizeof_struct_stat_st_size="${ac_cv_sizeof_struct_stat_st_size+${ac_cv_sizeof_struct_stat_st_size-} }${rbcv_sizeof_type}" |
| 22313 |
|
| 22314 |
fi |
| 22315 |
} |
| 22316 |
: ${ac_cv_sizeof_struct_stat_st_size=0} |
| 22317 |
|
| 22318 |
fi |
| 22319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_size" >&5 |
| 22320 |
colorize_result "$ac_cv_sizeof_struct_stat_st_size" ; } |
| 22321 |
{ |
| 22322 |
unset rbcv_sizeof_cond |
| 22323 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_stat_st_size-}; do |
| 22324 |
case "$rbcv_sizeof_type" in #( |
| 22325 |
[0-9]*|SIZEOF_*) : |
| 22326 |
|
| 22327 |
${rbcv_sizeof_cond+echo "#else"} |
| 22328 |
echo "#define SIZEOF_STRUCT_STAT_ST_SIZE $rbcv_sizeof_type" |
| 22329 |
break |
| 22330 |
;; #( |
| 22331 |
*) : |
| 22332 |
|
| 22333 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22334 |
case $rbcv_sizeof_type in #( |
| 22335 |
*:*) : |
| 22336 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22337 |
*) : |
| 22338 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 22339 |
esac |
| 22340 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22341 |
echo "#define SIZEOF_STRUCT_STAT_ST_SIZE $rbcv_sizeof_size" |
| 22342 |
rbcv_sizeof_cond=1 |
| 22343 |
;; |
| 22344 |
esac |
| 22345 |
done |
| 22346 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22347 |
} >> confdefs.h |
| 22348 |
|
| 22349 |
|
| 22350 |
if test "$ac_cv_member_struct_stat_st_blocks" = yes |
| 22351 |
then : |
| 22352 |
|
| 22353 |
|
| 22354 |
|
| 22355 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_blocks" >&5 |
| 22356 |
printf %s "checking size of struct stat.st_blocks... " >&6; } |
| 22357 |
if test ${ac_cv_sizeof_struct_stat_st_blocks+y} |
| 22358 |
then : |
| 22359 |
printf %s "(cached) " >&6 |
| 22360 |
else $as_nop |
| 22361 |
|
| 22362 |
unset ac_cv_sizeof_struct_stat_st_blocks |
| 22363 |
rbcv_sizeof_var=" |
| 22364 |
typedef struct stat ac__type_sizeof_; |
| 22365 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22366 |
#define SIZEOF_STRUCT_STAT_ST_BLOCKS sizeof((*rbcv_ptr).st_blocks) |
| 22367 |
" |
| 22368 |
test -z "${ac_cv_sizeof_struct_stat_st_blocks+set}" && { |
| 22369 |
for rbcv_sizeof_type in off_t int long "long long"; do |
| 22370 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22371 |
/* end confdefs.h. */ |
| 22372 |
#include <sys/stat.h> |
| 22373 |
$rbcv_sizeof_var |
| 22374 |
|
| 22375 |
int |
| 22376 |
main (void) |
| 22377 |
{ |
| 22378 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_BLOCKS == sizeof($rbcv_sizeof_type))]; |
| 22379 |
test_array [0] = 0; |
| 22380 |
return test_array [0]; |
| 22381 |
|
| 22382 |
; |
| 22383 |
return 0; |
| 22384 |
} |
| 22385 |
_ACEOF |
| 22386 |
if ac_fn_c_try_compile "$LINENO" |
| 22387 |
then : |
| 22388 |
|
| 22389 |
ac_cv_sizeof_struct_stat_st_blocks=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22390 |
break |
| 22391 |
fi |
| 22392 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22393 |
done |
| 22394 |
} |
| 22395 |
unset rbcv_sizeof_cond |
| 22396 |
|
| 22397 |
test "${ac_cv_sizeof_struct_stat_st_blocks#[1-9]}" = "${ac_cv_sizeof_struct_stat_st_blocks}" && |
| 22398 |
test "${ac_cv_sizeof_struct_stat_st_blocks#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_blocks}" && { |
| 22399 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22400 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_BLOCKS" "rbcv_sizeof_type" "#include <sys/stat.h> |
| 22401 |
|
| 22402 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22403 |
#else} |
| 22404 |
$rbcv_sizeof_var |
| 22405 |
${rbcv_sizeof_cond+#endif} |
| 22406 |
#ifndef SIZEOF_STRUCT_STAT_ST_BLOCKS |
| 22407 |
#define SIZEOF_STRUCT_STAT_ST_BLOCKS 0 |
| 22408 |
#endif" |
| 22409 |
then : |
| 22410 |
|
| 22411 |
else $as_nop |
| 22412 |
rbcv_sizeof_type=0 |
| 22413 |
fi |
| 22414 |
|
| 22415 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22416 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22417 |
then : |
| 22418 |
|
| 22419 |
ac_cv_sizeof_struct_stat_st_blocks="${ac_cv_sizeof_struct_stat_st_blocks+${ac_cv_sizeof_struct_stat_st_blocks-} }${rbcv_sizeof_type}" |
| 22420 |
|
| 22421 |
fi |
| 22422 |
} |
| 22423 |
: ${ac_cv_sizeof_struct_stat_st_blocks=0} |
| 22424 |
|
| 22425 |
fi |
| 22426 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_blocks" >&5 |
| 22427 |
colorize_result "$ac_cv_sizeof_struct_stat_st_blocks" ; } |
| 22428 |
{ |
| 22429 |
unset rbcv_sizeof_cond |
| 22430 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_stat_st_blocks-}; do |
| 22431 |
case "$rbcv_sizeof_type" in #( |
| 22432 |
[0-9]*|SIZEOF_*) : |
| 22433 |
|
| 22434 |
${rbcv_sizeof_cond+echo "#else"} |
| 22435 |
echo "#define SIZEOF_STRUCT_STAT_ST_BLOCKS $rbcv_sizeof_type" |
| 22436 |
break |
| 22437 |
;; #( |
| 22438 |
*) : |
| 22439 |
|
| 22440 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22441 |
case $rbcv_sizeof_type in #( |
| 22442 |
*:*) : |
| 22443 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22444 |
*) : |
| 22445 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 22446 |
esac |
| 22447 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22448 |
echo "#define SIZEOF_STRUCT_STAT_ST_BLOCKS $rbcv_sizeof_size" |
| 22449 |
rbcv_sizeof_cond=1 |
| 22450 |
;; |
| 22451 |
esac |
| 22452 |
done |
| 22453 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22454 |
} >> confdefs.h |
| 22455 |
|
| 22456 |
|
| 22457 |
|
| 22458 |
fi |
| 22459 |
|
| 22460 |
|
| 22461 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_ino" >&5 |
| 22462 |
printf %s "checking size of struct stat.st_ino... " >&6; } |
| 22463 |
if test ${ac_cv_sizeof_struct_stat_st_ino+y} |
| 22464 |
then : |
| 22465 |
printf %s "(cached) " >&6 |
| 22466 |
else $as_nop |
| 22467 |
|
| 22468 |
unset ac_cv_sizeof_struct_stat_st_ino |
| 22469 |
rbcv_sizeof_var=" |
| 22470 |
typedef struct stat ac__type_sizeof_; |
| 22471 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22472 |
#define SIZEOF_STRUCT_STAT_ST_INO sizeof((*rbcv_ptr).st_ino) |
| 22473 |
" |
| 22474 |
test -z "${ac_cv_sizeof_struct_stat_st_ino+set}" && { |
| 22475 |
for rbcv_sizeof_type in long "long long"; do |
| 22476 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22477 |
/* end confdefs.h. */ |
| 22478 |
#include <sys/stat.h> |
| 22479 |
$rbcv_sizeof_var |
| 22480 |
|
| 22481 |
int |
| 22482 |
main (void) |
| 22483 |
{ |
| 22484 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_INO == sizeof($rbcv_sizeof_type))]; |
| 22485 |
test_array [0] = 0; |
| 22486 |
return test_array [0]; |
| 22487 |
|
| 22488 |
; |
| 22489 |
return 0; |
| 22490 |
} |
| 22491 |
_ACEOF |
| 22492 |
if ac_fn_c_try_compile "$LINENO" |
| 22493 |
then : |
| 22494 |
|
| 22495 |
ac_cv_sizeof_struct_stat_st_ino=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22496 |
break |
| 22497 |
fi |
| 22498 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22499 |
done |
| 22500 |
} |
| 22501 |
unset rbcv_sizeof_cond |
| 22502 |
|
| 22503 |
test "${ac_cv_sizeof_struct_stat_st_ino#[1-9]}" = "${ac_cv_sizeof_struct_stat_st_ino}" && |
| 22504 |
test "${ac_cv_sizeof_struct_stat_st_ino#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_ino}" && { |
| 22505 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22506 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_INO" "rbcv_sizeof_type" "#include <sys/stat.h> |
| 22507 |
|
| 22508 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22509 |
#else} |
| 22510 |
$rbcv_sizeof_var |
| 22511 |
${rbcv_sizeof_cond+#endif} |
| 22512 |
#ifndef SIZEOF_STRUCT_STAT_ST_INO |
| 22513 |
#define SIZEOF_STRUCT_STAT_ST_INO 0 |
| 22514 |
#endif" |
| 22515 |
then : |
| 22516 |
|
| 22517 |
else $as_nop |
| 22518 |
rbcv_sizeof_type=0 |
| 22519 |
fi |
| 22520 |
|
| 22521 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22522 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22523 |
then : |
| 22524 |
|
| 22525 |
ac_cv_sizeof_struct_stat_st_ino="${ac_cv_sizeof_struct_stat_st_ino+${ac_cv_sizeof_struct_stat_st_ino-} }${rbcv_sizeof_type}" |
| 22526 |
|
| 22527 |
fi |
| 22528 |
} |
| 22529 |
: ${ac_cv_sizeof_struct_stat_st_ino=0} |
| 22530 |
|
| 22531 |
fi |
| 22532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_ino" >&5 |
| 22533 |
colorize_result "$ac_cv_sizeof_struct_stat_st_ino" ; } |
| 22534 |
{ |
| 22535 |
unset rbcv_sizeof_cond |
| 22536 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_stat_st_ino-}; do |
| 22537 |
case "$rbcv_sizeof_type" in #( |
| 22538 |
[0-9]*|SIZEOF_*) : |
| 22539 |
|
| 22540 |
${rbcv_sizeof_cond+echo "#else"} |
| 22541 |
echo "#define SIZEOF_STRUCT_STAT_ST_INO $rbcv_sizeof_type" |
| 22542 |
break |
| 22543 |
;; #( |
| 22544 |
*) : |
| 22545 |
|
| 22546 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22547 |
case $rbcv_sizeof_type in #( |
| 22548 |
*:*) : |
| 22549 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22550 |
*) : |
| 22551 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 22552 |
esac |
| 22553 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22554 |
echo "#define SIZEOF_STRUCT_STAT_ST_INO $rbcv_sizeof_size" |
| 22555 |
rbcv_sizeof_cond=1 |
| 22556 |
;; |
| 22557 |
esac |
| 22558 |
done |
| 22559 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22560 |
} >> confdefs.h |
| 22561 |
|
| 22562 |
|
| 22563 |
|
| 22564 |
|
| 22565 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_dev" >&5 |
| 22566 |
printf %s "checking size of struct stat.st_dev... " >&6; } |
| 22567 |
if test ${ac_cv_sizeof_struct_stat_st_dev+y} |
| 22568 |
then : |
| 22569 |
printf %s "(cached) " >&6 |
| 22570 |
else $as_nop |
| 22571 |
|
| 22572 |
unset ac_cv_sizeof_struct_stat_st_dev |
| 22573 |
rbcv_sizeof_var=" |
| 22574 |
typedef struct stat ac__type_sizeof_; |
| 22575 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22576 |
#define SIZEOF_STRUCT_STAT_ST_DEV sizeof((*rbcv_ptr).st_dev) |
| 22577 |
" |
| 22578 |
test -z "${ac_cv_sizeof_struct_stat_st_dev+set}" && { |
| 22579 |
for rbcv_sizeof_type in dev_t int long "long long"; do |
| 22580 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22581 |
/* end confdefs.h. */ |
| 22582 |
#include <sys/stat.h> |
| 22583 |
$rbcv_sizeof_var |
| 22584 |
|
| 22585 |
int |
| 22586 |
main (void) |
| 22587 |
{ |
| 22588 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_DEV == sizeof($rbcv_sizeof_type))]; |
| 22589 |
test_array [0] = 0; |
| 22590 |
return test_array [0]; |
| 22591 |
|
| 22592 |
; |
| 22593 |
return 0; |
| 22594 |
} |
| 22595 |
_ACEOF |
| 22596 |
if ac_fn_c_try_compile "$LINENO" |
| 22597 |
then : |
| 22598 |
|
| 22599 |
ac_cv_sizeof_struct_stat_st_dev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22600 |
break |
| 22601 |
fi |
| 22602 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22603 |
done |
| 22604 |
} |
| 22605 |
unset rbcv_sizeof_cond |
| 22606 |
|
| 22607 |
test "${ac_cv_sizeof_struct_stat_st_dev#[1-9]}" = "${ac_cv_sizeof_struct_stat_st_dev}" && |
| 22608 |
test "${ac_cv_sizeof_struct_stat_st_dev#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_dev}" && { |
| 22609 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22610 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_DEV" "rbcv_sizeof_type" "#include <sys/stat.h> |
| 22611 |
|
| 22612 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22613 |
#else} |
| 22614 |
$rbcv_sizeof_var |
| 22615 |
${rbcv_sizeof_cond+#endif} |
| 22616 |
#ifndef SIZEOF_STRUCT_STAT_ST_DEV |
| 22617 |
#define SIZEOF_STRUCT_STAT_ST_DEV 0 |
| 22618 |
#endif" |
| 22619 |
then : |
| 22620 |
|
| 22621 |
else $as_nop |
| 22622 |
rbcv_sizeof_type=0 |
| 22623 |
fi |
| 22624 |
|
| 22625 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22626 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22627 |
then : |
| 22628 |
|
| 22629 |
ac_cv_sizeof_struct_stat_st_dev="${ac_cv_sizeof_struct_stat_st_dev+${ac_cv_sizeof_struct_stat_st_dev-} }${rbcv_sizeof_type}" |
| 22630 |
|
| 22631 |
fi |
| 22632 |
} |
| 22633 |
: ${ac_cv_sizeof_struct_stat_st_dev=0} |
| 22634 |
|
| 22635 |
fi |
| 22636 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_dev" >&5 |
| 22637 |
colorize_result "$ac_cv_sizeof_struct_stat_st_dev" ; } |
| 22638 |
{ |
| 22639 |
unset rbcv_sizeof_cond |
| 22640 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_stat_st_dev-}; do |
| 22641 |
case "$rbcv_sizeof_type" in #( |
| 22642 |
[0-9]*|SIZEOF_*) : |
| 22643 |
|
| 22644 |
${rbcv_sizeof_cond+echo "#else"} |
| 22645 |
echo "#define SIZEOF_STRUCT_STAT_ST_DEV $rbcv_sizeof_type" |
| 22646 |
break |
| 22647 |
;; #( |
| 22648 |
*) : |
| 22649 |
|
| 22650 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22651 |
case $rbcv_sizeof_type in #( |
| 22652 |
*:*) : |
| 22653 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22654 |
*) : |
| 22655 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 22656 |
esac |
| 22657 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22658 |
echo "#define SIZEOF_STRUCT_STAT_ST_DEV $rbcv_sizeof_size" |
| 22659 |
rbcv_sizeof_cond=1 |
| 22660 |
;; |
| 22661 |
esac |
| 22662 |
done |
| 22663 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22664 |
} >> confdefs.h |
| 22665 |
|
| 22666 |
|
| 22667 |
if test "$ac_cv_member_struct_stat_st_rdev" = yes |
| 22668 |
then : |
| 22669 |
|
| 22670 |
|
| 22671 |
|
| 22672 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct stat.st_rdev" >&5 |
| 22673 |
printf %s "checking size of struct stat.st_rdev... " >&6; } |
| 22674 |
if test ${ac_cv_sizeof_struct_stat_st_rdev+y} |
| 22675 |
then : |
| 22676 |
printf %s "(cached) " >&6 |
| 22677 |
else $as_nop |
| 22678 |
|
| 22679 |
unset ac_cv_sizeof_struct_stat_st_rdev |
| 22680 |
rbcv_sizeof_var=" |
| 22681 |
typedef struct stat ac__type_sizeof_; |
| 22682 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22683 |
#define SIZEOF_STRUCT_STAT_ST_RDEV sizeof((*rbcv_ptr).st_rdev) |
| 22684 |
" |
| 22685 |
test -z "${ac_cv_sizeof_struct_stat_st_rdev+set}" && { |
| 22686 |
for rbcv_sizeof_type in dev_t int long "long long"; do |
| 22687 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22688 |
/* end confdefs.h. */ |
| 22689 |
#include <sys/stat.h> |
| 22690 |
$rbcv_sizeof_var |
| 22691 |
|
| 22692 |
int |
| 22693 |
main (void) |
| 22694 |
{ |
| 22695 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_STAT_ST_RDEV == sizeof($rbcv_sizeof_type))]; |
| 22696 |
test_array [0] = 0; |
| 22697 |
return test_array [0]; |
| 22698 |
|
| 22699 |
; |
| 22700 |
return 0; |
| 22701 |
} |
| 22702 |
_ACEOF |
| 22703 |
if ac_fn_c_try_compile "$LINENO" |
| 22704 |
then : |
| 22705 |
|
| 22706 |
ac_cv_sizeof_struct_stat_st_rdev=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22707 |
break |
| 22708 |
fi |
| 22709 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22710 |
done |
| 22711 |
} |
| 22712 |
unset rbcv_sizeof_cond |
| 22713 |
|
| 22714 |
test "${ac_cv_sizeof_struct_stat_st_rdev#[1-9]}" = "${ac_cv_sizeof_struct_stat_st_rdev}" && |
| 22715 |
test "${ac_cv_sizeof_struct_stat_st_rdev#SIZEOF_}" = "${ac_cv_sizeof_struct_stat_st_rdev}" && { |
| 22716 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22717 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_STAT_ST_RDEV" "rbcv_sizeof_type" "#include <sys/stat.h> |
| 22718 |
|
| 22719 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22720 |
#else} |
| 22721 |
$rbcv_sizeof_var |
| 22722 |
${rbcv_sizeof_cond+#endif} |
| 22723 |
#ifndef SIZEOF_STRUCT_STAT_ST_RDEV |
| 22724 |
#define SIZEOF_STRUCT_STAT_ST_RDEV 0 |
| 22725 |
#endif" |
| 22726 |
then : |
| 22727 |
|
| 22728 |
else $as_nop |
| 22729 |
rbcv_sizeof_type=0 |
| 22730 |
fi |
| 22731 |
|
| 22732 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22733 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22734 |
then : |
| 22735 |
|
| 22736 |
ac_cv_sizeof_struct_stat_st_rdev="${ac_cv_sizeof_struct_stat_st_rdev+${ac_cv_sizeof_struct_stat_st_rdev-} }${rbcv_sizeof_type}" |
| 22737 |
|
| 22738 |
fi |
| 22739 |
} |
| 22740 |
: ${ac_cv_sizeof_struct_stat_st_rdev=0} |
| 22741 |
|
| 22742 |
fi |
| 22743 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_stat_st_rdev" >&5 |
| 22744 |
colorize_result "$ac_cv_sizeof_struct_stat_st_rdev" ; } |
| 22745 |
{ |
| 22746 |
unset rbcv_sizeof_cond |
| 22747 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_stat_st_rdev-}; do |
| 22748 |
case "$rbcv_sizeof_type" in #( |
| 22749 |
[0-9]*|SIZEOF_*) : |
| 22750 |
|
| 22751 |
${rbcv_sizeof_cond+echo "#else"} |
| 22752 |
echo "#define SIZEOF_STRUCT_STAT_ST_RDEV $rbcv_sizeof_type" |
| 22753 |
break |
| 22754 |
;; #( |
| 22755 |
*) : |
| 22756 |
|
| 22757 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22758 |
case $rbcv_sizeof_type in #( |
| 22759 |
*:*) : |
| 22760 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22761 |
*) : |
| 22762 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 22763 |
esac |
| 22764 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 22765 |
echo "#define SIZEOF_STRUCT_STAT_ST_RDEV $rbcv_sizeof_size" |
| 22766 |
rbcv_sizeof_cond=1 |
| 22767 |
;; |
| 22768 |
esac |
| 22769 |
done |
| 22770 |
${rbcv_sizeof_cond+echo "#endif"} |
| 22771 |
} >> confdefs.h |
| 22772 |
|
| 22773 |
|
| 22774 |
|
| 22775 |
fi |
| 22776 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" |
| 22777 |
if test "x$ac_cv_member_struct_stat_st_atim" = xyes |
| 22778 |
then : |
| 22779 |
|
| 22780 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h |
| 22781 |
|
| 22782 |
|
| 22783 |
fi |
| 22784 |
|
| 22785 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec" "ac_cv_member_struct_stat_st_atimespec" "$ac_includes_default" |
| 22786 |
if test "x$ac_cv_member_struct_stat_st_atimespec" = xyes |
| 22787 |
then : |
| 22788 |
|
| 22789 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC 1" >>confdefs.h |
| 22790 |
|
| 22791 |
|
| 22792 |
fi |
| 22793 |
|
| 22794 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default" |
| 22795 |
if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes |
| 22796 |
then : |
| 22797 |
|
| 22798 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h |
| 22799 |
|
| 22800 |
|
| 22801 |
fi |
| 22802 |
|
| 22803 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" |
| 22804 |
if test "x$ac_cv_member_struct_stat_st_mtim" = xyes |
| 22805 |
then : |
| 22806 |
|
| 22807 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h |
| 22808 |
|
| 22809 |
|
| 22810 |
fi |
| 22811 |
|
| 22812 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" |
| 22813 |
if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes |
| 22814 |
then : |
| 22815 |
|
| 22816 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h |
| 22817 |
|
| 22818 |
|
| 22819 |
fi |
| 22820 |
|
| 22821 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" |
| 22822 |
if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes |
| 22823 |
then : |
| 22824 |
|
| 22825 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h |
| 22826 |
|
| 22827 |
|
| 22828 |
fi |
| 22829 |
|
| 22830 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default" |
| 22831 |
if test "x$ac_cv_member_struct_stat_st_ctim" = xyes |
| 22832 |
then : |
| 22833 |
|
| 22834 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIM 1" >>confdefs.h |
| 22835 |
|
| 22836 |
|
| 22837 |
fi |
| 22838 |
|
| 22839 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimespec" "ac_cv_member_struct_stat_st_ctimespec" "$ac_includes_default" |
| 22840 |
if test "x$ac_cv_member_struct_stat_st_ctimespec" = xyes |
| 22841 |
then : |
| 22842 |
|
| 22843 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIMESPEC 1" >>confdefs.h |
| 22844 |
|
| 22845 |
|
| 22846 |
fi |
| 22847 |
|
| 22848 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default" |
| 22849 |
if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes |
| 22850 |
then : |
| 22851 |
|
| 22852 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_CTIMENSEC 1" >>confdefs.h |
| 22853 |
|
| 22854 |
|
| 22855 |
fi |
| 22856 |
|
| 22857 |
ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec" "ac_cv_member_struct_stat_st_birthtimespec" "$ac_includes_default" |
| 22858 |
if test "x$ac_cv_member_struct_stat_st_birthtimespec" = xyes |
| 22859 |
then : |
| 22860 |
|
| 22861 |
printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC 1" >>confdefs.h |
| 22862 |
|
| 22863 |
|
| 22864 |
fi |
| 22865 |
|
| 22866 |
if test "x$ac_cv_member_struct_stat_st_birthtimespec" != xyes |
| 22867 |
then : |
| 22868 |
ac_fn_c_check_member "$LINENO" "struct statx" "stx_btime" "ac_cv_member_struct_statx_stx_btime" "$ac_includes_default" |
| 22869 |
if test "x$ac_cv_member_struct_statx_stx_btime" = xyes |
| 22870 |
then : |
| 22871 |
|
| 22872 |
printf "%s\n" "#define HAVE_STRUCT_STATX_STX_BTIME 1" >>confdefs.h |
| 22873 |
|
| 22874 |
|
| 22875 |
fi |
| 22876 |
|
| 22877 |
fi |
| 22878 |
|
| 22879 |
ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "#ifdef HAVE_TIME_H |
| 22880 |
#include <time.h> |
| 22881 |
#endif |
| 22882 |
#ifdef HAVE_SYS_TIME_H |
| 22883 |
#include <sys/time.h> |
| 22884 |
#endif |
| 22885 |
" |
| 22886 |
if test "x$ac_cv_type_struct_timeval" = xyes |
| 22887 |
then : |
| 22888 |
|
| 22889 |
printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h |
| 22890 |
|
| 22891 |
|
| 22892 |
fi |
| 22893 |
|
| 22894 |
|
| 22895 |
if test "${ac_cv_type_struct_timeval}" = yes |
| 22896 |
then : |
| 22897 |
|
| 22898 |
|
| 22899 |
|
| 22900 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of struct timeval.tv_sec" >&5 |
| 22901 |
printf %s "checking size of struct timeval.tv_sec... " >&6; } |
| 22902 |
if test ${ac_cv_sizeof_struct_timeval_tv_sec+y} |
| 22903 |
then : |
| 22904 |
printf %s "(cached) " >&6 |
| 22905 |
else $as_nop |
| 22906 |
|
| 22907 |
unset ac_cv_sizeof_struct_timeval_tv_sec |
| 22908 |
rbcv_sizeof_var=" |
| 22909 |
typedef struct timeval ac__type_sizeof_; |
| 22910 |
static ac__type_sizeof_ *rbcv_ptr; |
| 22911 |
#define SIZEOF_STRUCT_TIMEVAL_TV_SEC sizeof((*rbcv_ptr).tv_sec) |
| 22912 |
" |
| 22913 |
test -z "${ac_cv_sizeof_struct_timeval_tv_sec+set}" && { |
| 22914 |
for rbcv_sizeof_type in time_t long "long long"; do |
| 22915 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22916 |
/* end confdefs.h. */ |
| 22917 |
#ifdef HAVE_TIME_H |
| 22918 |
#include <time.h> |
| 22919 |
#endif |
| 22920 |
#ifdef HAVE_SYS_TIME_H |
| 22921 |
#include <sys/time.h> |
| 22922 |
#endif |
| 22923 |
$rbcv_sizeof_var |
| 22924 |
|
| 22925 |
int |
| 22926 |
main (void) |
| 22927 |
{ |
| 22928 |
static int test_array [1 - 2 * !(SIZEOF_STRUCT_TIMEVAL_TV_SEC == sizeof($rbcv_sizeof_type))]; |
| 22929 |
test_array [0] = 0; |
| 22930 |
return test_array [0]; |
| 22931 |
|
| 22932 |
; |
| 22933 |
return 0; |
| 22934 |
} |
| 22935 |
_ACEOF |
| 22936 |
if ac_fn_c_try_compile "$LINENO" |
| 22937 |
then : |
| 22938 |
|
| 22939 |
ac_cv_sizeof_struct_timeval_tv_sec=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 22940 |
break |
| 22941 |
fi |
| 22942 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22943 |
done |
| 22944 |
} |
| 22945 |
unset rbcv_sizeof_cond |
| 22946 |
|
| 22947 |
test "${ac_cv_sizeof_struct_timeval_tv_sec#[1-9]}" = "${ac_cv_sizeof_struct_timeval_tv_sec}" && |
| 22948 |
test "${ac_cv_sizeof_struct_timeval_tv_sec#SIZEOF_}" = "${ac_cv_sizeof_struct_timeval_tv_sec}" && { |
| 22949 |
test "$universal_binary" = yes && cross_compiling=yes |
| 22950 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_STRUCT_TIMEVAL_TV_SEC" "rbcv_sizeof_type" "#ifdef HAVE_TIME_H |
| 22951 |
#include <time.h> |
| 22952 |
#endif |
| 22953 |
#ifdef HAVE_SYS_TIME_H |
| 22954 |
#include <sys/time.h> |
| 22955 |
#endif |
| 22956 |
|
| 22957 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 22958 |
#else} |
| 22959 |
$rbcv_sizeof_var |
| 22960 |
${rbcv_sizeof_cond+#endif} |
| 22961 |
#ifndef SIZEOF_STRUCT_TIMEVAL_TV_SEC |
| 22962 |
#define SIZEOF_STRUCT_TIMEVAL_TV_SEC 0 |
| 22963 |
#endif" |
| 22964 |
then : |
| 22965 |
|
| 22966 |
else $as_nop |
| 22967 |
rbcv_sizeof_type=0 |
| 22968 |
fi |
| 22969 |
|
| 22970 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 22971 |
if test ${rbcv_sizeof_type-0} != 0 |
| 22972 |
then : |
| 22973 |
|
| 22974 |
ac_cv_sizeof_struct_timeval_tv_sec="${ac_cv_sizeof_struct_timeval_tv_sec+${ac_cv_sizeof_struct_timeval_tv_sec-} }${rbcv_sizeof_type}" |
| 22975 |
|
| 22976 |
fi |
| 22977 |
} |
| 22978 |
: ${ac_cv_sizeof_struct_timeval_tv_sec=0} |
| 22979 |
|
| 22980 |
fi |
| 22981 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_struct_timeval_tv_sec" >&5 |
| 22982 |
colorize_result "$ac_cv_sizeof_struct_timeval_tv_sec" ; } |
| 22983 |
{ |
| 22984 |
unset rbcv_sizeof_cond |
| 22985 |
for rbcv_sizeof_type in ${ac_cv_sizeof_struct_timeval_tv_sec-}; do |
| 22986 |
case "$rbcv_sizeof_type" in #( |
| 22987 |
[0-9]*|SIZEOF_*) : |
| 22988 |
|
| 22989 |
${rbcv_sizeof_cond+echo "#else"} |
| 22990 |
echo "#define SIZEOF_STRUCT_TIMEVAL_TV_SEC $rbcv_sizeof_type" |
| 22991 |
break |
| 22992 |
;; #( |
| 22993 |
*) : |
| 22994 |
|
| 22995 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 22996 |
case $rbcv_sizeof_type in #( |
| 22997 |
*:*) : |
| 22998 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 22999 |
*) : |
| 23000 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 23001 |
esac |
| 23002 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 23003 |
echo "#define SIZEOF_STRUCT_TIMEVAL_TV_SEC $rbcv_sizeof_size" |
| 23004 |
rbcv_sizeof_cond=1 |
| 23005 |
;; |
| 23006 |
esac |
| 23007 |
done |
| 23008 |
${rbcv_sizeof_cond+echo "#endif"} |
| 23009 |
} >> confdefs.h |
| 23010 |
|
| 23011 |
|
| 23012 |
case ${ac_cv_sizeof_struct_timeval_tv_sec} in #( |
| 23013 |
SIZEOF_INT) : |
| 23014 |
t=int ;; #( |
| 23015 |
SIZEOF_LONG) : |
| 23016 |
t=long ;; #( |
| 23017 |
SIZEOF_LONG_LONG) : |
| 23018 |
t=LONG_LONG ;; #( |
| 23019 |
*) : |
| 23020 |
t= ;; |
| 23021 |
esac |
| 23022 |
if test "${t}" != "" |
| 23023 |
then : |
| 23024 |
|
| 23025 |
printf "%s\n" "#define TYPEOF_TIMEVAL_TV_SEC $t" >>confdefs.h |
| 23026 |
|
| 23027 |
|
| 23028 |
fi |
| 23029 |
|
| 23030 |
fi |
| 23031 |
|
| 23032 |
ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#ifdef HAVE_TIME_H |
| 23033 |
#include <time.h> |
| 23034 |
#endif |
| 23035 |
#ifdef HAVE_SYS_TIME_H |
| 23036 |
#include <sys/time.h> |
| 23037 |
#endif |
| 23038 |
" |
| 23039 |
if test "x$ac_cv_type_struct_timespec" = xyes |
| 23040 |
then : |
| 23041 |
|
| 23042 |
printf "%s\n" "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h |
| 23043 |
|
| 23044 |
|
| 23045 |
fi |
| 23046 |
|
| 23047 |
|
| 23048 |
ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "#ifdef HAVE_TIME_H |
| 23049 |
# include <time.h> |
| 23050 |
#endif |
| 23051 |
#ifdef HAVE_SYS_TIME_H |
| 23052 |
# include <sys/time.h> |
| 23053 |
#endif |
| 23054 |
" |
| 23055 |
if test "x$ac_cv_type_struct_timezone" = xyes |
| 23056 |
then : |
| 23057 |
|
| 23058 |
printf "%s\n" "#define HAVE_STRUCT_TIMEZONE 1" >>confdefs.h |
| 23059 |
|
| 23060 |
|
| 23061 |
fi |
| 23062 |
|
| 23063 |
|
| 23064 |
if test ${rb_cv_large_fd_select+y} |
| 23065 |
then : |
| 23066 |
printf %s "(cached) " >&6 |
| 23067 |
else $as_nop |
| 23068 |
ac_fn_c_check_type "$LINENO" "fd_mask" "ac_cv_type_fd_mask" "$ac_includes_default |
| 23069 |
#ifdef HAVE_SYS_SELECT_H |
| 23070 |
# include <sys/select.h> |
| 23071 |
#endif |
| 23072 |
" |
| 23073 |
if test "x$ac_cv_type_fd_mask" = xyes |
| 23074 |
then : |
| 23075 |
rb_cv_large_fd_select=yes |
| 23076 |
else $as_nop |
| 23077 |
rb_cv_large_fd_select=no |
| 23078 |
fi |
| 23079 |
|
| 23080 |
fi |
| 23081 |
|
| 23082 |
if test "$rb_cv_large_fd_select" = yes |
| 23083 |
then : |
| 23084 |
|
| 23085 |
printf "%s\n" "#define HAVE_RB_FD_INIT 1" >>confdefs.h |
| 23086 |
|
| 23087 |
|
| 23088 |
fi |
| 23089 |
|
| 23090 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int8_t" >&5 |
| 23091 |
printf %s "checking for int8_t... " >&6; } |
| 23092 |
if test ${rb_cv_type_int8_t+y} |
| 23093 |
then : |
| 23094 |
printf %s "(cached) " >&6 |
| 23095 |
else $as_nop |
| 23096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23097 |
/* end confdefs.h. */ |
| 23098 |
$ac_includes_default |
| 23099 |
typedef int8_t t; int s = sizeof(t) == 42; |
| 23100 |
int |
| 23101 |
main (void) |
| 23102 |
{ |
| 23103 |
|
| 23104 |
; |
| 23105 |
return 0; |
| 23106 |
} |
| 23107 |
_ACEOF |
| 23108 |
if ac_fn_c_try_compile "$LINENO" |
| 23109 |
then : |
| 23110 |
rb_cv_type_int8_t=yes |
| 23111 |
else $as_nop |
| 23112 |
case 1 in #( |
| 23113 |
"1") : |
| 23114 |
rb_cv_type_int8_t="signed char" ;; #( |
| 23115 |
"$ac_cv_sizeof_short") : |
| 23116 |
rb_cv_type_int8_t="short" ;; #( |
| 23117 |
"$ac_cv_sizeof_int") : |
| 23118 |
rb_cv_type_int8_t="int" ;; #( |
| 23119 |
"$ac_cv_sizeof_long") : |
| 23120 |
rb_cv_type_int8_t="long" ;; #( |
| 23121 |
"$ac_cv_sizeof_long_long") : |
| 23122 |
rb_cv_type_int8_t="long long" ;; #( |
| 23123 |
"${ac_cv_sizeof___int64#*:}") : |
| 23124 |
rb_cv_type_int8_t="__int64" ;; #( |
| 23125 |
"${ac_cv_sizeof___int128#*:}") : |
| 23126 |
rb_cv_type_int8_t="__int128" ;; #( |
| 23127 |
*) : |
| 23128 |
rb_cv_type_int8_t=no ;; |
| 23129 |
esac |
| 23130 |
fi |
| 23131 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23132 |
fi |
| 23133 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int8_t" >&5 |
| 23134 |
colorize_result "$rb_cv_type_int8_t" ; } |
| 23135 |
if test "${rb_cv_type_int8_t}" != no |
| 23136 |
then : |
| 23137 |
|
| 23138 |
rb_defint_type="${rb_cv_type_int8_t##unsigned }" |
| 23139 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23140 |
then : |
| 23141 |
|
| 23142 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23143 |
case $rb_defint_cond in #( |
| 23144 |
*:*) : |
| 23145 |
|
| 23146 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23147 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23148 |
;; #( |
| 23149 |
*) : |
| 23150 |
rb_defint_cond= ;; |
| 23151 |
esac |
| 23152 |
|
| 23153 |
else $as_nop |
| 23154 |
rb_defint_cond= |
| 23155 |
fi |
| 23156 |
printf "%s\n" "#define HAVE_INT8_T 1" >>confdefs.h |
| 23157 |
|
| 23158 |
if test "${rb_cv_type_int8_t}" = yes |
| 23159 |
then : |
| 23160 |
|
| 23161 |
# The cast to long int works around a bug in the HP C Compiler |
| 23162 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23163 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23164 |
# This bug is HP SR number 8606223364. |
| 23165 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int8_t" >&5 |
| 23166 |
printf %s "checking size of int8_t... " >&6; } |
| 23167 |
if test ${ac_cv_sizeof_int8_t+y} |
| 23168 |
then : |
| 23169 |
printf %s "(cached) " >&6 |
| 23170 |
else $as_nop |
| 23171 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int8_t))" "ac_cv_sizeof_int8_t" "$ac_includes_default |
| 23172 |
" |
| 23173 |
then : |
| 23174 |
|
| 23175 |
else $as_nop |
| 23176 |
if test "$ac_cv_type_int8_t" = yes; then |
| 23177 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23178 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23179 |
as_fn_error 77 "cannot compute sizeof (int8_t) |
| 23180 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23181 |
else |
| 23182 |
ac_cv_sizeof_int8_t=0 |
| 23183 |
fi |
| 23184 |
fi |
| 23185 |
|
| 23186 |
fi |
| 23187 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int8_t" >&5 |
| 23188 |
colorize_result "$ac_cv_sizeof_int8_t" ; } |
| 23189 |
|
| 23190 |
|
| 23191 |
|
| 23192 |
printf "%s\n" "#define SIZEOF_INT8_T $ac_cv_sizeof_int8_t" >>confdefs.h |
| 23193 |
|
| 23194 |
|
| 23195 |
|
| 23196 |
else $as_nop |
| 23197 |
|
| 23198 |
printf "%s\n" "#define int8_t $rb_cv_type_int8_t" >>confdefs.h |
| 23199 |
|
| 23200 |
cat >>confdefs.h <<_ACEOF |
| 23201 |
#define SIZEOF_INT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23202 |
_ACEOF |
| 23203 |
|
| 23204 |
|
| 23205 |
fi |
| 23206 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23207 |
|
| 23208 |
fi |
| 23209 |
|
| 23210 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint8_t" >&5 |
| 23211 |
printf %s "checking for uint8_t... " >&6; } |
| 23212 |
if test ${rb_cv_type_uint8_t+y} |
| 23213 |
then : |
| 23214 |
printf %s "(cached) " >&6 |
| 23215 |
else $as_nop |
| 23216 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23217 |
/* end confdefs.h. */ |
| 23218 |
$ac_includes_default |
| 23219 |
typedef uint8_t t; int s = sizeof(t) == 42; |
| 23220 |
int |
| 23221 |
main (void) |
| 23222 |
{ |
| 23223 |
|
| 23224 |
; |
| 23225 |
return 0; |
| 23226 |
} |
| 23227 |
_ACEOF |
| 23228 |
if ac_fn_c_try_compile "$LINENO" |
| 23229 |
then : |
| 23230 |
rb_cv_type_uint8_t=yes |
| 23231 |
else $as_nop |
| 23232 |
case 1 in #( |
| 23233 |
"1") : |
| 23234 |
rb_cv_type_uint8_t="unsigned char" ;; #( |
| 23235 |
"$ac_cv_sizeof_short") : |
| 23236 |
rb_cv_type_uint8_t="unsigned short" ;; #( |
| 23237 |
"$ac_cv_sizeof_int") : |
| 23238 |
rb_cv_type_uint8_t="unsigned int" ;; #( |
| 23239 |
"$ac_cv_sizeof_long") : |
| 23240 |
rb_cv_type_uint8_t="unsigned long" ;; #( |
| 23241 |
"$ac_cv_sizeof_long_long") : |
| 23242 |
rb_cv_type_uint8_t="unsigned long long" ;; #( |
| 23243 |
"${ac_cv_sizeof___int64#*:}") : |
| 23244 |
rb_cv_type_uint8_t="unsigned __int64" ;; #( |
| 23245 |
"${ac_cv_sizeof___int128#*:}") : |
| 23246 |
rb_cv_type_uint8_t="unsigned __int128" ;; #( |
| 23247 |
*) : |
| 23248 |
rb_cv_type_uint8_t=no ;; |
| 23249 |
esac |
| 23250 |
fi |
| 23251 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23252 |
fi |
| 23253 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint8_t" >&5 |
| 23254 |
colorize_result "$rb_cv_type_uint8_t" ; } |
| 23255 |
if test "${rb_cv_type_uint8_t}" != no |
| 23256 |
then : |
| 23257 |
|
| 23258 |
rb_defint_type="${rb_cv_type_uint8_t##unsigned }" |
| 23259 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23260 |
then : |
| 23261 |
|
| 23262 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23263 |
case $rb_defint_cond in #( |
| 23264 |
*:*) : |
| 23265 |
|
| 23266 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23267 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23268 |
;; #( |
| 23269 |
*) : |
| 23270 |
rb_defint_cond= ;; |
| 23271 |
esac |
| 23272 |
|
| 23273 |
else $as_nop |
| 23274 |
rb_defint_cond= |
| 23275 |
fi |
| 23276 |
printf "%s\n" "#define HAVE_UINT8_T 1" >>confdefs.h |
| 23277 |
|
| 23278 |
if test "${rb_cv_type_uint8_t}" = yes |
| 23279 |
then : |
| 23280 |
|
| 23281 |
# The cast to long int works around a bug in the HP C Compiler |
| 23282 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23283 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23284 |
# This bug is HP SR number 8606223364. |
| 23285 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint8_t" >&5 |
| 23286 |
printf %s "checking size of uint8_t... " >&6; } |
| 23287 |
if test ${ac_cv_sizeof_uint8_t+y} |
| 23288 |
then : |
| 23289 |
printf %s "(cached) " >&6 |
| 23290 |
else $as_nop |
| 23291 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint8_t))" "ac_cv_sizeof_uint8_t" "$ac_includes_default |
| 23292 |
" |
| 23293 |
then : |
| 23294 |
|
| 23295 |
else $as_nop |
| 23296 |
if test "$ac_cv_type_uint8_t" = yes; then |
| 23297 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23298 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23299 |
as_fn_error 77 "cannot compute sizeof (uint8_t) |
| 23300 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23301 |
else |
| 23302 |
ac_cv_sizeof_uint8_t=0 |
| 23303 |
fi |
| 23304 |
fi |
| 23305 |
|
| 23306 |
fi |
| 23307 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint8_t" >&5 |
| 23308 |
colorize_result "$ac_cv_sizeof_uint8_t" ; } |
| 23309 |
|
| 23310 |
|
| 23311 |
|
| 23312 |
printf "%s\n" "#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t" >>confdefs.h |
| 23313 |
|
| 23314 |
|
| 23315 |
|
| 23316 |
else $as_nop |
| 23317 |
|
| 23318 |
printf "%s\n" "#define uint8_t $rb_cv_type_uint8_t" >>confdefs.h |
| 23319 |
|
| 23320 |
cat >>confdefs.h <<_ACEOF |
| 23321 |
#define SIZEOF_UINT8_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23322 |
_ACEOF |
| 23323 |
|
| 23324 |
|
| 23325 |
fi |
| 23326 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23327 |
|
| 23328 |
fi |
| 23329 |
|
| 23330 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5 |
| 23331 |
printf %s "checking for int16_t... " >&6; } |
| 23332 |
if test ${rb_cv_type_int16_t+y} |
| 23333 |
then : |
| 23334 |
printf %s "(cached) " >&6 |
| 23335 |
else $as_nop |
| 23336 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23337 |
/* end confdefs.h. */ |
| 23338 |
$ac_includes_default |
| 23339 |
typedef int16_t t; int s = sizeof(t) == 42; |
| 23340 |
int |
| 23341 |
main (void) |
| 23342 |
{ |
| 23343 |
|
| 23344 |
; |
| 23345 |
return 0; |
| 23346 |
} |
| 23347 |
_ACEOF |
| 23348 |
if ac_fn_c_try_compile "$LINENO" |
| 23349 |
then : |
| 23350 |
rb_cv_type_int16_t=yes |
| 23351 |
else $as_nop |
| 23352 |
case 2 in #( |
| 23353 |
"1") : |
| 23354 |
rb_cv_type_int16_t="signed char" ;; #( |
| 23355 |
"$ac_cv_sizeof_short") : |
| 23356 |
rb_cv_type_int16_t="short" ;; #( |
| 23357 |
"$ac_cv_sizeof_int") : |
| 23358 |
rb_cv_type_int16_t="int" ;; #( |
| 23359 |
"$ac_cv_sizeof_long") : |
| 23360 |
rb_cv_type_int16_t="long" ;; #( |
| 23361 |
"$ac_cv_sizeof_long_long") : |
| 23362 |
rb_cv_type_int16_t="long long" ;; #( |
| 23363 |
"${ac_cv_sizeof___int64#*:}") : |
| 23364 |
rb_cv_type_int16_t="__int64" ;; #( |
| 23365 |
"${ac_cv_sizeof___int128#*:}") : |
| 23366 |
rb_cv_type_int16_t="__int128" ;; #( |
| 23367 |
*) : |
| 23368 |
rb_cv_type_int16_t=no ;; |
| 23369 |
esac |
| 23370 |
fi |
| 23371 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23372 |
fi |
| 23373 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int16_t" >&5 |
| 23374 |
colorize_result "$rb_cv_type_int16_t" ; } |
| 23375 |
if test "${rb_cv_type_int16_t}" != no |
| 23376 |
then : |
| 23377 |
|
| 23378 |
rb_defint_type="${rb_cv_type_int16_t##unsigned }" |
| 23379 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23380 |
then : |
| 23381 |
|
| 23382 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23383 |
case $rb_defint_cond in #( |
| 23384 |
*:*) : |
| 23385 |
|
| 23386 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23387 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23388 |
;; #( |
| 23389 |
*) : |
| 23390 |
rb_defint_cond= ;; |
| 23391 |
esac |
| 23392 |
|
| 23393 |
else $as_nop |
| 23394 |
rb_defint_cond= |
| 23395 |
fi |
| 23396 |
printf "%s\n" "#define HAVE_INT16_T 1" >>confdefs.h |
| 23397 |
|
| 23398 |
if test "${rb_cv_type_int16_t}" = yes |
| 23399 |
then : |
| 23400 |
|
| 23401 |
# The cast to long int works around a bug in the HP C Compiler |
| 23402 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23403 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23404 |
# This bug is HP SR number 8606223364. |
| 23405 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int16_t" >&5 |
| 23406 |
printf %s "checking size of int16_t... " >&6; } |
| 23407 |
if test ${ac_cv_sizeof_int16_t+y} |
| 23408 |
then : |
| 23409 |
printf %s "(cached) " >&6 |
| 23410 |
else $as_nop |
| 23411 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int16_t))" "ac_cv_sizeof_int16_t" "$ac_includes_default |
| 23412 |
" |
| 23413 |
then : |
| 23414 |
|
| 23415 |
else $as_nop |
| 23416 |
if test "$ac_cv_type_int16_t" = yes; then |
| 23417 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23418 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23419 |
as_fn_error 77 "cannot compute sizeof (int16_t) |
| 23420 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23421 |
else |
| 23422 |
ac_cv_sizeof_int16_t=0 |
| 23423 |
fi |
| 23424 |
fi |
| 23425 |
|
| 23426 |
fi |
| 23427 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int16_t" >&5 |
| 23428 |
colorize_result "$ac_cv_sizeof_int16_t" ; } |
| 23429 |
|
| 23430 |
|
| 23431 |
|
| 23432 |
printf "%s\n" "#define SIZEOF_INT16_T $ac_cv_sizeof_int16_t" >>confdefs.h |
| 23433 |
|
| 23434 |
|
| 23435 |
|
| 23436 |
else $as_nop |
| 23437 |
|
| 23438 |
printf "%s\n" "#define int16_t $rb_cv_type_int16_t" >>confdefs.h |
| 23439 |
|
| 23440 |
cat >>confdefs.h <<_ACEOF |
| 23441 |
#define SIZEOF_INT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23442 |
_ACEOF |
| 23443 |
|
| 23444 |
|
| 23445 |
fi |
| 23446 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23447 |
|
| 23448 |
fi |
| 23449 |
|
| 23450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5 |
| 23451 |
printf %s "checking for uint16_t... " >&6; } |
| 23452 |
if test ${rb_cv_type_uint16_t+y} |
| 23453 |
then : |
| 23454 |
printf %s "(cached) " >&6 |
| 23455 |
else $as_nop |
| 23456 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23457 |
/* end confdefs.h. */ |
| 23458 |
$ac_includes_default |
| 23459 |
typedef uint16_t t; int s = sizeof(t) == 42; |
| 23460 |
int |
| 23461 |
main (void) |
| 23462 |
{ |
| 23463 |
|
| 23464 |
; |
| 23465 |
return 0; |
| 23466 |
} |
| 23467 |
_ACEOF |
| 23468 |
if ac_fn_c_try_compile "$LINENO" |
| 23469 |
then : |
| 23470 |
rb_cv_type_uint16_t=yes |
| 23471 |
else $as_nop |
| 23472 |
case 2 in #( |
| 23473 |
"1") : |
| 23474 |
rb_cv_type_uint16_t="unsigned char" ;; #( |
| 23475 |
"$ac_cv_sizeof_short") : |
| 23476 |
rb_cv_type_uint16_t="unsigned short" ;; #( |
| 23477 |
"$ac_cv_sizeof_int") : |
| 23478 |
rb_cv_type_uint16_t="unsigned int" ;; #( |
| 23479 |
"$ac_cv_sizeof_long") : |
| 23480 |
rb_cv_type_uint16_t="unsigned long" ;; #( |
| 23481 |
"$ac_cv_sizeof_long_long") : |
| 23482 |
rb_cv_type_uint16_t="unsigned long long" ;; #( |
| 23483 |
"${ac_cv_sizeof___int64#*:}") : |
| 23484 |
rb_cv_type_uint16_t="unsigned __int64" ;; #( |
| 23485 |
"${ac_cv_sizeof___int128#*:}") : |
| 23486 |
rb_cv_type_uint16_t="unsigned __int128" ;; #( |
| 23487 |
*) : |
| 23488 |
rb_cv_type_uint16_t=no ;; |
| 23489 |
esac |
| 23490 |
fi |
| 23491 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23492 |
fi |
| 23493 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint16_t" >&5 |
| 23494 |
colorize_result "$rb_cv_type_uint16_t" ; } |
| 23495 |
if test "${rb_cv_type_uint16_t}" != no |
| 23496 |
then : |
| 23497 |
|
| 23498 |
rb_defint_type="${rb_cv_type_uint16_t##unsigned }" |
| 23499 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23500 |
then : |
| 23501 |
|
| 23502 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23503 |
case $rb_defint_cond in #( |
| 23504 |
*:*) : |
| 23505 |
|
| 23506 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23507 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23508 |
;; #( |
| 23509 |
*) : |
| 23510 |
rb_defint_cond= ;; |
| 23511 |
esac |
| 23512 |
|
| 23513 |
else $as_nop |
| 23514 |
rb_defint_cond= |
| 23515 |
fi |
| 23516 |
printf "%s\n" "#define HAVE_UINT16_T 1" >>confdefs.h |
| 23517 |
|
| 23518 |
if test "${rb_cv_type_uint16_t}" = yes |
| 23519 |
then : |
| 23520 |
|
| 23521 |
# The cast to long int works around a bug in the HP C Compiler |
| 23522 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23523 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23524 |
# This bug is HP SR number 8606223364. |
| 23525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint16_t" >&5 |
| 23526 |
printf %s "checking size of uint16_t... " >&6; } |
| 23527 |
if test ${ac_cv_sizeof_uint16_t+y} |
| 23528 |
then : |
| 23529 |
printf %s "(cached) " >&6 |
| 23530 |
else $as_nop |
| 23531 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint16_t))" "ac_cv_sizeof_uint16_t" "$ac_includes_default |
| 23532 |
" |
| 23533 |
then : |
| 23534 |
|
| 23535 |
else $as_nop |
| 23536 |
if test "$ac_cv_type_uint16_t" = yes; then |
| 23537 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23538 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23539 |
as_fn_error 77 "cannot compute sizeof (uint16_t) |
| 23540 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23541 |
else |
| 23542 |
ac_cv_sizeof_uint16_t=0 |
| 23543 |
fi |
| 23544 |
fi |
| 23545 |
|
| 23546 |
fi |
| 23547 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint16_t" >&5 |
| 23548 |
colorize_result "$ac_cv_sizeof_uint16_t" ; } |
| 23549 |
|
| 23550 |
|
| 23551 |
|
| 23552 |
printf "%s\n" "#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t" >>confdefs.h |
| 23553 |
|
| 23554 |
|
| 23555 |
|
| 23556 |
else $as_nop |
| 23557 |
|
| 23558 |
printf "%s\n" "#define uint16_t $rb_cv_type_uint16_t" >>confdefs.h |
| 23559 |
|
| 23560 |
cat >>confdefs.h <<_ACEOF |
| 23561 |
#define SIZEOF_UINT16_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23562 |
_ACEOF |
| 23563 |
|
| 23564 |
|
| 23565 |
fi |
| 23566 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23567 |
|
| 23568 |
fi |
| 23569 |
|
| 23570 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5 |
| 23571 |
printf %s "checking for int32_t... " >&6; } |
| 23572 |
if test ${rb_cv_type_int32_t+y} |
| 23573 |
then : |
| 23574 |
printf %s "(cached) " >&6 |
| 23575 |
else $as_nop |
| 23576 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23577 |
/* end confdefs.h. */ |
| 23578 |
$ac_includes_default |
| 23579 |
typedef int32_t t; int s = sizeof(t) == 42; |
| 23580 |
int |
| 23581 |
main (void) |
| 23582 |
{ |
| 23583 |
|
| 23584 |
; |
| 23585 |
return 0; |
| 23586 |
} |
| 23587 |
_ACEOF |
| 23588 |
if ac_fn_c_try_compile "$LINENO" |
| 23589 |
then : |
| 23590 |
rb_cv_type_int32_t=yes |
| 23591 |
else $as_nop |
| 23592 |
case 4 in #( |
| 23593 |
"1") : |
| 23594 |
rb_cv_type_int32_t="signed char" ;; #( |
| 23595 |
"$ac_cv_sizeof_short") : |
| 23596 |
rb_cv_type_int32_t="short" ;; #( |
| 23597 |
"$ac_cv_sizeof_int") : |
| 23598 |
rb_cv_type_int32_t="int" ;; #( |
| 23599 |
"$ac_cv_sizeof_long") : |
| 23600 |
rb_cv_type_int32_t="long" ;; #( |
| 23601 |
"$ac_cv_sizeof_long_long") : |
| 23602 |
rb_cv_type_int32_t="long long" ;; #( |
| 23603 |
"${ac_cv_sizeof___int64#*:}") : |
| 23604 |
rb_cv_type_int32_t="__int64" ;; #( |
| 23605 |
"${ac_cv_sizeof___int128#*:}") : |
| 23606 |
rb_cv_type_int32_t="__int128" ;; #( |
| 23607 |
*) : |
| 23608 |
rb_cv_type_int32_t=no ;; |
| 23609 |
esac |
| 23610 |
fi |
| 23611 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23612 |
fi |
| 23613 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int32_t" >&5 |
| 23614 |
colorize_result "$rb_cv_type_int32_t" ; } |
| 23615 |
if test "${rb_cv_type_int32_t}" != no |
| 23616 |
then : |
| 23617 |
|
| 23618 |
rb_defint_type="${rb_cv_type_int32_t##unsigned }" |
| 23619 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23620 |
then : |
| 23621 |
|
| 23622 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23623 |
case $rb_defint_cond in #( |
| 23624 |
*:*) : |
| 23625 |
|
| 23626 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23627 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23628 |
;; #( |
| 23629 |
*) : |
| 23630 |
rb_defint_cond= ;; |
| 23631 |
esac |
| 23632 |
|
| 23633 |
else $as_nop |
| 23634 |
rb_defint_cond= |
| 23635 |
fi |
| 23636 |
printf "%s\n" "#define HAVE_INT32_T 1" >>confdefs.h |
| 23637 |
|
| 23638 |
if test "${rb_cv_type_int32_t}" = yes |
| 23639 |
then : |
| 23640 |
|
| 23641 |
# The cast to long int works around a bug in the HP C Compiler |
| 23642 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23643 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23644 |
# This bug is HP SR number 8606223364. |
| 23645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int32_t" >&5 |
| 23646 |
printf %s "checking size of int32_t... " >&6; } |
| 23647 |
if test ${ac_cv_sizeof_int32_t+y} |
| 23648 |
then : |
| 23649 |
printf %s "(cached) " >&6 |
| 23650 |
else $as_nop |
| 23651 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int32_t))" "ac_cv_sizeof_int32_t" "$ac_includes_default |
| 23652 |
" |
| 23653 |
then : |
| 23654 |
|
| 23655 |
else $as_nop |
| 23656 |
if test "$ac_cv_type_int32_t" = yes; then |
| 23657 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23658 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23659 |
as_fn_error 77 "cannot compute sizeof (int32_t) |
| 23660 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23661 |
else |
| 23662 |
ac_cv_sizeof_int32_t=0 |
| 23663 |
fi |
| 23664 |
fi |
| 23665 |
|
| 23666 |
fi |
| 23667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int32_t" >&5 |
| 23668 |
colorize_result "$ac_cv_sizeof_int32_t" ; } |
| 23669 |
|
| 23670 |
|
| 23671 |
|
| 23672 |
printf "%s\n" "#define SIZEOF_INT32_T $ac_cv_sizeof_int32_t" >>confdefs.h |
| 23673 |
|
| 23674 |
|
| 23675 |
|
| 23676 |
else $as_nop |
| 23677 |
|
| 23678 |
printf "%s\n" "#define int32_t $rb_cv_type_int32_t" >>confdefs.h |
| 23679 |
|
| 23680 |
cat >>confdefs.h <<_ACEOF |
| 23681 |
#define SIZEOF_INT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23682 |
_ACEOF |
| 23683 |
|
| 23684 |
|
| 23685 |
fi |
| 23686 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23687 |
|
| 23688 |
fi |
| 23689 |
|
| 23690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5 |
| 23691 |
printf %s "checking for uint32_t... " >&6; } |
| 23692 |
if test ${rb_cv_type_uint32_t+y} |
| 23693 |
then : |
| 23694 |
printf %s "(cached) " >&6 |
| 23695 |
else $as_nop |
| 23696 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23697 |
/* end confdefs.h. */ |
| 23698 |
$ac_includes_default |
| 23699 |
typedef uint32_t t; int s = sizeof(t) == 42; |
| 23700 |
int |
| 23701 |
main (void) |
| 23702 |
{ |
| 23703 |
|
| 23704 |
; |
| 23705 |
return 0; |
| 23706 |
} |
| 23707 |
_ACEOF |
| 23708 |
if ac_fn_c_try_compile "$LINENO" |
| 23709 |
then : |
| 23710 |
rb_cv_type_uint32_t=yes |
| 23711 |
else $as_nop |
| 23712 |
case 4 in #( |
| 23713 |
"1") : |
| 23714 |
rb_cv_type_uint32_t="unsigned char" ;; #( |
| 23715 |
"$ac_cv_sizeof_short") : |
| 23716 |
rb_cv_type_uint32_t="unsigned short" ;; #( |
| 23717 |
"$ac_cv_sizeof_int") : |
| 23718 |
rb_cv_type_uint32_t="unsigned int" ;; #( |
| 23719 |
"$ac_cv_sizeof_long") : |
| 23720 |
rb_cv_type_uint32_t="unsigned long" ;; #( |
| 23721 |
"$ac_cv_sizeof_long_long") : |
| 23722 |
rb_cv_type_uint32_t="unsigned long long" ;; #( |
| 23723 |
"${ac_cv_sizeof___int64#*:}") : |
| 23724 |
rb_cv_type_uint32_t="unsigned __int64" ;; #( |
| 23725 |
"${ac_cv_sizeof___int128#*:}") : |
| 23726 |
rb_cv_type_uint32_t="unsigned __int128" ;; #( |
| 23727 |
*) : |
| 23728 |
rb_cv_type_uint32_t=no ;; |
| 23729 |
esac |
| 23730 |
fi |
| 23731 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23732 |
fi |
| 23733 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint32_t" >&5 |
| 23734 |
colorize_result "$rb_cv_type_uint32_t" ; } |
| 23735 |
if test "${rb_cv_type_uint32_t}" != no |
| 23736 |
then : |
| 23737 |
|
| 23738 |
rb_defint_type="${rb_cv_type_uint32_t##unsigned }" |
| 23739 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23740 |
then : |
| 23741 |
|
| 23742 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23743 |
case $rb_defint_cond in #( |
| 23744 |
*:*) : |
| 23745 |
|
| 23746 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23747 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23748 |
;; #( |
| 23749 |
*) : |
| 23750 |
rb_defint_cond= ;; |
| 23751 |
esac |
| 23752 |
|
| 23753 |
else $as_nop |
| 23754 |
rb_defint_cond= |
| 23755 |
fi |
| 23756 |
printf "%s\n" "#define HAVE_UINT32_T 1" >>confdefs.h |
| 23757 |
|
| 23758 |
if test "${rb_cv_type_uint32_t}" = yes |
| 23759 |
then : |
| 23760 |
|
| 23761 |
# The cast to long int works around a bug in the HP C Compiler |
| 23762 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23763 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23764 |
# This bug is HP SR number 8606223364. |
| 23765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint32_t" >&5 |
| 23766 |
printf %s "checking size of uint32_t... " >&6; } |
| 23767 |
if test ${ac_cv_sizeof_uint32_t+y} |
| 23768 |
then : |
| 23769 |
printf %s "(cached) " >&6 |
| 23770 |
else $as_nop |
| 23771 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint32_t))" "ac_cv_sizeof_uint32_t" "$ac_includes_default |
| 23772 |
" |
| 23773 |
then : |
| 23774 |
|
| 23775 |
else $as_nop |
| 23776 |
if test "$ac_cv_type_uint32_t" = yes; then |
| 23777 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23778 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23779 |
as_fn_error 77 "cannot compute sizeof (uint32_t) |
| 23780 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23781 |
else |
| 23782 |
ac_cv_sizeof_uint32_t=0 |
| 23783 |
fi |
| 23784 |
fi |
| 23785 |
|
| 23786 |
fi |
| 23787 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint32_t" >&5 |
| 23788 |
colorize_result "$ac_cv_sizeof_uint32_t" ; } |
| 23789 |
|
| 23790 |
|
| 23791 |
|
| 23792 |
printf "%s\n" "#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t" >>confdefs.h |
| 23793 |
|
| 23794 |
|
| 23795 |
|
| 23796 |
else $as_nop |
| 23797 |
|
| 23798 |
printf "%s\n" "#define uint32_t $rb_cv_type_uint32_t" >>confdefs.h |
| 23799 |
|
| 23800 |
cat >>confdefs.h <<_ACEOF |
| 23801 |
#define SIZEOF_UINT32_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23802 |
_ACEOF |
| 23803 |
|
| 23804 |
|
| 23805 |
fi |
| 23806 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23807 |
|
| 23808 |
fi |
| 23809 |
|
| 23810 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5 |
| 23811 |
printf %s "checking for int64_t... " >&6; } |
| 23812 |
if test ${rb_cv_type_int64_t+y} |
| 23813 |
then : |
| 23814 |
printf %s "(cached) " >&6 |
| 23815 |
else $as_nop |
| 23816 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23817 |
/* end confdefs.h. */ |
| 23818 |
$ac_includes_default |
| 23819 |
typedef int64_t t; int s = sizeof(t) == 42; |
| 23820 |
int |
| 23821 |
main (void) |
| 23822 |
{ |
| 23823 |
|
| 23824 |
; |
| 23825 |
return 0; |
| 23826 |
} |
| 23827 |
_ACEOF |
| 23828 |
if ac_fn_c_try_compile "$LINENO" |
| 23829 |
then : |
| 23830 |
rb_cv_type_int64_t=yes |
| 23831 |
else $as_nop |
| 23832 |
case 8 in #( |
| 23833 |
"1") : |
| 23834 |
rb_cv_type_int64_t="signed char" ;; #( |
| 23835 |
"$ac_cv_sizeof_short") : |
| 23836 |
rb_cv_type_int64_t="short" ;; #( |
| 23837 |
"$ac_cv_sizeof_int") : |
| 23838 |
rb_cv_type_int64_t="int" ;; #( |
| 23839 |
"$ac_cv_sizeof_long") : |
| 23840 |
rb_cv_type_int64_t="long" ;; #( |
| 23841 |
"$ac_cv_sizeof_long_long") : |
| 23842 |
rb_cv_type_int64_t="long long" ;; #( |
| 23843 |
"${ac_cv_sizeof___int64#*:}") : |
| 23844 |
rb_cv_type_int64_t="__int64" ;; #( |
| 23845 |
"${ac_cv_sizeof___int128#*:}") : |
| 23846 |
rb_cv_type_int64_t="__int128" ;; #( |
| 23847 |
*) : |
| 23848 |
rb_cv_type_int64_t=no ;; |
| 23849 |
esac |
| 23850 |
fi |
| 23851 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23852 |
fi |
| 23853 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int64_t" >&5 |
| 23854 |
colorize_result "$rb_cv_type_int64_t" ; } |
| 23855 |
if test "${rb_cv_type_int64_t}" != no |
| 23856 |
then : |
| 23857 |
|
| 23858 |
rb_defint_type="${rb_cv_type_int64_t##unsigned }" |
| 23859 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23860 |
then : |
| 23861 |
|
| 23862 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23863 |
case $rb_defint_cond in #( |
| 23864 |
*:*) : |
| 23865 |
|
| 23866 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23867 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23868 |
;; #( |
| 23869 |
*) : |
| 23870 |
rb_defint_cond= ;; |
| 23871 |
esac |
| 23872 |
|
| 23873 |
else $as_nop |
| 23874 |
rb_defint_cond= |
| 23875 |
fi |
| 23876 |
printf "%s\n" "#define HAVE_INT64_T 1" >>confdefs.h |
| 23877 |
|
| 23878 |
if test "${rb_cv_type_int64_t}" = yes |
| 23879 |
then : |
| 23880 |
|
| 23881 |
# The cast to long int works around a bug in the HP C Compiler |
| 23882 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 23883 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 23884 |
# This bug is HP SR number 8606223364. |
| 23885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5 |
| 23886 |
printf %s "checking size of int64_t... " >&6; } |
| 23887 |
if test ${ac_cv_sizeof_int64_t+y} |
| 23888 |
then : |
| 23889 |
printf %s "(cached) " >&6 |
| 23890 |
else $as_nop |
| 23891 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default |
| 23892 |
" |
| 23893 |
then : |
| 23894 |
|
| 23895 |
else $as_nop |
| 23896 |
if test "$ac_cv_type_int64_t" = yes; then |
| 23897 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 23898 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 23899 |
as_fn_error 77 "cannot compute sizeof (int64_t) |
| 23900 |
See \`config.log' for more details" "$LINENO" 5; } |
| 23901 |
else |
| 23902 |
ac_cv_sizeof_int64_t=0 |
| 23903 |
fi |
| 23904 |
fi |
| 23905 |
|
| 23906 |
fi |
| 23907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5 |
| 23908 |
colorize_result "$ac_cv_sizeof_int64_t" ; } |
| 23909 |
|
| 23910 |
|
| 23911 |
|
| 23912 |
printf "%s\n" "#define SIZEOF_INT64_T $ac_cv_sizeof_int64_t" >>confdefs.h |
| 23913 |
|
| 23914 |
|
| 23915 |
|
| 23916 |
else $as_nop |
| 23917 |
|
| 23918 |
printf "%s\n" "#define int64_t $rb_cv_type_int64_t" >>confdefs.h |
| 23919 |
|
| 23920 |
cat >>confdefs.h <<_ACEOF |
| 23921 |
#define SIZEOF_INT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23922 |
_ACEOF |
| 23923 |
|
| 23924 |
|
| 23925 |
fi |
| 23926 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 23927 |
|
| 23928 |
fi |
| 23929 |
|
| 23930 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint64_t" >&5 |
| 23931 |
printf %s "checking for uint64_t... " >&6; } |
| 23932 |
if test ${rb_cv_type_uint64_t+y} |
| 23933 |
then : |
| 23934 |
printf %s "(cached) " >&6 |
| 23935 |
else $as_nop |
| 23936 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23937 |
/* end confdefs.h. */ |
| 23938 |
$ac_includes_default |
| 23939 |
typedef uint64_t t; int s = sizeof(t) == 42; |
| 23940 |
int |
| 23941 |
main (void) |
| 23942 |
{ |
| 23943 |
|
| 23944 |
; |
| 23945 |
return 0; |
| 23946 |
} |
| 23947 |
_ACEOF |
| 23948 |
if ac_fn_c_try_compile "$LINENO" |
| 23949 |
then : |
| 23950 |
rb_cv_type_uint64_t=yes |
| 23951 |
else $as_nop |
| 23952 |
case 8 in #( |
| 23953 |
"1") : |
| 23954 |
rb_cv_type_uint64_t="unsigned char" ;; #( |
| 23955 |
"$ac_cv_sizeof_short") : |
| 23956 |
rb_cv_type_uint64_t="unsigned short" ;; #( |
| 23957 |
"$ac_cv_sizeof_int") : |
| 23958 |
rb_cv_type_uint64_t="unsigned int" ;; #( |
| 23959 |
"$ac_cv_sizeof_long") : |
| 23960 |
rb_cv_type_uint64_t="unsigned long" ;; #( |
| 23961 |
"$ac_cv_sizeof_long_long") : |
| 23962 |
rb_cv_type_uint64_t="unsigned long long" ;; #( |
| 23963 |
"${ac_cv_sizeof___int64#*:}") : |
| 23964 |
rb_cv_type_uint64_t="unsigned __int64" ;; #( |
| 23965 |
"${ac_cv_sizeof___int128#*:}") : |
| 23966 |
rb_cv_type_uint64_t="unsigned __int128" ;; #( |
| 23967 |
*) : |
| 23968 |
rb_cv_type_uint64_t=no ;; |
| 23969 |
esac |
| 23970 |
fi |
| 23971 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23972 |
fi |
| 23973 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint64_t" >&5 |
| 23974 |
colorize_result "$rb_cv_type_uint64_t" ; } |
| 23975 |
if test "${rb_cv_type_uint64_t}" != no |
| 23976 |
then : |
| 23977 |
|
| 23978 |
rb_defint_type="${rb_cv_type_uint64_t##unsigned }" |
| 23979 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 23980 |
then : |
| 23981 |
|
| 23982 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 23983 |
case $rb_defint_cond in #( |
| 23984 |
*:*) : |
| 23985 |
|
| 23986 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 23987 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 23988 |
;; #( |
| 23989 |
*) : |
| 23990 |
rb_defint_cond= ;; |
| 23991 |
esac |
| 23992 |
|
| 23993 |
else $as_nop |
| 23994 |
rb_defint_cond= |
| 23995 |
fi |
| 23996 |
printf "%s\n" "#define HAVE_UINT64_T 1" >>confdefs.h |
| 23997 |
|
| 23998 |
if test "${rb_cv_type_uint64_t}" = yes |
| 23999 |
then : |
| 24000 |
|
| 24001 |
# The cast to long int works around a bug in the HP C Compiler |
| 24002 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24003 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24004 |
# This bug is HP SR number 8606223364. |
| 24005 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint64_t" >&5 |
| 24006 |
printf %s "checking size of uint64_t... " >&6; } |
| 24007 |
if test ${ac_cv_sizeof_uint64_t+y} |
| 24008 |
then : |
| 24009 |
printf %s "(cached) " >&6 |
| 24010 |
else $as_nop |
| 24011 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint64_t))" "ac_cv_sizeof_uint64_t" "$ac_includes_default |
| 24012 |
" |
| 24013 |
then : |
| 24014 |
|
| 24015 |
else $as_nop |
| 24016 |
if test "$ac_cv_type_uint64_t" = yes; then |
| 24017 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24018 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24019 |
as_fn_error 77 "cannot compute sizeof (uint64_t) |
| 24020 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24021 |
else |
| 24022 |
ac_cv_sizeof_uint64_t=0 |
| 24023 |
fi |
| 24024 |
fi |
| 24025 |
|
| 24026 |
fi |
| 24027 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint64_t" >&5 |
| 24028 |
colorize_result "$ac_cv_sizeof_uint64_t" ; } |
| 24029 |
|
| 24030 |
|
| 24031 |
|
| 24032 |
printf "%s\n" "#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t" >>confdefs.h |
| 24033 |
|
| 24034 |
|
| 24035 |
|
| 24036 |
else $as_nop |
| 24037 |
|
| 24038 |
printf "%s\n" "#define uint64_t $rb_cv_type_uint64_t" >>confdefs.h |
| 24039 |
|
| 24040 |
cat >>confdefs.h <<_ACEOF |
| 24041 |
#define SIZEOF_UINT64_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24042 |
_ACEOF |
| 24043 |
|
| 24044 |
|
| 24045 |
fi |
| 24046 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 24047 |
|
| 24048 |
fi |
| 24049 |
|
| 24050 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int128_t" >&5 |
| 24051 |
printf %s "checking for int128_t... " >&6; } |
| 24052 |
if test ${rb_cv_type_int128_t+y} |
| 24053 |
then : |
| 24054 |
printf %s "(cached) " >&6 |
| 24055 |
else $as_nop |
| 24056 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24057 |
/* end confdefs.h. */ |
| 24058 |
$ac_includes_default |
| 24059 |
typedef int128_t t; int s = sizeof(t) == 42; |
| 24060 |
int |
| 24061 |
main (void) |
| 24062 |
{ |
| 24063 |
|
| 24064 |
; |
| 24065 |
return 0; |
| 24066 |
} |
| 24067 |
_ACEOF |
| 24068 |
if ac_fn_c_try_compile "$LINENO" |
| 24069 |
then : |
| 24070 |
rb_cv_type_int128_t=yes |
| 24071 |
else $as_nop |
| 24072 |
case 16 in #( |
| 24073 |
"1") : |
| 24074 |
rb_cv_type_int128_t="signed char" ;; #( |
| 24075 |
"$ac_cv_sizeof_short") : |
| 24076 |
rb_cv_type_int128_t="short" ;; #( |
| 24077 |
"$ac_cv_sizeof_int") : |
| 24078 |
rb_cv_type_int128_t="int" ;; #( |
| 24079 |
"$ac_cv_sizeof_long") : |
| 24080 |
rb_cv_type_int128_t="long" ;; #( |
| 24081 |
"$ac_cv_sizeof_long_long") : |
| 24082 |
rb_cv_type_int128_t="long long" ;; #( |
| 24083 |
"${ac_cv_sizeof___int64#*:}") : |
| 24084 |
rb_cv_type_int128_t="__int64" ;; #( |
| 24085 |
"${ac_cv_sizeof___int128#*:}") : |
| 24086 |
rb_cv_type_int128_t="__int128" ;; #( |
| 24087 |
*) : |
| 24088 |
rb_cv_type_int128_t=no ;; |
| 24089 |
esac |
| 24090 |
fi |
| 24091 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24092 |
fi |
| 24093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_int128_t" >&5 |
| 24094 |
colorize_result "$rb_cv_type_int128_t" ; } |
| 24095 |
if test "${rb_cv_type_int128_t}" != no |
| 24096 |
then : |
| 24097 |
|
| 24098 |
rb_defint_type="${rb_cv_type_int128_t##unsigned }" |
| 24099 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 24100 |
then : |
| 24101 |
|
| 24102 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 24103 |
case $rb_defint_cond in #( |
| 24104 |
*:*) : |
| 24105 |
|
| 24106 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24107 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 24108 |
;; #( |
| 24109 |
*) : |
| 24110 |
rb_defint_cond= ;; |
| 24111 |
esac |
| 24112 |
|
| 24113 |
else $as_nop |
| 24114 |
rb_defint_cond= |
| 24115 |
fi |
| 24116 |
printf "%s\n" "#define HAVE_INT128_T 1" >>confdefs.h |
| 24117 |
|
| 24118 |
if test "${rb_cv_type_int128_t}" = yes |
| 24119 |
then : |
| 24120 |
|
| 24121 |
# The cast to long int works around a bug in the HP C Compiler |
| 24122 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24123 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24124 |
# This bug is HP SR number 8606223364. |
| 24125 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int128_t" >&5 |
| 24126 |
printf %s "checking size of int128_t... " >&6; } |
| 24127 |
if test ${ac_cv_sizeof_int128_t+y} |
| 24128 |
then : |
| 24129 |
printf %s "(cached) " >&6 |
| 24130 |
else $as_nop |
| 24131 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int128_t))" "ac_cv_sizeof_int128_t" "$ac_includes_default |
| 24132 |
" |
| 24133 |
then : |
| 24134 |
|
| 24135 |
else $as_nop |
| 24136 |
if test "$ac_cv_type_int128_t" = yes; then |
| 24137 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24138 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24139 |
as_fn_error 77 "cannot compute sizeof (int128_t) |
| 24140 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24141 |
else |
| 24142 |
ac_cv_sizeof_int128_t=0 |
| 24143 |
fi |
| 24144 |
fi |
| 24145 |
|
| 24146 |
fi |
| 24147 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int128_t" >&5 |
| 24148 |
colorize_result "$ac_cv_sizeof_int128_t" ; } |
| 24149 |
|
| 24150 |
|
| 24151 |
|
| 24152 |
printf "%s\n" "#define SIZEOF_INT128_T $ac_cv_sizeof_int128_t" >>confdefs.h |
| 24153 |
|
| 24154 |
|
| 24155 |
|
| 24156 |
else $as_nop |
| 24157 |
|
| 24158 |
printf "%s\n" "#define int128_t $rb_cv_type_int128_t" >>confdefs.h |
| 24159 |
|
| 24160 |
cat >>confdefs.h <<_ACEOF |
| 24161 |
#define SIZEOF_INT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24162 |
_ACEOF |
| 24163 |
|
| 24164 |
|
| 24165 |
fi |
| 24166 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 24167 |
|
| 24168 |
fi |
| 24169 |
|
| 24170 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint128_t" >&5 |
| 24171 |
printf %s "checking for uint128_t... " >&6; } |
| 24172 |
if test ${rb_cv_type_uint128_t+y} |
| 24173 |
then : |
| 24174 |
printf %s "(cached) " >&6 |
| 24175 |
else $as_nop |
| 24176 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24177 |
/* end confdefs.h. */ |
| 24178 |
$ac_includes_default |
| 24179 |
typedef uint128_t t; int s = sizeof(t) == 42; |
| 24180 |
int |
| 24181 |
main (void) |
| 24182 |
{ |
| 24183 |
|
| 24184 |
; |
| 24185 |
return 0; |
| 24186 |
} |
| 24187 |
_ACEOF |
| 24188 |
if ac_fn_c_try_compile "$LINENO" |
| 24189 |
then : |
| 24190 |
rb_cv_type_uint128_t=yes |
| 24191 |
else $as_nop |
| 24192 |
case 16 in #( |
| 24193 |
"1") : |
| 24194 |
rb_cv_type_uint128_t="unsigned char" ;; #( |
| 24195 |
"$ac_cv_sizeof_short") : |
| 24196 |
rb_cv_type_uint128_t="unsigned short" ;; #( |
| 24197 |
"$ac_cv_sizeof_int") : |
| 24198 |
rb_cv_type_uint128_t="unsigned int" ;; #( |
| 24199 |
"$ac_cv_sizeof_long") : |
| 24200 |
rb_cv_type_uint128_t="unsigned long" ;; #( |
| 24201 |
"$ac_cv_sizeof_long_long") : |
| 24202 |
rb_cv_type_uint128_t="unsigned long long" ;; #( |
| 24203 |
"${ac_cv_sizeof___int64#*:}") : |
| 24204 |
rb_cv_type_uint128_t="unsigned __int64" ;; #( |
| 24205 |
"${ac_cv_sizeof___int128#*:}") : |
| 24206 |
rb_cv_type_uint128_t="unsigned __int128" ;; #( |
| 24207 |
*) : |
| 24208 |
rb_cv_type_uint128_t=no ;; |
| 24209 |
esac |
| 24210 |
fi |
| 24211 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24212 |
fi |
| 24213 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uint128_t" >&5 |
| 24214 |
colorize_result "$rb_cv_type_uint128_t" ; } |
| 24215 |
if test "${rb_cv_type_uint128_t}" != no |
| 24216 |
then : |
| 24217 |
|
| 24218 |
rb_defint_type="${rb_cv_type_uint128_t##unsigned }" |
| 24219 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 24220 |
then : |
| 24221 |
|
| 24222 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 24223 |
case $rb_defint_cond in #( |
| 24224 |
*:*) : |
| 24225 |
|
| 24226 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24227 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 24228 |
;; #( |
| 24229 |
*) : |
| 24230 |
rb_defint_cond= ;; |
| 24231 |
esac |
| 24232 |
|
| 24233 |
else $as_nop |
| 24234 |
rb_defint_cond= |
| 24235 |
fi |
| 24236 |
printf "%s\n" "#define HAVE_UINT128_T 1" >>confdefs.h |
| 24237 |
|
| 24238 |
if test "${rb_cv_type_uint128_t}" = yes |
| 24239 |
then : |
| 24240 |
|
| 24241 |
# The cast to long int works around a bug in the HP C Compiler |
| 24242 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24243 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24244 |
# This bug is HP SR number 8606223364. |
| 24245 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uint128_t" >&5 |
| 24246 |
printf %s "checking size of uint128_t... " >&6; } |
| 24247 |
if test ${ac_cv_sizeof_uint128_t+y} |
| 24248 |
then : |
| 24249 |
printf %s "(cached) " >&6 |
| 24250 |
else $as_nop |
| 24251 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uint128_t))" "ac_cv_sizeof_uint128_t" "$ac_includes_default |
| 24252 |
" |
| 24253 |
then : |
| 24254 |
|
| 24255 |
else $as_nop |
| 24256 |
if test "$ac_cv_type_uint128_t" = yes; then |
| 24257 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24258 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24259 |
as_fn_error 77 "cannot compute sizeof (uint128_t) |
| 24260 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24261 |
else |
| 24262 |
ac_cv_sizeof_uint128_t=0 |
| 24263 |
fi |
| 24264 |
fi |
| 24265 |
|
| 24266 |
fi |
| 24267 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uint128_t" >&5 |
| 24268 |
colorize_result "$ac_cv_sizeof_uint128_t" ; } |
| 24269 |
|
| 24270 |
|
| 24271 |
|
| 24272 |
printf "%s\n" "#define SIZEOF_UINT128_T $ac_cv_sizeof_uint128_t" >>confdefs.h |
| 24273 |
|
| 24274 |
|
| 24275 |
|
| 24276 |
else $as_nop |
| 24277 |
|
| 24278 |
printf "%s\n" "#define uint128_t $rb_cv_type_uint128_t" >>confdefs.h |
| 24279 |
|
| 24280 |
cat >>confdefs.h <<_ACEOF |
| 24281 |
#define SIZEOF_UINT128_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24282 |
_ACEOF |
| 24283 |
|
| 24284 |
|
| 24285 |
fi |
| 24286 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 24287 |
|
| 24288 |
fi |
| 24289 |
|
| 24290 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intptr_t" >&5 |
| 24291 |
printf %s "checking for intptr_t... " >&6; } |
| 24292 |
if test ${rb_cv_type_intptr_t+y} |
| 24293 |
then : |
| 24294 |
printf %s "(cached) " >&6 |
| 24295 |
else $as_nop |
| 24296 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24297 |
/* end confdefs.h. */ |
| 24298 |
$ac_includes_default |
| 24299 |
typedef intptr_t t; int s = sizeof(t) == 42; |
| 24300 |
int |
| 24301 |
main (void) |
| 24302 |
{ |
| 24303 |
|
| 24304 |
; |
| 24305 |
return 0; |
| 24306 |
} |
| 24307 |
_ACEOF |
| 24308 |
if ac_fn_c_try_compile "$LINENO" |
| 24309 |
then : |
| 24310 |
rb_cv_type_intptr_t=yes |
| 24311 |
else $as_nop |
| 24312 |
case $ac_cv_sizeof_voidp in #( |
| 24313 |
"1") : |
| 24314 |
rb_cv_type_intptr_t="signed char" ;; #( |
| 24315 |
"$ac_cv_sizeof_short") : |
| 24316 |
rb_cv_type_intptr_t="short" ;; #( |
| 24317 |
"$ac_cv_sizeof_int") : |
| 24318 |
rb_cv_type_intptr_t="int" ;; #( |
| 24319 |
"$ac_cv_sizeof_long") : |
| 24320 |
rb_cv_type_intptr_t="long" ;; #( |
| 24321 |
"$ac_cv_sizeof_long_long") : |
| 24322 |
rb_cv_type_intptr_t="long long" ;; #( |
| 24323 |
"${ac_cv_sizeof___int64#*:}") : |
| 24324 |
rb_cv_type_intptr_t="__int64" ;; #( |
| 24325 |
"${ac_cv_sizeof___int128#*:}") : |
| 24326 |
rb_cv_type_intptr_t="__int128" ;; #( |
| 24327 |
*) : |
| 24328 |
rb_cv_type_intptr_t=no ;; |
| 24329 |
esac |
| 24330 |
fi |
| 24331 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24332 |
fi |
| 24333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_intptr_t" >&5 |
| 24334 |
colorize_result "$rb_cv_type_intptr_t" ; } |
| 24335 |
if test "${rb_cv_type_intptr_t}" != no |
| 24336 |
then : |
| 24337 |
|
| 24338 |
rb_defint_type="${rb_cv_type_intptr_t##unsigned }" |
| 24339 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 24340 |
then : |
| 24341 |
|
| 24342 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 24343 |
case $rb_defint_cond in #( |
| 24344 |
*:*) : |
| 24345 |
|
| 24346 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24347 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 24348 |
;; #( |
| 24349 |
*) : |
| 24350 |
rb_defint_cond= ;; |
| 24351 |
esac |
| 24352 |
|
| 24353 |
else $as_nop |
| 24354 |
rb_defint_cond= |
| 24355 |
fi |
| 24356 |
printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h |
| 24357 |
|
| 24358 |
if test "${rb_cv_type_intptr_t}" = yes |
| 24359 |
then : |
| 24360 |
|
| 24361 |
|
| 24362 |
if test "$universal_binary" = yes; then |
| 24363 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5 |
| 24364 |
printf %s "checking size of intptr_t... " >&6; } |
| 24365 |
if test ${ac_cv_sizeof_intptr_t+y} |
| 24366 |
then : |
| 24367 |
printf %s "(cached) " >&6 |
| 24368 |
else $as_nop |
| 24369 |
|
| 24370 |
unset ac_cv_sizeof_intptr_t |
| 24371 |
rbcv_sizeof_var=" |
| 24372 |
typedef intptr_t ac__type_sizeof_; |
| 24373 |
static ac__type_sizeof_ *rbcv_ptr; |
| 24374 |
#define SIZEOF_INTPTR_T sizeof((*rbcv_ptr)) |
| 24375 |
" |
| 24376 |
test -z "${ac_cv_sizeof_intptr_t+set}" && { |
| 24377 |
for rbcv_sizeof_type in void*; do |
| 24378 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24379 |
/* end confdefs.h. */ |
| 24380 |
$ac_includes_default |
| 24381 |
$rbcv_sizeof_var |
| 24382 |
|
| 24383 |
int |
| 24384 |
main (void) |
| 24385 |
{ |
| 24386 |
static int test_array [1 - 2 * !(SIZEOF_INTPTR_T == sizeof($rbcv_sizeof_type))]; |
| 24387 |
test_array [0] = 0; |
| 24388 |
return test_array [0]; |
| 24389 |
|
| 24390 |
; |
| 24391 |
return 0; |
| 24392 |
} |
| 24393 |
_ACEOF |
| 24394 |
if ac_fn_c_try_compile "$LINENO" |
| 24395 |
then : |
| 24396 |
|
| 24397 |
ac_cv_sizeof_intptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 24398 |
break |
| 24399 |
fi |
| 24400 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24401 |
done |
| 24402 |
} |
| 24403 |
unset rbcv_sizeof_cond |
| 24404 |
|
| 24405 |
test "${ac_cv_sizeof_intptr_t#[1-9]}" = "${ac_cv_sizeof_intptr_t}" && |
| 24406 |
test "${ac_cv_sizeof_intptr_t#SIZEOF_}" = "${ac_cv_sizeof_intptr_t}" && { |
| 24407 |
test "$universal_binary" = yes && cross_compiling=yes |
| 24408 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_INTPTR_T" "rbcv_sizeof_type" "$ac_includes_default |
| 24409 |
|
| 24410 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 24411 |
#else} |
| 24412 |
$rbcv_sizeof_var |
| 24413 |
${rbcv_sizeof_cond+#endif} |
| 24414 |
#ifndef SIZEOF_INTPTR_T |
| 24415 |
#define SIZEOF_INTPTR_T 0 |
| 24416 |
#endif" |
| 24417 |
then : |
| 24418 |
|
| 24419 |
else $as_nop |
| 24420 |
rbcv_sizeof_type=0 |
| 24421 |
fi |
| 24422 |
|
| 24423 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 24424 |
if test ${rbcv_sizeof_type-0} != 0 |
| 24425 |
then : |
| 24426 |
|
| 24427 |
ac_cv_sizeof_intptr_t="${ac_cv_sizeof_intptr_t+${ac_cv_sizeof_intptr_t-} }${rbcv_sizeof_type}" |
| 24428 |
|
| 24429 |
fi |
| 24430 |
} |
| 24431 |
: ${ac_cv_sizeof_intptr_t=0} |
| 24432 |
|
| 24433 |
fi |
| 24434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 |
| 24435 |
colorize_result "$ac_cv_sizeof_intptr_t" ; } |
| 24436 |
{ |
| 24437 |
unset rbcv_sizeof_cond |
| 24438 |
for rbcv_sizeof_type in ${ac_cv_sizeof_intptr_t-}; do |
| 24439 |
case "$rbcv_sizeof_type" in #( |
| 24440 |
[0-9]*|SIZEOF_*) : |
| 24441 |
|
| 24442 |
${rbcv_sizeof_cond+echo "#else"} |
| 24443 |
echo "#define SIZEOF_INTPTR_T $rbcv_sizeof_type" |
| 24444 |
break |
| 24445 |
;; #( |
| 24446 |
*) : |
| 24447 |
|
| 24448 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 24449 |
case $rbcv_sizeof_type in #( |
| 24450 |
*:*) : |
| 24451 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 24452 |
*) : |
| 24453 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 24454 |
esac |
| 24455 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 24456 |
echo "#define SIZEOF_INTPTR_T $rbcv_sizeof_size" |
| 24457 |
rbcv_sizeof_cond=1 |
| 24458 |
;; |
| 24459 |
esac |
| 24460 |
done |
| 24461 |
${rbcv_sizeof_cond+echo "#endif"} |
| 24462 |
} >> confdefs.h |
| 24463 |
else |
| 24464 |
# The cast to long int works around a bug in the HP C Compiler |
| 24465 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24466 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24467 |
# This bug is HP SR number 8606223364. |
| 24468 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of intptr_t" >&5 |
| 24469 |
printf %s "checking size of intptr_t... " >&6; } |
| 24470 |
if test ${ac_cv_sizeof_intptr_t+y} |
| 24471 |
then : |
| 24472 |
printf %s "(cached) " >&6 |
| 24473 |
else $as_nop |
| 24474 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (intptr_t))" "ac_cv_sizeof_intptr_t" "$ac_includes_default |
| 24475 |
" |
| 24476 |
then : |
| 24477 |
|
| 24478 |
else $as_nop |
| 24479 |
if test "$ac_cv_type_intptr_t" = yes; then |
| 24480 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24481 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24482 |
as_fn_error 77 "cannot compute sizeof (intptr_t) |
| 24483 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24484 |
else |
| 24485 |
ac_cv_sizeof_intptr_t=0 |
| 24486 |
fi |
| 24487 |
fi |
| 24488 |
|
| 24489 |
fi |
| 24490 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intptr_t" >&5 |
| 24491 |
colorize_result "$ac_cv_sizeof_intptr_t" ; } |
| 24492 |
|
| 24493 |
|
| 24494 |
|
| 24495 |
printf "%s\n" "#define SIZEOF_INTPTR_T $ac_cv_sizeof_intptr_t" >>confdefs.h |
| 24496 |
|
| 24497 |
|
| 24498 |
fi |
| 24499 |
|
| 24500 |
|
| 24501 |
else $as_nop |
| 24502 |
|
| 24503 |
printf "%s\n" "#define intptr_t $rb_cv_type_intptr_t" >>confdefs.h |
| 24504 |
|
| 24505 |
cat >>confdefs.h <<_ACEOF |
| 24506 |
#define SIZEOF_INTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24507 |
_ACEOF |
| 24508 |
|
| 24509 |
|
| 24510 |
fi |
| 24511 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 24512 |
|
| 24513 |
fi |
| 24514 |
|
| 24515 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uintptr_t" >&5 |
| 24516 |
printf %s "checking for uintptr_t... " >&6; } |
| 24517 |
if test ${rb_cv_type_uintptr_t+y} |
| 24518 |
then : |
| 24519 |
printf %s "(cached) " >&6 |
| 24520 |
else $as_nop |
| 24521 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24522 |
/* end confdefs.h. */ |
| 24523 |
$ac_includes_default |
| 24524 |
typedef uintptr_t t; int s = sizeof(t) == 42; |
| 24525 |
int |
| 24526 |
main (void) |
| 24527 |
{ |
| 24528 |
|
| 24529 |
; |
| 24530 |
return 0; |
| 24531 |
} |
| 24532 |
_ACEOF |
| 24533 |
if ac_fn_c_try_compile "$LINENO" |
| 24534 |
then : |
| 24535 |
rb_cv_type_uintptr_t=yes |
| 24536 |
else $as_nop |
| 24537 |
case $ac_cv_sizeof_voidp in #( |
| 24538 |
"1") : |
| 24539 |
rb_cv_type_uintptr_t="unsigned char" ;; #( |
| 24540 |
"$ac_cv_sizeof_short") : |
| 24541 |
rb_cv_type_uintptr_t="unsigned short" ;; #( |
| 24542 |
"$ac_cv_sizeof_int") : |
| 24543 |
rb_cv_type_uintptr_t="unsigned int" ;; #( |
| 24544 |
"$ac_cv_sizeof_long") : |
| 24545 |
rb_cv_type_uintptr_t="unsigned long" ;; #( |
| 24546 |
"$ac_cv_sizeof_long_long") : |
| 24547 |
rb_cv_type_uintptr_t="unsigned long long" ;; #( |
| 24548 |
"${ac_cv_sizeof___int64#*:}") : |
| 24549 |
rb_cv_type_uintptr_t="unsigned __int64" ;; #( |
| 24550 |
"${ac_cv_sizeof___int128#*:}") : |
| 24551 |
rb_cv_type_uintptr_t="unsigned __int128" ;; #( |
| 24552 |
*) : |
| 24553 |
rb_cv_type_uintptr_t=no ;; |
| 24554 |
esac |
| 24555 |
fi |
| 24556 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24557 |
fi |
| 24558 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_uintptr_t" >&5 |
| 24559 |
colorize_result "$rb_cv_type_uintptr_t" ; } |
| 24560 |
if test "${rb_cv_type_uintptr_t}" != no |
| 24561 |
then : |
| 24562 |
|
| 24563 |
rb_defint_type="${rb_cv_type_uintptr_t##unsigned }" |
| 24564 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 24565 |
then : |
| 24566 |
|
| 24567 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 24568 |
case $rb_defint_cond in #( |
| 24569 |
*:*) : |
| 24570 |
|
| 24571 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24572 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 24573 |
;; #( |
| 24574 |
*) : |
| 24575 |
rb_defint_cond= ;; |
| 24576 |
esac |
| 24577 |
|
| 24578 |
else $as_nop |
| 24579 |
rb_defint_cond= |
| 24580 |
fi |
| 24581 |
printf "%s\n" "#define HAVE_UINTPTR_T 1" >>confdefs.h |
| 24582 |
|
| 24583 |
if test "${rb_cv_type_uintptr_t}" = yes |
| 24584 |
then : |
| 24585 |
|
| 24586 |
|
| 24587 |
if test "$universal_binary" = yes; then |
| 24588 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 24589 |
printf %s "checking size of uintptr_t... " >&6; } |
| 24590 |
if test ${ac_cv_sizeof_uintptr_t+y} |
| 24591 |
then : |
| 24592 |
printf %s "(cached) " >&6 |
| 24593 |
else $as_nop |
| 24594 |
|
| 24595 |
unset ac_cv_sizeof_uintptr_t |
| 24596 |
rbcv_sizeof_var=" |
| 24597 |
typedef uintptr_t ac__type_sizeof_; |
| 24598 |
static ac__type_sizeof_ *rbcv_ptr; |
| 24599 |
#define SIZEOF_UINTPTR_T sizeof((*rbcv_ptr)) |
| 24600 |
" |
| 24601 |
test -z "${ac_cv_sizeof_uintptr_t+set}" && { |
| 24602 |
for rbcv_sizeof_type in void*; do |
| 24603 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24604 |
/* end confdefs.h. */ |
| 24605 |
$ac_includes_default |
| 24606 |
$rbcv_sizeof_var |
| 24607 |
|
| 24608 |
int |
| 24609 |
main (void) |
| 24610 |
{ |
| 24611 |
static int test_array [1 - 2 * !(SIZEOF_UINTPTR_T == sizeof($rbcv_sizeof_type))]; |
| 24612 |
test_array [0] = 0; |
| 24613 |
return test_array [0]; |
| 24614 |
|
| 24615 |
; |
| 24616 |
return 0; |
| 24617 |
} |
| 24618 |
_ACEOF |
| 24619 |
if ac_fn_c_try_compile "$LINENO" |
| 24620 |
then : |
| 24621 |
|
| 24622 |
ac_cv_sizeof_uintptr_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 24623 |
break |
| 24624 |
fi |
| 24625 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24626 |
done |
| 24627 |
} |
| 24628 |
unset rbcv_sizeof_cond |
| 24629 |
|
| 24630 |
test "${ac_cv_sizeof_uintptr_t#[1-9]}" = "${ac_cv_sizeof_uintptr_t}" && |
| 24631 |
test "${ac_cv_sizeof_uintptr_t#SIZEOF_}" = "${ac_cv_sizeof_uintptr_t}" && { |
| 24632 |
test "$universal_binary" = yes && cross_compiling=yes |
| 24633 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_UINTPTR_T" "rbcv_sizeof_type" "$ac_includes_default |
| 24634 |
|
| 24635 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 24636 |
#else} |
| 24637 |
$rbcv_sizeof_var |
| 24638 |
${rbcv_sizeof_cond+#endif} |
| 24639 |
#ifndef SIZEOF_UINTPTR_T |
| 24640 |
#define SIZEOF_UINTPTR_T 0 |
| 24641 |
#endif" |
| 24642 |
then : |
| 24643 |
|
| 24644 |
else $as_nop |
| 24645 |
rbcv_sizeof_type=0 |
| 24646 |
fi |
| 24647 |
|
| 24648 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 24649 |
if test ${rbcv_sizeof_type-0} != 0 |
| 24650 |
then : |
| 24651 |
|
| 24652 |
ac_cv_sizeof_uintptr_t="${ac_cv_sizeof_uintptr_t+${ac_cv_sizeof_uintptr_t-} }${rbcv_sizeof_type}" |
| 24653 |
|
| 24654 |
fi |
| 24655 |
} |
| 24656 |
: ${ac_cv_sizeof_uintptr_t=0} |
| 24657 |
|
| 24658 |
fi |
| 24659 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 24660 |
colorize_result "$ac_cv_sizeof_uintptr_t" ; } |
| 24661 |
{ |
| 24662 |
unset rbcv_sizeof_cond |
| 24663 |
for rbcv_sizeof_type in ${ac_cv_sizeof_uintptr_t-}; do |
| 24664 |
case "$rbcv_sizeof_type" in #( |
| 24665 |
[0-9]*|SIZEOF_*) : |
| 24666 |
|
| 24667 |
${rbcv_sizeof_cond+echo "#else"} |
| 24668 |
echo "#define SIZEOF_UINTPTR_T $rbcv_sizeof_type" |
| 24669 |
break |
| 24670 |
;; #( |
| 24671 |
*) : |
| 24672 |
|
| 24673 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 24674 |
case $rbcv_sizeof_type in #( |
| 24675 |
*:*) : |
| 24676 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 24677 |
*) : |
| 24678 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 24679 |
esac |
| 24680 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 24681 |
echo "#define SIZEOF_UINTPTR_T $rbcv_sizeof_size" |
| 24682 |
rbcv_sizeof_cond=1 |
| 24683 |
;; |
| 24684 |
esac |
| 24685 |
done |
| 24686 |
${rbcv_sizeof_cond+echo "#endif"} |
| 24687 |
} >> confdefs.h |
| 24688 |
else |
| 24689 |
# The cast to long int works around a bug in the HP C Compiler |
| 24690 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 24691 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 24692 |
# This bug is HP SR number 8606223364. |
| 24693 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 |
| 24694 |
printf %s "checking size of uintptr_t... " >&6; } |
| 24695 |
if test ${ac_cv_sizeof_uintptr_t+y} |
| 24696 |
then : |
| 24697 |
printf %s "(cached) " >&6 |
| 24698 |
else $as_nop |
| 24699 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default |
| 24700 |
" |
| 24701 |
then : |
| 24702 |
|
| 24703 |
else $as_nop |
| 24704 |
if test "$ac_cv_type_uintptr_t" = yes; then |
| 24705 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 24706 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 24707 |
as_fn_error 77 "cannot compute sizeof (uintptr_t) |
| 24708 |
See \`config.log' for more details" "$LINENO" 5; } |
| 24709 |
else |
| 24710 |
ac_cv_sizeof_uintptr_t=0 |
| 24711 |
fi |
| 24712 |
fi |
| 24713 |
|
| 24714 |
fi |
| 24715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 |
| 24716 |
colorize_result "$ac_cv_sizeof_uintptr_t" ; } |
| 24717 |
|
| 24718 |
|
| 24719 |
|
| 24720 |
printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h |
| 24721 |
|
| 24722 |
|
| 24723 |
fi |
| 24724 |
|
| 24725 |
|
| 24726 |
else $as_nop |
| 24727 |
|
| 24728 |
printf "%s\n" "#define uintptr_t $rb_cv_type_uintptr_t" >>confdefs.h |
| 24729 |
|
| 24730 |
cat >>confdefs.h <<_ACEOF |
| 24731 |
#define SIZEOF_UINTPTR_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24732 |
_ACEOF |
| 24733 |
|
| 24734 |
|
| 24735 |
fi |
| 24736 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 24737 |
|
| 24738 |
fi |
| 24739 |
|
| 24740 |
if test "x$rb_cv_type_intptr_t" != xno |
| 24741 |
then : |
| 24742 |
|
| 24743 |
|
| 24744 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for intptr_t" >&5 |
| 24745 |
printf %s "checking for printf prefix for intptr_t... " >&6; } |
| 24746 |
if test ${rb_cv_pri_prefix_intptr_t+y} |
| 24747 |
then : |
| 24748 |
printf %s "(cached) " >&6 |
| 24749 |
else $as_nop |
| 24750 |
|
| 24751 |
rb_cv_pri_prefix_intptr_t=NONE |
| 24752 |
save_CFLAGS="$CFLAGS" |
| 24753 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 24754 |
if test "${ac_c_werror_flag+set}" |
| 24755 |
then : |
| 24756 |
|
| 24757 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 24758 |
|
| 24759 |
else $as_nop |
| 24760 |
|
| 24761 |
unset rb_c_werror_flag |
| 24762 |
|
| 24763 |
fi |
| 24764 |
ac_c_werror_flag=yes |
| 24765 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 24766 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 24767 |
case " ${CFLAGS-} " in #( |
| 24768 |
*" ${rb_opt} "*) : |
| 24769 |
;; #( |
| 24770 |
' ') : |
| 24771 |
CFLAGS="${rb_opt}" ;; #( |
| 24772 |
*) : |
| 24773 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 24774 |
esac |
| 24775 |
done |
| 24776 |
for pri in '' ll I64 l; do |
| 24777 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24778 |
/* end confdefs.h. */ |
| 24779 |
#include <stdio.h> |
| 24780 |
#include <stddef.h> |
| 24781 |
#ifdef __GNUC__ |
| 24782 |
#if defined __MINGW_PRINTF_FORMAT |
| 24783 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 24784 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 24785 |
#else |
| 24786 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 24787 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 24788 |
#endif |
| 24789 |
#else |
| 24790 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 24791 |
#endif |
| 24792 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 24793 |
int |
| 24794 |
main (void) |
| 24795 |
{ |
| 24796 |
printf("%${pri}d", (intptr_t)42); |
| 24797 |
test_sprintf("%${pri}d", (intptr_t)42); |
| 24798 |
; |
| 24799 |
return 0; |
| 24800 |
} |
| 24801 |
_ACEOF |
| 24802 |
if ac_fn_c_try_compile "$LINENO" |
| 24803 |
then : |
| 24804 |
rb_cv_pri_prefix_intptr_t=$pri; break |
| 24805 |
fi |
| 24806 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24807 |
done |
| 24808 |
CFLAGS="$save_CFLAGS" |
| 24809 |
save_CFLAGS= |
| 24810 |
if test "${rb_c_werror_flag+set}" |
| 24811 |
then : |
| 24812 |
|
| 24813 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 24814 |
|
| 24815 |
else $as_nop |
| 24816 |
|
| 24817 |
unset ac_c_werror_flag |
| 24818 |
|
| 24819 |
fi |
| 24820 |
fi |
| 24821 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_intptr_t" >&5 |
| 24822 |
colorize_result "$rb_cv_pri_prefix_intptr_t" ; } |
| 24823 |
if test "$rb_cv_pri_prefix_intptr_t" != NONE |
| 24824 |
then : |
| 24825 |
|
| 24826 |
printf "%s\n" "#define PRI_PTR_PREFIX \"$rb_cv_pri_prefix_intptr_t\"" >>confdefs.h |
| 24827 |
|
| 24828 |
|
| 24829 |
fi |
| 24830 |
|
| 24831 |
|
| 24832 |
fi |
| 24833 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 24834 |
printf %s "checking for ssize_t... " >&6; } |
| 24835 |
if test ${rb_cv_type_ssize_t+y} |
| 24836 |
then : |
| 24837 |
printf %s "(cached) " >&6 |
| 24838 |
else $as_nop |
| 24839 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24840 |
/* end confdefs.h. */ |
| 24841 |
#include <sys/types.h> |
| 24842 |
|
| 24843 |
typedef ssize_t t; int s = sizeof(t) == 42; |
| 24844 |
int |
| 24845 |
main (void) |
| 24846 |
{ |
| 24847 |
|
| 24848 |
; |
| 24849 |
return 0; |
| 24850 |
} |
| 24851 |
_ACEOF |
| 24852 |
if ac_fn_c_try_compile "$LINENO" |
| 24853 |
then : |
| 24854 |
rb_cv_type_ssize_t=yes |
| 24855 |
else $as_nop |
| 24856 |
case $ac_cv_sizeof_size_t in #( |
| 24857 |
"1") : |
| 24858 |
rb_cv_type_ssize_t="signed char" ;; #( |
| 24859 |
"$ac_cv_sizeof_short") : |
| 24860 |
rb_cv_type_ssize_t="short" ;; #( |
| 24861 |
"$ac_cv_sizeof_int") : |
| 24862 |
rb_cv_type_ssize_t="int" ;; #( |
| 24863 |
"$ac_cv_sizeof_long") : |
| 24864 |
rb_cv_type_ssize_t="long" ;; #( |
| 24865 |
"$ac_cv_sizeof_long_long") : |
| 24866 |
rb_cv_type_ssize_t="long long" ;; #( |
| 24867 |
"${ac_cv_sizeof___int64#*:}") : |
| 24868 |
rb_cv_type_ssize_t="__int64" ;; #( |
| 24869 |
"${ac_cv_sizeof___int128#*:}") : |
| 24870 |
rb_cv_type_ssize_t="__int128" ;; #( |
| 24871 |
*) : |
| 24872 |
rb_cv_type_ssize_t=no ;; |
| 24873 |
esac |
| 24874 |
fi |
| 24875 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24876 |
fi |
| 24877 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_type_ssize_t" >&5 |
| 24878 |
colorize_result "$rb_cv_type_ssize_t" ; } |
| 24879 |
if test "${rb_cv_type_ssize_t}" != no |
| 24880 |
then : |
| 24881 |
|
| 24882 |
rb_defint_type="${rb_cv_type_ssize_t##unsigned }" |
| 24883 |
if test "$rb_defint_type" != yes && eval 'test -n "${ac_cv_sizeof_'$rb_defint_type'+set}"' |
| 24884 |
then : |
| 24885 |
|
| 24886 |
eval rb_defint_cond='"${ac_cv_sizeof_'$rb_defint_type'}"' |
| 24887 |
case $rb_defint_cond in #( |
| 24888 |
*:*) : |
| 24889 |
|
| 24890 |
rb_defint_cond=`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 24891 |
echo "#if defined SIZEOF_"$rb_defint_cond" && SIZEOF_"$rb_defint_cond" > 0" >> confdefs.h |
| 24892 |
;; #( |
| 24893 |
*) : |
| 24894 |
rb_defint_cond= ;; |
| 24895 |
esac |
| 24896 |
|
| 24897 |
else $as_nop |
| 24898 |
rb_defint_cond= |
| 24899 |
fi |
| 24900 |
printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h |
| 24901 |
|
| 24902 |
if test "${rb_cv_type_ssize_t}" = yes |
| 24903 |
then : |
| 24904 |
|
| 24905 |
|
| 24906 |
if test "$universal_binary" = yes; then |
| 24907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 24908 |
printf %s "checking size of ssize_t... " >&6; } |
| 24909 |
if test ${ac_cv_sizeof_ssize_t+y} |
| 24910 |
then : |
| 24911 |
printf %s "(cached) " >&6 |
| 24912 |
else $as_nop |
| 24913 |
|
| 24914 |
unset ac_cv_sizeof_ssize_t |
| 24915 |
rbcv_sizeof_var=" |
| 24916 |
typedef ssize_t ac__type_sizeof_; |
| 24917 |
static ac__type_sizeof_ *rbcv_ptr; |
| 24918 |
#define SIZEOF_SSIZE_T sizeof((*rbcv_ptr)) |
| 24919 |
" |
| 24920 |
test -z "${ac_cv_sizeof_ssize_t+set}" && { |
| 24921 |
for rbcv_sizeof_type in size_t; do |
| 24922 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24923 |
/* end confdefs.h. */ |
| 24924 |
#include <sys/types.h> |
| 24925 |
|
| 24926 |
$rbcv_sizeof_var |
| 24927 |
|
| 24928 |
int |
| 24929 |
main (void) |
| 24930 |
{ |
| 24931 |
static int test_array [1 - 2 * !(SIZEOF_SSIZE_T == sizeof($rbcv_sizeof_type))]; |
| 24932 |
test_array [0] = 0; |
| 24933 |
return test_array [0]; |
| 24934 |
|
| 24935 |
; |
| 24936 |
return 0; |
| 24937 |
} |
| 24938 |
_ACEOF |
| 24939 |
if ac_fn_c_try_compile "$LINENO" |
| 24940 |
then : |
| 24941 |
|
| 24942 |
ac_cv_sizeof_ssize_t=`printf "%s\n" "SIZEOF_$rbcv_sizeof_type" | $as_tr_cpp` |
| 24943 |
break |
| 24944 |
fi |
| 24945 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24946 |
done |
| 24947 |
} |
| 24948 |
unset rbcv_sizeof_cond |
| 24949 |
|
| 24950 |
test "${ac_cv_sizeof_ssize_t#[1-9]}" = "${ac_cv_sizeof_ssize_t}" && |
| 24951 |
test "${ac_cv_sizeof_ssize_t#SIZEOF_}" = "${ac_cv_sizeof_ssize_t}" && { |
| 24952 |
test "$universal_binary" = yes && cross_compiling=yes |
| 24953 |
if ac_fn_c_compute_int "$LINENO" "SIZEOF_SSIZE_T" "rbcv_sizeof_type" "#include <sys/types.h> |
| 24954 |
|
| 24955 |
|
| 24956 |
${rbcv_sizeof_cond+$rbcv_sizeof_cond |
| 24957 |
#else} |
| 24958 |
$rbcv_sizeof_var |
| 24959 |
${rbcv_sizeof_cond+#endif} |
| 24960 |
#ifndef SIZEOF_SSIZE_T |
| 24961 |
#define SIZEOF_SSIZE_T 0 |
| 24962 |
#endif" |
| 24963 |
then : |
| 24964 |
|
| 24965 |
else $as_nop |
| 24966 |
rbcv_sizeof_type=0 |
| 24967 |
fi |
| 24968 |
|
| 24969 |
test "$universal_binary" = yes && cross_compiling=$real_cross_compiling |
| 24970 |
if test ${rbcv_sizeof_type-0} != 0 |
| 24971 |
then : |
| 24972 |
|
| 24973 |
ac_cv_sizeof_ssize_t="${ac_cv_sizeof_ssize_t+${ac_cv_sizeof_ssize_t-} }${rbcv_sizeof_type}" |
| 24974 |
|
| 24975 |
fi |
| 24976 |
} |
| 24977 |
: ${ac_cv_sizeof_ssize_t=0} |
| 24978 |
|
| 24979 |
fi |
| 24980 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 24981 |
colorize_result "$ac_cv_sizeof_ssize_t" ; } |
| 24982 |
{ |
| 24983 |
unset rbcv_sizeof_cond |
| 24984 |
for rbcv_sizeof_type in ${ac_cv_sizeof_ssize_t-}; do |
| 24985 |
case "$rbcv_sizeof_type" in #( |
| 24986 |
[0-9]*|SIZEOF_*) : |
| 24987 |
|
| 24988 |
${rbcv_sizeof_cond+echo "#else"} |
| 24989 |
echo "#define SIZEOF_SSIZE_T $rbcv_sizeof_type" |
| 24990 |
break |
| 24991 |
;; #( |
| 24992 |
*) : |
| 24993 |
|
| 24994 |
rbcv_sizeof_size=`expr $rbcv_sizeof_type : '.*[^0-9]\([0-9][0-9]*\)$'` |
| 24995 |
case $rbcv_sizeof_type in #( |
| 24996 |
*:*) : |
| 24997 |
rbcv_sizeof_type="${rbcv_sizeof_type%:*}" ;; #( |
| 24998 |
*) : |
| 24999 |
rbcv_sizeof_size=`expr $rbcv_sizeof_size / $rb_cv_char_bit` ;; |
| 25000 |
esac |
| 25001 |
echo "#${rbcv_sizeof_cond+el}if defined(__${rbcv_sizeof_type}__) || defined(__${rbcv_sizeof_type}) || defined(_${rbcv_sizeof_type}) || defined($rbcv_sizeof_type)" |
| 25002 |
echo "#define SIZEOF_SSIZE_T $rbcv_sizeof_size" |
| 25003 |
rbcv_sizeof_cond=1 |
| 25004 |
;; |
| 25005 |
esac |
| 25006 |
done |
| 25007 |
${rbcv_sizeof_cond+echo "#endif"} |
| 25008 |
} >> confdefs.h |
| 25009 |
else |
| 25010 |
# The cast to long int works around a bug in the HP C Compiler |
| 25011 |
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 25012 |
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 25013 |
# This bug is HP SR number 8606223364. |
| 25014 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5 |
| 25015 |
printf %s "checking size of ssize_t... " >&6; } |
| 25016 |
if test ${ac_cv_sizeof_ssize_t+y} |
| 25017 |
then : |
| 25018 |
printf %s "(cached) " >&6 |
| 25019 |
else $as_nop |
| 25020 |
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "#include <sys/types.h> |
| 25021 |
|
| 25022 |
" |
| 25023 |
then : |
| 25024 |
|
| 25025 |
else $as_nop |
| 25026 |
if test "$ac_cv_type_ssize_t" = yes; then |
| 25027 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 25028 |
printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
| 25029 |
as_fn_error 77 "cannot compute sizeof (ssize_t) |
| 25030 |
See \`config.log' for more details" "$LINENO" 5; } |
| 25031 |
else |
| 25032 |
ac_cv_sizeof_ssize_t=0 |
| 25033 |
fi |
| 25034 |
fi |
| 25035 |
|
| 25036 |
fi |
| 25037 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5 |
| 25038 |
colorize_result "$ac_cv_sizeof_ssize_t" ; } |
| 25039 |
|
| 25040 |
|
| 25041 |
|
| 25042 |
printf "%s\n" "#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t" >>confdefs.h |
| 25043 |
|
| 25044 |
|
| 25045 |
fi |
| 25046 |
|
| 25047 |
|
| 25048 |
else $as_nop |
| 25049 |
|
| 25050 |
printf "%s\n" "#define ssize_t $rb_cv_type_ssize_t" >>confdefs.h |
| 25051 |
|
| 25052 |
cat >>confdefs.h <<_ACEOF |
| 25053 |
#define SIZEOF_SSIZE_T SIZEOF_`printf "%s\n" "$rb_defint_type" | $as_tr_cpp` |
| 25054 |
_ACEOF |
| 25055 |
|
| 25056 |
|
| 25057 |
fi |
| 25058 |
test -n "$rb_defint_cond" && echo "#endif /* $rb_defint_cond */" >> confdefs.h |
| 25059 |
|
| 25060 |
fi |
| 25061 |
if test "x$rb_cv_type_int64_t" != xno |
| 25062 |
then : |
| 25063 |
|
| 25064 |
|
| 25065 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for printf prefix for int64_t" >&5 |
| 25066 |
printf %s "checking for printf prefix for int64_t... " >&6; } |
| 25067 |
if test ${rb_cv_pri_prefix_int64_t+y} |
| 25068 |
then : |
| 25069 |
printf %s "(cached) " >&6 |
| 25070 |
else $as_nop |
| 25071 |
|
| 25072 |
rb_cv_pri_prefix_int64_t=NONE |
| 25073 |
save_CFLAGS="$CFLAGS" |
| 25074 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 25075 |
if test "${ac_c_werror_flag+set}" |
| 25076 |
then : |
| 25077 |
|
| 25078 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 25079 |
|
| 25080 |
else $as_nop |
| 25081 |
|
| 25082 |
unset rb_c_werror_flag |
| 25083 |
|
| 25084 |
fi |
| 25085 |
ac_c_werror_flag=yes |
| 25086 |
# RUBY_APPEND_OPTIONS(CFLAGS) |
| 25087 |
for rb_opt in $rb_cv_wsuppress_flags; do |
| 25088 |
case " ${CFLAGS-} " in #( |
| 25089 |
*" ${rb_opt} "*) : |
| 25090 |
;; #( |
| 25091 |
' ') : |
| 25092 |
CFLAGS="${rb_opt}" ;; #( |
| 25093 |
*) : |
| 25094 |
CFLAGS="$CFLAGS ${rb_opt}" ;; |
| 25095 |
esac |
| 25096 |
done |
| 25097 |
for pri in ll I64 l; do |
| 25098 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25099 |
/* end confdefs.h. */ |
| 25100 |
#include <stdio.h> |
| 25101 |
#include <stddef.h> |
| 25102 |
#ifdef __GNUC__ |
| 25103 |
#if defined __MINGW_PRINTF_FORMAT |
| 25104 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 25105 |
decl __attribute__((format(__MINGW_PRINTF_FORMAT, string_index, first_to_check))) |
| 25106 |
#else |
| 25107 |
#define PRINTF_ARGS(decl, string_index, first_to_check) \ |
| 25108 |
decl __attribute__((format(printf, string_index, first_to_check))) |
| 25109 |
#endif |
| 25110 |
#else |
| 25111 |
#define PRINTF_ARGS(decl, string_index, first_to_check) decl |
| 25112 |
#endif |
| 25113 |
PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2); |
| 25114 |
int |
| 25115 |
main (void) |
| 25116 |
{ |
| 25117 |
printf("%${pri}d", (int64_t)42); |
| 25118 |
test_sprintf("%${pri}d", (int64_t)42); |
| 25119 |
; |
| 25120 |
return 0; |
| 25121 |
} |
| 25122 |
_ACEOF |
| 25123 |
if ac_fn_c_try_compile "$LINENO" |
| 25124 |
then : |
| 25125 |
rb_cv_pri_prefix_int64_t=$pri; break |
| 25126 |
fi |
| 25127 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25128 |
done |
| 25129 |
CFLAGS="$save_CFLAGS" |
| 25130 |
save_CFLAGS= |
| 25131 |
if test "${rb_c_werror_flag+set}" |
| 25132 |
then : |
| 25133 |
|
| 25134 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 25135 |
|
| 25136 |
else $as_nop |
| 25137 |
|
| 25138 |
unset ac_c_werror_flag |
| 25139 |
|
| 25140 |
fi |
| 25141 |
fi |
| 25142 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_pri_prefix_int64_t" >&5 |
| 25143 |
colorize_result "$rb_cv_pri_prefix_int64_t" ; } |
| 25144 |
if test "$rb_cv_pri_prefix_int64_t" != NONE |
| 25145 |
then : |
| 25146 |
|
| 25147 |
printf "%s\n" "#define PRI_64_PREFIX \"$rb_cv_pri_prefix_int64_t\"" >>confdefs.h |
| 25148 |
|
| 25149 |
|
| 25150 |
fi |
| 25151 |
|
| 25152 |
|
| 25153 |
fi |
| 25154 |
|
| 25155 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stack end address" >&5 |
| 25156 |
printf %s "checking for stack end address... " >&6; } |
| 25157 |
if test ${rb_cv_stack_end_address+y} |
| 25158 |
then : |
| 25159 |
printf %s "(cached) " >&6 |
| 25160 |
else $as_nop |
| 25161 |
rb_cv_stack_end_address=no |
| 25162 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25163 |
/* end confdefs.h. */ |
| 25164 |
extern void *__libc_stack_end; |
| 25165 |
int |
| 25166 |
main (void) |
| 25167 |
{ |
| 25168 |
if (!__libc_stack_end) return 1; |
| 25169 |
; |
| 25170 |
return 0; |
| 25171 |
} |
| 25172 |
_ACEOF |
| 25173 |
if ac_fn_c_try_link "$LINENO" |
| 25174 |
then : |
| 25175 |
rb_cv_stack_end_address="__libc_stack_end" |
| 25176 |
fi |
| 25177 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25178 |
conftest$ac_exeext conftest.$ac_ext |
| 25179 |
|
| 25180 |
fi |
| 25181 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_stack_end_address" >&5 |
| 25182 |
colorize_result "$rb_cv_stack_end_address" ; } |
| 25183 |
if test $rb_cv_stack_end_address != no |
| 25184 |
then : |
| 25185 |
|
| 25186 |
printf "%s\n" "#define STACK_END_ADDRESS $rb_cv_stack_end_address" >>confdefs.h |
| 25187 |
|
| 25188 |
|
| 25189 |
fi |
| 25190 |
|
| 25191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 25192 |
printf %s "checking for grep that handles long lines and -e... " >&6; } |
| 25193 |
if test ${ac_cv_path_GREP+y} |
| 25194 |
then : |
| 25195 |
printf %s "(cached) " >&6 |
| 25196 |
else $as_nop |
| 25197 |
if test -z "$GREP"; then |
| 25198 |
ac_path_GREP_found=false |
| 25199 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 25200 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25201 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 25202 |
do |
| 25203 |
IFS=$as_save_IFS |
| 25204 |
case $as_dir in #((( |
| 25205 |
'') as_dir=./ ;; |
| 25206 |
*/) ;; |
| 25207 |
*) as_dir=$as_dir/ ;; |
| 25208 |
esac |
| 25209 |
for ac_prog in grep ggrep |
| 25210 |
do |
| 25211 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 25212 |
ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" |
| 25213 |
as_fn_executable_p "$ac_path_GREP" || continue |
| 25214 |
# Check for GNU ac_path_GREP and select it if it is found. |
| 25215 |
# Check for GNU $ac_path_GREP |
| 25216 |
case `"$ac_path_GREP" --version 2>&1` in |
| 25217 |
*GNU*) |
| 25218 |
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 25219 |
*) |
| 25220 |
ac_count=0 |
| 25221 |
printf %s 0123456789 >"conftest.in" |
| 25222 |
while : |
| 25223 |
do |
| 25224 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 25225 |
mv "conftest.tmp" "conftest.in" |
| 25226 |
cp "conftest.in" "conftest.nl" |
| 25227 |
printf "%s\n" 'GREP' >> "conftest.nl" |
| 25228 |
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 25229 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 25230 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 25231 |
if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 25232 |
# Best one so far, save it but keep looking for a better one |
| 25233 |
ac_cv_path_GREP="$ac_path_GREP" |
| 25234 |
ac_path_GREP_max=$ac_count |
| 25235 |
fi |
| 25236 |
# 10*(2^10) chars as input seems more than enough |
| 25237 |
test $ac_count -gt 10 && break |
| 25238 |
done |
| 25239 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 25240 |
esac |
| 25241 |
|
| 25242 |
$ac_path_GREP_found && break 3 |
| 25243 |
done |
| 25244 |
done |
| 25245 |
done |
| 25246 |
IFS=$as_save_IFS |
| 25247 |
if test -z "$ac_cv_path_GREP"; then |
| 25248 |
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 25249 |
fi |
| 25250 |
else |
| 25251 |
ac_cv_path_GREP=$GREP |
| 25252 |
fi |
| 25253 |
|
| 25254 |
fi |
| 25255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 25256 |
colorize_result "$ac_cv_path_GREP" ; } |
| 25257 |
GREP="$ac_cv_path_GREP" |
| 25258 |
|
| 25259 |
|
| 25260 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 25261 |
printf %s "checking for egrep... " >&6; } |
| 25262 |
if test ${ac_cv_path_EGREP+y} |
| 25263 |
then : |
| 25264 |
printf %s "(cached) " >&6 |
| 25265 |
else $as_nop |
| 25266 |
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 25267 |
then ac_cv_path_EGREP="$GREP -E" |
| 25268 |
else |
| 25269 |
if test -z "$EGREP"; then |
| 25270 |
ac_path_EGREP_found=false |
| 25271 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 25272 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25273 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 25274 |
do |
| 25275 |
IFS=$as_save_IFS |
| 25276 |
case $as_dir in #((( |
| 25277 |
'') as_dir=./ ;; |
| 25278 |
*/) ;; |
| 25279 |
*) as_dir=$as_dir/ ;; |
| 25280 |
esac |
| 25281 |
for ac_prog in egrep |
| 25282 |
do |
| 25283 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 25284 |
ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" |
| 25285 |
as_fn_executable_p "$ac_path_EGREP" || continue |
| 25286 |
# Check for GNU ac_path_EGREP and select it if it is found. |
| 25287 |
# Check for GNU $ac_path_EGREP |
| 25288 |
case `"$ac_path_EGREP" --version 2>&1` in |
| 25289 |
*GNU*) |
| 25290 |
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 25291 |
*) |
| 25292 |
ac_count=0 |
| 25293 |
printf %s 0123456789 >"conftest.in" |
| 25294 |
while : |
| 25295 |
do |
| 25296 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 25297 |
mv "conftest.tmp" "conftest.in" |
| 25298 |
cp "conftest.in" "conftest.nl" |
| 25299 |
printf "%s\n" 'EGREP' >> "conftest.nl" |
| 25300 |
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 25301 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 25302 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 25303 |
if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 25304 |
# Best one so far, save it but keep looking for a better one |
| 25305 |
ac_cv_path_EGREP="$ac_path_EGREP" |
| 25306 |
ac_path_EGREP_max=$ac_count |
| 25307 |
fi |
| 25308 |
# 10*(2^10) chars as input seems more than enough |
| 25309 |
test $ac_count -gt 10 && break |
| 25310 |
done |
| 25311 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 25312 |
esac |
| 25313 |
|
| 25314 |
$ac_path_EGREP_found && break 3 |
| 25315 |
done |
| 25316 |
done |
| 25317 |
done |
| 25318 |
IFS=$as_save_IFS |
| 25319 |
if test -z "$ac_cv_path_EGREP"; then |
| 25320 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 25321 |
fi |
| 25322 |
else |
| 25323 |
ac_cv_path_EGREP=$EGREP |
| 25324 |
fi |
| 25325 |
|
| 25326 |
fi |
| 25327 |
fi |
| 25328 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 25329 |
colorize_result "$ac_cv_path_EGREP" ; } |
| 25330 |
EGREP="$ac_cv_path_EGREP" |
| 25331 |
|
| 25332 |
|
| 25333 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 |
| 25334 |
printf %s "checking for uid_t in sys/types.h... " >&6; } |
| 25335 |
if test ${ac_cv_type_uid_t+y} |
| 25336 |
then : |
| 25337 |
printf %s "(cached) " >&6 |
| 25338 |
else $as_nop |
| 25339 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25340 |
/* end confdefs.h. */ |
| 25341 |
#include <sys/types.h> |
| 25342 |
|
| 25343 |
_ACEOF |
| 25344 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25345 |
$EGREP "uid_t" >/dev/null 2>&1 |
| 25346 |
then : |
| 25347 |
ac_cv_type_uid_t=yes |
| 25348 |
else $as_nop |
| 25349 |
ac_cv_type_uid_t=no |
| 25350 |
fi |
| 25351 |
rm -rf conftest* |
| 25352 |
|
| 25353 |
fi |
| 25354 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 |
| 25355 |
colorize_result "$ac_cv_type_uid_t" ; } |
| 25356 |
if test $ac_cv_type_uid_t = no; then |
| 25357 |
|
| 25358 |
printf "%s\n" "#define uid_t int" >>confdefs.h |
| 25359 |
|
| 25360 |
|
| 25361 |
printf "%s\n" "#define gid_t int" >>confdefs.h |
| 25362 |
|
| 25363 |
fi |
| 25364 |
|
| 25365 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
| 25366 |
printf %s "checking type of array argument to getgroups... " >&6; } |
| 25367 |
if test ${ac_cv_type_getgroups+y} |
| 25368 |
then : |
| 25369 |
printf %s "(cached) " >&6 |
| 25370 |
else $as_nop |
| 25371 |
if test "$cross_compiling" = yes |
| 25372 |
then : |
| 25373 |
ac_cv_type_getgroups=cross |
| 25374 |
else $as_nop |
| 25375 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25376 |
/* end confdefs.h. */ |
| 25377 |
/* Thanks to Mike Rendell for this test. */ |
| 25378 |
$ac_includes_default |
| 25379 |
#define NGID 256 |
| 25380 |
#undef MAX |
| 25381 |
#define MAX(x, y) ((x) > (y) ? (x) : (y)) |
| 25382 |
|
| 25383 |
int |
| 25384 |
main (void) |
| 25385 |
{ |
| 25386 |
gid_t gidset[NGID]; |
| 25387 |
int i, n; |
| 25388 |
union { gid_t gval; long int lval; } val; |
| 25389 |
|
| 25390 |
val.lval = -1; |
| 25391 |
for (i = 0; i < NGID; i++) |
| 25392 |
gidset[i] = val.gval; |
| 25393 |
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, |
| 25394 |
gidset); |
| 25395 |
/* Exit non-zero if getgroups seems to require an array of ints. This |
| 25396 |
happens when gid_t is short int but getgroups modifies an array |
| 25397 |
of ints. */ |
| 25398 |
return n > 0 && gidset[n] != val.gval; |
| 25399 |
} |
| 25400 |
_ACEOF |
| 25401 |
if ac_fn_c_try_run "$LINENO" |
| 25402 |
then : |
| 25403 |
ac_cv_type_getgroups=gid_t |
| 25404 |
else $as_nop |
| 25405 |
ac_cv_type_getgroups=int |
| 25406 |
fi |
| 25407 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25408 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25409 |
fi |
| 25410 |
|
| 25411 |
if test $ac_cv_type_getgroups = cross; then |
| 25412 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25413 |
/* end confdefs.h. */ |
| 25414 |
#include <unistd.h> |
| 25415 |
|
| 25416 |
_ACEOF |
| 25417 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 25418 |
$EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1 |
| 25419 |
then : |
| 25420 |
ac_cv_type_getgroups=gid_t |
| 25421 |
else $as_nop |
| 25422 |
ac_cv_type_getgroups=int |
| 25423 |
fi |
| 25424 |
rm -rf conftest* |
| 25425 |
|
| 25426 |
fi |
| 25427 |
fi |
| 25428 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 |
| 25429 |
colorize_result "$ac_cv_type_getgroups" ; } |
| 25430 |
|
| 25431 |
printf "%s\n" "#define GETGROUPS_T $ac_cv_type_getgroups" >>confdefs.h |
| 25432 |
|
| 25433 |
|
| 25434 |
case "${target_cpu}-${target_os}:${target_archs}" in #( |
| 25435 |
powerpc*-darwin*) : |
| 25436 |
|
| 25437 |
|
| 25438 |
ALLOCA=\${LIBOBJDIR}alloca.${ac_objext} |
| 25439 |
|
| 25440 |
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
| 25441 |
|
| 25442 |
printf "%s\n" "#define alloca alloca" >>confdefs.h |
| 25443 |
|
| 25444 |
;; #( |
| 25445 |
universal-darwin*:*ppc*) : |
| 25446 |
|
| 25447 |
|
| 25448 |
ALLOCA=\${LIBOBJDIR}alloca.${ac_objext} |
| 25449 |
|
| 25450 |
printf "#if %s\n" "defined __POWERPC__" >>confdefs.h |
| 25451 |
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
| 25452 |
printf "#endif /* %s */\n" "defined __POWERPC__" >>confdefs.h |
| 25453 |
# Darwin defines __POWERPC__ for ppc and ppc64 both |
| 25454 |
printf "#if %s\n" "defined __POWERPC__" >>confdefs.h |
| 25455 |
printf "%s\n" "#define alloca alloca" >>confdefs.h |
| 25456 |
printf "#endif /* %s */\n" "defined __POWERPC__" >>confdefs.h |
| 25457 |
|
| 25458 |
;; #( |
| 25459 |
*) : |
| 25460 |
|
| 25461 |
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 25462 |
# for constant arguments. Useless! |
| 25463 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 25464 |
printf %s "checking for working alloca.h... " >&6; } |
| 25465 |
if test ${ac_cv_working_alloca_h+y} |
| 25466 |
then : |
| 25467 |
printf %s "(cached) " >&6 |
| 25468 |
else $as_nop |
| 25469 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25470 |
/* end confdefs.h. */ |
| 25471 |
#include <alloca.h> |
| 25472 |
int |
| 25473 |
main (void) |
| 25474 |
{ |
| 25475 |
char *p = (char *) alloca (2 * sizeof (int)); |
| 25476 |
if (p) return 0; |
| 25477 |
; |
| 25478 |
return 0; |
| 25479 |
} |
| 25480 |
_ACEOF |
| 25481 |
if ac_fn_c_try_link "$LINENO" |
| 25482 |
then : |
| 25483 |
ac_cv_working_alloca_h=yes |
| 25484 |
else $as_nop |
| 25485 |
ac_cv_working_alloca_h=no |
| 25486 |
fi |
| 25487 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25488 |
conftest$ac_exeext conftest.$ac_ext |
| 25489 |
fi |
| 25490 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 25491 |
colorize_result "$ac_cv_working_alloca_h" ; } |
| 25492 |
if test $ac_cv_working_alloca_h = yes; then |
| 25493 |
|
| 25494 |
printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 25495 |
|
| 25496 |
fi |
| 25497 |
|
| 25498 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 25499 |
printf %s "checking for alloca... " >&6; } |
| 25500 |
if test ${ac_cv_func_alloca_works+y} |
| 25501 |
then : |
| 25502 |
printf %s "(cached) " >&6 |
| 25503 |
else $as_nop |
| 25504 |
if test $ac_cv_working_alloca_h = yes; then |
| 25505 |
ac_cv_func_alloca_works=yes |
| 25506 |
else |
| 25507 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25508 |
/* end confdefs.h. */ |
| 25509 |
#include <stdlib.h> |
| 25510 |
#include <stddef.h> |
| 25511 |
#ifndef alloca |
| 25512 |
# ifdef __GNUC__ |
| 25513 |
# define alloca __builtin_alloca |
| 25514 |
# elif defined _MSC_VER |
| 25515 |
# include <malloc.h> |
| 25516 |
# define alloca _alloca |
| 25517 |
# else |
| 25518 |
# ifdef __cplusplus |
| 25519 |
extern "C" |
| 25520 |
# endif |
| 25521 |
void *alloca (size_t); |
| 25522 |
# endif |
| 25523 |
#endif |
| 25524 |
|
| 25525 |
int |
| 25526 |
main (void) |
| 25527 |
{ |
| 25528 |
char *p = (char *) alloca (1); |
| 25529 |
if (p) return 0; |
| 25530 |
; |
| 25531 |
return 0; |
| 25532 |
} |
| 25533 |
_ACEOF |
| 25534 |
if ac_fn_c_try_link "$LINENO" |
| 25535 |
then : |
| 25536 |
ac_cv_func_alloca_works=yes |
| 25537 |
else $as_nop |
| 25538 |
ac_cv_func_alloca_works=no |
| 25539 |
fi |
| 25540 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25541 |
conftest$ac_exeext conftest.$ac_ext |
| 25542 |
fi |
| 25543 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 25544 |
colorize_result "$ac_cv_func_alloca_works" ; } |
| 25545 |
fi |
| 25546 |
|
| 25547 |
if test $ac_cv_func_alloca_works = yes; then |
| 25548 |
|
| 25549 |
printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h |
| 25550 |
|
| 25551 |
else |
| 25552 |
# The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 25553 |
# that cause trouble. Some versions do not even contain alloca or |
| 25554 |
# contain a buggy version. If you still want to use their alloca, |
| 25555 |
# use ar to extract alloca.o from them instead of compiling alloca.c. |
| 25556 |
|
| 25557 |
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 25558 |
|
| 25559 |
printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h |
| 25560 |
|
| 25561 |
|
| 25562 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 25563 |
printf %s "checking stack direction for C alloca... " >&6; } |
| 25564 |
if test ${ac_cv_c_stack_direction+y} |
| 25565 |
then : |
| 25566 |
printf %s "(cached) " >&6 |
| 25567 |
else $as_nop |
| 25568 |
if test "$cross_compiling" = yes |
| 25569 |
then : |
| 25570 |
ac_cv_c_stack_direction=0 |
| 25571 |
else $as_nop |
| 25572 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25573 |
/* end confdefs.h. */ |
| 25574 |
$ac_includes_default |
| 25575 |
int |
| 25576 |
find_stack_direction (int *addr, int depth) |
| 25577 |
{ |
| 25578 |
int dir, dummy = 0; |
| 25579 |
if (! addr) |
| 25580 |
addr = &dummy; |
| 25581 |
*addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 25582 |
dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 25583 |
return dir + dummy; |
| 25584 |
} |
| 25585 |
|
| 25586 |
int |
| 25587 |
main (int argc, char **argv) |
| 25588 |
{ |
| 25589 |
return find_stack_direction (0, argc + !argv + 20) < 0; |
| 25590 |
} |
| 25591 |
_ACEOF |
| 25592 |
if ac_fn_c_try_run "$LINENO" |
| 25593 |
then : |
| 25594 |
ac_cv_c_stack_direction=1 |
| 25595 |
else $as_nop |
| 25596 |
ac_cv_c_stack_direction=-1 |
| 25597 |
fi |
| 25598 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25599 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25600 |
fi |
| 25601 |
|
| 25602 |
fi |
| 25603 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 25604 |
colorize_result "$ac_cv_c_stack_direction" ; } |
| 25605 |
printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h |
| 25606 |
|
| 25607 |
|
| 25608 |
fi |
| 25609 |
|
| 25610 |
;; |
| 25611 |
esac |
| 25612 |
if test "x$ALLOCA" = "x" |
| 25613 |
then : |
| 25614 |
|
| 25615 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dynamic size alloca" >&5 |
| 25616 |
printf %s "checking for dynamic size alloca... " >&6; } |
| 25617 |
if test ${rb_cv_dynamic_alloca+y} |
| 25618 |
then : |
| 25619 |
printf %s "(cached) " >&6 |
| 25620 |
else $as_nop |
| 25621 |
|
| 25622 |
for chk in ok __chkstk; do |
| 25623 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25624 |
/* end confdefs.h. */ |
| 25625 |
|
| 25626 |
#ifdef HAVE_ALLOCA_H |
| 25627 |
#include <alloca.h> |
| 25628 |
#endif |
| 25629 |
void $chk() {} |
| 25630 |
int dynamic_alloca_test; |
| 25631 |
int dynamic_alloca_result; |
| 25632 |
int |
| 25633 |
main (void) |
| 25634 |
{ |
| 25635 |
dynamic_alloca_result = alloca(dynamic_alloca_test) != 0; |
| 25636 |
; |
| 25637 |
return 0; |
| 25638 |
} |
| 25639 |
_ACEOF |
| 25640 |
if ac_fn_c_try_link "$LINENO" |
| 25641 |
then : |
| 25642 |
rb_cv_dynamic_alloca=$chk; break |
| 25643 |
fi |
| 25644 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 25645 |
conftest$ac_exeext conftest.$ac_ext |
| 25646 |
done |
| 25647 |
fi |
| 25648 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dynamic_alloca" >&5 |
| 25649 |
colorize_result "$rb_cv_dynamic_alloca" ; } |
| 25650 |
if test "x$rb_cv_dynamic_alloca" = "x__chkstk" |
| 25651 |
then : |
| 25652 |
|
| 25653 |
printf "%s\n" "#define RUBY_ALLOCA_CHKSTK _$rb_cv_dynamic_alloca" >>confdefs.h |
| 25654 |
|
| 25655 |
case "$target_cpu" in #( |
| 25656 |
x64|x86_64) : |
| 25657 |
|
| 25658 |
ALLOCA=\${LIBOBJDIR}x86_64-chkstk.${ac_objext} |
| 25659 |
|
| 25660 |
;; #( |
| 25661 |
*) : |
| 25662 |
;; |
| 25663 |
esac |
| 25664 |
|
| 25665 |
fi |
| 25666 |
|
| 25667 |
fi |
| 25668 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 |
| 25669 |
printf %s "checking for working memcmp... " >&6; } |
| 25670 |
if test ${ac_cv_func_memcmp_working+y} |
| 25671 |
then : |
| 25672 |
printf %s "(cached) " >&6 |
| 25673 |
else $as_nop |
| 25674 |
if test "$cross_compiling" = yes |
| 25675 |
then : |
| 25676 |
ac_cv_func_memcmp_working=no |
| 25677 |
else $as_nop |
| 25678 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 25679 |
/* end confdefs.h. */ |
| 25680 |
$ac_includes_default |
| 25681 |
int |
| 25682 |
main (void) |
| 25683 |
{ |
| 25684 |
|
| 25685 |
/* Some versions of memcmp are not 8-bit clean. */ |
| 25686 |
char c0 = '\100', c1 = '\200', c2 = '\201'; |
| 25687 |
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
| 25688 |
return 1; |
| 25689 |
|
| 25690 |
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
| 25691 |
or more and with at least one buffer not starting on a 4-byte boundary. |
| 25692 |
William Lewis provided this test program. */ |
| 25693 |
{ |
| 25694 |
char foo[21]; |
| 25695 |
char bar[21]; |
| 25696 |
int i; |
| 25697 |
for (i = 0; i < 4; i++) |
| 25698 |
{ |
| 25699 |
char *a = foo + i; |
| 25700 |
char *b = bar + i; |
| 25701 |
strcpy (a, "--------01111111"); |
| 25702 |
strcpy (b, "--------10000000"); |
| 25703 |
if (memcmp (a, b, 16) >= 0) |
| 25704 |
return 1; |
| 25705 |
} |
| 25706 |
return 0; |
| 25707 |
} |
| 25708 |
|
| 25709 |
; |
| 25710 |
return 0; |
| 25711 |
} |
| 25712 |
_ACEOF |
| 25713 |
if ac_fn_c_try_run "$LINENO" |
| 25714 |
then : |
| 25715 |
ac_cv_func_memcmp_working=yes |
| 25716 |
else $as_nop |
| 25717 |
ac_cv_func_memcmp_working=no |
| 25718 |
fi |
| 25719 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 25720 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 25721 |
fi |
| 25722 |
|
| 25723 |
fi |
| 25724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 |
| 25725 |
colorize_result "$ac_cv_func_memcmp_working" ; } |
| 25726 |
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
| 25727 |
*" memcmp.$ac_objext "* ) ;; |
| 25728 |
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
| 25729 |
;; |
| 25730 |
esac |
| 25731 |
|
| 25732 |
|
| 25733 |
|
| 25734 |
case "$target_os" in #( |
| 25735 |
freebsd*) : |
| 25736 |
|
| 25737 |
printf "%s\n" "#define BROKEN_CLOSE 1" >>confdefs.h |
| 25738 |
|
| 25739 |
ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close" |
| 25740 |
if test "x$ac_cv_func_close" = xyes |
| 25741 |
then : |
| 25742 |
printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h |
| 25743 |
|
| 25744 |
else $as_nop |
| 25745 |
case " $LIBOBJS " in |
| 25746 |
*" close.$ac_objext "* ) ;; |
| 25747 |
*) LIBOBJS="$LIBOBJS close.$ac_objext" |
| 25748 |
;; |
| 25749 |
esac |
| 25750 |
|
| 25751 |
fi |
| 25752 |
|
| 25753 |
;; #( |
| 25754 |
*) : |
| 25755 |
;; |
| 25756 |
esac |
| 25757 |
|
| 25758 |
# dup and dup2 are always available except for WASI |
| 25759 |
case "$target_os" in #( |
| 25760 |
wasi*) : |
| 25761 |
;; #( |
| 25762 |
*) : |
| 25763 |
|
| 25764 |
|
| 25765 |
# RUBY_REQUIRE_FUNC([dup], []) |
| 25766 |
ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup" |
| 25767 |
if test "x$ac_cv_func_dup" = xyes |
| 25768 |
then : |
| 25769 |
printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h |
| 25770 |
|
| 25771 |
fi |
| 25772 |
|
| 25773 |
if test "$ac_cv_func_dup" = yes |
| 25774 |
then : |
| 25775 |
|
| 25776 |
else $as_nop |
| 25777 |
as_fn_error $? "dup() must be supported" "$LINENO" 5 |
| 25778 |
fi |
| 25779 |
|
| 25780 |
# RUBY_REQUIRE_FUNC([dup2], []) |
| 25781 |
ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" |
| 25782 |
if test "x$ac_cv_func_dup2" = xyes |
| 25783 |
then : |
| 25784 |
printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h |
| 25785 |
|
| 25786 |
fi |
| 25787 |
|
| 25788 |
if test "$ac_cv_func_dup2" = yes |
| 25789 |
then : |
| 25790 |
|
| 25791 |
else $as_nop |
| 25792 |
as_fn_error $? "dup2() must be supported" "$LINENO" 5 |
| 25793 |
fi |
| 25794 |
|
| 25795 |
|
| 25796 |
;; |
| 25797 |
esac |
| 25798 |
|
| 25799 |
ac_fn_c_check_func "$LINENO" "acosh" "ac_cv_func_acosh" |
| 25800 |
if test "x$ac_cv_func_acosh" = xyes |
| 25801 |
then : |
| 25802 |
printf "%s\n" "#define HAVE_ACOSH 1" >>confdefs.h |
| 25803 |
|
| 25804 |
else $as_nop |
| 25805 |
case " $LIBOBJS " in |
| 25806 |
*" acosh.$ac_objext "* ) ;; |
| 25807 |
*) LIBOBJS="$LIBOBJS acosh.$ac_objext" |
| 25808 |
;; |
| 25809 |
esac |
| 25810 |
|
| 25811 |
fi |
| 25812 |
|
| 25813 |
ac_fn_c_check_func "$LINENO" "cbrt" "ac_cv_func_cbrt" |
| 25814 |
if test "x$ac_cv_func_cbrt" = xyes |
| 25815 |
then : |
| 25816 |
printf "%s\n" "#define HAVE_CBRT 1" >>confdefs.h |
| 25817 |
|
| 25818 |
else $as_nop |
| 25819 |
case " $LIBOBJS " in |
| 25820 |
*" cbrt.$ac_objext "* ) ;; |
| 25821 |
*) LIBOBJS="$LIBOBJS cbrt.$ac_objext" |
| 25822 |
;; |
| 25823 |
esac |
| 25824 |
|
| 25825 |
fi |
| 25826 |
|
| 25827 |
ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" |
| 25828 |
if test "x$ac_cv_func_crypt" = xyes |
| 25829 |
then : |
| 25830 |
printf "%s\n" "#define HAVE_CRYPT 1" >>confdefs.h |
| 25831 |
|
| 25832 |
else $as_nop |
| 25833 |
case " $LIBOBJS " in |
| 25834 |
*" crypt.$ac_objext "* ) ;; |
| 25835 |
*) LIBOBJS="$LIBOBJS crypt.$ac_objext" |
| 25836 |
;; |
| 25837 |
esac |
| 25838 |
|
| 25839 |
fi |
| 25840 |
|
| 25841 |
ac_fn_c_check_func "$LINENO" "erf" "ac_cv_func_erf" |
| 25842 |
if test "x$ac_cv_func_erf" = xyes |
| 25843 |
then : |
| 25844 |
printf "%s\n" "#define HAVE_ERF 1" >>confdefs.h |
| 25845 |
|
| 25846 |
else $as_nop |
| 25847 |
case " $LIBOBJS " in |
| 25848 |
*" erf.$ac_objext "* ) ;; |
| 25849 |
*) LIBOBJS="$LIBOBJS erf.$ac_objext" |
| 25850 |
;; |
| 25851 |
esac |
| 25852 |
|
| 25853 |
fi |
| 25854 |
|
| 25855 |
ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" |
| 25856 |
if test "x$ac_cv_func_explicit_bzero" = xyes |
| 25857 |
then : |
| 25858 |
printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h |
| 25859 |
|
| 25860 |
else $as_nop |
| 25861 |
case " $LIBOBJS " in |
| 25862 |
*" explicit_bzero.$ac_objext "* ) ;; |
| 25863 |
*) LIBOBJS="$LIBOBJS explicit_bzero.$ac_objext" |
| 25864 |
;; |
| 25865 |
esac |
| 25866 |
|
| 25867 |
fi |
| 25868 |
|
| 25869 |
ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" |
| 25870 |
if test "x$ac_cv_func_ffs" = xyes |
| 25871 |
then : |
| 25872 |
printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h |
| 25873 |
|
| 25874 |
else $as_nop |
| 25875 |
case " $LIBOBJS " in |
| 25876 |
*" ffs.$ac_objext "* ) ;; |
| 25877 |
*) LIBOBJS="$LIBOBJS ffs.$ac_objext" |
| 25878 |
;; |
| 25879 |
esac |
| 25880 |
|
| 25881 |
fi |
| 25882 |
|
| 25883 |
ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" |
| 25884 |
if test "x$ac_cv_func_flock" = xyes |
| 25885 |
then : |
| 25886 |
printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h |
| 25887 |
|
| 25888 |
else $as_nop |
| 25889 |
case " $LIBOBJS " in |
| 25890 |
*" flock.$ac_objext "* ) ;; |
| 25891 |
*) LIBOBJS="$LIBOBJS flock.$ac_objext" |
| 25892 |
;; |
| 25893 |
esac |
| 25894 |
|
| 25895 |
fi |
| 25896 |
|
| 25897 |
ac_fn_c_check_func "$LINENO" "hypot" "ac_cv_func_hypot" |
| 25898 |
if test "x$ac_cv_func_hypot" = xyes |
| 25899 |
then : |
| 25900 |
printf "%s\n" "#define HAVE_HYPOT 1" >>confdefs.h |
| 25901 |
|
| 25902 |
else $as_nop |
| 25903 |
case " $LIBOBJS " in |
| 25904 |
*" hypot.$ac_objext "* ) ;; |
| 25905 |
*) LIBOBJS="$LIBOBJS hypot.$ac_objext" |
| 25906 |
;; |
| 25907 |
esac |
| 25908 |
|
| 25909 |
fi |
| 25910 |
|
| 25911 |
ac_fn_c_check_func "$LINENO" "lgamma_r" "ac_cv_func_lgamma_r" |
| 25912 |
if test "x$ac_cv_func_lgamma_r" = xyes |
| 25913 |
then : |
| 25914 |
printf "%s\n" "#define HAVE_LGAMMA_R 1" >>confdefs.h |
| 25915 |
|
| 25916 |
else $as_nop |
| 25917 |
case " $LIBOBJS " in |
| 25918 |
*" lgamma_r.$ac_objext "* ) ;; |
| 25919 |
*) LIBOBJS="$LIBOBJS lgamma_r.$ac_objext" |
| 25920 |
;; |
| 25921 |
esac |
| 25922 |
|
| 25923 |
fi |
| 25924 |
|
| 25925 |
ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" |
| 25926 |
if test "x$ac_cv_func_memmove" = xyes |
| 25927 |
then : |
| 25928 |
printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h |
| 25929 |
|
| 25930 |
else $as_nop |
| 25931 |
case " $LIBOBJS " in |
| 25932 |
*" memmove.$ac_objext "* ) ;; |
| 25933 |
*) LIBOBJS="$LIBOBJS memmove.$ac_objext" |
| 25934 |
;; |
| 25935 |
esac |
| 25936 |
|
| 25937 |
fi |
| 25938 |
|
| 25939 |
ac_fn_c_check_func "$LINENO" "nan" "ac_cv_func_nan" |
| 25940 |
if test "x$ac_cv_func_nan" = xyes |
| 25941 |
then : |
| 25942 |
printf "%s\n" "#define HAVE_NAN 1" >>confdefs.h |
| 25943 |
|
| 25944 |
else $as_nop |
| 25945 |
case " $LIBOBJS " in |
| 25946 |
*" nan.$ac_objext "* ) ;; |
| 25947 |
*) LIBOBJS="$LIBOBJS nan.$ac_objext" |
| 25948 |
;; |
| 25949 |
esac |
| 25950 |
|
| 25951 |
fi |
| 25952 |
|
| 25953 |
ac_fn_c_check_func "$LINENO" "nextafter" "ac_cv_func_nextafter" |
| 25954 |
if test "x$ac_cv_func_nextafter" = xyes |
| 25955 |
then : |
| 25956 |
printf "%s\n" "#define HAVE_NEXTAFTER 1" >>confdefs.h |
| 25957 |
|
| 25958 |
else $as_nop |
| 25959 |
case " $LIBOBJS " in |
| 25960 |
*" nextafter.$ac_objext "* ) ;; |
| 25961 |
*) LIBOBJS="$LIBOBJS nextafter.$ac_objext" |
| 25962 |
;; |
| 25963 |
esac |
| 25964 |
|
| 25965 |
fi |
| 25966 |
|
| 25967 |
ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle" |
| 25968 |
if test "x$ac_cv_func_setproctitle" = xyes |
| 25969 |
then : |
| 25970 |
printf "%s\n" "#define HAVE_SETPROCTITLE 1" >>confdefs.h |
| 25971 |
|
| 25972 |
else $as_nop |
| 25973 |
case " $LIBOBJS " in |
| 25974 |
*" setproctitle.$ac_objext "* ) ;; |
| 25975 |
*) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" |
| 25976 |
;; |
| 25977 |
esac |
| 25978 |
|
| 25979 |
fi |
| 25980 |
|
| 25981 |
ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" |
| 25982 |
if test "x$ac_cv_func_strchr" = xyes |
| 25983 |
then : |
| 25984 |
printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h |
| 25985 |
|
| 25986 |
else $as_nop |
| 25987 |
case " $LIBOBJS " in |
| 25988 |
*" strchr.$ac_objext "* ) ;; |
| 25989 |
*) LIBOBJS="$LIBOBJS strchr.$ac_objext" |
| 25990 |
;; |
| 25991 |
esac |
| 25992 |
|
| 25993 |
fi |
| 25994 |
|
| 25995 |
ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" |
| 25996 |
if test "x$ac_cv_func_strerror" = xyes |
| 25997 |
then : |
| 25998 |
printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h |
| 25999 |
|
| 26000 |
else $as_nop |
| 26001 |
case " $LIBOBJS " in |
| 26002 |
*" strerror.$ac_objext "* ) ;; |
| 26003 |
*) LIBOBJS="$LIBOBJS strerror.$ac_objext" |
| 26004 |
;; |
| 26005 |
esac |
| 26006 |
|
| 26007 |
fi |
| 26008 |
|
| 26009 |
ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" |
| 26010 |
if test "x$ac_cv_func_strlcat" = xyes |
| 26011 |
then : |
| 26012 |
printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h |
| 26013 |
|
| 26014 |
else $as_nop |
| 26015 |
case " $LIBOBJS " in |
| 26016 |
*" strlcat.$ac_objext "* ) ;; |
| 26017 |
*) LIBOBJS="$LIBOBJS strlcat.$ac_objext" |
| 26018 |
;; |
| 26019 |
esac |
| 26020 |
|
| 26021 |
fi |
| 26022 |
|
| 26023 |
ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" |
| 26024 |
if test "x$ac_cv_func_strlcpy" = xyes |
| 26025 |
then : |
| 26026 |
printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h |
| 26027 |
|
| 26028 |
else $as_nop |
| 26029 |
case " $LIBOBJS " in |
| 26030 |
*" strlcpy.$ac_objext "* ) ;; |
| 26031 |
*) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" |
| 26032 |
;; |
| 26033 |
esac |
| 26034 |
|
| 26035 |
fi |
| 26036 |
|
| 26037 |
ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" |
| 26038 |
if test "x$ac_cv_func_strstr" = xyes |
| 26039 |
then : |
| 26040 |
printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h |
| 26041 |
|
| 26042 |
else $as_nop |
| 26043 |
case " $LIBOBJS " in |
| 26044 |
*" strstr.$ac_objext "* ) ;; |
| 26045 |
*) LIBOBJS="$LIBOBJS strstr.$ac_objext" |
| 26046 |
;; |
| 26047 |
esac |
| 26048 |
|
| 26049 |
fi |
| 26050 |
|
| 26051 |
ac_fn_c_check_func "$LINENO" "tgamma" "ac_cv_func_tgamma" |
| 26052 |
if test "x$ac_cv_func_tgamma" = xyes |
| 26053 |
then : |
| 26054 |
printf "%s\n" "#define HAVE_TGAMMA 1" >>confdefs.h |
| 26055 |
|
| 26056 |
else $as_nop |
| 26057 |
case " $LIBOBJS " in |
| 26058 |
*" tgamma.$ac_objext "* ) ;; |
| 26059 |
*) LIBOBJS="$LIBOBJS tgamma.$ac_objext" |
| 26060 |
;; |
| 26061 |
esac |
| 26062 |
|
| 26063 |
fi |
| 26064 |
|
| 26065 |
|
| 26066 |
printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h |
| 26067 |
# C99; backward compatibility |
| 26068 |
|
| 26069 |
# for missing/setproctitle.c |
| 26070 |
case "$target_os" in #( |
| 26071 |
aix* | k*bsd*-gnu | kopensolaris*-gnu | linux* | darwin*) : |
| 26072 |
printf "%s\n" "#define SPT_TYPE SPT_REUSEARGV" >>confdefs.h |
| 26073 |
;; #( |
| 26074 |
*) : |
| 26075 |
;; |
| 26076 |
esac |
| 26077 |
ac_fn_c_check_header_compile "$LINENO" "sys/pstat.h" "ac_cv_header_sys_pstat_h" "$ac_includes_default" |
| 26078 |
if test "x$ac_cv_header_sys_pstat_h" = xyes |
| 26079 |
then : |
| 26080 |
printf "%s\n" "#define HAVE_SYS_PSTAT_H 1" >>confdefs.h |
| 26081 |
|
| 26082 |
fi |
| 26083 |
|
| 26084 |
|
| 26085 |
|
| 26086 |
printf "%s\n" "#define HAVE_SIGNBIT 1" >>confdefs.h |
| 26087 |
# C99; backward compatibility |
| 26088 |
|
| 26089 |
|
| 26090 |
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default |
| 26091 |
" |
| 26092 |
if test "x$ac_cv_type_pid_t" = xyes |
| 26093 |
then : |
| 26094 |
|
| 26095 |
else $as_nop |
| 26096 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26097 |
/* end confdefs.h. */ |
| 26098 |
|
| 26099 |
#if defined _WIN64 && !defined __CYGWIN__ |
| 26100 |
LLP64 |
| 26101 |
#endif |
| 26102 |
|
| 26103 |
int |
| 26104 |
main (void) |
| 26105 |
{ |
| 26106 |
|
| 26107 |
; |
| 26108 |
return 0; |
| 26109 |
} |
| 26110 |
|
| 26111 |
_ACEOF |
| 26112 |
if ac_fn_c_try_compile "$LINENO" |
| 26113 |
then : |
| 26114 |
ac_pid_type='int' |
| 26115 |
else $as_nop |
| 26116 |
ac_pid_type='__int64' |
| 26117 |
fi |
| 26118 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26119 |
|
| 26120 |
printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h |
| 26121 |
|
| 26122 |
|
| 26123 |
fi |
| 26124 |
|
| 26125 |
|
| 26126 |
|
| 26127 |
ac_func= |
| 26128 |
for ac_item in $ac_func_c_list |
| 26129 |
do |
| 26130 |
if test $ac_func; then |
| 26131 |
ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func |
| 26132 |
if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then |
| 26133 |
echo "#define $ac_item 1" >> confdefs.h |
| 26134 |
fi |
| 26135 |
ac_func= |
| 26136 |
else |
| 26137 |
ac_func=$ac_item |
| 26138 |
fi |
| 26139 |
done |
| 26140 |
|
| 26141 |
|
| 26142 |
|
| 26143 |
if test "x$ac_cv_func_fork" = xyes; then |
| 26144 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 26145 |
printf %s "checking for working fork... " >&6; } |
| 26146 |
if test ${ac_cv_func_fork_works+y} |
| 26147 |
then : |
| 26148 |
printf %s "(cached) " >&6 |
| 26149 |
else $as_nop |
| 26150 |
if test "$cross_compiling" = yes |
| 26151 |
then : |
| 26152 |
ac_cv_func_fork_works=cross |
| 26153 |
else $as_nop |
| 26154 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26155 |
/* end confdefs.h. */ |
| 26156 |
$ac_includes_default |
| 26157 |
int |
| 26158 |
main (void) |
| 26159 |
{ |
| 26160 |
|
| 26161 |
/* By Ruediger Kuhlmann. */ |
| 26162 |
return fork () < 0; |
| 26163 |
|
| 26164 |
; |
| 26165 |
return 0; |
| 26166 |
} |
| 26167 |
_ACEOF |
| 26168 |
if ac_fn_c_try_run "$LINENO" |
| 26169 |
then : |
| 26170 |
ac_cv_func_fork_works=yes |
| 26171 |
else $as_nop |
| 26172 |
ac_cv_func_fork_works=no |
| 26173 |
fi |
| 26174 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 26175 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26176 |
fi |
| 26177 |
|
| 26178 |
fi |
| 26179 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 26180 |
colorize_result "$ac_cv_func_fork_works" ; } |
| 26181 |
|
| 26182 |
else |
| 26183 |
ac_cv_func_fork_works=$ac_cv_func_fork |
| 26184 |
fi |
| 26185 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 26186 |
case $host in |
| 26187 |
*-*-amigaos* | *-*-msdosdjgpp*) |
| 26188 |
# Override, as these systems have only a dummy fork() stub |
| 26189 |
ac_cv_func_fork_works=no |
| 26190 |
;; |
| 26191 |
*) |
| 26192 |
ac_cv_func_fork_works=yes |
| 26193 |
;; |
| 26194 |
esac |
| 26195 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 26196 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 26197 |
fi |
| 26198 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 26199 |
if test "x$ac_cv_func_vfork" = xyes; then |
| 26200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 26201 |
printf %s "checking for working vfork... " >&6; } |
| 26202 |
if test ${ac_cv_func_vfork_works+y} |
| 26203 |
then : |
| 26204 |
printf %s "(cached) " >&6 |
| 26205 |
else $as_nop |
| 26206 |
if test "$cross_compiling" = yes |
| 26207 |
then : |
| 26208 |
ac_cv_func_vfork_works=cross |
| 26209 |
else $as_nop |
| 26210 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 26211 |
/* end confdefs.h. */ |
| 26212 |
/* Thanks to Paul Eggert for this test. */ |
| 26213 |
$ac_includes_default |
| 26214 |
#include <signal.h> |
| 26215 |
#include <sys/wait.h> |
| 26216 |
#ifdef HAVE_VFORK_H |
| 26217 |
# include <vfork.h> |
| 26218 |
#endif |
| 26219 |
|
| 26220 |
static void |
| 26221 |
do_nothing (int sig) |
| 26222 |
{ |
| 26223 |
(void) sig; |
| 26224 |
} |
| 26225 |
|
| 26226 |
/* On some sparc systems, changes by the child to local and incoming |
| 26227 |
argument registers are propagated back to the parent. The compiler |
| 26228 |
is told about this with #include <vfork.h>, but some compilers |
| 26229 |
(e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 26230 |
static variable whose address is put into a register that is |
| 26231 |
clobbered by the vfork. */ |
| 26232 |
static void |
| 26233 |
sparc_address_test (int arg) |
| 26234 |
{ |
| 26235 |
static pid_t child; |
| 26236 |
if (!child) { |
| 26237 |
child = vfork (); |
| 26238 |
if (child < 0) { |
| 26239 |
perror ("vfork"); |
| 26240 |
_exit(2); |
| 26241 |
} |
| 26242 |
if (!child) { |
| 26243 |
arg = getpid(); |
| 26244 |
write(-1, "", 0); |
| 26245 |
_exit (arg); |
| 26246 |
} |
| 26247 |
} |
| 26248 |
} |
| 26249 |
|
| 26250 |
int |
| 26251 |
main (void) |
| 26252 |
{ |
| 26253 |
pid_t parent = getpid (); |
| 26254 |
pid_t child; |
| 26255 |
|
| 26256 |
sparc_address_test (0); |
| 26257 |
|
| 26258 |
/* On Solaris 2.4, changes by the child to the signal handler |
| 26259 |
also munge signal handlers in the parent. To detect this, |
| 26260 |
start by putting the parent's handler in a known state. */ |
| 26261 |
signal (SIGTERM, SIG_DFL); |
| 26262 |
|
| 26263 |
child = vfork (); |
| 26264 |
|
| 26265 |
if (child == 0) { |
| 26266 |
/* Here is another test for sparc vfork register problems. This |
| 26267 |
test uses lots of local variables, at least as many local |
| 26268 |
variables as main has allocated so far including compiler |
| 26269 |
temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 26270 |
4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 26271 |
reuse the register of parent for one of the local variables, |
| 26272 |
since it will think that parent can't possibly be used any more |
| 26273 |
in this routine. Assigning to the local variable will thus |
| 26274 |
munge parent in the parent process. */ |
| 26275 |
pid_t |
| 26276 |
p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 26277 |
p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 26278 |
/* Convince the compiler that p..p7 are live; otherwise, it might |
| 26279 |
use the same hardware register for all 8 local variables. */ |
| 26280 |
if (p != p1 || p != p2 || p != p3 || p != p4 |
| 26281 |
|| p != p5 || p != p6 || p != p7) |
| 26282 |
_exit(1); |
| 26283 |
|
| 26284 |
/* Alter the child's signal handler. */ |
| 26285 |
if (signal (SIGTERM, do_nothing) != SIG_DFL) |
| 26286 |
_exit(1); |
| 26287 |
|
| 26288 |
/* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 26289 |
from child file descriptors. If the child closes a descriptor |
| 26290 |
before it execs or exits, this munges the parent's descriptor |
| 26291 |
as well. Test for this by closing stdout in the child. */ |
| 26292 |
_exit(close(fileno(stdout)) != 0); |
| 26293 |
} else { |
| 26294 |
int status; |
| 26295 |
struct stat st; |
| 26296 |
|
| 26297 |
while (wait(&status) != child) |
| 26298 |
; |
| 26299 |
return ( |
| 26300 |
/* Was there some problem with vforking? */ |
| 26301 |
child < 0 |
| 26302 |
|
| 26303 |
/* Did the child munge the parent's signal handler? */ |
| 26304 |
|| signal (SIGTERM, SIG_DFL) != SIG_DFL |
| 26305 |
|
| 26306 |
/* Did the child fail? (This shouldn't happen.) */ |
| 26307 |
|| status |
| 26308 |
|
| 26309 |
/* Did the vfork/compiler bug occur? */ |
| 26310 |
|| parent != getpid() |
| 26311 |
|
| 26312 |
/* Did the file descriptor bug occur? */ |
| 26313 |
|| fstat(fileno(stdout), &st) != 0 |
| 26314 |
); |
| 26315 |
} |
| 26316 |
} |
| 26317 |
_ACEOF |
| 26318 |
if ac_fn_c_try_run "$LINENO" |
| 26319 |
then : |
| 26320 |
ac_cv_func_vfork_works=yes |
| 26321 |
else $as_nop |
| 26322 |
ac_cv_func_vfork_works=no |
| 26323 |
fi |
| 26324 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 26325 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 26326 |
fi |
| 26327 |
|
| 26328 |
fi |
| 26329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 26330 |
colorize_result "$ac_cv_func_vfork_works" ; } |
| 26331 |
|
| 26332 |
fi; |
| 26333 |
if test "x$ac_cv_func_fork_works" = xcross; then |
| 26334 |
ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 26335 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 26336 |
printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 26337 |
fi |
| 26338 |
|
| 26339 |
if test "x$ac_cv_func_vfork_works" = xyes; then |
| 26340 |
|
| 26341 |
printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 26342 |
|
| 26343 |
else |
| 26344 |
|
| 26345 |
printf "%s\n" "#define vfork fork" >>confdefs.h |
| 26346 |
|
| 26347 |
fi |
| 26348 |
if test "x$ac_cv_func_fork_works" = xyes; then |
| 26349 |
|
| 26350 |
printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 26351 |
|
| 26352 |
fi |
| 26353 |
|
| 26354 |
|
| 26355 |
ac_fn_c_check_func "$LINENO" "__syscall" "ac_cv_func___syscall" |
| 26356 |
if test "x$ac_cv_func___syscall" = xyes |
| 26357 |
then : |
| 26358 |
printf "%s\n" "#define HAVE___SYSCALL 1" >>confdefs.h |
| 26359 |
|
| 26360 |
fi |
| 26361 |
|
| 26362 |
ac_fn_c_check_func "$LINENO" "_longjmp" "ac_cv_func__longjmp" |
| 26363 |
if test "x$ac_cv_func__longjmp" = xyes |
| 26364 |
then : |
| 26365 |
printf "%s\n" "#define HAVE__LONGJMP 1" >>confdefs.h |
| 26366 |
|
| 26367 |
fi |
| 26368 |
# used for AC_ARG_WITH(setjmp-type) |
| 26369 |
# we don't use _setjmp if _longjmp doesn't exist. |
| 26370 |
test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no |
| 26371 |
ac_fn_c_check_func "$LINENO" "arc4random_buf" "ac_cv_func_arc4random_buf" |
| 26372 |
if test "x$ac_cv_func_arc4random_buf" = xyes |
| 26373 |
then : |
| 26374 |
printf "%s\n" "#define HAVE_ARC4RANDOM_BUF 1" >>confdefs.h |
| 26375 |
|
| 26376 |
fi |
| 26377 |
|
| 26378 |
ac_fn_c_check_func "$LINENO" "atan2l" "ac_cv_func_atan2l" |
| 26379 |
if test "x$ac_cv_func_atan2l" = xyes |
| 26380 |
then : |
| 26381 |
printf "%s\n" "#define HAVE_ATAN2L 1" >>confdefs.h |
| 26382 |
|
| 26383 |
fi |
| 26384 |
ac_fn_c_check_func "$LINENO" "atan2f" "ac_cv_func_atan2f" |
| 26385 |
if test "x$ac_cv_func_atan2f" = xyes |
| 26386 |
then : |
| 26387 |
printf "%s\n" "#define HAVE_ATAN2F 1" >>confdefs.h |
| 26388 |
|
| 26389 |
fi |
| 26390 |
|
| 26391 |
ac_fn_check_decl "$LINENO" "atomic_signal_fence" "ac_cv_have_decl_atomic_signal_fence" "#include <stdatomic.h> |
| 26392 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 26393 |
if test "x$ac_cv_have_decl_atomic_signal_fence" = xyes |
| 26394 |
then : |
| 26395 |
ac_have_decl=1 |
| 26396 |
else $as_nop |
| 26397 |
ac_have_decl=0 |
| 26398 |
fi |
| 26399 |
printf "%s\n" "#define HAVE_DECL_ATOMIC_SIGNAL_FENCE $ac_have_decl" >>confdefs.h |
| 26400 |
|
| 26401 |
ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" |
| 26402 |
if test "x$ac_cv_func_chmod" = xyes |
| 26403 |
then : |
| 26404 |
printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h |
| 26405 |
|
| 26406 |
fi |
| 26407 |
|
| 26408 |
ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" |
| 26409 |
if test "x$ac_cv_func_chown" = xyes |
| 26410 |
then : |
| 26411 |
printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h |
| 26412 |
|
| 26413 |
fi |
| 26414 |
|
| 26415 |
ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot" |
| 26416 |
if test "x$ac_cv_func_chroot" = xyes |
| 26417 |
then : |
| 26418 |
printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h |
| 26419 |
|
| 26420 |
fi |
| 26421 |
|
| 26422 |
ac_fn_c_check_func "$LINENO" "chsize" "ac_cv_func_chsize" |
| 26423 |
if test "x$ac_cv_func_chsize" = xyes |
| 26424 |
then : |
| 26425 |
printf "%s\n" "#define HAVE_CHSIZE 1" >>confdefs.h |
| 26426 |
|
| 26427 |
fi |
| 26428 |
|
| 26429 |
ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" |
| 26430 |
if test "x$ac_cv_func_clock_gettime" = xyes |
| 26431 |
then : |
| 26432 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 26433 |
|
| 26434 |
fi |
| 26435 |
|
| 26436 |
ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" |
| 26437 |
if test "x$ac_cv_func_copy_file_range" = xyes |
| 26438 |
then : |
| 26439 |
printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h |
| 26440 |
|
| 26441 |
fi |
| 26442 |
|
| 26443 |
ac_fn_c_check_func "$LINENO" "cosh" "ac_cv_func_cosh" |
| 26444 |
if test "x$ac_cv_func_cosh" = xyes |
| 26445 |
then : |
| 26446 |
printf "%s\n" "#define HAVE_COSH 1" >>confdefs.h |
| 26447 |
|
| 26448 |
fi |
| 26449 |
|
| 26450 |
ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" |
| 26451 |
if test "x$ac_cv_func_crypt_r" = xyes |
| 26452 |
then : |
| 26453 |
printf "%s\n" "#define HAVE_CRYPT_R 1" >>confdefs.h |
| 26454 |
|
| 26455 |
fi |
| 26456 |
|
| 26457 |
ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon" |
| 26458 |
if test "x$ac_cv_func_daemon" = xyes |
| 26459 |
then : |
| 26460 |
printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h |
| 26461 |
|
| 26462 |
fi |
| 26463 |
|
| 26464 |
ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd" |
| 26465 |
if test "x$ac_cv_func_dirfd" = xyes |
| 26466 |
then : |
| 26467 |
printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h |
| 26468 |
|
| 26469 |
fi |
| 26470 |
|
| 26471 |
ac_fn_c_check_func "$LINENO" "dl_iterate_phdr" "ac_cv_func_dl_iterate_phdr" |
| 26472 |
if test "x$ac_cv_func_dl_iterate_phdr" = xyes |
| 26473 |
then : |
| 26474 |
printf "%s\n" "#define HAVE_DL_ITERATE_PHDR 1" >>confdefs.h |
| 26475 |
|
| 26476 |
fi |
| 26477 |
|
| 26478 |
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
| 26479 |
if test "x$ac_cv_func_dlopen" = xyes |
| 26480 |
then : |
| 26481 |
printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h |
| 26482 |
|
| 26483 |
fi |
| 26484 |
|
| 26485 |
ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr" |
| 26486 |
if test "x$ac_cv_func_dladdr" = xyes |
| 26487 |
then : |
| 26488 |
printf "%s\n" "#define HAVE_DLADDR 1" >>confdefs.h |
| 26489 |
|
| 26490 |
fi |
| 26491 |
|
| 26492 |
ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3" |
| 26493 |
if test "x$ac_cv_func_dup3" = xyes |
| 26494 |
then : |
| 26495 |
printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h |
| 26496 |
|
| 26497 |
fi |
| 26498 |
|
| 26499 |
ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess" |
| 26500 |
if test "x$ac_cv_func_eaccess" = xyes |
| 26501 |
then : |
| 26502 |
printf "%s\n" "#define HAVE_EACCESS 1" >>confdefs.h |
| 26503 |
|
| 26504 |
fi |
| 26505 |
|
| 26506 |
ac_fn_c_check_func "$LINENO" "endgrent" "ac_cv_func_endgrent" |
| 26507 |
if test "x$ac_cv_func_endgrent" = xyes |
| 26508 |
then : |
| 26509 |
printf "%s\n" "#define HAVE_ENDGRENT 1" >>confdefs.h |
| 26510 |
|
| 26511 |
fi |
| 26512 |
|
| 26513 |
ac_fn_c_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd" |
| 26514 |
if test "x$ac_cv_func_eventfd" = xyes |
| 26515 |
then : |
| 26516 |
printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h |
| 26517 |
|
| 26518 |
fi |
| 26519 |
|
| 26520 |
ac_fn_c_check_func "$LINENO" "execl" "ac_cv_func_execl" |
| 26521 |
if test "x$ac_cv_func_execl" = xyes |
| 26522 |
then : |
| 26523 |
printf "%s\n" "#define HAVE_EXECL 1" >>confdefs.h |
| 26524 |
|
| 26525 |
fi |
| 26526 |
|
| 26527 |
ac_fn_c_check_func "$LINENO" "execle" "ac_cv_func_execle" |
| 26528 |
if test "x$ac_cv_func_execle" = xyes |
| 26529 |
then : |
| 26530 |
printf "%s\n" "#define HAVE_EXECLE 1" >>confdefs.h |
| 26531 |
|
| 26532 |
fi |
| 26533 |
|
| 26534 |
ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv" |
| 26535 |
if test "x$ac_cv_func_execv" = xyes |
| 26536 |
then : |
| 26537 |
printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h |
| 26538 |
|
| 26539 |
fi |
| 26540 |
|
| 26541 |
ac_fn_c_check_func "$LINENO" "execve" "ac_cv_func_execve" |
| 26542 |
if test "x$ac_cv_func_execve" = xyes |
| 26543 |
then : |
| 26544 |
printf "%s\n" "#define HAVE_EXECVE 1" >>confdefs.h |
| 26545 |
|
| 26546 |
fi |
| 26547 |
|
| 26548 |
ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" |
| 26549 |
if test "x$ac_cv_func_explicit_memset" = xyes |
| 26550 |
then : |
| 26551 |
printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h |
| 26552 |
|
| 26553 |
fi |
| 26554 |
|
| 26555 |
ac_fn_c_check_func "$LINENO" "fcopyfile" "ac_cv_func_fcopyfile" |
| 26556 |
if test "x$ac_cv_func_fcopyfile" = xyes |
| 26557 |
then : |
| 26558 |
printf "%s\n" "#define HAVE_FCOPYFILE 1" >>confdefs.h |
| 26559 |
|
| 26560 |
fi |
| 26561 |
|
| 26562 |
ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir" |
| 26563 |
if test "x$ac_cv_func_fchdir" = xyes |
| 26564 |
then : |
| 26565 |
printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h |
| 26566 |
|
| 26567 |
fi |
| 26568 |
|
| 26569 |
ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" |
| 26570 |
if test "x$ac_cv_func_fchmod" = xyes |
| 26571 |
then : |
| 26572 |
printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h |
| 26573 |
|
| 26574 |
fi |
| 26575 |
|
| 26576 |
ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" |
| 26577 |
if test "x$ac_cv_func_fchown" = xyes |
| 26578 |
then : |
| 26579 |
printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h |
| 26580 |
|
| 26581 |
fi |
| 26582 |
|
| 26583 |
ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" |
| 26584 |
if test "x$ac_cv_func_fcntl" = xyes |
| 26585 |
then : |
| 26586 |
printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h |
| 26587 |
|
| 26588 |
fi |
| 26589 |
|
| 26590 |
ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync" |
| 26591 |
if test "x$ac_cv_func_fdatasync" = xyes |
| 26592 |
then : |
| 26593 |
printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h |
| 26594 |
|
| 26595 |
fi |
| 26596 |
|
| 26597 |
ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir" |
| 26598 |
if test "x$ac_cv_func_fdopendir" = xyes |
| 26599 |
then : |
| 26600 |
printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h |
| 26601 |
|
| 26602 |
fi |
| 26603 |
|
| 26604 |
ac_fn_c_check_func "$LINENO" "fgetattrlist" "ac_cv_func_fgetattrlist" |
| 26605 |
if test "x$ac_cv_func_fgetattrlist" = xyes |
| 26606 |
then : |
| 26607 |
printf "%s\n" "#define HAVE_FGETATTRLIST 1" >>confdefs.h |
| 26608 |
|
| 26609 |
fi |
| 26610 |
|
| 26611 |
ac_fn_c_check_func "$LINENO" "fmod" "ac_cv_func_fmod" |
| 26612 |
if test "x$ac_cv_func_fmod" = xyes |
| 26613 |
then : |
| 26614 |
printf "%s\n" "#define HAVE_FMOD 1" >>confdefs.h |
| 26615 |
|
| 26616 |
fi |
| 26617 |
|
| 26618 |
ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" |
| 26619 |
if test "x$ac_cv_func_fstatat" = xyes |
| 26620 |
then : |
| 26621 |
printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h |
| 26622 |
|
| 26623 |
fi |
| 26624 |
|
| 26625 |
ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync" |
| 26626 |
if test "x$ac_cv_func_fsync" = xyes |
| 26627 |
then : |
| 26628 |
printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h |
| 26629 |
|
| 26630 |
fi |
| 26631 |
|
| 26632 |
ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" |
| 26633 |
if test "x$ac_cv_func_ftruncate" = xyes |
| 26634 |
then : |
| 26635 |
printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h |
| 26636 |
|
| 26637 |
fi |
| 26638 |
|
| 26639 |
ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64" |
| 26640 |
if test "x$ac_cv_func_ftruncate64" = xyes |
| 26641 |
then : |
| 26642 |
printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h |
| 26643 |
|
| 26644 |
fi |
| 26645 |
# used for Win32 platform |
| 26646 |
ac_fn_c_check_func "$LINENO" "getattrlist" "ac_cv_func_getattrlist" |
| 26647 |
if test "x$ac_cv_func_getattrlist" = xyes |
| 26648 |
then : |
| 26649 |
printf "%s\n" "#define HAVE_GETATTRLIST 1" >>confdefs.h |
| 26650 |
|
| 26651 |
fi |
| 26652 |
|
| 26653 |
ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" |
| 26654 |
if test "x$ac_cv_func_getcwd" = xyes |
| 26655 |
then : |
| 26656 |
printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h |
| 26657 |
|
| 26658 |
fi |
| 26659 |
|
| 26660 |
ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" |
| 26661 |
if test "x$ac_cv_func_getegid" = xyes |
| 26662 |
then : |
| 26663 |
printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h |
| 26664 |
|
| 26665 |
fi |
| 26666 |
|
| 26667 |
ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" |
| 26668 |
if test "x$ac_cv_func_getentropy" = xyes |
| 26669 |
then : |
| 26670 |
printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h |
| 26671 |
|
| 26672 |
fi |
| 26673 |
|
| 26674 |
ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" |
| 26675 |
if test "x$ac_cv_func_geteuid" = xyes |
| 26676 |
then : |
| 26677 |
printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h |
| 26678 |
|
| 26679 |
fi |
| 26680 |
|
| 26681 |
ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" |
| 26682 |
if test "x$ac_cv_func_getgid" = xyes |
| 26683 |
then : |
| 26684 |
printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h |
| 26685 |
|
| 26686 |
fi |
| 26687 |
|
| 26688 |
ac_fn_c_check_func "$LINENO" "getgidx" "ac_cv_func_getgidx" |
| 26689 |
if test "x$ac_cv_func_getgidx" = xyes |
| 26690 |
then : |
| 26691 |
printf "%s\n" "#define HAVE_GETGIDX 1" >>confdefs.h |
| 26692 |
|
| 26693 |
fi |
| 26694 |
|
| 26695 |
ac_fn_c_check_func "$LINENO" "getgrnam" "ac_cv_func_getgrnam" |
| 26696 |
if test "x$ac_cv_func_getgrnam" = xyes |
| 26697 |
then : |
| 26698 |
printf "%s\n" "#define HAVE_GETGRNAM 1" >>confdefs.h |
| 26699 |
|
| 26700 |
fi |
| 26701 |
|
| 26702 |
ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" |
| 26703 |
if test "x$ac_cv_func_getgrnam_r" = xyes |
| 26704 |
then : |
| 26705 |
printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h |
| 26706 |
|
| 26707 |
fi |
| 26708 |
|
| 26709 |
ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" |
| 26710 |
if test "x$ac_cv_func_getgroups" = xyes |
| 26711 |
then : |
| 26712 |
printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h |
| 26713 |
|
| 26714 |
fi |
| 26715 |
|
| 26716 |
ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" |
| 26717 |
if test "x$ac_cv_func_getlogin" = xyes |
| 26718 |
then : |
| 26719 |
printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h |
| 26720 |
|
| 26721 |
fi |
| 26722 |
|
| 26723 |
ac_fn_c_check_func "$LINENO" "getlogin_r" "ac_cv_func_getlogin_r" |
| 26724 |
if test "x$ac_cv_func_getlogin_r" = xyes |
| 26725 |
then : |
| 26726 |
printf "%s\n" "#define HAVE_GETLOGIN_R 1" >>confdefs.h |
| 26727 |
|
| 26728 |
fi |
| 26729 |
|
| 26730 |
ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" |
| 26731 |
if test "x$ac_cv_func_getpgid" = xyes |
| 26732 |
then : |
| 26733 |
printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h |
| 26734 |
|
| 26735 |
fi |
| 26736 |
|
| 26737 |
ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" |
| 26738 |
if test "x$ac_cv_func_getpgrp" = xyes |
| 26739 |
then : |
| 26740 |
printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h |
| 26741 |
|
| 26742 |
fi |
| 26743 |
|
| 26744 |
ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid" |
| 26745 |
if test "x$ac_cv_func_getppid" = xyes |
| 26746 |
then : |
| 26747 |
printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h |
| 26748 |
|
| 26749 |
fi |
| 26750 |
|
| 26751 |
ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" |
| 26752 |
if test "x$ac_cv_func_getpriority" = xyes |
| 26753 |
then : |
| 26754 |
printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h |
| 26755 |
|
| 26756 |
fi |
| 26757 |
|
| 26758 |
ac_fn_c_check_func "$LINENO" "getpwnam" "ac_cv_func_getpwnam" |
| 26759 |
if test "x$ac_cv_func_getpwnam" = xyes |
| 26760 |
then : |
| 26761 |
printf "%s\n" "#define HAVE_GETPWNAM 1" >>confdefs.h |
| 26762 |
|
| 26763 |
fi |
| 26764 |
|
| 26765 |
ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" |
| 26766 |
if test "x$ac_cv_func_getpwnam_r" = xyes |
| 26767 |
then : |
| 26768 |
printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h |
| 26769 |
|
| 26770 |
fi |
| 26771 |
|
| 26772 |
ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" |
| 26773 |
if test "x$ac_cv_func_getpwuid" = xyes |
| 26774 |
then : |
| 26775 |
printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h |
| 26776 |
|
| 26777 |
fi |
| 26778 |
|
| 26779 |
ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" |
| 26780 |
if test "x$ac_cv_func_getpwuid_r" = xyes |
| 26781 |
then : |
| 26782 |
printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h |
| 26783 |
|
| 26784 |
fi |
| 26785 |
|
| 26786 |
ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom" |
| 26787 |
if test "x$ac_cv_func_getrandom" = xyes |
| 26788 |
then : |
| 26789 |
printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h |
| 26790 |
|
| 26791 |
fi |
| 26792 |
|
| 26793 |
ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid" |
| 26794 |
if test "x$ac_cv_func_getresgid" = xyes |
| 26795 |
then : |
| 26796 |
printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h |
| 26797 |
|
| 26798 |
fi |
| 26799 |
|
| 26800 |
ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" |
| 26801 |
if test "x$ac_cv_func_getresuid" = xyes |
| 26802 |
then : |
| 26803 |
printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h |
| 26804 |
|
| 26805 |
fi |
| 26806 |
|
| 26807 |
ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit" |
| 26808 |
if test "x$ac_cv_func_getrlimit" = xyes |
| 26809 |
then : |
| 26810 |
printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h |
| 26811 |
|
| 26812 |
fi |
| 26813 |
|
| 26814 |
ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" |
| 26815 |
if test "x$ac_cv_func_getsid" = xyes |
| 26816 |
then : |
| 26817 |
printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h |
| 26818 |
|
| 26819 |
fi |
| 26820 |
|
| 26821 |
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
| 26822 |
if test "x$ac_cv_func_gettimeofday" = xyes |
| 26823 |
then : |
| 26824 |
printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h |
| 26825 |
|
| 26826 |
fi |
| 26827 |
# for making ac_cv_func_gettimeofday |
| 26828 |
ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" |
| 26829 |
if test "x$ac_cv_func_getuid" = xyes |
| 26830 |
then : |
| 26831 |
printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h |
| 26832 |
|
| 26833 |
fi |
| 26834 |
|
| 26835 |
ac_fn_c_check_func "$LINENO" "getuidx" "ac_cv_func_getuidx" |
| 26836 |
if test "x$ac_cv_func_getuidx" = xyes |
| 26837 |
then : |
| 26838 |
printf "%s\n" "#define HAVE_GETUIDX 1" >>confdefs.h |
| 26839 |
|
| 26840 |
fi |
| 26841 |
|
| 26842 |
ac_fn_c_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r" |
| 26843 |
if test "x$ac_cv_func_gmtime_r" = xyes |
| 26844 |
then : |
| 26845 |
printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h |
| 26846 |
|
| 26847 |
fi |
| 26848 |
|
| 26849 |
ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" |
| 26850 |
if test "x$ac_cv_func_grantpt" = xyes |
| 26851 |
then : |
| 26852 |
printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h |
| 26853 |
|
| 26854 |
fi |
| 26855 |
|
| 26856 |
ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" |
| 26857 |
if test "x$ac_cv_func_initgroups" = xyes |
| 26858 |
then : |
| 26859 |
printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h |
| 26860 |
|
| 26861 |
fi |
| 26862 |
|
| 26863 |
ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" |
| 26864 |
if test "x$ac_cv_func_ioctl" = xyes |
| 26865 |
then : |
| 26866 |
printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h |
| 26867 |
|
| 26868 |
fi |
| 26869 |
|
| 26870 |
ac_fn_c_check_func "$LINENO" "isfinite" "ac_cv_func_isfinite" |
| 26871 |
if test "x$ac_cv_func_isfinite" = xyes |
| 26872 |
then : |
| 26873 |
printf "%s\n" "#define HAVE_ISFINITE 1" >>confdefs.h |
| 26874 |
|
| 26875 |
fi |
| 26876 |
|
| 26877 |
ac_fn_c_check_func "$LINENO" "issetugid" "ac_cv_func_issetugid" |
| 26878 |
if test "x$ac_cv_func_issetugid" = xyes |
| 26879 |
then : |
| 26880 |
printf "%s\n" "#define HAVE_ISSETUGID 1" >>confdefs.h |
| 26881 |
|
| 26882 |
fi |
| 26883 |
|
| 26884 |
ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" |
| 26885 |
if test "x$ac_cv_func_kill" = xyes |
| 26886 |
then : |
| 26887 |
printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h |
| 26888 |
|
| 26889 |
fi |
| 26890 |
|
| 26891 |
ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" |
| 26892 |
if test "x$ac_cv_func_killpg" = xyes |
| 26893 |
then : |
| 26894 |
printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h |
| 26895 |
|
| 26896 |
fi |
| 26897 |
|
| 26898 |
ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" |
| 26899 |
if test "x$ac_cv_func_lchmod" = xyes |
| 26900 |
then : |
| 26901 |
printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h |
| 26902 |
|
| 26903 |
fi |
| 26904 |
|
| 26905 |
ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" |
| 26906 |
if test "x$ac_cv_func_lchown" = xyes |
| 26907 |
then : |
| 26908 |
printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h |
| 26909 |
|
| 26910 |
fi |
| 26911 |
|
| 26912 |
ac_fn_c_check_func "$LINENO" "link" "ac_cv_func_link" |
| 26913 |
if test "x$ac_cv_func_link" = xyes |
| 26914 |
then : |
| 26915 |
printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h |
| 26916 |
|
| 26917 |
fi |
| 26918 |
|
| 26919 |
ac_fn_c_check_func "$LINENO" "llabs" "ac_cv_func_llabs" |
| 26920 |
if test "x$ac_cv_func_llabs" = xyes |
| 26921 |
then : |
| 26922 |
printf "%s\n" "#define HAVE_LLABS 1" >>confdefs.h |
| 26923 |
|
| 26924 |
fi |
| 26925 |
|
| 26926 |
ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf" |
| 26927 |
if test "x$ac_cv_func_lockf" = xyes |
| 26928 |
then : |
| 26929 |
printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h |
| 26930 |
|
| 26931 |
fi |
| 26932 |
|
| 26933 |
ac_fn_c_check_func "$LINENO" "log2" "ac_cv_func_log2" |
| 26934 |
if test "x$ac_cv_func_log2" = xyes |
| 26935 |
then : |
| 26936 |
printf "%s\n" "#define HAVE_LOG2 1" >>confdefs.h |
| 26937 |
|
| 26938 |
fi |
| 26939 |
|
| 26940 |
ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" |
| 26941 |
if test "x$ac_cv_func_lstat" = xyes |
| 26942 |
then : |
| 26943 |
printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h |
| 26944 |
|
| 26945 |
fi |
| 26946 |
|
| 26947 |
ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" |
| 26948 |
if test "x$ac_cv_func_lutimes" = xyes |
| 26949 |
then : |
| 26950 |
printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h |
| 26951 |
|
| 26952 |
fi |
| 26953 |
|
| 26954 |
ac_fn_c_check_func "$LINENO" "malloc_usable_size" "ac_cv_func_malloc_usable_size" |
| 26955 |
if test "x$ac_cv_func_malloc_usable_size" = xyes |
| 26956 |
then : |
| 26957 |
printf "%s\n" "#define HAVE_MALLOC_USABLE_SIZE 1" >>confdefs.h |
| 26958 |
|
| 26959 |
fi |
| 26960 |
|
| 26961 |
ac_fn_c_check_func "$LINENO" "malloc_size" "ac_cv_func_malloc_size" |
| 26962 |
if test "x$ac_cv_func_malloc_size" = xyes |
| 26963 |
then : |
| 26964 |
printf "%s\n" "#define HAVE_MALLOC_SIZE 1" >>confdefs.h |
| 26965 |
|
| 26966 |
fi |
| 26967 |
|
| 26968 |
ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim" |
| 26969 |
if test "x$ac_cv_func_malloc_trim" = xyes |
| 26970 |
then : |
| 26971 |
printf "%s\n" "#define HAVE_MALLOC_TRIM 1" >>confdefs.h |
| 26972 |
|
| 26973 |
fi |
| 26974 |
|
| 26975 |
ac_fn_c_check_func "$LINENO" "mblen" "ac_cv_func_mblen" |
| 26976 |
if test "x$ac_cv_func_mblen" = xyes |
| 26977 |
then : |
| 26978 |
printf "%s\n" "#define HAVE_MBLEN 1" >>confdefs.h |
| 26979 |
|
| 26980 |
fi |
| 26981 |
|
| 26982 |
ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign" |
| 26983 |
if test "x$ac_cv_func_memalign" = xyes |
| 26984 |
then : |
| 26985 |
printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h |
| 26986 |
|
| 26987 |
fi |
| 26988 |
|
| 26989 |
ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s" |
| 26990 |
if test "x$ac_cv_func_memset_s" = xyes |
| 26991 |
then : |
| 26992 |
printf "%s\n" "#define HAVE_MEMSET_S 1" >>confdefs.h |
| 26993 |
|
| 26994 |
fi |
| 26995 |
|
| 26996 |
ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" |
| 26997 |
if test "x$ac_cv_func_writev" = xyes |
| 26998 |
then : |
| 26999 |
printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h |
| 27000 |
|
| 27001 |
fi |
| 27002 |
|
| 27003 |
ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" |
| 27004 |
if test "x$ac_cv_func_memrchr" = xyes |
| 27005 |
then : |
| 27006 |
printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h |
| 27007 |
|
| 27008 |
fi |
| 27009 |
|
| 27010 |
ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem" |
| 27011 |
if test "x$ac_cv_func_memmem" = xyes |
| 27012 |
then : |
| 27013 |
printf "%s\n" "#define HAVE_MEMMEM 1" >>confdefs.h |
| 27014 |
|
| 27015 |
fi |
| 27016 |
|
| 27017 |
ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" |
| 27018 |
if test "x$ac_cv_func_mkfifo" = xyes |
| 27019 |
then : |
| 27020 |
printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h |
| 27021 |
|
| 27022 |
fi |
| 27023 |
|
| 27024 |
ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" |
| 27025 |
if test "x$ac_cv_func_mknod" = xyes |
| 27026 |
then : |
| 27027 |
printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h |
| 27028 |
|
| 27029 |
fi |
| 27030 |
|
| 27031 |
ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" |
| 27032 |
if test "x$ac_cv_func_mktime" = xyes |
| 27033 |
then : |
| 27034 |
printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h |
| 27035 |
|
| 27036 |
fi |
| 27037 |
|
| 27038 |
ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" |
| 27039 |
if test "x$ac_cv_func_mmap" = xyes |
| 27040 |
then : |
| 27041 |
printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h |
| 27042 |
|
| 27043 |
fi |
| 27044 |
|
| 27045 |
ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" |
| 27046 |
if test "x$ac_cv_func_mremap" = xyes |
| 27047 |
then : |
| 27048 |
printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h |
| 27049 |
|
| 27050 |
fi |
| 27051 |
|
| 27052 |
ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" |
| 27053 |
if test "x$ac_cv_func_openat" = xyes |
| 27054 |
then : |
| 27055 |
printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h |
| 27056 |
|
| 27057 |
fi |
| 27058 |
|
| 27059 |
ac_fn_c_check_func "$LINENO" "pclose" "ac_cv_func_pclose" |
| 27060 |
if test "x$ac_cv_func_pclose" = xyes |
| 27061 |
then : |
| 27062 |
printf "%s\n" "#define HAVE_PCLOSE 1" >>confdefs.h |
| 27063 |
|
| 27064 |
fi |
| 27065 |
|
| 27066 |
ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" |
| 27067 |
if test "x$ac_cv_func_pipe" = xyes |
| 27068 |
then : |
| 27069 |
printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h |
| 27070 |
|
| 27071 |
fi |
| 27072 |
|
| 27073 |
ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" |
| 27074 |
if test "x$ac_cv_func_pipe2" = xyes |
| 27075 |
then : |
| 27076 |
printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h |
| 27077 |
|
| 27078 |
fi |
| 27079 |
|
| 27080 |
ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
| 27081 |
if test "x$ac_cv_func_poll" = xyes |
| 27082 |
then : |
| 27083 |
printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h |
| 27084 |
|
| 27085 |
fi |
| 27086 |
|
| 27087 |
ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
| 27088 |
if test "x$ac_cv_func_popen" = xyes |
| 27089 |
then : |
| 27090 |
printf "%s\n" "#define HAVE_POPEN 1" >>confdefs.h |
| 27091 |
|
| 27092 |
fi |
| 27093 |
|
| 27094 |
ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" |
| 27095 |
if test "x$ac_cv_func_posix_fadvise" = xyes |
| 27096 |
then : |
| 27097 |
printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h |
| 27098 |
|
| 27099 |
fi |
| 27100 |
|
| 27101 |
ac_fn_c_check_func "$LINENO" "posix_madvise" "ac_cv_func_posix_madvise" |
| 27102 |
if test "x$ac_cv_func_posix_madvise" = xyes |
| 27103 |
then : |
| 27104 |
printf "%s\n" "#define HAVE_POSIX_MADVISE 1" >>confdefs.h |
| 27105 |
|
| 27106 |
fi |
| 27107 |
|
| 27108 |
ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign" |
| 27109 |
if test "x$ac_cv_func_posix_memalign" = xyes |
| 27110 |
then : |
| 27111 |
printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h |
| 27112 |
|
| 27113 |
fi |
| 27114 |
|
| 27115 |
ac_fn_c_check_func "$LINENO" "ppoll" "ac_cv_func_ppoll" |
| 27116 |
if test "x$ac_cv_func_ppoll" = xyes |
| 27117 |
then : |
| 27118 |
printf "%s\n" "#define HAVE_PPOLL 1" >>confdefs.h |
| 27119 |
|
| 27120 |
fi |
| 27121 |
|
| 27122 |
ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" |
| 27123 |
if test "x$ac_cv_func_pread" = xyes |
| 27124 |
then : |
| 27125 |
printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h |
| 27126 |
|
| 27127 |
fi |
| 27128 |
|
| 27129 |
ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" |
| 27130 |
if test "x$ac_cv_func_pwrite" = xyes |
| 27131 |
then : |
| 27132 |
printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h |
| 27133 |
|
| 27134 |
fi |
| 27135 |
|
| 27136 |
ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r" |
| 27137 |
if test "x$ac_cv_func_qsort_r" = xyes |
| 27138 |
then : |
| 27139 |
printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h |
| 27140 |
|
| 27141 |
fi |
| 27142 |
|
| 27143 |
ac_fn_c_check_func "$LINENO" "qsort_s" "ac_cv_func_qsort_s" |
| 27144 |
if test "x$ac_cv_func_qsort_s" = xyes |
| 27145 |
then : |
| 27146 |
printf "%s\n" "#define HAVE_QSORT_S 1" >>confdefs.h |
| 27147 |
|
| 27148 |
fi |
| 27149 |
|
| 27150 |
ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" |
| 27151 |
if test "x$ac_cv_func_readlink" = xyes |
| 27152 |
then : |
| 27153 |
printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h |
| 27154 |
|
| 27155 |
fi |
| 27156 |
|
| 27157 |
ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" |
| 27158 |
if test "x$ac_cv_func_realpath" = xyes |
| 27159 |
then : |
| 27160 |
printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h |
| 27161 |
|
| 27162 |
fi |
| 27163 |
|
| 27164 |
ac_fn_c_check_func "$LINENO" "round" "ac_cv_func_round" |
| 27165 |
if test "x$ac_cv_func_round" = xyes |
| 27166 |
then : |
| 27167 |
printf "%s\n" "#define HAVE_ROUND 1" >>confdefs.h |
| 27168 |
|
| 27169 |
fi |
| 27170 |
|
| 27171 |
ac_fn_c_check_func "$LINENO" "sched_getaffinity" "ac_cv_func_sched_getaffinity" |
| 27172 |
if test "x$ac_cv_func_sched_getaffinity" = xyes |
| 27173 |
then : |
| 27174 |
printf "%s\n" "#define HAVE_SCHED_GETAFFINITY 1" >>confdefs.h |
| 27175 |
|
| 27176 |
fi |
| 27177 |
|
| 27178 |
ac_fn_c_check_func "$LINENO" "seekdir" "ac_cv_func_seekdir" |
| 27179 |
if test "x$ac_cv_func_seekdir" = xyes |
| 27180 |
then : |
| 27181 |
printf "%s\n" "#define HAVE_SEEKDIR 1" >>confdefs.h |
| 27182 |
|
| 27183 |
fi |
| 27184 |
|
| 27185 |
ac_fn_c_check_func "$LINENO" "select_large_fdset" "ac_cv_func_select_large_fdset" |
| 27186 |
if test "x$ac_cv_func_select_large_fdset" = xyes |
| 27187 |
then : |
| 27188 |
printf "%s\n" "#define HAVE_SELECT_LARGE_FDSET 1" >>confdefs.h |
| 27189 |
|
| 27190 |
fi |
| 27191 |
|
| 27192 |
ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" |
| 27193 |
if test "x$ac_cv_func_sendfile" = xyes |
| 27194 |
then : |
| 27195 |
printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h |
| 27196 |
|
| 27197 |
fi |
| 27198 |
|
| 27199 |
ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" |
| 27200 |
if test "x$ac_cv_func_setegid" = xyes |
| 27201 |
then : |
| 27202 |
printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h |
| 27203 |
|
| 27204 |
fi |
| 27205 |
|
| 27206 |
ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" |
| 27207 |
if test "x$ac_cv_func_setenv" = xyes |
| 27208 |
then : |
| 27209 |
printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h |
| 27210 |
|
| 27211 |
fi |
| 27212 |
|
| 27213 |
ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" |
| 27214 |
if test "x$ac_cv_func_seteuid" = xyes |
| 27215 |
then : |
| 27216 |
printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h |
| 27217 |
|
| 27218 |
fi |
| 27219 |
|
| 27220 |
ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid" |
| 27221 |
if test "x$ac_cv_func_setgid" = xyes |
| 27222 |
then : |
| 27223 |
printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h |
| 27224 |
|
| 27225 |
fi |
| 27226 |
|
| 27227 |
ac_fn_c_check_func "$LINENO" "setgroups" "ac_cv_func_setgroups" |
| 27228 |
if test "x$ac_cv_func_setgroups" = xyes |
| 27229 |
then : |
| 27230 |
printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h |
| 27231 |
|
| 27232 |
fi |
| 27233 |
|
| 27234 |
ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" |
| 27235 |
if test "x$ac_cv_func_setpgid" = xyes |
| 27236 |
then : |
| 27237 |
printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h |
| 27238 |
|
| 27239 |
fi |
| 27240 |
|
| 27241 |
ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" |
| 27242 |
if test "x$ac_cv_func_setpgrp" = xyes |
| 27243 |
then : |
| 27244 |
printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h |
| 27245 |
|
| 27246 |
fi |
| 27247 |
|
| 27248 |
ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" |
| 27249 |
if test "x$ac_cv_func_setregid" = xyes |
| 27250 |
then : |
| 27251 |
printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h |
| 27252 |
|
| 27253 |
fi |
| 27254 |
|
| 27255 |
ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" |
| 27256 |
if test "x$ac_cv_func_setresgid" = xyes |
| 27257 |
then : |
| 27258 |
printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h |
| 27259 |
|
| 27260 |
fi |
| 27261 |
|
| 27262 |
ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" |
| 27263 |
if test "x$ac_cv_func_setresuid" = xyes |
| 27264 |
then : |
| 27265 |
printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h |
| 27266 |
|
| 27267 |
fi |
| 27268 |
|
| 27269 |
ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" |
| 27270 |
if test "x$ac_cv_func_setreuid" = xyes |
| 27271 |
then : |
| 27272 |
printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h |
| 27273 |
|
| 27274 |
fi |
| 27275 |
|
| 27276 |
ac_fn_c_check_func "$LINENO" "setrgid" "ac_cv_func_setrgid" |
| 27277 |
if test "x$ac_cv_func_setrgid" = xyes |
| 27278 |
then : |
| 27279 |
printf "%s\n" "#define HAVE_SETRGID 1" >>confdefs.h |
| 27280 |
|
| 27281 |
fi |
| 27282 |
|
| 27283 |
ac_fn_c_check_func "$LINENO" "setrlimit" "ac_cv_func_setrlimit" |
| 27284 |
if test "x$ac_cv_func_setrlimit" = xyes |
| 27285 |
then : |
| 27286 |
printf "%s\n" "#define HAVE_SETRLIMIT 1" >>confdefs.h |
| 27287 |
|
| 27288 |
fi |
| 27289 |
|
| 27290 |
ac_fn_c_check_func "$LINENO" "setruid" "ac_cv_func_setruid" |
| 27291 |
if test "x$ac_cv_func_setruid" = xyes |
| 27292 |
then : |
| 27293 |
printf "%s\n" "#define HAVE_SETRUID 1" >>confdefs.h |
| 27294 |
|
| 27295 |
fi |
| 27296 |
|
| 27297 |
ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" |
| 27298 |
if test "x$ac_cv_func_setsid" = xyes |
| 27299 |
then : |
| 27300 |
printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h |
| 27301 |
|
| 27302 |
fi |
| 27303 |
|
| 27304 |
ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid" |
| 27305 |
if test "x$ac_cv_func_setuid" = xyes |
| 27306 |
then : |
| 27307 |
printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h |
| 27308 |
|
| 27309 |
fi |
| 27310 |
|
| 27311 |
ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" |
| 27312 |
if test "x$ac_cv_func_shutdown" = xyes |
| 27313 |
then : |
| 27314 |
printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h |
| 27315 |
|
| 27316 |
fi |
| 27317 |
|
| 27318 |
ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" |
| 27319 |
if test "x$ac_cv_func_sigaction" = xyes |
| 27320 |
then : |
| 27321 |
printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h |
| 27322 |
|
| 27323 |
fi |
| 27324 |
|
| 27325 |
ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" |
| 27326 |
if test "x$ac_cv_func_sigaltstack" = xyes |
| 27327 |
then : |
| 27328 |
printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h |
| 27329 |
|
| 27330 |
fi |
| 27331 |
|
| 27332 |
ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask" |
| 27333 |
if test "x$ac_cv_func_sigprocmask" = xyes |
| 27334 |
then : |
| 27335 |
printf "%s\n" "#define HAVE_SIGPROCMASK 1" >>confdefs.h |
| 27336 |
|
| 27337 |
fi |
| 27338 |
|
| 27339 |
ac_fn_c_check_func "$LINENO" "sinh" "ac_cv_func_sinh" |
| 27340 |
if test "x$ac_cv_func_sinh" = xyes |
| 27341 |
then : |
| 27342 |
printf "%s\n" "#define HAVE_SINH 1" >>confdefs.h |
| 27343 |
|
| 27344 |
fi |
| 27345 |
|
| 27346 |
ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 27347 |
if test "x$ac_cv_func_snprintf" = xyes |
| 27348 |
then : |
| 27349 |
printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h |
| 27350 |
|
| 27351 |
fi |
| 27352 |
|
| 27353 |
ac_fn_c_check_func "$LINENO" "spawnv" "ac_cv_func_spawnv" |
| 27354 |
if test "x$ac_cv_func_spawnv" = xyes |
| 27355 |
then : |
| 27356 |
printf "%s\n" "#define HAVE_SPAWNV 1" >>confdefs.h |
| 27357 |
|
| 27358 |
fi |
| 27359 |
|
| 27360 |
ac_fn_c_check_func "$LINENO" "symlink" "ac_cv_func_symlink" |
| 27361 |
if test "x$ac_cv_func_symlink" = xyes |
| 27362 |
then : |
| 27363 |
printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h |
| 27364 |
|
| 27365 |
fi |
| 27366 |
|
| 27367 |
ac_fn_c_check_func "$LINENO" "syscall" "ac_cv_func_syscall" |
| 27368 |
if test "x$ac_cv_func_syscall" = xyes |
| 27369 |
then : |
| 27370 |
printf "%s\n" "#define HAVE_SYSCALL 1" >>confdefs.h |
| 27371 |
|
| 27372 |
fi |
| 27373 |
|
| 27374 |
ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" |
| 27375 |
if test "x$ac_cv_func_sysconf" = xyes |
| 27376 |
then : |
| 27377 |
printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h |
| 27378 |
|
| 27379 |
fi |
| 27380 |
|
| 27381 |
ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system" |
| 27382 |
if test "x$ac_cv_func_system" = xyes |
| 27383 |
then : |
| 27384 |
printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h |
| 27385 |
|
| 27386 |
fi |
| 27387 |
|
| 27388 |
ac_fn_c_check_func "$LINENO" "tanh" "ac_cv_func_tanh" |
| 27389 |
if test "x$ac_cv_func_tanh" = xyes |
| 27390 |
then : |
| 27391 |
printf "%s\n" "#define HAVE_TANH 1" >>confdefs.h |
| 27392 |
|
| 27393 |
fi |
| 27394 |
|
| 27395 |
ac_fn_c_check_func "$LINENO" "telldir" "ac_cv_func_telldir" |
| 27396 |
if test "x$ac_cv_func_telldir" = xyes |
| 27397 |
then : |
| 27398 |
printf "%s\n" "#define HAVE_TELLDIR 1" >>confdefs.h |
| 27399 |
|
| 27400 |
fi |
| 27401 |
|
| 27402 |
ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" |
| 27403 |
if test "x$ac_cv_func_timegm" = xyes |
| 27404 |
then : |
| 27405 |
printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h |
| 27406 |
|
| 27407 |
fi |
| 27408 |
|
| 27409 |
ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" |
| 27410 |
if test "x$ac_cv_func_times" = xyes |
| 27411 |
then : |
| 27412 |
printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h |
| 27413 |
|
| 27414 |
fi |
| 27415 |
|
| 27416 |
ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate" |
| 27417 |
if test "x$ac_cv_func_truncate" = xyes |
| 27418 |
then : |
| 27419 |
printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h |
| 27420 |
|
| 27421 |
fi |
| 27422 |
|
| 27423 |
ac_fn_c_check_func "$LINENO" "truncate64" "ac_cv_func_truncate64" |
| 27424 |
if test "x$ac_cv_func_truncate64" = xyes |
| 27425 |
then : |
| 27426 |
printf "%s\n" "#define HAVE_TRUNCATE64 1" >>confdefs.h |
| 27427 |
|
| 27428 |
fi |
| 27429 |
# used for Win32 |
| 27430 |
ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
| 27431 |
if test "x$ac_cv_func_tzset" = xyes |
| 27432 |
then : |
| 27433 |
printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h |
| 27434 |
|
| 27435 |
fi |
| 27436 |
|
| 27437 |
ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" |
| 27438 |
if test "x$ac_cv_func_umask" = xyes |
| 27439 |
then : |
| 27440 |
printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h |
| 27441 |
|
| 27442 |
fi |
| 27443 |
|
| 27444 |
ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" |
| 27445 |
if test "x$ac_cv_func_unsetenv" = xyes |
| 27446 |
then : |
| 27447 |
printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h |
| 27448 |
|
| 27449 |
fi |
| 27450 |
|
| 27451 |
ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" |
| 27452 |
if test "x$ac_cv_func_utimensat" = xyes |
| 27453 |
then : |
| 27454 |
printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h |
| 27455 |
|
| 27456 |
fi |
| 27457 |
|
| 27458 |
ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" |
| 27459 |
if test "x$ac_cv_func_utimes" = xyes |
| 27460 |
then : |
| 27461 |
printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h |
| 27462 |
|
| 27463 |
fi |
| 27464 |
|
| 27465 |
ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" |
| 27466 |
if test "x$ac_cv_func_wait4" = xyes |
| 27467 |
then : |
| 27468 |
printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h |
| 27469 |
|
| 27470 |
fi |
| 27471 |
|
| 27472 |
ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" |
| 27473 |
if test "x$ac_cv_func_waitpid" = xyes |
| 27474 |
then : |
| 27475 |
printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h |
| 27476 |
|
| 27477 |
fi |
| 27478 |
|
| 27479 |
ac_fn_c_check_func "$LINENO" "__cospi" "ac_cv_func___cospi" |
| 27480 |
if test "x$ac_cv_func___cospi" = xyes |
| 27481 |
then : |
| 27482 |
printf "%s\n" "#define HAVE___COSPI 1" >>confdefs.h |
| 27483 |
|
| 27484 |
fi |
| 27485 |
|
| 27486 |
ac_fn_c_check_func "$LINENO" "__sinpi" "ac_cv_func___sinpi" |
| 27487 |
if test "x$ac_cv_func___sinpi" = xyes |
| 27488 |
then : |
| 27489 |
printf "%s\n" "#define HAVE___SINPI 1" >>confdefs.h |
| 27490 |
|
| 27491 |
fi |
| 27492 |
|
| 27493 |
|
| 27494 |
if test "x$ac_cv_member_struct_statx_stx_btime" = xyes |
| 27495 |
then : |
| 27496 |
ac_fn_c_check_func "$LINENO" "statx" "ac_cv_func_statx" |
| 27497 |
if test "x$ac_cv_func_statx" = xyes |
| 27498 |
then : |
| 27499 |
printf "%s\n" "#define HAVE_STATX 1" >>confdefs.h |
| 27500 |
|
| 27501 |
fi |
| 27502 |
|
| 27503 |
fi |
| 27504 |
|
| 27505 |
if test "$ac_cv_func_getcwd" = yes |
| 27506 |
then : |
| 27507 |
|
| 27508 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getcwd allocates buffer if NULL is given" >&5 |
| 27509 |
printf %s "checking if getcwd allocates buffer if NULL is given... " >&6; } |
| 27510 |
if test ${rb_cv_getcwd_malloc+y} |
| 27511 |
then : |
| 27512 |
printf %s "(cached) " >&6 |
| 27513 |
else $as_nop |
| 27514 |
if test "$cross_compiling" = yes |
| 27515 |
then : |
| 27516 |
case $target_os in #( |
| 27517 |
linux*|darwin*|*bsd|cygwin*|msys*|mingw*|mswin*) : |
| 27518 |
rb_cv_getcwd_malloc=yes ;; #( |
| 27519 |
*) : |
| 27520 |
rb_cv_getcwd_malloc=no ;; |
| 27521 |
esac |
| 27522 |
else $as_nop |
| 27523 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27524 |
/* end confdefs.h. */ |
| 27525 |
|
| 27526 |
#include <stddef.h> |
| 27527 |
#include <stdio.h> |
| 27528 |
#ifdef HAVE_UNISTD_H |
| 27529 |
#include <unistd.h> |
| 27530 |
#endif |
| 27531 |
#ifndef EXIT_SUCCESS |
| 27532 |
#define EXIT_SUCCESS 0 |
| 27533 |
#endif |
| 27534 |
#ifndef EXIT_FAILURE |
| 27535 |
#define EXIT_FAILURE 1 |
| 27536 |
#endif |
| 27537 |
|
| 27538 |
int |
| 27539 |
main(int argc, char **argv) |
| 27540 |
{ |
| 27541 |
if (!getcwd(NULL, 0)) return EXIT_FAILURE; |
| 27542 |
return EXIT_SUCCESS; |
| 27543 |
} |
| 27544 |
|
| 27545 |
_ACEOF |
| 27546 |
if ac_fn_c_try_run "$LINENO" |
| 27547 |
then : |
| 27548 |
rb_cv_getcwd_malloc=yes |
| 27549 |
else $as_nop |
| 27550 |
rb_cv_getcwd_malloc=no |
| 27551 |
fi |
| 27552 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 27553 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 27554 |
fi |
| 27555 |
|
| 27556 |
fi |
| 27557 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_getcwd_malloc" >&5 |
| 27558 |
colorize_result "$rb_cv_getcwd_malloc" ; } |
| 27559 |
if test "$rb_cv_getcwd_malloc" = no |
| 27560 |
then : |
| 27561 |
printf "%s\n" "#define NO_GETCWD_MALLOC 1" >>confdefs.h |
| 27562 |
|
| 27563 |
fi |
| 27564 |
|
| 27565 |
fi |
| 27566 |
|
| 27567 |
if test "$ac_cv_func_crypt_r" = yes |
| 27568 |
then : |
| 27569 |
ac_fn_c_check_header_compile "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" |
| 27570 |
if test "x$ac_cv_header_crypt_h" = xyes |
| 27571 |
then : |
| 27572 |
printf "%s\n" "#define HAVE_CRYPT_H 1" >>confdefs.h |
| 27573 |
|
| 27574 |
fi |
| 27575 |
|
| 27576 |
fi |
| 27577 |
if test "$ac_cv_func_crypt_r:$ac_cv_header_crypt_h" = yes:yes |
| 27578 |
then : |
| 27579 |
ac_fn_c_check_member "$LINENO" "struct crypt_data" "initialized" "ac_cv_member_struct_crypt_data_initialized" "#include <crypt.h> |
| 27580 |
|
| 27581 |
" |
| 27582 |
if test "x$ac_cv_member_struct_crypt_data_initialized" = xyes |
| 27583 |
then : |
| 27584 |
|
| 27585 |
printf "%s\n" "#define HAVE_STRUCT_CRYPT_DATA_INITIALIZED 1" >>confdefs.h |
| 27586 |
|
| 27587 |
|
| 27588 |
fi |
| 27589 |
|
| 27590 |
fi |
| 27591 |
|
| 27592 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_alloca_with_align" >&5 |
| 27593 |
printf %s "checking for __builtin_alloca_with_align... " >&6; } |
| 27594 |
if test ${rb_cv_builtin___builtin_alloca_with_align+y} |
| 27595 |
then : |
| 27596 |
printf %s "(cached) " >&6 |
| 27597 |
else $as_nop |
| 27598 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27599 |
/* end confdefs.h. */ |
| 27600 |
int foo; |
| 27601 |
int |
| 27602 |
main (void) |
| 27603 |
{ |
| 27604 |
__builtin_alloca_with_align(1, 4096); |
| 27605 |
; |
| 27606 |
return 0; |
| 27607 |
} |
| 27608 |
_ACEOF |
| 27609 |
if ac_fn_c_try_link "$LINENO" |
| 27610 |
then : |
| 27611 |
rb_cv_builtin___builtin_alloca_with_align=yes |
| 27612 |
else $as_nop |
| 27613 |
rb_cv_builtin___builtin_alloca_with_align=no |
| 27614 |
fi |
| 27615 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27616 |
conftest$ac_exeext conftest.$ac_ext |
| 27617 |
fi |
| 27618 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_alloca_with_align" >&5 |
| 27619 |
colorize_result "$rb_cv_builtin___builtin_alloca_with_align" ; } |
| 27620 |
if test "${rb_cv_builtin___builtin_alloca_with_align}" != no |
| 27621 |
then : |
| 27622 |
|
| 27623 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_ALLOCA_WITH_ALIGN 1" >>confdefs.h |
| 27624 |
|
| 27625 |
|
| 27626 |
fi |
| 27627 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_assume_aligned" >&5 |
| 27628 |
printf %s "checking for __builtin_assume_aligned... " >&6; } |
| 27629 |
if test ${rb_cv_builtin___builtin_assume_aligned+y} |
| 27630 |
then : |
| 27631 |
printf %s "(cached) " >&6 |
| 27632 |
else $as_nop |
| 27633 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27634 |
/* end confdefs.h. */ |
| 27635 |
int foo; |
| 27636 |
int |
| 27637 |
main (void) |
| 27638 |
{ |
| 27639 |
__builtin_assume_aligned((void*)32, 32); |
| 27640 |
; |
| 27641 |
return 0; |
| 27642 |
} |
| 27643 |
_ACEOF |
| 27644 |
if ac_fn_c_try_link "$LINENO" |
| 27645 |
then : |
| 27646 |
rb_cv_builtin___builtin_assume_aligned=yes |
| 27647 |
else $as_nop |
| 27648 |
rb_cv_builtin___builtin_assume_aligned=no |
| 27649 |
fi |
| 27650 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27651 |
conftest$ac_exeext conftest.$ac_ext |
| 27652 |
fi |
| 27653 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_assume_aligned" >&5 |
| 27654 |
colorize_result "$rb_cv_builtin___builtin_assume_aligned" ; } |
| 27655 |
if test "${rb_cv_builtin___builtin_assume_aligned}" != no |
| 27656 |
then : |
| 27657 |
|
| 27658 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_ASSUME_ALIGNED 1" >>confdefs.h |
| 27659 |
|
| 27660 |
|
| 27661 |
fi |
| 27662 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap16" >&5 |
| 27663 |
printf %s "checking for __builtin_bswap16... " >&6; } |
| 27664 |
if test ${rb_cv_builtin___builtin_bswap16+y} |
| 27665 |
then : |
| 27666 |
printf %s "(cached) " >&6 |
| 27667 |
else $as_nop |
| 27668 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27669 |
/* end confdefs.h. */ |
| 27670 |
int foo; |
| 27671 |
int |
| 27672 |
main (void) |
| 27673 |
{ |
| 27674 |
__builtin_bswap16(0); |
| 27675 |
; |
| 27676 |
return 0; |
| 27677 |
} |
| 27678 |
_ACEOF |
| 27679 |
if ac_fn_c_try_link "$LINENO" |
| 27680 |
then : |
| 27681 |
rb_cv_builtin___builtin_bswap16=yes |
| 27682 |
else $as_nop |
| 27683 |
rb_cv_builtin___builtin_bswap16=no |
| 27684 |
fi |
| 27685 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27686 |
conftest$ac_exeext conftest.$ac_ext |
| 27687 |
fi |
| 27688 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap16" >&5 |
| 27689 |
colorize_result "$rb_cv_builtin___builtin_bswap16" ; } |
| 27690 |
if test "${rb_cv_builtin___builtin_bswap16}" != no |
| 27691 |
then : |
| 27692 |
|
| 27693 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_BSWAP16 1" >>confdefs.h |
| 27694 |
|
| 27695 |
|
| 27696 |
fi |
| 27697 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap32" >&5 |
| 27698 |
printf %s "checking for __builtin_bswap32... " >&6; } |
| 27699 |
if test ${rb_cv_builtin___builtin_bswap32+y} |
| 27700 |
then : |
| 27701 |
printf %s "(cached) " >&6 |
| 27702 |
else $as_nop |
| 27703 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27704 |
/* end confdefs.h. */ |
| 27705 |
int foo; |
| 27706 |
int |
| 27707 |
main (void) |
| 27708 |
{ |
| 27709 |
__builtin_bswap32(0); |
| 27710 |
; |
| 27711 |
return 0; |
| 27712 |
} |
| 27713 |
_ACEOF |
| 27714 |
if ac_fn_c_try_link "$LINENO" |
| 27715 |
then : |
| 27716 |
rb_cv_builtin___builtin_bswap32=yes |
| 27717 |
else $as_nop |
| 27718 |
rb_cv_builtin___builtin_bswap32=no |
| 27719 |
fi |
| 27720 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27721 |
conftest$ac_exeext conftest.$ac_ext |
| 27722 |
fi |
| 27723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap32" >&5 |
| 27724 |
colorize_result "$rb_cv_builtin___builtin_bswap32" ; } |
| 27725 |
if test "${rb_cv_builtin___builtin_bswap32}" != no |
| 27726 |
then : |
| 27727 |
|
| 27728 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_BSWAP32 1" >>confdefs.h |
| 27729 |
|
| 27730 |
|
| 27731 |
fi |
| 27732 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_bswap64" >&5 |
| 27733 |
printf %s "checking for __builtin_bswap64... " >&6; } |
| 27734 |
if test ${rb_cv_builtin___builtin_bswap64+y} |
| 27735 |
then : |
| 27736 |
printf %s "(cached) " >&6 |
| 27737 |
else $as_nop |
| 27738 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27739 |
/* end confdefs.h. */ |
| 27740 |
int foo; |
| 27741 |
int |
| 27742 |
main (void) |
| 27743 |
{ |
| 27744 |
__builtin_bswap64(0); |
| 27745 |
; |
| 27746 |
return 0; |
| 27747 |
} |
| 27748 |
_ACEOF |
| 27749 |
if ac_fn_c_try_link "$LINENO" |
| 27750 |
then : |
| 27751 |
rb_cv_builtin___builtin_bswap64=yes |
| 27752 |
else $as_nop |
| 27753 |
rb_cv_builtin___builtin_bswap64=no |
| 27754 |
fi |
| 27755 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27756 |
conftest$ac_exeext conftest.$ac_ext |
| 27757 |
fi |
| 27758 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_bswap64" >&5 |
| 27759 |
colorize_result "$rb_cv_builtin___builtin_bswap64" ; } |
| 27760 |
if test "${rb_cv_builtin___builtin_bswap64}" != no |
| 27761 |
then : |
| 27762 |
|
| 27763 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_BSWAP64 1" >>confdefs.h |
| 27764 |
|
| 27765 |
|
| 27766 |
fi |
| 27767 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 |
| 27768 |
printf %s "checking for __builtin_popcount... " >&6; } |
| 27769 |
if test ${rb_cv_builtin___builtin_popcount+y} |
| 27770 |
then : |
| 27771 |
printf %s "(cached) " >&6 |
| 27772 |
else $as_nop |
| 27773 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27774 |
/* end confdefs.h. */ |
| 27775 |
int foo; |
| 27776 |
int |
| 27777 |
main (void) |
| 27778 |
{ |
| 27779 |
__builtin_popcount(0); |
| 27780 |
; |
| 27781 |
return 0; |
| 27782 |
} |
| 27783 |
_ACEOF |
| 27784 |
if ac_fn_c_try_link "$LINENO" |
| 27785 |
then : |
| 27786 |
rb_cv_builtin___builtin_popcount=yes |
| 27787 |
else $as_nop |
| 27788 |
rb_cv_builtin___builtin_popcount=no |
| 27789 |
fi |
| 27790 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27791 |
conftest$ac_exeext conftest.$ac_ext |
| 27792 |
fi |
| 27793 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_popcount" >&5 |
| 27794 |
colorize_result "$rb_cv_builtin___builtin_popcount" ; } |
| 27795 |
if test "${rb_cv_builtin___builtin_popcount}" != no |
| 27796 |
then : |
| 27797 |
|
| 27798 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_POPCOUNT 1" >>confdefs.h |
| 27799 |
|
| 27800 |
|
| 27801 |
fi |
| 27802 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcountll" >&5 |
| 27803 |
printf %s "checking for __builtin_popcountll... " >&6; } |
| 27804 |
if test ${rb_cv_builtin___builtin_popcountll+y} |
| 27805 |
then : |
| 27806 |
printf %s "(cached) " >&6 |
| 27807 |
else $as_nop |
| 27808 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27809 |
/* end confdefs.h. */ |
| 27810 |
int foo; |
| 27811 |
int |
| 27812 |
main (void) |
| 27813 |
{ |
| 27814 |
__builtin_popcountll(0); |
| 27815 |
; |
| 27816 |
return 0; |
| 27817 |
} |
| 27818 |
_ACEOF |
| 27819 |
if ac_fn_c_try_link "$LINENO" |
| 27820 |
then : |
| 27821 |
rb_cv_builtin___builtin_popcountll=yes |
| 27822 |
else $as_nop |
| 27823 |
rb_cv_builtin___builtin_popcountll=no |
| 27824 |
fi |
| 27825 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27826 |
conftest$ac_exeext conftest.$ac_ext |
| 27827 |
fi |
| 27828 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_popcountll" >&5 |
| 27829 |
colorize_result "$rb_cv_builtin___builtin_popcountll" ; } |
| 27830 |
if test "${rb_cv_builtin___builtin_popcountll}" != no |
| 27831 |
then : |
| 27832 |
|
| 27833 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_POPCOUNTLL 1" >>confdefs.h |
| 27834 |
|
| 27835 |
|
| 27836 |
fi |
| 27837 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 |
| 27838 |
printf %s "checking for __builtin_clz... " >&6; } |
| 27839 |
if test ${rb_cv_builtin___builtin_clz+y} |
| 27840 |
then : |
| 27841 |
printf %s "(cached) " >&6 |
| 27842 |
else $as_nop |
| 27843 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27844 |
/* end confdefs.h. */ |
| 27845 |
int foo; |
| 27846 |
int |
| 27847 |
main (void) |
| 27848 |
{ |
| 27849 |
__builtin_clz(0); |
| 27850 |
; |
| 27851 |
return 0; |
| 27852 |
} |
| 27853 |
_ACEOF |
| 27854 |
if ac_fn_c_try_link "$LINENO" |
| 27855 |
then : |
| 27856 |
rb_cv_builtin___builtin_clz=yes |
| 27857 |
else $as_nop |
| 27858 |
rb_cv_builtin___builtin_clz=no |
| 27859 |
fi |
| 27860 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27861 |
conftest$ac_exeext conftest.$ac_ext |
| 27862 |
fi |
| 27863 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clz" >&5 |
| 27864 |
colorize_result "$rb_cv_builtin___builtin_clz" ; } |
| 27865 |
if test "${rb_cv_builtin___builtin_clz}" != no |
| 27866 |
then : |
| 27867 |
|
| 27868 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CLZ 1" >>confdefs.h |
| 27869 |
|
| 27870 |
|
| 27871 |
fi |
| 27872 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzl" >&5 |
| 27873 |
printf %s "checking for __builtin_clzl... " >&6; } |
| 27874 |
if test ${rb_cv_builtin___builtin_clzl+y} |
| 27875 |
then : |
| 27876 |
printf %s "(cached) " >&6 |
| 27877 |
else $as_nop |
| 27878 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27879 |
/* end confdefs.h. */ |
| 27880 |
int foo; |
| 27881 |
int |
| 27882 |
main (void) |
| 27883 |
{ |
| 27884 |
__builtin_clzl(0); |
| 27885 |
; |
| 27886 |
return 0; |
| 27887 |
} |
| 27888 |
_ACEOF |
| 27889 |
if ac_fn_c_try_link "$LINENO" |
| 27890 |
then : |
| 27891 |
rb_cv_builtin___builtin_clzl=yes |
| 27892 |
else $as_nop |
| 27893 |
rb_cv_builtin___builtin_clzl=no |
| 27894 |
fi |
| 27895 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27896 |
conftest$ac_exeext conftest.$ac_ext |
| 27897 |
fi |
| 27898 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clzl" >&5 |
| 27899 |
colorize_result "$rb_cv_builtin___builtin_clzl" ; } |
| 27900 |
if test "${rb_cv_builtin___builtin_clzl}" != no |
| 27901 |
then : |
| 27902 |
|
| 27903 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CLZL 1" >>confdefs.h |
| 27904 |
|
| 27905 |
|
| 27906 |
fi |
| 27907 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 |
| 27908 |
printf %s "checking for __builtin_clzll... " >&6; } |
| 27909 |
if test ${rb_cv_builtin___builtin_clzll+y} |
| 27910 |
then : |
| 27911 |
printf %s "(cached) " >&6 |
| 27912 |
else $as_nop |
| 27913 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27914 |
/* end confdefs.h. */ |
| 27915 |
int foo; |
| 27916 |
int |
| 27917 |
main (void) |
| 27918 |
{ |
| 27919 |
__builtin_clzll(0); |
| 27920 |
; |
| 27921 |
return 0; |
| 27922 |
} |
| 27923 |
_ACEOF |
| 27924 |
if ac_fn_c_try_link "$LINENO" |
| 27925 |
then : |
| 27926 |
rb_cv_builtin___builtin_clzll=yes |
| 27927 |
else $as_nop |
| 27928 |
rb_cv_builtin___builtin_clzll=no |
| 27929 |
fi |
| 27930 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27931 |
conftest$ac_exeext conftest.$ac_ext |
| 27932 |
fi |
| 27933 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_clzll" >&5 |
| 27934 |
colorize_result "$rb_cv_builtin___builtin_clzll" ; } |
| 27935 |
if test "${rb_cv_builtin___builtin_clzll}" != no |
| 27936 |
then : |
| 27937 |
|
| 27938 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CLZLL 1" >>confdefs.h |
| 27939 |
|
| 27940 |
|
| 27941 |
fi |
| 27942 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctz" >&5 |
| 27943 |
printf %s "checking for __builtin_ctz... " >&6; } |
| 27944 |
if test ${rb_cv_builtin___builtin_ctz+y} |
| 27945 |
then : |
| 27946 |
printf %s "(cached) " >&6 |
| 27947 |
else $as_nop |
| 27948 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27949 |
/* end confdefs.h. */ |
| 27950 |
int foo; |
| 27951 |
int |
| 27952 |
main (void) |
| 27953 |
{ |
| 27954 |
__builtin_ctz(0); |
| 27955 |
; |
| 27956 |
return 0; |
| 27957 |
} |
| 27958 |
_ACEOF |
| 27959 |
if ac_fn_c_try_link "$LINENO" |
| 27960 |
then : |
| 27961 |
rb_cv_builtin___builtin_ctz=yes |
| 27962 |
else $as_nop |
| 27963 |
rb_cv_builtin___builtin_ctz=no |
| 27964 |
fi |
| 27965 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 27966 |
conftest$ac_exeext conftest.$ac_ext |
| 27967 |
fi |
| 27968 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_ctz" >&5 |
| 27969 |
colorize_result "$rb_cv_builtin___builtin_ctz" ; } |
| 27970 |
if test "${rb_cv_builtin___builtin_ctz}" != no |
| 27971 |
then : |
| 27972 |
|
| 27973 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CTZ 1" >>confdefs.h |
| 27974 |
|
| 27975 |
|
| 27976 |
fi |
| 27977 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ctzll" >&5 |
| 27978 |
printf %s "checking for __builtin_ctzll... " >&6; } |
| 27979 |
if test ${rb_cv_builtin___builtin_ctzll+y} |
| 27980 |
then : |
| 27981 |
printf %s "(cached) " >&6 |
| 27982 |
else $as_nop |
| 27983 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 27984 |
/* end confdefs.h. */ |
| 27985 |
int foo; |
| 27986 |
int |
| 27987 |
main (void) |
| 27988 |
{ |
| 27989 |
__builtin_ctzll(0); |
| 27990 |
; |
| 27991 |
return 0; |
| 27992 |
} |
| 27993 |
_ACEOF |
| 27994 |
if ac_fn_c_try_link "$LINENO" |
| 27995 |
then : |
| 27996 |
rb_cv_builtin___builtin_ctzll=yes |
| 27997 |
else $as_nop |
| 27998 |
rb_cv_builtin___builtin_ctzll=no |
| 27999 |
fi |
| 28000 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28001 |
conftest$ac_exeext conftest.$ac_ext |
| 28002 |
fi |
| 28003 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_ctzll" >&5 |
| 28004 |
colorize_result "$rb_cv_builtin___builtin_ctzll" ; } |
| 28005 |
if test "${rb_cv_builtin___builtin_ctzll}" != no |
| 28006 |
then : |
| 28007 |
|
| 28008 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CTZLL 1" >>confdefs.h |
| 28009 |
|
| 28010 |
|
| 28011 |
fi |
| 28012 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_add_overflow" >&5 |
| 28013 |
printf %s "checking for __builtin_add_overflow... " >&6; } |
| 28014 |
if test ${rb_cv_builtin___builtin_add_overflow+y} |
| 28015 |
then : |
| 28016 |
printf %s "(cached) " >&6 |
| 28017 |
else $as_nop |
| 28018 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28019 |
/* end confdefs.h. */ |
| 28020 |
int foo; |
| 28021 |
int |
| 28022 |
main (void) |
| 28023 |
{ |
| 28024 |
int x;__builtin_add_overflow(0,0,&x); |
| 28025 |
; |
| 28026 |
return 0; |
| 28027 |
} |
| 28028 |
_ACEOF |
| 28029 |
if ac_fn_c_try_link "$LINENO" |
| 28030 |
then : |
| 28031 |
rb_cv_builtin___builtin_add_overflow=yes |
| 28032 |
else $as_nop |
| 28033 |
rb_cv_builtin___builtin_add_overflow=no |
| 28034 |
fi |
| 28035 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28036 |
conftest$ac_exeext conftest.$ac_ext |
| 28037 |
fi |
| 28038 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_add_overflow" >&5 |
| 28039 |
colorize_result "$rb_cv_builtin___builtin_add_overflow" ; } |
| 28040 |
if test "${rb_cv_builtin___builtin_add_overflow}" != no |
| 28041 |
then : |
| 28042 |
|
| 28043 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_ADD_OVERFLOW 1" >>confdefs.h |
| 28044 |
|
| 28045 |
|
| 28046 |
fi |
| 28047 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_sub_overflow" >&5 |
| 28048 |
printf %s "checking for __builtin_sub_overflow... " >&6; } |
| 28049 |
if test ${rb_cv_builtin___builtin_sub_overflow+y} |
| 28050 |
then : |
| 28051 |
printf %s "(cached) " >&6 |
| 28052 |
else $as_nop |
| 28053 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28054 |
/* end confdefs.h. */ |
| 28055 |
int foo; |
| 28056 |
int |
| 28057 |
main (void) |
| 28058 |
{ |
| 28059 |
int x;__builtin_sub_overflow(0,0,&x); |
| 28060 |
; |
| 28061 |
return 0; |
| 28062 |
} |
| 28063 |
_ACEOF |
| 28064 |
if ac_fn_c_try_link "$LINENO" |
| 28065 |
then : |
| 28066 |
rb_cv_builtin___builtin_sub_overflow=yes |
| 28067 |
else $as_nop |
| 28068 |
rb_cv_builtin___builtin_sub_overflow=no |
| 28069 |
fi |
| 28070 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28071 |
conftest$ac_exeext conftest.$ac_ext |
| 28072 |
fi |
| 28073 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_sub_overflow" >&5 |
| 28074 |
colorize_result "$rb_cv_builtin___builtin_sub_overflow" ; } |
| 28075 |
if test "${rb_cv_builtin___builtin_sub_overflow}" != no |
| 28076 |
then : |
| 28077 |
|
| 28078 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_SUB_OVERFLOW 1" >>confdefs.h |
| 28079 |
|
| 28080 |
|
| 28081 |
fi |
| 28082 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow" >&5 |
| 28083 |
printf %s "checking for __builtin_mul_overflow... " >&6; } |
| 28084 |
if test ${rb_cv_builtin___builtin_mul_overflow+y} |
| 28085 |
then : |
| 28086 |
printf %s "(cached) " >&6 |
| 28087 |
else $as_nop |
| 28088 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28089 |
/* end confdefs.h. */ |
| 28090 |
int foo; |
| 28091 |
int |
| 28092 |
main (void) |
| 28093 |
{ |
| 28094 |
int x;__builtin_mul_overflow(0,0,&x); |
| 28095 |
; |
| 28096 |
return 0; |
| 28097 |
} |
| 28098 |
_ACEOF |
| 28099 |
if ac_fn_c_try_link "$LINENO" |
| 28100 |
then : |
| 28101 |
rb_cv_builtin___builtin_mul_overflow=yes |
| 28102 |
else $as_nop |
| 28103 |
rb_cv_builtin___builtin_mul_overflow=no |
| 28104 |
fi |
| 28105 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28106 |
conftest$ac_exeext conftest.$ac_ext |
| 28107 |
fi |
| 28108 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_mul_overflow" >&5 |
| 28109 |
colorize_result "$rb_cv_builtin___builtin_mul_overflow" ; } |
| 28110 |
if test "${rb_cv_builtin___builtin_mul_overflow}" != no |
| 28111 |
then : |
| 28112 |
|
| 28113 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_MUL_OVERFLOW 1" >>confdefs.h |
| 28114 |
|
| 28115 |
|
| 28116 |
fi |
| 28117 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow_p" >&5 |
| 28118 |
printf %s "checking for __builtin_mul_overflow_p... " >&6; } |
| 28119 |
if test ${rb_cv_builtin___builtin_mul_overflow_p+y} |
| 28120 |
then : |
| 28121 |
printf %s "(cached) " >&6 |
| 28122 |
else $as_nop |
| 28123 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28124 |
/* end confdefs.h. */ |
| 28125 |
int foo; |
| 28126 |
int |
| 28127 |
main (void) |
| 28128 |
{ |
| 28129 |
__builtin_mul_overflow_p(0,0,(int)0); |
| 28130 |
; |
| 28131 |
return 0; |
| 28132 |
} |
| 28133 |
_ACEOF |
| 28134 |
if ac_fn_c_try_link "$LINENO" |
| 28135 |
then : |
| 28136 |
rb_cv_builtin___builtin_mul_overflow_p=yes |
| 28137 |
else $as_nop |
| 28138 |
rb_cv_builtin___builtin_mul_overflow_p=no |
| 28139 |
fi |
| 28140 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28141 |
conftest$ac_exeext conftest.$ac_ext |
| 28142 |
fi |
| 28143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_mul_overflow_p" >&5 |
| 28144 |
colorize_result "$rb_cv_builtin___builtin_mul_overflow_p" ; } |
| 28145 |
if test "${rb_cv_builtin___builtin_mul_overflow_p}" != no |
| 28146 |
then : |
| 28147 |
|
| 28148 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_MUL_OVERFLOW_P 1" >>confdefs.h |
| 28149 |
|
| 28150 |
|
| 28151 |
fi |
| 28152 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_constant_p" >&5 |
| 28153 |
printf %s "checking for __builtin_constant_p... " >&6; } |
| 28154 |
if test ${rb_cv_builtin___builtin_constant_p+y} |
| 28155 |
then : |
| 28156 |
printf %s "(cached) " >&6 |
| 28157 |
else $as_nop |
| 28158 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28159 |
/* end confdefs.h. */ |
| 28160 |
int foo; |
| 28161 |
int |
| 28162 |
main (void) |
| 28163 |
{ |
| 28164 |
__builtin_constant_p(0); |
| 28165 |
; |
| 28166 |
return 0; |
| 28167 |
} |
| 28168 |
_ACEOF |
| 28169 |
if ac_fn_c_try_link "$LINENO" |
| 28170 |
then : |
| 28171 |
rb_cv_builtin___builtin_constant_p=yes |
| 28172 |
else $as_nop |
| 28173 |
rb_cv_builtin___builtin_constant_p=no |
| 28174 |
fi |
| 28175 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28176 |
conftest$ac_exeext conftest.$ac_ext |
| 28177 |
fi |
| 28178 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_constant_p" >&5 |
| 28179 |
colorize_result "$rb_cv_builtin___builtin_constant_p" ; } |
| 28180 |
if test "${rb_cv_builtin___builtin_constant_p}" != no |
| 28181 |
then : |
| 28182 |
|
| 28183 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CONSTANT_P 1" >>confdefs.h |
| 28184 |
|
| 28185 |
|
| 28186 |
fi |
| 28187 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr" >&5 |
| 28188 |
printf %s "checking for __builtin_choose_expr... " >&6; } |
| 28189 |
if test ${rb_cv_builtin___builtin_choose_expr+y} |
| 28190 |
then : |
| 28191 |
printf %s "(cached) " >&6 |
| 28192 |
else $as_nop |
| 28193 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28194 |
/* end confdefs.h. */ |
| 28195 |
int foo; |
| 28196 |
int |
| 28197 |
main (void) |
| 28198 |
{ |
| 28199 |
|
| 28200 |
int x[__extension__(__builtin_choose_expr(1, 1, -1))]; |
| 28201 |
int y[__extension__(__builtin_choose_expr(0, -1, 1))]; |
| 28202 |
; |
| 28203 |
; |
| 28204 |
return 0; |
| 28205 |
} |
| 28206 |
_ACEOF |
| 28207 |
if ac_fn_c_try_link "$LINENO" |
| 28208 |
then : |
| 28209 |
rb_cv_builtin___builtin_choose_expr=yes |
| 28210 |
else $as_nop |
| 28211 |
rb_cv_builtin___builtin_choose_expr=no |
| 28212 |
fi |
| 28213 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28214 |
conftest$ac_exeext conftest.$ac_ext |
| 28215 |
fi |
| 28216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_choose_expr" >&5 |
| 28217 |
colorize_result "$rb_cv_builtin___builtin_choose_expr" ; } |
| 28218 |
if test "${rb_cv_builtin___builtin_choose_expr}" != no |
| 28219 |
then : |
| 28220 |
|
| 28221 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR 1" >>confdefs.h |
| 28222 |
|
| 28223 |
|
| 28224 |
fi |
| 28225 |
if test x$rb_cv_builtin___builtin_choose_expr = xyes |
| 28226 |
then : |
| 28227 |
|
| 28228 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_choose_expr_constant_p" >&5 |
| 28229 |
printf %s "checking for __builtin_choose_expr_constant_p... " >&6; } |
| 28230 |
if test ${rb_cv_builtin___builtin_choose_expr_constant_p+y} |
| 28231 |
then : |
| 28232 |
printf %s "(cached) " >&6 |
| 28233 |
else $as_nop |
| 28234 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28235 |
/* end confdefs.h. */ |
| 28236 |
int foo; |
| 28237 |
int |
| 28238 |
main (void) |
| 28239 |
{ |
| 28240 |
|
| 28241 |
int x[__extension__(__builtin_choose_expr(__builtin_constant_p(1), 1, -1))]; |
| 28242 |
int y[__extension__(__builtin_choose_expr(__builtin_constant_p(foo), -1, 1))]; |
| 28243 |
; |
| 28244 |
; |
| 28245 |
return 0; |
| 28246 |
} |
| 28247 |
_ACEOF |
| 28248 |
if ac_fn_c_try_link "$LINENO" |
| 28249 |
then : |
| 28250 |
rb_cv_builtin___builtin_choose_expr_constant_p=yes |
| 28251 |
else $as_nop |
| 28252 |
rb_cv_builtin___builtin_choose_expr_constant_p=no |
| 28253 |
fi |
| 28254 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28255 |
conftest$ac_exeext conftest.$ac_ext |
| 28256 |
fi |
| 28257 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_choose_expr_constant_p" >&5 |
| 28258 |
colorize_result "$rb_cv_builtin___builtin_choose_expr_constant_p" ; } |
| 28259 |
if test "${rb_cv_builtin___builtin_choose_expr_constant_p}" != no |
| 28260 |
then : |
| 28261 |
|
| 28262 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_CHOOSE_EXPR_CONSTANT_P 1" >>confdefs.h |
| 28263 |
|
| 28264 |
|
| 28265 |
fi |
| 28266 |
|
| 28267 |
fi |
| 28268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_types_compatible_p" >&5 |
| 28269 |
printf %s "checking for __builtin_types_compatible_p... " >&6; } |
| 28270 |
if test ${rb_cv_builtin___builtin_types_compatible_p+y} |
| 28271 |
then : |
| 28272 |
printf %s "(cached) " >&6 |
| 28273 |
else $as_nop |
| 28274 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28275 |
/* end confdefs.h. */ |
| 28276 |
int foo; |
| 28277 |
int |
| 28278 |
main (void) |
| 28279 |
{ |
| 28280 |
__builtin_types_compatible_p(int, int); |
| 28281 |
; |
| 28282 |
return 0; |
| 28283 |
} |
| 28284 |
_ACEOF |
| 28285 |
if ac_fn_c_try_link "$LINENO" |
| 28286 |
then : |
| 28287 |
rb_cv_builtin___builtin_types_compatible_p=yes |
| 28288 |
else $as_nop |
| 28289 |
rb_cv_builtin___builtin_types_compatible_p=no |
| 28290 |
fi |
| 28291 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28292 |
conftest$ac_exeext conftest.$ac_ext |
| 28293 |
fi |
| 28294 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_types_compatible_p" >&5 |
| 28295 |
colorize_result "$rb_cv_builtin___builtin_types_compatible_p" ; } |
| 28296 |
if test "${rb_cv_builtin___builtin_types_compatible_p}" != no |
| 28297 |
then : |
| 28298 |
|
| 28299 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_TYPES_COMPATIBLE_P 1" >>confdefs.h |
| 28300 |
|
| 28301 |
|
| 28302 |
fi |
| 28303 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_trap" >&5 |
| 28304 |
printf %s "checking for __builtin_trap... " >&6; } |
| 28305 |
if test ${rb_cv_builtin___builtin_trap+y} |
| 28306 |
then : |
| 28307 |
printf %s "(cached) " >&6 |
| 28308 |
else $as_nop |
| 28309 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28310 |
/* end confdefs.h. */ |
| 28311 |
int foo; |
| 28312 |
int |
| 28313 |
main (void) |
| 28314 |
{ |
| 28315 |
__builtin_trap(); |
| 28316 |
; |
| 28317 |
return 0; |
| 28318 |
} |
| 28319 |
_ACEOF |
| 28320 |
if ac_fn_c_try_link "$LINENO" |
| 28321 |
then : |
| 28322 |
rb_cv_builtin___builtin_trap=yes |
| 28323 |
else $as_nop |
| 28324 |
rb_cv_builtin___builtin_trap=no |
| 28325 |
fi |
| 28326 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28327 |
conftest$ac_exeext conftest.$ac_ext |
| 28328 |
fi |
| 28329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_trap" >&5 |
| 28330 |
colorize_result "$rb_cv_builtin___builtin_trap" ; } |
| 28331 |
if test "${rb_cv_builtin___builtin_trap}" != no |
| 28332 |
then : |
| 28333 |
|
| 28334 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_TRAP 1" >>confdefs.h |
| 28335 |
|
| 28336 |
|
| 28337 |
fi |
| 28338 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5 |
| 28339 |
printf %s "checking for __builtin_expect... " >&6; } |
| 28340 |
if test ${rb_cv_builtin___builtin_expect+y} |
| 28341 |
then : |
| 28342 |
printf %s "(cached) " >&6 |
| 28343 |
else $as_nop |
| 28344 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28345 |
/* end confdefs.h. */ |
| 28346 |
int foo; |
| 28347 |
int |
| 28348 |
main (void) |
| 28349 |
{ |
| 28350 |
__builtin_expect(0, 0); |
| 28351 |
; |
| 28352 |
return 0; |
| 28353 |
} |
| 28354 |
_ACEOF |
| 28355 |
if ac_fn_c_try_link "$LINENO" |
| 28356 |
then : |
| 28357 |
rb_cv_builtin___builtin_expect=yes |
| 28358 |
else $as_nop |
| 28359 |
rb_cv_builtin___builtin_expect=no |
| 28360 |
fi |
| 28361 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28362 |
conftest$ac_exeext conftest.$ac_ext |
| 28363 |
fi |
| 28364 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_builtin___builtin_expect" >&5 |
| 28365 |
colorize_result "$rb_cv_builtin___builtin_expect" ; } |
| 28366 |
if test "${rb_cv_builtin___builtin_expect}" != no |
| 28367 |
then : |
| 28368 |
|
| 28369 |
printf "%s\n" "#define HAVE_BUILTIN___BUILTIN_EXPECT 1" >>confdefs.h |
| 28370 |
|
| 28371 |
|
| 28372 |
fi |
| 28373 |
|
| 28374 |
if test "$rb_cv_builtin___builtin_mul_overflow" != no |
| 28375 |
then : |
| 28376 |
|
| 28377 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_mul_overflow with long long arguments" >&5 |
| 28378 |
printf %s "checking for __builtin_mul_overflow with long long arguments... " >&6; } |
| 28379 |
if test ${rb_cv_use___builtin_mul_overflow_long_long+y} |
| 28380 |
then : |
| 28381 |
printf %s "(cached) " >&6 |
| 28382 |
else $as_nop |
| 28383 |
|
| 28384 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28385 |
/* end confdefs.h. */ |
| 28386 |
|
| 28387 |
#pragma clang optimize off |
| 28388 |
|
| 28389 |
int |
| 28390 |
main(void) |
| 28391 |
{ |
| 28392 |
long long x = 0, y; |
| 28393 |
__builtin_mul_overflow(x, x, &y); |
| 28394 |
|
| 28395 |
return 0; |
| 28396 |
} |
| 28397 |
|
| 28398 |
_ACEOF |
| 28399 |
if ac_fn_c_try_link "$LINENO" |
| 28400 |
then : |
| 28401 |
rb_cv_use___builtin_mul_overflow_long_long=yes |
| 28402 |
else $as_nop |
| 28403 |
rb_cv_use___builtin_mul_overflow_long_long=no |
| 28404 |
fi |
| 28405 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28406 |
conftest$ac_exeext conftest.$ac_ext |
| 28407 |
fi |
| 28408 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_use___builtin_mul_overflow_long_long" >&5 |
| 28409 |
colorize_result "$rb_cv_use___builtin_mul_overflow_long_long" ; } |
| 28410 |
|
| 28411 |
fi |
| 28412 |
if test "$rb_cv_use___builtin_mul_overflow_long_long" = yes |
| 28413 |
then : |
| 28414 |
|
| 28415 |
printf "%s\n" "#define USE___BUILTIN_MUL_OVERFLOW_LONG_LONG 1" >>confdefs.h |
| 28416 |
|
| 28417 |
|
| 28418 |
fi |
| 28419 |
|
| 28420 |
if test "$ac_cv_func_qsort_r" != no |
| 28421 |
then : |
| 28422 |
|
| 28423 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5 |
| 28424 |
printf %s "checking whether qsort_r is GNU version... " >&6; } |
| 28425 |
if test ${rb_cv_gnu_qsort_r+y} |
| 28426 |
then : |
| 28427 |
printf %s "(cached) " >&6 |
| 28428 |
else $as_nop |
| 28429 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28430 |
/* end confdefs.h. */ |
| 28431 |
|
| 28432 |
#include <stdlib.h> |
| 28433 |
void (qsort_r)(void *base, size_t nmemb, size_t size, |
| 28434 |
int (*compar)(const void *, const void *, void *), |
| 28435 |
void *arg); |
| 28436 |
|
| 28437 |
int |
| 28438 |
main (void) |
| 28439 |
{ |
| 28440 |
|
| 28441 |
; |
| 28442 |
return 0; |
| 28443 |
} |
| 28444 |
_ACEOF |
| 28445 |
if ac_fn_c_try_compile "$LINENO" |
| 28446 |
then : |
| 28447 |
rb_cv_gnu_qsort_r=yes |
| 28448 |
else $as_nop |
| 28449 |
rb_cv_gnu_qsort_r=no |
| 28450 |
fi |
| 28451 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28452 |
|
| 28453 |
fi |
| 28454 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_gnu_qsort_r" >&5 |
| 28455 |
colorize_result "$rb_cv_gnu_qsort_r" ; } |
| 28456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5 |
| 28457 |
printf %s "checking whether qsort_r is BSD version... " >&6; } |
| 28458 |
if test ${rb_cv_bsd_qsort_r+y} |
| 28459 |
then : |
| 28460 |
printf %s "(cached) " >&6 |
| 28461 |
else $as_nop |
| 28462 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28463 |
/* end confdefs.h. */ |
| 28464 |
|
| 28465 |
#include <stdlib.h> |
| 28466 |
void (qsort_r)(void *base, size_t nmemb, size_t size, |
| 28467 |
void *arg, int (*compar)(void *, const void *, const void *)); |
| 28468 |
|
| 28469 |
int |
| 28470 |
main (void) |
| 28471 |
{ |
| 28472 |
|
| 28473 |
; |
| 28474 |
return 0; |
| 28475 |
} |
| 28476 |
_ACEOF |
| 28477 |
if ac_fn_c_try_compile "$LINENO" |
| 28478 |
then : |
| 28479 |
rb_cv_bsd_qsort_r=yes |
| 28480 |
else $as_nop |
| 28481 |
rb_cv_bsd_qsort_r=no |
| 28482 |
fi |
| 28483 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28484 |
|
| 28485 |
fi |
| 28486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_bsd_qsort_r" >&5 |
| 28487 |
colorize_result "$rb_cv_bsd_qsort_r" ; } |
| 28488 |
case "$rb_cv_gnu_qsort_r:$rb_cv_bsd_qsort_r" in #( |
| 28489 |
yes:no) : |
| 28490 |
|
| 28491 |
printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h |
| 28492 |
|
| 28493 |
;; #( |
| 28494 |
no:yes) : |
| 28495 |
|
| 28496 |
printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h |
| 28497 |
|
| 28498 |
;; #( |
| 28499 |
*) : |
| 28500 |
;; |
| 28501 |
esac |
| 28502 |
|
| 28503 |
fi |
| 28504 |
|
| 28505 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether atan2 handles Inf as C99" >&5 |
| 28506 |
printf %s "checking whether atan2 handles Inf as C99... " >&6; } |
| 28507 |
if test ${rb_cv_atan2_inf_c99+y} |
| 28508 |
then : |
| 28509 |
printf %s "(cached) " >&6 |
| 28510 |
else $as_nop |
| 28511 |
|
| 28512 |
if test $ac_cv_func_atan2f:$ac_cv_func_atan2l = yes:yes |
| 28513 |
then : |
| 28514 |
|
| 28515 |
if test "$cross_compiling" = yes |
| 28516 |
then : |
| 28517 |
case $target_os in #( |
| 28518 |
mingw*|mswin*) : |
| 28519 |
rb_cv_atan2_inf_c99=no ;; #( |
| 28520 |
*) : |
| 28521 |
rb_cv_atan2_inf_c99=yes ;; |
| 28522 |
esac |
| 28523 |
|
| 28524 |
else $as_nop |
| 28525 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28526 |
/* end confdefs.h. */ |
| 28527 |
|
| 28528 |
#include <math.h> |
| 28529 |
#ifdef HAVE_UNISTD_H |
| 28530 |
#include <unistd.h> |
| 28531 |
#endif |
| 28532 |
#ifndef EXIT_SUCCESS |
| 28533 |
#define EXIT_SUCCESS 0 |
| 28534 |
#endif |
| 28535 |
#ifndef EXIT_FAILURE |
| 28536 |
#define EXIT_FAILURE 1 |
| 28537 |
#endif |
| 28538 |
|
| 28539 |
int |
| 28540 |
main(int argc, char **argv) |
| 28541 |
{ |
| 28542 |
if (fabs(atan2(INFINITY, INFINITY) - M_PI_4) <= 0.01) return EXIT_SUCCESS; |
| 28543 |
return EXIT_FAILURE; |
| 28544 |
} |
| 28545 |
|
| 28546 |
_ACEOF |
| 28547 |
if ac_fn_c_try_run "$LINENO" |
| 28548 |
then : |
| 28549 |
rb_cv_atan2_inf_c99=yes |
| 28550 |
else $as_nop |
| 28551 |
rb_cv_atan2_inf_c99=no |
| 28552 |
fi |
| 28553 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 28554 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28555 |
fi |
| 28556 |
|
| 28557 |
|
| 28558 |
else $as_nop |
| 28559 |
rb_cv_atan2_inf_c99=no |
| 28560 |
fi |
| 28561 |
|
| 28562 |
fi |
| 28563 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_atan2_inf_c99" >&5 |
| 28564 |
colorize_result "$rb_cv_atan2_inf_c99" ; } |
| 28565 |
if test "x$rb_cv_atan2_inf_c99" = xyes |
| 28566 |
then : |
| 28567 |
printf "%s\n" "#define ATAN2_INF_C99 1" >>confdefs.h |
| 28568 |
|
| 28569 |
fi |
| 28570 |
|
| 28571 |
# Some platform need -lrt for clock_gettime, but the other don't. |
| 28572 |
if test x"$ac_cv_func_clock_gettime" != xyes |
| 28573 |
then : |
| 28574 |
|
| 28575 |
# glibc 2.17 moves clock_* functions from librt to the main C library. |
| 28576 |
# https://sourceware.org/legacy-ml/libc-announce/2012/msg00001.html |
| 28577 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 |
| 28578 |
printf %s "checking for clock_gettime in -lrt... " >&6; } |
| 28579 |
if test ${ac_cv_lib_rt_clock_gettime+y} |
| 28580 |
then : |
| 28581 |
printf %s "(cached) " >&6 |
| 28582 |
else $as_nop |
| 28583 |
ac_check_lib_save_LIBS=$LIBS |
| 28584 |
LIBS="-lrt $LIBS" |
| 28585 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28586 |
/* end confdefs.h. */ |
| 28587 |
|
| 28588 |
/* Override any GCC internal prototype to avoid an error. |
| 28589 |
Use char because int might match the return type of a GCC |
| 28590 |
builtin and then its argument prototype would still apply. */ |
| 28591 |
char clock_gettime (); |
| 28592 |
int |
| 28593 |
main (void) |
| 28594 |
{ |
| 28595 |
return clock_gettime (); |
| 28596 |
; |
| 28597 |
return 0; |
| 28598 |
} |
| 28599 |
_ACEOF |
| 28600 |
if ac_fn_c_try_link "$LINENO" |
| 28601 |
then : |
| 28602 |
ac_cv_lib_rt_clock_gettime=yes |
| 28603 |
else $as_nop |
| 28604 |
ac_cv_lib_rt_clock_gettime=no |
| 28605 |
fi |
| 28606 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28607 |
conftest$ac_exeext conftest.$ac_ext |
| 28608 |
LIBS=$ac_check_lib_save_LIBS |
| 28609 |
fi |
| 28610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 |
| 28611 |
colorize_result "$ac_cv_lib_rt_clock_gettime" ; } |
| 28612 |
if test "x$ac_cv_lib_rt_clock_gettime" = xyes |
| 28613 |
then : |
| 28614 |
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
| 28615 |
|
| 28616 |
LIBS="-lrt $LIBS" |
| 28617 |
|
| 28618 |
fi |
| 28619 |
|
| 28620 |
if test x"$ac_cv_lib_rt_clock_gettime" = xyes |
| 28621 |
then : |
| 28622 |
|
| 28623 |
printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h |
| 28624 |
|
| 28625 |
|
| 28626 |
fi |
| 28627 |
|
| 28628 |
fi |
| 28629 |
ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" |
| 28630 |
if test "x$ac_cv_func_clock_getres" = xyes |
| 28631 |
then : |
| 28632 |
printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h |
| 28633 |
|
| 28634 |
fi |
| 28635 |
# clock_getres should be tested after clock_gettime test including librt test. |
| 28636 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_create in -lrt" >&5 |
| 28637 |
printf %s "checking for timer_create in -lrt... " >&6; } |
| 28638 |
if test ${ac_cv_lib_rt_timer_create+y} |
| 28639 |
then : |
| 28640 |
printf %s "(cached) " >&6 |
| 28641 |
else $as_nop |
| 28642 |
ac_check_lib_save_LIBS=$LIBS |
| 28643 |
LIBS="-lrt $LIBS" |
| 28644 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28645 |
/* end confdefs.h. */ |
| 28646 |
|
| 28647 |
/* Override any GCC internal prototype to avoid an error. |
| 28648 |
Use char because int might match the return type of a GCC |
| 28649 |
builtin and then its argument prototype would still apply. */ |
| 28650 |
char timer_create (); |
| 28651 |
int |
| 28652 |
main (void) |
| 28653 |
{ |
| 28654 |
return timer_create (); |
| 28655 |
; |
| 28656 |
return 0; |
| 28657 |
} |
| 28658 |
_ACEOF |
| 28659 |
if ac_fn_c_try_link "$LINENO" |
| 28660 |
then : |
| 28661 |
ac_cv_lib_rt_timer_create=yes |
| 28662 |
else $as_nop |
| 28663 |
ac_cv_lib_rt_timer_create=no |
| 28664 |
fi |
| 28665 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28666 |
conftest$ac_exeext conftest.$ac_ext |
| 28667 |
LIBS=$ac_check_lib_save_LIBS |
| 28668 |
fi |
| 28669 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_create" >&5 |
| 28670 |
colorize_result "$ac_cv_lib_rt_timer_create" ; } |
| 28671 |
if test "x$ac_cv_lib_rt_timer_create" = xyes |
| 28672 |
then : |
| 28673 |
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
| 28674 |
|
| 28675 |
LIBS="-lrt $LIBS" |
| 28676 |
|
| 28677 |
fi |
| 28678 |
|
| 28679 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timer_settime in -lrt" >&5 |
| 28680 |
printf %s "checking for timer_settime in -lrt... " >&6; } |
| 28681 |
if test ${ac_cv_lib_rt_timer_settime+y} |
| 28682 |
then : |
| 28683 |
printf %s "(cached) " >&6 |
| 28684 |
else $as_nop |
| 28685 |
ac_check_lib_save_LIBS=$LIBS |
| 28686 |
LIBS="-lrt $LIBS" |
| 28687 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28688 |
/* end confdefs.h. */ |
| 28689 |
|
| 28690 |
/* Override any GCC internal prototype to avoid an error. |
| 28691 |
Use char because int might match the return type of a GCC |
| 28692 |
builtin and then its argument prototype would still apply. */ |
| 28693 |
char timer_settime (); |
| 28694 |
int |
| 28695 |
main (void) |
| 28696 |
{ |
| 28697 |
return timer_settime (); |
| 28698 |
; |
| 28699 |
return 0; |
| 28700 |
} |
| 28701 |
_ACEOF |
| 28702 |
if ac_fn_c_try_link "$LINENO" |
| 28703 |
then : |
| 28704 |
ac_cv_lib_rt_timer_settime=yes |
| 28705 |
else $as_nop |
| 28706 |
ac_cv_lib_rt_timer_settime=no |
| 28707 |
fi |
| 28708 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28709 |
conftest$ac_exeext conftest.$ac_ext |
| 28710 |
LIBS=$ac_check_lib_save_LIBS |
| 28711 |
fi |
| 28712 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_timer_settime" >&5 |
| 28713 |
colorize_result "$ac_cv_lib_rt_timer_settime" ; } |
| 28714 |
if test "x$ac_cv_lib_rt_timer_settime" = xyes |
| 28715 |
then : |
| 28716 |
printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h |
| 28717 |
|
| 28718 |
LIBS="-lrt $LIBS" |
| 28719 |
|
| 28720 |
fi |
| 28721 |
|
| 28722 |
if test x"$ac_cv_lib_rt_timer_create" = xyes |
| 28723 |
then : |
| 28724 |
|
| 28725 |
printf "%s\n" "#define HAVE_TIMER_CREATE 1" >>confdefs.h |
| 28726 |
|
| 28727 |
|
| 28728 |
fi |
| 28729 |
if test x"$ac_cv_lib_rt_timer_settime" = xyes |
| 28730 |
then : |
| 28731 |
|
| 28732 |
printf "%s\n" "#define HAVE_TIMER_SETTIME 1" >>confdefs.h |
| 28733 |
|
| 28734 |
|
| 28735 |
fi |
| 28736 |
|
| 28737 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsetenv returns a value" >&5 |
| 28738 |
printf %s "checking for unsetenv returns a value... " >&6; } |
| 28739 |
if test ${rb_cv_unsetenv_return_value+y} |
| 28740 |
then : |
| 28741 |
printf %s "(cached) " >&6 |
| 28742 |
else $as_nop |
| 28743 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28744 |
/* end confdefs.h. */ |
| 28745 |
|
| 28746 |
#include <stdlib.h> |
| 28747 |
|
| 28748 |
int |
| 28749 |
main (void) |
| 28750 |
{ |
| 28751 |
int v = unsetenv("foo"); |
| 28752 |
; |
| 28753 |
return 0; |
| 28754 |
} |
| 28755 |
_ACEOF |
| 28756 |
if ac_fn_c_try_compile "$LINENO" |
| 28757 |
then : |
| 28758 |
rb_cv_unsetenv_return_value=yes |
| 28759 |
else $as_nop |
| 28760 |
rb_cv_unsetenv_return_value=no |
| 28761 |
fi |
| 28762 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28763 |
fi |
| 28764 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_unsetenv_return_value" >&5 |
| 28765 |
colorize_result "$rb_cv_unsetenv_return_value" ; } |
| 28766 |
if test "$rb_cv_unsetenv_return_value" = no |
| 28767 |
then : |
| 28768 |
|
| 28769 |
printf "%s\n" "#define VOID_UNSETENV 1" >>confdefs.h |
| 28770 |
|
| 28771 |
|
| 28772 |
fi |
| 28773 |
|
| 28774 |
# End of setjmp check. |
| 28775 |
|
| 28776 |
# Check whether --enable-setreuid was given. |
| 28777 |
if test ${enable_setreuid+y} |
| 28778 |
then : |
| 28779 |
enableval=$enable_setreuid; use_setreuid=$enableval |
| 28780 |
fi |
| 28781 |
|
| 28782 |
if test "$use_setreuid" = yes |
| 28783 |
then : |
| 28784 |
|
| 28785 |
printf "%s\n" "#define USE_SETREUID 1" >>confdefs.h |
| 28786 |
|
| 28787 |
printf "%s\n" "#define USE_SETREGID 1" >>confdefs.h |
| 28788 |
|
| 28789 |
|
| 28790 |
fi |
| 28791 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 28792 |
printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 28793 |
if test ${ac_cv_struct_tm+y} |
| 28794 |
then : |
| 28795 |
printf %s "(cached) " >&6 |
| 28796 |
else $as_nop |
| 28797 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28798 |
/* end confdefs.h. */ |
| 28799 |
#include <sys/types.h> |
| 28800 |
#include <time.h> |
| 28801 |
|
| 28802 |
int |
| 28803 |
main (void) |
| 28804 |
{ |
| 28805 |
struct tm tm; |
| 28806 |
int *p = &tm.tm_sec; |
| 28807 |
return !p; |
| 28808 |
; |
| 28809 |
return 0; |
| 28810 |
} |
| 28811 |
_ACEOF |
| 28812 |
if ac_fn_c_try_compile "$LINENO" |
| 28813 |
then : |
| 28814 |
ac_cv_struct_tm=time.h |
| 28815 |
else $as_nop |
| 28816 |
ac_cv_struct_tm=sys/time.h |
| 28817 |
fi |
| 28818 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28819 |
fi |
| 28820 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 28821 |
colorize_result "$ac_cv_struct_tm" ; } |
| 28822 |
if test $ac_cv_struct_tm = sys/time.h; then |
| 28823 |
|
| 28824 |
printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| 28825 |
|
| 28826 |
fi |
| 28827 |
|
| 28828 |
ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 28829 |
#include <$ac_cv_struct_tm> |
| 28830 |
|
| 28831 |
" |
| 28832 |
if test "x$ac_cv_member_struct_tm_tm_zone" = xyes |
| 28833 |
then : |
| 28834 |
|
| 28835 |
printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h |
| 28836 |
|
| 28837 |
|
| 28838 |
fi |
| 28839 |
|
| 28840 |
if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 28841 |
|
| 28842 |
printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 28843 |
|
| 28844 |
else |
| 28845 |
ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 28846 |
" "$ac_c_undeclared_builtin_options" "CFLAGS" |
| 28847 |
if test "x$ac_cv_have_decl_tzname" = xyes |
| 28848 |
then : |
| 28849 |
ac_have_decl=1 |
| 28850 |
else $as_nop |
| 28851 |
ac_have_decl=0 |
| 28852 |
fi |
| 28853 |
printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h |
| 28854 |
|
| 28855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 28856 |
printf %s "checking for tzname... " >&6; } |
| 28857 |
if test ${ac_cv_var_tzname+y} |
| 28858 |
then : |
| 28859 |
printf %s "(cached) " >&6 |
| 28860 |
else $as_nop |
| 28861 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28862 |
/* end confdefs.h. */ |
| 28863 |
#include <time.h> |
| 28864 |
#if !HAVE_DECL_TZNAME |
| 28865 |
extern char *tzname[]; |
| 28866 |
#endif |
| 28867 |
|
| 28868 |
int |
| 28869 |
main (void) |
| 28870 |
{ |
| 28871 |
return tzname[0][0]; |
| 28872 |
; |
| 28873 |
return 0; |
| 28874 |
} |
| 28875 |
_ACEOF |
| 28876 |
if ac_fn_c_try_link "$LINENO" |
| 28877 |
then : |
| 28878 |
ac_cv_var_tzname=yes |
| 28879 |
else $as_nop |
| 28880 |
ac_cv_var_tzname=no |
| 28881 |
fi |
| 28882 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28883 |
conftest$ac_exeext conftest.$ac_ext |
| 28884 |
fi |
| 28885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 28886 |
colorize_result "$ac_cv_var_tzname" ; } |
| 28887 |
if test $ac_cv_var_tzname = yes; then |
| 28888 |
|
| 28889 |
printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h |
| 28890 |
|
| 28891 |
fi |
| 28892 |
fi |
| 28893 |
|
| 28894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff" >&5 |
| 28895 |
printf %s "checking for struct tm.tm_gmtoff... " >&6; } |
| 28896 |
if test ${rb_cv_member_struct_tm_tm_gmtoff+y} |
| 28897 |
then : |
| 28898 |
printf %s "(cached) " >&6 |
| 28899 |
else $as_nop |
| 28900 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28901 |
/* end confdefs.h. */ |
| 28902 |
|
| 28903 |
#define _BSD_SOURCE |
| 28904 |
#define _DEFAULT_SOURCE |
| 28905 |
#include <time.h> |
| 28906 |
|
| 28907 |
int |
| 28908 |
main (void) |
| 28909 |
{ |
| 28910 |
struct tm t; t.tm_gmtoff = 3600; |
| 28911 |
; |
| 28912 |
return 0; |
| 28913 |
} |
| 28914 |
_ACEOF |
| 28915 |
if ac_fn_c_try_compile "$LINENO" |
| 28916 |
then : |
| 28917 |
rb_cv_member_struct_tm_tm_gmtoff=yes |
| 28918 |
else $as_nop |
| 28919 |
rb_cv_member_struct_tm_tm_gmtoff=no |
| 28920 |
fi |
| 28921 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 28922 |
fi |
| 28923 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_member_struct_tm_tm_gmtoff" >&5 |
| 28924 |
colorize_result "$rb_cv_member_struct_tm_tm_gmtoff" ; } |
| 28925 |
if test "$rb_cv_member_struct_tm_tm_gmtoff" = yes |
| 28926 |
then : |
| 28927 |
|
| 28928 |
printf "%s\n" "#define HAVE_STRUCT_TM_TM_GMTOFF 1" >>confdefs.h |
| 28929 |
|
| 28930 |
|
| 28931 |
fi |
| 28932 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for external int daylight" >&5 |
| 28933 |
printf %s "checking for external int daylight... " >&6; } |
| 28934 |
if test ${rb_cv_have_daylight+y} |
| 28935 |
then : |
| 28936 |
printf %s "(cached) " >&6 |
| 28937 |
else $as_nop |
| 28938 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28939 |
/* end confdefs.h. */ |
| 28940 |
#include <time.h> |
| 28941 |
int i; |
| 28942 |
int |
| 28943 |
main (void) |
| 28944 |
{ |
| 28945 |
i = daylight; |
| 28946 |
; |
| 28947 |
return 0; |
| 28948 |
} |
| 28949 |
_ACEOF |
| 28950 |
if ac_fn_c_try_link "$LINENO" |
| 28951 |
then : |
| 28952 |
rb_cv_have_daylight=yes |
| 28953 |
else $as_nop |
| 28954 |
rb_cv_have_daylight=no |
| 28955 |
fi |
| 28956 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 28957 |
conftest$ac_exeext conftest.$ac_ext |
| 28958 |
fi |
| 28959 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_daylight" >&5 |
| 28960 |
colorize_result "$rb_cv_have_daylight" ; } |
| 28961 |
if test "$rb_cv_have_daylight" = yes |
| 28962 |
then : |
| 28963 |
|
| 28964 |
printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h |
| 28965 |
|
| 28966 |
|
| 28967 |
fi |
| 28968 |
|
| 28969 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for negative time_t for gmtime(3)" >&5 |
| 28970 |
printf %s "checking for negative time_t for gmtime(3)... " >&6; } |
| 28971 |
if test ${rb_cv_negative_time_t+y} |
| 28972 |
then : |
| 28973 |
printf %s "(cached) " >&6 |
| 28974 |
else $as_nop |
| 28975 |
if test "$cross_compiling" = yes |
| 28976 |
then : |
| 28977 |
rb_cv_negative_time_t=yes |
| 28978 |
else $as_nop |
| 28979 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 28980 |
/* end confdefs.h. */ |
| 28981 |
|
| 28982 |
#include <stdlib.h> |
| 28983 |
#include <time.h> |
| 28984 |
|
| 28985 |
void |
| 28986 |
check(tm, y, m, d, h, s) |
| 28987 |
struct tm *tm; |
| 28988 |
int y, m, d, h, s; |
| 28989 |
{ |
| 28990 |
if (!tm || |
| 28991 |
tm->tm_year != y || |
| 28992 |
tm->tm_mon != m-1 || |
| 28993 |
tm->tm_mday != d || |
| 28994 |
tm->tm_hour != h || |
| 28995 |
tm->tm_sec != s) { |
| 28996 |
exit(1); |
| 28997 |
} |
| 28998 |
} |
| 28999 |
|
| 29000 |
int |
| 29001 |
main() |
| 29002 |
{ |
| 29003 |
time_t t = -1; |
| 29004 |
struct tm *tm; |
| 29005 |
|
| 29006 |
check(gmtime(&t), 69, 12, 31, 23, 59); |
| 29007 |
t = ~(time_t)0 << 31; |
| 29008 |
check(gmtime(&t), 1, 12, 13, 20, 52); |
| 29009 |
return 0; |
| 29010 |
} |
| 29011 |
|
| 29012 |
_ACEOF |
| 29013 |
if ac_fn_c_try_run "$LINENO" |
| 29014 |
then : |
| 29015 |
rb_cv_negative_time_t=yes |
| 29016 |
else $as_nop |
| 29017 |
rb_cv_negative_time_t=no |
| 29018 |
fi |
| 29019 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29020 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29021 |
fi |
| 29022 |
|
| 29023 |
fi |
| 29024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_negative_time_t" >&5 |
| 29025 |
colorize_result "$rb_cv_negative_time_t" ; } |
| 29026 |
if test "$rb_cv_negative_time_t" = yes |
| 29027 |
then : |
| 29028 |
|
| 29029 |
printf "%s\n" "#define NEGATIVE_TIME_T 1" >>confdefs.h |
| 29030 |
|
| 29031 |
|
| 29032 |
fi |
| 29033 |
|
| 29034 |
# [ruby-dev:40910] overflow of time on FreeBSD |
| 29035 |
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=145341 |
| 29036 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for localtime(3) overflow correctly" >&5 |
| 29037 |
printf %s "checking for localtime(3) overflow correctly... " >&6; } |
| 29038 |
if test ${rb_cv_localtime_overflow+y} |
| 29039 |
then : |
| 29040 |
printf %s "(cached) " >&6 |
| 29041 |
else $as_nop |
| 29042 |
if test "$cross_compiling" = yes |
| 29043 |
then : |
| 29044 |
rb_cv_localtime_overflow=no |
| 29045 |
else $as_nop |
| 29046 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29047 |
/* end confdefs.h. */ |
| 29048 |
|
| 29049 |
#include <stdlib.h> |
| 29050 |
#include <time.h> |
| 29051 |
|
| 29052 |
void |
| 29053 |
check(time_t t1) |
| 29054 |
{ |
| 29055 |
struct tm *tm; |
| 29056 |
time_t t2; |
| 29057 |
tm = localtime(&t1); |
| 29058 |
if (!tm) |
| 29059 |
return; /* overflow detected. ok. */ |
| 29060 |
t2 = mktime(tm); |
| 29061 |
if (t1 == t2) |
| 29062 |
return; /* round-trip. ok. */ |
| 29063 |
exit(1); |
| 29064 |
} |
| 29065 |
|
| 29066 |
int |
| 29067 |
main() |
| 29068 |
{ |
| 29069 |
time_t t; |
| 29070 |
if (~(time_t)0 <= 0) { |
| 29071 |
t = (((time_t)1) << (sizeof(time_t) * 8 - 2)); |
| 29072 |
t |= t - 1; |
| 29073 |
} |
| 29074 |
else { |
| 29075 |
t = ~(time_t)0; |
| 29076 |
} |
| 29077 |
check(t); |
| 29078 |
return 0; |
| 29079 |
} |
| 29080 |
|
| 29081 |
_ACEOF |
| 29082 |
if ac_fn_c_try_run "$LINENO" |
| 29083 |
then : |
| 29084 |
rb_cv_localtime_overflow=yes |
| 29085 |
else $as_nop |
| 29086 |
rb_cv_localtime_overflow=no |
| 29087 |
fi |
| 29088 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29089 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29090 |
fi |
| 29091 |
|
| 29092 |
fi |
| 29093 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_localtime_overflow" >&5 |
| 29094 |
colorize_result "$rb_cv_localtime_overflow" ; } |
| 29095 |
if test "$rb_cv_localtime_overflow" = no |
| 29096 |
then : |
| 29097 |
|
| 29098 |
printf "%s\n" "#define LOCALTIME_OVERFLOW_PROBLEM 1" >>confdefs.h |
| 29099 |
|
| 29100 |
|
| 29101 |
fi |
| 29102 |
|
| 29103 |
if test "$ac_cv_func_sigprocmask" = yes && test "$ac_cv_func_sigaction" = yes |
| 29104 |
then : |
| 29105 |
|
| 29106 |
printf "%s\n" "#define POSIX_SIGNAL 1" >>confdefs.h |
| 29107 |
|
| 29108 |
|
| 29109 |
else $as_nop |
| 29110 |
|
| 29111 |
ac_fn_c_check_func "$LINENO" "sigsetmask" "ac_cv_func_sigsetmask" |
| 29112 |
if test "x$ac_cv_func_sigsetmask" = xyes |
| 29113 |
then : |
| 29114 |
printf "%s\n" "#define HAVE_SIGSETMASK 1" >>confdefs.h |
| 29115 |
|
| 29116 |
fi |
| 29117 |
|
| 29118 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD signal semantics" >&5 |
| 29119 |
printf %s "checking for BSD signal semantics... " >&6; } |
| 29120 |
if test ${rb_cv_bsd_signal+y} |
| 29121 |
then : |
| 29122 |
printf %s "(cached) " >&6 |
| 29123 |
else $as_nop |
| 29124 |
if test "$cross_compiling" = yes |
| 29125 |
then : |
| 29126 |
rb_cv_bsd_signal=$ac_cv_func_sigsetmask |
| 29127 |
else $as_nop |
| 29128 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29129 |
/* end confdefs.h. */ |
| 29130 |
|
| 29131 |
#include <stdio.h> |
| 29132 |
#include <signal.h> |
| 29133 |
|
| 29134 |
void |
| 29135 |
sig_handler(dummy) |
| 29136 |
int dummy; |
| 29137 |
{ |
| 29138 |
} |
| 29139 |
|
| 29140 |
int |
| 29141 |
main() |
| 29142 |
{ |
| 29143 |
signal(SIGINT, sig_handler); |
| 29144 |
kill(getpid(), SIGINT); |
| 29145 |
kill(getpid(), SIGINT); |
| 29146 |
return 0; |
| 29147 |
} |
| 29148 |
|
| 29149 |
_ACEOF |
| 29150 |
if ac_fn_c_try_run "$LINENO" |
| 29151 |
then : |
| 29152 |
rb_cv_bsd_signal=yes |
| 29153 |
else $as_nop |
| 29154 |
rb_cv_bsd_signal=no |
| 29155 |
fi |
| 29156 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29157 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29158 |
fi |
| 29159 |
|
| 29160 |
fi |
| 29161 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_bsd_signal" >&5 |
| 29162 |
colorize_result "$rb_cv_bsd_signal" ; } |
| 29163 |
if test "$rb_cv_bsd_signal" = yes |
| 29164 |
then : |
| 29165 |
|
| 29166 |
printf "%s\n" "#define BSD_SIGNAL 1" >>confdefs.h |
| 29167 |
|
| 29168 |
|
| 29169 |
fi |
| 29170 |
|
| 29171 |
fi |
| 29172 |
|
| 29173 |
ac_fn_c_check_type "$LINENO" "sig_t" "ac_cv_type_sig_t" "#include <signal.h> |
| 29174 |
" |
| 29175 |
if test "x$ac_cv_type_sig_t" = xyes |
| 29176 |
then : |
| 29177 |
|
| 29178 |
printf "%s\n" "#define HAVE_SIG_T 1" >>confdefs.h |
| 29179 |
|
| 29180 |
|
| 29181 |
fi |
| 29182 |
|
| 29183 |
|
| 29184 |
if test "$ac_cv_func_getpgid" = no |
| 29185 |
then : |
| 29186 |
|
| 29187 |
# AC_FUNC_GETPGRP fails when cross-compiling with old autoconf. |
| 29188 |
# autoconf is changed between 2.52d and 2.52f? |
| 29189 |
# https://lists.gnu.org/archive/html/bug-gnu-utils/2001-09/msg00181.html |
| 29190 |
# "autoconf cleanup for AC_FUNC_GETPGRP and GETPGRP_VOID" |
| 29191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 |
| 29192 |
printf %s "checking whether getpgrp requires zero arguments... " >&6; } |
| 29193 |
if test ${ac_cv_func_getpgrp_void+y} |
| 29194 |
then : |
| 29195 |
printf %s "(cached) " >&6 |
| 29196 |
else $as_nop |
| 29197 |
# Use it with a single arg. |
| 29198 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29199 |
/* end confdefs.h. */ |
| 29200 |
$ac_includes_default |
| 29201 |
int |
| 29202 |
main (void) |
| 29203 |
{ |
| 29204 |
getpgrp (0); |
| 29205 |
; |
| 29206 |
return 0; |
| 29207 |
} |
| 29208 |
_ACEOF |
| 29209 |
if ac_fn_c_try_compile "$LINENO" |
| 29210 |
then : |
| 29211 |
ac_cv_func_getpgrp_void=no |
| 29212 |
else $as_nop |
| 29213 |
ac_cv_func_getpgrp_void=yes |
| 29214 |
fi |
| 29215 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29216 |
|
| 29217 |
fi |
| 29218 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 |
| 29219 |
colorize_result "$ac_cv_func_getpgrp_void" ; } |
| 29220 |
if test $ac_cv_func_getpgrp_void = yes; then |
| 29221 |
|
| 29222 |
printf "%s\n" "#define GETPGRP_VOID 1" >>confdefs.h |
| 29223 |
|
| 29224 |
fi |
| 29225 |
|
| 29226 |
|
| 29227 |
fi |
| 29228 |
if test "$ac_cv_func_setpgid:$ac_cv_func_setpgrp" = no:yes |
| 29229 |
then : |
| 29230 |
|
| 29231 |
# AC_FUNC_SETPGRP fails when cross-compiling. (until autoconf 2.69?) |
| 29232 |
# https://lists.gnu.org/archive/html/bug-autoconf/2013-02/msg00002.html |
| 29233 |
# "AC_FUNC_SETPGRP fails to work properly when cross-compiling" |
| 29234 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether setpgrp requires zero arguments" >&5 |
| 29235 |
printf %s "checking whether setpgrp requires zero arguments... " >&6; } |
| 29236 |
if test ${ac_cv_func_setpgrp_void+y} |
| 29237 |
then : |
| 29238 |
printf %s "(cached) " >&6 |
| 29239 |
else $as_nop |
| 29240 |
# Call it with two arguments. |
| 29241 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29242 |
/* end confdefs.h. */ |
| 29243 |
$ac_includes_default |
| 29244 |
int |
| 29245 |
main (void) |
| 29246 |
{ |
| 29247 |
setpgrp(0, 0); |
| 29248 |
; |
| 29249 |
return 0; |
| 29250 |
} |
| 29251 |
_ACEOF |
| 29252 |
if ac_fn_c_try_compile "$LINENO" |
| 29253 |
then : |
| 29254 |
ac_cv_func_setpgrp_void=no |
| 29255 |
else $as_nop |
| 29256 |
ac_cv_func_setpgrp_void=yes |
| 29257 |
fi |
| 29258 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29259 |
|
| 29260 |
fi |
| 29261 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 |
| 29262 |
colorize_result "$ac_cv_func_setpgrp_void" ; } |
| 29263 |
if test $ac_cv_func_setpgrp_void = yes; then |
| 29264 |
|
| 29265 |
printf "%s\n" "#define SETPGRP_VOID 1" >>confdefs.h |
| 29266 |
|
| 29267 |
fi |
| 29268 |
|
| 29269 |
|
| 29270 |
fi |
| 29271 |
|
| 29272 |
if test x"$ac_cv_func_dirfd" = xno |
| 29273 |
then : |
| 29274 |
|
| 29275 |
case "$target_os" in #( |
| 29276 |
solaris*) : |
| 29277 |
ac_fn_c_check_member "$LINENO" "DIR" "d_fd" "ac_cv_member_DIR_d_fd" " |
| 29278 |
#include <sys/types.h> |
| 29279 |
#include <dirent.h> |
| 29280 |
|
| 29281 |
" |
| 29282 |
if test "x$ac_cv_member_DIR_d_fd" = xyes |
| 29283 |
then : |
| 29284 |
|
| 29285 |
printf "%s\n" "#define HAVE_DIR_D_FD 1" >>confdefs.h |
| 29286 |
|
| 29287 |
|
| 29288 |
fi |
| 29289 |
ac_fn_c_check_member "$LINENO" "DIR" "dd_fd" "ac_cv_member_DIR_dd_fd" " |
| 29290 |
#include <sys/types.h> |
| 29291 |
#include <dirent.h> |
| 29292 |
|
| 29293 |
" |
| 29294 |
if test "x$ac_cv_member_DIR_dd_fd" = xyes |
| 29295 |
then : |
| 29296 |
|
| 29297 |
printf "%s\n" "#define HAVE_DIR_DD_FD 1" >>confdefs.h |
| 29298 |
|
| 29299 |
|
| 29300 |
fi |
| 29301 |
;; #( |
| 29302 |
*) : |
| 29303 |
;; |
| 29304 |
esac |
| 29305 |
|
| 29306 |
fi |
| 29307 |
|
| 29308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift preserve sign bit" >&5 |
| 29309 |
printf %s "checking whether right shift preserve sign bit... " >&6; } |
| 29310 |
if test ${rb_cv_rshift_sign+y} |
| 29311 |
then : |
| 29312 |
printf %s "(cached) " >&6 |
| 29313 |
else $as_nop |
| 29314 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29315 |
/* end confdefs.h. */ |
| 29316 |
|
| 29317 |
int |
| 29318 |
main (void) |
| 29319 |
{ |
| 29320 |
static int test_array [1 - 2 * !((-1==(-1>>1)))]; |
| 29321 |
test_array [0] = 0; |
| 29322 |
return test_array [0]; |
| 29323 |
|
| 29324 |
; |
| 29325 |
return 0; |
| 29326 |
} |
| 29327 |
_ACEOF |
| 29328 |
if ac_fn_c_try_compile "$LINENO" |
| 29329 |
then : |
| 29330 |
rb_cv_rshift_sign=yes |
| 29331 |
else $as_nop |
| 29332 |
rb_cv_rshift_sign=no |
| 29333 |
fi |
| 29334 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29335 |
fi |
| 29336 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_rshift_sign" >&5 |
| 29337 |
colorize_result "$rb_cv_rshift_sign" ; } |
| 29338 |
if test "$rb_cv_rshift_sign" = yes |
| 29339 |
then : |
| 29340 |
|
| 29341 |
printf "%s\n" "#define RSHIFT(x,y) ((x)>>(int)(y))" >>confdefs.h |
| 29342 |
|
| 29343 |
|
| 29344 |
else $as_nop |
| 29345 |
|
| 29346 |
printf "%s\n" "#define RSHIFT(x,y) (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y))" >>confdefs.h |
| 29347 |
|
| 29348 |
|
| 29349 |
fi |
| 29350 |
|
| 29351 |
if test "$ac_cv_func_copy_file_range" = no |
| 29352 |
then : |
| 29353 |
|
| 29354 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copy_file_range" >&5 |
| 29355 |
printf %s "checking for copy_file_range... " >&6; } |
| 29356 |
if test ${rb_cv_use_copy_file_range+y} |
| 29357 |
then : |
| 29358 |
printf %s "(cached) " >&6 |
| 29359 |
else $as_nop |
| 29360 |
if test "$cross_compiling" = yes |
| 29361 |
then : |
| 29362 |
rb_cv_use_copy_file_range=no |
| 29363 |
else $as_nop |
| 29364 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29365 |
/* end confdefs.h. */ |
| 29366 |
|
| 29367 |
#include <sys/types.h> |
| 29368 |
#include <sys/stat.h> |
| 29369 |
#include <sys/syscall.h> |
| 29370 |
#include <fcntl.h> |
| 29371 |
#include <unistd.h> |
| 29372 |
|
| 29373 |
#ifndef O_TMPFILE |
| 29374 |
#define O_TMPFILE __O_TMPFILE |
| 29375 |
#endif |
| 29376 |
|
| 29377 |
int |
| 29378 |
main() |
| 29379 |
{ |
| 29380 |
#ifdef __NR_copy_file_range |
| 29381 |
int ret, fd_in, fd_out; |
| 29382 |
fd_in = open("/tmp", O_TMPFILE|O_RDWR, S_IRUSR); |
| 29383 |
fd_out = open("/tmp", O_TMPFILE|O_WRONLY, S_IWUSR); |
| 29384 |
ret = syscall(__NR_copy_file_range, fd_in, NULL, fd_out, NULL, 0, 0); |
| 29385 |
close(fd_in); |
| 29386 |
close(fd_out); |
| 29387 |
if (ret == -1) { return 1; } |
| 29388 |
return 0; |
| 29389 |
#else |
| 29390 |
return 1; |
| 29391 |
#endif |
| 29392 |
} |
| 29393 |
|
| 29394 |
_ACEOF |
| 29395 |
if ac_fn_c_try_run "$LINENO" |
| 29396 |
then : |
| 29397 |
rb_cv_use_copy_file_range=yes |
| 29398 |
else $as_nop |
| 29399 |
rb_cv_use_copy_file_range=no |
| 29400 |
fi |
| 29401 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29402 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29403 |
fi |
| 29404 |
|
| 29405 |
fi |
| 29406 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_use_copy_file_range" >&5 |
| 29407 |
colorize_result "$rb_cv_use_copy_file_range" ; } |
| 29408 |
|
| 29409 |
fi |
| 29410 |
case "$ac_cv_func_copy_file_range:$rb_cv_use_copy_file_range" in #( |
| 29411 |
*yes*) : |
| 29412 |
|
| 29413 |
printf "%s\n" "#define USE_COPY_FILE_RANGE 1" >>confdefs.h |
| 29414 |
|
| 29415 |
;; #( |
| 29416 |
*) : |
| 29417 |
;; |
| 29418 |
esac |
| 29419 |
|
| 29420 |
case "$ac_cv_func_gettimeofday:$ac_cv_func_clock_gettime" in #( |
| 29421 |
*yes*) : |
| 29422 |
;; #( |
| 29423 |
*) : |
| 29424 |
|
| 29425 |
as_fn_error $? "clock_gettime() or gettimeofday() must exist" "$LINENO" 5 |
| 29426 |
;; |
| 29427 |
esac |
| 29428 |
|
| 29429 |
if test "$ac_cv_func_sysconf" = yes |
| 29430 |
then : |
| 29431 |
|
| 29432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _SC_CLK_TCK is supported" >&5 |
| 29433 |
printf %s "checking whether _SC_CLK_TCK is supported... " >&6; } |
| 29434 |
if test ${rb_cv_have_sc_clk_tck+y} |
| 29435 |
then : |
| 29436 |
printf %s "(cached) " >&6 |
| 29437 |
else $as_nop |
| 29438 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29439 |
/* end confdefs.h. */ |
| 29440 |
#include <unistd.h> |
| 29441 |
|
| 29442 |
int |
| 29443 |
main (void) |
| 29444 |
{ |
| 29445 |
_SC_CLK_TCK >= 0 |
| 29446 |
; |
| 29447 |
return 0; |
| 29448 |
} |
| 29449 |
_ACEOF |
| 29450 |
if ac_fn_c_try_compile "$LINENO" |
| 29451 |
then : |
| 29452 |
rb_cv_have_sc_clk_tck=yes |
| 29453 |
else $as_nop |
| 29454 |
rb_cv_have_sc_clk_tck=no |
| 29455 |
fi |
| 29456 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29457 |
|
| 29458 |
fi |
| 29459 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_have_sc_clk_tck" >&5 |
| 29460 |
colorize_result "$rb_cv_have_sc_clk_tck" ; } |
| 29461 |
if test "$rb_cv_have_sc_clk_tck" = yes |
| 29462 |
then : |
| 29463 |
|
| 29464 |
printf "%s\n" "#define HAVE__SC_CLK_TCK 1" >>confdefs.h |
| 29465 |
|
| 29466 |
|
| 29467 |
fi |
| 29468 |
|
| 29469 |
|
| 29470 |
fi |
| 29471 |
|
| 29472 |
if test "${universal_binary-no}" = yes |
| 29473 |
then : |
| 29474 |
|
| 29475 |
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` |
| 29476 |
save_CFLAGS="$CFLAGS" new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'` |
| 29477 |
save_LDFLAGS="$LDFLAGS" new_ldflags=`echo "$LDFLAGS" | sed "s|$archflagpat"'||'` |
| 29478 |
stack_dir= |
| 29479 |
for archs in ${universal_archnames}; do |
| 29480 |
archs=`echo $archs | sed 's/=.*//'` |
| 29481 |
CFLAGS="$new_cflags -arch $archs" |
| 29482 |
LDFLAGS="$new_ldflags -arch $archs" |
| 29483 |
|
| 29484 |
as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$archs" | $as_tr_sh` |
| 29485 |
|
| 29486 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $archs" >&5 |
| 29487 |
printf %s "checking stack growing direction on $archs... " >&6; } |
| 29488 |
if eval test \${$as_stack_grow_dir+y} |
| 29489 |
then : |
| 29490 |
printf %s "(cached) " >&6 |
| 29491 |
else $as_nop |
| 29492 |
|
| 29493 |
case "$archs" in #( |
| 29494 |
m68*|x86*|x64|i?86|ppc*|sparc*|alpha*|arm*|aarch*) : |
| 29495 |
dir=-1 ;; #( |
| 29496 |
hppa*) : |
| 29497 |
dir=+1 ;; #( |
| 29498 |
*) : |
| 29499 |
|
| 29500 |
if test "$cross_compiling" = yes |
| 29501 |
then : |
| 29502 |
dir=0 |
| 29503 |
else $as_nop |
| 29504 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29505 |
/* end confdefs.h. */ |
| 29506 |
|
| 29507 |
/* recurse to get rid of inlining */ |
| 29508 |
static int |
| 29509 |
stack_growup_p(addr, n) |
| 29510 |
volatile int *addr, n; |
| 29511 |
{ |
| 29512 |
volatile int end; |
| 29513 |
if (n > 0) |
| 29514 |
return *addr = stack_growup_p(addr, n - 1); |
| 29515 |
else |
| 29516 |
return (&end > addr); |
| 29517 |
} |
| 29518 |
int main() |
| 29519 |
{ |
| 29520 |
int x; |
| 29521 |
return stack_growup_p(&x, 10); |
| 29522 |
} |
| 29523 |
|
| 29524 |
_ACEOF |
| 29525 |
if ac_fn_c_try_run "$LINENO" |
| 29526 |
then : |
| 29527 |
dir=-1 |
| 29528 |
else $as_nop |
| 29529 |
dir=+1 |
| 29530 |
fi |
| 29531 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29532 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29533 |
fi |
| 29534 |
|
| 29535 |
;; |
| 29536 |
esac |
| 29537 |
eval $as_stack_grow_dir=\$dir |
| 29538 |
fi |
| 29539 |
eval ac_res=\$$as_stack_grow_dir |
| 29540 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 29541 |
colorize_result "$ac_res" ; } |
| 29542 |
eval dir=\$$as_stack_grow_dir |
| 29543 |
|
| 29544 |
if test x$stack_dir = x |
| 29545 |
then : |
| 29546 |
|
| 29547 |
stack_dir=$dir |
| 29548 |
|
| 29549 |
elif test x$stack_dir != x$dir |
| 29550 |
then : |
| 29551 |
|
| 29552 |
stack_dir=no |
| 29553 |
|
| 29554 |
fi |
| 29555 |
done |
| 29556 |
CFLAGS="$save_CFLAGS" LDFLAGS="$save_LDFLAGS" |
| 29557 |
if test x$stack_dir = xno |
| 29558 |
then : |
| 29559 |
|
| 29560 |
for archs in ${universal_archnames}; do |
| 29561 |
archs=`echo $archs | sed 's/=.*//'` |
| 29562 |
eval dir=\$rb_cv_stack_grow_dir_`printf "%s\n" "$archs" | $as_tr_sh` |
| 29563 |
test "Xdefined __${archs}__" = X || printf "#if %s\n" "defined __${archs}__" >>confdefs.h |
| 29564 |
printf "%s\n" "#define STACK_GROW_DIRECTION $dir" >>confdefs.h |
| 29565 |
test "Xdefined __${archs}__" = X || printf "#endif /* %s */\n" "defined __${archs}__" >>confdefs.h |
| 29566 |
|
| 29567 |
done |
| 29568 |
|
| 29569 |
else $as_nop |
| 29570 |
|
| 29571 |
printf "%s\n" "#define STACK_GROW_DIRECTION $stack_dir" >>confdefs.h |
| 29572 |
|
| 29573 |
|
| 29574 |
fi |
| 29575 |
|
| 29576 |
else $as_nop |
| 29577 |
|
| 29578 |
|
| 29579 |
as_stack_grow_dir=`printf "%s\n" "rb_cv_stack_grow_dir_$target_cpu" | $as_tr_sh` |
| 29580 |
|
| 29581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack growing direction on $target_cpu" >&5 |
| 29582 |
printf %s "checking stack growing direction on $target_cpu... " >&6; } |
| 29583 |
if eval test \${$as_stack_grow_dir+y} |
| 29584 |
then : |
| 29585 |
printf %s "(cached) " >&6 |
| 29586 |
else $as_nop |
| 29587 |
|
| 29588 |
case "$target_cpu" in #( |
| 29589 |
m68*|x86*|x64|i?86|ppc*|sparc*|alpha*|arm*|aarch*) : |
| 29590 |
dir=-1 ;; #( |
| 29591 |
hppa*) : |
| 29592 |
dir=+1 ;; #( |
| 29593 |
*) : |
| 29594 |
|
| 29595 |
if test "$cross_compiling" = yes |
| 29596 |
then : |
| 29597 |
dir=0 |
| 29598 |
else $as_nop |
| 29599 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29600 |
/* end confdefs.h. */ |
| 29601 |
|
| 29602 |
/* recurse to get rid of inlining */ |
| 29603 |
static int |
| 29604 |
stack_growup_p(addr, n) |
| 29605 |
volatile int *addr, n; |
| 29606 |
{ |
| 29607 |
volatile int end; |
| 29608 |
if (n > 0) |
| 29609 |
return *addr = stack_growup_p(addr, n - 1); |
| 29610 |
else |
| 29611 |
return (&end > addr); |
| 29612 |
} |
| 29613 |
int main() |
| 29614 |
{ |
| 29615 |
int x; |
| 29616 |
return stack_growup_p(&x, 10); |
| 29617 |
} |
| 29618 |
|
| 29619 |
_ACEOF |
| 29620 |
if ac_fn_c_try_run "$LINENO" |
| 29621 |
then : |
| 29622 |
dir=-1 |
| 29623 |
else $as_nop |
| 29624 |
dir=+1 |
| 29625 |
fi |
| 29626 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 29627 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29628 |
fi |
| 29629 |
|
| 29630 |
;; |
| 29631 |
esac |
| 29632 |
eval $as_stack_grow_dir=\$dir |
| 29633 |
fi |
| 29634 |
eval ac_res=\$$as_stack_grow_dir |
| 29635 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 29636 |
colorize_result "$ac_res" ; } |
| 29637 |
eval dir=\$$as_stack_grow_dir |
| 29638 |
|
| 29639 |
printf "%s\n" "#define STACK_GROW_DIRECTION $dir" >>confdefs.h |
| 29640 |
|
| 29641 |
|
| 29642 |
fi |
| 29643 |
|
| 29644 |
|
| 29645 |
# Check whether --with-coroutine was given. |
| 29646 |
if test ${with_coroutine+y} |
| 29647 |
then : |
| 29648 |
withval=$with_coroutine; coroutine_type=$withval |
| 29649 |
else $as_nop |
| 29650 |
coroutine_type= |
| 29651 |
fi |
| 29652 |
|
| 29653 |
case $coroutine_type in #( |
| 29654 |
yes|'') : |
| 29655 |
|
| 29656 |
coroutine_type= |
| 29657 |
case "$target_cpu-$target_os" in #( |
| 29658 |
universal-darwin*) : |
| 29659 |
|
| 29660 |
coroutine_type=universal |
| 29661 |
;; #( |
| 29662 |
x*64-darwin*) : |
| 29663 |
|
| 29664 |
coroutine_type=amd64 |
| 29665 |
;; #( |
| 29666 |
arm64-darwin*) : |
| 29667 |
|
| 29668 |
coroutine_type=arm64 |
| 29669 |
;; #( |
| 29670 |
# Correct target name is powerpc*-, but Ruby seems to prefer ppc*-. |
| 29671 |
# Notice that Darwin PPC ABI differs from AIX and ELF. |
| 29672 |
# Adding PPC targets for AIX, *BSD and *Linux will require separate implementations. |
| 29673 |
powerpc-darwin*|ppc-darwin*) : |
| 29674 |
|
| 29675 |
coroutine_type=ppc |
| 29676 |
;; #( |
| 29677 |
powerpc64-darwin*|ppc64-darwin*) : |
| 29678 |
|
| 29679 |
coroutine_type=ppc64 |
| 29680 |
;; #( |
| 29681 |
x*64-linux*) : |
| 29682 |
|
| 29683 |
case "$ac_cv_sizeof_voidp" in #( |
| 29684 |
8) : |
| 29685 |
coroutine_type=amd64 ;; #( |
| 29686 |
4) : |
| 29687 |
coroutine_type=x86 ;; #( |
| 29688 |
*) : |
| 29689 |
;; |
| 29690 |
esac |
| 29691 |
;; #( |
| 29692 |
*86-linux*) : |
| 29693 |
|
| 29694 |
coroutine_type=x86 |
| 29695 |
;; #( |
| 29696 |
x64-mingw*) : |
| 29697 |
|
| 29698 |
coroutine_type=win64 |
| 29699 |
;; #( |
| 29700 |
*86-mingw*) : |
| 29701 |
|
| 29702 |
coroutine_type=win32 |
| 29703 |
;; #( |
| 29704 |
aarch64-mingw*) : |
| 29705 |
|
| 29706 |
coroutine_type=arm64 |
| 29707 |
;; #( |
| 29708 |
arm*-linux*) : |
| 29709 |
|
| 29710 |
coroutine_type=arm32 |
| 29711 |
;; #( |
| 29712 |
aarch64-linux*) : |
| 29713 |
|
| 29714 |
coroutine_type=arm64 |
| 29715 |
;; #( |
| 29716 |
powerpc64le-linux*) : |
| 29717 |
|
| 29718 |
coroutine_type=ppc64le |
| 29719 |
;; #( |
| 29720 |
riscv64-linux*) : |
| 29721 |
|
| 29722 |
coroutine_type=riscv64 |
| 29723 |
;; #( |
| 29724 |
loongarch64-linux*) : |
| 29725 |
|
| 29726 |
coroutine_type=loongarch64 |
| 29727 |
;; #( |
| 29728 |
x86_64-freebsd*) : |
| 29729 |
|
| 29730 |
coroutine_type=amd64 |
| 29731 |
;; #( |
| 29732 |
i386-freebsd*) : |
| 29733 |
|
| 29734 |
coroutine_type=x86 |
| 29735 |
;; #( |
| 29736 |
aarch64-freebsd*) : |
| 29737 |
|
| 29738 |
coroutine_type=arm64 |
| 29739 |
;; #( |
| 29740 |
x86_64-netbsd*) : |
| 29741 |
|
| 29742 |
coroutine_type=amd64 |
| 29743 |
;; #( |
| 29744 |
i386-netbsd*) : |
| 29745 |
|
| 29746 |
coroutine_type=x86 |
| 29747 |
;; #( |
| 29748 |
aarch64-netbsd*) : |
| 29749 |
|
| 29750 |
coroutine_type=arm64 |
| 29751 |
;; #( |
| 29752 |
x86_64-openbsd*) : |
| 29753 |
|
| 29754 |
coroutine_type=amd64 |
| 29755 |
;; #( |
| 29756 |
i386-openbsd*) : |
| 29757 |
|
| 29758 |
coroutine_type=x86 |
| 29759 |
;; #( |
| 29760 |
aarch64-openbsd*) : |
| 29761 |
|
| 29762 |
coroutine_type=arm64 |
| 29763 |
;; #( |
| 29764 |
*-openbsd*) : |
| 29765 |
|
| 29766 |
coroutine_type=pthread |
| 29767 |
;; #( |
| 29768 |
x86_64-dragonfly*) : |
| 29769 |
|
| 29770 |
coroutine_type=amd64 |
| 29771 |
;; #( |
| 29772 |
*-haiku*) : |
| 29773 |
|
| 29774 |
coroutine_type=pthread |
| 29775 |
;; #( |
| 29776 |
*-emscripten*) : |
| 29777 |
|
| 29778 |
coroutine_type=emscripten |
| 29779 |
;; #( |
| 29780 |
*-wasi*) : |
| 29781 |
|
| 29782 |
coroutine_type=asyncify |
| 29783 |
;; #( |
| 29784 |
*) : |
| 29785 |
|
| 29786 |
|
| 29787 |
for ac_func in getcontext swapcontext makecontext |
| 29788 |
do : |
| 29789 |
as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` |
| 29790 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 29791 |
if eval test \"x\$"$as_ac_var"\" = x"yes" |
| 29792 |
then : |
| 29793 |
cat >>confdefs.h <<_ACEOF |
| 29794 |
#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 29795 |
_ACEOF |
| 29796 |
coroutine_type=ucontext |
| 29797 |
else $as_nop |
| 29798 |
coroutine_type=pthread; break |
| 29799 |
|
| 29800 |
fi |
| 29801 |
|
| 29802 |
done |
| 29803 |
|
| 29804 |
;; |
| 29805 |
esac |
| 29806 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking native coroutine implementation for ${target_cpu}-${target_os}" >&5 |
| 29807 |
printf %s "checking native coroutine implementation for ${target_cpu}-${target_os}... " >&6; } |
| 29808 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${coroutine_type}" >&5 |
| 29809 |
colorize_result "${coroutine_type}" ; } |
| 29810 |
;; #( |
| 29811 |
*) : |
| 29812 |
;; |
| 29813 |
esac |
| 29814 |
COROUTINE_H=coroutine/$coroutine_type/Context.h |
| 29815 |
if test ! -f "$srcdir/$COROUTINE_H" |
| 29816 |
then : |
| 29817 |
as_fn_error $? "'$coroutine_type' is not supported as coroutine" "$LINENO" 5 |
| 29818 |
fi |
| 29819 |
COROUTINE_SRC=coroutine/$coroutine_type/Context.c |
| 29820 |
if test ! -f "$srcdir/$COROUTINE_SRC" |
| 29821 |
then : |
| 29822 |
COROUTINE_SRC=coroutine/$coroutine_type/Context.'$(ASMEXT)' |
| 29823 |
fi |
| 29824 |
printf "%s\n" "#define COROUTINE_H \"$COROUTINE_H\"" >>confdefs.h |
| 29825 |
|
| 29826 |
X_COROUTINE_H=$COROUTINE_H |
| 29827 |
|
| 29828 |
X_COROUTINE_SRC=$COROUTINE_SRC |
| 29829 |
|
| 29830 |
|
| 29831 |
if test "$THREAD_MODEL" = pthread |
| 29832 |
then : |
| 29833 |
|
| 29834 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_t is scalar type" >&5 |
| 29835 |
printf %s "checking whether pthread_t is scalar type... " >&6; } |
| 29836 |
if test ${rb_cv_scalar_pthread_t+y} |
| 29837 |
then : |
| 29838 |
printf %s "(cached) " >&6 |
| 29839 |
else $as_nop |
| 29840 |
|
| 29841 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 29842 |
/* end confdefs.h. */ |
| 29843 |
|
| 29844 |
#include <pthread.h> |
| 29845 |
|
| 29846 |
int |
| 29847 |
main (void) |
| 29848 |
{ |
| 29849 |
|
| 29850 |
pthread_t thread_id; |
| 29851 |
thread_id = 0; |
| 29852 |
if (!thread_id) return 0; |
| 29853 |
|
| 29854 |
; |
| 29855 |
return 0; |
| 29856 |
} |
| 29857 |
_ACEOF |
| 29858 |
if ac_fn_c_try_compile "$LINENO" |
| 29859 |
then : |
| 29860 |
rb_cv_scalar_pthread_t=yes |
| 29861 |
else $as_nop |
| 29862 |
rb_cv_scalar_pthread_t=no |
| 29863 |
fi |
| 29864 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 29865 |
|
| 29866 |
fi |
| 29867 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_scalar_pthread_t" >&5 |
| 29868 |
colorize_result "$rb_cv_scalar_pthread_t" ; } |
| 29869 |
if test x"$rb_cv_scalar_pthread_t" = xyes |
| 29870 |
then : |
| 29871 |
|
| 29872 |
: # RUBY_CHECK_SIZEOF(pthread_t, [void* int long], [], [#include <pthread.h>]) |
| 29873 |
|
| 29874 |
else $as_nop |
| 29875 |
|
| 29876 |
printf "%s\n" "#define NON_SCALAR_THREAD_ID 1" >>confdefs.h |
| 29877 |
|
| 29878 |
|
| 29879 |
fi |
| 29880 |
ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield" |
| 29881 |
if test "x$ac_cv_func_sched_yield" = xyes |
| 29882 |
then : |
| 29883 |
printf "%s\n" "#define HAVE_SCHED_YIELD 1" >>confdefs.h |
| 29884 |
|
| 29885 |
fi |
| 29886 |
ac_fn_c_check_func "$LINENO" "pthread_attr_setinheritsched" "ac_cv_func_pthread_attr_setinheritsched" |
| 29887 |
if test "x$ac_cv_func_pthread_attr_setinheritsched" = xyes |
| 29888 |
then : |
| 29889 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_SETINHERITSCHED 1" >>confdefs.h |
| 29890 |
|
| 29891 |
fi |
| 29892 |
ac_fn_c_check_func "$LINENO" "pthread_attr_get_np" "ac_cv_func_pthread_attr_get_np" |
| 29893 |
if test "x$ac_cv_func_pthread_attr_get_np" = xyes |
| 29894 |
then : |
| 29895 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_GET_NP 1" >>confdefs.h |
| 29896 |
|
| 29897 |
fi |
| 29898 |
ac_fn_c_check_func "$LINENO" "pthread_attr_getstack" "ac_cv_func_pthread_attr_getstack" |
| 29899 |
if test "x$ac_cv_func_pthread_attr_getstack" = xyes |
| 29900 |
then : |
| 29901 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETSTACK 1" >>confdefs.h |
| 29902 |
|
| 29903 |
fi |
| 29904 |
ac_fn_c_check_func "$LINENO" "pthread_attr_getguardsize" "ac_cv_func_pthread_attr_getguardsize" |
| 29905 |
if test "x$ac_cv_func_pthread_attr_getguardsize" = xyes |
| 29906 |
then : |
| 29907 |
printf "%s\n" "#define HAVE_PTHREAD_ATTR_GETGUARDSIZE 1" >>confdefs.h |
| 29908 |
|
| 29909 |
fi |
| 29910 |
ac_fn_c_check_func "$LINENO" "pthread_get_stackaddr_np" "ac_cv_func_pthread_get_stackaddr_np" |
| 29911 |
if test "x$ac_cv_func_pthread_get_stackaddr_np" = xyes |
| 29912 |
then : |
| 29913 |
printf "%s\n" "#define HAVE_PTHREAD_GET_STACKADDR_NP 1" >>confdefs.h |
| 29914 |
|
| 29915 |
fi |
| 29916 |
ac_fn_c_check_func "$LINENO" "pthread_get_stacksize_np" "ac_cv_func_pthread_get_stacksize_np" |
| 29917 |
if test "x$ac_cv_func_pthread_get_stacksize_np" = xyes |
| 29918 |
then : |
| 29919 |
printf "%s\n" "#define HAVE_PTHREAD_GET_STACKSIZE_NP 1" >>confdefs.h |
| 29920 |
|
| 29921 |
fi |
| 29922 |
ac_fn_c_check_func "$LINENO" "thr_stksegment" "ac_cv_func_thr_stksegment" |
| 29923 |
if test "x$ac_cv_func_thr_stksegment" = xyes |
| 29924 |
then : |
| 29925 |
printf "%s\n" "#define HAVE_THR_STKSEGMENT 1" >>confdefs.h |
| 29926 |
|
| 29927 |
fi |
| 29928 |
ac_fn_c_check_func "$LINENO" "pthread_stackseg_np" "ac_cv_func_pthread_stackseg_np" |
| 29929 |
if test "x$ac_cv_func_pthread_stackseg_np" = xyes |
| 29930 |
then : |
| 29931 |
printf "%s\n" "#define HAVE_PTHREAD_STACKSEG_NP 1" >>confdefs.h |
| 29932 |
|
| 29933 |
fi |
| 29934 |
ac_fn_c_check_func "$LINENO" "pthread_getthrds_np" "ac_cv_func_pthread_getthrds_np" |
| 29935 |
if test "x$ac_cv_func_pthread_getthrds_np" = xyes |
| 29936 |
then : |
| 29937 |
printf "%s\n" "#define HAVE_PTHREAD_GETTHRDS_NP 1" >>confdefs.h |
| 29938 |
|
| 29939 |
fi |
| 29940 |
ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" |
| 29941 |
if test "x$ac_cv_func_pthread_condattr_setclock" = xyes |
| 29942 |
then : |
| 29943 |
printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h |
| 29944 |
|
| 29945 |
fi |
| 29946 |
ac_fn_c_check_func "$LINENO" "pthread_setname_np" "ac_cv_func_pthread_setname_np" |
| 29947 |
if test "x$ac_cv_func_pthread_setname_np" = xyes |
| 29948 |
then : |
| 29949 |
printf "%s\n" "#define HAVE_PTHREAD_SETNAME_NP 1" >>confdefs.h |
| 29950 |
|
| 29951 |
fi |
| 29952 |
ac_fn_c_check_func "$LINENO" "pthread_set_name_np" "ac_cv_func_pthread_set_name_np" |
| 29953 |
if test "x$ac_cv_func_pthread_set_name_np" = xyes |
| 29954 |
then : |
| 29955 |
printf "%s\n" "#define HAVE_PTHREAD_SET_NAME_NP 1" >>confdefs.h |
| 29956 |
|
| 29957 |
fi |
| 29958 |
|
| 29959 |
case "$target_os" in #( |
| 29960 |
emscripten*) : |
| 29961 |
ac_cv_func_pthread_sigmask=no ;; #( |
| 29962 |
*) : |
| 29963 |
ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" |
| 29964 |
if test "x$ac_cv_func_pthread_sigmask" = xyes |
| 29965 |
then : |
| 29966 |
printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
| 29967 |
|
| 29968 |
fi |
| 29969 |
;; |
| 29970 |
esac |
| 29971 |
case "$target_os" in #( |
| 29972 |
aix*) : |
| 29973 |
ac_cv_func_pthread_getattr_np=no ;; #( |
| 29974 |
*) : |
| 29975 |
ac_fn_c_check_func "$LINENO" "pthread_getattr_np" "ac_cv_func_pthread_getattr_np" |
| 29976 |
if test "x$ac_cv_func_pthread_getattr_np" = xyes |
| 29977 |
then : |
| 29978 |
printf "%s\n" "#define HAVE_PTHREAD_GETATTR_NP 1" >>confdefs.h |
| 29979 |
|
| 29980 |
fi |
| 29981 |
;; |
| 29982 |
esac |
| 29983 |
set_current_thread_name= |
| 29984 |
if test "$ac_cv_func_pthread_setname_np" = yes |
| 29985 |
then : |
| 29986 |
|
| 29987 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking arguments of pthread_setname_np" >&5 |
| 29988 |
printf %s "checking arguments of pthread_setname_np... " >&6; } |
| 29989 |
if test ${rb_cv_func_pthread_setname_np_arguments+y} |
| 29990 |
then : |
| 29991 |
printf %s "(cached) " >&6 |
| 29992 |
else $as_nop |
| 29993 |
rb_cv_func_pthread_setname_np_arguments= |
| 29994 |
# Linux,AIX, (pthread_self(), name) |
| 29995 |
# NetBSD (pthread_self(), \"%s\", name) |
| 29996 |
# Darwin (name) |
| 29997 |
for mac in \ |
| 29998 |
"(pthread_self(), name)" \ |
| 29999 |
"(pthread_self(), \"%s\", name)" \ |
| 30000 |
"(name)" \ |
| 30001 |
; do |
| 30002 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30003 |
/* end confdefs.h. */ |
| 30004 |
|
| 30005 |
#include <pthread.h> |
| 30006 |
#ifdef HAVE_PTHREAD_NP_H |
| 30007 |
#include <pthread_np.h> |
| 30008 |
#endif |
| 30009 |
#define SET_THREAD_NAME(name) pthread_setname_np${mac} |
| 30010 |
|
| 30011 |
int |
| 30012 |
main (void) |
| 30013 |
{ |
| 30014 |
if (SET_THREAD_NAME("conftest")) return 1; |
| 30015 |
; |
| 30016 |
return 0; |
| 30017 |
} |
| 30018 |
_ACEOF |
| 30019 |
if ac_fn_c_try_compile "$LINENO" |
| 30020 |
then : |
| 30021 |
rb_cv_func_pthread_setname_np_arguments="${mac}" |
| 30022 |
break |
| 30023 |
fi |
| 30024 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30025 |
done |
| 30026 |
|
| 30027 |
|
| 30028 |
fi |
| 30029 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_func_pthread_setname_np_arguments" >&5 |
| 30030 |
colorize_result "$rb_cv_func_pthread_setname_np_arguments" ; } |
| 30031 |
if test -n "${rb_cv_func_pthread_setname_np_arguments}" |
| 30032 |
then : |
| 30033 |
|
| 30034 |
set_current_thread_name="pthread_setname_np${rb_cv_func_pthread_setname_np_arguments}" |
| 30035 |
|
| 30036 |
fi |
| 30037 |
|
| 30038 |
elif test "$ac_cv_func_pthread_set_name_np" = yes |
| 30039 |
then : |
| 30040 |
|
| 30041 |
set_current_thread_name="pthread_set_name_np(pthread_self(), name)" |
| 30042 |
|
| 30043 |
fi |
| 30044 |
if test -n "$set_current_thread_name" |
| 30045 |
then : |
| 30046 |
|
| 30047 |
printf "%s\n" "#define SET_CURRENT_THREAD_NAME(name) $set_current_thread_name" >>confdefs.h |
| 30048 |
|
| 30049 |
case $set_current_thread_name in #( |
| 30050 |
*'pthread_self()'*) : |
| 30051 |
|
| 30052 |
set_another_thread_name=`echo "$set_current_thread_name" | sed 's/pthread_self()/thid/'` |
| 30053 |
printf "%s\n" "#define SET_ANOTHER_THREAD_NAME(thid,name) $set_another_thread_name" >>confdefs.h |
| 30054 |
|
| 30055 |
;; #( |
| 30056 |
*) : |
| 30057 |
;; |
| 30058 |
esac |
| 30059 |
|
| 30060 |
fi |
| 30061 |
|
| 30062 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread-local storage sepcifier" >&5 |
| 30063 |
printf %s "checking for thread-local storage sepcifier... " >&6; } |
| 30064 |
if test ${rb_cv_tls_specifier+y} |
| 30065 |
then : |
| 30066 |
printf %s "(cached) " >&6 |
| 30067 |
else $as_nop |
| 30068 |
rb_cv_tls_specifier=none |
| 30069 |
save_CFLAGS="$CFLAGS" |
| 30070 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 30071 |
if test "${ac_c_werror_flag+set}" |
| 30072 |
then : |
| 30073 |
|
| 30074 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 30075 |
|
| 30076 |
else $as_nop |
| 30077 |
|
| 30078 |
unset rb_c_werror_flag |
| 30079 |
|
| 30080 |
fi |
| 30081 |
ac_c_werror_flag=yes |
| 30082 |
|
| 30083 |
for attr in \ |
| 30084 |
_Thread_local \ |
| 30085 |
__thread \ |
| 30086 |
; do |
| 30087 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30088 |
/* end confdefs.h. */ |
| 30089 |
$attr int conftest; |
| 30090 |
int |
| 30091 |
main (void) |
| 30092 |
{ |
| 30093 |
|
| 30094 |
; |
| 30095 |
return 0; |
| 30096 |
} |
| 30097 |
_ACEOF |
| 30098 |
if ac_fn_c_try_link "$LINENO" |
| 30099 |
then : |
| 30100 |
rb_cv_tls_specifier=$attr; break |
| 30101 |
fi |
| 30102 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30103 |
conftest$ac_exeext conftest.$ac_ext |
| 30104 |
done |
| 30105 |
|
| 30106 |
CFLAGS="$save_CFLAGS" |
| 30107 |
save_CFLAGS= |
| 30108 |
if test "${rb_c_werror_flag+set}" |
| 30109 |
then : |
| 30110 |
|
| 30111 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 30112 |
|
| 30113 |
else $as_nop |
| 30114 |
|
| 30115 |
unset ac_c_werror_flag |
| 30116 |
|
| 30117 |
fi |
| 30118 |
|
| 30119 |
fi |
| 30120 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_tls_specifier" >&5 |
| 30121 |
colorize_result "$rb_cv_tls_specifier" ; } |
| 30122 |
if test x"${rb_cv_tls_specifier}" != xnone |
| 30123 |
then : |
| 30124 |
printf "%s\n" "#define RB_THREAD_LOCAL_SPECIFIER ${rb_cv_tls_specifier}" >>confdefs.h |
| 30125 |
|
| 30126 |
|
| 30127 |
fi |
| 30128 |
|
| 30129 |
fi |
| 30130 |
|
| 30131 |
if test x"$ac_cv_header_ucontext_h" = xno |
| 30132 |
then : |
| 30133 |
|
| 30134 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal.h defines ucontext_t" >&5 |
| 30135 |
printf %s "checking if signal.h defines ucontext_t... " >&6; } |
| 30136 |
if test ${rb_cv_ucontext_in_signal_h+y} |
| 30137 |
then : |
| 30138 |
printf %s "(cached) " >&6 |
| 30139 |
else $as_nop |
| 30140 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30141 |
/* end confdefs.h. */ |
| 30142 |
#include <signal.h> |
| 30143 |
int |
| 30144 |
main (void) |
| 30145 |
{ |
| 30146 |
size_t size = sizeof(ucontext_t); |
| 30147 |
; |
| 30148 |
return 0; |
| 30149 |
} |
| 30150 |
_ACEOF |
| 30151 |
if ac_fn_c_try_compile "$LINENO" |
| 30152 |
then : |
| 30153 |
rb_cv_ucontext_in_signal_h=yes |
| 30154 |
else $as_nop |
| 30155 |
rb_cv_ucontext_in_signal_h=no |
| 30156 |
fi |
| 30157 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30158 |
fi |
| 30159 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_ucontext_in_signal_h" >&5 |
| 30160 |
colorize_result "$rb_cv_ucontext_in_signal_h" ; } |
| 30161 |
if test x"$rb_cv_ucontext_in_signal_h" = xyes |
| 30162 |
then : |
| 30163 |
|
| 30164 |
printf "%s\n" "#define UCONTEXT_IN_SIGNAL_H 1" >>confdefs.h |
| 30165 |
|
| 30166 |
|
| 30167 |
fi |
| 30168 |
|
| 30169 |
fi |
| 30170 |
if test x"$ac_cv_header_ucontext_h" = xyes -o x"$rb_cv_ucontext_in_signal_h" = xyes |
| 30171 |
then : |
| 30172 |
|
| 30173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if mcontext_t is a pointer" >&5 |
| 30174 |
printf %s "checking if mcontext_t is a pointer... " >&6; } |
| 30175 |
if test ${rb_cv_mcontext_t_ptr+y} |
| 30176 |
then : |
| 30177 |
printf %s "(cached) " >&6 |
| 30178 |
else $as_nop |
| 30179 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30180 |
/* end confdefs.h. */ |
| 30181 |
|
| 30182 |
#include <signal.h> |
| 30183 |
#ifdef HAVE_UCONTEXT_H |
| 30184 |
#include <ucontext.h> |
| 30185 |
#endif |
| 30186 |
mcontext_t test(mcontext_t mc) {return mc+1;} |
| 30187 |
|
| 30188 |
int |
| 30189 |
main (void) |
| 30190 |
{ |
| 30191 |
test(0); |
| 30192 |
; |
| 30193 |
return 0; |
| 30194 |
} |
| 30195 |
_ACEOF |
| 30196 |
if ac_fn_c_try_compile "$LINENO" |
| 30197 |
then : |
| 30198 |
rb_cv_mcontext_t_ptr=yes |
| 30199 |
else $as_nop |
| 30200 |
rb_cv_mcontext_t_ptr=no |
| 30201 |
fi |
| 30202 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30203 |
fi |
| 30204 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_mcontext_t_ptr" >&5 |
| 30205 |
colorize_result "$rb_cv_mcontext_t_ptr" ; } |
| 30206 |
if test x"$rb_cv_mcontext_t_ptr" = xyes |
| 30207 |
then : |
| 30208 |
|
| 30209 |
printf "%s\n" "#define DEFINE_MCONTEXT_PTR(mc, uc) mcontext_t mc = (uc)->uc_mcontext" >>confdefs.h |
| 30210 |
|
| 30211 |
|
| 30212 |
else $as_nop |
| 30213 |
|
| 30214 |
printf "%s\n" "#define DEFINE_MCONTEXT_PTR(mc, uc) mcontext_t *mc = &(uc)->uc_mcontext" >>confdefs.h |
| 30215 |
|
| 30216 |
|
| 30217 |
fi |
| 30218 |
if test x"$THREAD_MODEL" = xpthread |
| 30219 |
then : |
| 30220 |
|
| 30221 |
ac_fn_c_check_func "$LINENO" "getcontext" "ac_cv_func_getcontext" |
| 30222 |
if test "x$ac_cv_func_getcontext" = xyes |
| 30223 |
then : |
| 30224 |
printf "%s\n" "#define HAVE_GETCONTEXT 1" >>confdefs.h |
| 30225 |
|
| 30226 |
fi |
| 30227 |
ac_fn_c_check_func "$LINENO" "setcontext" "ac_cv_func_setcontext" |
| 30228 |
if test "x$ac_cv_func_setcontext" = xyes |
| 30229 |
then : |
| 30230 |
printf "%s\n" "#define HAVE_SETCONTEXT 1" >>confdefs.h |
| 30231 |
|
| 30232 |
fi |
| 30233 |
|
| 30234 |
|
| 30235 |
fi |
| 30236 |
|
| 30237 |
fi |
| 30238 |
|
| 30239 |
if test "$ac_cv_func_fork_works" = "yes" -a x"$THREAD_MODEL" = xpthread |
| 30240 |
then : |
| 30241 |
|
| 30242 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fork works with pthread" >&5 |
| 30243 |
printf %s "checking if fork works with pthread... " >&6; } |
| 30244 |
if test ${rb_cv_fork_with_pthread+y} |
| 30245 |
then : |
| 30246 |
printf %s "(cached) " >&6 |
| 30247 |
else $as_nop |
| 30248 |
if test "$cross_compiling" = yes |
| 30249 |
then : |
| 30250 |
rb_cv_fork_with_pthread=yes |
| 30251 |
else $as_nop |
| 30252 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30253 |
/* end confdefs.h. */ |
| 30254 |
|
| 30255 |
#include <stdlib.h> |
| 30256 |
#include <unistd.h> |
| 30257 |
#include <pthread.h> |
| 30258 |
#include <stdio.h> |
| 30259 |
#include <sys/types.h> |
| 30260 |
#include <sys/wait.h> |
| 30261 |
#include <signal.h> |
| 30262 |
#ifndef EXIT_SUCCESS |
| 30263 |
#define EXIT_SUCCESS 0 |
| 30264 |
#endif |
| 30265 |
#ifndef EXIT_FAILURE |
| 30266 |
#define EXIT_FAILURE 1 |
| 30267 |
#endif |
| 30268 |
|
| 30269 |
void * |
| 30270 |
thread_func(void *dmy) |
| 30271 |
{ |
| 30272 |
return dmy; |
| 30273 |
} |
| 30274 |
|
| 30275 |
int |
| 30276 |
use_threads(void) |
| 30277 |
{ |
| 30278 |
pthread_t tid; |
| 30279 |
if (pthread_create(&tid, 0, thread_func, 0) != 0) { |
| 30280 |
return -1; |
| 30281 |
} |
| 30282 |
if (pthread_join(tid, 0) != 0) { |
| 30283 |
return -1; |
| 30284 |
} |
| 30285 |
return 0; |
| 30286 |
} |
| 30287 |
|
| 30288 |
int |
| 30289 |
main(int argc, char *argv[]) |
| 30290 |
{ |
| 30291 |
pid_t pid; |
| 30292 |
if (use_threads()) return EXIT_FAILURE; |
| 30293 |
pid = fork(); |
| 30294 |
|
| 30295 |
if (pid) { |
| 30296 |
int loc; |
| 30297 |
sleep(1); |
| 30298 |
if (waitpid(pid, &loc, WNOHANG) == 0) { |
| 30299 |
kill(pid, SIGKILL); |
| 30300 |
return EXIT_FAILURE; |
| 30301 |
} |
| 30302 |
if (!WIFEXITED(loc) || WEXITSTATUS(loc) != EXIT_SUCCESS) |
| 30303 |
return EXIT_FAILURE; |
| 30304 |
} |
| 30305 |
else { |
| 30306 |
if (use_threads()) return EXIT_FAILURE; |
| 30307 |
} |
| 30308 |
|
| 30309 |
return EXIT_SUCCESS; |
| 30310 |
} |
| 30311 |
_ACEOF |
| 30312 |
if ac_fn_c_try_run "$LINENO" |
| 30313 |
then : |
| 30314 |
rb_cv_fork_with_pthread=yes |
| 30315 |
else $as_nop |
| 30316 |
rb_cv_fork_with_pthread=no |
| 30317 |
fi |
| 30318 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 30319 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30320 |
fi |
| 30321 |
|
| 30322 |
fi |
| 30323 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_fork_with_pthread" >&5 |
| 30324 |
colorize_result "$rb_cv_fork_with_pthread" ; } |
| 30325 |
test x$rb_cv_fork_with_pthread = xyes || printf "%s\n" "#define CANNOT_FORK_WITH_PTHREAD 1" >>confdefs.h |
| 30326 |
|
| 30327 |
|
| 30328 |
fi |
| 30329 |
|
| 30330 |
ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "$ac_includes_default" |
| 30331 |
if test "x$ac_cv_header_sys_user_h" = xyes |
| 30332 |
then : |
| 30333 |
printf "%s\n" "#define HAVE_SYS_USER_H 1" >>confdefs.h |
| 30334 |
|
| 30335 |
fi |
| 30336 |
|
| 30337 |
if test "x$ac_cv_func_mmap" = xyes |
| 30338 |
then : |
| 30339 |
|
| 30340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PAGE_SIZE is compile-time const" >&5 |
| 30341 |
printf %s "checking whether PAGE_SIZE is compile-time const... " >&6; } |
| 30342 |
if test ${rb_cv_const_page_size+y} |
| 30343 |
then : |
| 30344 |
printf %s "(cached) " >&6 |
| 30345 |
else $as_nop |
| 30346 |
malloc_headers=`sed -n '/MALLOC_HEADERS_BEGIN/,/MALLOC_HEADERS_END/p' ${srcdir}/gc.c` |
| 30347 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30348 |
/* end confdefs.h. */ |
| 30349 |
$malloc_headers |
| 30350 |
typedef char conftest_page[PAGE_SIZE]; |
| 30351 |
|
| 30352 |
int |
| 30353 |
main (void) |
| 30354 |
{ |
| 30355 |
|
| 30356 |
; |
| 30357 |
return 0; |
| 30358 |
} |
| 30359 |
_ACEOF |
| 30360 |
if ac_fn_c_try_compile "$LINENO" |
| 30361 |
then : |
| 30362 |
rb_cv_const_page_size=yes |
| 30363 |
else $as_nop |
| 30364 |
rb_cv_const_page_size=no |
| 30365 |
fi |
| 30366 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30367 |
fi |
| 30368 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_const_page_size" >&5 |
| 30369 |
colorize_result "$rb_cv_const_page_size" ; } |
| 30370 |
|
| 30371 |
fi |
| 30372 |
if test "x$rb_cv_const_page_size" = xyes |
| 30373 |
then : |
| 30374 |
printf "%s\n" "#define HAVE_CONST_PAGE_SIZE 1" >>confdefs.h |
| 30375 |
|
| 30376 |
else $as_nop |
| 30377 |
printf "%s\n" "#define HAVE_CONST_PAGE_SIZE 0" >>confdefs.h |
| 30378 |
|
| 30379 |
|
| 30380 |
fi |
| 30381 |
|
| 30382 |
if test "x$ac_cv_func_ioctl" = xyes |
| 30383 |
then : |
| 30384 |
|
| 30385 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ioctl request type" >&5 |
| 30386 |
printf %s "checking ioctl request type... " >&6; } |
| 30387 |
if test ${rb_cv_ioctl_request_type+y} |
| 30388 |
then : |
| 30389 |
printf %s "(cached) " >&6 |
| 30390 |
else $as_nop |
| 30391 |
rb_cv_ioctl_request_type=no |
| 30392 |
for type in "unsigned long:ULONG_MAX" int:INT_MAX; do |
| 30393 |
max=`echo $type | sed 's/.*://'` |
| 30394 |
type=`echo $type | sed 's/:.*//'` |
| 30395 |
save_CFLAGS="$CFLAGS" |
| 30396 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 30397 |
if test "${ac_c_werror_flag+set}" |
| 30398 |
then : |
| 30399 |
|
| 30400 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 30401 |
|
| 30402 |
else $as_nop |
| 30403 |
|
| 30404 |
unset rb_c_werror_flag |
| 30405 |
|
| 30406 |
fi |
| 30407 |
ac_c_werror_flag=yes |
| 30408 |
|
| 30409 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30410 |
/* end confdefs.h. */ |
| 30411 |
|
| 30412 |
#include <limits.h> |
| 30413 |
#include <sys/types.h> |
| 30414 |
#if defined(HAVE_SYS_IOCTL_H) && !defined(_WIN32) |
| 30415 |
#include <sys/ioctl.h> |
| 30416 |
#endif |
| 30417 |
|
| 30418 |
int |
| 30419 |
main (void) |
| 30420 |
{ |
| 30421 |
|
| 30422 |
$type req = $max; |
| 30423 |
if (ioctl(0, req)) {/* do nothing*/}; |
| 30424 |
|
| 30425 |
; |
| 30426 |
return 0; |
| 30427 |
} |
| 30428 |
_ACEOF |
| 30429 |
if ac_fn_c_try_compile "$LINENO" |
| 30430 |
then : |
| 30431 |
rb_cv_ioctl_request_type="$type" |
| 30432 |
fi |
| 30433 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 30434 |
|
| 30435 |
CFLAGS="$save_CFLAGS" |
| 30436 |
save_CFLAGS= |
| 30437 |
if test "${rb_c_werror_flag+set}" |
| 30438 |
then : |
| 30439 |
|
| 30440 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 30441 |
|
| 30442 |
else $as_nop |
| 30443 |
|
| 30444 |
unset ac_c_werror_flag |
| 30445 |
|
| 30446 |
fi |
| 30447 |
test "x$rb_cv_ioctl_request_type" = xno || break |
| 30448 |
done |
| 30449 |
fi |
| 30450 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_ioctl_request_type" >&5 |
| 30451 |
colorize_result "$rb_cv_ioctl_request_type" ; } |
| 30452 |
case "$rb_cv_ioctl_request_type" in #( |
| 30453 |
no|int) : |
| 30454 |
;; #( |
| 30455 |
"unsigned long") : |
| 30456 |
|
| 30457 |
printf "%s\n" "#define IOCTL_REQ_TYPE $rb_cv_ioctl_request_type" >>confdefs.h |
| 30458 |
|
| 30459 |
printf "%s\n" "#define NUM2IOCTLREQ(num) NUM2ULONG(num)" >>confdefs.h |
| 30460 |
|
| 30461 |
;; #( |
| 30462 |
*) : |
| 30463 |
;; |
| 30464 |
esac |
| 30465 |
|
| 30466 |
fi |
| 30467 |
|
| 30468 |
} |
| 30469 |
|
| 30470 |
begin_group "runtime section" && { |
| 30471 |
|
| 30472 |
# Check whether --with-dln-a-out was given. |
| 30473 |
if test ${with_dln_a_out+y} |
| 30474 |
then : |
| 30475 |
withval=$with_dln_a_out; |
| 30476 |
case $withval in #( |
| 30477 |
yes) : |
| 30478 |
|
| 30479 |
as_fn_error $? "dln_a_out no longer supported" "$LINENO" 5 |
| 30480 |
;; #( |
| 30481 |
*) : |
| 30482 |
;; |
| 30483 |
esac |
| 30484 |
|
| 30485 |
fi |
| 30486 |
|
| 30487 |
|
| 30488 |
if test "$rb_cv_binary_elf" = yes |
| 30489 |
then : |
| 30490 |
|
| 30491 |
printf "%s\n" "#define USE_ELF 1" >>confdefs.h |
| 30492 |
|
| 30493 |
ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" |
| 30494 |
if test "x$ac_cv_header_elf_h" = xyes |
| 30495 |
then : |
| 30496 |
printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h |
| 30497 |
|
| 30498 |
fi |
| 30499 |
ac_fn_c_check_header_compile "$LINENO" "elf_abi.h" "ac_cv_header_elf_abi_h" "$ac_includes_default" |
| 30500 |
if test "x$ac_cv_header_elf_abi_h" = xyes |
| 30501 |
then : |
| 30502 |
printf "%s\n" "#define HAVE_ELF_ABI_H 1" >>confdefs.h |
| 30503 |
|
| 30504 |
fi |
| 30505 |
|
| 30506 |
if test $ac_cv_header_elf_h = yes -o $ac_cv_header_elf_abi_h = yes |
| 30507 |
then : |
| 30508 |
|
| 30509 |
case " $LIBOBJS " in |
| 30510 |
*" addr2line.$ac_objext "* ) ;; |
| 30511 |
*) LIBOBJS="$LIBOBJS addr2line.$ac_objext" |
| 30512 |
;; |
| 30513 |
esac |
| 30514 |
|
| 30515 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5 |
| 30516 |
printf %s "checking for uncompress in -lz... " >&6; } |
| 30517 |
if test ${ac_cv_lib_z_uncompress+y} |
| 30518 |
then : |
| 30519 |
printf %s "(cached) " >&6 |
| 30520 |
else $as_nop |
| 30521 |
ac_check_lib_save_LIBS=$LIBS |
| 30522 |
LIBS="-lz $LIBS" |
| 30523 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30524 |
/* end confdefs.h. */ |
| 30525 |
|
| 30526 |
/* Override any GCC internal prototype to avoid an error. |
| 30527 |
Use char because int might match the return type of a GCC |
| 30528 |
builtin and then its argument prototype would still apply. */ |
| 30529 |
char uncompress (); |
| 30530 |
int |
| 30531 |
main (void) |
| 30532 |
{ |
| 30533 |
return uncompress (); |
| 30534 |
; |
| 30535 |
return 0; |
| 30536 |
} |
| 30537 |
_ACEOF |
| 30538 |
if ac_fn_c_try_link "$LINENO" |
| 30539 |
then : |
| 30540 |
ac_cv_lib_z_uncompress=yes |
| 30541 |
else $as_nop |
| 30542 |
ac_cv_lib_z_uncompress=no |
| 30543 |
fi |
| 30544 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30545 |
conftest$ac_exeext conftest.$ac_ext |
| 30546 |
LIBS=$ac_check_lib_save_LIBS |
| 30547 |
fi |
| 30548 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5 |
| 30549 |
colorize_result "$ac_cv_lib_z_uncompress" ; } |
| 30550 |
if test "x$ac_cv_lib_z_uncompress" = xyes |
| 30551 |
then : |
| 30552 |
printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h |
| 30553 |
|
| 30554 |
LIBS="-lz $LIBS" |
| 30555 |
|
| 30556 |
fi |
| 30557 |
|
| 30558 |
|
| 30559 |
fi |
| 30560 |
|
| 30561 |
fi |
| 30562 |
|
| 30563 |
ac_fn_c_check_header_compile "$LINENO" "mach-o/loader.h" "ac_cv_header_mach_o_loader_h" "$ac_includes_default" |
| 30564 |
if test "x$ac_cv_header_mach_o_loader_h" = xyes |
| 30565 |
then : |
| 30566 |
printf "%s\n" "#define HAVE_MACH_O_LOADER_H 1" >>confdefs.h |
| 30567 |
|
| 30568 |
fi |
| 30569 |
|
| 30570 |
if test "$ac_cv_header_mach_o_loader_h" = yes |
| 30571 |
then : |
| 30572 |
|
| 30573 |
case " $LIBOBJS " in |
| 30574 |
*" addr2line.$ac_objext "* ) ;; |
| 30575 |
*) LIBOBJS="$LIBOBJS addr2line.$ac_objext" |
| 30576 |
;; |
| 30577 |
esac |
| 30578 |
|
| 30579 |
|
| 30580 |
fi |
| 30581 |
|
| 30582 |
case "$target_os" in #( |
| 30583 |
linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu) : |
| 30584 |
|
| 30585 |
if test "$rb_cv_binary_elf" = no |
| 30586 |
then : |
| 30587 |
|
| 30588 |
as_fn_error $? "Not ELF" "$LINENO" 5 |
| 30589 |
|
| 30590 |
else $as_nop |
| 30591 |
|
| 30592 |
LDFLAGS="$LDFLAGS -rdynamic" |
| 30593 |
|
| 30594 |
fi ;; #( |
| 30595 |
*) : |
| 30596 |
;; |
| 30597 |
esac |
| 30598 |
LIBEXT=a |
| 30599 |
|
| 30600 |
|
| 30601 |
ASMEXT=S |
| 30602 |
|
| 30603 |
STATIC= |
| 30604 |
|
| 30605 |
: "dlopen" && { |
| 30606 |
rb_cv_dlopen=unknown |
| 30607 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OS depend dynamic link works" >&5 |
| 30608 |
printf %s "checking whether OS depend dynamic link works... " >&6; } |
| 30609 |
if test "$GCC" = yes |
| 30610 |
then : |
| 30611 |
|
| 30612 |
case "$target_os" in #( |
| 30613 |
darwin*) : |
| 30614 |
|
| 30615 |
# The -fno-common is needed if we wish to embed the Ruby interpreter |
| 30616 |
# into a plugin module of some project (as opposed to embedding it |
| 30617 |
# within the project's application). The -I/usr/local/include is |
| 30618 |
# needed because CPP as discovered by configure (cc -E -traditional) |
| 30619 |
# fails to consult /usr/local/include by default. This causes |
| 30620 |
# mkmf.rb's have_header() to fail if the desired resource happens to be |
| 30621 |
# installed in the /usr/local tree. |
| 30622 |
# RUBY_APPEND_OPTION(CCDLFLAGS) |
| 30623 |
case " ${CCDLFLAGS-} " in #( |
| 30624 |
*" -fno-common "*) : |
| 30625 |
;; #( |
| 30626 |
' ') : |
| 30627 |
CCDLFLAGS="-fno-common" ;; #( |
| 30628 |
*) : |
| 30629 |
CCDLFLAGS="$CCDLFLAGS -fno-common" ;; |
| 30630 |
esac ;; #( |
| 30631 |
bsdi*|cygwin*|msys*|mingw*|aix*|interix*) : |
| 30632 |
;; #( |
| 30633 |
*) : |
| 30634 |
|
| 30635 |
# RUBY_APPEND_OPTION(CCDLFLAGS) |
| 30636 |
case " ${CCDLFLAGS-} " in #( |
| 30637 |
*" -fPIC "*) : |
| 30638 |
;; #( |
| 30639 |
' ') : |
| 30640 |
CCDLFLAGS="-fPIC" ;; #( |
| 30641 |
*) : |
| 30642 |
CCDLFLAGS="$CCDLFLAGS -fPIC" ;; |
| 30643 |
esac ;; |
| 30644 |
esac |
| 30645 |
|
| 30646 |
else $as_nop |
| 30647 |
|
| 30648 |
case "$target_os" in #( |
| 30649 |
solaris*|irix*) : |
| 30650 |
CCDLFLAGS="$CCDLFLAGS -KPIC" ;; #( |
| 30651 |
sunos*) : |
| 30652 |
CCDLFLAGS="$CCDLFLAGS -PIC" ;; #( |
| 30653 |
esix*|uxpds*) : |
| 30654 |
CCDLFLAGS="$CCDLFLAGS -KPIC" ;; #( |
| 30655 |
*) : |
| 30656 |
: ${CCDLFLAGS=""} ;; |
| 30657 |
esac |
| 30658 |
|
| 30659 |
fi |
| 30660 |
} |
| 30661 |
|
| 30662 |
EXTSTATIC= |
| 30663 |
|
| 30664 |
# Check whether --with-static-linked-ext was given. |
| 30665 |
if test ${with_static_linked_ext+y} |
| 30666 |
then : |
| 30667 |
withval=$with_static_linked_ext; case $withval in #( |
| 30668 |
yes) : |
| 30669 |
STATIC=;EXTSTATIC=static ;; #( |
| 30670 |
no) : |
| 30671 |
;; #( |
| 30672 |
*) : |
| 30673 |
EXTSTATIC="$withval" ;; |
| 30674 |
esac |
| 30675 |
fi |
| 30676 |
|
| 30677 |
case ",$EXTSTATIC," in #( |
| 30678 |
,static,|*,enc,*) : |
| 30679 |
|
| 30680 |
ENCOBJS='enc/encinit.$(OBJEXT) enc/libenc.$(LIBEXT) enc/libtrans.$(LIBEXT)' |
| 30681 |
EXTOBJS='ext/extinit.$(OBJEXT)' |
| 30682 |
printf "%s\n" "#define EXTSTATIC 1" >>confdefs.h |
| 30683 |
|
| 30684 |
ENCSTATIC=static |
| 30685 |
|
| 30686 |
;; #( |
| 30687 |
*) : |
| 30688 |
|
| 30689 |
ENCOBJS='dmyenc.$(OBJEXT)' |
| 30690 |
EXTOBJS='dmyext.$(OBJEXT)' |
| 30691 |
;; |
| 30692 |
esac |
| 30693 |
|
| 30694 |
|
| 30695 |
|
| 30696 |
: "rpath" && { |
| 30697 |
case "$target_os" in #( |
| 30698 |
solaris*) : |
| 30699 |
if test "$GCC" = yes |
| 30700 |
then : |
| 30701 |
|
| 30702 |
: ${LDSHARED='$(CC) -shared'} |
| 30703 |
if test "$rb_cv_prog_gnu_ld" = yes |
| 30704 |
then : |
| 30705 |
|
| 30706 |
LDFLAGS="$LDFLAGS -Wl,-E" |
| 30707 |
|
| 30708 |
fi |
| 30709 |
|
| 30710 |
else $as_nop |
| 30711 |
|
| 30712 |
: ${LDSHARED='$(CC) -G'} |
| 30713 |
|
| 30714 |
fi |
| 30715 |
if test "$ac_cv_sizeof_voidp" = 8 |
| 30716 |
then : |
| 30717 |
|
| 30718 |
: ${LIBPATHENV=LD_LIBRARY_PATH_64} |
| 30719 |
: ${PRELOADENV=LD_PRELOAD_64} |
| 30720 |
|
| 30721 |
else $as_nop |
| 30722 |
|
| 30723 |
: ${LIBPATHENV=LD_LIBRARY_PATH_32} |
| 30724 |
: ${PRELOADENV=LD_PRELOAD_32} |
| 30725 |
|
| 30726 |
fi |
| 30727 |
rb_cv_dlopen=yes ;; #( |
| 30728 |
sunos*) : |
| 30729 |
: ${LDSHARED='$(LD) -assert nodefinitions'} |
| 30730 |
rb_cv_dlopen=yes ;; #( |
| 30731 |
irix*) : |
| 30732 |
: ${LDSHARED='$(LD) -shared'} |
| 30733 |
rb_cv_dlopen=yes ;; #( |
| 30734 |
sysv4*) : |
| 30735 |
: ${LDSHARED='$(LD) -G'} |
| 30736 |
rb_cv_dlopen=yes ;; #( |
| 30737 |
nto-qnx*) : |
| 30738 |
: ${LDSHARED='$(CC) -shared'} |
| 30739 |
rb_cv_dlopen=yes ;; #( |
| 30740 |
esix*|uxpds*) : |
| 30741 |
: ${LDSHARED='$(LD) -G'} |
| 30742 |
rb_cv_dlopen=yes ;; #( |
| 30743 |
osf*) : |
| 30744 |
: ${LDSHARED='$(LD) -shared -expect_unresolved "*"'} |
| 30745 |
rb_cv_dlopen=yes ;; #( |
| 30746 |
bsdi3*) : |
| 30747 |
case "$CC" in #( |
| 30748 |
*shlicc*) : |
| 30749 |
: ${LDSHARED='$(CC) -r'} |
| 30750 |
rb_cv_dlopen=yes ;; #( |
| 30751 |
*) : |
| 30752 |
;; |
| 30753 |
esac ;; #( |
| 30754 |
linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu | haiku*) : |
| 30755 |
|
| 30756 |
: ${LDSHARED='$(CC) -shared'} |
| 30757 |
if test "$rb_cv_binary_elf" = yes |
| 30758 |
then : |
| 30759 |
|
| 30760 |
LDFLAGS="$LDFLAGS -Wl,-export-dynamic" |
| 30761 |
|
| 30762 |
fi |
| 30763 |
rb_cv_dlopen=yes ;; #( |
| 30764 |
interix*) : |
| 30765 |
: ${LDSHARED='$(CC) -shared'} |
| 30766 |
XLDFLAGS="$XLDFLAGS -Wl,-E" |
| 30767 |
rb_cv_dlopen=yes ;; #( |
| 30768 |
freebsd*|dragonfly*) : |
| 30769 |
|
| 30770 |
: ${LDSHARED='$(CC) -shared'} |
| 30771 |
if test "$rb_cv_binary_elf" = yes |
| 30772 |
then : |
| 30773 |
|
| 30774 |
LDFLAGS="$LDFLAGS -rdynamic" |
| 30775 |
DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$@' |
| 30776 |
|
| 30777 |
else $as_nop |
| 30778 |
|
| 30779 |
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED='$(LD) -Bshareable' |
| 30780 |
|
| 30781 |
fi |
| 30782 |
rb_cv_dlopen=yes ;; #( |
| 30783 |
openbsd*|mirbsd*) : |
| 30784 |
: ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'} |
| 30785 |
if test "$rb_cv_binary_elf" = yes |
| 30786 |
then : |
| 30787 |
|
| 30788 |
LDFLAGS="$LDFLAGS -Wl,-E" |
| 30789 |
|
| 30790 |
fi |
| 30791 |
rb_cv_dlopen=yes ;; #( |
| 30792 |
darwin*) : |
| 30793 |
: ${LDSHARED='$(CC) -dynamic -bundle'} |
| 30794 |
: ${DLDSHARED='$(CC) -dynamiclib'} |
| 30795 |
: ${LDFLAGS=""} |
| 30796 |
: ${LIBPATHENV=DYLD_LIBRARY_PATH} |
| 30797 |
: ${PRELOADENV=DYLD_INSERT_LIBRARIES} |
| 30798 |
if test x"$enable_shared" = xyes |
| 30799 |
then : |
| 30800 |
|
| 30801 |
# Resolve symbols from libruby.dylib in $(LIBS) when --enable-shared |
| 30802 |
|
| 30803 |
elif test "x$EXTSTATIC" = x |
| 30804 |
then : |
| 30805 |
|
| 30806 |
# When building exts as bundles, a mach-o bundle needs to know its loader |
| 30807 |
# program to bind symbols from the ruby executable |
| 30808 |
EXTDLDFLAGS="-bundle_loader '\$(BUILTRUBY)'" |
| 30809 |
|
| 30810 |
fi |
| 30811 |
rb_cv_dlopen=yes ;; #( |
| 30812 |
aix*) : |
| 30813 |
: ${LDSHARED='$(CC)'} |
| 30814 |
if test "$GCC" = yes |
| 30815 |
then : |
| 30816 |
|
| 30817 |
LDSHARED="$LDSHARED ${linker_flag}-G -shared" |
| 30818 |
|
| 30819 |
else $as_nop |
| 30820 |
|
| 30821 |
LDSHARED="$LDSHARED ${linker_flag}-G" |
| 30822 |
|
| 30823 |
fi |
| 30824 |
EXTDLDFLAGS='-e$(TARGET_ENTRY)' |
| 30825 |
XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl" |
| 30826 |
XLDFLAGS="$XLDFLAGS ${linker_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}" |
| 30827 |
: ${ARCHFILE="ruby.imp"} |
| 30828 |
TRY_LINK='$(CC) -oconftest $(INCFLAGS) -I$(hdrdir) $(CPPFLAGS)' |
| 30829 |
TRY_LINK="$TRY_LINK"' $(CFLAGS) $(src) $(LIBPATH) $(LDFLAGS) $(LOCAL_LIBS) $(LIBS)' |
| 30830 |
: ${LIBPATHENV=LIBPATH} |
| 30831 |
: ${PRELOADENV=LDR_PRELOAD} |
| 30832 |
rb_cv_dlopen=yes ;; #( |
| 30833 |
nto-qnx*) : |
| 30834 |
DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" |
| 30835 |
: ${LDSHARED='$(LD) -Bshareable -x'} |
| 30836 |
LDFLAGS="$LDFLAGS -L/lib -L/usr/lib -L/usr/local/lib" |
| 30837 |
rb_cv_dlopen=yes ;; #( |
| 30838 |
cygwin*|msys*|mingw*) : |
| 30839 |
|
| 30840 |
: ${LDSHARED='$(CC) -shared'} |
| 30841 |
XLDFLAGS="$XLDFLAGS -Wl,--stack,0x00200000,--enable-auto-import" |
| 30842 |
DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-image-base,--enable-auto-import" |
| 30843 |
: ${LIBPATHENV=PATH} |
| 30844 |
: ${PRELOADENV=""} |
| 30845 |
rb_cv_dlopen=yes ;; #( |
| 30846 |
hiuxmpp) : |
| 30847 |
: ${LDSHARED='$(LD) -r'} ;; #( |
| 30848 |
atheos*) : |
| 30849 |
: ${LDSHARED='$(CC) -shared'} |
| 30850 |
rb_cv_dlopen=yes ;; #( |
| 30851 |
*) : |
| 30852 |
: ${LDSHARED='$(LD)'} ;; |
| 30853 |
esac |
| 30854 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dlopen" >&5 |
| 30855 |
colorize_result "$rb_cv_dlopen" ; } |
| 30856 |
} |
| 30857 |
|
| 30858 |
if test "$rb_cv_dlopen" = yes |
| 30859 |
then : |
| 30860 |
|
| 30861 |
case "$target_os" in #( |
| 30862 |
darwin*) : |
| 30863 |
|
| 30864 |
ADDITIONAL_DLDFLAGS="" |
| 30865 |
|
| 30866 |
for flag in \ |
| 30867 |
"-multiply_defined suppress" \ |
| 30868 |
"-undefined dynamic_lookup" \ |
| 30869 |
; do |
| 30870 |
test "x${linker_flag}" = x || flag="${linker_flag}`echo ${flag} | tr ' ' ,`" |
| 30871 |
|
| 30872 |
save_LDFLAGS="$LDFLAGS" |
| 30873 |
LDFLAGS="$LDFLAGS $flag" |
| 30874 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $flag is accepted as LDFLAGS" >&5 |
| 30875 |
printf %s "checking whether $flag is accepted as LDFLAGS... " >&6; } |
| 30876 |
save_CFLAGS="$CFLAGS" |
| 30877 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 30878 |
if test "${ac_c_werror_flag+set}" |
| 30879 |
then : |
| 30880 |
|
| 30881 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 30882 |
|
| 30883 |
else $as_nop |
| 30884 |
|
| 30885 |
unset rb_c_werror_flag |
| 30886 |
|
| 30887 |
fi |
| 30888 |
ac_c_werror_flag=yes |
| 30889 |
|
| 30890 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 30891 |
/* end confdefs.h. */ |
| 30892 |
|
| 30893 |
int |
| 30894 |
main (void) |
| 30895 |
{ |
| 30896 |
|
| 30897 |
; |
| 30898 |
return 0; |
| 30899 |
} |
| 30900 |
_ACEOF |
| 30901 |
if ac_fn_c_try_link "$LINENO" |
| 30902 |
then : |
| 30903 |
|
| 30904 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30905 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 30906 |
else $as_nop |
| 30907 |
flag= |
| 30908 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30909 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 30910 |
fi |
| 30911 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 30912 |
conftest$ac_exeext conftest.$ac_ext |
| 30913 |
|
| 30914 |
CFLAGS="$save_CFLAGS" |
| 30915 |
save_CFLAGS= |
| 30916 |
if test "${rb_c_werror_flag+set}" |
| 30917 |
then : |
| 30918 |
|
| 30919 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 30920 |
|
| 30921 |
else $as_nop |
| 30922 |
|
| 30923 |
unset ac_c_werror_flag |
| 30924 |
|
| 30925 |
fi |
| 30926 |
LDFLAGS="$save_LDFLAGS" |
| 30927 |
save_LDFLAGS= |
| 30928 |
|
| 30929 |
if test x"$flag" = x |
| 30930 |
then : |
| 30931 |
continue |
| 30932 |
fi |
| 30933 |
|
| 30934 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $flag is accepted for bundle" >&5 |
| 30935 |
printf %s "checking whether $flag is accepted for bundle... " >&6; } |
| 30936 |
: > conftest.c |
| 30937 |
if ${LDSHARED%%'$(CC)'*}$CC${LDSHARED#*'$(CC)'} -o conftest.bundle $flag conftest.c >/dev/null 2>conftest.err && |
| 30938 |
test ! -s conftest.err |
| 30939 |
then : |
| 30940 |
|
| 30941 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 30942 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 30943 |
# RUBY_APPEND_OPTIONS(DLDFLAGS) |
| 30944 |
for rb_opt in $flag; do |
| 30945 |
case " ${DLDFLAGS-} " in #( |
| 30946 |
*" ${rb_opt} "*) : |
| 30947 |
;; #( |
| 30948 |
' ') : |
| 30949 |
DLDFLAGS="${rb_opt}" ;; #( |
| 30950 |
*) : |
| 30951 |
DLDFLAGS="$DLDFLAGS ${rb_opt}" ;; |
| 30952 |
esac |
| 30953 |
done |
| 30954 |
|
| 30955 |
else $as_nop |
| 30956 |
|
| 30957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 30958 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 30959 |
# RUBY_APPEND_OPTIONS(ADDITIONAL_DLDFLAGS) |
| 30960 |
for rb_opt in $flag; do |
| 30961 |
case " ${ADDITIONAL_DLDFLAGS-} " in #( |
| 30962 |
*" ${rb_opt} "*) : |
| 30963 |
;; #( |
| 30964 |
' ') : |
| 30965 |
ADDITIONAL_DLDFLAGS="${rb_opt}" ;; #( |
| 30966 |
*) : |
| 30967 |
ADDITIONAL_DLDFLAGS="$ADDITIONAL_DLDFLAGS ${rb_opt}" ;; |
| 30968 |
esac |
| 30969 |
done |
| 30970 |
|
| 30971 |
fi |
| 30972 |
rm -fr conftest.* |
| 30973 |
done |
| 30974 |
;; #( |
| 30975 |
*) : |
| 30976 |
;; |
| 30977 |
esac |
| 30978 |
|
| 30979 |
fi |
| 30980 |
|
| 30981 |
if test "${LDSHAREDXX}" = "" |
| 30982 |
then : |
| 30983 |
|
| 30984 |
case "${LDSHARED}" in #( |
| 30985 |
*'$(CC)'*) : |
| 30986 |
|
| 30987 |
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\$(CC)/$(CXX)/'` |
| 30988 |
;; #( |
| 30989 |
*'${CC}'*) : |
| 30990 |
|
| 30991 |
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\${CC}/${CXX}/'` |
| 30992 |
;; #( |
| 30993 |
*$CC*) : |
| 30994 |
|
| 30995 |
LDSHAREDXX=`echo "${LDSHARED}" | sed "s|$CC|$CXX|"` |
| 30996 |
;; #( |
| 30997 |
ld" "*) : |
| 30998 |
|
| 30999 |
;; #( |
| 31000 |
*) : |
| 31001 |
;; |
| 31002 |
esac |
| 31003 |
|
| 31004 |
fi |
| 31005 |
|
| 31006 |
|
| 31007 |
|
| 31008 |
|
| 31009 |
LIBPATHENV="${LIBPATHENV-LD_LIBRARY_PATH}" |
| 31010 |
|
| 31011 |
PRELOADENV="${PRELOADENV-LD_PRELOAD}" |
| 31012 |
|
| 31013 |
|
| 31014 |
|
| 31015 |
case "$target_os" in #( |
| 31016 |
freebsd*) : |
| 31017 |
|
| 31018 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for procstat_open_sysctl in -lprocstat" >&5 |
| 31019 |
printf %s "checking for procstat_open_sysctl in -lprocstat... " >&6; } |
| 31020 |
if test ${ac_cv_lib_procstat_procstat_open_sysctl+y} |
| 31021 |
then : |
| 31022 |
printf %s "(cached) " >&6 |
| 31023 |
else $as_nop |
| 31024 |
ac_check_lib_save_LIBS=$LIBS |
| 31025 |
LIBS="-lprocstat $LIBS" |
| 31026 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31027 |
/* end confdefs.h. */ |
| 31028 |
|
| 31029 |
/* Override any GCC internal prototype to avoid an error. |
| 31030 |
Use char because int might match the return type of a GCC |
| 31031 |
builtin and then its argument prototype would still apply. */ |
| 31032 |
char procstat_open_sysctl (); |
| 31033 |
int |
| 31034 |
main (void) |
| 31035 |
{ |
| 31036 |
return procstat_open_sysctl (); |
| 31037 |
; |
| 31038 |
return 0; |
| 31039 |
} |
| 31040 |
_ACEOF |
| 31041 |
if ac_fn_c_try_link "$LINENO" |
| 31042 |
then : |
| 31043 |
ac_cv_lib_procstat_procstat_open_sysctl=yes |
| 31044 |
else $as_nop |
| 31045 |
ac_cv_lib_procstat_procstat_open_sysctl=no |
| 31046 |
fi |
| 31047 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31048 |
conftest$ac_exeext conftest.$ac_ext |
| 31049 |
LIBS=$ac_check_lib_save_LIBS |
| 31050 |
fi |
| 31051 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_procstat_procstat_open_sysctl" >&5 |
| 31052 |
colorize_result "$ac_cv_lib_procstat_procstat_open_sysctl" ; } |
| 31053 |
if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes |
| 31054 |
then : |
| 31055 |
printf "%s\n" "#define HAVE_LIBPROCSTAT 1" >>confdefs.h |
| 31056 |
|
| 31057 |
LIBS="-lprocstat $LIBS" |
| 31058 |
|
| 31059 |
fi |
| 31060 |
|
| 31061 |
if test "x$ac_cv_lib_procstat_procstat_open_sysctl" = xyes |
| 31062 |
then : |
| 31063 |
|
| 31064 |
ac_fn_c_check_func "$LINENO" "procstat_getvmmap" "ac_cv_func_procstat_getvmmap" |
| 31065 |
if test "x$ac_cv_func_procstat_getvmmap" = xyes |
| 31066 |
then : |
| 31067 |
printf "%s\n" "#define HAVE_PROCSTAT_GETVMMAP 1" >>confdefs.h |
| 31068 |
|
| 31069 |
fi |
| 31070 |
|
| 31071 |
|
| 31072 |
fi |
| 31073 |
;; #( |
| 31074 |
*) : |
| 31075 |
;; |
| 31076 |
esac |
| 31077 |
case "$target_cpu-$target_os" in #( |
| 31078 |
*-darwin*) : |
| 31079 |
|
| 31080 |
ac_fn_c_check_header_compile "$LINENO" "libproc.h" "ac_cv_header_libproc_h" "$ac_includes_default" |
| 31081 |
if test "x$ac_cv_header_libproc_h" = xyes |
| 31082 |
then : |
| 31083 |
printf "%s\n" "#define HAVE_LIBPROC_H 1" >>confdefs.h |
| 31084 |
|
| 31085 |
fi |
| 31086 |
|
| 31087 |
ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" |
| 31088 |
if test "x$ac_cv_header_execinfo_h" = xyes |
| 31089 |
then : |
| 31090 |
printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h |
| 31091 |
|
| 31092 |
fi |
| 31093 |
|
| 31094 |
if test "x$ac_cv_header_execinfo_h" = xyes |
| 31095 |
then : |
| 31096 |
|
| 31097 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5 |
| 31098 |
printf %s "checking for backtrace in -lexecinfo... " >&6; } |
| 31099 |
if test ${ac_cv_lib_execinfo_backtrace+y} |
| 31100 |
then : |
| 31101 |
printf %s "(cached) " >&6 |
| 31102 |
else $as_nop |
| 31103 |
ac_check_lib_save_LIBS=$LIBS |
| 31104 |
LIBS="-lexecinfo $LIBS" |
| 31105 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31106 |
/* end confdefs.h. */ |
| 31107 |
|
| 31108 |
/* Override any GCC internal prototype to avoid an error. |
| 31109 |
Use char because int might match the return type of a GCC |
| 31110 |
builtin and then its argument prototype would still apply. */ |
| 31111 |
char backtrace (); |
| 31112 |
int |
| 31113 |
main (void) |
| 31114 |
{ |
| 31115 |
return backtrace (); |
| 31116 |
; |
| 31117 |
return 0; |
| 31118 |
} |
| 31119 |
_ACEOF |
| 31120 |
if ac_fn_c_try_link "$LINENO" |
| 31121 |
then : |
| 31122 |
ac_cv_lib_execinfo_backtrace=yes |
| 31123 |
else $as_nop |
| 31124 |
ac_cv_lib_execinfo_backtrace=no |
| 31125 |
fi |
| 31126 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31127 |
conftest$ac_exeext conftest.$ac_ext |
| 31128 |
LIBS=$ac_check_lib_save_LIBS |
| 31129 |
fi |
| 31130 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 |
| 31131 |
colorize_result "$ac_cv_lib_execinfo_backtrace" ; } |
| 31132 |
if test "x$ac_cv_lib_execinfo_backtrace" = xyes |
| 31133 |
then : |
| 31134 |
printf "%s\n" "#define HAVE_LIBEXECINFO 1" >>confdefs.h |
| 31135 |
|
| 31136 |
LIBS="-lexecinfo $LIBS" |
| 31137 |
|
| 31138 |
fi |
| 31139 |
|
| 31140 |
ac_fn_c_check_header_compile "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default" |
| 31141 |
if test "x$ac_cv_header_libunwind_h" = xyes |
| 31142 |
then : |
| 31143 |
printf "%s\n" "#define HAVE_LIBUNWIND_H 1" >>confdefs.h |
| 31144 |
|
| 31145 |
fi |
| 31146 |
|
| 31147 |
|
| 31148 |
ac_fn_c_check_header_compile "$LINENO" "mach/task.h" "ac_cv_header_mach_task_h" "$ac_includes_default" |
| 31149 |
if test "x$ac_cv_header_mach_task_h" = xyes |
| 31150 |
then : |
| 31151 |
printf "%s\n" "#define HAVE_MACH_TASK_H 1" >>confdefs.h |
| 31152 |
|
| 31153 |
fi |
| 31154 |
ac_fn_c_check_header_compile "$LINENO" "mach/mach_init.h" "ac_cv_header_mach_mach_init_h" "$ac_includes_default" |
| 31155 |
if test "x$ac_cv_header_mach_mach_init_h" = xyes |
| 31156 |
then : |
| 31157 |
printf "%s\n" "#define HAVE_MACH_MACH_INIT_H 1" >>confdefs.h |
| 31158 |
|
| 31159 |
fi |
| 31160 |
ac_fn_c_check_header_compile "$LINENO" "mach/mach_port.h" "ac_cv_header_mach_mach_port_h" "$ac_includes_default" |
| 31161 |
if test "x$ac_cv_header_mach_mach_port_h" = xyes |
| 31162 |
then : |
| 31163 |
printf "%s\n" "#define HAVE_MACH_MACH_PORT_H 1" >>confdefs.h |
| 31164 |
|
| 31165 |
fi |
| 31166 |
|
| 31167 |
if test \ |
| 31168 |
"x${ac_cv_header_mach_task_h}" = xyes -a \ |
| 31169 |
"x${ac_cv_header_mach_mach_init_h}" = xyes -a \ |
| 31170 |
"x${ac_cv_header_mach_mach_port_h}" = xyes \ |
| 31171 |
|
| 31172 |
then : |
| 31173 |
|
| 31174 |
printf "%s\n" "#define HAVE_MACH_TASK_EXCEPTION_PORTS 1" >>confdefs.h |
| 31175 |
|
| 31176 |
|
| 31177 |
fi |
| 31178 |
|
| 31179 |
fi ;; #( |
| 31180 |
*-freebsd*|x86_64-netbsd*) : |
| 31181 |
|
| 31182 |
ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default" |
| 31183 |
if test "x$ac_cv_header_execinfo_h" = xyes |
| 31184 |
then : |
| 31185 |
printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h |
| 31186 |
|
| 31187 |
fi |
| 31188 |
|
| 31189 |
if test "x$ac_cv_header_execinfo_h" = xyes |
| 31190 |
then : |
| 31191 |
|
| 31192 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lexecinfo" >&5 |
| 31193 |
printf %s "checking for backtrace in -lexecinfo... " >&6; } |
| 31194 |
if test ${ac_cv_lib_execinfo_backtrace+y} |
| 31195 |
then : |
| 31196 |
printf %s "(cached) " >&6 |
| 31197 |
else $as_nop |
| 31198 |
ac_check_lib_save_LIBS=$LIBS |
| 31199 |
LIBS="-lexecinfo $LIBS" |
| 31200 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31201 |
/* end confdefs.h. */ |
| 31202 |
|
| 31203 |
/* Override any GCC internal prototype to avoid an error. |
| 31204 |
Use char because int might match the return type of a GCC |
| 31205 |
builtin and then its argument prototype would still apply. */ |
| 31206 |
char backtrace (); |
| 31207 |
int |
| 31208 |
main (void) |
| 31209 |
{ |
| 31210 |
return backtrace (); |
| 31211 |
; |
| 31212 |
return 0; |
| 31213 |
} |
| 31214 |
_ACEOF |
| 31215 |
if ac_fn_c_try_link "$LINENO" |
| 31216 |
then : |
| 31217 |
ac_cv_lib_execinfo_backtrace=yes |
| 31218 |
else $as_nop |
| 31219 |
ac_cv_lib_execinfo_backtrace=no |
| 31220 |
fi |
| 31221 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31222 |
conftest$ac_exeext conftest.$ac_ext |
| 31223 |
LIBS=$ac_check_lib_save_LIBS |
| 31224 |
fi |
| 31225 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_execinfo_backtrace" >&5 |
| 31226 |
colorize_result "$ac_cv_lib_execinfo_backtrace" ; } |
| 31227 |
if test "x$ac_cv_lib_execinfo_backtrace" = xyes |
| 31228 |
then : |
| 31229 |
printf "%s\n" "#define HAVE_LIBEXECINFO 1" >>confdefs.h |
| 31230 |
|
| 31231 |
LIBS="-lexecinfo $LIBS" |
| 31232 |
|
| 31233 |
fi |
| 31234 |
|
| 31235 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unw_backtrace in -lunwind" >&5 |
| 31236 |
printf %s "checking for unw_backtrace in -lunwind... " >&6; } |
| 31237 |
if test ${ac_cv_lib_unwind_unw_backtrace+y} |
| 31238 |
then : |
| 31239 |
printf %s "(cached) " >&6 |
| 31240 |
else $as_nop |
| 31241 |
ac_check_lib_save_LIBS=$LIBS |
| 31242 |
LIBS="-lunwind $LIBS" |
| 31243 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31244 |
/* end confdefs.h. */ |
| 31245 |
|
| 31246 |
/* Override any GCC internal prototype to avoid an error. |
| 31247 |
Use char because int might match the return type of a GCC |
| 31248 |
builtin and then its argument prototype would still apply. */ |
| 31249 |
char unw_backtrace (); |
| 31250 |
int |
| 31251 |
main (void) |
| 31252 |
{ |
| 31253 |
return unw_backtrace (); |
| 31254 |
; |
| 31255 |
return 0; |
| 31256 |
} |
| 31257 |
_ACEOF |
| 31258 |
if ac_fn_c_try_link "$LINENO" |
| 31259 |
then : |
| 31260 |
ac_cv_lib_unwind_unw_backtrace=yes |
| 31261 |
else $as_nop |
| 31262 |
ac_cv_lib_unwind_unw_backtrace=no |
| 31263 |
fi |
| 31264 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31265 |
conftest$ac_exeext conftest.$ac_ext |
| 31266 |
LIBS=$ac_check_lib_save_LIBS |
| 31267 |
fi |
| 31268 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_unw_backtrace" >&5 |
| 31269 |
colorize_result "$ac_cv_lib_unwind_unw_backtrace" ; } |
| 31270 |
if test "x$ac_cv_lib_unwind_unw_backtrace" = xyes |
| 31271 |
then : |
| 31272 |
printf "%s\n" "#define HAVE_LIBUNWIND 1" >>confdefs.h |
| 31273 |
|
| 31274 |
LIBS="-lunwind $LIBS" |
| 31275 |
|
| 31276 |
fi |
| 31277 |
|
| 31278 |
|
| 31279 |
fi ;; #( |
| 31280 |
*) : |
| 31281 |
;; |
| 31282 |
esac |
| 31283 |
ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace" |
| 31284 |
if test "x$ac_cv_func_backtrace" = xyes |
| 31285 |
then : |
| 31286 |
printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h |
| 31287 |
|
| 31288 |
fi |
| 31289 |
|
| 31290 |
|
| 31291 |
if test "x$ac_cv_func_backtrace" = xyes |
| 31292 |
then : |
| 31293 |
|
| 31294 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken backtrace" >&5 |
| 31295 |
printf %s "checking for broken backtrace... " >&6; } |
| 31296 |
if test ${rb_cv_broken_backtrace+y} |
| 31297 |
then : |
| 31298 |
printf %s "(cached) " >&6 |
| 31299 |
else $as_nop |
| 31300 |
if test "$cross_compiling" = yes |
| 31301 |
then : |
| 31302 |
rb_cv_broken_backtrace=no |
| 31303 |
else $as_nop |
| 31304 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31305 |
/* end confdefs.h. */ |
| 31306 |
|
| 31307 |
#include <unistd.h> |
| 31308 |
#include <stdio.h> |
| 31309 |
#include <stdlib.h> |
| 31310 |
#include <stdint.h> |
| 31311 |
#include <string.h> |
| 31312 |
#include <signal.h> |
| 31313 |
#include <execinfo.h> |
| 31314 |
|
| 31315 |
`grep '^# *define *RUBY_SIGALTSTACK_SIZE' ${srcdir}/signal.c` |
| 31316 |
#define TRACE_SIZE 256 |
| 31317 |
|
| 31318 |
void sigsegv(int signum, siginfo_t *info, void *ctx){ |
| 31319 |
void *trace[TRACE_SIZE]; |
| 31320 |
int n = backtrace(trace, TRACE_SIZE); |
| 31321 |
if (n > 0) { |
| 31322 |
/*fprintf(stdout, "backtrace:%d\n",n);*/ |
| 31323 |
} else { |
| 31324 |
_exit(EXIT_FAILURE); |
| 31325 |
} |
| 31326 |
_exit(EXIT_SUCCESS); |
| 31327 |
} |
| 31328 |
int |
| 31329 |
main(void) |
| 31330 |
{ |
| 31331 |
volatile int *a = NULL; |
| 31332 |
stack_t ss; |
| 31333 |
struct sigaction sa; |
| 31334 |
|
| 31335 |
ss.ss_sp = malloc(RUBY_SIGALTSTACK_SIZE); |
| 31336 |
if (ss.ss_sp == NULL) { |
| 31337 |
fprintf(stderr, "cannot allocate memory for sigaltstack\n"); |
| 31338 |
return EXIT_FAILURE; |
| 31339 |
} |
| 31340 |
ss.ss_size = RUBY_SIGALTSTACK_SIZE; |
| 31341 |
ss.ss_flags = 0; |
| 31342 |
if (sigaltstack(&ss, NULL) == -1) { |
| 31343 |
fprintf(stderr, "sigaltstack failed\n"); |
| 31344 |
return EXIT_FAILURE; |
| 31345 |
} |
| 31346 |
memset(&sa, 0, sizeof(struct sigaction)); |
| 31347 |
sigemptyset(&sa.sa_mask); |
| 31348 |
sa.sa_sigaction = sigsegv; |
| 31349 |
sa.sa_flags |= SA_SIGINFO; |
| 31350 |
sa.sa_flags |= SA_ONSTACK; |
| 31351 |
sigaction(SIGSEGV, &sa, NULL); |
| 31352 |
a[0] = 1; |
| 31353 |
return EXIT_SUCCESS; |
| 31354 |
} |
| 31355 |
|
| 31356 |
_ACEOF |
| 31357 |
if ac_fn_c_try_run "$LINENO" |
| 31358 |
then : |
| 31359 |
rb_cv_broken_backtrace=no |
| 31360 |
else $as_nop |
| 31361 |
rb_cv_broken_backtrace=yes |
| 31362 |
fi |
| 31363 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 31364 |
conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 31365 |
fi |
| 31366 |
|
| 31367 |
fi |
| 31368 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_broken_backtrace" >&5 |
| 31369 |
colorize_result "$rb_cv_broken_backtrace" ; } |
| 31370 |
if test "$rb_cv_broken_backtrace" = yes |
| 31371 |
then : |
| 31372 |
|
| 31373 |
printf "%s\n" "#define BROKEN_BACKTRACE 1" >>confdefs.h |
| 31374 |
|
| 31375 |
|
| 31376 |
fi |
| 31377 |
|
| 31378 |
fi |
| 31379 |
|
| 31380 |
|
| 31381 |
# Check whether --with-valgrind was given. |
| 31382 |
if test ${with_valgrind+y} |
| 31383 |
then : |
| 31384 |
withval=$with_valgrind; |
| 31385 |
else $as_nop |
| 31386 |
with_valgrind=yes |
| 31387 |
fi |
| 31388 |
|
| 31389 |
if test x$with_valgrind != xno |
| 31390 |
then : |
| 31391 |
ac_fn_c_check_header_compile "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default" |
| 31392 |
if test "x$ac_cv_header_valgrind_memcheck_h" = xyes |
| 31393 |
then : |
| 31394 |
printf "%s\n" "#define HAVE_VALGRIND_MEMCHECK_H 1" >>confdefs.h |
| 31395 |
|
| 31396 |
fi |
| 31397 |
|
| 31398 |
fi |
| 31399 |
|
| 31400 |
: "dlext & soext" && { |
| 31401 |
case "$target_os" in #( |
| 31402 |
darwin*) : |
| 31403 |
|
| 31404 |
SOEXT=dylib |
| 31405 |
DLEXT=bundle ;; #( |
| 31406 |
cygwin*|msys*|mingw*|*djgpp*) : |
| 31407 |
|
| 31408 |
LOAD_RELATIVE=1 |
| 31409 |
SOEXT=dll |
| 31410 |
DLEXT=so ;; #( |
| 31411 |
*) : |
| 31412 |
|
| 31413 |
DLEXT=so ;; |
| 31414 |
esac |
| 31415 |
: ${SOEXT="${DLEXT}"} |
| 31416 |
|
| 31417 |
} |
| 31418 |
|
| 31419 |
if test "$rb_cv_dlopen:$load_relative" = yes:yes |
| 31420 |
then : |
| 31421 |
|
| 31422 |
if test "$ac_cv_func_dladdr" = yes |
| 31423 |
then : |
| 31424 |
|
| 31425 |
LOAD_RELATIVE=1 |
| 31426 |
|
| 31427 |
fi |
| 31428 |
|
| 31429 |
fi |
| 31430 |
if test x"$LOAD_RELATIVE" = x1 |
| 31431 |
then : |
| 31432 |
|
| 31433 |
load_relative=yes |
| 31434 |
|
| 31435 |
else $as_nop |
| 31436 |
|
| 31437 |
unset load_relative |
| 31438 |
|
| 31439 |
fi |
| 31440 |
|
| 31441 |
len=2 # .rb |
| 31442 |
n=`expr "$DLEXT" : '.*'`; test "$n" -gt "$len" && len=$n |
| 31443 |
cat >>confdefs.h <<_ACEOF |
| 31444 |
#define DLEXT_MAXLEN `expr $len + 1` |
| 31445 |
_ACEOF |
| 31446 |
|
| 31447 |
test ".$DLEXT" = "." || printf "%s\n" "#define DLEXT \".$DLEXT\"" >>confdefs.h |
| 31448 |
|
| 31449 |
|
| 31450 |
|
| 31451 |
: "strip" && { |
| 31452 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $STRIP flags" >&5 |
| 31453 |
printf %s "checking for $STRIP flags... " >&6; } |
| 31454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31455 |
/* end confdefs.h. */ |
| 31456 |
|
| 31457 |
int |
| 31458 |
main (void) |
| 31459 |
{ |
| 31460 |
|
| 31461 |
; |
| 31462 |
return 0; |
| 31463 |
} |
| 31464 |
_ACEOF |
| 31465 |
if ac_fn_c_try_link "$LINENO" |
| 31466 |
then : |
| 31467 |
if "${STRIP}" -A -n conftest$ac_exeext 2>/dev/null |
| 31468 |
then : |
| 31469 |
|
| 31470 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -A -n" >&5 |
| 31471 |
printf "%s\n" "${msg_result_other}-A -n${msg_reset}" >&6 ; } |
| 31472 |
STRIP="${STRIP} -A -n" |
| 31473 |
|
| 31474 |
elif "${STRIP}" -S -x conftest$ac_exeext 2>/dev/null |
| 31475 |
then : |
| 31476 |
|
| 31477 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -S -x" >&5 |
| 31478 |
printf "%s\n" "${msg_result_other}-S -x${msg_reset}" >&6 ; } |
| 31479 |
STRIP="${STRIP} -S -x" |
| 31480 |
|
| 31481 |
else $as_nop |
| 31482 |
|
| 31483 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 31484 |
printf "%s\n" "${msg_result_other}none needed${msg_reset}" >&6 ; } |
| 31485 |
|
| 31486 |
fi |
| 31487 |
|
| 31488 |
fi |
| 31489 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31490 |
conftest$ac_exeext conftest.$ac_ext |
| 31491 |
} |
| 31492 |
|
| 31493 |
|
| 31494 |
# Check whether --with-ext was given. |
| 31495 |
if test ${with_ext+y} |
| 31496 |
then : |
| 31497 |
withval=$with_ext; |
| 31498 |
fi |
| 31499 |
|
| 31500 |
|
| 31501 |
# Check whether --with-out-ext was given. |
| 31502 |
if test ${with_out_ext+y} |
| 31503 |
then : |
| 31504 |
withval=$with_out_ext; |
| 31505 |
fi |
| 31506 |
|
| 31507 |
|
| 31508 |
# Check whether --with-setup was given. |
| 31509 |
if test ${with_setup+y} |
| 31510 |
then : |
| 31511 |
withval=$with_setup; setup=$withval |
| 31512 |
fi |
| 31513 |
|
| 31514 |
if test -n "$setup" |
| 31515 |
then : |
| 31516 |
|
| 31517 |
if ! test -f "ext/$setup" -o -f "$srcdir/ext/$setup" |
| 31518 |
then : |
| 31519 |
|
| 31520 |
as_fn_error $? "Setup file $setup not found under ext or $srcdir/ext" "$LINENO" 5 |
| 31521 |
|
| 31522 |
fi |
| 31523 |
|
| 31524 |
elif test -f "$srcdir/ext/Setup.$target_os" |
| 31525 |
then : |
| 31526 |
|
| 31527 |
setup="Setup.$target_os" |
| 31528 |
|
| 31529 |
else $as_nop |
| 31530 |
|
| 31531 |
setup= |
| 31532 |
for file in "$srcdir"/ext/Setup.*; do |
| 31533 |
case "$file" in #( |
| 31534 |
*~|*.bak|*.orig|*.rej|*.tmp) : |
| 31535 |
continue ;; #( |
| 31536 |
*) : |
| 31537 |
;; |
| 31538 |
esac |
| 31539 |
setup=`basename "$file"` |
| 31540 |
case "$target_os" in #( |
| 31541 |
`expr "$setup" : 'Setup.\(.*\)'`*) : |
| 31542 |
break ;; #( |
| 31543 |
*) : |
| 31544 |
;; |
| 31545 |
esac |
| 31546 |
platform=`sed '/^option *platform */!d;s///;s/|/*|/g;q' "$file"` |
| 31547 |
if test "x$platform" != x |
| 31548 |
then : |
| 31549 |
|
| 31550 |
eval "case \"\$target_os\" in #( |
| 31551 |
$platform*) : |
| 31552 |
break ;; #( |
| 31553 |
*) : |
| 31554 |
;; |
| 31555 |
esac" |
| 31556 |
|
| 31557 |
fi |
| 31558 |
setup= |
| 31559 |
done |
| 31560 |
: ${setup:=Setup} |
| 31561 |
|
| 31562 |
fi |
| 31563 |
|
| 31564 |
|
| 31565 |
rubylibprefix='${libdir}/${RUBY_BASE_NAME}' |
| 31566 |
|
| 31567 |
# Check whether --with-rubylibprefix was given. |
| 31568 |
if test ${with_rubylibprefix+y} |
| 31569 |
then : |
| 31570 |
withval=$with_rubylibprefix; if test "x$withval" = xno |
| 31571 |
then : |
| 31572 |
|
| 31573 |
as_fn_error $? "No ruby, No libprefix" "$LINENO" 5 |
| 31574 |
|
| 31575 |
fi |
| 31576 |
rubylibprefix="$withval" |
| 31577 |
fi |
| 31578 |
|
| 31579 |
|
| 31580 |
|
| 31581 |
if test x"${exec_prefix}" != xNONE |
| 31582 |
then : |
| 31583 |
|
| 31584 |
RUBY_EXEC_PREFIX="$exec_prefix" |
| 31585 |
|
| 31586 |
elif test x"$prefix" != xNONE |
| 31587 |
then : |
| 31588 |
|
| 31589 |
RUBY_EXEC_PREFIX="$prefix" |
| 31590 |
|
| 31591 |
else $as_nop |
| 31592 |
|
| 31593 |
RUBY_EXEC_PREFIX=$ac_default_prefix |
| 31594 |
|
| 31595 |
fi |
| 31596 |
pat=`echo "${RUBY_EXEC_PREFIX}" | tr -c '\012' .`'\(.*\)' |
| 31597 |
for var in bindir includedir libdir rubylibprefix; do |
| 31598 |
eval val='"$'$var'"' |
| 31599 |
case "$val" in #( |
| 31600 |
"${RUBY_EXEC_PREFIX}"*) : |
| 31601 |
val='${exec_prefix}'"`expr \"$val\" : \"$pat\"`" ;; #( |
| 31602 |
*) : |
| 31603 |
;; |
| 31604 |
esac |
| 31605 |
eval $var='"$val"' |
| 31606 |
done |
| 31607 |
|
| 31608 |
BTESTRUBY='$(MINIRUBY)' |
| 31609 |
if test x"$cross_compiling" = xyes |
| 31610 |
then : |
| 31611 |
|
| 31612 |
test x"$MINIRUBY" = x && MINIRUBY="${RUBY-$BASERUBY} -I`$CHDIR .; pwd` "-r'$(arch)-fake' |
| 31613 |
XRUBY_LIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["libdir"]'` |
| 31614 |
XRUBY_RUBYLIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["rubylibdir"]'` |
| 31615 |
XRUBY_RUBYHDRDIR=`${RUBY-$BASERUBY} -rrbconfig -e 'puts RbConfig::CONFIG["rubyhdrdir"]'` |
| 31616 |
|
| 31617 |
|
| 31618 |
|
| 31619 |
PREP='$(arch)-fake.rb' |
| 31620 |
case "$enable_shared:$EXTSTATIC:$target_os" in #( |
| 31621 |
no::darwin*) : |
| 31622 |
|
| 31623 |
# darwin target requires miniruby for linking ext bundles |
| 31624 |
PREP="$PREP"' miniruby$(EXEEXT)' |
| 31625 |
;; #( |
| 31626 |
*) : |
| 31627 |
;; |
| 31628 |
esac |
| 31629 |
RUNRUBY_COMMAND='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`' |
| 31630 |
RUNRUBY='$(RUNRUBY_COMMAND)' |
| 31631 |
XRUBY='$(MINIRUBY)' |
| 31632 |
TEST_RUNNABLE=no |
| 31633 |
CROSS_COMPILING=yes |
| 31634 |
printf "%s\n" "#define CROSS_COMPILING 1" >>confdefs.h |
| 31635 |
|
| 31636 |
|
| 31637 |
else $as_nop |
| 31638 |
|
| 31639 |
MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib -I.' |
| 31640 |
MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common' |
| 31641 |
PREP='miniruby$(EXEEXT)' |
| 31642 |
RUNRUBY_COMMAND='$(MINIRUBY) $(tooldir)/runruby.rb --extout=$(EXTOUT) $(RUNRUBYOPT)' |
| 31643 |
RUNRUBY='$(RUNRUBY_COMMAND) --' |
| 31644 |
XRUBY='$(RUNRUBY)' |
| 31645 |
TEST_RUNNABLE=yes |
| 31646 |
CROSS_COMPILING=no |
| 31647 |
|
| 31648 |
fi |
| 31649 |
|
| 31650 |
|
| 31651 |
|
| 31652 |
|
| 31653 |
|
| 31654 |
|
| 31655 |
|
| 31656 |
|
| 31657 |
EXTOUT=${EXTOUT=.ext} |
| 31658 |
|
| 31659 |
|
| 31660 |
FIRSTMAKEFILE="" |
| 31661 |
LIBRUBY_A='lib$(RUBY_SO_NAME)-static.a' |
| 31662 |
LIBRUBY='$(LIBRUBY_A)' |
| 31663 |
LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static' |
| 31664 |
LIBRUBYARG='$(LIBRUBYARG_STATIC)' |
| 31665 |
SOLIBS='$(MAINLIBS)' |
| 31666 |
|
| 31667 |
case "$target_os" in #( |
| 31668 |
cygwin*|msys*|mingw*|haiku*|darwin*) : |
| 31669 |
|
| 31670 |
: ${DLDLIBS=""} |
| 31671 |
;; #( |
| 31672 |
*) : |
| 31673 |
|
| 31674 |
DLDLIBS="${DLDLIBS:+$DLDLIBS }-lc" |
| 31675 |
;; |
| 31676 |
esac |
| 31677 |
|
| 31678 |
# Check whether --enable-multiarch was given. |
| 31679 |
if test ${enable_multiarch+y} |
| 31680 |
then : |
| 31681 |
enableval=$enable_multiarch; multiarch= |
| 31682 |
else $as_nop |
| 31683 |
unset multiarch |
| 31684 |
fi |
| 31685 |
|
| 31686 |
if test ${multiarch+set} |
| 31687 |
then : |
| 31688 |
|
| 31689 |
printf "%s\n" "#define ENABLE_MULTIARCH 1" >>confdefs.h |
| 31690 |
|
| 31691 |
|
| 31692 |
fi |
| 31693 |
|
| 31694 |
archlibdir='${libdir}/${arch}' |
| 31695 |
sitearchlibdir='${libdir}/${sitearch}' |
| 31696 |
archincludedir='${includedir}/${arch}' |
| 31697 |
sitearchincludedir='${includedir}/${sitearch}' |
| 31698 |
|
| 31699 |
|
| 31700 |
# Check whether --with-soname was given. |
| 31701 |
if test ${with_soname+y} |
| 31702 |
then : |
| 31703 |
withval=$with_soname; RUBY_SO_NAME=$withval |
| 31704 |
else $as_nop |
| 31705 |
|
| 31706 |
case "$target_os" in #( |
| 31707 |
darwin*) : |
| 31708 |
|
| 31709 |
RUBY_SO_NAME='$(RUBY_BASE_NAME).$(RUBY_API_VERSION)' |
| 31710 |
;; #( |
| 31711 |
cygwin*) : |
| 31712 |
|
| 31713 |
RUBY_SO_NAME='$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)0' |
| 31714 |
;; #( |
| 31715 |
mingw*) : |
| 31716 |
|
| 31717 |
RUBY_SO_NAME="${rb_cv_msvcrt}"'-$(RUBY_BASE_NAME)$(MAJOR)$(MINOR)0' |
| 31718 |
if test x"${target_cpu}" != xi386 |
| 31719 |
then : |
| 31720 |
|
| 31721 |
RUBY_SO_NAME="${target_cpu}-${RUBY_SO_NAME}" |
| 31722 |
|
| 31723 |
fi |
| 31724 |
;; #( |
| 31725 |
*) : |
| 31726 |
RUBY_SO_NAME='$(RUBY_BASE_NAME)' ;; |
| 31727 |
esac |
| 31728 |
|
| 31729 |
fi |
| 31730 |
|
| 31731 |
|
| 31732 |
LIBRUBY_LDSHARED=${DLDSHARED=${LDSHARED}} |
| 31733 |
LIBRUBY_DLDFLAGS=$DLDFLAGS |
| 31734 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)' |
| 31735 |
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_API_VERSION)' |
| 31736 |
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).$(SOEXT)' |
| 31737 |
ENABLE_SHARED=no |
| 31738 |
|
| 31739 |
# Check whether --enable-shared was given. |
| 31740 |
if test ${enable_shared+y} |
| 31741 |
then : |
| 31742 |
enableval=$enable_shared; enable_shared=$enableval |
| 31743 |
fi |
| 31744 |
|
| 31745 |
libprefix=${multiarch+'$(archlibdir)'}${multiarch-'$(libdir)'} |
| 31746 |
LIBRUBY_RELATIVE=${load_relative-no} |
| 31747 |
case "$enable_shared" in #( |
| 31748 |
yes) : |
| 31749 |
|
| 31750 |
LIBRUBY='$(LIBRUBY_SO)' |
| 31751 |
LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)' |
| 31752 |
LIBRUBYARG='$(LIBRUBYARG_SHARED)' |
| 31753 |
LIBRUBY_RELATIVE=no |
| 31754 |
test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS" |
| 31755 |
ENABLE_SHARED=yes |
| 31756 |
|
| 31757 |
# libdir can be overridden in config.site file (on OpenSUSE at least). |
| 31758 |
libdir_basename=lib |
| 31759 |
if test "$bindir" = '${exec_prefix}/bin' |
| 31760 |
then : |
| 31761 |
|
| 31762 |
case "$libdir" in #( |
| 31763 |
'${exec_prefix}/'*) : |
| 31764 |
libdir_basename=`basename "$libdir"` ;; #( |
| 31765 |
*) : |
| 31766 |
;; |
| 31767 |
esac |
| 31768 |
|
| 31769 |
fi |
| 31770 |
printf "%s\n" "#define LIBDIR_BASENAME \"${libdir_basename}\"" >>confdefs.h |
| 31771 |
|
| 31772 |
libdir_basename="${libdir_basename}"${multiarch+'/${arch}'} |
| 31773 |
|
| 31774 |
# Debian bullseye reportedly has its ld(1) patched, which breaks |
| 31775 |
# --enable-shared --with-jemalloc combination. We might have to deal with |
| 31776 |
# the ld(1) change sooner or later, but in the meantime let us force it |
| 31777 |
# the old way. |
| 31778 |
# |
| 31779 |
# See https://github.com/ruby/ruby/pull/4627 |
| 31780 |
|
| 31781 |
save_LDFLAGS="$LDFLAGS" |
| 31782 |
LDFLAGS="$LDFLAGS ${linker_flag}--no-as-needed" |
| 31783 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${linker_flag}--no-as-needed is accepted as LDFLAGS" >&5 |
| 31784 |
printf %s "checking whether ${linker_flag}--no-as-needed is accepted as LDFLAGS... " >&6; } |
| 31785 |
save_CFLAGS="$CFLAGS" |
| 31786 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 31787 |
if test "${ac_c_werror_flag+set}" |
| 31788 |
then : |
| 31789 |
|
| 31790 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 31791 |
|
| 31792 |
else $as_nop |
| 31793 |
|
| 31794 |
unset rb_c_werror_flag |
| 31795 |
|
| 31796 |
fi |
| 31797 |
ac_c_werror_flag=yes |
| 31798 |
|
| 31799 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31800 |
/* end confdefs.h. */ |
| 31801 |
|
| 31802 |
int |
| 31803 |
main (void) |
| 31804 |
{ |
| 31805 |
|
| 31806 |
; |
| 31807 |
return 0; |
| 31808 |
} |
| 31809 |
_ACEOF |
| 31810 |
if ac_fn_c_try_link "$LINENO" |
| 31811 |
then : |
| 31812 |
no_as_needed=yes |
| 31813 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31814 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 31815 |
else $as_nop |
| 31816 |
no_as_needed=no |
| 31817 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31818 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 31819 |
fi |
| 31820 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31821 |
conftest$ac_exeext conftest.$ac_ext |
| 31822 |
|
| 31823 |
CFLAGS="$save_CFLAGS" |
| 31824 |
save_CFLAGS= |
| 31825 |
if test "${rb_c_werror_flag+set}" |
| 31826 |
then : |
| 31827 |
|
| 31828 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 31829 |
|
| 31830 |
else $as_nop |
| 31831 |
|
| 31832 |
unset ac_c_werror_flag |
| 31833 |
|
| 31834 |
fi |
| 31835 |
LDFLAGS="$save_LDFLAGS" |
| 31836 |
save_LDFLAGS= |
| 31837 |
|
| 31838 |
if test "$no_as_needed" = yes |
| 31839 |
then : |
| 31840 |
|
| 31841 |
# RUBY_APPEND_OPTIONS(LDFLAGS) |
| 31842 |
for rb_opt in ${linker_flag}--no-as-needed; do |
| 31843 |
case " ${LDFLAGS-} " in #( |
| 31844 |
*" ${rb_opt} "*) : |
| 31845 |
;; #( |
| 31846 |
' ') : |
| 31847 |
LDFLAGS="${rb_opt}" ;; #( |
| 31848 |
*) : |
| 31849 |
LDFLAGS="$LDFLAGS ${rb_opt}" ;; |
| 31850 |
esac |
| 31851 |
done |
| 31852 |
|
| 31853 |
fi |
| 31854 |
|
| 31855 |
case "$target_os" in #( |
| 31856 |
freebsd*|dragonfly*) : |
| 31857 |
;; #( |
| 31858 |
*) : |
| 31859 |
|
| 31860 |
if test "$GCC" = yes |
| 31861 |
then : |
| 31862 |
|
| 31863 |
|
| 31864 |
save_LDFLAGS="$LDFLAGS" |
| 31865 |
LDFLAGS="$LDFLAGS ${linker_flag}--no-undefined" |
| 31866 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${linker_flag}--no-undefined is accepted as LDFLAGS" >&5 |
| 31867 |
printf %s "checking whether ${linker_flag}--no-undefined is accepted as LDFLAGS... " >&6; } |
| 31868 |
save_CFLAGS="$CFLAGS" |
| 31869 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 31870 |
if test "${ac_c_werror_flag+set}" |
| 31871 |
then : |
| 31872 |
|
| 31873 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 31874 |
|
| 31875 |
else $as_nop |
| 31876 |
|
| 31877 |
unset rb_c_werror_flag |
| 31878 |
|
| 31879 |
fi |
| 31880 |
ac_c_werror_flag=yes |
| 31881 |
|
| 31882 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 31883 |
/* end confdefs.h. */ |
| 31884 |
|
| 31885 |
int |
| 31886 |
main (void) |
| 31887 |
{ |
| 31888 |
|
| 31889 |
; |
| 31890 |
return 0; |
| 31891 |
} |
| 31892 |
_ACEOF |
| 31893 |
if ac_fn_c_try_link "$LINENO" |
| 31894 |
then : |
| 31895 |
no_undefined=yes |
| 31896 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 31897 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 31898 |
else $as_nop |
| 31899 |
no_undefined=no |
| 31900 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 31901 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 31902 |
fi |
| 31903 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 31904 |
conftest$ac_exeext conftest.$ac_ext |
| 31905 |
|
| 31906 |
CFLAGS="$save_CFLAGS" |
| 31907 |
save_CFLAGS= |
| 31908 |
if test "${rb_c_werror_flag+set}" |
| 31909 |
then : |
| 31910 |
|
| 31911 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 31912 |
|
| 31913 |
else $as_nop |
| 31914 |
|
| 31915 |
unset ac_c_werror_flag |
| 31916 |
|
| 31917 |
fi |
| 31918 |
LDFLAGS="$save_LDFLAGS" |
| 31919 |
save_LDFLAGS= |
| 31920 |
|
| 31921 |
if test "no_undefined" = yes |
| 31922 |
then : |
| 31923 |
|
| 31924 |
# RUBY_APPEND_OPTION(EXTLDFLAGS) |
| 31925 |
case " ${EXTLDFLAGS-} " in #( |
| 31926 |
*" ${linker_flag}--no-undefined "*) : |
| 31927 |
;; #( |
| 31928 |
' ') : |
| 31929 |
EXTLDFLAGS="${linker_flag}--no-undefined" ;; #( |
| 31930 |
*) : |
| 31931 |
EXTLDFLAGS="$EXTLDFLAGS ${linker_flag}--no-undefined" ;; |
| 31932 |
esac |
| 31933 |
|
| 31934 |
fi |
| 31935 |
|
| 31936 |
fi |
| 31937 |
;; |
| 31938 |
esac |
| 31939 |
|
| 31940 |
case "$target_os" in #( |
| 31941 |
sunos4*) : |
| 31942 |
|
| 31943 |
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' |
| 31944 |
;; #( |
| 31945 |
linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu | haiku*) : |
| 31946 |
|
| 31947 |
# RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS) |
| 31948 |
for rb_opt in '-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"; do |
| 31949 |
case " ${LIBRUBY_DLDFLAGS-} " in #( |
| 31950 |
*" ${rb_opt} "*) : |
| 31951 |
;; #( |
| 31952 |
' ') : |
| 31953 |
LIBRUBY_DLDFLAGS="${rb_opt}" ;; #( |
| 31954 |
*) : |
| 31955 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS ${rb_opt}" ;; |
| 31956 |
esac |
| 31957 |
done |
| 31958 |
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' |
| 31959 |
if test "$load_relative" = yes |
| 31960 |
then : |
| 31961 |
|
| 31962 |
libprefix="'\$\${ORIGIN}/../${libdir_basename}'" |
| 31963 |
LIBRUBY_RPATHFLAGS="-Wl,-rpath,${libprefix}" |
| 31964 |
LIBRUBY_RELATIVE=yes |
| 31965 |
|
| 31966 |
fi |
| 31967 |
;; #( |
| 31968 |
freebsd*|dragonfly*) : |
| 31969 |
|
| 31970 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)' |
| 31971 |
LIBRUBY_SONAME='$(LIBRUBY_SO)' |
| 31972 |
if test "$rb_cv_binary_elf" != "yes" |
| 31973 |
then : |
| 31974 |
|
| 31975 |
LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)" |
| 31976 |
LIBRUBY_ALIASES='' |
| 31977 |
|
| 31978 |
elif test "$load_relative" = yes |
| 31979 |
then : |
| 31980 |
|
| 31981 |
libprefix="'\$\$ORIGIN/../${libdir_basename}'" |
| 31982 |
LIBRUBY_RPATHFLAGS="-Wl,-rpath,${libprefix}" |
| 31983 |
LIBRUBY_RELATIVE=yes |
| 31984 |
|
| 31985 |
fi |
| 31986 |
;; #( |
| 31987 |
netbsd*) : |
| 31988 |
|
| 31989 |
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)$(MINOR)' |
| 31990 |
LIBRUBY_SO="${LIBRUBY_SONAME}"'.$(TEENY)' |
| 31991 |
# RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS) |
| 31992 |
for rb_opt in '-Wl,-soname,$(LIBRUBY_SONAME)' "$LDFLAGS_OPTDIR"; do |
| 31993 |
case " ${LIBRUBY_DLDFLAGS-} " in #( |
| 31994 |
*" ${rb_opt} "*) : |
| 31995 |
;; #( |
| 31996 |
' ') : |
| 31997 |
LIBRUBY_DLDFLAGS="${rb_opt}" ;; #( |
| 31998 |
*) : |
| 31999 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS ${rb_opt}" ;; |
| 32000 |
esac |
| 32001 |
done |
| 32002 |
if test "$rb_cv_binary_elf" = yes |
| 32003 |
then : |
| 32004 |
# ELF platforms |
| 32005 |
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' |
| 32006 |
|
| 32007 |
else $as_nop |
| 32008 |
# a.out platforms |
| 32009 |
LIBRUBY_ALIASES="" |
| 32010 |
|
| 32011 |
fi |
| 32012 |
;; #( |
| 32013 |
openbsd*|mirbsd*) : |
| 32014 |
|
| 32015 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}` |
| 32016 |
;; #( |
| 32017 |
solaris*) : |
| 32018 |
|
| 32019 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT).$(MAJOR)' |
| 32020 |
LIBRUBY_SONAME='lib$(RUBY_SO_NAME).$(SOEXT).$(RUBY_PROGRAM_VERSION)' |
| 32021 |
LIBRUBY_ALIASES='$(LIBRUBY_SONAME) lib$(RUBY_SO_NAME).$(SOEXT)' |
| 32022 |
# RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS) |
| 32023 |
for rb_opt in "${linker_flag}-h${linker_flag:+,}"'$(@F)'; do |
| 32024 |
case " ${LIBRUBY_DLDFLAGS-} " in #( |
| 32025 |
*" ${rb_opt} "*) : |
| 32026 |
;; #( |
| 32027 |
' ') : |
| 32028 |
LIBRUBY_DLDFLAGS="${rb_opt}" ;; #( |
| 32029 |
*) : |
| 32030 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS ${rb_opt}" ;; |
| 32031 |
esac |
| 32032 |
done |
| 32033 |
if test "$load_relative" = yes |
| 32034 |
then : |
| 32035 |
|
| 32036 |
libprefix="'\$\$ORIGIN/../${libdir_basename}'" |
| 32037 |
LIBRUBY_RPATHFLAGS="-R${libprefix}" |
| 32038 |
LIBRUBY_RELATIVE=yes |
| 32039 |
|
| 32040 |
else $as_nop |
| 32041 |
|
| 32042 |
LIBRUBY_RPATHFLAGS='-R${libdir}' |
| 32043 |
|
| 32044 |
fi |
| 32045 |
;; #( |
| 32046 |
aix*) : |
| 32047 |
|
| 32048 |
# RUBY_APPEND_OPTIONS(LIBRUBY_DLDFLAGS) |
| 32049 |
for rb_opt in "${linker_flag}-bnoentry" "$XLDFLAGS" "$LDFLAGS_OPTDIR"; do |
| 32050 |
case " ${LIBRUBY_DLDFLAGS-} " in #( |
| 32051 |
*" ${rb_opt} "*) : |
| 32052 |
;; #( |
| 32053 |
' ') : |
| 32054 |
LIBRUBY_DLDFLAGS="${rb_opt}" ;; #( |
| 32055 |
*) : |
| 32056 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS ${rb_opt}" ;; |
| 32057 |
esac |
| 32058 |
done |
| 32059 |
LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}' |
| 32060 |
LIBS="$LIBS -lm -lc" |
| 32061 |
;; #( |
| 32062 |
darwin*) : |
| 32063 |
|
| 32064 |
LIBRUBY_SO='lib$(RUBY_SO_NAME).$(SOEXT)' |
| 32065 |
LIBRUBY_SONAME='$(LIBRUBY_SO)' |
| 32066 |
LIBRUBY_ALIASES='lib$(RUBY_INSTALL_NAME).$(SOEXT)' |
| 32067 |
if test "$load_relative" = yes |
| 32068 |
then : |
| 32069 |
|
| 32070 |
libprefix="@executable_path/../${libdir_basename}" |
| 32071 |
LIBRUBY_RELATIVE=yes |
| 32072 |
|
| 32073 |
fi |
| 32074 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS -install_name ${libprefix}"'/$(LIBRUBY_SONAME)' |
| 32075 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-compatibility_version $(RUBY_API_VERSION)' |
| 32076 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-current_version $(RUBY_PROGRAM_VERSION)' |
| 32077 |
if test "$visibility_option" = ld |
| 32078 |
then : |
| 32079 |
|
| 32080 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_Init_*' |
| 32081 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_ruby_static_id_*' |
| 32082 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,*_threadptr_*' |
| 32083 |
|
| 32084 |
fi |
| 32085 |
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "' $(XLDFLAGS)' |
| 32086 |
;; #( |
| 32087 |
interix*) : |
| 32088 |
|
| 32089 |
LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)' |
| 32090 |
;; #( |
| 32091 |
cygwin*|msys*|mingw*|mswin*) : |
| 32092 |
|
| 32093 |
LIBRUBY_RELATIVE=yes |
| 32094 |
;; #( |
| 32095 |
*) : |
| 32096 |
;; |
| 32097 |
esac |
| 32098 |
;; #( |
| 32099 |
*) : |
| 32100 |
|
| 32101 |
LIBRUBYARG_SHARED= |
| 32102 |
|
| 32103 |
# enable PIE if possible |
| 32104 |
# Check whether --enable-pie was given. |
| 32105 |
if test ${enable_pie+y} |
| 32106 |
then : |
| 32107 |
enableval=$enable_pie; pie=$enableval |
| 32108 |
else $as_nop |
| 32109 |
pie= |
| 32110 |
fi |
| 32111 |
|
| 32112 |
if test "$GCC" = yes -a -z "$EXTSTATIC" -a "x$pie" != xno |
| 32113 |
then : |
| 32114 |
|
| 32115 |
|
| 32116 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -fPIE is accepted as CFLAGS" >&5 |
| 32117 |
printf %s "checking whether -fPIE is accepted as CFLAGS... " >&6; } |
| 32118 |
save_CFLAGS="$CFLAGS" |
| 32119 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 32120 |
if test "${ac_c_werror_flag+set}" |
| 32121 |
then : |
| 32122 |
|
| 32123 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 32124 |
|
| 32125 |
else $as_nop |
| 32126 |
|
| 32127 |
unset rb_c_werror_flag |
| 32128 |
|
| 32129 |
fi |
| 32130 |
ac_c_werror_flag=yes |
| 32131 |
|
| 32132 |
CFLAGS="$CFLAGS -fPIE" |
| 32133 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32134 |
/* end confdefs.h. */ |
| 32135 |
|
| 32136 |
int |
| 32137 |
main (void) |
| 32138 |
{ |
| 32139 |
|
| 32140 |
; |
| 32141 |
return 0; |
| 32142 |
} |
| 32143 |
_ACEOF |
| 32144 |
if ac_fn_c_try_compile "$LINENO" |
| 32145 |
then : |
| 32146 |
pie=yes |
| 32147 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32148 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 32149 |
else $as_nop |
| 32150 |
pie=no |
| 32151 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32152 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 32153 |
fi |
| 32154 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32155 |
|
| 32156 |
CFLAGS="$save_CFLAGS" |
| 32157 |
save_CFLAGS= |
| 32158 |
if test "${rb_c_werror_flag+set}" |
| 32159 |
then : |
| 32160 |
|
| 32161 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 32162 |
|
| 32163 |
else $as_nop |
| 32164 |
|
| 32165 |
unset ac_c_werror_flag |
| 32166 |
|
| 32167 |
fi |
| 32168 |
|
| 32169 |
if test "$pie" = yes |
| 32170 |
then : |
| 32171 |
|
| 32172 |
# Use -fPIE when testing -pie. RUBY_TRY_LDFLAGS sets |
| 32173 |
# $save_CFLAGS internally, so set other name here. |
| 32174 |
save_CFLAGS_before_pie="$CFLAGS" |
| 32175 |
CFLAGS="$CFLAGS -fPIE" |
| 32176 |
|
| 32177 |
# gcc need -pie but clang need -Wl,-pie. |
| 32178 |
for pie in -pie -Wl,-pie; do |
| 32179 |
|
| 32180 |
save_LDFLAGS="$LDFLAGS" |
| 32181 |
LDFLAGS="$LDFLAGS $pie" |
| 32182 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $pie is accepted as LDFLAGS" >&5 |
| 32183 |
printf %s "checking whether $pie is accepted as LDFLAGS... " >&6; } |
| 32184 |
save_CFLAGS="$CFLAGS" |
| 32185 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 32186 |
if test "${ac_c_werror_flag+set}" |
| 32187 |
then : |
| 32188 |
|
| 32189 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 32190 |
|
| 32191 |
else $as_nop |
| 32192 |
|
| 32193 |
unset rb_c_werror_flag |
| 32194 |
|
| 32195 |
fi |
| 32196 |
ac_c_werror_flag=yes |
| 32197 |
|
| 32198 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32199 |
/* end confdefs.h. */ |
| 32200 |
|
| 32201 |
int |
| 32202 |
main (void) |
| 32203 |
{ |
| 32204 |
|
| 32205 |
; |
| 32206 |
return 0; |
| 32207 |
} |
| 32208 |
_ACEOF |
| 32209 |
if ac_fn_c_try_link "$LINENO" |
| 32210 |
then : |
| 32211 |
|
| 32212 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32213 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 32214 |
else $as_nop |
| 32215 |
pie= |
| 32216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32217 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 32218 |
fi |
| 32219 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32220 |
conftest$ac_exeext conftest.$ac_ext |
| 32221 |
|
| 32222 |
CFLAGS="$save_CFLAGS" |
| 32223 |
save_CFLAGS= |
| 32224 |
if test "${rb_c_werror_flag+set}" |
| 32225 |
then : |
| 32226 |
|
| 32227 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 32228 |
|
| 32229 |
else $as_nop |
| 32230 |
|
| 32231 |
unset ac_c_werror_flag |
| 32232 |
|
| 32233 |
fi |
| 32234 |
LDFLAGS="$save_LDFLAGS" |
| 32235 |
save_LDFLAGS= |
| 32236 |
|
| 32237 |
if test "x$pie" != x |
| 32238 |
then : |
| 32239 |
|
| 32240 |
# RUBY_APPEND_OPTION(XCFLAGS) |
| 32241 |
case " ${XCFLAGS-} " in #( |
| 32242 |
*" -fPIE "*) : |
| 32243 |
;; #( |
| 32244 |
' ') : |
| 32245 |
XCFLAGS="-fPIE" ;; #( |
| 32246 |
*) : |
| 32247 |
XCFLAGS="$XCFLAGS -fPIE" ;; |
| 32248 |
esac |
| 32249 |
# RUBY_APPEND_OPTION(XLDFLAGS) |
| 32250 |
case " ${XLDFLAGS-} " in #( |
| 32251 |
*" $pie "*) : |
| 32252 |
;; #( |
| 32253 |
' ') : |
| 32254 |
XLDFLAGS="$pie" ;; #( |
| 32255 |
*) : |
| 32256 |
XLDFLAGS="$XLDFLAGS $pie" ;; |
| 32257 |
esac |
| 32258 |
break |
| 32259 |
|
| 32260 |
fi |
| 32261 |
done |
| 32262 |
CFLAGS="$save_CFLAGS_before_pie" |
| 32263 |
|
| 32264 |
fi |
| 32265 |
|
| 32266 |
fi |
| 32267 |
;; |
| 32268 |
esac |
| 32269 |
if test "$enable_rpath" = yes |
| 32270 |
then : |
| 32271 |
|
| 32272 |
test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS " |
| 32273 |
rpathflag="${RPATHFLAG}" |
| 32274 |
case "${cross_compiling}${load_relative}" in #( |
| 32275 |
*yes*) : |
| 32276 |
;; #( |
| 32277 |
*) : |
| 32278 |
rpathflag="$RPATHFLAG$LIBPATHFLAG" ;; |
| 32279 |
esac |
| 32280 |
rpathflag=`IFS="$PATH_SEPARATOR" |
| 32281 |
echo x "$rpathflag" | |
| 32282 |
sed "s/^x *//;s${IFS}"'%1\\$-s'"${IFS}${libprefix}${IFS}g;s${IFS}%s${IFS}${libprefix}${IFS}g" |
| 32283 |
` |
| 32284 |
LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${rpathflag}" |
| 32285 |
LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED" |
| 32286 |
LIBRUBYARG_STATIC="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_STATIC" |
| 32287 |
|
| 32288 |
fi |
| 32289 |
|
| 32290 |
|
| 32291 |
LDFLAGS="-L. $LDFLAGS" |
| 32292 |
|
| 32293 |
|
| 32294 |
if test "$EXEEXT" = .exe |
| 32295 |
then : |
| 32296 |
|
| 32297 |
EXECUTABLE_EXTS='".exe",".com",".cmd",".bat"' |
| 32298 |
printf "%s\n" "#define EXECUTABLE_EXTS $EXECUTABLE_EXTS" >>confdefs.h |
| 32299 |
|
| 32300 |
EXECUTABLE_EXTS=`echo $EXECUTABLE_EXTS | tr -d '"' | tr , ' '` |
| 32301 |
|
| 32302 |
|
| 32303 |
fi |
| 32304 |
|
| 32305 |
case "$cross_compiling:${LIBPATHENV}" in #( |
| 32306 |
yes:* | no:) : |
| 32307 |
;; #( |
| 32308 |
*) : |
| 32309 |
|
| 32310 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wrapper for $LIBPATHENV is needed" >&5 |
| 32311 |
printf %s "checking whether wrapper for $LIBPATHENV is needed... " >&6; } |
| 32312 |
if env ${LIBPATHENV}=/lib /bin/sh -c ': ${'${LIBPATHENV}'?}' 2>/dev/null |
| 32313 |
then : |
| 32314 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32315 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 32316 |
else $as_nop |
| 32317 |
XRUBY_LIBPATHENV_WRAPPER='exe/$(PROGRAM)' |
| 32318 |
|
| 32319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 32320 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 32321 |
|
| 32322 |
fi |
| 32323 |
;; |
| 32324 |
esac |
| 32325 |
|
| 32326 |
# Check whether --enable-dtrace was given. |
| 32327 |
if test ${enable_dtrace+y} |
| 32328 |
then : |
| 32329 |
enableval=$enable_dtrace; enable_dtrace=$enableval |
| 32330 |
else $as_nop |
| 32331 |
enable_dtrace=auto |
| 32332 |
fi |
| 32333 |
|
| 32334 |
|
| 32335 |
LIBRUBY_A_OBJS='$(OBJS)' |
| 32336 |
DTRACE_REBUILD= |
| 32337 |
case "${enable_dtrace}" in #( |
| 32338 |
yes|auto) : |
| 32339 |
|
| 32340 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dtrace USDT is available" >&5 |
| 32341 |
printf %s "checking whether dtrace USDT is available... " >&6; } |
| 32342 |
if test ${rb_cv_dtrace_available+y} |
| 32343 |
then : |
| 32344 |
printf %s "(cached) " >&6 |
| 32345 |
else $as_nop |
| 32346 |
|
| 32347 |
echo "provider conftest{ probe fire(); };" > conftest_provider.d |
| 32348 |
rb_cv_dtrace_available=no |
| 32349 |
for rb_dtrace_opt in "-xnolibs" "" |
| 32350 |
do : |
| 32351 |
if $DTRACE $rb_dtrace_opt -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null |
| 32352 |
then : |
| 32353 |
|
| 32354 |
else $as_nop |
| 32355 |
continue |
| 32356 |
fi |
| 32357 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32358 |
/* end confdefs.h. */ |
| 32359 |
#include "conftest_provider.h" |
| 32360 |
int |
| 32361 |
main (void) |
| 32362 |
{ |
| 32363 |
CONFTEST_FIRE(); |
| 32364 |
; |
| 32365 |
return 0; |
| 32366 |
} |
| 32367 |
_ACEOF |
| 32368 |
if ac_fn_c_try_compile "$LINENO" |
| 32369 |
then : |
| 32370 |
|
| 32371 |
else $as_nop |
| 32372 |
continue |
| 32373 |
fi |
| 32374 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32375 |
# DTrace is available on the system |
| 32376 |
rb_cv_dtrace_available=yes${rb_dtrace_opt:+"($rb_dtrace_opt)"} |
| 32377 |
break |
| 32378 |
|
| 32379 |
done |
| 32380 |
rm -f conftest.co conftest_provider.dho |
| 32381 |
|
| 32382 |
fi |
| 32383 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_dtrace_available" >&5 |
| 32384 |
colorize_result "$rb_cv_dtrace_available" ; } |
| 32385 |
case "$rb_cv_dtrace_available" in #( |
| 32386 |
"yes("*")") : |
| 32387 |
DTRACE_OPT=`expr "$rb_cv_dtrace_available" : "yes(\(.*\))"` ;; #( |
| 32388 |
*) : |
| 32389 |
;; |
| 32390 |
esac |
| 32391 |
|
| 32392 |
;; #( |
| 32393 |
*) : |
| 32394 |
|
| 32395 |
rb_cv_dtrace_available=no |
| 32396 |
;; |
| 32397 |
esac |
| 32398 |
case "$target_os" in #( |
| 32399 |
freebsd*) : |
| 32400 |
|
| 32401 |
rb_cv_dtrace_available=no |
| 32402 |
;; #( |
| 32403 |
*) : |
| 32404 |
;; |
| 32405 |
esac |
| 32406 |
if test "${enable_dtrace}" = yes |
| 32407 |
then : |
| 32408 |
if test -z "$DTRACE" |
| 32409 |
then : |
| 32410 |
as_fn_error $? "dtrace(1) is missing" "$LINENO" 5 |
| 32411 |
|
| 32412 |
elif test "$cross_compiling" = yes |
| 32413 |
then : |
| 32414 |
as_fn_error $? "--enable-dtrace, however, cross compiling" "$LINENO" 5 |
| 32415 |
|
| 32416 |
elif test "${rb_cv_dtrace_available}" = "no" |
| 32417 |
then : |
| 32418 |
as_fn_error $? "--enable-dtrace, however, USDT is not available" "$LINENO" 5 |
| 32419 |
|
| 32420 |
fi |
| 32421 |
|
| 32422 |
fi |
| 32423 |
case $rb_cv_dtrace_available in #( |
| 32424 |
yes*) : |
| 32425 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $DTRACE needs post processing" >&5 |
| 32426 |
printf %s "checking whether $DTRACE needs post processing... " >&6; } |
| 32427 |
if test ${rb_cv_prog_dtrace_g+y} |
| 32428 |
then : |
| 32429 |
printf %s "(cached) " >&6 |
| 32430 |
else $as_nop |
| 32431 |
|
| 32432 |
rb_cv_prog_dtrace_g=no |
| 32433 |
if { |
| 32434 |
cat >conftest_provider.d <<_PROBES && |
| 32435 |
provider conftest { |
| 32436 |
probe fire(); |
| 32437 |
}; |
| 32438 |
_PROBES |
| 32439 |
$DTRACE ${DTRACE_OPT} -h -o conftest_provider.h -s conftest_provider.d >/dev/null 2>/dev/null && |
| 32440 |
: |
| 32441 |
} |
| 32442 |
then : |
| 32443 |
|
| 32444 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32445 |
/* end confdefs.h. */ |
| 32446 |
#include "conftest_provider.h" |
| 32447 |
int |
| 32448 |
main (void) |
| 32449 |
{ |
| 32450 |
CONFTEST_FIRE(); |
| 32451 |
; |
| 32452 |
return 0; |
| 32453 |
} |
| 32454 |
_ACEOF |
| 32455 |
if ac_fn_c_try_compile "$LINENO" |
| 32456 |
then : |
| 32457 |
|
| 32458 |
if { |
| 32459 |
cp -p conftest.${ac_objext} conftest.${ac_objext}.save && |
| 32460 |
$DTRACE ${DTRACE_OPT} -G -s conftest_provider.d conftest.${ac_objext} 2>/dev/null && |
| 32461 |
: |
| 32462 |
} |
| 32463 |
then : |
| 32464 |
|
| 32465 |
if cmp -s conftest.o conftest.${ac_objext}.save |
| 32466 |
then : |
| 32467 |
|
| 32468 |
rb_cv_prog_dtrace_g=yes |
| 32469 |
|
| 32470 |
else $as_nop |
| 32471 |
|
| 32472 |
rb_cv_prog_dtrace_g=rebuild |
| 32473 |
|
| 32474 |
fi |
| 32475 |
|
| 32476 |
fi |
| 32477 |
fi |
| 32478 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32479 |
|
| 32480 |
fi |
| 32481 |
rm -f conftest.co conftest_provider.dho |
| 32482 |
|
| 32483 |
fi |
| 32484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_prog_dtrace_g" >&5 |
| 32485 |
colorize_result "$rb_cv_prog_dtrace_g" ; } |
| 32486 |
|
| 32487 |
if test "$rb_cv_prog_dtrace_g" != no |
| 32488 |
then : |
| 32489 |
DTRACE_OBJ='probes.$(OBJEXT)' |
| 32490 |
|
| 32491 |
fi |
| 32492 |
if test "$rb_cv_prog_dtrace_g" = rebuild |
| 32493 |
then : |
| 32494 |
DTRACE_REBUILD=yes |
| 32495 |
LIBRUBY_A_OBJS='$(DTRACE_GLOMMED_OBJ)' |
| 32496 |
|
| 32497 |
fi |
| 32498 |
case "${target_os}" in #( |
| 32499 |
freebsd*) : |
| 32500 |
# FreeBSD's dtrace requires libelf |
| 32501 |
LIBS="-lelf $LIBS" |
| 32502 |
;; #( |
| 32503 |
*) : |
| 32504 |
;; |
| 32505 |
esac |
| 32506 |
DTRACE_EXT=d |
| 32507 |
;; #( |
| 32508 |
*) : |
| 32509 |
enable_dtrace=no |
| 32510 |
DTRACE_EXT=dmyh |
| 32511 |
;; |
| 32512 |
esac |
| 32513 |
|
| 32514 |
|
| 32515 |
|
| 32516 |
|
| 32517 |
|
| 32518 |
|
| 32519 |
# Check whether --enable-gcov was given. |
| 32520 |
if test ${enable_gcov+y} |
| 32521 |
then : |
| 32522 |
enableval=$enable_gcov; gcov=yes |
| 32523 |
fi |
| 32524 |
|
| 32525 |
if test x"$gcov" = xyes |
| 32526 |
then : |
| 32527 |
|
| 32528 |
CFLAGS="$CFLAGS -coverage" |
| 32529 |
LDFLAGS="$LDFLAGS -coverage" |
| 32530 |
|
| 32531 |
fi |
| 32532 |
|
| 32533 |
|
| 32534 |
|
| 32535 |
if test x"${ac_cv_func___builtin_setjmp}" = xyes |
| 32536 |
then : |
| 32537 |
|
| 32538 |
unset ac_cv_func___builtin_setjmp |
| 32539 |
|
| 32540 |
fi |
| 32541 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_setjmp" >&5 |
| 32542 |
printf %s "checking for __builtin_setjmp... " >&6; } |
| 32543 |
if test ${ac_cv_func___builtin_setjmp+y} |
| 32544 |
then : |
| 32545 |
printf %s "(cached) " >&6 |
| 32546 |
else $as_nop |
| 32547 |
|
| 32548 |
ac_cv_func___builtin_setjmp=no |
| 32549 |
for cast in "" "(void **)"; do |
| 32550 |
save_CFLAGS="$CFLAGS" |
| 32551 |
CFLAGS="$CFLAGS $rb_cv_warnflags" |
| 32552 |
if test "${ac_c_werror_flag+set}" |
| 32553 |
then : |
| 32554 |
|
| 32555 |
rb_c_werror_flag="$ac_c_werror_flag" |
| 32556 |
|
| 32557 |
else $as_nop |
| 32558 |
|
| 32559 |
unset rb_c_werror_flag |
| 32560 |
|
| 32561 |
fi |
| 32562 |
ac_c_werror_flag=yes |
| 32563 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32564 |
/* end confdefs.h. */ |
| 32565 |
#include <setjmp.h> |
| 32566 |
#include <stdio.h> |
| 32567 |
jmp_buf jb; |
| 32568 |
#ifdef NORETURN |
| 32569 |
NORETURN(void t(void)); |
| 32570 |
#endif |
| 32571 |
void t(void) {__builtin_longjmp($cast jb, 1);} |
| 32572 |
int jump(void) {(void)(__builtin_setjmp($cast jb) ? 1 : 0); return 0;} |
| 32573 |
int |
| 32574 |
main (void) |
| 32575 |
{ |
| 32576 |
|
| 32577 |
void (*volatile f)(void) = t; |
| 32578 |
if (!jump()) printf("%d\n", f != 0); |
| 32579 |
|
| 32580 |
; |
| 32581 |
return 0; |
| 32582 |
} |
| 32583 |
_ACEOF |
| 32584 |
if ac_fn_c_try_link "$LINENO" |
| 32585 |
then : |
| 32586 |
ac_cv_func___builtin_setjmp="yes with cast ($cast)" |
| 32587 |
fi |
| 32588 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 32589 |
conftest$ac_exeext conftest.$ac_ext |
| 32590 |
|
| 32591 |
CFLAGS="$save_CFLAGS" |
| 32592 |
save_CFLAGS= |
| 32593 |
if test "${rb_c_werror_flag+set}" |
| 32594 |
then : |
| 32595 |
|
| 32596 |
ac_c_werror_flag="$rb_c_werror_flag" |
| 32597 |
|
| 32598 |
else $as_nop |
| 32599 |
|
| 32600 |
unset ac_c_werror_flag |
| 32601 |
|
| 32602 |
fi |
| 32603 |
test "$ac_cv_func___builtin_setjmp" = no || break |
| 32604 |
done |
| 32605 |
fi |
| 32606 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func___builtin_setjmp" >&5 |
| 32607 |
colorize_result "$ac_cv_func___builtin_setjmp" ; } |
| 32608 |
|
| 32609 |
|
| 32610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _setjmpex as a macro or function" >&5 |
| 32611 |
printf %s "checking for _setjmpex as a macro or function... " >&6; } |
| 32612 |
if test ${ac_cv_func__setjmpex+y} |
| 32613 |
then : |
| 32614 |
printf %s "(cached) " >&6 |
| 32615 |
else $as_nop |
| 32616 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32617 |
/* end confdefs.h. */ |
| 32618 |
|
| 32619 |
#include <setjmp.h> |
| 32620 |
#include <setjmpex.h> |
| 32621 |
|
| 32622 |
#define JMPARGS_1 env |
| 32623 |
#define JMPARGS_2 env,1 |
| 32624 |
#define JMPARGS JMPARGS_1 |
| 32625 |
|
| 32626 |
int |
| 32627 |
main (void) |
| 32628 |
{ |
| 32629 |
jmp_buf env; _setjmpex(JMPARGS); |
| 32630 |
; |
| 32631 |
return 0; |
| 32632 |
} |
| 32633 |
_ACEOF |
| 32634 |
if ac_fn_c_try_compile "$LINENO" |
| 32635 |
then : |
| 32636 |
ac_cv_func__setjmpex=yes |
| 32637 |
else $as_nop |
| 32638 |
ac_cv_func__setjmpex=no |
| 32639 |
fi |
| 32640 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32641 |
|
| 32642 |
fi |
| 32643 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__setjmpex" >&5 |
| 32644 |
colorize_result "$ac_cv_func__setjmpex" ; } |
| 32645 |
if test "$ac_cv_func__setjmpex" = yes |
| 32646 |
then : |
| 32647 |
printf "%s\n" "#define HAVE__SETJMPEX 1" >>confdefs.h |
| 32648 |
|
| 32649 |
fi |
| 32650 |
|
| 32651 |
|
| 32652 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _setjmp as a macro or function" >&5 |
| 32653 |
printf %s "checking for _setjmp as a macro or function... " >&6; } |
| 32654 |
if test ${ac_cv_func__setjmp+y} |
| 32655 |
then : |
| 32656 |
printf %s "(cached) " >&6 |
| 32657 |
else $as_nop |
| 32658 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32659 |
/* end confdefs.h. */ |
| 32660 |
|
| 32661 |
#include <setjmp.h> |
| 32662 |
$ac_includes_default |
| 32663 |
#define JMPARGS_1 env |
| 32664 |
#define JMPARGS_2 env,1 |
| 32665 |
#define JMPARGS JMPARGS_1 |
| 32666 |
|
| 32667 |
int |
| 32668 |
main (void) |
| 32669 |
{ |
| 32670 |
jmp_buf env; _setjmp(JMPARGS); |
| 32671 |
; |
| 32672 |
return 0; |
| 32673 |
} |
| 32674 |
_ACEOF |
| 32675 |
if ac_fn_c_try_compile "$LINENO" |
| 32676 |
then : |
| 32677 |
ac_cv_func__setjmp=yes |
| 32678 |
else $as_nop |
| 32679 |
ac_cv_func__setjmp=no |
| 32680 |
fi |
| 32681 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32682 |
|
| 32683 |
fi |
| 32684 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__setjmp" >&5 |
| 32685 |
colorize_result "$ac_cv_func__setjmp" ; } |
| 32686 |
if test "$ac_cv_func__setjmp" = yes |
| 32687 |
then : |
| 32688 |
printf "%s\n" "#define HAVE__SETJMP 1" >>confdefs.h |
| 32689 |
|
| 32690 |
fi |
| 32691 |
|
| 32692 |
|
| 32693 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp as a macro or function" >&5 |
| 32694 |
printf %s "checking for sigsetjmp as a macro or function... " >&6; } |
| 32695 |
if test ${ac_cv_func_sigsetjmp+y} |
| 32696 |
then : |
| 32697 |
printf %s "(cached) " >&6 |
| 32698 |
else $as_nop |
| 32699 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 32700 |
/* end confdefs.h. */ |
| 32701 |
|
| 32702 |
#include <setjmp.h> |
| 32703 |
$ac_includes_default |
| 32704 |
#define JMPARGS_1 env |
| 32705 |
#define JMPARGS_2 env,1 |
| 32706 |
#define JMPARGS JMPARGS_2 |
| 32707 |
|
| 32708 |
int |
| 32709 |
main (void) |
| 32710 |
{ |
| 32711 |
sigjmp_buf env; sigsetjmp(JMPARGS); |
| 32712 |
; |
| 32713 |
return 0; |
| 32714 |
} |
| 32715 |
_ACEOF |
| 32716 |
if ac_fn_c_try_compile "$LINENO" |
| 32717 |
then : |
| 32718 |
ac_cv_func_sigsetjmp=yes |
| 32719 |
else $as_nop |
| 32720 |
ac_cv_func_sigsetjmp=no |
| 32721 |
fi |
| 32722 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 32723 |
|
| 32724 |
fi |
| 32725 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sigsetjmp" >&5 |
| 32726 |
colorize_result "$ac_cv_func_sigsetjmp" ; } |
| 32727 |
if test "$ac_cv_func_sigsetjmp" = yes |
| 32728 |
then : |
| 32729 |
printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h |
| 32730 |
|
| 32731 |
fi |
| 32732 |
|
| 32733 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setjmp type" >&5 |
| 32734 |
printf %s "checking for setjmp type... " >&6; } |
| 32735 |
setjmp_suffix= |
| 32736 |
unset setjmp_sigmask |
| 32737 |
|
| 32738 |
# Check whether --with-setjmp-type was given. |
| 32739 |
if test ${with_setjmp_type+y} |
| 32740 |
then : |
| 32741 |
withval=$with_setjmp_type; |
| 32742 |
case $withval in #( |
| 32743 |
__builtin_setjmp) : |
| 32744 |
setjmp=__builtin_setjmp ;; #( |
| 32745 |
_setjmp) : |
| 32746 |
setjmp_prefix=_ ;; #( |
| 32747 |
sigsetjmp,*) : |
| 32748 |
setjmp_prefix=sig setjmp_sigmask=`expr "$withval" : 'sigsetjmp\(,.*\)'` ;; #( |
| 32749 |
sigsetjmp) : |
| 32750 |
setjmp_prefix=sig ;; #( |
| 32751 |
setjmp) : |
| 32752 |
setjmp_prefix= ;; #( |
| 32753 |
setjmpex) : |
| 32754 |
setjmp_prefix= setjmp_suffix=ex ;; #( |
| 32755 |
'') : |
| 32756 |
unset setjmp_prefix ;; #( |
| 32757 |
*) : |
| 32758 |
as_fn_error $? "invalid setjmp type: $withval" "$LINENO" 5 ;; |
| 32759 |
esac |
| 32760 |
else $as_nop |
| 32761 |
unset setjmp_prefix |
| 32762 |
fi |
| 32763 |
|
| 32764 |
setjmp_cast= |
| 32765 |
if test ${setjmp_prefix+set} |
| 32766 |
then : |
| 32767 |
|
| 32768 |
if test "${setjmp_prefix}" && eval test '$ac_cv_func_'${setjmp_prefix}setjmp${setjmp_suffix} = no |
| 32769 |
then : |
| 32770 |
|
| 32771 |
as_fn_error $? "${setjmp_prefix}setjmp${setjmp_suffix} is not available" "$LINENO" 5 |
| 32772 |
|
| 32773 |
fi |
| 32774 |
|
| 32775 |
elif { case "$ac_cv_func___builtin_setjmp" in #( |
| 32776 |
yes*) : |
| 32777 |
true ;; #( |
| 32778 |
*) : |
| 32779 |
false ;; |
| 32780 |
esac } |
| 32781 |
then : |
| 32782 |
|
| 32783 |
setjmp_cast=`expr "$ac_cv_func___builtin_setjmp" : "yes with cast (\(.*\))"` |
| 32784 |
setjmp_prefix=__builtin_ |
| 32785 |
setjmp_suffix= |
| 32786 |
|
| 32787 |
elif test "$ac_cv_header_setjmpex_h:$ac_cv_func__setjmpex" = yes:yes |
| 32788 |
then : |
| 32789 |
|
| 32790 |
setjmp_prefix= |
| 32791 |
setjmp_suffix=ex |
| 32792 |
|
| 32793 |
elif test "$ac_cv_func__setjmp" = yes |
| 32794 |
then : |
| 32795 |
|
| 32796 |
setjmp_prefix=_ |
| 32797 |
setjmp_suffix= |
| 32798 |
|
| 32799 |
elif test "$ac_cv_func_sigsetjmp" = yes |
| 32800 |
then : |
| 32801 |
|
| 32802 |
case $target_os in #( |
| 32803 |
solaris*|cygwin*) : |
| 32804 |
setjmp_prefix= ;; #( |
| 32805 |
*) : |
| 32806 |
setjmp_prefix=sig ;; |
| 32807 |
esac |
| 32808 |
setjmp_suffix= |
| 32809 |
|
| 32810 |
else $as_nop |
| 32811 |
|
| 32812 |
setjmp_prefix= |
| 32813 |
setjmp_suffix= |
| 32814 |
|
| 32815 |
fi |
| 32816 |
if test x$setjmp_prefix:$setjmp_sigmask = xsig: |
| 32817 |
then : |
| 32818 |
|
| 32819 |
setjmp_sigmask=,0 |
| 32820 |
|
| 32821 |
fi |
| 32822 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${setjmp_prefix}setjmp${setjmp_suffix}${setjmp_cast:+\($setjmp_cast\)}${setjmp_sigmask}" >&5 |
| 32823 |
colorize_result "${setjmp_prefix}setjmp${setjmp_suffix}${setjmp_cast:+\($setjmp_cast\)}${setjmp_sigmask}" ; } |
| 32824 |
printf "%s\n" "#define RUBY_SETJMP(env) ${setjmp_prefix}setjmp${setjmp_suffix}($setjmp_cast(env)${setjmp_sigmask})" >>confdefs.h |
| 32825 |
|
| 32826 |
printf "%s\n" "#define RUBY_LONGJMP(env,val) ${setjmp_prefix}longjmp($setjmp_cast(env),val)" >>confdefs.h |
| 32827 |
|
| 32828 |
if test "(" "$GCC" != yes ")" -o x$setjmp_prefix != x__builtin_ |
| 32829 |
then : |
| 32830 |
printf "%s\n" "#define RUBY_JMP_BUF ${setjmp_sigmask+${setjmp_prefix}}jmp_buf" >>confdefs.h |
| 32831 |
|
| 32832 |
fi |
| 32833 |
if test x$setjmp_suffix = xex |
| 32834 |
then : |
| 32835 |
printf "%s\n" "#define RUBY_USE_SETJMPEX 1" >>confdefs.h |
| 32836 |
|
| 32837 |
fi |
| 32838 |
|
| 32839 |
} |
| 32840 |
|
| 32841 |
begin_group "installation section" && { |
| 32842 |
RDOCTARGET="" |
| 32843 |
CAPITARGET="" |
| 32844 |
# Check whether --enable-install-doc was given. |
| 32845 |
if test ${enable_install_doc+y} |
| 32846 |
then : |
| 32847 |
enableval=$enable_install_doc; install_doc=$enableval |
| 32848 |
else $as_nop |
| 32849 |
install_doc=yes |
| 32850 |
fi |
| 32851 |
|
| 32852 |
|
| 32853 |
# Check whether --with-rdoc was given. |
| 32854 |
if test ${with_rdoc+y} |
| 32855 |
then : |
| 32856 |
withval=$with_rdoc; install_rdoc=`echo ,$withval, | sed 'y/,/ /;s/ ri / rdoc /;s/^ *//;s/ *$//'` |
| 32857 |
else $as_nop |
| 32858 |
|
| 32859 |
# Check whether --enable-install-rdoc was given. |
| 32860 |
if test ${enable_install_rdoc+y} |
| 32861 |
then : |
| 32862 |
enableval=$enable_install_rdoc; install_rdoc=$enableval |
| 32863 |
else $as_nop |
| 32864 |
install_rdoc=yes |
| 32865 |
fi |
| 32866 |
|
| 32867 |
|
| 32868 |
fi |
| 32869 |
|
| 32870 |
# Check whether --enable-install-capi was given. |
| 32871 |
if test ${enable_install_capi+y} |
| 32872 |
then : |
| 32873 |
enableval=$enable_install_capi; install_capi=$enableval |
| 32874 |
else $as_nop |
| 32875 |
install_capi=no |
| 32876 |
fi |
| 32877 |
|
| 32878 |
|
| 32879 |
if test "$install_doc" != no |
| 32880 |
then : |
| 32881 |
|
| 32882 |
case "$install_rdoc" in #( |
| 32883 |
yes) : |
| 32884 |
|
| 32885 |
RDOCTARGET="rdoc" |
| 32886 |
;; #( |
| 32887 |
all) : |
| 32888 |
|
| 32889 |
RDOCTARGET="rdoc html" |
| 32890 |
;; #( |
| 32891 |
no|'') : |
| 32892 |
|
| 32893 |
RDOCTARGET="nodoc" |
| 32894 |
;; #( |
| 32895 |
*) : |
| 32896 |
|
| 32897 |
RDOCTARGET="$install_rdoc" |
| 32898 |
;; |
| 32899 |
esac |
| 32900 |
if test "$install_capi" != no -a -n "$DOXYGEN" |
| 32901 |
then : |
| 32902 |
|
| 32903 |
CAPITARGET="capi" |
| 32904 |
|
| 32905 |
else $as_nop |
| 32906 |
|
| 32907 |
CAPITARGET="nodoc" |
| 32908 |
|
| 32909 |
fi |
| 32910 |
|
| 32911 |
else $as_nop |
| 32912 |
|
| 32913 |
RDOCTARGET="nodoc" |
| 32914 |
CAPITARGET="nodoc" |
| 32915 |
|
| 32916 |
fi |
| 32917 |
|
| 32918 |
|
| 32919 |
|
| 32920 |
|
| 32921 |
case "$RDOCTARGET:$CAPITARGET" in #( |
| 32922 |
nodoc:nodoc) : |
| 32923 |
INSTALLDOC=nodoc ;; #( |
| 32924 |
*) : |
| 32925 |
INSTALLDOC=all ;; |
| 32926 |
esac |
| 32927 |
|
| 32928 |
|
| 32929 |
# Check whether --enable-install-static-library was given. |
| 32930 |
if test ${enable_install_static_library+y} |
| 32931 |
then : |
| 32932 |
enableval=$enable_install_static_library; INSTALL_STATIC_LIBRARY=$enableval |
| 32933 |
if test x"$enable_shared" = xno -a x"$INSTALL_STATIC_LIBRARY" = xno |
| 32934 |
then : |
| 32935 |
as_fn_error $? "must install either static or shared library" "$LINENO" 5 |
| 32936 |
fi |
| 32937 |
else $as_nop |
| 32938 |
if test x"$enable_shared" = xyes |
| 32939 |
then : |
| 32940 |
INSTALL_STATIC_LIBRARY=no |
| 32941 |
else $as_nop |
| 32942 |
INSTALL_STATIC_LIBRARY=yes |
| 32943 |
fi |
| 32944 |
fi |
| 32945 |
|
| 32946 |
|
| 32947 |
} |
| 32948 |
|
| 32949 |
begin_group "JIT section" && { |
| 32950 |
# Extract the first word of "rustc", so it can be a program name with args. |
| 32951 |
set dummy rustc; ac_word=$2 |
| 32952 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 32953 |
printf %s "checking for $ac_word... " >&6; } |
| 32954 |
if test ${ac_cv_prog_RUSTC+y} |
| 32955 |
then : |
| 32956 |
printf %s "(cached) " >&6 |
| 32957 |
else $as_nop |
| 32958 |
if test -n "$RUSTC"; then |
| 32959 |
ac_cv_prog_RUSTC="$RUSTC" # Let the user override the test. |
| 32960 |
else |
| 32961 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 32962 |
for as_dir in $PATH |
| 32963 |
do |
| 32964 |
IFS=$as_save_IFS |
| 32965 |
case $as_dir in #((( |
| 32966 |
'') as_dir=./ ;; |
| 32967 |
*/) ;; |
| 32968 |
*) as_dir=$as_dir/ ;; |
| 32969 |
esac |
| 32970 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 32971 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 32972 |
ac_cv_prog_RUSTC="rustc" |
| 32973 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 32974 |
break 2 |
| 32975 |
fi |
| 32976 |
done |
| 32977 |
done |
| 32978 |
IFS=$as_save_IFS |
| 32979 |
|
| 32980 |
test -z "$ac_cv_prog_RUSTC" && ac_cv_prog_RUSTC="no" |
| 32981 |
fi |
| 32982 |
fi |
| 32983 |
RUSTC=$ac_cv_prog_RUSTC |
| 32984 |
if test -n "$RUSTC"; then |
| 32985 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUSTC" >&5 |
| 32986 |
colorize_result "$RUSTC" ; } |
| 32987 |
else |
| 32988 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 32989 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 32990 |
fi |
| 32991 |
|
| 32992 |
|
| 32993 |
YJIT_RUSTC_OK=no |
| 32994 |
if test "$RUSTC" != "no" |
| 32995 |
then : |
| 32996 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${RUSTC} works for YJIT" >&5 |
| 32997 |
printf %s "checking whether ${RUSTC} works for YJIT... " >&6; } |
| 32998 |
YJIT_TARGET_ARCH= |
| 32999 |
case "$target_cpu" in #( |
| 33000 |
arm64|aarch64) : |
| 33001 |
YJIT_TARGET_ARCH=aarch64 ;; #( |
| 33002 |
x86_64) : |
| 33003 |
YJIT_TARGET_ARCH=x86_64 ;; #( |
| 33004 |
*) : |
| 33005 |
;; |
| 33006 |
esac |
| 33007 |
if echo "#[cfg(target_arch = \"$YJIT_TARGET_ARCH\")] fn main() { let x = 1; format!(\"{x}\"); }" | |
| 33008 |
$RUSTC - --emit asm=/dev/null 2>/dev/null |
| 33009 |
then : |
| 33010 |
YJIT_RUSTC_OK=yes |
| 33011 |
|
| 33012 |
fi |
| 33013 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YJIT_RUSTC_OK" >&5 |
| 33014 |
colorize_result "$YJIT_RUSTC_OK" ; } |
| 33015 |
|
| 33016 |
fi |
| 33017 |
|
| 33018 |
YJIT_TARGET_OK=no |
| 33019 |
if test "$cross_compiling" = no |
| 33020 |
then : |
| 33021 |
case "$target_cpu-$target_os" in #( |
| 33022 |
*android*) : |
| 33023 |
|
| 33024 |
YJIT_TARGET_OK=no |
| 33025 |
;; #( |
| 33026 |
arm64-darwin*|aarch64-darwin*|x86_64-darwin*) : |
| 33027 |
|
| 33028 |
YJIT_TARGET_OK=yes |
| 33029 |
;; #( |
| 33030 |
arm64-*linux*|aarch64-*linux*|x86_64-*linux*) : |
| 33031 |
|
| 33032 |
YJIT_TARGET_OK=yes |
| 33033 |
;; #( |
| 33034 |
arm64-*bsd*|aarch64-*bsd*|x86_64-*bsd*) : |
| 33035 |
|
| 33036 |
YJIT_TARGET_OK=yes |
| 33037 |
|
| 33038 |
;; #( |
| 33039 |
*) : |
| 33040 |
;; |
| 33041 |
esac |
| 33042 |
|
| 33043 |
fi |
| 33044 |
|
| 33045 |
# Check whether --enable-yjit was given. |
| 33046 |
if test ${enable_yjit+y} |
| 33047 |
then : |
| 33048 |
enableval=$enable_yjit; YJIT_SUPPORT=$enableval |
| 33049 |
else $as_nop |
| 33050 |
case "$YJIT_TARGET_OK:$YJIT_RUSTC_OK" in #( |
| 33051 |
yes:yes) : |
| 33052 |
|
| 33053 |
YJIT_SUPPORT=yes |
| 33054 |
;; #( |
| 33055 |
*) : |
| 33056 |
YJIT_SUPPORT=no |
| 33057 |
;; |
| 33058 |
esac |
| 33059 |
|
| 33060 |
fi |
| 33061 |
|
| 33062 |
|
| 33063 |
CARGO= |
| 33064 |
CARGO_BUILD_ARGS= |
| 33065 |
YJIT_LIBS= |
| 33066 |
case "${YJIT_SUPPORT}" in #( |
| 33067 |
yes|dev|stats|dev_nodebug) : |
| 33068 |
|
| 33069 |
if test x"$RUSTC" = "xno" |
| 33070 |
then : |
| 33071 |
as_fn_error $? "rustc is required. Installation instructions available at https://www.rust-lang.org/tools/install" "$LINENO" 5 |
| 33072 |
|
| 33073 |
fi |
| 33074 |
|
| 33075 |
case "${YJIT_SUPPORT}" in #( |
| 33076 |
yes) : |
| 33077 |
|
| 33078 |
rb_rust_target_subdir=release |
| 33079 |
;; #( |
| 33080 |
dev) : |
| 33081 |
|
| 33082 |
rb_rust_target_subdir=debug |
| 33083 |
CARGO_BUILD_ARGS='--features stats,disasm' |
| 33084 |
printf "%s\n" "#define RUBY_DEBUG 1" >>confdefs.h |
| 33085 |
|
| 33086 |
;; #( |
| 33087 |
dev_nodebug) : |
| 33088 |
|
| 33089 |
rb_rust_target_subdir=dev_nodebug |
| 33090 |
CARGO_BUILD_ARGS='--profile dev_nodebug --features stats,disasm' |
| 33091 |
printf "%s\n" "#define YJIT_STATS 1" >>confdefs.h |
| 33092 |
|
| 33093 |
;; #( |
| 33094 |
stats) : |
| 33095 |
|
| 33096 |
rb_rust_target_subdir=stats |
| 33097 |
CARGO_BUILD_ARGS='--profile stats --features stats' |
| 33098 |
printf "%s\n" "#define YJIT_STATS 1" >>confdefs.h |
| 33099 |
|
| 33100 |
;; #( |
| 33101 |
*) : |
| 33102 |
;; |
| 33103 |
esac |
| 33104 |
|
| 33105 |
if test -n "${CARGO_BUILD_ARGS}" |
| 33106 |
then : |
| 33107 |
|
| 33108 |
if test -n "$ac_tool_prefix"; then |
| 33109 |
# Extract the first word of "${ac_tool_prefix}cargo", so it can be a program name with args. |
| 33110 |
set dummy ${ac_tool_prefix}cargo; ac_word=$2 |
| 33111 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33112 |
printf %s "checking for $ac_word... " >&6; } |
| 33113 |
if test ${ac_cv_prog_CARGO+y} |
| 33114 |
then : |
| 33115 |
printf %s "(cached) " >&6 |
| 33116 |
else $as_nop |
| 33117 |
if test -n "$CARGO"; then |
| 33118 |
ac_cv_prog_CARGO="$CARGO" # Let the user override the test. |
| 33119 |
else |
| 33120 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33121 |
for as_dir in $PATH |
| 33122 |
do |
| 33123 |
IFS=$as_save_IFS |
| 33124 |
case $as_dir in #((( |
| 33125 |
'') as_dir=./ ;; |
| 33126 |
*/) ;; |
| 33127 |
*) as_dir=$as_dir/ ;; |
| 33128 |
esac |
| 33129 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 33130 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 33131 |
ac_cv_prog_CARGO="${ac_tool_prefix}cargo" |
| 33132 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 33133 |
break 2 |
| 33134 |
fi |
| 33135 |
done |
| 33136 |
done |
| 33137 |
IFS=$as_save_IFS |
| 33138 |
|
| 33139 |
fi |
| 33140 |
fi |
| 33141 |
CARGO=$ac_cv_prog_CARGO |
| 33142 |
if test -n "$CARGO"; then |
| 33143 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5 |
| 33144 |
colorize_result "$CARGO" ; } |
| 33145 |
else |
| 33146 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33147 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 33148 |
fi |
| 33149 |
|
| 33150 |
|
| 33151 |
fi |
| 33152 |
if test -z "$ac_cv_prog_CARGO"; then |
| 33153 |
ac_ct_CARGO=$CARGO |
| 33154 |
# Extract the first word of "cargo", so it can be a program name with args. |
| 33155 |
set dummy cargo; ac_word=$2 |
| 33156 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 33157 |
printf %s "checking for $ac_word... " >&6; } |
| 33158 |
if test ${ac_cv_prog_ac_ct_CARGO+y} |
| 33159 |
then : |
| 33160 |
printf %s "(cached) " >&6 |
| 33161 |
else $as_nop |
| 33162 |
if test -n "$ac_ct_CARGO"; then |
| 33163 |
ac_cv_prog_ac_ct_CARGO="$ac_ct_CARGO" # Let the user override the test. |
| 33164 |
else |
| 33165 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 33166 |
for as_dir in $PATH |
| 33167 |
do |
| 33168 |
IFS=$as_save_IFS |
| 33169 |
case $as_dir in #((( |
| 33170 |
'') as_dir=./ ;; |
| 33171 |
*/) ;; |
| 33172 |
*) as_dir=$as_dir/ ;; |
| 33173 |
esac |
| 33174 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 33175 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 33176 |
ac_cv_prog_ac_ct_CARGO="cargo" |
| 33177 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 33178 |
break 2 |
| 33179 |
fi |
| 33180 |
done |
| 33181 |
done |
| 33182 |
IFS=$as_save_IFS |
| 33183 |
|
| 33184 |
fi |
| 33185 |
fi |
| 33186 |
ac_ct_CARGO=$ac_cv_prog_ac_ct_CARGO |
| 33187 |
if test -n "$ac_ct_CARGO"; then |
| 33188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CARGO" >&5 |
| 33189 |
colorize_result "$ac_ct_CARGO" ; } |
| 33190 |
else |
| 33191 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33192 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 33193 |
fi |
| 33194 |
|
| 33195 |
if test "x$ac_ct_CARGO" = x; then |
| 33196 |
CARGO="no" |
| 33197 |
else |
| 33198 |
case $cross_compiling:$ac_tool_warned in |
| 33199 |
yes:) |
| 33200 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 33201 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 33202 |
ac_tool_warned=yes ;; |
| 33203 |
esac |
| 33204 |
CARGO=$ac_ct_CARGO |
| 33205 |
fi |
| 33206 |
else |
| 33207 |
CARGO="$ac_cv_prog_CARGO" |
| 33208 |
fi |
| 33209 |
|
| 33210 |
if test x"$CARGO" = "xno" |
| 33211 |
then : |
| 33212 |
as_fn_error $? "cargo is required. Installation instructions available at https://www.rust-lang.org/tools/install" "$LINENO" 5 |
| 33213 |
|
| 33214 |
fi |
| 33215 |
fi |
| 33216 |
|
| 33217 |
YJIT_LIBS="yjit/target/${rb_rust_target_subdir}/libyjit.a" |
| 33218 |
case "$target_os" in #( |
| 33219 |
openbsd*) : |
| 33220 |
|
| 33221 |
# Link libc++abi (which requires libpthread) for _Unwind_* functions needed by yjit |
| 33222 |
LDFLAGS="$LDFLAGS -lpthread -lc++abi" |
| 33223 |
;; #( |
| 33224 |
*) : |
| 33225 |
;; |
| 33226 |
esac |
| 33227 |
YJIT_OBJ='yjit.$(OBJEXT)' |
| 33228 |
if test x"$YJIT_SUPPORT" != "xyes" |
| 33229 |
then : |
| 33230 |
|
| 33231 |
printf "%s\n" "#define YJIT_SUPPORT $YJIT_SUPPORT" >>confdefs.h |
| 33232 |
|
| 33233 |
|
| 33234 |
fi |
| 33235 |
printf "%s\n" "#define USE_YJIT 1" >>confdefs.h |
| 33236 |
|
| 33237 |
;; #( |
| 33238 |
*) : |
| 33239 |
|
| 33240 |
printf "%s\n" "#define USE_YJIT 0" >>confdefs.h |
| 33241 |
|
| 33242 |
;; |
| 33243 |
esac |
| 33244 |
|
| 33245 |
|
| 33246 |
RJIT_TARGET_OK=no |
| 33247 |
if test "$cross_compiling" = no |
| 33248 |
then : |
| 33249 |
case "$target_cpu-$target_os" in #( |
| 33250 |
*android*) : |
| 33251 |
|
| 33252 |
RJIT_TARGET_OK=no |
| 33253 |
;; #( |
| 33254 |
arm64-darwin*|aarch64-darwin*|x86_64-darwin*) : |
| 33255 |
|
| 33256 |
RJIT_TARGET_OK=yes |
| 33257 |
;; #( |
| 33258 |
arm64-*linux*|aarch64-*linux*|x86_64-*linux*) : |
| 33259 |
|
| 33260 |
RJIT_TARGET_OK=yes |
| 33261 |
;; #( |
| 33262 |
arm64-*bsd*|aarch64-*bsd*|x86_64-*bsd*) : |
| 33263 |
|
| 33264 |
RJIT_TARGET_OK=yes |
| 33265 |
|
| 33266 |
;; #( |
| 33267 |
*) : |
| 33268 |
;; |
| 33269 |
esac |
| 33270 |
|
| 33271 |
fi |
| 33272 |
|
| 33273 |
# Check whether --enable-rjit was given. |
| 33274 |
if test ${enable_rjit+y} |
| 33275 |
then : |
| 33276 |
enableval=$enable_rjit; RJIT_SUPPORT=$enableval |
| 33277 |
else $as_nop |
| 33278 |
case "$RJIT_TARGET_OK" in #( |
| 33279 |
yes) : |
| 33280 |
RJIT_SUPPORT=yes ;; #( |
| 33281 |
*) : |
| 33282 |
RJIT_SUPPORT=no |
| 33283 |
;; |
| 33284 |
esac |
| 33285 |
|
| 33286 |
fi |
| 33287 |
|
| 33288 |
|
| 33289 |
case "$RJIT_SUPPORT" in #( |
| 33290 |
yes|dev) : |
| 33291 |
|
| 33292 |
case "$RJIT_SUPPORT" in #( |
| 33293 |
dev) : |
| 33294 |
|
| 33295 |
# Link libcapstone for --rjit-dump-disasm |
| 33296 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cs_disasm in -lcapstone" >&5 |
| 33297 |
printf %s "checking for cs_disasm in -lcapstone... " >&6; } |
| 33298 |
if test ${ac_cv_lib_capstone_cs_disasm+y} |
| 33299 |
then : |
| 33300 |
printf %s "(cached) " >&6 |
| 33301 |
else $as_nop |
| 33302 |
ac_check_lib_save_LIBS=$LIBS |
| 33303 |
LIBS="-lcapstone $LIBS" |
| 33304 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33305 |
/* end confdefs.h. */ |
| 33306 |
|
| 33307 |
/* Override any GCC internal prototype to avoid an error. |
| 33308 |
Use char because int might match the return type of a GCC |
| 33309 |
builtin and then its argument prototype would still apply. */ |
| 33310 |
char cs_disasm (); |
| 33311 |
int |
| 33312 |
main (void) |
| 33313 |
{ |
| 33314 |
return cs_disasm (); |
| 33315 |
; |
| 33316 |
return 0; |
| 33317 |
} |
| 33318 |
_ACEOF |
| 33319 |
if ac_fn_c_try_link "$LINENO" |
| 33320 |
then : |
| 33321 |
ac_cv_lib_capstone_cs_disasm=yes |
| 33322 |
else $as_nop |
| 33323 |
ac_cv_lib_capstone_cs_disasm=no |
| 33324 |
fi |
| 33325 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33326 |
conftest$ac_exeext conftest.$ac_ext |
| 33327 |
LIBS=$ac_check_lib_save_LIBS |
| 33328 |
fi |
| 33329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_capstone_cs_disasm" >&5 |
| 33330 |
colorize_result "$ac_cv_lib_capstone_cs_disasm" ; } |
| 33331 |
if test "x$ac_cv_lib_capstone_cs_disasm" = xyes |
| 33332 |
then : |
| 33333 |
printf "%s\n" "#define HAVE_LIBCAPSTONE 1" >>confdefs.h |
| 33334 |
|
| 33335 |
LIBS="-lcapstone $LIBS" |
| 33336 |
|
| 33337 |
fi |
| 33338 |
|
| 33339 |
;; #( |
| 33340 |
*) : |
| 33341 |
;; |
| 33342 |
esac |
| 33343 |
|
| 33344 |
printf "%s\n" "#define USE_RJIT 1" >>confdefs.h |
| 33345 |
|
| 33346 |
;; #( |
| 33347 |
*) : |
| 33348 |
|
| 33349 |
printf "%s\n" "#define USE_RJIT 0" >>confdefs.h |
| 33350 |
|
| 33351 |
;; |
| 33352 |
esac |
| 33353 |
|
| 33354 |
|
| 33355 |
} |
| 33356 |
|
| 33357 |
begin_group "build section" && { |
| 33358 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prefix of external symbols" >&5 |
| 33359 |
printf %s "checking for prefix of external symbols... " >&6; } |
| 33360 |
if test ${rb_cv_symbol_prefix+y} |
| 33361 |
then : |
| 33362 |
printf %s "(cached) " >&6 |
| 33363 |
else $as_nop |
| 33364 |
|
| 33365 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33366 |
/* end confdefs.h. */ |
| 33367 |
extern void conftest_external(void) {} |
| 33368 |
int |
| 33369 |
main (void) |
| 33370 |
{ |
| 33371 |
|
| 33372 |
; |
| 33373 |
return 0; |
| 33374 |
} |
| 33375 |
_ACEOF |
| 33376 |
if ac_fn_c_try_compile "$LINENO" |
| 33377 |
then : |
| 33378 |
|
| 33379 |
rb_cv_symbol_prefix=`$NM conftest.$ac_objext | |
| 33380 |
sed -n '/.*T[ ]\([^ ]*\)conftest_external.*/!d;s//\1/p;q'` |
| 33381 |
|
| 33382 |
else $as_nop |
| 33383 |
rb_cv_symbol_prefix='' |
| 33384 |
fi |
| 33385 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33386 |
test -n "$rb_cv_symbol_prefix" || rb_cv_symbol_prefix=NONE |
| 33387 |
|
| 33388 |
fi |
| 33389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_symbol_prefix" >&5 |
| 33390 |
colorize_result "$rb_cv_symbol_prefix" ; } |
| 33391 |
SYMBOL_PREFIX="$rb_cv_symbol_prefix" |
| 33392 |
test "x$SYMBOL_PREFIX" = xNONE && SYMBOL_PREFIX='' |
| 33393 |
|
| 33394 |
if test x"$enable_shared" = xyes |
| 33395 |
then : |
| 33396 |
|
| 33397 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default symbols in empty shared library" >&5 |
| 33398 |
printf %s "checking for default symbols in empty shared library... " >&6; } |
| 33399 |
if test ${rb_cv_symbols_in_emptylib+y} |
| 33400 |
then : |
| 33401 |
printf %s "(cached) " >&6 |
| 33402 |
else $as_nop |
| 33403 |
|
| 33404 |
save_CC="$CC" |
| 33405 |
eval CC=\"`printf "%s" "${DLDSHARED}" | sed 's/\$(CC)/${CC}/'`\" |
| 33406 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33407 |
/* end confdefs.h. */ |
| 33408 |
|
| 33409 |
int |
| 33410 |
main (void) |
| 33411 |
{ |
| 33412 |
|
| 33413 |
; |
| 33414 |
return 0; |
| 33415 |
} |
| 33416 |
_ACEOF |
| 33417 |
if ac_fn_c_try_link "$LINENO" |
| 33418 |
then : |
| 33419 |
|
| 33420 |
rb_cv_symbols_in_emptylib=`$NM -Pgp conftest$ac_exeext | |
| 33421 |
sed "/ [A-TV-Z] .*/!d;s///;s/^${SYMBOL_PREFIX}//;/^main$/d"` |
| 33422 |
|
| 33423 |
fi |
| 33424 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 33425 |
conftest$ac_exeext conftest.$ac_ext |
| 33426 |
set dummy ${rb_cv_symbols_in_emptylib} |
| 33427 |
shift |
| 33428 |
rb_cv_symbols_in_emptylib="$*" |
| 33429 |
CC="$save_CC" |
| 33430 |
|
| 33431 |
fi |
| 33432 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_symbols_in_emptylib" >&5 |
| 33433 |
colorize_result "$rb_cv_symbols_in_emptylib" ; } |
| 33434 |
|
| 33435 |
fi |
| 33436 |
XSYMBOLS_IN_EMPTYLIB="${rb_cv_symbols_in_emptylib}" |
| 33437 |
|
| 33438 |
|
| 33439 |
DLNOBJ=dln.o |
| 33440 |
# Check whether --enable-dln was given. |
| 33441 |
if test ${enable_dln+y} |
| 33442 |
then : |
| 33443 |
enableval=$enable_dln; test "$enableval" = yes || DLNOBJ=dmydln.o |
| 33444 |
fi |
| 33445 |
|
| 33446 |
|
| 33447 |
MINIDLNOBJ=dmydln.o |
| 33448 |
|
| 33449 |
case "$target_os" in #( |
| 33450 |
linux*) : |
| 33451 |
|
| 33452 |
;; #( |
| 33453 |
netbsd*) : |
| 33454 |
|
| 33455 |
# RUBY_APPEND_OPTION(CFLAGS) |
| 33456 |
case " ${CFLAGS-} " in #( |
| 33457 |
*" -pipe "*) : |
| 33458 |
;; #( |
| 33459 |
' ') : |
| 33460 |
CFLAGS="-pipe" ;; #( |
| 33461 |
*) : |
| 33462 |
CFLAGS="$CFLAGS -pipe" ;; |
| 33463 |
esac |
| 33464 |
;; #( |
| 33465 |
darwin*) : |
| 33466 |
|
| 33467 |
# RUBY_APPEND_OPTION(CFLAGS) |
| 33468 |
case " ${CFLAGS-} " in #( |
| 33469 |
*" -pipe "*) : |
| 33470 |
;; #( |
| 33471 |
' ') : |
| 33472 |
CFLAGS="-pipe" ;; #( |
| 33473 |
*) : |
| 33474 |
CFLAGS="$CFLAGS -pipe" ;; |
| 33475 |
esac |
| 33476 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Security framework is needed" >&5 |
| 33477 |
printf %s "checking whether Security framework is needed... " >&6; } |
| 33478 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33479 |
/* end confdefs.h. */ |
| 33480 |
|
| 33481 |
|
| 33482 |
#include <AvailabilityMacros.h> |
| 33483 |
enum { |
| 33484 |
least = MAC_OS_X_VERSION_10_7, /* just fail if undefined */ |
| 33485 |
required = MAC_OS_X_VERSION_MIN_REQUIRED, |
| 33486 |
upper /* bigger than MIN_REQUIRED, or */ |
| 33487 |
#ifdef MAC_OS_X_VERSION_10_10 |
| 33488 |
= MAC_OS_X_VERSION_10_10 |
| 33489 |
#endif |
| 33490 |
}; |
| 33491 |
int |
| 33492 |
main (void) |
| 33493 |
{ |
| 33494 |
static int test_array [1 - 2 * !(required >= least && required < upper)]; |
| 33495 |
test_array [0] = 0; |
| 33496 |
return test_array [0]; |
| 33497 |
|
| 33498 |
; |
| 33499 |
return 0; |
| 33500 |
} |
| 33501 |
_ACEOF |
| 33502 |
if ac_fn_c_try_compile "$LINENO" |
| 33503 |
then : |
| 33504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33505 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 33506 |
# RUBY_APPEND_OPTION(XLDFLAGS) |
| 33507 |
case " ${XLDFLAGS-} " in #( |
| 33508 |
*" -framework Security "*) : |
| 33509 |
;; #( |
| 33510 |
' ') : |
| 33511 |
XLDFLAGS="-framework Security" ;; #( |
| 33512 |
*) : |
| 33513 |
XLDFLAGS="$XLDFLAGS -framework Security" ;; |
| 33514 |
esac |
| 33515 |
# RUBY_APPEND_OPTION(LIBRUBYARG_STATIC) |
| 33516 |
case " ${LIBRUBYARG_STATIC-} " in #( |
| 33517 |
*" -framework Security "*) : |
| 33518 |
;; #( |
| 33519 |
' ') : |
| 33520 |
LIBRUBYARG_STATIC="-framework Security" ;; #( |
| 33521 |
*) : |
| 33522 |
LIBRUBYARG_STATIC="$LIBRUBYARG_STATIC -framework Security" ;; |
| 33523 |
esac |
| 33524 |
|
| 33525 |
else $as_nop |
| 33526 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33527 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 33528 |
|
| 33529 |
fi |
| 33530 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33531 |
# RUBY_APPEND_OPTION(XLDFLAGS) |
| 33532 |
case " ${XLDFLAGS-} " in #( |
| 33533 |
*" -framework CoreFoundation "*) : |
| 33534 |
;; #( |
| 33535 |
' ') : |
| 33536 |
XLDFLAGS="-framework CoreFoundation" ;; #( |
| 33537 |
*) : |
| 33538 |
XLDFLAGS="$XLDFLAGS -framework CoreFoundation" ;; |
| 33539 |
esac |
| 33540 |
# RUBY_APPEND_OPTION(LIBRUBYARG_STATIC) |
| 33541 |
case " ${LIBRUBYARG_STATIC-} " in #( |
| 33542 |
*" -framework CoreFoundation "*) : |
| 33543 |
;; #( |
| 33544 |
' ') : |
| 33545 |
LIBRUBYARG_STATIC="-framework CoreFoundation" ;; #( |
| 33546 |
*) : |
| 33547 |
LIBRUBYARG_STATIC="$LIBRUBYARG_STATIC -framework CoreFoundation" ;; |
| 33548 |
esac |
| 33549 |
;; #( |
| 33550 |
osf*) : |
| 33551 |
|
| 33552 |
if test "$GCC" != "yes" |
| 33553 |
then : |
| 33554 |
|
| 33555 |
# compile something small: taint.c is fine for this. |
| 33556 |
# the main point is the '-v' flag of 'cc'. |
| 33557 |
case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in #( |
| 33558 |
*/gemc_cc*) : |
| 33559 |
# we have the new DEC GEM CC |
| 33560 |
CFLAGS="$CFLAGS -oldc" |
| 33561 |
;; #( |
| 33562 |
*) : |
| 33563 |
# we have the old MIPS CC |
| 33564 |
;; |
| 33565 |
esac |
| 33566 |
# cleanup |
| 33567 |
rm -f /tmp/main.o |
| 33568 |
CFLAGS="$CFLAGS -std" |
| 33569 |
|
| 33570 |
fi |
| 33571 |
;; #( |
| 33572 |
cygwin*|msys*|mingw*) : |
| 33573 |
|
| 33574 |
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)' |
| 33575 |
case "$target_os" in #( |
| 33576 |
cygwin*) : |
| 33577 |
|
| 33578 |
if test x"$enable_shared" = xyes |
| 33579 |
then : |
| 33580 |
|
| 33581 |
LIBRUBY_SO='cyg$(RUBY_SO_NAME)'.dll |
| 33582 |
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)' |
| 33583 |
|
| 33584 |
fi |
| 33585 |
;; #( |
| 33586 |
mingw*) : |
| 33587 |
|
| 33588 |
if test x"$enable_shared" = xyes |
| 33589 |
then : |
| 33590 |
|
| 33591 |
LIBRUBY_SO='$(RUBY_SO_NAME)'.dll |
| 33592 |
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)' |
| 33593 |
|
| 33594 |
fi |
| 33595 |
EXPORT_PREFIX=' ' |
| 33596 |
EXTDLDFLAGS='$(DEFFILE)' |
| 33597 |
case " $LIBOBJS " in |
| 33598 |
*" win32/win32.$ac_objext "* ) ;; |
| 33599 |
*) LIBOBJS="$LIBOBJS win32/win32.$ac_objext" |
| 33600 |
;; |
| 33601 |
esac |
| 33602 |
|
| 33603 |
case " $LIBOBJS " in |
| 33604 |
*" win32/file.$ac_objext "* ) ;; |
| 33605 |
*) LIBOBJS="$LIBOBJS win32/file.$ac_objext" |
| 33606 |
;; |
| 33607 |
esac |
| 33608 |
|
| 33609 |
COMMON_LIBS=m |
| 33610 |
# COMMON_MACROS="WIN32_LEAN_AND_MEAN=" |
| 33611 |
COMMON_HEADERS="winsock2.h windows.h" |
| 33612 |
PLATFORM_DIR=win32 |
| 33613 |
;; #( |
| 33614 |
*) : |
| 33615 |
;; |
| 33616 |
esac |
| 33617 |
LIBRUBY_ALIASES='' |
| 33618 |
FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in |
| 33619 |
if test x"$enable_shared" = xyes |
| 33620 |
then : |
| 33621 |
|
| 33622 |
LIBRUBY='lib$(RUBY_SO_NAME).dll.a' |
| 33623 |
|
| 33624 |
else $as_nop |
| 33625 |
|
| 33626 |
LIBRUBY_SO=dummy |
| 33627 |
LIBRUBY='lib$(RUBY_SO_NAME).a' |
| 33628 |
LIBRUBYARG='-l$(RUBY_SO_NAME)' |
| 33629 |
|
| 33630 |
fi |
| 33631 |
;; #( |
| 33632 |
wasi*) : |
| 33633 |
|
| 33634 |
FIRSTMAKEFILE=GNUmakefile:wasm/GNUmakefile.in |
| 33635 |
case " $LIBOBJS " in |
| 33636 |
*" wasm/missing.$ac_objext "* ) ;; |
| 33637 |
*) LIBOBJS="$LIBOBJS wasm/missing.$ac_objext" |
| 33638 |
;; |
| 33639 |
esac |
| 33640 |
|
| 33641 |
case " $LIBOBJS " in |
| 33642 |
*" wasm/runtime.$ac_objext "* ) ;; |
| 33643 |
*) LIBOBJS="$LIBOBJS wasm/runtime.$ac_objext" |
| 33644 |
;; |
| 33645 |
esac |
| 33646 |
|
| 33647 |
case " $LIBOBJS " in |
| 33648 |
*" wasm/fiber.$ac_objext "* ) ;; |
| 33649 |
*) LIBOBJS="$LIBOBJS wasm/fiber.$ac_objext" |
| 33650 |
;; |
| 33651 |
esac |
| 33652 |
|
| 33653 |
case " $LIBOBJS " in |
| 33654 |
*" wasm/machine.$ac_objext "* ) ;; |
| 33655 |
*) LIBOBJS="$LIBOBJS wasm/machine.$ac_objext" |
| 33656 |
;; |
| 33657 |
esac |
| 33658 |
|
| 33659 |
case " $LIBOBJS " in |
| 33660 |
*" wasm/setjmp.$ac_objext "* ) ;; |
| 33661 |
*) LIBOBJS="$LIBOBJS wasm/setjmp.$ac_objext" |
| 33662 |
;; |
| 33663 |
esac |
| 33664 |
|
| 33665 |
case " $LIBOBJS " in |
| 33666 |
*" wasm/machine_core.$ac_objext "* ) ;; |
| 33667 |
*) LIBOBJS="$LIBOBJS wasm/machine_core.$ac_objext" |
| 33668 |
;; |
| 33669 |
esac |
| 33670 |
|
| 33671 |
case " $LIBOBJS " in |
| 33672 |
*" wasm/setjmp_core.$ac_objext "* ) ;; |
| 33673 |
*) LIBOBJS="$LIBOBJS wasm/setjmp_core.$ac_objext" |
| 33674 |
;; |
| 33675 |
esac |
| 33676 |
|
| 33677 |
PLATFORM_DIR=wasm |
| 33678 |
;; #( |
| 33679 |
*) : |
| 33680 |
;; |
| 33681 |
esac |
| 33682 |
|
| 33683 |
MINIOBJS="$MINIDLNOBJ" |
| 33684 |
|
| 33685 |
# Check whether --enable-debug-env was given. |
| 33686 |
if test ${enable_debug_env+y} |
| 33687 |
then : |
| 33688 |
enableval=$enable_debug_env; ENABLE_DEBUG_ENV=yes |
| 33689 |
|
| 33690 |
fi |
| 33691 |
|
| 33692 |
|
| 33693 |
case "$FIRSTMAKEFILE" in #( |
| 33694 |
*GNUmakefile:*) : |
| 33695 |
gnumake=yes ;; #( |
| 33696 |
*) : |
| 33697 |
|
| 33698 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ${MAKE-make} is GNU make" >&5 |
| 33699 |
printf %s "checking if ${MAKE-make} is GNU make... " >&6; } |
| 33700 |
mkdir conftest.dir |
| 33701 |
echo "all:; @echo yes" > conftest.dir/GNUmakefile |
| 33702 |
echo "all:; @echo no" > conftest.dir/Makefile |
| 33703 |
gnumake=`(cd conftest.dir; ${MAKE-make})` |
| 33704 |
rm -fr conftest.dir |
| 33705 |
case "$gnumake" in #( |
| 33706 |
*yes*) : |
| 33707 |
|
| 33708 |
FIRSTMAKEFILE=GNUmakefile:template/GNUmakefile.in |
| 33709 |
gnumake=yes ;; #( |
| 33710 |
*) : |
| 33711 |
|
| 33712 |
gnumake=no ;; |
| 33713 |
esac |
| 33714 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gnumake" >&5 |
| 33715 |
colorize_result "$gnumake" ; } |
| 33716 |
;; |
| 33717 |
esac |
| 33718 |
if test "$gnumake" = yes |
| 33719 |
then : |
| 33720 |
NULLCMD=: |
| 33721 |
else $as_nop |
| 33722 |
|
| 33723 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for safe null command for ${MAKE-make}" >&5 |
| 33724 |
printf %s "checking for safe null command for ${MAKE-make}... " >&6; } |
| 33725 |
mkdir conftest.dir |
| 33726 |
NULLCMD= |
| 33727 |
for cmd in : true; do |
| 33728 |
echo 'A=1' > conftest.dir/Makefile |
| 33729 |
echo 'B=$(A:1=@'$cmd')' >> conftest.dir/Makefile |
| 33730 |
echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile |
| 33731 |
if (cd conftest.dir; ${MAKE-make} >/dev/null 2>/dev/null) |
| 33732 |
then : |
| 33733 |
|
| 33734 |
NULLCMD=$cmd |
| 33735 |
break |
| 33736 |
|
| 33737 |
fi |
| 33738 |
done |
| 33739 |
rm -fr conftest.dir |
| 33740 |
if test -z "$NULLCMD" |
| 33741 |
then : |
| 33742 |
|
| 33743 |
as_fn_error $? "no candidate for safe null command" "$LINENO" 5 |
| 33744 |
|
| 33745 |
fi |
| 33746 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NULLCMD" >&5 |
| 33747 |
colorize_result "$NULLCMD" ; } |
| 33748 |
|
| 33749 |
fi |
| 33750 |
|
| 33751 |
|
| 33752 |
if test "${universal_binary-no}" = yes |
| 33753 |
then : |
| 33754 |
|
| 33755 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for architecture macros" >&5 |
| 33756 |
printf %s "checking for architecture macros... " >&6; } |
| 33757 |
if test ${rb_cv_architecture_macros+y} |
| 33758 |
then : |
| 33759 |
printf %s "(cached) " >&6 |
| 33760 |
else $as_nop |
| 33761 |
|
| 33762 |
mv confdefs.h confdefs1.h |
| 33763 |
: > confdefs.h |
| 33764 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33765 |
/* end confdefs.h. */ |
| 33766 |
#if defined __`echo ${universal_archnames} | |
| 33767 |
sed 's/=[^ ]*//g;s/ /__ || defined __/g'`__ |
| 33768 |
#else |
| 33769 |
#error |
| 33770 |
>>>>>><<<<<< |
| 33771 |
#endif |
| 33772 |
int |
| 33773 |
main (void) |
| 33774 |
{ |
| 33775 |
|
| 33776 |
; |
| 33777 |
return 0; |
| 33778 |
} |
| 33779 |
_ACEOF |
| 33780 |
if ac_fn_c_try_compile "$LINENO" |
| 33781 |
then : |
| 33782 |
|
| 33783 |
rb_cv_architecture_macros=yes |
| 33784 |
mv -f confdefs1.h confdefs.h |
| 33785 |
|
| 33786 |
else $as_nop |
| 33787 |
|
| 33788 |
rb_cv_architecture_macros=no |
| 33789 |
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` |
| 33790 |
new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'` |
| 33791 |
for archs in ${universal_archnames}; do |
| 33792 |
cpu=${archs#*=} |
| 33793 |
archs=${archs%=*} |
| 33794 |
CFLAGS="$new_cflags -arch $archs" |
| 33795 |
archs="__${archs}__" |
| 33796 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for macro ${archs} on ${cpu}" >&5 |
| 33797 |
printf %s "checking for macro ${archs} on ${cpu}... " >&6; } |
| 33798 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33799 |
/* end confdefs.h. */ |
| 33800 |
#ifndef ${archs} |
| 33801 |
#error |
| 33802 |
#endif |
| 33803 |
int |
| 33804 |
main (void) |
| 33805 |
{ |
| 33806 |
|
| 33807 |
; |
| 33808 |
return 0; |
| 33809 |
} |
| 33810 |
_ACEOF |
| 33811 |
if ac_fn_c_try_compile "$LINENO" |
| 33812 |
then : |
| 33813 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 33814 |
printf "%s\n" "${msg_result_yes}yes${msg_reset}" >&6 ; } |
| 33815 |
else $as_nop |
| 33816 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 33817 |
printf "%s\n" "${msg_result_no}no${msg_reset}" >&6 ; } |
| 33818 |
fi |
| 33819 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33820 |
done |
| 33821 |
mv -f confdefs1.h confdefs.h |
| 33822 |
as_fn_error $? "failed" "$LINENO" 5 |
| 33823 |
|
| 33824 |
fi |
| 33825 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33826 |
fi |
| 33827 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_macros" >&5 |
| 33828 |
colorize_result "$rb_cv_architecture_macros" ; } |
| 33829 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __ARCHITECTURE__ is available" >&5 |
| 33830 |
printf %s "checking whether __ARCHITECTURE__ is available... " >&6; } |
| 33831 |
if test ${rb_cv_architecture_available+y} |
| 33832 |
then : |
| 33833 |
printf %s "(cached) " >&6 |
| 33834 |
else $as_nop |
| 33835 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 33836 |
/* end confdefs.h. */ |
| 33837 |
#include <stdio.h> |
| 33838 |
const char arch[] = __ARCHITECTURE__; |
| 33839 |
int |
| 33840 |
main (void) |
| 33841 |
{ |
| 33842 |
puts(arch); |
| 33843 |
; |
| 33844 |
return 0; |
| 33845 |
} |
| 33846 |
_ACEOF |
| 33847 |
if ac_fn_c_try_compile "$LINENO" |
| 33848 |
then : |
| 33849 |
rb_cv_architecture_available=yes |
| 33850 |
else $as_nop |
| 33851 |
rb_cv_architecture_available=no |
| 33852 |
fi |
| 33853 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 33854 |
fi |
| 33855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rb_cv_architecture_available" >&5 |
| 33856 |
colorize_result "$rb_cv_architecture_available" ; } |
| 33857 |
|
| 33858 |
fi |
| 33859 |
} |
| 33860 |
|
| 33861 |
end_group |
| 33862 |
|
| 33863 |
MAINLIBS="$LIBS" |
| 33864 |
LIBS=$ORIG_LIBS |
| 33865 |
if test -n "${LIBS}" |
| 33866 |
then : |
| 33867 |
|
| 33868 |
libspat=`echo "${LIBS}" | sed 's/[][|.*$^]/\\&/g;s/^ */ /;s/^ *$/ /'` |
| 33869 |
MAINFLAGS=`echo " $MAINLIBS " | sed "s|$libspat"'||;s/^ *//;s/ *$//'` |
| 33870 |
|
| 33871 |
fi |
| 33872 |
LIBRUBYARG_STATIC="${LIBRUBYARG_STATIC} \$(MAINLIBS)" |
| 33873 |
CPPFLAGS="$CPPFLAGS "'$(DEFS)' |
| 33874 |
test -z "$CPPFLAGS" || CPPFLAGS="$CPPFLAGS "; CPPFLAGS="$CPPFLAGS"'${cppflags}' |
| 33875 |
if test -n "${cflags+set}" |
| 33876 |
then : |
| 33877 |
|
| 33878 |
cflagspat=`eval echo '"'"${cflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/^ *$/ /'` |
| 33879 |
CFLAGS=`echo " $CFLAGS " | sed "s|$cflagspat"'|${cflags}|;s/^ *//;s/ *$//'` |
| 33880 |
|
| 33881 |
fi |
| 33882 |
if test -n "${cxxflags+set}" |
| 33883 |
then : |
| 33884 |
|
| 33885 |
cxxflagspat=`eval echo '"'"${cxxflags}"'"' | sed 's/[][|.*]/\\&/g;s/^ */ /;s/^ *$/ /'` |
| 33886 |
CXXFLAGS=`echo " $CXXFLAGS " | sed "s|$cxxflagspat"'|${cxxflags}|;s/^ *//;s/ *$//'` |
| 33887 |
|
| 33888 |
fi |
| 33889 |
if test "${ARCH_FLAG}" |
| 33890 |
then : |
| 33891 |
|
| 33892 |
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[][|.*]/\\&/g'` |
| 33893 |
CFLAGS=`echo "$CFLAGS" | sed "s| *$archflagpat"'||'` |
| 33894 |
CXXFLAGS=`echo "$CXXFLAGS" | sed "s| *$archflagpat"'||'` |
| 33895 |
LDFLAGS=`echo "$LDFLAGS" | sed "s| *$archflagpat"'||'` |
| 33896 |
|
| 33897 |
fi |
| 33898 |
rb_cv_warnflags=`echo "$rb_cv_warnflags" | sed 's/^ *//;s/ *$//'` |
| 33899 |
warnflags="$rb_cv_warnflags" |
| 33900 |
cflags="${orig_cflags:+$orig_cflags }"'${optflags} ${debugflags} ${warnflags}' |
| 33901 |
|
| 33902 |
|
| 33903 |
|
| 33904 |
|
| 33905 |
|
| 33906 |
|
| 33907 |
|
| 33908 |
|
| 33909 |
|
| 33910 |
|
| 33911 |
|
| 33912 |
|
| 33913 |
|
| 33914 |
|
| 33915 |
|
| 33916 |
|
| 33917 |
|
| 33918 |
|
| 33919 |
|
| 33920 |
|
| 33921 |
|
| 33922 |
|
| 33923 |
|
| 33924 |
|
| 33925 |
|
| 33926 |
|
| 33927 |
COROUTINE_TYPE=${coroutine_type} |
| 33928 |
|
| 33929 |
|
| 33930 |
|
| 33931 |
|
| 33932 |
firstmf=`echo $FIRSTMAKEFILE | sed 's/:.*//'` |
| 33933 |
firsttmpl=`echo $FIRSTMAKEFILE | sed 's/.*://'` |
| 33934 |
MAKEFILES="Makefile $firstmf" |
| 33935 |
MAKEFILES="`echo $MAKEFILES`" |
| 33936 |
|
| 33937 |
|
| 33938 |
ri_prefix= |
| 33939 |
test "$program_prefix" != NONE && |
| 33940 |
ri_prefix=$program_prefix |
| 33941 |
|
| 33942 |
ri_suffix= |
| 33943 |
test "$program_suffix" != NONE && |
| 33944 |
ri_suffix=$program_suffix |
| 33945 |
|
| 33946 |
RUBY_INSTALL_NAME="${ri_prefix}"'$(RUBY_BASE_NAME)'"${ri_suffix}" |
| 33947 |
case "$target_os" in #( |
| 33948 |
cygwin*|msys*|mingw*) : |
| 33949 |
|
| 33950 |
RUBYW_INSTALL_NAME="${ri_prefix}"'$(RUBYW_BASE_NAME)'"${ri_suffix}" |
| 33951 |
rubyw_install_name='$(RUBYW_INSTALL_NAME)' |
| 33952 |
;; #( |
| 33953 |
*) : |
| 33954 |
;; |
| 33955 |
esac |
| 33956 |
|
| 33957 |
rubylibdir='${rubylibprefix}/${ruby_version}' |
| 33958 |
rubyarchdir=${multiarch+'${rubyarchprefix}/${ruby_version}'}${multiarch-'${rubylibdir}/${arch}'} |
| 33959 |
|
| 33960 |
rubyarchprefix=${multiarch+'${archlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${arch}'} |
| 33961 |
|
| 33962 |
# Check whether --with-rubyarchprefix was given. |
| 33963 |
if test ${with_rubyarchprefix+y} |
| 33964 |
then : |
| 33965 |
withval=$with_rubyarchprefix; rubyarchprefix="$withval" |
| 33966 |
fi |
| 33967 |
|
| 33968 |
|
| 33969 |
|
| 33970 |
rubysitearchprefix=${multiarch+'${sitearchlibdir}/${RUBY_BASE_NAME}'}${multiarch-'${rubylibprefix}/${sitearch}'} |
| 33971 |
|
| 33972 |
# Check whether --with-rubysitearchprefix was given. |
| 33973 |
if test ${with_rubysitearchprefix+y} |
| 33974 |
then : |
| 33975 |
withval=$with_rubysitearchprefix; rubysitearchprefix="$withval" |
| 33976 |
fi |
| 33977 |
|
| 33978 |
|
| 33979 |
|
| 33980 |
RI_BASE_NAME=`echo ${RUBY_BASE_NAME} | sed 's/ruby/ri/'` |
| 33981 |
ridir='${datarootdir}/${RI_BASE_NAME}' |
| 33982 |
|
| 33983 |
# Check whether --with-ridir was given. |
| 33984 |
if test ${with_ridir+y} |
| 33985 |
then : |
| 33986 |
withval=$with_ridir; ridir=$withval |
| 33987 |
fi |
| 33988 |
|
| 33989 |
|
| 33990 |
|
| 33991 |
|
| 33992 |
|
| 33993 |
# Check whether --with-ruby-version was given. |
| 33994 |
if test ${with_ruby_version+y} |
| 33995 |
then : |
| 33996 |
withval=$with_ruby_version; ruby_version=$withval |
| 33997 |
else $as_nop |
| 33998 |
ruby_version=full |
| 33999 |
fi |
| 34000 |
|
| 34001 |
unset RUBY_LIB_VERSION |
| 34002 |
unset RUBY_LIB_VERSION_STYLE |
| 34003 |
case "$ruby_version" in #( |
| 34004 |
full) : |
| 34005 |
RUBY_LIB_VERSION_STYLE='3 /* full */' ;; #( |
| 34006 |
minor) : |
| 34007 |
RUBY_LIB_VERSION_STYLE='2 /* minor */' ;; #( |
| 34008 |
*) : |
| 34009 |
;; |
| 34010 |
esac |
| 34011 |
if test ${RUBY_LIB_VERSION_STYLE+set} |
| 34012 |
then : |
| 34013 |
|
| 34014 |
{ |
| 34015 |
echo "#define RUBY_LIB_VERSION_STYLE $RUBY_LIB_VERSION_STYLE" |
| 34016 |
echo '#include "confdefs.h"' |
| 34017 |
echo '#define STRINGIZE(x) x' |
| 34018 |
test -f revision.h -o -f "${srcdir}/revision.h" || echo '#define RUBY_REVISION 0' |
| 34019 |
echo '#include "version.h"' |
| 34020 |
echo 'ruby_version=RUBY_LIB_VERSION' |
| 34021 |
} > conftest.c |
| 34022 |
ruby_version="`$CPP -I. -I"${srcdir}" -I"${srcdir}/include" conftest.c | sed '/^ruby_version=/!d;s/ //g'`" |
| 34023 |
eval $ruby_version |
| 34024 |
|
| 34025 |
elif test -z "${ruby_version}" |
| 34026 |
then : |
| 34027 |
|
| 34028 |
as_fn_error $? "No ruby version, No place for bundled libraries" "$LINENO" 5 |
| 34029 |
|
| 34030 |
else $as_nop |
| 34031 |
|
| 34032 |
RUBY_LIB_VERSION="${ruby_version}" |
| 34033 |
|
| 34034 |
fi |
| 34035 |
|
| 34036 |
|
| 34037 |
|
| 34038 |
|
| 34039 |
# Check whether --with-sitedir was given. |
| 34040 |
if test ${with_sitedir+y} |
| 34041 |
then : |
| 34042 |
withval=$with_sitedir; sitedir=$withval |
| 34043 |
else $as_nop |
| 34044 |
sitedir='${rubylibprefix}/site_ruby' |
| 34045 |
fi |
| 34046 |
|
| 34047 |
sitelibdir='${sitedir}/${ruby_version}' |
| 34048 |
|
| 34049 |
|
| 34050 |
# Check whether --with-sitearchdir was given. |
| 34051 |
if test ${with_sitearchdir+y} |
| 34052 |
then : |
| 34053 |
withval=$with_sitearchdir; sitearchdir=$withval |
| 34054 |
else $as_nop |
| 34055 |
sitearchdir=${multiarch+'${rubysitearchprefix}/site_ruby/${ruby_version}'}${multiarch-'${sitelibdir}/${sitearch}'} |
| 34056 |
fi |
| 34057 |
|
| 34058 |
|
| 34059 |
|
| 34060 |
# Check whether --with-vendordir was given. |
| 34061 |
if test ${with_vendordir+y} |
| 34062 |
then : |
| 34063 |
withval=$with_vendordir; vendordir=$withval |
| 34064 |
else $as_nop |
| 34065 |
vendordir='${rubylibprefix}/vendor_ruby' |
| 34066 |
fi |
| 34067 |
|
| 34068 |
vendorlibdir='${vendordir}/${ruby_version}' |
| 34069 |
|
| 34070 |
|
| 34071 |
# Check whether --with-vendorarchdir was given. |
| 34072 |
if test ${with_vendorarchdir+y} |
| 34073 |
then : |
| 34074 |
withval=$with_vendorarchdir; vendorarchdir=$withval |
| 34075 |
else $as_nop |
| 34076 |
vendorarchdir=${multiarch+'${rubysitearchprefix}/vendor_ruby/${ruby_version}'}${multiarch-'${vendorlibdir}/${sitearch}'} |
| 34077 |
fi |
| 34078 |
|
| 34079 |
|
| 34080 |
if test "${LOAD_RELATIVE+set}" |
| 34081 |
then : |
| 34082 |
|
| 34083 |
printf "%s\n" "#define LOAD_RELATIVE $LOAD_RELATIVE" >>confdefs.h |
| 34084 |
|
| 34085 |
RUBY_EXEC_PREFIX='' |
| 34086 |
|
| 34087 |
fi |
| 34088 |
|
| 34089 |
|
| 34090 |
|
| 34091 |
libdirname=${multiarch+arch}libdir |
| 34092 |
|
| 34093 |
|
| 34094 |
CONFIGURE="`echo $0 | sed 's|.*/||'`" |
| 34095 |
configure_args="`echo "${ac_configure_args}" | sed 's/\\$/$$/g'`" |
| 34096 |
|
| 34097 |
if test "${universal_binary-no}" = yes |
| 34098 |
then : |
| 34099 |
|
| 34100 |
arch="universal-${target_os}" |
| 34101 |
if test "${rb_cv_architecture_available}" = yes |
| 34102 |
then : |
| 34103 |
|
| 34104 |
printf "%s\n" "#define RUBY_PLATFORM_CPU __ARCHITECTURE__" >>confdefs.h |
| 34105 |
|
| 34106 |
|
| 34107 |
else $as_nop |
| 34108 |
|
| 34109 |
for archs in ${universal_archnames}; do |
| 34110 |
cpu=`echo $archs | sed 's/.*=//'` |
| 34111 |
archs=`echo $archs | sed 's/=.*//'` |
| 34112 |
test "Xdefined __${archs}__ &&! defined RUBY_PLATFORM_CPU" = X || printf "#if %s\n" "defined __${archs}__ &&! defined RUBY_PLATFORM_CPU" >>confdefs.h |
| 34113 |
printf "%s\n" "#define RUBY_PLATFORM_CPU \"${cpu}\"" >>confdefs.h |
| 34114 |
test "Xdefined __${archs}__ &&! defined RUBY_PLATFORM_CPU" = X || printf "#endif /* %s */\n" "defined __${archs}__ &&! defined RUBY_PLATFORM_CPU" >>confdefs.h |
| 34115 |
|
| 34116 |
done |
| 34117 |
|
| 34118 |
fi |
| 34119 |
ints='long int short' |
| 34120 |
test "$ac_cv_type_long_long" = yes && ints="'long long' $ints" |
| 34121 |
UNIVERSAL_ARCHNAMES="${universal_archnames}" |
| 34122 |
|
| 34123 |
UNIVERSAL_INTS="${ints}" |
| 34124 |
|
| 34125 |
printf "%s\n" "#define RUBY_PLATFORM_OS \"${target_os}\"" >>confdefs.h |
| 34126 |
|
| 34127 |
printf "%s\n" "#define RUBY_ARCH \"universal-\" RUBY_PLATFORM_OS" >>confdefs.h |
| 34128 |
|
| 34129 |
printf "%s\n" "#define RUBY_PLATFORM \"universal.\" RUBY_PLATFORM_CPU \"-\" RUBY_PLATFORM_OS" >>confdefs.h |
| 34130 |
|
| 34131 |
|
| 34132 |
else $as_nop |
| 34133 |
|
| 34134 |
if test "${target_os}-${rb_cv_msvcrt}" = "mingw32-ucrt" |
| 34135 |
then : |
| 34136 |
|
| 34137 |
arch="${target_cpu}-mingw-ucrt" |
| 34138 |
|
| 34139 |
else $as_nop |
| 34140 |
|
| 34141 |
arch="${target_cpu}-${target_os}" |
| 34142 |
|
| 34143 |
fi |
| 34144 |
printf "%s\n" "#define RUBY_PLATFORM \"$arch\"" >>confdefs.h |
| 34145 |
|
| 34146 |
|
| 34147 |
if test "$arch" = "s390x-linux" |
| 34148 |
then : |
| 34149 |
|
| 34150 |
printf "%s\n" "#define USE_MN_THREADS 0" >>confdefs.h |
| 34151 |
|
| 34152 |
|
| 34153 |
fi |
| 34154 |
|
| 34155 |
fi |
| 34156 |
|
| 34157 |
unset sitearch |
| 34158 |
case "$target_os" in #( |
| 34159 |
mingw*) : |
| 34160 |
sitearch="$target_cpu-$rb_cv_msvcrt" ;; #( |
| 34161 |
*) : |
| 34162 |
;; |
| 34163 |
esac |
| 34164 |
: ${sitearch='${arch}'} |
| 34165 |
|
| 34166 |
|
| 34167 |
# Check whether --with-search-path was given. |
| 34168 |
if test ${with_search_path+y} |
| 34169 |
then : |
| 34170 |
withval=$with_search_path; search_path=$withval |
| 34171 |
fi |
| 34172 |
|
| 34173 |
if test "$search_path" != "" |
| 34174 |
then : |
| 34175 |
|
| 34176 |
RUBY_SEARCH_PATH=$search_path |
| 34177 |
|
| 34178 |
|
| 34179 |
fi |
| 34180 |
|
| 34181 |
|
| 34182 |
# Check whether --with-rubyhdrdir was given. |
| 34183 |
if test ${with_rubyhdrdir+y} |
| 34184 |
then : |
| 34185 |
withval=$with_rubyhdrdir; rubyhdrdir=$withval |
| 34186 |
else $as_nop |
| 34187 |
rubyhdrdir='${includedir}/${RUBY_VERSION_NAME}' |
| 34188 |
fi |
| 34189 |
|
| 34190 |
|
| 34191 |
|
| 34192 |
# Check whether --with-rubyarchhdrdir was given. |
| 34193 |
if test ${with_rubyarchhdrdir+y} |
| 34194 |
then : |
| 34195 |
withval=$with_rubyarchhdrdir; rubyarchhdrdir=$withval |
| 34196 |
else $as_nop |
| 34197 |
rubyarchhdrdir=${multiarch+'${archincludedir}/${RUBY_VERSION_NAME}'}${multiarch-'${rubyhdrdir}/${arch}'} |
| 34198 |
fi |
| 34199 |
|
| 34200 |
|
| 34201 |
|
| 34202 |
# Check whether --with-sitehdrdir was given. |
| 34203 |
if test ${with_sitehdrdir+y} |
| 34204 |
then : |
| 34205 |
withval=$with_sitehdrdir; sitehdrdir=$withval |
| 34206 |
else $as_nop |
| 34207 |
sitehdrdir='${rubyhdrdir}/site_ruby' |
| 34208 |
fi |
| 34209 |
|
| 34210 |
|
| 34211 |
|
| 34212 |
# Check whether --with-sitearchhdrdir was given. |
| 34213 |
if test ${with_sitearchhdrdir+y} |
| 34214 |
then : |
| 34215 |
withval=$with_sitearchhdrdir; sitearchhdrdir=$withval |
| 34216 |
else $as_nop |
| 34217 |
sitearchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/site_ruby'}${multiarch-'${sitehdrdir}/${sitearch}'} |
| 34218 |
fi |
| 34219 |
|
| 34220 |
|
| 34221 |
|
| 34222 |
# Check whether --with-vendorhdrdir was given. |
| 34223 |
if test ${with_vendorhdrdir+y} |
| 34224 |
then : |
| 34225 |
withval=$with_vendorhdrdir; vendorhdrdir=$withval |
| 34226 |
else $as_nop |
| 34227 |
vendorhdrdir='${rubyhdrdir}/vendor_ruby' |
| 34228 |
fi |
| 34229 |
|
| 34230 |
|
| 34231 |
|
| 34232 |
# Check whether --with-vendorarchhdrdir was given. |
| 34233 |
if test ${with_vendorarchhdrdir+y} |
| 34234 |
then : |
| 34235 |
withval=$with_vendorarchhdrdir; vendorarchhdrdir=$withval |
| 34236 |
else $as_nop |
| 34237 |
vendorarchhdrdir=${multiarch+'${sitearchincludedir}/${RUBY_VERSION_NAME}/vendor_ruby'}${multiarch-'${vendorhdrdir}/${sitearch}'} |
| 34238 |
fi |
| 34239 |
|
| 34240 |
|
| 34241 |
|
| 34242 |
|
| 34243 |
# Check whether --with-mantype was given. |
| 34244 |
if test ${with_mantype+y} |
| 34245 |
then : |
| 34246 |
withval=$with_mantype; |
| 34247 |
case "$withval" in #( |
| 34248 |
man|man.gz|man.bz2|doc|doc.gz|doc.bz2) : |
| 34249 |
MANTYPE=$withval ;; #( |
| 34250 |
*) : |
| 34251 |
as_fn_error $? "invalid man type: $withval" "$LINENO" 5 ;; |
| 34252 |
esac |
| 34253 |
|
| 34254 |
fi |
| 34255 |
|
| 34256 |
if test -z "$MANTYPE" |
| 34257 |
then : |
| 34258 |
|
| 34259 |
if test ${ac_cv_path_NROFF+y} |
| 34260 |
then : |
| 34261 |
printf %s "(cached) " >&6 |
| 34262 |
else $as_nop |
| 34263 |
|
| 34264 |
if test -z "$NROFF"; then |
| 34265 |
ac_path_NROFF_found=false |
| 34266 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 34267 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34268 |
as_dummy=""/usr/bin:/usr/ucb" |
| 34269 |
" |
| 34270 |
for as_dir in $as_dummy |
| 34271 |
do |
| 34272 |
IFS=$as_save_IFS |
| 34273 |
case $as_dir in #((( |
| 34274 |
'') as_dir=./ ;; |
| 34275 |
*/) ;; |
| 34276 |
*) as_dir=$as_dir/ ;; |
| 34277 |
esac |
| 34278 |
for ac_prog in nroff awf mandoc |
| 34279 |
do |
| 34280 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 34281 |
ac_path_NROFF="$as_dir$ac_prog$ac_exec_ext" |
| 34282 |
as_fn_executable_p "$ac_path_NROFF" || continue |
| 34283 |
$ac_path_NROFF -mdoc ${srcdir}/man/ruby.1 \ |
| 34284 |
>/dev/null 2>&1 && |
| 34285 |
ac_cv_path_NROFF=$ac_path_NROFF \ |
| 34286 |
ac_path_NROFF_found=: |
| 34287 |
$ac_path_NROFF_found && break 3 |
| 34288 |
done |
| 34289 |
done |
| 34290 |
done |
| 34291 |
IFS=$as_save_IFS |
| 34292 |
if test -z "$ac_cv_path_NROFF"; then |
| 34293 |
: |
| 34294 |
fi |
| 34295 |
else |
| 34296 |
ac_cv_path_NROFF=$NROFF |
| 34297 |
fi |
| 34298 |
|
| 34299 |
|
| 34300 |
fi |
| 34301 |
|
| 34302 |
if test -n "$ac_cv_path_NROFF" |
| 34303 |
then : |
| 34304 |
|
| 34305 |
MANTYPE=doc |
| 34306 |
|
| 34307 |
else $as_nop |
| 34308 |
|
| 34309 |
MANTYPE=man |
| 34310 |
|
| 34311 |
fi |
| 34312 |
|
| 34313 |
fi |
| 34314 |
|
| 34315 |
|
| 34316 |
MKMF_VERBOSE=0 |
| 34317 |
# Check whether --enable-mkmf-verbose was given. |
| 34318 |
if test ${enable_mkmf_verbose+y} |
| 34319 |
then : |
| 34320 |
enableval=$enable_mkmf_verbose; MKMF_VERBOSE=1 |
| 34321 |
else $as_nop |
| 34322 |
MKMF_VERBOSE=0 |
| 34323 |
fi |
| 34324 |
|
| 34325 |
|
| 34326 |
|
| 34327 |
# Check whether --enable-rubygems was given. |
| 34328 |
if test ${enable_rubygems+y} |
| 34329 |
then : |
| 34330 |
enableval=$enable_rubygems; enable_rubygems="$enableval" |
| 34331 |
else $as_nop |
| 34332 |
enable_rubygems=yes |
| 34333 |
fi |
| 34334 |
|
| 34335 |
if test x"$enable_rubygems" = xno |
| 34336 |
then : |
| 34337 |
|
| 34338 |
USE_RUBYGEMS=no |
| 34339 |
|
| 34340 |
else $as_nop |
| 34341 |
|
| 34342 |
USE_RUBYGEMS=yes |
| 34343 |
|
| 34344 |
fi |
| 34345 |
|
| 34346 |
|
| 34347 |
arch_hdrdir="${EXTOUT}/include/${arch}/ruby" |
| 34348 |
as_dir="${arch_hdrdir}"; as_fn_mkdir_p |
| 34349 |
config_h="${arch_hdrdir}/config.h" |
| 34350 |
guard=INCLUDE_RUBY_CONFIG_H |
| 34351 |
{ |
| 34352 |
echo "#ifndef $guard" |
| 34353 |
echo "#define $guard 1" |
| 34354 |
sed "/^#define PACKAGE_/d;s/ *$//" confdefs.h |
| 34355 |
echo "#endif /* $guard */" |
| 34356 |
} | tr -d '\015' | |
| 34357 |
( |
| 34358 |
if test "x$CONFIGURE_TTY" = xyes |
| 34359 |
then : |
| 34360 |
color=--color |
| 34361 |
else $as_nop |
| 34362 |
color= |
| 34363 |
fi |
| 34364 |
exec ${SHELL} ${tooldir}/ifchange $color "${config_h}" - |
| 34365 |
) >&6 || as_fn_error $? "failed to create ${config_h}" "$LINENO" 5 |
| 34366 |
tr -d '\015' < largefile.h > confdefs.h |
| 34367 |
rm largefile.h |
| 34368 |
|
| 34369 |
BUILTIN_ENCS="`sed -n -e '/^BUILTIN_ENCS[ ]*=/{' \ |
| 34370 |
-e s/// -e :l -e '/\\\\$/N' -e 's/\\\\\\n/ /' -e 't l' -e p \ |
| 34371 |
-e '}' "${srcdir}/enc/Makefile.in"`" |
| 34372 |
BUILTIN_ENCOBJS= |
| 34373 |
for e in $BUILTIN_ENCS; do BUILTIN_ENCOBJS="$BUILTIN_ENCOBJS "`echo $e | sed 's/\.c$/.$(OBJEXT)/'`; done |
| 34374 |
|
| 34375 |
|
| 34376 |
BUILTIN_TRANSES="`sed -n -e '/^BUILTIN_TRANSES[ ]*=/{' \ |
| 34377 |
-e s/// -e :l -e '/\\\\$/N' -e 's/\\\\\\n/ /' -e 't l' -e p \ |
| 34378 |
-e '}' "${srcdir}/enc/Makefile.in"`" |
| 34379 |
BUILTIN_TRANSSRCS= |
| 34380 |
BUILTIN_TRANSOBJS= |
| 34381 |
for e in $BUILTIN_TRANSES; do |
| 34382 |
BUILTIN_TRANSSRCS="$BUILTIN_TRANSSRCS "`echo $e | sed 's/\.trans$/.c/'` |
| 34383 |
BUILTIN_TRANSOBJS="$BUILTIN_TRANSOBJS "`echo $e | sed 's/\.trans$/.$(OBJEXT)/'` |
| 34384 |
done |
| 34385 |
|
| 34386 |
|
| 34387 |
|
| 34388 |
PACKAGE=$RUBY_BASE_NAME |
| 34389 |
|
| 34390 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $PACKAGE library version = $ruby_version" >&5 |
| 34391 |
printf "%s\n" "$as_me: $PACKAGE library version = $ruby_version" >&6;} |
| 34392 |
|
| 34393 |
if test x"$CC_WRAPPER" != x |
| 34394 |
then : |
| 34395 |
|
| 34396 |
CC='$(CC_WRAPPER) '"${CC#$CC_WRAPPER }" |
| 34397 |
CPP='$(CC_WRAPPER) '"${CPP#$CC_WRAPPER }" |
| 34398 |
XCC_WRAPPER="$CC_WRAPPER" |
| 34399 |
|
| 34400 |
fi |
| 34401 |
CC_WRAPPER='' |
| 34402 |
|
| 34403 |
|
| 34404 |
|
| 34405 |
case " $CPP " in #( |
| 34406 |
*" $CC "*) : |
| 34407 |
CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'` ;; #( |
| 34408 |
*) : |
| 34409 |
;; |
| 34410 |
esac |
| 34411 |
|
| 34412 |
if test ! -f "$srcdir/revision.h" |
| 34413 |
then : |
| 34414 |
|
| 34415 |
if test "x$HAVE_BASERUBY" = xyes |
| 34416 |
then : |
| 34417 |
|
| 34418 |
${BASERUBY} -C "$srcdir" tool/file2lastrev.rb -q --revision.h > "$srcdir/revision.h" |
| 34419 |
|
| 34420 |
else $as_nop |
| 34421 |
|
| 34422 |
touch "$srcdir/revision.h" |
| 34423 |
|
| 34424 |
fi |
| 34425 |
|
| 34426 |
fi |
| 34427 |
|
| 34428 |
if test x"$firstmf" != x |
| 34429 |
then : |
| 34430 |
|
| 34431 |
ac_config_files="$ac_config_files $firstmf:$firsttmpl" |
| 34432 |
|
| 34433 |
|
| 34434 |
fi |
| 34435 |
ac_config_files="$ac_config_files Makefile:template/Makefile.in" |
| 34436 |
|
| 34437 |
|
| 34438 |
|
| 34439 |
# Check whether --with-ruby-pc was given. |
| 34440 |
if test ${with_ruby_pc+y} |
| 34441 |
then : |
| 34442 |
withval=$with_ruby_pc; ruby_pc="$withval" |
| 34443 |
else $as_nop |
| 34444 |
ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc" |
| 34445 |
fi |
| 34446 |
|
| 34447 |
|
| 34448 |
exec=exec |
| 34449 |
|
| 34450 |
|
| 34451 |
|
| 34452 |
# Check whether --with-destdir was given. |
| 34453 |
if test ${with_destdir+y} |
| 34454 |
then : |
| 34455 |
withval=$with_destdir; DESTDIR="$withval" |
| 34456 |
fi |
| 34457 |
|
| 34458 |
|
| 34459 |
|
| 34460 |
cat >confcache <<\_ACEOF |
| 34461 |
# This file is a shell script that caches the results of configure |
| 34462 |
# tests run on this system so they can be shared between configure |
| 34463 |
# scripts and configure runs, see configure's option --config-cache. |
| 34464 |
# It is not useful on other systems. If it contains results you don't |
| 34465 |
# want to keep, you may remove or edit it. |
| 34466 |
# |
| 34467 |
# config.status only pays attention to the cache file if you give it |
| 34468 |
# the --recheck option to rerun configure. |
| 34469 |
# |
| 34470 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 34471 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 34472 |
# following values. |
| 34473 |
|
| 34474 |
_ACEOF |
| 34475 |
|
| 34476 |
# The following way of writing the cache mishandles newlines in values, |
| 34477 |
# but we know of no workaround that is simple, portable, and efficient. |
| 34478 |
# So, we kill variables containing newlines. |
| 34479 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 34480 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 34481 |
( |
| 34482 |
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 34483 |
eval ac_val=\$$ac_var |
| 34484 |
case $ac_val in #( |
| 34485 |
*${as_nl}*) |
| 34486 |
case $ac_var in #( |
| 34487 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 34488 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 34489 |
esac |
| 34490 |
case $ac_var in #( |
| 34491 |
_ | IFS | as_nl) ;; #( |
| 34492 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 34493 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 34494 |
esac ;; |
| 34495 |
esac |
| 34496 |
done |
| 34497 |
|
| 34498 |
(set) 2>&1 | |
| 34499 |
case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 34500 |
*${as_nl}ac_space=\ *) |
| 34501 |
# `set' does not quote correctly, so add quotes: double-quote |
| 34502 |
# substitution turns \\\\ into \\, and sed turns \\ into \. |
| 34503 |
sed -n \ |
| 34504 |
"s/'/'\\\\''/g; |
| 34505 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 34506 |
;; #( |
| 34507 |
*) |
| 34508 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 34509 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 34510 |
;; |
| 34511 |
esac | |
| 34512 |
sort |
| 34513 |
) | |
| 34514 |
sed ' |
| 34515 |
/^ac_cv_env_/b end |
| 34516 |
t clear |
| 34517 |
:clear |
| 34518 |
s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ |
| 34519 |
t end |
| 34520 |
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 34521 |
:end' >>confcache |
| 34522 |
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 34523 |
if test -w "$cache_file"; then |
| 34524 |
if test "x$cache_file" != "x/dev/null"; then |
| 34525 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 34526 |
printf "%s\n" "$as_me: updating cache $cache_file" >&6;} |
| 34527 |
if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 34528 |
cat confcache >"$cache_file" |
| 34529 |
else |
| 34530 |
case $cache_file in #( |
| 34531 |
*/* | ?:*) |
| 34532 |
mv -f confcache "$cache_file"$$ && |
| 34533 |
mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 34534 |
*) |
| 34535 |
mv -f confcache "$cache_file" ;; |
| 34536 |
esac |
| 34537 |
fi |
| 34538 |
fi |
| 34539 |
else |
| 34540 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 34541 |
printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 34542 |
fi |
| 34543 |
fi |
| 34544 |
rm -f confcache |
| 34545 |
|
| 34546 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 34547 |
# Let make expand exec_prefix. |
| 34548 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 34549 |
|
| 34550 |
# Transform confdefs.h into DEFS. |
| 34551 |
# Protect against shell expansion while executing Makefile rules. |
| 34552 |
# Protect against Makefile macro expansion. |
| 34553 |
# |
| 34554 |
# If the first sed substitution is executed (which looks for macros that |
| 34555 |
# take arguments), then branch to the quote section. Otherwise, |
| 34556 |
# look for a macro that doesn't take arguments. |
| 34557 |
ac_script=' |
| 34558 |
:mline |
| 34559 |
/\\$/{ |
| 34560 |
N |
| 34561 |
s,\\\n,, |
| 34562 |
b mline |
| 34563 |
} |
| 34564 |
t clear |
| 34565 |
:clear |
| 34566 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
| 34567 |
t quote |
| 34568 |
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
| 34569 |
t quote |
| 34570 |
b any |
| 34571 |
:quote |
| 34572 |
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
| 34573 |
s/\[/\\&/g |
| 34574 |
s/\]/\\&/g |
| 34575 |
s/\$/$$/g |
| 34576 |
H |
| 34577 |
:any |
| 34578 |
${ |
| 34579 |
g |
| 34580 |
s/^\n// |
| 34581 |
s/\n/ /g |
| 34582 |
p |
| 34583 |
} |
| 34584 |
' |
| 34585 |
DEFS=`sed -n "$ac_script" confdefs.h` |
| 34586 |
|
| 34587 |
|
| 34588 |
ac_libobjs= |
| 34589 |
ac_ltlibobjs= |
| 34590 |
U= |
| 34591 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 34592 |
# 1. Remove the extension, and $U if already installed. |
| 34593 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 34594 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 34595 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 34596 |
# will be set to the directory where LIBOBJS objects are built. |
| 34597 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 34598 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 34599 |
done |
| 34600 |
LIBOBJS=$ac_libobjs |
| 34601 |
|
| 34602 |
LTLIBOBJS=$ac_ltlibobjs |
| 34603 |
|
| 34604 |
|
| 34605 |
|
| 34606 |
: "${CONFIG_STATUS=./config.status}" |
| 34607 |
ac_write_fail=0 |
| 34608 |
ac_clean_files_save=$ac_clean_files |
| 34609 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 34610 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 34611 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 34612 |
as_write_fail=0 |
| 34613 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 34614 |
#! $SHELL |
| 34615 |
# Generated by $as_me. |
| 34616 |
# Run this file to recreate the current configuration. |
| 34617 |
# Compiler output produced by configure, useful for debugging |
| 34618 |
# configure, is in config.log if it exists. |
| 34619 |
|
| 34620 |
debug=false |
| 34621 |
ac_cs_recheck=false |
| 34622 |
ac_cs_silent=false |
| 34623 |
|
| 34624 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 34625 |
export SHELL |
| 34626 |
_ASEOF |
| 34627 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 34628 |
## -------------------- ## |
| 34629 |
## M4sh Initialization. ## |
| 34630 |
## -------------------- ## |
| 34631 |
|
| 34632 |
# Be more Bourne compatible |
| 34633 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 34634 |
as_nop=: |
| 34635 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 34636 |
then : |
| 34637 |
emulate sh |
| 34638 |
NULLCMD=: |
| 34639 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 34640 |
# is contrary to our usage. Disable this feature. |
| 34641 |
alias -g '${1+"$@"}'='"$@"' |
| 34642 |
setopt NO_GLOB_SUBST |
| 34643 |
else $as_nop |
| 34644 |
case `(set -o) 2>/dev/null` in #( |
| 34645 |
*posix*) : |
| 34646 |
set -o posix ;; #( |
| 34647 |
*) : |
| 34648 |
;; |
| 34649 |
esac |
| 34650 |
fi |
| 34651 |
|
| 34652 |
|
| 34653 |
|
| 34654 |
# Reset variables that may have inherited troublesome values from |
| 34655 |
# the environment. |
| 34656 |
|
| 34657 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 34658 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 34659 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 34660 |
# Quoting is to prevent editors from complaining about space-tab. |
| 34661 |
as_nl=' |
| 34662 |
' |
| 34663 |
export as_nl |
| 34664 |
IFS=" "" $as_nl" |
| 34665 |
|
| 34666 |
PS1='$ ' |
| 34667 |
PS2='> ' |
| 34668 |
PS4='+ ' |
| 34669 |
|
| 34670 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 34671 |
LC_ALL=C |
| 34672 |
export LC_ALL |
| 34673 |
LANGUAGE=C |
| 34674 |
export LANGUAGE |
| 34675 |
|
| 34676 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 34677 |
# to be unset--not just set to an empty or harmless value--now, to |
| 34678 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 34679 |
# also avoids known problems related to "unset" and subshell syntax |
| 34680 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 34681 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 34682 |
do eval test \${$as_var+y} \ |
| 34683 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 34684 |
done |
| 34685 |
|
| 34686 |
# Ensure that fds 0, 1, and 2 are open. |
| 34687 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 34688 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 34689 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 34690 |
|
| 34691 |
# The user is always right. |
| 34692 |
if ${PATH_SEPARATOR+false} :; then |
| 34693 |
PATH_SEPARATOR=: |
| 34694 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 34695 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 34696 |
PATH_SEPARATOR=';' |
| 34697 |
} |
| 34698 |
fi |
| 34699 |
|
| 34700 |
|
| 34701 |
# Find who we are. Look in the path if we contain no directory separator. |
| 34702 |
as_myself= |
| 34703 |
case $0 in #(( |
| 34704 |
*[\\/]* ) as_myself=$0 ;; |
| 34705 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 34706 |
for as_dir in $PATH |
| 34707 |
do |
| 34708 |
IFS=$as_save_IFS |
| 34709 |
case $as_dir in #((( |
| 34710 |
'') as_dir=./ ;; |
| 34711 |
*/) ;; |
| 34712 |
*) as_dir=$as_dir/ ;; |
| 34713 |
esac |
| 34714 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 34715 |
done |
| 34716 |
IFS=$as_save_IFS |
| 34717 |
|
| 34718 |
;; |
| 34719 |
esac |
| 34720 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 34721 |
# in which case we are not to be found in the path. |
| 34722 |
if test "x$as_myself" = x; then |
| 34723 |
as_myself=$0 |
| 34724 |
fi |
| 34725 |
if test ! -f "$as_myself"; then |
| 34726 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 34727 |
exit 1 |
| 34728 |
fi |
| 34729 |
|
| 34730 |
|
| 34731 |
|
| 34732 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 34733 |
# ---------------------------------------- |
| 34734 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 34735 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 34736 |
# script with STATUS, using 1 if that was 0. |
| 34737 |
as_fn_error () |
| 34738 |
{ |
| 34739 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 34740 |
if test "$4"; then |
| 34741 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 34742 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 34743 |
fi |
| 34744 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 34745 |
as_fn_exit $as_status |
| 34746 |
} # as_fn_error |
| 34747 |
|
| 34748 |
|
| 34749 |
|
| 34750 |
# as_fn_set_status STATUS |
| 34751 |
# ----------------------- |
| 34752 |
# Set $? to STATUS, without forking. |
| 34753 |
as_fn_set_status () |
| 34754 |
{ |
| 34755 |
return $1 |
| 34756 |
} # as_fn_set_status |
| 34757 |
|
| 34758 |
# as_fn_exit STATUS |
| 34759 |
# ----------------- |
| 34760 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 34761 |
as_fn_exit () |
| 34762 |
{ |
| 34763 |
set +e |
| 34764 |
as_fn_set_status $1 |
| 34765 |
exit $1 |
| 34766 |
} # as_fn_exit |
| 34767 |
|
| 34768 |
# as_fn_unset VAR |
| 34769 |
# --------------- |
| 34770 |
# Portably unset VAR. |
| 34771 |
as_fn_unset () |
| 34772 |
{ |
| 34773 |
{ eval $1=; unset $1;} |
| 34774 |
} |
| 34775 |
as_unset=as_fn_unset |
| 34776 |
|
| 34777 |
# as_fn_append VAR VALUE |
| 34778 |
# ---------------------- |
| 34779 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 34780 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 34781 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 34782 |
# implementations. |
| 34783 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 34784 |
then : |
| 34785 |
eval 'as_fn_append () |
| 34786 |
{ |
| 34787 |
eval $1+=\$2 |
| 34788 |
}' |
| 34789 |
else $as_nop |
| 34790 |
as_fn_append () |
| 34791 |
{ |
| 34792 |
eval $1=\$$1\$2 |
| 34793 |
} |
| 34794 |
fi # as_fn_append |
| 34795 |
|
| 34796 |
# as_fn_arith ARG... |
| 34797 |
# ------------------ |
| 34798 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 34799 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 34800 |
# must be portable across $(()) and expr. |
| 34801 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 34802 |
then : |
| 34803 |
eval 'as_fn_arith () |
| 34804 |
{ |
| 34805 |
as_val=$(( $* )) |
| 34806 |
}' |
| 34807 |
else $as_nop |
| 34808 |
as_fn_arith () |
| 34809 |
{ |
| 34810 |
as_val=`expr "$@" || test $? -eq 1` |
| 34811 |
} |
| 34812 |
fi # as_fn_arith |
| 34813 |
|
| 34814 |
|
| 34815 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 34816 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 34817 |
as_expr=expr |
| 34818 |
else |
| 34819 |
as_expr=false |
| 34820 |
fi |
| 34821 |
|
| 34822 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 34823 |
as_basename=basename |
| 34824 |
else |
| 34825 |
as_basename=false |
| 34826 |
fi |
| 34827 |
|
| 34828 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 34829 |
as_dirname=dirname |
| 34830 |
else |
| 34831 |
as_dirname=false |
| 34832 |
fi |
| 34833 |
|
| 34834 |
as_me=`$as_basename -- "$0" || |
| 34835 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 34836 |
X"$0" : 'X\(//\)$' \| \ |
| 34837 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 34838 |
printf "%s\n" X/"$0" | |
| 34839 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 34840 |
s//\1/ |
| 34841 |
q |
| 34842 |
} |
| 34843 |
/^X\/\(\/\/\)$/{ |
| 34844 |
s//\1/ |
| 34845 |
q |
| 34846 |
} |
| 34847 |
/^X\/\(\/\).*/{ |
| 34848 |
s//\1/ |
| 34849 |
q |
| 34850 |
} |
| 34851 |
s/.*/./; q'` |
| 34852 |
|
| 34853 |
# Avoid depending upon Character Ranges. |
| 34854 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 34855 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 34856 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 34857 |
as_cr_digits='0123456789' |
| 34858 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 34859 |
|
| 34860 |
|
| 34861 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 34862 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 34863 |
# for compatibility with existing Makefiles. |
| 34864 |
ECHO_C= ECHO_N= ECHO_T= |
| 34865 |
case `echo -n x` in #((((( |
| 34866 |
-n*) |
| 34867 |
case `echo 'xy\c'` in |
| 34868 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 34869 |
xy) ECHO_C='\c';; |
| 34870 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 34871 |
ECHO_T=' ';; |
| 34872 |
esac;; |
| 34873 |
*) |
| 34874 |
ECHO_N='-n';; |
| 34875 |
esac |
| 34876 |
|
| 34877 |
# For backward compatibility with old third-party macros, we provide |
| 34878 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 34879 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 34880 |
as_echo='printf %s\n' |
| 34881 |
as_echo_n='printf %s' |
| 34882 |
|
| 34883 |
rm -f conf$$ conf$$.exe conf$$.file |
| 34884 |
if test -d conf$$.dir; then |
| 34885 |
rm -f conf$$.dir/conf$$.file |
| 34886 |
else |
| 34887 |
rm -f conf$$.dir |
| 34888 |
mkdir conf$$.dir 2>/dev/null |
| 34889 |
fi |
| 34890 |
if (echo >conf$$.file) 2>/dev/null; then |
| 34891 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 34892 |
as_ln_s='ln -s' |
| 34893 |
# ... but there are two gotchas: |
| 34894 |
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 34895 |
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 34896 |
# In both cases, we have to default to `cp -pR'. |
| 34897 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 34898 |
as_ln_s='cp -pR' |
| 34899 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 34900 |
as_ln_s=ln |
| 34901 |
else |
| 34902 |
as_ln_s='cp -pR' |
| 34903 |
fi |
| 34904 |
else |
| 34905 |
as_ln_s='cp -pR' |
| 34906 |
fi |
| 34907 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 34908 |
rmdir conf$$.dir 2>/dev/null |
| 34909 |
|
| 34910 |
|
| 34911 |
# as_fn_mkdir_p |
| 34912 |
# ------------- |
| 34913 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 34914 |
as_fn_mkdir_p () |
| 34915 |
{ |
| 34916 |
|
| 34917 |
case $as_dir in #( |
| 34918 |
-*) as_dir=./$as_dir;; |
| 34919 |
esac |
| 34920 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 34921 |
as_dirs= |
| 34922 |
while :; do |
| 34923 |
case $as_dir in #( |
| 34924 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 34925 |
*) as_qdir=$as_dir;; |
| 34926 |
esac |
| 34927 |
as_dirs="'$as_qdir' $as_dirs" |
| 34928 |
as_dir=`$as_dirname -- "$as_dir" || |
| 34929 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 34930 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 34931 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 34932 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 34933 |
printf "%s\n" X"$as_dir" | |
| 34934 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 34935 |
s//\1/ |
| 34936 |
q |
| 34937 |
} |
| 34938 |
/^X\(\/\/\)[^/].*/{ |
| 34939 |
s//\1/ |
| 34940 |
q |
| 34941 |
} |
| 34942 |
/^X\(\/\/\)$/{ |
| 34943 |
s//\1/ |
| 34944 |
q |
| 34945 |
} |
| 34946 |
/^X\(\/\).*/{ |
| 34947 |
s//\1/ |
| 34948 |
q |
| 34949 |
} |
| 34950 |
s/.*/./; q'` |
| 34951 |
test -d "$as_dir" && break |
| 34952 |
done |
| 34953 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 34954 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 34955 |
|
| 34956 |
|
| 34957 |
} # as_fn_mkdir_p |
| 34958 |
if mkdir -p . 2>/dev/null; then |
| 34959 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 34960 |
else |
| 34961 |
test -d ./-p && rmdir ./-p |
| 34962 |
as_mkdir_p=false |
| 34963 |
fi |
| 34964 |
|
| 34965 |
|
| 34966 |
# as_fn_executable_p FILE |
| 34967 |
# ----------------------- |
| 34968 |
# Test if FILE is an executable regular file. |
| 34969 |
as_fn_executable_p () |
| 34970 |
{ |
| 34971 |
test -f "$1" && test -x "$1" |
| 34972 |
} # as_fn_executable_p |
| 34973 |
as_test_x='test -x' |
| 34974 |
as_executable_p=as_fn_executable_p |
| 34975 |
|
| 34976 |
# Sed expression to map a string onto a valid CPP name. |
| 34977 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 34978 |
|
| 34979 |
# Sed expression to map a string onto a valid variable name. |
| 34980 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 34981 |
|
| 34982 |
|
| 34983 |
exec 6>&1 |
| 34984 |
## ----------------------------------- ## |
| 34985 |
## Main body of $CONFIG_STATUS script. ## |
| 34986 |
## ----------------------------------- ## |
| 34987 |
_ASEOF |
| 34988 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 34989 |
|
| 34990 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 34991 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 34992 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 34993 |
# values after options handling. |
| 34994 |
ac_log=" |
| 34995 |
This file was extended by $as_me, which was |
| 34996 |
generated by GNU Autoconf 2.71. Invocation command line was |
| 34997 |
|
| 34998 |
CONFIG_FILES = $CONFIG_FILES |
| 34999 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 35000 |
CONFIG_LINKS = $CONFIG_LINKS |
| 35001 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 35002 |
$ $0 $@ |
| 35003 |
|
| 35004 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 35005 |
" |
| 35006 |
|
| 35007 |
_ACEOF |
| 35008 |
|
| 35009 |
case $ac_config_files in *" |
| 35010 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 35011 |
esac |
| 35012 |
|
| 35013 |
|
| 35014 |
|
| 35015 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35016 |
# Files that config.status was made for. |
| 35017 |
config_files="$ac_config_files" |
| 35018 |
|
| 35019 |
_ACEOF |
| 35020 |
|
| 35021 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35022 |
ac_cs_usage="\ |
| 35023 |
\`$as_me' instantiates files and other configuration actions |
| 35024 |
from templates according to the current configuration. Unless the files |
| 35025 |
and actions are specified as TAGs, all are instantiated by default. |
| 35026 |
|
| 35027 |
Usage: $0 [OPTION]... [TAG]... |
| 35028 |
|
| 35029 |
-h, --help print this help, then exit |
| 35030 |
-V, --version print version number and configuration settings, then exit |
| 35031 |
--config print configuration, then exit |
| 35032 |
-q, --quiet, --silent |
| 35033 |
do not print progress messages |
| 35034 |
-d, --debug don't remove temporary files |
| 35035 |
--recheck update $as_me by reconfiguring in the same conditions |
| 35036 |
--file=FILE[:TEMPLATE] |
| 35037 |
instantiate the configuration file FILE |
| 35038 |
|
| 35039 |
Configuration files: |
| 35040 |
$config_files |
| 35041 |
|
| 35042 |
Report bugs to the package provider." |
| 35043 |
|
| 35044 |
_ACEOF |
| 35045 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 35046 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 35047 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35048 |
ac_cs_config='$ac_cs_config_escaped' |
| 35049 |
ac_cs_version="\\ |
| 35050 |
config.status |
| 35051 |
configured by $0, generated by GNU Autoconf 2.71, |
| 35052 |
with options \\"\$ac_cs_config\\" |
| 35053 |
|
| 35054 |
Copyright (C) 2021 Free Software Foundation, Inc. |
| 35055 |
This config.status script is free software; the Free Software Foundation |
| 35056 |
gives unlimited permission to copy, distribute and modify it." |
| 35057 |
|
| 35058 |
ac_pwd='$ac_pwd' |
| 35059 |
srcdir='$srcdir' |
| 35060 |
INSTALL='$INSTALL' |
| 35061 |
MKDIR_P='$MKDIR_P' |
| 35062 |
test -n "\$AWK" || AWK=awk |
| 35063 |
_ACEOF |
| 35064 |
|
| 35065 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35066 |
# The default lists apply if the user does not specify any file. |
| 35067 |
ac_need_defaults=: |
| 35068 |
while test $# != 0 |
| 35069 |
do |
| 35070 |
case $1 in |
| 35071 |
--*=?*) |
| 35072 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35073 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 35074 |
ac_shift=: |
| 35075 |
;; |
| 35076 |
--*=) |
| 35077 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 35078 |
ac_optarg= |
| 35079 |
ac_shift=: |
| 35080 |
;; |
| 35081 |
*) |
| 35082 |
ac_option=$1 |
| 35083 |
ac_optarg=$2 |
| 35084 |
ac_shift=shift |
| 35085 |
;; |
| 35086 |
esac |
| 35087 |
|
| 35088 |
case $ac_option in |
| 35089 |
# Handling of the options. |
| 35090 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 35091 |
ac_cs_recheck=: ;; |
| 35092 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 35093 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 35094 |
--config | --confi | --conf | --con | --co | --c ) |
| 35095 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 35096 |
--debug | --debu | --deb | --de | --d | -d ) |
| 35097 |
debug=: ;; |
| 35098 |
--file | --fil | --fi | --f ) |
| 35099 |
$ac_shift |
| 35100 |
case $ac_optarg in |
| 35101 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 35102 |
'') as_fn_error $? "missing file argument" ;; |
| 35103 |
esac |
| 35104 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 35105 |
ac_need_defaults=false;; |
| 35106 |
--he | --h | --help | --hel | -h ) |
| 35107 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 35108 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 35109 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 35110 |
ac_cs_silent=: ;; |
| 35111 |
|
| 35112 |
# This is an error. |
| 35113 |
-*) as_fn_error $? "unrecognized option: \`$1' |
| 35114 |
Try \`$0 --help' for more information." ;; |
| 35115 |
|
| 35116 |
*) as_fn_append ac_config_targets " $1" |
| 35117 |
ac_need_defaults=false ;; |
| 35118 |
|
| 35119 |
esac |
| 35120 |
shift |
| 35121 |
done |
| 35122 |
|
| 35123 |
ac_configure_extra_args= |
| 35124 |
|
| 35125 |
if $ac_cs_silent; then |
| 35126 |
exec 6>/dev/null |
| 35127 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 35128 |
fi |
| 35129 |
|
| 35130 |
_ACEOF |
| 35131 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35132 |
if \$ac_cs_recheck; then |
| 35133 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 35134 |
shift |
| 35135 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 35136 |
CONFIG_SHELL='$SHELL' |
| 35137 |
export CONFIG_SHELL |
| 35138 |
exec "\$@" |
| 35139 |
fi |
| 35140 |
|
| 35141 |
_ACEOF |
| 35142 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35143 |
exec 5>>config.log |
| 35144 |
{ |
| 35145 |
echo |
| 35146 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 35147 |
## Running $as_me. ## |
| 35148 |
_ASBOX |
| 35149 |
printf "%s\n" "$ac_log" |
| 35150 |
} >&5 |
| 35151 |
|
| 35152 |
_ACEOF |
| 35153 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35154 |
# |
| 35155 |
# INIT-COMMANDS |
| 35156 |
# |
| 35157 |
firstmf="$firstmf" firsttmpl="$firsttmpl" |
| 35158 |
EXEEXT='$EXEEXT' MAKE='${MAKE-make}' gnumake='$gnumake' GIT='$GIT' YJIT_SUPPORT='$YJIT_SUPPORT' |
| 35159 |
|
| 35160 |
_ACEOF |
| 35161 |
|
| 35162 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35163 |
|
| 35164 |
# Handling of arguments. |
| 35165 |
for ac_config_target in $ac_config_targets |
| 35166 |
do |
| 35167 |
case $ac_config_target in |
| 35168 |
"$firstmf") CONFIG_FILES="$CONFIG_FILES $firstmf:$firsttmpl" ;; |
| 35169 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:template/Makefile.in" ;; |
| 35170 |
|
| 35171 |
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 35172 |
esac |
| 35173 |
done |
| 35174 |
|
| 35175 |
|
| 35176 |
# If the user did not use the arguments to specify the items to instantiate, |
| 35177 |
# then the envvar interface is used. Set only those that are not. |
| 35178 |
# We use the long form for the default assignment because of an extremely |
| 35179 |
# bizarre bug on SunOS 4.1.3. |
| 35180 |
if $ac_need_defaults; then |
| 35181 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 35182 |
fi |
| 35183 |
|
| 35184 |
# Have a temporary directory for convenience. Make it in the build tree |
| 35185 |
# simply because there is no reason against having it here, and in addition, |
| 35186 |
# creating and moving files from /tmp can sometimes cause problems. |
| 35187 |
# Hook for its removal unless debugging. |
| 35188 |
# Note that there is a small window in which the directory will not be cleaned: |
| 35189 |
# after its creation but before its name has been assigned to `$tmp'. |
| 35190 |
$debug || |
| 35191 |
{ |
| 35192 |
tmp= ac_tmp= |
| 35193 |
trap 'exit_status=$? |
| 35194 |
: "${ac_tmp:=$tmp}" |
| 35195 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 35196 |
' 0 |
| 35197 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 35198 |
} |
| 35199 |
# Create a (secure) tmp directory for tmp files. |
| 35200 |
|
| 35201 |
{ |
| 35202 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 35203 |
test -d "$tmp" |
| 35204 |
} || |
| 35205 |
{ |
| 35206 |
tmp=./conf$$-$RANDOM |
| 35207 |
(umask 077 && mkdir "$tmp") |
| 35208 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 35209 |
ac_tmp=$tmp |
| 35210 |
|
| 35211 |
# Set up the scripts for CONFIG_FILES section. |
| 35212 |
# No need to generate them if there are no CONFIG_FILES. |
| 35213 |
# This happens for instance with `./config.status config.h'. |
| 35214 |
if test -n "$CONFIG_FILES"; then |
| 35215 |
|
| 35216 |
|
| 35217 |
ac_cr=`echo X | tr X '\015'` |
| 35218 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 35219 |
# But we know of no other shell where ac_cr would be empty at this |
| 35220 |
# point, so we can use a bashism as a fallback. |
| 35221 |
if test "x$ac_cr" = x; then |
| 35222 |
eval ac_cr=\$\'\\r\' |
| 35223 |
fi |
| 35224 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 35225 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 35226 |
ac_cs_awk_cr='\\r' |
| 35227 |
else |
| 35228 |
ac_cs_awk_cr=$ac_cr |
| 35229 |
fi |
| 35230 |
|
| 35231 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 35232 |
_ACEOF |
| 35233 |
|
| 35234 |
|
| 35235 |
{ |
| 35236 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 35237 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 35238 |
echo "_ACEOF" |
| 35239 |
} >conf$$subs.sh || |
| 35240 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 35241 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 35242 |
ac_delim='%!_!# ' |
| 35243 |
for ac_last_try in false false false false false :; do |
| 35244 |
. ./conf$$subs.sh || |
| 35245 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 35246 |
|
| 35247 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 35248 |
if test $ac_delim_n = $ac_delim_num; then |
| 35249 |
break |
| 35250 |
elif $ac_last_try; then |
| 35251 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 35252 |
else |
| 35253 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 35254 |
fi |
| 35255 |
done |
| 35256 |
rm -f conf$$subs.sh |
| 35257 |
|
| 35258 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35259 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 35260 |
_ACEOF |
| 35261 |
sed -n ' |
| 35262 |
h |
| 35263 |
s/^/S["/; s/!.*/"]=/ |
| 35264 |
p |
| 35265 |
g |
| 35266 |
s/^[^!]*!// |
| 35267 |
:repl |
| 35268 |
t repl |
| 35269 |
s/'"$ac_delim"'$// |
| 35270 |
t delim |
| 35271 |
:nl |
| 35272 |
h |
| 35273 |
s/\(.\{148\}\)..*/\1/ |
| 35274 |
t more1 |
| 35275 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 35276 |
p |
| 35277 |
n |
| 35278 |
b repl |
| 35279 |
:more1 |
| 35280 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 35281 |
p |
| 35282 |
g |
| 35283 |
s/.\{148\}// |
| 35284 |
t nl |
| 35285 |
:delim |
| 35286 |
h |
| 35287 |
s/\(.\{148\}\)..*/\1/ |
| 35288 |
t more2 |
| 35289 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 35290 |
p |
| 35291 |
b |
| 35292 |
:more2 |
| 35293 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 35294 |
p |
| 35295 |
g |
| 35296 |
s/.\{148\}// |
| 35297 |
t delim |
| 35298 |
' <conf$$subs.awk | sed ' |
| 35299 |
/^[^""]/{ |
| 35300 |
N |
| 35301 |
s/\n// |
| 35302 |
} |
| 35303 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 35304 |
rm -f conf$$subs.awk |
| 35305 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35306 |
_ACAWK |
| 35307 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 35308 |
for (key in S) S_is_set[key] = 1 |
| 35309 |
FS = "" |
| 35310 |
|
| 35311 |
} |
| 35312 |
{ |
| 35313 |
line = $ 0 |
| 35314 |
nfields = split(line, field, "@") |
| 35315 |
substed = 0 |
| 35316 |
len = length(field[1]) |
| 35317 |
for (i = 2; i < nfields; i++) { |
| 35318 |
key = field[i] |
| 35319 |
keylen = length(key) |
| 35320 |
if (S_is_set[key]) { |
| 35321 |
value = S[key] |
| 35322 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 35323 |
len += length(value) + length(field[++i]) |
| 35324 |
substed = 1 |
| 35325 |
} else |
| 35326 |
len += 1 + keylen |
| 35327 |
} |
| 35328 |
|
| 35329 |
print line |
| 35330 |
} |
| 35331 |
|
| 35332 |
_ACAWK |
| 35333 |
_ACEOF |
| 35334 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35335 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 35336 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 35337 |
else |
| 35338 |
cat |
| 35339 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 35340 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 35341 |
_ACEOF |
| 35342 |
|
| 35343 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 35344 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 35345 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 35346 |
# (actually we leave an empty line to preserve line numbers). |
| 35347 |
if test "x$srcdir" = x.; then |
| 35348 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 35349 |
h |
| 35350 |
s/// |
| 35351 |
s/^/:/ |
| 35352 |
s/[ ]*$/:/ |
| 35353 |
s/:\$(srcdir):/:/g |
| 35354 |
s/:\${srcdir}:/:/g |
| 35355 |
s/:@srcdir@:/:/g |
| 35356 |
s/^:*// |
| 35357 |
s/:*$// |
| 35358 |
x |
| 35359 |
s/\(=[ ]*\).*/\1/ |
| 35360 |
G |
| 35361 |
s/\n// |
| 35362 |
s/^[^=]*=[ ]*$// |
| 35363 |
}' |
| 35364 |
fi |
| 35365 |
|
| 35366 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35367 |
fi # test -n "$CONFIG_FILES" |
| 35368 |
|
| 35369 |
|
| 35370 |
eval set X " :F $CONFIG_FILES " |
| 35371 |
shift |
| 35372 |
for ac_tag |
| 35373 |
do |
| 35374 |
case $ac_tag in |
| 35375 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 35376 |
esac |
| 35377 |
case $ac_mode$ac_tag in |
| 35378 |
:[FHL]*:*);; |
| 35379 |
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 35380 |
:[FH]-) ac_tag=-:-;; |
| 35381 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 35382 |
esac |
| 35383 |
ac_save_IFS=$IFS |
| 35384 |
IFS=: |
| 35385 |
set x $ac_tag |
| 35386 |
IFS=$ac_save_IFS |
| 35387 |
shift |
| 35388 |
ac_file=$1 |
| 35389 |
shift |
| 35390 |
|
| 35391 |
case $ac_mode in |
| 35392 |
:L) ac_source=$1;; |
| 35393 |
:[FH]) |
| 35394 |
ac_file_inputs= |
| 35395 |
for ac_f |
| 35396 |
do |
| 35397 |
case $ac_f in |
| 35398 |
-) ac_f="$ac_tmp/stdin";; |
| 35399 |
*) # Look for the file first in the build tree, then in the source tree |
| 35400 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 35401 |
# because $ac_f cannot contain `:'. |
| 35402 |
test -f "$ac_f" || |
| 35403 |
case $ac_f in |
| 35404 |
[\\/$]*) false;; |
| 35405 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 35406 |
esac || |
| 35407 |
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 35408 |
esac |
| 35409 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 35410 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 35411 |
done |
| 35412 |
|
| 35413 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 35414 |
# use $as_me), people would be surprised to read: |
| 35415 |
# /* config.h. Generated by config.status. */ |
| 35416 |
configure_input='Generated from '` |
| 35417 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 35418 |
`' by configure.' |
| 35419 |
if test x"$ac_file" != x-; then |
| 35420 |
configure_input="$ac_file. $configure_input" |
| 35421 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 35422 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 35423 |
fi |
| 35424 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 35425 |
case $configure_input in #( |
| 35426 |
*\&* | *\|* | *\\* ) |
| 35427 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 35428 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 35429 |
*) ac_sed_conf_input=$configure_input;; |
| 35430 |
esac |
| 35431 |
|
| 35432 |
case $ac_tag in |
| 35433 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 35434 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 35435 |
esac |
| 35436 |
;; |
| 35437 |
esac |
| 35438 |
|
| 35439 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 35440 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 35441 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 35442 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 35443 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 35444 |
printf "%s\n" X"$ac_file" | |
| 35445 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 35446 |
s//\1/ |
| 35447 |
q |
| 35448 |
} |
| 35449 |
/^X\(\/\/\)[^/].*/{ |
| 35450 |
s//\1/ |
| 35451 |
q |
| 35452 |
} |
| 35453 |
/^X\(\/\/\)$/{ |
| 35454 |
s//\1/ |
| 35455 |
q |
| 35456 |
} |
| 35457 |
/^X\(\/\).*/{ |
| 35458 |
s//\1/ |
| 35459 |
q |
| 35460 |
} |
| 35461 |
s/.*/./; q'` |
| 35462 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 35463 |
ac_builddir=. |
| 35464 |
|
| 35465 |
case "$ac_dir" in |
| 35466 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35467 |
*) |
| 35468 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 35469 |
# A ".." for each directory in $ac_dir_suffix. |
| 35470 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 35471 |
case $ac_top_builddir_sub in |
| 35472 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 35473 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 35474 |
esac ;; |
| 35475 |
esac |
| 35476 |
ac_abs_top_builddir=$ac_pwd |
| 35477 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 35478 |
# for backward compatibility: |
| 35479 |
ac_top_builddir=$ac_top_build_prefix |
| 35480 |
|
| 35481 |
case $srcdir in |
| 35482 |
.) # We are building in place. |
| 35483 |
ac_srcdir=. |
| 35484 |
ac_top_srcdir=$ac_top_builddir_sub |
| 35485 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 35486 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 35487 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 35488 |
ac_top_srcdir=$srcdir |
| 35489 |
ac_abs_top_srcdir=$srcdir ;; |
| 35490 |
*) # Relative name. |
| 35491 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 35492 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 35493 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 35494 |
esac |
| 35495 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 35496 |
|
| 35497 |
|
| 35498 |
case $ac_mode in |
| 35499 |
:F) |
| 35500 |
# |
| 35501 |
# CONFIG_FILE |
| 35502 |
# |
| 35503 |
|
| 35504 |
case $INSTALL in |
| 35505 |
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 35506 |
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 35507 |
esac |
| 35508 |
ac_MKDIR_P=$MKDIR_P |
| 35509 |
case $MKDIR_P in |
| 35510 |
[\\/$]* | ?:[\\/]* ) ;; |
| 35511 |
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 35512 |
esac |
| 35513 |
_ACEOF |
| 35514 |
|
| 35515 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35516 |
# If the template does not know about datarootdir, expand it. |
| 35517 |
# FIXME: This hack should be removed a few years after 2.60. |
| 35518 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 35519 |
ac_sed_dataroot=' |
| 35520 |
/datarootdir/ { |
| 35521 |
p |
| 35522 |
q |
| 35523 |
} |
| 35524 |
/@datadir@/p |
| 35525 |
/@docdir@/p |
| 35526 |
/@infodir@/p |
| 35527 |
/@localedir@/p |
| 35528 |
/@mandir@/p' |
| 35529 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 35530 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 35531 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 35532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 35533 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 35534 |
_ACEOF |
| 35535 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35536 |
ac_datarootdir_hack=' |
| 35537 |
s&@datadir@&$datadir&g |
| 35538 |
s&@docdir@&$docdir&g |
| 35539 |
s&@infodir@&$infodir&g |
| 35540 |
s&@localedir@&$localedir&g |
| 35541 |
s&@mandir@&$mandir&g |
| 35542 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 35543 |
esac |
| 35544 |
_ACEOF |
| 35545 |
|
| 35546 |
# Neutralize VPATH when `$srcdir' = `.'. |
| 35547 |
# Shell code in configure.ac might set extrasub. |
| 35548 |
# FIXME: do we really want to maintain this feature? |
| 35549 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 35550 |
ac_sed_extra="$ac_vpsub |
| 35551 |
$extrasub |
| 35552 |
_ACEOF |
| 35553 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 35554 |
:t |
| 35555 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 35556 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 35557 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 35558 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 35559 |
s&@srcdir@&$ac_srcdir&;t t |
| 35560 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 35561 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 35562 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 35563 |
s&@builddir@&$ac_builddir&;t t |
| 35564 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 35565 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 35566 |
s&@INSTALL@&$ac_INSTALL&;t t |
| 35567 |
s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 35568 |
$ac_datarootdir_hack |
| 35569 |
" |
| 35570 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 35571 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 35572 |
|
| 35573 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 35574 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 35575 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 35576 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 35577 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35578 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 35579 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 35580 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 35581 |
|
| 35582 |
rm -f "$ac_tmp/stdin" |
| 35583 |
case $ac_file in |
| 35584 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 35585 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 35586 |
esac \ |
| 35587 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 35588 |
;; |
| 35589 |
|
| 35590 |
|
| 35591 |
|
| 35592 |
esac |
| 35593 |
|
| 35594 |
|
| 35595 |
case $ac_file$ac_mode in |
| 35596 |
"Makefile":F) |
| 35597 |
tmpmk=confmk$$.tmp |
| 35598 |
{ |
| 35599 |
if test ${VCS+set} |
| 35600 |
then : |
| 35601 |
|
| 35602 |
: |
| 35603 |
|
| 35604 |
elif git_dir=`$GIT --work-tree="$srcdir" --git-dir="$srcdir/.git" rev-parse --git-dir 2>/dev/null` |
| 35605 |
then : |
| 35606 |
|
| 35607 |
VCS='$(GIT)' |
| 35608 |
|
| 35609 |
else $as_nop |
| 35610 |
|
| 35611 |
VCS='echo cannot' |
| 35612 |
|
| 35613 |
fi |
| 35614 |
case "$VCS" in #( |
| 35615 |
'$(GIT)'|git) : |
| 35616 |
VCSUP='$(VCS) pull --rebase $(GITPULLOPTIONS)' ;; #( |
| 35617 |
*) : |
| 35618 |
VCSUP='$(VCS)' ;; |
| 35619 |
esac |
| 35620 |
for f in "$srcdir/version.h" "$srcdir/revision.h"; do |
| 35621 |
test -f "$f" || continue |
| 35622 |
sed -n \ |
| 35623 |
-e '/^#define \(RUBY_RELEASE_[A-Z]*\) \([0-9][0-9]*\)/{' \ |
| 35624 |
-e 's//\1 = \2/' \ |
| 35625 |
-e 's/ \([0-9]\)$/ 0\1/' \ |
| 35626 |
-e p \ |
| 35627 |
-e '}' "$f" |
| 35628 |
done |
| 35629 |
sed '/^MISSING/s/\$U\././g;/^VCS *=/s#@VCS@#'"$VCS"'#;/^VCSUP *=/s#@VCSUP@#'"$VCSUP"'#' Makefile |
| 35630 |
echo; test x"$EXEEXT" = x || echo 'miniruby: miniruby$(EXEEXT)' |
| 35631 |
if test "$gnumake" != yes |
| 35632 |
then : |
| 35633 |
|
| 35634 |
echo '$(MKFILES): $(srcdir)/common.mk' |
| 35635 |
sed 's/{\$([^(){}]*)[^{}]*}//g' ${srcdir}/common.mk |
| 35636 |
if test "$YJIT_SUPPORT" = yes |
| 35637 |
then : |
| 35638 |
|
| 35639 |
cat ${srcdir}/yjit/not_gmake.mk |
| 35640 |
echo '$(MKFILES): ${srcdir}/yjit/not_gmake.mk' |
| 35641 |
|
| 35642 |
fi |
| 35643 |
|
| 35644 |
else $as_nop |
| 35645 |
|
| 35646 |
echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk' |
| 35647 |
|
| 35648 |
fi |
| 35649 |
} > $tmpmk && if ! grep '^ruby:' $tmpmk > /dev/null |
| 35650 |
then : |
| 35651 |
|
| 35652 |
if test "${gnumake}" = yes |
| 35653 |
then : |
| 35654 |
|
| 35655 |
tmpgmk=confgmk$$.tmp |
| 35656 |
{ |
| 35657 |
echo "include $tmpmk" |
| 35658 |
echo "-include uncommon.mk" |
| 35659 |
} > $tmpgmk |
| 35660 |
|
| 35661 |
else $as_nop |
| 35662 |
|
| 35663 |
tmpgmk=$tmpmk |
| 35664 |
|
| 35665 |
fi && |
| 35666 |
test -z "`${MAKE-make} -f $tmpgmk info-program | grep '^PROGRAM=ruby$'`" && |
| 35667 |
echo 'ruby: $(PROGRAM);' >> $tmpmk |
| 35668 |
test "$tmpmk" = "$tmpgmk" || rm -f "$tmpgmk" |
| 35669 |
|
| 35670 |
fi && mv -f $tmpmk Makefile ;; |
| 35671 |
|
| 35672 |
esac |
| 35673 |
done # for ac_tag |
| 35674 |
|
| 35675 |
|
| 35676 |
as_fn_exit 0 |
| 35677 |
_ACEOF |
| 35678 |
ac_clean_files=$ac_clean_files_save |
| 35679 |
|
| 35680 |
test $ac_write_fail = 0 || |
| 35681 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 35682 |
|
| 35683 |
|
| 35684 |
# configure is writing to config.log, and then calls config.status. |
| 35685 |
# config.status does its own redirection, appending to config.log. |
| 35686 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 35687 |
# by configure, so config.status won't be able to write to it; its |
| 35688 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 35689 |
# effectively closing config.log, so it can be properly (re)opened and |
| 35690 |
# appended to by config.status. When coming back to configure, we |
| 35691 |
# need to make the FD available again. |
| 35692 |
if test "$no_create" != yes; then |
| 35693 |
ac_cs_success=: |
| 35694 |
ac_config_status_args= |
| 35695 |
test "$silent" = yes && |
| 35696 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 35697 |
exec 5>/dev/null |
| 35698 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 35699 |
exec 5>>config.log |
| 35700 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 35701 |
# would make configure fail if this is the last instruction. |
| 35702 |
$ac_cs_success || as_fn_exit 1 |
| 35703 |
fi |
| 35704 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 35705 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 35706 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 35707 |
fi |
| 35708 |
|
| 35709 |
} |
| 35710 |
|
| 35711 |
if test "$silent" = yes |
| 35712 |
then : |
| 35713 |
|
| 35714 |
else $as_nop |
| 35715 |
|
| 35716 |
if ${FOLD+:} false |
| 35717 |
then : |
| 35718 |
|
| 35719 |
else $as_nop |
| 35720 |
|
| 35721 |
if test "`echo abcdefg hijklmno | fold -s -w10 | sed 1d`" = hijklmno |
| 35722 |
then : |
| 35723 |
FOLD="fold" |
| 35724 |
else $as_nop |
| 35725 |
FOLD= |
| 35726 |
fi |
| 35727 |
|
| 35728 |
fi |
| 35729 |
fold_width=`expr $COLUMNS - 30 2>/dev/null` || fold_width=50 |
| 35730 |
|
| 35731 |
|
| 35732 |
if test $install_doc = yes |
| 35733 |
then : |
| 35734 |
DOCTARGETS=`echo " $RDOCTARGET $CAPITARGET " | sed 's/ nodoc //g;s/^ *//;s/ *$//'` |
| 35735 |
else $as_nop |
| 35736 |
DOCTARGETS=no |
| 35737 |
fi |
| 35738 |
echo "---" |
| 35739 |
echo "Configuration summary for $RUBY_BASE_NAME version $MAJOR.$MINOR.$TEENY" |
| 35740 |
echo "" |
| 35741 |
config_summary "Installation prefix" "$prefix" |
| 35742 |
config_summary "exec prefix" "$exec_prefix" |
| 35743 |
config_summary "arch" "$arch" |
| 35744 |
config_summary "site arch" "$sitearch" |
| 35745 |
config_summary "RUBY_BASE_NAME" "$RUBY_BASE_NAME" |
| 35746 |
config_summary "enable shared" "$enable_shared" |
| 35747 |
config_summary "ruby lib prefix" "$rubylibprefix" |
| 35748 |
config_summary "site libraries path" "$rubysitearchprefix" |
| 35749 |
config_summary "vendor path" "$vendordir" |
| 35750 |
config_summary "target OS" "$target_os" |
| 35751 |
config_summary "compiler" "$CC" |
| 35752 |
config_summary "with thread" "$THREAD_MODEL" |
| 35753 |
config_summary "with coroutine" "$coroutine_type" |
| 35754 |
config_summary "enable shared libs" "$ENABLE_SHARED" |
| 35755 |
config_summary "dynamic library ext" "$DLEXT" |
| 35756 |
config_summary "CFLAGS" "$cflags" |
| 35757 |
config_summary "CPPFLAGS" "$cppflags" |
| 35758 |
config_summary "LDFLAGS" "$LDFLAGS" |
| 35759 |
config_summary "DLDFLAGS" "$DLDFLAGS" |
| 35760 |
config_summary "optflags" "$optflags" |
| 35761 |
config_summary "debugflags" "$debugflags" |
| 35762 |
config_summary "warnflags" "$warnflags" |
| 35763 |
config_summary "strip command" "$STRIP" |
| 35764 |
config_summary "install doc" "$DOCTARGETS" |
| 35765 |
config_summary "YJIT support" "$YJIT_SUPPORT" |
| 35766 |
config_summary "RJIT support" "$RJIT_SUPPORT" |
| 35767 |
config_summary "man page type" "$MANTYPE" |
| 35768 |
config_summary "search path" "$search_path" |
| 35769 |
config_summary "static-linked-ext" ${EXTSTATIC:+"yes"} |
| 35770 |
config_summary "BASERUBY -v" "$BASERUBY_VERSION" |
| 35771 |
echo "" |
| 35772 |
echo "---" |
| 35773 |
|
| 35774 |
fi |
| 35775 |
|