| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.72. |
| 4 |
# |
| 5 |
# |
| 6 |
# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 19 |
then : |
| 20 |
emulate sh |
| 21 |
NULLCMD=: |
| 22 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 |
# is contrary to our usage. Disable this feature. |
| 24 |
alias -g '${1+"$@"}'='"$@"' |
| 25 |
setopt NO_GLOB_SUBST |
| 26 |
else case e in #( |
| 27 |
e) case `(set -o) 2>/dev/null` in #( |
| 28 |
*posix*) : |
| 29 |
set -o posix ;; #( |
| 30 |
*) : |
| 31 |
;; |
| 32 |
esac ;; |
| 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="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 142 |
then : |
| 143 |
emulate sh |
| 144 |
NULLCMD=: |
| 145 |
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 146 |
# is contrary to our usage. Disable this feature. |
| 147 |
alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 148 |
setopt NO_GLOB_SUBST |
| 149 |
else case e in #( |
| 150 |
e) case \`(set -o) 2>/dev/null\` in #( |
| 151 |
*posix*) : |
| 152 |
set -o posix ;; #( |
| 153 |
*) : |
| 154 |
;; |
| 155 |
esac ;; |
| 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 case e in #( |
| 174 |
e) exitcode=1; echo positional parameters were not saved. ;; |
| 175 |
esac |
| 176 |
fi |
| 177 |
test x\$exitcode = x0 || exit 1 |
| 178 |
blah=\$(echo \$(echo blah)) |
| 179 |
test x\"\$blah\" = xblah || exit 1 |
| 180 |
test -x / || exit 1" |
| 181 |
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 182 |
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 183 |
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 184 |
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 185 |
test \$(( 1 + 1 )) = 2 || exit 1" |
| 186 |
if (eval "$as_required") 2>/dev/null |
| 187 |
then : |
| 188 |
as_have_required=yes |
| 189 |
else case e in #( |
| 190 |
e) as_have_required=no ;; |
| 191 |
esac |
| 192 |
fi |
| 193 |
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
| 194 |
then : |
| 195 |
|
| 196 |
else case e in #( |
| 197 |
e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 198 |
as_found=false |
| 199 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 200 |
do |
| 201 |
IFS=$as_save_IFS |
| 202 |
case $as_dir in #((( |
| 203 |
'') as_dir=./ ;; |
| 204 |
*/) ;; |
| 205 |
*) as_dir=$as_dir/ ;; |
| 206 |
esac |
| 207 |
as_found=: |
| 208 |
case $as_dir in #( |
| 209 |
/*) |
| 210 |
for as_base in sh bash ksh sh5; do |
| 211 |
# Try only shells that exist, to save several forks. |
| 212 |
as_shell=$as_dir$as_base |
| 213 |
if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 214 |
as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 215 |
then : |
| 216 |
CONFIG_SHELL=$as_shell as_have_required=yes |
| 217 |
if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
| 218 |
then : |
| 219 |
break 2 |
| 220 |
fi |
| 221 |
fi |
| 222 |
done;; |
| 223 |
esac |
| 224 |
as_found=false |
| 225 |
done |
| 226 |
IFS=$as_save_IFS |
| 227 |
if $as_found |
| 228 |
then : |
| 229 |
|
| 230 |
else case e in #( |
| 231 |
e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 232 |
as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
| 233 |
then : |
| 234 |
CONFIG_SHELL=$SHELL as_have_required=yes |
| 235 |
fi ;; |
| 236 |
esac |
| 237 |
fi |
| 238 |
|
| 239 |
|
| 240 |
if test "x$CONFIG_SHELL" != x |
| 241 |
then : |
| 242 |
export CONFIG_SHELL |
| 243 |
# We cannot yet assume a decent shell, so we have to provide a |
| 244 |
# neutralization value for shells without unset; and this also |
| 245 |
# works around shells that cannot unset nonexistent variables. |
| 246 |
# Preserve -v and -x to the replacement shell. |
| 247 |
BASH_ENV=/dev/null |
| 248 |
ENV=/dev/null |
| 249 |
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 250 |
case $- in # (((( |
| 251 |
*v*x* | *x*v* ) as_opts=-vx ;; |
| 252 |
*v* ) as_opts=-v ;; |
| 253 |
*x* ) as_opts=-x ;; |
| 254 |
* ) as_opts= ;; |
| 255 |
esac |
| 256 |
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
| 257 |
# Admittedly, this is quite paranoid, since all the known shells bail |
| 258 |
# out after a failed 'exec'. |
| 259 |
printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
| 260 |
exit 255 |
| 261 |
fi |
| 262 |
|
| 263 |
if test x$as_have_required = xno |
| 264 |
then : |
| 265 |
printf "%s\n" "$0: This script requires a shell more modern than all" |
| 266 |
printf "%s\n" "$0: the shells that I found on your system." |
| 267 |
if test ${ZSH_VERSION+y} ; then |
| 268 |
printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 269 |
printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
| 270 |
else |
| 271 |
printf "%s\n" "$0: Please tell [email protected] about your system, |
| 272 |
$0: including any error possibly output before this |
| 273 |
$0: message. Then install a modern shell, or manually run |
| 274 |
$0: the script under such a shell if you do have one." |
| 275 |
fi |
| 276 |
exit 1 |
| 277 |
fi ;; |
| 278 |
esac |
| 279 |
fi |
| 280 |
fi |
| 281 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 282 |
export SHELL |
| 283 |
# Unset more variables known to interfere with behavior of common tools. |
| 284 |
CLICOLOR_FORCE= GREP_OPTIONS= |
| 285 |
unset CLICOLOR_FORCE GREP_OPTIONS |
| 286 |
|
| 287 |
## --------------------- ## |
| 288 |
## M4sh Shell Functions. ## |
| 289 |
## --------------------- ## |
| 290 |
# as_fn_unset VAR |
| 291 |
# --------------- |
| 292 |
# Portably unset VAR. |
| 293 |
as_fn_unset () |
| 294 |
{ |
| 295 |
{ eval $1=; unset $1;} |
| 296 |
} |
| 297 |
as_unset=as_fn_unset |
| 298 |
|
| 299 |
|
| 300 |
# as_fn_set_status STATUS |
| 301 |
# ----------------------- |
| 302 |
# Set $? to STATUS, without forking. |
| 303 |
as_fn_set_status () |
| 304 |
{ |
| 305 |
return $1 |
| 306 |
} # as_fn_set_status |
| 307 |
|
| 308 |
# as_fn_exit STATUS |
| 309 |
# ----------------- |
| 310 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 311 |
as_fn_exit () |
| 312 |
{ |
| 313 |
set +e |
| 314 |
as_fn_set_status $1 |
| 315 |
exit $1 |
| 316 |
} # as_fn_exit |
| 317 |
|
| 318 |
# as_fn_mkdir_p |
| 319 |
# ------------- |
| 320 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 321 |
as_fn_mkdir_p () |
| 322 |
{ |
| 323 |
|
| 324 |
case $as_dir in #( |
| 325 |
-*) as_dir=./$as_dir;; |
| 326 |
esac |
| 327 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 328 |
as_dirs= |
| 329 |
while :; do |
| 330 |
case $as_dir in #( |
| 331 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 332 |
*) as_qdir=$as_dir;; |
| 333 |
esac |
| 334 |
as_dirs="'$as_qdir' $as_dirs" |
| 335 |
as_dir=`$as_dirname -- "$as_dir" || |
| 336 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 337 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 338 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 339 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 340 |
printf "%s\n" X"$as_dir" | |
| 341 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 342 |
s//\1/ |
| 343 |
q |
| 344 |
} |
| 345 |
/^X\(\/\/\)[^/].*/{ |
| 346 |
s//\1/ |
| 347 |
q |
| 348 |
} |
| 349 |
/^X\(\/\/\)$/{ |
| 350 |
s//\1/ |
| 351 |
q |
| 352 |
} |
| 353 |
/^X\(\/\).*/{ |
| 354 |
s//\1/ |
| 355 |
q |
| 356 |
} |
| 357 |
s/.*/./; q'` |
| 358 |
test -d "$as_dir" && break |
| 359 |
done |
| 360 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 361 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 362 |
|
| 363 |
|
| 364 |
} # as_fn_mkdir_p |
| 365 |
|
| 366 |
# as_fn_executable_p FILE |
| 367 |
# ----------------------- |
| 368 |
# Test if FILE is an executable regular file. |
| 369 |
as_fn_executable_p () |
| 370 |
{ |
| 371 |
test -f "$1" && test -x "$1" |
| 372 |
} # as_fn_executable_p |
| 373 |
# as_fn_append VAR VALUE |
| 374 |
# ---------------------- |
| 375 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 376 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 377 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 378 |
# implementations. |
| 379 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 380 |
then : |
| 381 |
eval 'as_fn_append () |
| 382 |
{ |
| 383 |
eval $1+=\$2 |
| 384 |
}' |
| 385 |
else case e in #( |
| 386 |
e) as_fn_append () |
| 387 |
{ |
| 388 |
eval $1=\$$1\$2 |
| 389 |
} ;; |
| 390 |
esac |
| 391 |
fi # as_fn_append |
| 392 |
|
| 393 |
# as_fn_arith ARG... |
| 394 |
# ------------------ |
| 395 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 396 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 397 |
# must be portable across $(()) and expr. |
| 398 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 399 |
then : |
| 400 |
eval 'as_fn_arith () |
| 401 |
{ |
| 402 |
as_val=$(( $* )) |
| 403 |
}' |
| 404 |
else case e in #( |
| 405 |
e) as_fn_arith () |
| 406 |
{ |
| 407 |
as_val=`expr "$@" || test $? -eq 1` |
| 408 |
} ;; |
| 409 |
esac |
| 410 |
fi # as_fn_arith |
| 411 |
|
| 412 |
|
| 413 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 414 |
# ---------------------------------------- |
| 415 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 416 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 417 |
# script with STATUS, using 1 if that was 0. |
| 418 |
as_fn_error () |
| 419 |
{ |
| 420 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 421 |
if test "$4"; then |
| 422 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 423 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 424 |
fi |
| 425 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 426 |
as_fn_exit $as_status |
| 427 |
} # as_fn_error |
| 428 |
|
| 429 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 430 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 431 |
as_expr=expr |
| 432 |
else |
| 433 |
as_expr=false |
| 434 |
fi |
| 435 |
|
| 436 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 437 |
as_basename=basename |
| 438 |
else |
| 439 |
as_basename=false |
| 440 |
fi |
| 441 |
|
| 442 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 443 |
as_dirname=dirname |
| 444 |
else |
| 445 |
as_dirname=false |
| 446 |
fi |
| 447 |
|
| 448 |
as_me=`$as_basename -- "$0" || |
| 449 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 450 |
X"$0" : 'X\(//\)$' \| \ |
| 451 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 452 |
printf "%s\n" X/"$0" | |
| 453 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 454 |
s//\1/ |
| 455 |
q |
| 456 |
} |
| 457 |
/^X\/\(\/\/\)$/{ |
| 458 |
s//\1/ |
| 459 |
q |
| 460 |
} |
| 461 |
/^X\/\(\/\).*/{ |
| 462 |
s//\1/ |
| 463 |
q |
| 464 |
} |
| 465 |
s/.*/./; q'` |
| 466 |
|
| 467 |
# Avoid depending upon Character Ranges. |
| 468 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 469 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 470 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 471 |
as_cr_digits='0123456789' |
| 472 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 473 |
|
| 474 |
|
| 475 |
as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 476 |
as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 477 |
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 478 |
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 479 |
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 480 |
sed -n ' |
| 481 |
p |
| 482 |
/[$]LINENO/= |
| 483 |
' <$as_myself | |
| 484 |
sed ' |
| 485 |
t clear |
| 486 |
:clear |
| 487 |
s/[$]LINENO.*/&-/ |
| 488 |
t lineno |
| 489 |
b |
| 490 |
:lineno |
| 491 |
N |
| 492 |
:loop |
| 493 |
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 494 |
t loop |
| 495 |
s/-\n.*// |
| 496 |
' >$as_me.lineno && |
| 497 |
chmod +x "$as_me.lineno" || |
| 498 |
{ printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 499 |
|
| 500 |
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
| 501 |
# already done that, so ensure we don't try to do so again and fall |
| 502 |
# in an infinite loop. This has already happened in practice. |
| 503 |
_as_can_reexec=no; export _as_can_reexec |
| 504 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 505 |
# (the dirname of $[0] is not the place where we might find the |
| 506 |
# original and so on. Autoconf is especially sensitive to this). |
| 507 |
. "./$as_me.lineno" |
| 508 |
# Exit status is that of the last command. |
| 509 |
exit |
| 510 |
} |
| 511 |
|
| 512 |
|
| 513 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 514 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 515 |
# for compatibility with existing Makefiles. |
| 516 |
ECHO_C= ECHO_N= ECHO_T= |
| 517 |
case `echo -n x` in #((((( |
| 518 |
-n*) |
| 519 |
case `echo 'xy\c'` in |
| 520 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 521 |
xy) ECHO_C='\c';; |
| 522 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 523 |
ECHO_T=' ';; |
| 524 |
esac;; |
| 525 |
*) |
| 526 |
ECHO_N='-n';; |
| 527 |
esac |
| 528 |
|
| 529 |
# For backward compatibility with old third-party macros, we provide |
| 530 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 531 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 532 |
as_echo='printf %s\n' |
| 533 |
as_echo_n='printf %s' |
| 534 |
|
| 535 |
rm -f conf$$ conf$$.exe conf$$.file |
| 536 |
if test -d conf$$.dir; then |
| 537 |
rm -f conf$$.dir/conf$$.file |
| 538 |
else |
| 539 |
rm -f conf$$.dir |
| 540 |
mkdir conf$$.dir 2>/dev/null |
| 541 |
fi |
| 542 |
if (echo >conf$$.file) 2>/dev/null; then |
| 543 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 544 |
as_ln_s='ln -s' |
| 545 |
# ... but there are two gotchas: |
| 546 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 547 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 548 |
# In both cases, we have to default to 'cp -pR'. |
| 549 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 550 |
as_ln_s='cp -pR' |
| 551 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 552 |
as_ln_s=ln |
| 553 |
else |
| 554 |
as_ln_s='cp -pR' |
| 555 |
fi |
| 556 |
else |
| 557 |
as_ln_s='cp -pR' |
| 558 |
fi |
| 559 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 560 |
rmdir conf$$.dir 2>/dev/null |
| 561 |
|
| 562 |
if mkdir -p . 2>/dev/null; then |
| 563 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 564 |
else |
| 565 |
test -d ./-p && rmdir ./-p |
| 566 |
as_mkdir_p=false |
| 567 |
fi |
| 568 |
|
| 569 |
as_test_x='test -x' |
| 570 |
as_executable_p=as_fn_executable_p |
| 571 |
|
| 572 |
# Sed expression to map a string onto a valid CPP name. |
| 573 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 574 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 575 |
|
| 576 |
# Sed expression to map a string onto a valid variable name. |
| 577 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 578 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 579 |
|
| 580 |
|
| 581 |
test -n "$DJDIR" || exec 7<&0 </dev/null |
| 582 |
exec 6>&1 |
| 583 |
|
| 584 |
# Name of the host. |
| 585 |
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
| 586 |
# so uname gets run too. |
| 587 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 588 |
|
| 589 |
# |
| 590 |
# Initializations. |
| 591 |
# |
| 592 |
ac_default_prefix=/usr/local |
| 593 |
ac_clean_files= |
| 594 |
ac_config_libobj_dir=. |
| 595 |
LIBOBJS= |
| 596 |
cross_compiling=no |
| 597 |
subdirs= |
| 598 |
MFLAGS= |
| 599 |
MAKEFLAGS= |
| 600 |
|
| 601 |
# Identity of this package. |
| 602 |
PACKAGE_NAME='' |
| 603 |
PACKAGE_TARNAME='' |
| 604 |
PACKAGE_VERSION='' |
| 605 |
PACKAGE_STRING='' |
| 606 |
PACKAGE_BUGREPORT='' |
| 607 |
PACKAGE_URL='' |
| 608 |
|
| 609 |
ac_unique_file="libsrc/posix.adb" |
| 610 |
ac_subst_vars='LTLIBOBJS |
| 611 |
LIBOBJS |
| 612 |
CPP |
| 613 |
RTS_OPTION |
| 614 |
BUILD_TYPE_OPTION |
| 615 |
ENABLE_SHARED |
| 616 |
DEPS |
| 617 |
THREADS_OPTION |
| 618 |
SIGNALS_GENERATED |
| 619 |
OBJEXT |
| 620 |
EXEEXT |
| 621 |
ac_ct_CC |
| 622 |
CPPFLAGS |
| 623 |
LDFLAGS |
| 624 |
CFLAGS |
| 625 |
CC |
| 626 |
target_alias |
| 627 |
host_alias |
| 628 |
build_alias |
| 629 |
LIBS |
| 630 |
ECHO_T |
| 631 |
ECHO_N |
| 632 |
ECHO_C |
| 633 |
DEFS |
| 634 |
mandir |
| 635 |
localedir |
| 636 |
libdir |
| 637 |
psdir |
| 638 |
pdfdir |
| 639 |
dvidir |
| 640 |
htmldir |
| 641 |
infodir |
| 642 |
docdir |
| 643 |
oldincludedir |
| 644 |
includedir |
| 645 |
runstatedir |
| 646 |
localstatedir |
| 647 |
sharedstatedir |
| 648 |
sysconfdir |
| 649 |
datadir |
| 650 |
datarootdir |
| 651 |
libexecdir |
| 652 |
sbindir |
| 653 |
bindir |
| 654 |
program_transform_name |
| 655 |
prefix |
| 656 |
exec_prefix |
| 657 |
PACKAGE_URL |
| 658 |
PACKAGE_BUGREPORT |
| 659 |
PACKAGE_STRING |
| 660 |
PACKAGE_VERSION |
| 661 |
PACKAGE_TARNAME |
| 662 |
PACKAGE_NAME |
| 663 |
PATH_SEPARATOR |
| 664 |
SHELL' |
| 665 |
ac_subst_files='' |
| 666 |
ac_user_opts=' |
| 667 |
enable_option_checking |
| 668 |
enable_threads |
| 669 |
enable_shared |
| 670 |
with_build_type |
| 671 |
with_rts |
| 672 |
' |
| 673 |
ac_precious_vars='build_alias |
| 674 |
host_alias |
| 675 |
target_alias |
| 676 |
CC |
| 677 |
CFLAGS |
| 678 |
LDFLAGS |
| 679 |
LIBS |
| 680 |
CPPFLAGS |
| 681 |
CPP' |
| 682 |
|
| 683 |
|
| 684 |
# Initialize some variables set by options. |
| 685 |
ac_init_help= |
| 686 |
ac_init_version=false |
| 687 |
ac_unrecognized_opts= |
| 688 |
ac_unrecognized_sep= |
| 689 |
# The variables have the same names as the options, with |
| 690 |
# dashes changed to underlines. |
| 691 |
cache_file=/dev/null |
| 692 |
exec_prefix=NONE |
| 693 |
no_create= |
| 694 |
no_recursion= |
| 695 |
prefix=NONE |
| 696 |
program_prefix=NONE |
| 697 |
program_suffix=NONE |
| 698 |
program_transform_name=s,x,x, |
| 699 |
silent= |
| 700 |
site= |
| 701 |
srcdir= |
| 702 |
verbose= |
| 703 |
x_includes=NONE |
| 704 |
x_libraries=NONE |
| 705 |
|
| 706 |
# Installation directory options. |
| 707 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 708 |
# and all the variables that are supposed to be based on exec_prefix |
| 709 |
# by default will actually change. |
| 710 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 711 |
# (The list follows the same order as the GNU Coding Standards.) |
| 712 |
bindir='${exec_prefix}/bin' |
| 713 |
sbindir='${exec_prefix}/sbin' |
| 714 |
libexecdir='${exec_prefix}/libexec' |
| 715 |
datarootdir='${prefix}/share' |
| 716 |
datadir='${datarootdir}' |
| 717 |
sysconfdir='${prefix}/etc' |
| 718 |
sharedstatedir='${prefix}/com' |
| 719 |
localstatedir='${prefix}/var' |
| 720 |
runstatedir='${localstatedir}/run' |
| 721 |
includedir='${prefix}/include' |
| 722 |
oldincludedir='/usr/include' |
| 723 |
docdir='${datarootdir}/doc/${PACKAGE}' |
| 724 |
infodir='${datarootdir}/info' |
| 725 |
htmldir='${docdir}' |
| 726 |
dvidir='${docdir}' |
| 727 |
pdfdir='${docdir}' |
| 728 |
psdir='${docdir}' |
| 729 |
libdir='${exec_prefix}/lib' |
| 730 |
localedir='${datarootdir}/locale' |
| 731 |
mandir='${datarootdir}/man' |
| 732 |
|
| 733 |
ac_prev= |
| 734 |
ac_dashdash= |
| 735 |
for ac_option |
| 736 |
do |
| 737 |
# If the previous option needs an argument, assign it. |
| 738 |
if test -n "$ac_prev"; then |
| 739 |
eval $ac_prev=\$ac_option |
| 740 |
ac_prev= |
| 741 |
continue |
| 742 |
fi |
| 743 |
|
| 744 |
case $ac_option in |
| 745 |
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 746 |
*=) ac_optarg= ;; |
| 747 |
*) ac_optarg=yes ;; |
| 748 |
esac |
| 749 |
|
| 750 |
case $ac_dashdash$ac_option in |
| 751 |
--) |
| 752 |
ac_dashdash=yes ;; |
| 753 |
|
| 754 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 755 |
ac_prev=bindir ;; |
| 756 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 757 |
bindir=$ac_optarg ;; |
| 758 |
|
| 759 |
-build | --build | --buil | --bui | --bu) |
| 760 |
ac_prev=build_alias ;; |
| 761 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 762 |
build_alias=$ac_optarg ;; |
| 763 |
|
| 764 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 765 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 766 |
ac_prev=cache_file ;; |
| 767 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 768 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 769 |
cache_file=$ac_optarg ;; |
| 770 |
|
| 771 |
--config-cache | -C) |
| 772 |
cache_file=config.cache ;; |
| 773 |
|
| 774 |
-datadir | --datadir | --datadi | --datad) |
| 775 |
ac_prev=datadir ;; |
| 776 |
-datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 777 |
datadir=$ac_optarg ;; |
| 778 |
|
| 779 |
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 780 |
| --dataroo | --dataro | --datar) |
| 781 |
ac_prev=datarootdir ;; |
| 782 |
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 783 |
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 784 |
datarootdir=$ac_optarg ;; |
| 785 |
|
| 786 |
-disable-* | --disable-*) |
| 787 |
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 788 |
# Reject names that are not valid shell variable names. |
| 789 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 790 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 791 |
ac_useropt_orig=$ac_useropt |
| 792 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 793 |
case $ac_user_opts in |
| 794 |
*" |
| 795 |
"enable_$ac_useropt" |
| 796 |
"*) ;; |
| 797 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 798 |
ac_unrecognized_sep=', ';; |
| 799 |
esac |
| 800 |
eval enable_$ac_useropt=no ;; |
| 801 |
|
| 802 |
-docdir | --docdir | --docdi | --doc | --do) |
| 803 |
ac_prev=docdir ;; |
| 804 |
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 805 |
docdir=$ac_optarg ;; |
| 806 |
|
| 807 |
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 808 |
ac_prev=dvidir ;; |
| 809 |
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 810 |
dvidir=$ac_optarg ;; |
| 811 |
|
| 812 |
-enable-* | --enable-*) |
| 813 |
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 814 |
# Reject names that are not valid shell variable names. |
| 815 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 816 |
as_fn_error $? "invalid feature name: '$ac_useropt'" |
| 817 |
ac_useropt_orig=$ac_useropt |
| 818 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 819 |
case $ac_user_opts in |
| 820 |
*" |
| 821 |
"enable_$ac_useropt" |
| 822 |
"*) ;; |
| 823 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 824 |
ac_unrecognized_sep=', ';; |
| 825 |
esac |
| 826 |
eval enable_$ac_useropt=\$ac_optarg ;; |
| 827 |
|
| 828 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 829 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 830 |
| --exec | --exe | --ex) |
| 831 |
ac_prev=exec_prefix ;; |
| 832 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 833 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 834 |
| --exec=* | --exe=* | --ex=*) |
| 835 |
exec_prefix=$ac_optarg ;; |
| 836 |
|
| 837 |
-gas | --gas | --ga | --g) |
| 838 |
# Obsolete; use --with-gas. |
| 839 |
with_gas=yes ;; |
| 840 |
|
| 841 |
-help | --help | --hel | --he | -h) |
| 842 |
ac_init_help=long ;; |
| 843 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 844 |
ac_init_help=recursive ;; |
| 845 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 846 |
ac_init_help=short ;; |
| 847 |
|
| 848 |
-host | --host | --hos | --ho) |
| 849 |
ac_prev=host_alias ;; |
| 850 |
-host=* | --host=* | --hos=* | --ho=*) |
| 851 |
host_alias=$ac_optarg ;; |
| 852 |
|
| 853 |
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 854 |
ac_prev=htmldir ;; |
| 855 |
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 856 |
| --ht=*) |
| 857 |
htmldir=$ac_optarg ;; |
| 858 |
|
| 859 |
-includedir | --includedir | --includedi | --included | --include \ |
| 860 |
| --includ | --inclu | --incl | --inc) |
| 861 |
ac_prev=includedir ;; |
| 862 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 863 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 864 |
includedir=$ac_optarg ;; |
| 865 |
|
| 866 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 867 |
ac_prev=infodir ;; |
| 868 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 869 |
infodir=$ac_optarg ;; |
| 870 |
|
| 871 |
-libdir | --libdir | --libdi | --libd) |
| 872 |
ac_prev=libdir ;; |
| 873 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 874 |
libdir=$ac_optarg ;; |
| 875 |
|
| 876 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 877 |
| --libexe | --libex | --libe) |
| 878 |
ac_prev=libexecdir ;; |
| 879 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 880 |
| --libexe=* | --libex=* | --libe=*) |
| 881 |
libexecdir=$ac_optarg ;; |
| 882 |
|
| 883 |
-localedir | --localedir | --localedi | --localed | --locale) |
| 884 |
ac_prev=localedir ;; |
| 885 |
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 886 |
localedir=$ac_optarg ;; |
| 887 |
|
| 888 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 889 |
| --localstate | --localstat | --localsta | --localst | --locals) |
| 890 |
ac_prev=localstatedir ;; |
| 891 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 892 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 893 |
localstatedir=$ac_optarg ;; |
| 894 |
|
| 895 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 896 |
ac_prev=mandir ;; |
| 897 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 898 |
mandir=$ac_optarg ;; |
| 899 |
|
| 900 |
-nfp | --nfp | --nf) |
| 901 |
# Obsolete; use --without-fp. |
| 902 |
with_fp=no ;; |
| 903 |
|
| 904 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 905 |
| --no-cr | --no-c | -n) |
| 906 |
no_create=yes ;; |
| 907 |
|
| 908 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 909 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 910 |
no_recursion=yes ;; |
| 911 |
|
| 912 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 913 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 914 |
| --oldin | --oldi | --old | --ol | --o) |
| 915 |
ac_prev=oldincludedir ;; |
| 916 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 917 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 918 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 919 |
oldincludedir=$ac_optarg ;; |
| 920 |
|
| 921 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 922 |
ac_prev=prefix ;; |
| 923 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 924 |
prefix=$ac_optarg ;; |
| 925 |
|
| 926 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 927 |
| --program-pre | --program-pr | --program-p) |
| 928 |
ac_prev=program_prefix ;; |
| 929 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 930 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 931 |
program_prefix=$ac_optarg ;; |
| 932 |
|
| 933 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 934 |
| --program-suf | --program-su | --program-s) |
| 935 |
ac_prev=program_suffix ;; |
| 936 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 937 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 938 |
program_suffix=$ac_optarg ;; |
| 939 |
|
| 940 |
-program-transform-name | --program-transform-name \ |
| 941 |
| --program-transform-nam | --program-transform-na \ |
| 942 |
| --program-transform-n | --program-transform- \ |
| 943 |
| --program-transform | --program-transfor \ |
| 944 |
| --program-transfo | --program-transf \ |
| 945 |
| --program-trans | --program-tran \ |
| 946 |
| --progr-tra | --program-tr | --program-t) |
| 947 |
ac_prev=program_transform_name ;; |
| 948 |
-program-transform-name=* | --program-transform-name=* \ |
| 949 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 950 |
| --program-transform-n=* | --program-transform-=* \ |
| 951 |
| --program-transform=* | --program-transfor=* \ |
| 952 |
| --program-transfo=* | --program-transf=* \ |
| 953 |
| --program-trans=* | --program-tran=* \ |
| 954 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 955 |
program_transform_name=$ac_optarg ;; |
| 956 |
|
| 957 |
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 958 |
ac_prev=pdfdir ;; |
| 959 |
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 960 |
pdfdir=$ac_optarg ;; |
| 961 |
|
| 962 |
-psdir | --psdir | --psdi | --psd | --ps) |
| 963 |
ac_prev=psdir ;; |
| 964 |
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 965 |
psdir=$ac_optarg ;; |
| 966 |
|
| 967 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 968 |
| -silent | --silent | --silen | --sile | --sil) |
| 969 |
silent=yes ;; |
| 970 |
|
| 971 |
-runstatedir | --runstatedir | --runstatedi | --runstated \ |
| 972 |
| --runstate | --runstat | --runsta | --runst | --runs \ |
| 973 |
| --run | --ru | --r) |
| 974 |
ac_prev=runstatedir ;; |
| 975 |
-runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
| 976 |
| --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
| 977 |
| --run=* | --ru=* | --r=*) |
| 978 |
runstatedir=$ac_optarg ;; |
| 979 |
|
| 980 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 981 |
ac_prev=sbindir ;; |
| 982 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 983 |
| --sbi=* | --sb=*) |
| 984 |
sbindir=$ac_optarg ;; |
| 985 |
|
| 986 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 987 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 988 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 989 |
| --sha | --sh) |
| 990 |
ac_prev=sharedstatedir ;; |
| 991 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 992 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 993 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 994 |
| --sha=* | --sh=*) |
| 995 |
sharedstatedir=$ac_optarg ;; |
| 996 |
|
| 997 |
-site | --site | --sit) |
| 998 |
ac_prev=site ;; |
| 999 |
-site=* | --site=* | --sit=*) |
| 1000 |
site=$ac_optarg ;; |
| 1001 |
|
| 1002 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1003 |
ac_prev=srcdir ;; |
| 1004 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1005 |
srcdir=$ac_optarg ;; |
| 1006 |
|
| 1007 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1008 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 1009 |
ac_prev=sysconfdir ;; |
| 1010 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1011 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1012 |
sysconfdir=$ac_optarg ;; |
| 1013 |
|
| 1014 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 1015 |
ac_prev=target_alias ;; |
| 1016 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1017 |
target_alias=$ac_optarg ;; |
| 1018 |
|
| 1019 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1020 |
verbose=yes ;; |
| 1021 |
|
| 1022 |
-version | --version | --versio | --versi | --vers | -V) |
| 1023 |
ac_init_version=: ;; |
| 1024 |
|
| 1025 |
-with-* | --with-*) |
| 1026 |
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1027 |
# Reject names that are not valid shell variable names. |
| 1028 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1029 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1030 |
ac_useropt_orig=$ac_useropt |
| 1031 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1032 |
case $ac_user_opts in |
| 1033 |
*" |
| 1034 |
"with_$ac_useropt" |
| 1035 |
"*) ;; |
| 1036 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1037 |
ac_unrecognized_sep=', ';; |
| 1038 |
esac |
| 1039 |
eval with_$ac_useropt=\$ac_optarg ;; |
| 1040 |
|
| 1041 |
-without-* | --without-*) |
| 1042 |
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1043 |
# Reject names that are not valid shell variable names. |
| 1044 |
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1045 |
as_fn_error $? "invalid package name: '$ac_useropt'" |
| 1046 |
ac_useropt_orig=$ac_useropt |
| 1047 |
ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1048 |
case $ac_user_opts in |
| 1049 |
*" |
| 1050 |
"with_$ac_useropt" |
| 1051 |
"*) ;; |
| 1052 |
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1053 |
ac_unrecognized_sep=', ';; |
| 1054 |
esac |
| 1055 |
eval with_$ac_useropt=no ;; |
| 1056 |
|
| 1057 |
--x) |
| 1058 |
# Obsolete; use --with-x. |
| 1059 |
with_x=yes ;; |
| 1060 |
|
| 1061 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1062 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 1063 |
ac_prev=x_includes ;; |
| 1064 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1065 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1066 |
x_includes=$ac_optarg ;; |
| 1067 |
|
| 1068 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1069 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1070 |
ac_prev=x_libraries ;; |
| 1071 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1072 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1073 |
x_libraries=$ac_optarg ;; |
| 1074 |
|
| 1075 |
-*) as_fn_error $? "unrecognized option: '$ac_option' |
| 1076 |
Try '$0 --help' for more information" |
| 1077 |
;; |
| 1078 |
|
| 1079 |
*=*) |
| 1080 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1081 |
# Reject names that are not valid shell variable names. |
| 1082 |
case $ac_envvar in #( |
| 1083 |
'' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1084 |
as_fn_error $? "invalid variable name: '$ac_envvar'" ;; |
| 1085 |
esac |
| 1086 |
eval $ac_envvar=\$ac_optarg |
| 1087 |
export $ac_envvar ;; |
| 1088 |
|
| 1089 |
*) |
| 1090 |
# FIXME: should be removed in autoconf 3.0. |
| 1091 |
printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1092 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1093 |
printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1094 |
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
| 1095 |
;; |
| 1096 |
|
| 1097 |
esac |
| 1098 |
done |
| 1099 |
|
| 1100 |
if test -n "$ac_prev"; then |
| 1101 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1102 |
as_fn_error $? "missing argument to $ac_option" |
| 1103 |
fi |
| 1104 |
|
| 1105 |
if test -n "$ac_unrecognized_opts"; then |
| 1106 |
case $enable_option_checking in |
| 1107 |
no) ;; |
| 1108 |
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
| 1109 |
*) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1110 |
esac |
| 1111 |
fi |
| 1112 |
|
| 1113 |
# Check all directory arguments for consistency. |
| 1114 |
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1115 |
datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1116 |
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1117 |
libdir localedir mandir runstatedir |
| 1118 |
do |
| 1119 |
eval ac_val=\$$ac_var |
| 1120 |
# Remove trailing slashes. |
| 1121 |
case $ac_val in |
| 1122 |
*/ ) |
| 1123 |
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1124 |
eval $ac_var=\$ac_val;; |
| 1125 |
esac |
| 1126 |
# Be sure to have absolute directory names. |
| 1127 |
case $ac_val in |
| 1128 |
[\\/$]* | ?:[\\/]* ) continue;; |
| 1129 |
NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1130 |
esac |
| 1131 |
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
| 1132 |
done |
| 1133 |
|
| 1134 |
# There might be people who depend on the old broken behavior: '$host' |
| 1135 |
# used to hold the argument of --host etc. |
| 1136 |
# FIXME: To remove some day. |
| 1137 |
build=$build_alias |
| 1138 |
host=$host_alias |
| 1139 |
target=$target_alias |
| 1140 |
|
| 1141 |
# FIXME: To remove some day. |
| 1142 |
if test "x$host_alias" != x; then |
| 1143 |
if test "x$build_alias" = x; then |
| 1144 |
cross_compiling=maybe |
| 1145 |
elif test "x$build_alias" != "x$host_alias"; then |
| 1146 |
cross_compiling=yes |
| 1147 |
fi |
| 1148 |
fi |
| 1149 |
|
| 1150 |
ac_tool_prefix= |
| 1151 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1152 |
|
| 1153 |
test "$silent" = yes && exec 6>/dev/null |
| 1154 |
|
| 1155 |
|
| 1156 |
ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1157 |
ac_ls_di=`ls -di .` && |
| 1158 |
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1159 |
as_fn_error $? "working directory cannot be determined" |
| 1160 |
test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1161 |
as_fn_error $? "pwd does not report name of working directory" |
| 1162 |
|
| 1163 |
|
| 1164 |
# Find the source files, if location was not specified. |
| 1165 |
if test -z "$srcdir"; then |
| 1166 |
ac_srcdir_defaulted=yes |
| 1167 |
# Try the directory containing this script, then the parent directory. |
| 1168 |
ac_confdir=`$as_dirname -- "$as_myself" || |
| 1169 |
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1170 |
X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1171 |
X"$as_myself" : 'X\(//\)$' \| \ |
| 1172 |
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1173 |
printf "%s\n" X"$as_myself" | |
| 1174 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1175 |
s//\1/ |
| 1176 |
q |
| 1177 |
} |
| 1178 |
/^X\(\/\/\)[^/].*/{ |
| 1179 |
s//\1/ |
| 1180 |
q |
| 1181 |
} |
| 1182 |
/^X\(\/\/\)$/{ |
| 1183 |
s//\1/ |
| 1184 |
q |
| 1185 |
} |
| 1186 |
/^X\(\/\).*/{ |
| 1187 |
s//\1/ |
| 1188 |
q |
| 1189 |
} |
| 1190 |
s/.*/./; q'` |
| 1191 |
srcdir=$ac_confdir |
| 1192 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1193 |
srcdir=.. |
| 1194 |
fi |
| 1195 |
else |
| 1196 |
ac_srcdir_defaulted=no |
| 1197 |
fi |
| 1198 |
if test ! -r "$srcdir/$ac_unique_file"; then |
| 1199 |
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1200 |
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
| 1201 |
fi |
| 1202 |
ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" |
| 1203 |
ac_abs_confdir=`( |
| 1204 |
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
| 1205 |
pwd)` |
| 1206 |
# When building in place, set srcdir=. |
| 1207 |
if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1208 |
srcdir=. |
| 1209 |
fi |
| 1210 |
# Remove unnecessary trailing slashes from srcdir. |
| 1211 |
# Double slashes in file names in object file debugging info |
| 1212 |
# mess up M-x gdb in Emacs. |
| 1213 |
case $srcdir in |
| 1214 |
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1215 |
esac |
| 1216 |
for ac_var in $ac_precious_vars; do |
| 1217 |
eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1218 |
eval ac_env_${ac_var}_value=\$${ac_var} |
| 1219 |
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1220 |
eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1221 |
done |
| 1222 |
|
| 1223 |
# |
| 1224 |
# Report the --help message. |
| 1225 |
# |
| 1226 |
if test "$ac_init_help" = "long"; then |
| 1227 |
# Omit some internal or obsolete options to make the list less imposing. |
| 1228 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 1229 |
cat <<_ACEOF |
| 1230 |
'configure' configures this package to adapt to many kinds of systems. |
| 1231 |
|
| 1232 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1233 |
|
| 1234 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1235 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1236 |
|
| 1237 |
Defaults for the options are specified in brackets. |
| 1238 |
|
| 1239 |
Configuration: |
| 1240 |
-h, --help display this help and exit |
| 1241 |
--help=short display options specific to this package |
| 1242 |
--help=recursive display the short help of all the included packages |
| 1243 |
-V, --version display version information and exit |
| 1244 |
-q, --quiet, --silent do not print 'checking ...' messages |
| 1245 |
--cache-file=FILE cache test results in FILE [disabled] |
| 1246 |
-C, --config-cache alias for '--cache-file=config.cache' |
| 1247 |
-n, --no-create do not create output files |
| 1248 |
--srcdir=DIR find the sources in DIR [configure dir or '..'] |
| 1249 |
|
| 1250 |
Installation directories: |
| 1251 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 1252 |
[$ac_default_prefix] |
| 1253 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1254 |
[PREFIX] |
| 1255 |
|
| 1256 |
By default, 'make install' will install all the files in |
| 1257 |
'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify |
| 1258 |
an installation prefix other than '$ac_default_prefix' using '--prefix', |
| 1259 |
for instance '--prefix=\$HOME'. |
| 1260 |
|
| 1261 |
For better control, use the options below. |
| 1262 |
|
| 1263 |
Fine tuning of the installation directories: |
| 1264 |
--bindir=DIR user executables [EPREFIX/bin] |
| 1265 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1266 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 1267 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1268 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1269 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1270 |
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
| 1271 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 1272 |
--includedir=DIR C header files [PREFIX/include] |
| 1273 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1274 |
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1275 |
--datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1276 |
--infodir=DIR info documentation [DATAROOTDIR/info] |
| 1277 |
--localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1278 |
--mandir=DIR man documentation [DATAROOTDIR/man] |
| 1279 |
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1280 |
--htmldir=DIR html documentation [DOCDIR] |
| 1281 |
--dvidir=DIR dvi documentation [DOCDIR] |
| 1282 |
--pdfdir=DIR pdf documentation [DOCDIR] |
| 1283 |
--psdir=DIR ps documentation [DOCDIR] |
| 1284 |
_ACEOF |
| 1285 |
|
| 1286 |
cat <<\_ACEOF |
| 1287 |
_ACEOF |
| 1288 |
fi |
| 1289 |
|
| 1290 |
if test -n "$ac_init_help"; then |
| 1291 |
|
| 1292 |
cat <<\_ACEOF |
| 1293 |
|
| 1294 |
Optional Features: |
| 1295 |
--disable-option-checking ignore unrecognized --enable/--with options |
| 1296 |
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1297 |
--enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1298 |
--disable-threads Do not try to build pthread support |
| 1299 |
--enable-shared Enable build of shared libraries |
| 1300 |
|
| 1301 |
Optional Packages: |
| 1302 |
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1303 |
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1304 |
--with-build-type=X Set build type (Production/Debug) |
| 1305 |
--with-rts=X Set RTS |
| 1306 |
|
| 1307 |
Some influential environment variables: |
| 1308 |
CC C compiler command |
| 1309 |
CFLAGS C compiler flags |
| 1310 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1311 |
nonstandard directory <lib dir> |
| 1312 |
LIBS libraries to pass to the linker, e.g. -l<library> |
| 1313 |
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 1314 |
you have headers in a nonstandard directory <include dir> |
| 1315 |
CPP C preprocessor |
| 1316 |
|
| 1317 |
Use these variables to override the choices made by 'configure' or to help |
| 1318 |
it to find libraries and programs with nonstandard names/locations. |
| 1319 |
|
| 1320 |
Report bugs to the package provider. |
| 1321 |
_ACEOF |
| 1322 |
ac_status=$? |
| 1323 |
fi |
| 1324 |
|
| 1325 |
if test "$ac_init_help" = "recursive"; then |
| 1326 |
# If there are subdirs, report their specific --help. |
| 1327 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1328 |
test -d "$ac_dir" || |
| 1329 |
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1330 |
continue |
| 1331 |
ac_builddir=. |
| 1332 |
|
| 1333 |
case "$ac_dir" in |
| 1334 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1335 |
*) |
| 1336 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1337 |
# A ".." for each directory in $ac_dir_suffix. |
| 1338 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1339 |
case $ac_top_builddir_sub in |
| 1340 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1341 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1342 |
esac ;; |
| 1343 |
esac |
| 1344 |
ac_abs_top_builddir=$ac_pwd |
| 1345 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1346 |
# for backward compatibility: |
| 1347 |
ac_top_builddir=$ac_top_build_prefix |
| 1348 |
|
| 1349 |
case $srcdir in |
| 1350 |
.) # We are building in place. |
| 1351 |
ac_srcdir=. |
| 1352 |
ac_top_srcdir=$ac_top_builddir_sub |
| 1353 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 1354 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 1355 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 1356 |
ac_top_srcdir=$srcdir |
| 1357 |
ac_abs_top_srcdir=$srcdir ;; |
| 1358 |
*) # Relative name. |
| 1359 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1360 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1361 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1362 |
esac |
| 1363 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1364 |
|
| 1365 |
cd "$ac_dir" || { ac_status=$?; continue; } |
| 1366 |
# Check for configure.gnu first; this name is used for a wrapper for |
| 1367 |
# Metaconfig's "Configure" on case-insensitive file systems. |
| 1368 |
if test -f "$ac_srcdir/configure.gnu"; then |
| 1369 |
echo && |
| 1370 |
$SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1371 |
elif test -f "$ac_srcdir/configure"; then |
| 1372 |
echo && |
| 1373 |
$SHELL "$ac_srcdir/configure" --help=recursive |
| 1374 |
else |
| 1375 |
printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1376 |
fi || ac_status=$? |
| 1377 |
cd "$ac_pwd" || { ac_status=$?; break; } |
| 1378 |
done |
| 1379 |
fi |
| 1380 |
|
| 1381 |
test -n "$ac_init_help" && exit $ac_status |
| 1382 |
if $ac_init_version; then |
| 1383 |
cat <<\_ACEOF |
| 1384 |
configure |
| 1385 |
generated by GNU Autoconf 2.72 |
| 1386 |
|
| 1387 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 1388 |
This configure script is free software; the Free Software Foundation |
| 1389 |
gives unlimited permission to copy, distribute and modify it. |
| 1390 |
_ACEOF |
| 1391 |
exit |
| 1392 |
fi |
| 1393 |
|
| 1394 |
## ------------------------ ## |
| 1395 |
## Autoconf initialization. ## |
| 1396 |
## ------------------------ ## |
| 1397 |
|
| 1398 |
# ac_fn_c_try_compile LINENO |
| 1399 |
# -------------------------- |
| 1400 |
# Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1401 |
ac_fn_c_try_compile () |
| 1402 |
{ |
| 1403 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1404 |
rm -f conftest.$ac_objext conftest.beam |
| 1405 |
if { { ac_try="$ac_compile" |
| 1406 |
case "(($ac_try" in |
| 1407 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1408 |
*) ac_try_echo=$ac_try;; |
| 1409 |
esac |
| 1410 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1411 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1412 |
(eval "$ac_compile") 2>conftest.err |
| 1413 |
ac_status=$? |
| 1414 |
if test -s conftest.err; then |
| 1415 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1416 |
cat conftest.er1 >&5 |
| 1417 |
mv -f conftest.er1 conftest.err |
| 1418 |
fi |
| 1419 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1420 |
test $ac_status = 0; } && { |
| 1421 |
test -z "$ac_c_werror_flag" || |
| 1422 |
test ! -s conftest.err |
| 1423 |
} && test -s conftest.$ac_objext |
| 1424 |
then : |
| 1425 |
ac_retval=0 |
| 1426 |
else case e in #( |
| 1427 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1428 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1429 |
|
| 1430 |
ac_retval=1 ;; |
| 1431 |
esac |
| 1432 |
fi |
| 1433 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1434 |
as_fn_set_status $ac_retval |
| 1435 |
|
| 1436 |
} # ac_fn_c_try_compile |
| 1437 |
|
| 1438 |
# ac_fn_c_try_cpp LINENO |
| 1439 |
# ---------------------- |
| 1440 |
# Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1441 |
ac_fn_c_try_cpp () |
| 1442 |
{ |
| 1443 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1444 |
if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1445 |
case "(($ac_try" in |
| 1446 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1447 |
*) ac_try_echo=$ac_try;; |
| 1448 |
esac |
| 1449 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1450 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1451 |
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1452 |
ac_status=$? |
| 1453 |
if test -s conftest.err; then |
| 1454 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1455 |
cat conftest.er1 >&5 |
| 1456 |
mv -f conftest.er1 conftest.err |
| 1457 |
fi |
| 1458 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1459 |
test $ac_status = 0; } > conftest.i && { |
| 1460 |
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1461 |
test ! -s conftest.err |
| 1462 |
} |
| 1463 |
then : |
| 1464 |
ac_retval=0 |
| 1465 |
else case e in #( |
| 1466 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1467 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1468 |
|
| 1469 |
ac_retval=1 ;; |
| 1470 |
esac |
| 1471 |
fi |
| 1472 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1473 |
as_fn_set_status $ac_retval |
| 1474 |
|
| 1475 |
} # ac_fn_c_try_cpp |
| 1476 |
|
| 1477 |
# ac_fn_c_try_link LINENO |
| 1478 |
# ----------------------- |
| 1479 |
# Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1480 |
ac_fn_c_try_link () |
| 1481 |
{ |
| 1482 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1483 |
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
| 1484 |
if { { ac_try="$ac_link" |
| 1485 |
case "(($ac_try" in |
| 1486 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1487 |
*) ac_try_echo=$ac_try;; |
| 1488 |
esac |
| 1489 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1490 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 1491 |
(eval "$ac_link") 2>conftest.err |
| 1492 |
ac_status=$? |
| 1493 |
if test -s conftest.err; then |
| 1494 |
grep -v '^ *+' conftest.err >conftest.er1 |
| 1495 |
cat conftest.er1 >&5 |
| 1496 |
mv -f conftest.er1 conftest.err |
| 1497 |
fi |
| 1498 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1499 |
test $ac_status = 0; } && { |
| 1500 |
test -z "$ac_c_werror_flag" || |
| 1501 |
test ! -s conftest.err |
| 1502 |
} && test -s conftest$ac_exeext && { |
| 1503 |
test "$cross_compiling" = yes || |
| 1504 |
test -x conftest$ac_exeext |
| 1505 |
} |
| 1506 |
then : |
| 1507 |
ac_retval=0 |
| 1508 |
else case e in #( |
| 1509 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 1510 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1511 |
|
| 1512 |
ac_retval=1 ;; |
| 1513 |
esac |
| 1514 |
fi |
| 1515 |
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1516 |
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1517 |
# interfere with the next link command; also delete a directory that is |
| 1518 |
# left behind by Apple's compiler. We do this before executing the actions. |
| 1519 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1520 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1521 |
as_fn_set_status $ac_retval |
| 1522 |
|
| 1523 |
} # ac_fn_c_try_link |
| 1524 |
|
| 1525 |
# ac_fn_c_check_func LINENO FUNC VAR |
| 1526 |
# ---------------------------------- |
| 1527 |
# Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1528 |
ac_fn_c_check_func () |
| 1529 |
{ |
| 1530 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1531 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1532 |
printf %s "checking for $2... " >&6; } |
| 1533 |
if eval test \${$3+y} |
| 1534 |
then : |
| 1535 |
printf %s "(cached) " >&6 |
| 1536 |
else case e in #( |
| 1537 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1538 |
/* end confdefs.h. */ |
| 1539 |
/* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1540 |
For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1541 |
#define $2 innocuous_$2 |
| 1542 |
|
| 1543 |
/* System header to define __stub macros and hopefully few prototypes, |
| 1544 |
which can conflict with char $2 (void); below. */ |
| 1545 |
|
| 1546 |
#include <limits.h> |
| 1547 |
#undef $2 |
| 1548 |
|
| 1549 |
/* Override any GCC internal prototype to avoid an error. |
| 1550 |
Use char because int might match the return type of a GCC |
| 1551 |
builtin and then its argument prototype would still apply. */ |
| 1552 |
#ifdef __cplusplus |
| 1553 |
extern "C" |
| 1554 |
#endif |
| 1555 |
char $2 (void); |
| 1556 |
/* The GNU C library defines this for functions which it implements |
| 1557 |
to always fail with ENOSYS. Some functions are actually named |
| 1558 |
something starting with __ and the normal name is an alias. */ |
| 1559 |
#if defined __stub_$2 || defined __stub___$2 |
| 1560 |
choke me |
| 1561 |
#endif |
| 1562 |
|
| 1563 |
int |
| 1564 |
main (void) |
| 1565 |
{ |
| 1566 |
return $2 (); |
| 1567 |
; |
| 1568 |
return 0; |
| 1569 |
} |
| 1570 |
_ACEOF |
| 1571 |
if ac_fn_c_try_link "$LINENO" |
| 1572 |
then : |
| 1573 |
eval "$3=yes" |
| 1574 |
else case e in #( |
| 1575 |
e) eval "$3=no" ;; |
| 1576 |
esac |
| 1577 |
fi |
| 1578 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 1579 |
conftest$ac_exeext conftest.$ac_ext ;; |
| 1580 |
esac |
| 1581 |
fi |
| 1582 |
eval ac_res=\$$3 |
| 1583 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1584 |
printf "%s\n" "$ac_res" >&6; } |
| 1585 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 1586 |
|
| 1587 |
} # ac_fn_c_check_func |
| 1588 |
ac_configure_args_raw= |
| 1589 |
for ac_arg |
| 1590 |
do |
| 1591 |
case $ac_arg in |
| 1592 |
*\'*) |
| 1593 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1594 |
esac |
| 1595 |
as_fn_append ac_configure_args_raw " '$ac_arg'" |
| 1596 |
done |
| 1597 |
|
| 1598 |
case $ac_configure_args_raw in |
| 1599 |
*$as_nl*) |
| 1600 |
ac_safe_unquote= ;; |
| 1601 |
*) |
| 1602 |
ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
| 1603 |
ac_unsafe_a="$ac_unsafe_z#~" |
| 1604 |
ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
| 1605 |
ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
| 1606 |
esac |
| 1607 |
|
| 1608 |
cat >config.log <<_ACEOF |
| 1609 |
This file contains any messages produced by compilers while |
| 1610 |
running configure, to aid debugging if configure makes a mistake. |
| 1611 |
|
| 1612 |
It was created by $as_me, which was |
| 1613 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 1614 |
|
| 1615 |
$ $0$ac_configure_args_raw |
| 1616 |
|
| 1617 |
_ACEOF |
| 1618 |
exec 5>>config.log |
| 1619 |
{ |
| 1620 |
cat <<_ASUNAME |
| 1621 |
## --------- ## |
| 1622 |
## Platform. ## |
| 1623 |
## --------- ## |
| 1624 |
|
| 1625 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1626 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1627 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1628 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1629 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1630 |
|
| 1631 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1632 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1633 |
|
| 1634 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1635 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1636 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1637 |
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1638 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1639 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1640 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1641 |
|
| 1642 |
_ASUNAME |
| 1643 |
|
| 1644 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1645 |
for as_dir in $PATH |
| 1646 |
do |
| 1647 |
IFS=$as_save_IFS |
| 1648 |
case $as_dir in #((( |
| 1649 |
'') as_dir=./ ;; |
| 1650 |
*/) ;; |
| 1651 |
*) as_dir=$as_dir/ ;; |
| 1652 |
esac |
| 1653 |
printf "%s\n" "PATH: $as_dir" |
| 1654 |
done |
| 1655 |
IFS=$as_save_IFS |
| 1656 |
|
| 1657 |
} >&5 |
| 1658 |
|
| 1659 |
cat >&5 <<_ACEOF |
| 1660 |
|
| 1661 |
|
| 1662 |
## ----------- ## |
| 1663 |
## Core tests. ## |
| 1664 |
## ----------- ## |
| 1665 |
|
| 1666 |
_ACEOF |
| 1667 |
|
| 1668 |
|
| 1669 |
# Keep a trace of the command line. |
| 1670 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 1671 |
# Strip out --silent because we don't want to record it for future runs. |
| 1672 |
# Also quote any args containing shell meta-characters. |
| 1673 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 1674 |
ac_configure_args= |
| 1675 |
ac_configure_args0= |
| 1676 |
ac_configure_args1= |
| 1677 |
ac_must_keep_next=false |
| 1678 |
for ac_pass in 1 2 |
| 1679 |
do |
| 1680 |
for ac_arg |
| 1681 |
do |
| 1682 |
case $ac_arg in |
| 1683 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1684 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1685 |
| -silent | --silent | --silen | --sile | --sil) |
| 1686 |
continue ;; |
| 1687 |
*\'*) |
| 1688 |
ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1689 |
esac |
| 1690 |
case $ac_pass in |
| 1691 |
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1692 |
2) |
| 1693 |
as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1694 |
if test $ac_must_keep_next = true; then |
| 1695 |
ac_must_keep_next=false # Got value, back to normal. |
| 1696 |
else |
| 1697 |
case $ac_arg in |
| 1698 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1699 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1700 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1701 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1702 |
case "$ac_configure_args0 " in |
| 1703 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1704 |
esac |
| 1705 |
;; |
| 1706 |
-* ) ac_must_keep_next=true ;; |
| 1707 |
esac |
| 1708 |
fi |
| 1709 |
as_fn_append ac_configure_args " '$ac_arg'" |
| 1710 |
;; |
| 1711 |
esac |
| 1712 |
done |
| 1713 |
done |
| 1714 |
{ ac_configure_args0=; unset ac_configure_args0;} |
| 1715 |
{ ac_configure_args1=; unset ac_configure_args1;} |
| 1716 |
|
| 1717 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1718 |
# config.log. We remove comments because anyway the quotes in there |
| 1719 |
# would cause problems or look ugly. |
| 1720 |
# WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1721 |
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1722 |
trap 'exit_status=$? |
| 1723 |
# Sanitize IFS. |
| 1724 |
IFS=" "" $as_nl" |
| 1725 |
# Save into config.log some information that might help in debugging. |
| 1726 |
{ |
| 1727 |
echo |
| 1728 |
|
| 1729 |
printf "%s\n" "## ---------------- ## |
| 1730 |
## Cache variables. ## |
| 1731 |
## ---------------- ##" |
| 1732 |
echo |
| 1733 |
# The following way of writing the cache mishandles newlines in values, |
| 1734 |
( |
| 1735 |
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1736 |
eval ac_val=\$$ac_var |
| 1737 |
case $ac_val in #( |
| 1738 |
*${as_nl}*) |
| 1739 |
case $ac_var in #( |
| 1740 |
*_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1741 |
printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1742 |
esac |
| 1743 |
case $ac_var in #( |
| 1744 |
_ | IFS | as_nl) ;; #( |
| 1745 |
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1746 |
*) { eval $ac_var=; unset $ac_var;} ;; |
| 1747 |
esac ;; |
| 1748 |
esac |
| 1749 |
done |
| 1750 |
(set) 2>&1 | |
| 1751 |
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1752 |
*${as_nl}ac_space=\ *) |
| 1753 |
sed -n \ |
| 1754 |
"s/'\''/'\''\\\\'\'''\''/g; |
| 1755 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1756 |
;; #( |
| 1757 |
*) |
| 1758 |
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1759 |
;; |
| 1760 |
esac | |
| 1761 |
sort |
| 1762 |
) |
| 1763 |
echo |
| 1764 |
|
| 1765 |
printf "%s\n" "## ----------------- ## |
| 1766 |
## Output variables. ## |
| 1767 |
## ----------------- ##" |
| 1768 |
echo |
| 1769 |
for ac_var in $ac_subst_vars |
| 1770 |
do |
| 1771 |
eval ac_val=\$$ac_var |
| 1772 |
case $ac_val in |
| 1773 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1774 |
esac |
| 1775 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1776 |
done | sort |
| 1777 |
echo |
| 1778 |
|
| 1779 |
if test -n "$ac_subst_files"; then |
| 1780 |
printf "%s\n" "## ------------------- ## |
| 1781 |
## File substitutions. ## |
| 1782 |
## ------------------- ##" |
| 1783 |
echo |
| 1784 |
for ac_var in $ac_subst_files |
| 1785 |
do |
| 1786 |
eval ac_val=\$$ac_var |
| 1787 |
case $ac_val in |
| 1788 |
*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1789 |
esac |
| 1790 |
printf "%s\n" "$ac_var='\''$ac_val'\''" |
| 1791 |
done | sort |
| 1792 |
echo |
| 1793 |
fi |
| 1794 |
|
| 1795 |
if test -s confdefs.h; then |
| 1796 |
printf "%s\n" "## ----------- ## |
| 1797 |
## confdefs.h. ## |
| 1798 |
## ----------- ##" |
| 1799 |
echo |
| 1800 |
cat confdefs.h |
| 1801 |
echo |
| 1802 |
fi |
| 1803 |
test "$ac_signal" != 0 && |
| 1804 |
printf "%s\n" "$as_me: caught signal $ac_signal" |
| 1805 |
printf "%s\n" "$as_me: exit $exit_status" |
| 1806 |
} >&5 |
| 1807 |
rm -f core *.core core.conftest.* && |
| 1808 |
rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1809 |
exit $exit_status |
| 1810 |
' 0 |
| 1811 |
for ac_signal in 1 2 13 15; do |
| 1812 |
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1813 |
done |
| 1814 |
ac_signal=0 |
| 1815 |
|
| 1816 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1817 |
rm -f -r conftest* confdefs.h |
| 1818 |
|
| 1819 |
printf "%s\n" "/* confdefs.h */" > confdefs.h |
| 1820 |
|
| 1821 |
# Predefined preprocessor variables. |
| 1822 |
|
| 1823 |
printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
| 1824 |
|
| 1825 |
printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
| 1826 |
|
| 1827 |
printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
| 1828 |
|
| 1829 |
printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
| 1830 |
|
| 1831 |
printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
| 1832 |
|
| 1833 |
printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
| 1834 |
|
| 1835 |
|
| 1836 |
# Let the site file select an alternate cache file if it wants to. |
| 1837 |
# Prefer an explicitly selected file to automatically selected ones. |
| 1838 |
if test -n "$CONFIG_SITE"; then |
| 1839 |
ac_site_files="$CONFIG_SITE" |
| 1840 |
elif test "x$prefix" != xNONE; then |
| 1841 |
ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
| 1842 |
else |
| 1843 |
ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1844 |
fi |
| 1845 |
|
| 1846 |
for ac_site_file in $ac_site_files |
| 1847 |
do |
| 1848 |
case $ac_site_file in #( |
| 1849 |
*/*) : |
| 1850 |
;; #( |
| 1851 |
*) : |
| 1852 |
ac_site_file=./$ac_site_file ;; |
| 1853 |
esac |
| 1854 |
if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
| 1855 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1856 |
printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
| 1857 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1858 |
. "$ac_site_file" \ |
| 1859 |
|| { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 1860 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 1861 |
as_fn_error $? "failed to load site script $ac_site_file |
| 1862 |
See 'config.log' for more details" "$LINENO" 5; } |
| 1863 |
fi |
| 1864 |
done |
| 1865 |
|
| 1866 |
|
| 1867 |
# Test code for whether the C compiler supports C89 (global declarations) |
| 1868 |
ac_c_conftest_c89_globals=' |
| 1869 |
/* Does the compiler advertise C89 conformance? |
| 1870 |
Do not test the value of __STDC__, because some compilers set it to 0 |
| 1871 |
while being otherwise adequately conformant. */ |
| 1872 |
#if !defined __STDC__ |
| 1873 |
# error "Compiler does not advertise C89 conformance" |
| 1874 |
#endif |
| 1875 |
|
| 1876 |
#include <stddef.h> |
| 1877 |
#include <stdarg.h> |
| 1878 |
struct stat; |
| 1879 |
/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
| 1880 |
struct buf { int x; }; |
| 1881 |
struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
| 1882 |
static char *e (char **p, int i) |
| 1883 |
{ |
| 1884 |
return p[i]; |
| 1885 |
} |
| 1886 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 1887 |
{ |
| 1888 |
char *s; |
| 1889 |
va_list v; |
| 1890 |
va_start (v,p); |
| 1891 |
s = g (p, va_arg (v,int)); |
| 1892 |
va_end (v); |
| 1893 |
return s; |
| 1894 |
} |
| 1895 |
|
| 1896 |
/* C89 style stringification. */ |
| 1897 |
#define noexpand_stringify(a) #a |
| 1898 |
const char *stringified = noexpand_stringify(arbitrary+token=sequence); |
| 1899 |
|
| 1900 |
/* C89 style token pasting. Exercises some of the corner cases that |
| 1901 |
e.g. old MSVC gets wrong, but not very hard. */ |
| 1902 |
#define noexpand_concat(a,b) a##b |
| 1903 |
#define expand_concat(a,b) noexpand_concat(a,b) |
| 1904 |
extern int vA; |
| 1905 |
extern int vbee; |
| 1906 |
#define aye A |
| 1907 |
#define bee B |
| 1908 |
int *pvA = &expand_concat(v,aye); |
| 1909 |
int *pvbee = &noexpand_concat(v,bee); |
| 1910 |
|
| 1911 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1912 |
function prototypes and stuff, but not \xHH hex character constants. |
| 1913 |
These do not provoke an error unfortunately, instead are silently treated |
| 1914 |
as an "x". The following induces an error, until -std is added to get |
| 1915 |
proper ANSI mode. Curiously \x00 != x always comes out true, for an |
| 1916 |
array size at least. It is necessary to write \x00 == 0 to get something |
| 1917 |
that is true only with -std. */ |
| 1918 |
int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
| 1919 |
|
| 1920 |
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 1921 |
inside strings and character constants. */ |
| 1922 |
#define FOO(x) '\''x'\'' |
| 1923 |
int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
| 1924 |
|
| 1925 |
int test (int i, double x); |
| 1926 |
struct s1 {int (*f) (int a);}; |
| 1927 |
struct s2 {int (*f) (double a);}; |
| 1928 |
int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
| 1929 |
int, int);' |
| 1930 |
|
| 1931 |
# Test code for whether the C compiler supports C89 (body of main). |
| 1932 |
ac_c_conftest_c89_main=' |
| 1933 |
ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
| 1934 |
' |
| 1935 |
|
| 1936 |
# Test code for whether the C compiler supports C99 (global declarations) |
| 1937 |
ac_c_conftest_c99_globals=' |
| 1938 |
/* Does the compiler advertise C99 conformance? */ |
| 1939 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
| 1940 |
# error "Compiler does not advertise C99 conformance" |
| 1941 |
#endif |
| 1942 |
|
| 1943 |
// See if C++-style comments work. |
| 1944 |
|
| 1945 |
#include <stdbool.h> |
| 1946 |
extern int puts (const char *); |
| 1947 |
extern int printf (const char *, ...); |
| 1948 |
extern int dprintf (int, const char *, ...); |
| 1949 |
extern void *malloc (size_t); |
| 1950 |
extern void free (void *); |
| 1951 |
|
| 1952 |
// Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 1953 |
// dprintf is used instead of fprintf to avoid needing to declare |
| 1954 |
// FILE and stderr. |
| 1955 |
#define debug(...) dprintf (2, __VA_ARGS__) |
| 1956 |
#define showlist(...) puts (#__VA_ARGS__) |
| 1957 |
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 1958 |
static void |
| 1959 |
test_varargs_macros (void) |
| 1960 |
{ |
| 1961 |
int x = 1234; |
| 1962 |
int y = 5678; |
| 1963 |
debug ("Flag"); |
| 1964 |
debug ("X = %d\n", x); |
| 1965 |
showlist (The first, second, and third items.); |
| 1966 |
report (x>y, "x is %d but y is %d", x, y); |
| 1967 |
} |
| 1968 |
|
| 1969 |
// Check long long types. |
| 1970 |
#define BIG64 18446744073709551615ull |
| 1971 |
#define BIG32 4294967295ul |
| 1972 |
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 1973 |
#if !BIG_OK |
| 1974 |
#error "your preprocessor is broken" |
| 1975 |
#endif |
| 1976 |
#if BIG_OK |
| 1977 |
#else |
| 1978 |
#error "your preprocessor is broken" |
| 1979 |
#endif |
| 1980 |
static long long int bignum = -9223372036854775807LL; |
| 1981 |
static unsigned long long int ubignum = BIG64; |
| 1982 |
|
| 1983 |
struct incomplete_array |
| 1984 |
{ |
| 1985 |
int datasize; |
| 1986 |
double data[]; |
| 1987 |
}; |
| 1988 |
|
| 1989 |
struct named_init { |
| 1990 |
int number; |
| 1991 |
const wchar_t *name; |
| 1992 |
double average; |
| 1993 |
}; |
| 1994 |
|
| 1995 |
typedef const char *ccp; |
| 1996 |
|
| 1997 |
static inline int |
| 1998 |
test_restrict (ccp restrict text) |
| 1999 |
{ |
| 2000 |
// Iterate through items via the restricted pointer. |
| 2001 |
// Also check for declarations in for loops. |
| 2002 |
for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
| 2003 |
continue; |
| 2004 |
return 0; |
| 2005 |
} |
| 2006 |
|
| 2007 |
// Check varargs and va_copy. |
| 2008 |
static bool |
| 2009 |
test_varargs (const char *format, ...) |
| 2010 |
{ |
| 2011 |
va_list args; |
| 2012 |
va_start (args, format); |
| 2013 |
va_list args_copy; |
| 2014 |
va_copy (args_copy, args); |
| 2015 |
|
| 2016 |
const char *str = ""; |
| 2017 |
int number = 0; |
| 2018 |
float fnumber = 0; |
| 2019 |
|
| 2020 |
while (*format) |
| 2021 |
{ |
| 2022 |
switch (*format++) |
| 2023 |
{ |
| 2024 |
case '\''s'\'': // string |
| 2025 |
str = va_arg (args_copy, const char *); |
| 2026 |
break; |
| 2027 |
case '\''d'\'': // int |
| 2028 |
number = va_arg (args_copy, int); |
| 2029 |
break; |
| 2030 |
case '\''f'\'': // float |
| 2031 |
fnumber = va_arg (args_copy, double); |
| 2032 |
break; |
| 2033 |
default: |
| 2034 |
break; |
| 2035 |
} |
| 2036 |
} |
| 2037 |
va_end (args_copy); |
| 2038 |
va_end (args); |
| 2039 |
|
| 2040 |
return *str && number && fnumber; |
| 2041 |
} |
| 2042 |
' |
| 2043 |
|
| 2044 |
# Test code for whether the C compiler supports C99 (body of main). |
| 2045 |
ac_c_conftest_c99_main=' |
| 2046 |
// Check bool. |
| 2047 |
_Bool success = false; |
| 2048 |
success |= (argc != 0); |
| 2049 |
|
| 2050 |
// Check restrict. |
| 2051 |
if (test_restrict ("String literal") == 0) |
| 2052 |
success = true; |
| 2053 |
char *restrict newvar = "Another string"; |
| 2054 |
|
| 2055 |
// Check varargs. |
| 2056 |
success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
| 2057 |
test_varargs_macros (); |
| 2058 |
|
| 2059 |
// Check flexible array members. |
| 2060 |
struct incomplete_array *ia = |
| 2061 |
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 2062 |
ia->datasize = 10; |
| 2063 |
for (int i = 0; i < ia->datasize; ++i) |
| 2064 |
ia->data[i] = i * 1.234; |
| 2065 |
// Work around memory leak warnings. |
| 2066 |
free (ia); |
| 2067 |
|
| 2068 |
// Check named initializers. |
| 2069 |
struct named_init ni = { |
| 2070 |
.number = 34, |
| 2071 |
.name = L"Test wide string", |
| 2072 |
.average = 543.34343, |
| 2073 |
}; |
| 2074 |
|
| 2075 |
ni.number = 58; |
| 2076 |
|
| 2077 |
int dynamic_array[ni.number]; |
| 2078 |
dynamic_array[0] = argv[0][0]; |
| 2079 |
dynamic_array[ni.number - 1] = 543; |
| 2080 |
|
| 2081 |
// work around unused variable warnings |
| 2082 |
ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
| 2083 |
|| dynamic_array[ni.number - 1] != 543); |
| 2084 |
' |
| 2085 |
|
| 2086 |
# Test code for whether the C compiler supports C11 (global declarations) |
| 2087 |
ac_c_conftest_c11_globals=' |
| 2088 |
/* Does the compiler advertise C11 conformance? */ |
| 2089 |
#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
| 2090 |
# error "Compiler does not advertise C11 conformance" |
| 2091 |
#endif |
| 2092 |
|
| 2093 |
// Check _Alignas. |
| 2094 |
char _Alignas (double) aligned_as_double; |
| 2095 |
char _Alignas (0) no_special_alignment; |
| 2096 |
extern char aligned_as_int; |
| 2097 |
char _Alignas (0) _Alignas (int) aligned_as_int; |
| 2098 |
|
| 2099 |
// Check _Alignof. |
| 2100 |
enum |
| 2101 |
{ |
| 2102 |
int_alignment = _Alignof (int), |
| 2103 |
int_array_alignment = _Alignof (int[100]), |
| 2104 |
char_alignment = _Alignof (char) |
| 2105 |
}; |
| 2106 |
_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
| 2107 |
|
| 2108 |
// Check _Noreturn. |
| 2109 |
int _Noreturn does_not_return (void) { for (;;) continue; } |
| 2110 |
|
| 2111 |
// Check _Static_assert. |
| 2112 |
struct test_static_assert |
| 2113 |
{ |
| 2114 |
int x; |
| 2115 |
_Static_assert (sizeof (int) <= sizeof (long int), |
| 2116 |
"_Static_assert does not work in struct"); |
| 2117 |
long int y; |
| 2118 |
}; |
| 2119 |
|
| 2120 |
// Check UTF-8 literals. |
| 2121 |
#define u8 syntax error! |
| 2122 |
char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
| 2123 |
|
| 2124 |
// Check duplicate typedefs. |
| 2125 |
typedef long *long_ptr; |
| 2126 |
typedef long int *long_ptr; |
| 2127 |
typedef long_ptr long_ptr; |
| 2128 |
|
| 2129 |
// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
| 2130 |
struct anonymous |
| 2131 |
{ |
| 2132 |
union { |
| 2133 |
struct { int i; int j; }; |
| 2134 |
struct { int k; long int l; } w; |
| 2135 |
}; |
| 2136 |
int m; |
| 2137 |
} v1; |
| 2138 |
' |
| 2139 |
|
| 2140 |
# Test code for whether the C compiler supports C11 (body of main). |
| 2141 |
ac_c_conftest_c11_main=' |
| 2142 |
_Static_assert ((offsetof (struct anonymous, i) |
| 2143 |
== offsetof (struct anonymous, w.k)), |
| 2144 |
"Anonymous union alignment botch"); |
| 2145 |
v1.i = 2; |
| 2146 |
v1.w.k = 5; |
| 2147 |
ok |= v1.i != 5; |
| 2148 |
' |
| 2149 |
|
| 2150 |
# Test code for whether the C compiler supports C11 (complete). |
| 2151 |
ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
| 2152 |
${ac_c_conftest_c99_globals} |
| 2153 |
${ac_c_conftest_c11_globals} |
| 2154 |
|
| 2155 |
int |
| 2156 |
main (int argc, char **argv) |
| 2157 |
{ |
| 2158 |
int ok = 0; |
| 2159 |
${ac_c_conftest_c89_main} |
| 2160 |
${ac_c_conftest_c99_main} |
| 2161 |
${ac_c_conftest_c11_main} |
| 2162 |
return ok; |
| 2163 |
} |
| 2164 |
" |
| 2165 |
|
| 2166 |
# Test code for whether the C compiler supports C99 (complete). |
| 2167 |
ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
| 2168 |
${ac_c_conftest_c99_globals} |
| 2169 |
|
| 2170 |
int |
| 2171 |
main (int argc, char **argv) |
| 2172 |
{ |
| 2173 |
int ok = 0; |
| 2174 |
${ac_c_conftest_c89_main} |
| 2175 |
${ac_c_conftest_c99_main} |
| 2176 |
return ok; |
| 2177 |
} |
| 2178 |
" |
| 2179 |
|
| 2180 |
# Test code for whether the C compiler supports C89 (complete). |
| 2181 |
ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
| 2182 |
|
| 2183 |
int |
| 2184 |
main (int argc, char **argv) |
| 2185 |
{ |
| 2186 |
int ok = 0; |
| 2187 |
${ac_c_conftest_c89_main} |
| 2188 |
return ok; |
| 2189 |
} |
| 2190 |
" |
| 2191 |
|
| 2192 |
# Check that the precious variables saved in the cache have kept the same |
| 2193 |
# value. |
| 2194 |
ac_cache_corrupted=false |
| 2195 |
for ac_var in $ac_precious_vars; do |
| 2196 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2197 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 2198 |
eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2199 |
eval ac_new_val=\$ac_env_${ac_var}_value |
| 2200 |
case $ac_old_set,$ac_new_set in |
| 2201 |
set,) |
| 2202 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 |
| 2203 |
printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} |
| 2204 |
ac_cache_corrupted=: ;; |
| 2205 |
,set) |
| 2206 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 |
| 2207 |
printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} |
| 2208 |
ac_cache_corrupted=: ;; |
| 2209 |
,);; |
| 2210 |
*) |
| 2211 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 2212 |
# differences in whitespace do not lead to failure. |
| 2213 |
ac_old_val_w=`echo x $ac_old_val` |
| 2214 |
ac_new_val_w=`echo x $ac_new_val` |
| 2215 |
if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 2216 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 |
| 2217 |
printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} |
| 2218 |
ac_cache_corrupted=: |
| 2219 |
else |
| 2220 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 |
| 2221 |
printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} |
| 2222 |
eval $ac_var=\$ac_old_val |
| 2223 |
fi |
| 2224 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 |
| 2225 |
printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} |
| 2226 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 |
| 2227 |
printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} |
| 2228 |
fi;; |
| 2229 |
esac |
| 2230 |
# Pass precious variables to config.status. |
| 2231 |
if test "$ac_new_set" = set; then |
| 2232 |
case $ac_new_val in |
| 2233 |
*\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 2234 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 2235 |
esac |
| 2236 |
case " $ac_configure_args " in |
| 2237 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 2238 |
*) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 2239 |
esac |
| 2240 |
fi |
| 2241 |
done |
| 2242 |
if $ac_cache_corrupted; then |
| 2243 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2244 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2245 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 2246 |
printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 2247 |
as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' |
| 2248 |
and start over" "$LINENO" 5 |
| 2249 |
fi |
| 2250 |
## -------------------- ## |
| 2251 |
## Main body of script. ## |
| 2252 |
## -------------------- ## |
| 2253 |
|
| 2254 |
ac_ext=c |
| 2255 |
ac_cpp='$CPP $CPPFLAGS' |
| 2256 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2257 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2258 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2259 |
|
| 2260 |
|
| 2261 |
|
| 2262 |
echo See file "configure.log" for results of this step. |
| 2263 |
# specifies some well-known file in the configured directory |
| 2264 |
ac_config_headers="$ac_config_headers confsrc/config.h" |
| 2265 |
|
| 2266 |
|
| 2267 |
|
| 2268 |
|
| 2269 |
|
| 2270 |
|
| 2271 |
|
| 2272 |
|
| 2273 |
|
| 2274 |
|
| 2275 |
ac_ext=c |
| 2276 |
ac_cpp='$CPP $CPPFLAGS' |
| 2277 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2278 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2279 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2280 |
if test -n "$ac_tool_prefix"; then |
| 2281 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2282 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 2283 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2284 |
printf %s "checking for $ac_word... " >&6; } |
| 2285 |
if test ${ac_cv_prog_CC+y} |
| 2286 |
then : |
| 2287 |
printf %s "(cached) " >&6 |
| 2288 |
else case e in #( |
| 2289 |
e) if test -n "$CC"; then |
| 2290 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2291 |
else |
| 2292 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2293 |
for as_dir in $PATH |
| 2294 |
do |
| 2295 |
IFS=$as_save_IFS |
| 2296 |
case $as_dir in #((( |
| 2297 |
'') as_dir=./ ;; |
| 2298 |
*/) ;; |
| 2299 |
*) as_dir=$as_dir/ ;; |
| 2300 |
esac |
| 2301 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2302 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2303 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 2304 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2305 |
break 2 |
| 2306 |
fi |
| 2307 |
done |
| 2308 |
done |
| 2309 |
IFS=$as_save_IFS |
| 2310 |
|
| 2311 |
fi ;; |
| 2312 |
esac |
| 2313 |
fi |
| 2314 |
CC=$ac_cv_prog_CC |
| 2315 |
if test -n "$CC"; then |
| 2316 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2317 |
printf "%s\n" "$CC" >&6; } |
| 2318 |
else |
| 2319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2320 |
printf "%s\n" "no" >&6; } |
| 2321 |
fi |
| 2322 |
|
| 2323 |
|
| 2324 |
fi |
| 2325 |
if test -z "$ac_cv_prog_CC"; then |
| 2326 |
ac_ct_CC=$CC |
| 2327 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 2328 |
set dummy gcc; ac_word=$2 |
| 2329 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2330 |
printf %s "checking for $ac_word... " >&6; } |
| 2331 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 2332 |
then : |
| 2333 |
printf %s "(cached) " >&6 |
| 2334 |
else case e in #( |
| 2335 |
e) if test -n "$ac_ct_CC"; then |
| 2336 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2337 |
else |
| 2338 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2339 |
for as_dir in $PATH |
| 2340 |
do |
| 2341 |
IFS=$as_save_IFS |
| 2342 |
case $as_dir in #((( |
| 2343 |
'') as_dir=./ ;; |
| 2344 |
*/) ;; |
| 2345 |
*) as_dir=$as_dir/ ;; |
| 2346 |
esac |
| 2347 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2348 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2349 |
ac_cv_prog_ac_ct_CC="gcc" |
| 2350 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2351 |
break 2 |
| 2352 |
fi |
| 2353 |
done |
| 2354 |
done |
| 2355 |
IFS=$as_save_IFS |
| 2356 |
|
| 2357 |
fi ;; |
| 2358 |
esac |
| 2359 |
fi |
| 2360 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2361 |
if test -n "$ac_ct_CC"; then |
| 2362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2363 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 2364 |
else |
| 2365 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2366 |
printf "%s\n" "no" >&6; } |
| 2367 |
fi |
| 2368 |
|
| 2369 |
if test "x$ac_ct_CC" = x; then |
| 2370 |
CC="" |
| 2371 |
else |
| 2372 |
case $cross_compiling:$ac_tool_warned in |
| 2373 |
yes:) |
| 2374 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2375 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2376 |
ac_tool_warned=yes ;; |
| 2377 |
esac |
| 2378 |
CC=$ac_ct_CC |
| 2379 |
fi |
| 2380 |
else |
| 2381 |
CC="$ac_cv_prog_CC" |
| 2382 |
fi |
| 2383 |
|
| 2384 |
if test -z "$CC"; then |
| 2385 |
if test -n "$ac_tool_prefix"; then |
| 2386 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2387 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2388 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2389 |
printf %s "checking for $ac_word... " >&6; } |
| 2390 |
if test ${ac_cv_prog_CC+y} |
| 2391 |
then : |
| 2392 |
printf %s "(cached) " >&6 |
| 2393 |
else case e in #( |
| 2394 |
e) if test -n "$CC"; then |
| 2395 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2396 |
else |
| 2397 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2398 |
for as_dir in $PATH |
| 2399 |
do |
| 2400 |
IFS=$as_save_IFS |
| 2401 |
case $as_dir in #((( |
| 2402 |
'') as_dir=./ ;; |
| 2403 |
*/) ;; |
| 2404 |
*) as_dir=$as_dir/ ;; |
| 2405 |
esac |
| 2406 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2407 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2408 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2409 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2410 |
break 2 |
| 2411 |
fi |
| 2412 |
done |
| 2413 |
done |
| 2414 |
IFS=$as_save_IFS |
| 2415 |
|
| 2416 |
fi ;; |
| 2417 |
esac |
| 2418 |
fi |
| 2419 |
CC=$ac_cv_prog_CC |
| 2420 |
if test -n "$CC"; then |
| 2421 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2422 |
printf "%s\n" "$CC" >&6; } |
| 2423 |
else |
| 2424 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2425 |
printf "%s\n" "no" >&6; } |
| 2426 |
fi |
| 2427 |
|
| 2428 |
|
| 2429 |
fi |
| 2430 |
fi |
| 2431 |
if test -z "$CC"; then |
| 2432 |
# Extract the first word of "cc", so it can be a program name with args. |
| 2433 |
set dummy cc; ac_word=$2 |
| 2434 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2435 |
printf %s "checking for $ac_word... " >&6; } |
| 2436 |
if test ${ac_cv_prog_CC+y} |
| 2437 |
then : |
| 2438 |
printf %s "(cached) " >&6 |
| 2439 |
else case e in #( |
| 2440 |
e) if test -n "$CC"; then |
| 2441 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2442 |
else |
| 2443 |
ac_prog_rejected=no |
| 2444 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2445 |
for as_dir in $PATH |
| 2446 |
do |
| 2447 |
IFS=$as_save_IFS |
| 2448 |
case $as_dir in #((( |
| 2449 |
'') as_dir=./ ;; |
| 2450 |
*/) ;; |
| 2451 |
*) as_dir=$as_dir/ ;; |
| 2452 |
esac |
| 2453 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2454 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2455 |
if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2456 |
ac_prog_rejected=yes |
| 2457 |
continue |
| 2458 |
fi |
| 2459 |
ac_cv_prog_CC="cc" |
| 2460 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2461 |
break 2 |
| 2462 |
fi |
| 2463 |
done |
| 2464 |
done |
| 2465 |
IFS=$as_save_IFS |
| 2466 |
|
| 2467 |
if test $ac_prog_rejected = yes; then |
| 2468 |
# We found a bogon in the path, so make sure we never use it. |
| 2469 |
set dummy $ac_cv_prog_CC |
| 2470 |
shift |
| 2471 |
if test $# != 0; then |
| 2472 |
# We chose a different compiler from the bogus one. |
| 2473 |
# However, it has the same basename, so the bogon will be chosen |
| 2474 |
# first if we set CC to just the basename; use the full file name. |
| 2475 |
shift |
| 2476 |
ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
| 2477 |
fi |
| 2478 |
fi |
| 2479 |
fi ;; |
| 2480 |
esac |
| 2481 |
fi |
| 2482 |
CC=$ac_cv_prog_CC |
| 2483 |
if test -n "$CC"; then |
| 2484 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2485 |
printf "%s\n" "$CC" >&6; } |
| 2486 |
else |
| 2487 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2488 |
printf "%s\n" "no" >&6; } |
| 2489 |
fi |
| 2490 |
|
| 2491 |
|
| 2492 |
fi |
| 2493 |
if test -z "$CC"; then |
| 2494 |
if test -n "$ac_tool_prefix"; then |
| 2495 |
for ac_prog in cl.exe |
| 2496 |
do |
| 2497 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2498 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2499 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2500 |
printf %s "checking for $ac_word... " >&6; } |
| 2501 |
if test ${ac_cv_prog_CC+y} |
| 2502 |
then : |
| 2503 |
printf %s "(cached) " >&6 |
| 2504 |
else case e in #( |
| 2505 |
e) if test -n "$CC"; then |
| 2506 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2507 |
else |
| 2508 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2509 |
for as_dir in $PATH |
| 2510 |
do |
| 2511 |
IFS=$as_save_IFS |
| 2512 |
case $as_dir in #((( |
| 2513 |
'') as_dir=./ ;; |
| 2514 |
*/) ;; |
| 2515 |
*) as_dir=$as_dir/ ;; |
| 2516 |
esac |
| 2517 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2518 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2519 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2520 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2521 |
break 2 |
| 2522 |
fi |
| 2523 |
done |
| 2524 |
done |
| 2525 |
IFS=$as_save_IFS |
| 2526 |
|
| 2527 |
fi ;; |
| 2528 |
esac |
| 2529 |
fi |
| 2530 |
CC=$ac_cv_prog_CC |
| 2531 |
if test -n "$CC"; then |
| 2532 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2533 |
printf "%s\n" "$CC" >&6; } |
| 2534 |
else |
| 2535 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2536 |
printf "%s\n" "no" >&6; } |
| 2537 |
fi |
| 2538 |
|
| 2539 |
|
| 2540 |
test -n "$CC" && break |
| 2541 |
done |
| 2542 |
fi |
| 2543 |
if test -z "$CC"; then |
| 2544 |
ac_ct_CC=$CC |
| 2545 |
for ac_prog in cl.exe |
| 2546 |
do |
| 2547 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2548 |
set dummy $ac_prog; ac_word=$2 |
| 2549 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2550 |
printf %s "checking for $ac_word... " >&6; } |
| 2551 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 2552 |
then : |
| 2553 |
printf %s "(cached) " >&6 |
| 2554 |
else case e in #( |
| 2555 |
e) if test -n "$ac_ct_CC"; then |
| 2556 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2557 |
else |
| 2558 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2559 |
for as_dir in $PATH |
| 2560 |
do |
| 2561 |
IFS=$as_save_IFS |
| 2562 |
case $as_dir in #((( |
| 2563 |
'') as_dir=./ ;; |
| 2564 |
*/) ;; |
| 2565 |
*) as_dir=$as_dir/ ;; |
| 2566 |
esac |
| 2567 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2568 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2569 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2570 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2571 |
break 2 |
| 2572 |
fi |
| 2573 |
done |
| 2574 |
done |
| 2575 |
IFS=$as_save_IFS |
| 2576 |
|
| 2577 |
fi ;; |
| 2578 |
esac |
| 2579 |
fi |
| 2580 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2581 |
if test -n "$ac_ct_CC"; then |
| 2582 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2583 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 2584 |
else |
| 2585 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2586 |
printf "%s\n" "no" >&6; } |
| 2587 |
fi |
| 2588 |
|
| 2589 |
|
| 2590 |
test -n "$ac_ct_CC" && break |
| 2591 |
done |
| 2592 |
|
| 2593 |
if test "x$ac_ct_CC" = x; then |
| 2594 |
CC="" |
| 2595 |
else |
| 2596 |
case $cross_compiling:$ac_tool_warned in |
| 2597 |
yes:) |
| 2598 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2599 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2600 |
ac_tool_warned=yes ;; |
| 2601 |
esac |
| 2602 |
CC=$ac_ct_CC |
| 2603 |
fi |
| 2604 |
fi |
| 2605 |
|
| 2606 |
fi |
| 2607 |
if test -z "$CC"; then |
| 2608 |
if test -n "$ac_tool_prefix"; then |
| 2609 |
# Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
| 2610 |
set dummy ${ac_tool_prefix}clang; ac_word=$2 |
| 2611 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2612 |
printf %s "checking for $ac_word... " >&6; } |
| 2613 |
if test ${ac_cv_prog_CC+y} |
| 2614 |
then : |
| 2615 |
printf %s "(cached) " >&6 |
| 2616 |
else case e in #( |
| 2617 |
e) if test -n "$CC"; then |
| 2618 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2619 |
else |
| 2620 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2621 |
for as_dir in $PATH |
| 2622 |
do |
| 2623 |
IFS=$as_save_IFS |
| 2624 |
case $as_dir in #((( |
| 2625 |
'') as_dir=./ ;; |
| 2626 |
*/) ;; |
| 2627 |
*) as_dir=$as_dir/ ;; |
| 2628 |
esac |
| 2629 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2630 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2631 |
ac_cv_prog_CC="${ac_tool_prefix}clang" |
| 2632 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2633 |
break 2 |
| 2634 |
fi |
| 2635 |
done |
| 2636 |
done |
| 2637 |
IFS=$as_save_IFS |
| 2638 |
|
| 2639 |
fi ;; |
| 2640 |
esac |
| 2641 |
fi |
| 2642 |
CC=$ac_cv_prog_CC |
| 2643 |
if test -n "$CC"; then |
| 2644 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 2645 |
printf "%s\n" "$CC" >&6; } |
| 2646 |
else |
| 2647 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2648 |
printf "%s\n" "no" >&6; } |
| 2649 |
fi |
| 2650 |
|
| 2651 |
|
| 2652 |
fi |
| 2653 |
if test -z "$ac_cv_prog_CC"; then |
| 2654 |
ac_ct_CC=$CC |
| 2655 |
# Extract the first word of "clang", so it can be a program name with args. |
| 2656 |
set dummy clang; ac_word=$2 |
| 2657 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2658 |
printf %s "checking for $ac_word... " >&6; } |
| 2659 |
if test ${ac_cv_prog_ac_ct_CC+y} |
| 2660 |
then : |
| 2661 |
printf %s "(cached) " >&6 |
| 2662 |
else case e in #( |
| 2663 |
e) if test -n "$ac_ct_CC"; then |
| 2664 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2665 |
else |
| 2666 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2667 |
for as_dir in $PATH |
| 2668 |
do |
| 2669 |
IFS=$as_save_IFS |
| 2670 |
case $as_dir in #((( |
| 2671 |
'') as_dir=./ ;; |
| 2672 |
*/) ;; |
| 2673 |
*) as_dir=$as_dir/ ;; |
| 2674 |
esac |
| 2675 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 2676 |
if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
| 2677 |
ac_cv_prog_ac_ct_CC="clang" |
| 2678 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
| 2679 |
break 2 |
| 2680 |
fi |
| 2681 |
done |
| 2682 |
done |
| 2683 |
IFS=$as_save_IFS |
| 2684 |
|
| 2685 |
fi ;; |
| 2686 |
esac |
| 2687 |
fi |
| 2688 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2689 |
if test -n "$ac_ct_CC"; then |
| 2690 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 2691 |
printf "%s\n" "$ac_ct_CC" >&6; } |
| 2692 |
else |
| 2693 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2694 |
printf "%s\n" "no" >&6; } |
| 2695 |
fi |
| 2696 |
|
| 2697 |
if test "x$ac_ct_CC" = x; then |
| 2698 |
CC="" |
| 2699 |
else |
| 2700 |
case $cross_compiling:$ac_tool_warned in |
| 2701 |
yes:) |
| 2702 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2703 |
printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2704 |
ac_tool_warned=yes ;; |
| 2705 |
esac |
| 2706 |
CC=$ac_ct_CC |
| 2707 |
fi |
| 2708 |
else |
| 2709 |
CC="$ac_cv_prog_CC" |
| 2710 |
fi |
| 2711 |
|
| 2712 |
fi |
| 2713 |
|
| 2714 |
|
| 2715 |
test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2716 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2717 |
as_fn_error $? "no acceptable C compiler found in \$PATH |
| 2718 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2719 |
|
| 2720 |
# Provide some information about the compiler. |
| 2721 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 2722 |
set X $ac_compile |
| 2723 |
ac_compiler=$2 |
| 2724 |
for ac_option in --version -v -V -qversion -version; do |
| 2725 |
{ { ac_try="$ac_compiler $ac_option >&5" |
| 2726 |
case "(($ac_try" in |
| 2727 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2728 |
*) ac_try_echo=$ac_try;; |
| 2729 |
esac |
| 2730 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2731 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2732 |
(eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 2733 |
ac_status=$? |
| 2734 |
if test -s conftest.err; then |
| 2735 |
sed '10a\ |
| 2736 |
... rest of stderr output deleted ... |
| 2737 |
10q' conftest.err >conftest.er1 |
| 2738 |
cat conftest.er1 >&5 |
| 2739 |
fi |
| 2740 |
rm -f conftest.er1 conftest.err |
| 2741 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2742 |
test $ac_status = 0; } |
| 2743 |
done |
| 2744 |
|
| 2745 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2746 |
/* end confdefs.h. */ |
| 2747 |
|
| 2748 |
int |
| 2749 |
main (void) |
| 2750 |
{ |
| 2751 |
|
| 2752 |
; |
| 2753 |
return 0; |
| 2754 |
} |
| 2755 |
_ACEOF |
| 2756 |
ac_clean_files_save=$ac_clean_files |
| 2757 |
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 2758 |
# Try to create an executable without -o first, disregard a.out. |
| 2759 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 2760 |
# of exeext. |
| 2761 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 2762 |
printf %s "checking whether the C compiler works... " >&6; } |
| 2763 |
ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2764 |
|
| 2765 |
# The possible output files: |
| 2766 |
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 2767 |
|
| 2768 |
ac_rmfiles= |
| 2769 |
for ac_file in $ac_files |
| 2770 |
do |
| 2771 |
case $ac_file in |
| 2772 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2773 |
* ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 2774 |
esac |
| 2775 |
done |
| 2776 |
rm -f $ac_rmfiles |
| 2777 |
|
| 2778 |
if { { ac_try="$ac_link_default" |
| 2779 |
case "(($ac_try" in |
| 2780 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2781 |
*) ac_try_echo=$ac_try;; |
| 2782 |
esac |
| 2783 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2784 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2785 |
(eval "$ac_link_default") 2>&5 |
| 2786 |
ac_status=$? |
| 2787 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2788 |
test $ac_status = 0; } |
| 2789 |
then : |
| 2790 |
# Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. |
| 2791 |
# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' |
| 2792 |
# in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 2793 |
# so that the user can short-circuit this test for compilers unknown to |
| 2794 |
# Autoconf. |
| 2795 |
for ac_file in $ac_files '' |
| 2796 |
do |
| 2797 |
test -f "$ac_file" || continue |
| 2798 |
case $ac_file in |
| 2799 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 2800 |
;; |
| 2801 |
[ab].out ) |
| 2802 |
# We found the default executable, but exeext='' is most |
| 2803 |
# certainly right. |
| 2804 |
break;; |
| 2805 |
*.* ) |
| 2806 |
if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
| 2807 |
then :; else |
| 2808 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2809 |
fi |
| 2810 |
# We set ac_cv_exeext here because the later test for it is not |
| 2811 |
# safe: cross compilers may not add the suffix if given an '-o' |
| 2812 |
# argument, so we may need to know it at that point already. |
| 2813 |
# Even if this section looks crufty: it has the advantage of |
| 2814 |
# actually working. |
| 2815 |
break;; |
| 2816 |
* ) |
| 2817 |
break;; |
| 2818 |
esac |
| 2819 |
done |
| 2820 |
test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 2821 |
|
| 2822 |
else case e in #( |
| 2823 |
e) ac_file='' ;; |
| 2824 |
esac |
| 2825 |
fi |
| 2826 |
if test -z "$ac_file" |
| 2827 |
then : |
| 2828 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2829 |
printf "%s\n" "no" >&6; } |
| 2830 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 2831 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2832 |
|
| 2833 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2834 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2835 |
as_fn_error 77 "C compiler cannot create executables |
| 2836 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2837 |
else case e in #( |
| 2838 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2839 |
printf "%s\n" "yes" >&6; } ;; |
| 2840 |
esac |
| 2841 |
fi |
| 2842 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 2843 |
printf %s "checking for C compiler default output file name... " >&6; } |
| 2844 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 2845 |
printf "%s\n" "$ac_file" >&6; } |
| 2846 |
ac_exeext=$ac_cv_exeext |
| 2847 |
|
| 2848 |
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 2849 |
ac_clean_files=$ac_clean_files_save |
| 2850 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 2851 |
printf %s "checking for suffix of executables... " >&6; } |
| 2852 |
if { { ac_try="$ac_link" |
| 2853 |
case "(($ac_try" in |
| 2854 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2855 |
*) ac_try_echo=$ac_try;; |
| 2856 |
esac |
| 2857 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2858 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2859 |
(eval "$ac_link") 2>&5 |
| 2860 |
ac_status=$? |
| 2861 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2862 |
test $ac_status = 0; } |
| 2863 |
then : |
| 2864 |
# If both 'conftest.exe' and 'conftest' are 'present' (well, observable) |
| 2865 |
# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will |
| 2866 |
# work properly (i.e., refer to 'conftest.exe'), while it won't with |
| 2867 |
# 'rm'. |
| 2868 |
for ac_file in conftest.exe conftest conftest.*; do |
| 2869 |
test -f "$ac_file" || continue |
| 2870 |
case $ac_file in |
| 2871 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 2872 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2873 |
break;; |
| 2874 |
* ) break;; |
| 2875 |
esac |
| 2876 |
done |
| 2877 |
else case e in #( |
| 2878 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2879 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2880 |
as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
| 2881 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 2882 |
esac |
| 2883 |
fi |
| 2884 |
rm -f conftest conftest$ac_cv_exeext |
| 2885 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 2886 |
printf "%s\n" "$ac_cv_exeext" >&6; } |
| 2887 |
|
| 2888 |
rm -f conftest.$ac_ext |
| 2889 |
EXEEXT=$ac_cv_exeext |
| 2890 |
ac_exeext=$EXEEXT |
| 2891 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2892 |
/* end confdefs.h. */ |
| 2893 |
#include <stdio.h> |
| 2894 |
int |
| 2895 |
main (void) |
| 2896 |
{ |
| 2897 |
FILE *f = fopen ("conftest.out", "w"); |
| 2898 |
if (!f) |
| 2899 |
return 1; |
| 2900 |
return ferror (f) || fclose (f) != 0; |
| 2901 |
|
| 2902 |
; |
| 2903 |
return 0; |
| 2904 |
} |
| 2905 |
_ACEOF |
| 2906 |
ac_clean_files="$ac_clean_files conftest.out" |
| 2907 |
# Check that the compiler produces executables we can run. If not, either |
| 2908 |
# the compiler is broken, or we cross compile. |
| 2909 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 2910 |
printf %s "checking whether we are cross compiling... " >&6; } |
| 2911 |
if test "$cross_compiling" != yes; then |
| 2912 |
{ { ac_try="$ac_link" |
| 2913 |
case "(($ac_try" in |
| 2914 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2915 |
*) ac_try_echo=$ac_try;; |
| 2916 |
esac |
| 2917 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2918 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2919 |
(eval "$ac_link") 2>&5 |
| 2920 |
ac_status=$? |
| 2921 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2922 |
test $ac_status = 0; } |
| 2923 |
if { ac_try='./conftest$ac_cv_exeext' |
| 2924 |
{ { case "(($ac_try" in |
| 2925 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2926 |
*) ac_try_echo=$ac_try;; |
| 2927 |
esac |
| 2928 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2929 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2930 |
(eval "$ac_try") 2>&5 |
| 2931 |
ac_status=$? |
| 2932 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2933 |
test $ac_status = 0; }; }; then |
| 2934 |
cross_compiling=no |
| 2935 |
else |
| 2936 |
if test "$cross_compiling" = maybe; then |
| 2937 |
cross_compiling=yes |
| 2938 |
else |
| 2939 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2940 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2941 |
as_fn_error 77 "cannot run C compiled programs. |
| 2942 |
If you meant to cross compile, use '--host'. |
| 2943 |
See 'config.log' for more details" "$LINENO" 5; } |
| 2944 |
fi |
| 2945 |
fi |
| 2946 |
fi |
| 2947 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 2948 |
printf "%s\n" "$cross_compiling" >&6; } |
| 2949 |
|
| 2950 |
rm -f conftest.$ac_ext conftest$ac_cv_exeext \ |
| 2951 |
conftest.o conftest.obj conftest.out |
| 2952 |
ac_clean_files=$ac_clean_files_save |
| 2953 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 2954 |
printf %s "checking for suffix of object files... " >&6; } |
| 2955 |
if test ${ac_cv_objext+y} |
| 2956 |
then : |
| 2957 |
printf %s "(cached) " >&6 |
| 2958 |
else case e in #( |
| 2959 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2960 |
/* end confdefs.h. */ |
| 2961 |
|
| 2962 |
int |
| 2963 |
main (void) |
| 2964 |
{ |
| 2965 |
|
| 2966 |
; |
| 2967 |
return 0; |
| 2968 |
} |
| 2969 |
_ACEOF |
| 2970 |
rm -f conftest.o conftest.obj |
| 2971 |
if { { ac_try="$ac_compile" |
| 2972 |
case "(($ac_try" in |
| 2973 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2974 |
*) ac_try_echo=$ac_try;; |
| 2975 |
esac |
| 2976 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2977 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 2978 |
(eval "$ac_compile") 2>&5 |
| 2979 |
ac_status=$? |
| 2980 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2981 |
test $ac_status = 0; } |
| 2982 |
then : |
| 2983 |
for ac_file in conftest.o conftest.obj conftest.*; do |
| 2984 |
test -f "$ac_file" || continue; |
| 2985 |
case $ac_file in |
| 2986 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 2987 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2988 |
break;; |
| 2989 |
esac |
| 2990 |
done |
| 2991 |
else case e in #( |
| 2992 |
e) printf "%s\n" "$as_me: failed program was:" >&5 |
| 2993 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2994 |
|
| 2995 |
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 2996 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 2997 |
as_fn_error $? "cannot compute suffix of object files: cannot compile |
| 2998 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 2999 |
esac |
| 3000 |
fi |
| 3001 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; |
| 3002 |
esac |
| 3003 |
fi |
| 3004 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 3005 |
printf "%s\n" "$ac_cv_objext" >&6; } |
| 3006 |
OBJEXT=$ac_cv_objext |
| 3007 |
ac_objext=$OBJEXT |
| 3008 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
| 3009 |
printf %s "checking whether the compiler supports GNU C... " >&6; } |
| 3010 |
if test ${ac_cv_c_compiler_gnu+y} |
| 3011 |
then : |
| 3012 |
printf %s "(cached) " >&6 |
| 3013 |
else case e in #( |
| 3014 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3015 |
/* end confdefs.h. */ |
| 3016 |
|
| 3017 |
int |
| 3018 |
main (void) |
| 3019 |
{ |
| 3020 |
#ifndef __GNUC__ |
| 3021 |
choke me |
| 3022 |
#endif |
| 3023 |
|
| 3024 |
; |
| 3025 |
return 0; |
| 3026 |
} |
| 3027 |
_ACEOF |
| 3028 |
if ac_fn_c_try_compile "$LINENO" |
| 3029 |
then : |
| 3030 |
ac_compiler_gnu=yes |
| 3031 |
else case e in #( |
| 3032 |
e) ac_compiler_gnu=no ;; |
| 3033 |
esac |
| 3034 |
fi |
| 3035 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3036 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3037 |
;; |
| 3038 |
esac |
| 3039 |
fi |
| 3040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3041 |
printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
| 3042 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3043 |
|
| 3044 |
if test $ac_compiler_gnu = yes; then |
| 3045 |
GCC=yes |
| 3046 |
else |
| 3047 |
GCC= |
| 3048 |
fi |
| 3049 |
ac_test_CFLAGS=${CFLAGS+y} |
| 3050 |
ac_save_CFLAGS=$CFLAGS |
| 3051 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 3052 |
printf %s "checking whether $CC accepts -g... " >&6; } |
| 3053 |
if test ${ac_cv_prog_cc_g+y} |
| 3054 |
then : |
| 3055 |
printf %s "(cached) " >&6 |
| 3056 |
else case e in #( |
| 3057 |
e) ac_save_c_werror_flag=$ac_c_werror_flag |
| 3058 |
ac_c_werror_flag=yes |
| 3059 |
ac_cv_prog_cc_g=no |
| 3060 |
CFLAGS="-g" |
| 3061 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3062 |
/* end confdefs.h. */ |
| 3063 |
|
| 3064 |
int |
| 3065 |
main (void) |
| 3066 |
{ |
| 3067 |
|
| 3068 |
; |
| 3069 |
return 0; |
| 3070 |
} |
| 3071 |
_ACEOF |
| 3072 |
if ac_fn_c_try_compile "$LINENO" |
| 3073 |
then : |
| 3074 |
ac_cv_prog_cc_g=yes |
| 3075 |
else case e in #( |
| 3076 |
e) CFLAGS="" |
| 3077 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3078 |
/* end confdefs.h. */ |
| 3079 |
|
| 3080 |
int |
| 3081 |
main (void) |
| 3082 |
{ |
| 3083 |
|
| 3084 |
; |
| 3085 |
return 0; |
| 3086 |
} |
| 3087 |
_ACEOF |
| 3088 |
if ac_fn_c_try_compile "$LINENO" |
| 3089 |
then : |
| 3090 |
|
| 3091 |
else case e in #( |
| 3092 |
e) ac_c_werror_flag=$ac_save_c_werror_flag |
| 3093 |
CFLAGS="-g" |
| 3094 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3095 |
/* end confdefs.h. */ |
| 3096 |
|
| 3097 |
int |
| 3098 |
main (void) |
| 3099 |
{ |
| 3100 |
|
| 3101 |
; |
| 3102 |
return 0; |
| 3103 |
} |
| 3104 |
_ACEOF |
| 3105 |
if ac_fn_c_try_compile "$LINENO" |
| 3106 |
then : |
| 3107 |
ac_cv_prog_cc_g=yes |
| 3108 |
fi |
| 3109 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3110 |
esac |
| 3111 |
fi |
| 3112 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 3113 |
esac |
| 3114 |
fi |
| 3115 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3116 |
ac_c_werror_flag=$ac_save_c_werror_flag ;; |
| 3117 |
esac |
| 3118 |
fi |
| 3119 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 3120 |
printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
| 3121 |
if test $ac_test_CFLAGS; then |
| 3122 |
CFLAGS=$ac_save_CFLAGS |
| 3123 |
elif test $ac_cv_prog_cc_g = yes; then |
| 3124 |
if test "$GCC" = yes; then |
| 3125 |
CFLAGS="-g -O2" |
| 3126 |
else |
| 3127 |
CFLAGS="-g" |
| 3128 |
fi |
| 3129 |
else |
| 3130 |
if test "$GCC" = yes; then |
| 3131 |
CFLAGS="-O2" |
| 3132 |
else |
| 3133 |
CFLAGS= |
| 3134 |
fi |
| 3135 |
fi |
| 3136 |
ac_prog_cc_stdc=no |
| 3137 |
if test x$ac_prog_cc_stdc = xno |
| 3138 |
then : |
| 3139 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
| 3140 |
printf %s "checking for $CC option to enable C11 features... " >&6; } |
| 3141 |
if test ${ac_cv_prog_cc_c11+y} |
| 3142 |
then : |
| 3143 |
printf %s "(cached) " >&6 |
| 3144 |
else case e in #( |
| 3145 |
e) ac_cv_prog_cc_c11=no |
| 3146 |
ac_save_CC=$CC |
| 3147 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3148 |
/* end confdefs.h. */ |
| 3149 |
$ac_c_conftest_c11_program |
| 3150 |
_ACEOF |
| 3151 |
for ac_arg in '' -std=gnu11 |
| 3152 |
do |
| 3153 |
CC="$ac_save_CC $ac_arg" |
| 3154 |
if ac_fn_c_try_compile "$LINENO" |
| 3155 |
then : |
| 3156 |
ac_cv_prog_cc_c11=$ac_arg |
| 3157 |
fi |
| 3158 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3159 |
test "x$ac_cv_prog_cc_c11" != "xno" && break |
| 3160 |
done |
| 3161 |
rm -f conftest.$ac_ext |
| 3162 |
CC=$ac_save_CC ;; |
| 3163 |
esac |
| 3164 |
fi |
| 3165 |
|
| 3166 |
if test "x$ac_cv_prog_cc_c11" = xno |
| 3167 |
then : |
| 3168 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3169 |
printf "%s\n" "unsupported" >&6; } |
| 3170 |
else case e in #( |
| 3171 |
e) if test "x$ac_cv_prog_cc_c11" = x |
| 3172 |
then : |
| 3173 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3174 |
printf "%s\n" "none needed" >&6; } |
| 3175 |
else case e in #( |
| 3176 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
| 3177 |
printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
| 3178 |
CC="$CC $ac_cv_prog_cc_c11" ;; |
| 3179 |
esac |
| 3180 |
fi |
| 3181 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
| 3182 |
ac_prog_cc_stdc=c11 ;; |
| 3183 |
esac |
| 3184 |
fi |
| 3185 |
fi |
| 3186 |
if test x$ac_prog_cc_stdc = xno |
| 3187 |
then : |
| 3188 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
| 3189 |
printf %s "checking for $CC option to enable C99 features... " >&6; } |
| 3190 |
if test ${ac_cv_prog_cc_c99+y} |
| 3191 |
then : |
| 3192 |
printf %s "(cached) " >&6 |
| 3193 |
else case e in #( |
| 3194 |
e) ac_cv_prog_cc_c99=no |
| 3195 |
ac_save_CC=$CC |
| 3196 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3197 |
/* end confdefs.h. */ |
| 3198 |
$ac_c_conftest_c99_program |
| 3199 |
_ACEOF |
| 3200 |
for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
| 3201 |
do |
| 3202 |
CC="$ac_save_CC $ac_arg" |
| 3203 |
if ac_fn_c_try_compile "$LINENO" |
| 3204 |
then : |
| 3205 |
ac_cv_prog_cc_c99=$ac_arg |
| 3206 |
fi |
| 3207 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3208 |
test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 3209 |
done |
| 3210 |
rm -f conftest.$ac_ext |
| 3211 |
CC=$ac_save_CC ;; |
| 3212 |
esac |
| 3213 |
fi |
| 3214 |
|
| 3215 |
if test "x$ac_cv_prog_cc_c99" = xno |
| 3216 |
then : |
| 3217 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3218 |
printf "%s\n" "unsupported" >&6; } |
| 3219 |
else case e in #( |
| 3220 |
e) if test "x$ac_cv_prog_cc_c99" = x |
| 3221 |
then : |
| 3222 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3223 |
printf "%s\n" "none needed" >&6; } |
| 3224 |
else case e in #( |
| 3225 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 3226 |
printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
| 3227 |
CC="$CC $ac_cv_prog_cc_c99" ;; |
| 3228 |
esac |
| 3229 |
fi |
| 3230 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 3231 |
ac_prog_cc_stdc=c99 ;; |
| 3232 |
esac |
| 3233 |
fi |
| 3234 |
fi |
| 3235 |
if test x$ac_prog_cc_stdc = xno |
| 3236 |
then : |
| 3237 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
| 3238 |
printf %s "checking for $CC option to enable C89 features... " >&6; } |
| 3239 |
if test ${ac_cv_prog_cc_c89+y} |
| 3240 |
then : |
| 3241 |
printf %s "(cached) " >&6 |
| 3242 |
else case e in #( |
| 3243 |
e) ac_cv_prog_cc_c89=no |
| 3244 |
ac_save_CC=$CC |
| 3245 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3246 |
/* end confdefs.h. */ |
| 3247 |
$ac_c_conftest_c89_program |
| 3248 |
_ACEOF |
| 3249 |
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3250 |
do |
| 3251 |
CC="$ac_save_CC $ac_arg" |
| 3252 |
if ac_fn_c_try_compile "$LINENO" |
| 3253 |
then : |
| 3254 |
ac_cv_prog_cc_c89=$ac_arg |
| 3255 |
fi |
| 3256 |
rm -f core conftest.err conftest.$ac_objext conftest.beam |
| 3257 |
test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 3258 |
done |
| 3259 |
rm -f conftest.$ac_ext |
| 3260 |
CC=$ac_save_CC ;; |
| 3261 |
esac |
| 3262 |
fi |
| 3263 |
|
| 3264 |
if test "x$ac_cv_prog_cc_c89" = xno |
| 3265 |
then : |
| 3266 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 3267 |
printf "%s\n" "unsupported" >&6; } |
| 3268 |
else case e in #( |
| 3269 |
e) if test "x$ac_cv_prog_cc_c89" = x |
| 3270 |
then : |
| 3271 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 3272 |
printf "%s\n" "none needed" >&6; } |
| 3273 |
else case e in #( |
| 3274 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 3275 |
printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
| 3276 |
CC="$CC $ac_cv_prog_cc_c89" ;; |
| 3277 |
esac |
| 3278 |
fi |
| 3279 |
ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 3280 |
ac_prog_cc_stdc=c89 ;; |
| 3281 |
esac |
| 3282 |
fi |
| 3283 |
fi |
| 3284 |
|
| 3285 |
ac_ext=c |
| 3286 |
ac_cpp='$CPP $CPPFLAGS' |
| 3287 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3288 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3289 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3290 |
|
| 3291 |
|
| 3292 |
rm -f pconfig.h |
| 3293 |
|
| 3294 |
# Check whether --enable-threads was given. |
| 3295 |
if test ${enable_threads+y} |
| 3296 |
then : |
| 3297 |
enableval=$enable_threads; |
| 3298 |
else case e in #( |
| 3299 |
e) use_pthread=yes ;; |
| 3300 |
esac |
| 3301 |
fi |
| 3302 |
|
| 3303 |
if test "x$use_pthread" = "xyes" ; then |
| 3304 |
DEPS=deps |
| 3305 |
SIGNALS_GENERATED=posix-implementation-ok_signals.ads |
| 3306 |
THREADS_BOOL=True |
| 3307 |
else |
| 3308 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No pthread support." >&5 |
| 3309 |
printf "%s\n" "$as_me: WARNING: No pthread support." >&2;} |
| 3310 |
DEPS=deps_no_thread |
| 3311 |
SIGNALS_GENERATED= |
| 3312 |
THREADS_BOOL=False |
| 3313 |
fi |
| 3314 |
THREADS_OPTION=-XTHREADS=${THREADS_BOOL} |
| 3315 |
|
| 3316 |
|
| 3317 |
|
| 3318 |
|
| 3319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build a shared library" >&5 |
| 3320 |
printf %s "checking whether to build a shared library... " >&6; } |
| 3321 |
# Check whether --enable-shared was given. |
| 3322 |
if test ${enable_shared+y} |
| 3323 |
then : |
| 3324 |
enableval=$enable_shared; |
| 3325 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5 |
| 3326 |
printf "%s\n" "$enableval" >&6; } |
| 3327 |
if test "$enableval" = "yes"; then |
| 3328 |
ENABLE_SHARED="yes" |
| 3329 |
fi |
| 3330 |
|
| 3331 |
else case e in #( |
| 3332 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3333 |
printf "%s\n" "no" >&6; } ;; |
| 3334 |
esac |
| 3335 |
fi |
| 3336 |
|
| 3337 |
|
| 3338 |
|
| 3339 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build type" >&5 |
| 3340 |
printf %s "checking build type... " >&6; } |
| 3341 |
|
| 3342 |
# Check whether --with-build-type was given. |
| 3343 |
if test ${with_build_type+y} |
| 3344 |
then : |
| 3345 |
withval=$with_build_type; |
| 3346 |
case "x$with_build_type" in |
| 3347 |
xyes|xno) |
| 3348 |
as_fn_error $? "invalid build type" "$LINENO" 5 ;; |
| 3349 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_type" >&5 |
| 3350 |
printf "%s\n" "$with_build_type" >&6; } |
| 3351 |
BUILD_TYPE_OPTION="-XBuild=$with_build_type" ;; |
| 3352 |
esac |
| 3353 |
|
| 3354 |
else case e in #( |
| 3355 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 3356 |
printf "%s\n" "default" >&6; } ;; |
| 3357 |
esac |
| 3358 |
fi |
| 3359 |
|
| 3360 |
|
| 3361 |
|
| 3362 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking RTS kind" >&5 |
| 3363 |
printf %s "checking RTS kind... " >&6; } |
| 3364 |
|
| 3365 |
# Check whether --with-rts was given. |
| 3366 |
if test ${with_rts+y} |
| 3367 |
then : |
| 3368 |
withval=$with_rts; |
| 3369 |
case "x$with_rts" in |
| 3370 |
xyes|xno) |
| 3371 |
as_fn_error $? "invalid RTS" "$LINENO" 5 ;; |
| 3372 |
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_rts" >&5 |
| 3373 |
printf "%s\n" "$with_rts" >&6; } |
| 3374 |
RTS_OPTION="--RTS=$with_rts" ;; |
| 3375 |
esac |
| 3376 |
|
| 3377 |
else case e in #( |
| 3378 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 |
| 3379 |
printf "%s\n" "default" >&6; } ;; |
| 3380 |
esac |
| 3381 |
fi |
| 3382 |
|
| 3383 |
|
| 3384 |
|
| 3385 |
|
| 3386 |
|
| 3387 |
# By default errno is preserved accross exceptions |
| 3388 |
safe_errno=True |
| 3389 |
|
| 3390 |
echo $ac_n "checking for SGI IRIX timers... " $ac_c; |
| 3391 |
if (grep "CLOCK_SGI_FAST" /usr/include/sys/ptimers.h >/dev/null 2>&1); then |
| 3392 |
echo "yes" |
| 3393 |
echo "HAVE_IRIX_Timers := True" >> gnatprep.config; |
| 3394 |
else |
| 3395 |
echo "no" |
| 3396 |
echo "HAVE_IRIX_Timers := False" >> gnatprep.config; |
| 3397 |
fi; |
| 3398 |
|
| 3399 |
UNAME_MACHINE=`(uname -m) 2>/dev/null` |
| 3400 |
UNAME_RELEASE=`(uname -r) 2>/dev/null` |
| 3401 |
UNAME_SYSTEM=`(uname -s) 2>/dev/null` |
| 3402 |
UNAME_VERSION=`(uname -v) 2>/dev/null` |
| 3403 |
|
| 3404 |
echo ${UNAME_SYSTEM} ${UNAME_MACHINE} ${UNAME_RELEASE} ${UNAME_VERSION} |
| 3405 |
echo "Using Configuration for" ${UNAME_SYSTEM} ${UNAME_RELEASE}; |
| 3406 |
cp ./configs/pconfig.Linux ./pconfig.h.in; |
| 3407 |
|
| 3408 |
if test "x$safe_errno" = "xTrue" ; then |
| 3409 |
safe_errno_msg="safe" |
| 3410 |
else |
| 3411 |
safe_errno_msg="not safe" |
| 3412 |
fi |
| 3413 |
echo "We will assume errno is $safe_errno_msg for exception propagation." |
| 3414 |
echo "to override, hand-edit gnatprep.config" |
| 3415 |
echo "HAVE_Safe_Errno := $safe_errno" >> gnatprep.config; |
| 3416 |
|
| 3417 |
|
| 3418 |
# defines HAVE_NAME_H for each header "name.h" found |
| 3419 |
# also checks for location of Pthread library |
| 3420 |
# note that the order is rather touchy |
| 3421 |
# for Solaris 2.5.1, utsname.h must precede limits.h |
| 3422 |
# for Solaris 2.5.1, netinet/in.h must preceded arpa/inet.h |
| 3423 |
# for Linux 2.0.x with Provenzano (MIT) threads, |
| 3424 |
# pthread.h must follow sched.h, since |
| 3425 |
# pthread.h redefines symbols in sched.h; |
| 3426 |
# the effect is to detect the problem and drop pthread.h |
| 3427 |
|
| 3428 |
ac_ext=c |
| 3429 |
ac_cpp='$CPP $CPPFLAGS' |
| 3430 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3431 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3432 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3433 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 3434 |
printf %s "checking how to run the C preprocessor... " >&6; } |
| 3435 |
# On Suns, sometimes $CPP names a directory. |
| 3436 |
if test -n "$CPP" && test -d "$CPP"; then |
| 3437 |
CPP= |
| 3438 |
fi |
| 3439 |
if test -z "$CPP"; then |
| 3440 |
if test ${ac_cv_prog_CPP+y} |
| 3441 |
then : |
| 3442 |
printf %s "(cached) " >&6 |
| 3443 |
else case e in #( |
| 3444 |
e) # Double quotes because $CC needs to be expanded |
| 3445 |
for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp |
| 3446 |
do |
| 3447 |
ac_preproc_ok=false |
| 3448 |
for ac_c_preproc_warn_flag in '' yes |
| 3449 |
do |
| 3450 |
# Use a header file that comes with gcc, so configuring glibc |
| 3451 |
# with a fresh cross-compiler works. |
| 3452 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3453 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3454 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3455 |
/* end confdefs.h. */ |
| 3456 |
#include <limits.h> |
| 3457 |
Syntax error |
| 3458 |
_ACEOF |
| 3459 |
if ac_fn_c_try_cpp "$LINENO" |
| 3460 |
then : |
| 3461 |
|
| 3462 |
else case e in #( |
| 3463 |
e) # Broken: fails on valid input. |
| 3464 |
continue ;; |
| 3465 |
esac |
| 3466 |
fi |
| 3467 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3468 |
|
| 3469 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 3470 |
# can be detected and how. |
| 3471 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3472 |
/* end confdefs.h. */ |
| 3473 |
#include <ac_nonexistent.h> |
| 3474 |
_ACEOF |
| 3475 |
if ac_fn_c_try_cpp "$LINENO" |
| 3476 |
then : |
| 3477 |
# Broken: success on invalid input. |
| 3478 |
continue |
| 3479 |
else case e in #( |
| 3480 |
e) # Passes both tests. |
| 3481 |
ac_preproc_ok=: |
| 3482 |
break ;; |
| 3483 |
esac |
| 3484 |
fi |
| 3485 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3486 |
|
| 3487 |
done |
| 3488 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3489 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 3490 |
if $ac_preproc_ok |
| 3491 |
then : |
| 3492 |
break |
| 3493 |
fi |
| 3494 |
|
| 3495 |
done |
| 3496 |
ac_cv_prog_CPP=$CPP |
| 3497 |
;; |
| 3498 |
esac |
| 3499 |
fi |
| 3500 |
CPP=$ac_cv_prog_CPP |
| 3501 |
else |
| 3502 |
ac_cv_prog_CPP=$CPP |
| 3503 |
fi |
| 3504 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 3505 |
printf "%s\n" "$CPP" >&6; } |
| 3506 |
ac_preproc_ok=false |
| 3507 |
for ac_c_preproc_warn_flag in '' yes |
| 3508 |
do |
| 3509 |
# Use a header file that comes with gcc, so configuring glibc |
| 3510 |
# with a fresh cross-compiler works. |
| 3511 |
# On the NeXT, cc -E runs the code through the compiler's parser, |
| 3512 |
# not just through cpp. "Syntax error" is here to catch this case. |
| 3513 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3514 |
/* end confdefs.h. */ |
| 3515 |
#include <limits.h> |
| 3516 |
Syntax error |
| 3517 |
_ACEOF |
| 3518 |
if ac_fn_c_try_cpp "$LINENO" |
| 3519 |
then : |
| 3520 |
|
| 3521 |
else case e in #( |
| 3522 |
e) # Broken: fails on valid input. |
| 3523 |
continue ;; |
| 3524 |
esac |
| 3525 |
fi |
| 3526 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3527 |
|
| 3528 |
# OK, works on sane cases. Now check whether nonexistent headers |
| 3529 |
# can be detected and how. |
| 3530 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3531 |
/* end confdefs.h. */ |
| 3532 |
#include <ac_nonexistent.h> |
| 3533 |
_ACEOF |
| 3534 |
if ac_fn_c_try_cpp "$LINENO" |
| 3535 |
then : |
| 3536 |
# Broken: success on invalid input. |
| 3537 |
continue |
| 3538 |
else case e in #( |
| 3539 |
e) # Passes both tests. |
| 3540 |
ac_preproc_ok=: |
| 3541 |
break ;; |
| 3542 |
esac |
| 3543 |
fi |
| 3544 |
rm -f conftest.err conftest.i conftest.$ac_ext |
| 3545 |
|
| 3546 |
done |
| 3547 |
# Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 3548 |
rm -f conftest.i conftest.err conftest.$ac_ext |
| 3549 |
if $ac_preproc_ok |
| 3550 |
then : |
| 3551 |
|
| 3552 |
else case e in #( |
| 3553 |
e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 |
| 3554 |
printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} |
| 3555 |
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
| 3556 |
See 'config.log' for more details" "$LINENO" 5; } ;; |
| 3557 |
esac |
| 3558 |
fi |
| 3559 |
|
| 3560 |
ac_ext=c |
| 3561 |
ac_cpp='$CPP $CPPFLAGS' |
| 3562 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3563 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3564 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3565 |
|
| 3566 |
|
| 3567 |
rm -f confsrc/pconfig.h |
| 3568 |
cp pconfig.h.in confsrc/pconfig.h |
| 3569 |
chmod 644 confsrc/pconfig.h |
| 3570 |
if ( test ! -f confsrc/pconfig.h ) then |
| 3571 |
as_fn_error $? "missing confsrc/pconfig.h" "$LINENO" 5; |
| 3572 |
fi |
| 3573 |
for ac_hdr in \ |
| 3574 |
aio.h\ |
| 3575 |
dirent.h\ |
| 3576 |
errno.h\ |
| 3577 |
fcntl.h\ |
| 3578 |
grp.h\ |
| 3579 |
locale.h\ |
| 3580 |
mqueue.h\ |
| 3581 |
pwd.h\ |
| 3582 |
sched.h\ |
| 3583 |
pthread.h\ |
| 3584 |
semaphore.h\ |
| 3585 |
setjmp.h\ |
| 3586 |
signal.h\ |
| 3587 |
stdio.h\ |
| 3588 |
sys/mman.h\ |
| 3589 |
sys/stat.h\ |
| 3590 |
sys/times.h\ |
| 3591 |
sys/types.h\ |
| 3592 |
sys/utsname.h\ |
| 3593 |
limits.h\ |
| 3594 |
sys/wait.h\ |
| 3595 |
termios.h\ |
| 3596 |
time.h\ |
| 3597 |
sys/time.h\ |
| 3598 |
unistd.h\ |
| 3599 |
utime.h\ |
| 3600 |
|
| 3601 |
do |
| 3602 |
ac_old_cflags=$CFLAGS |
| 3603 |
# CFLAGS="$CFLAGS -Werror" |
| 3604 |
ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
| 3605 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 |
| 3606 |
printf %s "checking for $ac_hdr... " >&6; } |
| 3607 |
if eval test \${ac_cv_header_$ac_safe+y} |
| 3608 |
then : |
| 3609 |
printf %s "(cached) " >&6 |
| 3610 |
else case e in #( |
| 3611 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3612 |
/* end confdefs.h. */ |
| 3613 |
#include <$ac_hdr> |
| 3614 |
_ACEOF |
| 3615 |
if ac_fn_c_try_cpp "$LINENO" |
| 3616 |
then : |
| 3617 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3618 |
/* end confdefs.h. */ |
| 3619 |
#include "confsrc/pconfig.h" |
| 3620 |
#include <$ac_hdr> |
| 3621 |
_ACEOF |
| 3622 |
if ac_fn_c_try_compile "$LINENO" |
| 3623 |
then : |
| 3624 |
eval "ac_cv_header_$ac_safe=yes" |
| 3625 |
else case e in #( |
| 3626 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3627 |
esac |
| 3628 |
fi |
| 3629 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3630 |
else case e in #( |
| 3631 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3632 |
esac |
| 3633 |
fi |
| 3634 |
rm -f conftest.err conftest.i conftest.$ac_ext ;; |
| 3635 |
esac |
| 3636 |
fi |
| 3637 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3638 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3639 |
printf "%s\n" "yes" >&6; } |
| 3640 |
echo "#include <$ac_hdr>" >> confsrc/pconfig.h |
| 3641 |
ac_tr_hdr=HAVE_$(echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___') |
| 3642 |
printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h |
| 3643 |
|
| 3644 |
else |
| 3645 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3646 |
printf "%s\n" "no" >&6; } |
| 3647 |
fi |
| 3648 |
CFLAGS=$ac_old_cflags |
| 3649 |
done |
| 3650 |
|
| 3651 |
|
| 3652 |
# POSIX.5c headers are separated, because we want to do |
| 3653 |
# some special processing to try to substitute for missing standard |
| 3654 |
# header files. |
| 3655 |
# Checks for xti.h and tli.h are built-in, as is check for whether we |
| 3656 |
# need addrinfo.h. |
| 3657 |
# We always call this after AC_POSIX_HEADERS, so that pconfig.h will |
| 3658 |
# already have the other required POSIX headers in it, and in particular |
| 3659 |
# will have any lines inherited from pconfig.h.in. |
| 3660 |
for ac_hdr in netdb.h\ |
| 3661 |
netinet/in.h\ |
| 3662 |
netinet/in_systm.h\ |
| 3663 |
netinet/ip.h\ |
| 3664 |
netinet/tcp.h\ |
| 3665 |
arpa/inet.h\ |
| 3666 |
poll.h\ |
| 3667 |
sys/select.h\ |
| 3668 |
sys/socket.h\ |
| 3669 |
sys/uio.h\ |
| 3670 |
sys/un.h\ |
| 3671 |
|
| 3672 |
do |
| 3673 |
ac_old_cflags=$CFLAGS |
| 3674 |
# CFLAGS="$CFLAGS -Werror" |
| 3675 |
ac_safe=`echo "$ac_hdr" | tr './\055' '___'` |
| 3676 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr" >&5 |
| 3677 |
printf %s "checking for $ac_hdr... " >&6; } |
| 3678 |
if eval test \${ac_cv_header_$ac_safe+y} |
| 3679 |
then : |
| 3680 |
printf %s "(cached) " >&6 |
| 3681 |
else case e in #( |
| 3682 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3683 |
/* end confdefs.h. */ |
| 3684 |
#include <$ac_hdr> |
| 3685 |
_ACEOF |
| 3686 |
if ac_fn_c_try_cpp "$LINENO" |
| 3687 |
then : |
| 3688 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3689 |
/* end confdefs.h. */ |
| 3690 |
#include "confsrc/pconfig.h" |
| 3691 |
#include <$ac_hdr> |
| 3692 |
_ACEOF |
| 3693 |
if ac_fn_c_try_compile "$LINENO" |
| 3694 |
then : |
| 3695 |
eval "ac_cv_header_$ac_safe=yes" |
| 3696 |
else case e in #( |
| 3697 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3698 |
esac |
| 3699 |
fi |
| 3700 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3701 |
else case e in #( |
| 3702 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3703 |
esac |
| 3704 |
fi |
| 3705 |
rm -f conftest.err conftest.i conftest.$ac_ext ;; |
| 3706 |
esac |
| 3707 |
fi |
| 3708 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3709 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3710 |
printf "%s\n" "yes" >&6; } |
| 3711 |
echo "#include <$ac_hdr>" >> confsrc/pconfig.h |
| 3712 |
ac_tr_hdr=HAVE_$(echo $ac_hdr | tr 'abcdefghijklmnopqrstuvwxyz./\055' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ___') |
| 3713 |
printf "%s\n" "#define $ac_tr_hdr 1" >>confdefs.h |
| 3714 |
|
| 3715 |
else |
| 3716 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3717 |
printf "%s\n" "no" >&6; } |
| 3718 |
fi |
| 3719 |
CFLAGS=$ac_old_cflags |
| 3720 |
done |
| 3721 |
ac_old_cflags=$CFLAGS |
| 3722 |
# CFLAGS="$CFLAGS -Werror" |
| 3723 |
ac_safe=`echo "xti.h" | tr './\055' '___'` |
| 3724 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xti.h" >&5 |
| 3725 |
printf %s "checking for xti.h... " >&6; } |
| 3726 |
if eval test \${ac_cv_header_$ac_safe+y} |
| 3727 |
then : |
| 3728 |
printf %s "(cached) " >&6 |
| 3729 |
else case e in #( |
| 3730 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3731 |
/* end confdefs.h. */ |
| 3732 |
#include <xti.h> |
| 3733 |
_ACEOF |
| 3734 |
if ac_fn_c_try_cpp "$LINENO" |
| 3735 |
then : |
| 3736 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3737 |
/* end confdefs.h. */ |
| 3738 |
#include "confsrc/pconfig.h" |
| 3739 |
#include <xti.h> |
| 3740 |
_ACEOF |
| 3741 |
if ac_fn_c_try_compile "$LINENO" |
| 3742 |
then : |
| 3743 |
eval "ac_cv_header_$ac_safe=yes" |
| 3744 |
else case e in #( |
| 3745 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3746 |
esac |
| 3747 |
fi |
| 3748 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3749 |
else case e in #( |
| 3750 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3751 |
esac |
| 3752 |
fi |
| 3753 |
rm -f conftest.err conftest.i conftest.$ac_ext ;; |
| 3754 |
esac |
| 3755 |
fi |
| 3756 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3757 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3758 |
printf "%s\n" "yes" >&6; } |
| 3759 |
echo "#include <xti.h>" >> confsrc/pconfig.h |
| 3760 |
printf "%s\n" "#define HAVE_XTI_H 1" >>confdefs.h |
| 3761 |
|
| 3762 |
echo "-- don't want TLI because we have xti.h |
| 3763 |
TLI := False" >> gnatprep.config; |
| 3764 |
else |
| 3765 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3766 |
printf "%s\n" "no" >&6; } |
| 3767 |
ac_old_cflags=$CFLAGS |
| 3768 |
# CFLAGS="$CFLAGS -Werror" |
| 3769 |
ac_safe=`echo "tli.h" | tr './\055' '___'` |
| 3770 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tli.h" >&5 |
| 3771 |
printf %s "checking for tli.h... " >&6; } |
| 3772 |
if eval test \${ac_cv_header_$ac_safe+y} |
| 3773 |
then : |
| 3774 |
printf %s "(cached) " >&6 |
| 3775 |
else case e in #( |
| 3776 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3777 |
/* end confdefs.h. */ |
| 3778 |
#include <tli.h> |
| 3779 |
_ACEOF |
| 3780 |
if ac_fn_c_try_cpp "$LINENO" |
| 3781 |
then : |
| 3782 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3783 |
/* end confdefs.h. */ |
| 3784 |
#include "confsrc/pconfig.h" |
| 3785 |
#include <tli.h> |
| 3786 |
_ACEOF |
| 3787 |
if ac_fn_c_try_compile "$LINENO" |
| 3788 |
then : |
| 3789 |
eval "ac_cv_header_$ac_safe=yes" |
| 3790 |
else case e in #( |
| 3791 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3792 |
esac |
| 3793 |
fi |
| 3794 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3795 |
else case e in #( |
| 3796 |
e) eval "ac_cv_header_$ac_safe=no" ;; |
| 3797 |
esac |
| 3798 |
fi |
| 3799 |
rm -f conftest.err conftest.i conftest.$ac_ext ;; |
| 3800 |
esac |
| 3801 |
fi |
| 3802 |
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then |
| 3803 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3804 |
printf "%s\n" "yes" >&6; } |
| 3805 |
echo "#include <tli.h>" >> confsrc/pconfig.h |
| 3806 |
printf "%s\n" "#define HAVE_TLI_H 1" >>confdefs.h |
| 3807 |
|
| 3808 |
echo "-- using TLI because could not find xti.h |
| 3809 |
TLI := True" >> gnatprep.config; |
| 3810 |
else |
| 3811 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3812 |
printf "%s\n" "no" >&6; } |
| 3813 |
echo "-- could not find tli.h |
| 3814 |
TLI := False" >> gnatprep.config; |
| 3815 |
fi |
| 3816 |
CFLAGS=$ac_old_cflags |
| 3817 |
|
| 3818 |
fi |
| 3819 |
CFLAGS=$ac_old_cflags |
| 3820 |
|
| 3821 |
|
| 3822 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3823 |
/* end confdefs.h. */ |
| 3824 |
#include "confsrc/pconfig.h" |
| 3825 |
int |
| 3826 |
main (void) |
| 3827 |
{ |
| 3828 |
struct msghdr hdr; |
| 3829 |
hdr.msg_controllen = 0; |
| 3830 |
; |
| 3831 |
return 0; |
| 3832 |
} |
| 3833 |
_ACEOF |
| 3834 |
if ac_fn_c_try_compile "$LINENO" |
| 3835 |
then : |
| 3836 |
echo "Socket interface looks like BSD 4.4"; |
| 3837 |
|
| 3838 |
# Put BSD flag in gnatprep.config |
| 3839 |
if (grep BSD4_3 gnatprep.config >/dev/null 2>&1); then true; |
| 3840 |
else |
| 3841 |
(echo "-- set BSD4_3 to False if using 4.4 style socket msghdr"; |
| 3842 |
echo "BSD4_3 := False") >> gnatprep.config; |
| 3843 |
fi; |
| 3844 |
if (grep _BSD4_4_ confsrc/pconfig.h >/dev/null 2>&1); then true; |
| 3845 |
else |
| 3846 |
echo "#define _BSD4_4_" >> confsrc/pconfig.h; |
| 3847 |
fi; |
| 3848 |
else case e in #( |
| 3849 |
e) echo "Socket interface Looks like BSD 4.3"; |
| 3850 |
if (grep BSD4_3 gnatprep.config >/dev/null 2>&1); then true; |
| 3851 |
else |
| 3852 |
(echo "-- set BSD4_3 to False if using 4.4 style socket msghdr"; |
| 3853 |
echo "BSD4_3 := True") >> gnatprep.config; |
| 3854 |
fi; |
| 3855 |
if (grep _BSD4_3_ confsrc/pconfig.h >/dev/null 2>&1); then true; |
| 3856 |
else |
| 3857 |
echo "#define _BSD4_3_" >> confsrc/pconfig.h; |
| 3858 |
fi; ;; |
| 3859 |
esac |
| 3860 |
fi |
| 3861 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 3862 |
|
| 3863 |
if (grep xti.h confsrc/pconfig.h >/dev/null 2>&1); then |
| 3864 |
if (grep _XTI_ confsrc/pconfig.h >/dev/null 2>&1); then true; |
| 3865 |
else |
| 3866 |
echo "#define _XTI_" >> confsrc/pconfig.h; |
| 3867 |
fi ; |
| 3868 |
else |
| 3869 |
if [ -f /usr/include/sys/tiuser.h ]; then |
| 3870 |
echo "Have only TLI, will use that in place of XTI"; |
| 3871 |
if (grep _TLI_ confsrc/pconfig.h >/dev/null 2>&1); then true; |
| 3872 |
else |
| 3873 |
echo "#define _TLI_" >> confsrc/pconfig.h; |
| 3874 |
echo "#include <sys/tiuser.h>" >> confsrc/pconfig.h; |
| 3875 |
fi; |
| 3876 |
fi; |
| 3877 |
fi |
| 3878 |
|
| 3879 |
|
| 3880 |
|
| 3881 |
|
| 3882 |
if test "x$use_pthread" = "xyes" ; then |
| 3883 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 |
| 3884 |
printf %s "checking for pthread_self in -lpthread... " >&6; } |
| 3885 |
if test ${ac_cv_lib_pthread_pthread_self+y} |
| 3886 |
then : |
| 3887 |
printf %s "(cached) " >&6 |
| 3888 |
else case e in #( |
| 3889 |
e) ac_check_lib_save_LIBS=$LIBS |
| 3890 |
LIBS="-lpthread $LIBS" |
| 3891 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3892 |
/* end confdefs.h. */ |
| 3893 |
|
| 3894 |
/* Override any GCC internal prototype to avoid an error. |
| 3895 |
Use char because int might match the return type of a GCC |
| 3896 |
builtin and then its argument prototype would still apply. |
| 3897 |
The 'extern "C"' is for builds by C++ compilers; |
| 3898 |
although this is not generally supported in C code supporting it here |
| 3899 |
has little cost and some practical benefit (sr 110532). */ |
| 3900 |
#ifdef __cplusplus |
| 3901 |
extern "C" |
| 3902 |
#endif |
| 3903 |
char pthread_self (void); |
| 3904 |
int |
| 3905 |
main (void) |
| 3906 |
{ |
| 3907 |
return pthread_self (); |
| 3908 |
; |
| 3909 |
return 0; |
| 3910 |
} |
| 3911 |
_ACEOF |
| 3912 |
if ac_fn_c_try_link "$LINENO" |
| 3913 |
then : |
| 3914 |
ac_cv_lib_pthread_pthread_self=yes |
| 3915 |
else case e in #( |
| 3916 |
e) ac_cv_lib_pthread_pthread_self=no ;; |
| 3917 |
esac |
| 3918 |
fi |
| 3919 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3920 |
conftest$ac_exeext conftest.$ac_ext |
| 3921 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 3922 |
esac |
| 3923 |
fi |
| 3924 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 |
| 3925 |
printf "%s\n" "$ac_cv_lib_pthread_pthread_self" >&6; } |
| 3926 |
if test "x$ac_cv_lib_pthread_pthread_self" = xyes |
| 3927 |
then : |
| 3928 |
printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h |
| 3929 |
|
| 3930 |
LIBS="-lpthread $LIBS" |
| 3931 |
|
| 3932 |
else case e in #( |
| 3933 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_self in -lpthread" >&5 |
| 3934 |
printf %s "checking for __pthread_self in -lpthread... " >&6; } |
| 3935 |
if test ${ac_cv_lib_pthread___pthread_self+y} |
| 3936 |
then : |
| 3937 |
printf %s "(cached) " >&6 |
| 3938 |
else case e in #( |
| 3939 |
e) ac_check_lib_save_LIBS=$LIBS |
| 3940 |
LIBS="-lpthread $LIBS" |
| 3941 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3942 |
/* end confdefs.h. */ |
| 3943 |
|
| 3944 |
/* Override any GCC internal prototype to avoid an error. |
| 3945 |
Use char because int might match the return type of a GCC |
| 3946 |
builtin and then its argument prototype would still apply. |
| 3947 |
The 'extern "C"' is for builds by C++ compilers; |
| 3948 |
although this is not generally supported in C code supporting it here |
| 3949 |
has little cost and some practical benefit (sr 110532). */ |
| 3950 |
#ifdef __cplusplus |
| 3951 |
extern "C" |
| 3952 |
#endif |
| 3953 |
char __pthread_self (void); |
| 3954 |
int |
| 3955 |
main (void) |
| 3956 |
{ |
| 3957 |
return __pthread_self (); |
| 3958 |
; |
| 3959 |
return 0; |
| 3960 |
} |
| 3961 |
_ACEOF |
| 3962 |
if ac_fn_c_try_link "$LINENO" |
| 3963 |
then : |
| 3964 |
ac_cv_lib_pthread___pthread_self=yes |
| 3965 |
else case e in #( |
| 3966 |
e) ac_cv_lib_pthread___pthread_self=no ;; |
| 3967 |
esac |
| 3968 |
fi |
| 3969 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 3970 |
conftest$ac_exeext conftest.$ac_ext |
| 3971 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 3972 |
esac |
| 3973 |
fi |
| 3974 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_self" >&5 |
| 3975 |
printf "%s\n" "$ac_cv_lib_pthread___pthread_self" >&6; } |
| 3976 |
if test "x$ac_cv_lib_pthread___pthread_self" = xyes |
| 3977 |
then : |
| 3978 |
printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h |
| 3979 |
|
| 3980 |
LIBS="-lpthread $LIBS" |
| 3981 |
|
| 3982 |
else case e in #( |
| 3983 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthreads" >&5 |
| 3984 |
printf %s "checking for pthread_self in -lpthreads... " >&6; } |
| 3985 |
if test ${ac_cv_lib_pthreads_pthread_self+y} |
| 3986 |
then : |
| 3987 |
printf %s "(cached) " >&6 |
| 3988 |
else case e in #( |
| 3989 |
e) ac_check_lib_save_LIBS=$LIBS |
| 3990 |
LIBS="-lpthreads $LIBS" |
| 3991 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3992 |
/* end confdefs.h. */ |
| 3993 |
|
| 3994 |
/* Override any GCC internal prototype to avoid an error. |
| 3995 |
Use char because int might match the return type of a GCC |
| 3996 |
builtin and then its argument prototype would still apply. |
| 3997 |
The 'extern "C"' is for builds by C++ compilers; |
| 3998 |
although this is not generally supported in C code supporting it here |
| 3999 |
has little cost and some practical benefit (sr 110532). */ |
| 4000 |
#ifdef __cplusplus |
| 4001 |
extern "C" |
| 4002 |
#endif |
| 4003 |
char pthread_self (void); |
| 4004 |
int |
| 4005 |
main (void) |
| 4006 |
{ |
| 4007 |
return pthread_self (); |
| 4008 |
; |
| 4009 |
return 0; |
| 4010 |
} |
| 4011 |
_ACEOF |
| 4012 |
if ac_fn_c_try_link "$LINENO" |
| 4013 |
then : |
| 4014 |
ac_cv_lib_pthreads_pthread_self=yes |
| 4015 |
else case e in #( |
| 4016 |
e) ac_cv_lib_pthreads_pthread_self=no ;; |
| 4017 |
esac |
| 4018 |
fi |
| 4019 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4020 |
conftest$ac_exeext conftest.$ac_ext |
| 4021 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 4022 |
esac |
| 4023 |
fi |
| 4024 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_self" >&5 |
| 4025 |
printf "%s\n" "$ac_cv_lib_pthreads_pthread_self" >&6; } |
| 4026 |
if test "x$ac_cv_lib_pthreads_pthread_self" = xyes |
| 4027 |
then : |
| 4028 |
printf "%s\n" "#define HAVE_LIBPTHREADS 1" >>confdefs.h |
| 4029 |
|
| 4030 |
LIBS="-lpthreads $LIBS" |
| 4031 |
|
| 4032 |
else case e in #( |
| 4033 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lcma" >&5 |
| 4034 |
printf %s "checking for pthread_self in -lcma... " >&6; } |
| 4035 |
if test ${ac_cv_lib_cma_pthread_self+y} |
| 4036 |
then : |
| 4037 |
printf %s "(cached) " >&6 |
| 4038 |
else case e in #( |
| 4039 |
e) ac_check_lib_save_LIBS=$LIBS |
| 4040 |
LIBS="-lcma $LIBS" |
| 4041 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4042 |
/* end confdefs.h. */ |
| 4043 |
|
| 4044 |
/* Override any GCC internal prototype to avoid an error. |
| 4045 |
Use char because int might match the return type of a GCC |
| 4046 |
builtin and then its argument prototype would still apply. |
| 4047 |
The 'extern "C"' is for builds by C++ compilers; |
| 4048 |
although this is not generally supported in C code supporting it here |
| 4049 |
has little cost and some practical benefit (sr 110532). */ |
| 4050 |
#ifdef __cplusplus |
| 4051 |
extern "C" |
| 4052 |
#endif |
| 4053 |
char pthread_self (void); |
| 4054 |
int |
| 4055 |
main (void) |
| 4056 |
{ |
| 4057 |
return pthread_self (); |
| 4058 |
; |
| 4059 |
return 0; |
| 4060 |
} |
| 4061 |
_ACEOF |
| 4062 |
if ac_fn_c_try_link "$LINENO" |
| 4063 |
then : |
| 4064 |
ac_cv_lib_cma_pthread_self=yes |
| 4065 |
else case e in #( |
| 4066 |
e) ac_cv_lib_cma_pthread_self=no ;; |
| 4067 |
esac |
| 4068 |
fi |
| 4069 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4070 |
conftest$ac_exeext conftest.$ac_ext |
| 4071 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 4072 |
esac |
| 4073 |
fi |
| 4074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_self" >&5 |
| 4075 |
printf "%s\n" "$ac_cv_lib_cma_pthread_self" >&6; } |
| 4076 |
if test "x$ac_cv_lib_cma_pthread_self" = xyes |
| 4077 |
then : |
| 4078 |
printf "%s\n" "#define HAVE_LIBCMA 1" >>confdefs.h |
| 4079 |
|
| 4080 |
LIBS="-lcma $LIBS" |
| 4081 |
|
| 4082 |
else case e in #( |
| 4083 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -l:libcma.a" >&5 |
| 4084 |
printf %s "checking for pthread_self in -l:libcma.a... " >&6; } |
| 4085 |
if test ${ac_cv_lib__libcma_a_pthread_self+y} |
| 4086 |
then : |
| 4087 |
printf %s "(cached) " >&6 |
| 4088 |
else case e in #( |
| 4089 |
e) ac_check_lib_save_LIBS=$LIBS |
| 4090 |
LIBS="-l:libcma.a $LIBS" |
| 4091 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4092 |
/* end confdefs.h. */ |
| 4093 |
|
| 4094 |
/* Override any GCC internal prototype to avoid an error. |
| 4095 |
Use char because int might match the return type of a GCC |
| 4096 |
builtin and then its argument prototype would still apply. |
| 4097 |
The 'extern "C"' is for builds by C++ compilers; |
| 4098 |
although this is not generally supported in C code supporting it here |
| 4099 |
has little cost and some practical benefit (sr 110532). */ |
| 4100 |
#ifdef __cplusplus |
| 4101 |
extern "C" |
| 4102 |
#endif |
| 4103 |
char pthread_self (void); |
| 4104 |
int |
| 4105 |
main (void) |
| 4106 |
{ |
| 4107 |
return pthread_self (); |
| 4108 |
; |
| 4109 |
return 0; |
| 4110 |
} |
| 4111 |
_ACEOF |
| 4112 |
if ac_fn_c_try_link "$LINENO" |
| 4113 |
then : |
| 4114 |
ac_cv_lib__libcma_a_pthread_self=yes |
| 4115 |
else case e in #( |
| 4116 |
e) ac_cv_lib__libcma_a_pthread_self=no ;; |
| 4117 |
esac |
| 4118 |
fi |
| 4119 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4120 |
conftest$ac_exeext conftest.$ac_ext |
| 4121 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 4122 |
esac |
| 4123 |
fi |
| 4124 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib__libcma_a_pthread_self" >&5 |
| 4125 |
printf "%s\n" "$ac_cv_lib__libcma_a_pthread_self" >&6; } |
| 4126 |
if test "x$ac_cv_lib__libcma_a_pthread_self" = xyes |
| 4127 |
then : |
| 4128 |
printf "%s\n" "#define HAVE_LIB_LIBCMA_A 1" >>confdefs.h |
| 4129 |
|
| 4130 |
LIBS="-l:libcma.a $LIBS" |
| 4131 |
|
| 4132 |
else case e in #( |
| 4133 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lthread" >&5 |
| 4134 |
printf %s "checking for pthread_self in -lthread... " >&6; } |
| 4135 |
if test ${ac_cv_lib_thread_pthread_self+y} |
| 4136 |
then : |
| 4137 |
printf %s "(cached) " >&6 |
| 4138 |
else case e in #( |
| 4139 |
e) ac_check_lib_save_LIBS=$LIBS |
| 4140 |
LIBS="-lthread $LIBS" |
| 4141 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4142 |
/* end confdefs.h. */ |
| 4143 |
|
| 4144 |
/* Override any GCC internal prototype to avoid an error. |
| 4145 |
Use char because int might match the return type of a GCC |
| 4146 |
builtin and then its argument prototype would still apply. |
| 4147 |
The 'extern "C"' is for builds by C++ compilers; |
| 4148 |
although this is not generally supported in C code supporting it here |
| 4149 |
has little cost and some practical benefit (sr 110532). */ |
| 4150 |
#ifdef __cplusplus |
| 4151 |
extern "C" |
| 4152 |
#endif |
| 4153 |
char pthread_self (void); |
| 4154 |
int |
| 4155 |
main (void) |
| 4156 |
{ |
| 4157 |
return pthread_self (); |
| 4158 |
; |
| 4159 |
return 0; |
| 4160 |
} |
| 4161 |
_ACEOF |
| 4162 |
if ac_fn_c_try_link "$LINENO" |
| 4163 |
then : |
| 4164 |
ac_cv_lib_thread_pthread_self=yes |
| 4165 |
else case e in #( |
| 4166 |
e) ac_cv_lib_thread_pthread_self=no ;; |
| 4167 |
esac |
| 4168 |
fi |
| 4169 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4170 |
conftest$ac_exeext conftest.$ac_ext |
| 4171 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 4172 |
esac |
| 4173 |
fi |
| 4174 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_pthread_self" >&5 |
| 4175 |
printf "%s\n" "$ac_cv_lib_thread_pthread_self" >&6; } |
| 4176 |
if test "x$ac_cv_lib_thread_pthread_self" = xyes |
| 4177 |
then : |
| 4178 |
printf "%s\n" "#define HAVE_LIBTHREAD 1" >>confdefs.h |
| 4179 |
|
| 4180 |
LIBS="-lthread $LIBS" |
| 4181 |
|
| 4182 |
else case e in #( |
| 4183 |
e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lc_r" >&5 |
| 4184 |
printf %s "checking for pthread_self in -lc_r... " >&6; } |
| 4185 |
if test ${ac_cv_lib_c_r_pthread_self+y} |
| 4186 |
then : |
| 4187 |
printf %s "(cached) " >&6 |
| 4188 |
else case e in #( |
| 4189 |
e) ac_check_lib_save_LIBS=$LIBS |
| 4190 |
LIBS="-lc_r $LIBS" |
| 4191 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4192 |
/* end confdefs.h. */ |
| 4193 |
|
| 4194 |
/* Override any GCC internal prototype to avoid an error. |
| 4195 |
Use char because int might match the return type of a GCC |
| 4196 |
builtin and then its argument prototype would still apply. |
| 4197 |
The 'extern "C"' is for builds by C++ compilers; |
| 4198 |
although this is not generally supported in C code supporting it here |
| 4199 |
has little cost and some practical benefit (sr 110532). */ |
| 4200 |
#ifdef __cplusplus |
| 4201 |
extern "C" |
| 4202 |
#endif |
| 4203 |
char pthread_self (void); |
| 4204 |
int |
| 4205 |
main (void) |
| 4206 |
{ |
| 4207 |
return pthread_self (); |
| 4208 |
; |
| 4209 |
return 0; |
| 4210 |
} |
| 4211 |
_ACEOF |
| 4212 |
if ac_fn_c_try_link "$LINENO" |
| 4213 |
then : |
| 4214 |
ac_cv_lib_c_r_pthread_self=yes |
| 4215 |
else case e in #( |
| 4216 |
e) ac_cv_lib_c_r_pthread_self=no ;; |
| 4217 |
esac |
| 4218 |
fi |
| 4219 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4220 |
conftest$ac_exeext conftest.$ac_ext |
| 4221 |
LIBS=$ac_check_lib_save_LIBS ;; |
| 4222 |
esac |
| 4223 |
fi |
| 4224 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_self" >&5 |
| 4225 |
printf "%s\n" "$ac_cv_lib_c_r_pthread_self" >&6; } |
| 4226 |
if test "x$ac_cv_lib_c_r_pthread_self" = xyes |
| 4227 |
then : |
| 4228 |
printf "%s\n" "#define HAVE_LIBC_R 1" >>confdefs.h |
| 4229 |
|
| 4230 |
LIBS="-lc_r $LIBS" |
| 4231 |
|
| 4232 |
fi |
| 4233 |
;; |
| 4234 |
esac |
| 4235 |
fi |
| 4236 |
;; |
| 4237 |
esac |
| 4238 |
fi |
| 4239 |
;; |
| 4240 |
esac |
| 4241 |
fi |
| 4242 |
;; |
| 4243 |
esac |
| 4244 |
fi |
| 4245 |
;; |
| 4246 |
esac |
| 4247 |
fi |
| 4248 |
;; |
| 4249 |
esac |
| 4250 |
fi |
| 4251 |
|
| 4252 |
fi |
| 4253 |
|
| 4254 |
|
| 4255 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing aio_read" >&5 |
| 4256 |
printf %s "checking for library containing aio_read... " >&6; } |
| 4257 |
if test ${ac_cv_search_aio_read+y} |
| 4258 |
then : |
| 4259 |
printf %s "(cached) " >&6 |
| 4260 |
else case e in #( |
| 4261 |
e) ac_func_search_save_LIBS=$LIBS |
| 4262 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4263 |
/* end confdefs.h. */ |
| 4264 |
|
| 4265 |
/* Override any GCC internal prototype to avoid an error. |
| 4266 |
Use char because int might match the return type of a GCC |
| 4267 |
builtin and then its argument prototype would still apply. |
| 4268 |
The 'extern "C"' is for builds by C++ compilers; |
| 4269 |
although this is not generally supported in C code supporting it here |
| 4270 |
has little cost and some practical benefit (sr 110532). */ |
| 4271 |
#ifdef __cplusplus |
| 4272 |
extern "C" |
| 4273 |
#endif |
| 4274 |
char aio_read (void); |
| 4275 |
int |
| 4276 |
main (void) |
| 4277 |
{ |
| 4278 |
return aio_read (); |
| 4279 |
; |
| 4280 |
return 0; |
| 4281 |
} |
| 4282 |
_ACEOF |
| 4283 |
for ac_lib in '' aio |
| 4284 |
do |
| 4285 |
if test -z "$ac_lib"; then |
| 4286 |
ac_res="none required" |
| 4287 |
else |
| 4288 |
ac_res=-l$ac_lib |
| 4289 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4290 |
fi |
| 4291 |
if ac_fn_c_try_link "$LINENO" |
| 4292 |
then : |
| 4293 |
ac_cv_search_aio_read=$ac_res |
| 4294 |
fi |
| 4295 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4296 |
conftest$ac_exeext |
| 4297 |
if test ${ac_cv_search_aio_read+y} |
| 4298 |
then : |
| 4299 |
break |
| 4300 |
fi |
| 4301 |
done |
| 4302 |
if test ${ac_cv_search_aio_read+y} |
| 4303 |
then : |
| 4304 |
|
| 4305 |
else case e in #( |
| 4306 |
e) ac_cv_search_aio_read=no ;; |
| 4307 |
esac |
| 4308 |
fi |
| 4309 |
rm conftest.$ac_ext |
| 4310 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4311 |
esac |
| 4312 |
fi |
| 4313 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_aio_read" >&5 |
| 4314 |
printf "%s\n" "$ac_cv_search_aio_read" >&6; } |
| 4315 |
ac_res=$ac_cv_search_aio_read |
| 4316 |
if test "$ac_res" != no |
| 4317 |
then : |
| 4318 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4319 |
|
| 4320 |
fi |
| 4321 |
|
| 4322 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 |
| 4323 |
printf %s "checking for library containing shm_open... " >&6; } |
| 4324 |
if test ${ac_cv_search_shm_open+y} |
| 4325 |
then : |
| 4326 |
printf %s "(cached) " >&6 |
| 4327 |
else case e in #( |
| 4328 |
e) ac_func_search_save_LIBS=$LIBS |
| 4329 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4330 |
/* end confdefs.h. */ |
| 4331 |
|
| 4332 |
/* Override any GCC internal prototype to avoid an error. |
| 4333 |
Use char because int might match the return type of a GCC |
| 4334 |
builtin and then its argument prototype would still apply. |
| 4335 |
The 'extern "C"' is for builds by C++ compilers; |
| 4336 |
although this is not generally supported in C code supporting it here |
| 4337 |
has little cost and some practical benefit (sr 110532). */ |
| 4338 |
#ifdef __cplusplus |
| 4339 |
extern "C" |
| 4340 |
#endif |
| 4341 |
char shm_open (void); |
| 4342 |
int |
| 4343 |
main (void) |
| 4344 |
{ |
| 4345 |
return shm_open (); |
| 4346 |
; |
| 4347 |
return 0; |
| 4348 |
} |
| 4349 |
_ACEOF |
| 4350 |
for ac_lib in '' rt |
| 4351 |
do |
| 4352 |
if test -z "$ac_lib"; then |
| 4353 |
ac_res="none required" |
| 4354 |
else |
| 4355 |
ac_res=-l$ac_lib |
| 4356 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4357 |
fi |
| 4358 |
if ac_fn_c_try_link "$LINENO" |
| 4359 |
then : |
| 4360 |
ac_cv_search_shm_open=$ac_res |
| 4361 |
fi |
| 4362 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4363 |
conftest$ac_exeext |
| 4364 |
if test ${ac_cv_search_shm_open+y} |
| 4365 |
then : |
| 4366 |
break |
| 4367 |
fi |
| 4368 |
done |
| 4369 |
if test ${ac_cv_search_shm_open+y} |
| 4370 |
then : |
| 4371 |
|
| 4372 |
else case e in #( |
| 4373 |
e) ac_cv_search_shm_open=no ;; |
| 4374 |
esac |
| 4375 |
fi |
| 4376 |
rm conftest.$ac_ext |
| 4377 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4378 |
esac |
| 4379 |
fi |
| 4380 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 |
| 4381 |
printf "%s\n" "$ac_cv_search_shm_open" >&6; } |
| 4382 |
ac_res=$ac_cv_search_shm_open |
| 4383 |
if test "$ac_res" != no |
| 4384 |
then : |
| 4385 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4386 |
|
| 4387 |
fi |
| 4388 |
|
| 4389 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 4390 |
printf %s "checking for library containing clock_gettime... " >&6; } |
| 4391 |
if test ${ac_cv_search_clock_gettime+y} |
| 4392 |
then : |
| 4393 |
printf %s "(cached) " >&6 |
| 4394 |
else case e in #( |
| 4395 |
e) ac_func_search_save_LIBS=$LIBS |
| 4396 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4397 |
/* end confdefs.h. */ |
| 4398 |
|
| 4399 |
/* Override any GCC internal prototype to avoid an error. |
| 4400 |
Use char because int might match the return type of a GCC |
| 4401 |
builtin and then its argument prototype would still apply. |
| 4402 |
The 'extern "C"' is for builds by C++ compilers; |
| 4403 |
although this is not generally supported in C code supporting it here |
| 4404 |
has little cost and some practical benefit (sr 110532). */ |
| 4405 |
#ifdef __cplusplus |
| 4406 |
extern "C" |
| 4407 |
#endif |
| 4408 |
char clock_gettime (void); |
| 4409 |
int |
| 4410 |
main (void) |
| 4411 |
{ |
| 4412 |
return clock_gettime (); |
| 4413 |
; |
| 4414 |
return 0; |
| 4415 |
} |
| 4416 |
_ACEOF |
| 4417 |
for ac_lib in '' posix4 rt |
| 4418 |
do |
| 4419 |
if test -z "$ac_lib"; then |
| 4420 |
ac_res="none required" |
| 4421 |
else |
| 4422 |
ac_res=-l$ac_lib |
| 4423 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4424 |
fi |
| 4425 |
if ac_fn_c_try_link "$LINENO" |
| 4426 |
then : |
| 4427 |
ac_cv_search_clock_gettime=$ac_res |
| 4428 |
fi |
| 4429 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4430 |
conftest$ac_exeext |
| 4431 |
if test ${ac_cv_search_clock_gettime+y} |
| 4432 |
then : |
| 4433 |
break |
| 4434 |
fi |
| 4435 |
done |
| 4436 |
if test ${ac_cv_search_clock_gettime+y} |
| 4437 |
then : |
| 4438 |
|
| 4439 |
else case e in #( |
| 4440 |
e) ac_cv_search_clock_gettime=no ;; |
| 4441 |
esac |
| 4442 |
fi |
| 4443 |
rm conftest.$ac_ext |
| 4444 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4445 |
esac |
| 4446 |
fi |
| 4447 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 4448 |
printf "%s\n" "$ac_cv_search_clock_gettime" >&6; } |
| 4449 |
ac_res=$ac_cv_search_clock_gettime |
| 4450 |
if test "$ac_res" != no |
| 4451 |
then : |
| 4452 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4453 |
|
| 4454 |
fi |
| 4455 |
|
| 4456 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 |
| 4457 |
printf %s "checking for library containing gethostbyname... " >&6; } |
| 4458 |
if test ${ac_cv_search_gethostbyname+y} |
| 4459 |
then : |
| 4460 |
printf %s "(cached) " >&6 |
| 4461 |
else case e in #( |
| 4462 |
e) ac_func_search_save_LIBS=$LIBS |
| 4463 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4464 |
/* end confdefs.h. */ |
| 4465 |
|
| 4466 |
/* Override any GCC internal prototype to avoid an error. |
| 4467 |
Use char because int might match the return type of a GCC |
| 4468 |
builtin and then its argument prototype would still apply. |
| 4469 |
The 'extern "C"' is for builds by C++ compilers; |
| 4470 |
although this is not generally supported in C code supporting it here |
| 4471 |
has little cost and some practical benefit (sr 110532). */ |
| 4472 |
#ifdef __cplusplus |
| 4473 |
extern "C" |
| 4474 |
#endif |
| 4475 |
char gethostbyname (void); |
| 4476 |
int |
| 4477 |
main (void) |
| 4478 |
{ |
| 4479 |
return gethostbyname (); |
| 4480 |
; |
| 4481 |
return 0; |
| 4482 |
} |
| 4483 |
_ACEOF |
| 4484 |
for ac_lib in '' nsl |
| 4485 |
do |
| 4486 |
if test -z "$ac_lib"; then |
| 4487 |
ac_res="none required" |
| 4488 |
else |
| 4489 |
ac_res=-l$ac_lib |
| 4490 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4491 |
fi |
| 4492 |
if ac_fn_c_try_link "$LINENO" |
| 4493 |
then : |
| 4494 |
ac_cv_search_gethostbyname=$ac_res |
| 4495 |
fi |
| 4496 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4497 |
conftest$ac_exeext |
| 4498 |
if test ${ac_cv_search_gethostbyname+y} |
| 4499 |
then : |
| 4500 |
break |
| 4501 |
fi |
| 4502 |
done |
| 4503 |
if test ${ac_cv_search_gethostbyname+y} |
| 4504 |
then : |
| 4505 |
|
| 4506 |
else case e in #( |
| 4507 |
e) ac_cv_search_gethostbyname=no ;; |
| 4508 |
esac |
| 4509 |
fi |
| 4510 |
rm conftest.$ac_ext |
| 4511 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4512 |
esac |
| 4513 |
fi |
| 4514 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 |
| 4515 |
printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } |
| 4516 |
ac_res=$ac_cv_search_gethostbyname |
| 4517 |
if test "$ac_res" != no |
| 4518 |
then : |
| 4519 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4520 |
|
| 4521 |
fi |
| 4522 |
|
| 4523 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing t_bind" >&5 |
| 4524 |
printf %s "checking for library containing t_bind... " >&6; } |
| 4525 |
if test ${ac_cv_search_t_bind+y} |
| 4526 |
then : |
| 4527 |
printf %s "(cached) " >&6 |
| 4528 |
else case e in #( |
| 4529 |
e) ac_func_search_save_LIBS=$LIBS |
| 4530 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4531 |
/* end confdefs.h. */ |
| 4532 |
|
| 4533 |
/* Override any GCC internal prototype to avoid an error. |
| 4534 |
Use char because int might match the return type of a GCC |
| 4535 |
builtin and then its argument prototype would still apply. |
| 4536 |
The 'extern "C"' is for builds by C++ compilers; |
| 4537 |
although this is not generally supported in C code supporting it here |
| 4538 |
has little cost and some practical benefit (sr 110532). */ |
| 4539 |
#ifdef __cplusplus |
| 4540 |
extern "C" |
| 4541 |
#endif |
| 4542 |
char t_bind (void); |
| 4543 |
int |
| 4544 |
main (void) |
| 4545 |
{ |
| 4546 |
return t_bind (); |
| 4547 |
; |
| 4548 |
return 0; |
| 4549 |
} |
| 4550 |
_ACEOF |
| 4551 |
for ac_lib in '' nsl nsl_s |
| 4552 |
do |
| 4553 |
if test -z "$ac_lib"; then |
| 4554 |
ac_res="none required" |
| 4555 |
else |
| 4556 |
ac_res=-l$ac_lib |
| 4557 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4558 |
fi |
| 4559 |
if ac_fn_c_try_link "$LINENO" |
| 4560 |
then : |
| 4561 |
ac_cv_search_t_bind=$ac_res |
| 4562 |
fi |
| 4563 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4564 |
conftest$ac_exeext |
| 4565 |
if test ${ac_cv_search_t_bind+y} |
| 4566 |
then : |
| 4567 |
break |
| 4568 |
fi |
| 4569 |
done |
| 4570 |
if test ${ac_cv_search_t_bind+y} |
| 4571 |
then : |
| 4572 |
|
| 4573 |
else case e in #( |
| 4574 |
e) ac_cv_search_t_bind=no ;; |
| 4575 |
esac |
| 4576 |
fi |
| 4577 |
rm conftest.$ac_ext |
| 4578 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4579 |
esac |
| 4580 |
fi |
| 4581 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_t_bind" >&5 |
| 4582 |
printf "%s\n" "$ac_cv_search_t_bind" >&6; } |
| 4583 |
ac_res=$ac_cv_search_t_bind |
| 4584 |
if test "$ac_res" != no |
| 4585 |
then : |
| 4586 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4587 |
|
| 4588 |
fi |
| 4589 |
|
| 4590 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing accept" >&5 |
| 4591 |
printf %s "checking for library containing accept... " >&6; } |
| 4592 |
if test ${ac_cv_search_accept+y} |
| 4593 |
then : |
| 4594 |
printf %s "(cached) " >&6 |
| 4595 |
else case e in #( |
| 4596 |
e) ac_func_search_save_LIBS=$LIBS |
| 4597 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4598 |
/* end confdefs.h. */ |
| 4599 |
|
| 4600 |
/* Override any GCC internal prototype to avoid an error. |
| 4601 |
Use char because int might match the return type of a GCC |
| 4602 |
builtin and then its argument prototype would still apply. |
| 4603 |
The 'extern "C"' is for builds by C++ compilers; |
| 4604 |
although this is not generally supported in C code supporting it here |
| 4605 |
has little cost and some practical benefit (sr 110532). */ |
| 4606 |
#ifdef __cplusplus |
| 4607 |
extern "C" |
| 4608 |
#endif |
| 4609 |
char accept (void); |
| 4610 |
int |
| 4611 |
main (void) |
| 4612 |
{ |
| 4613 |
return accept (); |
| 4614 |
; |
| 4615 |
return 0; |
| 4616 |
} |
| 4617 |
_ACEOF |
| 4618 |
for ac_lib in '' socket |
| 4619 |
do |
| 4620 |
if test -z "$ac_lib"; then |
| 4621 |
ac_res="none required" |
| 4622 |
else |
| 4623 |
ac_res=-l$ac_lib |
| 4624 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4625 |
fi |
| 4626 |
if ac_fn_c_try_link "$LINENO" |
| 4627 |
then : |
| 4628 |
ac_cv_search_accept=$ac_res |
| 4629 |
fi |
| 4630 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4631 |
conftest$ac_exeext |
| 4632 |
if test ${ac_cv_search_accept+y} |
| 4633 |
then : |
| 4634 |
break |
| 4635 |
fi |
| 4636 |
done |
| 4637 |
if test ${ac_cv_search_accept+y} |
| 4638 |
then : |
| 4639 |
|
| 4640 |
else case e in #( |
| 4641 |
e) ac_cv_search_accept=no ;; |
| 4642 |
esac |
| 4643 |
fi |
| 4644 |
rm conftest.$ac_ext |
| 4645 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4646 |
esac |
| 4647 |
fi |
| 4648 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_accept" >&5 |
| 4649 |
printf "%s\n" "$ac_cv_search_accept" >&6; } |
| 4650 |
ac_res=$ac_cv_search_accept |
| 4651 |
if test "$ac_res" != no |
| 4652 |
then : |
| 4653 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4654 |
|
| 4655 |
fi |
| 4656 |
|
| 4657 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing h_errno" >&5 |
| 4658 |
printf %s "checking for library containing h_errno... " >&6; } |
| 4659 |
if test ${ac_cv_search_h_errno+y} |
| 4660 |
then : |
| 4661 |
printf %s "(cached) " >&6 |
| 4662 |
else case e in #( |
| 4663 |
e) ac_func_search_save_LIBS=$LIBS |
| 4664 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4665 |
/* end confdefs.h. */ |
| 4666 |
|
| 4667 |
/* Override any GCC internal prototype to avoid an error. |
| 4668 |
Use char because int might match the return type of a GCC |
| 4669 |
builtin and then its argument prototype would still apply. |
| 4670 |
The 'extern "C"' is for builds by C++ compilers; |
| 4671 |
although this is not generally supported in C code supporting it here |
| 4672 |
has little cost and some practical benefit (sr 110532). */ |
| 4673 |
#ifdef __cplusplus |
| 4674 |
extern "C" |
| 4675 |
#endif |
| 4676 |
char h_errno (void); |
| 4677 |
int |
| 4678 |
main (void) |
| 4679 |
{ |
| 4680 |
return h_errno (); |
| 4681 |
; |
| 4682 |
return 0; |
| 4683 |
} |
| 4684 |
_ACEOF |
| 4685 |
for ac_lib in '' resolv |
| 4686 |
do |
| 4687 |
if test -z "$ac_lib"; then |
| 4688 |
ac_res="none required" |
| 4689 |
else |
| 4690 |
ac_res=-l$ac_lib |
| 4691 |
LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 4692 |
fi |
| 4693 |
if ac_fn_c_try_link "$LINENO" |
| 4694 |
then : |
| 4695 |
ac_cv_search_h_errno=$ac_res |
| 4696 |
fi |
| 4697 |
rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
| 4698 |
conftest$ac_exeext |
| 4699 |
if test ${ac_cv_search_h_errno+y} |
| 4700 |
then : |
| 4701 |
break |
| 4702 |
fi |
| 4703 |
done |
| 4704 |
if test ${ac_cv_search_h_errno+y} |
| 4705 |
then : |
| 4706 |
|
| 4707 |
else case e in #( |
| 4708 |
e) ac_cv_search_h_errno=no ;; |
| 4709 |
esac |
| 4710 |
fi |
| 4711 |
rm conftest.$ac_ext |
| 4712 |
LIBS=$ac_func_search_save_LIBS ;; |
| 4713 |
esac |
| 4714 |
fi |
| 4715 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_h_errno" >&5 |
| 4716 |
printf "%s\n" "$ac_cv_search_h_errno" >&6; } |
| 4717 |
ac_res=$ac_cv_search_h_errno |
| 4718 |
if test "$ac_res" != no |
| 4719 |
then : |
| 4720 |
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 4721 |
|
| 4722 |
fi |
| 4723 |
|
| 4724 |
|
| 4725 |
echo "Using LIBS=${LIBS}" |
| 4726 |
|
| 4727 |
|
| 4728 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 |
| 4729 |
printf %s "checking for egrep -e... " >&6; } |
| 4730 |
if test ${ac_cv_path_EGREP_TRADITIONAL+y} |
| 4731 |
then : |
| 4732 |
printf %s "(cached) " >&6 |
| 4733 |
else case e in #( |
| 4734 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 4735 |
ac_path_EGREP_TRADITIONAL_found=false |
| 4736 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4737 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4738 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4739 |
do |
| 4740 |
IFS=$as_save_IFS |
| 4741 |
case $as_dir in #((( |
| 4742 |
'') as_dir=./ ;; |
| 4743 |
*/) ;; |
| 4744 |
*) as_dir=$as_dir/ ;; |
| 4745 |
esac |
| 4746 |
for ac_prog in grep ggrep |
| 4747 |
do |
| 4748 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4749 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 4750 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 4751 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 4752 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 4753 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 4754 |
*GNU*) |
| 4755 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 4756 |
#( |
| 4757 |
*) |
| 4758 |
ac_count=0 |
| 4759 |
printf %s 0123456789 >"conftest.in" |
| 4760 |
while : |
| 4761 |
do |
| 4762 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4763 |
mv "conftest.tmp" "conftest.in" |
| 4764 |
cp "conftest.in" "conftest.nl" |
| 4765 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 4766 |
"$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4767 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4768 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4769 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 4770 |
# Best one so far, save it but keep looking for a better one |
| 4771 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 4772 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 4773 |
fi |
| 4774 |
# 10*(2^10) chars as input seems more than enough |
| 4775 |
test $ac_count -gt 10 && break |
| 4776 |
done |
| 4777 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4778 |
esac |
| 4779 |
|
| 4780 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 4781 |
done |
| 4782 |
done |
| 4783 |
done |
| 4784 |
IFS=$as_save_IFS |
| 4785 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 4786 |
: |
| 4787 |
fi |
| 4788 |
else |
| 4789 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 4790 |
fi |
| 4791 |
|
| 4792 |
if test "$ac_cv_path_EGREP_TRADITIONAL" |
| 4793 |
then : |
| 4794 |
ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" |
| 4795 |
else case e in #( |
| 4796 |
e) if test -z "$EGREP_TRADITIONAL"; then |
| 4797 |
ac_path_EGREP_TRADITIONAL_found=false |
| 4798 |
# Loop through the user's path and test for each of PROGNAME-LIST |
| 4799 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4800 |
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 4801 |
do |
| 4802 |
IFS=$as_save_IFS |
| 4803 |
case $as_dir in #((( |
| 4804 |
'') as_dir=./ ;; |
| 4805 |
*/) ;; |
| 4806 |
*) as_dir=$as_dir/ ;; |
| 4807 |
esac |
| 4808 |
for ac_prog in egrep |
| 4809 |
do |
| 4810 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 4811 |
ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" |
| 4812 |
as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue |
| 4813 |
# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. |
| 4814 |
# Check for GNU $ac_path_EGREP_TRADITIONAL |
| 4815 |
case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( |
| 4816 |
*GNU*) |
| 4817 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; |
| 4818 |
#( |
| 4819 |
*) |
| 4820 |
ac_count=0 |
| 4821 |
printf %s 0123456789 >"conftest.in" |
| 4822 |
while : |
| 4823 |
do |
| 4824 |
cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 4825 |
mv "conftest.tmp" "conftest.in" |
| 4826 |
cp "conftest.in" "conftest.nl" |
| 4827 |
printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" |
| 4828 |
"$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 4829 |
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 4830 |
as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 4831 |
if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then |
| 4832 |
# Best one so far, save it but keep looking for a better one |
| 4833 |
ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" |
| 4834 |
ac_path_EGREP_TRADITIONAL_max=$ac_count |
| 4835 |
fi |
| 4836 |
# 10*(2^10) chars as input seems more than enough |
| 4837 |
test $ac_count -gt 10 && break |
| 4838 |
done |
| 4839 |
rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 4840 |
esac |
| 4841 |
|
| 4842 |
$ac_path_EGREP_TRADITIONAL_found && break 3 |
| 4843 |
done |
| 4844 |
done |
| 4845 |
done |
| 4846 |
IFS=$as_save_IFS |
| 4847 |
if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then |
| 4848 |
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 4849 |
fi |
| 4850 |
else |
| 4851 |
ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL |
| 4852 |
fi |
| 4853 |
;; |
| 4854 |
esac |
| 4855 |
fi ;; |
| 4856 |
esac |
| 4857 |
fi |
| 4858 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 |
| 4859 |
printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } |
| 4860 |
EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL |
| 4861 |
|
| 4862 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for global variable or macro t_errno" >&5 |
| 4863 |
printf %s "checking for global variable or macro t_errno... " >&6; } |
| 4864 |
if test ${ac_cv_comp_t_errno+y} |
| 4865 |
then : |
| 4866 |
printf %s "(cached) " >&6 |
| 4867 |
else case e in #( |
| 4868 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4869 |
/* end confdefs.h. */ |
| 4870 |
#include "confsrc/pconfig.h" |
| 4871 |
_ACEOF |
| 4872 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4873 |
$EGREP_TRADITIONAL "t_errno" >/dev/null 2>&1 |
| 4874 |
then : |
| 4875 |
eval "ac_cv_comp_t_errno=yes" |
| 4876 |
else case e in #( |
| 4877 |
e) eval "ac_cv_comp_t_errno=no" ;; |
| 4878 |
esac |
| 4879 |
fi |
| 4880 |
rm -rf conftest* |
| 4881 |
;; |
| 4882 |
esac |
| 4883 |
fi |
| 4884 |
if eval "test \"`echo '$ac_cv_comp_'t_errno`\" = yes"; then |
| 4885 |
printf "%s\n" "#define HAVE_t_errno 1" >>confdefs.h |
| 4886 |
|
| 4887 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4888 |
printf "%s\n" "yes" >&6; } |
| 4889 |
else |
| 4890 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4891 |
printf "%s\n" "no" >&6; } |
| 4892 |
fi |
| 4893 |
|
| 4894 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for global variable or macro t_nerr" >&5 |
| 4895 |
printf %s "checking for global variable or macro t_nerr... " >&6; } |
| 4896 |
if test ${ac_cv_comp_t_nerr+y} |
| 4897 |
then : |
| 4898 |
printf %s "(cached) " >&6 |
| 4899 |
else case e in #( |
| 4900 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4901 |
/* end confdefs.h. */ |
| 4902 |
#include "confsrc/pconfig.h" |
| 4903 |
_ACEOF |
| 4904 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4905 |
$EGREP_TRADITIONAL "t_nerr" >/dev/null 2>&1 |
| 4906 |
then : |
| 4907 |
eval "ac_cv_comp_t_nerr=yes" |
| 4908 |
else case e in #( |
| 4909 |
e) eval "ac_cv_comp_t_nerr=no" ;; |
| 4910 |
esac |
| 4911 |
fi |
| 4912 |
rm -rf conftest* |
| 4913 |
;; |
| 4914 |
esac |
| 4915 |
fi |
| 4916 |
if eval "test \"`echo '$ac_cv_comp_'t_nerr`\" = yes"; then |
| 4917 |
printf "%s\n" "#define HAVE_t_nerr 1" >>confdefs.h |
| 4918 |
|
| 4919 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4920 |
printf "%s\n" "yes" >&6; } |
| 4921 |
else |
| 4922 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4923 |
printf "%s\n" "no" >&6; } |
| 4924 |
fi |
| 4925 |
|
| 4926 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct msghdr component msg_control" >&5 |
| 4927 |
printf %s "checking for struct msghdr component msg_control... " >&6; } |
| 4928 |
if test ${ac_cv_comp_msg_control+y} |
| 4929 |
then : |
| 4930 |
printf %s "(cached) " >&6 |
| 4931 |
else case e in #( |
| 4932 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4933 |
/* end confdefs.h. */ |
| 4934 |
#include "confsrc/pconfig.h" |
| 4935 |
struct msghdr x; |
| 4936 |
int |
| 4937 |
main (void) |
| 4938 |
{ |
| 4939 |
x.msg_control = x.msg_control; |
| 4940 |
; |
| 4941 |
return 0; |
| 4942 |
} |
| 4943 |
_ACEOF |
| 4944 |
if ac_fn_c_try_compile "$LINENO" |
| 4945 |
then : |
| 4946 |
eval "ac_cv_comp_msg_control=yes" |
| 4947 |
else case e in #( |
| 4948 |
e) eval "ac_cv_comp_msg_control=no" ;; |
| 4949 |
esac |
| 4950 |
fi |
| 4951 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4952 |
esac |
| 4953 |
fi |
| 4954 |
if eval "test \"`echo '$ac_cv_comp_'msg_control`\" = yes"; then |
| 4955 |
printf "%s\n" "#define HAVE_component_msg_control 1" >>confdefs.h |
| 4956 |
|
| 4957 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4958 |
printf "%s\n" "yes" >&6; } |
| 4959 |
else |
| 4960 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4961 |
printf "%s\n" "no" >&6; } |
| 4962 |
fi |
| 4963 |
|
| 4964 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct msghdr component msg_controllen" >&5 |
| 4965 |
printf %s "checking for struct msghdr component msg_controllen... " >&6; } |
| 4966 |
if test ${ac_cv_comp_msg_controllen+y} |
| 4967 |
then : |
| 4968 |
printf %s "(cached) " >&6 |
| 4969 |
else case e in #( |
| 4970 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4971 |
/* end confdefs.h. */ |
| 4972 |
#include "confsrc/pconfig.h" |
| 4973 |
struct msghdr x; |
| 4974 |
int |
| 4975 |
main (void) |
| 4976 |
{ |
| 4977 |
x.msg_controllen = x.msg_controllen; |
| 4978 |
; |
| 4979 |
return 0; |
| 4980 |
} |
| 4981 |
_ACEOF |
| 4982 |
if ac_fn_c_try_compile "$LINENO" |
| 4983 |
then : |
| 4984 |
eval "ac_cv_comp_msg_controllen=yes" |
| 4985 |
else case e in #( |
| 4986 |
e) eval "ac_cv_comp_msg_controllen=no" ;; |
| 4987 |
esac |
| 4988 |
fi |
| 4989 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 4990 |
esac |
| 4991 |
fi |
| 4992 |
if eval "test \"`echo '$ac_cv_comp_'msg_controllen`\" = yes"; then |
| 4993 |
printf "%s\n" "#define HAVE_component_msg_controllen 1" >>confdefs.h |
| 4994 |
|
| 4995 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 4996 |
printf "%s\n" "yes" >&6; } |
| 4997 |
else |
| 4998 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4999 |
printf "%s\n" "no" >&6; } |
| 5000 |
fi |
| 5001 |
|
| 5002 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct msghdr component msg_flags" >&5 |
| 5003 |
printf %s "checking for struct msghdr component msg_flags... " >&6; } |
| 5004 |
if test ${ac_cv_comp_msg_flags+y} |
| 5005 |
then : |
| 5006 |
printf %s "(cached) " >&6 |
| 5007 |
else case e in #( |
| 5008 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5009 |
/* end confdefs.h. */ |
| 5010 |
#include "confsrc/pconfig.h" |
| 5011 |
struct msghdr x; |
| 5012 |
int |
| 5013 |
main (void) |
| 5014 |
{ |
| 5015 |
x.msg_flags = x.msg_flags; |
| 5016 |
; |
| 5017 |
return 0; |
| 5018 |
} |
| 5019 |
_ACEOF |
| 5020 |
if ac_fn_c_try_compile "$LINENO" |
| 5021 |
then : |
| 5022 |
eval "ac_cv_comp_msg_flags=yes" |
| 5023 |
else case e in #( |
| 5024 |
e) eval "ac_cv_comp_msg_flags=no" ;; |
| 5025 |
esac |
| 5026 |
fi |
| 5027 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5028 |
esac |
| 5029 |
fi |
| 5030 |
if eval "test \"`echo '$ac_cv_comp_'msg_flags`\" = yes"; then |
| 5031 |
printf "%s\n" "#define HAVE_component_msg_flags 1" >>confdefs.h |
| 5032 |
|
| 5033 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5034 |
printf "%s\n" "yes" >&6; } |
| 5035 |
else |
| 5036 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5037 |
printf "%s\n" "no" >&6; } |
| 5038 |
fi |
| 5039 |
|
| 5040 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sigevent component sigev_notify_function" >&5 |
| 5041 |
printf %s "checking for struct sigevent component sigev_notify_function... " >&6; } |
| 5042 |
if test ${ac_cv_comp_sigev_notify_function+y} |
| 5043 |
then : |
| 5044 |
printf %s "(cached) " >&6 |
| 5045 |
else case e in #( |
| 5046 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5047 |
/* end confdefs.h. */ |
| 5048 |
#include "confsrc/pconfig.h" |
| 5049 |
struct sigevent x; |
| 5050 |
int |
| 5051 |
main (void) |
| 5052 |
{ |
| 5053 |
x.sigev_notify_function = x.sigev_notify_function; |
| 5054 |
; |
| 5055 |
return 0; |
| 5056 |
} |
| 5057 |
_ACEOF |
| 5058 |
if ac_fn_c_try_compile "$LINENO" |
| 5059 |
then : |
| 5060 |
eval "ac_cv_comp_sigev_notify_function=yes" |
| 5061 |
else case e in #( |
| 5062 |
e) eval "ac_cv_comp_sigev_notify_function=no" ;; |
| 5063 |
esac |
| 5064 |
fi |
| 5065 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5066 |
esac |
| 5067 |
fi |
| 5068 |
if eval "test \"`echo '$ac_cv_comp_'sigev_notify_function`\" = yes"; then |
| 5069 |
printf "%s\n" "#define HAVE_component_sigev_notify_function 1" >>confdefs.h |
| 5070 |
|
| 5071 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5072 |
printf "%s\n" "yes" >&6; } |
| 5073 |
else |
| 5074 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5075 |
printf "%s\n" "no" >&6; } |
| 5076 |
fi |
| 5077 |
|
| 5078 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct sigaction component sa_sigaction overlaying sa_handler" >&5 |
| 5079 |
printf %s "checking for struct sigaction component sa_sigaction overlaying sa_handler... " >&6; } |
| 5080 |
if test ${ac_cv_comp_sa_sigaction+y} |
| 5081 |
then : |
| 5082 |
printf %s "(cached) " >&6 |
| 5083 |
else case e in #( |
| 5084 |
e) if test "$cross_compiling" = yes |
| 5085 |
then : |
| 5086 |
eval "ac_cv_comp_sa_sigaction=nu" |
| 5087 |
else case e in #( |
| 5088 |
e) |
| 5089 |
# ac_fn_c_try_run LINENO |
| 5090 |
# ---------------------- |
| 5091 |
# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
| 5092 |
# executables *can* be run. |
| 5093 |
ac_fn_c_try_run () |
| 5094 |
{ |
| 5095 |
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5096 |
if { { ac_try="$ac_link" |
| 5097 |
case "(($ac_try" in |
| 5098 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5099 |
*) ac_try_echo=$ac_try;; |
| 5100 |
esac |
| 5101 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5102 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5103 |
(eval "$ac_link") 2>&5 |
| 5104 |
ac_status=$? |
| 5105 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5106 |
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 5107 |
{ { case "(($ac_try" in |
| 5108 |
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5109 |
*) ac_try_echo=$ac_try;; |
| 5110 |
esac |
| 5111 |
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5112 |
printf "%s\n" "$ac_try_echo"; } >&5 |
| 5113 |
(eval "$ac_try") 2>&5 |
| 5114 |
ac_status=$? |
| 5115 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5116 |
test $ac_status = 0; }; } |
| 5117 |
then : |
| 5118 |
ac_retval=0 |
| 5119 |
else case e in #( |
| 5120 |
e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
| 5121 |
printf "%s\n" "$as_me: failed program was:" >&5 |
| 5122 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 5123 |
|
| 5124 |
ac_retval=$ac_status ;; |
| 5125 |
esac |
| 5126 |
fi |
| 5127 |
rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 5128 |
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
| 5129 |
as_fn_set_status $ac_retval |
| 5130 |
|
| 5131 |
} # ac_fn_c_try_run |
| 5132 |
cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5133 |
/* end confdefs.h. */ |
| 5134 |
#include "confsrc/pconfig.h" |
| 5135 |
main() |
| 5136 |
{ |
| 5137 |
struct sigaction x; |
| 5138 |
if (&x.sa_sigaction == &x.sa_handler) { |
| 5139 |
fprintf(stderr,"sa_sigaction overlays sa_handler..."); |
| 5140 |
exit (1); |
| 5141 |
} else { |
| 5142 |
exit (0); |
| 5143 |
} |
| 5144 |
} |
| 5145 |
_ACEOF |
| 5146 |
if ac_fn_c_try_run "$LINENO" |
| 5147 |
then : |
| 5148 |
eval "ac_cv_comp_sa_sigaction=yes" |
| 5149 |
else case e in #( |
| 5150 |
e) eval "ac_cv_comp_sa_sigaction=no" ;; |
| 5151 |
esac |
| 5152 |
fi |
| 5153 |
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 5154 |
conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5155 |
esac |
| 5156 |
fi |
| 5157 |
;; |
| 5158 |
esac |
| 5159 |
fi |
| 5160 |
if eval "test \"`echo '$ac_cv_comp_'sa_sigaction`\" = yes"; then |
| 5161 |
printf "%s\n" "#define HAVE_component_sa_sigaction 1" >>confdefs.h |
| 5162 |
|
| 5163 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5164 |
printf "%s\n" "yes" >&6; } |
| 5165 |
else |
| 5166 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5167 |
printf "%s\n" "no" >&6; } |
| 5168 |
fi |
| 5169 |
|
| 5170 |
for ac_struct in \ |
| 5171 |
addrinfo\ |
| 5172 |
aiocb\ |
| 5173 |
cmsghdr\ |
| 5174 |
dirent\ |
| 5175 |
flock\ |
| 5176 |
group\ |
| 5177 |
hostent\ |
| 5178 |
iovec\ |
| 5179 |
in_addr\ |
| 5180 |
ip_opts\ |
| 5181 |
linger\ |
| 5182 |
msghdr\ |
| 5183 |
mq_attr\ |
| 5184 |
netbuf\ |
| 5185 |
netent\ |
| 5186 |
passwd\ |
| 5187 |
pollfd\ |
| 5188 |
protoent\ |
| 5189 |
tm\ |
| 5190 |
tms\ |
| 5191 |
sched_param\ |
| 5192 |
servent\ |
| 5193 |
sigaction\ |
| 5194 |
cma_sigaction\ |
| 5195 |
sigevent\ |
| 5196 |
sockaddr\ |
| 5197 |
sockaddr_in\ |
| 5198 |
sockaddr_un\ |
| 5199 |
stat\ |
| 5200 |
termios\ |
| 5201 |
timespec\ |
| 5202 |
timeval\ |
| 5203 |
t_bind\ |
| 5204 |
t_call\ |
| 5205 |
t_discon\ |
| 5206 |
t_info\ |
| 5207 |
t_iovec\ |
| 5208 |
t_kpalive\ |
| 5209 |
t_linger\ |
| 5210 |
t_opthdr\ |
| 5211 |
t_optmgmt\ |
| 5212 |
t_uderr\ |
| 5213 |
t_unitdata\ |
| 5214 |
itimerspec\ |
| 5215 |
utimbuf\ |
| 5216 |
utsname\ |
| 5217 |
|
| 5218 |
do |
| 5219 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct $ac_struct" >&5 |
| 5220 |
printf %s "checking for struct $ac_struct... " >&6; } |
| 5221 |
if eval test \${ac_cv_struct_$ac_struct+y} |
| 5222 |
then : |
| 5223 |
printf %s "(cached) " >&6 |
| 5224 |
else case e in #( |
| 5225 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5226 |
/* end confdefs.h. */ |
| 5227 |
#include "confsrc/pconfig.h" |
| 5228 |
struct $ac_struct x; |
| 5229 |
int |
| 5230 |
main (void) |
| 5231 |
{ |
| 5232 |
|
| 5233 |
; |
| 5234 |
return 0; |
| 5235 |
} |
| 5236 |
_ACEOF |
| 5237 |
if ac_fn_c_try_compile "$LINENO" |
| 5238 |
then : |
| 5239 |
eval "ac_cv_struct_$ac_struct=yes" |
| 5240 |
else case e in #( |
| 5241 |
e) eval "ac_cv_struct_$ac_struct=no" ;; |
| 5242 |
esac |
| 5243 |
fi |
| 5244 |
rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; |
| 5245 |
esac |
| 5246 |
fi |
| 5247 |
if eval "test \"`echo '$ac_cv_struct_'$ac_struct`\" = yes"; then |
| 5248 |
printf "%s\n" "#define HAVE_struct_$ac_struct 1" >>confdefs.h |
| 5249 |
|
| 5250 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5251 |
printf "%s\n" "yes" >&6; } |
| 5252 |
: |
| 5253 |
else |
| 5254 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5255 |
printf "%s\n" "no" >&6; } |
| 5256 |
fi |
| 5257 |
|
| 5258 |
done |
| 5259 |
|
| 5260 |
for ac_typ in \ |
| 5261 |
blkcnt_t\ |
| 5262 |
blksize_t\ |
| 5263 |
cc_t\ |
| 5264 |
clockid_t\ |
| 5265 |
clock_t\ |
| 5266 |
dev_t\ |
| 5267 |
fd_set\ |
| 5268 |
ino_t\ |
| 5269 |
in_addr_t\ |
| 5270 |
in_port_t\ |
| 5271 |
mqd_t\ |
| 5272 |
nlink_t\ |
| 5273 |
pthread_attr_t\ |
| 5274 |
pthread_condattr_t\ |
| 5275 |
pthread_cond_t\ |
| 5276 |
pthread_key_t\ |
| 5277 |
pthread_mutexattr_t\ |
| 5278 |
pthread_mutex_t\ |
| 5279 |
pthread_once_t\ |
| 5280 |
pthread_t\ |
| 5281 |
sa_family_t\ |
| 5282 |
sem_t\ |
| 5283 |
siginfo_t\ |
| 5284 |
sigset_t\ |
| 5285 |
sigval\ |
| 5286 |
socklen_t\ |
| 5287 |
speed_t\ |
| 5288 |
suseconds_t\ |
| 5289 |
tcflag_t\ |
| 5290 |
timer_t\ |
| 5291 |
|
| 5292 |
do |
| 5293 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_typ" >&5 |
| 5294 |
printf %s "checking for $ac_typ... " >&6; } |
| 5295 |
if eval test \${ac_cv_type_$ac_typ+y} |
| 5296 |
then : |
| 5297 |
printf %s "(cached) " >&6 |
| 5298 |
else case e in #( |
| 5299 |
e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5300 |
/* end confdefs.h. */ |
| 5301 |
#include "confsrc/pconfig.h" |
| 5302 |
_ACEOF |
| 5303 |
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 5304 |
$EGREP_TRADITIONAL ".?$ac_typ[^0-9A-Za-z_]" >/dev/null 2>&1 |
| 5305 |
then : |
| 5306 |
eval "ac_cv_type_$ac_typ=yes" |
| 5307 |
else case e in #( |
| 5308 |
e) eval "ac_cv_type_$ac_typ=no" ;; |
| 5309 |
esac |
| 5310 |
fi |
| 5311 |
rm -rf conftest* |
| 5312 |
;; |
| 5313 |
esac |
| 5314 |
fi |
| 5315 |
|
| 5316 |
if eval "test \"`echo '$ac_cv_type_'$ac_typ`\" = yes"; then |
| 5317 |
printf "%s\n" "#define HAVE_$ac_typ 1" >>confdefs.h |
| 5318 |
|
| 5319 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5320 |
printf "%s\n" "yes" >&6; } |
| 5321 |
else |
| 5322 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5323 |
printf "%s\n" "no" >&6; } |
| 5324 |
fi |
| 5325 |
|
| 5326 |
done |
| 5327 |
|
| 5328 |
|
| 5329 |
|
| 5330 |
for ac_func in \ |
| 5331 |
accept\ |
| 5332 |
access\ |
| 5333 |
aio_cancel\ |
| 5334 |
aio_error\ |
| 5335 |
aio_fsync\ |
| 5336 |
aio_read\ |
| 5337 |
aio_return\ |
| 5338 |
aio_suspend\ |
| 5339 |
aio_write\ |
| 5340 |
bind\ |
| 5341 |
cfgetispeed\ |
| 5342 |
cfgetospeed\ |
| 5343 |
cfsetispeed\ |
| 5344 |
cfsetospeed\ |
| 5345 |
chdir\ |
| 5346 |
chmod\ |
| 5347 |
chown\ |
| 5348 |
clock_getres\ |
| 5349 |
clock_gettime\ |
| 5350 |
clock_settime\ |
| 5351 |
close\ |
| 5352 |
closedir\ |
| 5353 |
connect\ |
| 5354 |
ctermid\ |
| 5355 |
ctime\ |
| 5356 |
ctime_r\ |
| 5357 |
dup\ |
| 5358 |
dup2\ |
| 5359 |
endhostent\ |
| 5360 |
endnetent\ |
| 5361 |
endprotoent\ |
| 5362 |
endservent\ |
| 5363 |
execl\ |
| 5364 |
execle\ |
| 5365 |
execlp\ |
| 5366 |
execv\ |
| 5367 |
execve\ |
| 5368 |
execvp\ |
| 5369 |
fchmod\ |
| 5370 |
fcntl\ |
| 5371 |
fdatasync\ |
| 5372 |
fork\ |
| 5373 |
fpathconf\ |
| 5374 |
fstat\ |
| 5375 |
fsync\ |
| 5376 |
ftruncate\ |
| 5377 |
getaddrinfo\ |
| 5378 |
getcwd\ |
| 5379 |
getegid\ |
| 5380 |
getenv\ |
| 5381 |
geteuid\ |
| 5382 |
getgid\ |
| 5383 |
getgrgid\ |
| 5384 |
getgrgid_r\ |
| 5385 |
getgrnam\ |
| 5386 |
getgrnam_r\ |
| 5387 |
getgroups\ |
| 5388 |
gethostbyaddr\ |
| 5389 |
gethostbyaddr_r\ |
| 5390 |
gethostbyname\ |
| 5391 |
gethostbyname_r\ |
| 5392 |
gethostname\ |
| 5393 |
getlogin\ |
| 5394 |
getlogin_r\ |
| 5395 |
getpeername\ |
| 5396 |
getpgrp\ |
| 5397 |
getpid\ |
| 5398 |
getppid\ |
| 5399 |
getnetbyaddr\ |
| 5400 |
getnetbyaddr_r\ |
| 5401 |
getnetbyname\ |
| 5402 |
getnetbyname_r\ |
| 5403 |
getprotobyname\ |
| 5404 |
getprotobyname_r\ |
| 5405 |
getprotobynumber\ |
| 5406 |
getprotobynumber_r\ |
| 5407 |
getservbyname\ |
| 5408 |
getservbyname_r\ |
| 5409 |
getpwnam\ |
| 5410 |
getpwnam_r\ |
| 5411 |
getpwuid\ |
| 5412 |
getpwuid_r\ |
| 5413 |
getservbyport\ |
| 5414 |
getservbyport_r\ |
| 5415 |
getsockname\ |
| 5416 |
getsockname_r\ |
| 5417 |
getsockopt\ |
| 5418 |
gettimeofday\ |
| 5419 |
getuid\ |
| 5420 |
gmtime_r\ |
| 5421 |
inet_addr\ |
| 5422 |
inet_lnaof\ |
| 5423 |
inet_makeaddr\ |
| 5424 |
inet_network\ |
| 5425 |
inet_ntoa\ |
| 5426 |
inet_netof\ |
| 5427 |
isatty\ |
| 5428 |
isfdtype\ |
| 5429 |
kill\ |
| 5430 |
link\ |
| 5431 |
lio_listio\ |
| 5432 |
listen\ |
| 5433 |
lseek\ |
| 5434 |
lstat\ |
| 5435 |
mkdir\ |
| 5436 |
mkfifo\ |
| 5437 |
mlock\ |
| 5438 |
mlockall\ |
| 5439 |
mmap\ |
| 5440 |
mprotect\ |
| 5441 |
mq_close\ |
| 5442 |
mq_getattr\ |
| 5443 |
mq_notify\ |
| 5444 |
mq_open\ |
| 5445 |
mq_receive\ |
| 5446 |
mq_send\ |
| 5447 |
mq_setattr\ |
| 5448 |
mq_unlink\ |
| 5449 |
msync\ |
| 5450 |
munlock\ |
| 5451 |
munlockall\ |
| 5452 |
munmap\ |
| 5453 |
open\ |
| 5454 |
opendir\ |
| 5455 |
pathconf\ |
| 5456 |
pipe\ |
| 5457 |
poll\ |
| 5458 |
pthread_condattr_destroy\ |
| 5459 |
pthread_condattr_getpshared\ |
| 5460 |
pthread_condattr_init\ |
| 5461 |
pthread_condattr_setpshared\ |
| 5462 |
pthread_cond_broadcast\ |
| 5463 |
pthread_cond_destroy\ |
| 5464 |
pthread_cond_init\ |
| 5465 |
pthread_cond_signal\ |
| 5466 |
pthread_cond_timedwait\ |
| 5467 |
pthread_cond_wait\ |
| 5468 |
pthread_mutexattr_destroy\ |
| 5469 |
pthread_mutexattr_getprioceiling\ |
| 5470 |
pthread_mutexattr_getprotocol\ |
| 5471 |
pthread_mutexattr_getpshared\ |
| 5472 |
pthread_mutexattr_init\ |
| 5473 |
pthread_mutexattr_setprioceiling\ |
| 5474 |
pthread_mutexattr_setprotocol\ |
| 5475 |
pthread_mutexattr_setpshared\ |
| 5476 |
pthread_mutex_destroy\ |
| 5477 |
pthread_mutex_getprioceiling\ |
| 5478 |
pthread_mutex_init\ |
| 5479 |
pthread_mutex_lock\ |
| 5480 |
pthread_mutex_setprioceiling\ |
| 5481 |
pthread_mutex_trylock\ |
| 5482 |
pthread_mutex_unlock\ |
| 5483 |
pthread_sigmask\ |
| 5484 |
putenv\ |
| 5485 |
rcvmsg\ |
| 5486 |
read\ |
| 5487 |
readdir\ |
| 5488 |
readdir_r\ |
| 5489 |
recv\ |
| 5490 |
recvfrom\ |
| 5491 |
recvmsg\ |
| 5492 |
rename\ |
| 5493 |
rand_r\ |
| 5494 |
rmdir\ |
| 5495 |
sched_getparam\ |
| 5496 |
sched_getscheduler\ |
| 5497 |
sched_get_priority_max\ |
| 5498 |
sched_get_priority_min\ |
| 5499 |
sched_rr_get_interval\ |
| 5500 |
sched_setparam\ |
| 5501 |
sched_setscheduler\ |
| 5502 |
sched_yield\ |
| 5503 |
select\ |
| 5504 |
sem_close\ |
| 5505 |
sem_destroy\ |
| 5506 |
sem_getvalue\ |
| 5507 |
sem_init\ |
| 5508 |
sem_open\ |
| 5509 |
sem_post\ |
| 5510 |
sem_trywait\ |
| 5511 |
sem_unlink\ |
| 5512 |
sem_wait\ |
| 5513 |
send\ |
| 5514 |
sendto\ |
| 5515 |
sendmsg\ |
| 5516 |
setgid\ |
| 5517 |
setenv\ |
| 5518 |
sethostent\ |
| 5519 |
setnetent\ |
| 5520 |
setpgid\ |
| 5521 |
setprotoent\ |
| 5522 |
setservent\ |
| 5523 |
setsid\ |
| 5524 |
setsockopt\ |
| 5525 |
setuid\ |
| 5526 |
shm_open\ |
| 5527 |
shm_unlink\ |
| 5528 |
shutdown\ |
| 5529 |
sigaction\ |
| 5530 |
sigaddset\ |
| 5531 |
sigdelset\ |
| 5532 |
sigemptyset\ |
| 5533 |
sigfillset\ |
| 5534 |
sigismember\ |
| 5535 |
siglongjmp\ |
| 5536 |
sigpending\ |
| 5537 |
sigprocmask\ |
| 5538 |
sigqueue\ |
| 5539 |
sigsetjmp\ |
| 5540 |
sigsuspend\ |
| 5541 |
sigtimedwait\ |
| 5542 |
sigwait\ |
| 5543 |
sigwaitinfo\ |
| 5544 |
socket\ |
| 5545 |
sockatmark\ |
| 5546 |
socketpair\ |
| 5547 |
stat\ |
| 5548 |
strtok_r\ |
| 5549 |
sysconf\ |
| 5550 |
tcdrain\ |
| 5551 |
tcflow\ |
| 5552 |
tcflush\ |
| 5553 |
tcgetattr\ |
| 5554 |
tcgetpgrp\ |
| 5555 |
tcsendbreak\ |
| 5556 |
tcsetattr\ |
| 5557 |
tcsetpgrp\ |
| 5558 |
time\ |
| 5559 |
timer_create\ |
| 5560 |
timer_delete\ |
| 5561 |
timer_getoverrun\ |
| 5562 |
timer_gettime\ |
| 5563 |
timer_settime\ |
| 5564 |
times\ |
| 5565 |
ttyname\ |
| 5566 |
ttyname_r\ |
| 5567 |
t_accept\ |
| 5568 |
t_alloc\ |
| 5569 |
t_bind\ |
| 5570 |
t_blocking\ |
| 5571 |
t_close\ |
| 5572 |
t_connect\ |
| 5573 |
t_error\ |
| 5574 |
t_free\ |
| 5575 |
t_getinfo\ |
| 5576 |
t_getprotaddr\ |
| 5577 |
t_getstate\ |
| 5578 |
t_listen\ |
| 5579 |
t_look\ |
| 5580 |
t_nonblocking\ |
| 5581 |
t_open\ |
| 5582 |
t_optmgmt\ |
| 5583 |
t_rcv\ |
| 5584 |
t_rcvconnect\ |
| 5585 |
t_rcvdis\ |
| 5586 |
t_rcvrel\ |
| 5587 |
t_rcvudata\ |
| 5588 |
t_snd\ |
| 5589 |
t_snddis\ |
| 5590 |
t_sndudata\ |
| 5591 |
t_strerror\ |
| 5592 |
t_sync\ |
| 5593 |
t_unbind\ |
| 5594 |
t_rcvreldata\ |
| 5595 |
t_rcvuderr\ |
| 5596 |
t_rcvv\ |
| 5597 |
t_rcvvudata\ |
| 5598 |
t_sndreldata\ |
| 5599 |
t_sndrel\ |
| 5600 |
t_sndv\ |
| 5601 |
t_sndvudata\ |
| 5602 |
strerror\ |
| 5603 |
strerror_r\ |
| 5604 |
perror\ |
| 5605 |
umask\ |
| 5606 |
uname\ |
| 5607 |
unlink\ |
| 5608 |
unsetenv\ |
| 5609 |
utime\ |
| 5610 |
waitpid\ |
| 5611 |
write\ |
| 5612 |
__posix_sigwait\ |
| 5613 |
__posix_ctime_r\ |
| 5614 |
__posix_readdir_r\ |
| 5615 |
__posix_sigwait_r\ |
| 5616 |
__posix_ttyname_r\ |
| 5617 |
|
| 5618 |
do |
| 5619 |
as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` |
| 5620 |
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 5621 |
if eval test \"x\$"$as_ac_var"\" = x"yes" |
| 5622 |
then : |
| 5623 |
printf "%s\n" "#define HAVE_$ac_func 1" >>confdefs.h |
| 5624 |
|
| 5625 |
else case e in #( |
| 5626 |
e) printf "%s\n" "#define HAVE_$ac_func 0" >>confdefs.h |
| 5627 |
;; |
| 5628 |
esac |
| 5629 |
fi |
| 5630 |
done |
| 5631 |
|
| 5632 |
|
| 5633 |
ac_config_files="$ac_config_files Makefile" |
| 5634 |
|
| 5635 |
ac_config_commands="$ac_config_commands default" |
| 5636 |
|
| 5637 |
|
| 5638 |
|
| 5639 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5640 |
# Let make expand exec_prefix. |
| 5641 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5642 |
|
| 5643 |
DEFS=-DHAVE_CONFIG_H |
| 5644 |
|
| 5645 |
ac_libobjs= |
| 5646 |
ac_ltlibobjs= |
| 5647 |
U= |
| 5648 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5649 |
# 1. Remove the extension, and $U if already installed. |
| 5650 |
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 5651 |
ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` |
| 5652 |
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 5653 |
# will be set to the directory where LIBOBJS objects are built. |
| 5654 |
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 5655 |
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 5656 |
done |
| 5657 |
LIBOBJS=$ac_libobjs |
| 5658 |
|
| 5659 |
LTLIBOBJS=$ac_ltlibobjs |
| 5660 |
|
| 5661 |
|
| 5662 |
|
| 5663 |
: "${CONFIG_STATUS=./config.status}" |
| 5664 |
ac_write_fail=0 |
| 5665 |
ac_clean_files_save=$ac_clean_files |
| 5666 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5667 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 5668 |
printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5669 |
as_write_fail=0 |
| 5670 |
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 5671 |
#! $SHELL |
| 5672 |
# Generated by $as_me. |
| 5673 |
# Run this file to recreate the current configuration. |
| 5674 |
# Compiler output produced by configure, useful for debugging |
| 5675 |
# configure, is in config.log if it exists. |
| 5676 |
|
| 5677 |
debug=false |
| 5678 |
ac_cs_recheck=false |
| 5679 |
ac_cs_silent=false |
| 5680 |
|
| 5681 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 5682 |
export SHELL |
| 5683 |
_ASEOF |
| 5684 |
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 5685 |
## -------------------- ## |
| 5686 |
## M4sh Initialization. ## |
| 5687 |
## -------------------- ## |
| 5688 |
|
| 5689 |
# Be more Bourne compatible |
| 5690 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 5691 |
if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
| 5692 |
then : |
| 5693 |
emulate sh |
| 5694 |
NULLCMD=: |
| 5695 |
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 5696 |
# is contrary to our usage. Disable this feature. |
| 5697 |
alias -g '${1+"$@"}'='"$@"' |
| 5698 |
setopt NO_GLOB_SUBST |
| 5699 |
else case e in #( |
| 5700 |
e) case `(set -o) 2>/dev/null` in #( |
| 5701 |
*posix*) : |
| 5702 |
set -o posix ;; #( |
| 5703 |
*) : |
| 5704 |
;; |
| 5705 |
esac ;; |
| 5706 |
esac |
| 5707 |
fi |
| 5708 |
|
| 5709 |
|
| 5710 |
|
| 5711 |
# Reset variables that may have inherited troublesome values from |
| 5712 |
# the environment. |
| 5713 |
|
| 5714 |
# IFS needs to be set, to space, tab, and newline, in precisely that order. |
| 5715 |
# (If _AS_PATH_WALK were called with IFS unset, it would have the |
| 5716 |
# side effect of setting IFS to empty, thus disabling word splitting.) |
| 5717 |
# Quoting is to prevent editors from complaining about space-tab. |
| 5718 |
as_nl=' |
| 5719 |
' |
| 5720 |
export as_nl |
| 5721 |
IFS=" "" $as_nl" |
| 5722 |
|
| 5723 |
PS1='$ ' |
| 5724 |
PS2='> ' |
| 5725 |
PS4='+ ' |
| 5726 |
|
| 5727 |
# Ensure predictable behavior from utilities with locale-dependent output. |
| 5728 |
LC_ALL=C |
| 5729 |
export LC_ALL |
| 5730 |
LANGUAGE=C |
| 5731 |
export LANGUAGE |
| 5732 |
|
| 5733 |
# We cannot yet rely on "unset" to work, but we need these variables |
| 5734 |
# to be unset--not just set to an empty or harmless value--now, to |
| 5735 |
# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
| 5736 |
# also avoids known problems related to "unset" and subshell syntax |
| 5737 |
# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
| 5738 |
for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
| 5739 |
do eval test \${$as_var+y} \ |
| 5740 |
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 5741 |
done |
| 5742 |
|
| 5743 |
# Ensure that fds 0, 1, and 2 are open. |
| 5744 |
if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
| 5745 |
if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
| 5746 |
if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
| 5747 |
|
| 5748 |
# The user is always right. |
| 5749 |
if ${PATH_SEPARATOR+false} :; then |
| 5750 |
PATH_SEPARATOR=: |
| 5751 |
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 5752 |
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 5753 |
PATH_SEPARATOR=';' |
| 5754 |
} |
| 5755 |
fi |
| 5756 |
|
| 5757 |
|
| 5758 |
# Find who we are. Look in the path if we contain no directory separator. |
| 5759 |
as_myself= |
| 5760 |
case $0 in #(( |
| 5761 |
*[\\/]* ) as_myself=$0 ;; |
| 5762 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5763 |
for as_dir in $PATH |
| 5764 |
do |
| 5765 |
IFS=$as_save_IFS |
| 5766 |
case $as_dir in #((( |
| 5767 |
'') as_dir=./ ;; |
| 5768 |
*/) ;; |
| 5769 |
*) as_dir=$as_dir/ ;; |
| 5770 |
esac |
| 5771 |
test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
| 5772 |
done |
| 5773 |
IFS=$as_save_IFS |
| 5774 |
|
| 5775 |
;; |
| 5776 |
esac |
| 5777 |
# We did not find ourselves, most probably we were run as 'sh COMMAND' |
| 5778 |
# in which case we are not to be found in the path. |
| 5779 |
if test "x$as_myself" = x; then |
| 5780 |
as_myself=$0 |
| 5781 |
fi |
| 5782 |
if test ! -f "$as_myself"; then |
| 5783 |
printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 5784 |
exit 1 |
| 5785 |
fi |
| 5786 |
|
| 5787 |
|
| 5788 |
|
| 5789 |
# as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 5790 |
# ---------------------------------------- |
| 5791 |
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 5792 |
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 5793 |
# script with STATUS, using 1 if that was 0. |
| 5794 |
as_fn_error () |
| 5795 |
{ |
| 5796 |
as_status=$1; test $as_status -eq 0 && as_status=1 |
| 5797 |
if test "$4"; then |
| 5798 |
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 5799 |
printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
| 5800 |
fi |
| 5801 |
printf "%s\n" "$as_me: error: $2" >&2 |
| 5802 |
as_fn_exit $as_status |
| 5803 |
} # as_fn_error |
| 5804 |
|
| 5805 |
|
| 5806 |
# as_fn_set_status STATUS |
| 5807 |
# ----------------------- |
| 5808 |
# Set $? to STATUS, without forking. |
| 5809 |
as_fn_set_status () |
| 5810 |
{ |
| 5811 |
return $1 |
| 5812 |
} # as_fn_set_status |
| 5813 |
|
| 5814 |
# as_fn_exit STATUS |
| 5815 |
# ----------------- |
| 5816 |
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 5817 |
as_fn_exit () |
| 5818 |
{ |
| 5819 |
set +e |
| 5820 |
as_fn_set_status $1 |
| 5821 |
exit $1 |
| 5822 |
} # as_fn_exit |
| 5823 |
|
| 5824 |
# as_fn_unset VAR |
| 5825 |
# --------------- |
| 5826 |
# Portably unset VAR. |
| 5827 |
as_fn_unset () |
| 5828 |
{ |
| 5829 |
{ eval $1=; unset $1;} |
| 5830 |
} |
| 5831 |
as_unset=as_fn_unset |
| 5832 |
|
| 5833 |
# as_fn_append VAR VALUE |
| 5834 |
# ---------------------- |
| 5835 |
# Append the text in VALUE to the end of the definition contained in VAR. Take |
| 5836 |
# advantage of any shell optimizations that allow amortized linear growth over |
| 5837 |
# repeated appends, instead of the typical quadratic growth present in naive |
| 5838 |
# implementations. |
| 5839 |
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
| 5840 |
then : |
| 5841 |
eval 'as_fn_append () |
| 5842 |
{ |
| 5843 |
eval $1+=\$2 |
| 5844 |
}' |
| 5845 |
else case e in #( |
| 5846 |
e) as_fn_append () |
| 5847 |
{ |
| 5848 |
eval $1=\$$1\$2 |
| 5849 |
} ;; |
| 5850 |
esac |
| 5851 |
fi # as_fn_append |
| 5852 |
|
| 5853 |
# as_fn_arith ARG... |
| 5854 |
# ------------------ |
| 5855 |
# Perform arithmetic evaluation on the ARGs, and store the result in the |
| 5856 |
# global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 5857 |
# must be portable across $(()) and expr. |
| 5858 |
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
| 5859 |
then : |
| 5860 |
eval 'as_fn_arith () |
| 5861 |
{ |
| 5862 |
as_val=$(( $* )) |
| 5863 |
}' |
| 5864 |
else case e in #( |
| 5865 |
e) as_fn_arith () |
| 5866 |
{ |
| 5867 |
as_val=`expr "$@" || test $? -eq 1` |
| 5868 |
} ;; |
| 5869 |
esac |
| 5870 |
fi # as_fn_arith |
| 5871 |
|
| 5872 |
|
| 5873 |
if expr a : '\(a\)' >/dev/null 2>&1 && |
| 5874 |
test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 5875 |
as_expr=expr |
| 5876 |
else |
| 5877 |
as_expr=false |
| 5878 |
fi |
| 5879 |
|
| 5880 |
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 5881 |
as_basename=basename |
| 5882 |
else |
| 5883 |
as_basename=false |
| 5884 |
fi |
| 5885 |
|
| 5886 |
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 5887 |
as_dirname=dirname |
| 5888 |
else |
| 5889 |
as_dirname=false |
| 5890 |
fi |
| 5891 |
|
| 5892 |
as_me=`$as_basename -- "$0" || |
| 5893 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5894 |
X"$0" : 'X\(//\)$' \| \ |
| 5895 |
X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 5896 |
printf "%s\n" X/"$0" | |
| 5897 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 5898 |
s//\1/ |
| 5899 |
q |
| 5900 |
} |
| 5901 |
/^X\/\(\/\/\)$/{ |
| 5902 |
s//\1/ |
| 5903 |
q |
| 5904 |
} |
| 5905 |
/^X\/\(\/\).*/{ |
| 5906 |
s//\1/ |
| 5907 |
q |
| 5908 |
} |
| 5909 |
s/.*/./; q'` |
| 5910 |
|
| 5911 |
# Avoid depending upon Character Ranges. |
| 5912 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5913 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5914 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5915 |
as_cr_digits='0123456789' |
| 5916 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5917 |
|
| 5918 |
|
| 5919 |
# Determine whether it's possible to make 'echo' print without a newline. |
| 5920 |
# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
| 5921 |
# for compatibility with existing Makefiles. |
| 5922 |
ECHO_C= ECHO_N= ECHO_T= |
| 5923 |
case `echo -n x` in #((((( |
| 5924 |
-n*) |
| 5925 |
case `echo 'xy\c'` in |
| 5926 |
*c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 5927 |
xy) ECHO_C='\c';; |
| 5928 |
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 5929 |
ECHO_T=' ';; |
| 5930 |
esac;; |
| 5931 |
*) |
| 5932 |
ECHO_N='-n';; |
| 5933 |
esac |
| 5934 |
|
| 5935 |
# For backward compatibility with old third-party macros, we provide |
| 5936 |
# the shell variables $as_echo and $as_echo_n. New code should use |
| 5937 |
# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
| 5938 |
as_echo='printf %s\n' |
| 5939 |
as_echo_n='printf %s' |
| 5940 |
|
| 5941 |
rm -f conf$$ conf$$.exe conf$$.file |
| 5942 |
if test -d conf$$.dir; then |
| 5943 |
rm -f conf$$.dir/conf$$.file |
| 5944 |
else |
| 5945 |
rm -f conf$$.dir |
| 5946 |
mkdir conf$$.dir 2>/dev/null |
| 5947 |
fi |
| 5948 |
if (echo >conf$$.file) 2>/dev/null; then |
| 5949 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5950 |
as_ln_s='ln -s' |
| 5951 |
# ... but there are two gotchas: |
| 5952 |
# 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. |
| 5953 |
# 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. |
| 5954 |
# In both cases, we have to default to 'cp -pR'. |
| 5955 |
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 5956 |
as_ln_s='cp -pR' |
| 5957 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5958 |
as_ln_s=ln |
| 5959 |
else |
| 5960 |
as_ln_s='cp -pR' |
| 5961 |
fi |
| 5962 |
else |
| 5963 |
as_ln_s='cp -pR' |
| 5964 |
fi |
| 5965 |
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 5966 |
rmdir conf$$.dir 2>/dev/null |
| 5967 |
|
| 5968 |
|
| 5969 |
# as_fn_mkdir_p |
| 5970 |
# ------------- |
| 5971 |
# Create "$as_dir" as a directory, including parents if necessary. |
| 5972 |
as_fn_mkdir_p () |
| 5973 |
{ |
| 5974 |
|
| 5975 |
case $as_dir in #( |
| 5976 |
-*) as_dir=./$as_dir;; |
| 5977 |
esac |
| 5978 |
test -d "$as_dir" || eval $as_mkdir_p || { |
| 5979 |
as_dirs= |
| 5980 |
while :; do |
| 5981 |
case $as_dir in #( |
| 5982 |
*\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 5983 |
*) as_qdir=$as_dir;; |
| 5984 |
esac |
| 5985 |
as_dirs="'$as_qdir' $as_dirs" |
| 5986 |
as_dir=`$as_dirname -- "$as_dir" || |
| 5987 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 5988 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 5989 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 5990 |
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 5991 |
printf "%s\n" X"$as_dir" | |
| 5992 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 5993 |
s//\1/ |
| 5994 |
q |
| 5995 |
} |
| 5996 |
/^X\(\/\/\)[^/].*/{ |
| 5997 |
s//\1/ |
| 5998 |
q |
| 5999 |
} |
| 6000 |
/^X\(\/\/\)$/{ |
| 6001 |
s//\1/ |
| 6002 |
q |
| 6003 |
} |
| 6004 |
/^X\(\/\).*/{ |
| 6005 |
s//\1/ |
| 6006 |
q |
| 6007 |
} |
| 6008 |
s/.*/./; q'` |
| 6009 |
test -d "$as_dir" && break |
| 6010 |
done |
| 6011 |
test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 6012 |
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
| 6013 |
|
| 6014 |
|
| 6015 |
} # as_fn_mkdir_p |
| 6016 |
if mkdir -p . 2>/dev/null; then |
| 6017 |
as_mkdir_p='mkdir -p "$as_dir"' |
| 6018 |
else |
| 6019 |
test -d ./-p && rmdir ./-p |
| 6020 |
as_mkdir_p=false |
| 6021 |
fi |
| 6022 |
|
| 6023 |
|
| 6024 |
# as_fn_executable_p FILE |
| 6025 |
# ----------------------- |
| 6026 |
# Test if FILE is an executable regular file. |
| 6027 |
as_fn_executable_p () |
| 6028 |
{ |
| 6029 |
test -f "$1" && test -x "$1" |
| 6030 |
} # as_fn_executable_p |
| 6031 |
as_test_x='test -x' |
| 6032 |
as_executable_p=as_fn_executable_p |
| 6033 |
|
| 6034 |
# Sed expression to map a string onto a valid CPP name. |
| 6035 |
as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 6036 |
as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated |
| 6037 |
|
| 6038 |
# Sed expression to map a string onto a valid variable name. |
| 6039 |
as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 6040 |
as_tr_sh="eval sed '$as_sed_sh'" # deprecated |
| 6041 |
|
| 6042 |
|
| 6043 |
exec 6>&1 |
| 6044 |
## ----------------------------------- ## |
| 6045 |
## Main body of $CONFIG_STATUS script. ## |
| 6046 |
## ----------------------------------- ## |
| 6047 |
_ASEOF |
| 6048 |
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 6049 |
|
| 6050 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6051 |
# Save the log message, to keep $0 and so on meaningful, and to |
| 6052 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 6053 |
# values after options handling. |
| 6054 |
ac_log=" |
| 6055 |
This file was extended by $as_me, which was |
| 6056 |
generated by GNU Autoconf 2.72. Invocation command line was |
| 6057 |
|
| 6058 |
CONFIG_FILES = $CONFIG_FILES |
| 6059 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 6060 |
CONFIG_LINKS = $CONFIG_LINKS |
| 6061 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6062 |
$ $0 $@ |
| 6063 |
|
| 6064 |
on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 6065 |
" |
| 6066 |
|
| 6067 |
_ACEOF |
| 6068 |
|
| 6069 |
case $ac_config_files in *" |
| 6070 |
"*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 6071 |
esac |
| 6072 |
|
| 6073 |
case $ac_config_headers in *" |
| 6074 |
"*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 6075 |
esac |
| 6076 |
|
| 6077 |
|
| 6078 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6079 |
# Files that config.status was made for. |
| 6080 |
config_files="$ac_config_files" |
| 6081 |
config_headers="$ac_config_headers" |
| 6082 |
config_commands="$ac_config_commands" |
| 6083 |
|
| 6084 |
_ACEOF |
| 6085 |
|
| 6086 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6087 |
ac_cs_usage="\ |
| 6088 |
'$as_me' instantiates files and other configuration actions |
| 6089 |
from templates according to the current configuration. Unless the files |
| 6090 |
and actions are specified as TAGs, all are instantiated by default. |
| 6091 |
|
| 6092 |
Usage: $0 [OPTION]... [TAG]... |
| 6093 |
|
| 6094 |
-h, --help print this help, then exit |
| 6095 |
-V, --version print version number and configuration settings, then exit |
| 6096 |
--config print configuration, then exit |
| 6097 |
-q, --quiet, --silent |
| 6098 |
do not print progress messages |
| 6099 |
-d, --debug don't remove temporary files |
| 6100 |
--recheck update $as_me by reconfiguring in the same conditions |
| 6101 |
--file=FILE[:TEMPLATE] |
| 6102 |
instantiate the configuration file FILE |
| 6103 |
--header=FILE[:TEMPLATE] |
| 6104 |
instantiate the configuration header FILE |
| 6105 |
|
| 6106 |
Configuration files: |
| 6107 |
$config_files |
| 6108 |
|
| 6109 |
Configuration headers: |
| 6110 |
$config_headers |
| 6111 |
|
| 6112 |
Configuration commands: |
| 6113 |
$config_commands |
| 6114 |
|
| 6115 |
Report bugs to the package provider." |
| 6116 |
|
| 6117 |
_ACEOF |
| 6118 |
ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` |
| 6119 |
ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` |
| 6120 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6121 |
ac_cs_config='$ac_cs_config_escaped' |
| 6122 |
ac_cs_version="\\ |
| 6123 |
config.status |
| 6124 |
configured by $0, generated by GNU Autoconf 2.72, |
| 6125 |
with options \\"\$ac_cs_config\\" |
| 6126 |
|
| 6127 |
Copyright (C) 2023 Free Software Foundation, Inc. |
| 6128 |
This config.status script is free software; the Free Software Foundation |
| 6129 |
gives unlimited permission to copy, distribute and modify it." |
| 6130 |
|
| 6131 |
ac_pwd='$ac_pwd' |
| 6132 |
srcdir='$srcdir' |
| 6133 |
test -n "\$AWK" || AWK=awk |
| 6134 |
_ACEOF |
| 6135 |
|
| 6136 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6137 |
# The default lists apply if the user does not specify any file. |
| 6138 |
ac_need_defaults=: |
| 6139 |
while test $# != 0 |
| 6140 |
do |
| 6141 |
case $1 in |
| 6142 |
--*=?*) |
| 6143 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6144 |
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 6145 |
ac_shift=: |
| 6146 |
;; |
| 6147 |
--*=) |
| 6148 |
ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 6149 |
ac_optarg= |
| 6150 |
ac_shift=: |
| 6151 |
;; |
| 6152 |
*) |
| 6153 |
ac_option=$1 |
| 6154 |
ac_optarg=$2 |
| 6155 |
ac_shift=shift |
| 6156 |
;; |
| 6157 |
esac |
| 6158 |
|
| 6159 |
case $ac_option in |
| 6160 |
# Handling of the options. |
| 6161 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6162 |
ac_cs_recheck=: ;; |
| 6163 |
--version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 6164 |
printf "%s\n" "$ac_cs_version"; exit ;; |
| 6165 |
--config | --confi | --conf | --con | --co | --c ) |
| 6166 |
printf "%s\n" "$ac_cs_config"; exit ;; |
| 6167 |
--debug | --debu | --deb | --de | --d | -d ) |
| 6168 |
debug=: ;; |
| 6169 |
--file | --fil | --fi | --f ) |
| 6170 |
$ac_shift |
| 6171 |
case $ac_optarg in |
| 6172 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6173 |
'') as_fn_error $? "missing file argument" ;; |
| 6174 |
esac |
| 6175 |
as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 6176 |
ac_need_defaults=false;; |
| 6177 |
--header | --heade | --head | --hea ) |
| 6178 |
$ac_shift |
| 6179 |
case $ac_optarg in |
| 6180 |
*\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 6181 |
esac |
| 6182 |
as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 6183 |
ac_need_defaults=false;; |
| 6184 |
--he | --h) |
| 6185 |
# Conflict between --help and --header |
| 6186 |
as_fn_error $? "ambiguous option: '$1' |
| 6187 |
Try '$0 --help' for more information.";; |
| 6188 |
--help | --hel | -h ) |
| 6189 |
printf "%s\n" "$ac_cs_usage"; exit ;; |
| 6190 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6191 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6192 |
ac_cs_silent=: ;; |
| 6193 |
|
| 6194 |
# This is an error. |
| 6195 |
-*) as_fn_error $? "unrecognized option: '$1' |
| 6196 |
Try '$0 --help' for more information." ;; |
| 6197 |
|
| 6198 |
*) as_fn_append ac_config_targets " $1" |
| 6199 |
ac_need_defaults=false ;; |
| 6200 |
|
| 6201 |
esac |
| 6202 |
shift |
| 6203 |
done |
| 6204 |
|
| 6205 |
ac_configure_extra_args= |
| 6206 |
|
| 6207 |
if $ac_cs_silent; then |
| 6208 |
exec 6>/dev/null |
| 6209 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6210 |
fi |
| 6211 |
|
| 6212 |
_ACEOF |
| 6213 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6214 |
if \$ac_cs_recheck; then |
| 6215 |
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6216 |
shift |
| 6217 |
\printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 6218 |
CONFIG_SHELL='$SHELL' |
| 6219 |
export CONFIG_SHELL |
| 6220 |
exec "\$@" |
| 6221 |
fi |
| 6222 |
|
| 6223 |
_ACEOF |
| 6224 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6225 |
exec 5>>config.log |
| 6226 |
{ |
| 6227 |
echo |
| 6228 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6229 |
## Running $as_me. ## |
| 6230 |
_ASBOX |
| 6231 |
printf "%s\n" "$ac_log" |
| 6232 |
} >&5 |
| 6233 |
|
| 6234 |
_ACEOF |
| 6235 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6236 |
_ACEOF |
| 6237 |
|
| 6238 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6239 |
|
| 6240 |
# Handling of arguments. |
| 6241 |
for ac_config_target in $ac_config_targets |
| 6242 |
do |
| 6243 |
case $ac_config_target in |
| 6244 |
"confsrc/config.h") CONFIG_HEADERS="$CONFIG_HEADERS confsrc/config.h" ;; |
| 6245 |
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6246 |
"default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
| 6247 |
|
| 6248 |
*) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; |
| 6249 |
esac |
| 6250 |
done |
| 6251 |
|
| 6252 |
|
| 6253 |
# If the user did not use the arguments to specify the items to instantiate, |
| 6254 |
# then the envvar interface is used. Set only those that are not. |
| 6255 |
# We use the long form for the default assignment because of an extremely |
| 6256 |
# bizarre bug on SunOS 4.1.3. |
| 6257 |
if $ac_need_defaults; then |
| 6258 |
test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files |
| 6259 |
test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers |
| 6260 |
test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands |
| 6261 |
fi |
| 6262 |
|
| 6263 |
# Have a temporary directory for convenience. Make it in the build tree |
| 6264 |
# simply because there is no reason against having it here, and in addition, |
| 6265 |
# creating and moving files from /tmp can sometimes cause problems. |
| 6266 |
# Hook for its removal unless debugging. |
| 6267 |
# Note that there is a small window in which the directory will not be cleaned: |
| 6268 |
# after its creation but before its name has been assigned to '$tmp'. |
| 6269 |
$debug || |
| 6270 |
{ |
| 6271 |
tmp= ac_tmp= |
| 6272 |
trap 'exit_status=$? |
| 6273 |
: "${ac_tmp:=$tmp}" |
| 6274 |
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
| 6275 |
' 0 |
| 6276 |
trap 'as_fn_exit 1' 1 2 13 15 |
| 6277 |
} |
| 6278 |
# Create a (secure) tmp directory for tmp files. |
| 6279 |
|
| 6280 |
{ |
| 6281 |
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 6282 |
test -d "$tmp" |
| 6283 |
} || |
| 6284 |
{ |
| 6285 |
tmp=./conf$$-$RANDOM |
| 6286 |
(umask 077 && mkdir "$tmp") |
| 6287 |
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
| 6288 |
ac_tmp=$tmp |
| 6289 |
|
| 6290 |
# Set up the scripts for CONFIG_FILES section. |
| 6291 |
# No need to generate them if there are no CONFIG_FILES. |
| 6292 |
# This happens for instance with './config.status config.h'. |
| 6293 |
if test -n "$CONFIG_FILES"; then |
| 6294 |
|
| 6295 |
|
| 6296 |
ac_cr=`echo X | tr X '\015'` |
| 6297 |
# On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 6298 |
# But we know of no other shell where ac_cr would be empty at this |
| 6299 |
# point, so we can use a bashism as a fallback. |
| 6300 |
if test "x$ac_cr" = x; then |
| 6301 |
eval ac_cr=\$\'\\r\' |
| 6302 |
fi |
| 6303 |
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 6304 |
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 6305 |
ac_cs_awk_cr='\\r' |
| 6306 |
else |
| 6307 |
ac_cs_awk_cr=$ac_cr |
| 6308 |
fi |
| 6309 |
|
| 6310 |
echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
| 6311 |
_ACEOF |
| 6312 |
|
| 6313 |
|
| 6314 |
{ |
| 6315 |
echo "cat >conf$$subs.awk <<_ACEOF" && |
| 6316 |
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 6317 |
echo "_ACEOF" |
| 6318 |
} >conf$$subs.sh || |
| 6319 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6320 |
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
| 6321 |
ac_delim='%!_!# ' |
| 6322 |
for ac_last_try in false false false false false :; do |
| 6323 |
. ./conf$$subs.sh || |
| 6324 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6325 |
|
| 6326 |
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 6327 |
if test $ac_delim_n = $ac_delim_num; then |
| 6328 |
break |
| 6329 |
elif $ac_last_try; then |
| 6330 |
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 6331 |
else |
| 6332 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6333 |
fi |
| 6334 |
done |
| 6335 |
rm -f conf$$subs.sh |
| 6336 |
|
| 6337 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6338 |
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
| 6339 |
_ACEOF |
| 6340 |
sed -n ' |
| 6341 |
h |
| 6342 |
s/^/S["/; s/!.*/"]=/ |
| 6343 |
p |
| 6344 |
g |
| 6345 |
s/^[^!]*!// |
| 6346 |
:repl |
| 6347 |
t repl |
| 6348 |
s/'"$ac_delim"'$// |
| 6349 |
t delim |
| 6350 |
:nl |
| 6351 |
h |
| 6352 |
s/\(.\{148\}\)..*/\1/ |
| 6353 |
t more1 |
| 6354 |
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 6355 |
p |
| 6356 |
n |
| 6357 |
b repl |
| 6358 |
:more1 |
| 6359 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6360 |
p |
| 6361 |
g |
| 6362 |
s/.\{148\}// |
| 6363 |
t nl |
| 6364 |
:delim |
| 6365 |
h |
| 6366 |
s/\(.\{148\}\)..*/\1/ |
| 6367 |
t more2 |
| 6368 |
s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 6369 |
p |
| 6370 |
b |
| 6371 |
:more2 |
| 6372 |
s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 6373 |
p |
| 6374 |
g |
| 6375 |
s/.\{148\}// |
| 6376 |
t delim |
| 6377 |
' <conf$$subs.awk | sed ' |
| 6378 |
/^[^""]/{ |
| 6379 |
N |
| 6380 |
s/\n// |
| 6381 |
} |
| 6382 |
' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6383 |
rm -f conf$$subs.awk |
| 6384 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6385 |
_ACAWK |
| 6386 |
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
| 6387 |
for (key in S) S_is_set[key] = 1 |
| 6388 |
FS = "" |
| 6389 |
|
| 6390 |
} |
| 6391 |
{ |
| 6392 |
line = $ 0 |
| 6393 |
nfields = split(line, field, "@") |
| 6394 |
substed = 0 |
| 6395 |
len = length(field[1]) |
| 6396 |
for (i = 2; i < nfields; i++) { |
| 6397 |
key = field[i] |
| 6398 |
keylen = length(key) |
| 6399 |
if (S_is_set[key]) { |
| 6400 |
value = S[key] |
| 6401 |
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 6402 |
len += length(value) + length(field[++i]) |
| 6403 |
substed = 1 |
| 6404 |
} else |
| 6405 |
len += 1 + keylen |
| 6406 |
} |
| 6407 |
|
| 6408 |
print line |
| 6409 |
} |
| 6410 |
|
| 6411 |
_ACAWK |
| 6412 |
_ACEOF |
| 6413 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6414 |
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 6415 |
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 6416 |
else |
| 6417 |
cat |
| 6418 |
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
| 6419 |
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
| 6420 |
_ACEOF |
| 6421 |
|
| 6422 |
# VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 6423 |
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
| 6424 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 6425 |
# (actually we leave an empty line to preserve line numbers). |
| 6426 |
if test "x$srcdir" = x.; then |
| 6427 |
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 6428 |
h |
| 6429 |
s/// |
| 6430 |
s/^/:/ |
| 6431 |
s/[ ]*$/:/ |
| 6432 |
s/:\$(srcdir):/:/g |
| 6433 |
s/:\${srcdir}:/:/g |
| 6434 |
s/:@srcdir@:/:/g |
| 6435 |
s/^:*// |
| 6436 |
s/:*$// |
| 6437 |
x |
| 6438 |
s/\(=[ ]*\).*/\1/ |
| 6439 |
G |
| 6440 |
s/\n// |
| 6441 |
s/^[^=]*=[ ]*$// |
| 6442 |
}' |
| 6443 |
fi |
| 6444 |
|
| 6445 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6446 |
fi # test -n "$CONFIG_FILES" |
| 6447 |
|
| 6448 |
# Set up the scripts for CONFIG_HEADERS section. |
| 6449 |
# No need to generate them if there are no CONFIG_HEADERS. |
| 6450 |
# This happens for instance with './config.status Makefile'. |
| 6451 |
if test -n "$CONFIG_HEADERS"; then |
| 6452 |
cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
| 6453 |
BEGIN { |
| 6454 |
_ACEOF |
| 6455 |
|
| 6456 |
# Transform confdefs.h into an awk script 'defines.awk', embedded as |
| 6457 |
# here-document in config.status, that substitutes the proper values into |
| 6458 |
# config.h.in to produce config.h. |
| 6459 |
|
| 6460 |
# Create a delimiter string that does not exist in confdefs.h, to ease |
| 6461 |
# handling of long lines. |
| 6462 |
ac_delim='%!_!# ' |
| 6463 |
for ac_last_try in false false :; do |
| 6464 |
ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 6465 |
if test -z "$ac_tt"; then |
| 6466 |
break |
| 6467 |
elif $ac_last_try; then |
| 6468 |
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 6469 |
else |
| 6470 |
ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 6471 |
fi |
| 6472 |
done |
| 6473 |
|
| 6474 |
# For the awk script, D is an array of macro values keyed by name, |
| 6475 |
# likewise P contains macro parameters if any. Preserve backslash |
| 6476 |
# newline sequences. |
| 6477 |
|
| 6478 |
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 6479 |
sed -n ' |
| 6480 |
s/.\{148\}/&'"$ac_delim"'/g |
| 6481 |
t rset |
| 6482 |
:rset |
| 6483 |
s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 6484 |
t def |
| 6485 |
d |
| 6486 |
:def |
| 6487 |
s/\\$// |
| 6488 |
t bsnl |
| 6489 |
s/["\\]/\\&/g |
| 6490 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6491 |
D["\1"]=" \3"/p |
| 6492 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 6493 |
d |
| 6494 |
:bsnl |
| 6495 |
s/["\\]/\\&/g |
| 6496 |
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 6497 |
D["\1"]=" \3\\\\\\n"\\/p |
| 6498 |
t cont |
| 6499 |
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 6500 |
t cont |
| 6501 |
d |
| 6502 |
:cont |
| 6503 |
n |
| 6504 |
s/.\{148\}/&'"$ac_delim"'/g |
| 6505 |
t clear |
| 6506 |
:clear |
| 6507 |
s/\\$// |
| 6508 |
t bsnlc |
| 6509 |
s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 6510 |
d |
| 6511 |
:bsnlc |
| 6512 |
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 6513 |
b cont |
| 6514 |
' <confdefs.h | sed ' |
| 6515 |
s/'"$ac_delim"'/"\\\ |
| 6516 |
"/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 6517 |
|
| 6518 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6519 |
for (key in D) D_is_set[key] = 1 |
| 6520 |
FS = "" |
| 6521 |
} |
| 6522 |
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 6523 |
line = \$ 0 |
| 6524 |
split(line, arg, " ") |
| 6525 |
if (arg[1] == "#") { |
| 6526 |
defundef = arg[2] |
| 6527 |
mac1 = arg[3] |
| 6528 |
} else { |
| 6529 |
defundef = substr(arg[1], 2) |
| 6530 |
mac1 = arg[2] |
| 6531 |
} |
| 6532 |
split(mac1, mac2, "(") #) |
| 6533 |
macro = mac2[1] |
| 6534 |
prefix = substr(line, 1, index(line, defundef) - 1) |
| 6535 |
if (D_is_set[macro]) { |
| 6536 |
# Preserve the white space surrounding the "#". |
| 6537 |
print prefix "define", macro P[macro] D[macro] |
| 6538 |
next |
| 6539 |
} else { |
| 6540 |
# Replace #undef with comments. This is necessary, for example, |
| 6541 |
# in the case of _POSIX_SOURCE, which is predefined and required |
| 6542 |
# on some systems where configure will not decide to define it. |
| 6543 |
if (defundef == "undef") { |
| 6544 |
print "/*", prefix defundef, macro, "*/" |
| 6545 |
next |
| 6546 |
} |
| 6547 |
} |
| 6548 |
} |
| 6549 |
{ print } |
| 6550 |
_ACAWK |
| 6551 |
_ACEOF |
| 6552 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6553 |
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
| 6554 |
fi # test -n "$CONFIG_HEADERS" |
| 6555 |
|
| 6556 |
|
| 6557 |
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 6558 |
shift |
| 6559 |
for ac_tag |
| 6560 |
do |
| 6561 |
case $ac_tag in |
| 6562 |
:[FHLC]) ac_mode=$ac_tag; continue;; |
| 6563 |
esac |
| 6564 |
case $ac_mode$ac_tag in |
| 6565 |
:[FHL]*:*);; |
| 6566 |
:L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; |
| 6567 |
:[FH]-) ac_tag=-:-;; |
| 6568 |
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 6569 |
esac |
| 6570 |
ac_save_IFS=$IFS |
| 6571 |
IFS=: |
| 6572 |
set x $ac_tag |
| 6573 |
IFS=$ac_save_IFS |
| 6574 |
shift |
| 6575 |
ac_file=$1 |
| 6576 |
shift |
| 6577 |
|
| 6578 |
case $ac_mode in |
| 6579 |
:L) ac_source=$1;; |
| 6580 |
:[FH]) |
| 6581 |
ac_file_inputs= |
| 6582 |
for ac_f |
| 6583 |
do |
| 6584 |
case $ac_f in |
| 6585 |
-) ac_f="$ac_tmp/stdin";; |
| 6586 |
*) # Look for the file first in the build tree, then in the source tree |
| 6587 |
# (if the path is not absolute). The absolute path cannot be DOS-style, |
| 6588 |
# because $ac_f cannot contain ':'. |
| 6589 |
test -f "$ac_f" || |
| 6590 |
case $ac_f in |
| 6591 |
[\\/$]*) false;; |
| 6592 |
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 6593 |
esac || |
| 6594 |
as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; |
| 6595 |
esac |
| 6596 |
case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 6597 |
as_fn_append ac_file_inputs " '$ac_f'" |
| 6598 |
done |
| 6599 |
|
| 6600 |
# Let's still pretend it is 'configure' which instantiates (i.e., don't |
| 6601 |
# use $as_me), people would be surprised to read: |
| 6602 |
# /* config.h. Generated by config.status. */ |
| 6603 |
configure_input='Generated from '` |
| 6604 |
printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 6605 |
`' by configure.' |
| 6606 |
if test x"$ac_file" != x-; then |
| 6607 |
configure_input="$ac_file. $configure_input" |
| 6608 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 6609 |
printf "%s\n" "$as_me: creating $ac_file" >&6;} |
| 6610 |
fi |
| 6611 |
# Neutralize special characters interpreted by sed in replacement strings. |
| 6612 |
case $configure_input in #( |
| 6613 |
*\&* | *\|* | *\\* ) |
| 6614 |
ac_sed_conf_input=`printf "%s\n" "$configure_input" | |
| 6615 |
sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 6616 |
*) ac_sed_conf_input=$configure_input;; |
| 6617 |
esac |
| 6618 |
|
| 6619 |
case $ac_tag in |
| 6620 |
*:-:* | *:-) cat >"$ac_tmp/stdin" \ |
| 6621 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
| 6622 |
esac |
| 6623 |
;; |
| 6624 |
esac |
| 6625 |
|
| 6626 |
ac_dir=`$as_dirname -- "$ac_file" || |
| 6627 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6628 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6629 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 6630 |
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 6631 |
printf "%s\n" X"$ac_file" | |
| 6632 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 6633 |
s//\1/ |
| 6634 |
q |
| 6635 |
} |
| 6636 |
/^X\(\/\/\)[^/].*/{ |
| 6637 |
s//\1/ |
| 6638 |
q |
| 6639 |
} |
| 6640 |
/^X\(\/\/\)$/{ |
| 6641 |
s//\1/ |
| 6642 |
q |
| 6643 |
} |
| 6644 |
/^X\(\/\).*/{ |
| 6645 |
s//\1/ |
| 6646 |
q |
| 6647 |
} |
| 6648 |
s/.*/./; q'` |
| 6649 |
as_dir="$ac_dir"; as_fn_mkdir_p |
| 6650 |
ac_builddir=. |
| 6651 |
|
| 6652 |
case "$ac_dir" in |
| 6653 |
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6654 |
*) |
| 6655 |
ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
| 6656 |
# A ".." for each directory in $ac_dir_suffix. |
| 6657 |
ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 6658 |
case $ac_top_builddir_sub in |
| 6659 |
"") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 6660 |
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 6661 |
esac ;; |
| 6662 |
esac |
| 6663 |
ac_abs_top_builddir=$ac_pwd |
| 6664 |
ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 6665 |
# for backward compatibility: |
| 6666 |
ac_top_builddir=$ac_top_build_prefix |
| 6667 |
|
| 6668 |
case $srcdir in |
| 6669 |
.) # We are building in place. |
| 6670 |
ac_srcdir=. |
| 6671 |
ac_top_srcdir=$ac_top_builddir_sub |
| 6672 |
ac_abs_top_srcdir=$ac_pwd ;; |
| 6673 |
[\\/]* | ?:[\\/]* ) # Absolute name. |
| 6674 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 6675 |
ac_top_srcdir=$srcdir |
| 6676 |
ac_abs_top_srcdir=$srcdir ;; |
| 6677 |
*) # Relative name. |
| 6678 |
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 6679 |
ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 6680 |
ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 6681 |
esac |
| 6682 |
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 6683 |
|
| 6684 |
|
| 6685 |
case $ac_mode in |
| 6686 |
:F) |
| 6687 |
# |
| 6688 |
# CONFIG_FILE |
| 6689 |
# |
| 6690 |
|
| 6691 |
_ACEOF |
| 6692 |
|
| 6693 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6694 |
# If the template does not know about datarootdir, expand it. |
| 6695 |
# FIXME: This hack should be removed a few years after 2.60. |
| 6696 |
ac_datarootdir_hack=; ac_datarootdir_seen= |
| 6697 |
ac_sed_dataroot=' |
| 6698 |
/datarootdir/ { |
| 6699 |
p |
| 6700 |
q |
| 6701 |
} |
| 6702 |
/@datadir@/p |
| 6703 |
/@docdir@/p |
| 6704 |
/@infodir@/p |
| 6705 |
/@localedir@/p |
| 6706 |
/@mandir@/p' |
| 6707 |
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 6708 |
*datarootdir*) ac_datarootdir_seen=yes;; |
| 6709 |
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 6710 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 6711 |
printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 6712 |
_ACEOF |
| 6713 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6714 |
ac_datarootdir_hack=' |
| 6715 |
s&@datadir@&$datadir&g |
| 6716 |
s&@docdir@&$docdir&g |
| 6717 |
s&@infodir@&$infodir&g |
| 6718 |
s&@localedir@&$localedir&g |
| 6719 |
s&@mandir@&$mandir&g |
| 6720 |
s&\\\${datarootdir}&$datarootdir&g' ;; |
| 6721 |
esac |
| 6722 |
_ACEOF |
| 6723 |
|
| 6724 |
# Neutralize VPATH when '$srcdir' = '.'. |
| 6725 |
# Shell code in configure.ac might set extrasub. |
| 6726 |
# FIXME: do we really want to maintain this feature? |
| 6727 |
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 6728 |
ac_sed_extra="$ac_vpsub |
| 6729 |
$extrasub |
| 6730 |
_ACEOF |
| 6731 |
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 6732 |
:t |
| 6733 |
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6734 |
s|@configure_input@|$ac_sed_conf_input|;t t |
| 6735 |
s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 6736 |
s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 6737 |
s&@srcdir@&$ac_srcdir&;t t |
| 6738 |
s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 6739 |
s&@top_srcdir@&$ac_top_srcdir&;t t |
| 6740 |
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 6741 |
s&@builddir@&$ac_builddir&;t t |
| 6742 |
s&@abs_builddir@&$ac_abs_builddir&;t t |
| 6743 |
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 6744 |
$ac_datarootdir_hack |
| 6745 |
" |
| 6746 |
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 6747 |
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6748 |
|
| 6749 |
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 6750 |
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 6751 |
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 6752 |
"$ac_tmp/out"`; test -z "$ac_out"; } && |
| 6753 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6754 |
which seems to be undefined. Please make sure it is defined" >&5 |
| 6755 |
printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' |
| 6756 |
which seems to be undefined. Please make sure it is defined" >&2;} |
| 6757 |
|
| 6758 |
rm -f "$ac_tmp/stdin" |
| 6759 |
case $ac_file in |
| 6760 |
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 6761 |
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
| 6762 |
esac \ |
| 6763 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6764 |
;; |
| 6765 |
:H) |
| 6766 |
# |
| 6767 |
# CONFIG_HEADER |
| 6768 |
# |
| 6769 |
if test x"$ac_file" != x-; then |
| 6770 |
{ |
| 6771 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 6772 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 6773 |
} >"$ac_tmp/config.h" \ |
| 6774 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6775 |
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
| 6776 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 6777 |
printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} |
| 6778 |
else |
| 6779 |
rm -f "$ac_file" |
| 6780 |
mv "$ac_tmp/config.h" "$ac_file" \ |
| 6781 |
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
| 6782 |
fi |
| 6783 |
else |
| 6784 |
printf "%s\n" "/* $configure_input */" >&1 \ |
| 6785 |
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
| 6786 |
|| as_fn_error $? "could not create -" "$LINENO" 5 |
| 6787 |
fi |
| 6788 |
;; |
| 6789 |
|
| 6790 |
:C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 6791 |
printf "%s\n" "$as_me: executing $ac_file commands" >&6;} |
| 6792 |
;; |
| 6793 |
esac |
| 6794 |
|
| 6795 |
|
| 6796 |
case $ac_file$ac_mode in |
| 6797 |
"default":C) test -z "$CONFIG_HEADERS" || date > stamp-h ;; |
| 6798 |
|
| 6799 |
esac |
| 6800 |
done # for ac_tag |
| 6801 |
|
| 6802 |
|
| 6803 |
as_fn_exit 0 |
| 6804 |
_ACEOF |
| 6805 |
ac_clean_files=$ac_clean_files_save |
| 6806 |
|
| 6807 |
test $ac_write_fail = 0 || |
| 6808 |
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 6809 |
|
| 6810 |
|
| 6811 |
# configure is writing to config.log, and then calls config.status. |
| 6812 |
# config.status does its own redirection, appending to config.log. |
| 6813 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 6814 |
# by configure, so config.status won't be able to write to it; its |
| 6815 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 6816 |
# effectively closing config.log, so it can be properly (re)opened and |
| 6817 |
# appended to by config.status. When coming back to configure, we |
| 6818 |
# need to make the FD available again. |
| 6819 |
if test "$no_create" != yes; then |
| 6820 |
ac_cs_success=: |
| 6821 |
ac_config_status_args= |
| 6822 |
test "$silent" = yes && |
| 6823 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 6824 |
exec 5>/dev/null |
| 6825 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6826 |
exec 5>>config.log |
| 6827 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6828 |
# would make configure fail if this is the last instruction. |
| 6829 |
$ac_cs_success || as_fn_exit 1 |
| 6830 |
fi |
| 6831 |
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 6832 |
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 6833 |
printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 6834 |
fi |
| 6835 |
|
| 6836 |
|